diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml new file mode 100644 index 00000000..8b9dbae0 --- /dev/null +++ b/.github/workflows/run-tests.yaml @@ -0,0 +1,31 @@ +name: Parser tests +on: + push: + workflow_dispatch: + +jobs: + parser-tests: + runs-on: ubuntu-latest + container: node:20.12.0-alpine + + steps: + - name: checkout + uses: actions/checkout@v3 + + - name: deps + run: yarn + + - name: build + run: yarn build + + - name: deparser + run: cd ./packages/deparser && yarn test + + - name: enums + run: cd ./packages/enums && yarn test + + - name: types + run: cd ./packages/types && yarn test + + - name: transform + run: cd ./packages/transform && yarn test \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..63eeeb1a --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,4 @@ +{ + "workbench.colorTheme": "Default Dark Modern", + "workbench.startupEditor": "none" +} diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..34108cb7 --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +.PHONY: run-openhands + +run-openhands: + @echo "Starting OpenHands with current directory: $(PWD)" + export SANDBOX_VOLUMES=$(PWD):/workspace:rw; \ + docker run -it --rm --pull=always \ + -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.44-nikolaik \ + -e SANDBOX_VOLUMES=$$SANDBOX_VOLUMES \ + -e LOG_ALL_EVENTS=true \ + -v /var/run/docker.sock:/var/run/docker.sock \ + -v ~/.openhands:/.openhands \ + -p 3000:3000 \ + --add-host host.docker.internal:host-gateway \ + --name openhands-app \ + docker.all-hands.dev/all-hands-ai/openhands:0.44 \ No newline at end of file diff --git a/__fixtures__/output/enum-maps/disabled/enums.ts b/__fixtures__/output/enum-maps/disabled/enums.ts new file mode 100644 index 00000000..6abee53e --- /dev/null +++ b/__fixtures__/output/enum-maps/disabled/enums.ts @@ -0,0 +1,69 @@ +/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type OverridingKind = "OVERRIDING_NOT_SET" | "OVERRIDING_USER_VALUE" | "OVERRIDING_SYSTEM_VALUE"; +export type QuerySource = "QSRC_ORIGINAL" | "QSRC_PARSER" | "QSRC_INSTEAD_RULE" | "QSRC_QUAL_INSTEAD_RULE" | "QSRC_NON_INSTEAD_RULE"; +export type SortByDir = "SORTBY_DEFAULT" | "SORTBY_ASC" | "SORTBY_DESC" | "SORTBY_USING"; +export type SortByNulls = "SORTBY_NULLS_DEFAULT" | "SORTBY_NULLS_FIRST" | "SORTBY_NULLS_LAST"; +export type SetQuantifier = "SET_QUANTIFIER_DEFAULT" | "SET_QUANTIFIER_ALL" | "SET_QUANTIFIER_DISTINCT"; +export type A_Expr_Kind = "AEXPR_OP" | "AEXPR_OP_ANY" | "AEXPR_OP_ALL" | "AEXPR_DISTINCT" | "AEXPR_NOT_DISTINCT" | "AEXPR_NULLIF" | "AEXPR_IN" | "AEXPR_LIKE" | "AEXPR_ILIKE" | "AEXPR_SIMILAR" | "AEXPR_BETWEEN" | "AEXPR_NOT_BETWEEN" | "AEXPR_BETWEEN_SYM" | "AEXPR_NOT_BETWEEN_SYM"; +export type RoleSpecType = "ROLESPEC_CSTRING" | "ROLESPEC_CURRENT_ROLE" | "ROLESPEC_CURRENT_USER" | "ROLESPEC_SESSION_USER" | "ROLESPEC_PUBLIC"; +export type TableLikeOption = "CREATE_TABLE_LIKE_COMMENTS" | "CREATE_TABLE_LIKE_COMPRESSION" | "CREATE_TABLE_LIKE_CONSTRAINTS" | "CREATE_TABLE_LIKE_DEFAULTS" | "CREATE_TABLE_LIKE_GENERATED" | "CREATE_TABLE_LIKE_IDENTITY" | "CREATE_TABLE_LIKE_INDEXES" | "CREATE_TABLE_LIKE_STATISTICS" | "CREATE_TABLE_LIKE_STORAGE" | "CREATE_TABLE_LIKE_ALL"; +export type DefElemAction = "DEFELEM_UNSPEC" | "DEFELEM_SET" | "DEFELEM_ADD" | "DEFELEM_DROP"; +export type PartitionStrategy = "PARTITION_STRATEGY_LIST" | "PARTITION_STRATEGY_RANGE" | "PARTITION_STRATEGY_HASH"; +export type PartitionRangeDatumKind = "PARTITION_RANGE_DATUM_MINVALUE" | "PARTITION_RANGE_DATUM_VALUE" | "PARTITION_RANGE_DATUM_MAXVALUE"; +export type RTEKind = "RTE_RELATION" | "RTE_SUBQUERY" | "RTE_JOIN" | "RTE_FUNCTION" | "RTE_TABLEFUNC" | "RTE_VALUES" | "RTE_CTE" | "RTE_NAMEDTUPLESTORE" | "RTE_RESULT"; +export type WCOKind = "WCO_VIEW_CHECK" | "WCO_RLS_INSERT_CHECK" | "WCO_RLS_UPDATE_CHECK" | "WCO_RLS_CONFLICT_CHECK" | "WCO_RLS_MERGE_UPDATE_CHECK" | "WCO_RLS_MERGE_DELETE_CHECK"; +export type GroupingSetKind = "GROUPING_SET_EMPTY" | "GROUPING_SET_SIMPLE" | "GROUPING_SET_ROLLUP" | "GROUPING_SET_CUBE" | "GROUPING_SET_SETS"; +export type CTEMaterialize = "CTEMaterializeDefault" | "CTEMaterializeAlways" | "CTEMaterializeNever"; +export type SetOperation = "SETOP_NONE" | "SETOP_UNION" | "SETOP_INTERSECT" | "SETOP_EXCEPT"; +export type ObjectType = "OBJECT_ACCESS_METHOD" | "OBJECT_AGGREGATE" | "OBJECT_AMOP" | "OBJECT_AMPROC" | "OBJECT_ATTRIBUTE" | "OBJECT_CAST" | "OBJECT_COLUMN" | "OBJECT_COLLATION" | "OBJECT_CONVERSION" | "OBJECT_DATABASE" | "OBJECT_DEFAULT" | "OBJECT_DEFACL" | "OBJECT_DOMAIN" | "OBJECT_DOMCONSTRAINT" | "OBJECT_EVENT_TRIGGER" | "OBJECT_EXTENSION" | "OBJECT_FDW" | "OBJECT_FOREIGN_SERVER" | "OBJECT_FOREIGN_TABLE" | "OBJECT_FUNCTION" | "OBJECT_INDEX" | "OBJECT_LANGUAGE" | "OBJECT_LARGEOBJECT" | "OBJECT_MATVIEW" | "OBJECT_OPCLASS" | "OBJECT_OPERATOR" | "OBJECT_OPFAMILY" | "OBJECT_PARAMETER_ACL" | "OBJECT_POLICY" | "OBJECT_PROCEDURE" | "OBJECT_PUBLICATION" | "OBJECT_PUBLICATION_NAMESPACE" | "OBJECT_PUBLICATION_REL" | "OBJECT_ROLE" | "OBJECT_ROUTINE" | "OBJECT_RULE" | "OBJECT_SCHEMA" | "OBJECT_SEQUENCE" | "OBJECT_SUBSCRIPTION" | "OBJECT_STATISTIC_EXT" | "OBJECT_TABCONSTRAINT" | "OBJECT_TABLE" | "OBJECT_TABLESPACE" | "OBJECT_TRANSFORM" | "OBJECT_TRIGGER" | "OBJECT_TSCONFIGURATION" | "OBJECT_TSDICTIONARY" | "OBJECT_TSPARSER" | "OBJECT_TSTEMPLATE" | "OBJECT_TYPE" | "OBJECT_USER_MAPPING" | "OBJECT_VIEW"; +export type DropBehavior = "DROP_RESTRICT" | "DROP_CASCADE"; +export type AlterTableType = "AT_AddColumn" | "AT_AddColumnToView" | "AT_ColumnDefault" | "AT_CookedColumnDefault" | "AT_DropNotNull" | "AT_SetNotNull" | "AT_DropExpression" | "AT_CheckNotNull" | "AT_SetStatistics" | "AT_SetOptions" | "AT_ResetOptions" | "AT_SetStorage" | "AT_SetCompression" | "AT_DropColumn" | "AT_AddIndex" | "AT_ReAddIndex" | "AT_AddConstraint" | "AT_ReAddConstraint" | "AT_ReAddDomainConstraint" | "AT_AlterConstraint" | "AT_ValidateConstraint" | "AT_AddIndexConstraint" | "AT_DropConstraint" | "AT_ReAddComment" | "AT_AlterColumnType" | "AT_AlterColumnGenericOptions" | "AT_ChangeOwner" | "AT_ClusterOn" | "AT_DropCluster" | "AT_SetLogged" | "AT_SetUnLogged" | "AT_DropOids" | "AT_SetAccessMethod" | "AT_SetTableSpace" | "AT_SetRelOptions" | "AT_ResetRelOptions" | "AT_ReplaceRelOptions" | "AT_EnableTrig" | "AT_EnableAlwaysTrig" | "AT_EnableReplicaTrig" | "AT_DisableTrig" | "AT_EnableTrigAll" | "AT_DisableTrigAll" | "AT_EnableTrigUser" | "AT_DisableTrigUser" | "AT_EnableRule" | "AT_EnableAlwaysRule" | "AT_EnableReplicaRule" | "AT_DisableRule" | "AT_AddInherit" | "AT_DropInherit" | "AT_AddOf" | "AT_DropOf" | "AT_ReplicaIdentity" | "AT_EnableRowSecurity" | "AT_DisableRowSecurity" | "AT_ForceRowSecurity" | "AT_NoForceRowSecurity" | "AT_GenericOptions" | "AT_AttachPartition" | "AT_DetachPartition" | "AT_DetachPartitionFinalize" | "AT_AddIdentity" | "AT_SetIdentity" | "AT_DropIdentity" | "AT_ReAddStatistics"; +export type GrantTargetType = "ACL_TARGET_OBJECT" | "ACL_TARGET_ALL_IN_SCHEMA" | "ACL_TARGET_DEFAULTS"; +export type VariableSetKind = "VAR_SET_VALUE" | "VAR_SET_DEFAULT" | "VAR_SET_CURRENT" | "VAR_SET_MULTI" | "VAR_RESET" | "VAR_RESET_ALL"; +export type ConstrType = "CONSTR_NULL" | "CONSTR_NOTNULL" | "CONSTR_DEFAULT" | "CONSTR_IDENTITY" | "CONSTR_GENERATED" | "CONSTR_CHECK" | "CONSTR_PRIMARY" | "CONSTR_UNIQUE" | "CONSTR_EXCLUSION" | "CONSTR_FOREIGN" | "CONSTR_ATTR_DEFERRABLE" | "CONSTR_ATTR_NOT_DEFERRABLE" | "CONSTR_ATTR_DEFERRED" | "CONSTR_ATTR_IMMEDIATE"; +export type ImportForeignSchemaType = "FDW_IMPORT_SCHEMA_ALL" | "FDW_IMPORT_SCHEMA_LIMIT_TO" | "FDW_IMPORT_SCHEMA_EXCEPT"; +export type RoleStmtType = "ROLESTMT_ROLE" | "ROLESTMT_USER" | "ROLESTMT_GROUP"; +export type FetchDirection = "FETCH_FORWARD" | "FETCH_BACKWARD" | "FETCH_ABSOLUTE" | "FETCH_RELATIVE"; +export type FunctionParameterMode = "FUNC_PARAM_IN" | "FUNC_PARAM_OUT" | "FUNC_PARAM_INOUT" | "FUNC_PARAM_VARIADIC" | "FUNC_PARAM_TABLE" | "FUNC_PARAM_DEFAULT"; +export type TransactionStmtKind = "TRANS_STMT_BEGIN" | "TRANS_STMT_START" | "TRANS_STMT_COMMIT" | "TRANS_STMT_ROLLBACK" | "TRANS_STMT_SAVEPOINT" | "TRANS_STMT_RELEASE" | "TRANS_STMT_ROLLBACK_TO" | "TRANS_STMT_PREPARE" | "TRANS_STMT_COMMIT_PREPARED" | "TRANS_STMT_ROLLBACK_PREPARED"; +export type ViewCheckOption = "NO_CHECK_OPTION" | "LOCAL_CHECK_OPTION" | "CASCADED_CHECK_OPTION"; +export type DiscardMode = "DISCARD_ALL" | "DISCARD_PLANS" | "DISCARD_SEQUENCES" | "DISCARD_TEMP"; +export type ReindexObjectType = "REINDEX_OBJECT_INDEX" | "REINDEX_OBJECT_TABLE" | "REINDEX_OBJECT_SCHEMA" | "REINDEX_OBJECT_SYSTEM" | "REINDEX_OBJECT_DATABASE"; +export type AlterTSConfigType = "ALTER_TSCONFIG_ADD_MAPPING" | "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN" | "ALTER_TSCONFIG_REPLACE_DICT" | "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN" | "ALTER_TSCONFIG_DROP_MAPPING"; +export type PublicationObjSpecType = "PUBLICATIONOBJ_TABLE" | "PUBLICATIONOBJ_TABLES_IN_SCHEMA" | "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA" | "PUBLICATIONOBJ_CONTINUATION"; +export type AlterPublicationAction = "AP_AddObjects" | "AP_DropObjects" | "AP_SetObjects"; +export type AlterSubscriptionType = "ALTER_SUBSCRIPTION_OPTIONS" | "ALTER_SUBSCRIPTION_CONNECTION" | "ALTER_SUBSCRIPTION_SET_PUBLICATION" | "ALTER_SUBSCRIPTION_ADD_PUBLICATION" | "ALTER_SUBSCRIPTION_DROP_PUBLICATION" | "ALTER_SUBSCRIPTION_REFRESH" | "ALTER_SUBSCRIPTION_ENABLED" | "ALTER_SUBSCRIPTION_SKIP"; +export type OnCommitAction = "ONCOMMIT_NOOP" | "ONCOMMIT_PRESERVE_ROWS" | "ONCOMMIT_DELETE_ROWS" | "ONCOMMIT_DROP"; +export type ParamKind = "PARAM_EXTERN" | "PARAM_EXEC" | "PARAM_SUBLINK" | "PARAM_MULTIEXPR"; +export type CoercionContext = "COERCION_IMPLICIT" | "COERCION_ASSIGNMENT" | "COERCION_PLPGSQL" | "COERCION_EXPLICIT"; +export type CoercionForm = "COERCE_EXPLICIT_CALL" | "COERCE_EXPLICIT_CAST" | "COERCE_IMPLICIT_CAST" | "COERCE_SQL_SYNTAX"; +export type BoolExprType = "AND_EXPR" | "OR_EXPR" | "NOT_EXPR"; +export type SubLinkType = "EXISTS_SUBLINK" | "ALL_SUBLINK" | "ANY_SUBLINK" | "ROWCOMPARE_SUBLINK" | "EXPR_SUBLINK" | "MULTIEXPR_SUBLINK" | "ARRAY_SUBLINK" | "CTE_SUBLINK"; +export type RowCompareType = "ROWCOMPARE_LT" | "ROWCOMPARE_LE" | "ROWCOMPARE_EQ" | "ROWCOMPARE_GE" | "ROWCOMPARE_GT" | "ROWCOMPARE_NE"; +export type MinMaxOp = "IS_GREATEST" | "IS_LEAST"; +export type SQLValueFunctionOp = "SVFOP_CURRENT_DATE" | "SVFOP_CURRENT_TIME" | "SVFOP_CURRENT_TIME_N" | "SVFOP_CURRENT_TIMESTAMP" | "SVFOP_CURRENT_TIMESTAMP_N" | "SVFOP_LOCALTIME" | "SVFOP_LOCALTIME_N" | "SVFOP_LOCALTIMESTAMP" | "SVFOP_LOCALTIMESTAMP_N" | "SVFOP_CURRENT_ROLE" | "SVFOP_CURRENT_USER" | "SVFOP_USER" | "SVFOP_SESSION_USER" | "SVFOP_CURRENT_CATALOG" | "SVFOP_CURRENT_SCHEMA"; +export type XmlExprOp = "IS_XMLCONCAT" | "IS_XMLELEMENT" | "IS_XMLFOREST" | "IS_XMLPARSE" | "IS_XMLPI" | "IS_XMLROOT" | "IS_XMLSERIALIZE" | "IS_DOCUMENT"; +export type XmlOptionType = "XMLOPTION_DOCUMENT" | "XMLOPTION_CONTENT"; +export type JsonEncoding = "JS_ENC_DEFAULT" | "JS_ENC_UTF8" | "JS_ENC_UTF16" | "JS_ENC_UTF32"; +export type JsonFormatType = "JS_FORMAT_DEFAULT" | "JS_FORMAT_JSON" | "JS_FORMAT_JSONB"; +export type JsonConstructorType = "JSCTOR_JSON_OBJECT" | "JSCTOR_JSON_ARRAY" | "JSCTOR_JSON_OBJECTAGG" | "JSCTOR_JSON_ARRAYAGG"; +export type JsonValueType = "JS_TYPE_ANY" | "JS_TYPE_OBJECT" | "JS_TYPE_ARRAY" | "JS_TYPE_SCALAR"; +export type NullTestType = "IS_NULL" | "IS_NOT_NULL"; +export type BoolTestType = "IS_TRUE" | "IS_NOT_TRUE" | "IS_FALSE" | "IS_NOT_FALSE" | "IS_UNKNOWN" | "IS_NOT_UNKNOWN"; +export type CmdType = "CMD_UNKNOWN" | "CMD_SELECT" | "CMD_UPDATE" | "CMD_INSERT" | "CMD_DELETE" | "CMD_MERGE" | "CMD_UTILITY" | "CMD_NOTHING"; +export type JoinType = "JOIN_INNER" | "JOIN_LEFT" | "JOIN_FULL" | "JOIN_RIGHT" | "JOIN_SEMI" | "JOIN_ANTI" | "JOIN_RIGHT_ANTI" | "JOIN_UNIQUE_OUTER" | "JOIN_UNIQUE_INNER"; +export type AggStrategy = "AGG_PLAIN" | "AGG_SORTED" | "AGG_HASHED" | "AGG_MIXED"; +export type AggSplit = "AGGSPLIT_SIMPLE" | "AGGSPLIT_INITIAL_SERIAL" | "AGGSPLIT_FINAL_DESERIAL"; +export type SetOpCmd = "SETOPCMD_INTERSECT" | "SETOPCMD_INTERSECT_ALL" | "SETOPCMD_EXCEPT" | "SETOPCMD_EXCEPT_ALL"; +export type SetOpStrategy = "SETOP_SORTED" | "SETOP_HASHED"; +export type OnConflictAction = "ONCONFLICT_NONE" | "ONCONFLICT_NOTHING" | "ONCONFLICT_UPDATE"; +export type LimitOption = "LIMIT_OPTION_DEFAULT" | "LIMIT_OPTION_COUNT" | "LIMIT_OPTION_WITH_TIES"; +export type LockClauseStrength = "LCS_NONE" | "LCS_FORKEYSHARE" | "LCS_FORSHARE" | "LCS_FORNOKEYUPDATE" | "LCS_FORUPDATE"; +export type LockWaitPolicy = "LockWaitBlock" | "LockWaitSkip" | "LockWaitError"; +export type LockTupleMode = "LockTupleKeyShare" | "LockTupleShare" | "LockTupleNoKeyExclusive" | "LockTupleExclusive"; +export type KeywordKind = "NO_KEYWORD" | "UNRESERVED_KEYWORD" | "COL_NAME_KEYWORD" | "TYPE_FUNC_NAME_KEYWORD" | "RESERVED_KEYWORD"; +export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | "ASCII_42" | "ASCII_43" | "ASCII_44" | "ASCII_45" | "ASCII_46" | "ASCII_47" | "ASCII_58" | "ASCII_59" | "ASCII_60" | "ASCII_61" | "ASCII_62" | "ASCII_63" | "ASCII_91" | "ASCII_92" | "ASCII_93" | "ASCII_94" | "IDENT" | "UIDENT" | "FCONST" | "SCONST" | "USCONST" | "BCONST" | "XCONST" | "Op" | "ICONST" | "PARAM" | "TYPECAST" | "DOT_DOT" | "COLON_EQUALS" | "EQUALS_GREATER" | "LESS_EQUALS" | "GREATER_EQUALS" | "NOT_EQUALS" | "SQL_COMMENT" | "C_COMMENT" | "ABORT_P" | "ABSENT" | "ABSOLUTE_P" | "ACCESS" | "ACTION" | "ADD_P" | "ADMIN" | "AFTER" | "AGGREGATE" | "ALL" | "ALSO" | "ALTER" | "ALWAYS" | "ANALYSE" | "ANALYZE" | "AND" | "ANY" | "ARRAY" | "AS" | "ASC" | "ASENSITIVE" | "ASSERTION" | "ASSIGNMENT" | "ASYMMETRIC" | "ATOMIC" | "AT" | "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" | "CHAR_P" | "CHARACTER" | "CHARACTERISTICS" | "CHECK" | "CHECKPOINT" | "CLASS" | "CLOSE" | "CLUSTER" | "COALESCE" | "COLLATE" | "COLLATION" | "COLUMN" | "COLUMNS" | "COMMENT" | "COMMENTS" | "COMMIT" | "COMMITTED" | "COMPRESSION" | "CONCURRENTLY" | "CONFIGURATION" | "CONFLICT" | "CONNECTION" | "CONSTRAINT" | "CONSTRAINTS" | "CONTENT_P" | "CONTINUE_P" | "CONVERSION_P" | "COPY" | "COST" | "CREATE" | "CROSS" | "CSV" | "CUBE" | "CURRENT_P" | "CURRENT_CATALOG" | "CURRENT_DATE" | "CURRENT_ROLE" | "CURRENT_SCHEMA" | "CURRENT_TIME" | "CURRENT_TIMESTAMP" | "CURRENT_USER" | "CURSOR" | "CYCLE" | "DATA_P" | "DATABASE" | "DAY_P" | "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" | "ENABLE_P" | "ENCODING" | "ENCRYPTED" | "END_P" | "ENUM_P" | "ESCAPE" | "EVENT" | "EXCEPT" | "EXCLUDE" | "EXCLUDING" | "EXCLUSIVE" | "EXECUTE" | "EXISTS" | "EXPLAIN" | "EXPRESSION" | "EXTENSION" | "EXTERNAL" | "EXTRACT" | "FALSE_P" | "FAMILY" | "FETCH" | "FILTER" | "FINALIZE" | "FIRST_P" | "FLOAT_P" | "FOLLOWING" | "FOR" | "FORCE" | "FOREIGN" | "FORMAT" | "FORWARD" | "FREEZE" | "FROM" | "FULL" | "FUNCTION" | "FUNCTIONS" | "GENERATED" | "GLOBAL" | "GRANT" | "GRANTED" | "GREATEST" | "GROUP_P" | "GROUPING" | "GROUPS" | "HANDLER" | "HAVING" | "HEADER_P" | "HOLD" | "HOUR_P" | "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" | "INTERSECT" | "INTERVAL" | "INTO" | "INVOKER" | "IS" | "ISNULL" | "ISOLATION" | "JOIN" | "JSON" | "JSON_ARRAY" | "JSON_ARRAYAGG" | "JSON_OBJECT" | "JSON_OBJECTAGG" | "KEY" | "KEYS" | "LABEL" | "LANGUAGE" | "LARGE_P" | "LAST_P" | "LATERAL_P" | "LEADING" | "LEAKPROOF" | "LEAST" | "LEFT" | "LEVEL" | "LIKE" | "LIMIT" | "LISTEN" | "LOAD" | "LOCAL" | "LOCALTIME" | "LOCALTIMESTAMP" | "LOCATION" | "LOCK_P" | "LOCKED" | "LOGGED" | "MAPPING" | "MATCH" | "MATCHED" | "MATERIALIZED" | "MAXVALUE" | "MERGE" | "METHOD" | "MINUTE_P" | "MINVALUE" | "MODE" | "MONTH_P" | "MOVE" | "NAME_P" | "NAMES" | "NATIONAL" | "NATURAL" | "NCHAR" | "NEW" | "NEXT" | "NFC" | "NFD" | "NFKC" | "NFKD" | "NO" | "NONE" | "NORMALIZE" | "NORMALIZED" | "NOT" | "NOTHING" | "NOTIFY" | "NOTNULL" | "NOWAIT" | "NULL_P" | "NULLIF" | "NULLS_P" | "NUMERIC" | "OBJECT_P" | "OF" | "OFF" | "OFFSET" | "OIDS" | "OLD" | "ON" | "ONLY" | "OPERATOR" | "OPTION" | "OPTIONS" | "OR" | "ORDER" | "ORDINALITY" | "OTHERS" | "OUT_P" | "OUTER_P" | "OVER" | "OVERLAPS" | "OVERLAY" | "OVERRIDING" | "OWNED" | "OWNER" | "PARALLEL" | "PARAMETER" | "PARSER" | "PARTIAL" | "PARTITION" | "PASSING" | "PASSWORD" | "PLACING" | "PLANS" | "POLICY" | "POSITION" | "PRECEDING" | "PRECISION" | "PRESERVE" | "PREPARE" | "PREPARED" | "PRIMARY" | "PRIOR" | "PRIVILEGES" | "PROCEDURAL" | "PROCEDURE" | "PROCEDURES" | "PROGRAM" | "PUBLICATION" | "QUOTE" | "RANGE" | "READ" | "REAL" | "REASSIGN" | "RECHECK" | "RECURSIVE" | "REF_P" | "REFERENCES" | "REFERENCING" | "REFRESH" | "REINDEX" | "RELATIVE_P" | "RELEASE" | "RENAME" | "REPEATABLE" | "REPLACE" | "REPLICA" | "RESET" | "RESTART" | "RESTRICT" | "RETURN" | "RETURNING" | "RETURNS" | "REVOKE" | "RIGHT" | "ROLE" | "ROLLBACK" | "ROLLUP" | "ROUTINE" | "ROUTINES" | "ROW" | "ROWS" | "RULE" | "SAVEPOINT" | "SCALAR" | "SCHEMA" | "SCHEMAS" | "SCROLL" | "SEARCH" | "SECOND_P" | "SECURITY" | "SELECT" | "SEQUENCE" | "SEQUENCES" | "SERIALIZABLE" | "SERVER" | "SESSION" | "SESSION_USER" | "SET" | "SETS" | "SETOF" | "SHARE" | "SHOW" | "SIMILAR" | "SIMPLE" | "SKIP" | "SMALLINT" | "SNAPSHOT" | "SOME" | "SQL_P" | "STABLE" | "STANDALONE_P" | "START" | "STATEMENT" | "STATISTICS" | "STDIN" | "STDOUT" | "STORAGE" | "STORED" | "STRICT_P" | "STRIP_P" | "SUBSCRIPTION" | "SUBSTRING" | "SUPPORT" | "SYMMETRIC" | "SYSID" | "SYSTEM_P" | "SYSTEM_USER" | "TABLE" | "TABLES" | "TABLESAMPLE" | "TABLESPACE" | "TEMP" | "TEMPLATE" | "TEMPORARY" | "TEXT_P" | "THEN" | "TIES" | "TIME" | "TIMESTAMP" | "TO" | "TRAILING" | "TRANSACTION" | "TRANSFORM" | "TREAT" | "TRIGGER" | "TRIM" | "TRUE_P" | "TRUNCATE" | "TRUSTED" | "TYPE_P" | "TYPES_P" | "UESCAPE" | "UNBOUNDED" | "UNCOMMITTED" | "UNENCRYPTED" | "UNION" | "UNIQUE" | "UNKNOWN" | "UNLISTEN" | "UNLOGGED" | "UNTIL" | "UPDATE" | "USER" | "USING" | "VACUUM" | "VALID" | "VALIDATE" | "VALIDATOR" | "VALUE_P" | "VALUES" | "VARCHAR" | "VARIADIC" | "VARYING" | "VERBOSE" | "VERSION_P" | "VIEW" | "VIEWS" | "VOLATILE" | "WHEN" | "WHERE" | "WHITESPACE_P" | "WINDOW" | "WITH" | "WITHIN" | "WITHOUT" | "WORK" | "WRAPPER" | "WRITE" | "XML_P" | "XMLATTRIBUTES" | "XMLCONCAT" | "XMLELEMENT" | "XMLEXISTS" | "XMLFOREST" | "XMLNAMESPACES" | "XMLPARSE" | "XMLPI" | "XMLROOT" | "XMLSERIALIZE" | "XMLTABLE" | "YEAR_P" | "YES_P" | "ZONE" | "FORMAT_LA" | "NOT_LA" | "NULLS_LA" | "WITH_LA" | "WITHOUT_LA" | "MODE_TYPE_NAME" | "MODE_PLPGSQL_EXPR" | "MODE_PLPGSQL_ASSIGN1" | "MODE_PLPGSQL_ASSIGN2" | "MODE_PLPGSQL_ASSIGN3" | "UMINUS"; \ No newline at end of file diff --git a/packages/enums-utils/src/enums2int.json b/__fixtures__/output/enum-maps/json/enabled/enum-to-int.json similarity index 54% rename from packages/enums-utils/src/enums2int.json rename to __fixtures__/output/enum-maps/json/enabled/enum-to-int.json index 77587c35..4108cde1 100644 --- a/packages/enums-utils/src/enums2int.json +++ b/__fixtures__/output/enum-maps/json/enabled/enum-to-int.json @@ -1,4 +1,9 @@ { + "OverridingKind": { + "OVERRIDING_NOT_SET": 0, + "OVERRIDING_USER_VALUE": 1, + "OVERRIDING_SYSTEM_VALUE": 2 + }, "QuerySource": { "QSRC_ORIGINAL": 0, "QSRC_PARSER": 1, @@ -104,18 +109,6 @@ "CTEMaterializeAlways": 1, "CTEMaterializeNever": 2 }, - "JsonQuotes": { - "JS_QUOTES_UNSPEC": 0, - "JS_QUOTES_KEEP": 1, - "JS_QUOTES_OMIT": 2 - }, - "JsonTableColumnType": { - "JTC_FOR_ORDINALITY": 0, - "JTC_REGULAR": 1, - "JTC_EXISTS": 2, - "JTC_FORMATTED": 3, - "JTC_NESTED": 4 - }, "SetOperation": { "SETOP_NONE": 0, "SETOP_UNION": 1, @@ -187,67 +180,66 @@ "AT_CookedColumnDefault": 3, "AT_DropNotNull": 4, "AT_SetNotNull": 5, - "AT_SetExpression": 6, - "AT_DropExpression": 7, - "AT_CheckNotNull": 8, - "AT_SetStatistics": 9, - "AT_SetOptions": 10, - "AT_ResetOptions": 11, - "AT_SetStorage": 12, - "AT_SetCompression": 13, - "AT_DropColumn": 14, - "AT_AddIndex": 15, - "AT_ReAddIndex": 16, - "AT_AddConstraint": 17, - "AT_ReAddConstraint": 18, - "AT_ReAddDomainConstraint": 19, - "AT_AlterConstraint": 20, - "AT_ValidateConstraint": 21, - "AT_AddIndexConstraint": 22, - "AT_DropConstraint": 23, - "AT_ReAddComment": 24, - "AT_AlterColumnType": 25, - "AT_AlterColumnGenericOptions": 26, - "AT_ChangeOwner": 27, - "AT_ClusterOn": 28, - "AT_DropCluster": 29, - "AT_SetLogged": 30, - "AT_SetUnLogged": 31, - "AT_DropOids": 32, - "AT_SetAccessMethod": 33, - "AT_SetTableSpace": 34, - "AT_SetRelOptions": 35, - "AT_ResetRelOptions": 36, - "AT_ReplaceRelOptions": 37, - "AT_EnableTrig": 38, - "AT_EnableAlwaysTrig": 39, - "AT_EnableReplicaTrig": 40, - "AT_DisableTrig": 41, - "AT_EnableTrigAll": 42, - "AT_DisableTrigAll": 43, - "AT_EnableTrigUser": 44, - "AT_DisableTrigUser": 45, - "AT_EnableRule": 46, - "AT_EnableAlwaysRule": 47, - "AT_EnableReplicaRule": 48, - "AT_DisableRule": 49, - "AT_AddInherit": 50, - "AT_DropInherit": 51, - "AT_AddOf": 52, - "AT_DropOf": 53, - "AT_ReplicaIdentity": 54, - "AT_EnableRowSecurity": 55, - "AT_DisableRowSecurity": 56, - "AT_ForceRowSecurity": 57, - "AT_NoForceRowSecurity": 58, - "AT_GenericOptions": 59, - "AT_AttachPartition": 60, - "AT_DetachPartition": 61, - "AT_DetachPartitionFinalize": 62, - "AT_AddIdentity": 63, - "AT_SetIdentity": 64, - "AT_DropIdentity": 65, - "AT_ReAddStatistics": 66 + "AT_DropExpression": 6, + "AT_CheckNotNull": 7, + "AT_SetStatistics": 8, + "AT_SetOptions": 9, + "AT_ResetOptions": 10, + "AT_SetStorage": 11, + "AT_SetCompression": 12, + "AT_DropColumn": 13, + "AT_AddIndex": 14, + "AT_ReAddIndex": 15, + "AT_AddConstraint": 16, + "AT_ReAddConstraint": 17, + "AT_ReAddDomainConstraint": 18, + "AT_AlterConstraint": 19, + "AT_ValidateConstraint": 20, + "AT_AddIndexConstraint": 21, + "AT_DropConstraint": 22, + "AT_ReAddComment": 23, + "AT_AlterColumnType": 24, + "AT_AlterColumnGenericOptions": 25, + "AT_ChangeOwner": 26, + "AT_ClusterOn": 27, + "AT_DropCluster": 28, + "AT_SetLogged": 29, + "AT_SetUnLogged": 30, + "AT_DropOids": 31, + "AT_SetAccessMethod": 32, + "AT_SetTableSpace": 33, + "AT_SetRelOptions": 34, + "AT_ResetRelOptions": 35, + "AT_ReplaceRelOptions": 36, + "AT_EnableTrig": 37, + "AT_EnableAlwaysTrig": 38, + "AT_EnableReplicaTrig": 39, + "AT_DisableTrig": 40, + "AT_EnableTrigAll": 41, + "AT_DisableTrigAll": 42, + "AT_EnableTrigUser": 43, + "AT_DisableTrigUser": 44, + "AT_EnableRule": 45, + "AT_EnableAlwaysRule": 46, + "AT_EnableReplicaRule": 47, + "AT_DisableRule": 48, + "AT_AddInherit": 49, + "AT_DropInherit": 50, + "AT_AddOf": 51, + "AT_DropOf": 52, + "AT_ReplicaIdentity": 53, + "AT_EnableRowSecurity": 54, + "AT_DisableRowSecurity": 55, + "AT_ForceRowSecurity": 56, + "AT_NoForceRowSecurity": 57, + "AT_GenericOptions": 58, + "AT_AttachPartition": 59, + "AT_DetachPartition": 60, + "AT_DetachPartitionFinalize": 61, + "AT_AddIdentity": 62, + "AT_SetIdentity": 63, + "AT_DropIdentity": 64, + "AT_ReAddStatistics": 65 }, "GrantTargetType": { "ACL_TARGET_OBJECT": 0, @@ -360,21 +352,12 @@ "ALTER_SUBSCRIPTION_ENABLED": 6, "ALTER_SUBSCRIPTION_SKIP": 7 }, - "OverridingKind": { - "OVERRIDING_NOT_SET": 0, - "OVERRIDING_USER_VALUE": 1, - "OVERRIDING_SYSTEM_VALUE": 2 - }, "OnCommitAction": { "ONCOMMIT_NOOP": 0, "ONCOMMIT_PRESERVE_ROWS": 1, "ONCOMMIT_DELETE_ROWS": 2, "ONCOMMIT_DROP": 3 }, - "TableFuncType": { - "TFT_XMLTABLE": 0, - "TFT_JSON_TABLE": 1 - }, "ParamKind": { "PARAM_EXTERN": 0, "PARAM_EXEC": 1, @@ -466,10 +449,7 @@ "JSCTOR_JSON_OBJECT": 0, "JSCTOR_JSON_ARRAY": 1, "JSCTOR_JSON_OBJECTAGG": 2, - "JSCTOR_JSON_ARRAYAGG": 3, - "JSCTOR_JSON_PARSE": 4, - "JSCTOR_JSON_SCALAR": 5, - "JSCTOR_JSON_SERIALIZE": 6 + "JSCTOR_JSON_ARRAYAGG": 3 }, "JsonValueType": { "JS_TYPE_ANY": 0, @@ -477,29 +457,6 @@ "JS_TYPE_ARRAY": 2, "JS_TYPE_SCALAR": 3 }, - "JsonWrapper": { - "JSW_UNSPEC": 0, - "JSW_NONE": 1, - "JSW_CONDITIONAL": 2, - "JSW_UNCONDITIONAL": 3 - }, - "JsonBehaviorType": { - "JSON_BEHAVIOR_NULL": 0, - "JSON_BEHAVIOR_ERROR": 1, - "JSON_BEHAVIOR_EMPTY": 2, - "JSON_BEHAVIOR_TRUE": 3, - "JSON_BEHAVIOR_FALSE": 4, - "JSON_BEHAVIOR_UNKNOWN": 5, - "JSON_BEHAVIOR_EMPTY_ARRAY": 6, - "JSON_BEHAVIOR_EMPTY_OBJECT": 7, - "JSON_BEHAVIOR_DEFAULT": 8 - }, - "JsonExprOp": { - "JSON_EXISTS_OP": 0, - "JSON_QUERY_OP": 1, - "JSON_VALUE_OP": 2, - "JSON_TABLE_OP": 3 - }, "NullTestType": { "IS_NULL": 0, "IS_NOT_NULL": 1 @@ -512,11 +469,6 @@ "IS_UNKNOWN": 4, "IS_NOT_UNKNOWN": 5 }, - "MergeMatchKind": { - "MERGE_WHEN_MATCHED": 0, - "MERGE_WHEN_NOT_MATCHED_BY_SOURCE": 1, - "MERGE_WHEN_NOT_MATCHED_BY_TARGET": 2 - }, "CmdType": { "CMD_UNKNOWN": 0, "CMD_SELECT": 1, @@ -703,439 +655,419 @@ "COMMITTED": 342, "COMPRESSION": 343, "CONCURRENTLY": 344, - "CONDITIONAL": 345, - "CONFIGURATION": 346, - "CONFLICT": 347, - "CONNECTION": 348, - "CONSTRAINT": 349, - "CONSTRAINTS": 350, - "CONTENT_P": 351, - "CONTINUE_P": 352, - "CONVERSION_P": 353, - "COPY": 354, - "COST": 355, - "CREATE": 356, - "CROSS": 357, - "CSV": 358, - "CUBE": 359, - "CURRENT_P": 360, - "CURRENT_CATALOG": 361, - "CURRENT_DATE": 362, - "CURRENT_ROLE": 363, - "CURRENT_SCHEMA": 364, - "CURRENT_TIME": 365, - "CURRENT_TIMESTAMP": 366, - "CURRENT_USER": 367, - "CURSOR": 368, - "CYCLE": 369, - "DATA_P": 370, - "DATABASE": 371, - "DAY_P": 372, - "DEALLOCATE": 373, - "DEC": 374, - "DECIMAL_P": 375, - "DECLARE": 376, - "DEFAULT": 377, - "DEFAULTS": 378, - "DEFERRABLE": 379, - "DEFERRED": 380, - "DEFINER": 381, - "DELETE_P": 382, - "DELIMITER": 383, - "DELIMITERS": 384, - "DEPENDS": 385, - "DEPTH": 386, - "DESC": 387, - "DETACH": 388, - "DICTIONARY": 389, - "DISABLE_P": 390, - "DISCARD": 391, - "DISTINCT": 392, - "DO": 393, - "DOCUMENT_P": 394, - "DOMAIN_P": 395, - "DOUBLE_P": 396, - "DROP": 397, - "EACH": 398, - "ELSE": 399, - "EMPTY_P": 400, - "ENABLE_P": 401, - "ENCODING": 402, - "ENCRYPTED": 403, - "END_P": 404, - "ENUM_P": 405, - "ERROR_P": 406, - "ESCAPE": 407, - "EVENT": 408, - "EXCEPT": 409, - "EXCLUDE": 410, - "EXCLUDING": 411, - "EXCLUSIVE": 412, - "EXECUTE": 413, - "EXISTS": 414, - "EXPLAIN": 415, - "EXPRESSION": 416, - "EXTENSION": 417, - "EXTERNAL": 418, - "EXTRACT": 419, - "FALSE_P": 420, - "FAMILY": 421, - "FETCH": 422, - "FILTER": 423, - "FINALIZE": 424, - "FIRST_P": 425, - "FLOAT_P": 426, - "FOLLOWING": 427, - "FOR": 428, - "FORCE": 429, - "FOREIGN": 430, - "FORMAT": 431, - "FORWARD": 432, - "FREEZE": 433, - "FROM": 434, - "FULL": 435, - "FUNCTION": 436, - "FUNCTIONS": 437, - "GENERATED": 438, - "GLOBAL": 439, - "GRANT": 440, - "GRANTED": 441, - "GREATEST": 442, - "GROUP_P": 443, - "GROUPING": 444, - "GROUPS": 445, - "HANDLER": 446, - "HAVING": 447, - "HEADER_P": 448, - "HOLD": 449, - "HOUR_P": 450, - "IDENTITY_P": 451, - "IF_P": 452, - "ILIKE": 453, - "IMMEDIATE": 454, - "IMMUTABLE": 455, - "IMPLICIT_P": 456, - "IMPORT_P": 457, - "IN_P": 458, - "INCLUDE": 459, - "INCLUDING": 460, - "INCREMENT": 461, - "INDENT": 462, - "INDEX": 463, - "INDEXES": 464, - "INHERIT": 465, - "INHERITS": 466, - "INITIALLY": 467, - "INLINE_P": 468, - "INNER_P": 469, - "INOUT": 470, - "INPUT_P": 471, - "INSENSITIVE": 472, - "INSERT": 473, - "INSTEAD": 474, - "INT_P": 475, - "INTEGER": 476, - "INTERSECT": 477, - "INTERVAL": 478, - "INTO": 479, - "INVOKER": 480, - "IS": 481, - "ISNULL": 482, - "ISOLATION": 483, - "JOIN": 484, - "JSON": 485, - "JSON_ARRAY": 486, - "JSON_ARRAYAGG": 487, - "JSON_EXISTS": 488, - "JSON_OBJECT": 489, - "JSON_OBJECTAGG": 490, - "JSON_QUERY": 491, - "JSON_SCALAR": 492, - "JSON_SERIALIZE": 493, - "JSON_TABLE": 494, - "JSON_VALUE": 495, - "KEEP": 496, - "KEY": 497, - "KEYS": 498, - "LABEL": 499, - "LANGUAGE": 500, - "LARGE_P": 501, - "LAST_P": 502, - "LATERAL_P": 503, - "LEADING": 504, - "LEAKPROOF": 505, - "LEAST": 506, - "LEFT": 507, - "LEVEL": 508, - "LIKE": 509, - "LIMIT": 510, - "LISTEN": 511, - "LOAD": 512, - "LOCAL": 513, - "LOCALTIME": 514, - "LOCALTIMESTAMP": 515, - "LOCATION": 516, - "LOCK_P": 517, - "LOCKED": 518, - "LOGGED": 519, - "MAPPING": 520, - "MATCH": 521, - "MATCHED": 522, - "MATERIALIZED": 523, - "MAXVALUE": 524, - "MERGE": 525, - "MERGE_ACTION": 526, - "METHOD": 527, - "MINUTE_P": 528, - "MINVALUE": 529, - "MODE": 530, - "MONTH_P": 531, - "MOVE": 532, - "NAME_P": 533, - "NAMES": 534, - "NATIONAL": 535, - "NATURAL": 536, - "NCHAR": 537, - "NESTED": 538, - "NEW": 539, - "NEXT": 540, - "NFC": 541, - "NFD": 542, - "NFKC": 543, - "NFKD": 544, - "NO": 545, - "NONE": 546, - "NORMALIZE": 547, - "NORMALIZED": 548, - "NOT": 549, - "NOTHING": 550, - "NOTIFY": 551, - "NOTNULL": 552, - "NOWAIT": 553, - "NULL_P": 554, - "NULLIF": 555, - "NULLS_P": 556, - "NUMERIC": 557, - "OBJECT_P": 558, - "OF": 559, - "OFF": 560, - "OFFSET": 561, - "OIDS": 562, - "OLD": 563, - "OMIT": 564, - "ON": 565, - "ONLY": 566, - "OPERATOR": 567, - "OPTION": 568, - "OPTIONS": 569, - "OR": 570, - "ORDER": 571, - "ORDINALITY": 572, - "OTHERS": 573, - "OUT_P": 574, - "OUTER_P": 575, - "OVER": 576, - "OVERLAPS": 577, - "OVERLAY": 578, - "OVERRIDING": 579, - "OWNED": 580, - "OWNER": 581, - "PARALLEL": 582, - "PARAMETER": 583, - "PARSER": 584, - "PARTIAL": 585, - "PARTITION": 586, - "PASSING": 587, - "PASSWORD": 588, - "PATH": 589, - "PLACING": 590, - "PLAN": 591, - "PLANS": 592, - "POLICY": 593, - "POSITION": 594, - "PRECEDING": 595, - "PRECISION": 596, - "PRESERVE": 597, - "PREPARE": 598, - "PREPARED": 599, - "PRIMARY": 600, - "PRIOR": 601, - "PRIVILEGES": 602, - "PROCEDURAL": 603, - "PROCEDURE": 604, - "PROCEDURES": 605, - "PROGRAM": 606, - "PUBLICATION": 607, - "QUOTE": 608, - "QUOTES": 609, - "RANGE": 610, - "READ": 611, - "REAL": 612, - "REASSIGN": 613, - "RECHECK": 614, - "RECURSIVE": 615, - "REF_P": 616, - "REFERENCES": 617, - "REFERENCING": 618, - "REFRESH": 619, - "REINDEX": 620, - "RELATIVE_P": 621, - "RELEASE": 622, - "RENAME": 623, - "REPEATABLE": 624, - "REPLACE": 625, - "REPLICA": 626, - "RESET": 627, - "RESTART": 628, - "RESTRICT": 629, - "RETURN": 630, - "RETURNING": 631, - "RETURNS": 632, - "REVOKE": 633, - "RIGHT": 634, - "ROLE": 635, - "ROLLBACK": 636, - "ROLLUP": 637, - "ROUTINE": 638, - "ROUTINES": 639, - "ROW": 640, - "ROWS": 641, - "RULE": 642, - "SAVEPOINT": 643, - "SCALAR": 644, - "SCHEMA": 645, - "SCHEMAS": 646, - "SCROLL": 647, - "SEARCH": 648, - "SECOND_P": 649, - "SECURITY": 650, - "SELECT": 651, - "SEQUENCE": 652, - "SEQUENCES": 653, - "SERIALIZABLE": 654, - "SERVER": 655, - "SESSION": 656, - "SESSION_USER": 657, - "SET": 658, - "SETS": 659, - "SETOF": 660, - "SHARE": 661, - "SHOW": 662, - "SIMILAR": 663, - "SIMPLE": 664, - "SKIP": 665, - "SMALLINT": 666, - "SNAPSHOT": 667, - "SOME": 668, - "SOURCE": 669, - "SQL_P": 670, - "STABLE": 671, - "STANDALONE_P": 672, - "START": 673, - "STATEMENT": 674, - "STATISTICS": 675, - "STDIN": 676, - "STDOUT": 677, - "STORAGE": 678, - "STORED": 679, - "STRICT_P": 680, - "STRING_P": 681, - "STRIP_P": 682, - "SUBSCRIPTION": 683, - "SUBSTRING": 684, - "SUPPORT": 685, - "SYMMETRIC": 686, - "SYSID": 687, - "SYSTEM_P": 688, - "SYSTEM_USER": 689, - "TABLE": 690, - "TABLES": 691, - "TABLESAMPLE": 692, - "TABLESPACE": 693, - "TARGET": 694, - "TEMP": 695, - "TEMPLATE": 696, - "TEMPORARY": 697, - "TEXT_P": 698, - "THEN": 699, - "TIES": 700, - "TIME": 701, - "TIMESTAMP": 702, - "TO": 703, - "TRAILING": 704, - "TRANSACTION": 705, - "TRANSFORM": 706, - "TREAT": 707, - "TRIGGER": 708, - "TRIM": 709, - "TRUE_P": 710, - "TRUNCATE": 711, - "TRUSTED": 712, - "TYPE_P": 713, - "TYPES_P": 714, - "UESCAPE": 715, - "UNBOUNDED": 716, - "UNCONDITIONAL": 717, - "UNCOMMITTED": 718, - "UNENCRYPTED": 719, - "UNION": 720, - "UNIQUE": 721, - "UNKNOWN": 722, - "UNLISTEN": 723, - "UNLOGGED": 724, - "UNTIL": 725, - "UPDATE": 726, - "USER": 727, - "USING": 728, - "VACUUM": 729, - "VALID": 730, - "VALIDATE": 731, - "VALIDATOR": 732, - "VALUE_P": 733, - "VALUES": 734, - "VARCHAR": 735, - "VARIADIC": 736, - "VARYING": 737, - "VERBOSE": 738, - "VERSION_P": 739, - "VIEW": 740, - "VIEWS": 741, - "VOLATILE": 742, - "WHEN": 743, - "WHERE": 744, - "WHITESPACE_P": 745, - "WINDOW": 746, - "WITH": 747, - "WITHIN": 748, - "WITHOUT": 749, - "WORK": 750, - "WRAPPER": 751, - "WRITE": 752, - "XML_P": 753, - "XMLATTRIBUTES": 754, - "XMLCONCAT": 755, - "XMLELEMENT": 756, - "XMLEXISTS": 757, - "XMLFOREST": 758, - "XMLNAMESPACES": 759, - "XMLPARSE": 760, - "XMLPI": 761, - "XMLROOT": 762, - "XMLSERIALIZE": 763, - "XMLTABLE": 764, - "YEAR_P": 765, - "YES_P": 766, - "ZONE": 767, - "FORMAT_LA": 768, - "NOT_LA": 769, - "NULLS_LA": 770, - "WITH_LA": 771, - "WITHOUT_LA": 772, - "MODE_TYPE_NAME": 773, - "MODE_PLPGSQL_EXPR": 774, - "MODE_PLPGSQL_ASSIGN1": 775, - "MODE_PLPGSQL_ASSIGN2": 776, - "MODE_PLPGSQL_ASSIGN3": 777, - "UMINUS": 778 + "CONFIGURATION": 345, + "CONFLICT": 346, + "CONNECTION": 347, + "CONSTRAINT": 348, + "CONSTRAINTS": 349, + "CONTENT_P": 350, + "CONTINUE_P": 351, + "CONVERSION_P": 352, + "COPY": 353, + "COST": 354, + "CREATE": 355, + "CROSS": 356, + "CSV": 357, + "CUBE": 358, + "CURRENT_P": 359, + "CURRENT_CATALOG": 360, + "CURRENT_DATE": 361, + "CURRENT_ROLE": 362, + "CURRENT_SCHEMA": 363, + "CURRENT_TIME": 364, + "CURRENT_TIMESTAMP": 365, + "CURRENT_USER": 366, + "CURSOR": 367, + "CYCLE": 368, + "DATA_P": 369, + "DATABASE": 370, + "DAY_P": 371, + "DEALLOCATE": 372, + "DEC": 373, + "DECIMAL_P": 374, + "DECLARE": 375, + "DEFAULT": 376, + "DEFAULTS": 377, + "DEFERRABLE": 378, + "DEFERRED": 379, + "DEFINER": 380, + "DELETE_P": 381, + "DELIMITER": 382, + "DELIMITERS": 383, + "DEPENDS": 384, + "DEPTH": 385, + "DESC": 386, + "DETACH": 387, + "DICTIONARY": 388, + "DISABLE_P": 389, + "DISCARD": 390, + "DISTINCT": 391, + "DO": 392, + "DOCUMENT_P": 393, + "DOMAIN_P": 394, + "DOUBLE_P": 395, + "DROP": 396, + "EACH": 397, + "ELSE": 398, + "ENABLE_P": 399, + "ENCODING": 400, + "ENCRYPTED": 401, + "END_P": 402, + "ENUM_P": 403, + "ESCAPE": 404, + "EVENT": 405, + "EXCEPT": 406, + "EXCLUDE": 407, + "EXCLUDING": 408, + "EXCLUSIVE": 409, + "EXECUTE": 410, + "EXISTS": 411, + "EXPLAIN": 412, + "EXPRESSION": 413, + "EXTENSION": 414, + "EXTERNAL": 415, + "EXTRACT": 416, + "FALSE_P": 417, + "FAMILY": 418, + "FETCH": 419, + "FILTER": 420, + "FINALIZE": 421, + "FIRST_P": 422, + "FLOAT_P": 423, + "FOLLOWING": 424, + "FOR": 425, + "FORCE": 426, + "FOREIGN": 427, + "FORMAT": 428, + "FORWARD": 429, + "FREEZE": 430, + "FROM": 431, + "FULL": 432, + "FUNCTION": 433, + "FUNCTIONS": 434, + "GENERATED": 435, + "GLOBAL": 436, + "GRANT": 437, + "GRANTED": 438, + "GREATEST": 439, + "GROUP_P": 440, + "GROUPING": 441, + "GROUPS": 442, + "HANDLER": 443, + "HAVING": 444, + "HEADER_P": 445, + "HOLD": 446, + "HOUR_P": 447, + "IDENTITY_P": 448, + "IF_P": 449, + "ILIKE": 450, + "IMMEDIATE": 451, + "IMMUTABLE": 452, + "IMPLICIT_P": 453, + "IMPORT_P": 454, + "IN_P": 455, + "INCLUDE": 456, + "INCLUDING": 457, + "INCREMENT": 458, + "INDENT": 459, + "INDEX": 460, + "INDEXES": 461, + "INHERIT": 462, + "INHERITS": 463, + "INITIALLY": 464, + "INLINE_P": 465, + "INNER_P": 466, + "INOUT": 467, + "INPUT_P": 468, + "INSENSITIVE": 469, + "INSERT": 470, + "INSTEAD": 471, + "INT_P": 472, + "INTEGER": 473, + "INTERSECT": 474, + "INTERVAL": 475, + "INTO": 476, + "INVOKER": 477, + "IS": 478, + "ISNULL": 479, + "ISOLATION": 480, + "JOIN": 481, + "JSON": 482, + "JSON_ARRAY": 483, + "JSON_ARRAYAGG": 484, + "JSON_OBJECT": 485, + "JSON_OBJECTAGG": 486, + "KEY": 487, + "KEYS": 488, + "LABEL": 489, + "LANGUAGE": 490, + "LARGE_P": 491, + "LAST_P": 492, + "LATERAL_P": 493, + "LEADING": 494, + "LEAKPROOF": 495, + "LEAST": 496, + "LEFT": 497, + "LEVEL": 498, + "LIKE": 499, + "LIMIT": 500, + "LISTEN": 501, + "LOAD": 502, + "LOCAL": 503, + "LOCALTIME": 504, + "LOCALTIMESTAMP": 505, + "LOCATION": 506, + "LOCK_P": 507, + "LOCKED": 508, + "LOGGED": 509, + "MAPPING": 510, + "MATCH": 511, + "MATCHED": 512, + "MATERIALIZED": 513, + "MAXVALUE": 514, + "MERGE": 515, + "METHOD": 516, + "MINUTE_P": 517, + "MINVALUE": 518, + "MODE": 519, + "MONTH_P": 520, + "MOVE": 521, + "NAME_P": 522, + "NAMES": 523, + "NATIONAL": 524, + "NATURAL": 525, + "NCHAR": 526, + "NEW": 527, + "NEXT": 528, + "NFC": 529, + "NFD": 530, + "NFKC": 531, + "NFKD": 532, + "NO": 533, + "NONE": 534, + "NORMALIZE": 535, + "NORMALIZED": 536, + "NOT": 537, + "NOTHING": 538, + "NOTIFY": 539, + "NOTNULL": 540, + "NOWAIT": 541, + "NULL_P": 542, + "NULLIF": 543, + "NULLS_P": 544, + "NUMERIC": 545, + "OBJECT_P": 546, + "OF": 547, + "OFF": 548, + "OFFSET": 549, + "OIDS": 550, + "OLD": 551, + "ON": 552, + "ONLY": 553, + "OPERATOR": 554, + "OPTION": 555, + "OPTIONS": 556, + "OR": 557, + "ORDER": 558, + "ORDINALITY": 559, + "OTHERS": 560, + "OUT_P": 561, + "OUTER_P": 562, + "OVER": 563, + "OVERLAPS": 564, + "OVERLAY": 565, + "OVERRIDING": 566, + "OWNED": 567, + "OWNER": 568, + "PARALLEL": 569, + "PARAMETER": 570, + "PARSER": 571, + "PARTIAL": 572, + "PARTITION": 573, + "PASSING": 574, + "PASSWORD": 575, + "PLACING": 576, + "PLANS": 577, + "POLICY": 578, + "POSITION": 579, + "PRECEDING": 580, + "PRECISION": 581, + "PRESERVE": 582, + "PREPARE": 583, + "PREPARED": 584, + "PRIMARY": 585, + "PRIOR": 586, + "PRIVILEGES": 587, + "PROCEDURAL": 588, + "PROCEDURE": 589, + "PROCEDURES": 590, + "PROGRAM": 591, + "PUBLICATION": 592, + "QUOTE": 593, + "RANGE": 594, + "READ": 595, + "REAL": 596, + "REASSIGN": 597, + "RECHECK": 598, + "RECURSIVE": 599, + "REF_P": 600, + "REFERENCES": 601, + "REFERENCING": 602, + "REFRESH": 603, + "REINDEX": 604, + "RELATIVE_P": 605, + "RELEASE": 606, + "RENAME": 607, + "REPEATABLE": 608, + "REPLACE": 609, + "REPLICA": 610, + "RESET": 611, + "RESTART": 612, + "RESTRICT": 613, + "RETURN": 614, + "RETURNING": 615, + "RETURNS": 616, + "REVOKE": 617, + "RIGHT": 618, + "ROLE": 619, + "ROLLBACK": 620, + "ROLLUP": 621, + "ROUTINE": 622, + "ROUTINES": 623, + "ROW": 624, + "ROWS": 625, + "RULE": 626, + "SAVEPOINT": 627, + "SCALAR": 628, + "SCHEMA": 629, + "SCHEMAS": 630, + "SCROLL": 631, + "SEARCH": 632, + "SECOND_P": 633, + "SECURITY": 634, + "SELECT": 635, + "SEQUENCE": 636, + "SEQUENCES": 637, + "SERIALIZABLE": 638, + "SERVER": 639, + "SESSION": 640, + "SESSION_USER": 641, + "SET": 642, + "SETS": 643, + "SETOF": 644, + "SHARE": 645, + "SHOW": 646, + "SIMILAR": 647, + "SIMPLE": 648, + "SKIP": 649, + "SMALLINT": 650, + "SNAPSHOT": 651, + "SOME": 652, + "SQL_P": 653, + "STABLE": 654, + "STANDALONE_P": 655, + "START": 656, + "STATEMENT": 657, + "STATISTICS": 658, + "STDIN": 659, + "STDOUT": 660, + "STORAGE": 661, + "STORED": 662, + "STRICT_P": 663, + "STRIP_P": 664, + "SUBSCRIPTION": 665, + "SUBSTRING": 666, + "SUPPORT": 667, + "SYMMETRIC": 668, + "SYSID": 669, + "SYSTEM_P": 670, + "SYSTEM_USER": 671, + "TABLE": 672, + "TABLES": 673, + "TABLESAMPLE": 674, + "TABLESPACE": 675, + "TEMP": 676, + "TEMPLATE": 677, + "TEMPORARY": 678, + "TEXT_P": 679, + "THEN": 680, + "TIES": 681, + "TIME": 682, + "TIMESTAMP": 683, + "TO": 684, + "TRAILING": 685, + "TRANSACTION": 686, + "TRANSFORM": 687, + "TREAT": 688, + "TRIGGER": 689, + "TRIM": 690, + "TRUE_P": 691, + "TRUNCATE": 692, + "TRUSTED": 693, + "TYPE_P": 694, + "TYPES_P": 695, + "UESCAPE": 696, + "UNBOUNDED": 697, + "UNCOMMITTED": 698, + "UNENCRYPTED": 699, + "UNION": 700, + "UNIQUE": 701, + "UNKNOWN": 702, + "UNLISTEN": 703, + "UNLOGGED": 704, + "UNTIL": 705, + "UPDATE": 706, + "USER": 707, + "USING": 708, + "VACUUM": 709, + "VALID": 710, + "VALIDATE": 711, + "VALIDATOR": 712, + "VALUE_P": 713, + "VALUES": 714, + "VARCHAR": 715, + "VARIADIC": 716, + "VARYING": 717, + "VERBOSE": 718, + "VERSION_P": 719, + "VIEW": 720, + "VIEWS": 721, + "VOLATILE": 722, + "WHEN": 723, + "WHERE": 724, + "WHITESPACE_P": 725, + "WINDOW": 726, + "WITH": 727, + "WITHIN": 728, + "WITHOUT": 729, + "WORK": 730, + "WRAPPER": 731, + "WRITE": 732, + "XML_P": 733, + "XMLATTRIBUTES": 734, + "XMLCONCAT": 735, + "XMLELEMENT": 736, + "XMLEXISTS": 737, + "XMLFOREST": 738, + "XMLNAMESPACES": 739, + "XMLPARSE": 740, + "XMLPI": 741, + "XMLROOT": 742, + "XMLSERIALIZE": 743, + "XMLTABLE": 744, + "YEAR_P": 745, + "YES_P": 746, + "ZONE": 747, + "FORMAT_LA": 748, + "NOT_LA": 749, + "NULLS_LA": 750, + "WITH_LA": 751, + "WITHOUT_LA": 752, + "MODE_TYPE_NAME": 753, + "MODE_PLPGSQL_EXPR": 754, + "MODE_PLPGSQL_ASSIGN1": 755, + "MODE_PLPGSQL_ASSIGN2": 756, + "MODE_PLPGSQL_ASSIGN3": 757, + "UMINUS": 758 } } \ No newline at end of file diff --git a/packages/enums-utils/src/enums2str.json b/__fixtures__/output/enum-maps/json/enabled/enum-to-str.json similarity index 53% rename from packages/enums-utils/src/enums2str.json rename to __fixtures__/output/enum-maps/json/enabled/enum-to-str.json index 65a1b081..1c51be68 100644 --- a/packages/enums-utils/src/enums2str.json +++ b/__fixtures__/output/enum-maps/json/enabled/enum-to-str.json @@ -1,4 +1,9 @@ { + "OverridingKind": { + "0": "OVERRIDING_NOT_SET", + "1": "OVERRIDING_USER_VALUE", + "2": "OVERRIDING_SYSTEM_VALUE" + }, "QuerySource": { "0": "QSRC_ORIGINAL", "1": "QSRC_PARSER", @@ -104,18 +109,6 @@ "1": "CTEMaterializeAlways", "2": "CTEMaterializeNever" }, - "JsonQuotes": { - "0": "JS_QUOTES_UNSPEC", - "1": "JS_QUOTES_KEEP", - "2": "JS_QUOTES_OMIT" - }, - "JsonTableColumnType": { - "0": "JTC_FOR_ORDINALITY", - "1": "JTC_REGULAR", - "2": "JTC_EXISTS", - "3": "JTC_FORMATTED", - "4": "JTC_NESTED" - }, "SetOperation": { "0": "SETOP_NONE", "1": "SETOP_UNION", @@ -187,67 +180,66 @@ "3": "AT_CookedColumnDefault", "4": "AT_DropNotNull", "5": "AT_SetNotNull", - "6": "AT_SetExpression", - "7": "AT_DropExpression", - "8": "AT_CheckNotNull", - "9": "AT_SetStatistics", - "10": "AT_SetOptions", - "11": "AT_ResetOptions", - "12": "AT_SetStorage", - "13": "AT_SetCompression", - "14": "AT_DropColumn", - "15": "AT_AddIndex", - "16": "AT_ReAddIndex", - "17": "AT_AddConstraint", - "18": "AT_ReAddConstraint", - "19": "AT_ReAddDomainConstraint", - "20": "AT_AlterConstraint", - "21": "AT_ValidateConstraint", - "22": "AT_AddIndexConstraint", - "23": "AT_DropConstraint", - "24": "AT_ReAddComment", - "25": "AT_AlterColumnType", - "26": "AT_AlterColumnGenericOptions", - "27": "AT_ChangeOwner", - "28": "AT_ClusterOn", - "29": "AT_DropCluster", - "30": "AT_SetLogged", - "31": "AT_SetUnLogged", - "32": "AT_DropOids", - "33": "AT_SetAccessMethod", - "34": "AT_SetTableSpace", - "35": "AT_SetRelOptions", - "36": "AT_ResetRelOptions", - "37": "AT_ReplaceRelOptions", - "38": "AT_EnableTrig", - "39": "AT_EnableAlwaysTrig", - "40": "AT_EnableReplicaTrig", - "41": "AT_DisableTrig", - "42": "AT_EnableTrigAll", - "43": "AT_DisableTrigAll", - "44": "AT_EnableTrigUser", - "45": "AT_DisableTrigUser", - "46": "AT_EnableRule", - "47": "AT_EnableAlwaysRule", - "48": "AT_EnableReplicaRule", - "49": "AT_DisableRule", - "50": "AT_AddInherit", - "51": "AT_DropInherit", - "52": "AT_AddOf", - "53": "AT_DropOf", - "54": "AT_ReplicaIdentity", - "55": "AT_EnableRowSecurity", - "56": "AT_DisableRowSecurity", - "57": "AT_ForceRowSecurity", - "58": "AT_NoForceRowSecurity", - "59": "AT_GenericOptions", - "60": "AT_AttachPartition", - "61": "AT_DetachPartition", - "62": "AT_DetachPartitionFinalize", - "63": "AT_AddIdentity", - "64": "AT_SetIdentity", - "65": "AT_DropIdentity", - "66": "AT_ReAddStatistics" + "6": "AT_DropExpression", + "7": "AT_CheckNotNull", + "8": "AT_SetStatistics", + "9": "AT_SetOptions", + "10": "AT_ResetOptions", + "11": "AT_SetStorage", + "12": "AT_SetCompression", + "13": "AT_DropColumn", + "14": "AT_AddIndex", + "15": "AT_ReAddIndex", + "16": "AT_AddConstraint", + "17": "AT_ReAddConstraint", + "18": "AT_ReAddDomainConstraint", + "19": "AT_AlterConstraint", + "20": "AT_ValidateConstraint", + "21": "AT_AddIndexConstraint", + "22": "AT_DropConstraint", + "23": "AT_ReAddComment", + "24": "AT_AlterColumnType", + "25": "AT_AlterColumnGenericOptions", + "26": "AT_ChangeOwner", + "27": "AT_ClusterOn", + "28": "AT_DropCluster", + "29": "AT_SetLogged", + "30": "AT_SetUnLogged", + "31": "AT_DropOids", + "32": "AT_SetAccessMethod", + "33": "AT_SetTableSpace", + "34": "AT_SetRelOptions", + "35": "AT_ResetRelOptions", + "36": "AT_ReplaceRelOptions", + "37": "AT_EnableTrig", + "38": "AT_EnableAlwaysTrig", + "39": "AT_EnableReplicaTrig", + "40": "AT_DisableTrig", + "41": "AT_EnableTrigAll", + "42": "AT_DisableTrigAll", + "43": "AT_EnableTrigUser", + "44": "AT_DisableTrigUser", + "45": "AT_EnableRule", + "46": "AT_EnableAlwaysRule", + "47": "AT_EnableReplicaRule", + "48": "AT_DisableRule", + "49": "AT_AddInherit", + "50": "AT_DropInherit", + "51": "AT_AddOf", + "52": "AT_DropOf", + "53": "AT_ReplicaIdentity", + "54": "AT_EnableRowSecurity", + "55": "AT_DisableRowSecurity", + "56": "AT_ForceRowSecurity", + "57": "AT_NoForceRowSecurity", + "58": "AT_GenericOptions", + "59": "AT_AttachPartition", + "60": "AT_DetachPartition", + "61": "AT_DetachPartitionFinalize", + "62": "AT_AddIdentity", + "63": "AT_SetIdentity", + "64": "AT_DropIdentity", + "65": "AT_ReAddStatistics" }, "GrantTargetType": { "0": "ACL_TARGET_OBJECT", @@ -360,21 +352,12 @@ "6": "ALTER_SUBSCRIPTION_ENABLED", "7": "ALTER_SUBSCRIPTION_SKIP" }, - "OverridingKind": { - "0": "OVERRIDING_NOT_SET", - "1": "OVERRIDING_USER_VALUE", - "2": "OVERRIDING_SYSTEM_VALUE" - }, "OnCommitAction": { "0": "ONCOMMIT_NOOP", "1": "ONCOMMIT_PRESERVE_ROWS", "2": "ONCOMMIT_DELETE_ROWS", "3": "ONCOMMIT_DROP" }, - "TableFuncType": { - "0": "TFT_XMLTABLE", - "1": "TFT_JSON_TABLE" - }, "ParamKind": { "0": "PARAM_EXTERN", "1": "PARAM_EXEC", @@ -466,10 +449,7 @@ "0": "JSCTOR_JSON_OBJECT", "1": "JSCTOR_JSON_ARRAY", "2": "JSCTOR_JSON_OBJECTAGG", - "3": "JSCTOR_JSON_ARRAYAGG", - "4": "JSCTOR_JSON_PARSE", - "5": "JSCTOR_JSON_SCALAR", - "6": "JSCTOR_JSON_SERIALIZE" + "3": "JSCTOR_JSON_ARRAYAGG" }, "JsonValueType": { "0": "JS_TYPE_ANY", @@ -477,29 +457,6 @@ "2": "JS_TYPE_ARRAY", "3": "JS_TYPE_SCALAR" }, - "JsonWrapper": { - "0": "JSW_UNSPEC", - "1": "JSW_NONE", - "2": "JSW_CONDITIONAL", - "3": "JSW_UNCONDITIONAL" - }, - "JsonBehaviorType": { - "0": "JSON_BEHAVIOR_NULL", - "1": "JSON_BEHAVIOR_ERROR", - "2": "JSON_BEHAVIOR_EMPTY", - "3": "JSON_BEHAVIOR_TRUE", - "4": "JSON_BEHAVIOR_FALSE", - "5": "JSON_BEHAVIOR_UNKNOWN", - "6": "JSON_BEHAVIOR_EMPTY_ARRAY", - "7": "JSON_BEHAVIOR_EMPTY_OBJECT", - "8": "JSON_BEHAVIOR_DEFAULT" - }, - "JsonExprOp": { - "0": "JSON_EXISTS_OP", - "1": "JSON_QUERY_OP", - "2": "JSON_VALUE_OP", - "3": "JSON_TABLE_OP" - }, "NullTestType": { "0": "IS_NULL", "1": "IS_NOT_NULL" @@ -512,11 +469,6 @@ "4": "IS_UNKNOWN", "5": "IS_NOT_UNKNOWN" }, - "MergeMatchKind": { - "0": "MERGE_WHEN_MATCHED", - "1": "MERGE_WHEN_NOT_MATCHED_BY_SOURCE", - "2": "MERGE_WHEN_NOT_MATCHED_BY_TARGET" - }, "CmdType": { "0": "CMD_UNKNOWN", "1": "CMD_SELECT", @@ -703,439 +655,419 @@ "342": "COMMITTED", "343": "COMPRESSION", "344": "CONCURRENTLY", - "345": "CONDITIONAL", - "346": "CONFIGURATION", - "347": "CONFLICT", - "348": "CONNECTION", - "349": "CONSTRAINT", - "350": "CONSTRAINTS", - "351": "CONTENT_P", - "352": "CONTINUE_P", - "353": "CONVERSION_P", - "354": "COPY", - "355": "COST", - "356": "CREATE", - "357": "CROSS", - "358": "CSV", - "359": "CUBE", - "360": "CURRENT_P", - "361": "CURRENT_CATALOG", - "362": "CURRENT_DATE", - "363": "CURRENT_ROLE", - "364": "CURRENT_SCHEMA", - "365": "CURRENT_TIME", - "366": "CURRENT_TIMESTAMP", - "367": "CURRENT_USER", - "368": "CURSOR", - "369": "CYCLE", - "370": "DATA_P", - "371": "DATABASE", - "372": "DAY_P", - "373": "DEALLOCATE", - "374": "DEC", - "375": "DECIMAL_P", - "376": "DECLARE", - "377": "DEFAULT", - "378": "DEFAULTS", - "379": "DEFERRABLE", - "380": "DEFERRED", - "381": "DEFINER", - "382": "DELETE_P", - "383": "DELIMITER", - "384": "DELIMITERS", - "385": "DEPENDS", - "386": "DEPTH", - "387": "DESC", - "388": "DETACH", - "389": "DICTIONARY", - "390": "DISABLE_P", - "391": "DISCARD", - "392": "DISTINCT", - "393": "DO", - "394": "DOCUMENT_P", - "395": "DOMAIN_P", - "396": "DOUBLE_P", - "397": "DROP", - "398": "EACH", - "399": "ELSE", - "400": "EMPTY_P", - "401": "ENABLE_P", - "402": "ENCODING", - "403": "ENCRYPTED", - "404": "END_P", - "405": "ENUM_P", - "406": "ERROR_P", - "407": "ESCAPE", - "408": "EVENT", - "409": "EXCEPT", - "410": "EXCLUDE", - "411": "EXCLUDING", - "412": "EXCLUSIVE", - "413": "EXECUTE", - "414": "EXISTS", - "415": "EXPLAIN", - "416": "EXPRESSION", - "417": "EXTENSION", - "418": "EXTERNAL", - "419": "EXTRACT", - "420": "FALSE_P", - "421": "FAMILY", - "422": "FETCH", - "423": "FILTER", - "424": "FINALIZE", - "425": "FIRST_P", - "426": "FLOAT_P", - "427": "FOLLOWING", - "428": "FOR", - "429": "FORCE", - "430": "FOREIGN", - "431": "FORMAT", - "432": "FORWARD", - "433": "FREEZE", - "434": "FROM", - "435": "FULL", - "436": "FUNCTION", - "437": "FUNCTIONS", - "438": "GENERATED", - "439": "GLOBAL", - "440": "GRANT", - "441": "GRANTED", - "442": "GREATEST", - "443": "GROUP_P", - "444": "GROUPING", - "445": "GROUPS", - "446": "HANDLER", - "447": "HAVING", - "448": "HEADER_P", - "449": "HOLD", - "450": "HOUR_P", - "451": "IDENTITY_P", - "452": "IF_P", - "453": "ILIKE", - "454": "IMMEDIATE", - "455": "IMMUTABLE", - "456": "IMPLICIT_P", - "457": "IMPORT_P", - "458": "IN_P", - "459": "INCLUDE", - "460": "INCLUDING", - "461": "INCREMENT", - "462": "INDENT", - "463": "INDEX", - "464": "INDEXES", - "465": "INHERIT", - "466": "INHERITS", - "467": "INITIALLY", - "468": "INLINE_P", - "469": "INNER_P", - "470": "INOUT", - "471": "INPUT_P", - "472": "INSENSITIVE", - "473": "INSERT", - "474": "INSTEAD", - "475": "INT_P", - "476": "INTEGER", - "477": "INTERSECT", - "478": "INTERVAL", - "479": "INTO", - "480": "INVOKER", - "481": "IS", - "482": "ISNULL", - "483": "ISOLATION", - "484": "JOIN", - "485": "JSON", - "486": "JSON_ARRAY", - "487": "JSON_ARRAYAGG", - "488": "JSON_EXISTS", - "489": "JSON_OBJECT", - "490": "JSON_OBJECTAGG", - "491": "JSON_QUERY", - "492": "JSON_SCALAR", - "493": "JSON_SERIALIZE", - "494": "JSON_TABLE", - "495": "JSON_VALUE", - "496": "KEEP", - "497": "KEY", - "498": "KEYS", - "499": "LABEL", - "500": "LANGUAGE", - "501": "LARGE_P", - "502": "LAST_P", - "503": "LATERAL_P", - "504": "LEADING", - "505": "LEAKPROOF", - "506": "LEAST", - "507": "LEFT", - "508": "LEVEL", - "509": "LIKE", - "510": "LIMIT", - "511": "LISTEN", - "512": "LOAD", - "513": "LOCAL", - "514": "LOCALTIME", - "515": "LOCALTIMESTAMP", - "516": "LOCATION", - "517": "LOCK_P", - "518": "LOCKED", - "519": "LOGGED", - "520": "MAPPING", - "521": "MATCH", - "522": "MATCHED", - "523": "MATERIALIZED", - "524": "MAXVALUE", - "525": "MERGE", - "526": "MERGE_ACTION", - "527": "METHOD", - "528": "MINUTE_P", - "529": "MINVALUE", - "530": "MODE", - "531": "MONTH_P", - "532": "MOVE", - "533": "NAME_P", - "534": "NAMES", - "535": "NATIONAL", - "536": "NATURAL", - "537": "NCHAR", - "538": "NESTED", - "539": "NEW", - "540": "NEXT", - "541": "NFC", - "542": "NFD", - "543": "NFKC", - "544": "NFKD", - "545": "NO", - "546": "NONE", - "547": "NORMALIZE", - "548": "NORMALIZED", - "549": "NOT", - "550": "NOTHING", - "551": "NOTIFY", - "552": "NOTNULL", - "553": "NOWAIT", - "554": "NULL_P", - "555": "NULLIF", - "556": "NULLS_P", - "557": "NUMERIC", - "558": "OBJECT_P", - "559": "OF", - "560": "OFF", - "561": "OFFSET", - "562": "OIDS", - "563": "OLD", - "564": "OMIT", - "565": "ON", - "566": "ONLY", - "567": "OPERATOR", - "568": "OPTION", - "569": "OPTIONS", - "570": "OR", - "571": "ORDER", - "572": "ORDINALITY", - "573": "OTHERS", - "574": "OUT_P", - "575": "OUTER_P", - "576": "OVER", - "577": "OVERLAPS", - "578": "OVERLAY", - "579": "OVERRIDING", - "580": "OWNED", - "581": "OWNER", - "582": "PARALLEL", - "583": "PARAMETER", - "584": "PARSER", - "585": "PARTIAL", - "586": "PARTITION", - "587": "PASSING", - "588": "PASSWORD", - "589": "PATH", - "590": "PLACING", - "591": "PLAN", - "592": "PLANS", - "593": "POLICY", - "594": "POSITION", - "595": "PRECEDING", - "596": "PRECISION", - "597": "PRESERVE", - "598": "PREPARE", - "599": "PREPARED", - "600": "PRIMARY", - "601": "PRIOR", - "602": "PRIVILEGES", - "603": "PROCEDURAL", - "604": "PROCEDURE", - "605": "PROCEDURES", - "606": "PROGRAM", - "607": "PUBLICATION", - "608": "QUOTE", - "609": "QUOTES", - "610": "RANGE", - "611": "READ", - "612": "REAL", - "613": "REASSIGN", - "614": "RECHECK", - "615": "RECURSIVE", - "616": "REF_P", - "617": "REFERENCES", - "618": "REFERENCING", - "619": "REFRESH", - "620": "REINDEX", - "621": "RELATIVE_P", - "622": "RELEASE", - "623": "RENAME", - "624": "REPEATABLE", - "625": "REPLACE", - "626": "REPLICA", - "627": "RESET", - "628": "RESTART", - "629": "RESTRICT", - "630": "RETURN", - "631": "RETURNING", - "632": "RETURNS", - "633": "REVOKE", - "634": "RIGHT", - "635": "ROLE", - "636": "ROLLBACK", - "637": "ROLLUP", - "638": "ROUTINE", - "639": "ROUTINES", - "640": "ROW", - "641": "ROWS", - "642": "RULE", - "643": "SAVEPOINT", - "644": "SCALAR", - "645": "SCHEMA", - "646": "SCHEMAS", - "647": "SCROLL", - "648": "SEARCH", - "649": "SECOND_P", - "650": "SECURITY", - "651": "SELECT", - "652": "SEQUENCE", - "653": "SEQUENCES", - "654": "SERIALIZABLE", - "655": "SERVER", - "656": "SESSION", - "657": "SESSION_USER", - "658": "SET", - "659": "SETS", - "660": "SETOF", - "661": "SHARE", - "662": "SHOW", - "663": "SIMILAR", - "664": "SIMPLE", - "665": "SKIP", - "666": "SMALLINT", - "667": "SNAPSHOT", - "668": "SOME", - "669": "SOURCE", - "670": "SQL_P", - "671": "STABLE", - "672": "STANDALONE_P", - "673": "START", - "674": "STATEMENT", - "675": "STATISTICS", - "676": "STDIN", - "677": "STDOUT", - "678": "STORAGE", - "679": "STORED", - "680": "STRICT_P", - "681": "STRING_P", - "682": "STRIP_P", - "683": "SUBSCRIPTION", - "684": "SUBSTRING", - "685": "SUPPORT", - "686": "SYMMETRIC", - "687": "SYSID", - "688": "SYSTEM_P", - "689": "SYSTEM_USER", - "690": "TABLE", - "691": "TABLES", - "692": "TABLESAMPLE", - "693": "TABLESPACE", - "694": "TARGET", - "695": "TEMP", - "696": "TEMPLATE", - "697": "TEMPORARY", - "698": "TEXT_P", - "699": "THEN", - "700": "TIES", - "701": "TIME", - "702": "TIMESTAMP", - "703": "TO", - "704": "TRAILING", - "705": "TRANSACTION", - "706": "TRANSFORM", - "707": "TREAT", - "708": "TRIGGER", - "709": "TRIM", - "710": "TRUE_P", - "711": "TRUNCATE", - "712": "TRUSTED", - "713": "TYPE_P", - "714": "TYPES_P", - "715": "UESCAPE", - "716": "UNBOUNDED", - "717": "UNCONDITIONAL", - "718": "UNCOMMITTED", - "719": "UNENCRYPTED", - "720": "UNION", - "721": "UNIQUE", - "722": "UNKNOWN", - "723": "UNLISTEN", - "724": "UNLOGGED", - "725": "UNTIL", - "726": "UPDATE", - "727": "USER", - "728": "USING", - "729": "VACUUM", - "730": "VALID", - "731": "VALIDATE", - "732": "VALIDATOR", - "733": "VALUE_P", - "734": "VALUES", - "735": "VARCHAR", - "736": "VARIADIC", - "737": "VARYING", - "738": "VERBOSE", - "739": "VERSION_P", - "740": "VIEW", - "741": "VIEWS", - "742": "VOLATILE", - "743": "WHEN", - "744": "WHERE", - "745": "WHITESPACE_P", - "746": "WINDOW", - "747": "WITH", - "748": "WITHIN", - "749": "WITHOUT", - "750": "WORK", - "751": "WRAPPER", - "752": "WRITE", - "753": "XML_P", - "754": "XMLATTRIBUTES", - "755": "XMLCONCAT", - "756": "XMLELEMENT", - "757": "XMLEXISTS", - "758": "XMLFOREST", - "759": "XMLNAMESPACES", - "760": "XMLPARSE", - "761": "XMLPI", - "762": "XMLROOT", - "763": "XMLSERIALIZE", - "764": "XMLTABLE", - "765": "YEAR_P", - "766": "YES_P", - "767": "ZONE", - "768": "FORMAT_LA", - "769": "NOT_LA", - "770": "NULLS_LA", - "771": "WITH_LA", - "772": "WITHOUT_LA", - "773": "MODE_TYPE_NAME", - "774": "MODE_PLPGSQL_EXPR", - "775": "MODE_PLPGSQL_ASSIGN1", - "776": "MODE_PLPGSQL_ASSIGN2", - "777": "MODE_PLPGSQL_ASSIGN3", - "778": "UMINUS" + "345": "CONFIGURATION", + "346": "CONFLICT", + "347": "CONNECTION", + "348": "CONSTRAINT", + "349": "CONSTRAINTS", + "350": "CONTENT_P", + "351": "CONTINUE_P", + "352": "CONVERSION_P", + "353": "COPY", + "354": "COST", + "355": "CREATE", + "356": "CROSS", + "357": "CSV", + "358": "CUBE", + "359": "CURRENT_P", + "360": "CURRENT_CATALOG", + "361": "CURRENT_DATE", + "362": "CURRENT_ROLE", + "363": "CURRENT_SCHEMA", + "364": "CURRENT_TIME", + "365": "CURRENT_TIMESTAMP", + "366": "CURRENT_USER", + "367": "CURSOR", + "368": "CYCLE", + "369": "DATA_P", + "370": "DATABASE", + "371": "DAY_P", + "372": "DEALLOCATE", + "373": "DEC", + "374": "DECIMAL_P", + "375": "DECLARE", + "376": "DEFAULT", + "377": "DEFAULTS", + "378": "DEFERRABLE", + "379": "DEFERRED", + "380": "DEFINER", + "381": "DELETE_P", + "382": "DELIMITER", + "383": "DELIMITERS", + "384": "DEPENDS", + "385": "DEPTH", + "386": "DESC", + "387": "DETACH", + "388": "DICTIONARY", + "389": "DISABLE_P", + "390": "DISCARD", + "391": "DISTINCT", + "392": "DO", + "393": "DOCUMENT_P", + "394": "DOMAIN_P", + "395": "DOUBLE_P", + "396": "DROP", + "397": "EACH", + "398": "ELSE", + "399": "ENABLE_P", + "400": "ENCODING", + "401": "ENCRYPTED", + "402": "END_P", + "403": "ENUM_P", + "404": "ESCAPE", + "405": "EVENT", + "406": "EXCEPT", + "407": "EXCLUDE", + "408": "EXCLUDING", + "409": "EXCLUSIVE", + "410": "EXECUTE", + "411": "EXISTS", + "412": "EXPLAIN", + "413": "EXPRESSION", + "414": "EXTENSION", + "415": "EXTERNAL", + "416": "EXTRACT", + "417": "FALSE_P", + "418": "FAMILY", + "419": "FETCH", + "420": "FILTER", + "421": "FINALIZE", + "422": "FIRST_P", + "423": "FLOAT_P", + "424": "FOLLOWING", + "425": "FOR", + "426": "FORCE", + "427": "FOREIGN", + "428": "FORMAT", + "429": "FORWARD", + "430": "FREEZE", + "431": "FROM", + "432": "FULL", + "433": "FUNCTION", + "434": "FUNCTIONS", + "435": "GENERATED", + "436": "GLOBAL", + "437": "GRANT", + "438": "GRANTED", + "439": "GREATEST", + "440": "GROUP_P", + "441": "GROUPING", + "442": "GROUPS", + "443": "HANDLER", + "444": "HAVING", + "445": "HEADER_P", + "446": "HOLD", + "447": "HOUR_P", + "448": "IDENTITY_P", + "449": "IF_P", + "450": "ILIKE", + "451": "IMMEDIATE", + "452": "IMMUTABLE", + "453": "IMPLICIT_P", + "454": "IMPORT_P", + "455": "IN_P", + "456": "INCLUDE", + "457": "INCLUDING", + "458": "INCREMENT", + "459": "INDENT", + "460": "INDEX", + "461": "INDEXES", + "462": "INHERIT", + "463": "INHERITS", + "464": "INITIALLY", + "465": "INLINE_P", + "466": "INNER_P", + "467": "INOUT", + "468": "INPUT_P", + "469": "INSENSITIVE", + "470": "INSERT", + "471": "INSTEAD", + "472": "INT_P", + "473": "INTEGER", + "474": "INTERSECT", + "475": "INTERVAL", + "476": "INTO", + "477": "INVOKER", + "478": "IS", + "479": "ISNULL", + "480": "ISOLATION", + "481": "JOIN", + "482": "JSON", + "483": "JSON_ARRAY", + "484": "JSON_ARRAYAGG", + "485": "JSON_OBJECT", + "486": "JSON_OBJECTAGG", + "487": "KEY", + "488": "KEYS", + "489": "LABEL", + "490": "LANGUAGE", + "491": "LARGE_P", + "492": "LAST_P", + "493": "LATERAL_P", + "494": "LEADING", + "495": "LEAKPROOF", + "496": "LEAST", + "497": "LEFT", + "498": "LEVEL", + "499": "LIKE", + "500": "LIMIT", + "501": "LISTEN", + "502": "LOAD", + "503": "LOCAL", + "504": "LOCALTIME", + "505": "LOCALTIMESTAMP", + "506": "LOCATION", + "507": "LOCK_P", + "508": "LOCKED", + "509": "LOGGED", + "510": "MAPPING", + "511": "MATCH", + "512": "MATCHED", + "513": "MATERIALIZED", + "514": "MAXVALUE", + "515": "MERGE", + "516": "METHOD", + "517": "MINUTE_P", + "518": "MINVALUE", + "519": "MODE", + "520": "MONTH_P", + "521": "MOVE", + "522": "NAME_P", + "523": "NAMES", + "524": "NATIONAL", + "525": "NATURAL", + "526": "NCHAR", + "527": "NEW", + "528": "NEXT", + "529": "NFC", + "530": "NFD", + "531": "NFKC", + "532": "NFKD", + "533": "NO", + "534": "NONE", + "535": "NORMALIZE", + "536": "NORMALIZED", + "537": "NOT", + "538": "NOTHING", + "539": "NOTIFY", + "540": "NOTNULL", + "541": "NOWAIT", + "542": "NULL_P", + "543": "NULLIF", + "544": "NULLS_P", + "545": "NUMERIC", + "546": "OBJECT_P", + "547": "OF", + "548": "OFF", + "549": "OFFSET", + "550": "OIDS", + "551": "OLD", + "552": "ON", + "553": "ONLY", + "554": "OPERATOR", + "555": "OPTION", + "556": "OPTIONS", + "557": "OR", + "558": "ORDER", + "559": "ORDINALITY", + "560": "OTHERS", + "561": "OUT_P", + "562": "OUTER_P", + "563": "OVER", + "564": "OVERLAPS", + "565": "OVERLAY", + "566": "OVERRIDING", + "567": "OWNED", + "568": "OWNER", + "569": "PARALLEL", + "570": "PARAMETER", + "571": "PARSER", + "572": "PARTIAL", + "573": "PARTITION", + "574": "PASSING", + "575": "PASSWORD", + "576": "PLACING", + "577": "PLANS", + "578": "POLICY", + "579": "POSITION", + "580": "PRECEDING", + "581": "PRECISION", + "582": "PRESERVE", + "583": "PREPARE", + "584": "PREPARED", + "585": "PRIMARY", + "586": "PRIOR", + "587": "PRIVILEGES", + "588": "PROCEDURAL", + "589": "PROCEDURE", + "590": "PROCEDURES", + "591": "PROGRAM", + "592": "PUBLICATION", + "593": "QUOTE", + "594": "RANGE", + "595": "READ", + "596": "REAL", + "597": "REASSIGN", + "598": "RECHECK", + "599": "RECURSIVE", + "600": "REF_P", + "601": "REFERENCES", + "602": "REFERENCING", + "603": "REFRESH", + "604": "REINDEX", + "605": "RELATIVE_P", + "606": "RELEASE", + "607": "RENAME", + "608": "REPEATABLE", + "609": "REPLACE", + "610": "REPLICA", + "611": "RESET", + "612": "RESTART", + "613": "RESTRICT", + "614": "RETURN", + "615": "RETURNING", + "616": "RETURNS", + "617": "REVOKE", + "618": "RIGHT", + "619": "ROLE", + "620": "ROLLBACK", + "621": "ROLLUP", + "622": "ROUTINE", + "623": "ROUTINES", + "624": "ROW", + "625": "ROWS", + "626": "RULE", + "627": "SAVEPOINT", + "628": "SCALAR", + "629": "SCHEMA", + "630": "SCHEMAS", + "631": "SCROLL", + "632": "SEARCH", + "633": "SECOND_P", + "634": "SECURITY", + "635": "SELECT", + "636": "SEQUENCE", + "637": "SEQUENCES", + "638": "SERIALIZABLE", + "639": "SERVER", + "640": "SESSION", + "641": "SESSION_USER", + "642": "SET", + "643": "SETS", + "644": "SETOF", + "645": "SHARE", + "646": "SHOW", + "647": "SIMILAR", + "648": "SIMPLE", + "649": "SKIP", + "650": "SMALLINT", + "651": "SNAPSHOT", + "652": "SOME", + "653": "SQL_P", + "654": "STABLE", + "655": "STANDALONE_P", + "656": "START", + "657": "STATEMENT", + "658": "STATISTICS", + "659": "STDIN", + "660": "STDOUT", + "661": "STORAGE", + "662": "STORED", + "663": "STRICT_P", + "664": "STRIP_P", + "665": "SUBSCRIPTION", + "666": "SUBSTRING", + "667": "SUPPORT", + "668": "SYMMETRIC", + "669": "SYSID", + "670": "SYSTEM_P", + "671": "SYSTEM_USER", + "672": "TABLE", + "673": "TABLES", + "674": "TABLESAMPLE", + "675": "TABLESPACE", + "676": "TEMP", + "677": "TEMPLATE", + "678": "TEMPORARY", + "679": "TEXT_P", + "680": "THEN", + "681": "TIES", + "682": "TIME", + "683": "TIMESTAMP", + "684": "TO", + "685": "TRAILING", + "686": "TRANSACTION", + "687": "TRANSFORM", + "688": "TREAT", + "689": "TRIGGER", + "690": "TRIM", + "691": "TRUE_P", + "692": "TRUNCATE", + "693": "TRUSTED", + "694": "TYPE_P", + "695": "TYPES_P", + "696": "UESCAPE", + "697": "UNBOUNDED", + "698": "UNCOMMITTED", + "699": "UNENCRYPTED", + "700": "UNION", + "701": "UNIQUE", + "702": "UNKNOWN", + "703": "UNLISTEN", + "704": "UNLOGGED", + "705": "UNTIL", + "706": "UPDATE", + "707": "USER", + "708": "USING", + "709": "VACUUM", + "710": "VALID", + "711": "VALIDATE", + "712": "VALIDATOR", + "713": "VALUE_P", + "714": "VALUES", + "715": "VARCHAR", + "716": "VARIADIC", + "717": "VARYING", + "718": "VERBOSE", + "719": "VERSION_P", + "720": "VIEW", + "721": "VIEWS", + "722": "VOLATILE", + "723": "WHEN", + "724": "WHERE", + "725": "WHITESPACE_P", + "726": "WINDOW", + "727": "WITH", + "728": "WITHIN", + "729": "WITHOUT", + "730": "WORK", + "731": "WRAPPER", + "732": "WRITE", + "733": "XML_P", + "734": "XMLATTRIBUTES", + "735": "XMLCONCAT", + "736": "XMLELEMENT", + "737": "XMLEXISTS", + "738": "XMLFOREST", + "739": "XMLNAMESPACES", + "740": "XMLPARSE", + "741": "XMLPI", + "742": "XMLROOT", + "743": "XMLSERIALIZE", + "744": "XMLTABLE", + "745": "YEAR_P", + "746": "YES_P", + "747": "ZONE", + "748": "FORMAT_LA", + "749": "NOT_LA", + "750": "NULLS_LA", + "751": "WITH_LA", + "752": "WITHOUT_LA", + "753": "MODE_TYPE_NAME", + "754": "MODE_PLPGSQL_EXPR", + "755": "MODE_PLPGSQL_ASSIGN1", + "756": "MODE_PLPGSQL_ASSIGN2", + "757": "MODE_PLPGSQL_ASSIGN3", + "758": "UMINUS" } } \ No newline at end of file diff --git a/__fixtures__/output/enum-maps/json/enabled/enums.ts b/__fixtures__/output/enum-maps/json/enabled/enums.ts new file mode 100644 index 00000000..6abee53e --- /dev/null +++ b/__fixtures__/output/enum-maps/json/enabled/enums.ts @@ -0,0 +1,69 @@ +/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type OverridingKind = "OVERRIDING_NOT_SET" | "OVERRIDING_USER_VALUE" | "OVERRIDING_SYSTEM_VALUE"; +export type QuerySource = "QSRC_ORIGINAL" | "QSRC_PARSER" | "QSRC_INSTEAD_RULE" | "QSRC_QUAL_INSTEAD_RULE" | "QSRC_NON_INSTEAD_RULE"; +export type SortByDir = "SORTBY_DEFAULT" | "SORTBY_ASC" | "SORTBY_DESC" | "SORTBY_USING"; +export type SortByNulls = "SORTBY_NULLS_DEFAULT" | "SORTBY_NULLS_FIRST" | "SORTBY_NULLS_LAST"; +export type SetQuantifier = "SET_QUANTIFIER_DEFAULT" | "SET_QUANTIFIER_ALL" | "SET_QUANTIFIER_DISTINCT"; +export type A_Expr_Kind = "AEXPR_OP" | "AEXPR_OP_ANY" | "AEXPR_OP_ALL" | "AEXPR_DISTINCT" | "AEXPR_NOT_DISTINCT" | "AEXPR_NULLIF" | "AEXPR_IN" | "AEXPR_LIKE" | "AEXPR_ILIKE" | "AEXPR_SIMILAR" | "AEXPR_BETWEEN" | "AEXPR_NOT_BETWEEN" | "AEXPR_BETWEEN_SYM" | "AEXPR_NOT_BETWEEN_SYM"; +export type RoleSpecType = "ROLESPEC_CSTRING" | "ROLESPEC_CURRENT_ROLE" | "ROLESPEC_CURRENT_USER" | "ROLESPEC_SESSION_USER" | "ROLESPEC_PUBLIC"; +export type TableLikeOption = "CREATE_TABLE_LIKE_COMMENTS" | "CREATE_TABLE_LIKE_COMPRESSION" | "CREATE_TABLE_LIKE_CONSTRAINTS" | "CREATE_TABLE_LIKE_DEFAULTS" | "CREATE_TABLE_LIKE_GENERATED" | "CREATE_TABLE_LIKE_IDENTITY" | "CREATE_TABLE_LIKE_INDEXES" | "CREATE_TABLE_LIKE_STATISTICS" | "CREATE_TABLE_LIKE_STORAGE" | "CREATE_TABLE_LIKE_ALL"; +export type DefElemAction = "DEFELEM_UNSPEC" | "DEFELEM_SET" | "DEFELEM_ADD" | "DEFELEM_DROP"; +export type PartitionStrategy = "PARTITION_STRATEGY_LIST" | "PARTITION_STRATEGY_RANGE" | "PARTITION_STRATEGY_HASH"; +export type PartitionRangeDatumKind = "PARTITION_RANGE_DATUM_MINVALUE" | "PARTITION_RANGE_DATUM_VALUE" | "PARTITION_RANGE_DATUM_MAXVALUE"; +export type RTEKind = "RTE_RELATION" | "RTE_SUBQUERY" | "RTE_JOIN" | "RTE_FUNCTION" | "RTE_TABLEFUNC" | "RTE_VALUES" | "RTE_CTE" | "RTE_NAMEDTUPLESTORE" | "RTE_RESULT"; +export type WCOKind = "WCO_VIEW_CHECK" | "WCO_RLS_INSERT_CHECK" | "WCO_RLS_UPDATE_CHECK" | "WCO_RLS_CONFLICT_CHECK" | "WCO_RLS_MERGE_UPDATE_CHECK" | "WCO_RLS_MERGE_DELETE_CHECK"; +export type GroupingSetKind = "GROUPING_SET_EMPTY" | "GROUPING_SET_SIMPLE" | "GROUPING_SET_ROLLUP" | "GROUPING_SET_CUBE" | "GROUPING_SET_SETS"; +export type CTEMaterialize = "CTEMaterializeDefault" | "CTEMaterializeAlways" | "CTEMaterializeNever"; +export type SetOperation = "SETOP_NONE" | "SETOP_UNION" | "SETOP_INTERSECT" | "SETOP_EXCEPT"; +export type ObjectType = "OBJECT_ACCESS_METHOD" | "OBJECT_AGGREGATE" | "OBJECT_AMOP" | "OBJECT_AMPROC" | "OBJECT_ATTRIBUTE" | "OBJECT_CAST" | "OBJECT_COLUMN" | "OBJECT_COLLATION" | "OBJECT_CONVERSION" | "OBJECT_DATABASE" | "OBJECT_DEFAULT" | "OBJECT_DEFACL" | "OBJECT_DOMAIN" | "OBJECT_DOMCONSTRAINT" | "OBJECT_EVENT_TRIGGER" | "OBJECT_EXTENSION" | "OBJECT_FDW" | "OBJECT_FOREIGN_SERVER" | "OBJECT_FOREIGN_TABLE" | "OBJECT_FUNCTION" | "OBJECT_INDEX" | "OBJECT_LANGUAGE" | "OBJECT_LARGEOBJECT" | "OBJECT_MATVIEW" | "OBJECT_OPCLASS" | "OBJECT_OPERATOR" | "OBJECT_OPFAMILY" | "OBJECT_PARAMETER_ACL" | "OBJECT_POLICY" | "OBJECT_PROCEDURE" | "OBJECT_PUBLICATION" | "OBJECT_PUBLICATION_NAMESPACE" | "OBJECT_PUBLICATION_REL" | "OBJECT_ROLE" | "OBJECT_ROUTINE" | "OBJECT_RULE" | "OBJECT_SCHEMA" | "OBJECT_SEQUENCE" | "OBJECT_SUBSCRIPTION" | "OBJECT_STATISTIC_EXT" | "OBJECT_TABCONSTRAINT" | "OBJECT_TABLE" | "OBJECT_TABLESPACE" | "OBJECT_TRANSFORM" | "OBJECT_TRIGGER" | "OBJECT_TSCONFIGURATION" | "OBJECT_TSDICTIONARY" | "OBJECT_TSPARSER" | "OBJECT_TSTEMPLATE" | "OBJECT_TYPE" | "OBJECT_USER_MAPPING" | "OBJECT_VIEW"; +export type DropBehavior = "DROP_RESTRICT" | "DROP_CASCADE"; +export type AlterTableType = "AT_AddColumn" | "AT_AddColumnToView" | "AT_ColumnDefault" | "AT_CookedColumnDefault" | "AT_DropNotNull" | "AT_SetNotNull" | "AT_DropExpression" | "AT_CheckNotNull" | "AT_SetStatistics" | "AT_SetOptions" | "AT_ResetOptions" | "AT_SetStorage" | "AT_SetCompression" | "AT_DropColumn" | "AT_AddIndex" | "AT_ReAddIndex" | "AT_AddConstraint" | "AT_ReAddConstraint" | "AT_ReAddDomainConstraint" | "AT_AlterConstraint" | "AT_ValidateConstraint" | "AT_AddIndexConstraint" | "AT_DropConstraint" | "AT_ReAddComment" | "AT_AlterColumnType" | "AT_AlterColumnGenericOptions" | "AT_ChangeOwner" | "AT_ClusterOn" | "AT_DropCluster" | "AT_SetLogged" | "AT_SetUnLogged" | "AT_DropOids" | "AT_SetAccessMethod" | "AT_SetTableSpace" | "AT_SetRelOptions" | "AT_ResetRelOptions" | "AT_ReplaceRelOptions" | "AT_EnableTrig" | "AT_EnableAlwaysTrig" | "AT_EnableReplicaTrig" | "AT_DisableTrig" | "AT_EnableTrigAll" | "AT_DisableTrigAll" | "AT_EnableTrigUser" | "AT_DisableTrigUser" | "AT_EnableRule" | "AT_EnableAlwaysRule" | "AT_EnableReplicaRule" | "AT_DisableRule" | "AT_AddInherit" | "AT_DropInherit" | "AT_AddOf" | "AT_DropOf" | "AT_ReplicaIdentity" | "AT_EnableRowSecurity" | "AT_DisableRowSecurity" | "AT_ForceRowSecurity" | "AT_NoForceRowSecurity" | "AT_GenericOptions" | "AT_AttachPartition" | "AT_DetachPartition" | "AT_DetachPartitionFinalize" | "AT_AddIdentity" | "AT_SetIdentity" | "AT_DropIdentity" | "AT_ReAddStatistics"; +export type GrantTargetType = "ACL_TARGET_OBJECT" | "ACL_TARGET_ALL_IN_SCHEMA" | "ACL_TARGET_DEFAULTS"; +export type VariableSetKind = "VAR_SET_VALUE" | "VAR_SET_DEFAULT" | "VAR_SET_CURRENT" | "VAR_SET_MULTI" | "VAR_RESET" | "VAR_RESET_ALL"; +export type ConstrType = "CONSTR_NULL" | "CONSTR_NOTNULL" | "CONSTR_DEFAULT" | "CONSTR_IDENTITY" | "CONSTR_GENERATED" | "CONSTR_CHECK" | "CONSTR_PRIMARY" | "CONSTR_UNIQUE" | "CONSTR_EXCLUSION" | "CONSTR_FOREIGN" | "CONSTR_ATTR_DEFERRABLE" | "CONSTR_ATTR_NOT_DEFERRABLE" | "CONSTR_ATTR_DEFERRED" | "CONSTR_ATTR_IMMEDIATE"; +export type ImportForeignSchemaType = "FDW_IMPORT_SCHEMA_ALL" | "FDW_IMPORT_SCHEMA_LIMIT_TO" | "FDW_IMPORT_SCHEMA_EXCEPT"; +export type RoleStmtType = "ROLESTMT_ROLE" | "ROLESTMT_USER" | "ROLESTMT_GROUP"; +export type FetchDirection = "FETCH_FORWARD" | "FETCH_BACKWARD" | "FETCH_ABSOLUTE" | "FETCH_RELATIVE"; +export type FunctionParameterMode = "FUNC_PARAM_IN" | "FUNC_PARAM_OUT" | "FUNC_PARAM_INOUT" | "FUNC_PARAM_VARIADIC" | "FUNC_PARAM_TABLE" | "FUNC_PARAM_DEFAULT"; +export type TransactionStmtKind = "TRANS_STMT_BEGIN" | "TRANS_STMT_START" | "TRANS_STMT_COMMIT" | "TRANS_STMT_ROLLBACK" | "TRANS_STMT_SAVEPOINT" | "TRANS_STMT_RELEASE" | "TRANS_STMT_ROLLBACK_TO" | "TRANS_STMT_PREPARE" | "TRANS_STMT_COMMIT_PREPARED" | "TRANS_STMT_ROLLBACK_PREPARED"; +export type ViewCheckOption = "NO_CHECK_OPTION" | "LOCAL_CHECK_OPTION" | "CASCADED_CHECK_OPTION"; +export type DiscardMode = "DISCARD_ALL" | "DISCARD_PLANS" | "DISCARD_SEQUENCES" | "DISCARD_TEMP"; +export type ReindexObjectType = "REINDEX_OBJECT_INDEX" | "REINDEX_OBJECT_TABLE" | "REINDEX_OBJECT_SCHEMA" | "REINDEX_OBJECT_SYSTEM" | "REINDEX_OBJECT_DATABASE"; +export type AlterTSConfigType = "ALTER_TSCONFIG_ADD_MAPPING" | "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN" | "ALTER_TSCONFIG_REPLACE_DICT" | "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN" | "ALTER_TSCONFIG_DROP_MAPPING"; +export type PublicationObjSpecType = "PUBLICATIONOBJ_TABLE" | "PUBLICATIONOBJ_TABLES_IN_SCHEMA" | "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA" | "PUBLICATIONOBJ_CONTINUATION"; +export type AlterPublicationAction = "AP_AddObjects" | "AP_DropObjects" | "AP_SetObjects"; +export type AlterSubscriptionType = "ALTER_SUBSCRIPTION_OPTIONS" | "ALTER_SUBSCRIPTION_CONNECTION" | "ALTER_SUBSCRIPTION_SET_PUBLICATION" | "ALTER_SUBSCRIPTION_ADD_PUBLICATION" | "ALTER_SUBSCRIPTION_DROP_PUBLICATION" | "ALTER_SUBSCRIPTION_REFRESH" | "ALTER_SUBSCRIPTION_ENABLED" | "ALTER_SUBSCRIPTION_SKIP"; +export type OnCommitAction = "ONCOMMIT_NOOP" | "ONCOMMIT_PRESERVE_ROWS" | "ONCOMMIT_DELETE_ROWS" | "ONCOMMIT_DROP"; +export type ParamKind = "PARAM_EXTERN" | "PARAM_EXEC" | "PARAM_SUBLINK" | "PARAM_MULTIEXPR"; +export type CoercionContext = "COERCION_IMPLICIT" | "COERCION_ASSIGNMENT" | "COERCION_PLPGSQL" | "COERCION_EXPLICIT"; +export type CoercionForm = "COERCE_EXPLICIT_CALL" | "COERCE_EXPLICIT_CAST" | "COERCE_IMPLICIT_CAST" | "COERCE_SQL_SYNTAX"; +export type BoolExprType = "AND_EXPR" | "OR_EXPR" | "NOT_EXPR"; +export type SubLinkType = "EXISTS_SUBLINK" | "ALL_SUBLINK" | "ANY_SUBLINK" | "ROWCOMPARE_SUBLINK" | "EXPR_SUBLINK" | "MULTIEXPR_SUBLINK" | "ARRAY_SUBLINK" | "CTE_SUBLINK"; +export type RowCompareType = "ROWCOMPARE_LT" | "ROWCOMPARE_LE" | "ROWCOMPARE_EQ" | "ROWCOMPARE_GE" | "ROWCOMPARE_GT" | "ROWCOMPARE_NE"; +export type MinMaxOp = "IS_GREATEST" | "IS_LEAST"; +export type SQLValueFunctionOp = "SVFOP_CURRENT_DATE" | "SVFOP_CURRENT_TIME" | "SVFOP_CURRENT_TIME_N" | "SVFOP_CURRENT_TIMESTAMP" | "SVFOP_CURRENT_TIMESTAMP_N" | "SVFOP_LOCALTIME" | "SVFOP_LOCALTIME_N" | "SVFOP_LOCALTIMESTAMP" | "SVFOP_LOCALTIMESTAMP_N" | "SVFOP_CURRENT_ROLE" | "SVFOP_CURRENT_USER" | "SVFOP_USER" | "SVFOP_SESSION_USER" | "SVFOP_CURRENT_CATALOG" | "SVFOP_CURRENT_SCHEMA"; +export type XmlExprOp = "IS_XMLCONCAT" | "IS_XMLELEMENT" | "IS_XMLFOREST" | "IS_XMLPARSE" | "IS_XMLPI" | "IS_XMLROOT" | "IS_XMLSERIALIZE" | "IS_DOCUMENT"; +export type XmlOptionType = "XMLOPTION_DOCUMENT" | "XMLOPTION_CONTENT"; +export type JsonEncoding = "JS_ENC_DEFAULT" | "JS_ENC_UTF8" | "JS_ENC_UTF16" | "JS_ENC_UTF32"; +export type JsonFormatType = "JS_FORMAT_DEFAULT" | "JS_FORMAT_JSON" | "JS_FORMAT_JSONB"; +export type JsonConstructorType = "JSCTOR_JSON_OBJECT" | "JSCTOR_JSON_ARRAY" | "JSCTOR_JSON_OBJECTAGG" | "JSCTOR_JSON_ARRAYAGG"; +export type JsonValueType = "JS_TYPE_ANY" | "JS_TYPE_OBJECT" | "JS_TYPE_ARRAY" | "JS_TYPE_SCALAR"; +export type NullTestType = "IS_NULL" | "IS_NOT_NULL"; +export type BoolTestType = "IS_TRUE" | "IS_NOT_TRUE" | "IS_FALSE" | "IS_NOT_FALSE" | "IS_UNKNOWN" | "IS_NOT_UNKNOWN"; +export type CmdType = "CMD_UNKNOWN" | "CMD_SELECT" | "CMD_UPDATE" | "CMD_INSERT" | "CMD_DELETE" | "CMD_MERGE" | "CMD_UTILITY" | "CMD_NOTHING"; +export type JoinType = "JOIN_INNER" | "JOIN_LEFT" | "JOIN_FULL" | "JOIN_RIGHT" | "JOIN_SEMI" | "JOIN_ANTI" | "JOIN_RIGHT_ANTI" | "JOIN_UNIQUE_OUTER" | "JOIN_UNIQUE_INNER"; +export type AggStrategy = "AGG_PLAIN" | "AGG_SORTED" | "AGG_HASHED" | "AGG_MIXED"; +export type AggSplit = "AGGSPLIT_SIMPLE" | "AGGSPLIT_INITIAL_SERIAL" | "AGGSPLIT_FINAL_DESERIAL"; +export type SetOpCmd = "SETOPCMD_INTERSECT" | "SETOPCMD_INTERSECT_ALL" | "SETOPCMD_EXCEPT" | "SETOPCMD_EXCEPT_ALL"; +export type SetOpStrategy = "SETOP_SORTED" | "SETOP_HASHED"; +export type OnConflictAction = "ONCONFLICT_NONE" | "ONCONFLICT_NOTHING" | "ONCONFLICT_UPDATE"; +export type LimitOption = "LIMIT_OPTION_DEFAULT" | "LIMIT_OPTION_COUNT" | "LIMIT_OPTION_WITH_TIES"; +export type LockClauseStrength = "LCS_NONE" | "LCS_FORKEYSHARE" | "LCS_FORSHARE" | "LCS_FORNOKEYUPDATE" | "LCS_FORUPDATE"; +export type LockWaitPolicy = "LockWaitBlock" | "LockWaitSkip" | "LockWaitError"; +export type LockTupleMode = "LockTupleKeyShare" | "LockTupleShare" | "LockTupleNoKeyExclusive" | "LockTupleExclusive"; +export type KeywordKind = "NO_KEYWORD" | "UNRESERVED_KEYWORD" | "COL_NAME_KEYWORD" | "TYPE_FUNC_NAME_KEYWORD" | "RESERVED_KEYWORD"; +export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | "ASCII_42" | "ASCII_43" | "ASCII_44" | "ASCII_45" | "ASCII_46" | "ASCII_47" | "ASCII_58" | "ASCII_59" | "ASCII_60" | "ASCII_61" | "ASCII_62" | "ASCII_63" | "ASCII_91" | "ASCII_92" | "ASCII_93" | "ASCII_94" | "IDENT" | "UIDENT" | "FCONST" | "SCONST" | "USCONST" | "BCONST" | "XCONST" | "Op" | "ICONST" | "PARAM" | "TYPECAST" | "DOT_DOT" | "COLON_EQUALS" | "EQUALS_GREATER" | "LESS_EQUALS" | "GREATER_EQUALS" | "NOT_EQUALS" | "SQL_COMMENT" | "C_COMMENT" | "ABORT_P" | "ABSENT" | "ABSOLUTE_P" | "ACCESS" | "ACTION" | "ADD_P" | "ADMIN" | "AFTER" | "AGGREGATE" | "ALL" | "ALSO" | "ALTER" | "ALWAYS" | "ANALYSE" | "ANALYZE" | "AND" | "ANY" | "ARRAY" | "AS" | "ASC" | "ASENSITIVE" | "ASSERTION" | "ASSIGNMENT" | "ASYMMETRIC" | "ATOMIC" | "AT" | "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" | "CHAR_P" | "CHARACTER" | "CHARACTERISTICS" | "CHECK" | "CHECKPOINT" | "CLASS" | "CLOSE" | "CLUSTER" | "COALESCE" | "COLLATE" | "COLLATION" | "COLUMN" | "COLUMNS" | "COMMENT" | "COMMENTS" | "COMMIT" | "COMMITTED" | "COMPRESSION" | "CONCURRENTLY" | "CONFIGURATION" | "CONFLICT" | "CONNECTION" | "CONSTRAINT" | "CONSTRAINTS" | "CONTENT_P" | "CONTINUE_P" | "CONVERSION_P" | "COPY" | "COST" | "CREATE" | "CROSS" | "CSV" | "CUBE" | "CURRENT_P" | "CURRENT_CATALOG" | "CURRENT_DATE" | "CURRENT_ROLE" | "CURRENT_SCHEMA" | "CURRENT_TIME" | "CURRENT_TIMESTAMP" | "CURRENT_USER" | "CURSOR" | "CYCLE" | "DATA_P" | "DATABASE" | "DAY_P" | "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" | "ENABLE_P" | "ENCODING" | "ENCRYPTED" | "END_P" | "ENUM_P" | "ESCAPE" | "EVENT" | "EXCEPT" | "EXCLUDE" | "EXCLUDING" | "EXCLUSIVE" | "EXECUTE" | "EXISTS" | "EXPLAIN" | "EXPRESSION" | "EXTENSION" | "EXTERNAL" | "EXTRACT" | "FALSE_P" | "FAMILY" | "FETCH" | "FILTER" | "FINALIZE" | "FIRST_P" | "FLOAT_P" | "FOLLOWING" | "FOR" | "FORCE" | "FOREIGN" | "FORMAT" | "FORWARD" | "FREEZE" | "FROM" | "FULL" | "FUNCTION" | "FUNCTIONS" | "GENERATED" | "GLOBAL" | "GRANT" | "GRANTED" | "GREATEST" | "GROUP_P" | "GROUPING" | "GROUPS" | "HANDLER" | "HAVING" | "HEADER_P" | "HOLD" | "HOUR_P" | "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" | "INTERSECT" | "INTERVAL" | "INTO" | "INVOKER" | "IS" | "ISNULL" | "ISOLATION" | "JOIN" | "JSON" | "JSON_ARRAY" | "JSON_ARRAYAGG" | "JSON_OBJECT" | "JSON_OBJECTAGG" | "KEY" | "KEYS" | "LABEL" | "LANGUAGE" | "LARGE_P" | "LAST_P" | "LATERAL_P" | "LEADING" | "LEAKPROOF" | "LEAST" | "LEFT" | "LEVEL" | "LIKE" | "LIMIT" | "LISTEN" | "LOAD" | "LOCAL" | "LOCALTIME" | "LOCALTIMESTAMP" | "LOCATION" | "LOCK_P" | "LOCKED" | "LOGGED" | "MAPPING" | "MATCH" | "MATCHED" | "MATERIALIZED" | "MAXVALUE" | "MERGE" | "METHOD" | "MINUTE_P" | "MINVALUE" | "MODE" | "MONTH_P" | "MOVE" | "NAME_P" | "NAMES" | "NATIONAL" | "NATURAL" | "NCHAR" | "NEW" | "NEXT" | "NFC" | "NFD" | "NFKC" | "NFKD" | "NO" | "NONE" | "NORMALIZE" | "NORMALIZED" | "NOT" | "NOTHING" | "NOTIFY" | "NOTNULL" | "NOWAIT" | "NULL_P" | "NULLIF" | "NULLS_P" | "NUMERIC" | "OBJECT_P" | "OF" | "OFF" | "OFFSET" | "OIDS" | "OLD" | "ON" | "ONLY" | "OPERATOR" | "OPTION" | "OPTIONS" | "OR" | "ORDER" | "ORDINALITY" | "OTHERS" | "OUT_P" | "OUTER_P" | "OVER" | "OVERLAPS" | "OVERLAY" | "OVERRIDING" | "OWNED" | "OWNER" | "PARALLEL" | "PARAMETER" | "PARSER" | "PARTIAL" | "PARTITION" | "PASSING" | "PASSWORD" | "PLACING" | "PLANS" | "POLICY" | "POSITION" | "PRECEDING" | "PRECISION" | "PRESERVE" | "PREPARE" | "PREPARED" | "PRIMARY" | "PRIOR" | "PRIVILEGES" | "PROCEDURAL" | "PROCEDURE" | "PROCEDURES" | "PROGRAM" | "PUBLICATION" | "QUOTE" | "RANGE" | "READ" | "REAL" | "REASSIGN" | "RECHECK" | "RECURSIVE" | "REF_P" | "REFERENCES" | "REFERENCING" | "REFRESH" | "REINDEX" | "RELATIVE_P" | "RELEASE" | "RENAME" | "REPEATABLE" | "REPLACE" | "REPLICA" | "RESET" | "RESTART" | "RESTRICT" | "RETURN" | "RETURNING" | "RETURNS" | "REVOKE" | "RIGHT" | "ROLE" | "ROLLBACK" | "ROLLUP" | "ROUTINE" | "ROUTINES" | "ROW" | "ROWS" | "RULE" | "SAVEPOINT" | "SCALAR" | "SCHEMA" | "SCHEMAS" | "SCROLL" | "SEARCH" | "SECOND_P" | "SECURITY" | "SELECT" | "SEQUENCE" | "SEQUENCES" | "SERIALIZABLE" | "SERVER" | "SESSION" | "SESSION_USER" | "SET" | "SETS" | "SETOF" | "SHARE" | "SHOW" | "SIMILAR" | "SIMPLE" | "SKIP" | "SMALLINT" | "SNAPSHOT" | "SOME" | "SQL_P" | "STABLE" | "STANDALONE_P" | "START" | "STATEMENT" | "STATISTICS" | "STDIN" | "STDOUT" | "STORAGE" | "STORED" | "STRICT_P" | "STRIP_P" | "SUBSCRIPTION" | "SUBSTRING" | "SUPPORT" | "SYMMETRIC" | "SYSID" | "SYSTEM_P" | "SYSTEM_USER" | "TABLE" | "TABLES" | "TABLESAMPLE" | "TABLESPACE" | "TEMP" | "TEMPLATE" | "TEMPORARY" | "TEXT_P" | "THEN" | "TIES" | "TIME" | "TIMESTAMP" | "TO" | "TRAILING" | "TRANSACTION" | "TRANSFORM" | "TREAT" | "TRIGGER" | "TRIM" | "TRUE_P" | "TRUNCATE" | "TRUSTED" | "TYPE_P" | "TYPES_P" | "UESCAPE" | "UNBOUNDED" | "UNCOMMITTED" | "UNENCRYPTED" | "UNION" | "UNIQUE" | "UNKNOWN" | "UNLISTEN" | "UNLOGGED" | "UNTIL" | "UPDATE" | "USER" | "USING" | "VACUUM" | "VALID" | "VALIDATE" | "VALIDATOR" | "VALUE_P" | "VALUES" | "VARCHAR" | "VARIADIC" | "VARYING" | "VERBOSE" | "VERSION_P" | "VIEW" | "VIEWS" | "VOLATILE" | "WHEN" | "WHERE" | "WHITESPACE_P" | "WINDOW" | "WITH" | "WITHIN" | "WITHOUT" | "WORK" | "WRAPPER" | "WRITE" | "XML_P" | "XMLATTRIBUTES" | "XMLCONCAT" | "XMLELEMENT" | "XMLEXISTS" | "XMLFOREST" | "XMLNAMESPACES" | "XMLPARSE" | "XMLPI" | "XMLROOT" | "XMLSERIALIZE" | "XMLTABLE" | "YEAR_P" | "YES_P" | "ZONE" | "FORMAT_LA" | "NOT_LA" | "NULLS_LA" | "WITH_LA" | "WITHOUT_LA" | "MODE_TYPE_NAME" | "MODE_PLPGSQL_EXPR" | "MODE_PLPGSQL_ASSIGN1" | "MODE_PLPGSQL_ASSIGN2" | "MODE_PLPGSQL_ASSIGN3" | "UMINUS"; \ No newline at end of file diff --git a/__fixtures__/output/enum-maps/only-int/enum-to-int.ts b/__fixtures__/output/enum-maps/only-int/enum-to-int.ts new file mode 100644 index 00000000..1d32cdf4 --- /dev/null +++ b/__fixtures__/output/enum-maps/only-int/enum-to-int.ts @@ -0,0 +1,1079 @@ +/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export const enumToIntMap = { + OverridingKind: { + OVERRIDING_NOT_SET: 0, + OVERRIDING_USER_VALUE: 1, + OVERRIDING_SYSTEM_VALUE: 2 + }, + QuerySource: { + QSRC_ORIGINAL: 0, + QSRC_PARSER: 1, + QSRC_INSTEAD_RULE: 2, + QSRC_QUAL_INSTEAD_RULE: 3, + QSRC_NON_INSTEAD_RULE: 4 + }, + SortByDir: { + SORTBY_DEFAULT: 0, + SORTBY_ASC: 1, + SORTBY_DESC: 2, + SORTBY_USING: 3 + }, + SortByNulls: { + SORTBY_NULLS_DEFAULT: 0, + SORTBY_NULLS_FIRST: 1, + SORTBY_NULLS_LAST: 2 + }, + SetQuantifier: { + SET_QUANTIFIER_DEFAULT: 0, + SET_QUANTIFIER_ALL: 1, + SET_QUANTIFIER_DISTINCT: 2 + }, + A_Expr_Kind: { + AEXPR_OP: 0, + AEXPR_OP_ANY: 1, + AEXPR_OP_ALL: 2, + AEXPR_DISTINCT: 3, + AEXPR_NOT_DISTINCT: 4, + AEXPR_NULLIF: 5, + AEXPR_IN: 6, + AEXPR_LIKE: 7, + AEXPR_ILIKE: 8, + AEXPR_SIMILAR: 9, + AEXPR_BETWEEN: 10, + AEXPR_NOT_BETWEEN: 11, + AEXPR_BETWEEN_SYM: 12, + AEXPR_NOT_BETWEEN_SYM: 13 + }, + RoleSpecType: { + ROLESPEC_CSTRING: 0, + ROLESPEC_CURRENT_ROLE: 1, + ROLESPEC_CURRENT_USER: 2, + ROLESPEC_SESSION_USER: 3, + ROLESPEC_PUBLIC: 4 + }, + TableLikeOption: { + CREATE_TABLE_LIKE_COMMENTS: 0, + CREATE_TABLE_LIKE_COMPRESSION: 1, + CREATE_TABLE_LIKE_CONSTRAINTS: 2, + CREATE_TABLE_LIKE_DEFAULTS: 3, + CREATE_TABLE_LIKE_GENERATED: 4, + CREATE_TABLE_LIKE_IDENTITY: 5, + CREATE_TABLE_LIKE_INDEXES: 6, + CREATE_TABLE_LIKE_STATISTICS: 7, + CREATE_TABLE_LIKE_STORAGE: 8, + CREATE_TABLE_LIKE_ALL: 9 + }, + DefElemAction: { + DEFELEM_UNSPEC: 0, + DEFELEM_SET: 1, + DEFELEM_ADD: 2, + DEFELEM_DROP: 3 + }, + PartitionStrategy: { + PARTITION_STRATEGY_LIST: 0, + PARTITION_STRATEGY_RANGE: 1, + PARTITION_STRATEGY_HASH: 2 + }, + PartitionRangeDatumKind: { + PARTITION_RANGE_DATUM_MINVALUE: 0, + PARTITION_RANGE_DATUM_VALUE: 1, + PARTITION_RANGE_DATUM_MAXVALUE: 2 + }, + RTEKind: { + RTE_RELATION: 0, + RTE_SUBQUERY: 1, + RTE_JOIN: 2, + RTE_FUNCTION: 3, + RTE_TABLEFUNC: 4, + RTE_VALUES: 5, + RTE_CTE: 6, + RTE_NAMEDTUPLESTORE: 7, + RTE_RESULT: 8 + }, + WCOKind: { + WCO_VIEW_CHECK: 0, + WCO_RLS_INSERT_CHECK: 1, + WCO_RLS_UPDATE_CHECK: 2, + WCO_RLS_CONFLICT_CHECK: 3, + WCO_RLS_MERGE_UPDATE_CHECK: 4, + WCO_RLS_MERGE_DELETE_CHECK: 5 + }, + GroupingSetKind: { + GROUPING_SET_EMPTY: 0, + GROUPING_SET_SIMPLE: 1, + GROUPING_SET_ROLLUP: 2, + GROUPING_SET_CUBE: 3, + GROUPING_SET_SETS: 4 + }, + CTEMaterialize: { + CTEMaterializeDefault: 0, + CTEMaterializeAlways: 1, + CTEMaterializeNever: 2 + }, + SetOperation: { + SETOP_NONE: 0, + SETOP_UNION: 1, + SETOP_INTERSECT: 2, + SETOP_EXCEPT: 3 + }, + ObjectType: { + OBJECT_ACCESS_METHOD: 0, + OBJECT_AGGREGATE: 1, + OBJECT_AMOP: 2, + OBJECT_AMPROC: 3, + OBJECT_ATTRIBUTE: 4, + OBJECT_CAST: 5, + OBJECT_COLUMN: 6, + OBJECT_COLLATION: 7, + OBJECT_CONVERSION: 8, + OBJECT_DATABASE: 9, + OBJECT_DEFAULT: 10, + OBJECT_DEFACL: 11, + OBJECT_DOMAIN: 12, + OBJECT_DOMCONSTRAINT: 13, + OBJECT_EVENT_TRIGGER: 14, + OBJECT_EXTENSION: 15, + OBJECT_FDW: 16, + OBJECT_FOREIGN_SERVER: 17, + OBJECT_FOREIGN_TABLE: 18, + OBJECT_FUNCTION: 19, + OBJECT_INDEX: 20, + OBJECT_LANGUAGE: 21, + OBJECT_LARGEOBJECT: 22, + OBJECT_MATVIEW: 23, + OBJECT_OPCLASS: 24, + OBJECT_OPERATOR: 25, + OBJECT_OPFAMILY: 26, + OBJECT_PARAMETER_ACL: 27, + OBJECT_POLICY: 28, + OBJECT_PROCEDURE: 29, + OBJECT_PUBLICATION: 30, + OBJECT_PUBLICATION_NAMESPACE: 31, + OBJECT_PUBLICATION_REL: 32, + OBJECT_ROLE: 33, + OBJECT_ROUTINE: 34, + OBJECT_RULE: 35, + OBJECT_SCHEMA: 36, + OBJECT_SEQUENCE: 37, + OBJECT_SUBSCRIPTION: 38, + OBJECT_STATISTIC_EXT: 39, + OBJECT_TABCONSTRAINT: 40, + OBJECT_TABLE: 41, + OBJECT_TABLESPACE: 42, + OBJECT_TRANSFORM: 43, + OBJECT_TRIGGER: 44, + OBJECT_TSCONFIGURATION: 45, + OBJECT_TSDICTIONARY: 46, + OBJECT_TSPARSER: 47, + OBJECT_TSTEMPLATE: 48, + OBJECT_TYPE: 49, + OBJECT_USER_MAPPING: 50, + OBJECT_VIEW: 51 + }, + DropBehavior: { + DROP_RESTRICT: 0, + DROP_CASCADE: 1 + }, + AlterTableType: { + AT_AddColumn: 0, + AT_AddColumnToView: 1, + AT_ColumnDefault: 2, + AT_CookedColumnDefault: 3, + AT_DropNotNull: 4, + AT_SetNotNull: 5, + AT_DropExpression: 6, + AT_CheckNotNull: 7, + AT_SetStatistics: 8, + AT_SetOptions: 9, + AT_ResetOptions: 10, + AT_SetStorage: 11, + AT_SetCompression: 12, + AT_DropColumn: 13, + AT_AddIndex: 14, + AT_ReAddIndex: 15, + AT_AddConstraint: 16, + AT_ReAddConstraint: 17, + AT_ReAddDomainConstraint: 18, + AT_AlterConstraint: 19, + AT_ValidateConstraint: 20, + AT_AddIndexConstraint: 21, + AT_DropConstraint: 22, + AT_ReAddComment: 23, + AT_AlterColumnType: 24, + AT_AlterColumnGenericOptions: 25, + AT_ChangeOwner: 26, + AT_ClusterOn: 27, + AT_DropCluster: 28, + AT_SetLogged: 29, + AT_SetUnLogged: 30, + AT_DropOids: 31, + AT_SetAccessMethod: 32, + AT_SetTableSpace: 33, + AT_SetRelOptions: 34, + AT_ResetRelOptions: 35, + AT_ReplaceRelOptions: 36, + AT_EnableTrig: 37, + AT_EnableAlwaysTrig: 38, + AT_EnableReplicaTrig: 39, + AT_DisableTrig: 40, + AT_EnableTrigAll: 41, + AT_DisableTrigAll: 42, + AT_EnableTrigUser: 43, + AT_DisableTrigUser: 44, + AT_EnableRule: 45, + AT_EnableAlwaysRule: 46, + AT_EnableReplicaRule: 47, + AT_DisableRule: 48, + AT_AddInherit: 49, + AT_DropInherit: 50, + AT_AddOf: 51, + AT_DropOf: 52, + AT_ReplicaIdentity: 53, + AT_EnableRowSecurity: 54, + AT_DisableRowSecurity: 55, + AT_ForceRowSecurity: 56, + AT_NoForceRowSecurity: 57, + AT_GenericOptions: 58, + AT_AttachPartition: 59, + AT_DetachPartition: 60, + AT_DetachPartitionFinalize: 61, + AT_AddIdentity: 62, + AT_SetIdentity: 63, + AT_DropIdentity: 64, + AT_ReAddStatistics: 65 + }, + GrantTargetType: { + ACL_TARGET_OBJECT: 0, + ACL_TARGET_ALL_IN_SCHEMA: 1, + ACL_TARGET_DEFAULTS: 2 + }, + VariableSetKind: { + VAR_SET_VALUE: 0, + VAR_SET_DEFAULT: 1, + VAR_SET_CURRENT: 2, + VAR_SET_MULTI: 3, + VAR_RESET: 4, + VAR_RESET_ALL: 5 + }, + ConstrType: { + CONSTR_NULL: 0, + CONSTR_NOTNULL: 1, + CONSTR_DEFAULT: 2, + CONSTR_IDENTITY: 3, + CONSTR_GENERATED: 4, + CONSTR_CHECK: 5, + CONSTR_PRIMARY: 6, + CONSTR_UNIQUE: 7, + CONSTR_EXCLUSION: 8, + CONSTR_FOREIGN: 9, + CONSTR_ATTR_DEFERRABLE: 10, + CONSTR_ATTR_NOT_DEFERRABLE: 11, + CONSTR_ATTR_DEFERRED: 12, + CONSTR_ATTR_IMMEDIATE: 13 + }, + ImportForeignSchemaType: { + FDW_IMPORT_SCHEMA_ALL: 0, + FDW_IMPORT_SCHEMA_LIMIT_TO: 1, + FDW_IMPORT_SCHEMA_EXCEPT: 2 + }, + RoleStmtType: { + ROLESTMT_ROLE: 0, + ROLESTMT_USER: 1, + ROLESTMT_GROUP: 2 + }, + FetchDirection: { + FETCH_FORWARD: 0, + FETCH_BACKWARD: 1, + FETCH_ABSOLUTE: 2, + FETCH_RELATIVE: 3 + }, + FunctionParameterMode: { + FUNC_PARAM_IN: 0, + FUNC_PARAM_OUT: 1, + FUNC_PARAM_INOUT: 2, + FUNC_PARAM_VARIADIC: 3, + FUNC_PARAM_TABLE: 4, + FUNC_PARAM_DEFAULT: 5 + }, + TransactionStmtKind: { + TRANS_STMT_BEGIN: 0, + TRANS_STMT_START: 1, + TRANS_STMT_COMMIT: 2, + TRANS_STMT_ROLLBACK: 3, + TRANS_STMT_SAVEPOINT: 4, + TRANS_STMT_RELEASE: 5, + TRANS_STMT_ROLLBACK_TO: 6, + TRANS_STMT_PREPARE: 7, + TRANS_STMT_COMMIT_PREPARED: 8, + TRANS_STMT_ROLLBACK_PREPARED: 9 + }, + ViewCheckOption: { + NO_CHECK_OPTION: 0, + LOCAL_CHECK_OPTION: 1, + CASCADED_CHECK_OPTION: 2 + }, + DiscardMode: { + DISCARD_ALL: 0, + DISCARD_PLANS: 1, + DISCARD_SEQUENCES: 2, + DISCARD_TEMP: 3 + }, + ReindexObjectType: { + REINDEX_OBJECT_INDEX: 0, + REINDEX_OBJECT_TABLE: 1, + REINDEX_OBJECT_SCHEMA: 2, + REINDEX_OBJECT_SYSTEM: 3, + REINDEX_OBJECT_DATABASE: 4 + }, + AlterTSConfigType: { + ALTER_TSCONFIG_ADD_MAPPING: 0, + ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN: 1, + ALTER_TSCONFIG_REPLACE_DICT: 2, + ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN: 3, + ALTER_TSCONFIG_DROP_MAPPING: 4 + }, + PublicationObjSpecType: { + PUBLICATIONOBJ_TABLE: 0, + PUBLICATIONOBJ_TABLES_IN_SCHEMA: 1, + PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA: 2, + PUBLICATIONOBJ_CONTINUATION: 3 + }, + AlterPublicationAction: { + AP_AddObjects: 0, + AP_DropObjects: 1, + AP_SetObjects: 2 + }, + AlterSubscriptionType: { + ALTER_SUBSCRIPTION_OPTIONS: 0, + ALTER_SUBSCRIPTION_CONNECTION: 1, + ALTER_SUBSCRIPTION_SET_PUBLICATION: 2, + ALTER_SUBSCRIPTION_ADD_PUBLICATION: 3, + ALTER_SUBSCRIPTION_DROP_PUBLICATION: 4, + ALTER_SUBSCRIPTION_REFRESH: 5, + ALTER_SUBSCRIPTION_ENABLED: 6, + ALTER_SUBSCRIPTION_SKIP: 7 + }, + OnCommitAction: { + ONCOMMIT_NOOP: 0, + ONCOMMIT_PRESERVE_ROWS: 1, + ONCOMMIT_DELETE_ROWS: 2, + ONCOMMIT_DROP: 3 + }, + ParamKind: { + PARAM_EXTERN: 0, + PARAM_EXEC: 1, + PARAM_SUBLINK: 2, + PARAM_MULTIEXPR: 3 + }, + CoercionContext: { + COERCION_IMPLICIT: 0, + COERCION_ASSIGNMENT: 1, + COERCION_PLPGSQL: 2, + COERCION_EXPLICIT: 3 + }, + CoercionForm: { + COERCE_EXPLICIT_CALL: 0, + COERCE_EXPLICIT_CAST: 1, + COERCE_IMPLICIT_CAST: 2, + COERCE_SQL_SYNTAX: 3 + }, + BoolExprType: { + AND_EXPR: 0, + OR_EXPR: 1, + NOT_EXPR: 2 + }, + SubLinkType: { + EXISTS_SUBLINK: 0, + ALL_SUBLINK: 1, + ANY_SUBLINK: 2, + ROWCOMPARE_SUBLINK: 3, + EXPR_SUBLINK: 4, + MULTIEXPR_SUBLINK: 5, + ARRAY_SUBLINK: 6, + CTE_SUBLINK: 7 + }, + RowCompareType: { + ROWCOMPARE_LT: 0, + ROWCOMPARE_LE: 1, + ROWCOMPARE_EQ: 2, + ROWCOMPARE_GE: 3, + ROWCOMPARE_GT: 4, + ROWCOMPARE_NE: 5 + }, + MinMaxOp: { + IS_GREATEST: 0, + IS_LEAST: 1 + }, + SQLValueFunctionOp: { + SVFOP_CURRENT_DATE: 0, + SVFOP_CURRENT_TIME: 1, + SVFOP_CURRENT_TIME_N: 2, + SVFOP_CURRENT_TIMESTAMP: 3, + SVFOP_CURRENT_TIMESTAMP_N: 4, + SVFOP_LOCALTIME: 5, + SVFOP_LOCALTIME_N: 6, + SVFOP_LOCALTIMESTAMP: 7, + SVFOP_LOCALTIMESTAMP_N: 8, + SVFOP_CURRENT_ROLE: 9, + SVFOP_CURRENT_USER: 10, + SVFOP_USER: 11, + SVFOP_SESSION_USER: 12, + SVFOP_CURRENT_CATALOG: 13, + SVFOP_CURRENT_SCHEMA: 14 + }, + XmlExprOp: { + IS_XMLCONCAT: 0, + IS_XMLELEMENT: 1, + IS_XMLFOREST: 2, + IS_XMLPARSE: 3, + IS_XMLPI: 4, + IS_XMLROOT: 5, + IS_XMLSERIALIZE: 6, + IS_DOCUMENT: 7 + }, + XmlOptionType: { + XMLOPTION_DOCUMENT: 0, + XMLOPTION_CONTENT: 1 + }, + JsonEncoding: { + JS_ENC_DEFAULT: 0, + JS_ENC_UTF8: 1, + JS_ENC_UTF16: 2, + JS_ENC_UTF32: 3 + }, + JsonFormatType: { + JS_FORMAT_DEFAULT: 0, + JS_FORMAT_JSON: 1, + JS_FORMAT_JSONB: 2 + }, + JsonConstructorType: { + JSCTOR_JSON_OBJECT: 0, + JSCTOR_JSON_ARRAY: 1, + JSCTOR_JSON_OBJECTAGG: 2, + JSCTOR_JSON_ARRAYAGG: 3 + }, + JsonValueType: { + JS_TYPE_ANY: 0, + JS_TYPE_OBJECT: 1, + JS_TYPE_ARRAY: 2, + JS_TYPE_SCALAR: 3 + }, + NullTestType: { + IS_NULL: 0, + IS_NOT_NULL: 1 + }, + BoolTestType: { + IS_TRUE: 0, + IS_NOT_TRUE: 1, + IS_FALSE: 2, + IS_NOT_FALSE: 3, + IS_UNKNOWN: 4, + IS_NOT_UNKNOWN: 5 + }, + CmdType: { + CMD_UNKNOWN: 0, + CMD_SELECT: 1, + CMD_UPDATE: 2, + CMD_INSERT: 3, + CMD_DELETE: 4, + CMD_MERGE: 5, + CMD_UTILITY: 6, + CMD_NOTHING: 7 + }, + JoinType: { + JOIN_INNER: 0, + JOIN_LEFT: 1, + JOIN_FULL: 2, + JOIN_RIGHT: 3, + JOIN_SEMI: 4, + JOIN_ANTI: 5, + JOIN_RIGHT_ANTI: 6, + JOIN_UNIQUE_OUTER: 7, + JOIN_UNIQUE_INNER: 8 + }, + AggStrategy: { + AGG_PLAIN: 0, + AGG_SORTED: 1, + AGG_HASHED: 2, + AGG_MIXED: 3 + }, + AggSplit: { + AGGSPLIT_SIMPLE: 0, + AGGSPLIT_INITIAL_SERIAL: 1, + AGGSPLIT_FINAL_DESERIAL: 2 + }, + SetOpCmd: { + SETOPCMD_INTERSECT: 0, + SETOPCMD_INTERSECT_ALL: 1, + SETOPCMD_EXCEPT: 2, + SETOPCMD_EXCEPT_ALL: 3 + }, + SetOpStrategy: { + SETOP_SORTED: 0, + SETOP_HASHED: 1 + }, + OnConflictAction: { + ONCONFLICT_NONE: 0, + ONCONFLICT_NOTHING: 1, + ONCONFLICT_UPDATE: 2 + }, + LimitOption: { + LIMIT_OPTION_DEFAULT: 0, + LIMIT_OPTION_COUNT: 1, + LIMIT_OPTION_WITH_TIES: 2 + }, + LockClauseStrength: { + LCS_NONE: 0, + LCS_FORKEYSHARE: 1, + LCS_FORSHARE: 2, + LCS_FORNOKEYUPDATE: 3, + LCS_FORUPDATE: 4 + }, + LockWaitPolicy: { + LockWaitBlock: 0, + LockWaitSkip: 1, + LockWaitError: 2 + }, + LockTupleMode: { + LockTupleKeyShare: 0, + LockTupleShare: 1, + LockTupleNoKeyExclusive: 2, + LockTupleExclusive: 3 + }, + KeywordKind: { + NO_KEYWORD: 0, + UNRESERVED_KEYWORD: 1, + COL_NAME_KEYWORD: 2, + TYPE_FUNC_NAME_KEYWORD: 3, + RESERVED_KEYWORD: 4 + }, + Token: { + NUL: 0, + ASCII_36: 36, + ASCII_37: 37, + ASCII_40: 40, + ASCII_41: 41, + ASCII_42: 42, + ASCII_43: 43, + ASCII_44: 44, + ASCII_45: 45, + ASCII_46: 46, + ASCII_47: 47, + ASCII_58: 58, + ASCII_59: 59, + ASCII_60: 60, + ASCII_61: 61, + ASCII_62: 62, + ASCII_63: 63, + ASCII_91: 91, + ASCII_92: 92, + ASCII_93: 93, + ASCII_94: 94, + IDENT: 258, + UIDENT: 259, + FCONST: 260, + SCONST: 261, + USCONST: 262, + BCONST: 263, + XCONST: 264, + Op: 265, + ICONST: 266, + PARAM: 267, + TYPECAST: 268, + DOT_DOT: 269, + COLON_EQUALS: 270, + EQUALS_GREATER: 271, + LESS_EQUALS: 272, + GREATER_EQUALS: 273, + NOT_EQUALS: 274, + SQL_COMMENT: 275, + C_COMMENT: 276, + ABORT_P: 277, + ABSENT: 278, + ABSOLUTE_P: 279, + ACCESS: 280, + ACTION: 281, + ADD_P: 282, + ADMIN: 283, + AFTER: 284, + AGGREGATE: 285, + ALL: 286, + ALSO: 287, + ALTER: 288, + ALWAYS: 289, + ANALYSE: 290, + ANALYZE: 291, + AND: 292, + ANY: 293, + ARRAY: 294, + AS: 295, + ASC: 296, + ASENSITIVE: 297, + ASSERTION: 298, + ASSIGNMENT: 299, + ASYMMETRIC: 300, + ATOMIC: 301, + AT: 302, + ATTACH: 303, + ATTRIBUTE: 304, + AUTHORIZATION: 305, + BACKWARD: 306, + BEFORE: 307, + BEGIN_P: 308, + BETWEEN: 309, + BIGINT: 310, + BINARY: 311, + BIT: 312, + BOOLEAN_P: 313, + BOTH: 314, + BREADTH: 315, + BY: 316, + CACHE: 317, + CALL: 318, + CALLED: 319, + CASCADE: 320, + CASCADED: 321, + CASE: 322, + CAST: 323, + CATALOG_P: 324, + CHAIN: 325, + CHAR_P: 326, + CHARACTER: 327, + CHARACTERISTICS: 328, + CHECK: 329, + CHECKPOINT: 330, + CLASS: 331, + CLOSE: 332, + CLUSTER: 333, + COALESCE: 334, + COLLATE: 335, + COLLATION: 336, + COLUMN: 337, + COLUMNS: 338, + COMMENT: 339, + COMMENTS: 340, + COMMIT: 341, + COMMITTED: 342, + COMPRESSION: 343, + CONCURRENTLY: 344, + CONFIGURATION: 345, + CONFLICT: 346, + CONNECTION: 347, + CONSTRAINT: 348, + CONSTRAINTS: 349, + CONTENT_P: 350, + CONTINUE_P: 351, + CONVERSION_P: 352, + COPY: 353, + COST: 354, + CREATE: 355, + CROSS: 356, + CSV: 357, + CUBE: 358, + CURRENT_P: 359, + CURRENT_CATALOG: 360, + CURRENT_DATE: 361, + CURRENT_ROLE: 362, + CURRENT_SCHEMA: 363, + CURRENT_TIME: 364, + CURRENT_TIMESTAMP: 365, + CURRENT_USER: 366, + CURSOR: 367, + CYCLE: 368, + DATA_P: 369, + DATABASE: 370, + DAY_P: 371, + DEALLOCATE: 372, + DEC: 373, + DECIMAL_P: 374, + DECLARE: 375, + DEFAULT: 376, + DEFAULTS: 377, + DEFERRABLE: 378, + DEFERRED: 379, + DEFINER: 380, + DELETE_P: 381, + DELIMITER: 382, + DELIMITERS: 383, + DEPENDS: 384, + DEPTH: 385, + DESC: 386, + DETACH: 387, + DICTIONARY: 388, + DISABLE_P: 389, + DISCARD: 390, + DISTINCT: 391, + DO: 392, + DOCUMENT_P: 393, + DOMAIN_P: 394, + DOUBLE_P: 395, + DROP: 396, + EACH: 397, + ELSE: 398, + ENABLE_P: 399, + ENCODING: 400, + ENCRYPTED: 401, + END_P: 402, + ENUM_P: 403, + ESCAPE: 404, + EVENT: 405, + EXCEPT: 406, + EXCLUDE: 407, + EXCLUDING: 408, + EXCLUSIVE: 409, + EXECUTE: 410, + EXISTS: 411, + EXPLAIN: 412, + EXPRESSION: 413, + EXTENSION: 414, + EXTERNAL: 415, + EXTRACT: 416, + FALSE_P: 417, + FAMILY: 418, + FETCH: 419, + FILTER: 420, + FINALIZE: 421, + FIRST_P: 422, + FLOAT_P: 423, + FOLLOWING: 424, + FOR: 425, + FORCE: 426, + FOREIGN: 427, + FORMAT: 428, + FORWARD: 429, + FREEZE: 430, + FROM: 431, + FULL: 432, + FUNCTION: 433, + FUNCTIONS: 434, + GENERATED: 435, + GLOBAL: 436, + GRANT: 437, + GRANTED: 438, + GREATEST: 439, + GROUP_P: 440, + GROUPING: 441, + GROUPS: 442, + HANDLER: 443, + HAVING: 444, + HEADER_P: 445, + HOLD: 446, + HOUR_P: 447, + IDENTITY_P: 448, + IF_P: 449, + ILIKE: 450, + IMMEDIATE: 451, + IMMUTABLE: 452, + IMPLICIT_P: 453, + IMPORT_P: 454, + IN_P: 455, + INCLUDE: 456, + INCLUDING: 457, + INCREMENT: 458, + INDENT: 459, + INDEX: 460, + INDEXES: 461, + INHERIT: 462, + INHERITS: 463, + INITIALLY: 464, + INLINE_P: 465, + INNER_P: 466, + INOUT: 467, + INPUT_P: 468, + INSENSITIVE: 469, + INSERT: 470, + INSTEAD: 471, + INT_P: 472, + INTEGER: 473, + INTERSECT: 474, + INTERVAL: 475, + INTO: 476, + INVOKER: 477, + IS: 478, + ISNULL: 479, + ISOLATION: 480, + JOIN: 481, + JSON: 482, + JSON_ARRAY: 483, + JSON_ARRAYAGG: 484, + JSON_OBJECT: 485, + JSON_OBJECTAGG: 486, + KEY: 487, + KEYS: 488, + LABEL: 489, + LANGUAGE: 490, + LARGE_P: 491, + LAST_P: 492, + LATERAL_P: 493, + LEADING: 494, + LEAKPROOF: 495, + LEAST: 496, + LEFT: 497, + LEVEL: 498, + LIKE: 499, + LIMIT: 500, + LISTEN: 501, + LOAD: 502, + LOCAL: 503, + LOCALTIME: 504, + LOCALTIMESTAMP: 505, + LOCATION: 506, + LOCK_P: 507, + LOCKED: 508, + LOGGED: 509, + MAPPING: 510, + MATCH: 511, + MATCHED: 512, + MATERIALIZED: 513, + MAXVALUE: 514, + MERGE: 515, + METHOD: 516, + MINUTE_P: 517, + MINVALUE: 518, + MODE: 519, + MONTH_P: 520, + MOVE: 521, + NAME_P: 522, + NAMES: 523, + NATIONAL: 524, + NATURAL: 525, + NCHAR: 526, + NEW: 527, + NEXT: 528, + NFC: 529, + NFD: 530, + NFKC: 531, + NFKD: 532, + NO: 533, + NONE: 534, + NORMALIZE: 535, + NORMALIZED: 536, + NOT: 537, + NOTHING: 538, + NOTIFY: 539, + NOTNULL: 540, + NOWAIT: 541, + NULL_P: 542, + NULLIF: 543, + NULLS_P: 544, + NUMERIC: 545, + OBJECT_P: 546, + OF: 547, + OFF: 548, + OFFSET: 549, + OIDS: 550, + OLD: 551, + ON: 552, + ONLY: 553, + OPERATOR: 554, + OPTION: 555, + OPTIONS: 556, + OR: 557, + ORDER: 558, + ORDINALITY: 559, + OTHERS: 560, + OUT_P: 561, + OUTER_P: 562, + OVER: 563, + OVERLAPS: 564, + OVERLAY: 565, + OVERRIDING: 566, + OWNED: 567, + OWNER: 568, + PARALLEL: 569, + PARAMETER: 570, + PARSER: 571, + PARTIAL: 572, + PARTITION: 573, + PASSING: 574, + PASSWORD: 575, + PLACING: 576, + PLANS: 577, + POLICY: 578, + POSITION: 579, + PRECEDING: 580, + PRECISION: 581, + PRESERVE: 582, + PREPARE: 583, + PREPARED: 584, + PRIMARY: 585, + PRIOR: 586, + PRIVILEGES: 587, + PROCEDURAL: 588, + PROCEDURE: 589, + PROCEDURES: 590, + PROGRAM: 591, + PUBLICATION: 592, + QUOTE: 593, + RANGE: 594, + READ: 595, + REAL: 596, + REASSIGN: 597, + RECHECK: 598, + RECURSIVE: 599, + REF_P: 600, + REFERENCES: 601, + REFERENCING: 602, + REFRESH: 603, + REINDEX: 604, + RELATIVE_P: 605, + RELEASE: 606, + RENAME: 607, + REPEATABLE: 608, + REPLACE: 609, + REPLICA: 610, + RESET: 611, + RESTART: 612, + RESTRICT: 613, + RETURN: 614, + RETURNING: 615, + RETURNS: 616, + REVOKE: 617, + RIGHT: 618, + ROLE: 619, + ROLLBACK: 620, + ROLLUP: 621, + ROUTINE: 622, + ROUTINES: 623, + ROW: 624, + ROWS: 625, + RULE: 626, + SAVEPOINT: 627, + SCALAR: 628, + SCHEMA: 629, + SCHEMAS: 630, + SCROLL: 631, + SEARCH: 632, + SECOND_P: 633, + SECURITY: 634, + SELECT: 635, + SEQUENCE: 636, + SEQUENCES: 637, + SERIALIZABLE: 638, + SERVER: 639, + SESSION: 640, + SESSION_USER: 641, + SET: 642, + SETS: 643, + SETOF: 644, + SHARE: 645, + SHOW: 646, + SIMILAR: 647, + SIMPLE: 648, + SKIP: 649, + SMALLINT: 650, + SNAPSHOT: 651, + SOME: 652, + SQL_P: 653, + STABLE: 654, + STANDALONE_P: 655, + START: 656, + STATEMENT: 657, + STATISTICS: 658, + STDIN: 659, + STDOUT: 660, + STORAGE: 661, + STORED: 662, + STRICT_P: 663, + STRIP_P: 664, + SUBSCRIPTION: 665, + SUBSTRING: 666, + SUPPORT: 667, + SYMMETRIC: 668, + SYSID: 669, + SYSTEM_P: 670, + SYSTEM_USER: 671, + TABLE: 672, + TABLES: 673, + TABLESAMPLE: 674, + TABLESPACE: 675, + TEMP: 676, + TEMPLATE: 677, + TEMPORARY: 678, + TEXT_P: 679, + THEN: 680, + TIES: 681, + TIME: 682, + TIMESTAMP: 683, + TO: 684, + TRAILING: 685, + TRANSACTION: 686, + TRANSFORM: 687, + TREAT: 688, + TRIGGER: 689, + TRIM: 690, + TRUE_P: 691, + TRUNCATE: 692, + TRUSTED: 693, + TYPE_P: 694, + TYPES_P: 695, + UESCAPE: 696, + UNBOUNDED: 697, + UNCOMMITTED: 698, + UNENCRYPTED: 699, + UNION: 700, + UNIQUE: 701, + UNKNOWN: 702, + UNLISTEN: 703, + UNLOGGED: 704, + UNTIL: 705, + UPDATE: 706, + USER: 707, + USING: 708, + VACUUM: 709, + VALID: 710, + VALIDATE: 711, + VALIDATOR: 712, + VALUE_P: 713, + VALUES: 714, + VARCHAR: 715, + VARIADIC: 716, + VARYING: 717, + VERBOSE: 718, + VERSION_P: 719, + VIEW: 720, + VIEWS: 721, + VOLATILE: 722, + WHEN: 723, + WHERE: 724, + WHITESPACE_P: 725, + WINDOW: 726, + WITH: 727, + WITHIN: 728, + WITHOUT: 729, + WORK: 730, + WRAPPER: 731, + WRITE: 732, + XML_P: 733, + XMLATTRIBUTES: 734, + XMLCONCAT: 735, + XMLELEMENT: 736, + XMLEXISTS: 737, + XMLFOREST: 738, + XMLNAMESPACES: 739, + XMLPARSE: 740, + XMLPI: 741, + XMLROOT: 742, + XMLSERIALIZE: 743, + XMLTABLE: 744, + YEAR_P: 745, + YES_P: 746, + ZONE: 747, + FORMAT_LA: 748, + NOT_LA: 749, + NULLS_LA: 750, + WITH_LA: 751, + WITHOUT_LA: 752, + MODE_TYPE_NAME: 753, + MODE_PLPGSQL_EXPR: 754, + MODE_PLPGSQL_ASSIGN1: 755, + MODE_PLPGSQL_ASSIGN2: 756, + MODE_PLPGSQL_ASSIGN3: 757, + UMINUS: 758 + } +}; +export type EnumToIntMap = typeof enumToIntMap; \ No newline at end of file diff --git a/__fixtures__/output/enum-maps/only-int/enums.ts b/__fixtures__/output/enum-maps/only-int/enums.ts new file mode 100644 index 00000000..6abee53e --- /dev/null +++ b/__fixtures__/output/enum-maps/only-int/enums.ts @@ -0,0 +1,69 @@ +/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type OverridingKind = "OVERRIDING_NOT_SET" | "OVERRIDING_USER_VALUE" | "OVERRIDING_SYSTEM_VALUE"; +export type QuerySource = "QSRC_ORIGINAL" | "QSRC_PARSER" | "QSRC_INSTEAD_RULE" | "QSRC_QUAL_INSTEAD_RULE" | "QSRC_NON_INSTEAD_RULE"; +export type SortByDir = "SORTBY_DEFAULT" | "SORTBY_ASC" | "SORTBY_DESC" | "SORTBY_USING"; +export type SortByNulls = "SORTBY_NULLS_DEFAULT" | "SORTBY_NULLS_FIRST" | "SORTBY_NULLS_LAST"; +export type SetQuantifier = "SET_QUANTIFIER_DEFAULT" | "SET_QUANTIFIER_ALL" | "SET_QUANTIFIER_DISTINCT"; +export type A_Expr_Kind = "AEXPR_OP" | "AEXPR_OP_ANY" | "AEXPR_OP_ALL" | "AEXPR_DISTINCT" | "AEXPR_NOT_DISTINCT" | "AEXPR_NULLIF" | "AEXPR_IN" | "AEXPR_LIKE" | "AEXPR_ILIKE" | "AEXPR_SIMILAR" | "AEXPR_BETWEEN" | "AEXPR_NOT_BETWEEN" | "AEXPR_BETWEEN_SYM" | "AEXPR_NOT_BETWEEN_SYM"; +export type RoleSpecType = "ROLESPEC_CSTRING" | "ROLESPEC_CURRENT_ROLE" | "ROLESPEC_CURRENT_USER" | "ROLESPEC_SESSION_USER" | "ROLESPEC_PUBLIC"; +export type TableLikeOption = "CREATE_TABLE_LIKE_COMMENTS" | "CREATE_TABLE_LIKE_COMPRESSION" | "CREATE_TABLE_LIKE_CONSTRAINTS" | "CREATE_TABLE_LIKE_DEFAULTS" | "CREATE_TABLE_LIKE_GENERATED" | "CREATE_TABLE_LIKE_IDENTITY" | "CREATE_TABLE_LIKE_INDEXES" | "CREATE_TABLE_LIKE_STATISTICS" | "CREATE_TABLE_LIKE_STORAGE" | "CREATE_TABLE_LIKE_ALL"; +export type DefElemAction = "DEFELEM_UNSPEC" | "DEFELEM_SET" | "DEFELEM_ADD" | "DEFELEM_DROP"; +export type PartitionStrategy = "PARTITION_STRATEGY_LIST" | "PARTITION_STRATEGY_RANGE" | "PARTITION_STRATEGY_HASH"; +export type PartitionRangeDatumKind = "PARTITION_RANGE_DATUM_MINVALUE" | "PARTITION_RANGE_DATUM_VALUE" | "PARTITION_RANGE_DATUM_MAXVALUE"; +export type RTEKind = "RTE_RELATION" | "RTE_SUBQUERY" | "RTE_JOIN" | "RTE_FUNCTION" | "RTE_TABLEFUNC" | "RTE_VALUES" | "RTE_CTE" | "RTE_NAMEDTUPLESTORE" | "RTE_RESULT"; +export type WCOKind = "WCO_VIEW_CHECK" | "WCO_RLS_INSERT_CHECK" | "WCO_RLS_UPDATE_CHECK" | "WCO_RLS_CONFLICT_CHECK" | "WCO_RLS_MERGE_UPDATE_CHECK" | "WCO_RLS_MERGE_DELETE_CHECK"; +export type GroupingSetKind = "GROUPING_SET_EMPTY" | "GROUPING_SET_SIMPLE" | "GROUPING_SET_ROLLUP" | "GROUPING_SET_CUBE" | "GROUPING_SET_SETS"; +export type CTEMaterialize = "CTEMaterializeDefault" | "CTEMaterializeAlways" | "CTEMaterializeNever"; +export type SetOperation = "SETOP_NONE" | "SETOP_UNION" | "SETOP_INTERSECT" | "SETOP_EXCEPT"; +export type ObjectType = "OBJECT_ACCESS_METHOD" | "OBJECT_AGGREGATE" | "OBJECT_AMOP" | "OBJECT_AMPROC" | "OBJECT_ATTRIBUTE" | "OBJECT_CAST" | "OBJECT_COLUMN" | "OBJECT_COLLATION" | "OBJECT_CONVERSION" | "OBJECT_DATABASE" | "OBJECT_DEFAULT" | "OBJECT_DEFACL" | "OBJECT_DOMAIN" | "OBJECT_DOMCONSTRAINT" | "OBJECT_EVENT_TRIGGER" | "OBJECT_EXTENSION" | "OBJECT_FDW" | "OBJECT_FOREIGN_SERVER" | "OBJECT_FOREIGN_TABLE" | "OBJECT_FUNCTION" | "OBJECT_INDEX" | "OBJECT_LANGUAGE" | "OBJECT_LARGEOBJECT" | "OBJECT_MATVIEW" | "OBJECT_OPCLASS" | "OBJECT_OPERATOR" | "OBJECT_OPFAMILY" | "OBJECT_PARAMETER_ACL" | "OBJECT_POLICY" | "OBJECT_PROCEDURE" | "OBJECT_PUBLICATION" | "OBJECT_PUBLICATION_NAMESPACE" | "OBJECT_PUBLICATION_REL" | "OBJECT_ROLE" | "OBJECT_ROUTINE" | "OBJECT_RULE" | "OBJECT_SCHEMA" | "OBJECT_SEQUENCE" | "OBJECT_SUBSCRIPTION" | "OBJECT_STATISTIC_EXT" | "OBJECT_TABCONSTRAINT" | "OBJECT_TABLE" | "OBJECT_TABLESPACE" | "OBJECT_TRANSFORM" | "OBJECT_TRIGGER" | "OBJECT_TSCONFIGURATION" | "OBJECT_TSDICTIONARY" | "OBJECT_TSPARSER" | "OBJECT_TSTEMPLATE" | "OBJECT_TYPE" | "OBJECT_USER_MAPPING" | "OBJECT_VIEW"; +export type DropBehavior = "DROP_RESTRICT" | "DROP_CASCADE"; +export type AlterTableType = "AT_AddColumn" | "AT_AddColumnToView" | "AT_ColumnDefault" | "AT_CookedColumnDefault" | "AT_DropNotNull" | "AT_SetNotNull" | "AT_DropExpression" | "AT_CheckNotNull" | "AT_SetStatistics" | "AT_SetOptions" | "AT_ResetOptions" | "AT_SetStorage" | "AT_SetCompression" | "AT_DropColumn" | "AT_AddIndex" | "AT_ReAddIndex" | "AT_AddConstraint" | "AT_ReAddConstraint" | "AT_ReAddDomainConstraint" | "AT_AlterConstraint" | "AT_ValidateConstraint" | "AT_AddIndexConstraint" | "AT_DropConstraint" | "AT_ReAddComment" | "AT_AlterColumnType" | "AT_AlterColumnGenericOptions" | "AT_ChangeOwner" | "AT_ClusterOn" | "AT_DropCluster" | "AT_SetLogged" | "AT_SetUnLogged" | "AT_DropOids" | "AT_SetAccessMethod" | "AT_SetTableSpace" | "AT_SetRelOptions" | "AT_ResetRelOptions" | "AT_ReplaceRelOptions" | "AT_EnableTrig" | "AT_EnableAlwaysTrig" | "AT_EnableReplicaTrig" | "AT_DisableTrig" | "AT_EnableTrigAll" | "AT_DisableTrigAll" | "AT_EnableTrigUser" | "AT_DisableTrigUser" | "AT_EnableRule" | "AT_EnableAlwaysRule" | "AT_EnableReplicaRule" | "AT_DisableRule" | "AT_AddInherit" | "AT_DropInherit" | "AT_AddOf" | "AT_DropOf" | "AT_ReplicaIdentity" | "AT_EnableRowSecurity" | "AT_DisableRowSecurity" | "AT_ForceRowSecurity" | "AT_NoForceRowSecurity" | "AT_GenericOptions" | "AT_AttachPartition" | "AT_DetachPartition" | "AT_DetachPartitionFinalize" | "AT_AddIdentity" | "AT_SetIdentity" | "AT_DropIdentity" | "AT_ReAddStatistics"; +export type GrantTargetType = "ACL_TARGET_OBJECT" | "ACL_TARGET_ALL_IN_SCHEMA" | "ACL_TARGET_DEFAULTS"; +export type VariableSetKind = "VAR_SET_VALUE" | "VAR_SET_DEFAULT" | "VAR_SET_CURRENT" | "VAR_SET_MULTI" | "VAR_RESET" | "VAR_RESET_ALL"; +export type ConstrType = "CONSTR_NULL" | "CONSTR_NOTNULL" | "CONSTR_DEFAULT" | "CONSTR_IDENTITY" | "CONSTR_GENERATED" | "CONSTR_CHECK" | "CONSTR_PRIMARY" | "CONSTR_UNIQUE" | "CONSTR_EXCLUSION" | "CONSTR_FOREIGN" | "CONSTR_ATTR_DEFERRABLE" | "CONSTR_ATTR_NOT_DEFERRABLE" | "CONSTR_ATTR_DEFERRED" | "CONSTR_ATTR_IMMEDIATE"; +export type ImportForeignSchemaType = "FDW_IMPORT_SCHEMA_ALL" | "FDW_IMPORT_SCHEMA_LIMIT_TO" | "FDW_IMPORT_SCHEMA_EXCEPT"; +export type RoleStmtType = "ROLESTMT_ROLE" | "ROLESTMT_USER" | "ROLESTMT_GROUP"; +export type FetchDirection = "FETCH_FORWARD" | "FETCH_BACKWARD" | "FETCH_ABSOLUTE" | "FETCH_RELATIVE"; +export type FunctionParameterMode = "FUNC_PARAM_IN" | "FUNC_PARAM_OUT" | "FUNC_PARAM_INOUT" | "FUNC_PARAM_VARIADIC" | "FUNC_PARAM_TABLE" | "FUNC_PARAM_DEFAULT"; +export type TransactionStmtKind = "TRANS_STMT_BEGIN" | "TRANS_STMT_START" | "TRANS_STMT_COMMIT" | "TRANS_STMT_ROLLBACK" | "TRANS_STMT_SAVEPOINT" | "TRANS_STMT_RELEASE" | "TRANS_STMT_ROLLBACK_TO" | "TRANS_STMT_PREPARE" | "TRANS_STMT_COMMIT_PREPARED" | "TRANS_STMT_ROLLBACK_PREPARED"; +export type ViewCheckOption = "NO_CHECK_OPTION" | "LOCAL_CHECK_OPTION" | "CASCADED_CHECK_OPTION"; +export type DiscardMode = "DISCARD_ALL" | "DISCARD_PLANS" | "DISCARD_SEQUENCES" | "DISCARD_TEMP"; +export type ReindexObjectType = "REINDEX_OBJECT_INDEX" | "REINDEX_OBJECT_TABLE" | "REINDEX_OBJECT_SCHEMA" | "REINDEX_OBJECT_SYSTEM" | "REINDEX_OBJECT_DATABASE"; +export type AlterTSConfigType = "ALTER_TSCONFIG_ADD_MAPPING" | "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN" | "ALTER_TSCONFIG_REPLACE_DICT" | "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN" | "ALTER_TSCONFIG_DROP_MAPPING"; +export type PublicationObjSpecType = "PUBLICATIONOBJ_TABLE" | "PUBLICATIONOBJ_TABLES_IN_SCHEMA" | "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA" | "PUBLICATIONOBJ_CONTINUATION"; +export type AlterPublicationAction = "AP_AddObjects" | "AP_DropObjects" | "AP_SetObjects"; +export type AlterSubscriptionType = "ALTER_SUBSCRIPTION_OPTIONS" | "ALTER_SUBSCRIPTION_CONNECTION" | "ALTER_SUBSCRIPTION_SET_PUBLICATION" | "ALTER_SUBSCRIPTION_ADD_PUBLICATION" | "ALTER_SUBSCRIPTION_DROP_PUBLICATION" | "ALTER_SUBSCRIPTION_REFRESH" | "ALTER_SUBSCRIPTION_ENABLED" | "ALTER_SUBSCRIPTION_SKIP"; +export type OnCommitAction = "ONCOMMIT_NOOP" | "ONCOMMIT_PRESERVE_ROWS" | "ONCOMMIT_DELETE_ROWS" | "ONCOMMIT_DROP"; +export type ParamKind = "PARAM_EXTERN" | "PARAM_EXEC" | "PARAM_SUBLINK" | "PARAM_MULTIEXPR"; +export type CoercionContext = "COERCION_IMPLICIT" | "COERCION_ASSIGNMENT" | "COERCION_PLPGSQL" | "COERCION_EXPLICIT"; +export type CoercionForm = "COERCE_EXPLICIT_CALL" | "COERCE_EXPLICIT_CAST" | "COERCE_IMPLICIT_CAST" | "COERCE_SQL_SYNTAX"; +export type BoolExprType = "AND_EXPR" | "OR_EXPR" | "NOT_EXPR"; +export type SubLinkType = "EXISTS_SUBLINK" | "ALL_SUBLINK" | "ANY_SUBLINK" | "ROWCOMPARE_SUBLINK" | "EXPR_SUBLINK" | "MULTIEXPR_SUBLINK" | "ARRAY_SUBLINK" | "CTE_SUBLINK"; +export type RowCompareType = "ROWCOMPARE_LT" | "ROWCOMPARE_LE" | "ROWCOMPARE_EQ" | "ROWCOMPARE_GE" | "ROWCOMPARE_GT" | "ROWCOMPARE_NE"; +export type MinMaxOp = "IS_GREATEST" | "IS_LEAST"; +export type SQLValueFunctionOp = "SVFOP_CURRENT_DATE" | "SVFOP_CURRENT_TIME" | "SVFOP_CURRENT_TIME_N" | "SVFOP_CURRENT_TIMESTAMP" | "SVFOP_CURRENT_TIMESTAMP_N" | "SVFOP_LOCALTIME" | "SVFOP_LOCALTIME_N" | "SVFOP_LOCALTIMESTAMP" | "SVFOP_LOCALTIMESTAMP_N" | "SVFOP_CURRENT_ROLE" | "SVFOP_CURRENT_USER" | "SVFOP_USER" | "SVFOP_SESSION_USER" | "SVFOP_CURRENT_CATALOG" | "SVFOP_CURRENT_SCHEMA"; +export type XmlExprOp = "IS_XMLCONCAT" | "IS_XMLELEMENT" | "IS_XMLFOREST" | "IS_XMLPARSE" | "IS_XMLPI" | "IS_XMLROOT" | "IS_XMLSERIALIZE" | "IS_DOCUMENT"; +export type XmlOptionType = "XMLOPTION_DOCUMENT" | "XMLOPTION_CONTENT"; +export type JsonEncoding = "JS_ENC_DEFAULT" | "JS_ENC_UTF8" | "JS_ENC_UTF16" | "JS_ENC_UTF32"; +export type JsonFormatType = "JS_FORMAT_DEFAULT" | "JS_FORMAT_JSON" | "JS_FORMAT_JSONB"; +export type JsonConstructorType = "JSCTOR_JSON_OBJECT" | "JSCTOR_JSON_ARRAY" | "JSCTOR_JSON_OBJECTAGG" | "JSCTOR_JSON_ARRAYAGG"; +export type JsonValueType = "JS_TYPE_ANY" | "JS_TYPE_OBJECT" | "JS_TYPE_ARRAY" | "JS_TYPE_SCALAR"; +export type NullTestType = "IS_NULL" | "IS_NOT_NULL"; +export type BoolTestType = "IS_TRUE" | "IS_NOT_TRUE" | "IS_FALSE" | "IS_NOT_FALSE" | "IS_UNKNOWN" | "IS_NOT_UNKNOWN"; +export type CmdType = "CMD_UNKNOWN" | "CMD_SELECT" | "CMD_UPDATE" | "CMD_INSERT" | "CMD_DELETE" | "CMD_MERGE" | "CMD_UTILITY" | "CMD_NOTHING"; +export type JoinType = "JOIN_INNER" | "JOIN_LEFT" | "JOIN_FULL" | "JOIN_RIGHT" | "JOIN_SEMI" | "JOIN_ANTI" | "JOIN_RIGHT_ANTI" | "JOIN_UNIQUE_OUTER" | "JOIN_UNIQUE_INNER"; +export type AggStrategy = "AGG_PLAIN" | "AGG_SORTED" | "AGG_HASHED" | "AGG_MIXED"; +export type AggSplit = "AGGSPLIT_SIMPLE" | "AGGSPLIT_INITIAL_SERIAL" | "AGGSPLIT_FINAL_DESERIAL"; +export type SetOpCmd = "SETOPCMD_INTERSECT" | "SETOPCMD_INTERSECT_ALL" | "SETOPCMD_EXCEPT" | "SETOPCMD_EXCEPT_ALL"; +export type SetOpStrategy = "SETOP_SORTED" | "SETOP_HASHED"; +export type OnConflictAction = "ONCONFLICT_NONE" | "ONCONFLICT_NOTHING" | "ONCONFLICT_UPDATE"; +export type LimitOption = "LIMIT_OPTION_DEFAULT" | "LIMIT_OPTION_COUNT" | "LIMIT_OPTION_WITH_TIES"; +export type LockClauseStrength = "LCS_NONE" | "LCS_FORKEYSHARE" | "LCS_FORSHARE" | "LCS_FORNOKEYUPDATE" | "LCS_FORUPDATE"; +export type LockWaitPolicy = "LockWaitBlock" | "LockWaitSkip" | "LockWaitError"; +export type LockTupleMode = "LockTupleKeyShare" | "LockTupleShare" | "LockTupleNoKeyExclusive" | "LockTupleExclusive"; +export type KeywordKind = "NO_KEYWORD" | "UNRESERVED_KEYWORD" | "COL_NAME_KEYWORD" | "TYPE_FUNC_NAME_KEYWORD" | "RESERVED_KEYWORD"; +export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | "ASCII_42" | "ASCII_43" | "ASCII_44" | "ASCII_45" | "ASCII_46" | "ASCII_47" | "ASCII_58" | "ASCII_59" | "ASCII_60" | "ASCII_61" | "ASCII_62" | "ASCII_63" | "ASCII_91" | "ASCII_92" | "ASCII_93" | "ASCII_94" | "IDENT" | "UIDENT" | "FCONST" | "SCONST" | "USCONST" | "BCONST" | "XCONST" | "Op" | "ICONST" | "PARAM" | "TYPECAST" | "DOT_DOT" | "COLON_EQUALS" | "EQUALS_GREATER" | "LESS_EQUALS" | "GREATER_EQUALS" | "NOT_EQUALS" | "SQL_COMMENT" | "C_COMMENT" | "ABORT_P" | "ABSENT" | "ABSOLUTE_P" | "ACCESS" | "ACTION" | "ADD_P" | "ADMIN" | "AFTER" | "AGGREGATE" | "ALL" | "ALSO" | "ALTER" | "ALWAYS" | "ANALYSE" | "ANALYZE" | "AND" | "ANY" | "ARRAY" | "AS" | "ASC" | "ASENSITIVE" | "ASSERTION" | "ASSIGNMENT" | "ASYMMETRIC" | "ATOMIC" | "AT" | "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" | "CHAR_P" | "CHARACTER" | "CHARACTERISTICS" | "CHECK" | "CHECKPOINT" | "CLASS" | "CLOSE" | "CLUSTER" | "COALESCE" | "COLLATE" | "COLLATION" | "COLUMN" | "COLUMNS" | "COMMENT" | "COMMENTS" | "COMMIT" | "COMMITTED" | "COMPRESSION" | "CONCURRENTLY" | "CONFIGURATION" | "CONFLICT" | "CONNECTION" | "CONSTRAINT" | "CONSTRAINTS" | "CONTENT_P" | "CONTINUE_P" | "CONVERSION_P" | "COPY" | "COST" | "CREATE" | "CROSS" | "CSV" | "CUBE" | "CURRENT_P" | "CURRENT_CATALOG" | "CURRENT_DATE" | "CURRENT_ROLE" | "CURRENT_SCHEMA" | "CURRENT_TIME" | "CURRENT_TIMESTAMP" | "CURRENT_USER" | "CURSOR" | "CYCLE" | "DATA_P" | "DATABASE" | "DAY_P" | "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" | "ENABLE_P" | "ENCODING" | "ENCRYPTED" | "END_P" | "ENUM_P" | "ESCAPE" | "EVENT" | "EXCEPT" | "EXCLUDE" | "EXCLUDING" | "EXCLUSIVE" | "EXECUTE" | "EXISTS" | "EXPLAIN" | "EXPRESSION" | "EXTENSION" | "EXTERNAL" | "EXTRACT" | "FALSE_P" | "FAMILY" | "FETCH" | "FILTER" | "FINALIZE" | "FIRST_P" | "FLOAT_P" | "FOLLOWING" | "FOR" | "FORCE" | "FOREIGN" | "FORMAT" | "FORWARD" | "FREEZE" | "FROM" | "FULL" | "FUNCTION" | "FUNCTIONS" | "GENERATED" | "GLOBAL" | "GRANT" | "GRANTED" | "GREATEST" | "GROUP_P" | "GROUPING" | "GROUPS" | "HANDLER" | "HAVING" | "HEADER_P" | "HOLD" | "HOUR_P" | "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" | "INTERSECT" | "INTERVAL" | "INTO" | "INVOKER" | "IS" | "ISNULL" | "ISOLATION" | "JOIN" | "JSON" | "JSON_ARRAY" | "JSON_ARRAYAGG" | "JSON_OBJECT" | "JSON_OBJECTAGG" | "KEY" | "KEYS" | "LABEL" | "LANGUAGE" | "LARGE_P" | "LAST_P" | "LATERAL_P" | "LEADING" | "LEAKPROOF" | "LEAST" | "LEFT" | "LEVEL" | "LIKE" | "LIMIT" | "LISTEN" | "LOAD" | "LOCAL" | "LOCALTIME" | "LOCALTIMESTAMP" | "LOCATION" | "LOCK_P" | "LOCKED" | "LOGGED" | "MAPPING" | "MATCH" | "MATCHED" | "MATERIALIZED" | "MAXVALUE" | "MERGE" | "METHOD" | "MINUTE_P" | "MINVALUE" | "MODE" | "MONTH_P" | "MOVE" | "NAME_P" | "NAMES" | "NATIONAL" | "NATURAL" | "NCHAR" | "NEW" | "NEXT" | "NFC" | "NFD" | "NFKC" | "NFKD" | "NO" | "NONE" | "NORMALIZE" | "NORMALIZED" | "NOT" | "NOTHING" | "NOTIFY" | "NOTNULL" | "NOWAIT" | "NULL_P" | "NULLIF" | "NULLS_P" | "NUMERIC" | "OBJECT_P" | "OF" | "OFF" | "OFFSET" | "OIDS" | "OLD" | "ON" | "ONLY" | "OPERATOR" | "OPTION" | "OPTIONS" | "OR" | "ORDER" | "ORDINALITY" | "OTHERS" | "OUT_P" | "OUTER_P" | "OVER" | "OVERLAPS" | "OVERLAY" | "OVERRIDING" | "OWNED" | "OWNER" | "PARALLEL" | "PARAMETER" | "PARSER" | "PARTIAL" | "PARTITION" | "PASSING" | "PASSWORD" | "PLACING" | "PLANS" | "POLICY" | "POSITION" | "PRECEDING" | "PRECISION" | "PRESERVE" | "PREPARE" | "PREPARED" | "PRIMARY" | "PRIOR" | "PRIVILEGES" | "PROCEDURAL" | "PROCEDURE" | "PROCEDURES" | "PROGRAM" | "PUBLICATION" | "QUOTE" | "RANGE" | "READ" | "REAL" | "REASSIGN" | "RECHECK" | "RECURSIVE" | "REF_P" | "REFERENCES" | "REFERENCING" | "REFRESH" | "REINDEX" | "RELATIVE_P" | "RELEASE" | "RENAME" | "REPEATABLE" | "REPLACE" | "REPLICA" | "RESET" | "RESTART" | "RESTRICT" | "RETURN" | "RETURNING" | "RETURNS" | "REVOKE" | "RIGHT" | "ROLE" | "ROLLBACK" | "ROLLUP" | "ROUTINE" | "ROUTINES" | "ROW" | "ROWS" | "RULE" | "SAVEPOINT" | "SCALAR" | "SCHEMA" | "SCHEMAS" | "SCROLL" | "SEARCH" | "SECOND_P" | "SECURITY" | "SELECT" | "SEQUENCE" | "SEQUENCES" | "SERIALIZABLE" | "SERVER" | "SESSION" | "SESSION_USER" | "SET" | "SETS" | "SETOF" | "SHARE" | "SHOW" | "SIMILAR" | "SIMPLE" | "SKIP" | "SMALLINT" | "SNAPSHOT" | "SOME" | "SQL_P" | "STABLE" | "STANDALONE_P" | "START" | "STATEMENT" | "STATISTICS" | "STDIN" | "STDOUT" | "STORAGE" | "STORED" | "STRICT_P" | "STRIP_P" | "SUBSCRIPTION" | "SUBSTRING" | "SUPPORT" | "SYMMETRIC" | "SYSID" | "SYSTEM_P" | "SYSTEM_USER" | "TABLE" | "TABLES" | "TABLESAMPLE" | "TABLESPACE" | "TEMP" | "TEMPLATE" | "TEMPORARY" | "TEXT_P" | "THEN" | "TIES" | "TIME" | "TIMESTAMP" | "TO" | "TRAILING" | "TRANSACTION" | "TRANSFORM" | "TREAT" | "TRIGGER" | "TRIM" | "TRUE_P" | "TRUNCATE" | "TRUSTED" | "TYPE_P" | "TYPES_P" | "UESCAPE" | "UNBOUNDED" | "UNCOMMITTED" | "UNENCRYPTED" | "UNION" | "UNIQUE" | "UNKNOWN" | "UNLISTEN" | "UNLOGGED" | "UNTIL" | "UPDATE" | "USER" | "USING" | "VACUUM" | "VALID" | "VALIDATE" | "VALIDATOR" | "VALUE_P" | "VALUES" | "VARCHAR" | "VARIADIC" | "VARYING" | "VERBOSE" | "VERSION_P" | "VIEW" | "VIEWS" | "VOLATILE" | "WHEN" | "WHERE" | "WHITESPACE_P" | "WINDOW" | "WITH" | "WITHIN" | "WITHOUT" | "WORK" | "WRAPPER" | "WRITE" | "XML_P" | "XMLATTRIBUTES" | "XMLCONCAT" | "XMLELEMENT" | "XMLEXISTS" | "XMLFOREST" | "XMLNAMESPACES" | "XMLPARSE" | "XMLPI" | "XMLROOT" | "XMLSERIALIZE" | "XMLTABLE" | "YEAR_P" | "YES_P" | "ZONE" | "FORMAT_LA" | "NOT_LA" | "NULLS_LA" | "WITH_LA" | "WITHOUT_LA" | "MODE_TYPE_NAME" | "MODE_PLPGSQL_EXPR" | "MODE_PLPGSQL_ASSIGN1" | "MODE_PLPGSQL_ASSIGN2" | "MODE_PLPGSQL_ASSIGN3" | "UMINUS"; \ No newline at end of file diff --git a/__fixtures__/output/enum-maps/only-int/enums2str.ts b/__fixtures__/output/enum-maps/only-int/enums2str.ts new file mode 100644 index 00000000..c4a88f26 --- /dev/null +++ b/__fixtures__/output/enum-maps/only-int/enums2str.ts @@ -0,0 +1,1079 @@ +/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export const enumToStrMap = { + OverridingKind: { + "0": 'OVERRIDING_NOT_SET', + "1": 'OVERRIDING_USER_VALUE', + "2": 'OVERRIDING_SYSTEM_VALUE' + }, + QuerySource: { + "0": 'QSRC_ORIGINAL', + "1": 'QSRC_PARSER', + "2": 'QSRC_INSTEAD_RULE', + "3": 'QSRC_QUAL_INSTEAD_RULE', + "4": 'QSRC_NON_INSTEAD_RULE' + }, + SortByDir: { + "0": 'SORTBY_DEFAULT', + "1": 'SORTBY_ASC', + "2": 'SORTBY_DESC', + "3": 'SORTBY_USING' + }, + SortByNulls: { + "0": 'SORTBY_NULLS_DEFAULT', + "1": 'SORTBY_NULLS_FIRST', + "2": 'SORTBY_NULLS_LAST' + }, + SetQuantifier: { + "0": 'SET_QUANTIFIER_DEFAULT', + "1": 'SET_QUANTIFIER_ALL', + "2": 'SET_QUANTIFIER_DISTINCT' + }, + A_Expr_Kind: { + "0": 'AEXPR_OP', + "1": 'AEXPR_OP_ANY', + "2": 'AEXPR_OP_ALL', + "3": 'AEXPR_DISTINCT', + "4": 'AEXPR_NOT_DISTINCT', + "5": 'AEXPR_NULLIF', + "6": 'AEXPR_IN', + "7": 'AEXPR_LIKE', + "8": 'AEXPR_ILIKE', + "9": 'AEXPR_SIMILAR', + "10": 'AEXPR_BETWEEN', + "11": 'AEXPR_NOT_BETWEEN', + "12": 'AEXPR_BETWEEN_SYM', + "13": 'AEXPR_NOT_BETWEEN_SYM' + }, + RoleSpecType: { + "0": 'ROLESPEC_CSTRING', + "1": 'ROLESPEC_CURRENT_ROLE', + "2": 'ROLESPEC_CURRENT_USER', + "3": 'ROLESPEC_SESSION_USER', + "4": 'ROLESPEC_PUBLIC' + }, + TableLikeOption: { + "0": 'CREATE_TABLE_LIKE_COMMENTS', + "1": 'CREATE_TABLE_LIKE_COMPRESSION', + "2": 'CREATE_TABLE_LIKE_CONSTRAINTS', + "3": 'CREATE_TABLE_LIKE_DEFAULTS', + "4": 'CREATE_TABLE_LIKE_GENERATED', + "5": 'CREATE_TABLE_LIKE_IDENTITY', + "6": 'CREATE_TABLE_LIKE_INDEXES', + "7": 'CREATE_TABLE_LIKE_STATISTICS', + "8": 'CREATE_TABLE_LIKE_STORAGE', + "9": 'CREATE_TABLE_LIKE_ALL' + }, + DefElemAction: { + "0": 'DEFELEM_UNSPEC', + "1": 'DEFELEM_SET', + "2": 'DEFELEM_ADD', + "3": 'DEFELEM_DROP' + }, + PartitionStrategy: { + "0": 'PARTITION_STRATEGY_LIST', + "1": 'PARTITION_STRATEGY_RANGE', + "2": 'PARTITION_STRATEGY_HASH' + }, + PartitionRangeDatumKind: { + "0": 'PARTITION_RANGE_DATUM_MINVALUE', + "1": 'PARTITION_RANGE_DATUM_VALUE', + "2": 'PARTITION_RANGE_DATUM_MAXVALUE' + }, + RTEKind: { + "0": 'RTE_RELATION', + "1": 'RTE_SUBQUERY', + "2": 'RTE_JOIN', + "3": 'RTE_FUNCTION', + "4": 'RTE_TABLEFUNC', + "5": 'RTE_VALUES', + "6": 'RTE_CTE', + "7": 'RTE_NAMEDTUPLESTORE', + "8": 'RTE_RESULT' + }, + WCOKind: { + "0": 'WCO_VIEW_CHECK', + "1": 'WCO_RLS_INSERT_CHECK', + "2": 'WCO_RLS_UPDATE_CHECK', + "3": 'WCO_RLS_CONFLICT_CHECK', + "4": 'WCO_RLS_MERGE_UPDATE_CHECK', + "5": 'WCO_RLS_MERGE_DELETE_CHECK' + }, + GroupingSetKind: { + "0": 'GROUPING_SET_EMPTY', + "1": 'GROUPING_SET_SIMPLE', + "2": 'GROUPING_SET_ROLLUP', + "3": 'GROUPING_SET_CUBE', + "4": 'GROUPING_SET_SETS' + }, + CTEMaterialize: { + "0": 'CTEMaterializeDefault', + "1": 'CTEMaterializeAlways', + "2": 'CTEMaterializeNever' + }, + SetOperation: { + "0": 'SETOP_NONE', + "1": 'SETOP_UNION', + "2": 'SETOP_INTERSECT', + "3": 'SETOP_EXCEPT' + }, + ObjectType: { + "0": 'OBJECT_ACCESS_METHOD', + "1": 'OBJECT_AGGREGATE', + "2": 'OBJECT_AMOP', + "3": 'OBJECT_AMPROC', + "4": 'OBJECT_ATTRIBUTE', + "5": 'OBJECT_CAST', + "6": 'OBJECT_COLUMN', + "7": 'OBJECT_COLLATION', + "8": 'OBJECT_CONVERSION', + "9": 'OBJECT_DATABASE', + "10": 'OBJECT_DEFAULT', + "11": 'OBJECT_DEFACL', + "12": 'OBJECT_DOMAIN', + "13": 'OBJECT_DOMCONSTRAINT', + "14": 'OBJECT_EVENT_TRIGGER', + "15": 'OBJECT_EXTENSION', + "16": 'OBJECT_FDW', + "17": 'OBJECT_FOREIGN_SERVER', + "18": 'OBJECT_FOREIGN_TABLE', + "19": 'OBJECT_FUNCTION', + "20": 'OBJECT_INDEX', + "21": 'OBJECT_LANGUAGE', + "22": 'OBJECT_LARGEOBJECT', + "23": 'OBJECT_MATVIEW', + "24": 'OBJECT_OPCLASS', + "25": 'OBJECT_OPERATOR', + "26": 'OBJECT_OPFAMILY', + "27": 'OBJECT_PARAMETER_ACL', + "28": 'OBJECT_POLICY', + "29": 'OBJECT_PROCEDURE', + "30": 'OBJECT_PUBLICATION', + "31": 'OBJECT_PUBLICATION_NAMESPACE', + "32": 'OBJECT_PUBLICATION_REL', + "33": 'OBJECT_ROLE', + "34": 'OBJECT_ROUTINE', + "35": 'OBJECT_RULE', + "36": 'OBJECT_SCHEMA', + "37": 'OBJECT_SEQUENCE', + "38": 'OBJECT_SUBSCRIPTION', + "39": 'OBJECT_STATISTIC_EXT', + "40": 'OBJECT_TABCONSTRAINT', + "41": 'OBJECT_TABLE', + "42": 'OBJECT_TABLESPACE', + "43": 'OBJECT_TRANSFORM', + "44": 'OBJECT_TRIGGER', + "45": 'OBJECT_TSCONFIGURATION', + "46": 'OBJECT_TSDICTIONARY', + "47": 'OBJECT_TSPARSER', + "48": 'OBJECT_TSTEMPLATE', + "49": 'OBJECT_TYPE', + "50": 'OBJECT_USER_MAPPING', + "51": 'OBJECT_VIEW' + }, + DropBehavior: { + "0": 'DROP_RESTRICT', + "1": 'DROP_CASCADE' + }, + AlterTableType: { + "0": 'AT_AddColumn', + "1": 'AT_AddColumnToView', + "2": 'AT_ColumnDefault', + "3": 'AT_CookedColumnDefault', + "4": 'AT_DropNotNull', + "5": 'AT_SetNotNull', + "6": 'AT_DropExpression', + "7": 'AT_CheckNotNull', + "8": 'AT_SetStatistics', + "9": 'AT_SetOptions', + "10": 'AT_ResetOptions', + "11": 'AT_SetStorage', + "12": 'AT_SetCompression', + "13": 'AT_DropColumn', + "14": 'AT_AddIndex', + "15": 'AT_ReAddIndex', + "16": 'AT_AddConstraint', + "17": 'AT_ReAddConstraint', + "18": 'AT_ReAddDomainConstraint', + "19": 'AT_AlterConstraint', + "20": 'AT_ValidateConstraint', + "21": 'AT_AddIndexConstraint', + "22": 'AT_DropConstraint', + "23": 'AT_ReAddComment', + "24": 'AT_AlterColumnType', + "25": 'AT_AlterColumnGenericOptions', + "26": 'AT_ChangeOwner', + "27": 'AT_ClusterOn', + "28": 'AT_DropCluster', + "29": 'AT_SetLogged', + "30": 'AT_SetUnLogged', + "31": 'AT_DropOids', + "32": 'AT_SetAccessMethod', + "33": 'AT_SetTableSpace', + "34": 'AT_SetRelOptions', + "35": 'AT_ResetRelOptions', + "36": 'AT_ReplaceRelOptions', + "37": 'AT_EnableTrig', + "38": 'AT_EnableAlwaysTrig', + "39": 'AT_EnableReplicaTrig', + "40": 'AT_DisableTrig', + "41": 'AT_EnableTrigAll', + "42": 'AT_DisableTrigAll', + "43": 'AT_EnableTrigUser', + "44": 'AT_DisableTrigUser', + "45": 'AT_EnableRule', + "46": 'AT_EnableAlwaysRule', + "47": 'AT_EnableReplicaRule', + "48": 'AT_DisableRule', + "49": 'AT_AddInherit', + "50": 'AT_DropInherit', + "51": 'AT_AddOf', + "52": 'AT_DropOf', + "53": 'AT_ReplicaIdentity', + "54": 'AT_EnableRowSecurity', + "55": 'AT_DisableRowSecurity', + "56": 'AT_ForceRowSecurity', + "57": 'AT_NoForceRowSecurity', + "58": 'AT_GenericOptions', + "59": 'AT_AttachPartition', + "60": 'AT_DetachPartition', + "61": 'AT_DetachPartitionFinalize', + "62": 'AT_AddIdentity', + "63": 'AT_SetIdentity', + "64": 'AT_DropIdentity', + "65": 'AT_ReAddStatistics' + }, + GrantTargetType: { + "0": 'ACL_TARGET_OBJECT', + "1": 'ACL_TARGET_ALL_IN_SCHEMA', + "2": 'ACL_TARGET_DEFAULTS' + }, + VariableSetKind: { + "0": 'VAR_SET_VALUE', + "1": 'VAR_SET_DEFAULT', + "2": 'VAR_SET_CURRENT', + "3": 'VAR_SET_MULTI', + "4": 'VAR_RESET', + "5": 'VAR_RESET_ALL' + }, + ConstrType: { + "0": 'CONSTR_NULL', + "1": 'CONSTR_NOTNULL', + "2": 'CONSTR_DEFAULT', + "3": 'CONSTR_IDENTITY', + "4": 'CONSTR_GENERATED', + "5": 'CONSTR_CHECK', + "6": 'CONSTR_PRIMARY', + "7": 'CONSTR_UNIQUE', + "8": 'CONSTR_EXCLUSION', + "9": 'CONSTR_FOREIGN', + "10": 'CONSTR_ATTR_DEFERRABLE', + "11": 'CONSTR_ATTR_NOT_DEFERRABLE', + "12": 'CONSTR_ATTR_DEFERRED', + "13": 'CONSTR_ATTR_IMMEDIATE' + }, + ImportForeignSchemaType: { + "0": 'FDW_IMPORT_SCHEMA_ALL', + "1": 'FDW_IMPORT_SCHEMA_LIMIT_TO', + "2": 'FDW_IMPORT_SCHEMA_EXCEPT' + }, + RoleStmtType: { + "0": 'ROLESTMT_ROLE', + "1": 'ROLESTMT_USER', + "2": 'ROLESTMT_GROUP' + }, + FetchDirection: { + "0": 'FETCH_FORWARD', + "1": 'FETCH_BACKWARD', + "2": 'FETCH_ABSOLUTE', + "3": 'FETCH_RELATIVE' + }, + FunctionParameterMode: { + "0": 'FUNC_PARAM_IN', + "1": 'FUNC_PARAM_OUT', + "2": 'FUNC_PARAM_INOUT', + "3": 'FUNC_PARAM_VARIADIC', + "4": 'FUNC_PARAM_TABLE', + "5": 'FUNC_PARAM_DEFAULT' + }, + TransactionStmtKind: { + "0": 'TRANS_STMT_BEGIN', + "1": 'TRANS_STMT_START', + "2": 'TRANS_STMT_COMMIT', + "3": 'TRANS_STMT_ROLLBACK', + "4": 'TRANS_STMT_SAVEPOINT', + "5": 'TRANS_STMT_RELEASE', + "6": 'TRANS_STMT_ROLLBACK_TO', + "7": 'TRANS_STMT_PREPARE', + "8": 'TRANS_STMT_COMMIT_PREPARED', + "9": 'TRANS_STMT_ROLLBACK_PREPARED' + }, + ViewCheckOption: { + "0": 'NO_CHECK_OPTION', + "1": 'LOCAL_CHECK_OPTION', + "2": 'CASCADED_CHECK_OPTION' + }, + DiscardMode: { + "0": 'DISCARD_ALL', + "1": 'DISCARD_PLANS', + "2": 'DISCARD_SEQUENCES', + "3": 'DISCARD_TEMP' + }, + ReindexObjectType: { + "0": 'REINDEX_OBJECT_INDEX', + "1": 'REINDEX_OBJECT_TABLE', + "2": 'REINDEX_OBJECT_SCHEMA', + "3": 'REINDEX_OBJECT_SYSTEM', + "4": 'REINDEX_OBJECT_DATABASE' + }, + AlterTSConfigType: { + "0": 'ALTER_TSCONFIG_ADD_MAPPING', + "1": 'ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN', + "2": 'ALTER_TSCONFIG_REPLACE_DICT', + "3": 'ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN', + "4": 'ALTER_TSCONFIG_DROP_MAPPING' + }, + PublicationObjSpecType: { + "0": 'PUBLICATIONOBJ_TABLE', + "1": 'PUBLICATIONOBJ_TABLES_IN_SCHEMA', + "2": 'PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA', + "3": 'PUBLICATIONOBJ_CONTINUATION' + }, + AlterPublicationAction: { + "0": 'AP_AddObjects', + "1": 'AP_DropObjects', + "2": 'AP_SetObjects' + }, + AlterSubscriptionType: { + "0": 'ALTER_SUBSCRIPTION_OPTIONS', + "1": 'ALTER_SUBSCRIPTION_CONNECTION', + "2": 'ALTER_SUBSCRIPTION_SET_PUBLICATION', + "3": 'ALTER_SUBSCRIPTION_ADD_PUBLICATION', + "4": 'ALTER_SUBSCRIPTION_DROP_PUBLICATION', + "5": 'ALTER_SUBSCRIPTION_REFRESH', + "6": 'ALTER_SUBSCRIPTION_ENABLED', + "7": 'ALTER_SUBSCRIPTION_SKIP' + }, + OnCommitAction: { + "0": 'ONCOMMIT_NOOP', + "1": 'ONCOMMIT_PRESERVE_ROWS', + "2": 'ONCOMMIT_DELETE_ROWS', + "3": 'ONCOMMIT_DROP' + }, + ParamKind: { + "0": 'PARAM_EXTERN', + "1": 'PARAM_EXEC', + "2": 'PARAM_SUBLINK', + "3": 'PARAM_MULTIEXPR' + }, + CoercionContext: { + "0": 'COERCION_IMPLICIT', + "1": 'COERCION_ASSIGNMENT', + "2": 'COERCION_PLPGSQL', + "3": 'COERCION_EXPLICIT' + }, + CoercionForm: { + "0": 'COERCE_EXPLICIT_CALL', + "1": 'COERCE_EXPLICIT_CAST', + "2": 'COERCE_IMPLICIT_CAST', + "3": 'COERCE_SQL_SYNTAX' + }, + BoolExprType: { + "0": 'AND_EXPR', + "1": 'OR_EXPR', + "2": 'NOT_EXPR' + }, + SubLinkType: { + "0": 'EXISTS_SUBLINK', + "1": 'ALL_SUBLINK', + "2": 'ANY_SUBLINK', + "3": 'ROWCOMPARE_SUBLINK', + "4": 'EXPR_SUBLINK', + "5": 'MULTIEXPR_SUBLINK', + "6": 'ARRAY_SUBLINK', + "7": 'CTE_SUBLINK' + }, + RowCompareType: { + "0": 'ROWCOMPARE_LT', + "1": 'ROWCOMPARE_LE', + "2": 'ROWCOMPARE_EQ', + "3": 'ROWCOMPARE_GE', + "4": 'ROWCOMPARE_GT', + "5": 'ROWCOMPARE_NE' + }, + MinMaxOp: { + "0": 'IS_GREATEST', + "1": 'IS_LEAST' + }, + SQLValueFunctionOp: { + "0": 'SVFOP_CURRENT_DATE', + "1": 'SVFOP_CURRENT_TIME', + "2": 'SVFOP_CURRENT_TIME_N', + "3": 'SVFOP_CURRENT_TIMESTAMP', + "4": 'SVFOP_CURRENT_TIMESTAMP_N', + "5": 'SVFOP_LOCALTIME', + "6": 'SVFOP_LOCALTIME_N', + "7": 'SVFOP_LOCALTIMESTAMP', + "8": 'SVFOP_LOCALTIMESTAMP_N', + "9": 'SVFOP_CURRENT_ROLE', + "10": 'SVFOP_CURRENT_USER', + "11": 'SVFOP_USER', + "12": 'SVFOP_SESSION_USER', + "13": 'SVFOP_CURRENT_CATALOG', + "14": 'SVFOP_CURRENT_SCHEMA' + }, + XmlExprOp: { + "0": 'IS_XMLCONCAT', + "1": 'IS_XMLELEMENT', + "2": 'IS_XMLFOREST', + "3": 'IS_XMLPARSE', + "4": 'IS_XMLPI', + "5": 'IS_XMLROOT', + "6": 'IS_XMLSERIALIZE', + "7": 'IS_DOCUMENT' + }, + XmlOptionType: { + "0": 'XMLOPTION_DOCUMENT', + "1": 'XMLOPTION_CONTENT' + }, + JsonEncoding: { + "0": 'JS_ENC_DEFAULT', + "1": 'JS_ENC_UTF8', + "2": 'JS_ENC_UTF16', + "3": 'JS_ENC_UTF32' + }, + JsonFormatType: { + "0": 'JS_FORMAT_DEFAULT', + "1": 'JS_FORMAT_JSON', + "2": 'JS_FORMAT_JSONB' + }, + JsonConstructorType: { + "0": 'JSCTOR_JSON_OBJECT', + "1": 'JSCTOR_JSON_ARRAY', + "2": 'JSCTOR_JSON_OBJECTAGG', + "3": 'JSCTOR_JSON_ARRAYAGG' + }, + JsonValueType: { + "0": 'JS_TYPE_ANY', + "1": 'JS_TYPE_OBJECT', + "2": 'JS_TYPE_ARRAY', + "3": 'JS_TYPE_SCALAR' + }, + NullTestType: { + "0": 'IS_NULL', + "1": 'IS_NOT_NULL' + }, + BoolTestType: { + "0": 'IS_TRUE', + "1": 'IS_NOT_TRUE', + "2": 'IS_FALSE', + "3": 'IS_NOT_FALSE', + "4": 'IS_UNKNOWN', + "5": 'IS_NOT_UNKNOWN' + }, + CmdType: { + "0": 'CMD_UNKNOWN', + "1": 'CMD_SELECT', + "2": 'CMD_UPDATE', + "3": 'CMD_INSERT', + "4": 'CMD_DELETE', + "5": 'CMD_MERGE', + "6": 'CMD_UTILITY', + "7": 'CMD_NOTHING' + }, + JoinType: { + "0": 'JOIN_INNER', + "1": 'JOIN_LEFT', + "2": 'JOIN_FULL', + "3": 'JOIN_RIGHT', + "4": 'JOIN_SEMI', + "5": 'JOIN_ANTI', + "6": 'JOIN_RIGHT_ANTI', + "7": 'JOIN_UNIQUE_OUTER', + "8": 'JOIN_UNIQUE_INNER' + }, + AggStrategy: { + "0": 'AGG_PLAIN', + "1": 'AGG_SORTED', + "2": 'AGG_HASHED', + "3": 'AGG_MIXED' + }, + AggSplit: { + "0": 'AGGSPLIT_SIMPLE', + "1": 'AGGSPLIT_INITIAL_SERIAL', + "2": 'AGGSPLIT_FINAL_DESERIAL' + }, + SetOpCmd: { + "0": 'SETOPCMD_INTERSECT', + "1": 'SETOPCMD_INTERSECT_ALL', + "2": 'SETOPCMD_EXCEPT', + "3": 'SETOPCMD_EXCEPT_ALL' + }, + SetOpStrategy: { + "0": 'SETOP_SORTED', + "1": 'SETOP_HASHED' + }, + OnConflictAction: { + "0": 'ONCONFLICT_NONE', + "1": 'ONCONFLICT_NOTHING', + "2": 'ONCONFLICT_UPDATE' + }, + LimitOption: { + "0": 'LIMIT_OPTION_DEFAULT', + "1": 'LIMIT_OPTION_COUNT', + "2": 'LIMIT_OPTION_WITH_TIES' + }, + LockClauseStrength: { + "0": 'LCS_NONE', + "1": 'LCS_FORKEYSHARE', + "2": 'LCS_FORSHARE', + "3": 'LCS_FORNOKEYUPDATE', + "4": 'LCS_FORUPDATE' + }, + LockWaitPolicy: { + "0": 'LockWaitBlock', + "1": 'LockWaitSkip', + "2": 'LockWaitError' + }, + LockTupleMode: { + "0": 'LockTupleKeyShare', + "1": 'LockTupleShare', + "2": 'LockTupleNoKeyExclusive', + "3": 'LockTupleExclusive' + }, + KeywordKind: { + "0": 'NO_KEYWORD', + "1": 'UNRESERVED_KEYWORD', + "2": 'COL_NAME_KEYWORD', + "3": 'TYPE_FUNC_NAME_KEYWORD', + "4": 'RESERVED_KEYWORD' + }, + Token: { + "0": 'NUL', + "36": 'ASCII_36', + "37": 'ASCII_37', + "40": 'ASCII_40', + "41": 'ASCII_41', + "42": 'ASCII_42', + "43": 'ASCII_43', + "44": 'ASCII_44', + "45": 'ASCII_45', + "46": 'ASCII_46', + "47": 'ASCII_47', + "58": 'ASCII_58', + "59": 'ASCII_59', + "60": 'ASCII_60', + "61": 'ASCII_61', + "62": 'ASCII_62', + "63": 'ASCII_63', + "91": 'ASCII_91', + "92": 'ASCII_92', + "93": 'ASCII_93', + "94": 'ASCII_94', + "258": 'IDENT', + "259": 'UIDENT', + "260": 'FCONST', + "261": 'SCONST', + "262": 'USCONST', + "263": 'BCONST', + "264": 'XCONST', + "265": 'Op', + "266": 'ICONST', + "267": 'PARAM', + "268": 'TYPECAST', + "269": 'DOT_DOT', + "270": 'COLON_EQUALS', + "271": 'EQUALS_GREATER', + "272": 'LESS_EQUALS', + "273": 'GREATER_EQUALS', + "274": 'NOT_EQUALS', + "275": 'SQL_COMMENT', + "276": 'C_COMMENT', + "277": 'ABORT_P', + "278": 'ABSENT', + "279": 'ABSOLUTE_P', + "280": 'ACCESS', + "281": 'ACTION', + "282": 'ADD_P', + "283": 'ADMIN', + "284": 'AFTER', + "285": 'AGGREGATE', + "286": 'ALL', + "287": 'ALSO', + "288": 'ALTER', + "289": 'ALWAYS', + "290": 'ANALYSE', + "291": 'ANALYZE', + "292": 'AND', + "293": 'ANY', + "294": 'ARRAY', + "295": 'AS', + "296": 'ASC', + "297": 'ASENSITIVE', + "298": 'ASSERTION', + "299": 'ASSIGNMENT', + "300": 'ASYMMETRIC', + "301": 'ATOMIC', + "302": 'AT', + "303": 'ATTACH', + "304": 'ATTRIBUTE', + "305": 'AUTHORIZATION', + "306": 'BACKWARD', + "307": 'BEFORE', + "308": 'BEGIN_P', + "309": 'BETWEEN', + "310": 'BIGINT', + "311": 'BINARY', + "312": 'BIT', + "313": 'BOOLEAN_P', + "314": 'BOTH', + "315": 'BREADTH', + "316": 'BY', + "317": 'CACHE', + "318": 'CALL', + "319": 'CALLED', + "320": 'CASCADE', + "321": 'CASCADED', + "322": 'CASE', + "323": 'CAST', + "324": 'CATALOG_P', + "325": 'CHAIN', + "326": 'CHAR_P', + "327": 'CHARACTER', + "328": 'CHARACTERISTICS', + "329": 'CHECK', + "330": 'CHECKPOINT', + "331": 'CLASS', + "332": 'CLOSE', + "333": 'CLUSTER', + "334": 'COALESCE', + "335": 'COLLATE', + "336": 'COLLATION', + "337": 'COLUMN', + "338": 'COLUMNS', + "339": 'COMMENT', + "340": 'COMMENTS', + "341": 'COMMIT', + "342": 'COMMITTED', + "343": 'COMPRESSION', + "344": 'CONCURRENTLY', + "345": 'CONFIGURATION', + "346": 'CONFLICT', + "347": 'CONNECTION', + "348": 'CONSTRAINT', + "349": 'CONSTRAINTS', + "350": 'CONTENT_P', + "351": 'CONTINUE_P', + "352": 'CONVERSION_P', + "353": 'COPY', + "354": 'COST', + "355": 'CREATE', + "356": 'CROSS', + "357": 'CSV', + "358": 'CUBE', + "359": 'CURRENT_P', + "360": 'CURRENT_CATALOG', + "361": 'CURRENT_DATE', + "362": 'CURRENT_ROLE', + "363": 'CURRENT_SCHEMA', + "364": 'CURRENT_TIME', + "365": 'CURRENT_TIMESTAMP', + "366": 'CURRENT_USER', + "367": 'CURSOR', + "368": 'CYCLE', + "369": 'DATA_P', + "370": 'DATABASE', + "371": 'DAY_P', + "372": 'DEALLOCATE', + "373": 'DEC', + "374": 'DECIMAL_P', + "375": 'DECLARE', + "376": 'DEFAULT', + "377": 'DEFAULTS', + "378": 'DEFERRABLE', + "379": 'DEFERRED', + "380": 'DEFINER', + "381": 'DELETE_P', + "382": 'DELIMITER', + "383": 'DELIMITERS', + "384": 'DEPENDS', + "385": 'DEPTH', + "386": 'DESC', + "387": 'DETACH', + "388": 'DICTIONARY', + "389": 'DISABLE_P', + "390": 'DISCARD', + "391": 'DISTINCT', + "392": 'DO', + "393": 'DOCUMENT_P', + "394": 'DOMAIN_P', + "395": 'DOUBLE_P', + "396": 'DROP', + "397": 'EACH', + "398": 'ELSE', + "399": 'ENABLE_P', + "400": 'ENCODING', + "401": 'ENCRYPTED', + "402": 'END_P', + "403": 'ENUM_P', + "404": 'ESCAPE', + "405": 'EVENT', + "406": 'EXCEPT', + "407": 'EXCLUDE', + "408": 'EXCLUDING', + "409": 'EXCLUSIVE', + "410": 'EXECUTE', + "411": 'EXISTS', + "412": 'EXPLAIN', + "413": 'EXPRESSION', + "414": 'EXTENSION', + "415": 'EXTERNAL', + "416": 'EXTRACT', + "417": 'FALSE_P', + "418": 'FAMILY', + "419": 'FETCH', + "420": 'FILTER', + "421": 'FINALIZE', + "422": 'FIRST_P', + "423": 'FLOAT_P', + "424": 'FOLLOWING', + "425": 'FOR', + "426": 'FORCE', + "427": 'FOREIGN', + "428": 'FORMAT', + "429": 'FORWARD', + "430": 'FREEZE', + "431": 'FROM', + "432": 'FULL', + "433": 'FUNCTION', + "434": 'FUNCTIONS', + "435": 'GENERATED', + "436": 'GLOBAL', + "437": 'GRANT', + "438": 'GRANTED', + "439": 'GREATEST', + "440": 'GROUP_P', + "441": 'GROUPING', + "442": 'GROUPS', + "443": 'HANDLER', + "444": 'HAVING', + "445": 'HEADER_P', + "446": 'HOLD', + "447": 'HOUR_P', + "448": 'IDENTITY_P', + "449": 'IF_P', + "450": 'ILIKE', + "451": 'IMMEDIATE', + "452": 'IMMUTABLE', + "453": 'IMPLICIT_P', + "454": 'IMPORT_P', + "455": 'IN_P', + "456": 'INCLUDE', + "457": 'INCLUDING', + "458": 'INCREMENT', + "459": 'INDENT', + "460": 'INDEX', + "461": 'INDEXES', + "462": 'INHERIT', + "463": 'INHERITS', + "464": 'INITIALLY', + "465": 'INLINE_P', + "466": 'INNER_P', + "467": 'INOUT', + "468": 'INPUT_P', + "469": 'INSENSITIVE', + "470": 'INSERT', + "471": 'INSTEAD', + "472": 'INT_P', + "473": 'INTEGER', + "474": 'INTERSECT', + "475": 'INTERVAL', + "476": 'INTO', + "477": 'INVOKER', + "478": 'IS', + "479": 'ISNULL', + "480": 'ISOLATION', + "481": 'JOIN', + "482": 'JSON', + "483": 'JSON_ARRAY', + "484": 'JSON_ARRAYAGG', + "485": 'JSON_OBJECT', + "486": 'JSON_OBJECTAGG', + "487": 'KEY', + "488": 'KEYS', + "489": 'LABEL', + "490": 'LANGUAGE', + "491": 'LARGE_P', + "492": 'LAST_P', + "493": 'LATERAL_P', + "494": 'LEADING', + "495": 'LEAKPROOF', + "496": 'LEAST', + "497": 'LEFT', + "498": 'LEVEL', + "499": 'LIKE', + "500": 'LIMIT', + "501": 'LISTEN', + "502": 'LOAD', + "503": 'LOCAL', + "504": 'LOCALTIME', + "505": 'LOCALTIMESTAMP', + "506": 'LOCATION', + "507": 'LOCK_P', + "508": 'LOCKED', + "509": 'LOGGED', + "510": 'MAPPING', + "511": 'MATCH', + "512": 'MATCHED', + "513": 'MATERIALIZED', + "514": 'MAXVALUE', + "515": 'MERGE', + "516": 'METHOD', + "517": 'MINUTE_P', + "518": 'MINVALUE', + "519": 'MODE', + "520": 'MONTH_P', + "521": 'MOVE', + "522": 'NAME_P', + "523": 'NAMES', + "524": 'NATIONAL', + "525": 'NATURAL', + "526": 'NCHAR', + "527": 'NEW', + "528": 'NEXT', + "529": 'NFC', + "530": 'NFD', + "531": 'NFKC', + "532": 'NFKD', + "533": 'NO', + "534": 'NONE', + "535": 'NORMALIZE', + "536": 'NORMALIZED', + "537": 'NOT', + "538": 'NOTHING', + "539": 'NOTIFY', + "540": 'NOTNULL', + "541": 'NOWAIT', + "542": 'NULL_P', + "543": 'NULLIF', + "544": 'NULLS_P', + "545": 'NUMERIC', + "546": 'OBJECT_P', + "547": 'OF', + "548": 'OFF', + "549": 'OFFSET', + "550": 'OIDS', + "551": 'OLD', + "552": 'ON', + "553": 'ONLY', + "554": 'OPERATOR', + "555": 'OPTION', + "556": 'OPTIONS', + "557": 'OR', + "558": 'ORDER', + "559": 'ORDINALITY', + "560": 'OTHERS', + "561": 'OUT_P', + "562": 'OUTER_P', + "563": 'OVER', + "564": 'OVERLAPS', + "565": 'OVERLAY', + "566": 'OVERRIDING', + "567": 'OWNED', + "568": 'OWNER', + "569": 'PARALLEL', + "570": 'PARAMETER', + "571": 'PARSER', + "572": 'PARTIAL', + "573": 'PARTITION', + "574": 'PASSING', + "575": 'PASSWORD', + "576": 'PLACING', + "577": 'PLANS', + "578": 'POLICY', + "579": 'POSITION', + "580": 'PRECEDING', + "581": 'PRECISION', + "582": 'PRESERVE', + "583": 'PREPARE', + "584": 'PREPARED', + "585": 'PRIMARY', + "586": 'PRIOR', + "587": 'PRIVILEGES', + "588": 'PROCEDURAL', + "589": 'PROCEDURE', + "590": 'PROCEDURES', + "591": 'PROGRAM', + "592": 'PUBLICATION', + "593": 'QUOTE', + "594": 'RANGE', + "595": 'READ', + "596": 'REAL', + "597": 'REASSIGN', + "598": 'RECHECK', + "599": 'RECURSIVE', + "600": 'REF_P', + "601": 'REFERENCES', + "602": 'REFERENCING', + "603": 'REFRESH', + "604": 'REINDEX', + "605": 'RELATIVE_P', + "606": 'RELEASE', + "607": 'RENAME', + "608": 'REPEATABLE', + "609": 'REPLACE', + "610": 'REPLICA', + "611": 'RESET', + "612": 'RESTART', + "613": 'RESTRICT', + "614": 'RETURN', + "615": 'RETURNING', + "616": 'RETURNS', + "617": 'REVOKE', + "618": 'RIGHT', + "619": 'ROLE', + "620": 'ROLLBACK', + "621": 'ROLLUP', + "622": 'ROUTINE', + "623": 'ROUTINES', + "624": 'ROW', + "625": 'ROWS', + "626": 'RULE', + "627": 'SAVEPOINT', + "628": 'SCALAR', + "629": 'SCHEMA', + "630": 'SCHEMAS', + "631": 'SCROLL', + "632": 'SEARCH', + "633": 'SECOND_P', + "634": 'SECURITY', + "635": 'SELECT', + "636": 'SEQUENCE', + "637": 'SEQUENCES', + "638": 'SERIALIZABLE', + "639": 'SERVER', + "640": 'SESSION', + "641": 'SESSION_USER', + "642": 'SET', + "643": 'SETS', + "644": 'SETOF', + "645": 'SHARE', + "646": 'SHOW', + "647": 'SIMILAR', + "648": 'SIMPLE', + "649": 'SKIP', + "650": 'SMALLINT', + "651": 'SNAPSHOT', + "652": 'SOME', + "653": 'SQL_P', + "654": 'STABLE', + "655": 'STANDALONE_P', + "656": 'START', + "657": 'STATEMENT', + "658": 'STATISTICS', + "659": 'STDIN', + "660": 'STDOUT', + "661": 'STORAGE', + "662": 'STORED', + "663": 'STRICT_P', + "664": 'STRIP_P', + "665": 'SUBSCRIPTION', + "666": 'SUBSTRING', + "667": 'SUPPORT', + "668": 'SYMMETRIC', + "669": 'SYSID', + "670": 'SYSTEM_P', + "671": 'SYSTEM_USER', + "672": 'TABLE', + "673": 'TABLES', + "674": 'TABLESAMPLE', + "675": 'TABLESPACE', + "676": 'TEMP', + "677": 'TEMPLATE', + "678": 'TEMPORARY', + "679": 'TEXT_P', + "680": 'THEN', + "681": 'TIES', + "682": 'TIME', + "683": 'TIMESTAMP', + "684": 'TO', + "685": 'TRAILING', + "686": 'TRANSACTION', + "687": 'TRANSFORM', + "688": 'TREAT', + "689": 'TRIGGER', + "690": 'TRIM', + "691": 'TRUE_P', + "692": 'TRUNCATE', + "693": 'TRUSTED', + "694": 'TYPE_P', + "695": 'TYPES_P', + "696": 'UESCAPE', + "697": 'UNBOUNDED', + "698": 'UNCOMMITTED', + "699": 'UNENCRYPTED', + "700": 'UNION', + "701": 'UNIQUE', + "702": 'UNKNOWN', + "703": 'UNLISTEN', + "704": 'UNLOGGED', + "705": 'UNTIL', + "706": 'UPDATE', + "707": 'USER', + "708": 'USING', + "709": 'VACUUM', + "710": 'VALID', + "711": 'VALIDATE', + "712": 'VALIDATOR', + "713": 'VALUE_P', + "714": 'VALUES', + "715": 'VARCHAR', + "716": 'VARIADIC', + "717": 'VARYING', + "718": 'VERBOSE', + "719": 'VERSION_P', + "720": 'VIEW', + "721": 'VIEWS', + "722": 'VOLATILE', + "723": 'WHEN', + "724": 'WHERE', + "725": 'WHITESPACE_P', + "726": 'WINDOW', + "727": 'WITH', + "728": 'WITHIN', + "729": 'WITHOUT', + "730": 'WORK', + "731": 'WRAPPER', + "732": 'WRITE', + "733": 'XML_P', + "734": 'XMLATTRIBUTES', + "735": 'XMLCONCAT', + "736": 'XMLELEMENT', + "737": 'XMLEXISTS', + "738": 'XMLFOREST', + "739": 'XMLNAMESPACES', + "740": 'XMLPARSE', + "741": 'XMLPI', + "742": 'XMLROOT', + "743": 'XMLSERIALIZE', + "744": 'XMLTABLE', + "745": 'YEAR_P', + "746": 'YES_P', + "747": 'ZONE', + "748": 'FORMAT_LA', + "749": 'NOT_LA', + "750": 'NULLS_LA', + "751": 'WITH_LA', + "752": 'WITHOUT_LA', + "753": 'MODE_TYPE_NAME', + "754": 'MODE_PLPGSQL_EXPR', + "755": 'MODE_PLPGSQL_ASSIGN1', + "756": 'MODE_PLPGSQL_ASSIGN2', + "757": 'MODE_PLPGSQL_ASSIGN3', + "758": 'UMINUS' + } +}; +export type EnumToStrMap = typeof enumToStrMap; \ No newline at end of file diff --git a/__fixtures__/output/enum-maps/only-str/enum-to-str.json b/__fixtures__/output/enum-maps/only-str/enum-to-str.json new file mode 100644 index 00000000..1c51be68 --- /dev/null +++ b/__fixtures__/output/enum-maps/only-str/enum-to-str.json @@ -0,0 +1,1073 @@ +{ + "OverridingKind": { + "0": "OVERRIDING_NOT_SET", + "1": "OVERRIDING_USER_VALUE", + "2": "OVERRIDING_SYSTEM_VALUE" + }, + "QuerySource": { + "0": "QSRC_ORIGINAL", + "1": "QSRC_PARSER", + "2": "QSRC_INSTEAD_RULE", + "3": "QSRC_QUAL_INSTEAD_RULE", + "4": "QSRC_NON_INSTEAD_RULE" + }, + "SortByDir": { + "0": "SORTBY_DEFAULT", + "1": "SORTBY_ASC", + "2": "SORTBY_DESC", + "3": "SORTBY_USING" + }, + "SortByNulls": { + "0": "SORTBY_NULLS_DEFAULT", + "1": "SORTBY_NULLS_FIRST", + "2": "SORTBY_NULLS_LAST" + }, + "SetQuantifier": { + "0": "SET_QUANTIFIER_DEFAULT", + "1": "SET_QUANTIFIER_ALL", + "2": "SET_QUANTIFIER_DISTINCT" + }, + "A_Expr_Kind": { + "0": "AEXPR_OP", + "1": "AEXPR_OP_ANY", + "2": "AEXPR_OP_ALL", + "3": "AEXPR_DISTINCT", + "4": "AEXPR_NOT_DISTINCT", + "5": "AEXPR_NULLIF", + "6": "AEXPR_IN", + "7": "AEXPR_LIKE", + "8": "AEXPR_ILIKE", + "9": "AEXPR_SIMILAR", + "10": "AEXPR_BETWEEN", + "11": "AEXPR_NOT_BETWEEN", + "12": "AEXPR_BETWEEN_SYM", + "13": "AEXPR_NOT_BETWEEN_SYM" + }, + "RoleSpecType": { + "0": "ROLESPEC_CSTRING", + "1": "ROLESPEC_CURRENT_ROLE", + "2": "ROLESPEC_CURRENT_USER", + "3": "ROLESPEC_SESSION_USER", + "4": "ROLESPEC_PUBLIC" + }, + "TableLikeOption": { + "0": "CREATE_TABLE_LIKE_COMMENTS", + "1": "CREATE_TABLE_LIKE_COMPRESSION", + "2": "CREATE_TABLE_LIKE_CONSTRAINTS", + "3": "CREATE_TABLE_LIKE_DEFAULTS", + "4": "CREATE_TABLE_LIKE_GENERATED", + "5": "CREATE_TABLE_LIKE_IDENTITY", + "6": "CREATE_TABLE_LIKE_INDEXES", + "7": "CREATE_TABLE_LIKE_STATISTICS", + "8": "CREATE_TABLE_LIKE_STORAGE", + "9": "CREATE_TABLE_LIKE_ALL" + }, + "DefElemAction": { + "0": "DEFELEM_UNSPEC", + "1": "DEFELEM_SET", + "2": "DEFELEM_ADD", + "3": "DEFELEM_DROP" + }, + "PartitionStrategy": { + "0": "PARTITION_STRATEGY_LIST", + "1": "PARTITION_STRATEGY_RANGE", + "2": "PARTITION_STRATEGY_HASH" + }, + "PartitionRangeDatumKind": { + "0": "PARTITION_RANGE_DATUM_MINVALUE", + "1": "PARTITION_RANGE_DATUM_VALUE", + "2": "PARTITION_RANGE_DATUM_MAXVALUE" + }, + "RTEKind": { + "0": "RTE_RELATION", + "1": "RTE_SUBQUERY", + "2": "RTE_JOIN", + "3": "RTE_FUNCTION", + "4": "RTE_TABLEFUNC", + "5": "RTE_VALUES", + "6": "RTE_CTE", + "7": "RTE_NAMEDTUPLESTORE", + "8": "RTE_RESULT" + }, + "WCOKind": { + "0": "WCO_VIEW_CHECK", + "1": "WCO_RLS_INSERT_CHECK", + "2": "WCO_RLS_UPDATE_CHECK", + "3": "WCO_RLS_CONFLICT_CHECK", + "4": "WCO_RLS_MERGE_UPDATE_CHECK", + "5": "WCO_RLS_MERGE_DELETE_CHECK" + }, + "GroupingSetKind": { + "0": "GROUPING_SET_EMPTY", + "1": "GROUPING_SET_SIMPLE", + "2": "GROUPING_SET_ROLLUP", + "3": "GROUPING_SET_CUBE", + "4": "GROUPING_SET_SETS" + }, + "CTEMaterialize": { + "0": "CTEMaterializeDefault", + "1": "CTEMaterializeAlways", + "2": "CTEMaterializeNever" + }, + "SetOperation": { + "0": "SETOP_NONE", + "1": "SETOP_UNION", + "2": "SETOP_INTERSECT", + "3": "SETOP_EXCEPT" + }, + "ObjectType": { + "0": "OBJECT_ACCESS_METHOD", + "1": "OBJECT_AGGREGATE", + "2": "OBJECT_AMOP", + "3": "OBJECT_AMPROC", + "4": "OBJECT_ATTRIBUTE", + "5": "OBJECT_CAST", + "6": "OBJECT_COLUMN", + "7": "OBJECT_COLLATION", + "8": "OBJECT_CONVERSION", + "9": "OBJECT_DATABASE", + "10": "OBJECT_DEFAULT", + "11": "OBJECT_DEFACL", + "12": "OBJECT_DOMAIN", + "13": "OBJECT_DOMCONSTRAINT", + "14": "OBJECT_EVENT_TRIGGER", + "15": "OBJECT_EXTENSION", + "16": "OBJECT_FDW", + "17": "OBJECT_FOREIGN_SERVER", + "18": "OBJECT_FOREIGN_TABLE", + "19": "OBJECT_FUNCTION", + "20": "OBJECT_INDEX", + "21": "OBJECT_LANGUAGE", + "22": "OBJECT_LARGEOBJECT", + "23": "OBJECT_MATVIEW", + "24": "OBJECT_OPCLASS", + "25": "OBJECT_OPERATOR", + "26": "OBJECT_OPFAMILY", + "27": "OBJECT_PARAMETER_ACL", + "28": "OBJECT_POLICY", + "29": "OBJECT_PROCEDURE", + "30": "OBJECT_PUBLICATION", + "31": "OBJECT_PUBLICATION_NAMESPACE", + "32": "OBJECT_PUBLICATION_REL", + "33": "OBJECT_ROLE", + "34": "OBJECT_ROUTINE", + "35": "OBJECT_RULE", + "36": "OBJECT_SCHEMA", + "37": "OBJECT_SEQUENCE", + "38": "OBJECT_SUBSCRIPTION", + "39": "OBJECT_STATISTIC_EXT", + "40": "OBJECT_TABCONSTRAINT", + "41": "OBJECT_TABLE", + "42": "OBJECT_TABLESPACE", + "43": "OBJECT_TRANSFORM", + "44": "OBJECT_TRIGGER", + "45": "OBJECT_TSCONFIGURATION", + "46": "OBJECT_TSDICTIONARY", + "47": "OBJECT_TSPARSER", + "48": "OBJECT_TSTEMPLATE", + "49": "OBJECT_TYPE", + "50": "OBJECT_USER_MAPPING", + "51": "OBJECT_VIEW" + }, + "DropBehavior": { + "0": "DROP_RESTRICT", + "1": "DROP_CASCADE" + }, + "AlterTableType": { + "0": "AT_AddColumn", + "1": "AT_AddColumnToView", + "2": "AT_ColumnDefault", + "3": "AT_CookedColumnDefault", + "4": "AT_DropNotNull", + "5": "AT_SetNotNull", + "6": "AT_DropExpression", + "7": "AT_CheckNotNull", + "8": "AT_SetStatistics", + "9": "AT_SetOptions", + "10": "AT_ResetOptions", + "11": "AT_SetStorage", + "12": "AT_SetCompression", + "13": "AT_DropColumn", + "14": "AT_AddIndex", + "15": "AT_ReAddIndex", + "16": "AT_AddConstraint", + "17": "AT_ReAddConstraint", + "18": "AT_ReAddDomainConstraint", + "19": "AT_AlterConstraint", + "20": "AT_ValidateConstraint", + "21": "AT_AddIndexConstraint", + "22": "AT_DropConstraint", + "23": "AT_ReAddComment", + "24": "AT_AlterColumnType", + "25": "AT_AlterColumnGenericOptions", + "26": "AT_ChangeOwner", + "27": "AT_ClusterOn", + "28": "AT_DropCluster", + "29": "AT_SetLogged", + "30": "AT_SetUnLogged", + "31": "AT_DropOids", + "32": "AT_SetAccessMethod", + "33": "AT_SetTableSpace", + "34": "AT_SetRelOptions", + "35": "AT_ResetRelOptions", + "36": "AT_ReplaceRelOptions", + "37": "AT_EnableTrig", + "38": "AT_EnableAlwaysTrig", + "39": "AT_EnableReplicaTrig", + "40": "AT_DisableTrig", + "41": "AT_EnableTrigAll", + "42": "AT_DisableTrigAll", + "43": "AT_EnableTrigUser", + "44": "AT_DisableTrigUser", + "45": "AT_EnableRule", + "46": "AT_EnableAlwaysRule", + "47": "AT_EnableReplicaRule", + "48": "AT_DisableRule", + "49": "AT_AddInherit", + "50": "AT_DropInherit", + "51": "AT_AddOf", + "52": "AT_DropOf", + "53": "AT_ReplicaIdentity", + "54": "AT_EnableRowSecurity", + "55": "AT_DisableRowSecurity", + "56": "AT_ForceRowSecurity", + "57": "AT_NoForceRowSecurity", + "58": "AT_GenericOptions", + "59": "AT_AttachPartition", + "60": "AT_DetachPartition", + "61": "AT_DetachPartitionFinalize", + "62": "AT_AddIdentity", + "63": "AT_SetIdentity", + "64": "AT_DropIdentity", + "65": "AT_ReAddStatistics" + }, + "GrantTargetType": { + "0": "ACL_TARGET_OBJECT", + "1": "ACL_TARGET_ALL_IN_SCHEMA", + "2": "ACL_TARGET_DEFAULTS" + }, + "VariableSetKind": { + "0": "VAR_SET_VALUE", + "1": "VAR_SET_DEFAULT", + "2": "VAR_SET_CURRENT", + "3": "VAR_SET_MULTI", + "4": "VAR_RESET", + "5": "VAR_RESET_ALL" + }, + "ConstrType": { + "0": "CONSTR_NULL", + "1": "CONSTR_NOTNULL", + "2": "CONSTR_DEFAULT", + "3": "CONSTR_IDENTITY", + "4": "CONSTR_GENERATED", + "5": "CONSTR_CHECK", + "6": "CONSTR_PRIMARY", + "7": "CONSTR_UNIQUE", + "8": "CONSTR_EXCLUSION", + "9": "CONSTR_FOREIGN", + "10": "CONSTR_ATTR_DEFERRABLE", + "11": "CONSTR_ATTR_NOT_DEFERRABLE", + "12": "CONSTR_ATTR_DEFERRED", + "13": "CONSTR_ATTR_IMMEDIATE" + }, + "ImportForeignSchemaType": { + "0": "FDW_IMPORT_SCHEMA_ALL", + "1": "FDW_IMPORT_SCHEMA_LIMIT_TO", + "2": "FDW_IMPORT_SCHEMA_EXCEPT" + }, + "RoleStmtType": { + "0": "ROLESTMT_ROLE", + "1": "ROLESTMT_USER", + "2": "ROLESTMT_GROUP" + }, + "FetchDirection": { + "0": "FETCH_FORWARD", + "1": "FETCH_BACKWARD", + "2": "FETCH_ABSOLUTE", + "3": "FETCH_RELATIVE" + }, + "FunctionParameterMode": { + "0": "FUNC_PARAM_IN", + "1": "FUNC_PARAM_OUT", + "2": "FUNC_PARAM_INOUT", + "3": "FUNC_PARAM_VARIADIC", + "4": "FUNC_PARAM_TABLE", + "5": "FUNC_PARAM_DEFAULT" + }, + "TransactionStmtKind": { + "0": "TRANS_STMT_BEGIN", + "1": "TRANS_STMT_START", + "2": "TRANS_STMT_COMMIT", + "3": "TRANS_STMT_ROLLBACK", + "4": "TRANS_STMT_SAVEPOINT", + "5": "TRANS_STMT_RELEASE", + "6": "TRANS_STMT_ROLLBACK_TO", + "7": "TRANS_STMT_PREPARE", + "8": "TRANS_STMT_COMMIT_PREPARED", + "9": "TRANS_STMT_ROLLBACK_PREPARED" + }, + "ViewCheckOption": { + "0": "NO_CHECK_OPTION", + "1": "LOCAL_CHECK_OPTION", + "2": "CASCADED_CHECK_OPTION" + }, + "DiscardMode": { + "0": "DISCARD_ALL", + "1": "DISCARD_PLANS", + "2": "DISCARD_SEQUENCES", + "3": "DISCARD_TEMP" + }, + "ReindexObjectType": { + "0": "REINDEX_OBJECT_INDEX", + "1": "REINDEX_OBJECT_TABLE", + "2": "REINDEX_OBJECT_SCHEMA", + "3": "REINDEX_OBJECT_SYSTEM", + "4": "REINDEX_OBJECT_DATABASE" + }, + "AlterTSConfigType": { + "0": "ALTER_TSCONFIG_ADD_MAPPING", + "1": "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN", + "2": "ALTER_TSCONFIG_REPLACE_DICT", + "3": "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN", + "4": "ALTER_TSCONFIG_DROP_MAPPING" + }, + "PublicationObjSpecType": { + "0": "PUBLICATIONOBJ_TABLE", + "1": "PUBLICATIONOBJ_TABLES_IN_SCHEMA", + "2": "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA", + "3": "PUBLICATIONOBJ_CONTINUATION" + }, + "AlterPublicationAction": { + "0": "AP_AddObjects", + "1": "AP_DropObjects", + "2": "AP_SetObjects" + }, + "AlterSubscriptionType": { + "0": "ALTER_SUBSCRIPTION_OPTIONS", + "1": "ALTER_SUBSCRIPTION_CONNECTION", + "2": "ALTER_SUBSCRIPTION_SET_PUBLICATION", + "3": "ALTER_SUBSCRIPTION_ADD_PUBLICATION", + "4": "ALTER_SUBSCRIPTION_DROP_PUBLICATION", + "5": "ALTER_SUBSCRIPTION_REFRESH", + "6": "ALTER_SUBSCRIPTION_ENABLED", + "7": "ALTER_SUBSCRIPTION_SKIP" + }, + "OnCommitAction": { + "0": "ONCOMMIT_NOOP", + "1": "ONCOMMIT_PRESERVE_ROWS", + "2": "ONCOMMIT_DELETE_ROWS", + "3": "ONCOMMIT_DROP" + }, + "ParamKind": { + "0": "PARAM_EXTERN", + "1": "PARAM_EXEC", + "2": "PARAM_SUBLINK", + "3": "PARAM_MULTIEXPR" + }, + "CoercionContext": { + "0": "COERCION_IMPLICIT", + "1": "COERCION_ASSIGNMENT", + "2": "COERCION_PLPGSQL", + "3": "COERCION_EXPLICIT" + }, + "CoercionForm": { + "0": "COERCE_EXPLICIT_CALL", + "1": "COERCE_EXPLICIT_CAST", + "2": "COERCE_IMPLICIT_CAST", + "3": "COERCE_SQL_SYNTAX" + }, + "BoolExprType": { + "0": "AND_EXPR", + "1": "OR_EXPR", + "2": "NOT_EXPR" + }, + "SubLinkType": { + "0": "EXISTS_SUBLINK", + "1": "ALL_SUBLINK", + "2": "ANY_SUBLINK", + "3": "ROWCOMPARE_SUBLINK", + "4": "EXPR_SUBLINK", + "5": "MULTIEXPR_SUBLINK", + "6": "ARRAY_SUBLINK", + "7": "CTE_SUBLINK" + }, + "RowCompareType": { + "0": "ROWCOMPARE_LT", + "1": "ROWCOMPARE_LE", + "2": "ROWCOMPARE_EQ", + "3": "ROWCOMPARE_GE", + "4": "ROWCOMPARE_GT", + "5": "ROWCOMPARE_NE" + }, + "MinMaxOp": { + "0": "IS_GREATEST", + "1": "IS_LEAST" + }, + "SQLValueFunctionOp": { + "0": "SVFOP_CURRENT_DATE", + "1": "SVFOP_CURRENT_TIME", + "2": "SVFOP_CURRENT_TIME_N", + "3": "SVFOP_CURRENT_TIMESTAMP", + "4": "SVFOP_CURRENT_TIMESTAMP_N", + "5": "SVFOP_LOCALTIME", + "6": "SVFOP_LOCALTIME_N", + "7": "SVFOP_LOCALTIMESTAMP", + "8": "SVFOP_LOCALTIMESTAMP_N", + "9": "SVFOP_CURRENT_ROLE", + "10": "SVFOP_CURRENT_USER", + "11": "SVFOP_USER", + "12": "SVFOP_SESSION_USER", + "13": "SVFOP_CURRENT_CATALOG", + "14": "SVFOP_CURRENT_SCHEMA" + }, + "XmlExprOp": { + "0": "IS_XMLCONCAT", + "1": "IS_XMLELEMENT", + "2": "IS_XMLFOREST", + "3": "IS_XMLPARSE", + "4": "IS_XMLPI", + "5": "IS_XMLROOT", + "6": "IS_XMLSERIALIZE", + "7": "IS_DOCUMENT" + }, + "XmlOptionType": { + "0": "XMLOPTION_DOCUMENT", + "1": "XMLOPTION_CONTENT" + }, + "JsonEncoding": { + "0": "JS_ENC_DEFAULT", + "1": "JS_ENC_UTF8", + "2": "JS_ENC_UTF16", + "3": "JS_ENC_UTF32" + }, + "JsonFormatType": { + "0": "JS_FORMAT_DEFAULT", + "1": "JS_FORMAT_JSON", + "2": "JS_FORMAT_JSONB" + }, + "JsonConstructorType": { + "0": "JSCTOR_JSON_OBJECT", + "1": "JSCTOR_JSON_ARRAY", + "2": "JSCTOR_JSON_OBJECTAGG", + "3": "JSCTOR_JSON_ARRAYAGG" + }, + "JsonValueType": { + "0": "JS_TYPE_ANY", + "1": "JS_TYPE_OBJECT", + "2": "JS_TYPE_ARRAY", + "3": "JS_TYPE_SCALAR" + }, + "NullTestType": { + "0": "IS_NULL", + "1": "IS_NOT_NULL" + }, + "BoolTestType": { + "0": "IS_TRUE", + "1": "IS_NOT_TRUE", + "2": "IS_FALSE", + "3": "IS_NOT_FALSE", + "4": "IS_UNKNOWN", + "5": "IS_NOT_UNKNOWN" + }, + "CmdType": { + "0": "CMD_UNKNOWN", + "1": "CMD_SELECT", + "2": "CMD_UPDATE", + "3": "CMD_INSERT", + "4": "CMD_DELETE", + "5": "CMD_MERGE", + "6": "CMD_UTILITY", + "7": "CMD_NOTHING" + }, + "JoinType": { + "0": "JOIN_INNER", + "1": "JOIN_LEFT", + "2": "JOIN_FULL", + "3": "JOIN_RIGHT", + "4": "JOIN_SEMI", + "5": "JOIN_ANTI", + "6": "JOIN_RIGHT_ANTI", + "7": "JOIN_UNIQUE_OUTER", + "8": "JOIN_UNIQUE_INNER" + }, + "AggStrategy": { + "0": "AGG_PLAIN", + "1": "AGG_SORTED", + "2": "AGG_HASHED", + "3": "AGG_MIXED" + }, + "AggSplit": { + "0": "AGGSPLIT_SIMPLE", + "1": "AGGSPLIT_INITIAL_SERIAL", + "2": "AGGSPLIT_FINAL_DESERIAL" + }, + "SetOpCmd": { + "0": "SETOPCMD_INTERSECT", + "1": "SETOPCMD_INTERSECT_ALL", + "2": "SETOPCMD_EXCEPT", + "3": "SETOPCMD_EXCEPT_ALL" + }, + "SetOpStrategy": { + "0": "SETOP_SORTED", + "1": "SETOP_HASHED" + }, + "OnConflictAction": { + "0": "ONCONFLICT_NONE", + "1": "ONCONFLICT_NOTHING", + "2": "ONCONFLICT_UPDATE" + }, + "LimitOption": { + "0": "LIMIT_OPTION_DEFAULT", + "1": "LIMIT_OPTION_COUNT", + "2": "LIMIT_OPTION_WITH_TIES" + }, + "LockClauseStrength": { + "0": "LCS_NONE", + "1": "LCS_FORKEYSHARE", + "2": "LCS_FORSHARE", + "3": "LCS_FORNOKEYUPDATE", + "4": "LCS_FORUPDATE" + }, + "LockWaitPolicy": { + "0": "LockWaitBlock", + "1": "LockWaitSkip", + "2": "LockWaitError" + }, + "LockTupleMode": { + "0": "LockTupleKeyShare", + "1": "LockTupleShare", + "2": "LockTupleNoKeyExclusive", + "3": "LockTupleExclusive" + }, + "KeywordKind": { + "0": "NO_KEYWORD", + "1": "UNRESERVED_KEYWORD", + "2": "COL_NAME_KEYWORD", + "3": "TYPE_FUNC_NAME_KEYWORD", + "4": "RESERVED_KEYWORD" + }, + "Token": { + "0": "NUL", + "36": "ASCII_36", + "37": "ASCII_37", + "40": "ASCII_40", + "41": "ASCII_41", + "42": "ASCII_42", + "43": "ASCII_43", + "44": "ASCII_44", + "45": "ASCII_45", + "46": "ASCII_46", + "47": "ASCII_47", + "58": "ASCII_58", + "59": "ASCII_59", + "60": "ASCII_60", + "61": "ASCII_61", + "62": "ASCII_62", + "63": "ASCII_63", + "91": "ASCII_91", + "92": "ASCII_92", + "93": "ASCII_93", + "94": "ASCII_94", + "258": "IDENT", + "259": "UIDENT", + "260": "FCONST", + "261": "SCONST", + "262": "USCONST", + "263": "BCONST", + "264": "XCONST", + "265": "Op", + "266": "ICONST", + "267": "PARAM", + "268": "TYPECAST", + "269": "DOT_DOT", + "270": "COLON_EQUALS", + "271": "EQUALS_GREATER", + "272": "LESS_EQUALS", + "273": "GREATER_EQUALS", + "274": "NOT_EQUALS", + "275": "SQL_COMMENT", + "276": "C_COMMENT", + "277": "ABORT_P", + "278": "ABSENT", + "279": "ABSOLUTE_P", + "280": "ACCESS", + "281": "ACTION", + "282": "ADD_P", + "283": "ADMIN", + "284": "AFTER", + "285": "AGGREGATE", + "286": "ALL", + "287": "ALSO", + "288": "ALTER", + "289": "ALWAYS", + "290": "ANALYSE", + "291": "ANALYZE", + "292": "AND", + "293": "ANY", + "294": "ARRAY", + "295": "AS", + "296": "ASC", + "297": "ASENSITIVE", + "298": "ASSERTION", + "299": "ASSIGNMENT", + "300": "ASYMMETRIC", + "301": "ATOMIC", + "302": "AT", + "303": "ATTACH", + "304": "ATTRIBUTE", + "305": "AUTHORIZATION", + "306": "BACKWARD", + "307": "BEFORE", + "308": "BEGIN_P", + "309": "BETWEEN", + "310": "BIGINT", + "311": "BINARY", + "312": "BIT", + "313": "BOOLEAN_P", + "314": "BOTH", + "315": "BREADTH", + "316": "BY", + "317": "CACHE", + "318": "CALL", + "319": "CALLED", + "320": "CASCADE", + "321": "CASCADED", + "322": "CASE", + "323": "CAST", + "324": "CATALOG_P", + "325": "CHAIN", + "326": "CHAR_P", + "327": "CHARACTER", + "328": "CHARACTERISTICS", + "329": "CHECK", + "330": "CHECKPOINT", + "331": "CLASS", + "332": "CLOSE", + "333": "CLUSTER", + "334": "COALESCE", + "335": "COLLATE", + "336": "COLLATION", + "337": "COLUMN", + "338": "COLUMNS", + "339": "COMMENT", + "340": "COMMENTS", + "341": "COMMIT", + "342": "COMMITTED", + "343": "COMPRESSION", + "344": "CONCURRENTLY", + "345": "CONFIGURATION", + "346": "CONFLICT", + "347": "CONNECTION", + "348": "CONSTRAINT", + "349": "CONSTRAINTS", + "350": "CONTENT_P", + "351": "CONTINUE_P", + "352": "CONVERSION_P", + "353": "COPY", + "354": "COST", + "355": "CREATE", + "356": "CROSS", + "357": "CSV", + "358": "CUBE", + "359": "CURRENT_P", + "360": "CURRENT_CATALOG", + "361": "CURRENT_DATE", + "362": "CURRENT_ROLE", + "363": "CURRENT_SCHEMA", + "364": "CURRENT_TIME", + "365": "CURRENT_TIMESTAMP", + "366": "CURRENT_USER", + "367": "CURSOR", + "368": "CYCLE", + "369": "DATA_P", + "370": "DATABASE", + "371": "DAY_P", + "372": "DEALLOCATE", + "373": "DEC", + "374": "DECIMAL_P", + "375": "DECLARE", + "376": "DEFAULT", + "377": "DEFAULTS", + "378": "DEFERRABLE", + "379": "DEFERRED", + "380": "DEFINER", + "381": "DELETE_P", + "382": "DELIMITER", + "383": "DELIMITERS", + "384": "DEPENDS", + "385": "DEPTH", + "386": "DESC", + "387": "DETACH", + "388": "DICTIONARY", + "389": "DISABLE_P", + "390": "DISCARD", + "391": "DISTINCT", + "392": "DO", + "393": "DOCUMENT_P", + "394": "DOMAIN_P", + "395": "DOUBLE_P", + "396": "DROP", + "397": "EACH", + "398": "ELSE", + "399": "ENABLE_P", + "400": "ENCODING", + "401": "ENCRYPTED", + "402": "END_P", + "403": "ENUM_P", + "404": "ESCAPE", + "405": "EVENT", + "406": "EXCEPT", + "407": "EXCLUDE", + "408": "EXCLUDING", + "409": "EXCLUSIVE", + "410": "EXECUTE", + "411": "EXISTS", + "412": "EXPLAIN", + "413": "EXPRESSION", + "414": "EXTENSION", + "415": "EXTERNAL", + "416": "EXTRACT", + "417": "FALSE_P", + "418": "FAMILY", + "419": "FETCH", + "420": "FILTER", + "421": "FINALIZE", + "422": "FIRST_P", + "423": "FLOAT_P", + "424": "FOLLOWING", + "425": "FOR", + "426": "FORCE", + "427": "FOREIGN", + "428": "FORMAT", + "429": "FORWARD", + "430": "FREEZE", + "431": "FROM", + "432": "FULL", + "433": "FUNCTION", + "434": "FUNCTIONS", + "435": "GENERATED", + "436": "GLOBAL", + "437": "GRANT", + "438": "GRANTED", + "439": "GREATEST", + "440": "GROUP_P", + "441": "GROUPING", + "442": "GROUPS", + "443": "HANDLER", + "444": "HAVING", + "445": "HEADER_P", + "446": "HOLD", + "447": "HOUR_P", + "448": "IDENTITY_P", + "449": "IF_P", + "450": "ILIKE", + "451": "IMMEDIATE", + "452": "IMMUTABLE", + "453": "IMPLICIT_P", + "454": "IMPORT_P", + "455": "IN_P", + "456": "INCLUDE", + "457": "INCLUDING", + "458": "INCREMENT", + "459": "INDENT", + "460": "INDEX", + "461": "INDEXES", + "462": "INHERIT", + "463": "INHERITS", + "464": "INITIALLY", + "465": "INLINE_P", + "466": "INNER_P", + "467": "INOUT", + "468": "INPUT_P", + "469": "INSENSITIVE", + "470": "INSERT", + "471": "INSTEAD", + "472": "INT_P", + "473": "INTEGER", + "474": "INTERSECT", + "475": "INTERVAL", + "476": "INTO", + "477": "INVOKER", + "478": "IS", + "479": "ISNULL", + "480": "ISOLATION", + "481": "JOIN", + "482": "JSON", + "483": "JSON_ARRAY", + "484": "JSON_ARRAYAGG", + "485": "JSON_OBJECT", + "486": "JSON_OBJECTAGG", + "487": "KEY", + "488": "KEYS", + "489": "LABEL", + "490": "LANGUAGE", + "491": "LARGE_P", + "492": "LAST_P", + "493": "LATERAL_P", + "494": "LEADING", + "495": "LEAKPROOF", + "496": "LEAST", + "497": "LEFT", + "498": "LEVEL", + "499": "LIKE", + "500": "LIMIT", + "501": "LISTEN", + "502": "LOAD", + "503": "LOCAL", + "504": "LOCALTIME", + "505": "LOCALTIMESTAMP", + "506": "LOCATION", + "507": "LOCK_P", + "508": "LOCKED", + "509": "LOGGED", + "510": "MAPPING", + "511": "MATCH", + "512": "MATCHED", + "513": "MATERIALIZED", + "514": "MAXVALUE", + "515": "MERGE", + "516": "METHOD", + "517": "MINUTE_P", + "518": "MINVALUE", + "519": "MODE", + "520": "MONTH_P", + "521": "MOVE", + "522": "NAME_P", + "523": "NAMES", + "524": "NATIONAL", + "525": "NATURAL", + "526": "NCHAR", + "527": "NEW", + "528": "NEXT", + "529": "NFC", + "530": "NFD", + "531": "NFKC", + "532": "NFKD", + "533": "NO", + "534": "NONE", + "535": "NORMALIZE", + "536": "NORMALIZED", + "537": "NOT", + "538": "NOTHING", + "539": "NOTIFY", + "540": "NOTNULL", + "541": "NOWAIT", + "542": "NULL_P", + "543": "NULLIF", + "544": "NULLS_P", + "545": "NUMERIC", + "546": "OBJECT_P", + "547": "OF", + "548": "OFF", + "549": "OFFSET", + "550": "OIDS", + "551": "OLD", + "552": "ON", + "553": "ONLY", + "554": "OPERATOR", + "555": "OPTION", + "556": "OPTIONS", + "557": "OR", + "558": "ORDER", + "559": "ORDINALITY", + "560": "OTHERS", + "561": "OUT_P", + "562": "OUTER_P", + "563": "OVER", + "564": "OVERLAPS", + "565": "OVERLAY", + "566": "OVERRIDING", + "567": "OWNED", + "568": "OWNER", + "569": "PARALLEL", + "570": "PARAMETER", + "571": "PARSER", + "572": "PARTIAL", + "573": "PARTITION", + "574": "PASSING", + "575": "PASSWORD", + "576": "PLACING", + "577": "PLANS", + "578": "POLICY", + "579": "POSITION", + "580": "PRECEDING", + "581": "PRECISION", + "582": "PRESERVE", + "583": "PREPARE", + "584": "PREPARED", + "585": "PRIMARY", + "586": "PRIOR", + "587": "PRIVILEGES", + "588": "PROCEDURAL", + "589": "PROCEDURE", + "590": "PROCEDURES", + "591": "PROGRAM", + "592": "PUBLICATION", + "593": "QUOTE", + "594": "RANGE", + "595": "READ", + "596": "REAL", + "597": "REASSIGN", + "598": "RECHECK", + "599": "RECURSIVE", + "600": "REF_P", + "601": "REFERENCES", + "602": "REFERENCING", + "603": "REFRESH", + "604": "REINDEX", + "605": "RELATIVE_P", + "606": "RELEASE", + "607": "RENAME", + "608": "REPEATABLE", + "609": "REPLACE", + "610": "REPLICA", + "611": "RESET", + "612": "RESTART", + "613": "RESTRICT", + "614": "RETURN", + "615": "RETURNING", + "616": "RETURNS", + "617": "REVOKE", + "618": "RIGHT", + "619": "ROLE", + "620": "ROLLBACK", + "621": "ROLLUP", + "622": "ROUTINE", + "623": "ROUTINES", + "624": "ROW", + "625": "ROWS", + "626": "RULE", + "627": "SAVEPOINT", + "628": "SCALAR", + "629": "SCHEMA", + "630": "SCHEMAS", + "631": "SCROLL", + "632": "SEARCH", + "633": "SECOND_P", + "634": "SECURITY", + "635": "SELECT", + "636": "SEQUENCE", + "637": "SEQUENCES", + "638": "SERIALIZABLE", + "639": "SERVER", + "640": "SESSION", + "641": "SESSION_USER", + "642": "SET", + "643": "SETS", + "644": "SETOF", + "645": "SHARE", + "646": "SHOW", + "647": "SIMILAR", + "648": "SIMPLE", + "649": "SKIP", + "650": "SMALLINT", + "651": "SNAPSHOT", + "652": "SOME", + "653": "SQL_P", + "654": "STABLE", + "655": "STANDALONE_P", + "656": "START", + "657": "STATEMENT", + "658": "STATISTICS", + "659": "STDIN", + "660": "STDOUT", + "661": "STORAGE", + "662": "STORED", + "663": "STRICT_P", + "664": "STRIP_P", + "665": "SUBSCRIPTION", + "666": "SUBSTRING", + "667": "SUPPORT", + "668": "SYMMETRIC", + "669": "SYSID", + "670": "SYSTEM_P", + "671": "SYSTEM_USER", + "672": "TABLE", + "673": "TABLES", + "674": "TABLESAMPLE", + "675": "TABLESPACE", + "676": "TEMP", + "677": "TEMPLATE", + "678": "TEMPORARY", + "679": "TEXT_P", + "680": "THEN", + "681": "TIES", + "682": "TIME", + "683": "TIMESTAMP", + "684": "TO", + "685": "TRAILING", + "686": "TRANSACTION", + "687": "TRANSFORM", + "688": "TREAT", + "689": "TRIGGER", + "690": "TRIM", + "691": "TRUE_P", + "692": "TRUNCATE", + "693": "TRUSTED", + "694": "TYPE_P", + "695": "TYPES_P", + "696": "UESCAPE", + "697": "UNBOUNDED", + "698": "UNCOMMITTED", + "699": "UNENCRYPTED", + "700": "UNION", + "701": "UNIQUE", + "702": "UNKNOWN", + "703": "UNLISTEN", + "704": "UNLOGGED", + "705": "UNTIL", + "706": "UPDATE", + "707": "USER", + "708": "USING", + "709": "VACUUM", + "710": "VALID", + "711": "VALIDATE", + "712": "VALIDATOR", + "713": "VALUE_P", + "714": "VALUES", + "715": "VARCHAR", + "716": "VARIADIC", + "717": "VARYING", + "718": "VERBOSE", + "719": "VERSION_P", + "720": "VIEW", + "721": "VIEWS", + "722": "VOLATILE", + "723": "WHEN", + "724": "WHERE", + "725": "WHITESPACE_P", + "726": "WINDOW", + "727": "WITH", + "728": "WITHIN", + "729": "WITHOUT", + "730": "WORK", + "731": "WRAPPER", + "732": "WRITE", + "733": "XML_P", + "734": "XMLATTRIBUTES", + "735": "XMLCONCAT", + "736": "XMLELEMENT", + "737": "XMLEXISTS", + "738": "XMLFOREST", + "739": "XMLNAMESPACES", + "740": "XMLPARSE", + "741": "XMLPI", + "742": "XMLROOT", + "743": "XMLSERIALIZE", + "744": "XMLTABLE", + "745": "YEAR_P", + "746": "YES_P", + "747": "ZONE", + "748": "FORMAT_LA", + "749": "NOT_LA", + "750": "NULLS_LA", + "751": "WITH_LA", + "752": "WITHOUT_LA", + "753": "MODE_TYPE_NAME", + "754": "MODE_PLPGSQL_EXPR", + "755": "MODE_PLPGSQL_ASSIGN1", + "756": "MODE_PLPGSQL_ASSIGN2", + "757": "MODE_PLPGSQL_ASSIGN3", + "758": "UMINUS" + } +} \ No newline at end of file diff --git a/__fixtures__/output/enum-maps/only-str/enums.ts b/__fixtures__/output/enum-maps/only-str/enums.ts new file mode 100644 index 00000000..6abee53e --- /dev/null +++ b/__fixtures__/output/enum-maps/only-str/enums.ts @@ -0,0 +1,69 @@ +/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type OverridingKind = "OVERRIDING_NOT_SET" | "OVERRIDING_USER_VALUE" | "OVERRIDING_SYSTEM_VALUE"; +export type QuerySource = "QSRC_ORIGINAL" | "QSRC_PARSER" | "QSRC_INSTEAD_RULE" | "QSRC_QUAL_INSTEAD_RULE" | "QSRC_NON_INSTEAD_RULE"; +export type SortByDir = "SORTBY_DEFAULT" | "SORTBY_ASC" | "SORTBY_DESC" | "SORTBY_USING"; +export type SortByNulls = "SORTBY_NULLS_DEFAULT" | "SORTBY_NULLS_FIRST" | "SORTBY_NULLS_LAST"; +export type SetQuantifier = "SET_QUANTIFIER_DEFAULT" | "SET_QUANTIFIER_ALL" | "SET_QUANTIFIER_DISTINCT"; +export type A_Expr_Kind = "AEXPR_OP" | "AEXPR_OP_ANY" | "AEXPR_OP_ALL" | "AEXPR_DISTINCT" | "AEXPR_NOT_DISTINCT" | "AEXPR_NULLIF" | "AEXPR_IN" | "AEXPR_LIKE" | "AEXPR_ILIKE" | "AEXPR_SIMILAR" | "AEXPR_BETWEEN" | "AEXPR_NOT_BETWEEN" | "AEXPR_BETWEEN_SYM" | "AEXPR_NOT_BETWEEN_SYM"; +export type RoleSpecType = "ROLESPEC_CSTRING" | "ROLESPEC_CURRENT_ROLE" | "ROLESPEC_CURRENT_USER" | "ROLESPEC_SESSION_USER" | "ROLESPEC_PUBLIC"; +export type TableLikeOption = "CREATE_TABLE_LIKE_COMMENTS" | "CREATE_TABLE_LIKE_COMPRESSION" | "CREATE_TABLE_LIKE_CONSTRAINTS" | "CREATE_TABLE_LIKE_DEFAULTS" | "CREATE_TABLE_LIKE_GENERATED" | "CREATE_TABLE_LIKE_IDENTITY" | "CREATE_TABLE_LIKE_INDEXES" | "CREATE_TABLE_LIKE_STATISTICS" | "CREATE_TABLE_LIKE_STORAGE" | "CREATE_TABLE_LIKE_ALL"; +export type DefElemAction = "DEFELEM_UNSPEC" | "DEFELEM_SET" | "DEFELEM_ADD" | "DEFELEM_DROP"; +export type PartitionStrategy = "PARTITION_STRATEGY_LIST" | "PARTITION_STRATEGY_RANGE" | "PARTITION_STRATEGY_HASH"; +export type PartitionRangeDatumKind = "PARTITION_RANGE_DATUM_MINVALUE" | "PARTITION_RANGE_DATUM_VALUE" | "PARTITION_RANGE_DATUM_MAXVALUE"; +export type RTEKind = "RTE_RELATION" | "RTE_SUBQUERY" | "RTE_JOIN" | "RTE_FUNCTION" | "RTE_TABLEFUNC" | "RTE_VALUES" | "RTE_CTE" | "RTE_NAMEDTUPLESTORE" | "RTE_RESULT"; +export type WCOKind = "WCO_VIEW_CHECK" | "WCO_RLS_INSERT_CHECK" | "WCO_RLS_UPDATE_CHECK" | "WCO_RLS_CONFLICT_CHECK" | "WCO_RLS_MERGE_UPDATE_CHECK" | "WCO_RLS_MERGE_DELETE_CHECK"; +export type GroupingSetKind = "GROUPING_SET_EMPTY" | "GROUPING_SET_SIMPLE" | "GROUPING_SET_ROLLUP" | "GROUPING_SET_CUBE" | "GROUPING_SET_SETS"; +export type CTEMaterialize = "CTEMaterializeDefault" | "CTEMaterializeAlways" | "CTEMaterializeNever"; +export type SetOperation = "SETOP_NONE" | "SETOP_UNION" | "SETOP_INTERSECT" | "SETOP_EXCEPT"; +export type ObjectType = "OBJECT_ACCESS_METHOD" | "OBJECT_AGGREGATE" | "OBJECT_AMOP" | "OBJECT_AMPROC" | "OBJECT_ATTRIBUTE" | "OBJECT_CAST" | "OBJECT_COLUMN" | "OBJECT_COLLATION" | "OBJECT_CONVERSION" | "OBJECT_DATABASE" | "OBJECT_DEFAULT" | "OBJECT_DEFACL" | "OBJECT_DOMAIN" | "OBJECT_DOMCONSTRAINT" | "OBJECT_EVENT_TRIGGER" | "OBJECT_EXTENSION" | "OBJECT_FDW" | "OBJECT_FOREIGN_SERVER" | "OBJECT_FOREIGN_TABLE" | "OBJECT_FUNCTION" | "OBJECT_INDEX" | "OBJECT_LANGUAGE" | "OBJECT_LARGEOBJECT" | "OBJECT_MATVIEW" | "OBJECT_OPCLASS" | "OBJECT_OPERATOR" | "OBJECT_OPFAMILY" | "OBJECT_PARAMETER_ACL" | "OBJECT_POLICY" | "OBJECT_PROCEDURE" | "OBJECT_PUBLICATION" | "OBJECT_PUBLICATION_NAMESPACE" | "OBJECT_PUBLICATION_REL" | "OBJECT_ROLE" | "OBJECT_ROUTINE" | "OBJECT_RULE" | "OBJECT_SCHEMA" | "OBJECT_SEQUENCE" | "OBJECT_SUBSCRIPTION" | "OBJECT_STATISTIC_EXT" | "OBJECT_TABCONSTRAINT" | "OBJECT_TABLE" | "OBJECT_TABLESPACE" | "OBJECT_TRANSFORM" | "OBJECT_TRIGGER" | "OBJECT_TSCONFIGURATION" | "OBJECT_TSDICTIONARY" | "OBJECT_TSPARSER" | "OBJECT_TSTEMPLATE" | "OBJECT_TYPE" | "OBJECT_USER_MAPPING" | "OBJECT_VIEW"; +export type DropBehavior = "DROP_RESTRICT" | "DROP_CASCADE"; +export type AlterTableType = "AT_AddColumn" | "AT_AddColumnToView" | "AT_ColumnDefault" | "AT_CookedColumnDefault" | "AT_DropNotNull" | "AT_SetNotNull" | "AT_DropExpression" | "AT_CheckNotNull" | "AT_SetStatistics" | "AT_SetOptions" | "AT_ResetOptions" | "AT_SetStorage" | "AT_SetCompression" | "AT_DropColumn" | "AT_AddIndex" | "AT_ReAddIndex" | "AT_AddConstraint" | "AT_ReAddConstraint" | "AT_ReAddDomainConstraint" | "AT_AlterConstraint" | "AT_ValidateConstraint" | "AT_AddIndexConstraint" | "AT_DropConstraint" | "AT_ReAddComment" | "AT_AlterColumnType" | "AT_AlterColumnGenericOptions" | "AT_ChangeOwner" | "AT_ClusterOn" | "AT_DropCluster" | "AT_SetLogged" | "AT_SetUnLogged" | "AT_DropOids" | "AT_SetAccessMethod" | "AT_SetTableSpace" | "AT_SetRelOptions" | "AT_ResetRelOptions" | "AT_ReplaceRelOptions" | "AT_EnableTrig" | "AT_EnableAlwaysTrig" | "AT_EnableReplicaTrig" | "AT_DisableTrig" | "AT_EnableTrigAll" | "AT_DisableTrigAll" | "AT_EnableTrigUser" | "AT_DisableTrigUser" | "AT_EnableRule" | "AT_EnableAlwaysRule" | "AT_EnableReplicaRule" | "AT_DisableRule" | "AT_AddInherit" | "AT_DropInherit" | "AT_AddOf" | "AT_DropOf" | "AT_ReplicaIdentity" | "AT_EnableRowSecurity" | "AT_DisableRowSecurity" | "AT_ForceRowSecurity" | "AT_NoForceRowSecurity" | "AT_GenericOptions" | "AT_AttachPartition" | "AT_DetachPartition" | "AT_DetachPartitionFinalize" | "AT_AddIdentity" | "AT_SetIdentity" | "AT_DropIdentity" | "AT_ReAddStatistics"; +export type GrantTargetType = "ACL_TARGET_OBJECT" | "ACL_TARGET_ALL_IN_SCHEMA" | "ACL_TARGET_DEFAULTS"; +export type VariableSetKind = "VAR_SET_VALUE" | "VAR_SET_DEFAULT" | "VAR_SET_CURRENT" | "VAR_SET_MULTI" | "VAR_RESET" | "VAR_RESET_ALL"; +export type ConstrType = "CONSTR_NULL" | "CONSTR_NOTNULL" | "CONSTR_DEFAULT" | "CONSTR_IDENTITY" | "CONSTR_GENERATED" | "CONSTR_CHECK" | "CONSTR_PRIMARY" | "CONSTR_UNIQUE" | "CONSTR_EXCLUSION" | "CONSTR_FOREIGN" | "CONSTR_ATTR_DEFERRABLE" | "CONSTR_ATTR_NOT_DEFERRABLE" | "CONSTR_ATTR_DEFERRED" | "CONSTR_ATTR_IMMEDIATE"; +export type ImportForeignSchemaType = "FDW_IMPORT_SCHEMA_ALL" | "FDW_IMPORT_SCHEMA_LIMIT_TO" | "FDW_IMPORT_SCHEMA_EXCEPT"; +export type RoleStmtType = "ROLESTMT_ROLE" | "ROLESTMT_USER" | "ROLESTMT_GROUP"; +export type FetchDirection = "FETCH_FORWARD" | "FETCH_BACKWARD" | "FETCH_ABSOLUTE" | "FETCH_RELATIVE"; +export type FunctionParameterMode = "FUNC_PARAM_IN" | "FUNC_PARAM_OUT" | "FUNC_PARAM_INOUT" | "FUNC_PARAM_VARIADIC" | "FUNC_PARAM_TABLE" | "FUNC_PARAM_DEFAULT"; +export type TransactionStmtKind = "TRANS_STMT_BEGIN" | "TRANS_STMT_START" | "TRANS_STMT_COMMIT" | "TRANS_STMT_ROLLBACK" | "TRANS_STMT_SAVEPOINT" | "TRANS_STMT_RELEASE" | "TRANS_STMT_ROLLBACK_TO" | "TRANS_STMT_PREPARE" | "TRANS_STMT_COMMIT_PREPARED" | "TRANS_STMT_ROLLBACK_PREPARED"; +export type ViewCheckOption = "NO_CHECK_OPTION" | "LOCAL_CHECK_OPTION" | "CASCADED_CHECK_OPTION"; +export type DiscardMode = "DISCARD_ALL" | "DISCARD_PLANS" | "DISCARD_SEQUENCES" | "DISCARD_TEMP"; +export type ReindexObjectType = "REINDEX_OBJECT_INDEX" | "REINDEX_OBJECT_TABLE" | "REINDEX_OBJECT_SCHEMA" | "REINDEX_OBJECT_SYSTEM" | "REINDEX_OBJECT_DATABASE"; +export type AlterTSConfigType = "ALTER_TSCONFIG_ADD_MAPPING" | "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN" | "ALTER_TSCONFIG_REPLACE_DICT" | "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN" | "ALTER_TSCONFIG_DROP_MAPPING"; +export type PublicationObjSpecType = "PUBLICATIONOBJ_TABLE" | "PUBLICATIONOBJ_TABLES_IN_SCHEMA" | "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA" | "PUBLICATIONOBJ_CONTINUATION"; +export type AlterPublicationAction = "AP_AddObjects" | "AP_DropObjects" | "AP_SetObjects"; +export type AlterSubscriptionType = "ALTER_SUBSCRIPTION_OPTIONS" | "ALTER_SUBSCRIPTION_CONNECTION" | "ALTER_SUBSCRIPTION_SET_PUBLICATION" | "ALTER_SUBSCRIPTION_ADD_PUBLICATION" | "ALTER_SUBSCRIPTION_DROP_PUBLICATION" | "ALTER_SUBSCRIPTION_REFRESH" | "ALTER_SUBSCRIPTION_ENABLED" | "ALTER_SUBSCRIPTION_SKIP"; +export type OnCommitAction = "ONCOMMIT_NOOP" | "ONCOMMIT_PRESERVE_ROWS" | "ONCOMMIT_DELETE_ROWS" | "ONCOMMIT_DROP"; +export type ParamKind = "PARAM_EXTERN" | "PARAM_EXEC" | "PARAM_SUBLINK" | "PARAM_MULTIEXPR"; +export type CoercionContext = "COERCION_IMPLICIT" | "COERCION_ASSIGNMENT" | "COERCION_PLPGSQL" | "COERCION_EXPLICIT"; +export type CoercionForm = "COERCE_EXPLICIT_CALL" | "COERCE_EXPLICIT_CAST" | "COERCE_IMPLICIT_CAST" | "COERCE_SQL_SYNTAX"; +export type BoolExprType = "AND_EXPR" | "OR_EXPR" | "NOT_EXPR"; +export type SubLinkType = "EXISTS_SUBLINK" | "ALL_SUBLINK" | "ANY_SUBLINK" | "ROWCOMPARE_SUBLINK" | "EXPR_SUBLINK" | "MULTIEXPR_SUBLINK" | "ARRAY_SUBLINK" | "CTE_SUBLINK"; +export type RowCompareType = "ROWCOMPARE_LT" | "ROWCOMPARE_LE" | "ROWCOMPARE_EQ" | "ROWCOMPARE_GE" | "ROWCOMPARE_GT" | "ROWCOMPARE_NE"; +export type MinMaxOp = "IS_GREATEST" | "IS_LEAST"; +export type SQLValueFunctionOp = "SVFOP_CURRENT_DATE" | "SVFOP_CURRENT_TIME" | "SVFOP_CURRENT_TIME_N" | "SVFOP_CURRENT_TIMESTAMP" | "SVFOP_CURRENT_TIMESTAMP_N" | "SVFOP_LOCALTIME" | "SVFOP_LOCALTIME_N" | "SVFOP_LOCALTIMESTAMP" | "SVFOP_LOCALTIMESTAMP_N" | "SVFOP_CURRENT_ROLE" | "SVFOP_CURRENT_USER" | "SVFOP_USER" | "SVFOP_SESSION_USER" | "SVFOP_CURRENT_CATALOG" | "SVFOP_CURRENT_SCHEMA"; +export type XmlExprOp = "IS_XMLCONCAT" | "IS_XMLELEMENT" | "IS_XMLFOREST" | "IS_XMLPARSE" | "IS_XMLPI" | "IS_XMLROOT" | "IS_XMLSERIALIZE" | "IS_DOCUMENT"; +export type XmlOptionType = "XMLOPTION_DOCUMENT" | "XMLOPTION_CONTENT"; +export type JsonEncoding = "JS_ENC_DEFAULT" | "JS_ENC_UTF8" | "JS_ENC_UTF16" | "JS_ENC_UTF32"; +export type JsonFormatType = "JS_FORMAT_DEFAULT" | "JS_FORMAT_JSON" | "JS_FORMAT_JSONB"; +export type JsonConstructorType = "JSCTOR_JSON_OBJECT" | "JSCTOR_JSON_ARRAY" | "JSCTOR_JSON_OBJECTAGG" | "JSCTOR_JSON_ARRAYAGG"; +export type JsonValueType = "JS_TYPE_ANY" | "JS_TYPE_OBJECT" | "JS_TYPE_ARRAY" | "JS_TYPE_SCALAR"; +export type NullTestType = "IS_NULL" | "IS_NOT_NULL"; +export type BoolTestType = "IS_TRUE" | "IS_NOT_TRUE" | "IS_FALSE" | "IS_NOT_FALSE" | "IS_UNKNOWN" | "IS_NOT_UNKNOWN"; +export type CmdType = "CMD_UNKNOWN" | "CMD_SELECT" | "CMD_UPDATE" | "CMD_INSERT" | "CMD_DELETE" | "CMD_MERGE" | "CMD_UTILITY" | "CMD_NOTHING"; +export type JoinType = "JOIN_INNER" | "JOIN_LEFT" | "JOIN_FULL" | "JOIN_RIGHT" | "JOIN_SEMI" | "JOIN_ANTI" | "JOIN_RIGHT_ANTI" | "JOIN_UNIQUE_OUTER" | "JOIN_UNIQUE_INNER"; +export type AggStrategy = "AGG_PLAIN" | "AGG_SORTED" | "AGG_HASHED" | "AGG_MIXED"; +export type AggSplit = "AGGSPLIT_SIMPLE" | "AGGSPLIT_INITIAL_SERIAL" | "AGGSPLIT_FINAL_DESERIAL"; +export type SetOpCmd = "SETOPCMD_INTERSECT" | "SETOPCMD_INTERSECT_ALL" | "SETOPCMD_EXCEPT" | "SETOPCMD_EXCEPT_ALL"; +export type SetOpStrategy = "SETOP_SORTED" | "SETOP_HASHED"; +export type OnConflictAction = "ONCONFLICT_NONE" | "ONCONFLICT_NOTHING" | "ONCONFLICT_UPDATE"; +export type LimitOption = "LIMIT_OPTION_DEFAULT" | "LIMIT_OPTION_COUNT" | "LIMIT_OPTION_WITH_TIES"; +export type LockClauseStrength = "LCS_NONE" | "LCS_FORKEYSHARE" | "LCS_FORSHARE" | "LCS_FORNOKEYUPDATE" | "LCS_FORUPDATE"; +export type LockWaitPolicy = "LockWaitBlock" | "LockWaitSkip" | "LockWaitError"; +export type LockTupleMode = "LockTupleKeyShare" | "LockTupleShare" | "LockTupleNoKeyExclusive" | "LockTupleExclusive"; +export type KeywordKind = "NO_KEYWORD" | "UNRESERVED_KEYWORD" | "COL_NAME_KEYWORD" | "TYPE_FUNC_NAME_KEYWORD" | "RESERVED_KEYWORD"; +export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | "ASCII_42" | "ASCII_43" | "ASCII_44" | "ASCII_45" | "ASCII_46" | "ASCII_47" | "ASCII_58" | "ASCII_59" | "ASCII_60" | "ASCII_61" | "ASCII_62" | "ASCII_63" | "ASCII_91" | "ASCII_92" | "ASCII_93" | "ASCII_94" | "IDENT" | "UIDENT" | "FCONST" | "SCONST" | "USCONST" | "BCONST" | "XCONST" | "Op" | "ICONST" | "PARAM" | "TYPECAST" | "DOT_DOT" | "COLON_EQUALS" | "EQUALS_GREATER" | "LESS_EQUALS" | "GREATER_EQUALS" | "NOT_EQUALS" | "SQL_COMMENT" | "C_COMMENT" | "ABORT_P" | "ABSENT" | "ABSOLUTE_P" | "ACCESS" | "ACTION" | "ADD_P" | "ADMIN" | "AFTER" | "AGGREGATE" | "ALL" | "ALSO" | "ALTER" | "ALWAYS" | "ANALYSE" | "ANALYZE" | "AND" | "ANY" | "ARRAY" | "AS" | "ASC" | "ASENSITIVE" | "ASSERTION" | "ASSIGNMENT" | "ASYMMETRIC" | "ATOMIC" | "AT" | "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" | "CHAR_P" | "CHARACTER" | "CHARACTERISTICS" | "CHECK" | "CHECKPOINT" | "CLASS" | "CLOSE" | "CLUSTER" | "COALESCE" | "COLLATE" | "COLLATION" | "COLUMN" | "COLUMNS" | "COMMENT" | "COMMENTS" | "COMMIT" | "COMMITTED" | "COMPRESSION" | "CONCURRENTLY" | "CONFIGURATION" | "CONFLICT" | "CONNECTION" | "CONSTRAINT" | "CONSTRAINTS" | "CONTENT_P" | "CONTINUE_P" | "CONVERSION_P" | "COPY" | "COST" | "CREATE" | "CROSS" | "CSV" | "CUBE" | "CURRENT_P" | "CURRENT_CATALOG" | "CURRENT_DATE" | "CURRENT_ROLE" | "CURRENT_SCHEMA" | "CURRENT_TIME" | "CURRENT_TIMESTAMP" | "CURRENT_USER" | "CURSOR" | "CYCLE" | "DATA_P" | "DATABASE" | "DAY_P" | "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" | "ENABLE_P" | "ENCODING" | "ENCRYPTED" | "END_P" | "ENUM_P" | "ESCAPE" | "EVENT" | "EXCEPT" | "EXCLUDE" | "EXCLUDING" | "EXCLUSIVE" | "EXECUTE" | "EXISTS" | "EXPLAIN" | "EXPRESSION" | "EXTENSION" | "EXTERNAL" | "EXTRACT" | "FALSE_P" | "FAMILY" | "FETCH" | "FILTER" | "FINALIZE" | "FIRST_P" | "FLOAT_P" | "FOLLOWING" | "FOR" | "FORCE" | "FOREIGN" | "FORMAT" | "FORWARD" | "FREEZE" | "FROM" | "FULL" | "FUNCTION" | "FUNCTIONS" | "GENERATED" | "GLOBAL" | "GRANT" | "GRANTED" | "GREATEST" | "GROUP_P" | "GROUPING" | "GROUPS" | "HANDLER" | "HAVING" | "HEADER_P" | "HOLD" | "HOUR_P" | "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" | "INTERSECT" | "INTERVAL" | "INTO" | "INVOKER" | "IS" | "ISNULL" | "ISOLATION" | "JOIN" | "JSON" | "JSON_ARRAY" | "JSON_ARRAYAGG" | "JSON_OBJECT" | "JSON_OBJECTAGG" | "KEY" | "KEYS" | "LABEL" | "LANGUAGE" | "LARGE_P" | "LAST_P" | "LATERAL_P" | "LEADING" | "LEAKPROOF" | "LEAST" | "LEFT" | "LEVEL" | "LIKE" | "LIMIT" | "LISTEN" | "LOAD" | "LOCAL" | "LOCALTIME" | "LOCALTIMESTAMP" | "LOCATION" | "LOCK_P" | "LOCKED" | "LOGGED" | "MAPPING" | "MATCH" | "MATCHED" | "MATERIALIZED" | "MAXVALUE" | "MERGE" | "METHOD" | "MINUTE_P" | "MINVALUE" | "MODE" | "MONTH_P" | "MOVE" | "NAME_P" | "NAMES" | "NATIONAL" | "NATURAL" | "NCHAR" | "NEW" | "NEXT" | "NFC" | "NFD" | "NFKC" | "NFKD" | "NO" | "NONE" | "NORMALIZE" | "NORMALIZED" | "NOT" | "NOTHING" | "NOTIFY" | "NOTNULL" | "NOWAIT" | "NULL_P" | "NULLIF" | "NULLS_P" | "NUMERIC" | "OBJECT_P" | "OF" | "OFF" | "OFFSET" | "OIDS" | "OLD" | "ON" | "ONLY" | "OPERATOR" | "OPTION" | "OPTIONS" | "OR" | "ORDER" | "ORDINALITY" | "OTHERS" | "OUT_P" | "OUTER_P" | "OVER" | "OVERLAPS" | "OVERLAY" | "OVERRIDING" | "OWNED" | "OWNER" | "PARALLEL" | "PARAMETER" | "PARSER" | "PARTIAL" | "PARTITION" | "PASSING" | "PASSWORD" | "PLACING" | "PLANS" | "POLICY" | "POSITION" | "PRECEDING" | "PRECISION" | "PRESERVE" | "PREPARE" | "PREPARED" | "PRIMARY" | "PRIOR" | "PRIVILEGES" | "PROCEDURAL" | "PROCEDURE" | "PROCEDURES" | "PROGRAM" | "PUBLICATION" | "QUOTE" | "RANGE" | "READ" | "REAL" | "REASSIGN" | "RECHECK" | "RECURSIVE" | "REF_P" | "REFERENCES" | "REFERENCING" | "REFRESH" | "REINDEX" | "RELATIVE_P" | "RELEASE" | "RENAME" | "REPEATABLE" | "REPLACE" | "REPLICA" | "RESET" | "RESTART" | "RESTRICT" | "RETURN" | "RETURNING" | "RETURNS" | "REVOKE" | "RIGHT" | "ROLE" | "ROLLBACK" | "ROLLUP" | "ROUTINE" | "ROUTINES" | "ROW" | "ROWS" | "RULE" | "SAVEPOINT" | "SCALAR" | "SCHEMA" | "SCHEMAS" | "SCROLL" | "SEARCH" | "SECOND_P" | "SECURITY" | "SELECT" | "SEQUENCE" | "SEQUENCES" | "SERIALIZABLE" | "SERVER" | "SESSION" | "SESSION_USER" | "SET" | "SETS" | "SETOF" | "SHARE" | "SHOW" | "SIMILAR" | "SIMPLE" | "SKIP" | "SMALLINT" | "SNAPSHOT" | "SOME" | "SQL_P" | "STABLE" | "STANDALONE_P" | "START" | "STATEMENT" | "STATISTICS" | "STDIN" | "STDOUT" | "STORAGE" | "STORED" | "STRICT_P" | "STRIP_P" | "SUBSCRIPTION" | "SUBSTRING" | "SUPPORT" | "SYMMETRIC" | "SYSID" | "SYSTEM_P" | "SYSTEM_USER" | "TABLE" | "TABLES" | "TABLESAMPLE" | "TABLESPACE" | "TEMP" | "TEMPLATE" | "TEMPORARY" | "TEXT_P" | "THEN" | "TIES" | "TIME" | "TIMESTAMP" | "TO" | "TRAILING" | "TRANSACTION" | "TRANSFORM" | "TREAT" | "TRIGGER" | "TRIM" | "TRUE_P" | "TRUNCATE" | "TRUSTED" | "TYPE_P" | "TYPES_P" | "UESCAPE" | "UNBOUNDED" | "UNCOMMITTED" | "UNENCRYPTED" | "UNION" | "UNIQUE" | "UNKNOWN" | "UNLISTEN" | "UNLOGGED" | "UNTIL" | "UPDATE" | "USER" | "USING" | "VACUUM" | "VALID" | "VALIDATE" | "VALIDATOR" | "VALUE_P" | "VALUES" | "VARCHAR" | "VARIADIC" | "VARYING" | "VERBOSE" | "VERSION_P" | "VIEW" | "VIEWS" | "VOLATILE" | "WHEN" | "WHERE" | "WHITESPACE_P" | "WINDOW" | "WITH" | "WITHIN" | "WITHOUT" | "WORK" | "WRAPPER" | "WRITE" | "XML_P" | "XMLATTRIBUTES" | "XMLCONCAT" | "XMLELEMENT" | "XMLEXISTS" | "XMLFOREST" | "XMLNAMESPACES" | "XMLPARSE" | "XMLPI" | "XMLROOT" | "XMLSERIALIZE" | "XMLTABLE" | "YEAR_P" | "YES_P" | "ZONE" | "FORMAT_LA" | "NOT_LA" | "NULLS_LA" | "WITH_LA" | "WITHOUT_LA" | "MODE_TYPE_NAME" | "MODE_PLPGSQL_EXPR" | "MODE_PLPGSQL_ASSIGN1" | "MODE_PLPGSQL_ASSIGN2" | "MODE_PLPGSQL_ASSIGN3" | "UMINUS"; \ No newline at end of file diff --git a/__fixtures__/output/enum-maps/only-str/enums2int.ts b/__fixtures__/output/enum-maps/only-str/enums2int.ts new file mode 100644 index 00000000..88a9f213 --- /dev/null +++ b/__fixtures__/output/enum-maps/only-str/enums2int.ts @@ -0,0 +1,1078 @@ +/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +{ + "OverridingKind": { + "OVERRIDING_NOT_SET": 0, + "OVERRIDING_USER_VALUE": 1, + "OVERRIDING_SYSTEM_VALUE": 2 + }, + "QuerySource": { + "QSRC_ORIGINAL": 0, + "QSRC_PARSER": 1, + "QSRC_INSTEAD_RULE": 2, + "QSRC_QUAL_INSTEAD_RULE": 3, + "QSRC_NON_INSTEAD_RULE": 4 + }, + "SortByDir": { + "SORTBY_DEFAULT": 0, + "SORTBY_ASC": 1, + "SORTBY_DESC": 2, + "SORTBY_USING": 3 + }, + "SortByNulls": { + "SORTBY_NULLS_DEFAULT": 0, + "SORTBY_NULLS_FIRST": 1, + "SORTBY_NULLS_LAST": 2 + }, + "SetQuantifier": { + "SET_QUANTIFIER_DEFAULT": 0, + "SET_QUANTIFIER_ALL": 1, + "SET_QUANTIFIER_DISTINCT": 2 + }, + "A_Expr_Kind": { + "AEXPR_OP": 0, + "AEXPR_OP_ANY": 1, + "AEXPR_OP_ALL": 2, + "AEXPR_DISTINCT": 3, + "AEXPR_NOT_DISTINCT": 4, + "AEXPR_NULLIF": 5, + "AEXPR_IN": 6, + "AEXPR_LIKE": 7, + "AEXPR_ILIKE": 8, + "AEXPR_SIMILAR": 9, + "AEXPR_BETWEEN": 10, + "AEXPR_NOT_BETWEEN": 11, + "AEXPR_BETWEEN_SYM": 12, + "AEXPR_NOT_BETWEEN_SYM": 13 + }, + "RoleSpecType": { + "ROLESPEC_CSTRING": 0, + "ROLESPEC_CURRENT_ROLE": 1, + "ROLESPEC_CURRENT_USER": 2, + "ROLESPEC_SESSION_USER": 3, + "ROLESPEC_PUBLIC": 4 + }, + "TableLikeOption": { + "CREATE_TABLE_LIKE_COMMENTS": 0, + "CREATE_TABLE_LIKE_COMPRESSION": 1, + "CREATE_TABLE_LIKE_CONSTRAINTS": 2, + "CREATE_TABLE_LIKE_DEFAULTS": 3, + "CREATE_TABLE_LIKE_GENERATED": 4, + "CREATE_TABLE_LIKE_IDENTITY": 5, + "CREATE_TABLE_LIKE_INDEXES": 6, + "CREATE_TABLE_LIKE_STATISTICS": 7, + "CREATE_TABLE_LIKE_STORAGE": 8, + "CREATE_TABLE_LIKE_ALL": 9 + }, + "DefElemAction": { + "DEFELEM_UNSPEC": 0, + "DEFELEM_SET": 1, + "DEFELEM_ADD": 2, + "DEFELEM_DROP": 3 + }, + "PartitionStrategy": { + "PARTITION_STRATEGY_LIST": 0, + "PARTITION_STRATEGY_RANGE": 1, + "PARTITION_STRATEGY_HASH": 2 + }, + "PartitionRangeDatumKind": { + "PARTITION_RANGE_DATUM_MINVALUE": 0, + "PARTITION_RANGE_DATUM_VALUE": 1, + "PARTITION_RANGE_DATUM_MAXVALUE": 2 + }, + "RTEKind": { + "RTE_RELATION": 0, + "RTE_SUBQUERY": 1, + "RTE_JOIN": 2, + "RTE_FUNCTION": 3, + "RTE_TABLEFUNC": 4, + "RTE_VALUES": 5, + "RTE_CTE": 6, + "RTE_NAMEDTUPLESTORE": 7, + "RTE_RESULT": 8 + }, + "WCOKind": { + "WCO_VIEW_CHECK": 0, + "WCO_RLS_INSERT_CHECK": 1, + "WCO_RLS_UPDATE_CHECK": 2, + "WCO_RLS_CONFLICT_CHECK": 3, + "WCO_RLS_MERGE_UPDATE_CHECK": 4, + "WCO_RLS_MERGE_DELETE_CHECK": 5 + }, + "GroupingSetKind": { + "GROUPING_SET_EMPTY": 0, + "GROUPING_SET_SIMPLE": 1, + "GROUPING_SET_ROLLUP": 2, + "GROUPING_SET_CUBE": 3, + "GROUPING_SET_SETS": 4 + }, + "CTEMaterialize": { + "CTEMaterializeDefault": 0, + "CTEMaterializeAlways": 1, + "CTEMaterializeNever": 2 + }, + "SetOperation": { + "SETOP_NONE": 0, + "SETOP_UNION": 1, + "SETOP_INTERSECT": 2, + "SETOP_EXCEPT": 3 + }, + "ObjectType": { + "OBJECT_ACCESS_METHOD": 0, + "OBJECT_AGGREGATE": 1, + "OBJECT_AMOP": 2, + "OBJECT_AMPROC": 3, + "OBJECT_ATTRIBUTE": 4, + "OBJECT_CAST": 5, + "OBJECT_COLUMN": 6, + "OBJECT_COLLATION": 7, + "OBJECT_CONVERSION": 8, + "OBJECT_DATABASE": 9, + "OBJECT_DEFAULT": 10, + "OBJECT_DEFACL": 11, + "OBJECT_DOMAIN": 12, + "OBJECT_DOMCONSTRAINT": 13, + "OBJECT_EVENT_TRIGGER": 14, + "OBJECT_EXTENSION": 15, + "OBJECT_FDW": 16, + "OBJECT_FOREIGN_SERVER": 17, + "OBJECT_FOREIGN_TABLE": 18, + "OBJECT_FUNCTION": 19, + "OBJECT_INDEX": 20, + "OBJECT_LANGUAGE": 21, + "OBJECT_LARGEOBJECT": 22, + "OBJECT_MATVIEW": 23, + "OBJECT_OPCLASS": 24, + "OBJECT_OPERATOR": 25, + "OBJECT_OPFAMILY": 26, + "OBJECT_PARAMETER_ACL": 27, + "OBJECT_POLICY": 28, + "OBJECT_PROCEDURE": 29, + "OBJECT_PUBLICATION": 30, + "OBJECT_PUBLICATION_NAMESPACE": 31, + "OBJECT_PUBLICATION_REL": 32, + "OBJECT_ROLE": 33, + "OBJECT_ROUTINE": 34, + "OBJECT_RULE": 35, + "OBJECT_SCHEMA": 36, + "OBJECT_SEQUENCE": 37, + "OBJECT_SUBSCRIPTION": 38, + "OBJECT_STATISTIC_EXT": 39, + "OBJECT_TABCONSTRAINT": 40, + "OBJECT_TABLE": 41, + "OBJECT_TABLESPACE": 42, + "OBJECT_TRANSFORM": 43, + "OBJECT_TRIGGER": 44, + "OBJECT_TSCONFIGURATION": 45, + "OBJECT_TSDICTIONARY": 46, + "OBJECT_TSPARSER": 47, + "OBJECT_TSTEMPLATE": 48, + "OBJECT_TYPE": 49, + "OBJECT_USER_MAPPING": 50, + "OBJECT_VIEW": 51 + }, + "DropBehavior": { + "DROP_RESTRICT": 0, + "DROP_CASCADE": 1 + }, + "AlterTableType": { + "AT_AddColumn": 0, + "AT_AddColumnToView": 1, + "AT_ColumnDefault": 2, + "AT_CookedColumnDefault": 3, + "AT_DropNotNull": 4, + "AT_SetNotNull": 5, + "AT_DropExpression": 6, + "AT_CheckNotNull": 7, + "AT_SetStatistics": 8, + "AT_SetOptions": 9, + "AT_ResetOptions": 10, + "AT_SetStorage": 11, + "AT_SetCompression": 12, + "AT_DropColumn": 13, + "AT_AddIndex": 14, + "AT_ReAddIndex": 15, + "AT_AddConstraint": 16, + "AT_ReAddConstraint": 17, + "AT_ReAddDomainConstraint": 18, + "AT_AlterConstraint": 19, + "AT_ValidateConstraint": 20, + "AT_AddIndexConstraint": 21, + "AT_DropConstraint": 22, + "AT_ReAddComment": 23, + "AT_AlterColumnType": 24, + "AT_AlterColumnGenericOptions": 25, + "AT_ChangeOwner": 26, + "AT_ClusterOn": 27, + "AT_DropCluster": 28, + "AT_SetLogged": 29, + "AT_SetUnLogged": 30, + "AT_DropOids": 31, + "AT_SetAccessMethod": 32, + "AT_SetTableSpace": 33, + "AT_SetRelOptions": 34, + "AT_ResetRelOptions": 35, + "AT_ReplaceRelOptions": 36, + "AT_EnableTrig": 37, + "AT_EnableAlwaysTrig": 38, + "AT_EnableReplicaTrig": 39, + "AT_DisableTrig": 40, + "AT_EnableTrigAll": 41, + "AT_DisableTrigAll": 42, + "AT_EnableTrigUser": 43, + "AT_DisableTrigUser": 44, + "AT_EnableRule": 45, + "AT_EnableAlwaysRule": 46, + "AT_EnableReplicaRule": 47, + "AT_DisableRule": 48, + "AT_AddInherit": 49, + "AT_DropInherit": 50, + "AT_AddOf": 51, + "AT_DropOf": 52, + "AT_ReplicaIdentity": 53, + "AT_EnableRowSecurity": 54, + "AT_DisableRowSecurity": 55, + "AT_ForceRowSecurity": 56, + "AT_NoForceRowSecurity": 57, + "AT_GenericOptions": 58, + "AT_AttachPartition": 59, + "AT_DetachPartition": 60, + "AT_DetachPartitionFinalize": 61, + "AT_AddIdentity": 62, + "AT_SetIdentity": 63, + "AT_DropIdentity": 64, + "AT_ReAddStatistics": 65 + }, + "GrantTargetType": { + "ACL_TARGET_OBJECT": 0, + "ACL_TARGET_ALL_IN_SCHEMA": 1, + "ACL_TARGET_DEFAULTS": 2 + }, + "VariableSetKind": { + "VAR_SET_VALUE": 0, + "VAR_SET_DEFAULT": 1, + "VAR_SET_CURRENT": 2, + "VAR_SET_MULTI": 3, + "VAR_RESET": 4, + "VAR_RESET_ALL": 5 + }, + "ConstrType": { + "CONSTR_NULL": 0, + "CONSTR_NOTNULL": 1, + "CONSTR_DEFAULT": 2, + "CONSTR_IDENTITY": 3, + "CONSTR_GENERATED": 4, + "CONSTR_CHECK": 5, + "CONSTR_PRIMARY": 6, + "CONSTR_UNIQUE": 7, + "CONSTR_EXCLUSION": 8, + "CONSTR_FOREIGN": 9, + "CONSTR_ATTR_DEFERRABLE": 10, + "CONSTR_ATTR_NOT_DEFERRABLE": 11, + "CONSTR_ATTR_DEFERRED": 12, + "CONSTR_ATTR_IMMEDIATE": 13 + }, + "ImportForeignSchemaType": { + "FDW_IMPORT_SCHEMA_ALL": 0, + "FDW_IMPORT_SCHEMA_LIMIT_TO": 1, + "FDW_IMPORT_SCHEMA_EXCEPT": 2 + }, + "RoleStmtType": { + "ROLESTMT_ROLE": 0, + "ROLESTMT_USER": 1, + "ROLESTMT_GROUP": 2 + }, + "FetchDirection": { + "FETCH_FORWARD": 0, + "FETCH_BACKWARD": 1, + "FETCH_ABSOLUTE": 2, + "FETCH_RELATIVE": 3 + }, + "FunctionParameterMode": { + "FUNC_PARAM_IN": 0, + "FUNC_PARAM_OUT": 1, + "FUNC_PARAM_INOUT": 2, + "FUNC_PARAM_VARIADIC": 3, + "FUNC_PARAM_TABLE": 4, + "FUNC_PARAM_DEFAULT": 5 + }, + "TransactionStmtKind": { + "TRANS_STMT_BEGIN": 0, + "TRANS_STMT_START": 1, + "TRANS_STMT_COMMIT": 2, + "TRANS_STMT_ROLLBACK": 3, + "TRANS_STMT_SAVEPOINT": 4, + "TRANS_STMT_RELEASE": 5, + "TRANS_STMT_ROLLBACK_TO": 6, + "TRANS_STMT_PREPARE": 7, + "TRANS_STMT_COMMIT_PREPARED": 8, + "TRANS_STMT_ROLLBACK_PREPARED": 9 + }, + "ViewCheckOption": { + "NO_CHECK_OPTION": 0, + "LOCAL_CHECK_OPTION": 1, + "CASCADED_CHECK_OPTION": 2 + }, + "DiscardMode": { + "DISCARD_ALL": 0, + "DISCARD_PLANS": 1, + "DISCARD_SEQUENCES": 2, + "DISCARD_TEMP": 3 + }, + "ReindexObjectType": { + "REINDEX_OBJECT_INDEX": 0, + "REINDEX_OBJECT_TABLE": 1, + "REINDEX_OBJECT_SCHEMA": 2, + "REINDEX_OBJECT_SYSTEM": 3, + "REINDEX_OBJECT_DATABASE": 4 + }, + "AlterTSConfigType": { + "ALTER_TSCONFIG_ADD_MAPPING": 0, + "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN": 1, + "ALTER_TSCONFIG_REPLACE_DICT": 2, + "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN": 3, + "ALTER_TSCONFIG_DROP_MAPPING": 4 + }, + "PublicationObjSpecType": { + "PUBLICATIONOBJ_TABLE": 0, + "PUBLICATIONOBJ_TABLES_IN_SCHEMA": 1, + "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA": 2, + "PUBLICATIONOBJ_CONTINUATION": 3 + }, + "AlterPublicationAction": { + "AP_AddObjects": 0, + "AP_DropObjects": 1, + "AP_SetObjects": 2 + }, + "AlterSubscriptionType": { + "ALTER_SUBSCRIPTION_OPTIONS": 0, + "ALTER_SUBSCRIPTION_CONNECTION": 1, + "ALTER_SUBSCRIPTION_SET_PUBLICATION": 2, + "ALTER_SUBSCRIPTION_ADD_PUBLICATION": 3, + "ALTER_SUBSCRIPTION_DROP_PUBLICATION": 4, + "ALTER_SUBSCRIPTION_REFRESH": 5, + "ALTER_SUBSCRIPTION_ENABLED": 6, + "ALTER_SUBSCRIPTION_SKIP": 7 + }, + "OnCommitAction": { + "ONCOMMIT_NOOP": 0, + "ONCOMMIT_PRESERVE_ROWS": 1, + "ONCOMMIT_DELETE_ROWS": 2, + "ONCOMMIT_DROP": 3 + }, + "ParamKind": { + "PARAM_EXTERN": 0, + "PARAM_EXEC": 1, + "PARAM_SUBLINK": 2, + "PARAM_MULTIEXPR": 3 + }, + "CoercionContext": { + "COERCION_IMPLICIT": 0, + "COERCION_ASSIGNMENT": 1, + "COERCION_PLPGSQL": 2, + "COERCION_EXPLICIT": 3 + }, + "CoercionForm": { + "COERCE_EXPLICIT_CALL": 0, + "COERCE_EXPLICIT_CAST": 1, + "COERCE_IMPLICIT_CAST": 2, + "COERCE_SQL_SYNTAX": 3 + }, + "BoolExprType": { + "AND_EXPR": 0, + "OR_EXPR": 1, + "NOT_EXPR": 2 + }, + "SubLinkType": { + "EXISTS_SUBLINK": 0, + "ALL_SUBLINK": 1, + "ANY_SUBLINK": 2, + "ROWCOMPARE_SUBLINK": 3, + "EXPR_SUBLINK": 4, + "MULTIEXPR_SUBLINK": 5, + "ARRAY_SUBLINK": 6, + "CTE_SUBLINK": 7 + }, + "RowCompareType": { + "ROWCOMPARE_LT": 0, + "ROWCOMPARE_LE": 1, + "ROWCOMPARE_EQ": 2, + "ROWCOMPARE_GE": 3, + "ROWCOMPARE_GT": 4, + "ROWCOMPARE_NE": 5 + }, + "MinMaxOp": { + "IS_GREATEST": 0, + "IS_LEAST": 1 + }, + "SQLValueFunctionOp": { + "SVFOP_CURRENT_DATE": 0, + "SVFOP_CURRENT_TIME": 1, + "SVFOP_CURRENT_TIME_N": 2, + "SVFOP_CURRENT_TIMESTAMP": 3, + "SVFOP_CURRENT_TIMESTAMP_N": 4, + "SVFOP_LOCALTIME": 5, + "SVFOP_LOCALTIME_N": 6, + "SVFOP_LOCALTIMESTAMP": 7, + "SVFOP_LOCALTIMESTAMP_N": 8, + "SVFOP_CURRENT_ROLE": 9, + "SVFOP_CURRENT_USER": 10, + "SVFOP_USER": 11, + "SVFOP_SESSION_USER": 12, + "SVFOP_CURRENT_CATALOG": 13, + "SVFOP_CURRENT_SCHEMA": 14 + }, + "XmlExprOp": { + "IS_XMLCONCAT": 0, + "IS_XMLELEMENT": 1, + "IS_XMLFOREST": 2, + "IS_XMLPARSE": 3, + "IS_XMLPI": 4, + "IS_XMLROOT": 5, + "IS_XMLSERIALIZE": 6, + "IS_DOCUMENT": 7 + }, + "XmlOptionType": { + "XMLOPTION_DOCUMENT": 0, + "XMLOPTION_CONTENT": 1 + }, + "JsonEncoding": { + "JS_ENC_DEFAULT": 0, + "JS_ENC_UTF8": 1, + "JS_ENC_UTF16": 2, + "JS_ENC_UTF32": 3 + }, + "JsonFormatType": { + "JS_FORMAT_DEFAULT": 0, + "JS_FORMAT_JSON": 1, + "JS_FORMAT_JSONB": 2 + }, + "JsonConstructorType": { + "JSCTOR_JSON_OBJECT": 0, + "JSCTOR_JSON_ARRAY": 1, + "JSCTOR_JSON_OBJECTAGG": 2, + "JSCTOR_JSON_ARRAYAGG": 3 + }, + "JsonValueType": { + "JS_TYPE_ANY": 0, + "JS_TYPE_OBJECT": 1, + "JS_TYPE_ARRAY": 2, + "JS_TYPE_SCALAR": 3 + }, + "NullTestType": { + "IS_NULL": 0, + "IS_NOT_NULL": 1 + }, + "BoolTestType": { + "IS_TRUE": 0, + "IS_NOT_TRUE": 1, + "IS_FALSE": 2, + "IS_NOT_FALSE": 3, + "IS_UNKNOWN": 4, + "IS_NOT_UNKNOWN": 5 + }, + "CmdType": { + "CMD_UNKNOWN": 0, + "CMD_SELECT": 1, + "CMD_UPDATE": 2, + "CMD_INSERT": 3, + "CMD_DELETE": 4, + "CMD_MERGE": 5, + "CMD_UTILITY": 6, + "CMD_NOTHING": 7 + }, + "JoinType": { + "JOIN_INNER": 0, + "JOIN_LEFT": 1, + "JOIN_FULL": 2, + "JOIN_RIGHT": 3, + "JOIN_SEMI": 4, + "JOIN_ANTI": 5, + "JOIN_RIGHT_ANTI": 6, + "JOIN_UNIQUE_OUTER": 7, + "JOIN_UNIQUE_INNER": 8 + }, + "AggStrategy": { + "AGG_PLAIN": 0, + "AGG_SORTED": 1, + "AGG_HASHED": 2, + "AGG_MIXED": 3 + }, + "AggSplit": { + "AGGSPLIT_SIMPLE": 0, + "AGGSPLIT_INITIAL_SERIAL": 1, + "AGGSPLIT_FINAL_DESERIAL": 2 + }, + "SetOpCmd": { + "SETOPCMD_INTERSECT": 0, + "SETOPCMD_INTERSECT_ALL": 1, + "SETOPCMD_EXCEPT": 2, + "SETOPCMD_EXCEPT_ALL": 3 + }, + "SetOpStrategy": { + "SETOP_SORTED": 0, + "SETOP_HASHED": 1 + }, + "OnConflictAction": { + "ONCONFLICT_NONE": 0, + "ONCONFLICT_NOTHING": 1, + "ONCONFLICT_UPDATE": 2 + }, + "LimitOption": { + "LIMIT_OPTION_DEFAULT": 0, + "LIMIT_OPTION_COUNT": 1, + "LIMIT_OPTION_WITH_TIES": 2 + }, + "LockClauseStrength": { + "LCS_NONE": 0, + "LCS_FORKEYSHARE": 1, + "LCS_FORSHARE": 2, + "LCS_FORNOKEYUPDATE": 3, + "LCS_FORUPDATE": 4 + }, + "LockWaitPolicy": { + "LockWaitBlock": 0, + "LockWaitSkip": 1, + "LockWaitError": 2 + }, + "LockTupleMode": { + "LockTupleKeyShare": 0, + "LockTupleShare": 1, + "LockTupleNoKeyExclusive": 2, + "LockTupleExclusive": 3 + }, + "KeywordKind": { + "NO_KEYWORD": 0, + "UNRESERVED_KEYWORD": 1, + "COL_NAME_KEYWORD": 2, + "TYPE_FUNC_NAME_KEYWORD": 3, + "RESERVED_KEYWORD": 4 + }, + "Token": { + "NUL": 0, + "ASCII_36": 36, + "ASCII_37": 37, + "ASCII_40": 40, + "ASCII_41": 41, + "ASCII_42": 42, + "ASCII_43": 43, + "ASCII_44": 44, + "ASCII_45": 45, + "ASCII_46": 46, + "ASCII_47": 47, + "ASCII_58": 58, + "ASCII_59": 59, + "ASCII_60": 60, + "ASCII_61": 61, + "ASCII_62": 62, + "ASCII_63": 63, + "ASCII_91": 91, + "ASCII_92": 92, + "ASCII_93": 93, + "ASCII_94": 94, + "IDENT": 258, + "UIDENT": 259, + "FCONST": 260, + "SCONST": 261, + "USCONST": 262, + "BCONST": 263, + "XCONST": 264, + "Op": 265, + "ICONST": 266, + "PARAM": 267, + "TYPECAST": 268, + "DOT_DOT": 269, + "COLON_EQUALS": 270, + "EQUALS_GREATER": 271, + "LESS_EQUALS": 272, + "GREATER_EQUALS": 273, + "NOT_EQUALS": 274, + "SQL_COMMENT": 275, + "C_COMMENT": 276, + "ABORT_P": 277, + "ABSENT": 278, + "ABSOLUTE_P": 279, + "ACCESS": 280, + "ACTION": 281, + "ADD_P": 282, + "ADMIN": 283, + "AFTER": 284, + "AGGREGATE": 285, + "ALL": 286, + "ALSO": 287, + "ALTER": 288, + "ALWAYS": 289, + "ANALYSE": 290, + "ANALYZE": 291, + "AND": 292, + "ANY": 293, + "ARRAY": 294, + "AS": 295, + "ASC": 296, + "ASENSITIVE": 297, + "ASSERTION": 298, + "ASSIGNMENT": 299, + "ASYMMETRIC": 300, + "ATOMIC": 301, + "AT": 302, + "ATTACH": 303, + "ATTRIBUTE": 304, + "AUTHORIZATION": 305, + "BACKWARD": 306, + "BEFORE": 307, + "BEGIN_P": 308, + "BETWEEN": 309, + "BIGINT": 310, + "BINARY": 311, + "BIT": 312, + "BOOLEAN_P": 313, + "BOTH": 314, + "BREADTH": 315, + "BY": 316, + "CACHE": 317, + "CALL": 318, + "CALLED": 319, + "CASCADE": 320, + "CASCADED": 321, + "CASE": 322, + "CAST": 323, + "CATALOG_P": 324, + "CHAIN": 325, + "CHAR_P": 326, + "CHARACTER": 327, + "CHARACTERISTICS": 328, + "CHECK": 329, + "CHECKPOINT": 330, + "CLASS": 331, + "CLOSE": 332, + "CLUSTER": 333, + "COALESCE": 334, + "COLLATE": 335, + "COLLATION": 336, + "COLUMN": 337, + "COLUMNS": 338, + "COMMENT": 339, + "COMMENTS": 340, + "COMMIT": 341, + "COMMITTED": 342, + "COMPRESSION": 343, + "CONCURRENTLY": 344, + "CONFIGURATION": 345, + "CONFLICT": 346, + "CONNECTION": 347, + "CONSTRAINT": 348, + "CONSTRAINTS": 349, + "CONTENT_P": 350, + "CONTINUE_P": 351, + "CONVERSION_P": 352, + "COPY": 353, + "COST": 354, + "CREATE": 355, + "CROSS": 356, + "CSV": 357, + "CUBE": 358, + "CURRENT_P": 359, + "CURRENT_CATALOG": 360, + "CURRENT_DATE": 361, + "CURRENT_ROLE": 362, + "CURRENT_SCHEMA": 363, + "CURRENT_TIME": 364, + "CURRENT_TIMESTAMP": 365, + "CURRENT_USER": 366, + "CURSOR": 367, + "CYCLE": 368, + "DATA_P": 369, + "DATABASE": 370, + "DAY_P": 371, + "DEALLOCATE": 372, + "DEC": 373, + "DECIMAL_P": 374, + "DECLARE": 375, + "DEFAULT": 376, + "DEFAULTS": 377, + "DEFERRABLE": 378, + "DEFERRED": 379, + "DEFINER": 380, + "DELETE_P": 381, + "DELIMITER": 382, + "DELIMITERS": 383, + "DEPENDS": 384, + "DEPTH": 385, + "DESC": 386, + "DETACH": 387, + "DICTIONARY": 388, + "DISABLE_P": 389, + "DISCARD": 390, + "DISTINCT": 391, + "DO": 392, + "DOCUMENT_P": 393, + "DOMAIN_P": 394, + "DOUBLE_P": 395, + "DROP": 396, + "EACH": 397, + "ELSE": 398, + "ENABLE_P": 399, + "ENCODING": 400, + "ENCRYPTED": 401, + "END_P": 402, + "ENUM_P": 403, + "ESCAPE": 404, + "EVENT": 405, + "EXCEPT": 406, + "EXCLUDE": 407, + "EXCLUDING": 408, + "EXCLUSIVE": 409, + "EXECUTE": 410, + "EXISTS": 411, + "EXPLAIN": 412, + "EXPRESSION": 413, + "EXTENSION": 414, + "EXTERNAL": 415, + "EXTRACT": 416, + "FALSE_P": 417, + "FAMILY": 418, + "FETCH": 419, + "FILTER": 420, + "FINALIZE": 421, + "FIRST_P": 422, + "FLOAT_P": 423, + "FOLLOWING": 424, + "FOR": 425, + "FORCE": 426, + "FOREIGN": 427, + "FORMAT": 428, + "FORWARD": 429, + "FREEZE": 430, + "FROM": 431, + "FULL": 432, + "FUNCTION": 433, + "FUNCTIONS": 434, + "GENERATED": 435, + "GLOBAL": 436, + "GRANT": 437, + "GRANTED": 438, + "GREATEST": 439, + "GROUP_P": 440, + "GROUPING": 441, + "GROUPS": 442, + "HANDLER": 443, + "HAVING": 444, + "HEADER_P": 445, + "HOLD": 446, + "HOUR_P": 447, + "IDENTITY_P": 448, + "IF_P": 449, + "ILIKE": 450, + "IMMEDIATE": 451, + "IMMUTABLE": 452, + "IMPLICIT_P": 453, + "IMPORT_P": 454, + "IN_P": 455, + "INCLUDE": 456, + "INCLUDING": 457, + "INCREMENT": 458, + "INDENT": 459, + "INDEX": 460, + "INDEXES": 461, + "INHERIT": 462, + "INHERITS": 463, + "INITIALLY": 464, + "INLINE_P": 465, + "INNER_P": 466, + "INOUT": 467, + "INPUT_P": 468, + "INSENSITIVE": 469, + "INSERT": 470, + "INSTEAD": 471, + "INT_P": 472, + "INTEGER": 473, + "INTERSECT": 474, + "INTERVAL": 475, + "INTO": 476, + "INVOKER": 477, + "IS": 478, + "ISNULL": 479, + "ISOLATION": 480, + "JOIN": 481, + "JSON": 482, + "JSON_ARRAY": 483, + "JSON_ARRAYAGG": 484, + "JSON_OBJECT": 485, + "JSON_OBJECTAGG": 486, + "KEY": 487, + "KEYS": 488, + "LABEL": 489, + "LANGUAGE": 490, + "LARGE_P": 491, + "LAST_P": 492, + "LATERAL_P": 493, + "LEADING": 494, + "LEAKPROOF": 495, + "LEAST": 496, + "LEFT": 497, + "LEVEL": 498, + "LIKE": 499, + "LIMIT": 500, + "LISTEN": 501, + "LOAD": 502, + "LOCAL": 503, + "LOCALTIME": 504, + "LOCALTIMESTAMP": 505, + "LOCATION": 506, + "LOCK_P": 507, + "LOCKED": 508, + "LOGGED": 509, + "MAPPING": 510, + "MATCH": 511, + "MATCHED": 512, + "MATERIALIZED": 513, + "MAXVALUE": 514, + "MERGE": 515, + "METHOD": 516, + "MINUTE_P": 517, + "MINVALUE": 518, + "MODE": 519, + "MONTH_P": 520, + "MOVE": 521, + "NAME_P": 522, + "NAMES": 523, + "NATIONAL": 524, + "NATURAL": 525, + "NCHAR": 526, + "NEW": 527, + "NEXT": 528, + "NFC": 529, + "NFD": 530, + "NFKC": 531, + "NFKD": 532, + "NO": 533, + "NONE": 534, + "NORMALIZE": 535, + "NORMALIZED": 536, + "NOT": 537, + "NOTHING": 538, + "NOTIFY": 539, + "NOTNULL": 540, + "NOWAIT": 541, + "NULL_P": 542, + "NULLIF": 543, + "NULLS_P": 544, + "NUMERIC": 545, + "OBJECT_P": 546, + "OF": 547, + "OFF": 548, + "OFFSET": 549, + "OIDS": 550, + "OLD": 551, + "ON": 552, + "ONLY": 553, + "OPERATOR": 554, + "OPTION": 555, + "OPTIONS": 556, + "OR": 557, + "ORDER": 558, + "ORDINALITY": 559, + "OTHERS": 560, + "OUT_P": 561, + "OUTER_P": 562, + "OVER": 563, + "OVERLAPS": 564, + "OVERLAY": 565, + "OVERRIDING": 566, + "OWNED": 567, + "OWNER": 568, + "PARALLEL": 569, + "PARAMETER": 570, + "PARSER": 571, + "PARTIAL": 572, + "PARTITION": 573, + "PASSING": 574, + "PASSWORD": 575, + "PLACING": 576, + "PLANS": 577, + "POLICY": 578, + "POSITION": 579, + "PRECEDING": 580, + "PRECISION": 581, + "PRESERVE": 582, + "PREPARE": 583, + "PREPARED": 584, + "PRIMARY": 585, + "PRIOR": 586, + "PRIVILEGES": 587, + "PROCEDURAL": 588, + "PROCEDURE": 589, + "PROCEDURES": 590, + "PROGRAM": 591, + "PUBLICATION": 592, + "QUOTE": 593, + "RANGE": 594, + "READ": 595, + "REAL": 596, + "REASSIGN": 597, + "RECHECK": 598, + "RECURSIVE": 599, + "REF_P": 600, + "REFERENCES": 601, + "REFERENCING": 602, + "REFRESH": 603, + "REINDEX": 604, + "RELATIVE_P": 605, + "RELEASE": 606, + "RENAME": 607, + "REPEATABLE": 608, + "REPLACE": 609, + "REPLICA": 610, + "RESET": 611, + "RESTART": 612, + "RESTRICT": 613, + "RETURN": 614, + "RETURNING": 615, + "RETURNS": 616, + "REVOKE": 617, + "RIGHT": 618, + "ROLE": 619, + "ROLLBACK": 620, + "ROLLUP": 621, + "ROUTINE": 622, + "ROUTINES": 623, + "ROW": 624, + "ROWS": 625, + "RULE": 626, + "SAVEPOINT": 627, + "SCALAR": 628, + "SCHEMA": 629, + "SCHEMAS": 630, + "SCROLL": 631, + "SEARCH": 632, + "SECOND_P": 633, + "SECURITY": 634, + "SELECT": 635, + "SEQUENCE": 636, + "SEQUENCES": 637, + "SERIALIZABLE": 638, + "SERVER": 639, + "SESSION": 640, + "SESSION_USER": 641, + "SET": 642, + "SETS": 643, + "SETOF": 644, + "SHARE": 645, + "SHOW": 646, + "SIMILAR": 647, + "SIMPLE": 648, + "SKIP": 649, + "SMALLINT": 650, + "SNAPSHOT": 651, + "SOME": 652, + "SQL_P": 653, + "STABLE": 654, + "STANDALONE_P": 655, + "START": 656, + "STATEMENT": 657, + "STATISTICS": 658, + "STDIN": 659, + "STDOUT": 660, + "STORAGE": 661, + "STORED": 662, + "STRICT_P": 663, + "STRIP_P": 664, + "SUBSCRIPTION": 665, + "SUBSTRING": 666, + "SUPPORT": 667, + "SYMMETRIC": 668, + "SYSID": 669, + "SYSTEM_P": 670, + "SYSTEM_USER": 671, + "TABLE": 672, + "TABLES": 673, + "TABLESAMPLE": 674, + "TABLESPACE": 675, + "TEMP": 676, + "TEMPLATE": 677, + "TEMPORARY": 678, + "TEXT_P": 679, + "THEN": 680, + "TIES": 681, + "TIME": 682, + "TIMESTAMP": 683, + "TO": 684, + "TRAILING": 685, + "TRANSACTION": 686, + "TRANSFORM": 687, + "TREAT": 688, + "TRIGGER": 689, + "TRIM": 690, + "TRUE_P": 691, + "TRUNCATE": 692, + "TRUSTED": 693, + "TYPE_P": 694, + "TYPES_P": 695, + "UESCAPE": 696, + "UNBOUNDED": 697, + "UNCOMMITTED": 698, + "UNENCRYPTED": 699, + "UNION": 700, + "UNIQUE": 701, + "UNKNOWN": 702, + "UNLISTEN": 703, + "UNLOGGED": 704, + "UNTIL": 705, + "UPDATE": 706, + "USER": 707, + "USING": 708, + "VACUUM": 709, + "VALID": 710, + "VALIDATE": 711, + "VALIDATOR": 712, + "VALUE_P": 713, + "VALUES": 714, + "VARCHAR": 715, + "VARIADIC": 716, + "VARYING": 717, + "VERBOSE": 718, + "VERSION_P": 719, + "VIEW": 720, + "VIEWS": 721, + "VOLATILE": 722, + "WHEN": 723, + "WHERE": 724, + "WHITESPACE_P": 725, + "WINDOW": 726, + "WITH": 727, + "WITHIN": 728, + "WITHOUT": 729, + "WORK": 730, + "WRAPPER": 731, + "WRITE": 732, + "XML_P": 733, + "XMLATTRIBUTES": 734, + "XMLCONCAT": 735, + "XMLELEMENT": 736, + "XMLEXISTS": 737, + "XMLFOREST": 738, + "XMLNAMESPACES": 739, + "XMLPARSE": 740, + "XMLPI": 741, + "XMLROOT": 742, + "XMLSERIALIZE": 743, + "XMLTABLE": 744, + "YEAR_P": 745, + "YES_P": 746, + "ZONE": 747, + "FORMAT_LA": 748, + "NOT_LA": 749, + "NULLS_LA": 750, + "WITH_LA": 751, + "WITHOUT_LA": 752, + "MODE_TYPE_NAME": 753, + "MODE_PLPGSQL_EXPR": 754, + "MODE_PLPGSQL_ASSIGN1": 755, + "MODE_PLPGSQL_ASSIGN2": 756, + "MODE_PLPGSQL_ASSIGN3": 757, + "UMINUS": 758 + } +} \ No newline at end of file diff --git a/__fixtures__/output/enum-maps/typescript/enabled/enum-to-int.ts b/__fixtures__/output/enum-maps/typescript/enabled/enum-to-int.ts new file mode 100644 index 00000000..1d32cdf4 --- /dev/null +++ b/__fixtures__/output/enum-maps/typescript/enabled/enum-to-int.ts @@ -0,0 +1,1079 @@ +/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export const enumToIntMap = { + OverridingKind: { + OVERRIDING_NOT_SET: 0, + OVERRIDING_USER_VALUE: 1, + OVERRIDING_SYSTEM_VALUE: 2 + }, + QuerySource: { + QSRC_ORIGINAL: 0, + QSRC_PARSER: 1, + QSRC_INSTEAD_RULE: 2, + QSRC_QUAL_INSTEAD_RULE: 3, + QSRC_NON_INSTEAD_RULE: 4 + }, + SortByDir: { + SORTBY_DEFAULT: 0, + SORTBY_ASC: 1, + SORTBY_DESC: 2, + SORTBY_USING: 3 + }, + SortByNulls: { + SORTBY_NULLS_DEFAULT: 0, + SORTBY_NULLS_FIRST: 1, + SORTBY_NULLS_LAST: 2 + }, + SetQuantifier: { + SET_QUANTIFIER_DEFAULT: 0, + SET_QUANTIFIER_ALL: 1, + SET_QUANTIFIER_DISTINCT: 2 + }, + A_Expr_Kind: { + AEXPR_OP: 0, + AEXPR_OP_ANY: 1, + AEXPR_OP_ALL: 2, + AEXPR_DISTINCT: 3, + AEXPR_NOT_DISTINCT: 4, + AEXPR_NULLIF: 5, + AEXPR_IN: 6, + AEXPR_LIKE: 7, + AEXPR_ILIKE: 8, + AEXPR_SIMILAR: 9, + AEXPR_BETWEEN: 10, + AEXPR_NOT_BETWEEN: 11, + AEXPR_BETWEEN_SYM: 12, + AEXPR_NOT_BETWEEN_SYM: 13 + }, + RoleSpecType: { + ROLESPEC_CSTRING: 0, + ROLESPEC_CURRENT_ROLE: 1, + ROLESPEC_CURRENT_USER: 2, + ROLESPEC_SESSION_USER: 3, + ROLESPEC_PUBLIC: 4 + }, + TableLikeOption: { + CREATE_TABLE_LIKE_COMMENTS: 0, + CREATE_TABLE_LIKE_COMPRESSION: 1, + CREATE_TABLE_LIKE_CONSTRAINTS: 2, + CREATE_TABLE_LIKE_DEFAULTS: 3, + CREATE_TABLE_LIKE_GENERATED: 4, + CREATE_TABLE_LIKE_IDENTITY: 5, + CREATE_TABLE_LIKE_INDEXES: 6, + CREATE_TABLE_LIKE_STATISTICS: 7, + CREATE_TABLE_LIKE_STORAGE: 8, + CREATE_TABLE_LIKE_ALL: 9 + }, + DefElemAction: { + DEFELEM_UNSPEC: 0, + DEFELEM_SET: 1, + DEFELEM_ADD: 2, + DEFELEM_DROP: 3 + }, + PartitionStrategy: { + PARTITION_STRATEGY_LIST: 0, + PARTITION_STRATEGY_RANGE: 1, + PARTITION_STRATEGY_HASH: 2 + }, + PartitionRangeDatumKind: { + PARTITION_RANGE_DATUM_MINVALUE: 0, + PARTITION_RANGE_DATUM_VALUE: 1, + PARTITION_RANGE_DATUM_MAXVALUE: 2 + }, + RTEKind: { + RTE_RELATION: 0, + RTE_SUBQUERY: 1, + RTE_JOIN: 2, + RTE_FUNCTION: 3, + RTE_TABLEFUNC: 4, + RTE_VALUES: 5, + RTE_CTE: 6, + RTE_NAMEDTUPLESTORE: 7, + RTE_RESULT: 8 + }, + WCOKind: { + WCO_VIEW_CHECK: 0, + WCO_RLS_INSERT_CHECK: 1, + WCO_RLS_UPDATE_CHECK: 2, + WCO_RLS_CONFLICT_CHECK: 3, + WCO_RLS_MERGE_UPDATE_CHECK: 4, + WCO_RLS_MERGE_DELETE_CHECK: 5 + }, + GroupingSetKind: { + GROUPING_SET_EMPTY: 0, + GROUPING_SET_SIMPLE: 1, + GROUPING_SET_ROLLUP: 2, + GROUPING_SET_CUBE: 3, + GROUPING_SET_SETS: 4 + }, + CTEMaterialize: { + CTEMaterializeDefault: 0, + CTEMaterializeAlways: 1, + CTEMaterializeNever: 2 + }, + SetOperation: { + SETOP_NONE: 0, + SETOP_UNION: 1, + SETOP_INTERSECT: 2, + SETOP_EXCEPT: 3 + }, + ObjectType: { + OBJECT_ACCESS_METHOD: 0, + OBJECT_AGGREGATE: 1, + OBJECT_AMOP: 2, + OBJECT_AMPROC: 3, + OBJECT_ATTRIBUTE: 4, + OBJECT_CAST: 5, + OBJECT_COLUMN: 6, + OBJECT_COLLATION: 7, + OBJECT_CONVERSION: 8, + OBJECT_DATABASE: 9, + OBJECT_DEFAULT: 10, + OBJECT_DEFACL: 11, + OBJECT_DOMAIN: 12, + OBJECT_DOMCONSTRAINT: 13, + OBJECT_EVENT_TRIGGER: 14, + OBJECT_EXTENSION: 15, + OBJECT_FDW: 16, + OBJECT_FOREIGN_SERVER: 17, + OBJECT_FOREIGN_TABLE: 18, + OBJECT_FUNCTION: 19, + OBJECT_INDEX: 20, + OBJECT_LANGUAGE: 21, + OBJECT_LARGEOBJECT: 22, + OBJECT_MATVIEW: 23, + OBJECT_OPCLASS: 24, + OBJECT_OPERATOR: 25, + OBJECT_OPFAMILY: 26, + OBJECT_PARAMETER_ACL: 27, + OBJECT_POLICY: 28, + OBJECT_PROCEDURE: 29, + OBJECT_PUBLICATION: 30, + OBJECT_PUBLICATION_NAMESPACE: 31, + OBJECT_PUBLICATION_REL: 32, + OBJECT_ROLE: 33, + OBJECT_ROUTINE: 34, + OBJECT_RULE: 35, + OBJECT_SCHEMA: 36, + OBJECT_SEQUENCE: 37, + OBJECT_SUBSCRIPTION: 38, + OBJECT_STATISTIC_EXT: 39, + OBJECT_TABCONSTRAINT: 40, + OBJECT_TABLE: 41, + OBJECT_TABLESPACE: 42, + OBJECT_TRANSFORM: 43, + OBJECT_TRIGGER: 44, + OBJECT_TSCONFIGURATION: 45, + OBJECT_TSDICTIONARY: 46, + OBJECT_TSPARSER: 47, + OBJECT_TSTEMPLATE: 48, + OBJECT_TYPE: 49, + OBJECT_USER_MAPPING: 50, + OBJECT_VIEW: 51 + }, + DropBehavior: { + DROP_RESTRICT: 0, + DROP_CASCADE: 1 + }, + AlterTableType: { + AT_AddColumn: 0, + AT_AddColumnToView: 1, + AT_ColumnDefault: 2, + AT_CookedColumnDefault: 3, + AT_DropNotNull: 4, + AT_SetNotNull: 5, + AT_DropExpression: 6, + AT_CheckNotNull: 7, + AT_SetStatistics: 8, + AT_SetOptions: 9, + AT_ResetOptions: 10, + AT_SetStorage: 11, + AT_SetCompression: 12, + AT_DropColumn: 13, + AT_AddIndex: 14, + AT_ReAddIndex: 15, + AT_AddConstraint: 16, + AT_ReAddConstraint: 17, + AT_ReAddDomainConstraint: 18, + AT_AlterConstraint: 19, + AT_ValidateConstraint: 20, + AT_AddIndexConstraint: 21, + AT_DropConstraint: 22, + AT_ReAddComment: 23, + AT_AlterColumnType: 24, + AT_AlterColumnGenericOptions: 25, + AT_ChangeOwner: 26, + AT_ClusterOn: 27, + AT_DropCluster: 28, + AT_SetLogged: 29, + AT_SetUnLogged: 30, + AT_DropOids: 31, + AT_SetAccessMethod: 32, + AT_SetTableSpace: 33, + AT_SetRelOptions: 34, + AT_ResetRelOptions: 35, + AT_ReplaceRelOptions: 36, + AT_EnableTrig: 37, + AT_EnableAlwaysTrig: 38, + AT_EnableReplicaTrig: 39, + AT_DisableTrig: 40, + AT_EnableTrigAll: 41, + AT_DisableTrigAll: 42, + AT_EnableTrigUser: 43, + AT_DisableTrigUser: 44, + AT_EnableRule: 45, + AT_EnableAlwaysRule: 46, + AT_EnableReplicaRule: 47, + AT_DisableRule: 48, + AT_AddInherit: 49, + AT_DropInherit: 50, + AT_AddOf: 51, + AT_DropOf: 52, + AT_ReplicaIdentity: 53, + AT_EnableRowSecurity: 54, + AT_DisableRowSecurity: 55, + AT_ForceRowSecurity: 56, + AT_NoForceRowSecurity: 57, + AT_GenericOptions: 58, + AT_AttachPartition: 59, + AT_DetachPartition: 60, + AT_DetachPartitionFinalize: 61, + AT_AddIdentity: 62, + AT_SetIdentity: 63, + AT_DropIdentity: 64, + AT_ReAddStatistics: 65 + }, + GrantTargetType: { + ACL_TARGET_OBJECT: 0, + ACL_TARGET_ALL_IN_SCHEMA: 1, + ACL_TARGET_DEFAULTS: 2 + }, + VariableSetKind: { + VAR_SET_VALUE: 0, + VAR_SET_DEFAULT: 1, + VAR_SET_CURRENT: 2, + VAR_SET_MULTI: 3, + VAR_RESET: 4, + VAR_RESET_ALL: 5 + }, + ConstrType: { + CONSTR_NULL: 0, + CONSTR_NOTNULL: 1, + CONSTR_DEFAULT: 2, + CONSTR_IDENTITY: 3, + CONSTR_GENERATED: 4, + CONSTR_CHECK: 5, + CONSTR_PRIMARY: 6, + CONSTR_UNIQUE: 7, + CONSTR_EXCLUSION: 8, + CONSTR_FOREIGN: 9, + CONSTR_ATTR_DEFERRABLE: 10, + CONSTR_ATTR_NOT_DEFERRABLE: 11, + CONSTR_ATTR_DEFERRED: 12, + CONSTR_ATTR_IMMEDIATE: 13 + }, + ImportForeignSchemaType: { + FDW_IMPORT_SCHEMA_ALL: 0, + FDW_IMPORT_SCHEMA_LIMIT_TO: 1, + FDW_IMPORT_SCHEMA_EXCEPT: 2 + }, + RoleStmtType: { + ROLESTMT_ROLE: 0, + ROLESTMT_USER: 1, + ROLESTMT_GROUP: 2 + }, + FetchDirection: { + FETCH_FORWARD: 0, + FETCH_BACKWARD: 1, + FETCH_ABSOLUTE: 2, + FETCH_RELATIVE: 3 + }, + FunctionParameterMode: { + FUNC_PARAM_IN: 0, + FUNC_PARAM_OUT: 1, + FUNC_PARAM_INOUT: 2, + FUNC_PARAM_VARIADIC: 3, + FUNC_PARAM_TABLE: 4, + FUNC_PARAM_DEFAULT: 5 + }, + TransactionStmtKind: { + TRANS_STMT_BEGIN: 0, + TRANS_STMT_START: 1, + TRANS_STMT_COMMIT: 2, + TRANS_STMT_ROLLBACK: 3, + TRANS_STMT_SAVEPOINT: 4, + TRANS_STMT_RELEASE: 5, + TRANS_STMT_ROLLBACK_TO: 6, + TRANS_STMT_PREPARE: 7, + TRANS_STMT_COMMIT_PREPARED: 8, + TRANS_STMT_ROLLBACK_PREPARED: 9 + }, + ViewCheckOption: { + NO_CHECK_OPTION: 0, + LOCAL_CHECK_OPTION: 1, + CASCADED_CHECK_OPTION: 2 + }, + DiscardMode: { + DISCARD_ALL: 0, + DISCARD_PLANS: 1, + DISCARD_SEQUENCES: 2, + DISCARD_TEMP: 3 + }, + ReindexObjectType: { + REINDEX_OBJECT_INDEX: 0, + REINDEX_OBJECT_TABLE: 1, + REINDEX_OBJECT_SCHEMA: 2, + REINDEX_OBJECT_SYSTEM: 3, + REINDEX_OBJECT_DATABASE: 4 + }, + AlterTSConfigType: { + ALTER_TSCONFIG_ADD_MAPPING: 0, + ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN: 1, + ALTER_TSCONFIG_REPLACE_DICT: 2, + ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN: 3, + ALTER_TSCONFIG_DROP_MAPPING: 4 + }, + PublicationObjSpecType: { + PUBLICATIONOBJ_TABLE: 0, + PUBLICATIONOBJ_TABLES_IN_SCHEMA: 1, + PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA: 2, + PUBLICATIONOBJ_CONTINUATION: 3 + }, + AlterPublicationAction: { + AP_AddObjects: 0, + AP_DropObjects: 1, + AP_SetObjects: 2 + }, + AlterSubscriptionType: { + ALTER_SUBSCRIPTION_OPTIONS: 0, + ALTER_SUBSCRIPTION_CONNECTION: 1, + ALTER_SUBSCRIPTION_SET_PUBLICATION: 2, + ALTER_SUBSCRIPTION_ADD_PUBLICATION: 3, + ALTER_SUBSCRIPTION_DROP_PUBLICATION: 4, + ALTER_SUBSCRIPTION_REFRESH: 5, + ALTER_SUBSCRIPTION_ENABLED: 6, + ALTER_SUBSCRIPTION_SKIP: 7 + }, + OnCommitAction: { + ONCOMMIT_NOOP: 0, + ONCOMMIT_PRESERVE_ROWS: 1, + ONCOMMIT_DELETE_ROWS: 2, + ONCOMMIT_DROP: 3 + }, + ParamKind: { + PARAM_EXTERN: 0, + PARAM_EXEC: 1, + PARAM_SUBLINK: 2, + PARAM_MULTIEXPR: 3 + }, + CoercionContext: { + COERCION_IMPLICIT: 0, + COERCION_ASSIGNMENT: 1, + COERCION_PLPGSQL: 2, + COERCION_EXPLICIT: 3 + }, + CoercionForm: { + COERCE_EXPLICIT_CALL: 0, + COERCE_EXPLICIT_CAST: 1, + COERCE_IMPLICIT_CAST: 2, + COERCE_SQL_SYNTAX: 3 + }, + BoolExprType: { + AND_EXPR: 0, + OR_EXPR: 1, + NOT_EXPR: 2 + }, + SubLinkType: { + EXISTS_SUBLINK: 0, + ALL_SUBLINK: 1, + ANY_SUBLINK: 2, + ROWCOMPARE_SUBLINK: 3, + EXPR_SUBLINK: 4, + MULTIEXPR_SUBLINK: 5, + ARRAY_SUBLINK: 6, + CTE_SUBLINK: 7 + }, + RowCompareType: { + ROWCOMPARE_LT: 0, + ROWCOMPARE_LE: 1, + ROWCOMPARE_EQ: 2, + ROWCOMPARE_GE: 3, + ROWCOMPARE_GT: 4, + ROWCOMPARE_NE: 5 + }, + MinMaxOp: { + IS_GREATEST: 0, + IS_LEAST: 1 + }, + SQLValueFunctionOp: { + SVFOP_CURRENT_DATE: 0, + SVFOP_CURRENT_TIME: 1, + SVFOP_CURRENT_TIME_N: 2, + SVFOP_CURRENT_TIMESTAMP: 3, + SVFOP_CURRENT_TIMESTAMP_N: 4, + SVFOP_LOCALTIME: 5, + SVFOP_LOCALTIME_N: 6, + SVFOP_LOCALTIMESTAMP: 7, + SVFOP_LOCALTIMESTAMP_N: 8, + SVFOP_CURRENT_ROLE: 9, + SVFOP_CURRENT_USER: 10, + SVFOP_USER: 11, + SVFOP_SESSION_USER: 12, + SVFOP_CURRENT_CATALOG: 13, + SVFOP_CURRENT_SCHEMA: 14 + }, + XmlExprOp: { + IS_XMLCONCAT: 0, + IS_XMLELEMENT: 1, + IS_XMLFOREST: 2, + IS_XMLPARSE: 3, + IS_XMLPI: 4, + IS_XMLROOT: 5, + IS_XMLSERIALIZE: 6, + IS_DOCUMENT: 7 + }, + XmlOptionType: { + XMLOPTION_DOCUMENT: 0, + XMLOPTION_CONTENT: 1 + }, + JsonEncoding: { + JS_ENC_DEFAULT: 0, + JS_ENC_UTF8: 1, + JS_ENC_UTF16: 2, + JS_ENC_UTF32: 3 + }, + JsonFormatType: { + JS_FORMAT_DEFAULT: 0, + JS_FORMAT_JSON: 1, + JS_FORMAT_JSONB: 2 + }, + JsonConstructorType: { + JSCTOR_JSON_OBJECT: 0, + JSCTOR_JSON_ARRAY: 1, + JSCTOR_JSON_OBJECTAGG: 2, + JSCTOR_JSON_ARRAYAGG: 3 + }, + JsonValueType: { + JS_TYPE_ANY: 0, + JS_TYPE_OBJECT: 1, + JS_TYPE_ARRAY: 2, + JS_TYPE_SCALAR: 3 + }, + NullTestType: { + IS_NULL: 0, + IS_NOT_NULL: 1 + }, + BoolTestType: { + IS_TRUE: 0, + IS_NOT_TRUE: 1, + IS_FALSE: 2, + IS_NOT_FALSE: 3, + IS_UNKNOWN: 4, + IS_NOT_UNKNOWN: 5 + }, + CmdType: { + CMD_UNKNOWN: 0, + CMD_SELECT: 1, + CMD_UPDATE: 2, + CMD_INSERT: 3, + CMD_DELETE: 4, + CMD_MERGE: 5, + CMD_UTILITY: 6, + CMD_NOTHING: 7 + }, + JoinType: { + JOIN_INNER: 0, + JOIN_LEFT: 1, + JOIN_FULL: 2, + JOIN_RIGHT: 3, + JOIN_SEMI: 4, + JOIN_ANTI: 5, + JOIN_RIGHT_ANTI: 6, + JOIN_UNIQUE_OUTER: 7, + JOIN_UNIQUE_INNER: 8 + }, + AggStrategy: { + AGG_PLAIN: 0, + AGG_SORTED: 1, + AGG_HASHED: 2, + AGG_MIXED: 3 + }, + AggSplit: { + AGGSPLIT_SIMPLE: 0, + AGGSPLIT_INITIAL_SERIAL: 1, + AGGSPLIT_FINAL_DESERIAL: 2 + }, + SetOpCmd: { + SETOPCMD_INTERSECT: 0, + SETOPCMD_INTERSECT_ALL: 1, + SETOPCMD_EXCEPT: 2, + SETOPCMD_EXCEPT_ALL: 3 + }, + SetOpStrategy: { + SETOP_SORTED: 0, + SETOP_HASHED: 1 + }, + OnConflictAction: { + ONCONFLICT_NONE: 0, + ONCONFLICT_NOTHING: 1, + ONCONFLICT_UPDATE: 2 + }, + LimitOption: { + LIMIT_OPTION_DEFAULT: 0, + LIMIT_OPTION_COUNT: 1, + LIMIT_OPTION_WITH_TIES: 2 + }, + LockClauseStrength: { + LCS_NONE: 0, + LCS_FORKEYSHARE: 1, + LCS_FORSHARE: 2, + LCS_FORNOKEYUPDATE: 3, + LCS_FORUPDATE: 4 + }, + LockWaitPolicy: { + LockWaitBlock: 0, + LockWaitSkip: 1, + LockWaitError: 2 + }, + LockTupleMode: { + LockTupleKeyShare: 0, + LockTupleShare: 1, + LockTupleNoKeyExclusive: 2, + LockTupleExclusive: 3 + }, + KeywordKind: { + NO_KEYWORD: 0, + UNRESERVED_KEYWORD: 1, + COL_NAME_KEYWORD: 2, + TYPE_FUNC_NAME_KEYWORD: 3, + RESERVED_KEYWORD: 4 + }, + Token: { + NUL: 0, + ASCII_36: 36, + ASCII_37: 37, + ASCII_40: 40, + ASCII_41: 41, + ASCII_42: 42, + ASCII_43: 43, + ASCII_44: 44, + ASCII_45: 45, + ASCII_46: 46, + ASCII_47: 47, + ASCII_58: 58, + ASCII_59: 59, + ASCII_60: 60, + ASCII_61: 61, + ASCII_62: 62, + ASCII_63: 63, + ASCII_91: 91, + ASCII_92: 92, + ASCII_93: 93, + ASCII_94: 94, + IDENT: 258, + UIDENT: 259, + FCONST: 260, + SCONST: 261, + USCONST: 262, + BCONST: 263, + XCONST: 264, + Op: 265, + ICONST: 266, + PARAM: 267, + TYPECAST: 268, + DOT_DOT: 269, + COLON_EQUALS: 270, + EQUALS_GREATER: 271, + LESS_EQUALS: 272, + GREATER_EQUALS: 273, + NOT_EQUALS: 274, + SQL_COMMENT: 275, + C_COMMENT: 276, + ABORT_P: 277, + ABSENT: 278, + ABSOLUTE_P: 279, + ACCESS: 280, + ACTION: 281, + ADD_P: 282, + ADMIN: 283, + AFTER: 284, + AGGREGATE: 285, + ALL: 286, + ALSO: 287, + ALTER: 288, + ALWAYS: 289, + ANALYSE: 290, + ANALYZE: 291, + AND: 292, + ANY: 293, + ARRAY: 294, + AS: 295, + ASC: 296, + ASENSITIVE: 297, + ASSERTION: 298, + ASSIGNMENT: 299, + ASYMMETRIC: 300, + ATOMIC: 301, + AT: 302, + ATTACH: 303, + ATTRIBUTE: 304, + AUTHORIZATION: 305, + BACKWARD: 306, + BEFORE: 307, + BEGIN_P: 308, + BETWEEN: 309, + BIGINT: 310, + BINARY: 311, + BIT: 312, + BOOLEAN_P: 313, + BOTH: 314, + BREADTH: 315, + BY: 316, + CACHE: 317, + CALL: 318, + CALLED: 319, + CASCADE: 320, + CASCADED: 321, + CASE: 322, + CAST: 323, + CATALOG_P: 324, + CHAIN: 325, + CHAR_P: 326, + CHARACTER: 327, + CHARACTERISTICS: 328, + CHECK: 329, + CHECKPOINT: 330, + CLASS: 331, + CLOSE: 332, + CLUSTER: 333, + COALESCE: 334, + COLLATE: 335, + COLLATION: 336, + COLUMN: 337, + COLUMNS: 338, + COMMENT: 339, + COMMENTS: 340, + COMMIT: 341, + COMMITTED: 342, + COMPRESSION: 343, + CONCURRENTLY: 344, + CONFIGURATION: 345, + CONFLICT: 346, + CONNECTION: 347, + CONSTRAINT: 348, + CONSTRAINTS: 349, + CONTENT_P: 350, + CONTINUE_P: 351, + CONVERSION_P: 352, + COPY: 353, + COST: 354, + CREATE: 355, + CROSS: 356, + CSV: 357, + CUBE: 358, + CURRENT_P: 359, + CURRENT_CATALOG: 360, + CURRENT_DATE: 361, + CURRENT_ROLE: 362, + CURRENT_SCHEMA: 363, + CURRENT_TIME: 364, + CURRENT_TIMESTAMP: 365, + CURRENT_USER: 366, + CURSOR: 367, + CYCLE: 368, + DATA_P: 369, + DATABASE: 370, + DAY_P: 371, + DEALLOCATE: 372, + DEC: 373, + DECIMAL_P: 374, + DECLARE: 375, + DEFAULT: 376, + DEFAULTS: 377, + DEFERRABLE: 378, + DEFERRED: 379, + DEFINER: 380, + DELETE_P: 381, + DELIMITER: 382, + DELIMITERS: 383, + DEPENDS: 384, + DEPTH: 385, + DESC: 386, + DETACH: 387, + DICTIONARY: 388, + DISABLE_P: 389, + DISCARD: 390, + DISTINCT: 391, + DO: 392, + DOCUMENT_P: 393, + DOMAIN_P: 394, + DOUBLE_P: 395, + DROP: 396, + EACH: 397, + ELSE: 398, + ENABLE_P: 399, + ENCODING: 400, + ENCRYPTED: 401, + END_P: 402, + ENUM_P: 403, + ESCAPE: 404, + EVENT: 405, + EXCEPT: 406, + EXCLUDE: 407, + EXCLUDING: 408, + EXCLUSIVE: 409, + EXECUTE: 410, + EXISTS: 411, + EXPLAIN: 412, + EXPRESSION: 413, + EXTENSION: 414, + EXTERNAL: 415, + EXTRACT: 416, + FALSE_P: 417, + FAMILY: 418, + FETCH: 419, + FILTER: 420, + FINALIZE: 421, + FIRST_P: 422, + FLOAT_P: 423, + FOLLOWING: 424, + FOR: 425, + FORCE: 426, + FOREIGN: 427, + FORMAT: 428, + FORWARD: 429, + FREEZE: 430, + FROM: 431, + FULL: 432, + FUNCTION: 433, + FUNCTIONS: 434, + GENERATED: 435, + GLOBAL: 436, + GRANT: 437, + GRANTED: 438, + GREATEST: 439, + GROUP_P: 440, + GROUPING: 441, + GROUPS: 442, + HANDLER: 443, + HAVING: 444, + HEADER_P: 445, + HOLD: 446, + HOUR_P: 447, + IDENTITY_P: 448, + IF_P: 449, + ILIKE: 450, + IMMEDIATE: 451, + IMMUTABLE: 452, + IMPLICIT_P: 453, + IMPORT_P: 454, + IN_P: 455, + INCLUDE: 456, + INCLUDING: 457, + INCREMENT: 458, + INDENT: 459, + INDEX: 460, + INDEXES: 461, + INHERIT: 462, + INHERITS: 463, + INITIALLY: 464, + INLINE_P: 465, + INNER_P: 466, + INOUT: 467, + INPUT_P: 468, + INSENSITIVE: 469, + INSERT: 470, + INSTEAD: 471, + INT_P: 472, + INTEGER: 473, + INTERSECT: 474, + INTERVAL: 475, + INTO: 476, + INVOKER: 477, + IS: 478, + ISNULL: 479, + ISOLATION: 480, + JOIN: 481, + JSON: 482, + JSON_ARRAY: 483, + JSON_ARRAYAGG: 484, + JSON_OBJECT: 485, + JSON_OBJECTAGG: 486, + KEY: 487, + KEYS: 488, + LABEL: 489, + LANGUAGE: 490, + LARGE_P: 491, + LAST_P: 492, + LATERAL_P: 493, + LEADING: 494, + LEAKPROOF: 495, + LEAST: 496, + LEFT: 497, + LEVEL: 498, + LIKE: 499, + LIMIT: 500, + LISTEN: 501, + LOAD: 502, + LOCAL: 503, + LOCALTIME: 504, + LOCALTIMESTAMP: 505, + LOCATION: 506, + LOCK_P: 507, + LOCKED: 508, + LOGGED: 509, + MAPPING: 510, + MATCH: 511, + MATCHED: 512, + MATERIALIZED: 513, + MAXVALUE: 514, + MERGE: 515, + METHOD: 516, + MINUTE_P: 517, + MINVALUE: 518, + MODE: 519, + MONTH_P: 520, + MOVE: 521, + NAME_P: 522, + NAMES: 523, + NATIONAL: 524, + NATURAL: 525, + NCHAR: 526, + NEW: 527, + NEXT: 528, + NFC: 529, + NFD: 530, + NFKC: 531, + NFKD: 532, + NO: 533, + NONE: 534, + NORMALIZE: 535, + NORMALIZED: 536, + NOT: 537, + NOTHING: 538, + NOTIFY: 539, + NOTNULL: 540, + NOWAIT: 541, + NULL_P: 542, + NULLIF: 543, + NULLS_P: 544, + NUMERIC: 545, + OBJECT_P: 546, + OF: 547, + OFF: 548, + OFFSET: 549, + OIDS: 550, + OLD: 551, + ON: 552, + ONLY: 553, + OPERATOR: 554, + OPTION: 555, + OPTIONS: 556, + OR: 557, + ORDER: 558, + ORDINALITY: 559, + OTHERS: 560, + OUT_P: 561, + OUTER_P: 562, + OVER: 563, + OVERLAPS: 564, + OVERLAY: 565, + OVERRIDING: 566, + OWNED: 567, + OWNER: 568, + PARALLEL: 569, + PARAMETER: 570, + PARSER: 571, + PARTIAL: 572, + PARTITION: 573, + PASSING: 574, + PASSWORD: 575, + PLACING: 576, + PLANS: 577, + POLICY: 578, + POSITION: 579, + PRECEDING: 580, + PRECISION: 581, + PRESERVE: 582, + PREPARE: 583, + PREPARED: 584, + PRIMARY: 585, + PRIOR: 586, + PRIVILEGES: 587, + PROCEDURAL: 588, + PROCEDURE: 589, + PROCEDURES: 590, + PROGRAM: 591, + PUBLICATION: 592, + QUOTE: 593, + RANGE: 594, + READ: 595, + REAL: 596, + REASSIGN: 597, + RECHECK: 598, + RECURSIVE: 599, + REF_P: 600, + REFERENCES: 601, + REFERENCING: 602, + REFRESH: 603, + REINDEX: 604, + RELATIVE_P: 605, + RELEASE: 606, + RENAME: 607, + REPEATABLE: 608, + REPLACE: 609, + REPLICA: 610, + RESET: 611, + RESTART: 612, + RESTRICT: 613, + RETURN: 614, + RETURNING: 615, + RETURNS: 616, + REVOKE: 617, + RIGHT: 618, + ROLE: 619, + ROLLBACK: 620, + ROLLUP: 621, + ROUTINE: 622, + ROUTINES: 623, + ROW: 624, + ROWS: 625, + RULE: 626, + SAVEPOINT: 627, + SCALAR: 628, + SCHEMA: 629, + SCHEMAS: 630, + SCROLL: 631, + SEARCH: 632, + SECOND_P: 633, + SECURITY: 634, + SELECT: 635, + SEQUENCE: 636, + SEQUENCES: 637, + SERIALIZABLE: 638, + SERVER: 639, + SESSION: 640, + SESSION_USER: 641, + SET: 642, + SETS: 643, + SETOF: 644, + SHARE: 645, + SHOW: 646, + SIMILAR: 647, + SIMPLE: 648, + SKIP: 649, + SMALLINT: 650, + SNAPSHOT: 651, + SOME: 652, + SQL_P: 653, + STABLE: 654, + STANDALONE_P: 655, + START: 656, + STATEMENT: 657, + STATISTICS: 658, + STDIN: 659, + STDOUT: 660, + STORAGE: 661, + STORED: 662, + STRICT_P: 663, + STRIP_P: 664, + SUBSCRIPTION: 665, + SUBSTRING: 666, + SUPPORT: 667, + SYMMETRIC: 668, + SYSID: 669, + SYSTEM_P: 670, + SYSTEM_USER: 671, + TABLE: 672, + TABLES: 673, + TABLESAMPLE: 674, + TABLESPACE: 675, + TEMP: 676, + TEMPLATE: 677, + TEMPORARY: 678, + TEXT_P: 679, + THEN: 680, + TIES: 681, + TIME: 682, + TIMESTAMP: 683, + TO: 684, + TRAILING: 685, + TRANSACTION: 686, + TRANSFORM: 687, + TREAT: 688, + TRIGGER: 689, + TRIM: 690, + TRUE_P: 691, + TRUNCATE: 692, + TRUSTED: 693, + TYPE_P: 694, + TYPES_P: 695, + UESCAPE: 696, + UNBOUNDED: 697, + UNCOMMITTED: 698, + UNENCRYPTED: 699, + UNION: 700, + UNIQUE: 701, + UNKNOWN: 702, + UNLISTEN: 703, + UNLOGGED: 704, + UNTIL: 705, + UPDATE: 706, + USER: 707, + USING: 708, + VACUUM: 709, + VALID: 710, + VALIDATE: 711, + VALIDATOR: 712, + VALUE_P: 713, + VALUES: 714, + VARCHAR: 715, + VARIADIC: 716, + VARYING: 717, + VERBOSE: 718, + VERSION_P: 719, + VIEW: 720, + VIEWS: 721, + VOLATILE: 722, + WHEN: 723, + WHERE: 724, + WHITESPACE_P: 725, + WINDOW: 726, + WITH: 727, + WITHIN: 728, + WITHOUT: 729, + WORK: 730, + WRAPPER: 731, + WRITE: 732, + XML_P: 733, + XMLATTRIBUTES: 734, + XMLCONCAT: 735, + XMLELEMENT: 736, + XMLEXISTS: 737, + XMLFOREST: 738, + XMLNAMESPACES: 739, + XMLPARSE: 740, + XMLPI: 741, + XMLROOT: 742, + XMLSERIALIZE: 743, + XMLTABLE: 744, + YEAR_P: 745, + YES_P: 746, + ZONE: 747, + FORMAT_LA: 748, + NOT_LA: 749, + NULLS_LA: 750, + WITH_LA: 751, + WITHOUT_LA: 752, + MODE_TYPE_NAME: 753, + MODE_PLPGSQL_EXPR: 754, + MODE_PLPGSQL_ASSIGN1: 755, + MODE_PLPGSQL_ASSIGN2: 756, + MODE_PLPGSQL_ASSIGN3: 757, + UMINUS: 758 + } +}; +export type EnumToIntMap = typeof enumToIntMap; \ No newline at end of file diff --git a/__fixtures__/output/enum-maps/typescript/enabled/enum-to-str.ts b/__fixtures__/output/enum-maps/typescript/enabled/enum-to-str.ts new file mode 100644 index 00000000..c4a88f26 --- /dev/null +++ b/__fixtures__/output/enum-maps/typescript/enabled/enum-to-str.ts @@ -0,0 +1,1079 @@ +/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export const enumToStrMap = { + OverridingKind: { + "0": 'OVERRIDING_NOT_SET', + "1": 'OVERRIDING_USER_VALUE', + "2": 'OVERRIDING_SYSTEM_VALUE' + }, + QuerySource: { + "0": 'QSRC_ORIGINAL', + "1": 'QSRC_PARSER', + "2": 'QSRC_INSTEAD_RULE', + "3": 'QSRC_QUAL_INSTEAD_RULE', + "4": 'QSRC_NON_INSTEAD_RULE' + }, + SortByDir: { + "0": 'SORTBY_DEFAULT', + "1": 'SORTBY_ASC', + "2": 'SORTBY_DESC', + "3": 'SORTBY_USING' + }, + SortByNulls: { + "0": 'SORTBY_NULLS_DEFAULT', + "1": 'SORTBY_NULLS_FIRST', + "2": 'SORTBY_NULLS_LAST' + }, + SetQuantifier: { + "0": 'SET_QUANTIFIER_DEFAULT', + "1": 'SET_QUANTIFIER_ALL', + "2": 'SET_QUANTIFIER_DISTINCT' + }, + A_Expr_Kind: { + "0": 'AEXPR_OP', + "1": 'AEXPR_OP_ANY', + "2": 'AEXPR_OP_ALL', + "3": 'AEXPR_DISTINCT', + "4": 'AEXPR_NOT_DISTINCT', + "5": 'AEXPR_NULLIF', + "6": 'AEXPR_IN', + "7": 'AEXPR_LIKE', + "8": 'AEXPR_ILIKE', + "9": 'AEXPR_SIMILAR', + "10": 'AEXPR_BETWEEN', + "11": 'AEXPR_NOT_BETWEEN', + "12": 'AEXPR_BETWEEN_SYM', + "13": 'AEXPR_NOT_BETWEEN_SYM' + }, + RoleSpecType: { + "0": 'ROLESPEC_CSTRING', + "1": 'ROLESPEC_CURRENT_ROLE', + "2": 'ROLESPEC_CURRENT_USER', + "3": 'ROLESPEC_SESSION_USER', + "4": 'ROLESPEC_PUBLIC' + }, + TableLikeOption: { + "0": 'CREATE_TABLE_LIKE_COMMENTS', + "1": 'CREATE_TABLE_LIKE_COMPRESSION', + "2": 'CREATE_TABLE_LIKE_CONSTRAINTS', + "3": 'CREATE_TABLE_LIKE_DEFAULTS', + "4": 'CREATE_TABLE_LIKE_GENERATED', + "5": 'CREATE_TABLE_LIKE_IDENTITY', + "6": 'CREATE_TABLE_LIKE_INDEXES', + "7": 'CREATE_TABLE_LIKE_STATISTICS', + "8": 'CREATE_TABLE_LIKE_STORAGE', + "9": 'CREATE_TABLE_LIKE_ALL' + }, + DefElemAction: { + "0": 'DEFELEM_UNSPEC', + "1": 'DEFELEM_SET', + "2": 'DEFELEM_ADD', + "3": 'DEFELEM_DROP' + }, + PartitionStrategy: { + "0": 'PARTITION_STRATEGY_LIST', + "1": 'PARTITION_STRATEGY_RANGE', + "2": 'PARTITION_STRATEGY_HASH' + }, + PartitionRangeDatumKind: { + "0": 'PARTITION_RANGE_DATUM_MINVALUE', + "1": 'PARTITION_RANGE_DATUM_VALUE', + "2": 'PARTITION_RANGE_DATUM_MAXVALUE' + }, + RTEKind: { + "0": 'RTE_RELATION', + "1": 'RTE_SUBQUERY', + "2": 'RTE_JOIN', + "3": 'RTE_FUNCTION', + "4": 'RTE_TABLEFUNC', + "5": 'RTE_VALUES', + "6": 'RTE_CTE', + "7": 'RTE_NAMEDTUPLESTORE', + "8": 'RTE_RESULT' + }, + WCOKind: { + "0": 'WCO_VIEW_CHECK', + "1": 'WCO_RLS_INSERT_CHECK', + "2": 'WCO_RLS_UPDATE_CHECK', + "3": 'WCO_RLS_CONFLICT_CHECK', + "4": 'WCO_RLS_MERGE_UPDATE_CHECK', + "5": 'WCO_RLS_MERGE_DELETE_CHECK' + }, + GroupingSetKind: { + "0": 'GROUPING_SET_EMPTY', + "1": 'GROUPING_SET_SIMPLE', + "2": 'GROUPING_SET_ROLLUP', + "3": 'GROUPING_SET_CUBE', + "4": 'GROUPING_SET_SETS' + }, + CTEMaterialize: { + "0": 'CTEMaterializeDefault', + "1": 'CTEMaterializeAlways', + "2": 'CTEMaterializeNever' + }, + SetOperation: { + "0": 'SETOP_NONE', + "1": 'SETOP_UNION', + "2": 'SETOP_INTERSECT', + "3": 'SETOP_EXCEPT' + }, + ObjectType: { + "0": 'OBJECT_ACCESS_METHOD', + "1": 'OBJECT_AGGREGATE', + "2": 'OBJECT_AMOP', + "3": 'OBJECT_AMPROC', + "4": 'OBJECT_ATTRIBUTE', + "5": 'OBJECT_CAST', + "6": 'OBJECT_COLUMN', + "7": 'OBJECT_COLLATION', + "8": 'OBJECT_CONVERSION', + "9": 'OBJECT_DATABASE', + "10": 'OBJECT_DEFAULT', + "11": 'OBJECT_DEFACL', + "12": 'OBJECT_DOMAIN', + "13": 'OBJECT_DOMCONSTRAINT', + "14": 'OBJECT_EVENT_TRIGGER', + "15": 'OBJECT_EXTENSION', + "16": 'OBJECT_FDW', + "17": 'OBJECT_FOREIGN_SERVER', + "18": 'OBJECT_FOREIGN_TABLE', + "19": 'OBJECT_FUNCTION', + "20": 'OBJECT_INDEX', + "21": 'OBJECT_LANGUAGE', + "22": 'OBJECT_LARGEOBJECT', + "23": 'OBJECT_MATVIEW', + "24": 'OBJECT_OPCLASS', + "25": 'OBJECT_OPERATOR', + "26": 'OBJECT_OPFAMILY', + "27": 'OBJECT_PARAMETER_ACL', + "28": 'OBJECT_POLICY', + "29": 'OBJECT_PROCEDURE', + "30": 'OBJECT_PUBLICATION', + "31": 'OBJECT_PUBLICATION_NAMESPACE', + "32": 'OBJECT_PUBLICATION_REL', + "33": 'OBJECT_ROLE', + "34": 'OBJECT_ROUTINE', + "35": 'OBJECT_RULE', + "36": 'OBJECT_SCHEMA', + "37": 'OBJECT_SEQUENCE', + "38": 'OBJECT_SUBSCRIPTION', + "39": 'OBJECT_STATISTIC_EXT', + "40": 'OBJECT_TABCONSTRAINT', + "41": 'OBJECT_TABLE', + "42": 'OBJECT_TABLESPACE', + "43": 'OBJECT_TRANSFORM', + "44": 'OBJECT_TRIGGER', + "45": 'OBJECT_TSCONFIGURATION', + "46": 'OBJECT_TSDICTIONARY', + "47": 'OBJECT_TSPARSER', + "48": 'OBJECT_TSTEMPLATE', + "49": 'OBJECT_TYPE', + "50": 'OBJECT_USER_MAPPING', + "51": 'OBJECT_VIEW' + }, + DropBehavior: { + "0": 'DROP_RESTRICT', + "1": 'DROP_CASCADE' + }, + AlterTableType: { + "0": 'AT_AddColumn', + "1": 'AT_AddColumnToView', + "2": 'AT_ColumnDefault', + "3": 'AT_CookedColumnDefault', + "4": 'AT_DropNotNull', + "5": 'AT_SetNotNull', + "6": 'AT_DropExpression', + "7": 'AT_CheckNotNull', + "8": 'AT_SetStatistics', + "9": 'AT_SetOptions', + "10": 'AT_ResetOptions', + "11": 'AT_SetStorage', + "12": 'AT_SetCompression', + "13": 'AT_DropColumn', + "14": 'AT_AddIndex', + "15": 'AT_ReAddIndex', + "16": 'AT_AddConstraint', + "17": 'AT_ReAddConstraint', + "18": 'AT_ReAddDomainConstraint', + "19": 'AT_AlterConstraint', + "20": 'AT_ValidateConstraint', + "21": 'AT_AddIndexConstraint', + "22": 'AT_DropConstraint', + "23": 'AT_ReAddComment', + "24": 'AT_AlterColumnType', + "25": 'AT_AlterColumnGenericOptions', + "26": 'AT_ChangeOwner', + "27": 'AT_ClusterOn', + "28": 'AT_DropCluster', + "29": 'AT_SetLogged', + "30": 'AT_SetUnLogged', + "31": 'AT_DropOids', + "32": 'AT_SetAccessMethod', + "33": 'AT_SetTableSpace', + "34": 'AT_SetRelOptions', + "35": 'AT_ResetRelOptions', + "36": 'AT_ReplaceRelOptions', + "37": 'AT_EnableTrig', + "38": 'AT_EnableAlwaysTrig', + "39": 'AT_EnableReplicaTrig', + "40": 'AT_DisableTrig', + "41": 'AT_EnableTrigAll', + "42": 'AT_DisableTrigAll', + "43": 'AT_EnableTrigUser', + "44": 'AT_DisableTrigUser', + "45": 'AT_EnableRule', + "46": 'AT_EnableAlwaysRule', + "47": 'AT_EnableReplicaRule', + "48": 'AT_DisableRule', + "49": 'AT_AddInherit', + "50": 'AT_DropInherit', + "51": 'AT_AddOf', + "52": 'AT_DropOf', + "53": 'AT_ReplicaIdentity', + "54": 'AT_EnableRowSecurity', + "55": 'AT_DisableRowSecurity', + "56": 'AT_ForceRowSecurity', + "57": 'AT_NoForceRowSecurity', + "58": 'AT_GenericOptions', + "59": 'AT_AttachPartition', + "60": 'AT_DetachPartition', + "61": 'AT_DetachPartitionFinalize', + "62": 'AT_AddIdentity', + "63": 'AT_SetIdentity', + "64": 'AT_DropIdentity', + "65": 'AT_ReAddStatistics' + }, + GrantTargetType: { + "0": 'ACL_TARGET_OBJECT', + "1": 'ACL_TARGET_ALL_IN_SCHEMA', + "2": 'ACL_TARGET_DEFAULTS' + }, + VariableSetKind: { + "0": 'VAR_SET_VALUE', + "1": 'VAR_SET_DEFAULT', + "2": 'VAR_SET_CURRENT', + "3": 'VAR_SET_MULTI', + "4": 'VAR_RESET', + "5": 'VAR_RESET_ALL' + }, + ConstrType: { + "0": 'CONSTR_NULL', + "1": 'CONSTR_NOTNULL', + "2": 'CONSTR_DEFAULT', + "3": 'CONSTR_IDENTITY', + "4": 'CONSTR_GENERATED', + "5": 'CONSTR_CHECK', + "6": 'CONSTR_PRIMARY', + "7": 'CONSTR_UNIQUE', + "8": 'CONSTR_EXCLUSION', + "9": 'CONSTR_FOREIGN', + "10": 'CONSTR_ATTR_DEFERRABLE', + "11": 'CONSTR_ATTR_NOT_DEFERRABLE', + "12": 'CONSTR_ATTR_DEFERRED', + "13": 'CONSTR_ATTR_IMMEDIATE' + }, + ImportForeignSchemaType: { + "0": 'FDW_IMPORT_SCHEMA_ALL', + "1": 'FDW_IMPORT_SCHEMA_LIMIT_TO', + "2": 'FDW_IMPORT_SCHEMA_EXCEPT' + }, + RoleStmtType: { + "0": 'ROLESTMT_ROLE', + "1": 'ROLESTMT_USER', + "2": 'ROLESTMT_GROUP' + }, + FetchDirection: { + "0": 'FETCH_FORWARD', + "1": 'FETCH_BACKWARD', + "2": 'FETCH_ABSOLUTE', + "3": 'FETCH_RELATIVE' + }, + FunctionParameterMode: { + "0": 'FUNC_PARAM_IN', + "1": 'FUNC_PARAM_OUT', + "2": 'FUNC_PARAM_INOUT', + "3": 'FUNC_PARAM_VARIADIC', + "4": 'FUNC_PARAM_TABLE', + "5": 'FUNC_PARAM_DEFAULT' + }, + TransactionStmtKind: { + "0": 'TRANS_STMT_BEGIN', + "1": 'TRANS_STMT_START', + "2": 'TRANS_STMT_COMMIT', + "3": 'TRANS_STMT_ROLLBACK', + "4": 'TRANS_STMT_SAVEPOINT', + "5": 'TRANS_STMT_RELEASE', + "6": 'TRANS_STMT_ROLLBACK_TO', + "7": 'TRANS_STMT_PREPARE', + "8": 'TRANS_STMT_COMMIT_PREPARED', + "9": 'TRANS_STMT_ROLLBACK_PREPARED' + }, + ViewCheckOption: { + "0": 'NO_CHECK_OPTION', + "1": 'LOCAL_CHECK_OPTION', + "2": 'CASCADED_CHECK_OPTION' + }, + DiscardMode: { + "0": 'DISCARD_ALL', + "1": 'DISCARD_PLANS', + "2": 'DISCARD_SEQUENCES', + "3": 'DISCARD_TEMP' + }, + ReindexObjectType: { + "0": 'REINDEX_OBJECT_INDEX', + "1": 'REINDEX_OBJECT_TABLE', + "2": 'REINDEX_OBJECT_SCHEMA', + "3": 'REINDEX_OBJECT_SYSTEM', + "4": 'REINDEX_OBJECT_DATABASE' + }, + AlterTSConfigType: { + "0": 'ALTER_TSCONFIG_ADD_MAPPING', + "1": 'ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN', + "2": 'ALTER_TSCONFIG_REPLACE_DICT', + "3": 'ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN', + "4": 'ALTER_TSCONFIG_DROP_MAPPING' + }, + PublicationObjSpecType: { + "0": 'PUBLICATIONOBJ_TABLE', + "1": 'PUBLICATIONOBJ_TABLES_IN_SCHEMA', + "2": 'PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA', + "3": 'PUBLICATIONOBJ_CONTINUATION' + }, + AlterPublicationAction: { + "0": 'AP_AddObjects', + "1": 'AP_DropObjects', + "2": 'AP_SetObjects' + }, + AlterSubscriptionType: { + "0": 'ALTER_SUBSCRIPTION_OPTIONS', + "1": 'ALTER_SUBSCRIPTION_CONNECTION', + "2": 'ALTER_SUBSCRIPTION_SET_PUBLICATION', + "3": 'ALTER_SUBSCRIPTION_ADD_PUBLICATION', + "4": 'ALTER_SUBSCRIPTION_DROP_PUBLICATION', + "5": 'ALTER_SUBSCRIPTION_REFRESH', + "6": 'ALTER_SUBSCRIPTION_ENABLED', + "7": 'ALTER_SUBSCRIPTION_SKIP' + }, + OnCommitAction: { + "0": 'ONCOMMIT_NOOP', + "1": 'ONCOMMIT_PRESERVE_ROWS', + "2": 'ONCOMMIT_DELETE_ROWS', + "3": 'ONCOMMIT_DROP' + }, + ParamKind: { + "0": 'PARAM_EXTERN', + "1": 'PARAM_EXEC', + "2": 'PARAM_SUBLINK', + "3": 'PARAM_MULTIEXPR' + }, + CoercionContext: { + "0": 'COERCION_IMPLICIT', + "1": 'COERCION_ASSIGNMENT', + "2": 'COERCION_PLPGSQL', + "3": 'COERCION_EXPLICIT' + }, + CoercionForm: { + "0": 'COERCE_EXPLICIT_CALL', + "1": 'COERCE_EXPLICIT_CAST', + "2": 'COERCE_IMPLICIT_CAST', + "3": 'COERCE_SQL_SYNTAX' + }, + BoolExprType: { + "0": 'AND_EXPR', + "1": 'OR_EXPR', + "2": 'NOT_EXPR' + }, + SubLinkType: { + "0": 'EXISTS_SUBLINK', + "1": 'ALL_SUBLINK', + "2": 'ANY_SUBLINK', + "3": 'ROWCOMPARE_SUBLINK', + "4": 'EXPR_SUBLINK', + "5": 'MULTIEXPR_SUBLINK', + "6": 'ARRAY_SUBLINK', + "7": 'CTE_SUBLINK' + }, + RowCompareType: { + "0": 'ROWCOMPARE_LT', + "1": 'ROWCOMPARE_LE', + "2": 'ROWCOMPARE_EQ', + "3": 'ROWCOMPARE_GE', + "4": 'ROWCOMPARE_GT', + "5": 'ROWCOMPARE_NE' + }, + MinMaxOp: { + "0": 'IS_GREATEST', + "1": 'IS_LEAST' + }, + SQLValueFunctionOp: { + "0": 'SVFOP_CURRENT_DATE', + "1": 'SVFOP_CURRENT_TIME', + "2": 'SVFOP_CURRENT_TIME_N', + "3": 'SVFOP_CURRENT_TIMESTAMP', + "4": 'SVFOP_CURRENT_TIMESTAMP_N', + "5": 'SVFOP_LOCALTIME', + "6": 'SVFOP_LOCALTIME_N', + "7": 'SVFOP_LOCALTIMESTAMP', + "8": 'SVFOP_LOCALTIMESTAMP_N', + "9": 'SVFOP_CURRENT_ROLE', + "10": 'SVFOP_CURRENT_USER', + "11": 'SVFOP_USER', + "12": 'SVFOP_SESSION_USER', + "13": 'SVFOP_CURRENT_CATALOG', + "14": 'SVFOP_CURRENT_SCHEMA' + }, + XmlExprOp: { + "0": 'IS_XMLCONCAT', + "1": 'IS_XMLELEMENT', + "2": 'IS_XMLFOREST', + "3": 'IS_XMLPARSE', + "4": 'IS_XMLPI', + "5": 'IS_XMLROOT', + "6": 'IS_XMLSERIALIZE', + "7": 'IS_DOCUMENT' + }, + XmlOptionType: { + "0": 'XMLOPTION_DOCUMENT', + "1": 'XMLOPTION_CONTENT' + }, + JsonEncoding: { + "0": 'JS_ENC_DEFAULT', + "1": 'JS_ENC_UTF8', + "2": 'JS_ENC_UTF16', + "3": 'JS_ENC_UTF32' + }, + JsonFormatType: { + "0": 'JS_FORMAT_DEFAULT', + "1": 'JS_FORMAT_JSON', + "2": 'JS_FORMAT_JSONB' + }, + JsonConstructorType: { + "0": 'JSCTOR_JSON_OBJECT', + "1": 'JSCTOR_JSON_ARRAY', + "2": 'JSCTOR_JSON_OBJECTAGG', + "3": 'JSCTOR_JSON_ARRAYAGG' + }, + JsonValueType: { + "0": 'JS_TYPE_ANY', + "1": 'JS_TYPE_OBJECT', + "2": 'JS_TYPE_ARRAY', + "3": 'JS_TYPE_SCALAR' + }, + NullTestType: { + "0": 'IS_NULL', + "1": 'IS_NOT_NULL' + }, + BoolTestType: { + "0": 'IS_TRUE', + "1": 'IS_NOT_TRUE', + "2": 'IS_FALSE', + "3": 'IS_NOT_FALSE', + "4": 'IS_UNKNOWN', + "5": 'IS_NOT_UNKNOWN' + }, + CmdType: { + "0": 'CMD_UNKNOWN', + "1": 'CMD_SELECT', + "2": 'CMD_UPDATE', + "3": 'CMD_INSERT', + "4": 'CMD_DELETE', + "5": 'CMD_MERGE', + "6": 'CMD_UTILITY', + "7": 'CMD_NOTHING' + }, + JoinType: { + "0": 'JOIN_INNER', + "1": 'JOIN_LEFT', + "2": 'JOIN_FULL', + "3": 'JOIN_RIGHT', + "4": 'JOIN_SEMI', + "5": 'JOIN_ANTI', + "6": 'JOIN_RIGHT_ANTI', + "7": 'JOIN_UNIQUE_OUTER', + "8": 'JOIN_UNIQUE_INNER' + }, + AggStrategy: { + "0": 'AGG_PLAIN', + "1": 'AGG_SORTED', + "2": 'AGG_HASHED', + "3": 'AGG_MIXED' + }, + AggSplit: { + "0": 'AGGSPLIT_SIMPLE', + "1": 'AGGSPLIT_INITIAL_SERIAL', + "2": 'AGGSPLIT_FINAL_DESERIAL' + }, + SetOpCmd: { + "0": 'SETOPCMD_INTERSECT', + "1": 'SETOPCMD_INTERSECT_ALL', + "2": 'SETOPCMD_EXCEPT', + "3": 'SETOPCMD_EXCEPT_ALL' + }, + SetOpStrategy: { + "0": 'SETOP_SORTED', + "1": 'SETOP_HASHED' + }, + OnConflictAction: { + "0": 'ONCONFLICT_NONE', + "1": 'ONCONFLICT_NOTHING', + "2": 'ONCONFLICT_UPDATE' + }, + LimitOption: { + "0": 'LIMIT_OPTION_DEFAULT', + "1": 'LIMIT_OPTION_COUNT', + "2": 'LIMIT_OPTION_WITH_TIES' + }, + LockClauseStrength: { + "0": 'LCS_NONE', + "1": 'LCS_FORKEYSHARE', + "2": 'LCS_FORSHARE', + "3": 'LCS_FORNOKEYUPDATE', + "4": 'LCS_FORUPDATE' + }, + LockWaitPolicy: { + "0": 'LockWaitBlock', + "1": 'LockWaitSkip', + "2": 'LockWaitError' + }, + LockTupleMode: { + "0": 'LockTupleKeyShare', + "1": 'LockTupleShare', + "2": 'LockTupleNoKeyExclusive', + "3": 'LockTupleExclusive' + }, + KeywordKind: { + "0": 'NO_KEYWORD', + "1": 'UNRESERVED_KEYWORD', + "2": 'COL_NAME_KEYWORD', + "3": 'TYPE_FUNC_NAME_KEYWORD', + "4": 'RESERVED_KEYWORD' + }, + Token: { + "0": 'NUL', + "36": 'ASCII_36', + "37": 'ASCII_37', + "40": 'ASCII_40', + "41": 'ASCII_41', + "42": 'ASCII_42', + "43": 'ASCII_43', + "44": 'ASCII_44', + "45": 'ASCII_45', + "46": 'ASCII_46', + "47": 'ASCII_47', + "58": 'ASCII_58', + "59": 'ASCII_59', + "60": 'ASCII_60', + "61": 'ASCII_61', + "62": 'ASCII_62', + "63": 'ASCII_63', + "91": 'ASCII_91', + "92": 'ASCII_92', + "93": 'ASCII_93', + "94": 'ASCII_94', + "258": 'IDENT', + "259": 'UIDENT', + "260": 'FCONST', + "261": 'SCONST', + "262": 'USCONST', + "263": 'BCONST', + "264": 'XCONST', + "265": 'Op', + "266": 'ICONST', + "267": 'PARAM', + "268": 'TYPECAST', + "269": 'DOT_DOT', + "270": 'COLON_EQUALS', + "271": 'EQUALS_GREATER', + "272": 'LESS_EQUALS', + "273": 'GREATER_EQUALS', + "274": 'NOT_EQUALS', + "275": 'SQL_COMMENT', + "276": 'C_COMMENT', + "277": 'ABORT_P', + "278": 'ABSENT', + "279": 'ABSOLUTE_P', + "280": 'ACCESS', + "281": 'ACTION', + "282": 'ADD_P', + "283": 'ADMIN', + "284": 'AFTER', + "285": 'AGGREGATE', + "286": 'ALL', + "287": 'ALSO', + "288": 'ALTER', + "289": 'ALWAYS', + "290": 'ANALYSE', + "291": 'ANALYZE', + "292": 'AND', + "293": 'ANY', + "294": 'ARRAY', + "295": 'AS', + "296": 'ASC', + "297": 'ASENSITIVE', + "298": 'ASSERTION', + "299": 'ASSIGNMENT', + "300": 'ASYMMETRIC', + "301": 'ATOMIC', + "302": 'AT', + "303": 'ATTACH', + "304": 'ATTRIBUTE', + "305": 'AUTHORIZATION', + "306": 'BACKWARD', + "307": 'BEFORE', + "308": 'BEGIN_P', + "309": 'BETWEEN', + "310": 'BIGINT', + "311": 'BINARY', + "312": 'BIT', + "313": 'BOOLEAN_P', + "314": 'BOTH', + "315": 'BREADTH', + "316": 'BY', + "317": 'CACHE', + "318": 'CALL', + "319": 'CALLED', + "320": 'CASCADE', + "321": 'CASCADED', + "322": 'CASE', + "323": 'CAST', + "324": 'CATALOG_P', + "325": 'CHAIN', + "326": 'CHAR_P', + "327": 'CHARACTER', + "328": 'CHARACTERISTICS', + "329": 'CHECK', + "330": 'CHECKPOINT', + "331": 'CLASS', + "332": 'CLOSE', + "333": 'CLUSTER', + "334": 'COALESCE', + "335": 'COLLATE', + "336": 'COLLATION', + "337": 'COLUMN', + "338": 'COLUMNS', + "339": 'COMMENT', + "340": 'COMMENTS', + "341": 'COMMIT', + "342": 'COMMITTED', + "343": 'COMPRESSION', + "344": 'CONCURRENTLY', + "345": 'CONFIGURATION', + "346": 'CONFLICT', + "347": 'CONNECTION', + "348": 'CONSTRAINT', + "349": 'CONSTRAINTS', + "350": 'CONTENT_P', + "351": 'CONTINUE_P', + "352": 'CONVERSION_P', + "353": 'COPY', + "354": 'COST', + "355": 'CREATE', + "356": 'CROSS', + "357": 'CSV', + "358": 'CUBE', + "359": 'CURRENT_P', + "360": 'CURRENT_CATALOG', + "361": 'CURRENT_DATE', + "362": 'CURRENT_ROLE', + "363": 'CURRENT_SCHEMA', + "364": 'CURRENT_TIME', + "365": 'CURRENT_TIMESTAMP', + "366": 'CURRENT_USER', + "367": 'CURSOR', + "368": 'CYCLE', + "369": 'DATA_P', + "370": 'DATABASE', + "371": 'DAY_P', + "372": 'DEALLOCATE', + "373": 'DEC', + "374": 'DECIMAL_P', + "375": 'DECLARE', + "376": 'DEFAULT', + "377": 'DEFAULTS', + "378": 'DEFERRABLE', + "379": 'DEFERRED', + "380": 'DEFINER', + "381": 'DELETE_P', + "382": 'DELIMITER', + "383": 'DELIMITERS', + "384": 'DEPENDS', + "385": 'DEPTH', + "386": 'DESC', + "387": 'DETACH', + "388": 'DICTIONARY', + "389": 'DISABLE_P', + "390": 'DISCARD', + "391": 'DISTINCT', + "392": 'DO', + "393": 'DOCUMENT_P', + "394": 'DOMAIN_P', + "395": 'DOUBLE_P', + "396": 'DROP', + "397": 'EACH', + "398": 'ELSE', + "399": 'ENABLE_P', + "400": 'ENCODING', + "401": 'ENCRYPTED', + "402": 'END_P', + "403": 'ENUM_P', + "404": 'ESCAPE', + "405": 'EVENT', + "406": 'EXCEPT', + "407": 'EXCLUDE', + "408": 'EXCLUDING', + "409": 'EXCLUSIVE', + "410": 'EXECUTE', + "411": 'EXISTS', + "412": 'EXPLAIN', + "413": 'EXPRESSION', + "414": 'EXTENSION', + "415": 'EXTERNAL', + "416": 'EXTRACT', + "417": 'FALSE_P', + "418": 'FAMILY', + "419": 'FETCH', + "420": 'FILTER', + "421": 'FINALIZE', + "422": 'FIRST_P', + "423": 'FLOAT_P', + "424": 'FOLLOWING', + "425": 'FOR', + "426": 'FORCE', + "427": 'FOREIGN', + "428": 'FORMAT', + "429": 'FORWARD', + "430": 'FREEZE', + "431": 'FROM', + "432": 'FULL', + "433": 'FUNCTION', + "434": 'FUNCTIONS', + "435": 'GENERATED', + "436": 'GLOBAL', + "437": 'GRANT', + "438": 'GRANTED', + "439": 'GREATEST', + "440": 'GROUP_P', + "441": 'GROUPING', + "442": 'GROUPS', + "443": 'HANDLER', + "444": 'HAVING', + "445": 'HEADER_P', + "446": 'HOLD', + "447": 'HOUR_P', + "448": 'IDENTITY_P', + "449": 'IF_P', + "450": 'ILIKE', + "451": 'IMMEDIATE', + "452": 'IMMUTABLE', + "453": 'IMPLICIT_P', + "454": 'IMPORT_P', + "455": 'IN_P', + "456": 'INCLUDE', + "457": 'INCLUDING', + "458": 'INCREMENT', + "459": 'INDENT', + "460": 'INDEX', + "461": 'INDEXES', + "462": 'INHERIT', + "463": 'INHERITS', + "464": 'INITIALLY', + "465": 'INLINE_P', + "466": 'INNER_P', + "467": 'INOUT', + "468": 'INPUT_P', + "469": 'INSENSITIVE', + "470": 'INSERT', + "471": 'INSTEAD', + "472": 'INT_P', + "473": 'INTEGER', + "474": 'INTERSECT', + "475": 'INTERVAL', + "476": 'INTO', + "477": 'INVOKER', + "478": 'IS', + "479": 'ISNULL', + "480": 'ISOLATION', + "481": 'JOIN', + "482": 'JSON', + "483": 'JSON_ARRAY', + "484": 'JSON_ARRAYAGG', + "485": 'JSON_OBJECT', + "486": 'JSON_OBJECTAGG', + "487": 'KEY', + "488": 'KEYS', + "489": 'LABEL', + "490": 'LANGUAGE', + "491": 'LARGE_P', + "492": 'LAST_P', + "493": 'LATERAL_P', + "494": 'LEADING', + "495": 'LEAKPROOF', + "496": 'LEAST', + "497": 'LEFT', + "498": 'LEVEL', + "499": 'LIKE', + "500": 'LIMIT', + "501": 'LISTEN', + "502": 'LOAD', + "503": 'LOCAL', + "504": 'LOCALTIME', + "505": 'LOCALTIMESTAMP', + "506": 'LOCATION', + "507": 'LOCK_P', + "508": 'LOCKED', + "509": 'LOGGED', + "510": 'MAPPING', + "511": 'MATCH', + "512": 'MATCHED', + "513": 'MATERIALIZED', + "514": 'MAXVALUE', + "515": 'MERGE', + "516": 'METHOD', + "517": 'MINUTE_P', + "518": 'MINVALUE', + "519": 'MODE', + "520": 'MONTH_P', + "521": 'MOVE', + "522": 'NAME_P', + "523": 'NAMES', + "524": 'NATIONAL', + "525": 'NATURAL', + "526": 'NCHAR', + "527": 'NEW', + "528": 'NEXT', + "529": 'NFC', + "530": 'NFD', + "531": 'NFKC', + "532": 'NFKD', + "533": 'NO', + "534": 'NONE', + "535": 'NORMALIZE', + "536": 'NORMALIZED', + "537": 'NOT', + "538": 'NOTHING', + "539": 'NOTIFY', + "540": 'NOTNULL', + "541": 'NOWAIT', + "542": 'NULL_P', + "543": 'NULLIF', + "544": 'NULLS_P', + "545": 'NUMERIC', + "546": 'OBJECT_P', + "547": 'OF', + "548": 'OFF', + "549": 'OFFSET', + "550": 'OIDS', + "551": 'OLD', + "552": 'ON', + "553": 'ONLY', + "554": 'OPERATOR', + "555": 'OPTION', + "556": 'OPTIONS', + "557": 'OR', + "558": 'ORDER', + "559": 'ORDINALITY', + "560": 'OTHERS', + "561": 'OUT_P', + "562": 'OUTER_P', + "563": 'OVER', + "564": 'OVERLAPS', + "565": 'OVERLAY', + "566": 'OVERRIDING', + "567": 'OWNED', + "568": 'OWNER', + "569": 'PARALLEL', + "570": 'PARAMETER', + "571": 'PARSER', + "572": 'PARTIAL', + "573": 'PARTITION', + "574": 'PASSING', + "575": 'PASSWORD', + "576": 'PLACING', + "577": 'PLANS', + "578": 'POLICY', + "579": 'POSITION', + "580": 'PRECEDING', + "581": 'PRECISION', + "582": 'PRESERVE', + "583": 'PREPARE', + "584": 'PREPARED', + "585": 'PRIMARY', + "586": 'PRIOR', + "587": 'PRIVILEGES', + "588": 'PROCEDURAL', + "589": 'PROCEDURE', + "590": 'PROCEDURES', + "591": 'PROGRAM', + "592": 'PUBLICATION', + "593": 'QUOTE', + "594": 'RANGE', + "595": 'READ', + "596": 'REAL', + "597": 'REASSIGN', + "598": 'RECHECK', + "599": 'RECURSIVE', + "600": 'REF_P', + "601": 'REFERENCES', + "602": 'REFERENCING', + "603": 'REFRESH', + "604": 'REINDEX', + "605": 'RELATIVE_P', + "606": 'RELEASE', + "607": 'RENAME', + "608": 'REPEATABLE', + "609": 'REPLACE', + "610": 'REPLICA', + "611": 'RESET', + "612": 'RESTART', + "613": 'RESTRICT', + "614": 'RETURN', + "615": 'RETURNING', + "616": 'RETURNS', + "617": 'REVOKE', + "618": 'RIGHT', + "619": 'ROLE', + "620": 'ROLLBACK', + "621": 'ROLLUP', + "622": 'ROUTINE', + "623": 'ROUTINES', + "624": 'ROW', + "625": 'ROWS', + "626": 'RULE', + "627": 'SAVEPOINT', + "628": 'SCALAR', + "629": 'SCHEMA', + "630": 'SCHEMAS', + "631": 'SCROLL', + "632": 'SEARCH', + "633": 'SECOND_P', + "634": 'SECURITY', + "635": 'SELECT', + "636": 'SEQUENCE', + "637": 'SEQUENCES', + "638": 'SERIALIZABLE', + "639": 'SERVER', + "640": 'SESSION', + "641": 'SESSION_USER', + "642": 'SET', + "643": 'SETS', + "644": 'SETOF', + "645": 'SHARE', + "646": 'SHOW', + "647": 'SIMILAR', + "648": 'SIMPLE', + "649": 'SKIP', + "650": 'SMALLINT', + "651": 'SNAPSHOT', + "652": 'SOME', + "653": 'SQL_P', + "654": 'STABLE', + "655": 'STANDALONE_P', + "656": 'START', + "657": 'STATEMENT', + "658": 'STATISTICS', + "659": 'STDIN', + "660": 'STDOUT', + "661": 'STORAGE', + "662": 'STORED', + "663": 'STRICT_P', + "664": 'STRIP_P', + "665": 'SUBSCRIPTION', + "666": 'SUBSTRING', + "667": 'SUPPORT', + "668": 'SYMMETRIC', + "669": 'SYSID', + "670": 'SYSTEM_P', + "671": 'SYSTEM_USER', + "672": 'TABLE', + "673": 'TABLES', + "674": 'TABLESAMPLE', + "675": 'TABLESPACE', + "676": 'TEMP', + "677": 'TEMPLATE', + "678": 'TEMPORARY', + "679": 'TEXT_P', + "680": 'THEN', + "681": 'TIES', + "682": 'TIME', + "683": 'TIMESTAMP', + "684": 'TO', + "685": 'TRAILING', + "686": 'TRANSACTION', + "687": 'TRANSFORM', + "688": 'TREAT', + "689": 'TRIGGER', + "690": 'TRIM', + "691": 'TRUE_P', + "692": 'TRUNCATE', + "693": 'TRUSTED', + "694": 'TYPE_P', + "695": 'TYPES_P', + "696": 'UESCAPE', + "697": 'UNBOUNDED', + "698": 'UNCOMMITTED', + "699": 'UNENCRYPTED', + "700": 'UNION', + "701": 'UNIQUE', + "702": 'UNKNOWN', + "703": 'UNLISTEN', + "704": 'UNLOGGED', + "705": 'UNTIL', + "706": 'UPDATE', + "707": 'USER', + "708": 'USING', + "709": 'VACUUM', + "710": 'VALID', + "711": 'VALIDATE', + "712": 'VALIDATOR', + "713": 'VALUE_P', + "714": 'VALUES', + "715": 'VARCHAR', + "716": 'VARIADIC', + "717": 'VARYING', + "718": 'VERBOSE', + "719": 'VERSION_P', + "720": 'VIEW', + "721": 'VIEWS', + "722": 'VOLATILE', + "723": 'WHEN', + "724": 'WHERE', + "725": 'WHITESPACE_P', + "726": 'WINDOW', + "727": 'WITH', + "728": 'WITHIN', + "729": 'WITHOUT', + "730": 'WORK', + "731": 'WRAPPER', + "732": 'WRITE', + "733": 'XML_P', + "734": 'XMLATTRIBUTES', + "735": 'XMLCONCAT', + "736": 'XMLELEMENT', + "737": 'XMLEXISTS', + "738": 'XMLFOREST', + "739": 'XMLNAMESPACES', + "740": 'XMLPARSE', + "741": 'XMLPI', + "742": 'XMLROOT', + "743": 'XMLSERIALIZE', + "744": 'XMLTABLE', + "745": 'YEAR_P', + "746": 'YES_P', + "747": 'ZONE', + "748": 'FORMAT_LA', + "749": 'NOT_LA', + "750": 'NULLS_LA', + "751": 'WITH_LA', + "752": 'WITHOUT_LA', + "753": 'MODE_TYPE_NAME', + "754": 'MODE_PLPGSQL_EXPR', + "755": 'MODE_PLPGSQL_ASSIGN1', + "756": 'MODE_PLPGSQL_ASSIGN2', + "757": 'MODE_PLPGSQL_ASSIGN3', + "758": 'UMINUS' + } +}; +export type EnumToStrMap = typeof enumToStrMap; \ No newline at end of file diff --git a/__fixtures__/output/enum-maps/typescript/enabled/enums.ts b/__fixtures__/output/enum-maps/typescript/enabled/enums.ts new file mode 100644 index 00000000..6abee53e --- /dev/null +++ b/__fixtures__/output/enum-maps/typescript/enabled/enums.ts @@ -0,0 +1,69 @@ +/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type OverridingKind = "OVERRIDING_NOT_SET" | "OVERRIDING_USER_VALUE" | "OVERRIDING_SYSTEM_VALUE"; +export type QuerySource = "QSRC_ORIGINAL" | "QSRC_PARSER" | "QSRC_INSTEAD_RULE" | "QSRC_QUAL_INSTEAD_RULE" | "QSRC_NON_INSTEAD_RULE"; +export type SortByDir = "SORTBY_DEFAULT" | "SORTBY_ASC" | "SORTBY_DESC" | "SORTBY_USING"; +export type SortByNulls = "SORTBY_NULLS_DEFAULT" | "SORTBY_NULLS_FIRST" | "SORTBY_NULLS_LAST"; +export type SetQuantifier = "SET_QUANTIFIER_DEFAULT" | "SET_QUANTIFIER_ALL" | "SET_QUANTIFIER_DISTINCT"; +export type A_Expr_Kind = "AEXPR_OP" | "AEXPR_OP_ANY" | "AEXPR_OP_ALL" | "AEXPR_DISTINCT" | "AEXPR_NOT_DISTINCT" | "AEXPR_NULLIF" | "AEXPR_IN" | "AEXPR_LIKE" | "AEXPR_ILIKE" | "AEXPR_SIMILAR" | "AEXPR_BETWEEN" | "AEXPR_NOT_BETWEEN" | "AEXPR_BETWEEN_SYM" | "AEXPR_NOT_BETWEEN_SYM"; +export type RoleSpecType = "ROLESPEC_CSTRING" | "ROLESPEC_CURRENT_ROLE" | "ROLESPEC_CURRENT_USER" | "ROLESPEC_SESSION_USER" | "ROLESPEC_PUBLIC"; +export type TableLikeOption = "CREATE_TABLE_LIKE_COMMENTS" | "CREATE_TABLE_LIKE_COMPRESSION" | "CREATE_TABLE_LIKE_CONSTRAINTS" | "CREATE_TABLE_LIKE_DEFAULTS" | "CREATE_TABLE_LIKE_GENERATED" | "CREATE_TABLE_LIKE_IDENTITY" | "CREATE_TABLE_LIKE_INDEXES" | "CREATE_TABLE_LIKE_STATISTICS" | "CREATE_TABLE_LIKE_STORAGE" | "CREATE_TABLE_LIKE_ALL"; +export type DefElemAction = "DEFELEM_UNSPEC" | "DEFELEM_SET" | "DEFELEM_ADD" | "DEFELEM_DROP"; +export type PartitionStrategy = "PARTITION_STRATEGY_LIST" | "PARTITION_STRATEGY_RANGE" | "PARTITION_STRATEGY_HASH"; +export type PartitionRangeDatumKind = "PARTITION_RANGE_DATUM_MINVALUE" | "PARTITION_RANGE_DATUM_VALUE" | "PARTITION_RANGE_DATUM_MAXVALUE"; +export type RTEKind = "RTE_RELATION" | "RTE_SUBQUERY" | "RTE_JOIN" | "RTE_FUNCTION" | "RTE_TABLEFUNC" | "RTE_VALUES" | "RTE_CTE" | "RTE_NAMEDTUPLESTORE" | "RTE_RESULT"; +export type WCOKind = "WCO_VIEW_CHECK" | "WCO_RLS_INSERT_CHECK" | "WCO_RLS_UPDATE_CHECK" | "WCO_RLS_CONFLICT_CHECK" | "WCO_RLS_MERGE_UPDATE_CHECK" | "WCO_RLS_MERGE_DELETE_CHECK"; +export type GroupingSetKind = "GROUPING_SET_EMPTY" | "GROUPING_SET_SIMPLE" | "GROUPING_SET_ROLLUP" | "GROUPING_SET_CUBE" | "GROUPING_SET_SETS"; +export type CTEMaterialize = "CTEMaterializeDefault" | "CTEMaterializeAlways" | "CTEMaterializeNever"; +export type SetOperation = "SETOP_NONE" | "SETOP_UNION" | "SETOP_INTERSECT" | "SETOP_EXCEPT"; +export type ObjectType = "OBJECT_ACCESS_METHOD" | "OBJECT_AGGREGATE" | "OBJECT_AMOP" | "OBJECT_AMPROC" | "OBJECT_ATTRIBUTE" | "OBJECT_CAST" | "OBJECT_COLUMN" | "OBJECT_COLLATION" | "OBJECT_CONVERSION" | "OBJECT_DATABASE" | "OBJECT_DEFAULT" | "OBJECT_DEFACL" | "OBJECT_DOMAIN" | "OBJECT_DOMCONSTRAINT" | "OBJECT_EVENT_TRIGGER" | "OBJECT_EXTENSION" | "OBJECT_FDW" | "OBJECT_FOREIGN_SERVER" | "OBJECT_FOREIGN_TABLE" | "OBJECT_FUNCTION" | "OBJECT_INDEX" | "OBJECT_LANGUAGE" | "OBJECT_LARGEOBJECT" | "OBJECT_MATVIEW" | "OBJECT_OPCLASS" | "OBJECT_OPERATOR" | "OBJECT_OPFAMILY" | "OBJECT_PARAMETER_ACL" | "OBJECT_POLICY" | "OBJECT_PROCEDURE" | "OBJECT_PUBLICATION" | "OBJECT_PUBLICATION_NAMESPACE" | "OBJECT_PUBLICATION_REL" | "OBJECT_ROLE" | "OBJECT_ROUTINE" | "OBJECT_RULE" | "OBJECT_SCHEMA" | "OBJECT_SEQUENCE" | "OBJECT_SUBSCRIPTION" | "OBJECT_STATISTIC_EXT" | "OBJECT_TABCONSTRAINT" | "OBJECT_TABLE" | "OBJECT_TABLESPACE" | "OBJECT_TRANSFORM" | "OBJECT_TRIGGER" | "OBJECT_TSCONFIGURATION" | "OBJECT_TSDICTIONARY" | "OBJECT_TSPARSER" | "OBJECT_TSTEMPLATE" | "OBJECT_TYPE" | "OBJECT_USER_MAPPING" | "OBJECT_VIEW"; +export type DropBehavior = "DROP_RESTRICT" | "DROP_CASCADE"; +export type AlterTableType = "AT_AddColumn" | "AT_AddColumnToView" | "AT_ColumnDefault" | "AT_CookedColumnDefault" | "AT_DropNotNull" | "AT_SetNotNull" | "AT_DropExpression" | "AT_CheckNotNull" | "AT_SetStatistics" | "AT_SetOptions" | "AT_ResetOptions" | "AT_SetStorage" | "AT_SetCompression" | "AT_DropColumn" | "AT_AddIndex" | "AT_ReAddIndex" | "AT_AddConstraint" | "AT_ReAddConstraint" | "AT_ReAddDomainConstraint" | "AT_AlterConstraint" | "AT_ValidateConstraint" | "AT_AddIndexConstraint" | "AT_DropConstraint" | "AT_ReAddComment" | "AT_AlterColumnType" | "AT_AlterColumnGenericOptions" | "AT_ChangeOwner" | "AT_ClusterOn" | "AT_DropCluster" | "AT_SetLogged" | "AT_SetUnLogged" | "AT_DropOids" | "AT_SetAccessMethod" | "AT_SetTableSpace" | "AT_SetRelOptions" | "AT_ResetRelOptions" | "AT_ReplaceRelOptions" | "AT_EnableTrig" | "AT_EnableAlwaysTrig" | "AT_EnableReplicaTrig" | "AT_DisableTrig" | "AT_EnableTrigAll" | "AT_DisableTrigAll" | "AT_EnableTrigUser" | "AT_DisableTrigUser" | "AT_EnableRule" | "AT_EnableAlwaysRule" | "AT_EnableReplicaRule" | "AT_DisableRule" | "AT_AddInherit" | "AT_DropInherit" | "AT_AddOf" | "AT_DropOf" | "AT_ReplicaIdentity" | "AT_EnableRowSecurity" | "AT_DisableRowSecurity" | "AT_ForceRowSecurity" | "AT_NoForceRowSecurity" | "AT_GenericOptions" | "AT_AttachPartition" | "AT_DetachPartition" | "AT_DetachPartitionFinalize" | "AT_AddIdentity" | "AT_SetIdentity" | "AT_DropIdentity" | "AT_ReAddStatistics"; +export type GrantTargetType = "ACL_TARGET_OBJECT" | "ACL_TARGET_ALL_IN_SCHEMA" | "ACL_TARGET_DEFAULTS"; +export type VariableSetKind = "VAR_SET_VALUE" | "VAR_SET_DEFAULT" | "VAR_SET_CURRENT" | "VAR_SET_MULTI" | "VAR_RESET" | "VAR_RESET_ALL"; +export type ConstrType = "CONSTR_NULL" | "CONSTR_NOTNULL" | "CONSTR_DEFAULT" | "CONSTR_IDENTITY" | "CONSTR_GENERATED" | "CONSTR_CHECK" | "CONSTR_PRIMARY" | "CONSTR_UNIQUE" | "CONSTR_EXCLUSION" | "CONSTR_FOREIGN" | "CONSTR_ATTR_DEFERRABLE" | "CONSTR_ATTR_NOT_DEFERRABLE" | "CONSTR_ATTR_DEFERRED" | "CONSTR_ATTR_IMMEDIATE"; +export type ImportForeignSchemaType = "FDW_IMPORT_SCHEMA_ALL" | "FDW_IMPORT_SCHEMA_LIMIT_TO" | "FDW_IMPORT_SCHEMA_EXCEPT"; +export type RoleStmtType = "ROLESTMT_ROLE" | "ROLESTMT_USER" | "ROLESTMT_GROUP"; +export type FetchDirection = "FETCH_FORWARD" | "FETCH_BACKWARD" | "FETCH_ABSOLUTE" | "FETCH_RELATIVE"; +export type FunctionParameterMode = "FUNC_PARAM_IN" | "FUNC_PARAM_OUT" | "FUNC_PARAM_INOUT" | "FUNC_PARAM_VARIADIC" | "FUNC_PARAM_TABLE" | "FUNC_PARAM_DEFAULT"; +export type TransactionStmtKind = "TRANS_STMT_BEGIN" | "TRANS_STMT_START" | "TRANS_STMT_COMMIT" | "TRANS_STMT_ROLLBACK" | "TRANS_STMT_SAVEPOINT" | "TRANS_STMT_RELEASE" | "TRANS_STMT_ROLLBACK_TO" | "TRANS_STMT_PREPARE" | "TRANS_STMT_COMMIT_PREPARED" | "TRANS_STMT_ROLLBACK_PREPARED"; +export type ViewCheckOption = "NO_CHECK_OPTION" | "LOCAL_CHECK_OPTION" | "CASCADED_CHECK_OPTION"; +export type DiscardMode = "DISCARD_ALL" | "DISCARD_PLANS" | "DISCARD_SEQUENCES" | "DISCARD_TEMP"; +export type ReindexObjectType = "REINDEX_OBJECT_INDEX" | "REINDEX_OBJECT_TABLE" | "REINDEX_OBJECT_SCHEMA" | "REINDEX_OBJECT_SYSTEM" | "REINDEX_OBJECT_DATABASE"; +export type AlterTSConfigType = "ALTER_TSCONFIG_ADD_MAPPING" | "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN" | "ALTER_TSCONFIG_REPLACE_DICT" | "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN" | "ALTER_TSCONFIG_DROP_MAPPING"; +export type PublicationObjSpecType = "PUBLICATIONOBJ_TABLE" | "PUBLICATIONOBJ_TABLES_IN_SCHEMA" | "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA" | "PUBLICATIONOBJ_CONTINUATION"; +export type AlterPublicationAction = "AP_AddObjects" | "AP_DropObjects" | "AP_SetObjects"; +export type AlterSubscriptionType = "ALTER_SUBSCRIPTION_OPTIONS" | "ALTER_SUBSCRIPTION_CONNECTION" | "ALTER_SUBSCRIPTION_SET_PUBLICATION" | "ALTER_SUBSCRIPTION_ADD_PUBLICATION" | "ALTER_SUBSCRIPTION_DROP_PUBLICATION" | "ALTER_SUBSCRIPTION_REFRESH" | "ALTER_SUBSCRIPTION_ENABLED" | "ALTER_SUBSCRIPTION_SKIP"; +export type OnCommitAction = "ONCOMMIT_NOOP" | "ONCOMMIT_PRESERVE_ROWS" | "ONCOMMIT_DELETE_ROWS" | "ONCOMMIT_DROP"; +export type ParamKind = "PARAM_EXTERN" | "PARAM_EXEC" | "PARAM_SUBLINK" | "PARAM_MULTIEXPR"; +export type CoercionContext = "COERCION_IMPLICIT" | "COERCION_ASSIGNMENT" | "COERCION_PLPGSQL" | "COERCION_EXPLICIT"; +export type CoercionForm = "COERCE_EXPLICIT_CALL" | "COERCE_EXPLICIT_CAST" | "COERCE_IMPLICIT_CAST" | "COERCE_SQL_SYNTAX"; +export type BoolExprType = "AND_EXPR" | "OR_EXPR" | "NOT_EXPR"; +export type SubLinkType = "EXISTS_SUBLINK" | "ALL_SUBLINK" | "ANY_SUBLINK" | "ROWCOMPARE_SUBLINK" | "EXPR_SUBLINK" | "MULTIEXPR_SUBLINK" | "ARRAY_SUBLINK" | "CTE_SUBLINK"; +export type RowCompareType = "ROWCOMPARE_LT" | "ROWCOMPARE_LE" | "ROWCOMPARE_EQ" | "ROWCOMPARE_GE" | "ROWCOMPARE_GT" | "ROWCOMPARE_NE"; +export type MinMaxOp = "IS_GREATEST" | "IS_LEAST"; +export type SQLValueFunctionOp = "SVFOP_CURRENT_DATE" | "SVFOP_CURRENT_TIME" | "SVFOP_CURRENT_TIME_N" | "SVFOP_CURRENT_TIMESTAMP" | "SVFOP_CURRENT_TIMESTAMP_N" | "SVFOP_LOCALTIME" | "SVFOP_LOCALTIME_N" | "SVFOP_LOCALTIMESTAMP" | "SVFOP_LOCALTIMESTAMP_N" | "SVFOP_CURRENT_ROLE" | "SVFOP_CURRENT_USER" | "SVFOP_USER" | "SVFOP_SESSION_USER" | "SVFOP_CURRENT_CATALOG" | "SVFOP_CURRENT_SCHEMA"; +export type XmlExprOp = "IS_XMLCONCAT" | "IS_XMLELEMENT" | "IS_XMLFOREST" | "IS_XMLPARSE" | "IS_XMLPI" | "IS_XMLROOT" | "IS_XMLSERIALIZE" | "IS_DOCUMENT"; +export type XmlOptionType = "XMLOPTION_DOCUMENT" | "XMLOPTION_CONTENT"; +export type JsonEncoding = "JS_ENC_DEFAULT" | "JS_ENC_UTF8" | "JS_ENC_UTF16" | "JS_ENC_UTF32"; +export type JsonFormatType = "JS_FORMAT_DEFAULT" | "JS_FORMAT_JSON" | "JS_FORMAT_JSONB"; +export type JsonConstructorType = "JSCTOR_JSON_OBJECT" | "JSCTOR_JSON_ARRAY" | "JSCTOR_JSON_OBJECTAGG" | "JSCTOR_JSON_ARRAYAGG"; +export type JsonValueType = "JS_TYPE_ANY" | "JS_TYPE_OBJECT" | "JS_TYPE_ARRAY" | "JS_TYPE_SCALAR"; +export type NullTestType = "IS_NULL" | "IS_NOT_NULL"; +export type BoolTestType = "IS_TRUE" | "IS_NOT_TRUE" | "IS_FALSE" | "IS_NOT_FALSE" | "IS_UNKNOWN" | "IS_NOT_UNKNOWN"; +export type CmdType = "CMD_UNKNOWN" | "CMD_SELECT" | "CMD_UPDATE" | "CMD_INSERT" | "CMD_DELETE" | "CMD_MERGE" | "CMD_UTILITY" | "CMD_NOTHING"; +export type JoinType = "JOIN_INNER" | "JOIN_LEFT" | "JOIN_FULL" | "JOIN_RIGHT" | "JOIN_SEMI" | "JOIN_ANTI" | "JOIN_RIGHT_ANTI" | "JOIN_UNIQUE_OUTER" | "JOIN_UNIQUE_INNER"; +export type AggStrategy = "AGG_PLAIN" | "AGG_SORTED" | "AGG_HASHED" | "AGG_MIXED"; +export type AggSplit = "AGGSPLIT_SIMPLE" | "AGGSPLIT_INITIAL_SERIAL" | "AGGSPLIT_FINAL_DESERIAL"; +export type SetOpCmd = "SETOPCMD_INTERSECT" | "SETOPCMD_INTERSECT_ALL" | "SETOPCMD_EXCEPT" | "SETOPCMD_EXCEPT_ALL"; +export type SetOpStrategy = "SETOP_SORTED" | "SETOP_HASHED"; +export type OnConflictAction = "ONCONFLICT_NONE" | "ONCONFLICT_NOTHING" | "ONCONFLICT_UPDATE"; +export type LimitOption = "LIMIT_OPTION_DEFAULT" | "LIMIT_OPTION_COUNT" | "LIMIT_OPTION_WITH_TIES"; +export type LockClauseStrength = "LCS_NONE" | "LCS_FORKEYSHARE" | "LCS_FORSHARE" | "LCS_FORNOKEYUPDATE" | "LCS_FORUPDATE"; +export type LockWaitPolicy = "LockWaitBlock" | "LockWaitSkip" | "LockWaitError"; +export type LockTupleMode = "LockTupleKeyShare" | "LockTupleShare" | "LockTupleNoKeyExclusive" | "LockTupleExclusive"; +export type KeywordKind = "NO_KEYWORD" | "UNRESERVED_KEYWORD" | "COL_NAME_KEYWORD" | "TYPE_FUNC_NAME_KEYWORD" | "RESERVED_KEYWORD"; +export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | "ASCII_42" | "ASCII_43" | "ASCII_44" | "ASCII_45" | "ASCII_46" | "ASCII_47" | "ASCII_58" | "ASCII_59" | "ASCII_60" | "ASCII_61" | "ASCII_62" | "ASCII_63" | "ASCII_91" | "ASCII_92" | "ASCII_93" | "ASCII_94" | "IDENT" | "UIDENT" | "FCONST" | "SCONST" | "USCONST" | "BCONST" | "XCONST" | "Op" | "ICONST" | "PARAM" | "TYPECAST" | "DOT_DOT" | "COLON_EQUALS" | "EQUALS_GREATER" | "LESS_EQUALS" | "GREATER_EQUALS" | "NOT_EQUALS" | "SQL_COMMENT" | "C_COMMENT" | "ABORT_P" | "ABSENT" | "ABSOLUTE_P" | "ACCESS" | "ACTION" | "ADD_P" | "ADMIN" | "AFTER" | "AGGREGATE" | "ALL" | "ALSO" | "ALTER" | "ALWAYS" | "ANALYSE" | "ANALYZE" | "AND" | "ANY" | "ARRAY" | "AS" | "ASC" | "ASENSITIVE" | "ASSERTION" | "ASSIGNMENT" | "ASYMMETRIC" | "ATOMIC" | "AT" | "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" | "CHAR_P" | "CHARACTER" | "CHARACTERISTICS" | "CHECK" | "CHECKPOINT" | "CLASS" | "CLOSE" | "CLUSTER" | "COALESCE" | "COLLATE" | "COLLATION" | "COLUMN" | "COLUMNS" | "COMMENT" | "COMMENTS" | "COMMIT" | "COMMITTED" | "COMPRESSION" | "CONCURRENTLY" | "CONFIGURATION" | "CONFLICT" | "CONNECTION" | "CONSTRAINT" | "CONSTRAINTS" | "CONTENT_P" | "CONTINUE_P" | "CONVERSION_P" | "COPY" | "COST" | "CREATE" | "CROSS" | "CSV" | "CUBE" | "CURRENT_P" | "CURRENT_CATALOG" | "CURRENT_DATE" | "CURRENT_ROLE" | "CURRENT_SCHEMA" | "CURRENT_TIME" | "CURRENT_TIMESTAMP" | "CURRENT_USER" | "CURSOR" | "CYCLE" | "DATA_P" | "DATABASE" | "DAY_P" | "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" | "ENABLE_P" | "ENCODING" | "ENCRYPTED" | "END_P" | "ENUM_P" | "ESCAPE" | "EVENT" | "EXCEPT" | "EXCLUDE" | "EXCLUDING" | "EXCLUSIVE" | "EXECUTE" | "EXISTS" | "EXPLAIN" | "EXPRESSION" | "EXTENSION" | "EXTERNAL" | "EXTRACT" | "FALSE_P" | "FAMILY" | "FETCH" | "FILTER" | "FINALIZE" | "FIRST_P" | "FLOAT_P" | "FOLLOWING" | "FOR" | "FORCE" | "FOREIGN" | "FORMAT" | "FORWARD" | "FREEZE" | "FROM" | "FULL" | "FUNCTION" | "FUNCTIONS" | "GENERATED" | "GLOBAL" | "GRANT" | "GRANTED" | "GREATEST" | "GROUP_P" | "GROUPING" | "GROUPS" | "HANDLER" | "HAVING" | "HEADER_P" | "HOLD" | "HOUR_P" | "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" | "INTERSECT" | "INTERVAL" | "INTO" | "INVOKER" | "IS" | "ISNULL" | "ISOLATION" | "JOIN" | "JSON" | "JSON_ARRAY" | "JSON_ARRAYAGG" | "JSON_OBJECT" | "JSON_OBJECTAGG" | "KEY" | "KEYS" | "LABEL" | "LANGUAGE" | "LARGE_P" | "LAST_P" | "LATERAL_P" | "LEADING" | "LEAKPROOF" | "LEAST" | "LEFT" | "LEVEL" | "LIKE" | "LIMIT" | "LISTEN" | "LOAD" | "LOCAL" | "LOCALTIME" | "LOCALTIMESTAMP" | "LOCATION" | "LOCK_P" | "LOCKED" | "LOGGED" | "MAPPING" | "MATCH" | "MATCHED" | "MATERIALIZED" | "MAXVALUE" | "MERGE" | "METHOD" | "MINUTE_P" | "MINVALUE" | "MODE" | "MONTH_P" | "MOVE" | "NAME_P" | "NAMES" | "NATIONAL" | "NATURAL" | "NCHAR" | "NEW" | "NEXT" | "NFC" | "NFD" | "NFKC" | "NFKD" | "NO" | "NONE" | "NORMALIZE" | "NORMALIZED" | "NOT" | "NOTHING" | "NOTIFY" | "NOTNULL" | "NOWAIT" | "NULL_P" | "NULLIF" | "NULLS_P" | "NUMERIC" | "OBJECT_P" | "OF" | "OFF" | "OFFSET" | "OIDS" | "OLD" | "ON" | "ONLY" | "OPERATOR" | "OPTION" | "OPTIONS" | "OR" | "ORDER" | "ORDINALITY" | "OTHERS" | "OUT_P" | "OUTER_P" | "OVER" | "OVERLAPS" | "OVERLAY" | "OVERRIDING" | "OWNED" | "OWNER" | "PARALLEL" | "PARAMETER" | "PARSER" | "PARTIAL" | "PARTITION" | "PASSING" | "PASSWORD" | "PLACING" | "PLANS" | "POLICY" | "POSITION" | "PRECEDING" | "PRECISION" | "PRESERVE" | "PREPARE" | "PREPARED" | "PRIMARY" | "PRIOR" | "PRIVILEGES" | "PROCEDURAL" | "PROCEDURE" | "PROCEDURES" | "PROGRAM" | "PUBLICATION" | "QUOTE" | "RANGE" | "READ" | "REAL" | "REASSIGN" | "RECHECK" | "RECURSIVE" | "REF_P" | "REFERENCES" | "REFERENCING" | "REFRESH" | "REINDEX" | "RELATIVE_P" | "RELEASE" | "RENAME" | "REPEATABLE" | "REPLACE" | "REPLICA" | "RESET" | "RESTART" | "RESTRICT" | "RETURN" | "RETURNING" | "RETURNS" | "REVOKE" | "RIGHT" | "ROLE" | "ROLLBACK" | "ROLLUP" | "ROUTINE" | "ROUTINES" | "ROW" | "ROWS" | "RULE" | "SAVEPOINT" | "SCALAR" | "SCHEMA" | "SCHEMAS" | "SCROLL" | "SEARCH" | "SECOND_P" | "SECURITY" | "SELECT" | "SEQUENCE" | "SEQUENCES" | "SERIALIZABLE" | "SERVER" | "SESSION" | "SESSION_USER" | "SET" | "SETS" | "SETOF" | "SHARE" | "SHOW" | "SIMILAR" | "SIMPLE" | "SKIP" | "SMALLINT" | "SNAPSHOT" | "SOME" | "SQL_P" | "STABLE" | "STANDALONE_P" | "START" | "STATEMENT" | "STATISTICS" | "STDIN" | "STDOUT" | "STORAGE" | "STORED" | "STRICT_P" | "STRIP_P" | "SUBSCRIPTION" | "SUBSTRING" | "SUPPORT" | "SYMMETRIC" | "SYSID" | "SYSTEM_P" | "SYSTEM_USER" | "TABLE" | "TABLES" | "TABLESAMPLE" | "TABLESPACE" | "TEMP" | "TEMPLATE" | "TEMPORARY" | "TEXT_P" | "THEN" | "TIES" | "TIME" | "TIMESTAMP" | "TO" | "TRAILING" | "TRANSACTION" | "TRANSFORM" | "TREAT" | "TRIGGER" | "TRIM" | "TRUE_P" | "TRUNCATE" | "TRUSTED" | "TYPE_P" | "TYPES_P" | "UESCAPE" | "UNBOUNDED" | "UNCOMMITTED" | "UNENCRYPTED" | "UNION" | "UNIQUE" | "UNKNOWN" | "UNLISTEN" | "UNLOGGED" | "UNTIL" | "UPDATE" | "USER" | "USING" | "VACUUM" | "VALID" | "VALIDATE" | "VALIDATOR" | "VALUE_P" | "VALUES" | "VARCHAR" | "VARIADIC" | "VARYING" | "VERBOSE" | "VERSION_P" | "VIEW" | "VIEWS" | "VOLATILE" | "WHEN" | "WHERE" | "WHITESPACE_P" | "WINDOW" | "WITH" | "WITHIN" | "WITHOUT" | "WORK" | "WRAPPER" | "WRITE" | "XML_P" | "XMLATTRIBUTES" | "XMLCONCAT" | "XMLELEMENT" | "XMLEXISTS" | "XMLFOREST" | "XMLNAMESPACES" | "XMLPARSE" | "XMLPI" | "XMLROOT" | "XMLSERIALIZE" | "XMLTABLE" | "YEAR_P" | "YES_P" | "ZONE" | "FORMAT_LA" | "NOT_LA" | "NULLS_LA" | "WITH_LA" | "WITHOUT_LA" | "MODE_TYPE_NAME" | "MODE_PLPGSQL_EXPR" | "MODE_PLPGSQL_ASSIGN1" | "MODE_PLPGSQL_ASSIGN2" | "MODE_PLPGSQL_ASSIGN3" | "UMINUS"; \ No newline at end of file diff --git a/__fixtures__/output/enums/ts/enabled/enums2int.ts b/__fixtures__/output/enums/ts/enabled/enums2int.ts new file mode 100644 index 00000000..1d32cdf4 --- /dev/null +++ b/__fixtures__/output/enums/ts/enabled/enums2int.ts @@ -0,0 +1,1079 @@ +/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export const enumToIntMap = { + OverridingKind: { + OVERRIDING_NOT_SET: 0, + OVERRIDING_USER_VALUE: 1, + OVERRIDING_SYSTEM_VALUE: 2 + }, + QuerySource: { + QSRC_ORIGINAL: 0, + QSRC_PARSER: 1, + QSRC_INSTEAD_RULE: 2, + QSRC_QUAL_INSTEAD_RULE: 3, + QSRC_NON_INSTEAD_RULE: 4 + }, + SortByDir: { + SORTBY_DEFAULT: 0, + SORTBY_ASC: 1, + SORTBY_DESC: 2, + SORTBY_USING: 3 + }, + SortByNulls: { + SORTBY_NULLS_DEFAULT: 0, + SORTBY_NULLS_FIRST: 1, + SORTBY_NULLS_LAST: 2 + }, + SetQuantifier: { + SET_QUANTIFIER_DEFAULT: 0, + SET_QUANTIFIER_ALL: 1, + SET_QUANTIFIER_DISTINCT: 2 + }, + A_Expr_Kind: { + AEXPR_OP: 0, + AEXPR_OP_ANY: 1, + AEXPR_OP_ALL: 2, + AEXPR_DISTINCT: 3, + AEXPR_NOT_DISTINCT: 4, + AEXPR_NULLIF: 5, + AEXPR_IN: 6, + AEXPR_LIKE: 7, + AEXPR_ILIKE: 8, + AEXPR_SIMILAR: 9, + AEXPR_BETWEEN: 10, + AEXPR_NOT_BETWEEN: 11, + AEXPR_BETWEEN_SYM: 12, + AEXPR_NOT_BETWEEN_SYM: 13 + }, + RoleSpecType: { + ROLESPEC_CSTRING: 0, + ROLESPEC_CURRENT_ROLE: 1, + ROLESPEC_CURRENT_USER: 2, + ROLESPEC_SESSION_USER: 3, + ROLESPEC_PUBLIC: 4 + }, + TableLikeOption: { + CREATE_TABLE_LIKE_COMMENTS: 0, + CREATE_TABLE_LIKE_COMPRESSION: 1, + CREATE_TABLE_LIKE_CONSTRAINTS: 2, + CREATE_TABLE_LIKE_DEFAULTS: 3, + CREATE_TABLE_LIKE_GENERATED: 4, + CREATE_TABLE_LIKE_IDENTITY: 5, + CREATE_TABLE_LIKE_INDEXES: 6, + CREATE_TABLE_LIKE_STATISTICS: 7, + CREATE_TABLE_LIKE_STORAGE: 8, + CREATE_TABLE_LIKE_ALL: 9 + }, + DefElemAction: { + DEFELEM_UNSPEC: 0, + DEFELEM_SET: 1, + DEFELEM_ADD: 2, + DEFELEM_DROP: 3 + }, + PartitionStrategy: { + PARTITION_STRATEGY_LIST: 0, + PARTITION_STRATEGY_RANGE: 1, + PARTITION_STRATEGY_HASH: 2 + }, + PartitionRangeDatumKind: { + PARTITION_RANGE_DATUM_MINVALUE: 0, + PARTITION_RANGE_DATUM_VALUE: 1, + PARTITION_RANGE_DATUM_MAXVALUE: 2 + }, + RTEKind: { + RTE_RELATION: 0, + RTE_SUBQUERY: 1, + RTE_JOIN: 2, + RTE_FUNCTION: 3, + RTE_TABLEFUNC: 4, + RTE_VALUES: 5, + RTE_CTE: 6, + RTE_NAMEDTUPLESTORE: 7, + RTE_RESULT: 8 + }, + WCOKind: { + WCO_VIEW_CHECK: 0, + WCO_RLS_INSERT_CHECK: 1, + WCO_RLS_UPDATE_CHECK: 2, + WCO_RLS_CONFLICT_CHECK: 3, + WCO_RLS_MERGE_UPDATE_CHECK: 4, + WCO_RLS_MERGE_DELETE_CHECK: 5 + }, + GroupingSetKind: { + GROUPING_SET_EMPTY: 0, + GROUPING_SET_SIMPLE: 1, + GROUPING_SET_ROLLUP: 2, + GROUPING_SET_CUBE: 3, + GROUPING_SET_SETS: 4 + }, + CTEMaterialize: { + CTEMaterializeDefault: 0, + CTEMaterializeAlways: 1, + CTEMaterializeNever: 2 + }, + SetOperation: { + SETOP_NONE: 0, + SETOP_UNION: 1, + SETOP_INTERSECT: 2, + SETOP_EXCEPT: 3 + }, + ObjectType: { + OBJECT_ACCESS_METHOD: 0, + OBJECT_AGGREGATE: 1, + OBJECT_AMOP: 2, + OBJECT_AMPROC: 3, + OBJECT_ATTRIBUTE: 4, + OBJECT_CAST: 5, + OBJECT_COLUMN: 6, + OBJECT_COLLATION: 7, + OBJECT_CONVERSION: 8, + OBJECT_DATABASE: 9, + OBJECT_DEFAULT: 10, + OBJECT_DEFACL: 11, + OBJECT_DOMAIN: 12, + OBJECT_DOMCONSTRAINT: 13, + OBJECT_EVENT_TRIGGER: 14, + OBJECT_EXTENSION: 15, + OBJECT_FDW: 16, + OBJECT_FOREIGN_SERVER: 17, + OBJECT_FOREIGN_TABLE: 18, + OBJECT_FUNCTION: 19, + OBJECT_INDEX: 20, + OBJECT_LANGUAGE: 21, + OBJECT_LARGEOBJECT: 22, + OBJECT_MATVIEW: 23, + OBJECT_OPCLASS: 24, + OBJECT_OPERATOR: 25, + OBJECT_OPFAMILY: 26, + OBJECT_PARAMETER_ACL: 27, + OBJECT_POLICY: 28, + OBJECT_PROCEDURE: 29, + OBJECT_PUBLICATION: 30, + OBJECT_PUBLICATION_NAMESPACE: 31, + OBJECT_PUBLICATION_REL: 32, + OBJECT_ROLE: 33, + OBJECT_ROUTINE: 34, + OBJECT_RULE: 35, + OBJECT_SCHEMA: 36, + OBJECT_SEQUENCE: 37, + OBJECT_SUBSCRIPTION: 38, + OBJECT_STATISTIC_EXT: 39, + OBJECT_TABCONSTRAINT: 40, + OBJECT_TABLE: 41, + OBJECT_TABLESPACE: 42, + OBJECT_TRANSFORM: 43, + OBJECT_TRIGGER: 44, + OBJECT_TSCONFIGURATION: 45, + OBJECT_TSDICTIONARY: 46, + OBJECT_TSPARSER: 47, + OBJECT_TSTEMPLATE: 48, + OBJECT_TYPE: 49, + OBJECT_USER_MAPPING: 50, + OBJECT_VIEW: 51 + }, + DropBehavior: { + DROP_RESTRICT: 0, + DROP_CASCADE: 1 + }, + AlterTableType: { + AT_AddColumn: 0, + AT_AddColumnToView: 1, + AT_ColumnDefault: 2, + AT_CookedColumnDefault: 3, + AT_DropNotNull: 4, + AT_SetNotNull: 5, + AT_DropExpression: 6, + AT_CheckNotNull: 7, + AT_SetStatistics: 8, + AT_SetOptions: 9, + AT_ResetOptions: 10, + AT_SetStorage: 11, + AT_SetCompression: 12, + AT_DropColumn: 13, + AT_AddIndex: 14, + AT_ReAddIndex: 15, + AT_AddConstraint: 16, + AT_ReAddConstraint: 17, + AT_ReAddDomainConstraint: 18, + AT_AlterConstraint: 19, + AT_ValidateConstraint: 20, + AT_AddIndexConstraint: 21, + AT_DropConstraint: 22, + AT_ReAddComment: 23, + AT_AlterColumnType: 24, + AT_AlterColumnGenericOptions: 25, + AT_ChangeOwner: 26, + AT_ClusterOn: 27, + AT_DropCluster: 28, + AT_SetLogged: 29, + AT_SetUnLogged: 30, + AT_DropOids: 31, + AT_SetAccessMethod: 32, + AT_SetTableSpace: 33, + AT_SetRelOptions: 34, + AT_ResetRelOptions: 35, + AT_ReplaceRelOptions: 36, + AT_EnableTrig: 37, + AT_EnableAlwaysTrig: 38, + AT_EnableReplicaTrig: 39, + AT_DisableTrig: 40, + AT_EnableTrigAll: 41, + AT_DisableTrigAll: 42, + AT_EnableTrigUser: 43, + AT_DisableTrigUser: 44, + AT_EnableRule: 45, + AT_EnableAlwaysRule: 46, + AT_EnableReplicaRule: 47, + AT_DisableRule: 48, + AT_AddInherit: 49, + AT_DropInherit: 50, + AT_AddOf: 51, + AT_DropOf: 52, + AT_ReplicaIdentity: 53, + AT_EnableRowSecurity: 54, + AT_DisableRowSecurity: 55, + AT_ForceRowSecurity: 56, + AT_NoForceRowSecurity: 57, + AT_GenericOptions: 58, + AT_AttachPartition: 59, + AT_DetachPartition: 60, + AT_DetachPartitionFinalize: 61, + AT_AddIdentity: 62, + AT_SetIdentity: 63, + AT_DropIdentity: 64, + AT_ReAddStatistics: 65 + }, + GrantTargetType: { + ACL_TARGET_OBJECT: 0, + ACL_TARGET_ALL_IN_SCHEMA: 1, + ACL_TARGET_DEFAULTS: 2 + }, + VariableSetKind: { + VAR_SET_VALUE: 0, + VAR_SET_DEFAULT: 1, + VAR_SET_CURRENT: 2, + VAR_SET_MULTI: 3, + VAR_RESET: 4, + VAR_RESET_ALL: 5 + }, + ConstrType: { + CONSTR_NULL: 0, + CONSTR_NOTNULL: 1, + CONSTR_DEFAULT: 2, + CONSTR_IDENTITY: 3, + CONSTR_GENERATED: 4, + CONSTR_CHECK: 5, + CONSTR_PRIMARY: 6, + CONSTR_UNIQUE: 7, + CONSTR_EXCLUSION: 8, + CONSTR_FOREIGN: 9, + CONSTR_ATTR_DEFERRABLE: 10, + CONSTR_ATTR_NOT_DEFERRABLE: 11, + CONSTR_ATTR_DEFERRED: 12, + CONSTR_ATTR_IMMEDIATE: 13 + }, + ImportForeignSchemaType: { + FDW_IMPORT_SCHEMA_ALL: 0, + FDW_IMPORT_SCHEMA_LIMIT_TO: 1, + FDW_IMPORT_SCHEMA_EXCEPT: 2 + }, + RoleStmtType: { + ROLESTMT_ROLE: 0, + ROLESTMT_USER: 1, + ROLESTMT_GROUP: 2 + }, + FetchDirection: { + FETCH_FORWARD: 0, + FETCH_BACKWARD: 1, + FETCH_ABSOLUTE: 2, + FETCH_RELATIVE: 3 + }, + FunctionParameterMode: { + FUNC_PARAM_IN: 0, + FUNC_PARAM_OUT: 1, + FUNC_PARAM_INOUT: 2, + FUNC_PARAM_VARIADIC: 3, + FUNC_PARAM_TABLE: 4, + FUNC_PARAM_DEFAULT: 5 + }, + TransactionStmtKind: { + TRANS_STMT_BEGIN: 0, + TRANS_STMT_START: 1, + TRANS_STMT_COMMIT: 2, + TRANS_STMT_ROLLBACK: 3, + TRANS_STMT_SAVEPOINT: 4, + TRANS_STMT_RELEASE: 5, + TRANS_STMT_ROLLBACK_TO: 6, + TRANS_STMT_PREPARE: 7, + TRANS_STMT_COMMIT_PREPARED: 8, + TRANS_STMT_ROLLBACK_PREPARED: 9 + }, + ViewCheckOption: { + NO_CHECK_OPTION: 0, + LOCAL_CHECK_OPTION: 1, + CASCADED_CHECK_OPTION: 2 + }, + DiscardMode: { + DISCARD_ALL: 0, + DISCARD_PLANS: 1, + DISCARD_SEQUENCES: 2, + DISCARD_TEMP: 3 + }, + ReindexObjectType: { + REINDEX_OBJECT_INDEX: 0, + REINDEX_OBJECT_TABLE: 1, + REINDEX_OBJECT_SCHEMA: 2, + REINDEX_OBJECT_SYSTEM: 3, + REINDEX_OBJECT_DATABASE: 4 + }, + AlterTSConfigType: { + ALTER_TSCONFIG_ADD_MAPPING: 0, + ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN: 1, + ALTER_TSCONFIG_REPLACE_DICT: 2, + ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN: 3, + ALTER_TSCONFIG_DROP_MAPPING: 4 + }, + PublicationObjSpecType: { + PUBLICATIONOBJ_TABLE: 0, + PUBLICATIONOBJ_TABLES_IN_SCHEMA: 1, + PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA: 2, + PUBLICATIONOBJ_CONTINUATION: 3 + }, + AlterPublicationAction: { + AP_AddObjects: 0, + AP_DropObjects: 1, + AP_SetObjects: 2 + }, + AlterSubscriptionType: { + ALTER_SUBSCRIPTION_OPTIONS: 0, + ALTER_SUBSCRIPTION_CONNECTION: 1, + ALTER_SUBSCRIPTION_SET_PUBLICATION: 2, + ALTER_SUBSCRIPTION_ADD_PUBLICATION: 3, + ALTER_SUBSCRIPTION_DROP_PUBLICATION: 4, + ALTER_SUBSCRIPTION_REFRESH: 5, + ALTER_SUBSCRIPTION_ENABLED: 6, + ALTER_SUBSCRIPTION_SKIP: 7 + }, + OnCommitAction: { + ONCOMMIT_NOOP: 0, + ONCOMMIT_PRESERVE_ROWS: 1, + ONCOMMIT_DELETE_ROWS: 2, + ONCOMMIT_DROP: 3 + }, + ParamKind: { + PARAM_EXTERN: 0, + PARAM_EXEC: 1, + PARAM_SUBLINK: 2, + PARAM_MULTIEXPR: 3 + }, + CoercionContext: { + COERCION_IMPLICIT: 0, + COERCION_ASSIGNMENT: 1, + COERCION_PLPGSQL: 2, + COERCION_EXPLICIT: 3 + }, + CoercionForm: { + COERCE_EXPLICIT_CALL: 0, + COERCE_EXPLICIT_CAST: 1, + COERCE_IMPLICIT_CAST: 2, + COERCE_SQL_SYNTAX: 3 + }, + BoolExprType: { + AND_EXPR: 0, + OR_EXPR: 1, + NOT_EXPR: 2 + }, + SubLinkType: { + EXISTS_SUBLINK: 0, + ALL_SUBLINK: 1, + ANY_SUBLINK: 2, + ROWCOMPARE_SUBLINK: 3, + EXPR_SUBLINK: 4, + MULTIEXPR_SUBLINK: 5, + ARRAY_SUBLINK: 6, + CTE_SUBLINK: 7 + }, + RowCompareType: { + ROWCOMPARE_LT: 0, + ROWCOMPARE_LE: 1, + ROWCOMPARE_EQ: 2, + ROWCOMPARE_GE: 3, + ROWCOMPARE_GT: 4, + ROWCOMPARE_NE: 5 + }, + MinMaxOp: { + IS_GREATEST: 0, + IS_LEAST: 1 + }, + SQLValueFunctionOp: { + SVFOP_CURRENT_DATE: 0, + SVFOP_CURRENT_TIME: 1, + SVFOP_CURRENT_TIME_N: 2, + SVFOP_CURRENT_TIMESTAMP: 3, + SVFOP_CURRENT_TIMESTAMP_N: 4, + SVFOP_LOCALTIME: 5, + SVFOP_LOCALTIME_N: 6, + SVFOP_LOCALTIMESTAMP: 7, + SVFOP_LOCALTIMESTAMP_N: 8, + SVFOP_CURRENT_ROLE: 9, + SVFOP_CURRENT_USER: 10, + SVFOP_USER: 11, + SVFOP_SESSION_USER: 12, + SVFOP_CURRENT_CATALOG: 13, + SVFOP_CURRENT_SCHEMA: 14 + }, + XmlExprOp: { + IS_XMLCONCAT: 0, + IS_XMLELEMENT: 1, + IS_XMLFOREST: 2, + IS_XMLPARSE: 3, + IS_XMLPI: 4, + IS_XMLROOT: 5, + IS_XMLSERIALIZE: 6, + IS_DOCUMENT: 7 + }, + XmlOptionType: { + XMLOPTION_DOCUMENT: 0, + XMLOPTION_CONTENT: 1 + }, + JsonEncoding: { + JS_ENC_DEFAULT: 0, + JS_ENC_UTF8: 1, + JS_ENC_UTF16: 2, + JS_ENC_UTF32: 3 + }, + JsonFormatType: { + JS_FORMAT_DEFAULT: 0, + JS_FORMAT_JSON: 1, + JS_FORMAT_JSONB: 2 + }, + JsonConstructorType: { + JSCTOR_JSON_OBJECT: 0, + JSCTOR_JSON_ARRAY: 1, + JSCTOR_JSON_OBJECTAGG: 2, + JSCTOR_JSON_ARRAYAGG: 3 + }, + JsonValueType: { + JS_TYPE_ANY: 0, + JS_TYPE_OBJECT: 1, + JS_TYPE_ARRAY: 2, + JS_TYPE_SCALAR: 3 + }, + NullTestType: { + IS_NULL: 0, + IS_NOT_NULL: 1 + }, + BoolTestType: { + IS_TRUE: 0, + IS_NOT_TRUE: 1, + IS_FALSE: 2, + IS_NOT_FALSE: 3, + IS_UNKNOWN: 4, + IS_NOT_UNKNOWN: 5 + }, + CmdType: { + CMD_UNKNOWN: 0, + CMD_SELECT: 1, + CMD_UPDATE: 2, + CMD_INSERT: 3, + CMD_DELETE: 4, + CMD_MERGE: 5, + CMD_UTILITY: 6, + CMD_NOTHING: 7 + }, + JoinType: { + JOIN_INNER: 0, + JOIN_LEFT: 1, + JOIN_FULL: 2, + JOIN_RIGHT: 3, + JOIN_SEMI: 4, + JOIN_ANTI: 5, + JOIN_RIGHT_ANTI: 6, + JOIN_UNIQUE_OUTER: 7, + JOIN_UNIQUE_INNER: 8 + }, + AggStrategy: { + AGG_PLAIN: 0, + AGG_SORTED: 1, + AGG_HASHED: 2, + AGG_MIXED: 3 + }, + AggSplit: { + AGGSPLIT_SIMPLE: 0, + AGGSPLIT_INITIAL_SERIAL: 1, + AGGSPLIT_FINAL_DESERIAL: 2 + }, + SetOpCmd: { + SETOPCMD_INTERSECT: 0, + SETOPCMD_INTERSECT_ALL: 1, + SETOPCMD_EXCEPT: 2, + SETOPCMD_EXCEPT_ALL: 3 + }, + SetOpStrategy: { + SETOP_SORTED: 0, + SETOP_HASHED: 1 + }, + OnConflictAction: { + ONCONFLICT_NONE: 0, + ONCONFLICT_NOTHING: 1, + ONCONFLICT_UPDATE: 2 + }, + LimitOption: { + LIMIT_OPTION_DEFAULT: 0, + LIMIT_OPTION_COUNT: 1, + LIMIT_OPTION_WITH_TIES: 2 + }, + LockClauseStrength: { + LCS_NONE: 0, + LCS_FORKEYSHARE: 1, + LCS_FORSHARE: 2, + LCS_FORNOKEYUPDATE: 3, + LCS_FORUPDATE: 4 + }, + LockWaitPolicy: { + LockWaitBlock: 0, + LockWaitSkip: 1, + LockWaitError: 2 + }, + LockTupleMode: { + LockTupleKeyShare: 0, + LockTupleShare: 1, + LockTupleNoKeyExclusive: 2, + LockTupleExclusive: 3 + }, + KeywordKind: { + NO_KEYWORD: 0, + UNRESERVED_KEYWORD: 1, + COL_NAME_KEYWORD: 2, + TYPE_FUNC_NAME_KEYWORD: 3, + RESERVED_KEYWORD: 4 + }, + Token: { + NUL: 0, + ASCII_36: 36, + ASCII_37: 37, + ASCII_40: 40, + ASCII_41: 41, + ASCII_42: 42, + ASCII_43: 43, + ASCII_44: 44, + ASCII_45: 45, + ASCII_46: 46, + ASCII_47: 47, + ASCII_58: 58, + ASCII_59: 59, + ASCII_60: 60, + ASCII_61: 61, + ASCII_62: 62, + ASCII_63: 63, + ASCII_91: 91, + ASCII_92: 92, + ASCII_93: 93, + ASCII_94: 94, + IDENT: 258, + UIDENT: 259, + FCONST: 260, + SCONST: 261, + USCONST: 262, + BCONST: 263, + XCONST: 264, + Op: 265, + ICONST: 266, + PARAM: 267, + TYPECAST: 268, + DOT_DOT: 269, + COLON_EQUALS: 270, + EQUALS_GREATER: 271, + LESS_EQUALS: 272, + GREATER_EQUALS: 273, + NOT_EQUALS: 274, + SQL_COMMENT: 275, + C_COMMENT: 276, + ABORT_P: 277, + ABSENT: 278, + ABSOLUTE_P: 279, + ACCESS: 280, + ACTION: 281, + ADD_P: 282, + ADMIN: 283, + AFTER: 284, + AGGREGATE: 285, + ALL: 286, + ALSO: 287, + ALTER: 288, + ALWAYS: 289, + ANALYSE: 290, + ANALYZE: 291, + AND: 292, + ANY: 293, + ARRAY: 294, + AS: 295, + ASC: 296, + ASENSITIVE: 297, + ASSERTION: 298, + ASSIGNMENT: 299, + ASYMMETRIC: 300, + ATOMIC: 301, + AT: 302, + ATTACH: 303, + ATTRIBUTE: 304, + AUTHORIZATION: 305, + BACKWARD: 306, + BEFORE: 307, + BEGIN_P: 308, + BETWEEN: 309, + BIGINT: 310, + BINARY: 311, + BIT: 312, + BOOLEAN_P: 313, + BOTH: 314, + BREADTH: 315, + BY: 316, + CACHE: 317, + CALL: 318, + CALLED: 319, + CASCADE: 320, + CASCADED: 321, + CASE: 322, + CAST: 323, + CATALOG_P: 324, + CHAIN: 325, + CHAR_P: 326, + CHARACTER: 327, + CHARACTERISTICS: 328, + CHECK: 329, + CHECKPOINT: 330, + CLASS: 331, + CLOSE: 332, + CLUSTER: 333, + COALESCE: 334, + COLLATE: 335, + COLLATION: 336, + COLUMN: 337, + COLUMNS: 338, + COMMENT: 339, + COMMENTS: 340, + COMMIT: 341, + COMMITTED: 342, + COMPRESSION: 343, + CONCURRENTLY: 344, + CONFIGURATION: 345, + CONFLICT: 346, + CONNECTION: 347, + CONSTRAINT: 348, + CONSTRAINTS: 349, + CONTENT_P: 350, + CONTINUE_P: 351, + CONVERSION_P: 352, + COPY: 353, + COST: 354, + CREATE: 355, + CROSS: 356, + CSV: 357, + CUBE: 358, + CURRENT_P: 359, + CURRENT_CATALOG: 360, + CURRENT_DATE: 361, + CURRENT_ROLE: 362, + CURRENT_SCHEMA: 363, + CURRENT_TIME: 364, + CURRENT_TIMESTAMP: 365, + CURRENT_USER: 366, + CURSOR: 367, + CYCLE: 368, + DATA_P: 369, + DATABASE: 370, + DAY_P: 371, + DEALLOCATE: 372, + DEC: 373, + DECIMAL_P: 374, + DECLARE: 375, + DEFAULT: 376, + DEFAULTS: 377, + DEFERRABLE: 378, + DEFERRED: 379, + DEFINER: 380, + DELETE_P: 381, + DELIMITER: 382, + DELIMITERS: 383, + DEPENDS: 384, + DEPTH: 385, + DESC: 386, + DETACH: 387, + DICTIONARY: 388, + DISABLE_P: 389, + DISCARD: 390, + DISTINCT: 391, + DO: 392, + DOCUMENT_P: 393, + DOMAIN_P: 394, + DOUBLE_P: 395, + DROP: 396, + EACH: 397, + ELSE: 398, + ENABLE_P: 399, + ENCODING: 400, + ENCRYPTED: 401, + END_P: 402, + ENUM_P: 403, + ESCAPE: 404, + EVENT: 405, + EXCEPT: 406, + EXCLUDE: 407, + EXCLUDING: 408, + EXCLUSIVE: 409, + EXECUTE: 410, + EXISTS: 411, + EXPLAIN: 412, + EXPRESSION: 413, + EXTENSION: 414, + EXTERNAL: 415, + EXTRACT: 416, + FALSE_P: 417, + FAMILY: 418, + FETCH: 419, + FILTER: 420, + FINALIZE: 421, + FIRST_P: 422, + FLOAT_P: 423, + FOLLOWING: 424, + FOR: 425, + FORCE: 426, + FOREIGN: 427, + FORMAT: 428, + FORWARD: 429, + FREEZE: 430, + FROM: 431, + FULL: 432, + FUNCTION: 433, + FUNCTIONS: 434, + GENERATED: 435, + GLOBAL: 436, + GRANT: 437, + GRANTED: 438, + GREATEST: 439, + GROUP_P: 440, + GROUPING: 441, + GROUPS: 442, + HANDLER: 443, + HAVING: 444, + HEADER_P: 445, + HOLD: 446, + HOUR_P: 447, + IDENTITY_P: 448, + IF_P: 449, + ILIKE: 450, + IMMEDIATE: 451, + IMMUTABLE: 452, + IMPLICIT_P: 453, + IMPORT_P: 454, + IN_P: 455, + INCLUDE: 456, + INCLUDING: 457, + INCREMENT: 458, + INDENT: 459, + INDEX: 460, + INDEXES: 461, + INHERIT: 462, + INHERITS: 463, + INITIALLY: 464, + INLINE_P: 465, + INNER_P: 466, + INOUT: 467, + INPUT_P: 468, + INSENSITIVE: 469, + INSERT: 470, + INSTEAD: 471, + INT_P: 472, + INTEGER: 473, + INTERSECT: 474, + INTERVAL: 475, + INTO: 476, + INVOKER: 477, + IS: 478, + ISNULL: 479, + ISOLATION: 480, + JOIN: 481, + JSON: 482, + JSON_ARRAY: 483, + JSON_ARRAYAGG: 484, + JSON_OBJECT: 485, + JSON_OBJECTAGG: 486, + KEY: 487, + KEYS: 488, + LABEL: 489, + LANGUAGE: 490, + LARGE_P: 491, + LAST_P: 492, + LATERAL_P: 493, + LEADING: 494, + LEAKPROOF: 495, + LEAST: 496, + LEFT: 497, + LEVEL: 498, + LIKE: 499, + LIMIT: 500, + LISTEN: 501, + LOAD: 502, + LOCAL: 503, + LOCALTIME: 504, + LOCALTIMESTAMP: 505, + LOCATION: 506, + LOCK_P: 507, + LOCKED: 508, + LOGGED: 509, + MAPPING: 510, + MATCH: 511, + MATCHED: 512, + MATERIALIZED: 513, + MAXVALUE: 514, + MERGE: 515, + METHOD: 516, + MINUTE_P: 517, + MINVALUE: 518, + MODE: 519, + MONTH_P: 520, + MOVE: 521, + NAME_P: 522, + NAMES: 523, + NATIONAL: 524, + NATURAL: 525, + NCHAR: 526, + NEW: 527, + NEXT: 528, + NFC: 529, + NFD: 530, + NFKC: 531, + NFKD: 532, + NO: 533, + NONE: 534, + NORMALIZE: 535, + NORMALIZED: 536, + NOT: 537, + NOTHING: 538, + NOTIFY: 539, + NOTNULL: 540, + NOWAIT: 541, + NULL_P: 542, + NULLIF: 543, + NULLS_P: 544, + NUMERIC: 545, + OBJECT_P: 546, + OF: 547, + OFF: 548, + OFFSET: 549, + OIDS: 550, + OLD: 551, + ON: 552, + ONLY: 553, + OPERATOR: 554, + OPTION: 555, + OPTIONS: 556, + OR: 557, + ORDER: 558, + ORDINALITY: 559, + OTHERS: 560, + OUT_P: 561, + OUTER_P: 562, + OVER: 563, + OVERLAPS: 564, + OVERLAY: 565, + OVERRIDING: 566, + OWNED: 567, + OWNER: 568, + PARALLEL: 569, + PARAMETER: 570, + PARSER: 571, + PARTIAL: 572, + PARTITION: 573, + PASSING: 574, + PASSWORD: 575, + PLACING: 576, + PLANS: 577, + POLICY: 578, + POSITION: 579, + PRECEDING: 580, + PRECISION: 581, + PRESERVE: 582, + PREPARE: 583, + PREPARED: 584, + PRIMARY: 585, + PRIOR: 586, + PRIVILEGES: 587, + PROCEDURAL: 588, + PROCEDURE: 589, + PROCEDURES: 590, + PROGRAM: 591, + PUBLICATION: 592, + QUOTE: 593, + RANGE: 594, + READ: 595, + REAL: 596, + REASSIGN: 597, + RECHECK: 598, + RECURSIVE: 599, + REF_P: 600, + REFERENCES: 601, + REFERENCING: 602, + REFRESH: 603, + REINDEX: 604, + RELATIVE_P: 605, + RELEASE: 606, + RENAME: 607, + REPEATABLE: 608, + REPLACE: 609, + REPLICA: 610, + RESET: 611, + RESTART: 612, + RESTRICT: 613, + RETURN: 614, + RETURNING: 615, + RETURNS: 616, + REVOKE: 617, + RIGHT: 618, + ROLE: 619, + ROLLBACK: 620, + ROLLUP: 621, + ROUTINE: 622, + ROUTINES: 623, + ROW: 624, + ROWS: 625, + RULE: 626, + SAVEPOINT: 627, + SCALAR: 628, + SCHEMA: 629, + SCHEMAS: 630, + SCROLL: 631, + SEARCH: 632, + SECOND_P: 633, + SECURITY: 634, + SELECT: 635, + SEQUENCE: 636, + SEQUENCES: 637, + SERIALIZABLE: 638, + SERVER: 639, + SESSION: 640, + SESSION_USER: 641, + SET: 642, + SETS: 643, + SETOF: 644, + SHARE: 645, + SHOW: 646, + SIMILAR: 647, + SIMPLE: 648, + SKIP: 649, + SMALLINT: 650, + SNAPSHOT: 651, + SOME: 652, + SQL_P: 653, + STABLE: 654, + STANDALONE_P: 655, + START: 656, + STATEMENT: 657, + STATISTICS: 658, + STDIN: 659, + STDOUT: 660, + STORAGE: 661, + STORED: 662, + STRICT_P: 663, + STRIP_P: 664, + SUBSCRIPTION: 665, + SUBSTRING: 666, + SUPPORT: 667, + SYMMETRIC: 668, + SYSID: 669, + SYSTEM_P: 670, + SYSTEM_USER: 671, + TABLE: 672, + TABLES: 673, + TABLESAMPLE: 674, + TABLESPACE: 675, + TEMP: 676, + TEMPLATE: 677, + TEMPORARY: 678, + TEXT_P: 679, + THEN: 680, + TIES: 681, + TIME: 682, + TIMESTAMP: 683, + TO: 684, + TRAILING: 685, + TRANSACTION: 686, + TRANSFORM: 687, + TREAT: 688, + TRIGGER: 689, + TRIM: 690, + TRUE_P: 691, + TRUNCATE: 692, + TRUSTED: 693, + TYPE_P: 694, + TYPES_P: 695, + UESCAPE: 696, + UNBOUNDED: 697, + UNCOMMITTED: 698, + UNENCRYPTED: 699, + UNION: 700, + UNIQUE: 701, + UNKNOWN: 702, + UNLISTEN: 703, + UNLOGGED: 704, + UNTIL: 705, + UPDATE: 706, + USER: 707, + USING: 708, + VACUUM: 709, + VALID: 710, + VALIDATE: 711, + VALIDATOR: 712, + VALUE_P: 713, + VALUES: 714, + VARCHAR: 715, + VARIADIC: 716, + VARYING: 717, + VERBOSE: 718, + VERSION_P: 719, + VIEW: 720, + VIEWS: 721, + VOLATILE: 722, + WHEN: 723, + WHERE: 724, + WHITESPACE_P: 725, + WINDOW: 726, + WITH: 727, + WITHIN: 728, + WITHOUT: 729, + WORK: 730, + WRAPPER: 731, + WRITE: 732, + XML_P: 733, + XMLATTRIBUTES: 734, + XMLCONCAT: 735, + XMLELEMENT: 736, + XMLEXISTS: 737, + XMLFOREST: 738, + XMLNAMESPACES: 739, + XMLPARSE: 740, + XMLPI: 741, + XMLROOT: 742, + XMLSERIALIZE: 743, + XMLTABLE: 744, + YEAR_P: 745, + YES_P: 746, + ZONE: 747, + FORMAT_LA: 748, + NOT_LA: 749, + NULLS_LA: 750, + WITH_LA: 751, + WITHOUT_LA: 752, + MODE_TYPE_NAME: 753, + MODE_PLPGSQL_EXPR: 754, + MODE_PLPGSQL_ASSIGN1: 755, + MODE_PLPGSQL_ASSIGN2: 756, + MODE_PLPGSQL_ASSIGN3: 757, + UMINUS: 758 + } +}; +export type EnumToIntMap = typeof enumToIntMap; \ No newline at end of file diff --git a/__fixtures__/output/enums/ts/enabled/enums2str.ts b/__fixtures__/output/enums/ts/enabled/enums2str.ts new file mode 100644 index 00000000..c4a88f26 --- /dev/null +++ b/__fixtures__/output/enums/ts/enabled/enums2str.ts @@ -0,0 +1,1079 @@ +/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export const enumToStrMap = { + OverridingKind: { + "0": 'OVERRIDING_NOT_SET', + "1": 'OVERRIDING_USER_VALUE', + "2": 'OVERRIDING_SYSTEM_VALUE' + }, + QuerySource: { + "0": 'QSRC_ORIGINAL', + "1": 'QSRC_PARSER', + "2": 'QSRC_INSTEAD_RULE', + "3": 'QSRC_QUAL_INSTEAD_RULE', + "4": 'QSRC_NON_INSTEAD_RULE' + }, + SortByDir: { + "0": 'SORTBY_DEFAULT', + "1": 'SORTBY_ASC', + "2": 'SORTBY_DESC', + "3": 'SORTBY_USING' + }, + SortByNulls: { + "0": 'SORTBY_NULLS_DEFAULT', + "1": 'SORTBY_NULLS_FIRST', + "2": 'SORTBY_NULLS_LAST' + }, + SetQuantifier: { + "0": 'SET_QUANTIFIER_DEFAULT', + "1": 'SET_QUANTIFIER_ALL', + "2": 'SET_QUANTIFIER_DISTINCT' + }, + A_Expr_Kind: { + "0": 'AEXPR_OP', + "1": 'AEXPR_OP_ANY', + "2": 'AEXPR_OP_ALL', + "3": 'AEXPR_DISTINCT', + "4": 'AEXPR_NOT_DISTINCT', + "5": 'AEXPR_NULLIF', + "6": 'AEXPR_IN', + "7": 'AEXPR_LIKE', + "8": 'AEXPR_ILIKE', + "9": 'AEXPR_SIMILAR', + "10": 'AEXPR_BETWEEN', + "11": 'AEXPR_NOT_BETWEEN', + "12": 'AEXPR_BETWEEN_SYM', + "13": 'AEXPR_NOT_BETWEEN_SYM' + }, + RoleSpecType: { + "0": 'ROLESPEC_CSTRING', + "1": 'ROLESPEC_CURRENT_ROLE', + "2": 'ROLESPEC_CURRENT_USER', + "3": 'ROLESPEC_SESSION_USER', + "4": 'ROLESPEC_PUBLIC' + }, + TableLikeOption: { + "0": 'CREATE_TABLE_LIKE_COMMENTS', + "1": 'CREATE_TABLE_LIKE_COMPRESSION', + "2": 'CREATE_TABLE_LIKE_CONSTRAINTS', + "3": 'CREATE_TABLE_LIKE_DEFAULTS', + "4": 'CREATE_TABLE_LIKE_GENERATED', + "5": 'CREATE_TABLE_LIKE_IDENTITY', + "6": 'CREATE_TABLE_LIKE_INDEXES', + "7": 'CREATE_TABLE_LIKE_STATISTICS', + "8": 'CREATE_TABLE_LIKE_STORAGE', + "9": 'CREATE_TABLE_LIKE_ALL' + }, + DefElemAction: { + "0": 'DEFELEM_UNSPEC', + "1": 'DEFELEM_SET', + "2": 'DEFELEM_ADD', + "3": 'DEFELEM_DROP' + }, + PartitionStrategy: { + "0": 'PARTITION_STRATEGY_LIST', + "1": 'PARTITION_STRATEGY_RANGE', + "2": 'PARTITION_STRATEGY_HASH' + }, + PartitionRangeDatumKind: { + "0": 'PARTITION_RANGE_DATUM_MINVALUE', + "1": 'PARTITION_RANGE_DATUM_VALUE', + "2": 'PARTITION_RANGE_DATUM_MAXVALUE' + }, + RTEKind: { + "0": 'RTE_RELATION', + "1": 'RTE_SUBQUERY', + "2": 'RTE_JOIN', + "3": 'RTE_FUNCTION', + "4": 'RTE_TABLEFUNC', + "5": 'RTE_VALUES', + "6": 'RTE_CTE', + "7": 'RTE_NAMEDTUPLESTORE', + "8": 'RTE_RESULT' + }, + WCOKind: { + "0": 'WCO_VIEW_CHECK', + "1": 'WCO_RLS_INSERT_CHECK', + "2": 'WCO_RLS_UPDATE_CHECK', + "3": 'WCO_RLS_CONFLICT_CHECK', + "4": 'WCO_RLS_MERGE_UPDATE_CHECK', + "5": 'WCO_RLS_MERGE_DELETE_CHECK' + }, + GroupingSetKind: { + "0": 'GROUPING_SET_EMPTY', + "1": 'GROUPING_SET_SIMPLE', + "2": 'GROUPING_SET_ROLLUP', + "3": 'GROUPING_SET_CUBE', + "4": 'GROUPING_SET_SETS' + }, + CTEMaterialize: { + "0": 'CTEMaterializeDefault', + "1": 'CTEMaterializeAlways', + "2": 'CTEMaterializeNever' + }, + SetOperation: { + "0": 'SETOP_NONE', + "1": 'SETOP_UNION', + "2": 'SETOP_INTERSECT', + "3": 'SETOP_EXCEPT' + }, + ObjectType: { + "0": 'OBJECT_ACCESS_METHOD', + "1": 'OBJECT_AGGREGATE', + "2": 'OBJECT_AMOP', + "3": 'OBJECT_AMPROC', + "4": 'OBJECT_ATTRIBUTE', + "5": 'OBJECT_CAST', + "6": 'OBJECT_COLUMN', + "7": 'OBJECT_COLLATION', + "8": 'OBJECT_CONVERSION', + "9": 'OBJECT_DATABASE', + "10": 'OBJECT_DEFAULT', + "11": 'OBJECT_DEFACL', + "12": 'OBJECT_DOMAIN', + "13": 'OBJECT_DOMCONSTRAINT', + "14": 'OBJECT_EVENT_TRIGGER', + "15": 'OBJECT_EXTENSION', + "16": 'OBJECT_FDW', + "17": 'OBJECT_FOREIGN_SERVER', + "18": 'OBJECT_FOREIGN_TABLE', + "19": 'OBJECT_FUNCTION', + "20": 'OBJECT_INDEX', + "21": 'OBJECT_LANGUAGE', + "22": 'OBJECT_LARGEOBJECT', + "23": 'OBJECT_MATVIEW', + "24": 'OBJECT_OPCLASS', + "25": 'OBJECT_OPERATOR', + "26": 'OBJECT_OPFAMILY', + "27": 'OBJECT_PARAMETER_ACL', + "28": 'OBJECT_POLICY', + "29": 'OBJECT_PROCEDURE', + "30": 'OBJECT_PUBLICATION', + "31": 'OBJECT_PUBLICATION_NAMESPACE', + "32": 'OBJECT_PUBLICATION_REL', + "33": 'OBJECT_ROLE', + "34": 'OBJECT_ROUTINE', + "35": 'OBJECT_RULE', + "36": 'OBJECT_SCHEMA', + "37": 'OBJECT_SEQUENCE', + "38": 'OBJECT_SUBSCRIPTION', + "39": 'OBJECT_STATISTIC_EXT', + "40": 'OBJECT_TABCONSTRAINT', + "41": 'OBJECT_TABLE', + "42": 'OBJECT_TABLESPACE', + "43": 'OBJECT_TRANSFORM', + "44": 'OBJECT_TRIGGER', + "45": 'OBJECT_TSCONFIGURATION', + "46": 'OBJECT_TSDICTIONARY', + "47": 'OBJECT_TSPARSER', + "48": 'OBJECT_TSTEMPLATE', + "49": 'OBJECT_TYPE', + "50": 'OBJECT_USER_MAPPING', + "51": 'OBJECT_VIEW' + }, + DropBehavior: { + "0": 'DROP_RESTRICT', + "1": 'DROP_CASCADE' + }, + AlterTableType: { + "0": 'AT_AddColumn', + "1": 'AT_AddColumnToView', + "2": 'AT_ColumnDefault', + "3": 'AT_CookedColumnDefault', + "4": 'AT_DropNotNull', + "5": 'AT_SetNotNull', + "6": 'AT_DropExpression', + "7": 'AT_CheckNotNull', + "8": 'AT_SetStatistics', + "9": 'AT_SetOptions', + "10": 'AT_ResetOptions', + "11": 'AT_SetStorage', + "12": 'AT_SetCompression', + "13": 'AT_DropColumn', + "14": 'AT_AddIndex', + "15": 'AT_ReAddIndex', + "16": 'AT_AddConstraint', + "17": 'AT_ReAddConstraint', + "18": 'AT_ReAddDomainConstraint', + "19": 'AT_AlterConstraint', + "20": 'AT_ValidateConstraint', + "21": 'AT_AddIndexConstraint', + "22": 'AT_DropConstraint', + "23": 'AT_ReAddComment', + "24": 'AT_AlterColumnType', + "25": 'AT_AlterColumnGenericOptions', + "26": 'AT_ChangeOwner', + "27": 'AT_ClusterOn', + "28": 'AT_DropCluster', + "29": 'AT_SetLogged', + "30": 'AT_SetUnLogged', + "31": 'AT_DropOids', + "32": 'AT_SetAccessMethod', + "33": 'AT_SetTableSpace', + "34": 'AT_SetRelOptions', + "35": 'AT_ResetRelOptions', + "36": 'AT_ReplaceRelOptions', + "37": 'AT_EnableTrig', + "38": 'AT_EnableAlwaysTrig', + "39": 'AT_EnableReplicaTrig', + "40": 'AT_DisableTrig', + "41": 'AT_EnableTrigAll', + "42": 'AT_DisableTrigAll', + "43": 'AT_EnableTrigUser', + "44": 'AT_DisableTrigUser', + "45": 'AT_EnableRule', + "46": 'AT_EnableAlwaysRule', + "47": 'AT_EnableReplicaRule', + "48": 'AT_DisableRule', + "49": 'AT_AddInherit', + "50": 'AT_DropInherit', + "51": 'AT_AddOf', + "52": 'AT_DropOf', + "53": 'AT_ReplicaIdentity', + "54": 'AT_EnableRowSecurity', + "55": 'AT_DisableRowSecurity', + "56": 'AT_ForceRowSecurity', + "57": 'AT_NoForceRowSecurity', + "58": 'AT_GenericOptions', + "59": 'AT_AttachPartition', + "60": 'AT_DetachPartition', + "61": 'AT_DetachPartitionFinalize', + "62": 'AT_AddIdentity', + "63": 'AT_SetIdentity', + "64": 'AT_DropIdentity', + "65": 'AT_ReAddStatistics' + }, + GrantTargetType: { + "0": 'ACL_TARGET_OBJECT', + "1": 'ACL_TARGET_ALL_IN_SCHEMA', + "2": 'ACL_TARGET_DEFAULTS' + }, + VariableSetKind: { + "0": 'VAR_SET_VALUE', + "1": 'VAR_SET_DEFAULT', + "2": 'VAR_SET_CURRENT', + "3": 'VAR_SET_MULTI', + "4": 'VAR_RESET', + "5": 'VAR_RESET_ALL' + }, + ConstrType: { + "0": 'CONSTR_NULL', + "1": 'CONSTR_NOTNULL', + "2": 'CONSTR_DEFAULT', + "3": 'CONSTR_IDENTITY', + "4": 'CONSTR_GENERATED', + "5": 'CONSTR_CHECK', + "6": 'CONSTR_PRIMARY', + "7": 'CONSTR_UNIQUE', + "8": 'CONSTR_EXCLUSION', + "9": 'CONSTR_FOREIGN', + "10": 'CONSTR_ATTR_DEFERRABLE', + "11": 'CONSTR_ATTR_NOT_DEFERRABLE', + "12": 'CONSTR_ATTR_DEFERRED', + "13": 'CONSTR_ATTR_IMMEDIATE' + }, + ImportForeignSchemaType: { + "0": 'FDW_IMPORT_SCHEMA_ALL', + "1": 'FDW_IMPORT_SCHEMA_LIMIT_TO', + "2": 'FDW_IMPORT_SCHEMA_EXCEPT' + }, + RoleStmtType: { + "0": 'ROLESTMT_ROLE', + "1": 'ROLESTMT_USER', + "2": 'ROLESTMT_GROUP' + }, + FetchDirection: { + "0": 'FETCH_FORWARD', + "1": 'FETCH_BACKWARD', + "2": 'FETCH_ABSOLUTE', + "3": 'FETCH_RELATIVE' + }, + FunctionParameterMode: { + "0": 'FUNC_PARAM_IN', + "1": 'FUNC_PARAM_OUT', + "2": 'FUNC_PARAM_INOUT', + "3": 'FUNC_PARAM_VARIADIC', + "4": 'FUNC_PARAM_TABLE', + "5": 'FUNC_PARAM_DEFAULT' + }, + TransactionStmtKind: { + "0": 'TRANS_STMT_BEGIN', + "1": 'TRANS_STMT_START', + "2": 'TRANS_STMT_COMMIT', + "3": 'TRANS_STMT_ROLLBACK', + "4": 'TRANS_STMT_SAVEPOINT', + "5": 'TRANS_STMT_RELEASE', + "6": 'TRANS_STMT_ROLLBACK_TO', + "7": 'TRANS_STMT_PREPARE', + "8": 'TRANS_STMT_COMMIT_PREPARED', + "9": 'TRANS_STMT_ROLLBACK_PREPARED' + }, + ViewCheckOption: { + "0": 'NO_CHECK_OPTION', + "1": 'LOCAL_CHECK_OPTION', + "2": 'CASCADED_CHECK_OPTION' + }, + DiscardMode: { + "0": 'DISCARD_ALL', + "1": 'DISCARD_PLANS', + "2": 'DISCARD_SEQUENCES', + "3": 'DISCARD_TEMP' + }, + ReindexObjectType: { + "0": 'REINDEX_OBJECT_INDEX', + "1": 'REINDEX_OBJECT_TABLE', + "2": 'REINDEX_OBJECT_SCHEMA', + "3": 'REINDEX_OBJECT_SYSTEM', + "4": 'REINDEX_OBJECT_DATABASE' + }, + AlterTSConfigType: { + "0": 'ALTER_TSCONFIG_ADD_MAPPING', + "1": 'ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN', + "2": 'ALTER_TSCONFIG_REPLACE_DICT', + "3": 'ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN', + "4": 'ALTER_TSCONFIG_DROP_MAPPING' + }, + PublicationObjSpecType: { + "0": 'PUBLICATIONOBJ_TABLE', + "1": 'PUBLICATIONOBJ_TABLES_IN_SCHEMA', + "2": 'PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA', + "3": 'PUBLICATIONOBJ_CONTINUATION' + }, + AlterPublicationAction: { + "0": 'AP_AddObjects', + "1": 'AP_DropObjects', + "2": 'AP_SetObjects' + }, + AlterSubscriptionType: { + "0": 'ALTER_SUBSCRIPTION_OPTIONS', + "1": 'ALTER_SUBSCRIPTION_CONNECTION', + "2": 'ALTER_SUBSCRIPTION_SET_PUBLICATION', + "3": 'ALTER_SUBSCRIPTION_ADD_PUBLICATION', + "4": 'ALTER_SUBSCRIPTION_DROP_PUBLICATION', + "5": 'ALTER_SUBSCRIPTION_REFRESH', + "6": 'ALTER_SUBSCRIPTION_ENABLED', + "7": 'ALTER_SUBSCRIPTION_SKIP' + }, + OnCommitAction: { + "0": 'ONCOMMIT_NOOP', + "1": 'ONCOMMIT_PRESERVE_ROWS', + "2": 'ONCOMMIT_DELETE_ROWS', + "3": 'ONCOMMIT_DROP' + }, + ParamKind: { + "0": 'PARAM_EXTERN', + "1": 'PARAM_EXEC', + "2": 'PARAM_SUBLINK', + "3": 'PARAM_MULTIEXPR' + }, + CoercionContext: { + "0": 'COERCION_IMPLICIT', + "1": 'COERCION_ASSIGNMENT', + "2": 'COERCION_PLPGSQL', + "3": 'COERCION_EXPLICIT' + }, + CoercionForm: { + "0": 'COERCE_EXPLICIT_CALL', + "1": 'COERCE_EXPLICIT_CAST', + "2": 'COERCE_IMPLICIT_CAST', + "3": 'COERCE_SQL_SYNTAX' + }, + BoolExprType: { + "0": 'AND_EXPR', + "1": 'OR_EXPR', + "2": 'NOT_EXPR' + }, + SubLinkType: { + "0": 'EXISTS_SUBLINK', + "1": 'ALL_SUBLINK', + "2": 'ANY_SUBLINK', + "3": 'ROWCOMPARE_SUBLINK', + "4": 'EXPR_SUBLINK', + "5": 'MULTIEXPR_SUBLINK', + "6": 'ARRAY_SUBLINK', + "7": 'CTE_SUBLINK' + }, + RowCompareType: { + "0": 'ROWCOMPARE_LT', + "1": 'ROWCOMPARE_LE', + "2": 'ROWCOMPARE_EQ', + "3": 'ROWCOMPARE_GE', + "4": 'ROWCOMPARE_GT', + "5": 'ROWCOMPARE_NE' + }, + MinMaxOp: { + "0": 'IS_GREATEST', + "1": 'IS_LEAST' + }, + SQLValueFunctionOp: { + "0": 'SVFOP_CURRENT_DATE', + "1": 'SVFOP_CURRENT_TIME', + "2": 'SVFOP_CURRENT_TIME_N', + "3": 'SVFOP_CURRENT_TIMESTAMP', + "4": 'SVFOP_CURRENT_TIMESTAMP_N', + "5": 'SVFOP_LOCALTIME', + "6": 'SVFOP_LOCALTIME_N', + "7": 'SVFOP_LOCALTIMESTAMP', + "8": 'SVFOP_LOCALTIMESTAMP_N', + "9": 'SVFOP_CURRENT_ROLE', + "10": 'SVFOP_CURRENT_USER', + "11": 'SVFOP_USER', + "12": 'SVFOP_SESSION_USER', + "13": 'SVFOP_CURRENT_CATALOG', + "14": 'SVFOP_CURRENT_SCHEMA' + }, + XmlExprOp: { + "0": 'IS_XMLCONCAT', + "1": 'IS_XMLELEMENT', + "2": 'IS_XMLFOREST', + "3": 'IS_XMLPARSE', + "4": 'IS_XMLPI', + "5": 'IS_XMLROOT', + "6": 'IS_XMLSERIALIZE', + "7": 'IS_DOCUMENT' + }, + XmlOptionType: { + "0": 'XMLOPTION_DOCUMENT', + "1": 'XMLOPTION_CONTENT' + }, + JsonEncoding: { + "0": 'JS_ENC_DEFAULT', + "1": 'JS_ENC_UTF8', + "2": 'JS_ENC_UTF16', + "3": 'JS_ENC_UTF32' + }, + JsonFormatType: { + "0": 'JS_FORMAT_DEFAULT', + "1": 'JS_FORMAT_JSON', + "2": 'JS_FORMAT_JSONB' + }, + JsonConstructorType: { + "0": 'JSCTOR_JSON_OBJECT', + "1": 'JSCTOR_JSON_ARRAY', + "2": 'JSCTOR_JSON_OBJECTAGG', + "3": 'JSCTOR_JSON_ARRAYAGG' + }, + JsonValueType: { + "0": 'JS_TYPE_ANY', + "1": 'JS_TYPE_OBJECT', + "2": 'JS_TYPE_ARRAY', + "3": 'JS_TYPE_SCALAR' + }, + NullTestType: { + "0": 'IS_NULL', + "1": 'IS_NOT_NULL' + }, + BoolTestType: { + "0": 'IS_TRUE', + "1": 'IS_NOT_TRUE', + "2": 'IS_FALSE', + "3": 'IS_NOT_FALSE', + "4": 'IS_UNKNOWN', + "5": 'IS_NOT_UNKNOWN' + }, + CmdType: { + "0": 'CMD_UNKNOWN', + "1": 'CMD_SELECT', + "2": 'CMD_UPDATE', + "3": 'CMD_INSERT', + "4": 'CMD_DELETE', + "5": 'CMD_MERGE', + "6": 'CMD_UTILITY', + "7": 'CMD_NOTHING' + }, + JoinType: { + "0": 'JOIN_INNER', + "1": 'JOIN_LEFT', + "2": 'JOIN_FULL', + "3": 'JOIN_RIGHT', + "4": 'JOIN_SEMI', + "5": 'JOIN_ANTI', + "6": 'JOIN_RIGHT_ANTI', + "7": 'JOIN_UNIQUE_OUTER', + "8": 'JOIN_UNIQUE_INNER' + }, + AggStrategy: { + "0": 'AGG_PLAIN', + "1": 'AGG_SORTED', + "2": 'AGG_HASHED', + "3": 'AGG_MIXED' + }, + AggSplit: { + "0": 'AGGSPLIT_SIMPLE', + "1": 'AGGSPLIT_INITIAL_SERIAL', + "2": 'AGGSPLIT_FINAL_DESERIAL' + }, + SetOpCmd: { + "0": 'SETOPCMD_INTERSECT', + "1": 'SETOPCMD_INTERSECT_ALL', + "2": 'SETOPCMD_EXCEPT', + "3": 'SETOPCMD_EXCEPT_ALL' + }, + SetOpStrategy: { + "0": 'SETOP_SORTED', + "1": 'SETOP_HASHED' + }, + OnConflictAction: { + "0": 'ONCONFLICT_NONE', + "1": 'ONCONFLICT_NOTHING', + "2": 'ONCONFLICT_UPDATE' + }, + LimitOption: { + "0": 'LIMIT_OPTION_DEFAULT', + "1": 'LIMIT_OPTION_COUNT', + "2": 'LIMIT_OPTION_WITH_TIES' + }, + LockClauseStrength: { + "0": 'LCS_NONE', + "1": 'LCS_FORKEYSHARE', + "2": 'LCS_FORSHARE', + "3": 'LCS_FORNOKEYUPDATE', + "4": 'LCS_FORUPDATE' + }, + LockWaitPolicy: { + "0": 'LockWaitBlock', + "1": 'LockWaitSkip', + "2": 'LockWaitError' + }, + LockTupleMode: { + "0": 'LockTupleKeyShare', + "1": 'LockTupleShare', + "2": 'LockTupleNoKeyExclusive', + "3": 'LockTupleExclusive' + }, + KeywordKind: { + "0": 'NO_KEYWORD', + "1": 'UNRESERVED_KEYWORD', + "2": 'COL_NAME_KEYWORD', + "3": 'TYPE_FUNC_NAME_KEYWORD', + "4": 'RESERVED_KEYWORD' + }, + Token: { + "0": 'NUL', + "36": 'ASCII_36', + "37": 'ASCII_37', + "40": 'ASCII_40', + "41": 'ASCII_41', + "42": 'ASCII_42', + "43": 'ASCII_43', + "44": 'ASCII_44', + "45": 'ASCII_45', + "46": 'ASCII_46', + "47": 'ASCII_47', + "58": 'ASCII_58', + "59": 'ASCII_59', + "60": 'ASCII_60', + "61": 'ASCII_61', + "62": 'ASCII_62', + "63": 'ASCII_63', + "91": 'ASCII_91', + "92": 'ASCII_92', + "93": 'ASCII_93', + "94": 'ASCII_94', + "258": 'IDENT', + "259": 'UIDENT', + "260": 'FCONST', + "261": 'SCONST', + "262": 'USCONST', + "263": 'BCONST', + "264": 'XCONST', + "265": 'Op', + "266": 'ICONST', + "267": 'PARAM', + "268": 'TYPECAST', + "269": 'DOT_DOT', + "270": 'COLON_EQUALS', + "271": 'EQUALS_GREATER', + "272": 'LESS_EQUALS', + "273": 'GREATER_EQUALS', + "274": 'NOT_EQUALS', + "275": 'SQL_COMMENT', + "276": 'C_COMMENT', + "277": 'ABORT_P', + "278": 'ABSENT', + "279": 'ABSOLUTE_P', + "280": 'ACCESS', + "281": 'ACTION', + "282": 'ADD_P', + "283": 'ADMIN', + "284": 'AFTER', + "285": 'AGGREGATE', + "286": 'ALL', + "287": 'ALSO', + "288": 'ALTER', + "289": 'ALWAYS', + "290": 'ANALYSE', + "291": 'ANALYZE', + "292": 'AND', + "293": 'ANY', + "294": 'ARRAY', + "295": 'AS', + "296": 'ASC', + "297": 'ASENSITIVE', + "298": 'ASSERTION', + "299": 'ASSIGNMENT', + "300": 'ASYMMETRIC', + "301": 'ATOMIC', + "302": 'AT', + "303": 'ATTACH', + "304": 'ATTRIBUTE', + "305": 'AUTHORIZATION', + "306": 'BACKWARD', + "307": 'BEFORE', + "308": 'BEGIN_P', + "309": 'BETWEEN', + "310": 'BIGINT', + "311": 'BINARY', + "312": 'BIT', + "313": 'BOOLEAN_P', + "314": 'BOTH', + "315": 'BREADTH', + "316": 'BY', + "317": 'CACHE', + "318": 'CALL', + "319": 'CALLED', + "320": 'CASCADE', + "321": 'CASCADED', + "322": 'CASE', + "323": 'CAST', + "324": 'CATALOG_P', + "325": 'CHAIN', + "326": 'CHAR_P', + "327": 'CHARACTER', + "328": 'CHARACTERISTICS', + "329": 'CHECK', + "330": 'CHECKPOINT', + "331": 'CLASS', + "332": 'CLOSE', + "333": 'CLUSTER', + "334": 'COALESCE', + "335": 'COLLATE', + "336": 'COLLATION', + "337": 'COLUMN', + "338": 'COLUMNS', + "339": 'COMMENT', + "340": 'COMMENTS', + "341": 'COMMIT', + "342": 'COMMITTED', + "343": 'COMPRESSION', + "344": 'CONCURRENTLY', + "345": 'CONFIGURATION', + "346": 'CONFLICT', + "347": 'CONNECTION', + "348": 'CONSTRAINT', + "349": 'CONSTRAINTS', + "350": 'CONTENT_P', + "351": 'CONTINUE_P', + "352": 'CONVERSION_P', + "353": 'COPY', + "354": 'COST', + "355": 'CREATE', + "356": 'CROSS', + "357": 'CSV', + "358": 'CUBE', + "359": 'CURRENT_P', + "360": 'CURRENT_CATALOG', + "361": 'CURRENT_DATE', + "362": 'CURRENT_ROLE', + "363": 'CURRENT_SCHEMA', + "364": 'CURRENT_TIME', + "365": 'CURRENT_TIMESTAMP', + "366": 'CURRENT_USER', + "367": 'CURSOR', + "368": 'CYCLE', + "369": 'DATA_P', + "370": 'DATABASE', + "371": 'DAY_P', + "372": 'DEALLOCATE', + "373": 'DEC', + "374": 'DECIMAL_P', + "375": 'DECLARE', + "376": 'DEFAULT', + "377": 'DEFAULTS', + "378": 'DEFERRABLE', + "379": 'DEFERRED', + "380": 'DEFINER', + "381": 'DELETE_P', + "382": 'DELIMITER', + "383": 'DELIMITERS', + "384": 'DEPENDS', + "385": 'DEPTH', + "386": 'DESC', + "387": 'DETACH', + "388": 'DICTIONARY', + "389": 'DISABLE_P', + "390": 'DISCARD', + "391": 'DISTINCT', + "392": 'DO', + "393": 'DOCUMENT_P', + "394": 'DOMAIN_P', + "395": 'DOUBLE_P', + "396": 'DROP', + "397": 'EACH', + "398": 'ELSE', + "399": 'ENABLE_P', + "400": 'ENCODING', + "401": 'ENCRYPTED', + "402": 'END_P', + "403": 'ENUM_P', + "404": 'ESCAPE', + "405": 'EVENT', + "406": 'EXCEPT', + "407": 'EXCLUDE', + "408": 'EXCLUDING', + "409": 'EXCLUSIVE', + "410": 'EXECUTE', + "411": 'EXISTS', + "412": 'EXPLAIN', + "413": 'EXPRESSION', + "414": 'EXTENSION', + "415": 'EXTERNAL', + "416": 'EXTRACT', + "417": 'FALSE_P', + "418": 'FAMILY', + "419": 'FETCH', + "420": 'FILTER', + "421": 'FINALIZE', + "422": 'FIRST_P', + "423": 'FLOAT_P', + "424": 'FOLLOWING', + "425": 'FOR', + "426": 'FORCE', + "427": 'FOREIGN', + "428": 'FORMAT', + "429": 'FORWARD', + "430": 'FREEZE', + "431": 'FROM', + "432": 'FULL', + "433": 'FUNCTION', + "434": 'FUNCTIONS', + "435": 'GENERATED', + "436": 'GLOBAL', + "437": 'GRANT', + "438": 'GRANTED', + "439": 'GREATEST', + "440": 'GROUP_P', + "441": 'GROUPING', + "442": 'GROUPS', + "443": 'HANDLER', + "444": 'HAVING', + "445": 'HEADER_P', + "446": 'HOLD', + "447": 'HOUR_P', + "448": 'IDENTITY_P', + "449": 'IF_P', + "450": 'ILIKE', + "451": 'IMMEDIATE', + "452": 'IMMUTABLE', + "453": 'IMPLICIT_P', + "454": 'IMPORT_P', + "455": 'IN_P', + "456": 'INCLUDE', + "457": 'INCLUDING', + "458": 'INCREMENT', + "459": 'INDENT', + "460": 'INDEX', + "461": 'INDEXES', + "462": 'INHERIT', + "463": 'INHERITS', + "464": 'INITIALLY', + "465": 'INLINE_P', + "466": 'INNER_P', + "467": 'INOUT', + "468": 'INPUT_P', + "469": 'INSENSITIVE', + "470": 'INSERT', + "471": 'INSTEAD', + "472": 'INT_P', + "473": 'INTEGER', + "474": 'INTERSECT', + "475": 'INTERVAL', + "476": 'INTO', + "477": 'INVOKER', + "478": 'IS', + "479": 'ISNULL', + "480": 'ISOLATION', + "481": 'JOIN', + "482": 'JSON', + "483": 'JSON_ARRAY', + "484": 'JSON_ARRAYAGG', + "485": 'JSON_OBJECT', + "486": 'JSON_OBJECTAGG', + "487": 'KEY', + "488": 'KEYS', + "489": 'LABEL', + "490": 'LANGUAGE', + "491": 'LARGE_P', + "492": 'LAST_P', + "493": 'LATERAL_P', + "494": 'LEADING', + "495": 'LEAKPROOF', + "496": 'LEAST', + "497": 'LEFT', + "498": 'LEVEL', + "499": 'LIKE', + "500": 'LIMIT', + "501": 'LISTEN', + "502": 'LOAD', + "503": 'LOCAL', + "504": 'LOCALTIME', + "505": 'LOCALTIMESTAMP', + "506": 'LOCATION', + "507": 'LOCK_P', + "508": 'LOCKED', + "509": 'LOGGED', + "510": 'MAPPING', + "511": 'MATCH', + "512": 'MATCHED', + "513": 'MATERIALIZED', + "514": 'MAXVALUE', + "515": 'MERGE', + "516": 'METHOD', + "517": 'MINUTE_P', + "518": 'MINVALUE', + "519": 'MODE', + "520": 'MONTH_P', + "521": 'MOVE', + "522": 'NAME_P', + "523": 'NAMES', + "524": 'NATIONAL', + "525": 'NATURAL', + "526": 'NCHAR', + "527": 'NEW', + "528": 'NEXT', + "529": 'NFC', + "530": 'NFD', + "531": 'NFKC', + "532": 'NFKD', + "533": 'NO', + "534": 'NONE', + "535": 'NORMALIZE', + "536": 'NORMALIZED', + "537": 'NOT', + "538": 'NOTHING', + "539": 'NOTIFY', + "540": 'NOTNULL', + "541": 'NOWAIT', + "542": 'NULL_P', + "543": 'NULLIF', + "544": 'NULLS_P', + "545": 'NUMERIC', + "546": 'OBJECT_P', + "547": 'OF', + "548": 'OFF', + "549": 'OFFSET', + "550": 'OIDS', + "551": 'OLD', + "552": 'ON', + "553": 'ONLY', + "554": 'OPERATOR', + "555": 'OPTION', + "556": 'OPTIONS', + "557": 'OR', + "558": 'ORDER', + "559": 'ORDINALITY', + "560": 'OTHERS', + "561": 'OUT_P', + "562": 'OUTER_P', + "563": 'OVER', + "564": 'OVERLAPS', + "565": 'OVERLAY', + "566": 'OVERRIDING', + "567": 'OWNED', + "568": 'OWNER', + "569": 'PARALLEL', + "570": 'PARAMETER', + "571": 'PARSER', + "572": 'PARTIAL', + "573": 'PARTITION', + "574": 'PASSING', + "575": 'PASSWORD', + "576": 'PLACING', + "577": 'PLANS', + "578": 'POLICY', + "579": 'POSITION', + "580": 'PRECEDING', + "581": 'PRECISION', + "582": 'PRESERVE', + "583": 'PREPARE', + "584": 'PREPARED', + "585": 'PRIMARY', + "586": 'PRIOR', + "587": 'PRIVILEGES', + "588": 'PROCEDURAL', + "589": 'PROCEDURE', + "590": 'PROCEDURES', + "591": 'PROGRAM', + "592": 'PUBLICATION', + "593": 'QUOTE', + "594": 'RANGE', + "595": 'READ', + "596": 'REAL', + "597": 'REASSIGN', + "598": 'RECHECK', + "599": 'RECURSIVE', + "600": 'REF_P', + "601": 'REFERENCES', + "602": 'REFERENCING', + "603": 'REFRESH', + "604": 'REINDEX', + "605": 'RELATIVE_P', + "606": 'RELEASE', + "607": 'RENAME', + "608": 'REPEATABLE', + "609": 'REPLACE', + "610": 'REPLICA', + "611": 'RESET', + "612": 'RESTART', + "613": 'RESTRICT', + "614": 'RETURN', + "615": 'RETURNING', + "616": 'RETURNS', + "617": 'REVOKE', + "618": 'RIGHT', + "619": 'ROLE', + "620": 'ROLLBACK', + "621": 'ROLLUP', + "622": 'ROUTINE', + "623": 'ROUTINES', + "624": 'ROW', + "625": 'ROWS', + "626": 'RULE', + "627": 'SAVEPOINT', + "628": 'SCALAR', + "629": 'SCHEMA', + "630": 'SCHEMAS', + "631": 'SCROLL', + "632": 'SEARCH', + "633": 'SECOND_P', + "634": 'SECURITY', + "635": 'SELECT', + "636": 'SEQUENCE', + "637": 'SEQUENCES', + "638": 'SERIALIZABLE', + "639": 'SERVER', + "640": 'SESSION', + "641": 'SESSION_USER', + "642": 'SET', + "643": 'SETS', + "644": 'SETOF', + "645": 'SHARE', + "646": 'SHOW', + "647": 'SIMILAR', + "648": 'SIMPLE', + "649": 'SKIP', + "650": 'SMALLINT', + "651": 'SNAPSHOT', + "652": 'SOME', + "653": 'SQL_P', + "654": 'STABLE', + "655": 'STANDALONE_P', + "656": 'START', + "657": 'STATEMENT', + "658": 'STATISTICS', + "659": 'STDIN', + "660": 'STDOUT', + "661": 'STORAGE', + "662": 'STORED', + "663": 'STRICT_P', + "664": 'STRIP_P', + "665": 'SUBSCRIPTION', + "666": 'SUBSTRING', + "667": 'SUPPORT', + "668": 'SYMMETRIC', + "669": 'SYSID', + "670": 'SYSTEM_P', + "671": 'SYSTEM_USER', + "672": 'TABLE', + "673": 'TABLES', + "674": 'TABLESAMPLE', + "675": 'TABLESPACE', + "676": 'TEMP', + "677": 'TEMPLATE', + "678": 'TEMPORARY', + "679": 'TEXT_P', + "680": 'THEN', + "681": 'TIES', + "682": 'TIME', + "683": 'TIMESTAMP', + "684": 'TO', + "685": 'TRAILING', + "686": 'TRANSACTION', + "687": 'TRANSFORM', + "688": 'TREAT', + "689": 'TRIGGER', + "690": 'TRIM', + "691": 'TRUE_P', + "692": 'TRUNCATE', + "693": 'TRUSTED', + "694": 'TYPE_P', + "695": 'TYPES_P', + "696": 'UESCAPE', + "697": 'UNBOUNDED', + "698": 'UNCOMMITTED', + "699": 'UNENCRYPTED', + "700": 'UNION', + "701": 'UNIQUE', + "702": 'UNKNOWN', + "703": 'UNLISTEN', + "704": 'UNLOGGED', + "705": 'UNTIL', + "706": 'UPDATE', + "707": 'USER', + "708": 'USING', + "709": 'VACUUM', + "710": 'VALID', + "711": 'VALIDATE', + "712": 'VALIDATOR', + "713": 'VALUE_P', + "714": 'VALUES', + "715": 'VARCHAR', + "716": 'VARIADIC', + "717": 'VARYING', + "718": 'VERBOSE', + "719": 'VERSION_P', + "720": 'VIEW', + "721": 'VIEWS', + "722": 'VOLATILE', + "723": 'WHEN', + "724": 'WHERE', + "725": 'WHITESPACE_P', + "726": 'WINDOW', + "727": 'WITH', + "728": 'WITHIN', + "729": 'WITHOUT', + "730": 'WORK', + "731": 'WRAPPER', + "732": 'WRITE', + "733": 'XML_P', + "734": 'XMLATTRIBUTES', + "735": 'XMLCONCAT', + "736": 'XMLELEMENT', + "737": 'XMLEXISTS', + "738": 'XMLFOREST', + "739": 'XMLNAMESPACES', + "740": 'XMLPARSE', + "741": 'XMLPI', + "742": 'XMLROOT', + "743": 'XMLSERIALIZE', + "744": 'XMLTABLE', + "745": 'YEAR_P', + "746": 'YES_P', + "747": 'ZONE', + "748": 'FORMAT_LA', + "749": 'NOT_LA', + "750": 'NULLS_LA', + "751": 'WITH_LA', + "752": 'WITHOUT_LA', + "753": 'MODE_TYPE_NAME', + "754": 'MODE_PLPGSQL_EXPR', + "755": 'MODE_PLPGSQL_ASSIGN1', + "756": 'MODE_PLPGSQL_ASSIGN2', + "757": 'MODE_PLPGSQL_ASSIGN3', + "758": 'UMINUS' + } +}; +export type EnumToStrMap = typeof enumToStrMap; \ No newline at end of file diff --git a/__fixtures__/output/runtime-schema/disabled/types.ts b/__fixtures__/output/runtime-schema/disabled/types.ts index 4dbf99c8..cf5f2c36 100644 --- a/__fixtures__/output/runtime-schema/disabled/types.ts +++ b/__fixtures__/output/runtime-schema/disabled/types.ts @@ -4,7 +4,517 @@ * and run the pg-proto-parser generate command to regenerate this file. */ import { OverridingKind, QuerySource, SortByDir, SortByNulls, SetQuantifier, A_Expr_Kind, RoleSpecType, TableLikeOption, DefElemAction, PartitionStrategy, PartitionRangeDatumKind, RTEKind, WCOKind, GroupingSetKind, CTEMaterialize, SetOperation, ObjectType, DropBehavior, AlterTableType, GrantTargetType, VariableSetKind, ConstrType, ImportForeignSchemaType, RoleStmtType, FetchDirection, FunctionParameterMode, TransactionStmtKind, ViewCheckOption, DiscardMode, ReindexObjectType, AlterTSConfigType, PublicationObjSpecType, AlterPublicationAction, AlterSubscriptionType, OnCommitAction, ParamKind, CoercionContext, CoercionForm, BoolExprType, SubLinkType, RowCompareType, MinMaxOp, SQLValueFunctionOp, XmlExprOp, XmlOptionType, JsonEncoding, JsonFormatType, JsonConstructorType, JsonValueType, NullTestType, BoolTestType, CmdType, JoinType, AggStrategy, AggSplit, SetOpCmd, SetOpStrategy, OnConflictAction, LimitOption, LockClauseStrength, LockWaitPolicy, LockTupleMode, KeywordKind, Token } from "./enums"; -export type Node = ParseResult | ScanResult | Integer | Float | Boolean | String | BitString | List | OidList | IntList | A_Const | Alias | RangeVar | TableFunc | IntoClause | Var | Param | Aggref | GroupingFunc | WindowFunc | SubscriptingRef | FuncExpr | NamedArgExpr | OpExpr | DistinctExpr | NullIfExpr | ScalarArrayOpExpr | BoolExpr | SubLink | SubPlan | AlternativeSubPlan | FieldSelect | FieldStore | RelabelType | CoerceViaIO | ArrayCoerceExpr | ConvertRowtypeExpr | CollateExpr | CaseExpr | CaseWhen | CaseTestExpr | ArrayExpr | RowExpr | RowCompareExpr | CoalesceExpr | MinMaxExpr | SQLValueFunction | XmlExpr | JsonFormat | JsonReturning | JsonValueExpr | JsonConstructorExpr | JsonIsPredicate | NullTest | BooleanTest | CoerceToDomain | CoerceToDomainValue | SetToDefault | CurrentOfExpr | NextValueExpr | InferenceElem | TargetEntry | RangeTblRef | JoinExpr | FromExpr | OnConflictExpr | Query | TypeName | ColumnRef | ParamRef | A_Expr | TypeCast | CollateClause | RoleSpec | FuncCall | A_Star | A_Indices | A_Indirection | A_ArrayExpr | ResTarget | MultiAssignRef | SortBy | WindowDef | RangeSubselect | RangeFunction | RangeTableFunc | RangeTableFuncCol | RangeTableSample | ColumnDef | TableLikeClause | IndexElem | DefElem | LockingClause | XmlSerialize | PartitionElem | PartitionSpec | PartitionBoundSpec | PartitionRangeDatum | PartitionCmd | RangeTblEntry | RTEPermissionInfo | RangeTblFunction | TableSampleClause | WithCheckOption | SortGroupClause | GroupingSet | WindowClause | RowMarkClause | WithClause | InferClause | OnConflictClause | CTESearchClause | CTECycleClause | CommonTableExpr | MergeWhenClause | MergeAction | TriggerTransition | JsonOutput | JsonKeyValue | JsonObjectConstructor | JsonArrayConstructor | JsonArrayQueryConstructor | JsonAggConstructor | JsonObjectAgg | JsonArrayAgg | RawStmt | InsertStmt | DeleteStmt | UpdateStmt | MergeStmt | SelectStmt | SetOperationStmt | ReturnStmt | PLAssignStmt | CreateSchemaStmt | AlterTableStmt | ReplicaIdentityStmt | AlterTableCmd | AlterCollationStmt | AlterDomainStmt | GrantStmt | ObjectWithArgs | AccessPriv | GrantRoleStmt | AlterDefaultPrivilegesStmt | CopyStmt | VariableSetStmt | VariableShowStmt | CreateStmt | Constraint | CreateTableSpaceStmt | DropTableSpaceStmt | AlterTableSpaceOptionsStmt | AlterTableMoveAllStmt | CreateExtensionStmt | AlterExtensionStmt | AlterExtensionContentsStmt | CreateFdwStmt | AlterFdwStmt | CreateForeignServerStmt | AlterForeignServerStmt | CreateForeignTableStmt | CreateUserMappingStmt | AlterUserMappingStmt | DropUserMappingStmt | ImportForeignSchemaStmt | CreatePolicyStmt | AlterPolicyStmt | CreateAmStmt | CreateTrigStmt | CreateEventTrigStmt | AlterEventTrigStmt | CreatePLangStmt | CreateRoleStmt | AlterRoleStmt | AlterRoleSetStmt | DropRoleStmt | CreateSeqStmt | AlterSeqStmt | DefineStmt | CreateDomainStmt | CreateOpClassStmt | CreateOpClassItem | CreateOpFamilyStmt | AlterOpFamilyStmt | DropStmt | TruncateStmt | CommentStmt | SecLabelStmt | DeclareCursorStmt | ClosePortalStmt | FetchStmt | IndexStmt | CreateStatsStmt | StatsElem | AlterStatsStmt | CreateFunctionStmt | FunctionParameter | AlterFunctionStmt | DoStmt | InlineCodeBlock | CallStmt | CallContext | RenameStmt | AlterObjectDependsStmt | AlterObjectSchemaStmt | AlterOwnerStmt | AlterOperatorStmt | AlterTypeStmt | RuleStmt | NotifyStmt | ListenStmt | UnlistenStmt | TransactionStmt | CompositeTypeStmt | CreateEnumStmt | CreateRangeStmt | AlterEnumStmt | ViewStmt | LoadStmt | CreatedbStmt | AlterDatabaseStmt | AlterDatabaseRefreshCollStmt | AlterDatabaseSetStmt | DropdbStmt | AlterSystemStmt | ClusterStmt | VacuumStmt | VacuumRelation | ExplainStmt | CreateTableAsStmt | RefreshMatViewStmt | CheckPointStmt | DiscardStmt | LockStmt | ConstraintsSetStmt | ReindexStmt | CreateConversionStmt | CreateCastStmt | CreateTransformStmt | PrepareStmt | ExecuteStmt | DeallocateStmt | DropOwnedStmt | ReassignOwnedStmt | AlterTSDictionaryStmt | AlterTSConfigurationStmt | PublicationTable | PublicationObjSpec | CreatePublicationStmt | AlterPublicationStmt | CreateSubscriptionStmt | AlterSubscriptionStmt | DropSubscriptionStmt | ScanToken; +export type Node = { + ParseResult: ParseResult; +} | { + ScanResult: ScanResult; +} | { + Integer: Integer; +} | { + Float: Float; +} | { + Boolean: Boolean; +} | { + String: String; +} | { + BitString: BitString; +} | { + List: List; +} | { + OidList: OidList; +} | { + IntList: IntList; +} | { + A_Const: A_Const; +} | { + Alias: Alias; +} | { + RangeVar: RangeVar; +} | { + TableFunc: TableFunc; +} | { + IntoClause: IntoClause; +} | { + Var: Var; +} | { + Param: Param; +} | { + Aggref: Aggref; +} | { + GroupingFunc: GroupingFunc; +} | { + WindowFunc: WindowFunc; +} | { + SubscriptingRef: SubscriptingRef; +} | { + FuncExpr: FuncExpr; +} | { + NamedArgExpr: NamedArgExpr; +} | { + OpExpr: OpExpr; +} | { + DistinctExpr: DistinctExpr; +} | { + NullIfExpr: NullIfExpr; +} | { + ScalarArrayOpExpr: ScalarArrayOpExpr; +} | { + BoolExpr: BoolExpr; +} | { + SubLink: SubLink; +} | { + SubPlan: SubPlan; +} | { + AlternativeSubPlan: AlternativeSubPlan; +} | { + FieldSelect: FieldSelect; +} | { + FieldStore: FieldStore; +} | { + RelabelType: RelabelType; +} | { + CoerceViaIO: CoerceViaIO; +} | { + ArrayCoerceExpr: ArrayCoerceExpr; +} | { + ConvertRowtypeExpr: ConvertRowtypeExpr; +} | { + CollateExpr: CollateExpr; +} | { + CaseExpr: CaseExpr; +} | { + CaseWhen: CaseWhen; +} | { + CaseTestExpr: CaseTestExpr; +} | { + ArrayExpr: ArrayExpr; +} | { + RowExpr: RowExpr; +} | { + RowCompareExpr: RowCompareExpr; +} | { + CoalesceExpr: CoalesceExpr; +} | { + MinMaxExpr: MinMaxExpr; +} | { + SQLValueFunction: SQLValueFunction; +} | { + XmlExpr: XmlExpr; +} | { + JsonFormat: JsonFormat; +} | { + JsonReturning: JsonReturning; +} | { + JsonValueExpr: JsonValueExpr; +} | { + JsonConstructorExpr: JsonConstructorExpr; +} | { + JsonIsPredicate: JsonIsPredicate; +} | { + NullTest: NullTest; +} | { + BooleanTest: BooleanTest; +} | { + CoerceToDomain: CoerceToDomain; +} | { + CoerceToDomainValue: CoerceToDomainValue; +} | { + SetToDefault: SetToDefault; +} | { + CurrentOfExpr: CurrentOfExpr; +} | { + NextValueExpr: NextValueExpr; +} | { + InferenceElem: InferenceElem; +} | { + TargetEntry: TargetEntry; +} | { + RangeTblRef: RangeTblRef; +} | { + JoinExpr: JoinExpr; +} | { + FromExpr: FromExpr; +} | { + OnConflictExpr: OnConflictExpr; +} | { + Query: Query; +} | { + TypeName: TypeName; +} | { + ColumnRef: ColumnRef; +} | { + ParamRef: ParamRef; +} | { + A_Expr: A_Expr; +} | { + TypeCast: TypeCast; +} | { + CollateClause: CollateClause; +} | { + RoleSpec: RoleSpec; +} | { + FuncCall: FuncCall; +} | { + A_Star: A_Star; +} | { + A_Indices: A_Indices; +} | { + A_Indirection: A_Indirection; +} | { + A_ArrayExpr: A_ArrayExpr; +} | { + ResTarget: ResTarget; +} | { + MultiAssignRef: MultiAssignRef; +} | { + SortBy: SortBy; +} | { + WindowDef: WindowDef; +} | { + RangeSubselect: RangeSubselect; +} | { + RangeFunction: RangeFunction; +} | { + RangeTableFunc: RangeTableFunc; +} | { + RangeTableFuncCol: RangeTableFuncCol; +} | { + RangeTableSample: RangeTableSample; +} | { + ColumnDef: ColumnDef; +} | { + TableLikeClause: TableLikeClause; +} | { + IndexElem: IndexElem; +} | { + DefElem: DefElem; +} | { + LockingClause: LockingClause; +} | { + XmlSerialize: XmlSerialize; +} | { + PartitionElem: PartitionElem; +} | { + PartitionSpec: PartitionSpec; +} | { + PartitionBoundSpec: PartitionBoundSpec; +} | { + PartitionRangeDatum: PartitionRangeDatum; +} | { + PartitionCmd: PartitionCmd; +} | { + RangeTblEntry: RangeTblEntry; +} | { + RTEPermissionInfo: RTEPermissionInfo; +} | { + RangeTblFunction: RangeTblFunction; +} | { + TableSampleClause: TableSampleClause; +} | { + WithCheckOption: WithCheckOption; +} | { + SortGroupClause: SortGroupClause; +} | { + GroupingSet: GroupingSet; +} | { + WindowClause: WindowClause; +} | { + RowMarkClause: RowMarkClause; +} | { + WithClause: WithClause; +} | { + InferClause: InferClause; +} | { + OnConflictClause: OnConflictClause; +} | { + CTESearchClause: CTESearchClause; +} | { + CTECycleClause: CTECycleClause; +} | { + CommonTableExpr: CommonTableExpr; +} | { + MergeWhenClause: MergeWhenClause; +} | { + MergeAction: MergeAction; +} | { + TriggerTransition: TriggerTransition; +} | { + JsonOutput: JsonOutput; +} | { + JsonKeyValue: JsonKeyValue; +} | { + JsonObjectConstructor: JsonObjectConstructor; +} | { + JsonArrayConstructor: JsonArrayConstructor; +} | { + JsonArrayQueryConstructor: JsonArrayQueryConstructor; +} | { + JsonAggConstructor: JsonAggConstructor; +} | { + JsonObjectAgg: JsonObjectAgg; +} | { + JsonArrayAgg: JsonArrayAgg; +} | { + RawStmt: RawStmt; +} | { + InsertStmt: InsertStmt; +} | { + DeleteStmt: DeleteStmt; +} | { + UpdateStmt: UpdateStmt; +} | { + MergeStmt: MergeStmt; +} | { + SelectStmt: SelectStmt; +} | { + SetOperationStmt: SetOperationStmt; +} | { + ReturnStmt: ReturnStmt; +} | { + PLAssignStmt: PLAssignStmt; +} | { + CreateSchemaStmt: CreateSchemaStmt; +} | { + AlterTableStmt: AlterTableStmt; +} | { + ReplicaIdentityStmt: ReplicaIdentityStmt; +} | { + AlterTableCmd: AlterTableCmd; +} | { + AlterCollationStmt: AlterCollationStmt; +} | { + AlterDomainStmt: AlterDomainStmt; +} | { + GrantStmt: GrantStmt; +} | { + ObjectWithArgs: ObjectWithArgs; +} | { + AccessPriv: AccessPriv; +} | { + GrantRoleStmt: GrantRoleStmt; +} | { + AlterDefaultPrivilegesStmt: AlterDefaultPrivilegesStmt; +} | { + CopyStmt: CopyStmt; +} | { + VariableSetStmt: VariableSetStmt; +} | { + VariableShowStmt: VariableShowStmt; +} | { + CreateStmt: CreateStmt; +} | { + Constraint: Constraint; +} | { + CreateTableSpaceStmt: CreateTableSpaceStmt; +} | { + DropTableSpaceStmt: DropTableSpaceStmt; +} | { + AlterTableSpaceOptionsStmt: AlterTableSpaceOptionsStmt; +} | { + AlterTableMoveAllStmt: AlterTableMoveAllStmt; +} | { + CreateExtensionStmt: CreateExtensionStmt; +} | { + AlterExtensionStmt: AlterExtensionStmt; +} | { + AlterExtensionContentsStmt: AlterExtensionContentsStmt; +} | { + CreateFdwStmt: CreateFdwStmt; +} | { + AlterFdwStmt: AlterFdwStmt; +} | { + CreateForeignServerStmt: CreateForeignServerStmt; +} | { + AlterForeignServerStmt: AlterForeignServerStmt; +} | { + CreateForeignTableStmt: CreateForeignTableStmt; +} | { + CreateUserMappingStmt: CreateUserMappingStmt; +} | { + AlterUserMappingStmt: AlterUserMappingStmt; +} | { + DropUserMappingStmt: DropUserMappingStmt; +} | { + ImportForeignSchemaStmt: ImportForeignSchemaStmt; +} | { + CreatePolicyStmt: CreatePolicyStmt; +} | { + AlterPolicyStmt: AlterPolicyStmt; +} | { + CreateAmStmt: CreateAmStmt; +} | { + CreateTrigStmt: CreateTrigStmt; +} | { + CreateEventTrigStmt: CreateEventTrigStmt; +} | { + AlterEventTrigStmt: AlterEventTrigStmt; +} | { + CreatePLangStmt: CreatePLangStmt; +} | { + CreateRoleStmt: CreateRoleStmt; +} | { + AlterRoleStmt: AlterRoleStmt; +} | { + AlterRoleSetStmt: AlterRoleSetStmt; +} | { + DropRoleStmt: DropRoleStmt; +} | { + CreateSeqStmt: CreateSeqStmt; +} | { + AlterSeqStmt: AlterSeqStmt; +} | { + DefineStmt: DefineStmt; +} | { + CreateDomainStmt: CreateDomainStmt; +} | { + CreateOpClassStmt: CreateOpClassStmt; +} | { + CreateOpClassItem: CreateOpClassItem; +} | { + CreateOpFamilyStmt: CreateOpFamilyStmt; +} | { + AlterOpFamilyStmt: AlterOpFamilyStmt; +} | { + DropStmt: DropStmt; +} | { + TruncateStmt: TruncateStmt; +} | { + CommentStmt: CommentStmt; +} | { + SecLabelStmt: SecLabelStmt; +} | { + DeclareCursorStmt: DeclareCursorStmt; +} | { + ClosePortalStmt: ClosePortalStmt; +} | { + FetchStmt: FetchStmt; +} | { + IndexStmt: IndexStmt; +} | { + CreateStatsStmt: CreateStatsStmt; +} | { + StatsElem: StatsElem; +} | { + AlterStatsStmt: AlterStatsStmt; +} | { + CreateFunctionStmt: CreateFunctionStmt; +} | { + FunctionParameter: FunctionParameter; +} | { + AlterFunctionStmt: AlterFunctionStmt; +} | { + DoStmt: DoStmt; +} | { + InlineCodeBlock: InlineCodeBlock; +} | { + CallStmt: CallStmt; +} | { + CallContext: CallContext; +} | { + RenameStmt: RenameStmt; +} | { + AlterObjectDependsStmt: AlterObjectDependsStmt; +} | { + AlterObjectSchemaStmt: AlterObjectSchemaStmt; +} | { + AlterOwnerStmt: AlterOwnerStmt; +} | { + AlterOperatorStmt: AlterOperatorStmt; +} | { + AlterTypeStmt: AlterTypeStmt; +} | { + RuleStmt: RuleStmt; +} | { + NotifyStmt: NotifyStmt; +} | { + ListenStmt: ListenStmt; +} | { + UnlistenStmt: UnlistenStmt; +} | { + TransactionStmt: TransactionStmt; +} | { + CompositeTypeStmt: CompositeTypeStmt; +} | { + CreateEnumStmt: CreateEnumStmt; +} | { + CreateRangeStmt: CreateRangeStmt; +} | { + AlterEnumStmt: AlterEnumStmt; +} | { + ViewStmt: ViewStmt; +} | { + LoadStmt: LoadStmt; +} | { + CreatedbStmt: CreatedbStmt; +} | { + AlterDatabaseStmt: AlterDatabaseStmt; +} | { + AlterDatabaseRefreshCollStmt: AlterDatabaseRefreshCollStmt; +} | { + AlterDatabaseSetStmt: AlterDatabaseSetStmt; +} | { + DropdbStmt: DropdbStmt; +} | { + AlterSystemStmt: AlterSystemStmt; +} | { + ClusterStmt: ClusterStmt; +} | { + VacuumStmt: VacuumStmt; +} | { + VacuumRelation: VacuumRelation; +} | { + ExplainStmt: ExplainStmt; +} | { + CreateTableAsStmt: CreateTableAsStmt; +} | { + RefreshMatViewStmt: RefreshMatViewStmt; +} | { + CheckPointStmt: CheckPointStmt; +} | { + DiscardStmt: DiscardStmt; +} | { + LockStmt: LockStmt; +} | { + ConstraintsSetStmt: ConstraintsSetStmt; +} | { + ReindexStmt: ReindexStmt; +} | { + CreateConversionStmt: CreateConversionStmt; +} | { + CreateCastStmt: CreateCastStmt; +} | { + CreateTransformStmt: CreateTransformStmt; +} | { + PrepareStmt: PrepareStmt; +} | { + ExecuteStmt: ExecuteStmt; +} | { + DeallocateStmt: DeallocateStmt; +} | { + DropOwnedStmt: DropOwnedStmt; +} | { + ReassignOwnedStmt: ReassignOwnedStmt; +} | { + AlterTSDictionaryStmt: AlterTSDictionaryStmt; +} | { + AlterTSConfigurationStmt: AlterTSConfigurationStmt; +} | { + PublicationTable: PublicationTable; +} | { + PublicationObjSpec: PublicationObjSpec; +} | { + CreatePublicationStmt: CreatePublicationStmt; +} | { + AlterPublicationStmt: AlterPublicationStmt; +} | { + CreateSubscriptionStmt: CreateSubscriptionStmt; +} | { + AlterSubscriptionStmt: AlterSubscriptionStmt; +} | { + DropSubscriptionStmt: DropSubscriptionStmt; +} | { + ScanToken: ScanToken; +}; export interface ParseResult { version?: number; stmts?: RawStmt[]; diff --git a/__fixtures__/output/runtime-schema/full-features/asts.ts b/__fixtures__/output/runtime-schema/full-features/asts.ts index a89d9711..002ec189 100644 --- a/__fixtures__/output/runtime-schema/full-features/asts.ts +++ b/__fixtures__/output/runtime-schema/full-features/asts.ts @@ -4,7 +4,7 @@ * and run the pg-proto-parser generate command to regenerate this file. */ import _o from "nested-obj"; -import { ParseResult, ScanResult, Integer, Float, Boolean, String, BitString, List, OidList, IntList, A_Const, Alias, RangeVar, TableFunc, IntoClause, Var, Param, Aggref, GroupingFunc, WindowFunc, SubscriptingRef, FuncExpr, NamedArgExpr, OpExpr, DistinctExpr, NullIfExpr, ScalarArrayOpExpr, BoolExpr, SubLink, SubPlan, AlternativeSubPlan, FieldSelect, FieldStore, RelabelType, CoerceViaIO, ArrayCoerceExpr, ConvertRowtypeExpr, CollateExpr, CaseExpr, CaseWhen, CaseTestExpr, ArrayExpr, RowExpr, RowCompareExpr, CoalesceExpr, MinMaxExpr, SQLValueFunction, XmlExpr, JsonFormat, JsonReturning, JsonValueExpr, JsonConstructorExpr, JsonIsPredicate, NullTest, BooleanTest, CoerceToDomain, CoerceToDomainValue, SetToDefault, CurrentOfExpr, NextValueExpr, InferenceElem, TargetEntry, RangeTblRef, JoinExpr, FromExpr, OnConflictExpr, Query, TypeName, ColumnRef, ParamRef, A_Expr, TypeCast, CollateClause, RoleSpec, FuncCall, A_Star, A_Indices, A_Indirection, A_ArrayExpr, ResTarget, MultiAssignRef, SortBy, WindowDef, RangeSubselect, RangeFunction, RangeTableFunc, RangeTableFuncCol, RangeTableSample, ColumnDef, TableLikeClause, IndexElem, DefElem, LockingClause, XmlSerialize, PartitionElem, PartitionSpec, PartitionBoundSpec, PartitionRangeDatum, PartitionCmd, RangeTblEntry, RTEPermissionInfo, RangeTblFunction, TableSampleClause, WithCheckOption, SortGroupClause, GroupingSet, WindowClause, RowMarkClause, WithClause, InferClause, OnConflictClause, CTESearchClause, CTECycleClause, CommonTableExpr, MergeWhenClause, MergeAction, TriggerTransition, JsonOutput, JsonKeyValue, JsonObjectConstructor, JsonArrayConstructor, JsonArrayQueryConstructor, JsonAggConstructor, JsonObjectAgg, JsonArrayAgg, RawStmt, InsertStmt, DeleteStmt, UpdateStmt, MergeStmt, SelectStmt, SetOperationStmt, ReturnStmt, PLAssignStmt, CreateSchemaStmt, AlterTableStmt, ReplicaIdentityStmt, AlterTableCmd, AlterCollationStmt, AlterDomainStmt, GrantStmt, ObjectWithArgs, AccessPriv, GrantRoleStmt, AlterDefaultPrivilegesStmt, CopyStmt, VariableSetStmt, VariableShowStmt, CreateStmt, Constraint, CreateTableSpaceStmt, DropTableSpaceStmt, AlterTableSpaceOptionsStmt, AlterTableMoveAllStmt, CreateExtensionStmt, AlterExtensionStmt, AlterExtensionContentsStmt, CreateFdwStmt, AlterFdwStmt, CreateForeignServerStmt, AlterForeignServerStmt, CreateForeignTableStmt, CreateUserMappingStmt, AlterUserMappingStmt, DropUserMappingStmt, ImportForeignSchemaStmt, CreatePolicyStmt, AlterPolicyStmt, CreateAmStmt, CreateTrigStmt, CreateEventTrigStmt, AlterEventTrigStmt, CreatePLangStmt, CreateRoleStmt, AlterRoleStmt, AlterRoleSetStmt, DropRoleStmt, CreateSeqStmt, AlterSeqStmt, DefineStmt, CreateDomainStmt, CreateOpClassStmt, CreateOpClassItem, CreateOpFamilyStmt, AlterOpFamilyStmt, DropStmt, TruncateStmt, CommentStmt, SecLabelStmt, DeclareCursorStmt, ClosePortalStmt, FetchStmt, IndexStmt, CreateStatsStmt, StatsElem, AlterStatsStmt, CreateFunctionStmt, FunctionParameter, AlterFunctionStmt, DoStmt, InlineCodeBlock, CallStmt, CallContext, RenameStmt, AlterObjectDependsStmt, AlterObjectSchemaStmt, AlterOwnerStmt, AlterOperatorStmt, AlterTypeStmt, RuleStmt, NotifyStmt, ListenStmt, UnlistenStmt, TransactionStmt, CompositeTypeStmt, CreateEnumStmt, CreateRangeStmt, AlterEnumStmt, ViewStmt, LoadStmt, CreatedbStmt, AlterDatabaseStmt, AlterDatabaseRefreshCollStmt, AlterDatabaseSetStmt, DropdbStmt, AlterSystemStmt, ClusterStmt, VacuumStmt, VacuumRelation, ExplainStmt, CreateTableAsStmt, RefreshMatViewStmt, CheckPointStmt, DiscardStmt, LockStmt, ConstraintsSetStmt, ReindexStmt, CreateConversionStmt, CreateCastStmt, CreateTransformStmt, PrepareStmt, ExecuteStmt, DeallocateStmt, DropOwnedStmt, ReassignOwnedStmt, AlterTSDictionaryStmt, AlterTSConfigurationStmt, PublicationTable, PublicationObjSpec, CreatePublicationStmt, AlterPublicationStmt, CreateSubscriptionStmt, AlterSubscriptionStmt, DropSubscriptionStmt, ScanToken } from "./wrapped"; +import { ParseResult, ScanResult, Integer, Float, Boolean, String, BitString, List, OidList, IntList, A_Const, Alias, RangeVar, TableFunc, IntoClause, Var, Param, Aggref, GroupingFunc, WindowFunc, SubscriptingRef, FuncExpr, NamedArgExpr, OpExpr, DistinctExpr, NullIfExpr, ScalarArrayOpExpr, BoolExpr, SubLink, SubPlan, AlternativeSubPlan, FieldSelect, FieldStore, RelabelType, CoerceViaIO, ArrayCoerceExpr, ConvertRowtypeExpr, CollateExpr, CaseExpr, CaseWhen, CaseTestExpr, ArrayExpr, RowExpr, RowCompareExpr, CoalesceExpr, MinMaxExpr, SQLValueFunction, XmlExpr, JsonFormat, JsonReturning, JsonValueExpr, JsonConstructorExpr, JsonIsPredicate, NullTest, BooleanTest, CoerceToDomain, CoerceToDomainValue, SetToDefault, CurrentOfExpr, NextValueExpr, InferenceElem, TargetEntry, RangeTblRef, JoinExpr, FromExpr, OnConflictExpr, Query, TypeName, ColumnRef, ParamRef, A_Expr, TypeCast, CollateClause, RoleSpec, FuncCall, A_Star, A_Indices, A_Indirection, A_ArrayExpr, ResTarget, MultiAssignRef, SortBy, WindowDef, RangeSubselect, RangeFunction, RangeTableFunc, RangeTableFuncCol, RangeTableSample, ColumnDef, TableLikeClause, IndexElem, DefElem, LockingClause, XmlSerialize, PartitionElem, PartitionSpec, PartitionBoundSpec, PartitionRangeDatum, PartitionCmd, RangeTblEntry, RTEPermissionInfo, RangeTblFunction, TableSampleClause, WithCheckOption, SortGroupClause, GroupingSet, WindowClause, RowMarkClause, WithClause, InferClause, OnConflictClause, CTESearchClause, CTECycleClause, CommonTableExpr, MergeWhenClause, MergeAction, TriggerTransition, JsonOutput, JsonKeyValue, JsonObjectConstructor, JsonArrayConstructor, JsonArrayQueryConstructor, JsonAggConstructor, JsonObjectAgg, JsonArrayAgg, RawStmt, InsertStmt, DeleteStmt, UpdateStmt, MergeStmt, SelectStmt, SetOperationStmt, ReturnStmt, PLAssignStmt, CreateSchemaStmt, AlterTableStmt, ReplicaIdentityStmt, AlterTableCmd, AlterCollationStmt, AlterDomainStmt, GrantStmt, ObjectWithArgs, AccessPriv, GrantRoleStmt, AlterDefaultPrivilegesStmt, CopyStmt, VariableSetStmt, VariableShowStmt, CreateStmt, Constraint, CreateTableSpaceStmt, DropTableSpaceStmt, AlterTableSpaceOptionsStmt, AlterTableMoveAllStmt, CreateExtensionStmt, AlterExtensionStmt, AlterExtensionContentsStmt, CreateFdwStmt, AlterFdwStmt, CreateForeignServerStmt, AlterForeignServerStmt, CreateForeignTableStmt, CreateUserMappingStmt, AlterUserMappingStmt, DropUserMappingStmt, ImportForeignSchemaStmt, CreatePolicyStmt, AlterPolicyStmt, CreateAmStmt, CreateTrigStmt, CreateEventTrigStmt, AlterEventTrigStmt, CreatePLangStmt, CreateRoleStmt, AlterRoleStmt, AlterRoleSetStmt, DropRoleStmt, CreateSeqStmt, AlterSeqStmt, DefineStmt, CreateDomainStmt, CreateOpClassStmt, CreateOpClassItem, CreateOpFamilyStmt, AlterOpFamilyStmt, DropStmt, TruncateStmt, CommentStmt, SecLabelStmt, DeclareCursorStmt, ClosePortalStmt, FetchStmt, IndexStmt, CreateStatsStmt, StatsElem, AlterStatsStmt, CreateFunctionStmt, FunctionParameter, AlterFunctionStmt, DoStmt, InlineCodeBlock, CallStmt, CallContext, RenameStmt, AlterObjectDependsStmt, AlterObjectSchemaStmt, AlterOwnerStmt, AlterOperatorStmt, AlterTypeStmt, RuleStmt, NotifyStmt, ListenStmt, UnlistenStmt, TransactionStmt, CompositeTypeStmt, CreateEnumStmt, CreateRangeStmt, AlterEnumStmt, ViewStmt, LoadStmt, CreatedbStmt, AlterDatabaseStmt, AlterDatabaseRefreshCollStmt, AlterDatabaseSetStmt, DropdbStmt, AlterSystemStmt, ClusterStmt, VacuumStmt, VacuumRelation, ExplainStmt, CreateTableAsStmt, RefreshMatViewStmt, CheckPointStmt, DiscardStmt, LockStmt, ConstraintsSetStmt, ReindexStmt, CreateConversionStmt, CreateCastStmt, CreateTransformStmt, PrepareStmt, ExecuteStmt, DeallocateStmt, DropOwnedStmt, ReassignOwnedStmt, AlterTSDictionaryStmt, AlterTSConfigurationStmt, PublicationTable, PublicationObjSpec, CreatePublicationStmt, AlterPublicationStmt, CreateSubscriptionStmt, AlterSubscriptionStmt, DropSubscriptionStmt, ScanToken } from "./types"; export default { parseResult(_p?: ParseResult): ParseResult { const _j = {} as ParseResult; diff --git a/__fixtures__/output/runtime-schema/full-features/complete-schema.json b/__fixtures__/output/runtime-schema/full-features/complete-schema.json index e862af13..ae80e25c 100644 --- a/__fixtures__/output/runtime-schema/full-features/complete-schema.json +++ b/__fixtures__/output/runtime-schema/full-features/complete-schema.json @@ -1,7 +1,7 @@ [ { "name": "A_ArrayExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "elements", @@ -21,7 +21,7 @@ }, { "name": "A_Const", - "wrapped": true, + "isNode": true, "fields": [ { "name": "boolval", @@ -76,7 +76,7 @@ }, { "name": "A_Expr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "kind", @@ -117,7 +117,7 @@ }, { "name": "A_Indices", - "wrapped": true, + "isNode": true, "fields": [ { "name": "is_slice", @@ -144,7 +144,7 @@ }, { "name": "A_Indirection", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -164,12 +164,12 @@ }, { "name": "A_Star", - "wrapped": true, + "isNode": true, "fields": [] }, { "name": "AccessPriv", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cols", @@ -189,7 +189,7 @@ }, { "name": "Aggref", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aggargtypes", @@ -328,7 +328,7 @@ }, { "name": "Alias", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aliasname", @@ -348,7 +348,7 @@ }, { "name": "AlterCollationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collname", @@ -361,7 +361,7 @@ }, { "name": "AlterDatabaseRefreshCollStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -374,7 +374,7 @@ }, { "name": "AlterDatabaseSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -394,7 +394,7 @@ }, { "name": "AlterDatabaseStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -414,7 +414,7 @@ }, { "name": "AlterDefaultPrivilegesStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -434,7 +434,7 @@ }, { "name": "AlterDomainStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -482,7 +482,7 @@ }, { "name": "AlterEnumStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "newVal", @@ -530,7 +530,7 @@ }, { "name": "AlterEventTrigStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "tgenabled", @@ -550,7 +550,7 @@ }, { "name": "AlterExtensionContentsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -584,7 +584,7 @@ }, { "name": "AlterExtensionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "extname", @@ -604,7 +604,7 @@ }, { "name": "AlterFdwStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fdwname", @@ -631,7 +631,7 @@ }, { "name": "AlterForeignServerStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "has_version", @@ -665,7 +665,7 @@ }, { "name": "AlterFunctionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "actions", @@ -692,7 +692,7 @@ }, { "name": "AlternativeSubPlan", - "wrapped": true, + "isNode": true, "fields": [ { "name": "subplans", @@ -712,7 +712,7 @@ }, { "name": "AlterObjectDependsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "extname", @@ -753,7 +753,7 @@ }, { "name": "AlterObjectSchemaStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -794,7 +794,7 @@ }, { "name": "AlterOperatorStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "opername", @@ -814,7 +814,7 @@ }, { "name": "AlterOpFamilyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -848,7 +848,7 @@ }, { "name": "AlterOwnerStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "newowner", @@ -882,7 +882,7 @@ }, { "name": "AlterPolicyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "policy_name", @@ -923,7 +923,7 @@ }, { "name": "AlterPublicationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -964,7 +964,7 @@ }, { "name": "AlterRoleSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "database", @@ -991,7 +991,7 @@ }, { "name": "AlterRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -1018,7 +1018,7 @@ }, { "name": "AlterSeqStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "for_identity", @@ -1052,7 +1052,7 @@ }, { "name": "AlterStatsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "defnames", @@ -1079,7 +1079,7 @@ }, { "name": "AlterSubscriptionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conninfo", @@ -1120,7 +1120,7 @@ }, { "name": "AlterSystemStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "setstmt", @@ -1133,7 +1133,7 @@ }, { "name": "AlterTableCmd", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -1195,7 +1195,7 @@ }, { "name": "AlterTableMoveAllStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "new_tablespacename", @@ -1236,7 +1236,7 @@ }, { "name": "AlterTableSpaceOptionsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "isReset", @@ -1263,7 +1263,7 @@ }, { "name": "AlterTableStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cmds", @@ -1297,7 +1297,7 @@ }, { "name": "AlterTSConfigurationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cfgname", @@ -1352,7 +1352,7 @@ }, { "name": "AlterTSDictionaryStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dictname", @@ -1372,7 +1372,7 @@ }, { "name": "AlterTypeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -1392,7 +1392,7 @@ }, { "name": "AlterUserMappingStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -1419,7 +1419,7 @@ }, { "name": "ArrayCoerceExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -1481,7 +1481,7 @@ }, { "name": "ArrayExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "array_collid", @@ -1536,7 +1536,7 @@ }, { "name": "BitString", - "wrapped": true, + "isNode": true, "fields": [ { "name": "bsval", @@ -1549,7 +1549,7 @@ }, { "name": "Boolean", - "wrapped": true, + "isNode": true, "fields": [ { "name": "boolval", @@ -1562,7 +1562,7 @@ }, { "name": "BooleanTest", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -1596,7 +1596,7 @@ }, { "name": "BoolExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -1630,7 +1630,7 @@ }, { "name": "CallContext", - "wrapped": true, + "isNode": true, "fields": [ { "name": "atomic", @@ -1643,7 +1643,7 @@ }, { "name": "CallStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "funccall", @@ -1670,7 +1670,7 @@ }, { "name": "CaseExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -1725,7 +1725,7 @@ }, { "name": "CaseTestExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -1759,7 +1759,7 @@ }, { "name": "CaseWhen", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -1793,12 +1793,12 @@ }, { "name": "CheckPointStmt", - "wrapped": true, + "isNode": true, "fields": [] }, { "name": "ClosePortalStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "portalname", @@ -1811,7 +1811,7 @@ }, { "name": "ClusterStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "indexname", @@ -1838,7 +1838,7 @@ }, { "name": "CoalesceExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -1879,7 +1879,7 @@ }, { "name": "CoerceToDomain", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -1934,7 +1934,7 @@ }, { "name": "CoerceToDomainValue", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -1975,7 +1975,7 @@ }, { "name": "CoerceViaIO", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -2023,7 +2023,7 @@ }, { "name": "CollateClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -2050,7 +2050,7 @@ }, { "name": "CollateExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -2084,7 +2084,7 @@ }, { "name": "ColumnDef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collClause", @@ -2223,7 +2223,7 @@ }, { "name": "ColumnRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fields", @@ -2243,7 +2243,7 @@ }, { "name": "CommentStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "comment", @@ -2270,7 +2270,7 @@ }, { "name": "CommonTableExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aliascolnames", @@ -2367,7 +2367,7 @@ }, { "name": "CompositeTypeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "coldeflist", @@ -2387,7 +2387,7 @@ }, { "name": "Constraint", - "wrapped": true, + "isNode": true, "fields": [ { "name": "access_method", @@ -2603,7 +2603,7 @@ }, { "name": "ConstraintsSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "constraints", @@ -2623,7 +2623,7 @@ }, { "name": "ConvertRowtypeExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -2664,7 +2664,7 @@ }, { "name": "CopyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "attlist", @@ -2726,7 +2726,7 @@ }, { "name": "CreateAmStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -2753,7 +2753,7 @@ }, { "name": "CreateCastStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "context", @@ -2794,7 +2794,7 @@ }, { "name": "CreateConversionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conversion_name", @@ -2835,7 +2835,7 @@ }, { "name": "CreatedbStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -2855,7 +2855,7 @@ }, { "name": "CreateDomainStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collClause", @@ -2889,7 +2889,7 @@ }, { "name": "CreateEnumStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "typeName", @@ -2909,7 +2909,7 @@ }, { "name": "CreateEventTrigStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "eventname", @@ -2943,7 +2943,7 @@ }, { "name": "CreateExtensionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "extname", @@ -2970,7 +2970,7 @@ }, { "name": "CreateFdwStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fdwname", @@ -2997,7 +2997,7 @@ }, { "name": "CreateForeignServerStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fdwname", @@ -3045,7 +3045,7 @@ }, { "name": "CreateForeignTableStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "base", @@ -3072,7 +3072,7 @@ }, { "name": "CreateFunctionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "funcname", @@ -3127,7 +3127,7 @@ }, { "name": "CreateOpClassItem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "class_args", @@ -3175,7 +3175,7 @@ }, { "name": "CreateOpClassStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -3223,7 +3223,7 @@ }, { "name": "CreateOpFamilyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -3243,7 +3243,7 @@ }, { "name": "CreatePLangStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "plhandler", @@ -3291,7 +3291,7 @@ }, { "name": "CreatePolicyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cmd_name", @@ -3346,7 +3346,7 @@ }, { "name": "CreatePublicationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "for_all_tables", @@ -3380,7 +3380,7 @@ }, { "name": "CreateRangeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "params", @@ -3400,7 +3400,7 @@ }, { "name": "CreateRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -3427,7 +3427,7 @@ }, { "name": "CreateSchemaStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "authrole", @@ -3461,7 +3461,7 @@ }, { "name": "CreateSeqStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "for_identity", @@ -3502,7 +3502,7 @@ }, { "name": "CreateStatsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "defnames", @@ -3557,7 +3557,7 @@ }, { "name": "CreateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "accessMethod", @@ -3647,7 +3647,7 @@ }, { "name": "CreateSubscriptionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conninfo", @@ -3681,7 +3681,7 @@ }, { "name": "CreateTableAsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "if_not_exists", @@ -3722,7 +3722,7 @@ }, { "name": "CreateTableSpaceStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -3756,7 +3756,7 @@ }, { "name": "CreateTransformStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fromsql", @@ -3797,7 +3797,7 @@ }, { "name": "CreateTrigStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -3908,7 +3908,7 @@ }, { "name": "CreateUserMappingStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "if_not_exists", @@ -3942,7 +3942,7 @@ }, { "name": "CTECycleClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cycle_col_list", @@ -4018,7 +4018,7 @@ }, { "name": "CTESearchClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -4052,7 +4052,7 @@ }, { "name": "CurrentOfExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cursor_name", @@ -4086,7 +4086,7 @@ }, { "name": "DeallocateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "name", @@ -4099,7 +4099,7 @@ }, { "name": "DeclareCursorStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -4126,7 +4126,7 @@ }, { "name": "DefElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -4167,7 +4167,7 @@ }, { "name": "DefineStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -4222,7 +4222,7 @@ }, { "name": "DeleteStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "relation", @@ -4263,7 +4263,7 @@ }, { "name": "DiscardStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "target", @@ -4276,7 +4276,7 @@ }, { "name": "DistinctExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -4338,7 +4338,7 @@ }, { "name": "DoStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -4351,7 +4351,7 @@ }, { "name": "DropdbStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -4378,7 +4378,7 @@ }, { "name": "DropOwnedStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -4398,7 +4398,7 @@ }, { "name": "DropRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -4418,7 +4418,7 @@ }, { "name": "DropStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -4459,7 +4459,7 @@ }, { "name": "DropSubscriptionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -4486,7 +4486,7 @@ }, { "name": "DropTableSpaceStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -4506,7 +4506,7 @@ }, { "name": "DropUserMappingStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -4533,7 +4533,7 @@ }, { "name": "ExecuteStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "name", @@ -4553,7 +4553,7 @@ }, { "name": "ExplainStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -4573,7 +4573,7 @@ }, { "name": "FetchStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "direction", @@ -4607,7 +4607,7 @@ }, { "name": "FieldSelect", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -4655,7 +4655,7 @@ }, { "name": "FieldStore", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -4696,7 +4696,7 @@ }, { "name": "Float", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fval", @@ -4709,7 +4709,7 @@ }, { "name": "FromExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fromlist", @@ -4729,7 +4729,7 @@ }, { "name": "FuncCall", - "wrapped": true, + "isNode": true, "fields": [ { "name": "agg_distinct", @@ -4812,7 +4812,7 @@ }, { "name": "FuncExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -4888,7 +4888,7 @@ }, { "name": "FunctionParameter", - "wrapped": true, + "isNode": true, "fields": [ { "name": "argType", @@ -4922,7 +4922,7 @@ }, { "name": "GrantRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -4970,7 +4970,7 @@ }, { "name": "GrantStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -5039,7 +5039,7 @@ }, { "name": "GroupingFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "agglevelsup", @@ -5080,7 +5080,7 @@ }, { "name": "GroupingSet", - "wrapped": true, + "isNode": true, "fields": [ { "name": "content", @@ -5107,7 +5107,7 @@ }, { "name": "ImportForeignSchemaStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "list_type", @@ -5155,7 +5155,7 @@ }, { "name": "IndexElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -5217,7 +5217,7 @@ }, { "name": "IndexStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "accessMethod", @@ -5391,7 +5391,7 @@ }, { "name": "InferClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conname", @@ -5425,7 +5425,7 @@ }, { "name": "InferenceElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -5459,7 +5459,7 @@ }, { "name": "InlineCodeBlock", - "wrapped": true, + "isNode": true, "fields": [ { "name": "atomic", @@ -5493,7 +5493,7 @@ }, { "name": "InsertStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cols", @@ -5548,7 +5548,7 @@ }, { "name": "Integer", - "wrapped": true, + "isNode": true, "fields": [ { "name": "ival", @@ -5561,7 +5561,7 @@ }, { "name": "IntList", - "wrapped": true, + "isNode": true, "fields": [ { "name": "items", @@ -5574,7 +5574,7 @@ }, { "name": "IntoClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "accessMethod", @@ -5636,7 +5636,7 @@ }, { "name": "JoinExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -5705,7 +5705,7 @@ }, { "name": "JsonAggConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "agg_filter", @@ -5746,7 +5746,7 @@ }, { "name": "JsonArrayAgg", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -5773,7 +5773,7 @@ }, { "name": "JsonArrayConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -5807,7 +5807,7 @@ }, { "name": "JsonArrayQueryConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -5848,7 +5848,7 @@ }, { "name": "JsonConstructorExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -5917,7 +5917,7 @@ }, { "name": "JsonFormat", - "wrapped": true, + "isNode": true, "fields": [ { "name": "encoding", @@ -5944,7 +5944,7 @@ }, { "name": "JsonIsPredicate", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -5985,7 +5985,7 @@ }, { "name": "JsonKeyValue", - "wrapped": true, + "isNode": true, "fields": [ { "name": "key", @@ -6005,7 +6005,7 @@ }, { "name": "JsonObjectAgg", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -6039,7 +6039,7 @@ }, { "name": "JsonObjectConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -6080,7 +6080,7 @@ }, { "name": "JsonOutput", - "wrapped": true, + "isNode": true, "fields": [ { "name": "returning", @@ -6100,7 +6100,7 @@ }, { "name": "JsonReturning", - "wrapped": true, + "isNode": true, "fields": [ { "name": "format", @@ -6127,7 +6127,7 @@ }, { "name": "JsonValueExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "format", @@ -6154,7 +6154,7 @@ }, { "name": "List", - "wrapped": true, + "isNode": true, "fields": [ { "name": "items", @@ -6167,7 +6167,7 @@ }, { "name": "ListenStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conditionname", @@ -6180,7 +6180,7 @@ }, { "name": "LoadStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "filename", @@ -6193,7 +6193,7 @@ }, { "name": "LockingClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "lockedRels", @@ -6220,7 +6220,7 @@ }, { "name": "LockStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "mode", @@ -6247,7 +6247,7 @@ }, { "name": "MergeAction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "commandType", @@ -6295,7 +6295,7 @@ }, { "name": "MergeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "joinCondition", @@ -6336,7 +6336,7 @@ }, { "name": "MergeWhenClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "commandType", @@ -6384,7 +6384,7 @@ }, { "name": "MinMaxExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -6439,7 +6439,7 @@ }, { "name": "MultiAssignRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "colno", @@ -6466,7 +6466,7 @@ }, { "name": "NamedArgExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -6507,7 +6507,7 @@ }, { "name": "NextValueExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "seqid", @@ -6534,7 +6534,7 @@ }, { "name": "NotifyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conditionname", @@ -6554,7 +6554,7 @@ }, { "name": "NullIfExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -6616,7 +6616,7 @@ }, { "name": "NullTest", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -6657,7 +6657,7 @@ }, { "name": "ObjectWithArgs", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args_unspecified", @@ -6691,7 +6691,7 @@ }, { "name": "OidList", - "wrapped": true, + "isNode": true, "fields": [ { "name": "items", @@ -6704,7 +6704,7 @@ }, { "name": "OnConflictClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -6745,7 +6745,7 @@ }, { "name": "OnConflictExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -6807,7 +6807,7 @@ }, { "name": "OpExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -6869,7 +6869,7 @@ }, { "name": "Param", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -6924,7 +6924,7 @@ }, { "name": "ParamRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -6944,7 +6944,7 @@ }, { "name": "ParseResult", - "wrapped": false, + "isNode": false, "fields": [ { "name": "stmts", @@ -6964,7 +6964,7 @@ }, { "name": "PartitionBoundSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "is_default", @@ -7026,7 +7026,7 @@ }, { "name": "PartitionCmd", - "wrapped": true, + "isNode": true, "fields": [ { "name": "bound", @@ -7053,7 +7053,7 @@ }, { "name": "PartitionElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -7094,7 +7094,7 @@ }, { "name": "PartitionRangeDatum", - "wrapped": true, + "isNode": true, "fields": [ { "name": "kind", @@ -7121,7 +7121,7 @@ }, { "name": "PartitionSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -7148,7 +7148,7 @@ }, { "name": "PLAssignStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "indirection", @@ -7189,7 +7189,7 @@ }, { "name": "PrepareStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "argtypes", @@ -7216,7 +7216,7 @@ }, { "name": "PublicationObjSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -7250,7 +7250,7 @@ }, { "name": "PublicationTable", - "wrapped": true, + "isNode": true, "fields": [ { "name": "columns", @@ -7277,7 +7277,7 @@ }, { "name": "Query", - "wrapped": true, + "isNode": true, "fields": [ { "name": "canSetTag", @@ -7570,7 +7570,7 @@ }, { "name": "RangeFunction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -7618,7 +7618,7 @@ }, { "name": "RangeSubselect", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -7645,7 +7645,7 @@ }, { "name": "RangeTableFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -7700,7 +7700,7 @@ }, { "name": "RangeTableFuncCol", - "wrapped": true, + "isNode": true, "fields": [ { "name": "coldefexpr", @@ -7755,7 +7755,7 @@ }, { "name": "RangeTableSample", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -7796,7 +7796,7 @@ }, { "name": "RangeTblEntry", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -8026,7 +8026,7 @@ }, { "name": "RangeTblFunction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "funccolcollations", @@ -8081,7 +8081,7 @@ }, { "name": "RangeTblRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "rtindex", @@ -8094,7 +8094,7 @@ }, { "name": "RangeVar", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -8149,7 +8149,7 @@ }, { "name": "RawStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "stmt", @@ -8176,7 +8176,7 @@ }, { "name": "ReassignOwnedStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "newrole", @@ -8196,7 +8196,7 @@ }, { "name": "RefreshMatViewStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "concurrent", @@ -8223,7 +8223,7 @@ }, { "name": "ReindexStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "kind", @@ -8257,7 +8257,7 @@ }, { "name": "RelabelType", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -8312,7 +8312,7 @@ }, { "name": "RenameStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -8374,7 +8374,7 @@ }, { "name": "ReplicaIdentityStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "identity_type", @@ -8394,7 +8394,7 @@ }, { "name": "ResTarget", - "wrapped": true, + "isNode": true, "fields": [ { "name": "indirection", @@ -8428,7 +8428,7 @@ }, { "name": "ReturnStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "returnval", @@ -8441,7 +8441,7 @@ }, { "name": "RoleSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -8468,7 +8468,7 @@ }, { "name": "RowCompareExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "inputcollids", @@ -8523,7 +8523,7 @@ }, { "name": "RowExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -8571,7 +8571,7 @@ }, { "name": "RowMarkClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "pushedDown", @@ -8605,7 +8605,7 @@ }, { "name": "RTEPermissionInfo", - "wrapped": true, + "isNode": true, "fields": [ { "name": "checkAsUser", @@ -8660,7 +8660,7 @@ }, { "name": "RuleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "actions", @@ -8715,7 +8715,7 @@ }, { "name": "ScalarArrayOpExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -8763,7 +8763,7 @@ }, { "name": "ScanResult", - "wrapped": false, + "isNode": false, "fields": [ { "name": "tokens", @@ -8783,7 +8783,7 @@ }, { "name": "ScanToken", - "wrapped": false, + "isNode": false, "fields": [ { "name": "end", @@ -8817,7 +8817,7 @@ }, { "name": "SecLabelStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "label", @@ -8851,7 +8851,7 @@ }, { "name": "SelectStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "all", @@ -8997,7 +8997,7 @@ }, { "name": "SetOperationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "all", @@ -9059,7 +9059,7 @@ }, { "name": "SetToDefault", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -9100,7 +9100,7 @@ }, { "name": "SortBy", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -9141,7 +9141,7 @@ }, { "name": "SortGroupClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "eqop", @@ -9182,7 +9182,7 @@ }, { "name": "SQLValueFunction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -9223,7 +9223,7 @@ }, { "name": "StatsElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -9243,7 +9243,7 @@ }, { "name": "String", - "wrapped": true, + "isNode": true, "fields": [ { "name": "sval", @@ -9256,7 +9256,7 @@ }, { "name": "SubLink", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -9311,7 +9311,7 @@ }, { "name": "SubPlan", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -9436,7 +9436,7 @@ }, { "name": "SubscriptingRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "refassgnexpr", @@ -9512,7 +9512,7 @@ }, { "name": "TableFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "colcollations", @@ -9609,7 +9609,7 @@ }, { "name": "TableLikeClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -9636,7 +9636,7 @@ }, { "name": "TableSampleClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -9663,7 +9663,7 @@ }, { "name": "TargetEntry", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -9725,7 +9725,7 @@ }, { "name": "TransactionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "chain", @@ -9766,7 +9766,7 @@ }, { "name": "TriggerTransition", - "wrapped": true, + "isNode": true, "fields": [ { "name": "isNew", @@ -9793,7 +9793,7 @@ }, { "name": "TruncateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -9820,7 +9820,7 @@ }, { "name": "TypeCast", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -9847,7 +9847,7 @@ }, { "name": "TypeName", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arrayBounds", @@ -9909,7 +9909,7 @@ }, { "name": "UnlistenStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conditionname", @@ -9922,7 +9922,7 @@ }, { "name": "UpdateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fromClause", @@ -9970,7 +9970,7 @@ }, { "name": "VacuumRelation", - "wrapped": true, + "isNode": true, "fields": [ { "name": "oid", @@ -9997,7 +9997,7 @@ }, { "name": "VacuumStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "is_vacuumcmd", @@ -10024,7 +10024,7 @@ }, { "name": "Var", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -10093,7 +10093,7 @@ }, { "name": "VariableSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -10127,7 +10127,7 @@ }, { "name": "VariableShowStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "name", @@ -10140,7 +10140,7 @@ }, { "name": "ViewStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aliases", @@ -10188,7 +10188,7 @@ }, { "name": "WindowClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "copiedOrder", @@ -10299,7 +10299,7 @@ }, { "name": "WindowDef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "endOffset", @@ -10361,7 +10361,7 @@ }, { "name": "WindowFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aggfilter", @@ -10444,7 +10444,7 @@ }, { "name": "WithCheckOption", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cascaded", @@ -10485,7 +10485,7 @@ }, { "name": "WithClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "ctes", @@ -10512,7 +10512,7 @@ }, { "name": "XmlExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg_names", @@ -10595,7 +10595,7 @@ }, { "name": "XmlSerialize", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", diff --git a/__fixtures__/output/runtime-schema/full-features/types.ts b/__fixtures__/output/runtime-schema/full-features/types.ts index 4dbf99c8..cf5f2c36 100644 --- a/__fixtures__/output/runtime-schema/full-features/types.ts +++ b/__fixtures__/output/runtime-schema/full-features/types.ts @@ -4,7 +4,517 @@ * and run the pg-proto-parser generate command to regenerate this file. */ import { OverridingKind, QuerySource, SortByDir, SortByNulls, SetQuantifier, A_Expr_Kind, RoleSpecType, TableLikeOption, DefElemAction, PartitionStrategy, PartitionRangeDatumKind, RTEKind, WCOKind, GroupingSetKind, CTEMaterialize, SetOperation, ObjectType, DropBehavior, AlterTableType, GrantTargetType, VariableSetKind, ConstrType, ImportForeignSchemaType, RoleStmtType, FetchDirection, FunctionParameterMode, TransactionStmtKind, ViewCheckOption, DiscardMode, ReindexObjectType, AlterTSConfigType, PublicationObjSpecType, AlterPublicationAction, AlterSubscriptionType, OnCommitAction, ParamKind, CoercionContext, CoercionForm, BoolExprType, SubLinkType, RowCompareType, MinMaxOp, SQLValueFunctionOp, XmlExprOp, XmlOptionType, JsonEncoding, JsonFormatType, JsonConstructorType, JsonValueType, NullTestType, BoolTestType, CmdType, JoinType, AggStrategy, AggSplit, SetOpCmd, SetOpStrategy, OnConflictAction, LimitOption, LockClauseStrength, LockWaitPolicy, LockTupleMode, KeywordKind, Token } from "./enums"; -export type Node = ParseResult | ScanResult | Integer | Float | Boolean | String | BitString | List | OidList | IntList | A_Const | Alias | RangeVar | TableFunc | IntoClause | Var | Param | Aggref | GroupingFunc | WindowFunc | SubscriptingRef | FuncExpr | NamedArgExpr | OpExpr | DistinctExpr | NullIfExpr | ScalarArrayOpExpr | BoolExpr | SubLink | SubPlan | AlternativeSubPlan | FieldSelect | FieldStore | RelabelType | CoerceViaIO | ArrayCoerceExpr | ConvertRowtypeExpr | CollateExpr | CaseExpr | CaseWhen | CaseTestExpr | ArrayExpr | RowExpr | RowCompareExpr | CoalesceExpr | MinMaxExpr | SQLValueFunction | XmlExpr | JsonFormat | JsonReturning | JsonValueExpr | JsonConstructorExpr | JsonIsPredicate | NullTest | BooleanTest | CoerceToDomain | CoerceToDomainValue | SetToDefault | CurrentOfExpr | NextValueExpr | InferenceElem | TargetEntry | RangeTblRef | JoinExpr | FromExpr | OnConflictExpr | Query | TypeName | ColumnRef | ParamRef | A_Expr | TypeCast | CollateClause | RoleSpec | FuncCall | A_Star | A_Indices | A_Indirection | A_ArrayExpr | ResTarget | MultiAssignRef | SortBy | WindowDef | RangeSubselect | RangeFunction | RangeTableFunc | RangeTableFuncCol | RangeTableSample | ColumnDef | TableLikeClause | IndexElem | DefElem | LockingClause | XmlSerialize | PartitionElem | PartitionSpec | PartitionBoundSpec | PartitionRangeDatum | PartitionCmd | RangeTblEntry | RTEPermissionInfo | RangeTblFunction | TableSampleClause | WithCheckOption | SortGroupClause | GroupingSet | WindowClause | RowMarkClause | WithClause | InferClause | OnConflictClause | CTESearchClause | CTECycleClause | CommonTableExpr | MergeWhenClause | MergeAction | TriggerTransition | JsonOutput | JsonKeyValue | JsonObjectConstructor | JsonArrayConstructor | JsonArrayQueryConstructor | JsonAggConstructor | JsonObjectAgg | JsonArrayAgg | RawStmt | InsertStmt | DeleteStmt | UpdateStmt | MergeStmt | SelectStmt | SetOperationStmt | ReturnStmt | PLAssignStmt | CreateSchemaStmt | AlterTableStmt | ReplicaIdentityStmt | AlterTableCmd | AlterCollationStmt | AlterDomainStmt | GrantStmt | ObjectWithArgs | AccessPriv | GrantRoleStmt | AlterDefaultPrivilegesStmt | CopyStmt | VariableSetStmt | VariableShowStmt | CreateStmt | Constraint | CreateTableSpaceStmt | DropTableSpaceStmt | AlterTableSpaceOptionsStmt | AlterTableMoveAllStmt | CreateExtensionStmt | AlterExtensionStmt | AlterExtensionContentsStmt | CreateFdwStmt | AlterFdwStmt | CreateForeignServerStmt | AlterForeignServerStmt | CreateForeignTableStmt | CreateUserMappingStmt | AlterUserMappingStmt | DropUserMappingStmt | ImportForeignSchemaStmt | CreatePolicyStmt | AlterPolicyStmt | CreateAmStmt | CreateTrigStmt | CreateEventTrigStmt | AlterEventTrigStmt | CreatePLangStmt | CreateRoleStmt | AlterRoleStmt | AlterRoleSetStmt | DropRoleStmt | CreateSeqStmt | AlterSeqStmt | DefineStmt | CreateDomainStmt | CreateOpClassStmt | CreateOpClassItem | CreateOpFamilyStmt | AlterOpFamilyStmt | DropStmt | TruncateStmt | CommentStmt | SecLabelStmt | DeclareCursorStmt | ClosePortalStmt | FetchStmt | IndexStmt | CreateStatsStmt | StatsElem | AlterStatsStmt | CreateFunctionStmt | FunctionParameter | AlterFunctionStmt | DoStmt | InlineCodeBlock | CallStmt | CallContext | RenameStmt | AlterObjectDependsStmt | AlterObjectSchemaStmt | AlterOwnerStmt | AlterOperatorStmt | AlterTypeStmt | RuleStmt | NotifyStmt | ListenStmt | UnlistenStmt | TransactionStmt | CompositeTypeStmt | CreateEnumStmt | CreateRangeStmt | AlterEnumStmt | ViewStmt | LoadStmt | CreatedbStmt | AlterDatabaseStmt | AlterDatabaseRefreshCollStmt | AlterDatabaseSetStmt | DropdbStmt | AlterSystemStmt | ClusterStmt | VacuumStmt | VacuumRelation | ExplainStmt | CreateTableAsStmt | RefreshMatViewStmt | CheckPointStmt | DiscardStmt | LockStmt | ConstraintsSetStmt | ReindexStmt | CreateConversionStmt | CreateCastStmt | CreateTransformStmt | PrepareStmt | ExecuteStmt | DeallocateStmt | DropOwnedStmt | ReassignOwnedStmt | AlterTSDictionaryStmt | AlterTSConfigurationStmt | PublicationTable | PublicationObjSpec | CreatePublicationStmt | AlterPublicationStmt | CreateSubscriptionStmt | AlterSubscriptionStmt | DropSubscriptionStmt | ScanToken; +export type Node = { + ParseResult: ParseResult; +} | { + ScanResult: ScanResult; +} | { + Integer: Integer; +} | { + Float: Float; +} | { + Boolean: Boolean; +} | { + String: String; +} | { + BitString: BitString; +} | { + List: List; +} | { + OidList: OidList; +} | { + IntList: IntList; +} | { + A_Const: A_Const; +} | { + Alias: Alias; +} | { + RangeVar: RangeVar; +} | { + TableFunc: TableFunc; +} | { + IntoClause: IntoClause; +} | { + Var: Var; +} | { + Param: Param; +} | { + Aggref: Aggref; +} | { + GroupingFunc: GroupingFunc; +} | { + WindowFunc: WindowFunc; +} | { + SubscriptingRef: SubscriptingRef; +} | { + FuncExpr: FuncExpr; +} | { + NamedArgExpr: NamedArgExpr; +} | { + OpExpr: OpExpr; +} | { + DistinctExpr: DistinctExpr; +} | { + NullIfExpr: NullIfExpr; +} | { + ScalarArrayOpExpr: ScalarArrayOpExpr; +} | { + BoolExpr: BoolExpr; +} | { + SubLink: SubLink; +} | { + SubPlan: SubPlan; +} | { + AlternativeSubPlan: AlternativeSubPlan; +} | { + FieldSelect: FieldSelect; +} | { + FieldStore: FieldStore; +} | { + RelabelType: RelabelType; +} | { + CoerceViaIO: CoerceViaIO; +} | { + ArrayCoerceExpr: ArrayCoerceExpr; +} | { + ConvertRowtypeExpr: ConvertRowtypeExpr; +} | { + CollateExpr: CollateExpr; +} | { + CaseExpr: CaseExpr; +} | { + CaseWhen: CaseWhen; +} | { + CaseTestExpr: CaseTestExpr; +} | { + ArrayExpr: ArrayExpr; +} | { + RowExpr: RowExpr; +} | { + RowCompareExpr: RowCompareExpr; +} | { + CoalesceExpr: CoalesceExpr; +} | { + MinMaxExpr: MinMaxExpr; +} | { + SQLValueFunction: SQLValueFunction; +} | { + XmlExpr: XmlExpr; +} | { + JsonFormat: JsonFormat; +} | { + JsonReturning: JsonReturning; +} | { + JsonValueExpr: JsonValueExpr; +} | { + JsonConstructorExpr: JsonConstructorExpr; +} | { + JsonIsPredicate: JsonIsPredicate; +} | { + NullTest: NullTest; +} | { + BooleanTest: BooleanTest; +} | { + CoerceToDomain: CoerceToDomain; +} | { + CoerceToDomainValue: CoerceToDomainValue; +} | { + SetToDefault: SetToDefault; +} | { + CurrentOfExpr: CurrentOfExpr; +} | { + NextValueExpr: NextValueExpr; +} | { + InferenceElem: InferenceElem; +} | { + TargetEntry: TargetEntry; +} | { + RangeTblRef: RangeTblRef; +} | { + JoinExpr: JoinExpr; +} | { + FromExpr: FromExpr; +} | { + OnConflictExpr: OnConflictExpr; +} | { + Query: Query; +} | { + TypeName: TypeName; +} | { + ColumnRef: ColumnRef; +} | { + ParamRef: ParamRef; +} | { + A_Expr: A_Expr; +} | { + TypeCast: TypeCast; +} | { + CollateClause: CollateClause; +} | { + RoleSpec: RoleSpec; +} | { + FuncCall: FuncCall; +} | { + A_Star: A_Star; +} | { + A_Indices: A_Indices; +} | { + A_Indirection: A_Indirection; +} | { + A_ArrayExpr: A_ArrayExpr; +} | { + ResTarget: ResTarget; +} | { + MultiAssignRef: MultiAssignRef; +} | { + SortBy: SortBy; +} | { + WindowDef: WindowDef; +} | { + RangeSubselect: RangeSubselect; +} | { + RangeFunction: RangeFunction; +} | { + RangeTableFunc: RangeTableFunc; +} | { + RangeTableFuncCol: RangeTableFuncCol; +} | { + RangeTableSample: RangeTableSample; +} | { + ColumnDef: ColumnDef; +} | { + TableLikeClause: TableLikeClause; +} | { + IndexElem: IndexElem; +} | { + DefElem: DefElem; +} | { + LockingClause: LockingClause; +} | { + XmlSerialize: XmlSerialize; +} | { + PartitionElem: PartitionElem; +} | { + PartitionSpec: PartitionSpec; +} | { + PartitionBoundSpec: PartitionBoundSpec; +} | { + PartitionRangeDatum: PartitionRangeDatum; +} | { + PartitionCmd: PartitionCmd; +} | { + RangeTblEntry: RangeTblEntry; +} | { + RTEPermissionInfo: RTEPermissionInfo; +} | { + RangeTblFunction: RangeTblFunction; +} | { + TableSampleClause: TableSampleClause; +} | { + WithCheckOption: WithCheckOption; +} | { + SortGroupClause: SortGroupClause; +} | { + GroupingSet: GroupingSet; +} | { + WindowClause: WindowClause; +} | { + RowMarkClause: RowMarkClause; +} | { + WithClause: WithClause; +} | { + InferClause: InferClause; +} | { + OnConflictClause: OnConflictClause; +} | { + CTESearchClause: CTESearchClause; +} | { + CTECycleClause: CTECycleClause; +} | { + CommonTableExpr: CommonTableExpr; +} | { + MergeWhenClause: MergeWhenClause; +} | { + MergeAction: MergeAction; +} | { + TriggerTransition: TriggerTransition; +} | { + JsonOutput: JsonOutput; +} | { + JsonKeyValue: JsonKeyValue; +} | { + JsonObjectConstructor: JsonObjectConstructor; +} | { + JsonArrayConstructor: JsonArrayConstructor; +} | { + JsonArrayQueryConstructor: JsonArrayQueryConstructor; +} | { + JsonAggConstructor: JsonAggConstructor; +} | { + JsonObjectAgg: JsonObjectAgg; +} | { + JsonArrayAgg: JsonArrayAgg; +} | { + RawStmt: RawStmt; +} | { + InsertStmt: InsertStmt; +} | { + DeleteStmt: DeleteStmt; +} | { + UpdateStmt: UpdateStmt; +} | { + MergeStmt: MergeStmt; +} | { + SelectStmt: SelectStmt; +} | { + SetOperationStmt: SetOperationStmt; +} | { + ReturnStmt: ReturnStmt; +} | { + PLAssignStmt: PLAssignStmt; +} | { + CreateSchemaStmt: CreateSchemaStmt; +} | { + AlterTableStmt: AlterTableStmt; +} | { + ReplicaIdentityStmt: ReplicaIdentityStmt; +} | { + AlterTableCmd: AlterTableCmd; +} | { + AlterCollationStmt: AlterCollationStmt; +} | { + AlterDomainStmt: AlterDomainStmt; +} | { + GrantStmt: GrantStmt; +} | { + ObjectWithArgs: ObjectWithArgs; +} | { + AccessPriv: AccessPriv; +} | { + GrantRoleStmt: GrantRoleStmt; +} | { + AlterDefaultPrivilegesStmt: AlterDefaultPrivilegesStmt; +} | { + CopyStmt: CopyStmt; +} | { + VariableSetStmt: VariableSetStmt; +} | { + VariableShowStmt: VariableShowStmt; +} | { + CreateStmt: CreateStmt; +} | { + Constraint: Constraint; +} | { + CreateTableSpaceStmt: CreateTableSpaceStmt; +} | { + DropTableSpaceStmt: DropTableSpaceStmt; +} | { + AlterTableSpaceOptionsStmt: AlterTableSpaceOptionsStmt; +} | { + AlterTableMoveAllStmt: AlterTableMoveAllStmt; +} | { + CreateExtensionStmt: CreateExtensionStmt; +} | { + AlterExtensionStmt: AlterExtensionStmt; +} | { + AlterExtensionContentsStmt: AlterExtensionContentsStmt; +} | { + CreateFdwStmt: CreateFdwStmt; +} | { + AlterFdwStmt: AlterFdwStmt; +} | { + CreateForeignServerStmt: CreateForeignServerStmt; +} | { + AlterForeignServerStmt: AlterForeignServerStmt; +} | { + CreateForeignTableStmt: CreateForeignTableStmt; +} | { + CreateUserMappingStmt: CreateUserMappingStmt; +} | { + AlterUserMappingStmt: AlterUserMappingStmt; +} | { + DropUserMappingStmt: DropUserMappingStmt; +} | { + ImportForeignSchemaStmt: ImportForeignSchemaStmt; +} | { + CreatePolicyStmt: CreatePolicyStmt; +} | { + AlterPolicyStmt: AlterPolicyStmt; +} | { + CreateAmStmt: CreateAmStmt; +} | { + CreateTrigStmt: CreateTrigStmt; +} | { + CreateEventTrigStmt: CreateEventTrigStmt; +} | { + AlterEventTrigStmt: AlterEventTrigStmt; +} | { + CreatePLangStmt: CreatePLangStmt; +} | { + CreateRoleStmt: CreateRoleStmt; +} | { + AlterRoleStmt: AlterRoleStmt; +} | { + AlterRoleSetStmt: AlterRoleSetStmt; +} | { + DropRoleStmt: DropRoleStmt; +} | { + CreateSeqStmt: CreateSeqStmt; +} | { + AlterSeqStmt: AlterSeqStmt; +} | { + DefineStmt: DefineStmt; +} | { + CreateDomainStmt: CreateDomainStmt; +} | { + CreateOpClassStmt: CreateOpClassStmt; +} | { + CreateOpClassItem: CreateOpClassItem; +} | { + CreateOpFamilyStmt: CreateOpFamilyStmt; +} | { + AlterOpFamilyStmt: AlterOpFamilyStmt; +} | { + DropStmt: DropStmt; +} | { + TruncateStmt: TruncateStmt; +} | { + CommentStmt: CommentStmt; +} | { + SecLabelStmt: SecLabelStmt; +} | { + DeclareCursorStmt: DeclareCursorStmt; +} | { + ClosePortalStmt: ClosePortalStmt; +} | { + FetchStmt: FetchStmt; +} | { + IndexStmt: IndexStmt; +} | { + CreateStatsStmt: CreateStatsStmt; +} | { + StatsElem: StatsElem; +} | { + AlterStatsStmt: AlterStatsStmt; +} | { + CreateFunctionStmt: CreateFunctionStmt; +} | { + FunctionParameter: FunctionParameter; +} | { + AlterFunctionStmt: AlterFunctionStmt; +} | { + DoStmt: DoStmt; +} | { + InlineCodeBlock: InlineCodeBlock; +} | { + CallStmt: CallStmt; +} | { + CallContext: CallContext; +} | { + RenameStmt: RenameStmt; +} | { + AlterObjectDependsStmt: AlterObjectDependsStmt; +} | { + AlterObjectSchemaStmt: AlterObjectSchemaStmt; +} | { + AlterOwnerStmt: AlterOwnerStmt; +} | { + AlterOperatorStmt: AlterOperatorStmt; +} | { + AlterTypeStmt: AlterTypeStmt; +} | { + RuleStmt: RuleStmt; +} | { + NotifyStmt: NotifyStmt; +} | { + ListenStmt: ListenStmt; +} | { + UnlistenStmt: UnlistenStmt; +} | { + TransactionStmt: TransactionStmt; +} | { + CompositeTypeStmt: CompositeTypeStmt; +} | { + CreateEnumStmt: CreateEnumStmt; +} | { + CreateRangeStmt: CreateRangeStmt; +} | { + AlterEnumStmt: AlterEnumStmt; +} | { + ViewStmt: ViewStmt; +} | { + LoadStmt: LoadStmt; +} | { + CreatedbStmt: CreatedbStmt; +} | { + AlterDatabaseStmt: AlterDatabaseStmt; +} | { + AlterDatabaseRefreshCollStmt: AlterDatabaseRefreshCollStmt; +} | { + AlterDatabaseSetStmt: AlterDatabaseSetStmt; +} | { + DropdbStmt: DropdbStmt; +} | { + AlterSystemStmt: AlterSystemStmt; +} | { + ClusterStmt: ClusterStmt; +} | { + VacuumStmt: VacuumStmt; +} | { + VacuumRelation: VacuumRelation; +} | { + ExplainStmt: ExplainStmt; +} | { + CreateTableAsStmt: CreateTableAsStmt; +} | { + RefreshMatViewStmt: RefreshMatViewStmt; +} | { + CheckPointStmt: CheckPointStmt; +} | { + DiscardStmt: DiscardStmt; +} | { + LockStmt: LockStmt; +} | { + ConstraintsSetStmt: ConstraintsSetStmt; +} | { + ReindexStmt: ReindexStmt; +} | { + CreateConversionStmt: CreateConversionStmt; +} | { + CreateCastStmt: CreateCastStmt; +} | { + CreateTransformStmt: CreateTransformStmt; +} | { + PrepareStmt: PrepareStmt; +} | { + ExecuteStmt: ExecuteStmt; +} | { + DeallocateStmt: DeallocateStmt; +} | { + DropOwnedStmt: DropOwnedStmt; +} | { + ReassignOwnedStmt: ReassignOwnedStmt; +} | { + AlterTSDictionaryStmt: AlterTSDictionaryStmt; +} | { + AlterTSConfigurationStmt: AlterTSConfigurationStmt; +} | { + PublicationTable: PublicationTable; +} | { + PublicationObjSpec: PublicationObjSpec; +} | { + CreatePublicationStmt: CreatePublicationStmt; +} | { + AlterPublicationStmt: AlterPublicationStmt; +} | { + CreateSubscriptionStmt: CreateSubscriptionStmt; +} | { + AlterSubscriptionStmt: AlterSubscriptionStmt; +} | { + DropSubscriptionStmt: DropSubscriptionStmt; +} | { + ScanToken: ScanToken; +}; export interface ParseResult { version?: number; stmts?: RawStmt[]; diff --git a/__fixtures__/output/runtime-schema/json/custom-filename/custom-node-specs.json b/__fixtures__/output/runtime-schema/json/custom-filename/custom-node-specs.json index e862af13..ae80e25c 100644 --- a/__fixtures__/output/runtime-schema/json/custom-filename/custom-node-specs.json +++ b/__fixtures__/output/runtime-schema/json/custom-filename/custom-node-specs.json @@ -1,7 +1,7 @@ [ { "name": "A_ArrayExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "elements", @@ -21,7 +21,7 @@ }, { "name": "A_Const", - "wrapped": true, + "isNode": true, "fields": [ { "name": "boolval", @@ -76,7 +76,7 @@ }, { "name": "A_Expr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "kind", @@ -117,7 +117,7 @@ }, { "name": "A_Indices", - "wrapped": true, + "isNode": true, "fields": [ { "name": "is_slice", @@ -144,7 +144,7 @@ }, { "name": "A_Indirection", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -164,12 +164,12 @@ }, { "name": "A_Star", - "wrapped": true, + "isNode": true, "fields": [] }, { "name": "AccessPriv", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cols", @@ -189,7 +189,7 @@ }, { "name": "Aggref", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aggargtypes", @@ -328,7 +328,7 @@ }, { "name": "Alias", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aliasname", @@ -348,7 +348,7 @@ }, { "name": "AlterCollationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collname", @@ -361,7 +361,7 @@ }, { "name": "AlterDatabaseRefreshCollStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -374,7 +374,7 @@ }, { "name": "AlterDatabaseSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -394,7 +394,7 @@ }, { "name": "AlterDatabaseStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -414,7 +414,7 @@ }, { "name": "AlterDefaultPrivilegesStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -434,7 +434,7 @@ }, { "name": "AlterDomainStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -482,7 +482,7 @@ }, { "name": "AlterEnumStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "newVal", @@ -530,7 +530,7 @@ }, { "name": "AlterEventTrigStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "tgenabled", @@ -550,7 +550,7 @@ }, { "name": "AlterExtensionContentsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -584,7 +584,7 @@ }, { "name": "AlterExtensionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "extname", @@ -604,7 +604,7 @@ }, { "name": "AlterFdwStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fdwname", @@ -631,7 +631,7 @@ }, { "name": "AlterForeignServerStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "has_version", @@ -665,7 +665,7 @@ }, { "name": "AlterFunctionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "actions", @@ -692,7 +692,7 @@ }, { "name": "AlternativeSubPlan", - "wrapped": true, + "isNode": true, "fields": [ { "name": "subplans", @@ -712,7 +712,7 @@ }, { "name": "AlterObjectDependsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "extname", @@ -753,7 +753,7 @@ }, { "name": "AlterObjectSchemaStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -794,7 +794,7 @@ }, { "name": "AlterOperatorStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "opername", @@ -814,7 +814,7 @@ }, { "name": "AlterOpFamilyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -848,7 +848,7 @@ }, { "name": "AlterOwnerStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "newowner", @@ -882,7 +882,7 @@ }, { "name": "AlterPolicyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "policy_name", @@ -923,7 +923,7 @@ }, { "name": "AlterPublicationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -964,7 +964,7 @@ }, { "name": "AlterRoleSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "database", @@ -991,7 +991,7 @@ }, { "name": "AlterRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -1018,7 +1018,7 @@ }, { "name": "AlterSeqStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "for_identity", @@ -1052,7 +1052,7 @@ }, { "name": "AlterStatsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "defnames", @@ -1079,7 +1079,7 @@ }, { "name": "AlterSubscriptionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conninfo", @@ -1120,7 +1120,7 @@ }, { "name": "AlterSystemStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "setstmt", @@ -1133,7 +1133,7 @@ }, { "name": "AlterTableCmd", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -1195,7 +1195,7 @@ }, { "name": "AlterTableMoveAllStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "new_tablespacename", @@ -1236,7 +1236,7 @@ }, { "name": "AlterTableSpaceOptionsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "isReset", @@ -1263,7 +1263,7 @@ }, { "name": "AlterTableStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cmds", @@ -1297,7 +1297,7 @@ }, { "name": "AlterTSConfigurationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cfgname", @@ -1352,7 +1352,7 @@ }, { "name": "AlterTSDictionaryStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dictname", @@ -1372,7 +1372,7 @@ }, { "name": "AlterTypeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -1392,7 +1392,7 @@ }, { "name": "AlterUserMappingStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -1419,7 +1419,7 @@ }, { "name": "ArrayCoerceExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -1481,7 +1481,7 @@ }, { "name": "ArrayExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "array_collid", @@ -1536,7 +1536,7 @@ }, { "name": "BitString", - "wrapped": true, + "isNode": true, "fields": [ { "name": "bsval", @@ -1549,7 +1549,7 @@ }, { "name": "Boolean", - "wrapped": true, + "isNode": true, "fields": [ { "name": "boolval", @@ -1562,7 +1562,7 @@ }, { "name": "BooleanTest", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -1596,7 +1596,7 @@ }, { "name": "BoolExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -1630,7 +1630,7 @@ }, { "name": "CallContext", - "wrapped": true, + "isNode": true, "fields": [ { "name": "atomic", @@ -1643,7 +1643,7 @@ }, { "name": "CallStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "funccall", @@ -1670,7 +1670,7 @@ }, { "name": "CaseExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -1725,7 +1725,7 @@ }, { "name": "CaseTestExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -1759,7 +1759,7 @@ }, { "name": "CaseWhen", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -1793,12 +1793,12 @@ }, { "name": "CheckPointStmt", - "wrapped": true, + "isNode": true, "fields": [] }, { "name": "ClosePortalStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "portalname", @@ -1811,7 +1811,7 @@ }, { "name": "ClusterStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "indexname", @@ -1838,7 +1838,7 @@ }, { "name": "CoalesceExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -1879,7 +1879,7 @@ }, { "name": "CoerceToDomain", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -1934,7 +1934,7 @@ }, { "name": "CoerceToDomainValue", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -1975,7 +1975,7 @@ }, { "name": "CoerceViaIO", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -2023,7 +2023,7 @@ }, { "name": "CollateClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -2050,7 +2050,7 @@ }, { "name": "CollateExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -2084,7 +2084,7 @@ }, { "name": "ColumnDef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collClause", @@ -2223,7 +2223,7 @@ }, { "name": "ColumnRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fields", @@ -2243,7 +2243,7 @@ }, { "name": "CommentStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "comment", @@ -2270,7 +2270,7 @@ }, { "name": "CommonTableExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aliascolnames", @@ -2367,7 +2367,7 @@ }, { "name": "CompositeTypeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "coldeflist", @@ -2387,7 +2387,7 @@ }, { "name": "Constraint", - "wrapped": true, + "isNode": true, "fields": [ { "name": "access_method", @@ -2603,7 +2603,7 @@ }, { "name": "ConstraintsSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "constraints", @@ -2623,7 +2623,7 @@ }, { "name": "ConvertRowtypeExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -2664,7 +2664,7 @@ }, { "name": "CopyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "attlist", @@ -2726,7 +2726,7 @@ }, { "name": "CreateAmStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -2753,7 +2753,7 @@ }, { "name": "CreateCastStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "context", @@ -2794,7 +2794,7 @@ }, { "name": "CreateConversionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conversion_name", @@ -2835,7 +2835,7 @@ }, { "name": "CreatedbStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -2855,7 +2855,7 @@ }, { "name": "CreateDomainStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collClause", @@ -2889,7 +2889,7 @@ }, { "name": "CreateEnumStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "typeName", @@ -2909,7 +2909,7 @@ }, { "name": "CreateEventTrigStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "eventname", @@ -2943,7 +2943,7 @@ }, { "name": "CreateExtensionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "extname", @@ -2970,7 +2970,7 @@ }, { "name": "CreateFdwStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fdwname", @@ -2997,7 +2997,7 @@ }, { "name": "CreateForeignServerStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fdwname", @@ -3045,7 +3045,7 @@ }, { "name": "CreateForeignTableStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "base", @@ -3072,7 +3072,7 @@ }, { "name": "CreateFunctionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "funcname", @@ -3127,7 +3127,7 @@ }, { "name": "CreateOpClassItem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "class_args", @@ -3175,7 +3175,7 @@ }, { "name": "CreateOpClassStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -3223,7 +3223,7 @@ }, { "name": "CreateOpFamilyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -3243,7 +3243,7 @@ }, { "name": "CreatePLangStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "plhandler", @@ -3291,7 +3291,7 @@ }, { "name": "CreatePolicyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cmd_name", @@ -3346,7 +3346,7 @@ }, { "name": "CreatePublicationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "for_all_tables", @@ -3380,7 +3380,7 @@ }, { "name": "CreateRangeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "params", @@ -3400,7 +3400,7 @@ }, { "name": "CreateRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -3427,7 +3427,7 @@ }, { "name": "CreateSchemaStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "authrole", @@ -3461,7 +3461,7 @@ }, { "name": "CreateSeqStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "for_identity", @@ -3502,7 +3502,7 @@ }, { "name": "CreateStatsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "defnames", @@ -3557,7 +3557,7 @@ }, { "name": "CreateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "accessMethod", @@ -3647,7 +3647,7 @@ }, { "name": "CreateSubscriptionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conninfo", @@ -3681,7 +3681,7 @@ }, { "name": "CreateTableAsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "if_not_exists", @@ -3722,7 +3722,7 @@ }, { "name": "CreateTableSpaceStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -3756,7 +3756,7 @@ }, { "name": "CreateTransformStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fromsql", @@ -3797,7 +3797,7 @@ }, { "name": "CreateTrigStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -3908,7 +3908,7 @@ }, { "name": "CreateUserMappingStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "if_not_exists", @@ -3942,7 +3942,7 @@ }, { "name": "CTECycleClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cycle_col_list", @@ -4018,7 +4018,7 @@ }, { "name": "CTESearchClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -4052,7 +4052,7 @@ }, { "name": "CurrentOfExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cursor_name", @@ -4086,7 +4086,7 @@ }, { "name": "DeallocateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "name", @@ -4099,7 +4099,7 @@ }, { "name": "DeclareCursorStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -4126,7 +4126,7 @@ }, { "name": "DefElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -4167,7 +4167,7 @@ }, { "name": "DefineStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -4222,7 +4222,7 @@ }, { "name": "DeleteStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "relation", @@ -4263,7 +4263,7 @@ }, { "name": "DiscardStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "target", @@ -4276,7 +4276,7 @@ }, { "name": "DistinctExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -4338,7 +4338,7 @@ }, { "name": "DoStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -4351,7 +4351,7 @@ }, { "name": "DropdbStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -4378,7 +4378,7 @@ }, { "name": "DropOwnedStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -4398,7 +4398,7 @@ }, { "name": "DropRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -4418,7 +4418,7 @@ }, { "name": "DropStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -4459,7 +4459,7 @@ }, { "name": "DropSubscriptionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -4486,7 +4486,7 @@ }, { "name": "DropTableSpaceStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -4506,7 +4506,7 @@ }, { "name": "DropUserMappingStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -4533,7 +4533,7 @@ }, { "name": "ExecuteStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "name", @@ -4553,7 +4553,7 @@ }, { "name": "ExplainStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -4573,7 +4573,7 @@ }, { "name": "FetchStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "direction", @@ -4607,7 +4607,7 @@ }, { "name": "FieldSelect", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -4655,7 +4655,7 @@ }, { "name": "FieldStore", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -4696,7 +4696,7 @@ }, { "name": "Float", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fval", @@ -4709,7 +4709,7 @@ }, { "name": "FromExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fromlist", @@ -4729,7 +4729,7 @@ }, { "name": "FuncCall", - "wrapped": true, + "isNode": true, "fields": [ { "name": "agg_distinct", @@ -4812,7 +4812,7 @@ }, { "name": "FuncExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -4888,7 +4888,7 @@ }, { "name": "FunctionParameter", - "wrapped": true, + "isNode": true, "fields": [ { "name": "argType", @@ -4922,7 +4922,7 @@ }, { "name": "GrantRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -4970,7 +4970,7 @@ }, { "name": "GrantStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -5039,7 +5039,7 @@ }, { "name": "GroupingFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "agglevelsup", @@ -5080,7 +5080,7 @@ }, { "name": "GroupingSet", - "wrapped": true, + "isNode": true, "fields": [ { "name": "content", @@ -5107,7 +5107,7 @@ }, { "name": "ImportForeignSchemaStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "list_type", @@ -5155,7 +5155,7 @@ }, { "name": "IndexElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -5217,7 +5217,7 @@ }, { "name": "IndexStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "accessMethod", @@ -5391,7 +5391,7 @@ }, { "name": "InferClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conname", @@ -5425,7 +5425,7 @@ }, { "name": "InferenceElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -5459,7 +5459,7 @@ }, { "name": "InlineCodeBlock", - "wrapped": true, + "isNode": true, "fields": [ { "name": "atomic", @@ -5493,7 +5493,7 @@ }, { "name": "InsertStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cols", @@ -5548,7 +5548,7 @@ }, { "name": "Integer", - "wrapped": true, + "isNode": true, "fields": [ { "name": "ival", @@ -5561,7 +5561,7 @@ }, { "name": "IntList", - "wrapped": true, + "isNode": true, "fields": [ { "name": "items", @@ -5574,7 +5574,7 @@ }, { "name": "IntoClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "accessMethod", @@ -5636,7 +5636,7 @@ }, { "name": "JoinExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -5705,7 +5705,7 @@ }, { "name": "JsonAggConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "agg_filter", @@ -5746,7 +5746,7 @@ }, { "name": "JsonArrayAgg", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -5773,7 +5773,7 @@ }, { "name": "JsonArrayConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -5807,7 +5807,7 @@ }, { "name": "JsonArrayQueryConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -5848,7 +5848,7 @@ }, { "name": "JsonConstructorExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -5917,7 +5917,7 @@ }, { "name": "JsonFormat", - "wrapped": true, + "isNode": true, "fields": [ { "name": "encoding", @@ -5944,7 +5944,7 @@ }, { "name": "JsonIsPredicate", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -5985,7 +5985,7 @@ }, { "name": "JsonKeyValue", - "wrapped": true, + "isNode": true, "fields": [ { "name": "key", @@ -6005,7 +6005,7 @@ }, { "name": "JsonObjectAgg", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -6039,7 +6039,7 @@ }, { "name": "JsonObjectConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -6080,7 +6080,7 @@ }, { "name": "JsonOutput", - "wrapped": true, + "isNode": true, "fields": [ { "name": "returning", @@ -6100,7 +6100,7 @@ }, { "name": "JsonReturning", - "wrapped": true, + "isNode": true, "fields": [ { "name": "format", @@ -6127,7 +6127,7 @@ }, { "name": "JsonValueExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "format", @@ -6154,7 +6154,7 @@ }, { "name": "List", - "wrapped": true, + "isNode": true, "fields": [ { "name": "items", @@ -6167,7 +6167,7 @@ }, { "name": "ListenStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conditionname", @@ -6180,7 +6180,7 @@ }, { "name": "LoadStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "filename", @@ -6193,7 +6193,7 @@ }, { "name": "LockingClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "lockedRels", @@ -6220,7 +6220,7 @@ }, { "name": "LockStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "mode", @@ -6247,7 +6247,7 @@ }, { "name": "MergeAction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "commandType", @@ -6295,7 +6295,7 @@ }, { "name": "MergeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "joinCondition", @@ -6336,7 +6336,7 @@ }, { "name": "MergeWhenClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "commandType", @@ -6384,7 +6384,7 @@ }, { "name": "MinMaxExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -6439,7 +6439,7 @@ }, { "name": "MultiAssignRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "colno", @@ -6466,7 +6466,7 @@ }, { "name": "NamedArgExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -6507,7 +6507,7 @@ }, { "name": "NextValueExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "seqid", @@ -6534,7 +6534,7 @@ }, { "name": "NotifyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conditionname", @@ -6554,7 +6554,7 @@ }, { "name": "NullIfExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -6616,7 +6616,7 @@ }, { "name": "NullTest", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -6657,7 +6657,7 @@ }, { "name": "ObjectWithArgs", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args_unspecified", @@ -6691,7 +6691,7 @@ }, { "name": "OidList", - "wrapped": true, + "isNode": true, "fields": [ { "name": "items", @@ -6704,7 +6704,7 @@ }, { "name": "OnConflictClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -6745,7 +6745,7 @@ }, { "name": "OnConflictExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -6807,7 +6807,7 @@ }, { "name": "OpExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -6869,7 +6869,7 @@ }, { "name": "Param", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -6924,7 +6924,7 @@ }, { "name": "ParamRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -6944,7 +6944,7 @@ }, { "name": "ParseResult", - "wrapped": false, + "isNode": false, "fields": [ { "name": "stmts", @@ -6964,7 +6964,7 @@ }, { "name": "PartitionBoundSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "is_default", @@ -7026,7 +7026,7 @@ }, { "name": "PartitionCmd", - "wrapped": true, + "isNode": true, "fields": [ { "name": "bound", @@ -7053,7 +7053,7 @@ }, { "name": "PartitionElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -7094,7 +7094,7 @@ }, { "name": "PartitionRangeDatum", - "wrapped": true, + "isNode": true, "fields": [ { "name": "kind", @@ -7121,7 +7121,7 @@ }, { "name": "PartitionSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -7148,7 +7148,7 @@ }, { "name": "PLAssignStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "indirection", @@ -7189,7 +7189,7 @@ }, { "name": "PrepareStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "argtypes", @@ -7216,7 +7216,7 @@ }, { "name": "PublicationObjSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -7250,7 +7250,7 @@ }, { "name": "PublicationTable", - "wrapped": true, + "isNode": true, "fields": [ { "name": "columns", @@ -7277,7 +7277,7 @@ }, { "name": "Query", - "wrapped": true, + "isNode": true, "fields": [ { "name": "canSetTag", @@ -7570,7 +7570,7 @@ }, { "name": "RangeFunction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -7618,7 +7618,7 @@ }, { "name": "RangeSubselect", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -7645,7 +7645,7 @@ }, { "name": "RangeTableFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -7700,7 +7700,7 @@ }, { "name": "RangeTableFuncCol", - "wrapped": true, + "isNode": true, "fields": [ { "name": "coldefexpr", @@ -7755,7 +7755,7 @@ }, { "name": "RangeTableSample", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -7796,7 +7796,7 @@ }, { "name": "RangeTblEntry", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -8026,7 +8026,7 @@ }, { "name": "RangeTblFunction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "funccolcollations", @@ -8081,7 +8081,7 @@ }, { "name": "RangeTblRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "rtindex", @@ -8094,7 +8094,7 @@ }, { "name": "RangeVar", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -8149,7 +8149,7 @@ }, { "name": "RawStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "stmt", @@ -8176,7 +8176,7 @@ }, { "name": "ReassignOwnedStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "newrole", @@ -8196,7 +8196,7 @@ }, { "name": "RefreshMatViewStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "concurrent", @@ -8223,7 +8223,7 @@ }, { "name": "ReindexStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "kind", @@ -8257,7 +8257,7 @@ }, { "name": "RelabelType", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -8312,7 +8312,7 @@ }, { "name": "RenameStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -8374,7 +8374,7 @@ }, { "name": "ReplicaIdentityStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "identity_type", @@ -8394,7 +8394,7 @@ }, { "name": "ResTarget", - "wrapped": true, + "isNode": true, "fields": [ { "name": "indirection", @@ -8428,7 +8428,7 @@ }, { "name": "ReturnStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "returnval", @@ -8441,7 +8441,7 @@ }, { "name": "RoleSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -8468,7 +8468,7 @@ }, { "name": "RowCompareExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "inputcollids", @@ -8523,7 +8523,7 @@ }, { "name": "RowExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -8571,7 +8571,7 @@ }, { "name": "RowMarkClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "pushedDown", @@ -8605,7 +8605,7 @@ }, { "name": "RTEPermissionInfo", - "wrapped": true, + "isNode": true, "fields": [ { "name": "checkAsUser", @@ -8660,7 +8660,7 @@ }, { "name": "RuleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "actions", @@ -8715,7 +8715,7 @@ }, { "name": "ScalarArrayOpExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -8763,7 +8763,7 @@ }, { "name": "ScanResult", - "wrapped": false, + "isNode": false, "fields": [ { "name": "tokens", @@ -8783,7 +8783,7 @@ }, { "name": "ScanToken", - "wrapped": false, + "isNode": false, "fields": [ { "name": "end", @@ -8817,7 +8817,7 @@ }, { "name": "SecLabelStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "label", @@ -8851,7 +8851,7 @@ }, { "name": "SelectStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "all", @@ -8997,7 +8997,7 @@ }, { "name": "SetOperationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "all", @@ -9059,7 +9059,7 @@ }, { "name": "SetToDefault", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -9100,7 +9100,7 @@ }, { "name": "SortBy", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -9141,7 +9141,7 @@ }, { "name": "SortGroupClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "eqop", @@ -9182,7 +9182,7 @@ }, { "name": "SQLValueFunction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -9223,7 +9223,7 @@ }, { "name": "StatsElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -9243,7 +9243,7 @@ }, { "name": "String", - "wrapped": true, + "isNode": true, "fields": [ { "name": "sval", @@ -9256,7 +9256,7 @@ }, { "name": "SubLink", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -9311,7 +9311,7 @@ }, { "name": "SubPlan", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -9436,7 +9436,7 @@ }, { "name": "SubscriptingRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "refassgnexpr", @@ -9512,7 +9512,7 @@ }, { "name": "TableFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "colcollations", @@ -9609,7 +9609,7 @@ }, { "name": "TableLikeClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -9636,7 +9636,7 @@ }, { "name": "TableSampleClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -9663,7 +9663,7 @@ }, { "name": "TargetEntry", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -9725,7 +9725,7 @@ }, { "name": "TransactionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "chain", @@ -9766,7 +9766,7 @@ }, { "name": "TriggerTransition", - "wrapped": true, + "isNode": true, "fields": [ { "name": "isNew", @@ -9793,7 +9793,7 @@ }, { "name": "TruncateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -9820,7 +9820,7 @@ }, { "name": "TypeCast", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -9847,7 +9847,7 @@ }, { "name": "TypeName", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arrayBounds", @@ -9909,7 +9909,7 @@ }, { "name": "UnlistenStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conditionname", @@ -9922,7 +9922,7 @@ }, { "name": "UpdateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fromClause", @@ -9970,7 +9970,7 @@ }, { "name": "VacuumRelation", - "wrapped": true, + "isNode": true, "fields": [ { "name": "oid", @@ -9997,7 +9997,7 @@ }, { "name": "VacuumStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "is_vacuumcmd", @@ -10024,7 +10024,7 @@ }, { "name": "Var", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -10093,7 +10093,7 @@ }, { "name": "VariableSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -10127,7 +10127,7 @@ }, { "name": "VariableShowStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "name", @@ -10140,7 +10140,7 @@ }, { "name": "ViewStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aliases", @@ -10188,7 +10188,7 @@ }, { "name": "WindowClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "copiedOrder", @@ -10299,7 +10299,7 @@ }, { "name": "WindowDef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "endOffset", @@ -10361,7 +10361,7 @@ }, { "name": "WindowFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aggfilter", @@ -10444,7 +10444,7 @@ }, { "name": "WithCheckOption", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cascaded", @@ -10485,7 +10485,7 @@ }, { "name": "WithClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "ctes", @@ -10512,7 +10512,7 @@ }, { "name": "XmlExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg_names", @@ -10595,7 +10595,7 @@ }, { "name": "XmlSerialize", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", diff --git a/__fixtures__/output/runtime-schema/json/enabled/runtime-schema.json b/__fixtures__/output/runtime-schema/json/enabled/runtime-schema.json index e862af13..ae80e25c 100644 --- a/__fixtures__/output/runtime-schema/json/enabled/runtime-schema.json +++ b/__fixtures__/output/runtime-schema/json/enabled/runtime-schema.json @@ -1,7 +1,7 @@ [ { "name": "A_ArrayExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "elements", @@ -21,7 +21,7 @@ }, { "name": "A_Const", - "wrapped": true, + "isNode": true, "fields": [ { "name": "boolval", @@ -76,7 +76,7 @@ }, { "name": "A_Expr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "kind", @@ -117,7 +117,7 @@ }, { "name": "A_Indices", - "wrapped": true, + "isNode": true, "fields": [ { "name": "is_slice", @@ -144,7 +144,7 @@ }, { "name": "A_Indirection", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -164,12 +164,12 @@ }, { "name": "A_Star", - "wrapped": true, + "isNode": true, "fields": [] }, { "name": "AccessPriv", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cols", @@ -189,7 +189,7 @@ }, { "name": "Aggref", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aggargtypes", @@ -328,7 +328,7 @@ }, { "name": "Alias", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aliasname", @@ -348,7 +348,7 @@ }, { "name": "AlterCollationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collname", @@ -361,7 +361,7 @@ }, { "name": "AlterDatabaseRefreshCollStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -374,7 +374,7 @@ }, { "name": "AlterDatabaseSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -394,7 +394,7 @@ }, { "name": "AlterDatabaseStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -414,7 +414,7 @@ }, { "name": "AlterDefaultPrivilegesStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -434,7 +434,7 @@ }, { "name": "AlterDomainStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -482,7 +482,7 @@ }, { "name": "AlterEnumStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "newVal", @@ -530,7 +530,7 @@ }, { "name": "AlterEventTrigStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "tgenabled", @@ -550,7 +550,7 @@ }, { "name": "AlterExtensionContentsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -584,7 +584,7 @@ }, { "name": "AlterExtensionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "extname", @@ -604,7 +604,7 @@ }, { "name": "AlterFdwStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fdwname", @@ -631,7 +631,7 @@ }, { "name": "AlterForeignServerStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "has_version", @@ -665,7 +665,7 @@ }, { "name": "AlterFunctionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "actions", @@ -692,7 +692,7 @@ }, { "name": "AlternativeSubPlan", - "wrapped": true, + "isNode": true, "fields": [ { "name": "subplans", @@ -712,7 +712,7 @@ }, { "name": "AlterObjectDependsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "extname", @@ -753,7 +753,7 @@ }, { "name": "AlterObjectSchemaStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -794,7 +794,7 @@ }, { "name": "AlterOperatorStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "opername", @@ -814,7 +814,7 @@ }, { "name": "AlterOpFamilyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -848,7 +848,7 @@ }, { "name": "AlterOwnerStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "newowner", @@ -882,7 +882,7 @@ }, { "name": "AlterPolicyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "policy_name", @@ -923,7 +923,7 @@ }, { "name": "AlterPublicationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -964,7 +964,7 @@ }, { "name": "AlterRoleSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "database", @@ -991,7 +991,7 @@ }, { "name": "AlterRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -1018,7 +1018,7 @@ }, { "name": "AlterSeqStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "for_identity", @@ -1052,7 +1052,7 @@ }, { "name": "AlterStatsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "defnames", @@ -1079,7 +1079,7 @@ }, { "name": "AlterSubscriptionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conninfo", @@ -1120,7 +1120,7 @@ }, { "name": "AlterSystemStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "setstmt", @@ -1133,7 +1133,7 @@ }, { "name": "AlterTableCmd", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -1195,7 +1195,7 @@ }, { "name": "AlterTableMoveAllStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "new_tablespacename", @@ -1236,7 +1236,7 @@ }, { "name": "AlterTableSpaceOptionsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "isReset", @@ -1263,7 +1263,7 @@ }, { "name": "AlterTableStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cmds", @@ -1297,7 +1297,7 @@ }, { "name": "AlterTSConfigurationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cfgname", @@ -1352,7 +1352,7 @@ }, { "name": "AlterTSDictionaryStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dictname", @@ -1372,7 +1372,7 @@ }, { "name": "AlterTypeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -1392,7 +1392,7 @@ }, { "name": "AlterUserMappingStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -1419,7 +1419,7 @@ }, { "name": "ArrayCoerceExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -1481,7 +1481,7 @@ }, { "name": "ArrayExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "array_collid", @@ -1536,7 +1536,7 @@ }, { "name": "BitString", - "wrapped": true, + "isNode": true, "fields": [ { "name": "bsval", @@ -1549,7 +1549,7 @@ }, { "name": "Boolean", - "wrapped": true, + "isNode": true, "fields": [ { "name": "boolval", @@ -1562,7 +1562,7 @@ }, { "name": "BooleanTest", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -1596,7 +1596,7 @@ }, { "name": "BoolExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -1630,7 +1630,7 @@ }, { "name": "CallContext", - "wrapped": true, + "isNode": true, "fields": [ { "name": "atomic", @@ -1643,7 +1643,7 @@ }, { "name": "CallStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "funccall", @@ -1670,7 +1670,7 @@ }, { "name": "CaseExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -1725,7 +1725,7 @@ }, { "name": "CaseTestExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -1759,7 +1759,7 @@ }, { "name": "CaseWhen", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -1793,12 +1793,12 @@ }, { "name": "CheckPointStmt", - "wrapped": true, + "isNode": true, "fields": [] }, { "name": "ClosePortalStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "portalname", @@ -1811,7 +1811,7 @@ }, { "name": "ClusterStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "indexname", @@ -1838,7 +1838,7 @@ }, { "name": "CoalesceExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -1879,7 +1879,7 @@ }, { "name": "CoerceToDomain", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -1934,7 +1934,7 @@ }, { "name": "CoerceToDomainValue", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -1975,7 +1975,7 @@ }, { "name": "CoerceViaIO", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -2023,7 +2023,7 @@ }, { "name": "CollateClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -2050,7 +2050,7 @@ }, { "name": "CollateExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -2084,7 +2084,7 @@ }, { "name": "ColumnDef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collClause", @@ -2223,7 +2223,7 @@ }, { "name": "ColumnRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fields", @@ -2243,7 +2243,7 @@ }, { "name": "CommentStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "comment", @@ -2270,7 +2270,7 @@ }, { "name": "CommonTableExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aliascolnames", @@ -2367,7 +2367,7 @@ }, { "name": "CompositeTypeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "coldeflist", @@ -2387,7 +2387,7 @@ }, { "name": "Constraint", - "wrapped": true, + "isNode": true, "fields": [ { "name": "access_method", @@ -2603,7 +2603,7 @@ }, { "name": "ConstraintsSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "constraints", @@ -2623,7 +2623,7 @@ }, { "name": "ConvertRowtypeExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -2664,7 +2664,7 @@ }, { "name": "CopyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "attlist", @@ -2726,7 +2726,7 @@ }, { "name": "CreateAmStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -2753,7 +2753,7 @@ }, { "name": "CreateCastStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "context", @@ -2794,7 +2794,7 @@ }, { "name": "CreateConversionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conversion_name", @@ -2835,7 +2835,7 @@ }, { "name": "CreatedbStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -2855,7 +2855,7 @@ }, { "name": "CreateDomainStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collClause", @@ -2889,7 +2889,7 @@ }, { "name": "CreateEnumStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "typeName", @@ -2909,7 +2909,7 @@ }, { "name": "CreateEventTrigStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "eventname", @@ -2943,7 +2943,7 @@ }, { "name": "CreateExtensionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "extname", @@ -2970,7 +2970,7 @@ }, { "name": "CreateFdwStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fdwname", @@ -2997,7 +2997,7 @@ }, { "name": "CreateForeignServerStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fdwname", @@ -3045,7 +3045,7 @@ }, { "name": "CreateForeignTableStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "base", @@ -3072,7 +3072,7 @@ }, { "name": "CreateFunctionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "funcname", @@ -3127,7 +3127,7 @@ }, { "name": "CreateOpClassItem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "class_args", @@ -3175,7 +3175,7 @@ }, { "name": "CreateOpClassStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -3223,7 +3223,7 @@ }, { "name": "CreateOpFamilyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -3243,7 +3243,7 @@ }, { "name": "CreatePLangStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "plhandler", @@ -3291,7 +3291,7 @@ }, { "name": "CreatePolicyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cmd_name", @@ -3346,7 +3346,7 @@ }, { "name": "CreatePublicationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "for_all_tables", @@ -3380,7 +3380,7 @@ }, { "name": "CreateRangeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "params", @@ -3400,7 +3400,7 @@ }, { "name": "CreateRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -3427,7 +3427,7 @@ }, { "name": "CreateSchemaStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "authrole", @@ -3461,7 +3461,7 @@ }, { "name": "CreateSeqStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "for_identity", @@ -3502,7 +3502,7 @@ }, { "name": "CreateStatsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "defnames", @@ -3557,7 +3557,7 @@ }, { "name": "CreateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "accessMethod", @@ -3647,7 +3647,7 @@ }, { "name": "CreateSubscriptionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conninfo", @@ -3681,7 +3681,7 @@ }, { "name": "CreateTableAsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "if_not_exists", @@ -3722,7 +3722,7 @@ }, { "name": "CreateTableSpaceStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -3756,7 +3756,7 @@ }, { "name": "CreateTransformStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fromsql", @@ -3797,7 +3797,7 @@ }, { "name": "CreateTrigStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -3908,7 +3908,7 @@ }, { "name": "CreateUserMappingStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "if_not_exists", @@ -3942,7 +3942,7 @@ }, { "name": "CTECycleClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cycle_col_list", @@ -4018,7 +4018,7 @@ }, { "name": "CTESearchClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -4052,7 +4052,7 @@ }, { "name": "CurrentOfExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cursor_name", @@ -4086,7 +4086,7 @@ }, { "name": "DeallocateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "name", @@ -4099,7 +4099,7 @@ }, { "name": "DeclareCursorStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -4126,7 +4126,7 @@ }, { "name": "DefElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -4167,7 +4167,7 @@ }, { "name": "DefineStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -4222,7 +4222,7 @@ }, { "name": "DeleteStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "relation", @@ -4263,7 +4263,7 @@ }, { "name": "DiscardStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "target", @@ -4276,7 +4276,7 @@ }, { "name": "DistinctExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -4338,7 +4338,7 @@ }, { "name": "DoStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -4351,7 +4351,7 @@ }, { "name": "DropdbStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -4378,7 +4378,7 @@ }, { "name": "DropOwnedStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -4398,7 +4398,7 @@ }, { "name": "DropRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -4418,7 +4418,7 @@ }, { "name": "DropStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -4459,7 +4459,7 @@ }, { "name": "DropSubscriptionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -4486,7 +4486,7 @@ }, { "name": "DropTableSpaceStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -4506,7 +4506,7 @@ }, { "name": "DropUserMappingStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -4533,7 +4533,7 @@ }, { "name": "ExecuteStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "name", @@ -4553,7 +4553,7 @@ }, { "name": "ExplainStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -4573,7 +4573,7 @@ }, { "name": "FetchStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "direction", @@ -4607,7 +4607,7 @@ }, { "name": "FieldSelect", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -4655,7 +4655,7 @@ }, { "name": "FieldStore", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -4696,7 +4696,7 @@ }, { "name": "Float", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fval", @@ -4709,7 +4709,7 @@ }, { "name": "FromExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fromlist", @@ -4729,7 +4729,7 @@ }, { "name": "FuncCall", - "wrapped": true, + "isNode": true, "fields": [ { "name": "agg_distinct", @@ -4812,7 +4812,7 @@ }, { "name": "FuncExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -4888,7 +4888,7 @@ }, { "name": "FunctionParameter", - "wrapped": true, + "isNode": true, "fields": [ { "name": "argType", @@ -4922,7 +4922,7 @@ }, { "name": "GrantRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -4970,7 +4970,7 @@ }, { "name": "GrantStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -5039,7 +5039,7 @@ }, { "name": "GroupingFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "agglevelsup", @@ -5080,7 +5080,7 @@ }, { "name": "GroupingSet", - "wrapped": true, + "isNode": true, "fields": [ { "name": "content", @@ -5107,7 +5107,7 @@ }, { "name": "ImportForeignSchemaStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "list_type", @@ -5155,7 +5155,7 @@ }, { "name": "IndexElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -5217,7 +5217,7 @@ }, { "name": "IndexStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "accessMethod", @@ -5391,7 +5391,7 @@ }, { "name": "InferClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conname", @@ -5425,7 +5425,7 @@ }, { "name": "InferenceElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -5459,7 +5459,7 @@ }, { "name": "InlineCodeBlock", - "wrapped": true, + "isNode": true, "fields": [ { "name": "atomic", @@ -5493,7 +5493,7 @@ }, { "name": "InsertStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cols", @@ -5548,7 +5548,7 @@ }, { "name": "Integer", - "wrapped": true, + "isNode": true, "fields": [ { "name": "ival", @@ -5561,7 +5561,7 @@ }, { "name": "IntList", - "wrapped": true, + "isNode": true, "fields": [ { "name": "items", @@ -5574,7 +5574,7 @@ }, { "name": "IntoClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "accessMethod", @@ -5636,7 +5636,7 @@ }, { "name": "JoinExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -5705,7 +5705,7 @@ }, { "name": "JsonAggConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "agg_filter", @@ -5746,7 +5746,7 @@ }, { "name": "JsonArrayAgg", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -5773,7 +5773,7 @@ }, { "name": "JsonArrayConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -5807,7 +5807,7 @@ }, { "name": "JsonArrayQueryConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -5848,7 +5848,7 @@ }, { "name": "JsonConstructorExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -5917,7 +5917,7 @@ }, { "name": "JsonFormat", - "wrapped": true, + "isNode": true, "fields": [ { "name": "encoding", @@ -5944,7 +5944,7 @@ }, { "name": "JsonIsPredicate", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -5985,7 +5985,7 @@ }, { "name": "JsonKeyValue", - "wrapped": true, + "isNode": true, "fields": [ { "name": "key", @@ -6005,7 +6005,7 @@ }, { "name": "JsonObjectAgg", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -6039,7 +6039,7 @@ }, { "name": "JsonObjectConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -6080,7 +6080,7 @@ }, { "name": "JsonOutput", - "wrapped": true, + "isNode": true, "fields": [ { "name": "returning", @@ -6100,7 +6100,7 @@ }, { "name": "JsonReturning", - "wrapped": true, + "isNode": true, "fields": [ { "name": "format", @@ -6127,7 +6127,7 @@ }, { "name": "JsonValueExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "format", @@ -6154,7 +6154,7 @@ }, { "name": "List", - "wrapped": true, + "isNode": true, "fields": [ { "name": "items", @@ -6167,7 +6167,7 @@ }, { "name": "ListenStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conditionname", @@ -6180,7 +6180,7 @@ }, { "name": "LoadStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "filename", @@ -6193,7 +6193,7 @@ }, { "name": "LockingClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "lockedRels", @@ -6220,7 +6220,7 @@ }, { "name": "LockStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "mode", @@ -6247,7 +6247,7 @@ }, { "name": "MergeAction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "commandType", @@ -6295,7 +6295,7 @@ }, { "name": "MergeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "joinCondition", @@ -6336,7 +6336,7 @@ }, { "name": "MergeWhenClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "commandType", @@ -6384,7 +6384,7 @@ }, { "name": "MinMaxExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -6439,7 +6439,7 @@ }, { "name": "MultiAssignRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "colno", @@ -6466,7 +6466,7 @@ }, { "name": "NamedArgExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -6507,7 +6507,7 @@ }, { "name": "NextValueExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "seqid", @@ -6534,7 +6534,7 @@ }, { "name": "NotifyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conditionname", @@ -6554,7 +6554,7 @@ }, { "name": "NullIfExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -6616,7 +6616,7 @@ }, { "name": "NullTest", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -6657,7 +6657,7 @@ }, { "name": "ObjectWithArgs", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args_unspecified", @@ -6691,7 +6691,7 @@ }, { "name": "OidList", - "wrapped": true, + "isNode": true, "fields": [ { "name": "items", @@ -6704,7 +6704,7 @@ }, { "name": "OnConflictClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -6745,7 +6745,7 @@ }, { "name": "OnConflictExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -6807,7 +6807,7 @@ }, { "name": "OpExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -6869,7 +6869,7 @@ }, { "name": "Param", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -6924,7 +6924,7 @@ }, { "name": "ParamRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -6944,7 +6944,7 @@ }, { "name": "ParseResult", - "wrapped": false, + "isNode": false, "fields": [ { "name": "stmts", @@ -6964,7 +6964,7 @@ }, { "name": "PartitionBoundSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "is_default", @@ -7026,7 +7026,7 @@ }, { "name": "PartitionCmd", - "wrapped": true, + "isNode": true, "fields": [ { "name": "bound", @@ -7053,7 +7053,7 @@ }, { "name": "PartitionElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -7094,7 +7094,7 @@ }, { "name": "PartitionRangeDatum", - "wrapped": true, + "isNode": true, "fields": [ { "name": "kind", @@ -7121,7 +7121,7 @@ }, { "name": "PartitionSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -7148,7 +7148,7 @@ }, { "name": "PLAssignStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "indirection", @@ -7189,7 +7189,7 @@ }, { "name": "PrepareStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "argtypes", @@ -7216,7 +7216,7 @@ }, { "name": "PublicationObjSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -7250,7 +7250,7 @@ }, { "name": "PublicationTable", - "wrapped": true, + "isNode": true, "fields": [ { "name": "columns", @@ -7277,7 +7277,7 @@ }, { "name": "Query", - "wrapped": true, + "isNode": true, "fields": [ { "name": "canSetTag", @@ -7570,7 +7570,7 @@ }, { "name": "RangeFunction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -7618,7 +7618,7 @@ }, { "name": "RangeSubselect", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -7645,7 +7645,7 @@ }, { "name": "RangeTableFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -7700,7 +7700,7 @@ }, { "name": "RangeTableFuncCol", - "wrapped": true, + "isNode": true, "fields": [ { "name": "coldefexpr", @@ -7755,7 +7755,7 @@ }, { "name": "RangeTableSample", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -7796,7 +7796,7 @@ }, { "name": "RangeTblEntry", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -8026,7 +8026,7 @@ }, { "name": "RangeTblFunction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "funccolcollations", @@ -8081,7 +8081,7 @@ }, { "name": "RangeTblRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "rtindex", @@ -8094,7 +8094,7 @@ }, { "name": "RangeVar", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -8149,7 +8149,7 @@ }, { "name": "RawStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "stmt", @@ -8176,7 +8176,7 @@ }, { "name": "ReassignOwnedStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "newrole", @@ -8196,7 +8196,7 @@ }, { "name": "RefreshMatViewStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "concurrent", @@ -8223,7 +8223,7 @@ }, { "name": "ReindexStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "kind", @@ -8257,7 +8257,7 @@ }, { "name": "RelabelType", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -8312,7 +8312,7 @@ }, { "name": "RenameStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -8374,7 +8374,7 @@ }, { "name": "ReplicaIdentityStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "identity_type", @@ -8394,7 +8394,7 @@ }, { "name": "ResTarget", - "wrapped": true, + "isNode": true, "fields": [ { "name": "indirection", @@ -8428,7 +8428,7 @@ }, { "name": "ReturnStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "returnval", @@ -8441,7 +8441,7 @@ }, { "name": "RoleSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -8468,7 +8468,7 @@ }, { "name": "RowCompareExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "inputcollids", @@ -8523,7 +8523,7 @@ }, { "name": "RowExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -8571,7 +8571,7 @@ }, { "name": "RowMarkClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "pushedDown", @@ -8605,7 +8605,7 @@ }, { "name": "RTEPermissionInfo", - "wrapped": true, + "isNode": true, "fields": [ { "name": "checkAsUser", @@ -8660,7 +8660,7 @@ }, { "name": "RuleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "actions", @@ -8715,7 +8715,7 @@ }, { "name": "ScalarArrayOpExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -8763,7 +8763,7 @@ }, { "name": "ScanResult", - "wrapped": false, + "isNode": false, "fields": [ { "name": "tokens", @@ -8783,7 +8783,7 @@ }, { "name": "ScanToken", - "wrapped": false, + "isNode": false, "fields": [ { "name": "end", @@ -8817,7 +8817,7 @@ }, { "name": "SecLabelStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "label", @@ -8851,7 +8851,7 @@ }, { "name": "SelectStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "all", @@ -8997,7 +8997,7 @@ }, { "name": "SetOperationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "all", @@ -9059,7 +9059,7 @@ }, { "name": "SetToDefault", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -9100,7 +9100,7 @@ }, { "name": "SortBy", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -9141,7 +9141,7 @@ }, { "name": "SortGroupClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "eqop", @@ -9182,7 +9182,7 @@ }, { "name": "SQLValueFunction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -9223,7 +9223,7 @@ }, { "name": "StatsElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -9243,7 +9243,7 @@ }, { "name": "String", - "wrapped": true, + "isNode": true, "fields": [ { "name": "sval", @@ -9256,7 +9256,7 @@ }, { "name": "SubLink", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -9311,7 +9311,7 @@ }, { "name": "SubPlan", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -9436,7 +9436,7 @@ }, { "name": "SubscriptingRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "refassgnexpr", @@ -9512,7 +9512,7 @@ }, { "name": "TableFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "colcollations", @@ -9609,7 +9609,7 @@ }, { "name": "TableLikeClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -9636,7 +9636,7 @@ }, { "name": "TableSampleClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -9663,7 +9663,7 @@ }, { "name": "TargetEntry", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -9725,7 +9725,7 @@ }, { "name": "TransactionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "chain", @@ -9766,7 +9766,7 @@ }, { "name": "TriggerTransition", - "wrapped": true, + "isNode": true, "fields": [ { "name": "isNew", @@ -9793,7 +9793,7 @@ }, { "name": "TruncateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -9820,7 +9820,7 @@ }, { "name": "TypeCast", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -9847,7 +9847,7 @@ }, { "name": "TypeName", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arrayBounds", @@ -9909,7 +9909,7 @@ }, { "name": "UnlistenStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conditionname", @@ -9922,7 +9922,7 @@ }, { "name": "UpdateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fromClause", @@ -9970,7 +9970,7 @@ }, { "name": "VacuumRelation", - "wrapped": true, + "isNode": true, "fields": [ { "name": "oid", @@ -9997,7 +9997,7 @@ }, { "name": "VacuumStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "is_vacuumcmd", @@ -10024,7 +10024,7 @@ }, { "name": "Var", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -10093,7 +10093,7 @@ }, { "name": "VariableSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -10127,7 +10127,7 @@ }, { "name": "VariableShowStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "name", @@ -10140,7 +10140,7 @@ }, { "name": "ViewStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aliases", @@ -10188,7 +10188,7 @@ }, { "name": "WindowClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "copiedOrder", @@ -10299,7 +10299,7 @@ }, { "name": "WindowDef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "endOffset", @@ -10361,7 +10361,7 @@ }, { "name": "WindowFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aggfilter", @@ -10444,7 +10444,7 @@ }, { "name": "WithCheckOption", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cascaded", @@ -10485,7 +10485,7 @@ }, { "name": "WithClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "ctes", @@ -10512,7 +10512,7 @@ }, { "name": "XmlExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg_names", @@ -10595,7 +10595,7 @@ }, { "name": "XmlSerialize", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", diff --git a/__fixtures__/output/runtime-schema/latest-proto/latest-schema.json b/__fixtures__/output/runtime-schema/latest-proto/latest-schema.json index 7367bfe8..9e0cf8ea 100644 --- a/__fixtures__/output/runtime-schema/latest-proto/latest-schema.json +++ b/__fixtures__/output/runtime-schema/latest-proto/latest-schema.json @@ -1,7 +1,7 @@ [ { "name": "A_ArrayExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "elements", @@ -21,7 +21,7 @@ }, { "name": "A_Const", - "wrapped": true, + "isNode": true, "fields": [ { "name": "boolval", @@ -76,7 +76,7 @@ }, { "name": "A_Expr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "kind", @@ -117,7 +117,7 @@ }, { "name": "A_Indices", - "wrapped": true, + "isNode": true, "fields": [ { "name": "is_slice", @@ -144,7 +144,7 @@ }, { "name": "A_Indirection", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -164,12 +164,12 @@ }, { "name": "A_Star", - "wrapped": true, + "isNode": true, "fields": [] }, { "name": "AccessPriv", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cols", @@ -189,7 +189,7 @@ }, { "name": "Aggref", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aggargtypes", @@ -328,7 +328,7 @@ }, { "name": "Alias", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aliasname", @@ -348,7 +348,7 @@ }, { "name": "AlterCollationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collname", @@ -361,7 +361,7 @@ }, { "name": "AlterDatabaseRefreshCollStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -374,7 +374,7 @@ }, { "name": "AlterDatabaseSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -394,7 +394,7 @@ }, { "name": "AlterDatabaseStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -414,7 +414,7 @@ }, { "name": "AlterDefaultPrivilegesStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -434,7 +434,7 @@ }, { "name": "AlterDomainStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -482,7 +482,7 @@ }, { "name": "AlterEnumStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "newVal", @@ -530,7 +530,7 @@ }, { "name": "AlterEventTrigStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "tgenabled", @@ -550,7 +550,7 @@ }, { "name": "AlterExtensionContentsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -584,7 +584,7 @@ }, { "name": "AlterExtensionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "extname", @@ -604,7 +604,7 @@ }, { "name": "AlterFdwStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fdwname", @@ -631,7 +631,7 @@ }, { "name": "AlterForeignServerStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "has_version", @@ -665,7 +665,7 @@ }, { "name": "AlterFunctionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "actions", @@ -692,7 +692,7 @@ }, { "name": "AlternativeSubPlan", - "wrapped": true, + "isNode": true, "fields": [ { "name": "subplans", @@ -712,7 +712,7 @@ }, { "name": "AlterObjectDependsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "extname", @@ -753,7 +753,7 @@ }, { "name": "AlterObjectSchemaStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -794,7 +794,7 @@ }, { "name": "AlterOperatorStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "opername", @@ -814,7 +814,7 @@ }, { "name": "AlterOpFamilyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -848,7 +848,7 @@ }, { "name": "AlterOwnerStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "newowner", @@ -882,7 +882,7 @@ }, { "name": "AlterPolicyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "policy_name", @@ -923,7 +923,7 @@ }, { "name": "AlterPublicationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -964,7 +964,7 @@ }, { "name": "AlterRoleSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "database", @@ -991,7 +991,7 @@ }, { "name": "AlterRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -1018,7 +1018,7 @@ }, { "name": "AlterSeqStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "for_identity", @@ -1052,7 +1052,7 @@ }, { "name": "AlterStatsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "defnames", @@ -1079,7 +1079,7 @@ }, { "name": "AlterSubscriptionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conninfo", @@ -1120,7 +1120,7 @@ }, { "name": "AlterSystemStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "setstmt", @@ -1133,7 +1133,7 @@ }, { "name": "AlterTableCmd", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -1195,7 +1195,7 @@ }, { "name": "AlterTableMoveAllStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "new_tablespacename", @@ -1236,7 +1236,7 @@ }, { "name": "AlterTableSpaceOptionsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "isReset", @@ -1263,7 +1263,7 @@ }, { "name": "AlterTableStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cmds", @@ -1297,7 +1297,7 @@ }, { "name": "AlterTSConfigurationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cfgname", @@ -1352,7 +1352,7 @@ }, { "name": "AlterTSDictionaryStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dictname", @@ -1372,7 +1372,7 @@ }, { "name": "AlterTypeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -1392,7 +1392,7 @@ }, { "name": "AlterUserMappingStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -1419,7 +1419,7 @@ }, { "name": "ArrayCoerceExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -1481,7 +1481,7 @@ }, { "name": "ArrayExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "array_collid", @@ -1536,7 +1536,7 @@ }, { "name": "BitString", - "wrapped": true, + "isNode": true, "fields": [ { "name": "bsval", @@ -1549,7 +1549,7 @@ }, { "name": "Boolean", - "wrapped": true, + "isNode": true, "fields": [ { "name": "boolval", @@ -1562,7 +1562,7 @@ }, { "name": "BooleanTest", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -1596,7 +1596,7 @@ }, { "name": "BoolExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -1630,7 +1630,7 @@ }, { "name": "CallContext", - "wrapped": true, + "isNode": true, "fields": [ { "name": "atomic", @@ -1643,7 +1643,7 @@ }, { "name": "CallStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "funccall", @@ -1670,7 +1670,7 @@ }, { "name": "CaseExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -1725,7 +1725,7 @@ }, { "name": "CaseTestExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -1759,7 +1759,7 @@ }, { "name": "CaseWhen", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -1793,12 +1793,12 @@ }, { "name": "CheckPointStmt", - "wrapped": true, + "isNode": true, "fields": [] }, { "name": "ClosePortalStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "portalname", @@ -1811,7 +1811,7 @@ }, { "name": "ClusterStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "indexname", @@ -1838,7 +1838,7 @@ }, { "name": "CoalesceExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -1879,7 +1879,7 @@ }, { "name": "CoerceToDomain", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -1934,7 +1934,7 @@ }, { "name": "CoerceToDomainValue", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -1975,7 +1975,7 @@ }, { "name": "CoerceViaIO", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -2023,7 +2023,7 @@ }, { "name": "CollateClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -2050,7 +2050,7 @@ }, { "name": "CollateExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -2084,7 +2084,7 @@ }, { "name": "ColumnDef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collClause", @@ -2223,7 +2223,7 @@ }, { "name": "ColumnRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fields", @@ -2243,7 +2243,7 @@ }, { "name": "CommentStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "comment", @@ -2270,7 +2270,7 @@ }, { "name": "CommonTableExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aliascolnames", @@ -2367,7 +2367,7 @@ }, { "name": "CompositeTypeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "coldeflist", @@ -2387,7 +2387,7 @@ }, { "name": "Constraint", - "wrapped": true, + "isNode": true, "fields": [ { "name": "access_method", @@ -2610,7 +2610,7 @@ }, { "name": "ConstraintsSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "constraints", @@ -2630,7 +2630,7 @@ }, { "name": "ConvertRowtypeExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -2671,7 +2671,7 @@ }, { "name": "CopyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "attlist", @@ -2733,7 +2733,7 @@ }, { "name": "CreateAmStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -2760,7 +2760,7 @@ }, { "name": "CreateCastStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "context", @@ -2801,7 +2801,7 @@ }, { "name": "CreateConversionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conversion_name", @@ -2842,7 +2842,7 @@ }, { "name": "CreatedbStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -2862,7 +2862,7 @@ }, { "name": "CreateDomainStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collClause", @@ -2896,7 +2896,7 @@ }, { "name": "CreateEnumStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "typeName", @@ -2916,7 +2916,7 @@ }, { "name": "CreateEventTrigStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "eventname", @@ -2950,7 +2950,7 @@ }, { "name": "CreateExtensionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "extname", @@ -2977,7 +2977,7 @@ }, { "name": "CreateFdwStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fdwname", @@ -3004,7 +3004,7 @@ }, { "name": "CreateForeignServerStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fdwname", @@ -3052,7 +3052,7 @@ }, { "name": "CreateForeignTableStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "base", @@ -3079,7 +3079,7 @@ }, { "name": "CreateFunctionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "funcname", @@ -3134,7 +3134,7 @@ }, { "name": "CreateOpClassItem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "class_args", @@ -3182,7 +3182,7 @@ }, { "name": "CreateOpClassStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -3230,7 +3230,7 @@ }, { "name": "CreateOpFamilyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -3250,7 +3250,7 @@ }, { "name": "CreatePLangStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "plhandler", @@ -3298,7 +3298,7 @@ }, { "name": "CreatePolicyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cmd_name", @@ -3353,7 +3353,7 @@ }, { "name": "CreatePublicationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "for_all_tables", @@ -3387,7 +3387,7 @@ }, { "name": "CreateRangeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "params", @@ -3407,7 +3407,7 @@ }, { "name": "CreateRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -3434,7 +3434,7 @@ }, { "name": "CreateSchemaStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "authrole", @@ -3468,7 +3468,7 @@ }, { "name": "CreateSeqStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "for_identity", @@ -3509,7 +3509,7 @@ }, { "name": "CreateStatsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "defnames", @@ -3564,7 +3564,7 @@ }, { "name": "CreateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "accessMethod", @@ -3654,7 +3654,7 @@ }, { "name": "CreateSubscriptionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conninfo", @@ -3688,7 +3688,7 @@ }, { "name": "CreateTableAsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "if_not_exists", @@ -3729,7 +3729,7 @@ }, { "name": "CreateTableSpaceStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -3763,7 +3763,7 @@ }, { "name": "CreateTransformStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fromsql", @@ -3804,7 +3804,7 @@ }, { "name": "CreateTrigStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -3915,7 +3915,7 @@ }, { "name": "CreateUserMappingStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "if_not_exists", @@ -3949,7 +3949,7 @@ }, { "name": "CTECycleClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cycle_col_list", @@ -4025,7 +4025,7 @@ }, { "name": "CTESearchClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -4059,7 +4059,7 @@ }, { "name": "CurrentOfExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cursor_name", @@ -4093,7 +4093,7 @@ }, { "name": "DeallocateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "isall", @@ -4120,7 +4120,7 @@ }, { "name": "DeclareCursorStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -4147,7 +4147,7 @@ }, { "name": "DefElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -4188,7 +4188,7 @@ }, { "name": "DefineStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -4243,7 +4243,7 @@ }, { "name": "DeleteStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "relation", @@ -4284,7 +4284,7 @@ }, { "name": "DiscardStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "target", @@ -4297,7 +4297,7 @@ }, { "name": "DistinctExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -4359,7 +4359,7 @@ }, { "name": "DoStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -4372,7 +4372,7 @@ }, { "name": "DropdbStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -4399,7 +4399,7 @@ }, { "name": "DropOwnedStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -4419,7 +4419,7 @@ }, { "name": "DropRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -4439,7 +4439,7 @@ }, { "name": "DropStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -4480,7 +4480,7 @@ }, { "name": "DropSubscriptionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -4507,7 +4507,7 @@ }, { "name": "DropTableSpaceStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -4527,7 +4527,7 @@ }, { "name": "DropUserMappingStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -4554,7 +4554,7 @@ }, { "name": "ExecuteStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "name", @@ -4574,7 +4574,7 @@ }, { "name": "ExplainStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -4594,7 +4594,7 @@ }, { "name": "FetchStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "direction", @@ -4628,7 +4628,7 @@ }, { "name": "FieldSelect", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -4676,7 +4676,7 @@ }, { "name": "FieldStore", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -4717,7 +4717,7 @@ }, { "name": "Float", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fval", @@ -4730,7 +4730,7 @@ }, { "name": "FromExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fromlist", @@ -4750,7 +4750,7 @@ }, { "name": "FuncCall", - "wrapped": true, + "isNode": true, "fields": [ { "name": "agg_distinct", @@ -4833,7 +4833,7 @@ }, { "name": "FuncExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -4909,7 +4909,7 @@ }, { "name": "FunctionParameter", - "wrapped": true, + "isNode": true, "fields": [ { "name": "argType", @@ -4943,7 +4943,7 @@ }, { "name": "GrantRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -4991,7 +4991,7 @@ }, { "name": "GrantStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -5060,7 +5060,7 @@ }, { "name": "GroupingFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "agglevelsup", @@ -5101,7 +5101,7 @@ }, { "name": "GroupingSet", - "wrapped": true, + "isNode": true, "fields": [ { "name": "content", @@ -5128,7 +5128,7 @@ }, { "name": "ImportForeignSchemaStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "list_type", @@ -5176,7 +5176,7 @@ }, { "name": "IndexElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -5238,7 +5238,7 @@ }, { "name": "IndexStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "accessMethod", @@ -5412,7 +5412,7 @@ }, { "name": "InferClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conname", @@ -5446,7 +5446,7 @@ }, { "name": "InferenceElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -5480,7 +5480,7 @@ }, { "name": "InlineCodeBlock", - "wrapped": true, + "isNode": true, "fields": [ { "name": "atomic", @@ -5514,7 +5514,7 @@ }, { "name": "InsertStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cols", @@ -5569,7 +5569,7 @@ }, { "name": "Integer", - "wrapped": true, + "isNode": true, "fields": [ { "name": "ival", @@ -5582,7 +5582,7 @@ }, { "name": "IntList", - "wrapped": true, + "isNode": true, "fields": [ { "name": "items", @@ -5595,7 +5595,7 @@ }, { "name": "IntoClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "accessMethod", @@ -5657,7 +5657,7 @@ }, { "name": "JoinExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -5726,7 +5726,7 @@ }, { "name": "JsonAggConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "agg_filter", @@ -5767,7 +5767,7 @@ }, { "name": "JsonArgument", - "wrapped": true, + "isNode": true, "fields": [ { "name": "name", @@ -5787,7 +5787,7 @@ }, { "name": "JsonArrayAgg", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -5814,7 +5814,7 @@ }, { "name": "JsonArrayConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -5848,7 +5848,7 @@ }, { "name": "JsonArrayQueryConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -5889,7 +5889,7 @@ }, { "name": "JsonBehavior", - "wrapped": true, + "isNode": true, "fields": [ { "name": "btype", @@ -5923,7 +5923,7 @@ }, { "name": "JsonConstructorExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -5992,7 +5992,7 @@ }, { "name": "JsonExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -6117,7 +6117,7 @@ }, { "name": "JsonFormat", - "wrapped": true, + "isNode": true, "fields": [ { "name": "encoding", @@ -6144,7 +6144,7 @@ }, { "name": "JsonFuncExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "column_name", @@ -6227,7 +6227,7 @@ }, { "name": "JsonIsPredicate", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -6268,7 +6268,7 @@ }, { "name": "JsonKeyValue", - "wrapped": true, + "isNode": true, "fields": [ { "name": "key", @@ -6288,7 +6288,7 @@ }, { "name": "JsonObjectAgg", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -6322,7 +6322,7 @@ }, { "name": "JsonObjectConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -6363,7 +6363,7 @@ }, { "name": "JsonOutput", - "wrapped": true, + "isNode": true, "fields": [ { "name": "returning", @@ -6383,7 +6383,7 @@ }, { "name": "JsonParseExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -6417,7 +6417,7 @@ }, { "name": "JsonReturning", - "wrapped": true, + "isNode": true, "fields": [ { "name": "format", @@ -6444,7 +6444,7 @@ }, { "name": "JsonScalarExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -6471,7 +6471,7 @@ }, { "name": "JsonSerializeExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -6498,7 +6498,7 @@ }, { "name": "JsonTable", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -6560,7 +6560,7 @@ }, { "name": "JsonTableColumn", - "wrapped": true, + "isNode": true, "fields": [ { "name": "coltype", @@ -6643,7 +6643,7 @@ }, { "name": "JsonTablePath", - "wrapped": true, + "isNode": true, "fields": [ { "name": "name", @@ -6656,7 +6656,7 @@ }, { "name": "JsonTablePathScan", - "wrapped": true, + "isNode": true, "fields": [ { "name": "child", @@ -6704,7 +6704,7 @@ }, { "name": "JsonTablePathSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -6738,7 +6738,7 @@ }, { "name": "JsonTableSiblingJoin", - "wrapped": true, + "isNode": true, "fields": [ { "name": "lplan", @@ -6765,7 +6765,7 @@ }, { "name": "JsonValueExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "format", @@ -6792,7 +6792,7 @@ }, { "name": "List", - "wrapped": true, + "isNode": true, "fields": [ { "name": "items", @@ -6805,7 +6805,7 @@ }, { "name": "ListenStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conditionname", @@ -6818,7 +6818,7 @@ }, { "name": "LoadStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "filename", @@ -6831,7 +6831,7 @@ }, { "name": "LockingClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "lockedRels", @@ -6858,7 +6858,7 @@ }, { "name": "LockStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "mode", @@ -6885,7 +6885,7 @@ }, { "name": "MergeAction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "commandType", @@ -6933,7 +6933,7 @@ }, { "name": "MergeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "joinCondition", @@ -6981,7 +6981,7 @@ }, { "name": "MergeSupportFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -7015,7 +7015,7 @@ }, { "name": "MergeWhenClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "commandType", @@ -7063,7 +7063,7 @@ }, { "name": "MinMaxExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -7118,7 +7118,7 @@ }, { "name": "MultiAssignRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "colno", @@ -7145,7 +7145,7 @@ }, { "name": "NamedArgExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -7186,7 +7186,7 @@ }, { "name": "NextValueExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "seqid", @@ -7213,7 +7213,7 @@ }, { "name": "NotifyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conditionname", @@ -7233,7 +7233,7 @@ }, { "name": "NullIfExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -7295,7 +7295,7 @@ }, { "name": "NullTest", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -7336,7 +7336,7 @@ }, { "name": "ObjectWithArgs", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args_unspecified", @@ -7370,7 +7370,7 @@ }, { "name": "OidList", - "wrapped": true, + "isNode": true, "fields": [ { "name": "items", @@ -7383,7 +7383,7 @@ }, { "name": "OnConflictClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -7424,7 +7424,7 @@ }, { "name": "OnConflictExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -7486,7 +7486,7 @@ }, { "name": "OpExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -7548,7 +7548,7 @@ }, { "name": "Param", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -7603,7 +7603,7 @@ }, { "name": "ParamRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -7623,7 +7623,7 @@ }, { "name": "ParseResult", - "wrapped": false, + "isNode": false, "fields": [ { "name": "stmts", @@ -7643,7 +7643,7 @@ }, { "name": "PartitionBoundSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "is_default", @@ -7705,7 +7705,7 @@ }, { "name": "PartitionCmd", - "wrapped": true, + "isNode": true, "fields": [ { "name": "bound", @@ -7732,7 +7732,7 @@ }, { "name": "PartitionElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -7773,7 +7773,7 @@ }, { "name": "PartitionRangeDatum", - "wrapped": true, + "isNode": true, "fields": [ { "name": "kind", @@ -7800,7 +7800,7 @@ }, { "name": "PartitionSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -7827,7 +7827,7 @@ }, { "name": "PLAssignStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "indirection", @@ -7868,7 +7868,7 @@ }, { "name": "PrepareStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "argtypes", @@ -7895,7 +7895,7 @@ }, { "name": "PublicationObjSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -7929,7 +7929,7 @@ }, { "name": "PublicationTable", - "wrapped": true, + "isNode": true, "fields": [ { "name": "columns", @@ -7956,7 +7956,7 @@ }, { "name": "Query", - "wrapped": true, + "isNode": true, "fields": [ { "name": "canSetTag", @@ -8256,7 +8256,7 @@ }, { "name": "RangeFunction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -8304,7 +8304,7 @@ }, { "name": "RangeSubselect", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -8331,7 +8331,7 @@ }, { "name": "RangeTableFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -8386,7 +8386,7 @@ }, { "name": "RangeTableFuncCol", - "wrapped": true, + "isNode": true, "fields": [ { "name": "coldefexpr", @@ -8441,7 +8441,7 @@ }, { "name": "RangeTableSample", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -8482,7 +8482,7 @@ }, { "name": "RangeTblEntry", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -8712,7 +8712,7 @@ }, { "name": "RangeTblFunction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "funccolcollations", @@ -8767,7 +8767,7 @@ }, { "name": "RangeTblRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "rtindex", @@ -8780,7 +8780,7 @@ }, { "name": "RangeVar", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -8835,7 +8835,7 @@ }, { "name": "RawStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "stmt", @@ -8862,7 +8862,7 @@ }, { "name": "ReassignOwnedStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "newrole", @@ -8882,7 +8882,7 @@ }, { "name": "RefreshMatViewStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "concurrent", @@ -8909,7 +8909,7 @@ }, { "name": "ReindexStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "kind", @@ -8943,7 +8943,7 @@ }, { "name": "RelabelType", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -8998,7 +8998,7 @@ }, { "name": "RenameStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -9060,7 +9060,7 @@ }, { "name": "ReplicaIdentityStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "identity_type", @@ -9080,7 +9080,7 @@ }, { "name": "ResTarget", - "wrapped": true, + "isNode": true, "fields": [ { "name": "indirection", @@ -9114,7 +9114,7 @@ }, { "name": "ReturnStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "returnval", @@ -9127,7 +9127,7 @@ }, { "name": "RoleSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -9154,7 +9154,7 @@ }, { "name": "RowCompareExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "inputcollids", @@ -9209,7 +9209,7 @@ }, { "name": "RowExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -9257,7 +9257,7 @@ }, { "name": "RowMarkClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "pushedDown", @@ -9291,7 +9291,7 @@ }, { "name": "RTEPermissionInfo", - "wrapped": true, + "isNode": true, "fields": [ { "name": "checkAsUser", @@ -9346,7 +9346,7 @@ }, { "name": "RuleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "actions", @@ -9401,7 +9401,7 @@ }, { "name": "ScalarArrayOpExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -9449,7 +9449,7 @@ }, { "name": "ScanResult", - "wrapped": false, + "isNode": false, "fields": [ { "name": "tokens", @@ -9469,7 +9469,7 @@ }, { "name": "ScanToken", - "wrapped": false, + "isNode": false, "fields": [ { "name": "end", @@ -9503,7 +9503,7 @@ }, { "name": "SecLabelStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "label", @@ -9537,7 +9537,7 @@ }, { "name": "SelectStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "all", @@ -9683,7 +9683,7 @@ }, { "name": "SetOperationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "all", @@ -9745,7 +9745,7 @@ }, { "name": "SetToDefault", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -9786,12 +9786,12 @@ }, { "name": "SinglePartitionSpec", - "wrapped": true, + "isNode": true, "fields": [] }, { "name": "SortBy", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -9832,7 +9832,7 @@ }, { "name": "SortGroupClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "eqop", @@ -9873,7 +9873,7 @@ }, { "name": "SQLValueFunction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -9914,7 +9914,7 @@ }, { "name": "StatsElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -9934,7 +9934,7 @@ }, { "name": "String", - "wrapped": true, + "isNode": true, "fields": [ { "name": "sval", @@ -9947,7 +9947,7 @@ }, { "name": "SubLink", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -10002,7 +10002,7 @@ }, { "name": "SubPlan", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -10127,7 +10127,7 @@ }, { "name": "SubscriptingRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "refassgnexpr", @@ -10203,7 +10203,7 @@ }, { "name": "TableFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "colcollations", @@ -10328,7 +10328,7 @@ }, { "name": "TableLikeClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -10355,7 +10355,7 @@ }, { "name": "TableSampleClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -10382,7 +10382,7 @@ }, { "name": "TargetEntry", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -10444,7 +10444,7 @@ }, { "name": "TransactionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "chain", @@ -10492,7 +10492,7 @@ }, { "name": "TriggerTransition", - "wrapped": true, + "isNode": true, "fields": [ { "name": "isNew", @@ -10519,7 +10519,7 @@ }, { "name": "TruncateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -10546,7 +10546,7 @@ }, { "name": "TypeCast", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -10573,7 +10573,7 @@ }, { "name": "TypeName", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arrayBounds", @@ -10635,7 +10635,7 @@ }, { "name": "UnlistenStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conditionname", @@ -10648,7 +10648,7 @@ }, { "name": "UpdateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fromClause", @@ -10696,7 +10696,7 @@ }, { "name": "VacuumRelation", - "wrapped": true, + "isNode": true, "fields": [ { "name": "oid", @@ -10723,7 +10723,7 @@ }, { "name": "VacuumStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "is_vacuumcmd", @@ -10750,7 +10750,7 @@ }, { "name": "Var", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -10819,7 +10819,7 @@ }, { "name": "VariableSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -10853,7 +10853,7 @@ }, { "name": "VariableShowStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "name", @@ -10866,7 +10866,7 @@ }, { "name": "ViewStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aliases", @@ -10914,7 +10914,7 @@ }, { "name": "WindowClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "copiedOrder", @@ -11018,7 +11018,7 @@ }, { "name": "WindowDef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "endOffset", @@ -11080,7 +11080,7 @@ }, { "name": "WindowFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aggfilter", @@ -11170,7 +11170,7 @@ }, { "name": "WindowFuncRunCondition", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -11211,7 +11211,7 @@ }, { "name": "WithCheckOption", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cascaded", @@ -11252,7 +11252,7 @@ }, { "name": "WithClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "ctes", @@ -11279,7 +11279,7 @@ }, { "name": "XmlExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg_names", @@ -11362,7 +11362,7 @@ }, { "name": "XmlSerialize", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", diff --git a/__fixtures__/output/runtime-schema/typescript/custom-filename/custom-node-specs.ts b/__fixtures__/output/runtime-schema/typescript/custom-filename/custom-node-specs.ts index cea353c1..8da93132 100644 --- a/__fixtures__/output/runtime-schema/typescript/custom-filename/custom-node-specs.ts +++ b/__fixtures__/output/runtime-schema/typescript/custom-filename/custom-node-specs.ts @@ -3,7 +3,6 @@ * DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, * and run the pg-proto-parser generate command to regenerate this file. */ -// Generated by pg-proto-parser export interface FieldSpec { name: string; type: string; @@ -13,13 +12,13 @@ export interface FieldSpec { } export interface NodeSpec { name: string; - wrapped: boolean; + isNode: boolean; fields: FieldSpec[]; } export const runtimeSchema: NodeSpec[] = [ { name: 'A_ArrayExpr', - wrapped: true, + isNode: true, fields: [ { name: 'elements', @@ -39,7 +38,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'A_Const', - wrapped: true, + isNode: true, fields: [ { name: 'boolval', @@ -94,7 +93,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'A_Expr', - wrapped: true, + isNode: true, fields: [ { name: 'kind', @@ -135,7 +134,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'A_Indices', - wrapped: true, + isNode: true, fields: [ { name: 'is_slice', @@ -162,7 +161,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'A_Indirection', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -182,14 +181,14 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'A_Star', - wrapped: true, + isNode: true, fields: [ ] }, { name: 'AccessPriv', - wrapped: true, + isNode: true, fields: [ { name: 'cols', @@ -209,7 +208,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Aggref', - wrapped: true, + isNode: true, fields: [ { name: 'aggargtypes', @@ -348,7 +347,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Alias', - wrapped: true, + isNode: true, fields: [ { name: 'aliasname', @@ -368,7 +367,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterCollationStmt', - wrapped: true, + isNode: true, fields: [ { name: 'collname', @@ -381,7 +380,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterDatabaseRefreshCollStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dbname', @@ -394,7 +393,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterDatabaseSetStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dbname', @@ -414,7 +413,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterDatabaseStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dbname', @@ -434,7 +433,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterDefaultPrivilegesStmt', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -454,7 +453,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterDomainStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -502,7 +501,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterEnumStmt', - wrapped: true, + isNode: true, fields: [ { name: 'newVal', @@ -550,7 +549,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterEventTrigStmt', - wrapped: true, + isNode: true, fields: [ { name: 'tgenabled', @@ -570,7 +569,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterExtensionContentsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -604,7 +603,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterExtensionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'extname', @@ -624,7 +623,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterFdwStmt', - wrapped: true, + isNode: true, fields: [ { name: 'fdwname', @@ -651,7 +650,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterForeignServerStmt', - wrapped: true, + isNode: true, fields: [ { name: 'has_version', @@ -685,7 +684,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterFunctionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'actions', @@ -712,7 +711,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlternativeSubPlan', - wrapped: true, + isNode: true, fields: [ { name: 'subplans', @@ -732,7 +731,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterObjectDependsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'extname', @@ -773,7 +772,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterObjectSchemaStmt', - wrapped: true, + isNode: true, fields: [ { name: 'missing_ok', @@ -814,7 +813,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterOperatorStmt', - wrapped: true, + isNode: true, fields: [ { name: 'opername', @@ -834,7 +833,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterOpFamilyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'amname', @@ -868,7 +867,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterOwnerStmt', - wrapped: true, + isNode: true, fields: [ { name: 'newowner', @@ -902,7 +901,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterPolicyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'policy_name', @@ -943,7 +942,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterPublicationStmt', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -984,7 +983,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterRoleSetStmt', - wrapped: true, + isNode: true, fields: [ { name: 'database', @@ -1011,7 +1010,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterRoleStmt', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -1038,7 +1037,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterSeqStmt', - wrapped: true, + isNode: true, fields: [ { name: 'for_identity', @@ -1072,7 +1071,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterStatsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'defnames', @@ -1099,7 +1098,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterSubscriptionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conninfo', @@ -1140,7 +1139,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterSystemStmt', - wrapped: true, + isNode: true, fields: [ { name: 'setstmt', @@ -1153,7 +1152,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTableCmd', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -1215,7 +1214,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTableMoveAllStmt', - wrapped: true, + isNode: true, fields: [ { name: 'new_tablespacename', @@ -1256,7 +1255,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTableSpaceOptionsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'isReset', @@ -1283,7 +1282,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTableStmt', - wrapped: true, + isNode: true, fields: [ { name: 'cmds', @@ -1317,7 +1316,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTSConfigurationStmt', - wrapped: true, + isNode: true, fields: [ { name: 'cfgname', @@ -1372,7 +1371,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTSDictionaryStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dictname', @@ -1392,7 +1391,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTypeStmt', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -1412,7 +1411,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterUserMappingStmt', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -1439,7 +1438,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ArrayCoerceExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -1501,7 +1500,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ArrayExpr', - wrapped: true, + isNode: true, fields: [ { name: 'array_collid', @@ -1556,7 +1555,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'BitString', - wrapped: true, + isNode: true, fields: [ { name: 'bsval', @@ -1569,7 +1568,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Boolean', - wrapped: true, + isNode: true, fields: [ { name: 'boolval', @@ -1582,7 +1581,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'BooleanTest', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -1616,7 +1615,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'BoolExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -1650,7 +1649,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CallContext', - wrapped: true, + isNode: true, fields: [ { name: 'atomic', @@ -1663,7 +1662,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CallStmt', - wrapped: true, + isNode: true, fields: [ { name: 'funccall', @@ -1690,7 +1689,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CaseExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -1745,7 +1744,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CaseTestExpr', - wrapped: true, + isNode: true, fields: [ { name: 'collation', @@ -1779,7 +1778,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CaseWhen', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -1813,14 +1812,14 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CheckPointStmt', - wrapped: true, + isNode: true, fields: [ ] }, { name: 'ClosePortalStmt', - wrapped: true, + isNode: true, fields: [ { name: 'portalname', @@ -1833,7 +1832,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ClusterStmt', - wrapped: true, + isNode: true, fields: [ { name: 'indexname', @@ -1860,7 +1859,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CoalesceExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -1901,7 +1900,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CoerceToDomain', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -1956,7 +1955,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CoerceToDomainValue', - wrapped: true, + isNode: true, fields: [ { name: 'collation', @@ -1997,7 +1996,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CoerceViaIO', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -2045,7 +2044,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CollateClause', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -2072,7 +2071,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CollateExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -2106,7 +2105,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ColumnDef', - wrapped: true, + isNode: true, fields: [ { name: 'collClause', @@ -2245,7 +2244,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ColumnRef', - wrapped: true, + isNode: true, fields: [ { name: 'fields', @@ -2265,7 +2264,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CommentStmt', - wrapped: true, + isNode: true, fields: [ { name: 'comment', @@ -2292,7 +2291,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CommonTableExpr', - wrapped: true, + isNode: true, fields: [ { name: 'aliascolnames', @@ -2389,7 +2388,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CompositeTypeStmt', - wrapped: true, + isNode: true, fields: [ { name: 'coldeflist', @@ -2409,7 +2408,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Constraint', - wrapped: true, + isNode: true, fields: [ { name: 'access_method', @@ -2625,7 +2624,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ConstraintsSetStmt', - wrapped: true, + isNode: true, fields: [ { name: 'constraints', @@ -2645,7 +2644,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ConvertRowtypeExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -2686,7 +2685,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CopyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'attlist', @@ -2748,7 +2747,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateAmStmt', - wrapped: true, + isNode: true, fields: [ { name: 'amname', @@ -2775,7 +2774,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateCastStmt', - wrapped: true, + isNode: true, fields: [ { name: 'context', @@ -2816,7 +2815,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateConversionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conversion_name', @@ -2857,7 +2856,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreatedbStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dbname', @@ -2877,7 +2876,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateDomainStmt', - wrapped: true, + isNode: true, fields: [ { name: 'collClause', @@ -2911,7 +2910,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateEnumStmt', - wrapped: true, + isNode: true, fields: [ { name: 'typeName', @@ -2931,7 +2930,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateEventTrigStmt', - wrapped: true, + isNode: true, fields: [ { name: 'eventname', @@ -2965,7 +2964,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateExtensionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'extname', @@ -2992,7 +2991,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateFdwStmt', - wrapped: true, + isNode: true, fields: [ { name: 'fdwname', @@ -3019,7 +3018,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateForeignServerStmt', - wrapped: true, + isNode: true, fields: [ { name: 'fdwname', @@ -3067,7 +3066,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateForeignTableStmt', - wrapped: true, + isNode: true, fields: [ { name: 'base', @@ -3094,7 +3093,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateFunctionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'funcname', @@ -3149,7 +3148,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateOpClassItem', - wrapped: true, + isNode: true, fields: [ { name: 'class_args', @@ -3197,7 +3196,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateOpClassStmt', - wrapped: true, + isNode: true, fields: [ { name: 'amname', @@ -3245,7 +3244,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateOpFamilyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'amname', @@ -3265,7 +3264,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreatePLangStmt', - wrapped: true, + isNode: true, fields: [ { name: 'plhandler', @@ -3313,7 +3312,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreatePolicyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'cmd_name', @@ -3368,7 +3367,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreatePublicationStmt', - wrapped: true, + isNode: true, fields: [ { name: 'for_all_tables', @@ -3402,7 +3401,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateRangeStmt', - wrapped: true, + isNode: true, fields: [ { name: 'params', @@ -3422,7 +3421,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateRoleStmt', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -3449,7 +3448,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateSchemaStmt', - wrapped: true, + isNode: true, fields: [ { name: 'authrole', @@ -3483,7 +3482,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateSeqStmt', - wrapped: true, + isNode: true, fields: [ { name: 'for_identity', @@ -3524,7 +3523,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateStatsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'defnames', @@ -3579,7 +3578,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateStmt', - wrapped: true, + isNode: true, fields: [ { name: 'accessMethod', @@ -3669,7 +3668,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateSubscriptionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conninfo', @@ -3703,7 +3702,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateTableAsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'if_not_exists', @@ -3744,7 +3743,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateTableSpaceStmt', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -3778,7 +3777,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateTransformStmt', - wrapped: true, + isNode: true, fields: [ { name: 'fromsql', @@ -3819,7 +3818,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateTrigStmt', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -3930,7 +3929,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateUserMappingStmt', - wrapped: true, + isNode: true, fields: [ { name: 'if_not_exists', @@ -3964,7 +3963,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CTECycleClause', - wrapped: true, + isNode: true, fields: [ { name: 'cycle_col_list', @@ -4040,7 +4039,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CTESearchClause', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -4074,7 +4073,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CurrentOfExpr', - wrapped: true, + isNode: true, fields: [ { name: 'cursor_name', @@ -4108,7 +4107,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DeallocateStmt', - wrapped: true, + isNode: true, fields: [ { name: 'name', @@ -4121,7 +4120,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DeclareCursorStmt', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -4148,7 +4147,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DefElem', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -4189,7 +4188,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DefineStmt', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -4244,7 +4243,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DeleteStmt', - wrapped: true, + isNode: true, fields: [ { name: 'relation', @@ -4285,7 +4284,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DiscardStmt', - wrapped: true, + isNode: true, fields: [ { name: 'target', @@ -4298,7 +4297,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DistinctExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -4360,7 +4359,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DoStmt', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -4373,7 +4372,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropdbStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dbname', @@ -4400,7 +4399,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropOwnedStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -4420,7 +4419,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropRoleStmt', - wrapped: true, + isNode: true, fields: [ { name: 'missing_ok', @@ -4440,7 +4439,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -4481,7 +4480,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropSubscriptionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -4508,7 +4507,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropTableSpaceStmt', - wrapped: true, + isNode: true, fields: [ { name: 'missing_ok', @@ -4528,7 +4527,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropUserMappingStmt', - wrapped: true, + isNode: true, fields: [ { name: 'missing_ok', @@ -4555,7 +4554,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ExecuteStmt', - wrapped: true, + isNode: true, fields: [ { name: 'name', @@ -4575,7 +4574,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ExplainStmt', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -4595,7 +4594,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FetchStmt', - wrapped: true, + isNode: true, fields: [ { name: 'direction', @@ -4629,7 +4628,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FieldSelect', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -4677,7 +4676,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FieldStore', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -4718,7 +4717,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Float', - wrapped: true, + isNode: true, fields: [ { name: 'fval', @@ -4731,7 +4730,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FromExpr', - wrapped: true, + isNode: true, fields: [ { name: 'fromlist', @@ -4751,7 +4750,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FuncCall', - wrapped: true, + isNode: true, fields: [ { name: 'agg_distinct', @@ -4834,7 +4833,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FuncExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -4910,7 +4909,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FunctionParameter', - wrapped: true, + isNode: true, fields: [ { name: 'argType', @@ -4944,7 +4943,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'GrantRoleStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -4992,7 +4991,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'GrantStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -5061,7 +5060,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'GroupingFunc', - wrapped: true, + isNode: true, fields: [ { name: 'agglevelsup', @@ -5102,7 +5101,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'GroupingSet', - wrapped: true, + isNode: true, fields: [ { name: 'content', @@ -5129,7 +5128,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ImportForeignSchemaStmt', - wrapped: true, + isNode: true, fields: [ { name: 'list_type', @@ -5177,7 +5176,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'IndexElem', - wrapped: true, + isNode: true, fields: [ { name: 'collation', @@ -5239,7 +5238,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'IndexStmt', - wrapped: true, + isNode: true, fields: [ { name: 'accessMethod', @@ -5413,7 +5412,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'InferClause', - wrapped: true, + isNode: true, fields: [ { name: 'conname', @@ -5447,7 +5446,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'InferenceElem', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -5481,7 +5480,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'InlineCodeBlock', - wrapped: true, + isNode: true, fields: [ { name: 'atomic', @@ -5515,7 +5514,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'InsertStmt', - wrapped: true, + isNode: true, fields: [ { name: 'cols', @@ -5570,7 +5569,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Integer', - wrapped: true, + isNode: true, fields: [ { name: 'ival', @@ -5583,7 +5582,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'IntList', - wrapped: true, + isNode: true, fields: [ { name: 'items', @@ -5596,7 +5595,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'IntoClause', - wrapped: true, + isNode: true, fields: [ { name: 'accessMethod', @@ -5658,7 +5657,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JoinExpr', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -5727,7 +5726,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonAggConstructor', - wrapped: true, + isNode: true, fields: [ { name: 'agg_filter', @@ -5768,7 +5767,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonArrayAgg', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -5795,7 +5794,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonArrayConstructor', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -5829,7 +5828,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonArrayQueryConstructor', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -5870,7 +5869,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonConstructorExpr', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -5939,7 +5938,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonFormat', - wrapped: true, + isNode: true, fields: [ { name: 'encoding', @@ -5966,7 +5965,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonIsPredicate', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -6007,7 +6006,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonKeyValue', - wrapped: true, + isNode: true, fields: [ { name: 'key', @@ -6027,7 +6026,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonObjectAgg', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -6061,7 +6060,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonObjectConstructor', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -6102,7 +6101,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonOutput', - wrapped: true, + isNode: true, fields: [ { name: 'returning', @@ -6122,7 +6121,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonReturning', - wrapped: true, + isNode: true, fields: [ { name: 'format', @@ -6149,7 +6148,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonValueExpr', - wrapped: true, + isNode: true, fields: [ { name: 'format', @@ -6176,7 +6175,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'List', - wrapped: true, + isNode: true, fields: [ { name: 'items', @@ -6189,7 +6188,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ListenStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conditionname', @@ -6202,7 +6201,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'LoadStmt', - wrapped: true, + isNode: true, fields: [ { name: 'filename', @@ -6215,7 +6214,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'LockingClause', - wrapped: true, + isNode: true, fields: [ { name: 'lockedRels', @@ -6242,7 +6241,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'LockStmt', - wrapped: true, + isNode: true, fields: [ { name: 'mode', @@ -6269,7 +6268,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'MergeAction', - wrapped: true, + isNode: true, fields: [ { name: 'commandType', @@ -6317,7 +6316,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'MergeStmt', - wrapped: true, + isNode: true, fields: [ { name: 'joinCondition', @@ -6358,7 +6357,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'MergeWhenClause', - wrapped: true, + isNode: true, fields: [ { name: 'commandType', @@ -6406,7 +6405,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'MinMaxExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -6461,7 +6460,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'MultiAssignRef', - wrapped: true, + isNode: true, fields: [ { name: 'colno', @@ -6488,7 +6487,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'NamedArgExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -6529,7 +6528,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'NextValueExpr', - wrapped: true, + isNode: true, fields: [ { name: 'seqid', @@ -6556,7 +6555,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'NotifyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conditionname', @@ -6576,7 +6575,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'NullIfExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -6638,7 +6637,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'NullTest', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -6679,7 +6678,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ObjectWithArgs', - wrapped: true, + isNode: true, fields: [ { name: 'args_unspecified', @@ -6713,7 +6712,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'OidList', - wrapped: true, + isNode: true, fields: [ { name: 'items', @@ -6726,7 +6725,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'OnConflictClause', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -6767,7 +6766,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'OnConflictExpr', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -6829,7 +6828,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'OpExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -6891,7 +6890,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Param', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -6946,7 +6945,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ParamRef', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -6966,7 +6965,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ParseResult', - wrapped: false, + isNode: false, fields: [ { name: 'stmts', @@ -6986,7 +6985,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PartitionBoundSpec', - wrapped: true, + isNode: true, fields: [ { name: 'is_default', @@ -7048,7 +7047,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PartitionCmd', - wrapped: true, + isNode: true, fields: [ { name: 'bound', @@ -7075,7 +7074,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PartitionElem', - wrapped: true, + isNode: true, fields: [ { name: 'collation', @@ -7116,7 +7115,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PartitionRangeDatum', - wrapped: true, + isNode: true, fields: [ { name: 'kind', @@ -7143,7 +7142,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PartitionSpec', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -7170,7 +7169,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PLAssignStmt', - wrapped: true, + isNode: true, fields: [ { name: 'indirection', @@ -7211,7 +7210,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PrepareStmt', - wrapped: true, + isNode: true, fields: [ { name: 'argtypes', @@ -7238,7 +7237,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PublicationObjSpec', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -7272,7 +7271,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PublicationTable', - wrapped: true, + isNode: true, fields: [ { name: 'columns', @@ -7299,7 +7298,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Query', - wrapped: true, + isNode: true, fields: [ { name: 'canSetTag', @@ -7592,7 +7591,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeFunction', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -7640,7 +7639,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeSubselect', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -7667,7 +7666,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTableFunc', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -7722,7 +7721,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTableFuncCol', - wrapped: true, + isNode: true, fields: [ { name: 'coldefexpr', @@ -7777,7 +7776,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTableSample', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -7818,7 +7817,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTblEntry', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -8048,7 +8047,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTblFunction', - wrapped: true, + isNode: true, fields: [ { name: 'funccolcollations', @@ -8103,7 +8102,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTblRef', - wrapped: true, + isNode: true, fields: [ { name: 'rtindex', @@ -8116,7 +8115,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeVar', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -8171,7 +8170,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RawStmt', - wrapped: true, + isNode: true, fields: [ { name: 'stmt', @@ -8198,7 +8197,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ReassignOwnedStmt', - wrapped: true, + isNode: true, fields: [ { name: 'newrole', @@ -8218,7 +8217,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RefreshMatViewStmt', - wrapped: true, + isNode: true, fields: [ { name: 'concurrent', @@ -8245,7 +8244,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ReindexStmt', - wrapped: true, + isNode: true, fields: [ { name: 'kind', @@ -8279,7 +8278,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RelabelType', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -8334,7 +8333,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RenameStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -8396,7 +8395,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ReplicaIdentityStmt', - wrapped: true, + isNode: true, fields: [ { name: 'identity_type', @@ -8416,7 +8415,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ResTarget', - wrapped: true, + isNode: true, fields: [ { name: 'indirection', @@ -8450,7 +8449,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ReturnStmt', - wrapped: true, + isNode: true, fields: [ { name: 'returnval', @@ -8463,7 +8462,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RoleSpec', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -8490,7 +8489,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RowCompareExpr', - wrapped: true, + isNode: true, fields: [ { name: 'inputcollids', @@ -8545,7 +8544,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RowExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -8593,7 +8592,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RowMarkClause', - wrapped: true, + isNode: true, fields: [ { name: 'pushedDown', @@ -8627,7 +8626,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RTEPermissionInfo', - wrapped: true, + isNode: true, fields: [ { name: 'checkAsUser', @@ -8682,7 +8681,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RuleStmt', - wrapped: true, + isNode: true, fields: [ { name: 'actions', @@ -8737,7 +8736,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ScalarArrayOpExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -8785,7 +8784,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ScanResult', - wrapped: false, + isNode: false, fields: [ { name: 'tokens', @@ -8805,7 +8804,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ScanToken', - wrapped: false, + isNode: false, fields: [ { name: 'end', @@ -8839,7 +8838,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SecLabelStmt', - wrapped: true, + isNode: true, fields: [ { name: 'label', @@ -8873,7 +8872,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SelectStmt', - wrapped: true, + isNode: true, fields: [ { name: 'all', @@ -9019,7 +9018,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SetOperationStmt', - wrapped: true, + isNode: true, fields: [ { name: 'all', @@ -9081,7 +9080,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SetToDefault', - wrapped: true, + isNode: true, fields: [ { name: 'collation', @@ -9122,7 +9121,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SortBy', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -9163,7 +9162,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SortGroupClause', - wrapped: true, + isNode: true, fields: [ { name: 'eqop', @@ -9204,7 +9203,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SQLValueFunction', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -9245,7 +9244,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'StatsElem', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -9265,7 +9264,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'String', - wrapped: true, + isNode: true, fields: [ { name: 'sval', @@ -9278,7 +9277,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SubLink', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -9333,7 +9332,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SubPlan', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -9458,7 +9457,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SubscriptingRef', - wrapped: true, + isNode: true, fields: [ { name: 'refassgnexpr', @@ -9534,7 +9533,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TableFunc', - wrapped: true, + isNode: true, fields: [ { name: 'colcollations', @@ -9631,7 +9630,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TableLikeClause', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -9658,7 +9657,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TableSampleClause', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -9685,7 +9684,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TargetEntry', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -9747,7 +9746,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TransactionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'chain', @@ -9788,7 +9787,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TriggerTransition', - wrapped: true, + isNode: true, fields: [ { name: 'isNew', @@ -9815,7 +9814,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TruncateStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -9842,7 +9841,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TypeCast', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -9869,7 +9868,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TypeName', - wrapped: true, + isNode: true, fields: [ { name: 'arrayBounds', @@ -9931,7 +9930,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'UnlistenStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conditionname', @@ -9944,7 +9943,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'UpdateStmt', - wrapped: true, + isNode: true, fields: [ { name: 'fromClause', @@ -9992,7 +9991,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'VacuumRelation', - wrapped: true, + isNode: true, fields: [ { name: 'oid', @@ -10019,7 +10018,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'VacuumStmt', - wrapped: true, + isNode: true, fields: [ { name: 'is_vacuumcmd', @@ -10046,7 +10045,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Var', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -10115,7 +10114,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'VariableSetStmt', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -10149,7 +10148,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'VariableShowStmt', - wrapped: true, + isNode: true, fields: [ { name: 'name', @@ -10162,7 +10161,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ViewStmt', - wrapped: true, + isNode: true, fields: [ { name: 'aliases', @@ -10210,7 +10209,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'WindowClause', - wrapped: true, + isNode: true, fields: [ { name: 'copiedOrder', @@ -10321,7 +10320,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'WindowDef', - wrapped: true, + isNode: true, fields: [ { name: 'endOffset', @@ -10383,7 +10382,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'WindowFunc', - wrapped: true, + isNode: true, fields: [ { name: 'aggfilter', @@ -10466,7 +10465,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'WithCheckOption', - wrapped: true, + isNode: true, fields: [ { name: 'cascaded', @@ -10507,7 +10506,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'WithClause', - wrapped: true, + isNode: true, fields: [ { name: 'ctes', @@ -10534,7 +10533,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'XmlExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg_names', @@ -10617,7 +10616,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'XmlSerialize', - wrapped: true, + isNode: true, fields: [ { name: 'expr', diff --git a/__fixtures__/output/runtime-schema/typescript/enabled/runtime-schema.ts b/__fixtures__/output/runtime-schema/typescript/enabled/runtime-schema.ts index cea353c1..8da93132 100644 --- a/__fixtures__/output/runtime-schema/typescript/enabled/runtime-schema.ts +++ b/__fixtures__/output/runtime-schema/typescript/enabled/runtime-schema.ts @@ -3,7 +3,6 @@ * DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, * and run the pg-proto-parser generate command to regenerate this file. */ -// Generated by pg-proto-parser export interface FieldSpec { name: string; type: string; @@ -13,13 +12,13 @@ export interface FieldSpec { } export interface NodeSpec { name: string; - wrapped: boolean; + isNode: boolean; fields: FieldSpec[]; } export const runtimeSchema: NodeSpec[] = [ { name: 'A_ArrayExpr', - wrapped: true, + isNode: true, fields: [ { name: 'elements', @@ -39,7 +38,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'A_Const', - wrapped: true, + isNode: true, fields: [ { name: 'boolval', @@ -94,7 +93,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'A_Expr', - wrapped: true, + isNode: true, fields: [ { name: 'kind', @@ -135,7 +134,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'A_Indices', - wrapped: true, + isNode: true, fields: [ { name: 'is_slice', @@ -162,7 +161,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'A_Indirection', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -182,14 +181,14 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'A_Star', - wrapped: true, + isNode: true, fields: [ ] }, { name: 'AccessPriv', - wrapped: true, + isNode: true, fields: [ { name: 'cols', @@ -209,7 +208,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Aggref', - wrapped: true, + isNode: true, fields: [ { name: 'aggargtypes', @@ -348,7 +347,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Alias', - wrapped: true, + isNode: true, fields: [ { name: 'aliasname', @@ -368,7 +367,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterCollationStmt', - wrapped: true, + isNode: true, fields: [ { name: 'collname', @@ -381,7 +380,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterDatabaseRefreshCollStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dbname', @@ -394,7 +393,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterDatabaseSetStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dbname', @@ -414,7 +413,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterDatabaseStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dbname', @@ -434,7 +433,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterDefaultPrivilegesStmt', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -454,7 +453,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterDomainStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -502,7 +501,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterEnumStmt', - wrapped: true, + isNode: true, fields: [ { name: 'newVal', @@ -550,7 +549,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterEventTrigStmt', - wrapped: true, + isNode: true, fields: [ { name: 'tgenabled', @@ -570,7 +569,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterExtensionContentsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -604,7 +603,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterExtensionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'extname', @@ -624,7 +623,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterFdwStmt', - wrapped: true, + isNode: true, fields: [ { name: 'fdwname', @@ -651,7 +650,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterForeignServerStmt', - wrapped: true, + isNode: true, fields: [ { name: 'has_version', @@ -685,7 +684,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterFunctionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'actions', @@ -712,7 +711,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlternativeSubPlan', - wrapped: true, + isNode: true, fields: [ { name: 'subplans', @@ -732,7 +731,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterObjectDependsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'extname', @@ -773,7 +772,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterObjectSchemaStmt', - wrapped: true, + isNode: true, fields: [ { name: 'missing_ok', @@ -814,7 +813,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterOperatorStmt', - wrapped: true, + isNode: true, fields: [ { name: 'opername', @@ -834,7 +833,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterOpFamilyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'amname', @@ -868,7 +867,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterOwnerStmt', - wrapped: true, + isNode: true, fields: [ { name: 'newowner', @@ -902,7 +901,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterPolicyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'policy_name', @@ -943,7 +942,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterPublicationStmt', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -984,7 +983,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterRoleSetStmt', - wrapped: true, + isNode: true, fields: [ { name: 'database', @@ -1011,7 +1010,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterRoleStmt', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -1038,7 +1037,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterSeqStmt', - wrapped: true, + isNode: true, fields: [ { name: 'for_identity', @@ -1072,7 +1071,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterStatsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'defnames', @@ -1099,7 +1098,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterSubscriptionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conninfo', @@ -1140,7 +1139,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterSystemStmt', - wrapped: true, + isNode: true, fields: [ { name: 'setstmt', @@ -1153,7 +1152,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTableCmd', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -1215,7 +1214,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTableMoveAllStmt', - wrapped: true, + isNode: true, fields: [ { name: 'new_tablespacename', @@ -1256,7 +1255,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTableSpaceOptionsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'isReset', @@ -1283,7 +1282,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTableStmt', - wrapped: true, + isNode: true, fields: [ { name: 'cmds', @@ -1317,7 +1316,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTSConfigurationStmt', - wrapped: true, + isNode: true, fields: [ { name: 'cfgname', @@ -1372,7 +1371,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTSDictionaryStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dictname', @@ -1392,7 +1391,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTypeStmt', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -1412,7 +1411,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterUserMappingStmt', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -1439,7 +1438,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ArrayCoerceExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -1501,7 +1500,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ArrayExpr', - wrapped: true, + isNode: true, fields: [ { name: 'array_collid', @@ -1556,7 +1555,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'BitString', - wrapped: true, + isNode: true, fields: [ { name: 'bsval', @@ -1569,7 +1568,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Boolean', - wrapped: true, + isNode: true, fields: [ { name: 'boolval', @@ -1582,7 +1581,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'BooleanTest', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -1616,7 +1615,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'BoolExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -1650,7 +1649,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CallContext', - wrapped: true, + isNode: true, fields: [ { name: 'atomic', @@ -1663,7 +1662,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CallStmt', - wrapped: true, + isNode: true, fields: [ { name: 'funccall', @@ -1690,7 +1689,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CaseExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -1745,7 +1744,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CaseTestExpr', - wrapped: true, + isNode: true, fields: [ { name: 'collation', @@ -1779,7 +1778,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CaseWhen', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -1813,14 +1812,14 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CheckPointStmt', - wrapped: true, + isNode: true, fields: [ ] }, { name: 'ClosePortalStmt', - wrapped: true, + isNode: true, fields: [ { name: 'portalname', @@ -1833,7 +1832,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ClusterStmt', - wrapped: true, + isNode: true, fields: [ { name: 'indexname', @@ -1860,7 +1859,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CoalesceExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -1901,7 +1900,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CoerceToDomain', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -1956,7 +1955,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CoerceToDomainValue', - wrapped: true, + isNode: true, fields: [ { name: 'collation', @@ -1997,7 +1996,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CoerceViaIO', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -2045,7 +2044,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CollateClause', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -2072,7 +2071,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CollateExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -2106,7 +2105,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ColumnDef', - wrapped: true, + isNode: true, fields: [ { name: 'collClause', @@ -2245,7 +2244,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ColumnRef', - wrapped: true, + isNode: true, fields: [ { name: 'fields', @@ -2265,7 +2264,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CommentStmt', - wrapped: true, + isNode: true, fields: [ { name: 'comment', @@ -2292,7 +2291,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CommonTableExpr', - wrapped: true, + isNode: true, fields: [ { name: 'aliascolnames', @@ -2389,7 +2388,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CompositeTypeStmt', - wrapped: true, + isNode: true, fields: [ { name: 'coldeflist', @@ -2409,7 +2408,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Constraint', - wrapped: true, + isNode: true, fields: [ { name: 'access_method', @@ -2625,7 +2624,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ConstraintsSetStmt', - wrapped: true, + isNode: true, fields: [ { name: 'constraints', @@ -2645,7 +2644,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ConvertRowtypeExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -2686,7 +2685,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CopyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'attlist', @@ -2748,7 +2747,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateAmStmt', - wrapped: true, + isNode: true, fields: [ { name: 'amname', @@ -2775,7 +2774,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateCastStmt', - wrapped: true, + isNode: true, fields: [ { name: 'context', @@ -2816,7 +2815,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateConversionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conversion_name', @@ -2857,7 +2856,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreatedbStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dbname', @@ -2877,7 +2876,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateDomainStmt', - wrapped: true, + isNode: true, fields: [ { name: 'collClause', @@ -2911,7 +2910,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateEnumStmt', - wrapped: true, + isNode: true, fields: [ { name: 'typeName', @@ -2931,7 +2930,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateEventTrigStmt', - wrapped: true, + isNode: true, fields: [ { name: 'eventname', @@ -2965,7 +2964,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateExtensionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'extname', @@ -2992,7 +2991,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateFdwStmt', - wrapped: true, + isNode: true, fields: [ { name: 'fdwname', @@ -3019,7 +3018,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateForeignServerStmt', - wrapped: true, + isNode: true, fields: [ { name: 'fdwname', @@ -3067,7 +3066,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateForeignTableStmt', - wrapped: true, + isNode: true, fields: [ { name: 'base', @@ -3094,7 +3093,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateFunctionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'funcname', @@ -3149,7 +3148,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateOpClassItem', - wrapped: true, + isNode: true, fields: [ { name: 'class_args', @@ -3197,7 +3196,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateOpClassStmt', - wrapped: true, + isNode: true, fields: [ { name: 'amname', @@ -3245,7 +3244,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateOpFamilyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'amname', @@ -3265,7 +3264,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreatePLangStmt', - wrapped: true, + isNode: true, fields: [ { name: 'plhandler', @@ -3313,7 +3312,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreatePolicyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'cmd_name', @@ -3368,7 +3367,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreatePublicationStmt', - wrapped: true, + isNode: true, fields: [ { name: 'for_all_tables', @@ -3402,7 +3401,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateRangeStmt', - wrapped: true, + isNode: true, fields: [ { name: 'params', @@ -3422,7 +3421,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateRoleStmt', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -3449,7 +3448,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateSchemaStmt', - wrapped: true, + isNode: true, fields: [ { name: 'authrole', @@ -3483,7 +3482,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateSeqStmt', - wrapped: true, + isNode: true, fields: [ { name: 'for_identity', @@ -3524,7 +3523,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateStatsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'defnames', @@ -3579,7 +3578,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateStmt', - wrapped: true, + isNode: true, fields: [ { name: 'accessMethod', @@ -3669,7 +3668,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateSubscriptionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conninfo', @@ -3703,7 +3702,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateTableAsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'if_not_exists', @@ -3744,7 +3743,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateTableSpaceStmt', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -3778,7 +3777,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateTransformStmt', - wrapped: true, + isNode: true, fields: [ { name: 'fromsql', @@ -3819,7 +3818,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateTrigStmt', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -3930,7 +3929,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateUserMappingStmt', - wrapped: true, + isNode: true, fields: [ { name: 'if_not_exists', @@ -3964,7 +3963,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CTECycleClause', - wrapped: true, + isNode: true, fields: [ { name: 'cycle_col_list', @@ -4040,7 +4039,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CTESearchClause', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -4074,7 +4073,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CurrentOfExpr', - wrapped: true, + isNode: true, fields: [ { name: 'cursor_name', @@ -4108,7 +4107,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DeallocateStmt', - wrapped: true, + isNode: true, fields: [ { name: 'name', @@ -4121,7 +4120,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DeclareCursorStmt', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -4148,7 +4147,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DefElem', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -4189,7 +4188,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DefineStmt', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -4244,7 +4243,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DeleteStmt', - wrapped: true, + isNode: true, fields: [ { name: 'relation', @@ -4285,7 +4284,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DiscardStmt', - wrapped: true, + isNode: true, fields: [ { name: 'target', @@ -4298,7 +4297,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DistinctExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -4360,7 +4359,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DoStmt', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -4373,7 +4372,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropdbStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dbname', @@ -4400,7 +4399,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropOwnedStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -4420,7 +4419,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropRoleStmt', - wrapped: true, + isNode: true, fields: [ { name: 'missing_ok', @@ -4440,7 +4439,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -4481,7 +4480,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropSubscriptionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -4508,7 +4507,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropTableSpaceStmt', - wrapped: true, + isNode: true, fields: [ { name: 'missing_ok', @@ -4528,7 +4527,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropUserMappingStmt', - wrapped: true, + isNode: true, fields: [ { name: 'missing_ok', @@ -4555,7 +4554,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ExecuteStmt', - wrapped: true, + isNode: true, fields: [ { name: 'name', @@ -4575,7 +4574,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ExplainStmt', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -4595,7 +4594,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FetchStmt', - wrapped: true, + isNode: true, fields: [ { name: 'direction', @@ -4629,7 +4628,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FieldSelect', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -4677,7 +4676,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FieldStore', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -4718,7 +4717,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Float', - wrapped: true, + isNode: true, fields: [ { name: 'fval', @@ -4731,7 +4730,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FromExpr', - wrapped: true, + isNode: true, fields: [ { name: 'fromlist', @@ -4751,7 +4750,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FuncCall', - wrapped: true, + isNode: true, fields: [ { name: 'agg_distinct', @@ -4834,7 +4833,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FuncExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -4910,7 +4909,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FunctionParameter', - wrapped: true, + isNode: true, fields: [ { name: 'argType', @@ -4944,7 +4943,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'GrantRoleStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -4992,7 +4991,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'GrantStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -5061,7 +5060,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'GroupingFunc', - wrapped: true, + isNode: true, fields: [ { name: 'agglevelsup', @@ -5102,7 +5101,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'GroupingSet', - wrapped: true, + isNode: true, fields: [ { name: 'content', @@ -5129,7 +5128,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ImportForeignSchemaStmt', - wrapped: true, + isNode: true, fields: [ { name: 'list_type', @@ -5177,7 +5176,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'IndexElem', - wrapped: true, + isNode: true, fields: [ { name: 'collation', @@ -5239,7 +5238,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'IndexStmt', - wrapped: true, + isNode: true, fields: [ { name: 'accessMethod', @@ -5413,7 +5412,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'InferClause', - wrapped: true, + isNode: true, fields: [ { name: 'conname', @@ -5447,7 +5446,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'InferenceElem', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -5481,7 +5480,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'InlineCodeBlock', - wrapped: true, + isNode: true, fields: [ { name: 'atomic', @@ -5515,7 +5514,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'InsertStmt', - wrapped: true, + isNode: true, fields: [ { name: 'cols', @@ -5570,7 +5569,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Integer', - wrapped: true, + isNode: true, fields: [ { name: 'ival', @@ -5583,7 +5582,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'IntList', - wrapped: true, + isNode: true, fields: [ { name: 'items', @@ -5596,7 +5595,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'IntoClause', - wrapped: true, + isNode: true, fields: [ { name: 'accessMethod', @@ -5658,7 +5657,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JoinExpr', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -5727,7 +5726,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonAggConstructor', - wrapped: true, + isNode: true, fields: [ { name: 'agg_filter', @@ -5768,7 +5767,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonArrayAgg', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -5795,7 +5794,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonArrayConstructor', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -5829,7 +5828,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonArrayQueryConstructor', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -5870,7 +5869,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonConstructorExpr', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -5939,7 +5938,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonFormat', - wrapped: true, + isNode: true, fields: [ { name: 'encoding', @@ -5966,7 +5965,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonIsPredicate', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -6007,7 +6006,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonKeyValue', - wrapped: true, + isNode: true, fields: [ { name: 'key', @@ -6027,7 +6026,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonObjectAgg', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -6061,7 +6060,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonObjectConstructor', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -6102,7 +6101,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonOutput', - wrapped: true, + isNode: true, fields: [ { name: 'returning', @@ -6122,7 +6121,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonReturning', - wrapped: true, + isNode: true, fields: [ { name: 'format', @@ -6149,7 +6148,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonValueExpr', - wrapped: true, + isNode: true, fields: [ { name: 'format', @@ -6176,7 +6175,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'List', - wrapped: true, + isNode: true, fields: [ { name: 'items', @@ -6189,7 +6188,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ListenStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conditionname', @@ -6202,7 +6201,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'LoadStmt', - wrapped: true, + isNode: true, fields: [ { name: 'filename', @@ -6215,7 +6214,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'LockingClause', - wrapped: true, + isNode: true, fields: [ { name: 'lockedRels', @@ -6242,7 +6241,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'LockStmt', - wrapped: true, + isNode: true, fields: [ { name: 'mode', @@ -6269,7 +6268,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'MergeAction', - wrapped: true, + isNode: true, fields: [ { name: 'commandType', @@ -6317,7 +6316,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'MergeStmt', - wrapped: true, + isNode: true, fields: [ { name: 'joinCondition', @@ -6358,7 +6357,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'MergeWhenClause', - wrapped: true, + isNode: true, fields: [ { name: 'commandType', @@ -6406,7 +6405,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'MinMaxExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -6461,7 +6460,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'MultiAssignRef', - wrapped: true, + isNode: true, fields: [ { name: 'colno', @@ -6488,7 +6487,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'NamedArgExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -6529,7 +6528,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'NextValueExpr', - wrapped: true, + isNode: true, fields: [ { name: 'seqid', @@ -6556,7 +6555,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'NotifyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conditionname', @@ -6576,7 +6575,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'NullIfExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -6638,7 +6637,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'NullTest', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -6679,7 +6678,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ObjectWithArgs', - wrapped: true, + isNode: true, fields: [ { name: 'args_unspecified', @@ -6713,7 +6712,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'OidList', - wrapped: true, + isNode: true, fields: [ { name: 'items', @@ -6726,7 +6725,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'OnConflictClause', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -6767,7 +6766,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'OnConflictExpr', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -6829,7 +6828,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'OpExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -6891,7 +6890,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Param', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -6946,7 +6945,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ParamRef', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -6966,7 +6965,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ParseResult', - wrapped: false, + isNode: false, fields: [ { name: 'stmts', @@ -6986,7 +6985,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PartitionBoundSpec', - wrapped: true, + isNode: true, fields: [ { name: 'is_default', @@ -7048,7 +7047,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PartitionCmd', - wrapped: true, + isNode: true, fields: [ { name: 'bound', @@ -7075,7 +7074,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PartitionElem', - wrapped: true, + isNode: true, fields: [ { name: 'collation', @@ -7116,7 +7115,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PartitionRangeDatum', - wrapped: true, + isNode: true, fields: [ { name: 'kind', @@ -7143,7 +7142,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PartitionSpec', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -7170,7 +7169,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PLAssignStmt', - wrapped: true, + isNode: true, fields: [ { name: 'indirection', @@ -7211,7 +7210,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PrepareStmt', - wrapped: true, + isNode: true, fields: [ { name: 'argtypes', @@ -7238,7 +7237,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PublicationObjSpec', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -7272,7 +7271,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PublicationTable', - wrapped: true, + isNode: true, fields: [ { name: 'columns', @@ -7299,7 +7298,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Query', - wrapped: true, + isNode: true, fields: [ { name: 'canSetTag', @@ -7592,7 +7591,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeFunction', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -7640,7 +7639,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeSubselect', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -7667,7 +7666,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTableFunc', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -7722,7 +7721,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTableFuncCol', - wrapped: true, + isNode: true, fields: [ { name: 'coldefexpr', @@ -7777,7 +7776,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTableSample', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -7818,7 +7817,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTblEntry', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -8048,7 +8047,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTblFunction', - wrapped: true, + isNode: true, fields: [ { name: 'funccolcollations', @@ -8103,7 +8102,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTblRef', - wrapped: true, + isNode: true, fields: [ { name: 'rtindex', @@ -8116,7 +8115,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeVar', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -8171,7 +8170,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RawStmt', - wrapped: true, + isNode: true, fields: [ { name: 'stmt', @@ -8198,7 +8197,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ReassignOwnedStmt', - wrapped: true, + isNode: true, fields: [ { name: 'newrole', @@ -8218,7 +8217,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RefreshMatViewStmt', - wrapped: true, + isNode: true, fields: [ { name: 'concurrent', @@ -8245,7 +8244,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ReindexStmt', - wrapped: true, + isNode: true, fields: [ { name: 'kind', @@ -8279,7 +8278,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RelabelType', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -8334,7 +8333,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RenameStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -8396,7 +8395,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ReplicaIdentityStmt', - wrapped: true, + isNode: true, fields: [ { name: 'identity_type', @@ -8416,7 +8415,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ResTarget', - wrapped: true, + isNode: true, fields: [ { name: 'indirection', @@ -8450,7 +8449,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ReturnStmt', - wrapped: true, + isNode: true, fields: [ { name: 'returnval', @@ -8463,7 +8462,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RoleSpec', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -8490,7 +8489,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RowCompareExpr', - wrapped: true, + isNode: true, fields: [ { name: 'inputcollids', @@ -8545,7 +8544,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RowExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -8593,7 +8592,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RowMarkClause', - wrapped: true, + isNode: true, fields: [ { name: 'pushedDown', @@ -8627,7 +8626,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RTEPermissionInfo', - wrapped: true, + isNode: true, fields: [ { name: 'checkAsUser', @@ -8682,7 +8681,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RuleStmt', - wrapped: true, + isNode: true, fields: [ { name: 'actions', @@ -8737,7 +8736,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ScalarArrayOpExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -8785,7 +8784,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ScanResult', - wrapped: false, + isNode: false, fields: [ { name: 'tokens', @@ -8805,7 +8804,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ScanToken', - wrapped: false, + isNode: false, fields: [ { name: 'end', @@ -8839,7 +8838,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SecLabelStmt', - wrapped: true, + isNode: true, fields: [ { name: 'label', @@ -8873,7 +8872,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SelectStmt', - wrapped: true, + isNode: true, fields: [ { name: 'all', @@ -9019,7 +9018,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SetOperationStmt', - wrapped: true, + isNode: true, fields: [ { name: 'all', @@ -9081,7 +9080,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SetToDefault', - wrapped: true, + isNode: true, fields: [ { name: 'collation', @@ -9122,7 +9121,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SortBy', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -9163,7 +9162,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SortGroupClause', - wrapped: true, + isNode: true, fields: [ { name: 'eqop', @@ -9204,7 +9203,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SQLValueFunction', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -9245,7 +9244,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'StatsElem', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -9265,7 +9264,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'String', - wrapped: true, + isNode: true, fields: [ { name: 'sval', @@ -9278,7 +9277,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SubLink', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -9333,7 +9332,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SubPlan', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -9458,7 +9457,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SubscriptingRef', - wrapped: true, + isNode: true, fields: [ { name: 'refassgnexpr', @@ -9534,7 +9533,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TableFunc', - wrapped: true, + isNode: true, fields: [ { name: 'colcollations', @@ -9631,7 +9630,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TableLikeClause', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -9658,7 +9657,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TableSampleClause', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -9685,7 +9684,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TargetEntry', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -9747,7 +9746,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TransactionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'chain', @@ -9788,7 +9787,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TriggerTransition', - wrapped: true, + isNode: true, fields: [ { name: 'isNew', @@ -9815,7 +9814,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TruncateStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -9842,7 +9841,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TypeCast', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -9869,7 +9868,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TypeName', - wrapped: true, + isNode: true, fields: [ { name: 'arrayBounds', @@ -9931,7 +9930,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'UnlistenStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conditionname', @@ -9944,7 +9943,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'UpdateStmt', - wrapped: true, + isNode: true, fields: [ { name: 'fromClause', @@ -9992,7 +9991,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'VacuumRelation', - wrapped: true, + isNode: true, fields: [ { name: 'oid', @@ -10019,7 +10018,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'VacuumStmt', - wrapped: true, + isNode: true, fields: [ { name: 'is_vacuumcmd', @@ -10046,7 +10045,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Var', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -10115,7 +10114,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'VariableSetStmt', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -10149,7 +10148,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'VariableShowStmt', - wrapped: true, + isNode: true, fields: [ { name: 'name', @@ -10162,7 +10161,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ViewStmt', - wrapped: true, + isNode: true, fields: [ { name: 'aliases', @@ -10210,7 +10209,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'WindowClause', - wrapped: true, + isNode: true, fields: [ { name: 'copiedOrder', @@ -10321,7 +10320,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'WindowDef', - wrapped: true, + isNode: true, fields: [ { name: 'endOffset', @@ -10383,7 +10382,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'WindowFunc', - wrapped: true, + isNode: true, fields: [ { name: 'aggfilter', @@ -10466,7 +10465,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'WithCheckOption', - wrapped: true, + isNode: true, fields: [ { name: 'cascaded', @@ -10507,7 +10506,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'WithClause', - wrapped: true, + isNode: true, fields: [ { name: 'ctes', @@ -10534,7 +10533,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'XmlExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg_names', @@ -10617,7 +10616,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'XmlSerialize', - wrapped: true, + isNode: true, fields: [ { name: 'expr', diff --git a/__fixtures__/output/runtime-schema/typescript/full-features/asts.ts b/__fixtures__/output/runtime-schema/typescript/full-features/asts.ts index a89d9711..002ec189 100644 --- a/__fixtures__/output/runtime-schema/typescript/full-features/asts.ts +++ b/__fixtures__/output/runtime-schema/typescript/full-features/asts.ts @@ -4,7 +4,7 @@ * and run the pg-proto-parser generate command to regenerate this file. */ import _o from "nested-obj"; -import { ParseResult, ScanResult, Integer, Float, Boolean, String, BitString, List, OidList, IntList, A_Const, Alias, RangeVar, TableFunc, IntoClause, Var, Param, Aggref, GroupingFunc, WindowFunc, SubscriptingRef, FuncExpr, NamedArgExpr, OpExpr, DistinctExpr, NullIfExpr, ScalarArrayOpExpr, BoolExpr, SubLink, SubPlan, AlternativeSubPlan, FieldSelect, FieldStore, RelabelType, CoerceViaIO, ArrayCoerceExpr, ConvertRowtypeExpr, CollateExpr, CaseExpr, CaseWhen, CaseTestExpr, ArrayExpr, RowExpr, RowCompareExpr, CoalesceExpr, MinMaxExpr, SQLValueFunction, XmlExpr, JsonFormat, JsonReturning, JsonValueExpr, JsonConstructorExpr, JsonIsPredicate, NullTest, BooleanTest, CoerceToDomain, CoerceToDomainValue, SetToDefault, CurrentOfExpr, NextValueExpr, InferenceElem, TargetEntry, RangeTblRef, JoinExpr, FromExpr, OnConflictExpr, Query, TypeName, ColumnRef, ParamRef, A_Expr, TypeCast, CollateClause, RoleSpec, FuncCall, A_Star, A_Indices, A_Indirection, A_ArrayExpr, ResTarget, MultiAssignRef, SortBy, WindowDef, RangeSubselect, RangeFunction, RangeTableFunc, RangeTableFuncCol, RangeTableSample, ColumnDef, TableLikeClause, IndexElem, DefElem, LockingClause, XmlSerialize, PartitionElem, PartitionSpec, PartitionBoundSpec, PartitionRangeDatum, PartitionCmd, RangeTblEntry, RTEPermissionInfo, RangeTblFunction, TableSampleClause, WithCheckOption, SortGroupClause, GroupingSet, WindowClause, RowMarkClause, WithClause, InferClause, OnConflictClause, CTESearchClause, CTECycleClause, CommonTableExpr, MergeWhenClause, MergeAction, TriggerTransition, JsonOutput, JsonKeyValue, JsonObjectConstructor, JsonArrayConstructor, JsonArrayQueryConstructor, JsonAggConstructor, JsonObjectAgg, JsonArrayAgg, RawStmt, InsertStmt, DeleteStmt, UpdateStmt, MergeStmt, SelectStmt, SetOperationStmt, ReturnStmt, PLAssignStmt, CreateSchemaStmt, AlterTableStmt, ReplicaIdentityStmt, AlterTableCmd, AlterCollationStmt, AlterDomainStmt, GrantStmt, ObjectWithArgs, AccessPriv, GrantRoleStmt, AlterDefaultPrivilegesStmt, CopyStmt, VariableSetStmt, VariableShowStmt, CreateStmt, Constraint, CreateTableSpaceStmt, DropTableSpaceStmt, AlterTableSpaceOptionsStmt, AlterTableMoveAllStmt, CreateExtensionStmt, AlterExtensionStmt, AlterExtensionContentsStmt, CreateFdwStmt, AlterFdwStmt, CreateForeignServerStmt, AlterForeignServerStmt, CreateForeignTableStmt, CreateUserMappingStmt, AlterUserMappingStmt, DropUserMappingStmt, ImportForeignSchemaStmt, CreatePolicyStmt, AlterPolicyStmt, CreateAmStmt, CreateTrigStmt, CreateEventTrigStmt, AlterEventTrigStmt, CreatePLangStmt, CreateRoleStmt, AlterRoleStmt, AlterRoleSetStmt, DropRoleStmt, CreateSeqStmt, AlterSeqStmt, DefineStmt, CreateDomainStmt, CreateOpClassStmt, CreateOpClassItem, CreateOpFamilyStmt, AlterOpFamilyStmt, DropStmt, TruncateStmt, CommentStmt, SecLabelStmt, DeclareCursorStmt, ClosePortalStmt, FetchStmt, IndexStmt, CreateStatsStmt, StatsElem, AlterStatsStmt, CreateFunctionStmt, FunctionParameter, AlterFunctionStmt, DoStmt, InlineCodeBlock, CallStmt, CallContext, RenameStmt, AlterObjectDependsStmt, AlterObjectSchemaStmt, AlterOwnerStmt, AlterOperatorStmt, AlterTypeStmt, RuleStmt, NotifyStmt, ListenStmt, UnlistenStmt, TransactionStmt, CompositeTypeStmt, CreateEnumStmt, CreateRangeStmt, AlterEnumStmt, ViewStmt, LoadStmt, CreatedbStmt, AlterDatabaseStmt, AlterDatabaseRefreshCollStmt, AlterDatabaseSetStmt, DropdbStmt, AlterSystemStmt, ClusterStmt, VacuumStmt, VacuumRelation, ExplainStmt, CreateTableAsStmt, RefreshMatViewStmt, CheckPointStmt, DiscardStmt, LockStmt, ConstraintsSetStmt, ReindexStmt, CreateConversionStmt, CreateCastStmt, CreateTransformStmt, PrepareStmt, ExecuteStmt, DeallocateStmt, DropOwnedStmt, ReassignOwnedStmt, AlterTSDictionaryStmt, AlterTSConfigurationStmt, PublicationTable, PublicationObjSpec, CreatePublicationStmt, AlterPublicationStmt, CreateSubscriptionStmt, AlterSubscriptionStmt, DropSubscriptionStmt, ScanToken } from "./wrapped"; +import { ParseResult, ScanResult, Integer, Float, Boolean, String, BitString, List, OidList, IntList, A_Const, Alias, RangeVar, TableFunc, IntoClause, Var, Param, Aggref, GroupingFunc, WindowFunc, SubscriptingRef, FuncExpr, NamedArgExpr, OpExpr, DistinctExpr, NullIfExpr, ScalarArrayOpExpr, BoolExpr, SubLink, SubPlan, AlternativeSubPlan, FieldSelect, FieldStore, RelabelType, CoerceViaIO, ArrayCoerceExpr, ConvertRowtypeExpr, CollateExpr, CaseExpr, CaseWhen, CaseTestExpr, ArrayExpr, RowExpr, RowCompareExpr, CoalesceExpr, MinMaxExpr, SQLValueFunction, XmlExpr, JsonFormat, JsonReturning, JsonValueExpr, JsonConstructorExpr, JsonIsPredicate, NullTest, BooleanTest, CoerceToDomain, CoerceToDomainValue, SetToDefault, CurrentOfExpr, NextValueExpr, InferenceElem, TargetEntry, RangeTblRef, JoinExpr, FromExpr, OnConflictExpr, Query, TypeName, ColumnRef, ParamRef, A_Expr, TypeCast, CollateClause, RoleSpec, FuncCall, A_Star, A_Indices, A_Indirection, A_ArrayExpr, ResTarget, MultiAssignRef, SortBy, WindowDef, RangeSubselect, RangeFunction, RangeTableFunc, RangeTableFuncCol, RangeTableSample, ColumnDef, TableLikeClause, IndexElem, DefElem, LockingClause, XmlSerialize, PartitionElem, PartitionSpec, PartitionBoundSpec, PartitionRangeDatum, PartitionCmd, RangeTblEntry, RTEPermissionInfo, RangeTblFunction, TableSampleClause, WithCheckOption, SortGroupClause, GroupingSet, WindowClause, RowMarkClause, WithClause, InferClause, OnConflictClause, CTESearchClause, CTECycleClause, CommonTableExpr, MergeWhenClause, MergeAction, TriggerTransition, JsonOutput, JsonKeyValue, JsonObjectConstructor, JsonArrayConstructor, JsonArrayQueryConstructor, JsonAggConstructor, JsonObjectAgg, JsonArrayAgg, RawStmt, InsertStmt, DeleteStmt, UpdateStmt, MergeStmt, SelectStmt, SetOperationStmt, ReturnStmt, PLAssignStmt, CreateSchemaStmt, AlterTableStmt, ReplicaIdentityStmt, AlterTableCmd, AlterCollationStmt, AlterDomainStmt, GrantStmt, ObjectWithArgs, AccessPriv, GrantRoleStmt, AlterDefaultPrivilegesStmt, CopyStmt, VariableSetStmt, VariableShowStmt, CreateStmt, Constraint, CreateTableSpaceStmt, DropTableSpaceStmt, AlterTableSpaceOptionsStmt, AlterTableMoveAllStmt, CreateExtensionStmt, AlterExtensionStmt, AlterExtensionContentsStmt, CreateFdwStmt, AlterFdwStmt, CreateForeignServerStmt, AlterForeignServerStmt, CreateForeignTableStmt, CreateUserMappingStmt, AlterUserMappingStmt, DropUserMappingStmt, ImportForeignSchemaStmt, CreatePolicyStmt, AlterPolicyStmt, CreateAmStmt, CreateTrigStmt, CreateEventTrigStmt, AlterEventTrigStmt, CreatePLangStmt, CreateRoleStmt, AlterRoleStmt, AlterRoleSetStmt, DropRoleStmt, CreateSeqStmt, AlterSeqStmt, DefineStmt, CreateDomainStmt, CreateOpClassStmt, CreateOpClassItem, CreateOpFamilyStmt, AlterOpFamilyStmt, DropStmt, TruncateStmt, CommentStmt, SecLabelStmt, DeclareCursorStmt, ClosePortalStmt, FetchStmt, IndexStmt, CreateStatsStmt, StatsElem, AlterStatsStmt, CreateFunctionStmt, FunctionParameter, AlterFunctionStmt, DoStmt, InlineCodeBlock, CallStmt, CallContext, RenameStmt, AlterObjectDependsStmt, AlterObjectSchemaStmt, AlterOwnerStmt, AlterOperatorStmt, AlterTypeStmt, RuleStmt, NotifyStmt, ListenStmt, UnlistenStmt, TransactionStmt, CompositeTypeStmt, CreateEnumStmt, CreateRangeStmt, AlterEnumStmt, ViewStmt, LoadStmt, CreatedbStmt, AlterDatabaseStmt, AlterDatabaseRefreshCollStmt, AlterDatabaseSetStmt, DropdbStmt, AlterSystemStmt, ClusterStmt, VacuumStmt, VacuumRelation, ExplainStmt, CreateTableAsStmt, RefreshMatViewStmt, CheckPointStmt, DiscardStmt, LockStmt, ConstraintsSetStmt, ReindexStmt, CreateConversionStmt, CreateCastStmt, CreateTransformStmt, PrepareStmt, ExecuteStmt, DeallocateStmt, DropOwnedStmt, ReassignOwnedStmt, AlterTSDictionaryStmt, AlterTSConfigurationStmt, PublicationTable, PublicationObjSpec, CreatePublicationStmt, AlterPublicationStmt, CreateSubscriptionStmt, AlterSubscriptionStmt, DropSubscriptionStmt, ScanToken } from "./types"; export default { parseResult(_p?: ParseResult): ParseResult { const _j = {} as ParseResult; diff --git a/__fixtures__/output/runtime-schema/typescript/full-features/complete-schema.ts b/__fixtures__/output/runtime-schema/typescript/full-features/complete-schema.ts index cea353c1..8da93132 100644 --- a/__fixtures__/output/runtime-schema/typescript/full-features/complete-schema.ts +++ b/__fixtures__/output/runtime-schema/typescript/full-features/complete-schema.ts @@ -3,7 +3,6 @@ * DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, * and run the pg-proto-parser generate command to regenerate this file. */ -// Generated by pg-proto-parser export interface FieldSpec { name: string; type: string; @@ -13,13 +12,13 @@ export interface FieldSpec { } export interface NodeSpec { name: string; - wrapped: boolean; + isNode: boolean; fields: FieldSpec[]; } export const runtimeSchema: NodeSpec[] = [ { name: 'A_ArrayExpr', - wrapped: true, + isNode: true, fields: [ { name: 'elements', @@ -39,7 +38,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'A_Const', - wrapped: true, + isNode: true, fields: [ { name: 'boolval', @@ -94,7 +93,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'A_Expr', - wrapped: true, + isNode: true, fields: [ { name: 'kind', @@ -135,7 +134,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'A_Indices', - wrapped: true, + isNode: true, fields: [ { name: 'is_slice', @@ -162,7 +161,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'A_Indirection', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -182,14 +181,14 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'A_Star', - wrapped: true, + isNode: true, fields: [ ] }, { name: 'AccessPriv', - wrapped: true, + isNode: true, fields: [ { name: 'cols', @@ -209,7 +208,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Aggref', - wrapped: true, + isNode: true, fields: [ { name: 'aggargtypes', @@ -348,7 +347,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Alias', - wrapped: true, + isNode: true, fields: [ { name: 'aliasname', @@ -368,7 +367,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterCollationStmt', - wrapped: true, + isNode: true, fields: [ { name: 'collname', @@ -381,7 +380,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterDatabaseRefreshCollStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dbname', @@ -394,7 +393,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterDatabaseSetStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dbname', @@ -414,7 +413,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterDatabaseStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dbname', @@ -434,7 +433,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterDefaultPrivilegesStmt', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -454,7 +453,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterDomainStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -502,7 +501,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterEnumStmt', - wrapped: true, + isNode: true, fields: [ { name: 'newVal', @@ -550,7 +549,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterEventTrigStmt', - wrapped: true, + isNode: true, fields: [ { name: 'tgenabled', @@ -570,7 +569,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterExtensionContentsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -604,7 +603,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterExtensionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'extname', @@ -624,7 +623,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterFdwStmt', - wrapped: true, + isNode: true, fields: [ { name: 'fdwname', @@ -651,7 +650,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterForeignServerStmt', - wrapped: true, + isNode: true, fields: [ { name: 'has_version', @@ -685,7 +684,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterFunctionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'actions', @@ -712,7 +711,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlternativeSubPlan', - wrapped: true, + isNode: true, fields: [ { name: 'subplans', @@ -732,7 +731,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterObjectDependsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'extname', @@ -773,7 +772,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterObjectSchemaStmt', - wrapped: true, + isNode: true, fields: [ { name: 'missing_ok', @@ -814,7 +813,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterOperatorStmt', - wrapped: true, + isNode: true, fields: [ { name: 'opername', @@ -834,7 +833,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterOpFamilyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'amname', @@ -868,7 +867,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterOwnerStmt', - wrapped: true, + isNode: true, fields: [ { name: 'newowner', @@ -902,7 +901,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterPolicyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'policy_name', @@ -943,7 +942,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterPublicationStmt', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -984,7 +983,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterRoleSetStmt', - wrapped: true, + isNode: true, fields: [ { name: 'database', @@ -1011,7 +1010,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterRoleStmt', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -1038,7 +1037,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterSeqStmt', - wrapped: true, + isNode: true, fields: [ { name: 'for_identity', @@ -1072,7 +1071,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterStatsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'defnames', @@ -1099,7 +1098,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterSubscriptionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conninfo', @@ -1140,7 +1139,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterSystemStmt', - wrapped: true, + isNode: true, fields: [ { name: 'setstmt', @@ -1153,7 +1152,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTableCmd', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -1215,7 +1214,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTableMoveAllStmt', - wrapped: true, + isNode: true, fields: [ { name: 'new_tablespacename', @@ -1256,7 +1255,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTableSpaceOptionsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'isReset', @@ -1283,7 +1282,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTableStmt', - wrapped: true, + isNode: true, fields: [ { name: 'cmds', @@ -1317,7 +1316,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTSConfigurationStmt', - wrapped: true, + isNode: true, fields: [ { name: 'cfgname', @@ -1372,7 +1371,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTSDictionaryStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dictname', @@ -1392,7 +1391,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTypeStmt', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -1412,7 +1411,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterUserMappingStmt', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -1439,7 +1438,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ArrayCoerceExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -1501,7 +1500,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ArrayExpr', - wrapped: true, + isNode: true, fields: [ { name: 'array_collid', @@ -1556,7 +1555,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'BitString', - wrapped: true, + isNode: true, fields: [ { name: 'bsval', @@ -1569,7 +1568,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Boolean', - wrapped: true, + isNode: true, fields: [ { name: 'boolval', @@ -1582,7 +1581,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'BooleanTest', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -1616,7 +1615,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'BoolExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -1650,7 +1649,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CallContext', - wrapped: true, + isNode: true, fields: [ { name: 'atomic', @@ -1663,7 +1662,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CallStmt', - wrapped: true, + isNode: true, fields: [ { name: 'funccall', @@ -1690,7 +1689,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CaseExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -1745,7 +1744,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CaseTestExpr', - wrapped: true, + isNode: true, fields: [ { name: 'collation', @@ -1779,7 +1778,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CaseWhen', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -1813,14 +1812,14 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CheckPointStmt', - wrapped: true, + isNode: true, fields: [ ] }, { name: 'ClosePortalStmt', - wrapped: true, + isNode: true, fields: [ { name: 'portalname', @@ -1833,7 +1832,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ClusterStmt', - wrapped: true, + isNode: true, fields: [ { name: 'indexname', @@ -1860,7 +1859,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CoalesceExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -1901,7 +1900,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CoerceToDomain', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -1956,7 +1955,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CoerceToDomainValue', - wrapped: true, + isNode: true, fields: [ { name: 'collation', @@ -1997,7 +1996,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CoerceViaIO', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -2045,7 +2044,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CollateClause', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -2072,7 +2071,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CollateExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -2106,7 +2105,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ColumnDef', - wrapped: true, + isNode: true, fields: [ { name: 'collClause', @@ -2245,7 +2244,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ColumnRef', - wrapped: true, + isNode: true, fields: [ { name: 'fields', @@ -2265,7 +2264,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CommentStmt', - wrapped: true, + isNode: true, fields: [ { name: 'comment', @@ -2292,7 +2291,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CommonTableExpr', - wrapped: true, + isNode: true, fields: [ { name: 'aliascolnames', @@ -2389,7 +2388,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CompositeTypeStmt', - wrapped: true, + isNode: true, fields: [ { name: 'coldeflist', @@ -2409,7 +2408,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Constraint', - wrapped: true, + isNode: true, fields: [ { name: 'access_method', @@ -2625,7 +2624,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ConstraintsSetStmt', - wrapped: true, + isNode: true, fields: [ { name: 'constraints', @@ -2645,7 +2644,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ConvertRowtypeExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -2686,7 +2685,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CopyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'attlist', @@ -2748,7 +2747,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateAmStmt', - wrapped: true, + isNode: true, fields: [ { name: 'amname', @@ -2775,7 +2774,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateCastStmt', - wrapped: true, + isNode: true, fields: [ { name: 'context', @@ -2816,7 +2815,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateConversionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conversion_name', @@ -2857,7 +2856,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreatedbStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dbname', @@ -2877,7 +2876,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateDomainStmt', - wrapped: true, + isNode: true, fields: [ { name: 'collClause', @@ -2911,7 +2910,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateEnumStmt', - wrapped: true, + isNode: true, fields: [ { name: 'typeName', @@ -2931,7 +2930,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateEventTrigStmt', - wrapped: true, + isNode: true, fields: [ { name: 'eventname', @@ -2965,7 +2964,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateExtensionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'extname', @@ -2992,7 +2991,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateFdwStmt', - wrapped: true, + isNode: true, fields: [ { name: 'fdwname', @@ -3019,7 +3018,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateForeignServerStmt', - wrapped: true, + isNode: true, fields: [ { name: 'fdwname', @@ -3067,7 +3066,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateForeignTableStmt', - wrapped: true, + isNode: true, fields: [ { name: 'base', @@ -3094,7 +3093,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateFunctionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'funcname', @@ -3149,7 +3148,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateOpClassItem', - wrapped: true, + isNode: true, fields: [ { name: 'class_args', @@ -3197,7 +3196,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateOpClassStmt', - wrapped: true, + isNode: true, fields: [ { name: 'amname', @@ -3245,7 +3244,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateOpFamilyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'amname', @@ -3265,7 +3264,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreatePLangStmt', - wrapped: true, + isNode: true, fields: [ { name: 'plhandler', @@ -3313,7 +3312,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreatePolicyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'cmd_name', @@ -3368,7 +3367,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreatePublicationStmt', - wrapped: true, + isNode: true, fields: [ { name: 'for_all_tables', @@ -3402,7 +3401,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateRangeStmt', - wrapped: true, + isNode: true, fields: [ { name: 'params', @@ -3422,7 +3421,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateRoleStmt', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -3449,7 +3448,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateSchemaStmt', - wrapped: true, + isNode: true, fields: [ { name: 'authrole', @@ -3483,7 +3482,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateSeqStmt', - wrapped: true, + isNode: true, fields: [ { name: 'for_identity', @@ -3524,7 +3523,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateStatsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'defnames', @@ -3579,7 +3578,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateStmt', - wrapped: true, + isNode: true, fields: [ { name: 'accessMethod', @@ -3669,7 +3668,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateSubscriptionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conninfo', @@ -3703,7 +3702,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateTableAsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'if_not_exists', @@ -3744,7 +3743,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateTableSpaceStmt', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -3778,7 +3777,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateTransformStmt', - wrapped: true, + isNode: true, fields: [ { name: 'fromsql', @@ -3819,7 +3818,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateTrigStmt', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -3930,7 +3929,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateUserMappingStmt', - wrapped: true, + isNode: true, fields: [ { name: 'if_not_exists', @@ -3964,7 +3963,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CTECycleClause', - wrapped: true, + isNode: true, fields: [ { name: 'cycle_col_list', @@ -4040,7 +4039,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CTESearchClause', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -4074,7 +4073,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CurrentOfExpr', - wrapped: true, + isNode: true, fields: [ { name: 'cursor_name', @@ -4108,7 +4107,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DeallocateStmt', - wrapped: true, + isNode: true, fields: [ { name: 'name', @@ -4121,7 +4120,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DeclareCursorStmt', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -4148,7 +4147,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DefElem', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -4189,7 +4188,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DefineStmt', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -4244,7 +4243,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DeleteStmt', - wrapped: true, + isNode: true, fields: [ { name: 'relation', @@ -4285,7 +4284,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DiscardStmt', - wrapped: true, + isNode: true, fields: [ { name: 'target', @@ -4298,7 +4297,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DistinctExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -4360,7 +4359,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DoStmt', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -4373,7 +4372,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropdbStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dbname', @@ -4400,7 +4399,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropOwnedStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -4420,7 +4419,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropRoleStmt', - wrapped: true, + isNode: true, fields: [ { name: 'missing_ok', @@ -4440,7 +4439,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -4481,7 +4480,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropSubscriptionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -4508,7 +4507,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropTableSpaceStmt', - wrapped: true, + isNode: true, fields: [ { name: 'missing_ok', @@ -4528,7 +4527,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropUserMappingStmt', - wrapped: true, + isNode: true, fields: [ { name: 'missing_ok', @@ -4555,7 +4554,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ExecuteStmt', - wrapped: true, + isNode: true, fields: [ { name: 'name', @@ -4575,7 +4574,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ExplainStmt', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -4595,7 +4594,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FetchStmt', - wrapped: true, + isNode: true, fields: [ { name: 'direction', @@ -4629,7 +4628,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FieldSelect', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -4677,7 +4676,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FieldStore', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -4718,7 +4717,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Float', - wrapped: true, + isNode: true, fields: [ { name: 'fval', @@ -4731,7 +4730,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FromExpr', - wrapped: true, + isNode: true, fields: [ { name: 'fromlist', @@ -4751,7 +4750,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FuncCall', - wrapped: true, + isNode: true, fields: [ { name: 'agg_distinct', @@ -4834,7 +4833,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FuncExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -4910,7 +4909,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FunctionParameter', - wrapped: true, + isNode: true, fields: [ { name: 'argType', @@ -4944,7 +4943,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'GrantRoleStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -4992,7 +4991,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'GrantStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -5061,7 +5060,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'GroupingFunc', - wrapped: true, + isNode: true, fields: [ { name: 'agglevelsup', @@ -5102,7 +5101,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'GroupingSet', - wrapped: true, + isNode: true, fields: [ { name: 'content', @@ -5129,7 +5128,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ImportForeignSchemaStmt', - wrapped: true, + isNode: true, fields: [ { name: 'list_type', @@ -5177,7 +5176,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'IndexElem', - wrapped: true, + isNode: true, fields: [ { name: 'collation', @@ -5239,7 +5238,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'IndexStmt', - wrapped: true, + isNode: true, fields: [ { name: 'accessMethod', @@ -5413,7 +5412,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'InferClause', - wrapped: true, + isNode: true, fields: [ { name: 'conname', @@ -5447,7 +5446,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'InferenceElem', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -5481,7 +5480,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'InlineCodeBlock', - wrapped: true, + isNode: true, fields: [ { name: 'atomic', @@ -5515,7 +5514,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'InsertStmt', - wrapped: true, + isNode: true, fields: [ { name: 'cols', @@ -5570,7 +5569,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Integer', - wrapped: true, + isNode: true, fields: [ { name: 'ival', @@ -5583,7 +5582,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'IntList', - wrapped: true, + isNode: true, fields: [ { name: 'items', @@ -5596,7 +5595,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'IntoClause', - wrapped: true, + isNode: true, fields: [ { name: 'accessMethod', @@ -5658,7 +5657,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JoinExpr', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -5727,7 +5726,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonAggConstructor', - wrapped: true, + isNode: true, fields: [ { name: 'agg_filter', @@ -5768,7 +5767,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonArrayAgg', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -5795,7 +5794,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonArrayConstructor', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -5829,7 +5828,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonArrayQueryConstructor', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -5870,7 +5869,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonConstructorExpr', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -5939,7 +5938,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonFormat', - wrapped: true, + isNode: true, fields: [ { name: 'encoding', @@ -5966,7 +5965,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonIsPredicate', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -6007,7 +6006,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonKeyValue', - wrapped: true, + isNode: true, fields: [ { name: 'key', @@ -6027,7 +6026,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonObjectAgg', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -6061,7 +6060,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonObjectConstructor', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -6102,7 +6101,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonOutput', - wrapped: true, + isNode: true, fields: [ { name: 'returning', @@ -6122,7 +6121,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonReturning', - wrapped: true, + isNode: true, fields: [ { name: 'format', @@ -6149,7 +6148,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonValueExpr', - wrapped: true, + isNode: true, fields: [ { name: 'format', @@ -6176,7 +6175,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'List', - wrapped: true, + isNode: true, fields: [ { name: 'items', @@ -6189,7 +6188,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ListenStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conditionname', @@ -6202,7 +6201,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'LoadStmt', - wrapped: true, + isNode: true, fields: [ { name: 'filename', @@ -6215,7 +6214,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'LockingClause', - wrapped: true, + isNode: true, fields: [ { name: 'lockedRels', @@ -6242,7 +6241,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'LockStmt', - wrapped: true, + isNode: true, fields: [ { name: 'mode', @@ -6269,7 +6268,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'MergeAction', - wrapped: true, + isNode: true, fields: [ { name: 'commandType', @@ -6317,7 +6316,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'MergeStmt', - wrapped: true, + isNode: true, fields: [ { name: 'joinCondition', @@ -6358,7 +6357,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'MergeWhenClause', - wrapped: true, + isNode: true, fields: [ { name: 'commandType', @@ -6406,7 +6405,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'MinMaxExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -6461,7 +6460,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'MultiAssignRef', - wrapped: true, + isNode: true, fields: [ { name: 'colno', @@ -6488,7 +6487,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'NamedArgExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -6529,7 +6528,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'NextValueExpr', - wrapped: true, + isNode: true, fields: [ { name: 'seqid', @@ -6556,7 +6555,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'NotifyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conditionname', @@ -6576,7 +6575,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'NullIfExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -6638,7 +6637,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'NullTest', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -6679,7 +6678,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ObjectWithArgs', - wrapped: true, + isNode: true, fields: [ { name: 'args_unspecified', @@ -6713,7 +6712,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'OidList', - wrapped: true, + isNode: true, fields: [ { name: 'items', @@ -6726,7 +6725,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'OnConflictClause', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -6767,7 +6766,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'OnConflictExpr', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -6829,7 +6828,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'OpExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -6891,7 +6890,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Param', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -6946,7 +6945,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ParamRef', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -6966,7 +6965,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ParseResult', - wrapped: false, + isNode: false, fields: [ { name: 'stmts', @@ -6986,7 +6985,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PartitionBoundSpec', - wrapped: true, + isNode: true, fields: [ { name: 'is_default', @@ -7048,7 +7047,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PartitionCmd', - wrapped: true, + isNode: true, fields: [ { name: 'bound', @@ -7075,7 +7074,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PartitionElem', - wrapped: true, + isNode: true, fields: [ { name: 'collation', @@ -7116,7 +7115,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PartitionRangeDatum', - wrapped: true, + isNode: true, fields: [ { name: 'kind', @@ -7143,7 +7142,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PartitionSpec', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -7170,7 +7169,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PLAssignStmt', - wrapped: true, + isNode: true, fields: [ { name: 'indirection', @@ -7211,7 +7210,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PrepareStmt', - wrapped: true, + isNode: true, fields: [ { name: 'argtypes', @@ -7238,7 +7237,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PublicationObjSpec', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -7272,7 +7271,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PublicationTable', - wrapped: true, + isNode: true, fields: [ { name: 'columns', @@ -7299,7 +7298,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Query', - wrapped: true, + isNode: true, fields: [ { name: 'canSetTag', @@ -7592,7 +7591,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeFunction', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -7640,7 +7639,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeSubselect', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -7667,7 +7666,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTableFunc', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -7722,7 +7721,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTableFuncCol', - wrapped: true, + isNode: true, fields: [ { name: 'coldefexpr', @@ -7777,7 +7776,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTableSample', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -7818,7 +7817,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTblEntry', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -8048,7 +8047,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTblFunction', - wrapped: true, + isNode: true, fields: [ { name: 'funccolcollations', @@ -8103,7 +8102,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTblRef', - wrapped: true, + isNode: true, fields: [ { name: 'rtindex', @@ -8116,7 +8115,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeVar', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -8171,7 +8170,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RawStmt', - wrapped: true, + isNode: true, fields: [ { name: 'stmt', @@ -8198,7 +8197,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ReassignOwnedStmt', - wrapped: true, + isNode: true, fields: [ { name: 'newrole', @@ -8218,7 +8217,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RefreshMatViewStmt', - wrapped: true, + isNode: true, fields: [ { name: 'concurrent', @@ -8245,7 +8244,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ReindexStmt', - wrapped: true, + isNode: true, fields: [ { name: 'kind', @@ -8279,7 +8278,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RelabelType', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -8334,7 +8333,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RenameStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -8396,7 +8395,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ReplicaIdentityStmt', - wrapped: true, + isNode: true, fields: [ { name: 'identity_type', @@ -8416,7 +8415,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ResTarget', - wrapped: true, + isNode: true, fields: [ { name: 'indirection', @@ -8450,7 +8449,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ReturnStmt', - wrapped: true, + isNode: true, fields: [ { name: 'returnval', @@ -8463,7 +8462,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RoleSpec', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -8490,7 +8489,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RowCompareExpr', - wrapped: true, + isNode: true, fields: [ { name: 'inputcollids', @@ -8545,7 +8544,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RowExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -8593,7 +8592,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RowMarkClause', - wrapped: true, + isNode: true, fields: [ { name: 'pushedDown', @@ -8627,7 +8626,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RTEPermissionInfo', - wrapped: true, + isNode: true, fields: [ { name: 'checkAsUser', @@ -8682,7 +8681,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RuleStmt', - wrapped: true, + isNode: true, fields: [ { name: 'actions', @@ -8737,7 +8736,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ScalarArrayOpExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -8785,7 +8784,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ScanResult', - wrapped: false, + isNode: false, fields: [ { name: 'tokens', @@ -8805,7 +8804,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ScanToken', - wrapped: false, + isNode: false, fields: [ { name: 'end', @@ -8839,7 +8838,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SecLabelStmt', - wrapped: true, + isNode: true, fields: [ { name: 'label', @@ -8873,7 +8872,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SelectStmt', - wrapped: true, + isNode: true, fields: [ { name: 'all', @@ -9019,7 +9018,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SetOperationStmt', - wrapped: true, + isNode: true, fields: [ { name: 'all', @@ -9081,7 +9080,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SetToDefault', - wrapped: true, + isNode: true, fields: [ { name: 'collation', @@ -9122,7 +9121,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SortBy', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -9163,7 +9162,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SortGroupClause', - wrapped: true, + isNode: true, fields: [ { name: 'eqop', @@ -9204,7 +9203,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SQLValueFunction', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -9245,7 +9244,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'StatsElem', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -9265,7 +9264,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'String', - wrapped: true, + isNode: true, fields: [ { name: 'sval', @@ -9278,7 +9277,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SubLink', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -9333,7 +9332,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SubPlan', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -9458,7 +9457,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SubscriptingRef', - wrapped: true, + isNode: true, fields: [ { name: 'refassgnexpr', @@ -9534,7 +9533,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TableFunc', - wrapped: true, + isNode: true, fields: [ { name: 'colcollations', @@ -9631,7 +9630,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TableLikeClause', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -9658,7 +9657,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TableSampleClause', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -9685,7 +9684,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TargetEntry', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -9747,7 +9746,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TransactionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'chain', @@ -9788,7 +9787,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TriggerTransition', - wrapped: true, + isNode: true, fields: [ { name: 'isNew', @@ -9815,7 +9814,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TruncateStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -9842,7 +9841,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TypeCast', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -9869,7 +9868,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TypeName', - wrapped: true, + isNode: true, fields: [ { name: 'arrayBounds', @@ -9931,7 +9930,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'UnlistenStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conditionname', @@ -9944,7 +9943,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'UpdateStmt', - wrapped: true, + isNode: true, fields: [ { name: 'fromClause', @@ -9992,7 +9991,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'VacuumRelation', - wrapped: true, + isNode: true, fields: [ { name: 'oid', @@ -10019,7 +10018,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'VacuumStmt', - wrapped: true, + isNode: true, fields: [ { name: 'is_vacuumcmd', @@ -10046,7 +10045,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Var', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -10115,7 +10114,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'VariableSetStmt', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -10149,7 +10148,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'VariableShowStmt', - wrapped: true, + isNode: true, fields: [ { name: 'name', @@ -10162,7 +10161,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ViewStmt', - wrapped: true, + isNode: true, fields: [ { name: 'aliases', @@ -10210,7 +10209,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'WindowClause', - wrapped: true, + isNode: true, fields: [ { name: 'copiedOrder', @@ -10321,7 +10320,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'WindowDef', - wrapped: true, + isNode: true, fields: [ { name: 'endOffset', @@ -10383,7 +10382,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'WindowFunc', - wrapped: true, + isNode: true, fields: [ { name: 'aggfilter', @@ -10466,7 +10465,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'WithCheckOption', - wrapped: true, + isNode: true, fields: [ { name: 'cascaded', @@ -10507,7 +10506,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'WithClause', - wrapped: true, + isNode: true, fields: [ { name: 'ctes', @@ -10534,7 +10533,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'XmlExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg_names', @@ -10617,7 +10616,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'XmlSerialize', - wrapped: true, + isNode: true, fields: [ { name: 'expr', diff --git a/__fixtures__/output/runtime-schema/typescript/full-features/types.ts b/__fixtures__/output/runtime-schema/typescript/full-features/types.ts index 4dbf99c8..cf5f2c36 100644 --- a/__fixtures__/output/runtime-schema/typescript/full-features/types.ts +++ b/__fixtures__/output/runtime-schema/typescript/full-features/types.ts @@ -4,7 +4,517 @@ * and run the pg-proto-parser generate command to regenerate this file. */ import { OverridingKind, QuerySource, SortByDir, SortByNulls, SetQuantifier, A_Expr_Kind, RoleSpecType, TableLikeOption, DefElemAction, PartitionStrategy, PartitionRangeDatumKind, RTEKind, WCOKind, GroupingSetKind, CTEMaterialize, SetOperation, ObjectType, DropBehavior, AlterTableType, GrantTargetType, VariableSetKind, ConstrType, ImportForeignSchemaType, RoleStmtType, FetchDirection, FunctionParameterMode, TransactionStmtKind, ViewCheckOption, DiscardMode, ReindexObjectType, AlterTSConfigType, PublicationObjSpecType, AlterPublicationAction, AlterSubscriptionType, OnCommitAction, ParamKind, CoercionContext, CoercionForm, BoolExprType, SubLinkType, RowCompareType, MinMaxOp, SQLValueFunctionOp, XmlExprOp, XmlOptionType, JsonEncoding, JsonFormatType, JsonConstructorType, JsonValueType, NullTestType, BoolTestType, CmdType, JoinType, AggStrategy, AggSplit, SetOpCmd, SetOpStrategy, OnConflictAction, LimitOption, LockClauseStrength, LockWaitPolicy, LockTupleMode, KeywordKind, Token } from "./enums"; -export type Node = ParseResult | ScanResult | Integer | Float | Boolean | String | BitString | List | OidList | IntList | A_Const | Alias | RangeVar | TableFunc | IntoClause | Var | Param | Aggref | GroupingFunc | WindowFunc | SubscriptingRef | FuncExpr | NamedArgExpr | OpExpr | DistinctExpr | NullIfExpr | ScalarArrayOpExpr | BoolExpr | SubLink | SubPlan | AlternativeSubPlan | FieldSelect | FieldStore | RelabelType | CoerceViaIO | ArrayCoerceExpr | ConvertRowtypeExpr | CollateExpr | CaseExpr | CaseWhen | CaseTestExpr | ArrayExpr | RowExpr | RowCompareExpr | CoalesceExpr | MinMaxExpr | SQLValueFunction | XmlExpr | JsonFormat | JsonReturning | JsonValueExpr | JsonConstructorExpr | JsonIsPredicate | NullTest | BooleanTest | CoerceToDomain | CoerceToDomainValue | SetToDefault | CurrentOfExpr | NextValueExpr | InferenceElem | TargetEntry | RangeTblRef | JoinExpr | FromExpr | OnConflictExpr | Query | TypeName | ColumnRef | ParamRef | A_Expr | TypeCast | CollateClause | RoleSpec | FuncCall | A_Star | A_Indices | A_Indirection | A_ArrayExpr | ResTarget | MultiAssignRef | SortBy | WindowDef | RangeSubselect | RangeFunction | RangeTableFunc | RangeTableFuncCol | RangeTableSample | ColumnDef | TableLikeClause | IndexElem | DefElem | LockingClause | XmlSerialize | PartitionElem | PartitionSpec | PartitionBoundSpec | PartitionRangeDatum | PartitionCmd | RangeTblEntry | RTEPermissionInfo | RangeTblFunction | TableSampleClause | WithCheckOption | SortGroupClause | GroupingSet | WindowClause | RowMarkClause | WithClause | InferClause | OnConflictClause | CTESearchClause | CTECycleClause | CommonTableExpr | MergeWhenClause | MergeAction | TriggerTransition | JsonOutput | JsonKeyValue | JsonObjectConstructor | JsonArrayConstructor | JsonArrayQueryConstructor | JsonAggConstructor | JsonObjectAgg | JsonArrayAgg | RawStmt | InsertStmt | DeleteStmt | UpdateStmt | MergeStmt | SelectStmt | SetOperationStmt | ReturnStmt | PLAssignStmt | CreateSchemaStmt | AlterTableStmt | ReplicaIdentityStmt | AlterTableCmd | AlterCollationStmt | AlterDomainStmt | GrantStmt | ObjectWithArgs | AccessPriv | GrantRoleStmt | AlterDefaultPrivilegesStmt | CopyStmt | VariableSetStmt | VariableShowStmt | CreateStmt | Constraint | CreateTableSpaceStmt | DropTableSpaceStmt | AlterTableSpaceOptionsStmt | AlterTableMoveAllStmt | CreateExtensionStmt | AlterExtensionStmt | AlterExtensionContentsStmt | CreateFdwStmt | AlterFdwStmt | CreateForeignServerStmt | AlterForeignServerStmt | CreateForeignTableStmt | CreateUserMappingStmt | AlterUserMappingStmt | DropUserMappingStmt | ImportForeignSchemaStmt | CreatePolicyStmt | AlterPolicyStmt | CreateAmStmt | CreateTrigStmt | CreateEventTrigStmt | AlterEventTrigStmt | CreatePLangStmt | CreateRoleStmt | AlterRoleStmt | AlterRoleSetStmt | DropRoleStmt | CreateSeqStmt | AlterSeqStmt | DefineStmt | CreateDomainStmt | CreateOpClassStmt | CreateOpClassItem | CreateOpFamilyStmt | AlterOpFamilyStmt | DropStmt | TruncateStmt | CommentStmt | SecLabelStmt | DeclareCursorStmt | ClosePortalStmt | FetchStmt | IndexStmt | CreateStatsStmt | StatsElem | AlterStatsStmt | CreateFunctionStmt | FunctionParameter | AlterFunctionStmt | DoStmt | InlineCodeBlock | CallStmt | CallContext | RenameStmt | AlterObjectDependsStmt | AlterObjectSchemaStmt | AlterOwnerStmt | AlterOperatorStmt | AlterTypeStmt | RuleStmt | NotifyStmt | ListenStmt | UnlistenStmt | TransactionStmt | CompositeTypeStmt | CreateEnumStmt | CreateRangeStmt | AlterEnumStmt | ViewStmt | LoadStmt | CreatedbStmt | AlterDatabaseStmt | AlterDatabaseRefreshCollStmt | AlterDatabaseSetStmt | DropdbStmt | AlterSystemStmt | ClusterStmt | VacuumStmt | VacuumRelation | ExplainStmt | CreateTableAsStmt | RefreshMatViewStmt | CheckPointStmt | DiscardStmt | LockStmt | ConstraintsSetStmt | ReindexStmt | CreateConversionStmt | CreateCastStmt | CreateTransformStmt | PrepareStmt | ExecuteStmt | DeallocateStmt | DropOwnedStmt | ReassignOwnedStmt | AlterTSDictionaryStmt | AlterTSConfigurationStmt | PublicationTable | PublicationObjSpec | CreatePublicationStmt | AlterPublicationStmt | CreateSubscriptionStmt | AlterSubscriptionStmt | DropSubscriptionStmt | ScanToken; +export type Node = { + ParseResult: ParseResult; +} | { + ScanResult: ScanResult; +} | { + Integer: Integer; +} | { + Float: Float; +} | { + Boolean: Boolean; +} | { + String: String; +} | { + BitString: BitString; +} | { + List: List; +} | { + OidList: OidList; +} | { + IntList: IntList; +} | { + A_Const: A_Const; +} | { + Alias: Alias; +} | { + RangeVar: RangeVar; +} | { + TableFunc: TableFunc; +} | { + IntoClause: IntoClause; +} | { + Var: Var; +} | { + Param: Param; +} | { + Aggref: Aggref; +} | { + GroupingFunc: GroupingFunc; +} | { + WindowFunc: WindowFunc; +} | { + SubscriptingRef: SubscriptingRef; +} | { + FuncExpr: FuncExpr; +} | { + NamedArgExpr: NamedArgExpr; +} | { + OpExpr: OpExpr; +} | { + DistinctExpr: DistinctExpr; +} | { + NullIfExpr: NullIfExpr; +} | { + ScalarArrayOpExpr: ScalarArrayOpExpr; +} | { + BoolExpr: BoolExpr; +} | { + SubLink: SubLink; +} | { + SubPlan: SubPlan; +} | { + AlternativeSubPlan: AlternativeSubPlan; +} | { + FieldSelect: FieldSelect; +} | { + FieldStore: FieldStore; +} | { + RelabelType: RelabelType; +} | { + CoerceViaIO: CoerceViaIO; +} | { + ArrayCoerceExpr: ArrayCoerceExpr; +} | { + ConvertRowtypeExpr: ConvertRowtypeExpr; +} | { + CollateExpr: CollateExpr; +} | { + CaseExpr: CaseExpr; +} | { + CaseWhen: CaseWhen; +} | { + CaseTestExpr: CaseTestExpr; +} | { + ArrayExpr: ArrayExpr; +} | { + RowExpr: RowExpr; +} | { + RowCompareExpr: RowCompareExpr; +} | { + CoalesceExpr: CoalesceExpr; +} | { + MinMaxExpr: MinMaxExpr; +} | { + SQLValueFunction: SQLValueFunction; +} | { + XmlExpr: XmlExpr; +} | { + JsonFormat: JsonFormat; +} | { + JsonReturning: JsonReturning; +} | { + JsonValueExpr: JsonValueExpr; +} | { + JsonConstructorExpr: JsonConstructorExpr; +} | { + JsonIsPredicate: JsonIsPredicate; +} | { + NullTest: NullTest; +} | { + BooleanTest: BooleanTest; +} | { + CoerceToDomain: CoerceToDomain; +} | { + CoerceToDomainValue: CoerceToDomainValue; +} | { + SetToDefault: SetToDefault; +} | { + CurrentOfExpr: CurrentOfExpr; +} | { + NextValueExpr: NextValueExpr; +} | { + InferenceElem: InferenceElem; +} | { + TargetEntry: TargetEntry; +} | { + RangeTblRef: RangeTblRef; +} | { + JoinExpr: JoinExpr; +} | { + FromExpr: FromExpr; +} | { + OnConflictExpr: OnConflictExpr; +} | { + Query: Query; +} | { + TypeName: TypeName; +} | { + ColumnRef: ColumnRef; +} | { + ParamRef: ParamRef; +} | { + A_Expr: A_Expr; +} | { + TypeCast: TypeCast; +} | { + CollateClause: CollateClause; +} | { + RoleSpec: RoleSpec; +} | { + FuncCall: FuncCall; +} | { + A_Star: A_Star; +} | { + A_Indices: A_Indices; +} | { + A_Indirection: A_Indirection; +} | { + A_ArrayExpr: A_ArrayExpr; +} | { + ResTarget: ResTarget; +} | { + MultiAssignRef: MultiAssignRef; +} | { + SortBy: SortBy; +} | { + WindowDef: WindowDef; +} | { + RangeSubselect: RangeSubselect; +} | { + RangeFunction: RangeFunction; +} | { + RangeTableFunc: RangeTableFunc; +} | { + RangeTableFuncCol: RangeTableFuncCol; +} | { + RangeTableSample: RangeTableSample; +} | { + ColumnDef: ColumnDef; +} | { + TableLikeClause: TableLikeClause; +} | { + IndexElem: IndexElem; +} | { + DefElem: DefElem; +} | { + LockingClause: LockingClause; +} | { + XmlSerialize: XmlSerialize; +} | { + PartitionElem: PartitionElem; +} | { + PartitionSpec: PartitionSpec; +} | { + PartitionBoundSpec: PartitionBoundSpec; +} | { + PartitionRangeDatum: PartitionRangeDatum; +} | { + PartitionCmd: PartitionCmd; +} | { + RangeTblEntry: RangeTblEntry; +} | { + RTEPermissionInfo: RTEPermissionInfo; +} | { + RangeTblFunction: RangeTblFunction; +} | { + TableSampleClause: TableSampleClause; +} | { + WithCheckOption: WithCheckOption; +} | { + SortGroupClause: SortGroupClause; +} | { + GroupingSet: GroupingSet; +} | { + WindowClause: WindowClause; +} | { + RowMarkClause: RowMarkClause; +} | { + WithClause: WithClause; +} | { + InferClause: InferClause; +} | { + OnConflictClause: OnConflictClause; +} | { + CTESearchClause: CTESearchClause; +} | { + CTECycleClause: CTECycleClause; +} | { + CommonTableExpr: CommonTableExpr; +} | { + MergeWhenClause: MergeWhenClause; +} | { + MergeAction: MergeAction; +} | { + TriggerTransition: TriggerTransition; +} | { + JsonOutput: JsonOutput; +} | { + JsonKeyValue: JsonKeyValue; +} | { + JsonObjectConstructor: JsonObjectConstructor; +} | { + JsonArrayConstructor: JsonArrayConstructor; +} | { + JsonArrayQueryConstructor: JsonArrayQueryConstructor; +} | { + JsonAggConstructor: JsonAggConstructor; +} | { + JsonObjectAgg: JsonObjectAgg; +} | { + JsonArrayAgg: JsonArrayAgg; +} | { + RawStmt: RawStmt; +} | { + InsertStmt: InsertStmt; +} | { + DeleteStmt: DeleteStmt; +} | { + UpdateStmt: UpdateStmt; +} | { + MergeStmt: MergeStmt; +} | { + SelectStmt: SelectStmt; +} | { + SetOperationStmt: SetOperationStmt; +} | { + ReturnStmt: ReturnStmt; +} | { + PLAssignStmt: PLAssignStmt; +} | { + CreateSchemaStmt: CreateSchemaStmt; +} | { + AlterTableStmt: AlterTableStmt; +} | { + ReplicaIdentityStmt: ReplicaIdentityStmt; +} | { + AlterTableCmd: AlterTableCmd; +} | { + AlterCollationStmt: AlterCollationStmt; +} | { + AlterDomainStmt: AlterDomainStmt; +} | { + GrantStmt: GrantStmt; +} | { + ObjectWithArgs: ObjectWithArgs; +} | { + AccessPriv: AccessPriv; +} | { + GrantRoleStmt: GrantRoleStmt; +} | { + AlterDefaultPrivilegesStmt: AlterDefaultPrivilegesStmt; +} | { + CopyStmt: CopyStmt; +} | { + VariableSetStmt: VariableSetStmt; +} | { + VariableShowStmt: VariableShowStmt; +} | { + CreateStmt: CreateStmt; +} | { + Constraint: Constraint; +} | { + CreateTableSpaceStmt: CreateTableSpaceStmt; +} | { + DropTableSpaceStmt: DropTableSpaceStmt; +} | { + AlterTableSpaceOptionsStmt: AlterTableSpaceOptionsStmt; +} | { + AlterTableMoveAllStmt: AlterTableMoveAllStmt; +} | { + CreateExtensionStmt: CreateExtensionStmt; +} | { + AlterExtensionStmt: AlterExtensionStmt; +} | { + AlterExtensionContentsStmt: AlterExtensionContentsStmt; +} | { + CreateFdwStmt: CreateFdwStmt; +} | { + AlterFdwStmt: AlterFdwStmt; +} | { + CreateForeignServerStmt: CreateForeignServerStmt; +} | { + AlterForeignServerStmt: AlterForeignServerStmt; +} | { + CreateForeignTableStmt: CreateForeignTableStmt; +} | { + CreateUserMappingStmt: CreateUserMappingStmt; +} | { + AlterUserMappingStmt: AlterUserMappingStmt; +} | { + DropUserMappingStmt: DropUserMappingStmt; +} | { + ImportForeignSchemaStmt: ImportForeignSchemaStmt; +} | { + CreatePolicyStmt: CreatePolicyStmt; +} | { + AlterPolicyStmt: AlterPolicyStmt; +} | { + CreateAmStmt: CreateAmStmt; +} | { + CreateTrigStmt: CreateTrigStmt; +} | { + CreateEventTrigStmt: CreateEventTrigStmt; +} | { + AlterEventTrigStmt: AlterEventTrigStmt; +} | { + CreatePLangStmt: CreatePLangStmt; +} | { + CreateRoleStmt: CreateRoleStmt; +} | { + AlterRoleStmt: AlterRoleStmt; +} | { + AlterRoleSetStmt: AlterRoleSetStmt; +} | { + DropRoleStmt: DropRoleStmt; +} | { + CreateSeqStmt: CreateSeqStmt; +} | { + AlterSeqStmt: AlterSeqStmt; +} | { + DefineStmt: DefineStmt; +} | { + CreateDomainStmt: CreateDomainStmt; +} | { + CreateOpClassStmt: CreateOpClassStmt; +} | { + CreateOpClassItem: CreateOpClassItem; +} | { + CreateOpFamilyStmt: CreateOpFamilyStmt; +} | { + AlterOpFamilyStmt: AlterOpFamilyStmt; +} | { + DropStmt: DropStmt; +} | { + TruncateStmt: TruncateStmt; +} | { + CommentStmt: CommentStmt; +} | { + SecLabelStmt: SecLabelStmt; +} | { + DeclareCursorStmt: DeclareCursorStmt; +} | { + ClosePortalStmt: ClosePortalStmt; +} | { + FetchStmt: FetchStmt; +} | { + IndexStmt: IndexStmt; +} | { + CreateStatsStmt: CreateStatsStmt; +} | { + StatsElem: StatsElem; +} | { + AlterStatsStmt: AlterStatsStmt; +} | { + CreateFunctionStmt: CreateFunctionStmt; +} | { + FunctionParameter: FunctionParameter; +} | { + AlterFunctionStmt: AlterFunctionStmt; +} | { + DoStmt: DoStmt; +} | { + InlineCodeBlock: InlineCodeBlock; +} | { + CallStmt: CallStmt; +} | { + CallContext: CallContext; +} | { + RenameStmt: RenameStmt; +} | { + AlterObjectDependsStmt: AlterObjectDependsStmt; +} | { + AlterObjectSchemaStmt: AlterObjectSchemaStmt; +} | { + AlterOwnerStmt: AlterOwnerStmt; +} | { + AlterOperatorStmt: AlterOperatorStmt; +} | { + AlterTypeStmt: AlterTypeStmt; +} | { + RuleStmt: RuleStmt; +} | { + NotifyStmt: NotifyStmt; +} | { + ListenStmt: ListenStmt; +} | { + UnlistenStmt: UnlistenStmt; +} | { + TransactionStmt: TransactionStmt; +} | { + CompositeTypeStmt: CompositeTypeStmt; +} | { + CreateEnumStmt: CreateEnumStmt; +} | { + CreateRangeStmt: CreateRangeStmt; +} | { + AlterEnumStmt: AlterEnumStmt; +} | { + ViewStmt: ViewStmt; +} | { + LoadStmt: LoadStmt; +} | { + CreatedbStmt: CreatedbStmt; +} | { + AlterDatabaseStmt: AlterDatabaseStmt; +} | { + AlterDatabaseRefreshCollStmt: AlterDatabaseRefreshCollStmt; +} | { + AlterDatabaseSetStmt: AlterDatabaseSetStmt; +} | { + DropdbStmt: DropdbStmt; +} | { + AlterSystemStmt: AlterSystemStmt; +} | { + ClusterStmt: ClusterStmt; +} | { + VacuumStmt: VacuumStmt; +} | { + VacuumRelation: VacuumRelation; +} | { + ExplainStmt: ExplainStmt; +} | { + CreateTableAsStmt: CreateTableAsStmt; +} | { + RefreshMatViewStmt: RefreshMatViewStmt; +} | { + CheckPointStmt: CheckPointStmt; +} | { + DiscardStmt: DiscardStmt; +} | { + LockStmt: LockStmt; +} | { + ConstraintsSetStmt: ConstraintsSetStmt; +} | { + ReindexStmt: ReindexStmt; +} | { + CreateConversionStmt: CreateConversionStmt; +} | { + CreateCastStmt: CreateCastStmt; +} | { + CreateTransformStmt: CreateTransformStmt; +} | { + PrepareStmt: PrepareStmt; +} | { + ExecuteStmt: ExecuteStmt; +} | { + DeallocateStmt: DeallocateStmt; +} | { + DropOwnedStmt: DropOwnedStmt; +} | { + ReassignOwnedStmt: ReassignOwnedStmt; +} | { + AlterTSDictionaryStmt: AlterTSDictionaryStmt; +} | { + AlterTSConfigurationStmt: AlterTSConfigurationStmt; +} | { + PublicationTable: PublicationTable; +} | { + PublicationObjSpec: PublicationObjSpec; +} | { + CreatePublicationStmt: CreatePublicationStmt; +} | { + AlterPublicationStmt: AlterPublicationStmt; +} | { + CreateSubscriptionStmt: CreateSubscriptionStmt; +} | { + AlterSubscriptionStmt: AlterSubscriptionStmt; +} | { + DropSubscriptionStmt: DropSubscriptionStmt; +} | { + ScanToken: ScanToken; +}; export interface ParseResult { version?: number; stmts?: RawStmt[]; diff --git a/__fixtures__/output/types/fieldsRequired/types.ts b/__fixtures__/output/types/fieldsRequired/types.ts index 5aeab831..4cf35b7b 100644 --- a/__fixtures__/output/types/fieldsRequired/types.ts +++ b/__fixtures__/output/types/fieldsRequired/types.ts @@ -4,7 +4,517 @@ * and run the pg-proto-parser generate command to regenerate this file. */ import { OverridingKind, QuerySource, SortByDir, SortByNulls, SetQuantifier, A_Expr_Kind, RoleSpecType, TableLikeOption, DefElemAction, PartitionStrategy, PartitionRangeDatumKind, RTEKind, WCOKind, GroupingSetKind, CTEMaterialize, SetOperation, ObjectType, DropBehavior, AlterTableType, GrantTargetType, VariableSetKind, ConstrType, ImportForeignSchemaType, RoleStmtType, FetchDirection, FunctionParameterMode, TransactionStmtKind, ViewCheckOption, DiscardMode, ReindexObjectType, AlterTSConfigType, PublicationObjSpecType, AlterPublicationAction, AlterSubscriptionType, OnCommitAction, ParamKind, CoercionContext, CoercionForm, BoolExprType, SubLinkType, RowCompareType, MinMaxOp, SQLValueFunctionOp, XmlExprOp, XmlOptionType, JsonEncoding, JsonFormatType, JsonConstructorType, JsonValueType, NullTestType, BoolTestType, CmdType, JoinType, AggStrategy, AggSplit, SetOpCmd, SetOpStrategy, OnConflictAction, LimitOption, LockClauseStrength, LockWaitPolicy, LockTupleMode, KeywordKind, Token } from "./enums"; -export type Node = ParseResult | ScanResult | Integer | Float | Boolean | String | BitString | List | OidList | IntList | A_Const | Alias | RangeVar | TableFunc | IntoClause | Var | Param | Aggref | GroupingFunc | WindowFunc | SubscriptingRef | FuncExpr | NamedArgExpr | OpExpr | DistinctExpr | NullIfExpr | ScalarArrayOpExpr | BoolExpr | SubLink | SubPlan | AlternativeSubPlan | FieldSelect | FieldStore | RelabelType | CoerceViaIO | ArrayCoerceExpr | ConvertRowtypeExpr | CollateExpr | CaseExpr | CaseWhen | CaseTestExpr | ArrayExpr | RowExpr | RowCompareExpr | CoalesceExpr | MinMaxExpr | SQLValueFunction | XmlExpr | JsonFormat | JsonReturning | JsonValueExpr | JsonConstructorExpr | JsonIsPredicate | NullTest | BooleanTest | CoerceToDomain | CoerceToDomainValue | SetToDefault | CurrentOfExpr | NextValueExpr | InferenceElem | TargetEntry | RangeTblRef | JoinExpr | FromExpr | OnConflictExpr | Query | TypeName | ColumnRef | ParamRef | A_Expr | TypeCast | CollateClause | RoleSpec | FuncCall | A_Star | A_Indices | A_Indirection | A_ArrayExpr | ResTarget | MultiAssignRef | SortBy | WindowDef | RangeSubselect | RangeFunction | RangeTableFunc | RangeTableFuncCol | RangeTableSample | ColumnDef | TableLikeClause | IndexElem | DefElem | LockingClause | XmlSerialize | PartitionElem | PartitionSpec | PartitionBoundSpec | PartitionRangeDatum | PartitionCmd | RangeTblEntry | RTEPermissionInfo | RangeTblFunction | TableSampleClause | WithCheckOption | SortGroupClause | GroupingSet | WindowClause | RowMarkClause | WithClause | InferClause | OnConflictClause | CTESearchClause | CTECycleClause | CommonTableExpr | MergeWhenClause | MergeAction | TriggerTransition | JsonOutput | JsonKeyValue | JsonObjectConstructor | JsonArrayConstructor | JsonArrayQueryConstructor | JsonAggConstructor | JsonObjectAgg | JsonArrayAgg | RawStmt | InsertStmt | DeleteStmt | UpdateStmt | MergeStmt | SelectStmt | SetOperationStmt | ReturnStmt | PLAssignStmt | CreateSchemaStmt | AlterTableStmt | ReplicaIdentityStmt | AlterTableCmd | AlterCollationStmt | AlterDomainStmt | GrantStmt | ObjectWithArgs | AccessPriv | GrantRoleStmt | AlterDefaultPrivilegesStmt | CopyStmt | VariableSetStmt | VariableShowStmt | CreateStmt | Constraint | CreateTableSpaceStmt | DropTableSpaceStmt | AlterTableSpaceOptionsStmt | AlterTableMoveAllStmt | CreateExtensionStmt | AlterExtensionStmt | AlterExtensionContentsStmt | CreateFdwStmt | AlterFdwStmt | CreateForeignServerStmt | AlterForeignServerStmt | CreateForeignTableStmt | CreateUserMappingStmt | AlterUserMappingStmt | DropUserMappingStmt | ImportForeignSchemaStmt | CreatePolicyStmt | AlterPolicyStmt | CreateAmStmt | CreateTrigStmt | CreateEventTrigStmt | AlterEventTrigStmt | CreatePLangStmt | CreateRoleStmt | AlterRoleStmt | AlterRoleSetStmt | DropRoleStmt | CreateSeqStmt | AlterSeqStmt | DefineStmt | CreateDomainStmt | CreateOpClassStmt | CreateOpClassItem | CreateOpFamilyStmt | AlterOpFamilyStmt | DropStmt | TruncateStmt | CommentStmt | SecLabelStmt | DeclareCursorStmt | ClosePortalStmt | FetchStmt | IndexStmt | CreateStatsStmt | StatsElem | AlterStatsStmt | CreateFunctionStmt | FunctionParameter | AlterFunctionStmt | DoStmt | InlineCodeBlock | CallStmt | CallContext | RenameStmt | AlterObjectDependsStmt | AlterObjectSchemaStmt | AlterOwnerStmt | AlterOperatorStmt | AlterTypeStmt | RuleStmt | NotifyStmt | ListenStmt | UnlistenStmt | TransactionStmt | CompositeTypeStmt | CreateEnumStmt | CreateRangeStmt | AlterEnumStmt | ViewStmt | LoadStmt | CreatedbStmt | AlterDatabaseStmt | AlterDatabaseRefreshCollStmt | AlterDatabaseSetStmt | DropdbStmt | AlterSystemStmt | ClusterStmt | VacuumStmt | VacuumRelation | ExplainStmt | CreateTableAsStmt | RefreshMatViewStmt | CheckPointStmt | DiscardStmt | LockStmt | ConstraintsSetStmt | ReindexStmt | CreateConversionStmt | CreateCastStmt | CreateTransformStmt | PrepareStmt | ExecuteStmt | DeallocateStmt | DropOwnedStmt | ReassignOwnedStmt | AlterTSDictionaryStmt | AlterTSConfigurationStmt | PublicationTable | PublicationObjSpec | CreatePublicationStmt | AlterPublicationStmt | CreateSubscriptionStmt | AlterSubscriptionStmt | DropSubscriptionStmt | ScanToken; +export type Node = { + ParseResult: ParseResult; +} | { + ScanResult: ScanResult; +} | { + Integer: Integer; +} | { + Float: Float; +} | { + Boolean: Boolean; +} | { + String: String; +} | { + BitString: BitString; +} | { + List: List; +} | { + OidList: OidList; +} | { + IntList: IntList; +} | { + A_Const: A_Const; +} | { + Alias: Alias; +} | { + RangeVar: RangeVar; +} | { + TableFunc: TableFunc; +} | { + IntoClause: IntoClause; +} | { + Var: Var; +} | { + Param: Param; +} | { + Aggref: Aggref; +} | { + GroupingFunc: GroupingFunc; +} | { + WindowFunc: WindowFunc; +} | { + SubscriptingRef: SubscriptingRef; +} | { + FuncExpr: FuncExpr; +} | { + NamedArgExpr: NamedArgExpr; +} | { + OpExpr: OpExpr; +} | { + DistinctExpr: DistinctExpr; +} | { + NullIfExpr: NullIfExpr; +} | { + ScalarArrayOpExpr: ScalarArrayOpExpr; +} | { + BoolExpr: BoolExpr; +} | { + SubLink: SubLink; +} | { + SubPlan: SubPlan; +} | { + AlternativeSubPlan: AlternativeSubPlan; +} | { + FieldSelect: FieldSelect; +} | { + FieldStore: FieldStore; +} | { + RelabelType: RelabelType; +} | { + CoerceViaIO: CoerceViaIO; +} | { + ArrayCoerceExpr: ArrayCoerceExpr; +} | { + ConvertRowtypeExpr: ConvertRowtypeExpr; +} | { + CollateExpr: CollateExpr; +} | { + CaseExpr: CaseExpr; +} | { + CaseWhen: CaseWhen; +} | { + CaseTestExpr: CaseTestExpr; +} | { + ArrayExpr: ArrayExpr; +} | { + RowExpr: RowExpr; +} | { + RowCompareExpr: RowCompareExpr; +} | { + CoalesceExpr: CoalesceExpr; +} | { + MinMaxExpr: MinMaxExpr; +} | { + SQLValueFunction: SQLValueFunction; +} | { + XmlExpr: XmlExpr; +} | { + JsonFormat: JsonFormat; +} | { + JsonReturning: JsonReturning; +} | { + JsonValueExpr: JsonValueExpr; +} | { + JsonConstructorExpr: JsonConstructorExpr; +} | { + JsonIsPredicate: JsonIsPredicate; +} | { + NullTest: NullTest; +} | { + BooleanTest: BooleanTest; +} | { + CoerceToDomain: CoerceToDomain; +} | { + CoerceToDomainValue: CoerceToDomainValue; +} | { + SetToDefault: SetToDefault; +} | { + CurrentOfExpr: CurrentOfExpr; +} | { + NextValueExpr: NextValueExpr; +} | { + InferenceElem: InferenceElem; +} | { + TargetEntry: TargetEntry; +} | { + RangeTblRef: RangeTblRef; +} | { + JoinExpr: JoinExpr; +} | { + FromExpr: FromExpr; +} | { + OnConflictExpr: OnConflictExpr; +} | { + Query: Query; +} | { + TypeName: TypeName; +} | { + ColumnRef: ColumnRef; +} | { + ParamRef: ParamRef; +} | { + A_Expr: A_Expr; +} | { + TypeCast: TypeCast; +} | { + CollateClause: CollateClause; +} | { + RoleSpec: RoleSpec; +} | { + FuncCall: FuncCall; +} | { + A_Star: A_Star; +} | { + A_Indices: A_Indices; +} | { + A_Indirection: A_Indirection; +} | { + A_ArrayExpr: A_ArrayExpr; +} | { + ResTarget: ResTarget; +} | { + MultiAssignRef: MultiAssignRef; +} | { + SortBy: SortBy; +} | { + WindowDef: WindowDef; +} | { + RangeSubselect: RangeSubselect; +} | { + RangeFunction: RangeFunction; +} | { + RangeTableFunc: RangeTableFunc; +} | { + RangeTableFuncCol: RangeTableFuncCol; +} | { + RangeTableSample: RangeTableSample; +} | { + ColumnDef: ColumnDef; +} | { + TableLikeClause: TableLikeClause; +} | { + IndexElem: IndexElem; +} | { + DefElem: DefElem; +} | { + LockingClause: LockingClause; +} | { + XmlSerialize: XmlSerialize; +} | { + PartitionElem: PartitionElem; +} | { + PartitionSpec: PartitionSpec; +} | { + PartitionBoundSpec: PartitionBoundSpec; +} | { + PartitionRangeDatum: PartitionRangeDatum; +} | { + PartitionCmd: PartitionCmd; +} | { + RangeTblEntry: RangeTblEntry; +} | { + RTEPermissionInfo: RTEPermissionInfo; +} | { + RangeTblFunction: RangeTblFunction; +} | { + TableSampleClause: TableSampleClause; +} | { + WithCheckOption: WithCheckOption; +} | { + SortGroupClause: SortGroupClause; +} | { + GroupingSet: GroupingSet; +} | { + WindowClause: WindowClause; +} | { + RowMarkClause: RowMarkClause; +} | { + WithClause: WithClause; +} | { + InferClause: InferClause; +} | { + OnConflictClause: OnConflictClause; +} | { + CTESearchClause: CTESearchClause; +} | { + CTECycleClause: CTECycleClause; +} | { + CommonTableExpr: CommonTableExpr; +} | { + MergeWhenClause: MergeWhenClause; +} | { + MergeAction: MergeAction; +} | { + TriggerTransition: TriggerTransition; +} | { + JsonOutput: JsonOutput; +} | { + JsonKeyValue: JsonKeyValue; +} | { + JsonObjectConstructor: JsonObjectConstructor; +} | { + JsonArrayConstructor: JsonArrayConstructor; +} | { + JsonArrayQueryConstructor: JsonArrayQueryConstructor; +} | { + JsonAggConstructor: JsonAggConstructor; +} | { + JsonObjectAgg: JsonObjectAgg; +} | { + JsonArrayAgg: JsonArrayAgg; +} | { + RawStmt: RawStmt; +} | { + InsertStmt: InsertStmt; +} | { + DeleteStmt: DeleteStmt; +} | { + UpdateStmt: UpdateStmt; +} | { + MergeStmt: MergeStmt; +} | { + SelectStmt: SelectStmt; +} | { + SetOperationStmt: SetOperationStmt; +} | { + ReturnStmt: ReturnStmt; +} | { + PLAssignStmt: PLAssignStmt; +} | { + CreateSchemaStmt: CreateSchemaStmt; +} | { + AlterTableStmt: AlterTableStmt; +} | { + ReplicaIdentityStmt: ReplicaIdentityStmt; +} | { + AlterTableCmd: AlterTableCmd; +} | { + AlterCollationStmt: AlterCollationStmt; +} | { + AlterDomainStmt: AlterDomainStmt; +} | { + GrantStmt: GrantStmt; +} | { + ObjectWithArgs: ObjectWithArgs; +} | { + AccessPriv: AccessPriv; +} | { + GrantRoleStmt: GrantRoleStmt; +} | { + AlterDefaultPrivilegesStmt: AlterDefaultPrivilegesStmt; +} | { + CopyStmt: CopyStmt; +} | { + VariableSetStmt: VariableSetStmt; +} | { + VariableShowStmt: VariableShowStmt; +} | { + CreateStmt: CreateStmt; +} | { + Constraint: Constraint; +} | { + CreateTableSpaceStmt: CreateTableSpaceStmt; +} | { + DropTableSpaceStmt: DropTableSpaceStmt; +} | { + AlterTableSpaceOptionsStmt: AlterTableSpaceOptionsStmt; +} | { + AlterTableMoveAllStmt: AlterTableMoveAllStmt; +} | { + CreateExtensionStmt: CreateExtensionStmt; +} | { + AlterExtensionStmt: AlterExtensionStmt; +} | { + AlterExtensionContentsStmt: AlterExtensionContentsStmt; +} | { + CreateFdwStmt: CreateFdwStmt; +} | { + AlterFdwStmt: AlterFdwStmt; +} | { + CreateForeignServerStmt: CreateForeignServerStmt; +} | { + AlterForeignServerStmt: AlterForeignServerStmt; +} | { + CreateForeignTableStmt: CreateForeignTableStmt; +} | { + CreateUserMappingStmt: CreateUserMappingStmt; +} | { + AlterUserMappingStmt: AlterUserMappingStmt; +} | { + DropUserMappingStmt: DropUserMappingStmt; +} | { + ImportForeignSchemaStmt: ImportForeignSchemaStmt; +} | { + CreatePolicyStmt: CreatePolicyStmt; +} | { + AlterPolicyStmt: AlterPolicyStmt; +} | { + CreateAmStmt: CreateAmStmt; +} | { + CreateTrigStmt: CreateTrigStmt; +} | { + CreateEventTrigStmt: CreateEventTrigStmt; +} | { + AlterEventTrigStmt: AlterEventTrigStmt; +} | { + CreatePLangStmt: CreatePLangStmt; +} | { + CreateRoleStmt: CreateRoleStmt; +} | { + AlterRoleStmt: AlterRoleStmt; +} | { + AlterRoleSetStmt: AlterRoleSetStmt; +} | { + DropRoleStmt: DropRoleStmt; +} | { + CreateSeqStmt: CreateSeqStmt; +} | { + AlterSeqStmt: AlterSeqStmt; +} | { + DefineStmt: DefineStmt; +} | { + CreateDomainStmt: CreateDomainStmt; +} | { + CreateOpClassStmt: CreateOpClassStmt; +} | { + CreateOpClassItem: CreateOpClassItem; +} | { + CreateOpFamilyStmt: CreateOpFamilyStmt; +} | { + AlterOpFamilyStmt: AlterOpFamilyStmt; +} | { + DropStmt: DropStmt; +} | { + TruncateStmt: TruncateStmt; +} | { + CommentStmt: CommentStmt; +} | { + SecLabelStmt: SecLabelStmt; +} | { + DeclareCursorStmt: DeclareCursorStmt; +} | { + ClosePortalStmt: ClosePortalStmt; +} | { + FetchStmt: FetchStmt; +} | { + IndexStmt: IndexStmt; +} | { + CreateStatsStmt: CreateStatsStmt; +} | { + StatsElem: StatsElem; +} | { + AlterStatsStmt: AlterStatsStmt; +} | { + CreateFunctionStmt: CreateFunctionStmt; +} | { + FunctionParameter: FunctionParameter; +} | { + AlterFunctionStmt: AlterFunctionStmt; +} | { + DoStmt: DoStmt; +} | { + InlineCodeBlock: InlineCodeBlock; +} | { + CallStmt: CallStmt; +} | { + CallContext: CallContext; +} | { + RenameStmt: RenameStmt; +} | { + AlterObjectDependsStmt: AlterObjectDependsStmt; +} | { + AlterObjectSchemaStmt: AlterObjectSchemaStmt; +} | { + AlterOwnerStmt: AlterOwnerStmt; +} | { + AlterOperatorStmt: AlterOperatorStmt; +} | { + AlterTypeStmt: AlterTypeStmt; +} | { + RuleStmt: RuleStmt; +} | { + NotifyStmt: NotifyStmt; +} | { + ListenStmt: ListenStmt; +} | { + UnlistenStmt: UnlistenStmt; +} | { + TransactionStmt: TransactionStmt; +} | { + CompositeTypeStmt: CompositeTypeStmt; +} | { + CreateEnumStmt: CreateEnumStmt; +} | { + CreateRangeStmt: CreateRangeStmt; +} | { + AlterEnumStmt: AlterEnumStmt; +} | { + ViewStmt: ViewStmt; +} | { + LoadStmt: LoadStmt; +} | { + CreatedbStmt: CreatedbStmt; +} | { + AlterDatabaseStmt: AlterDatabaseStmt; +} | { + AlterDatabaseRefreshCollStmt: AlterDatabaseRefreshCollStmt; +} | { + AlterDatabaseSetStmt: AlterDatabaseSetStmt; +} | { + DropdbStmt: DropdbStmt; +} | { + AlterSystemStmt: AlterSystemStmt; +} | { + ClusterStmt: ClusterStmt; +} | { + VacuumStmt: VacuumStmt; +} | { + VacuumRelation: VacuumRelation; +} | { + ExplainStmt: ExplainStmt; +} | { + CreateTableAsStmt: CreateTableAsStmt; +} | { + RefreshMatViewStmt: RefreshMatViewStmt; +} | { + CheckPointStmt: CheckPointStmt; +} | { + DiscardStmt: DiscardStmt; +} | { + LockStmt: LockStmt; +} | { + ConstraintsSetStmt: ConstraintsSetStmt; +} | { + ReindexStmt: ReindexStmt; +} | { + CreateConversionStmt: CreateConversionStmt; +} | { + CreateCastStmt: CreateCastStmt; +} | { + CreateTransformStmt: CreateTransformStmt; +} | { + PrepareStmt: PrepareStmt; +} | { + ExecuteStmt: ExecuteStmt; +} | { + DeallocateStmt: DeallocateStmt; +} | { + DropOwnedStmt: DropOwnedStmt; +} | { + ReassignOwnedStmt: ReassignOwnedStmt; +} | { + AlterTSDictionaryStmt: AlterTSDictionaryStmt; +} | { + AlterTSConfigurationStmt: AlterTSConfigurationStmt; +} | { + PublicationTable: PublicationTable; +} | { + PublicationObjSpec: PublicationObjSpec; +} | { + CreatePublicationStmt: CreatePublicationStmt; +} | { + AlterPublicationStmt: AlterPublicationStmt; +} | { + CreateSubscriptionStmt: CreateSubscriptionStmt; +} | { + AlterSubscriptionStmt: AlterSubscriptionStmt; +} | { + DropSubscriptionStmt: DropSubscriptionStmt; +} | { + ScanToken: ScanToken; +}; export interface ParseResult { version: number; stmts: RawStmt[]; diff --git a/__fixtures__/output/types/optionalFields/types.ts b/__fixtures__/output/types/optionalFields/types.ts index 4dbf99c8..cf5f2c36 100644 --- a/__fixtures__/output/types/optionalFields/types.ts +++ b/__fixtures__/output/types/optionalFields/types.ts @@ -4,7 +4,517 @@ * and run the pg-proto-parser generate command to regenerate this file. */ import { OverridingKind, QuerySource, SortByDir, SortByNulls, SetQuantifier, A_Expr_Kind, RoleSpecType, TableLikeOption, DefElemAction, PartitionStrategy, PartitionRangeDatumKind, RTEKind, WCOKind, GroupingSetKind, CTEMaterialize, SetOperation, ObjectType, DropBehavior, AlterTableType, GrantTargetType, VariableSetKind, ConstrType, ImportForeignSchemaType, RoleStmtType, FetchDirection, FunctionParameterMode, TransactionStmtKind, ViewCheckOption, DiscardMode, ReindexObjectType, AlterTSConfigType, PublicationObjSpecType, AlterPublicationAction, AlterSubscriptionType, OnCommitAction, ParamKind, CoercionContext, CoercionForm, BoolExprType, SubLinkType, RowCompareType, MinMaxOp, SQLValueFunctionOp, XmlExprOp, XmlOptionType, JsonEncoding, JsonFormatType, JsonConstructorType, JsonValueType, NullTestType, BoolTestType, CmdType, JoinType, AggStrategy, AggSplit, SetOpCmd, SetOpStrategy, OnConflictAction, LimitOption, LockClauseStrength, LockWaitPolicy, LockTupleMode, KeywordKind, Token } from "./enums"; -export type Node = ParseResult | ScanResult | Integer | Float | Boolean | String | BitString | List | OidList | IntList | A_Const | Alias | RangeVar | TableFunc | IntoClause | Var | Param | Aggref | GroupingFunc | WindowFunc | SubscriptingRef | FuncExpr | NamedArgExpr | OpExpr | DistinctExpr | NullIfExpr | ScalarArrayOpExpr | BoolExpr | SubLink | SubPlan | AlternativeSubPlan | FieldSelect | FieldStore | RelabelType | CoerceViaIO | ArrayCoerceExpr | ConvertRowtypeExpr | CollateExpr | CaseExpr | CaseWhen | CaseTestExpr | ArrayExpr | RowExpr | RowCompareExpr | CoalesceExpr | MinMaxExpr | SQLValueFunction | XmlExpr | JsonFormat | JsonReturning | JsonValueExpr | JsonConstructorExpr | JsonIsPredicate | NullTest | BooleanTest | CoerceToDomain | CoerceToDomainValue | SetToDefault | CurrentOfExpr | NextValueExpr | InferenceElem | TargetEntry | RangeTblRef | JoinExpr | FromExpr | OnConflictExpr | Query | TypeName | ColumnRef | ParamRef | A_Expr | TypeCast | CollateClause | RoleSpec | FuncCall | A_Star | A_Indices | A_Indirection | A_ArrayExpr | ResTarget | MultiAssignRef | SortBy | WindowDef | RangeSubselect | RangeFunction | RangeTableFunc | RangeTableFuncCol | RangeTableSample | ColumnDef | TableLikeClause | IndexElem | DefElem | LockingClause | XmlSerialize | PartitionElem | PartitionSpec | PartitionBoundSpec | PartitionRangeDatum | PartitionCmd | RangeTblEntry | RTEPermissionInfo | RangeTblFunction | TableSampleClause | WithCheckOption | SortGroupClause | GroupingSet | WindowClause | RowMarkClause | WithClause | InferClause | OnConflictClause | CTESearchClause | CTECycleClause | CommonTableExpr | MergeWhenClause | MergeAction | TriggerTransition | JsonOutput | JsonKeyValue | JsonObjectConstructor | JsonArrayConstructor | JsonArrayQueryConstructor | JsonAggConstructor | JsonObjectAgg | JsonArrayAgg | RawStmt | InsertStmt | DeleteStmt | UpdateStmt | MergeStmt | SelectStmt | SetOperationStmt | ReturnStmt | PLAssignStmt | CreateSchemaStmt | AlterTableStmt | ReplicaIdentityStmt | AlterTableCmd | AlterCollationStmt | AlterDomainStmt | GrantStmt | ObjectWithArgs | AccessPriv | GrantRoleStmt | AlterDefaultPrivilegesStmt | CopyStmt | VariableSetStmt | VariableShowStmt | CreateStmt | Constraint | CreateTableSpaceStmt | DropTableSpaceStmt | AlterTableSpaceOptionsStmt | AlterTableMoveAllStmt | CreateExtensionStmt | AlterExtensionStmt | AlterExtensionContentsStmt | CreateFdwStmt | AlterFdwStmt | CreateForeignServerStmt | AlterForeignServerStmt | CreateForeignTableStmt | CreateUserMappingStmt | AlterUserMappingStmt | DropUserMappingStmt | ImportForeignSchemaStmt | CreatePolicyStmt | AlterPolicyStmt | CreateAmStmt | CreateTrigStmt | CreateEventTrigStmt | AlterEventTrigStmt | CreatePLangStmt | CreateRoleStmt | AlterRoleStmt | AlterRoleSetStmt | DropRoleStmt | CreateSeqStmt | AlterSeqStmt | DefineStmt | CreateDomainStmt | CreateOpClassStmt | CreateOpClassItem | CreateOpFamilyStmt | AlterOpFamilyStmt | DropStmt | TruncateStmt | CommentStmt | SecLabelStmt | DeclareCursorStmt | ClosePortalStmt | FetchStmt | IndexStmt | CreateStatsStmt | StatsElem | AlterStatsStmt | CreateFunctionStmt | FunctionParameter | AlterFunctionStmt | DoStmt | InlineCodeBlock | CallStmt | CallContext | RenameStmt | AlterObjectDependsStmt | AlterObjectSchemaStmt | AlterOwnerStmt | AlterOperatorStmt | AlterTypeStmt | RuleStmt | NotifyStmt | ListenStmt | UnlistenStmt | TransactionStmt | CompositeTypeStmt | CreateEnumStmt | CreateRangeStmt | AlterEnumStmt | ViewStmt | LoadStmt | CreatedbStmt | AlterDatabaseStmt | AlterDatabaseRefreshCollStmt | AlterDatabaseSetStmt | DropdbStmt | AlterSystemStmt | ClusterStmt | VacuumStmt | VacuumRelation | ExplainStmt | CreateTableAsStmt | RefreshMatViewStmt | CheckPointStmt | DiscardStmt | LockStmt | ConstraintsSetStmt | ReindexStmt | CreateConversionStmt | CreateCastStmt | CreateTransformStmt | PrepareStmt | ExecuteStmt | DeallocateStmt | DropOwnedStmt | ReassignOwnedStmt | AlterTSDictionaryStmt | AlterTSConfigurationStmt | PublicationTable | PublicationObjSpec | CreatePublicationStmt | AlterPublicationStmt | CreateSubscriptionStmt | AlterSubscriptionStmt | DropSubscriptionStmt | ScanToken; +export type Node = { + ParseResult: ParseResult; +} | { + ScanResult: ScanResult; +} | { + Integer: Integer; +} | { + Float: Float; +} | { + Boolean: Boolean; +} | { + String: String; +} | { + BitString: BitString; +} | { + List: List; +} | { + OidList: OidList; +} | { + IntList: IntList; +} | { + A_Const: A_Const; +} | { + Alias: Alias; +} | { + RangeVar: RangeVar; +} | { + TableFunc: TableFunc; +} | { + IntoClause: IntoClause; +} | { + Var: Var; +} | { + Param: Param; +} | { + Aggref: Aggref; +} | { + GroupingFunc: GroupingFunc; +} | { + WindowFunc: WindowFunc; +} | { + SubscriptingRef: SubscriptingRef; +} | { + FuncExpr: FuncExpr; +} | { + NamedArgExpr: NamedArgExpr; +} | { + OpExpr: OpExpr; +} | { + DistinctExpr: DistinctExpr; +} | { + NullIfExpr: NullIfExpr; +} | { + ScalarArrayOpExpr: ScalarArrayOpExpr; +} | { + BoolExpr: BoolExpr; +} | { + SubLink: SubLink; +} | { + SubPlan: SubPlan; +} | { + AlternativeSubPlan: AlternativeSubPlan; +} | { + FieldSelect: FieldSelect; +} | { + FieldStore: FieldStore; +} | { + RelabelType: RelabelType; +} | { + CoerceViaIO: CoerceViaIO; +} | { + ArrayCoerceExpr: ArrayCoerceExpr; +} | { + ConvertRowtypeExpr: ConvertRowtypeExpr; +} | { + CollateExpr: CollateExpr; +} | { + CaseExpr: CaseExpr; +} | { + CaseWhen: CaseWhen; +} | { + CaseTestExpr: CaseTestExpr; +} | { + ArrayExpr: ArrayExpr; +} | { + RowExpr: RowExpr; +} | { + RowCompareExpr: RowCompareExpr; +} | { + CoalesceExpr: CoalesceExpr; +} | { + MinMaxExpr: MinMaxExpr; +} | { + SQLValueFunction: SQLValueFunction; +} | { + XmlExpr: XmlExpr; +} | { + JsonFormat: JsonFormat; +} | { + JsonReturning: JsonReturning; +} | { + JsonValueExpr: JsonValueExpr; +} | { + JsonConstructorExpr: JsonConstructorExpr; +} | { + JsonIsPredicate: JsonIsPredicate; +} | { + NullTest: NullTest; +} | { + BooleanTest: BooleanTest; +} | { + CoerceToDomain: CoerceToDomain; +} | { + CoerceToDomainValue: CoerceToDomainValue; +} | { + SetToDefault: SetToDefault; +} | { + CurrentOfExpr: CurrentOfExpr; +} | { + NextValueExpr: NextValueExpr; +} | { + InferenceElem: InferenceElem; +} | { + TargetEntry: TargetEntry; +} | { + RangeTblRef: RangeTblRef; +} | { + JoinExpr: JoinExpr; +} | { + FromExpr: FromExpr; +} | { + OnConflictExpr: OnConflictExpr; +} | { + Query: Query; +} | { + TypeName: TypeName; +} | { + ColumnRef: ColumnRef; +} | { + ParamRef: ParamRef; +} | { + A_Expr: A_Expr; +} | { + TypeCast: TypeCast; +} | { + CollateClause: CollateClause; +} | { + RoleSpec: RoleSpec; +} | { + FuncCall: FuncCall; +} | { + A_Star: A_Star; +} | { + A_Indices: A_Indices; +} | { + A_Indirection: A_Indirection; +} | { + A_ArrayExpr: A_ArrayExpr; +} | { + ResTarget: ResTarget; +} | { + MultiAssignRef: MultiAssignRef; +} | { + SortBy: SortBy; +} | { + WindowDef: WindowDef; +} | { + RangeSubselect: RangeSubselect; +} | { + RangeFunction: RangeFunction; +} | { + RangeTableFunc: RangeTableFunc; +} | { + RangeTableFuncCol: RangeTableFuncCol; +} | { + RangeTableSample: RangeTableSample; +} | { + ColumnDef: ColumnDef; +} | { + TableLikeClause: TableLikeClause; +} | { + IndexElem: IndexElem; +} | { + DefElem: DefElem; +} | { + LockingClause: LockingClause; +} | { + XmlSerialize: XmlSerialize; +} | { + PartitionElem: PartitionElem; +} | { + PartitionSpec: PartitionSpec; +} | { + PartitionBoundSpec: PartitionBoundSpec; +} | { + PartitionRangeDatum: PartitionRangeDatum; +} | { + PartitionCmd: PartitionCmd; +} | { + RangeTblEntry: RangeTblEntry; +} | { + RTEPermissionInfo: RTEPermissionInfo; +} | { + RangeTblFunction: RangeTblFunction; +} | { + TableSampleClause: TableSampleClause; +} | { + WithCheckOption: WithCheckOption; +} | { + SortGroupClause: SortGroupClause; +} | { + GroupingSet: GroupingSet; +} | { + WindowClause: WindowClause; +} | { + RowMarkClause: RowMarkClause; +} | { + WithClause: WithClause; +} | { + InferClause: InferClause; +} | { + OnConflictClause: OnConflictClause; +} | { + CTESearchClause: CTESearchClause; +} | { + CTECycleClause: CTECycleClause; +} | { + CommonTableExpr: CommonTableExpr; +} | { + MergeWhenClause: MergeWhenClause; +} | { + MergeAction: MergeAction; +} | { + TriggerTransition: TriggerTransition; +} | { + JsonOutput: JsonOutput; +} | { + JsonKeyValue: JsonKeyValue; +} | { + JsonObjectConstructor: JsonObjectConstructor; +} | { + JsonArrayConstructor: JsonArrayConstructor; +} | { + JsonArrayQueryConstructor: JsonArrayQueryConstructor; +} | { + JsonAggConstructor: JsonAggConstructor; +} | { + JsonObjectAgg: JsonObjectAgg; +} | { + JsonArrayAgg: JsonArrayAgg; +} | { + RawStmt: RawStmt; +} | { + InsertStmt: InsertStmt; +} | { + DeleteStmt: DeleteStmt; +} | { + UpdateStmt: UpdateStmt; +} | { + MergeStmt: MergeStmt; +} | { + SelectStmt: SelectStmt; +} | { + SetOperationStmt: SetOperationStmt; +} | { + ReturnStmt: ReturnStmt; +} | { + PLAssignStmt: PLAssignStmt; +} | { + CreateSchemaStmt: CreateSchemaStmt; +} | { + AlterTableStmt: AlterTableStmt; +} | { + ReplicaIdentityStmt: ReplicaIdentityStmt; +} | { + AlterTableCmd: AlterTableCmd; +} | { + AlterCollationStmt: AlterCollationStmt; +} | { + AlterDomainStmt: AlterDomainStmt; +} | { + GrantStmt: GrantStmt; +} | { + ObjectWithArgs: ObjectWithArgs; +} | { + AccessPriv: AccessPriv; +} | { + GrantRoleStmt: GrantRoleStmt; +} | { + AlterDefaultPrivilegesStmt: AlterDefaultPrivilegesStmt; +} | { + CopyStmt: CopyStmt; +} | { + VariableSetStmt: VariableSetStmt; +} | { + VariableShowStmt: VariableShowStmt; +} | { + CreateStmt: CreateStmt; +} | { + Constraint: Constraint; +} | { + CreateTableSpaceStmt: CreateTableSpaceStmt; +} | { + DropTableSpaceStmt: DropTableSpaceStmt; +} | { + AlterTableSpaceOptionsStmt: AlterTableSpaceOptionsStmt; +} | { + AlterTableMoveAllStmt: AlterTableMoveAllStmt; +} | { + CreateExtensionStmt: CreateExtensionStmt; +} | { + AlterExtensionStmt: AlterExtensionStmt; +} | { + AlterExtensionContentsStmt: AlterExtensionContentsStmt; +} | { + CreateFdwStmt: CreateFdwStmt; +} | { + AlterFdwStmt: AlterFdwStmt; +} | { + CreateForeignServerStmt: CreateForeignServerStmt; +} | { + AlterForeignServerStmt: AlterForeignServerStmt; +} | { + CreateForeignTableStmt: CreateForeignTableStmt; +} | { + CreateUserMappingStmt: CreateUserMappingStmt; +} | { + AlterUserMappingStmt: AlterUserMappingStmt; +} | { + DropUserMappingStmt: DropUserMappingStmt; +} | { + ImportForeignSchemaStmt: ImportForeignSchemaStmt; +} | { + CreatePolicyStmt: CreatePolicyStmt; +} | { + AlterPolicyStmt: AlterPolicyStmt; +} | { + CreateAmStmt: CreateAmStmt; +} | { + CreateTrigStmt: CreateTrigStmt; +} | { + CreateEventTrigStmt: CreateEventTrigStmt; +} | { + AlterEventTrigStmt: AlterEventTrigStmt; +} | { + CreatePLangStmt: CreatePLangStmt; +} | { + CreateRoleStmt: CreateRoleStmt; +} | { + AlterRoleStmt: AlterRoleStmt; +} | { + AlterRoleSetStmt: AlterRoleSetStmt; +} | { + DropRoleStmt: DropRoleStmt; +} | { + CreateSeqStmt: CreateSeqStmt; +} | { + AlterSeqStmt: AlterSeqStmt; +} | { + DefineStmt: DefineStmt; +} | { + CreateDomainStmt: CreateDomainStmt; +} | { + CreateOpClassStmt: CreateOpClassStmt; +} | { + CreateOpClassItem: CreateOpClassItem; +} | { + CreateOpFamilyStmt: CreateOpFamilyStmt; +} | { + AlterOpFamilyStmt: AlterOpFamilyStmt; +} | { + DropStmt: DropStmt; +} | { + TruncateStmt: TruncateStmt; +} | { + CommentStmt: CommentStmt; +} | { + SecLabelStmt: SecLabelStmt; +} | { + DeclareCursorStmt: DeclareCursorStmt; +} | { + ClosePortalStmt: ClosePortalStmt; +} | { + FetchStmt: FetchStmt; +} | { + IndexStmt: IndexStmt; +} | { + CreateStatsStmt: CreateStatsStmt; +} | { + StatsElem: StatsElem; +} | { + AlterStatsStmt: AlterStatsStmt; +} | { + CreateFunctionStmt: CreateFunctionStmt; +} | { + FunctionParameter: FunctionParameter; +} | { + AlterFunctionStmt: AlterFunctionStmt; +} | { + DoStmt: DoStmt; +} | { + InlineCodeBlock: InlineCodeBlock; +} | { + CallStmt: CallStmt; +} | { + CallContext: CallContext; +} | { + RenameStmt: RenameStmt; +} | { + AlterObjectDependsStmt: AlterObjectDependsStmt; +} | { + AlterObjectSchemaStmt: AlterObjectSchemaStmt; +} | { + AlterOwnerStmt: AlterOwnerStmt; +} | { + AlterOperatorStmt: AlterOperatorStmt; +} | { + AlterTypeStmt: AlterTypeStmt; +} | { + RuleStmt: RuleStmt; +} | { + NotifyStmt: NotifyStmt; +} | { + ListenStmt: ListenStmt; +} | { + UnlistenStmt: UnlistenStmt; +} | { + TransactionStmt: TransactionStmt; +} | { + CompositeTypeStmt: CompositeTypeStmt; +} | { + CreateEnumStmt: CreateEnumStmt; +} | { + CreateRangeStmt: CreateRangeStmt; +} | { + AlterEnumStmt: AlterEnumStmt; +} | { + ViewStmt: ViewStmt; +} | { + LoadStmt: LoadStmt; +} | { + CreatedbStmt: CreatedbStmt; +} | { + AlterDatabaseStmt: AlterDatabaseStmt; +} | { + AlterDatabaseRefreshCollStmt: AlterDatabaseRefreshCollStmt; +} | { + AlterDatabaseSetStmt: AlterDatabaseSetStmt; +} | { + DropdbStmt: DropdbStmt; +} | { + AlterSystemStmt: AlterSystemStmt; +} | { + ClusterStmt: ClusterStmt; +} | { + VacuumStmt: VacuumStmt; +} | { + VacuumRelation: VacuumRelation; +} | { + ExplainStmt: ExplainStmt; +} | { + CreateTableAsStmt: CreateTableAsStmt; +} | { + RefreshMatViewStmt: RefreshMatViewStmt; +} | { + CheckPointStmt: CheckPointStmt; +} | { + DiscardStmt: DiscardStmt; +} | { + LockStmt: LockStmt; +} | { + ConstraintsSetStmt: ConstraintsSetStmt; +} | { + ReindexStmt: ReindexStmt; +} | { + CreateConversionStmt: CreateConversionStmt; +} | { + CreateCastStmt: CreateCastStmt; +} | { + CreateTransformStmt: CreateTransformStmt; +} | { + PrepareStmt: PrepareStmt; +} | { + ExecuteStmt: ExecuteStmt; +} | { + DeallocateStmt: DeallocateStmt; +} | { + DropOwnedStmt: DropOwnedStmt; +} | { + ReassignOwnedStmt: ReassignOwnedStmt; +} | { + AlterTSDictionaryStmt: AlterTSDictionaryStmt; +} | { + AlterTSConfigurationStmt: AlterTSConfigurationStmt; +} | { + PublicationTable: PublicationTable; +} | { + PublicationObjSpec: PublicationObjSpec; +} | { + CreatePublicationStmt: CreatePublicationStmt; +} | { + AlterPublicationStmt: AlterPublicationStmt; +} | { + CreateSubscriptionStmt: CreateSubscriptionStmt; +} | { + AlterSubscriptionStmt: AlterSubscriptionStmt; +} | { + DropSubscriptionStmt: DropSubscriptionStmt; +} | { + ScanToken: ScanToken; +}; export interface ParseResult { version?: number; stmts?: RawStmt[]; diff --git a/__fixtures__/output/utils/astHelpers/enabled/asts.ts b/__fixtures__/output/utils/astHelpers/enabled/asts.ts index a89d9711..776a88fe 100644 --- a/__fixtures__/output/utils/astHelpers/enabled/asts.ts +++ b/__fixtures__/output/utils/astHelpers/enabled/asts.ts @@ -4,61 +4,133 @@ * and run the pg-proto-parser generate command to regenerate this file. */ import _o from "nested-obj"; -import { ParseResult, ScanResult, Integer, Float, Boolean, String, BitString, List, OidList, IntList, A_Const, Alias, RangeVar, TableFunc, IntoClause, Var, Param, Aggref, GroupingFunc, WindowFunc, SubscriptingRef, FuncExpr, NamedArgExpr, OpExpr, DistinctExpr, NullIfExpr, ScalarArrayOpExpr, BoolExpr, SubLink, SubPlan, AlternativeSubPlan, FieldSelect, FieldStore, RelabelType, CoerceViaIO, ArrayCoerceExpr, ConvertRowtypeExpr, CollateExpr, CaseExpr, CaseWhen, CaseTestExpr, ArrayExpr, RowExpr, RowCompareExpr, CoalesceExpr, MinMaxExpr, SQLValueFunction, XmlExpr, JsonFormat, JsonReturning, JsonValueExpr, JsonConstructorExpr, JsonIsPredicate, NullTest, BooleanTest, CoerceToDomain, CoerceToDomainValue, SetToDefault, CurrentOfExpr, NextValueExpr, InferenceElem, TargetEntry, RangeTblRef, JoinExpr, FromExpr, OnConflictExpr, Query, TypeName, ColumnRef, ParamRef, A_Expr, TypeCast, CollateClause, RoleSpec, FuncCall, A_Star, A_Indices, A_Indirection, A_ArrayExpr, ResTarget, MultiAssignRef, SortBy, WindowDef, RangeSubselect, RangeFunction, RangeTableFunc, RangeTableFuncCol, RangeTableSample, ColumnDef, TableLikeClause, IndexElem, DefElem, LockingClause, XmlSerialize, PartitionElem, PartitionSpec, PartitionBoundSpec, PartitionRangeDatum, PartitionCmd, RangeTblEntry, RTEPermissionInfo, RangeTblFunction, TableSampleClause, WithCheckOption, SortGroupClause, GroupingSet, WindowClause, RowMarkClause, WithClause, InferClause, OnConflictClause, CTESearchClause, CTECycleClause, CommonTableExpr, MergeWhenClause, MergeAction, TriggerTransition, JsonOutput, JsonKeyValue, JsonObjectConstructor, JsonArrayConstructor, JsonArrayQueryConstructor, JsonAggConstructor, JsonObjectAgg, JsonArrayAgg, RawStmt, InsertStmt, DeleteStmt, UpdateStmt, MergeStmt, SelectStmt, SetOperationStmt, ReturnStmt, PLAssignStmt, CreateSchemaStmt, AlterTableStmt, ReplicaIdentityStmt, AlterTableCmd, AlterCollationStmt, AlterDomainStmt, GrantStmt, ObjectWithArgs, AccessPriv, GrantRoleStmt, AlterDefaultPrivilegesStmt, CopyStmt, VariableSetStmt, VariableShowStmt, CreateStmt, Constraint, CreateTableSpaceStmt, DropTableSpaceStmt, AlterTableSpaceOptionsStmt, AlterTableMoveAllStmt, CreateExtensionStmt, AlterExtensionStmt, AlterExtensionContentsStmt, CreateFdwStmt, AlterFdwStmt, CreateForeignServerStmt, AlterForeignServerStmt, CreateForeignTableStmt, CreateUserMappingStmt, AlterUserMappingStmt, DropUserMappingStmt, ImportForeignSchemaStmt, CreatePolicyStmt, AlterPolicyStmt, CreateAmStmt, CreateTrigStmt, CreateEventTrigStmt, AlterEventTrigStmt, CreatePLangStmt, CreateRoleStmt, AlterRoleStmt, AlterRoleSetStmt, DropRoleStmt, CreateSeqStmt, AlterSeqStmt, DefineStmt, CreateDomainStmt, CreateOpClassStmt, CreateOpClassItem, CreateOpFamilyStmt, AlterOpFamilyStmt, DropStmt, TruncateStmt, CommentStmt, SecLabelStmt, DeclareCursorStmt, ClosePortalStmt, FetchStmt, IndexStmt, CreateStatsStmt, StatsElem, AlterStatsStmt, CreateFunctionStmt, FunctionParameter, AlterFunctionStmt, DoStmt, InlineCodeBlock, CallStmt, CallContext, RenameStmt, AlterObjectDependsStmt, AlterObjectSchemaStmt, AlterOwnerStmt, AlterOperatorStmt, AlterTypeStmt, RuleStmt, NotifyStmt, ListenStmt, UnlistenStmt, TransactionStmt, CompositeTypeStmt, CreateEnumStmt, CreateRangeStmt, AlterEnumStmt, ViewStmt, LoadStmt, CreatedbStmt, AlterDatabaseStmt, AlterDatabaseRefreshCollStmt, AlterDatabaseSetStmt, DropdbStmt, AlterSystemStmt, ClusterStmt, VacuumStmt, VacuumRelation, ExplainStmt, CreateTableAsStmt, RefreshMatViewStmt, CheckPointStmt, DiscardStmt, LockStmt, ConstraintsSetStmt, ReindexStmt, CreateConversionStmt, CreateCastStmt, CreateTransformStmt, PrepareStmt, ExecuteStmt, DeallocateStmt, DropOwnedStmt, ReassignOwnedStmt, AlterTSDictionaryStmt, AlterTSConfigurationStmt, PublicationTable, PublicationObjSpec, CreatePublicationStmt, AlterPublicationStmt, CreateSubscriptionStmt, AlterSubscriptionStmt, DropSubscriptionStmt, ScanToken } from "./wrapped"; +import { ParseResult, ScanResult, Integer, Float, Boolean, String, BitString, List, OidList, IntList, A_Const, Alias, RangeVar, TableFunc, IntoClause, Var, Param, Aggref, GroupingFunc, WindowFunc, SubscriptingRef, FuncExpr, NamedArgExpr, OpExpr, DistinctExpr, NullIfExpr, ScalarArrayOpExpr, BoolExpr, SubLink, SubPlan, AlternativeSubPlan, FieldSelect, FieldStore, RelabelType, CoerceViaIO, ArrayCoerceExpr, ConvertRowtypeExpr, CollateExpr, CaseExpr, CaseWhen, CaseTestExpr, ArrayExpr, RowExpr, RowCompareExpr, CoalesceExpr, MinMaxExpr, SQLValueFunction, XmlExpr, JsonFormat, JsonReturning, JsonValueExpr, JsonConstructorExpr, JsonIsPredicate, NullTest, BooleanTest, CoerceToDomain, CoerceToDomainValue, SetToDefault, CurrentOfExpr, NextValueExpr, InferenceElem, TargetEntry, RangeTblRef, JoinExpr, FromExpr, OnConflictExpr, Query, TypeName, ColumnRef, ParamRef, A_Expr, TypeCast, CollateClause, RoleSpec, FuncCall, A_Star, A_Indices, A_Indirection, A_ArrayExpr, ResTarget, MultiAssignRef, SortBy, WindowDef, RangeSubselect, RangeFunction, RangeTableFunc, RangeTableFuncCol, RangeTableSample, ColumnDef, TableLikeClause, IndexElem, DefElem, LockingClause, XmlSerialize, PartitionElem, PartitionSpec, PartitionBoundSpec, PartitionRangeDatum, PartitionCmd, RangeTblEntry, RTEPermissionInfo, RangeTblFunction, TableSampleClause, WithCheckOption, SortGroupClause, GroupingSet, WindowClause, RowMarkClause, WithClause, InferClause, OnConflictClause, CTESearchClause, CTECycleClause, CommonTableExpr, MergeWhenClause, MergeAction, TriggerTransition, JsonOutput, JsonKeyValue, JsonObjectConstructor, JsonArrayConstructor, JsonArrayQueryConstructor, JsonAggConstructor, JsonObjectAgg, JsonArrayAgg, RawStmt, InsertStmt, DeleteStmt, UpdateStmt, MergeStmt, SelectStmt, SetOperationStmt, ReturnStmt, PLAssignStmt, CreateSchemaStmt, AlterTableStmt, ReplicaIdentityStmt, AlterTableCmd, AlterCollationStmt, AlterDomainStmt, GrantStmt, ObjectWithArgs, AccessPriv, GrantRoleStmt, AlterDefaultPrivilegesStmt, CopyStmt, VariableSetStmt, VariableShowStmt, CreateStmt, Constraint, CreateTableSpaceStmt, DropTableSpaceStmt, AlterTableSpaceOptionsStmt, AlterTableMoveAllStmt, CreateExtensionStmt, AlterExtensionStmt, AlterExtensionContentsStmt, CreateFdwStmt, AlterFdwStmt, CreateForeignServerStmt, AlterForeignServerStmt, CreateForeignTableStmt, CreateUserMappingStmt, AlterUserMappingStmt, DropUserMappingStmt, ImportForeignSchemaStmt, CreatePolicyStmt, AlterPolicyStmt, CreateAmStmt, CreateTrigStmt, CreateEventTrigStmt, AlterEventTrigStmt, CreatePLangStmt, CreateRoleStmt, AlterRoleStmt, AlterRoleSetStmt, DropRoleStmt, CreateSeqStmt, AlterSeqStmt, DefineStmt, CreateDomainStmt, CreateOpClassStmt, CreateOpClassItem, CreateOpFamilyStmt, AlterOpFamilyStmt, DropStmt, TruncateStmt, CommentStmt, SecLabelStmt, DeclareCursorStmt, ClosePortalStmt, FetchStmt, IndexStmt, CreateStatsStmt, StatsElem, AlterStatsStmt, CreateFunctionStmt, FunctionParameter, AlterFunctionStmt, DoStmt, InlineCodeBlock, CallStmt, CallContext, RenameStmt, AlterObjectDependsStmt, AlterObjectSchemaStmt, AlterOwnerStmt, AlterOperatorStmt, AlterTypeStmt, RuleStmt, NotifyStmt, ListenStmt, UnlistenStmt, TransactionStmt, CompositeTypeStmt, CreateEnumStmt, CreateRangeStmt, AlterEnumStmt, ViewStmt, LoadStmt, CreatedbStmt, AlterDatabaseStmt, AlterDatabaseRefreshCollStmt, AlterDatabaseSetStmt, DropdbStmt, AlterSystemStmt, ClusterStmt, VacuumStmt, VacuumRelation, ExplainStmt, CreateTableAsStmt, RefreshMatViewStmt, CheckPointStmt, DiscardStmt, LockStmt, ConstraintsSetStmt, ReindexStmt, CreateConversionStmt, CreateCastStmt, CreateTransformStmt, PrepareStmt, ExecuteStmt, DeallocateStmt, DropOwnedStmt, ReassignOwnedStmt, AlterTSDictionaryStmt, AlterTSConfigurationStmt, PublicationTable, PublicationObjSpec, CreatePublicationStmt, AlterPublicationStmt, CreateSubscriptionStmt, AlterSubscriptionStmt, DropSubscriptionStmt, ScanToken } from "./types"; export default { - parseResult(_p?: ParseResult): ParseResult { + parseResult(_p?: ParseResult, isNode?: boolean): ParseResult | { + ParseResult: ParseResult; + } { const _j = {} as ParseResult; _o.set(_j, "version", _p?.version); _o.set(_j, "stmts", _p?.stmts); + if (isNode) { + return { + ParseResult: _j + }; + } return _j; }, - scanResult(_p?: ScanResult): ScanResult { + scanResult(_p?: ScanResult, isNode?: boolean): ScanResult | { + ScanResult: ScanResult; + } { const _j = {} as ScanResult; _o.set(_j, "version", _p?.version); _o.set(_j, "tokens", _p?.tokens); + if (isNode) { + return { + ScanResult: _j + }; + } return _j; }, - integer(_p?: Integer): Integer { + integer(_p?: Integer, isNode?: boolean): Integer | { + Integer: Integer; + } { const _j = {} as Integer; _o.set(_j, "ival", _p?.ival); + if (isNode) { + return { + Integer: _j + }; + } return _j; }, - float(_p?: Float): Float { + float(_p?: Float, isNode?: boolean): Float | { + Float: Float; + } { const _j = {} as Float; _o.set(_j, "fval", _p?.fval); + if (isNode) { + return { + Float: _j + }; + } return _j; }, - boolean(_p?: Boolean): Boolean { + boolean(_p?: Boolean, isNode?: boolean): Boolean | { + Boolean: Boolean; + } { const _j = {} as Boolean; _o.set(_j, "boolval", _p?.boolval); + if (isNode) { + return { + Boolean: _j + }; + } return _j; }, - string(_p?: String): String { + string(_p?: String, isNode?: boolean): String | { + String: String; + } { const _j = {} as String; _o.set(_j, "sval", _p?.sval); + if (isNode) { + return { + String: _j + }; + } return _j; }, - bitString(_p?: BitString): BitString { + bitString(_p?: BitString, isNode?: boolean): BitString | { + BitString: BitString; + } { const _j = {} as BitString; _o.set(_j, "bsval", _p?.bsval); + if (isNode) { + return { + BitString: _j + }; + } return _j; }, - list(_p?: List): List { + list(_p?: List, isNode?: boolean): List | { + List: List; + } { const _j = {} as List; _o.set(_j, "items", _p?.items); + if (isNode) { + return { + List: _j + }; + } return _j; }, - oidList(_p?: OidList): OidList { + oidList(_p?: OidList, isNode?: boolean): OidList | { + OidList: OidList; + } { const _j = {} as OidList; _o.set(_j, "items", _p?.items); + if (isNode) { + return { + OidList: _j + }; + } return _j; }, - intList(_p?: IntList): IntList { + intList(_p?: IntList, isNode?: boolean): IntList | { + IntList: IntList; + } { const _j = {} as IntList; _o.set(_j, "items", _p?.items); + if (isNode) { + return { + IntList: _j + }; + } return _j; }, - aConst(_p?: A_Const): A_Const { + aConst(_p?: A_Const, isNode?: boolean): A_Const | { + A_Const: A_Const; + } { const _j = {} as A_Const; _o.set(_j, "ival", _p?.ival); _o.set(_j, "fval", _p?.fval); @@ -67,15 +139,29 @@ export default { _o.set(_j, "bsval", _p?.bsval); _o.set(_j, "isnull", _p?.isnull); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + A_Const: _j + }; + } return _j; }, - alias(_p?: Alias): Alias { + alias(_p?: Alias, isNode?: boolean): Alias | { + Alias: Alias; + } { const _j = {} as Alias; _o.set(_j, "aliasname", _p?.aliasname); _o.set(_j, "colnames", _p?.colnames); + if (isNode) { + return { + Alias: _j + }; + } return _j; }, - rangeVar(_p?: RangeVar): RangeVar { + rangeVar(_p?: RangeVar, isNode?: boolean): RangeVar | { + RangeVar: RangeVar; + } { const _j = {} as RangeVar; _o.set(_j, "catalogname", _p?.catalogname); _o.set(_j, "schemaname", _p?.schemaname); @@ -84,9 +170,16 @@ export default { _o.set(_j, "relpersistence", _p?.relpersistence); _o.set(_j, "alias", _p?.alias); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RangeVar: _j + }; + } return _j; }, - tableFunc(_p?: TableFunc): TableFunc { + tableFunc(_p?: TableFunc, isNode?: boolean): TableFunc | { + TableFunc: TableFunc; + } { const _j = {} as TableFunc; _o.set(_j, "ns_uris", _p?.ns_uris); _o.set(_j, "ns_names", _p?.ns_names); @@ -101,9 +194,16 @@ export default { _o.set(_j, "notnulls", _p?.notnulls); _o.set(_j, "ordinalitycol", _p?.ordinalitycol); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + TableFunc: _j + }; + } return _j; }, - intoClause(_p?: IntoClause): IntoClause { + intoClause(_p?: IntoClause, isNode?: boolean): IntoClause | { + IntoClause: IntoClause; + } { const _j = {} as IntoClause; _o.set(_j, "rel", _p?.rel); _o.set(_j, "colNames", _p?.colNames); @@ -113,9 +213,16 @@ export default { _o.set(_j, "tableSpaceName", _p?.tableSpaceName); _o.set(_j, "viewQuery", _p?.viewQuery); _o.set(_j, "skipData", _p?.skipData); + if (isNode) { + return { + IntoClause: _j + }; + } return _j; }, - var(_p?: Var): Var { + var(_p?: Var, isNode?: boolean): Var | { + Var: Var; + } { const _j = {} as Var; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "varno", _p?.varno); @@ -126,9 +233,16 @@ export default { _o.set(_j, "varnullingrels", _p?.varnullingrels); _o.set(_j, "varlevelsup", _p?.varlevelsup); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + Var: _j + }; + } return _j; }, - param(_p?: Param): Param { + param(_p?: Param, isNode?: boolean): Param | { + Param: Param; + } { const _j = {} as Param; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "paramkind", _p?.paramkind); @@ -137,9 +251,16 @@ export default { _o.set(_j, "paramtypmod", _p?.paramtypmod); _o.set(_j, "paramcollid", _p?.paramcollid); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + Param: _j + }; + } return _j; }, - aggref(_p?: Aggref): Aggref { + aggref(_p?: Aggref, isNode?: boolean): Aggref | { + Aggref: Aggref; + } { const _j = {} as Aggref; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "aggfnoid", _p?.aggfnoid); @@ -160,18 +281,32 @@ export default { _o.set(_j, "aggno", _p?.aggno); _o.set(_j, "aggtransno", _p?.aggtransno); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + Aggref: _j + }; + } return _j; }, - groupingFunc(_p?: GroupingFunc): GroupingFunc { + groupingFunc(_p?: GroupingFunc, isNode?: boolean): GroupingFunc | { + GroupingFunc: GroupingFunc; + } { const _j = {} as GroupingFunc; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "args", _p?.args); _o.set(_j, "refs", _p?.refs); _o.set(_j, "agglevelsup", _p?.agglevelsup); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + GroupingFunc: _j + }; + } return _j; }, - windowFunc(_p?: WindowFunc): WindowFunc { + windowFunc(_p?: WindowFunc, isNode?: boolean): WindowFunc | { + WindowFunc: WindowFunc; + } { const _j = {} as WindowFunc; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "winfnoid", _p?.winfnoid); @@ -184,9 +319,16 @@ export default { _o.set(_j, "winstar", _p?.winstar); _o.set(_j, "winagg", _p?.winagg); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + WindowFunc: _j + }; + } return _j; }, - subscriptingRef(_p?: SubscriptingRef): SubscriptingRef { + subscriptingRef(_p?: SubscriptingRef, isNode?: boolean): SubscriptingRef | { + SubscriptingRef: SubscriptingRef; + } { const _j = {} as SubscriptingRef; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "refcontainertype", _p?.refcontainertype); @@ -198,9 +340,16 @@ export default { _o.set(_j, "reflowerindexpr", _p?.reflowerindexpr); _o.set(_j, "refexpr", _p?.refexpr); _o.set(_j, "refassgnexpr", _p?.refassgnexpr); + if (isNode) { + return { + SubscriptingRef: _j + }; + } return _j; }, - funcExpr(_p?: FuncExpr): FuncExpr { + funcExpr(_p?: FuncExpr, isNode?: boolean): FuncExpr | { + FuncExpr: FuncExpr; + } { const _j = {} as FuncExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "funcid", _p?.funcid); @@ -212,18 +361,32 @@ export default { _o.set(_j, "inputcollid", _p?.inputcollid); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + FuncExpr: _j + }; + } return _j; }, - namedArgExpr(_p?: NamedArgExpr): NamedArgExpr { + namedArgExpr(_p?: NamedArgExpr, isNode?: boolean): NamedArgExpr | { + NamedArgExpr: NamedArgExpr; + } { const _j = {} as NamedArgExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); _o.set(_j, "name", _p?.name); _o.set(_j, "argnumber", _p?.argnumber); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + NamedArgExpr: _j + }; + } return _j; }, - opExpr(_p?: OpExpr): OpExpr { + opExpr(_p?: OpExpr, isNode?: boolean): OpExpr | { + OpExpr: OpExpr; + } { const _j = {} as OpExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "opno", _p?.opno); @@ -233,9 +396,16 @@ export default { _o.set(_j, "inputcollid", _p?.inputcollid); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + OpExpr: _j + }; + } return _j; }, - distinctExpr(_p?: DistinctExpr): DistinctExpr { + distinctExpr(_p?: DistinctExpr, isNode?: boolean): DistinctExpr | { + DistinctExpr: DistinctExpr; + } { const _j = {} as DistinctExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "opno", _p?.opno); @@ -245,9 +415,16 @@ export default { _o.set(_j, "inputcollid", _p?.inputcollid); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + DistinctExpr: _j + }; + } return _j; }, - nullIfExpr(_p?: NullIfExpr): NullIfExpr { + nullIfExpr(_p?: NullIfExpr, isNode?: boolean): NullIfExpr | { + NullIfExpr: NullIfExpr; + } { const _j = {} as NullIfExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "opno", _p?.opno); @@ -257,9 +434,16 @@ export default { _o.set(_j, "inputcollid", _p?.inputcollid); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + NullIfExpr: _j + }; + } return _j; }, - scalarArrayOpExpr(_p?: ScalarArrayOpExpr): ScalarArrayOpExpr { + scalarArrayOpExpr(_p?: ScalarArrayOpExpr, isNode?: boolean): ScalarArrayOpExpr | { + ScalarArrayOpExpr: ScalarArrayOpExpr; + } { const _j = {} as ScalarArrayOpExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "opno", _p?.opno); @@ -267,17 +451,31 @@ export default { _o.set(_j, "inputcollid", _p?.inputcollid); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ScalarArrayOpExpr: _j + }; + } return _j; }, - boolExpr(_p?: BoolExpr): BoolExpr { + boolExpr(_p?: BoolExpr, isNode?: boolean): BoolExpr | { + BoolExpr: BoolExpr; + } { const _j = {} as BoolExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "boolop", _p?.boolop); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + BoolExpr: _j + }; + } return _j; }, - subLink(_p?: SubLink): SubLink { + subLink(_p?: SubLink, isNode?: boolean): SubLink | { + SubLink: SubLink; + } { const _j = {} as SubLink; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "subLinkType", _p?.subLinkType); @@ -286,9 +484,16 @@ export default { _o.set(_j, "operName", _p?.operName); _o.set(_j, "subselect", _p?.subselect); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + SubLink: _j + }; + } return _j; }, - subPlan(_p?: SubPlan): SubPlan { + subPlan(_p?: SubPlan, isNode?: boolean): SubPlan | { + SubPlan: SubPlan; + } { const _j = {} as SubPlan; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "subLinkType", _p?.subLinkType); @@ -307,15 +512,29 @@ export default { _o.set(_j, "args", _p?.args); _o.set(_j, "startup_cost", _p?.startup_cost); _o.set(_j, "per_call_cost", _p?.per_call_cost); + if (isNode) { + return { + SubPlan: _j + }; + } return _j; }, - alternativeSubPlan(_p?: AlternativeSubPlan): AlternativeSubPlan { + alternativeSubPlan(_p?: AlternativeSubPlan, isNode?: boolean): AlternativeSubPlan | { + AlternativeSubPlan: AlternativeSubPlan; + } { const _j = {} as AlternativeSubPlan; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "subplans", _p?.subplans); + if (isNode) { + return { + AlternativeSubPlan: _j + }; + } return _j; }, - fieldSelect(_p?: FieldSelect): FieldSelect { + fieldSelect(_p?: FieldSelect, isNode?: boolean): FieldSelect | { + FieldSelect: FieldSelect; + } { const _j = {} as FieldSelect; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); @@ -323,18 +542,32 @@ export default { _o.set(_j, "resulttype", _p?.resulttype); _o.set(_j, "resulttypmod", _p?.resulttypmod); _o.set(_j, "resultcollid", _p?.resultcollid); + if (isNode) { + return { + FieldSelect: _j + }; + } return _j; }, - fieldStore(_p?: FieldStore): FieldStore { + fieldStore(_p?: FieldStore, isNode?: boolean): FieldStore | { + FieldStore: FieldStore; + } { const _j = {} as FieldStore; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); _o.set(_j, "newvals", _p?.newvals); _o.set(_j, "fieldnums", _p?.fieldnums); _o.set(_j, "resulttype", _p?.resulttype); + if (isNode) { + return { + FieldStore: _j + }; + } return _j; }, - relabelType(_p?: RelabelType): RelabelType { + relabelType(_p?: RelabelType, isNode?: boolean): RelabelType | { + RelabelType: RelabelType; + } { const _j = {} as RelabelType; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); @@ -343,9 +576,16 @@ export default { _o.set(_j, "resultcollid", _p?.resultcollid); _o.set(_j, "relabelformat", _p?.relabelformat); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RelabelType: _j + }; + } return _j; }, - coerceViaio(_p?: CoerceViaIO): CoerceViaIO { + coerceViaio(_p?: CoerceViaIO, isNode?: boolean): CoerceViaIO | { + CoerceViaIO: CoerceViaIO; + } { const _j = {} as CoerceViaIO; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); @@ -353,9 +593,16 @@ export default { _o.set(_j, "resultcollid", _p?.resultcollid); _o.set(_j, "coerceformat", _p?.coerceformat); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CoerceViaIO: _j + }; + } return _j; }, - arrayCoerceExpr(_p?: ArrayCoerceExpr): ArrayCoerceExpr { + arrayCoerceExpr(_p?: ArrayCoerceExpr, isNode?: boolean): ArrayCoerceExpr | { + ArrayCoerceExpr: ArrayCoerceExpr; + } { const _j = {} as ArrayCoerceExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); @@ -365,26 +612,47 @@ export default { _o.set(_j, "resultcollid", _p?.resultcollid); _o.set(_j, "coerceformat", _p?.coerceformat); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ArrayCoerceExpr: _j + }; + } return _j; }, - convertRowtypeExpr(_p?: ConvertRowtypeExpr): ConvertRowtypeExpr { + convertRowtypeExpr(_p?: ConvertRowtypeExpr, isNode?: boolean): ConvertRowtypeExpr | { + ConvertRowtypeExpr: ConvertRowtypeExpr; + } { const _j = {} as ConvertRowtypeExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); _o.set(_j, "resulttype", _p?.resulttype); _o.set(_j, "convertformat", _p?.convertformat); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ConvertRowtypeExpr: _j + }; + } return _j; }, - collateExpr(_p?: CollateExpr): CollateExpr { + collateExpr(_p?: CollateExpr, isNode?: boolean): CollateExpr | { + CollateExpr: CollateExpr; + } { const _j = {} as CollateExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); _o.set(_j, "collOid", _p?.collOid); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CollateExpr: _j + }; + } return _j; }, - caseExpr(_p?: CaseExpr): CaseExpr { + caseExpr(_p?: CaseExpr, isNode?: boolean): CaseExpr | { + CaseExpr: CaseExpr; + } { const _j = {} as CaseExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "casetype", _p?.casetype); @@ -393,25 +661,46 @@ export default { _o.set(_j, "args", _p?.args); _o.set(_j, "defresult", _p?.defresult); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CaseExpr: _j + }; + } return _j; }, - caseWhen(_p?: CaseWhen): CaseWhen { + caseWhen(_p?: CaseWhen, isNode?: boolean): CaseWhen | { + CaseWhen: CaseWhen; + } { const _j = {} as CaseWhen; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "expr", _p?.expr); _o.set(_j, "result", _p?.result); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CaseWhen: _j + }; + } return _j; }, - caseTestExpr(_p?: CaseTestExpr): CaseTestExpr { + caseTestExpr(_p?: CaseTestExpr, isNode?: boolean): CaseTestExpr | { + CaseTestExpr: CaseTestExpr; + } { const _j = {} as CaseTestExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "typeId", _p?.typeId); _o.set(_j, "typeMod", _p?.typeMod); _o.set(_j, "collation", _p?.collation); + if (isNode) { + return { + CaseTestExpr: _j + }; + } return _j; }, - arrayExpr(_p?: ArrayExpr): ArrayExpr { + arrayExpr(_p?: ArrayExpr, isNode?: boolean): ArrayExpr | { + ArrayExpr: ArrayExpr; + } { const _j = {} as ArrayExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "array_typeid", _p?.array_typeid); @@ -420,9 +709,16 @@ export default { _o.set(_j, "elements", _p?.elements); _o.set(_j, "multidims", _p?.multidims); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ArrayExpr: _j + }; + } return _j; }, - rowExpr(_p?: RowExpr): RowExpr { + rowExpr(_p?: RowExpr, isNode?: boolean): RowExpr | { + RowExpr: RowExpr; + } { const _j = {} as RowExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "args", _p?.args); @@ -430,9 +726,16 @@ export default { _o.set(_j, "row_format", _p?.row_format); _o.set(_j, "colnames", _p?.colnames); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RowExpr: _j + }; + } return _j; }, - rowCompareExpr(_p?: RowCompareExpr): RowCompareExpr { + rowCompareExpr(_p?: RowCompareExpr, isNode?: boolean): RowCompareExpr | { + RowCompareExpr: RowCompareExpr; + } { const _j = {} as RowCompareExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "rctype", _p?.rctype); @@ -441,18 +744,32 @@ export default { _o.set(_j, "inputcollids", _p?.inputcollids); _o.set(_j, "largs", _p?.largs); _o.set(_j, "rargs", _p?.rargs); + if (isNode) { + return { + RowCompareExpr: _j + }; + } return _j; }, - coalesceExpr(_p?: CoalesceExpr): CoalesceExpr { + coalesceExpr(_p?: CoalesceExpr, isNode?: boolean): CoalesceExpr | { + CoalesceExpr: CoalesceExpr; + } { const _j = {} as CoalesceExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "coalescetype", _p?.coalescetype); _o.set(_j, "coalescecollid", _p?.coalescecollid); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CoalesceExpr: _j + }; + } return _j; }, - minMaxExpr(_p?: MinMaxExpr): MinMaxExpr { + minMaxExpr(_p?: MinMaxExpr, isNode?: boolean): MinMaxExpr | { + MinMaxExpr: MinMaxExpr; + } { const _j = {} as MinMaxExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "minmaxtype", _p?.minmaxtype); @@ -461,18 +778,32 @@ export default { _o.set(_j, "op", _p?.op); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + MinMaxExpr: _j + }; + } return _j; }, - sqlValueFunction(_p?: SQLValueFunction): SQLValueFunction { + sqlValueFunction(_p?: SQLValueFunction, isNode?: boolean): SQLValueFunction | { + SQLValueFunction: SQLValueFunction; + } { const _j = {} as SQLValueFunction; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "op", _p?.op); _o.set(_j, "type", _p?.type); _o.set(_j, "typmod", _p?.typmod); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + SQLValueFunction: _j + }; + } return _j; }, - xmlExpr(_p?: XmlExpr): XmlExpr { + xmlExpr(_p?: XmlExpr, isNode?: boolean): XmlExpr | { + XmlExpr: XmlExpr; + } { const _j = {} as XmlExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "op", _p?.op); @@ -485,30 +816,58 @@ export default { _o.set(_j, "type", _p?.type); _o.set(_j, "typmod", _p?.typmod); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + XmlExpr: _j + }; + } return _j; }, - jsonFormat(_p?: JsonFormat): JsonFormat { + jsonFormat(_p?: JsonFormat, isNode?: boolean): JsonFormat | { + JsonFormat: JsonFormat; + } { const _j = {} as JsonFormat; _o.set(_j, "format_type", _p?.format_type); _o.set(_j, "encoding", _p?.encoding); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonFormat: _j + }; + } return _j; }, - jsonReturning(_p?: JsonReturning): JsonReturning { + jsonReturning(_p?: JsonReturning, isNode?: boolean): JsonReturning | { + JsonReturning: JsonReturning; + } { const _j = {} as JsonReturning; _o.set(_j, "format", _p?.format); _o.set(_j, "typid", _p?.typid); _o.set(_j, "typmod", _p?.typmod); + if (isNode) { + return { + JsonReturning: _j + }; + } return _j; }, - jsonValueExpr(_p?: JsonValueExpr): JsonValueExpr { + jsonValueExpr(_p?: JsonValueExpr, isNode?: boolean): JsonValueExpr | { + JsonValueExpr: JsonValueExpr; + } { const _j = {} as JsonValueExpr; _o.set(_j, "raw_expr", _p?.raw_expr); _o.set(_j, "formatted_expr", _p?.formatted_expr); _o.set(_j, "format", _p?.format); + if (isNode) { + return { + JsonValueExpr: _j + }; + } return _j; }, - jsonConstructorExpr(_p?: JsonConstructorExpr): JsonConstructorExpr { + jsonConstructorExpr(_p?: JsonConstructorExpr, isNode?: boolean): JsonConstructorExpr | { + JsonConstructorExpr: JsonConstructorExpr; + } { const _j = {} as JsonConstructorExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "type", _p?.type); @@ -519,35 +878,63 @@ export default { _o.set(_j, "absent_on_null", _p?.absent_on_null); _o.set(_j, "unique", _p?.unique); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonConstructorExpr: _j + }; + } return _j; }, - jsonIsPredicate(_p?: JsonIsPredicate): JsonIsPredicate { + jsonIsPredicate(_p?: JsonIsPredicate, isNode?: boolean): JsonIsPredicate | { + JsonIsPredicate: JsonIsPredicate; + } { const _j = {} as JsonIsPredicate; _o.set(_j, "expr", _p?.expr); _o.set(_j, "format", _p?.format); _o.set(_j, "item_type", _p?.item_type); _o.set(_j, "unique_keys", _p?.unique_keys); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonIsPredicate: _j + }; + } return _j; }, - nullTest(_p?: NullTest): NullTest { + nullTest(_p?: NullTest, isNode?: boolean): NullTest | { + NullTest: NullTest; + } { const _j = {} as NullTest; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); _o.set(_j, "nulltesttype", _p?.nulltesttype); _o.set(_j, "argisrow", _p?.argisrow); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + NullTest: _j + }; + } return _j; }, - booleanTest(_p?: BooleanTest): BooleanTest { + booleanTest(_p?: BooleanTest, isNode?: boolean): BooleanTest | { + BooleanTest: BooleanTest; + } { const _j = {} as BooleanTest; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); _o.set(_j, "booltesttype", _p?.booltesttype); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + BooleanTest: _j + }; + } return _j; }, - coerceToDomain(_p?: CoerceToDomain): CoerceToDomain { + coerceToDomain(_p?: CoerceToDomain, isNode?: boolean): CoerceToDomain | { + CoerceToDomain: CoerceToDomain; + } { const _j = {} as CoerceToDomain; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); @@ -556,50 +943,92 @@ export default { _o.set(_j, "resultcollid", _p?.resultcollid); _o.set(_j, "coercionformat", _p?.coercionformat); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CoerceToDomain: _j + }; + } return _j; }, - coerceToDomainValue(_p?: CoerceToDomainValue): CoerceToDomainValue { + coerceToDomainValue(_p?: CoerceToDomainValue, isNode?: boolean): CoerceToDomainValue | { + CoerceToDomainValue: CoerceToDomainValue; + } { const _j = {} as CoerceToDomainValue; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "typeId", _p?.typeId); _o.set(_j, "typeMod", _p?.typeMod); _o.set(_j, "collation", _p?.collation); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CoerceToDomainValue: _j + }; + } return _j; }, - setToDefault(_p?: SetToDefault): SetToDefault { + setToDefault(_p?: SetToDefault, isNode?: boolean): SetToDefault | { + SetToDefault: SetToDefault; + } { const _j = {} as SetToDefault; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "typeId", _p?.typeId); _o.set(_j, "typeMod", _p?.typeMod); _o.set(_j, "collation", _p?.collation); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + SetToDefault: _j + }; + } return _j; }, - currentOfExpr(_p?: CurrentOfExpr): CurrentOfExpr { + currentOfExpr(_p?: CurrentOfExpr, isNode?: boolean): CurrentOfExpr | { + CurrentOfExpr: CurrentOfExpr; + } { const _j = {} as CurrentOfExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "cvarno", _p?.cvarno); _o.set(_j, "cursor_name", _p?.cursor_name); _o.set(_j, "cursor_param", _p?.cursor_param); + if (isNode) { + return { + CurrentOfExpr: _j + }; + } return _j; }, - nextValueExpr(_p?: NextValueExpr): NextValueExpr { + nextValueExpr(_p?: NextValueExpr, isNode?: boolean): NextValueExpr | { + NextValueExpr: NextValueExpr; + } { const _j = {} as NextValueExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "seqid", _p?.seqid); _o.set(_j, "typeId", _p?.typeId); + if (isNode) { + return { + NextValueExpr: _j + }; + } return _j; }, - inferenceElem(_p?: InferenceElem): InferenceElem { + inferenceElem(_p?: InferenceElem, isNode?: boolean): InferenceElem | { + InferenceElem: InferenceElem; + } { const _j = {} as InferenceElem; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "expr", _p?.expr); _o.set(_j, "infercollid", _p?.infercollid); _o.set(_j, "inferopclass", _p?.inferopclass); + if (isNode) { + return { + InferenceElem: _j + }; + } return _j; }, - targetEntry(_p?: TargetEntry): TargetEntry { + targetEntry(_p?: TargetEntry, isNode?: boolean): TargetEntry | { + TargetEntry: TargetEntry; + } { const _j = {} as TargetEntry; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "expr", _p?.expr); @@ -609,14 +1038,28 @@ export default { _o.set(_j, "resorigtbl", _p?.resorigtbl); _o.set(_j, "resorigcol", _p?.resorigcol); _o.set(_j, "resjunk", _p?.resjunk); + if (isNode) { + return { + TargetEntry: _j + }; + } return _j; }, - rangeTblRef(_p?: RangeTblRef): RangeTblRef { + rangeTblRef(_p?: RangeTblRef, isNode?: boolean): RangeTblRef | { + RangeTblRef: RangeTblRef; + } { const _j = {} as RangeTblRef; _o.set(_j, "rtindex", _p?.rtindex); + if (isNode) { + return { + RangeTblRef: _j + }; + } return _j; }, - joinExpr(_p?: JoinExpr): JoinExpr { + joinExpr(_p?: JoinExpr, isNode?: boolean): JoinExpr | { + JoinExpr: JoinExpr; + } { const _j = {} as JoinExpr; _o.set(_j, "jointype", _p?.jointype); _o.set(_j, "isNatural", _p?.isNatural); @@ -627,15 +1070,29 @@ export default { _o.set(_j, "quals", _p?.quals); _o.set(_j, "alias", _p?.alias); _o.set(_j, "rtindex", _p?.rtindex); + if (isNode) { + return { + JoinExpr: _j + }; + } return _j; }, - fromExpr(_p?: FromExpr): FromExpr { + fromExpr(_p?: FromExpr, isNode?: boolean): FromExpr | { + FromExpr: FromExpr; + } { const _j = {} as FromExpr; _o.set(_j, "fromlist", _p?.fromlist); _o.set(_j, "quals", _p?.quals); + if (isNode) { + return { + FromExpr: _j + }; + } return _j; }, - onConflictExpr(_p?: OnConflictExpr): OnConflictExpr { + onConflictExpr(_p?: OnConflictExpr, isNode?: boolean): OnConflictExpr | { + OnConflictExpr: OnConflictExpr; + } { const _j = {} as OnConflictExpr; _o.set(_j, "action", _p?.action); _o.set(_j, "arbiterElems", _p?.arbiterElems); @@ -645,9 +1102,16 @@ export default { _o.set(_j, "onConflictWhere", _p?.onConflictWhere); _o.set(_j, "exclRelIndex", _p?.exclRelIndex); _o.set(_j, "exclRelTlist", _p?.exclRelTlist); + if (isNode) { + return { + OnConflictExpr: _j + }; + } return _j; }, - query(_p?: Query): Query { + query(_p?: Query, isNode?: boolean): Query | { + Query: Query; + } { const _j = {} as Query; _o.set(_j, "commandType", _p?.commandType); _o.set(_j, "querySource", _p?.querySource); @@ -690,9 +1154,16 @@ export default { _o.set(_j, "withCheckOptions", _p?.withCheckOptions); _o.set(_j, "stmt_location", _p?.stmt_location); _o.set(_j, "stmt_len", _p?.stmt_len); + if (isNode) { + return { + Query: _j + }; + } return _j; }, - typeName(_p?: TypeName): TypeName { + typeName(_p?: TypeName, isNode?: boolean): TypeName | { + TypeName: TypeName; + } { const _j = {} as TypeName; _o.set(_j, "names", _p?.names); _o.set(_j, "typeOid", _p?.typeOid); @@ -702,51 +1173,100 @@ export default { _o.set(_j, "typemod", _p?.typemod); _o.set(_j, "arrayBounds", _p?.arrayBounds); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + TypeName: _j + }; + } return _j; }, - columnRef(_p?: ColumnRef): ColumnRef { + columnRef(_p?: ColumnRef, isNode?: boolean): ColumnRef | { + ColumnRef: ColumnRef; + } { const _j = {} as ColumnRef; _o.set(_j, "fields", _p?.fields); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ColumnRef: _j + }; + } return _j; }, - paramRef(_p?: ParamRef): ParamRef { + paramRef(_p?: ParamRef, isNode?: boolean): ParamRef | { + ParamRef: ParamRef; + } { const _j = {} as ParamRef; _o.set(_j, "number", _p?.number); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ParamRef: _j + }; + } return _j; }, - aExpr(_p?: A_Expr): A_Expr { + aExpr(_p?: A_Expr, isNode?: boolean): A_Expr | { + A_Expr: A_Expr; + } { const _j = {} as A_Expr; _o.set(_j, "kind", _p?.kind); _o.set(_j, "name", _p?.name); _o.set(_j, "lexpr", _p?.lexpr); _o.set(_j, "rexpr", _p?.rexpr); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + A_Expr: _j + }; + } return _j; }, - typeCast(_p?: TypeCast): TypeCast { + typeCast(_p?: TypeCast, isNode?: boolean): TypeCast | { + TypeCast: TypeCast; + } { const _j = {} as TypeCast; _o.set(_j, "arg", _p?.arg); _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + TypeCast: _j + }; + } return _j; }, - collateClause(_p?: CollateClause): CollateClause { + collateClause(_p?: CollateClause, isNode?: boolean): CollateClause | { + CollateClause: CollateClause; + } { const _j = {} as CollateClause; _o.set(_j, "arg", _p?.arg); _o.set(_j, "collname", _p?.collname); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CollateClause: _j + }; + } return _j; }, - roleSpec(_p?: RoleSpec): RoleSpec { + roleSpec(_p?: RoleSpec, isNode?: boolean): RoleSpec | { + RoleSpec: RoleSpec; + } { const _j = {} as RoleSpec; _o.set(_j, "roletype", _p?.roletype); _o.set(_j, "rolename", _p?.rolename); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RoleSpec: _j + }; + } return _j; }, - funcCall(_p?: FuncCall): FuncCall { + funcCall(_p?: FuncCall, isNode?: boolean): FuncCall | { + FuncCall: FuncCall; + } { const _j = {} as FuncCall; _o.set(_j, "funcname", _p?.funcname); _o.set(_j, "args", _p?.args); @@ -759,56 +1279,112 @@ export default { _o.set(_j, "func_variadic", _p?.func_variadic); _o.set(_j, "funcformat", _p?.funcformat); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + FuncCall: _j + }; + } return _j; }, - aStar(_p?: A_Star): A_Star { + aStar(_p?: A_Star, isNode?: boolean): A_Star | { + A_Star: A_Star; + } { const _j = {} as A_Star; + if (isNode) { + return { + A_Star: _j + }; + } return _j; }, - aIndices(_p?: A_Indices): A_Indices { + aIndices(_p?: A_Indices, isNode?: boolean): A_Indices | { + A_Indices: A_Indices; + } { const _j = {} as A_Indices; _o.set(_j, "is_slice", _p?.is_slice); _o.set(_j, "lidx", _p?.lidx); _o.set(_j, "uidx", _p?.uidx); + if (isNode) { + return { + A_Indices: _j + }; + } return _j; }, - aIndirection(_p?: A_Indirection): A_Indirection { + aIndirection(_p?: A_Indirection, isNode?: boolean): A_Indirection | { + A_Indirection: A_Indirection; + } { const _j = {} as A_Indirection; _o.set(_j, "arg", _p?.arg); _o.set(_j, "indirection", _p?.indirection); + if (isNode) { + return { + A_Indirection: _j + }; + } return _j; }, - aArrayExpr(_p?: A_ArrayExpr): A_ArrayExpr { + aArrayExpr(_p?: A_ArrayExpr, isNode?: boolean): A_ArrayExpr | { + A_ArrayExpr: A_ArrayExpr; + } { const _j = {} as A_ArrayExpr; _o.set(_j, "elements", _p?.elements); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + A_ArrayExpr: _j + }; + } return _j; }, - resTarget(_p?: ResTarget): ResTarget { + resTarget(_p?: ResTarget, isNode?: boolean): ResTarget | { + ResTarget: ResTarget; + } { const _j = {} as ResTarget; _o.set(_j, "name", _p?.name); _o.set(_j, "indirection", _p?.indirection); _o.set(_j, "val", _p?.val); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ResTarget: _j + }; + } return _j; }, - multiAssignRef(_p?: MultiAssignRef): MultiAssignRef { + multiAssignRef(_p?: MultiAssignRef, isNode?: boolean): MultiAssignRef | { + MultiAssignRef: MultiAssignRef; + } { const _j = {} as MultiAssignRef; _o.set(_j, "source", _p?.source); _o.set(_j, "colno", _p?.colno); _o.set(_j, "ncolumns", _p?.ncolumns); + if (isNode) { + return { + MultiAssignRef: _j + }; + } return _j; }, - sortBy(_p?: SortBy): SortBy { + sortBy(_p?: SortBy, isNode?: boolean): SortBy | { + SortBy: SortBy; + } { const _j = {} as SortBy; _o.set(_j, "node", _p?.node); _o.set(_j, "sortby_dir", _p?.sortby_dir); _o.set(_j, "sortby_nulls", _p?.sortby_nulls); _o.set(_j, "useOp", _p?.useOp); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + SortBy: _j + }; + } return _j; }, - windowDef(_p?: WindowDef): WindowDef { + windowDef(_p?: WindowDef, isNode?: boolean): WindowDef | { + WindowDef: WindowDef; + } { const _j = {} as WindowDef; _o.set(_j, "name", _p?.name); _o.set(_j, "refname", _p?.refname); @@ -818,16 +1394,30 @@ export default { _o.set(_j, "startOffset", _p?.startOffset); _o.set(_j, "endOffset", _p?.endOffset); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + WindowDef: _j + }; + } return _j; }, - rangeSubselect(_p?: RangeSubselect): RangeSubselect { + rangeSubselect(_p?: RangeSubselect, isNode?: boolean): RangeSubselect | { + RangeSubselect: RangeSubselect; + } { const _j = {} as RangeSubselect; _o.set(_j, "lateral", _p?.lateral); _o.set(_j, "subquery", _p?.subquery); _o.set(_j, "alias", _p?.alias); + if (isNode) { + return { + RangeSubselect: _j + }; + } return _j; }, - rangeFunction(_p?: RangeFunction): RangeFunction { + rangeFunction(_p?: RangeFunction, isNode?: boolean): RangeFunction | { + RangeFunction: RangeFunction; + } { const _j = {} as RangeFunction; _o.set(_j, "lateral", _p?.lateral); _o.set(_j, "ordinality", _p?.ordinality); @@ -835,9 +1425,16 @@ export default { _o.set(_j, "functions", _p?.functions); _o.set(_j, "alias", _p?.alias); _o.set(_j, "coldeflist", _p?.coldeflist); + if (isNode) { + return { + RangeFunction: _j + }; + } return _j; }, - rangeTableFunc(_p?: RangeTableFunc): RangeTableFunc { + rangeTableFunc(_p?: RangeTableFunc, isNode?: boolean): RangeTableFunc | { + RangeTableFunc: RangeTableFunc; + } { const _j = {} as RangeTableFunc; _o.set(_j, "lateral", _p?.lateral); _o.set(_j, "docexpr", _p?.docexpr); @@ -846,9 +1443,16 @@ export default { _o.set(_j, "columns", _p?.columns); _o.set(_j, "alias", _p?.alias); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RangeTableFunc: _j + }; + } return _j; }, - rangeTableFuncCol(_p?: RangeTableFuncCol): RangeTableFuncCol { + rangeTableFuncCol(_p?: RangeTableFuncCol, isNode?: boolean): RangeTableFuncCol | { + RangeTableFuncCol: RangeTableFuncCol; + } { const _j = {} as RangeTableFuncCol; _o.set(_j, "colname", _p?.colname); _o.set(_j, "typeName", _p?.typeName); @@ -857,18 +1461,32 @@ export default { _o.set(_j, "colexpr", _p?.colexpr); _o.set(_j, "coldefexpr", _p?.coldefexpr); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RangeTableFuncCol: _j + }; + } return _j; }, - rangeTableSample(_p?: RangeTableSample): RangeTableSample { + rangeTableSample(_p?: RangeTableSample, isNode?: boolean): RangeTableSample | { + RangeTableSample: RangeTableSample; + } { const _j = {} as RangeTableSample; _o.set(_j, "relation", _p?.relation); _o.set(_j, "method", _p?.method); _o.set(_j, "args", _p?.args); _o.set(_j, "repeatable", _p?.repeatable); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RangeTableSample: _j + }; + } return _j; }, - columnDef(_p?: ColumnDef): ColumnDef { + columnDef(_p?: ColumnDef, isNode?: boolean): ColumnDef | { + ColumnDef: ColumnDef; + } { const _j = {} as ColumnDef; _o.set(_j, "colname", _p?.colname); _o.set(_j, "typeName", _p?.typeName); @@ -889,16 +1507,30 @@ export default { _o.set(_j, "constraints", _p?.constraints); _o.set(_j, "fdwoptions", _p?.fdwoptions); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ColumnDef: _j + }; + } return _j; }, - tableLikeClause(_p?: TableLikeClause): TableLikeClause { + tableLikeClause(_p?: TableLikeClause, isNode?: boolean): TableLikeClause | { + TableLikeClause: TableLikeClause; + } { const _j = {} as TableLikeClause; _o.set(_j, "relation", _p?.relation); _o.set(_j, "options", _p?.options); _o.set(_j, "relationOid", _p?.relationOid); + if (isNode) { + return { + TableLikeClause: _j + }; + } return _j; }, - indexElem(_p?: IndexElem): IndexElem { + indexElem(_p?: IndexElem, isNode?: boolean): IndexElem | { + IndexElem: IndexElem; + } { const _j = {} as IndexElem; _o.set(_j, "name", _p?.name); _o.set(_j, "expr", _p?.expr); @@ -908,50 +1540,92 @@ export default { _o.set(_j, "opclassopts", _p?.opclassopts); _o.set(_j, "ordering", _p?.ordering); _o.set(_j, "nulls_ordering", _p?.nulls_ordering); + if (isNode) { + return { + IndexElem: _j + }; + } return _j; }, - defElem(_p?: DefElem): DefElem { + defElem(_p?: DefElem, isNode?: boolean): DefElem | { + DefElem: DefElem; + } { const _j = {} as DefElem; _o.set(_j, "defnamespace", _p?.defnamespace); _o.set(_j, "defname", _p?.defname); _o.set(_j, "arg", _p?.arg); _o.set(_j, "defaction", _p?.defaction); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + DefElem: _j + }; + } return _j; }, - lockingClause(_p?: LockingClause): LockingClause { + lockingClause(_p?: LockingClause, isNode?: boolean): LockingClause | { + LockingClause: LockingClause; + } { const _j = {} as LockingClause; _o.set(_j, "lockedRels", _p?.lockedRels); _o.set(_j, "strength", _p?.strength); _o.set(_j, "waitPolicy", _p?.waitPolicy); + if (isNode) { + return { + LockingClause: _j + }; + } return _j; }, - xmlSerialize(_p?: XmlSerialize): XmlSerialize { + xmlSerialize(_p?: XmlSerialize, isNode?: boolean): XmlSerialize | { + XmlSerialize: XmlSerialize; + } { const _j = {} as XmlSerialize; _o.set(_j, "xmloption", _p?.xmloption); _o.set(_j, "expr", _p?.expr); _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "indent", _p?.indent); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + XmlSerialize: _j + }; + } return _j; }, - partitionElem(_p?: PartitionElem): PartitionElem { + partitionElem(_p?: PartitionElem, isNode?: boolean): PartitionElem | { + PartitionElem: PartitionElem; + } { const _j = {} as PartitionElem; _o.set(_j, "name", _p?.name); _o.set(_j, "expr", _p?.expr); _o.set(_j, "collation", _p?.collation); _o.set(_j, "opclass", _p?.opclass); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + PartitionElem: _j + }; + } return _j; }, - partitionSpec(_p?: PartitionSpec): PartitionSpec { + partitionSpec(_p?: PartitionSpec, isNode?: boolean): PartitionSpec | { + PartitionSpec: PartitionSpec; + } { const _j = {} as PartitionSpec; _o.set(_j, "strategy", _p?.strategy); _o.set(_j, "partParams", _p?.partParams); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + PartitionSpec: _j + }; + } return _j; }, - partitionBoundSpec(_p?: PartitionBoundSpec): PartitionBoundSpec { + partitionBoundSpec(_p?: PartitionBoundSpec, isNode?: boolean): PartitionBoundSpec | { + PartitionBoundSpec: PartitionBoundSpec; + } { const _j = {} as PartitionBoundSpec; _o.set(_j, "strategy", _p?.strategy); _o.set(_j, "is_default", _p?.is_default); @@ -961,23 +1635,44 @@ export default { _o.set(_j, "lowerdatums", _p?.lowerdatums); _o.set(_j, "upperdatums", _p?.upperdatums); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + PartitionBoundSpec: _j + }; + } return _j; }, - partitionRangeDatum(_p?: PartitionRangeDatum): PartitionRangeDatum { + partitionRangeDatum(_p?: PartitionRangeDatum, isNode?: boolean): PartitionRangeDatum | { + PartitionRangeDatum: PartitionRangeDatum; + } { const _j = {} as PartitionRangeDatum; _o.set(_j, "kind", _p?.kind); _o.set(_j, "value", _p?.value); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + PartitionRangeDatum: _j + }; + } return _j; }, - partitionCmd(_p?: PartitionCmd): PartitionCmd { + partitionCmd(_p?: PartitionCmd, isNode?: boolean): PartitionCmd | { + PartitionCmd: PartitionCmd; + } { const _j = {} as PartitionCmd; _o.set(_j, "name", _p?.name); _o.set(_j, "bound", _p?.bound); _o.set(_j, "concurrent", _p?.concurrent); + if (isNode) { + return { + PartitionCmd: _j + }; + } return _j; }, - rangeTblEntry(_p?: RangeTblEntry): RangeTblEntry { + rangeTblEntry(_p?: RangeTblEntry, isNode?: boolean): RangeTblEntry | { + RangeTblEntry: RangeTblEntry; + } { const _j = {} as RangeTblEntry; _o.set(_j, "rtekind", _p?.rtekind); _o.set(_j, "relid", _p?.relid); @@ -1011,9 +1706,16 @@ export default { _o.set(_j, "inh", _p?.inh); _o.set(_j, "inFromCl", _p?.inFromCl); _o.set(_j, "securityQuals", _p?.securityQuals); + if (isNode) { + return { + RangeTblEntry: _j + }; + } return _j; }, - rtePermissionInfo(_p?: RTEPermissionInfo): RTEPermissionInfo { + rtePermissionInfo(_p?: RTEPermissionInfo, isNode?: boolean): RTEPermissionInfo | { + RTEPermissionInfo: RTEPermissionInfo; + } { const _j = {} as RTEPermissionInfo; _o.set(_j, "relid", _p?.relid); _o.set(_j, "inh", _p?.inh); @@ -1022,9 +1724,16 @@ export default { _o.set(_j, "selectedCols", _p?.selectedCols); _o.set(_j, "insertedCols", _p?.insertedCols); _o.set(_j, "updatedCols", _p?.updatedCols); + if (isNode) { + return { + RTEPermissionInfo: _j + }; + } return _j; }, - rangeTblFunction(_p?: RangeTblFunction): RangeTblFunction { + rangeTblFunction(_p?: RangeTblFunction, isNode?: boolean): RangeTblFunction | { + RangeTblFunction: RangeTblFunction; + } { const _j = {} as RangeTblFunction; _o.set(_j, "funcexpr", _p?.funcexpr); _o.set(_j, "funccolcount", _p?.funccolcount); @@ -1033,41 +1742,76 @@ export default { _o.set(_j, "funccoltypmods", _p?.funccoltypmods); _o.set(_j, "funccolcollations", _p?.funccolcollations); _o.set(_j, "funcparams", _p?.funcparams); + if (isNode) { + return { + RangeTblFunction: _j + }; + } return _j; }, - tableSampleClause(_p?: TableSampleClause): TableSampleClause { + tableSampleClause(_p?: TableSampleClause, isNode?: boolean): TableSampleClause | { + TableSampleClause: TableSampleClause; + } { const _j = {} as TableSampleClause; _o.set(_j, "tsmhandler", _p?.tsmhandler); _o.set(_j, "args", _p?.args); _o.set(_j, "repeatable", _p?.repeatable); + if (isNode) { + return { + TableSampleClause: _j + }; + } return _j; }, - withCheckOption(_p?: WithCheckOption): WithCheckOption { + withCheckOption(_p?: WithCheckOption, isNode?: boolean): WithCheckOption | { + WithCheckOption: WithCheckOption; + } { const _j = {} as WithCheckOption; _o.set(_j, "kind", _p?.kind); _o.set(_j, "relname", _p?.relname); _o.set(_j, "polname", _p?.polname); _o.set(_j, "qual", _p?.qual); _o.set(_j, "cascaded", _p?.cascaded); + if (isNode) { + return { + WithCheckOption: _j + }; + } return _j; }, - sortGroupClause(_p?: SortGroupClause): SortGroupClause { + sortGroupClause(_p?: SortGroupClause, isNode?: boolean): SortGroupClause | { + SortGroupClause: SortGroupClause; + } { const _j = {} as SortGroupClause; _o.set(_j, "tleSortGroupRef", _p?.tleSortGroupRef); _o.set(_j, "eqop", _p?.eqop); _o.set(_j, "sortop", _p?.sortop); _o.set(_j, "nulls_first", _p?.nulls_first); _o.set(_j, "hashable", _p?.hashable); + if (isNode) { + return { + SortGroupClause: _j + }; + } return _j; }, - groupingSet(_p?: GroupingSet): GroupingSet { + groupingSet(_p?: GroupingSet, isNode?: boolean): GroupingSet | { + GroupingSet: GroupingSet; + } { const _j = {} as GroupingSet; _o.set(_j, "kind", _p?.kind); _o.set(_j, "content", _p?.content); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + GroupingSet: _j + }; + } return _j; }, - windowClause(_p?: WindowClause): WindowClause { + windowClause(_p?: WindowClause, isNode?: boolean): WindowClause | { + WindowClause: WindowClause; + } { const _j = {} as WindowClause; _o.set(_j, "name", _p?.name); _o.set(_j, "refname", _p?.refname); @@ -1084,49 +1828,91 @@ export default { _o.set(_j, "inRangeNullsFirst", _p?.inRangeNullsFirst); _o.set(_j, "winref", _p?.winref); _o.set(_j, "copiedOrder", _p?.copiedOrder); + if (isNode) { + return { + WindowClause: _j + }; + } return _j; }, - rowMarkClause(_p?: RowMarkClause): RowMarkClause { + rowMarkClause(_p?: RowMarkClause, isNode?: boolean): RowMarkClause | { + RowMarkClause: RowMarkClause; + } { const _j = {} as RowMarkClause; _o.set(_j, "rti", _p?.rti); _o.set(_j, "strength", _p?.strength); _o.set(_j, "waitPolicy", _p?.waitPolicy); _o.set(_j, "pushedDown", _p?.pushedDown); + if (isNode) { + return { + RowMarkClause: _j + }; + } return _j; }, - withClause(_p?: WithClause): WithClause { + withClause(_p?: WithClause, isNode?: boolean): WithClause | { + WithClause: WithClause; + } { const _j = {} as WithClause; _o.set(_j, "ctes", _p?.ctes); _o.set(_j, "recursive", _p?.recursive); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + WithClause: _j + }; + } return _j; }, - inferClause(_p?: InferClause): InferClause { + inferClause(_p?: InferClause, isNode?: boolean): InferClause | { + InferClause: InferClause; + } { const _j = {} as InferClause; _o.set(_j, "indexElems", _p?.indexElems); _o.set(_j, "whereClause", _p?.whereClause); _o.set(_j, "conname", _p?.conname); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + InferClause: _j + }; + } return _j; }, - onConflictClause(_p?: OnConflictClause): OnConflictClause { + onConflictClause(_p?: OnConflictClause, isNode?: boolean): OnConflictClause | { + OnConflictClause: OnConflictClause; + } { const _j = {} as OnConflictClause; _o.set(_j, "action", _p?.action); _o.set(_j, "infer", _p?.infer); _o.set(_j, "targetList", _p?.targetList); _o.set(_j, "whereClause", _p?.whereClause); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + OnConflictClause: _j + }; + } return _j; }, - cteSearchClause(_p?: CTESearchClause): CTESearchClause { + cteSearchClause(_p?: CTESearchClause, isNode?: boolean): CTESearchClause | { + CTESearchClause: CTESearchClause; + } { const _j = {} as CTESearchClause; _o.set(_j, "search_col_list", _p?.search_col_list); _o.set(_j, "search_breadth_first", _p?.search_breadth_first); _o.set(_j, "search_seq_column", _p?.search_seq_column); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CTESearchClause: _j + }; + } return _j; }, - cteCycleClause(_p?: CTECycleClause): CTECycleClause { + cteCycleClause(_p?: CTECycleClause, isNode?: boolean): CTECycleClause | { + CTECycleClause: CTECycleClause; + } { const _j = {} as CTECycleClause; _o.set(_j, "cycle_col_list", _p?.cycle_col_list); _o.set(_j, "cycle_mark_column", _p?.cycle_mark_column); @@ -1138,9 +1924,16 @@ export default { _o.set(_j, "cycle_mark_typmod", _p?.cycle_mark_typmod); _o.set(_j, "cycle_mark_collation", _p?.cycle_mark_collation); _o.set(_j, "cycle_mark_neop", _p?.cycle_mark_neop); + if (isNode) { + return { + CTECycleClause: _j + }; + } return _j; }, - commonTableExpr(_p?: CommonTableExpr): CommonTableExpr { + commonTableExpr(_p?: CommonTableExpr, isNode?: boolean): CommonTableExpr | { + CommonTableExpr: CommonTableExpr; + } { const _j = {} as CommonTableExpr; _o.set(_j, "ctename", _p?.ctename); _o.set(_j, "aliascolnames", _p?.aliascolnames); @@ -1155,9 +1948,16 @@ export default { _o.set(_j, "ctecoltypes", _p?.ctecoltypes); _o.set(_j, "ctecoltypmods", _p?.ctecoltypmods); _o.set(_j, "ctecolcollations", _p?.ctecolcollations); + if (isNode) { + return { + CommonTableExpr: _j + }; + } return _j; }, - mergeWhenClause(_p?: MergeWhenClause): MergeWhenClause { + mergeWhenClause(_p?: MergeWhenClause, isNode?: boolean): MergeWhenClause | { + MergeWhenClause: MergeWhenClause; + } { const _j = {} as MergeWhenClause; _o.set(_j, "matched", _p?.matched); _o.set(_j, "commandType", _p?.commandType); @@ -1165,9 +1965,16 @@ export default { _o.set(_j, "condition", _p?.condition); _o.set(_j, "targetList", _p?.targetList); _o.set(_j, "values", _p?.values); + if (isNode) { + return { + MergeWhenClause: _j + }; + } return _j; }, - mergeAction(_p?: MergeAction): MergeAction { + mergeAction(_p?: MergeAction, isNode?: boolean): MergeAction | { + MergeAction: MergeAction; + } { const _j = {} as MergeAction; _o.set(_j, "matched", _p?.matched); _o.set(_j, "commandType", _p?.commandType); @@ -1175,85 +1982,162 @@ export default { _o.set(_j, "qual", _p?.qual); _o.set(_j, "targetList", _p?.targetList); _o.set(_j, "updateColnos", _p?.updateColnos); + if (isNode) { + return { + MergeAction: _j + }; + } return _j; }, - triggerTransition(_p?: TriggerTransition): TriggerTransition { + triggerTransition(_p?: TriggerTransition, isNode?: boolean): TriggerTransition | { + TriggerTransition: TriggerTransition; + } { const _j = {} as TriggerTransition; _o.set(_j, "name", _p?.name); _o.set(_j, "isNew", _p?.isNew); _o.set(_j, "isTable", _p?.isTable); + if (isNode) { + return { + TriggerTransition: _j + }; + } return _j; }, - jsonOutput(_p?: JsonOutput): JsonOutput { + jsonOutput(_p?: JsonOutput, isNode?: boolean): JsonOutput | { + JsonOutput: JsonOutput; + } { const _j = {} as JsonOutput; _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "returning", _p?.returning); + if (isNode) { + return { + JsonOutput: _j + }; + } return _j; }, - jsonKeyValue(_p?: JsonKeyValue): JsonKeyValue { + jsonKeyValue(_p?: JsonKeyValue, isNode?: boolean): JsonKeyValue | { + JsonKeyValue: JsonKeyValue; + } { const _j = {} as JsonKeyValue; _o.set(_j, "key", _p?.key); _o.set(_j, "value", _p?.value); + if (isNode) { + return { + JsonKeyValue: _j + }; + } return _j; }, - jsonObjectConstructor(_p?: JsonObjectConstructor): JsonObjectConstructor { + jsonObjectConstructor(_p?: JsonObjectConstructor, isNode?: boolean): JsonObjectConstructor | { + JsonObjectConstructor: JsonObjectConstructor; + } { const _j = {} as JsonObjectConstructor; _o.set(_j, "exprs", _p?.exprs); _o.set(_j, "output", _p?.output); _o.set(_j, "absent_on_null", _p?.absent_on_null); _o.set(_j, "unique", _p?.unique); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonObjectConstructor: _j + }; + } return _j; }, - jsonArrayConstructor(_p?: JsonArrayConstructor): JsonArrayConstructor { + jsonArrayConstructor(_p?: JsonArrayConstructor, isNode?: boolean): JsonArrayConstructor | { + JsonArrayConstructor: JsonArrayConstructor; + } { const _j = {} as JsonArrayConstructor; _o.set(_j, "exprs", _p?.exprs); _o.set(_j, "output", _p?.output); _o.set(_j, "absent_on_null", _p?.absent_on_null); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonArrayConstructor: _j + }; + } return _j; }, - jsonArrayQueryConstructor(_p?: JsonArrayQueryConstructor): JsonArrayQueryConstructor { + jsonArrayQueryConstructor(_p?: JsonArrayQueryConstructor, isNode?: boolean): JsonArrayQueryConstructor | { + JsonArrayQueryConstructor: JsonArrayQueryConstructor; + } { const _j = {} as JsonArrayQueryConstructor; _o.set(_j, "query", _p?.query); _o.set(_j, "output", _p?.output); _o.set(_j, "format", _p?.format); _o.set(_j, "absent_on_null", _p?.absent_on_null); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonArrayQueryConstructor: _j + }; + } return _j; }, - jsonAggConstructor(_p?: JsonAggConstructor): JsonAggConstructor { + jsonAggConstructor(_p?: JsonAggConstructor, isNode?: boolean): JsonAggConstructor | { + JsonAggConstructor: JsonAggConstructor; + } { const _j = {} as JsonAggConstructor; _o.set(_j, "output", _p?.output); _o.set(_j, "agg_filter", _p?.agg_filter); _o.set(_j, "agg_order", _p?.agg_order); _o.set(_j, "over", _p?.over); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonAggConstructor: _j + }; + } return _j; }, - jsonObjectAgg(_p?: JsonObjectAgg): JsonObjectAgg { + jsonObjectAgg(_p?: JsonObjectAgg, isNode?: boolean): JsonObjectAgg | { + JsonObjectAgg: JsonObjectAgg; + } { const _j = {} as JsonObjectAgg; _o.set(_j, "constructor", _p?.constructor); _o.set(_j, "arg", _p?.arg); _o.set(_j, "absent_on_null", _p?.absent_on_null); _o.set(_j, "unique", _p?.unique); + if (isNode) { + return { + JsonObjectAgg: _j + }; + } return _j; }, - jsonArrayAgg(_p?: JsonArrayAgg): JsonArrayAgg { + jsonArrayAgg(_p?: JsonArrayAgg, isNode?: boolean): JsonArrayAgg | { + JsonArrayAgg: JsonArrayAgg; + } { const _j = {} as JsonArrayAgg; _o.set(_j, "constructor", _p?.constructor); _o.set(_j, "arg", _p?.arg); _o.set(_j, "absent_on_null", _p?.absent_on_null); + if (isNode) { + return { + JsonArrayAgg: _j + }; + } return _j; }, - rawStmt(_p?: RawStmt): RawStmt { + rawStmt(_p?: RawStmt, isNode?: boolean): RawStmt | { + RawStmt: RawStmt; + } { const _j = {} as RawStmt; _o.set(_j, "stmt", _p?.stmt); _o.set(_j, "stmt_location", _p?.stmt_location); _o.set(_j, "stmt_len", _p?.stmt_len); + if (isNode) { + return { + RawStmt: _j + }; + } return _j; }, - insertStmt(_p?: InsertStmt): InsertStmt { + insertStmt(_p?: InsertStmt, isNode?: boolean): InsertStmt | { + InsertStmt: InsertStmt; + } { const _j = {} as InsertStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "cols", _p?.cols); @@ -1262,18 +2146,32 @@ export default { _o.set(_j, "returningList", _p?.returningList); _o.set(_j, "withClause", _p?.withClause); _o.set(_j, "override", _p?.override); + if (isNode) { + return { + InsertStmt: _j + }; + } return _j; }, - deleteStmt(_p?: DeleteStmt): DeleteStmt { + deleteStmt(_p?: DeleteStmt, isNode?: boolean): DeleteStmt | { + DeleteStmt: DeleteStmt; + } { const _j = {} as DeleteStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "usingClause", _p?.usingClause); _o.set(_j, "whereClause", _p?.whereClause); _o.set(_j, "returningList", _p?.returningList); _o.set(_j, "withClause", _p?.withClause); + if (isNode) { + return { + DeleteStmt: _j + }; + } return _j; }, - updateStmt(_p?: UpdateStmt): UpdateStmt { + updateStmt(_p?: UpdateStmt, isNode?: boolean): UpdateStmt | { + UpdateStmt: UpdateStmt; + } { const _j = {} as UpdateStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "targetList", _p?.targetList); @@ -1281,18 +2179,32 @@ export default { _o.set(_j, "fromClause", _p?.fromClause); _o.set(_j, "returningList", _p?.returningList); _o.set(_j, "withClause", _p?.withClause); + if (isNode) { + return { + UpdateStmt: _j + }; + } return _j; }, - mergeStmt(_p?: MergeStmt): MergeStmt { + mergeStmt(_p?: MergeStmt, isNode?: boolean): MergeStmt | { + MergeStmt: MergeStmt; + } { const _j = {} as MergeStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "sourceRelation", _p?.sourceRelation); _o.set(_j, "joinCondition", _p?.joinCondition); _o.set(_j, "mergeWhenClauses", _p?.mergeWhenClauses); _o.set(_j, "withClause", _p?.withClause); + if (isNode) { + return { + MergeStmt: _j + }; + } return _j; }, - selectStmt(_p?: SelectStmt): SelectStmt { + selectStmt(_p?: SelectStmt, isNode?: boolean): SelectStmt | { + SelectStmt: SelectStmt; + } { const _j = {} as SelectStmt; _o.set(_j, "distinctClause", _p?.distinctClause); _o.set(_j, "intoClause", _p?.intoClause); @@ -1314,9 +2226,16 @@ export default { _o.set(_j, "all", _p?.all); _o.set(_j, "larg", _p?.larg); _o.set(_j, "rarg", _p?.rarg); + if (isNode) { + return { + SelectStmt: _j + }; + } return _j; }, - setOperationStmt(_p?: SetOperationStmt): SetOperationStmt { + setOperationStmt(_p?: SetOperationStmt, isNode?: boolean): SetOperationStmt | { + SetOperationStmt: SetOperationStmt; + } { const _j = {} as SetOperationStmt; _o.set(_j, "op", _p?.op); _o.set(_j, "all", _p?.all); @@ -1326,45 +2245,87 @@ export default { _o.set(_j, "colTypmods", _p?.colTypmods); _o.set(_j, "colCollations", _p?.colCollations); _o.set(_j, "groupClauses", _p?.groupClauses); + if (isNode) { + return { + SetOperationStmt: _j + }; + } return _j; }, - returnStmt(_p?: ReturnStmt): ReturnStmt { + returnStmt(_p?: ReturnStmt, isNode?: boolean): ReturnStmt | { + ReturnStmt: ReturnStmt; + } { const _j = {} as ReturnStmt; _o.set(_j, "returnval", _p?.returnval); + if (isNode) { + return { + ReturnStmt: _j + }; + } return _j; }, - plAssignStmt(_p?: PLAssignStmt): PLAssignStmt { + plAssignStmt(_p?: PLAssignStmt, isNode?: boolean): PLAssignStmt | { + PLAssignStmt: PLAssignStmt; + } { const _j = {} as PLAssignStmt; _o.set(_j, "name", _p?.name); _o.set(_j, "indirection", _p?.indirection); _o.set(_j, "nnames", _p?.nnames); _o.set(_j, "val", _p?.val); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + PLAssignStmt: _j + }; + } return _j; }, - createSchemaStmt(_p?: CreateSchemaStmt): CreateSchemaStmt { + createSchemaStmt(_p?: CreateSchemaStmt, isNode?: boolean): CreateSchemaStmt | { + CreateSchemaStmt: CreateSchemaStmt; + } { const _j = {} as CreateSchemaStmt; _o.set(_j, "schemaname", _p?.schemaname); _o.set(_j, "authrole", _p?.authrole); _o.set(_j, "schemaElts", _p?.schemaElts); _o.set(_j, "if_not_exists", _p?.if_not_exists); + if (isNode) { + return { + CreateSchemaStmt: _j + }; + } return _j; }, - alterTableStmt(_p?: AlterTableStmt): AlterTableStmt { + alterTableStmt(_p?: AlterTableStmt, isNode?: boolean): AlterTableStmt | { + AlterTableStmt: AlterTableStmt; + } { const _j = {} as AlterTableStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "cmds", _p?.cmds); _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + AlterTableStmt: _j + }; + } return _j; }, - replicaIdentityStmt(_p?: ReplicaIdentityStmt): ReplicaIdentityStmt { + replicaIdentityStmt(_p?: ReplicaIdentityStmt, isNode?: boolean): ReplicaIdentityStmt | { + ReplicaIdentityStmt: ReplicaIdentityStmt; + } { const _j = {} as ReplicaIdentityStmt; _o.set(_j, "identity_type", _p?.identity_type); _o.set(_j, "name", _p?.name); + if (isNode) { + return { + ReplicaIdentityStmt: _j + }; + } return _j; }, - alterTableCmd(_p?: AlterTableCmd): AlterTableCmd { + alterTableCmd(_p?: AlterTableCmd, isNode?: boolean): AlterTableCmd | { + AlterTableCmd: AlterTableCmd; + } { const _j = {} as AlterTableCmd; _o.set(_j, "subtype", _p?.subtype); _o.set(_j, "name", _p?.name); @@ -1374,14 +2335,28 @@ export default { _o.set(_j, "behavior", _p?.behavior); _o.set(_j, "missing_ok", _p?.missing_ok); _o.set(_j, "recurse", _p?.recurse); + if (isNode) { + return { + AlterTableCmd: _j + }; + } return _j; }, - alterCollationStmt(_p?: AlterCollationStmt): AlterCollationStmt { + alterCollationStmt(_p?: AlterCollationStmt, isNode?: boolean): AlterCollationStmt | { + AlterCollationStmt: AlterCollationStmt; + } { const _j = {} as AlterCollationStmt; _o.set(_j, "collname", _p?.collname); + if (isNode) { + return { + AlterCollationStmt: _j + }; + } return _j; }, - alterDomainStmt(_p?: AlterDomainStmt): AlterDomainStmt { + alterDomainStmt(_p?: AlterDomainStmt, isNode?: boolean): AlterDomainStmt | { + AlterDomainStmt: AlterDomainStmt; + } { const _j = {} as AlterDomainStmt; _o.set(_j, "subtype", _p?.subtype); _o.set(_j, "typeName", _p?.typeName); @@ -1389,9 +2364,16 @@ export default { _o.set(_j, "def", _p?.def); _o.set(_j, "behavior", _p?.behavior); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + AlterDomainStmt: _j + }; + } return _j; }, - grantStmt(_p?: GrantStmt): GrantStmt { + grantStmt(_p?: GrantStmt, isNode?: boolean): GrantStmt | { + GrantStmt: GrantStmt; + } { const _j = {} as GrantStmt; _o.set(_j, "is_grant", _p?.is_grant); _o.set(_j, "targtype", _p?.targtype); @@ -1402,23 +2384,44 @@ export default { _o.set(_j, "grant_option", _p?.grant_option); _o.set(_j, "grantor", _p?.grantor); _o.set(_j, "behavior", _p?.behavior); + if (isNode) { + return { + GrantStmt: _j + }; + } return _j; }, - objectWithArgs(_p?: ObjectWithArgs): ObjectWithArgs { + objectWithArgs(_p?: ObjectWithArgs, isNode?: boolean): ObjectWithArgs | { + ObjectWithArgs: ObjectWithArgs; + } { const _j = {} as ObjectWithArgs; _o.set(_j, "objname", _p?.objname); _o.set(_j, "objargs", _p?.objargs); _o.set(_j, "objfuncargs", _p?.objfuncargs); _o.set(_j, "args_unspecified", _p?.args_unspecified); + if (isNode) { + return { + ObjectWithArgs: _j + }; + } return _j; }, - accessPriv(_p?: AccessPriv): AccessPriv { + accessPriv(_p?: AccessPriv, isNode?: boolean): AccessPriv | { + AccessPriv: AccessPriv; + } { const _j = {} as AccessPriv; _o.set(_j, "priv_name", _p?.priv_name); _o.set(_j, "cols", _p?.cols); + if (isNode) { + return { + AccessPriv: _j + }; + } return _j; }, - grantRoleStmt(_p?: GrantRoleStmt): GrantRoleStmt { + grantRoleStmt(_p?: GrantRoleStmt, isNode?: boolean): GrantRoleStmt | { + GrantRoleStmt: GrantRoleStmt; + } { const _j = {} as GrantRoleStmt; _o.set(_j, "granted_roles", _p?.granted_roles); _o.set(_j, "grantee_roles", _p?.grantee_roles); @@ -1426,15 +2429,29 @@ export default { _o.set(_j, "opt", _p?.opt); _o.set(_j, "grantor", _p?.grantor); _o.set(_j, "behavior", _p?.behavior); + if (isNode) { + return { + GrantRoleStmt: _j + }; + } return _j; }, - alterDefaultPrivilegesStmt(_p?: AlterDefaultPrivilegesStmt): AlterDefaultPrivilegesStmt { + alterDefaultPrivilegesStmt(_p?: AlterDefaultPrivilegesStmt, isNode?: boolean): AlterDefaultPrivilegesStmt | { + AlterDefaultPrivilegesStmt: AlterDefaultPrivilegesStmt; + } { const _j = {} as AlterDefaultPrivilegesStmt; _o.set(_j, "options", _p?.options); _o.set(_j, "action", _p?.action); + if (isNode) { + return { + AlterDefaultPrivilegesStmt: _j + }; + } return _j; }, - copyStmt(_p?: CopyStmt): CopyStmt { + copyStmt(_p?: CopyStmt, isNode?: boolean): CopyStmt | { + CopyStmt: CopyStmt; + } { const _j = {} as CopyStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "query", _p?.query); @@ -1444,22 +2461,43 @@ export default { _o.set(_j, "filename", _p?.filename); _o.set(_j, "options", _p?.options); _o.set(_j, "whereClause", _p?.whereClause); + if (isNode) { + return { + CopyStmt: _j + }; + } return _j; }, - variableSetStmt(_p?: VariableSetStmt): VariableSetStmt { + variableSetStmt(_p?: VariableSetStmt, isNode?: boolean): VariableSetStmt | { + VariableSetStmt: VariableSetStmt; + } { const _j = {} as VariableSetStmt; _o.set(_j, "kind", _p?.kind); _o.set(_j, "name", _p?.name); _o.set(_j, "args", _p?.args); _o.set(_j, "is_local", _p?.is_local); + if (isNode) { + return { + VariableSetStmt: _j + }; + } return _j; }, - variableShowStmt(_p?: VariableShowStmt): VariableShowStmt { + variableShowStmt(_p?: VariableShowStmt, isNode?: boolean): VariableShowStmt | { + VariableShowStmt: VariableShowStmt; + } { const _j = {} as VariableShowStmt; _o.set(_j, "name", _p?.name); + if (isNode) { + return { + VariableShowStmt: _j + }; + } return _j; }, - createStmt(_p?: CreateStmt): CreateStmt { + createStmt(_p?: CreateStmt, isNode?: boolean): CreateStmt | { + CreateStmt: CreateStmt; + } { const _j = {} as CreateStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "tableElts", _p?.tableElts); @@ -1473,9 +2511,16 @@ export default { _o.set(_j, "tablespacename", _p?.tablespacename); _o.set(_j, "accessMethod", _p?.accessMethod); _o.set(_j, "if_not_exists", _p?.if_not_exists); + if (isNode) { + return { + CreateStmt: _j + }; + } return _j; }, - constraint(_p?: Constraint): Constraint { + constraint(_p?: Constraint, isNode?: boolean): Constraint | { + Constraint: Constraint; + } { const _j = {} as Constraint; _o.set(_j, "contype", _p?.contype); _o.set(_j, "conname", _p?.conname); @@ -1507,74 +2552,144 @@ export default { _o.set(_j, "old_pktable_oid", _p?.old_pktable_oid); _o.set(_j, "skip_validation", _p?.skip_validation); _o.set(_j, "initially_valid", _p?.initially_valid); + if (isNode) { + return { + Constraint: _j + }; + } return _j; }, - createTableSpaceStmt(_p?: CreateTableSpaceStmt): CreateTableSpaceStmt { + createTableSpaceStmt(_p?: CreateTableSpaceStmt, isNode?: boolean): CreateTableSpaceStmt | { + CreateTableSpaceStmt: CreateTableSpaceStmt; + } { const _j = {} as CreateTableSpaceStmt; _o.set(_j, "tablespacename", _p?.tablespacename); _o.set(_j, "owner", _p?.owner); _o.set(_j, "location", _p?.location); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateTableSpaceStmt: _j + }; + } return _j; }, - dropTableSpaceStmt(_p?: DropTableSpaceStmt): DropTableSpaceStmt { + dropTableSpaceStmt(_p?: DropTableSpaceStmt, isNode?: boolean): DropTableSpaceStmt | { + DropTableSpaceStmt: DropTableSpaceStmt; + } { const _j = {} as DropTableSpaceStmt; _o.set(_j, "tablespacename", _p?.tablespacename); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + DropTableSpaceStmt: _j + }; + } return _j; }, - alterTableSpaceOptionsStmt(_p?: AlterTableSpaceOptionsStmt): AlterTableSpaceOptionsStmt { + alterTableSpaceOptionsStmt(_p?: AlterTableSpaceOptionsStmt, isNode?: boolean): AlterTableSpaceOptionsStmt | { + AlterTableSpaceOptionsStmt: AlterTableSpaceOptionsStmt; + } { const _j = {} as AlterTableSpaceOptionsStmt; _o.set(_j, "tablespacename", _p?.tablespacename); _o.set(_j, "options", _p?.options); _o.set(_j, "isReset", _p?.isReset); + if (isNode) { + return { + AlterTableSpaceOptionsStmt: _j + }; + } return _j; }, - alterTableMoveAllStmt(_p?: AlterTableMoveAllStmt): AlterTableMoveAllStmt { + alterTableMoveAllStmt(_p?: AlterTableMoveAllStmt, isNode?: boolean): AlterTableMoveAllStmt | { + AlterTableMoveAllStmt: AlterTableMoveAllStmt; + } { const _j = {} as AlterTableMoveAllStmt; _o.set(_j, "orig_tablespacename", _p?.orig_tablespacename); _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "roles", _p?.roles); _o.set(_j, "new_tablespacename", _p?.new_tablespacename); _o.set(_j, "nowait", _p?.nowait); + if (isNode) { + return { + AlterTableMoveAllStmt: _j + }; + } return _j; }, - createExtensionStmt(_p?: CreateExtensionStmt): CreateExtensionStmt { + createExtensionStmt(_p?: CreateExtensionStmt, isNode?: boolean): CreateExtensionStmt | { + CreateExtensionStmt: CreateExtensionStmt; + } { const _j = {} as CreateExtensionStmt; _o.set(_j, "extname", _p?.extname); _o.set(_j, "if_not_exists", _p?.if_not_exists); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateExtensionStmt: _j + }; + } return _j; }, - alterExtensionStmt(_p?: AlterExtensionStmt): AlterExtensionStmt { + alterExtensionStmt(_p?: AlterExtensionStmt, isNode?: boolean): AlterExtensionStmt | { + AlterExtensionStmt: AlterExtensionStmt; + } { const _j = {} as AlterExtensionStmt; _o.set(_j, "extname", _p?.extname); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterExtensionStmt: _j + }; + } return _j; }, - alterExtensionContentsStmt(_p?: AlterExtensionContentsStmt): AlterExtensionContentsStmt { + alterExtensionContentsStmt(_p?: AlterExtensionContentsStmt, isNode?: boolean): AlterExtensionContentsStmt | { + AlterExtensionContentsStmt: AlterExtensionContentsStmt; + } { const _j = {} as AlterExtensionContentsStmt; _o.set(_j, "extname", _p?.extname); _o.set(_j, "action", _p?.action); _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "object", _p?.object); + if (isNode) { + return { + AlterExtensionContentsStmt: _j + }; + } return _j; }, - createFdwStmt(_p?: CreateFdwStmt): CreateFdwStmt { + createFdwStmt(_p?: CreateFdwStmt, isNode?: boolean): CreateFdwStmt | { + CreateFdwStmt: CreateFdwStmt; + } { const _j = {} as CreateFdwStmt; _o.set(_j, "fdwname", _p?.fdwname); _o.set(_j, "func_options", _p?.func_options); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateFdwStmt: _j + }; + } return _j; }, - alterFdwStmt(_p?: AlterFdwStmt): AlterFdwStmt { + alterFdwStmt(_p?: AlterFdwStmt, isNode?: boolean): AlterFdwStmt | { + AlterFdwStmt: AlterFdwStmt; + } { const _j = {} as AlterFdwStmt; _o.set(_j, "fdwname", _p?.fdwname); _o.set(_j, "func_options", _p?.func_options); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterFdwStmt: _j + }; + } return _j; }, - createForeignServerStmt(_p?: CreateForeignServerStmt): CreateForeignServerStmt { + createForeignServerStmt(_p?: CreateForeignServerStmt, isNode?: boolean): CreateForeignServerStmt | { + CreateForeignServerStmt: CreateForeignServerStmt; + } { const _j = {} as CreateForeignServerStmt; _o.set(_j, "servername", _p?.servername); _o.set(_j, "servertype", _p?.servertype); @@ -1582,46 +2697,88 @@ export default { _o.set(_j, "fdwname", _p?.fdwname); _o.set(_j, "if_not_exists", _p?.if_not_exists); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateForeignServerStmt: _j + }; + } return _j; }, - alterForeignServerStmt(_p?: AlterForeignServerStmt): AlterForeignServerStmt { + alterForeignServerStmt(_p?: AlterForeignServerStmt, isNode?: boolean): AlterForeignServerStmt | { + AlterForeignServerStmt: AlterForeignServerStmt; + } { const _j = {} as AlterForeignServerStmt; _o.set(_j, "servername", _p?.servername); _o.set(_j, "version", _p?.version); _o.set(_j, "options", _p?.options); _o.set(_j, "has_version", _p?.has_version); + if (isNode) { + return { + AlterForeignServerStmt: _j + }; + } return _j; }, - createForeignTableStmt(_p?: CreateForeignTableStmt): CreateForeignTableStmt { + createForeignTableStmt(_p?: CreateForeignTableStmt, isNode?: boolean): CreateForeignTableStmt | { + CreateForeignTableStmt: CreateForeignTableStmt; + } { const _j = {} as CreateForeignTableStmt; _o.set(_j, "base", _p?.base); _o.set(_j, "servername", _p?.servername); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateForeignTableStmt: _j + }; + } return _j; }, - createUserMappingStmt(_p?: CreateUserMappingStmt): CreateUserMappingStmt { + createUserMappingStmt(_p?: CreateUserMappingStmt, isNode?: boolean): CreateUserMappingStmt | { + CreateUserMappingStmt: CreateUserMappingStmt; + } { const _j = {} as CreateUserMappingStmt; _o.set(_j, "user", _p?.user); _o.set(_j, "servername", _p?.servername); _o.set(_j, "if_not_exists", _p?.if_not_exists); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateUserMappingStmt: _j + }; + } return _j; }, - alterUserMappingStmt(_p?: AlterUserMappingStmt): AlterUserMappingStmt { + alterUserMappingStmt(_p?: AlterUserMappingStmt, isNode?: boolean): AlterUserMappingStmt | { + AlterUserMappingStmt: AlterUserMappingStmt; + } { const _j = {} as AlterUserMappingStmt; _o.set(_j, "user", _p?.user); _o.set(_j, "servername", _p?.servername); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterUserMappingStmt: _j + }; + } return _j; }, - dropUserMappingStmt(_p?: DropUserMappingStmt): DropUserMappingStmt { + dropUserMappingStmt(_p?: DropUserMappingStmt, isNode?: boolean): DropUserMappingStmt | { + DropUserMappingStmt: DropUserMappingStmt; + } { const _j = {} as DropUserMappingStmt; _o.set(_j, "user", _p?.user); _o.set(_j, "servername", _p?.servername); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + DropUserMappingStmt: _j + }; + } return _j; }, - importForeignSchemaStmt(_p?: ImportForeignSchemaStmt): ImportForeignSchemaStmt { + importForeignSchemaStmt(_p?: ImportForeignSchemaStmt, isNode?: boolean): ImportForeignSchemaStmt | { + ImportForeignSchemaStmt: ImportForeignSchemaStmt; + } { const _j = {} as ImportForeignSchemaStmt; _o.set(_j, "server_name", _p?.server_name); _o.set(_j, "remote_schema", _p?.remote_schema); @@ -1629,9 +2786,16 @@ export default { _o.set(_j, "list_type", _p?.list_type); _o.set(_j, "table_list", _p?.table_list); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + ImportForeignSchemaStmt: _j + }; + } return _j; }, - createPolicyStmt(_p?: CreatePolicyStmt): CreatePolicyStmt { + createPolicyStmt(_p?: CreatePolicyStmt, isNode?: boolean): CreatePolicyStmt | { + CreatePolicyStmt: CreatePolicyStmt; + } { const _j = {} as CreatePolicyStmt; _o.set(_j, "policy_name", _p?.policy_name); _o.set(_j, "table", _p?.table); @@ -1640,25 +2804,46 @@ export default { _o.set(_j, "roles", _p?.roles); _o.set(_j, "qual", _p?.qual); _o.set(_j, "with_check", _p?.with_check); + if (isNode) { + return { + CreatePolicyStmt: _j + }; + } return _j; }, - alterPolicyStmt(_p?: AlterPolicyStmt): AlterPolicyStmt { + alterPolicyStmt(_p?: AlterPolicyStmt, isNode?: boolean): AlterPolicyStmt | { + AlterPolicyStmt: AlterPolicyStmt; + } { const _j = {} as AlterPolicyStmt; _o.set(_j, "policy_name", _p?.policy_name); _o.set(_j, "table", _p?.table); _o.set(_j, "roles", _p?.roles); _o.set(_j, "qual", _p?.qual); _o.set(_j, "with_check", _p?.with_check); + if (isNode) { + return { + AlterPolicyStmt: _j + }; + } return _j; }, - createAmStmt(_p?: CreateAmStmt): CreateAmStmt { + createAmStmt(_p?: CreateAmStmt, isNode?: boolean): CreateAmStmt | { + CreateAmStmt: CreateAmStmt; + } { const _j = {} as CreateAmStmt; _o.set(_j, "amname", _p?.amname); _o.set(_j, "handler_name", _p?.handler_name); _o.set(_j, "amtype", _p?.amtype); + if (isNode) { + return { + CreateAmStmt: _j + }; + } return _j; }, - createTrigStmt(_p?: CreateTrigStmt): CreateTrigStmt { + createTrigStmt(_p?: CreateTrigStmt, isNode?: boolean): CreateTrigStmt | { + CreateTrigStmt: CreateTrigStmt; + } { const _j = {} as CreateTrigStmt; _o.set(_j, "replace", _p?.replace); _o.set(_j, "isconstraint", _p?.isconstraint); @@ -1675,23 +2860,44 @@ export default { _o.set(_j, "deferrable", _p?.deferrable); _o.set(_j, "initdeferred", _p?.initdeferred); _o.set(_j, "constrrel", _p?.constrrel); + if (isNode) { + return { + CreateTrigStmt: _j + }; + } return _j; }, - createEventTrigStmt(_p?: CreateEventTrigStmt): CreateEventTrigStmt { + createEventTrigStmt(_p?: CreateEventTrigStmt, isNode?: boolean): CreateEventTrigStmt | { + CreateEventTrigStmt: CreateEventTrigStmt; + } { const _j = {} as CreateEventTrigStmt; _o.set(_j, "trigname", _p?.trigname); _o.set(_j, "eventname", _p?.eventname); _o.set(_j, "whenclause", _p?.whenclause); _o.set(_j, "funcname", _p?.funcname); + if (isNode) { + return { + CreateEventTrigStmt: _j + }; + } return _j; }, - alterEventTrigStmt(_p?: AlterEventTrigStmt): AlterEventTrigStmt { + alterEventTrigStmt(_p?: AlterEventTrigStmt, isNode?: boolean): AlterEventTrigStmt | { + AlterEventTrigStmt: AlterEventTrigStmt; + } { const _j = {} as AlterEventTrigStmt; _o.set(_j, "trigname", _p?.trigname); _o.set(_j, "tgenabled", _p?.tgenabled); + if (isNode) { + return { + AlterEventTrigStmt: _j + }; + } return _j; }, - createpLangStmt(_p?: CreatePLangStmt): CreatePLangStmt { + createpLangStmt(_p?: CreatePLangStmt, isNode?: boolean): CreatePLangStmt | { + CreatePLangStmt: CreatePLangStmt; + } { const _j = {} as CreatePLangStmt; _o.set(_j, "replace", _p?.replace); _o.set(_j, "plname", _p?.plname); @@ -1699,53 +2905,102 @@ export default { _o.set(_j, "plinline", _p?.plinline); _o.set(_j, "plvalidator", _p?.plvalidator); _o.set(_j, "pltrusted", _p?.pltrusted); + if (isNode) { + return { + CreatePLangStmt: _j + }; + } return _j; }, - createRoleStmt(_p?: CreateRoleStmt): CreateRoleStmt { + createRoleStmt(_p?: CreateRoleStmt, isNode?: boolean): CreateRoleStmt | { + CreateRoleStmt: CreateRoleStmt; + } { const _j = {} as CreateRoleStmt; _o.set(_j, "stmt_type", _p?.stmt_type); _o.set(_j, "role", _p?.role); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateRoleStmt: _j + }; + } return _j; }, - alterRoleStmt(_p?: AlterRoleStmt): AlterRoleStmt { + alterRoleStmt(_p?: AlterRoleStmt, isNode?: boolean): AlterRoleStmt | { + AlterRoleStmt: AlterRoleStmt; + } { const _j = {} as AlterRoleStmt; _o.set(_j, "role", _p?.role); _o.set(_j, "options", _p?.options); _o.set(_j, "action", _p?.action); + if (isNode) { + return { + AlterRoleStmt: _j + }; + } return _j; }, - alterRoleSetStmt(_p?: AlterRoleSetStmt): AlterRoleSetStmt { + alterRoleSetStmt(_p?: AlterRoleSetStmt, isNode?: boolean): AlterRoleSetStmt | { + AlterRoleSetStmt: AlterRoleSetStmt; + } { const _j = {} as AlterRoleSetStmt; _o.set(_j, "role", _p?.role); _o.set(_j, "database", _p?.database); _o.set(_j, "setstmt", _p?.setstmt); + if (isNode) { + return { + AlterRoleSetStmt: _j + }; + } return _j; }, - dropRoleStmt(_p?: DropRoleStmt): DropRoleStmt { + dropRoleStmt(_p?: DropRoleStmt, isNode?: boolean): DropRoleStmt | { + DropRoleStmt: DropRoleStmt; + } { const _j = {} as DropRoleStmt; _o.set(_j, "roles", _p?.roles); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + DropRoleStmt: _j + }; + } return _j; }, - createSeqStmt(_p?: CreateSeqStmt): CreateSeqStmt { + createSeqStmt(_p?: CreateSeqStmt, isNode?: boolean): CreateSeqStmt | { + CreateSeqStmt: CreateSeqStmt; + } { const _j = {} as CreateSeqStmt; _o.set(_j, "sequence", _p?.sequence); _o.set(_j, "options", _p?.options); _o.set(_j, "ownerId", _p?.ownerId); _o.set(_j, "for_identity", _p?.for_identity); _o.set(_j, "if_not_exists", _p?.if_not_exists); + if (isNode) { + return { + CreateSeqStmt: _j + }; + } return _j; }, - alterSeqStmt(_p?: AlterSeqStmt): AlterSeqStmt { + alterSeqStmt(_p?: AlterSeqStmt, isNode?: boolean): AlterSeqStmt | { + AlterSeqStmt: AlterSeqStmt; + } { const _j = {} as AlterSeqStmt; _o.set(_j, "sequence", _p?.sequence); _o.set(_j, "options", _p?.options); _o.set(_j, "for_identity", _p?.for_identity); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + AlterSeqStmt: _j + }; + } return _j; }, - defineStmt(_p?: DefineStmt): DefineStmt { + defineStmt(_p?: DefineStmt, isNode?: boolean): DefineStmt | { + DefineStmt: DefineStmt; + } { const _j = {} as DefineStmt; _o.set(_j, "kind", _p?.kind); _o.set(_j, "oldstyle", _p?.oldstyle); @@ -1754,17 +3009,31 @@ export default { _o.set(_j, "definition", _p?.definition); _o.set(_j, "if_not_exists", _p?.if_not_exists); _o.set(_j, "replace", _p?.replace); + if (isNode) { + return { + DefineStmt: _j + }; + } return _j; }, - createDomainStmt(_p?: CreateDomainStmt): CreateDomainStmt { + createDomainStmt(_p?: CreateDomainStmt, isNode?: boolean): CreateDomainStmt | { + CreateDomainStmt: CreateDomainStmt; + } { const _j = {} as CreateDomainStmt; _o.set(_j, "domainname", _p?.domainname); _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "collClause", _p?.collClause); _o.set(_j, "constraints", _p?.constraints); + if (isNode) { + return { + CreateDomainStmt: _j + }; + } return _j; }, - createOpClassStmt(_p?: CreateOpClassStmt): CreateOpClassStmt { + createOpClassStmt(_p?: CreateOpClassStmt, isNode?: boolean): CreateOpClassStmt | { + CreateOpClassStmt: CreateOpClassStmt; + } { const _j = {} as CreateOpClassStmt; _o.set(_j, "opclassname", _p?.opclassname); _o.set(_j, "opfamilyname", _p?.opfamilyname); @@ -1772,9 +3041,16 @@ export default { _o.set(_j, "datatype", _p?.datatype); _o.set(_j, "items", _p?.items); _o.set(_j, "isDefault", _p?.isDefault); + if (isNode) { + return { + CreateOpClassStmt: _j + }; + } return _j; }, - createOpClassItem(_p?: CreateOpClassItem): CreateOpClassItem { + createOpClassItem(_p?: CreateOpClassItem, isNode?: boolean): CreateOpClassItem | { + CreateOpClassItem: CreateOpClassItem; + } { const _j = {} as CreateOpClassItem; _o.set(_j, "itemtype", _p?.itemtype); _o.set(_j, "name", _p?.name); @@ -1782,74 +3058,144 @@ export default { _o.set(_j, "order_family", _p?.order_family); _o.set(_j, "class_args", _p?.class_args); _o.set(_j, "storedtype", _p?.storedtype); + if (isNode) { + return { + CreateOpClassItem: _j + }; + } return _j; }, - createOpFamilyStmt(_p?: CreateOpFamilyStmt): CreateOpFamilyStmt { + createOpFamilyStmt(_p?: CreateOpFamilyStmt, isNode?: boolean): CreateOpFamilyStmt | { + CreateOpFamilyStmt: CreateOpFamilyStmt; + } { const _j = {} as CreateOpFamilyStmt; _o.set(_j, "opfamilyname", _p?.opfamilyname); _o.set(_j, "amname", _p?.amname); + if (isNode) { + return { + CreateOpFamilyStmt: _j + }; + } return _j; }, - alterOpFamilyStmt(_p?: AlterOpFamilyStmt): AlterOpFamilyStmt { + alterOpFamilyStmt(_p?: AlterOpFamilyStmt, isNode?: boolean): AlterOpFamilyStmt | { + AlterOpFamilyStmt: AlterOpFamilyStmt; + } { const _j = {} as AlterOpFamilyStmt; _o.set(_j, "opfamilyname", _p?.opfamilyname); _o.set(_j, "amname", _p?.amname); _o.set(_j, "isDrop", _p?.isDrop); _o.set(_j, "items", _p?.items); + if (isNode) { + return { + AlterOpFamilyStmt: _j + }; + } return _j; }, - dropStmt(_p?: DropStmt): DropStmt { + dropStmt(_p?: DropStmt, isNode?: boolean): DropStmt | { + DropStmt: DropStmt; + } { const _j = {} as DropStmt; _o.set(_j, "objects", _p?.objects); _o.set(_j, "removeType", _p?.removeType); _o.set(_j, "behavior", _p?.behavior); _o.set(_j, "missing_ok", _p?.missing_ok); _o.set(_j, "concurrent", _p?.concurrent); + if (isNode) { + return { + DropStmt: _j + }; + } return _j; }, - truncateStmt(_p?: TruncateStmt): TruncateStmt { + truncateStmt(_p?: TruncateStmt, isNode?: boolean): TruncateStmt | { + TruncateStmt: TruncateStmt; + } { const _j = {} as TruncateStmt; _o.set(_j, "relations", _p?.relations); _o.set(_j, "restart_seqs", _p?.restart_seqs); _o.set(_j, "behavior", _p?.behavior); + if (isNode) { + return { + TruncateStmt: _j + }; + } return _j; }, - commentStmt(_p?: CommentStmt): CommentStmt { + commentStmt(_p?: CommentStmt, isNode?: boolean): CommentStmt | { + CommentStmt: CommentStmt; + } { const _j = {} as CommentStmt; _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "object", _p?.object); _o.set(_j, "comment", _p?.comment); + if (isNode) { + return { + CommentStmt: _j + }; + } return _j; }, - secLabelStmt(_p?: SecLabelStmt): SecLabelStmt { + secLabelStmt(_p?: SecLabelStmt, isNode?: boolean): SecLabelStmt | { + SecLabelStmt: SecLabelStmt; + } { const _j = {} as SecLabelStmt; _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "object", _p?.object); _o.set(_j, "provider", _p?.provider); _o.set(_j, "label", _p?.label); + if (isNode) { + return { + SecLabelStmt: _j + }; + } return _j; }, - declareCursorStmt(_p?: DeclareCursorStmt): DeclareCursorStmt { + declareCursorStmt(_p?: DeclareCursorStmt, isNode?: boolean): DeclareCursorStmt | { + DeclareCursorStmt: DeclareCursorStmt; + } { const _j = {} as DeclareCursorStmt; _o.set(_j, "portalname", _p?.portalname); _o.set(_j, "options", _p?.options); _o.set(_j, "query", _p?.query); + if (isNode) { + return { + DeclareCursorStmt: _j + }; + } return _j; }, - closePortalStmt(_p?: ClosePortalStmt): ClosePortalStmt { + closePortalStmt(_p?: ClosePortalStmt, isNode?: boolean): ClosePortalStmt | { + ClosePortalStmt: ClosePortalStmt; + } { const _j = {} as ClosePortalStmt; _o.set(_j, "portalname", _p?.portalname); + if (isNode) { + return { + ClosePortalStmt: _j + }; + } return _j; }, - fetchStmt(_p?: FetchStmt): FetchStmt { + fetchStmt(_p?: FetchStmt, isNode?: boolean): FetchStmt | { + FetchStmt: FetchStmt; + } { const _j = {} as FetchStmt; _o.set(_j, "direction", _p?.direction); _o.set(_j, "howMany", _p?.howMany); _o.set(_j, "portalname", _p?.portalname); _o.set(_j, "ismove", _p?.ismove); + if (isNode) { + return { + FetchStmt: _j + }; + } return _j; }, - indexStmt(_p?: IndexStmt): IndexStmt { + indexStmt(_p?: IndexStmt, isNode?: boolean): IndexStmt | { + IndexStmt: IndexStmt; + } { const _j = {} as IndexStmt; _o.set(_j, "idxname", _p?.idxname); _o.set(_j, "relation", _p?.relation); @@ -1875,9 +3221,16 @@ export default { _o.set(_j, "concurrent", _p?.concurrent); _o.set(_j, "if_not_exists", _p?.if_not_exists); _o.set(_j, "reset_default_tblspc", _p?.reset_default_tblspc); + if (isNode) { + return { + IndexStmt: _j + }; + } return _j; }, - createStatsStmt(_p?: CreateStatsStmt): CreateStatsStmt { + createStatsStmt(_p?: CreateStatsStmt, isNode?: boolean): CreateStatsStmt | { + CreateStatsStmt: CreateStatsStmt; + } { const _j = {} as CreateStatsStmt; _o.set(_j, "defnames", _p?.defnames); _o.set(_j, "stat_types", _p?.stat_types); @@ -1886,22 +3239,43 @@ export default { _o.set(_j, "stxcomment", _p?.stxcomment); _o.set(_j, "transformed", _p?.transformed); _o.set(_j, "if_not_exists", _p?.if_not_exists); + if (isNode) { + return { + CreateStatsStmt: _j + }; + } return _j; }, - statsElem(_p?: StatsElem): StatsElem { + statsElem(_p?: StatsElem, isNode?: boolean): StatsElem | { + StatsElem: StatsElem; + } { const _j = {} as StatsElem; _o.set(_j, "name", _p?.name); _o.set(_j, "expr", _p?.expr); + if (isNode) { + return { + StatsElem: _j + }; + } return _j; }, - alterStatsStmt(_p?: AlterStatsStmt): AlterStatsStmt { + alterStatsStmt(_p?: AlterStatsStmt, isNode?: boolean): AlterStatsStmt | { + AlterStatsStmt: AlterStatsStmt; + } { const _j = {} as AlterStatsStmt; _o.set(_j, "defnames", _p?.defnames); _o.set(_j, "stxstattarget", _p?.stxstattarget); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + AlterStatsStmt: _j + }; + } return _j; }, - createFunctionStmt(_p?: CreateFunctionStmt): CreateFunctionStmt { + createFunctionStmt(_p?: CreateFunctionStmt, isNode?: boolean): CreateFunctionStmt | { + CreateFunctionStmt: CreateFunctionStmt; + } { const _j = {} as CreateFunctionStmt; _o.set(_j, "is_procedure", _p?.is_procedure); _o.set(_j, "replace", _p?.replace); @@ -1910,49 +3284,98 @@ export default { _o.set(_j, "returnType", _p?.returnType); _o.set(_j, "options", _p?.options); _o.set(_j, "sql_body", _p?.sql_body); + if (isNode) { + return { + CreateFunctionStmt: _j + }; + } return _j; }, - functionParameter(_p?: FunctionParameter): FunctionParameter { + functionParameter(_p?: FunctionParameter, isNode?: boolean): FunctionParameter | { + FunctionParameter: FunctionParameter; + } { const _j = {} as FunctionParameter; _o.set(_j, "name", _p?.name); _o.set(_j, "argType", _p?.argType); _o.set(_j, "mode", _p?.mode); _o.set(_j, "defexpr", _p?.defexpr); + if (isNode) { + return { + FunctionParameter: _j + }; + } return _j; }, - alterFunctionStmt(_p?: AlterFunctionStmt): AlterFunctionStmt { + alterFunctionStmt(_p?: AlterFunctionStmt, isNode?: boolean): AlterFunctionStmt | { + AlterFunctionStmt: AlterFunctionStmt; + } { const _j = {} as AlterFunctionStmt; _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "func", _p?.func); _o.set(_j, "actions", _p?.actions); + if (isNode) { + return { + AlterFunctionStmt: _j + }; + } return _j; }, - doStmt(_p?: DoStmt): DoStmt { + doStmt(_p?: DoStmt, isNode?: boolean): DoStmt | { + DoStmt: DoStmt; + } { const _j = {} as DoStmt; _o.set(_j, "args", _p?.args); + if (isNode) { + return { + DoStmt: _j + }; + } return _j; }, - inlineCodeBlock(_p?: InlineCodeBlock): InlineCodeBlock { + inlineCodeBlock(_p?: InlineCodeBlock, isNode?: boolean): InlineCodeBlock | { + InlineCodeBlock: InlineCodeBlock; + } { const _j = {} as InlineCodeBlock; _o.set(_j, "source_text", _p?.source_text); _o.set(_j, "langOid", _p?.langOid); _o.set(_j, "langIsTrusted", _p?.langIsTrusted); _o.set(_j, "atomic", _p?.atomic); + if (isNode) { + return { + InlineCodeBlock: _j + }; + } return _j; }, - callStmt(_p?: CallStmt): CallStmt { + callStmt(_p?: CallStmt, isNode?: boolean): CallStmt | { + CallStmt: CallStmt; + } { const _j = {} as CallStmt; _o.set(_j, "funccall", _p?.funccall); _o.set(_j, "funcexpr", _p?.funcexpr); _o.set(_j, "outargs", _p?.outargs); + if (isNode) { + return { + CallStmt: _j + }; + } return _j; }, - callContext(_p?: CallContext): CallContext { + callContext(_p?: CallContext, isNode?: boolean): CallContext | { + CallContext: CallContext; + } { const _j = {} as CallContext; _o.set(_j, "atomic", _p?.atomic); + if (isNode) { + return { + CallContext: _j + }; + } return _j; }, - renameStmt(_p?: RenameStmt): RenameStmt { + renameStmt(_p?: RenameStmt, isNode?: boolean): RenameStmt | { + RenameStmt: RenameStmt; + } { const _j = {} as RenameStmt; _o.set(_j, "renameType", _p?.renameType); _o.set(_j, "relationType", _p?.relationType); @@ -1962,47 +3385,89 @@ export default { _o.set(_j, "newname", _p?.newname); _o.set(_j, "behavior", _p?.behavior); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + RenameStmt: _j + }; + } return _j; }, - alterObjectDependsStmt(_p?: AlterObjectDependsStmt): AlterObjectDependsStmt { + alterObjectDependsStmt(_p?: AlterObjectDependsStmt, isNode?: boolean): AlterObjectDependsStmt | { + AlterObjectDependsStmt: AlterObjectDependsStmt; + } { const _j = {} as AlterObjectDependsStmt; _o.set(_j, "objectType", _p?.objectType); _o.set(_j, "relation", _p?.relation); _o.set(_j, "object", _p?.object); _o.set(_j, "extname", _p?.extname); _o.set(_j, "remove", _p?.remove); + if (isNode) { + return { + AlterObjectDependsStmt: _j + }; + } return _j; }, - alterObjectSchemaStmt(_p?: AlterObjectSchemaStmt): AlterObjectSchemaStmt { + alterObjectSchemaStmt(_p?: AlterObjectSchemaStmt, isNode?: boolean): AlterObjectSchemaStmt | { + AlterObjectSchemaStmt: AlterObjectSchemaStmt; + } { const _j = {} as AlterObjectSchemaStmt; _o.set(_j, "objectType", _p?.objectType); _o.set(_j, "relation", _p?.relation); _o.set(_j, "object", _p?.object); _o.set(_j, "newschema", _p?.newschema); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + AlterObjectSchemaStmt: _j + }; + } return _j; }, - alterOwnerStmt(_p?: AlterOwnerStmt): AlterOwnerStmt { + alterOwnerStmt(_p?: AlterOwnerStmt, isNode?: boolean): AlterOwnerStmt | { + AlterOwnerStmt: AlterOwnerStmt; + } { const _j = {} as AlterOwnerStmt; _o.set(_j, "objectType", _p?.objectType); _o.set(_j, "relation", _p?.relation); _o.set(_j, "object", _p?.object); _o.set(_j, "newowner", _p?.newowner); + if (isNode) { + return { + AlterOwnerStmt: _j + }; + } return _j; }, - alterOperatorStmt(_p?: AlterOperatorStmt): AlterOperatorStmt { + alterOperatorStmt(_p?: AlterOperatorStmt, isNode?: boolean): AlterOperatorStmt | { + AlterOperatorStmt: AlterOperatorStmt; + } { const _j = {} as AlterOperatorStmt; _o.set(_j, "opername", _p?.opername); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterOperatorStmt: _j + }; + } return _j; }, - alterTypeStmt(_p?: AlterTypeStmt): AlterTypeStmt { + alterTypeStmt(_p?: AlterTypeStmt, isNode?: boolean): AlterTypeStmt | { + AlterTypeStmt: AlterTypeStmt; + } { const _j = {} as AlterTypeStmt; _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterTypeStmt: _j + }; + } return _j; }, - ruleStmt(_p?: RuleStmt): RuleStmt { + ruleStmt(_p?: RuleStmt, isNode?: boolean): RuleStmt | { + RuleStmt: RuleStmt; + } { const _j = {} as RuleStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "rulename", _p?.rulename); @@ -2011,52 +3476,108 @@ export default { _o.set(_j, "instead", _p?.instead); _o.set(_j, "actions", _p?.actions); _o.set(_j, "replace", _p?.replace); + if (isNode) { + return { + RuleStmt: _j + }; + } return _j; }, - notifyStmt(_p?: NotifyStmt): NotifyStmt { + notifyStmt(_p?: NotifyStmt, isNode?: boolean): NotifyStmt | { + NotifyStmt: NotifyStmt; + } { const _j = {} as NotifyStmt; _o.set(_j, "conditionname", _p?.conditionname); _o.set(_j, "payload", _p?.payload); + if (isNode) { + return { + NotifyStmt: _j + }; + } return _j; }, - listenStmt(_p?: ListenStmt): ListenStmt { + listenStmt(_p?: ListenStmt, isNode?: boolean): ListenStmt | { + ListenStmt: ListenStmt; + } { const _j = {} as ListenStmt; _o.set(_j, "conditionname", _p?.conditionname); + if (isNode) { + return { + ListenStmt: _j + }; + } return _j; }, - unlistenStmt(_p?: UnlistenStmt): UnlistenStmt { + unlistenStmt(_p?: UnlistenStmt, isNode?: boolean): UnlistenStmt | { + UnlistenStmt: UnlistenStmt; + } { const _j = {} as UnlistenStmt; _o.set(_j, "conditionname", _p?.conditionname); + if (isNode) { + return { + UnlistenStmt: _j + }; + } return _j; }, - transactionStmt(_p?: TransactionStmt): TransactionStmt { + transactionStmt(_p?: TransactionStmt, isNode?: boolean): TransactionStmt | { + TransactionStmt: TransactionStmt; + } { const _j = {} as TransactionStmt; _o.set(_j, "kind", _p?.kind); _o.set(_j, "options", _p?.options); _o.set(_j, "savepoint_name", _p?.savepoint_name); _o.set(_j, "gid", _p?.gid); _o.set(_j, "chain", _p?.chain); + if (isNode) { + return { + TransactionStmt: _j + }; + } return _j; }, - compositeTypeStmt(_p?: CompositeTypeStmt): CompositeTypeStmt { + compositeTypeStmt(_p?: CompositeTypeStmt, isNode?: boolean): CompositeTypeStmt | { + CompositeTypeStmt: CompositeTypeStmt; + } { const _j = {} as CompositeTypeStmt; _o.set(_j, "typevar", _p?.typevar); _o.set(_j, "coldeflist", _p?.coldeflist); + if (isNode) { + return { + CompositeTypeStmt: _j + }; + } return _j; }, - createEnumStmt(_p?: CreateEnumStmt): CreateEnumStmt { + createEnumStmt(_p?: CreateEnumStmt, isNode?: boolean): CreateEnumStmt | { + CreateEnumStmt: CreateEnumStmt; + } { const _j = {} as CreateEnumStmt; _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "vals", _p?.vals); + if (isNode) { + return { + CreateEnumStmt: _j + }; + } return _j; }, - createRangeStmt(_p?: CreateRangeStmt): CreateRangeStmt { + createRangeStmt(_p?: CreateRangeStmt, isNode?: boolean): CreateRangeStmt | { + CreateRangeStmt: CreateRangeStmt; + } { const _j = {} as CreateRangeStmt; _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "params", _p?.params); + if (isNode) { + return { + CreateRangeStmt: _j + }; + } return _j; }, - alterEnumStmt(_p?: AlterEnumStmt): AlterEnumStmt { + alterEnumStmt(_p?: AlterEnumStmt, isNode?: boolean): AlterEnumStmt | { + AlterEnumStmt: AlterEnumStmt; + } { const _j = {} as AlterEnumStmt; _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "oldVal", _p?.oldVal); @@ -2064,9 +3585,16 @@ export default { _o.set(_j, "newValNeighbor", _p?.newValNeighbor); _o.set(_j, "newValIsAfter", _p?.newValIsAfter); _o.set(_j, "skipIfNewValExists", _p?.skipIfNewValExists); + if (isNode) { + return { + AlterEnumStmt: _j + }; + } return _j; }, - viewStmt(_p?: ViewStmt): ViewStmt { + viewStmt(_p?: ViewStmt, isNode?: boolean): ViewStmt | { + ViewStmt: ViewStmt; + } { const _j = {} as ViewStmt; _o.set(_j, "view", _p?.view); _o.set(_j, "aliases", _p?.aliases); @@ -2074,185 +3602,381 @@ export default { _o.set(_j, "replace", _p?.replace); _o.set(_j, "options", _p?.options); _o.set(_j, "withCheckOption", _p?.withCheckOption); + if (isNode) { + return { + ViewStmt: _j + }; + } return _j; }, - loadStmt(_p?: LoadStmt): LoadStmt { + loadStmt(_p?: LoadStmt, isNode?: boolean): LoadStmt | { + LoadStmt: LoadStmt; + } { const _j = {} as LoadStmt; _o.set(_j, "filename", _p?.filename); + if (isNode) { + return { + LoadStmt: _j + }; + } return _j; }, - createdbStmt(_p?: CreatedbStmt): CreatedbStmt { + createdbStmt(_p?: CreatedbStmt, isNode?: boolean): CreatedbStmt | { + CreatedbStmt: CreatedbStmt; + } { const _j = {} as CreatedbStmt; _o.set(_j, "dbname", _p?.dbname); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreatedbStmt: _j + }; + } return _j; }, - alterDatabaseStmt(_p?: AlterDatabaseStmt): AlterDatabaseStmt { + alterDatabaseStmt(_p?: AlterDatabaseStmt, isNode?: boolean): AlterDatabaseStmt | { + AlterDatabaseStmt: AlterDatabaseStmt; + } { const _j = {} as AlterDatabaseStmt; _o.set(_j, "dbname", _p?.dbname); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterDatabaseStmt: _j + }; + } return _j; }, - alterDatabaseRefreshCollStmt(_p?: AlterDatabaseRefreshCollStmt): AlterDatabaseRefreshCollStmt { + alterDatabaseRefreshCollStmt(_p?: AlterDatabaseRefreshCollStmt, isNode?: boolean): AlterDatabaseRefreshCollStmt | { + AlterDatabaseRefreshCollStmt: AlterDatabaseRefreshCollStmt; + } { const _j = {} as AlterDatabaseRefreshCollStmt; _o.set(_j, "dbname", _p?.dbname); + if (isNode) { + return { + AlterDatabaseRefreshCollStmt: _j + }; + } return _j; }, - alterDatabaseSetStmt(_p?: AlterDatabaseSetStmt): AlterDatabaseSetStmt { + alterDatabaseSetStmt(_p?: AlterDatabaseSetStmt, isNode?: boolean): AlterDatabaseSetStmt | { + AlterDatabaseSetStmt: AlterDatabaseSetStmt; + } { const _j = {} as AlterDatabaseSetStmt; _o.set(_j, "dbname", _p?.dbname); _o.set(_j, "setstmt", _p?.setstmt); + if (isNode) { + return { + AlterDatabaseSetStmt: _j + }; + } return _j; }, - dropdbStmt(_p?: DropdbStmt): DropdbStmt { + dropdbStmt(_p?: DropdbStmt, isNode?: boolean): DropdbStmt | { + DropdbStmt: DropdbStmt; + } { const _j = {} as DropdbStmt; _o.set(_j, "dbname", _p?.dbname); _o.set(_j, "missing_ok", _p?.missing_ok); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + DropdbStmt: _j + }; + } return _j; }, - alterSystemStmt(_p?: AlterSystemStmt): AlterSystemStmt { + alterSystemStmt(_p?: AlterSystemStmt, isNode?: boolean): AlterSystemStmt | { + AlterSystemStmt: AlterSystemStmt; + } { const _j = {} as AlterSystemStmt; _o.set(_j, "setstmt", _p?.setstmt); + if (isNode) { + return { + AlterSystemStmt: _j + }; + } return _j; }, - clusterStmt(_p?: ClusterStmt): ClusterStmt { + clusterStmt(_p?: ClusterStmt, isNode?: boolean): ClusterStmt | { + ClusterStmt: ClusterStmt; + } { const _j = {} as ClusterStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "indexname", _p?.indexname); _o.set(_j, "params", _p?.params); + if (isNode) { + return { + ClusterStmt: _j + }; + } return _j; }, - vacuumStmt(_p?: VacuumStmt): VacuumStmt { + vacuumStmt(_p?: VacuumStmt, isNode?: boolean): VacuumStmt | { + VacuumStmt: VacuumStmt; + } { const _j = {} as VacuumStmt; _o.set(_j, "options", _p?.options); _o.set(_j, "rels", _p?.rels); _o.set(_j, "is_vacuumcmd", _p?.is_vacuumcmd); + if (isNode) { + return { + VacuumStmt: _j + }; + } return _j; }, - vacuumRelation(_p?: VacuumRelation): VacuumRelation { + vacuumRelation(_p?: VacuumRelation, isNode?: boolean): VacuumRelation | { + VacuumRelation: VacuumRelation; + } { const _j = {} as VacuumRelation; _o.set(_j, "relation", _p?.relation); _o.set(_j, "oid", _p?.oid); _o.set(_j, "va_cols", _p?.va_cols); + if (isNode) { + return { + VacuumRelation: _j + }; + } return _j; }, - explainStmt(_p?: ExplainStmt): ExplainStmt { + explainStmt(_p?: ExplainStmt, isNode?: boolean): ExplainStmt | { + ExplainStmt: ExplainStmt; + } { const _j = {} as ExplainStmt; _o.set(_j, "query", _p?.query); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + ExplainStmt: _j + }; + } return _j; }, - createTableAsStmt(_p?: CreateTableAsStmt): CreateTableAsStmt { + createTableAsStmt(_p?: CreateTableAsStmt, isNode?: boolean): CreateTableAsStmt | { + CreateTableAsStmt: CreateTableAsStmt; + } { const _j = {} as CreateTableAsStmt; _o.set(_j, "query", _p?.query); _o.set(_j, "into", _p?.into); _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "is_select_into", _p?.is_select_into); _o.set(_j, "if_not_exists", _p?.if_not_exists); + if (isNode) { + return { + CreateTableAsStmt: _j + }; + } return _j; }, - refreshMatViewStmt(_p?: RefreshMatViewStmt): RefreshMatViewStmt { + refreshMatViewStmt(_p?: RefreshMatViewStmt, isNode?: boolean): RefreshMatViewStmt | { + RefreshMatViewStmt: RefreshMatViewStmt; + } { const _j = {} as RefreshMatViewStmt; _o.set(_j, "concurrent", _p?.concurrent); _o.set(_j, "skipData", _p?.skipData); _o.set(_j, "relation", _p?.relation); + if (isNode) { + return { + RefreshMatViewStmt: _j + }; + } return _j; }, - checkPointStmt(_p?: CheckPointStmt): CheckPointStmt { + checkPointStmt(_p?: CheckPointStmt, isNode?: boolean): CheckPointStmt | { + CheckPointStmt: CheckPointStmt; + } { const _j = {} as CheckPointStmt; + if (isNode) { + return { + CheckPointStmt: _j + }; + } return _j; }, - discardStmt(_p?: DiscardStmt): DiscardStmt { + discardStmt(_p?: DiscardStmt, isNode?: boolean): DiscardStmt | { + DiscardStmt: DiscardStmt; + } { const _j = {} as DiscardStmt; _o.set(_j, "target", _p?.target); + if (isNode) { + return { + DiscardStmt: _j + }; + } return _j; }, - lockStmt(_p?: LockStmt): LockStmt { + lockStmt(_p?: LockStmt, isNode?: boolean): LockStmt | { + LockStmt: LockStmt; + } { const _j = {} as LockStmt; _o.set(_j, "relations", _p?.relations); _o.set(_j, "mode", _p?.mode); _o.set(_j, "nowait", _p?.nowait); + if (isNode) { + return { + LockStmt: _j + }; + } return _j; }, - constraintsSetStmt(_p?: ConstraintsSetStmt): ConstraintsSetStmt { + constraintsSetStmt(_p?: ConstraintsSetStmt, isNode?: boolean): ConstraintsSetStmt | { + ConstraintsSetStmt: ConstraintsSetStmt; + } { const _j = {} as ConstraintsSetStmt; _o.set(_j, "constraints", _p?.constraints); _o.set(_j, "deferred", _p?.deferred); + if (isNode) { + return { + ConstraintsSetStmt: _j + }; + } return _j; }, - reindexStmt(_p?: ReindexStmt): ReindexStmt { + reindexStmt(_p?: ReindexStmt, isNode?: boolean): ReindexStmt | { + ReindexStmt: ReindexStmt; + } { const _j = {} as ReindexStmt; _o.set(_j, "kind", _p?.kind); _o.set(_j, "relation", _p?.relation); _o.set(_j, "name", _p?.name); _o.set(_j, "params", _p?.params); + if (isNode) { + return { + ReindexStmt: _j + }; + } return _j; }, - createConversionStmt(_p?: CreateConversionStmt): CreateConversionStmt { + createConversionStmt(_p?: CreateConversionStmt, isNode?: boolean): CreateConversionStmt | { + CreateConversionStmt: CreateConversionStmt; + } { const _j = {} as CreateConversionStmt; _o.set(_j, "conversion_name", _p?.conversion_name); _o.set(_j, "for_encoding_name", _p?.for_encoding_name); _o.set(_j, "to_encoding_name", _p?.to_encoding_name); _o.set(_j, "func_name", _p?.func_name); _o.set(_j, "def", _p?.def); + if (isNode) { + return { + CreateConversionStmt: _j + }; + } return _j; }, - createCastStmt(_p?: CreateCastStmt): CreateCastStmt { + createCastStmt(_p?: CreateCastStmt, isNode?: boolean): CreateCastStmt | { + CreateCastStmt: CreateCastStmt; + } { const _j = {} as CreateCastStmt; _o.set(_j, "sourcetype", _p?.sourcetype); _o.set(_j, "targettype", _p?.targettype); _o.set(_j, "func", _p?.func); _o.set(_j, "context", _p?.context); _o.set(_j, "inout", _p?.inout); + if (isNode) { + return { + CreateCastStmt: _j + }; + } return _j; }, - createTransformStmt(_p?: CreateTransformStmt): CreateTransformStmt { + createTransformStmt(_p?: CreateTransformStmt, isNode?: boolean): CreateTransformStmt | { + CreateTransformStmt: CreateTransformStmt; + } { const _j = {} as CreateTransformStmt; _o.set(_j, "replace", _p?.replace); _o.set(_j, "type_name", _p?.type_name); _o.set(_j, "lang", _p?.lang); _o.set(_j, "fromsql", _p?.fromsql); _o.set(_j, "tosql", _p?.tosql); + if (isNode) { + return { + CreateTransformStmt: _j + }; + } return _j; }, - prepareStmt(_p?: PrepareStmt): PrepareStmt { + prepareStmt(_p?: PrepareStmt, isNode?: boolean): PrepareStmt | { + PrepareStmt: PrepareStmt; + } { const _j = {} as PrepareStmt; _o.set(_j, "name", _p?.name); _o.set(_j, "argtypes", _p?.argtypes); _o.set(_j, "query", _p?.query); + if (isNode) { + return { + PrepareStmt: _j + }; + } return _j; }, - executeStmt(_p?: ExecuteStmt): ExecuteStmt { + executeStmt(_p?: ExecuteStmt, isNode?: boolean): ExecuteStmt | { + ExecuteStmt: ExecuteStmt; + } { const _j = {} as ExecuteStmt; _o.set(_j, "name", _p?.name); _o.set(_j, "params", _p?.params); + if (isNode) { + return { + ExecuteStmt: _j + }; + } return _j; }, - deallocateStmt(_p?: DeallocateStmt): DeallocateStmt { + deallocateStmt(_p?: DeallocateStmt, isNode?: boolean): DeallocateStmt | { + DeallocateStmt: DeallocateStmt; + } { const _j = {} as DeallocateStmt; _o.set(_j, "name", _p?.name); + if (isNode) { + return { + DeallocateStmt: _j + }; + } return _j; }, - dropOwnedStmt(_p?: DropOwnedStmt): DropOwnedStmt { + dropOwnedStmt(_p?: DropOwnedStmt, isNode?: boolean): DropOwnedStmt | { + DropOwnedStmt: DropOwnedStmt; + } { const _j = {} as DropOwnedStmt; _o.set(_j, "roles", _p?.roles); _o.set(_j, "behavior", _p?.behavior); + if (isNode) { + return { + DropOwnedStmt: _j + }; + } return _j; }, - reassignOwnedStmt(_p?: ReassignOwnedStmt): ReassignOwnedStmt { + reassignOwnedStmt(_p?: ReassignOwnedStmt, isNode?: boolean): ReassignOwnedStmt | { + ReassignOwnedStmt: ReassignOwnedStmt; + } { const _j = {} as ReassignOwnedStmt; _o.set(_j, "roles", _p?.roles); _o.set(_j, "newrole", _p?.newrole); + if (isNode) { + return { + ReassignOwnedStmt: _j + }; + } return _j; }, - altertsDictionaryStmt(_p?: AlterTSDictionaryStmt): AlterTSDictionaryStmt { + altertsDictionaryStmt(_p?: AlterTSDictionaryStmt, isNode?: boolean): AlterTSDictionaryStmt | { + AlterTSDictionaryStmt: AlterTSDictionaryStmt; + } { const _j = {} as AlterTSDictionaryStmt; _o.set(_j, "dictname", _p?.dictname); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterTSDictionaryStmt: _j + }; + } return _j; }, - altertsConfigurationStmt(_p?: AlterTSConfigurationStmt): AlterTSConfigurationStmt { + altertsConfigurationStmt(_p?: AlterTSConfigurationStmt, isNode?: boolean): AlterTSConfigurationStmt | { + AlterTSConfigurationStmt: AlterTSConfigurationStmt; + } { const _j = {} as AlterTSConfigurationStmt; _o.set(_j, "kind", _p?.kind); _o.set(_j, "cfgname", _p?.cfgname); @@ -2261,70 +3985,131 @@ export default { _o.set(_j, "override", _p?.override); _o.set(_j, "replace", _p?.replace); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + AlterTSConfigurationStmt: _j + }; + } return _j; }, - publicationTable(_p?: PublicationTable): PublicationTable { + publicationTable(_p?: PublicationTable, isNode?: boolean): PublicationTable | { + PublicationTable: PublicationTable; + } { const _j = {} as PublicationTable; _o.set(_j, "relation", _p?.relation); _o.set(_j, "whereClause", _p?.whereClause); _o.set(_j, "columns", _p?.columns); + if (isNode) { + return { + PublicationTable: _j + }; + } return _j; }, - publicationObjSpec(_p?: PublicationObjSpec): PublicationObjSpec { + publicationObjSpec(_p?: PublicationObjSpec, isNode?: boolean): PublicationObjSpec | { + PublicationObjSpec: PublicationObjSpec; + } { const _j = {} as PublicationObjSpec; _o.set(_j, "pubobjtype", _p?.pubobjtype); _o.set(_j, "name", _p?.name); _o.set(_j, "pubtable", _p?.pubtable); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + PublicationObjSpec: _j + }; + } return _j; }, - createPublicationStmt(_p?: CreatePublicationStmt): CreatePublicationStmt { + createPublicationStmt(_p?: CreatePublicationStmt, isNode?: boolean): CreatePublicationStmt | { + CreatePublicationStmt: CreatePublicationStmt; + } { const _j = {} as CreatePublicationStmt; _o.set(_j, "pubname", _p?.pubname); _o.set(_j, "options", _p?.options); _o.set(_j, "pubobjects", _p?.pubobjects); _o.set(_j, "for_all_tables", _p?.for_all_tables); + if (isNode) { + return { + CreatePublicationStmt: _j + }; + } return _j; }, - alterPublicationStmt(_p?: AlterPublicationStmt): AlterPublicationStmt { + alterPublicationStmt(_p?: AlterPublicationStmt, isNode?: boolean): AlterPublicationStmt | { + AlterPublicationStmt: AlterPublicationStmt; + } { const _j = {} as AlterPublicationStmt; _o.set(_j, "pubname", _p?.pubname); _o.set(_j, "options", _p?.options); _o.set(_j, "pubobjects", _p?.pubobjects); _o.set(_j, "for_all_tables", _p?.for_all_tables); _o.set(_j, "action", _p?.action); + if (isNode) { + return { + AlterPublicationStmt: _j + }; + } return _j; }, - createSubscriptionStmt(_p?: CreateSubscriptionStmt): CreateSubscriptionStmt { + createSubscriptionStmt(_p?: CreateSubscriptionStmt, isNode?: boolean): CreateSubscriptionStmt | { + CreateSubscriptionStmt: CreateSubscriptionStmt; + } { const _j = {} as CreateSubscriptionStmt; _o.set(_j, "subname", _p?.subname); _o.set(_j, "conninfo", _p?.conninfo); _o.set(_j, "publication", _p?.publication); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateSubscriptionStmt: _j + }; + } return _j; }, - alterSubscriptionStmt(_p?: AlterSubscriptionStmt): AlterSubscriptionStmt { + alterSubscriptionStmt(_p?: AlterSubscriptionStmt, isNode?: boolean): AlterSubscriptionStmt | { + AlterSubscriptionStmt: AlterSubscriptionStmt; + } { const _j = {} as AlterSubscriptionStmt; _o.set(_j, "kind", _p?.kind); _o.set(_j, "subname", _p?.subname); _o.set(_j, "conninfo", _p?.conninfo); _o.set(_j, "publication", _p?.publication); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterSubscriptionStmt: _j + }; + } return _j; }, - dropSubscriptionStmt(_p?: DropSubscriptionStmt): DropSubscriptionStmt { + dropSubscriptionStmt(_p?: DropSubscriptionStmt, isNode?: boolean): DropSubscriptionStmt | { + DropSubscriptionStmt: DropSubscriptionStmt; + } { const _j = {} as DropSubscriptionStmt; _o.set(_j, "subname", _p?.subname); _o.set(_j, "missing_ok", _p?.missing_ok); _o.set(_j, "behavior", _p?.behavior); + if (isNode) { + return { + DropSubscriptionStmt: _j + }; + } return _j; }, - scanToken(_p?: ScanToken): ScanToken { + scanToken(_p?: ScanToken, isNode?: boolean): ScanToken | { + ScanToken: ScanToken; + } { const _j = {} as ScanToken; _o.set(_j, "start", _p?.start); _o.set(_j, "end", _p?.end); _o.set(_j, "token", _p?.token); _o.set(_j, "keywordKind", _p?.keywordKind); + if (isNode) { + return { + ScanToken: _j + }; + } return _j; } }; \ No newline at end of file diff --git a/__fixtures__/output/utils/astHelpers/inlineNestedObj/asts.ts b/__fixtures__/output/utils/astHelpers/inlineNestedObj/asts.ts index b3a93dcd..c13d4197 100644 --- a/__fixtures__/output/utils/astHelpers/inlineNestedObj/asts.ts +++ b/__fixtures__/output/utils/astHelpers/inlineNestedObj/asts.ts @@ -4,61 +4,133 @@ * and run the pg-proto-parser generate command to regenerate this file. */ import _o from "./path-obj"; -import { ParseResult, ScanResult, Integer, Float, Boolean, String, BitString, List, OidList, IntList, A_Const, Alias, RangeVar, TableFunc, IntoClause, Var, Param, Aggref, GroupingFunc, WindowFunc, SubscriptingRef, FuncExpr, NamedArgExpr, OpExpr, DistinctExpr, NullIfExpr, ScalarArrayOpExpr, BoolExpr, SubLink, SubPlan, AlternativeSubPlan, FieldSelect, FieldStore, RelabelType, CoerceViaIO, ArrayCoerceExpr, ConvertRowtypeExpr, CollateExpr, CaseExpr, CaseWhen, CaseTestExpr, ArrayExpr, RowExpr, RowCompareExpr, CoalesceExpr, MinMaxExpr, SQLValueFunction, XmlExpr, JsonFormat, JsonReturning, JsonValueExpr, JsonConstructorExpr, JsonIsPredicate, NullTest, BooleanTest, CoerceToDomain, CoerceToDomainValue, SetToDefault, CurrentOfExpr, NextValueExpr, InferenceElem, TargetEntry, RangeTblRef, JoinExpr, FromExpr, OnConflictExpr, Query, TypeName, ColumnRef, ParamRef, A_Expr, TypeCast, CollateClause, RoleSpec, FuncCall, A_Star, A_Indices, A_Indirection, A_ArrayExpr, ResTarget, MultiAssignRef, SortBy, WindowDef, RangeSubselect, RangeFunction, RangeTableFunc, RangeTableFuncCol, RangeTableSample, ColumnDef, TableLikeClause, IndexElem, DefElem, LockingClause, XmlSerialize, PartitionElem, PartitionSpec, PartitionBoundSpec, PartitionRangeDatum, PartitionCmd, RangeTblEntry, RTEPermissionInfo, RangeTblFunction, TableSampleClause, WithCheckOption, SortGroupClause, GroupingSet, WindowClause, RowMarkClause, WithClause, InferClause, OnConflictClause, CTESearchClause, CTECycleClause, CommonTableExpr, MergeWhenClause, MergeAction, TriggerTransition, JsonOutput, JsonKeyValue, JsonObjectConstructor, JsonArrayConstructor, JsonArrayQueryConstructor, JsonAggConstructor, JsonObjectAgg, JsonArrayAgg, RawStmt, InsertStmt, DeleteStmt, UpdateStmt, MergeStmt, SelectStmt, SetOperationStmt, ReturnStmt, PLAssignStmt, CreateSchemaStmt, AlterTableStmt, ReplicaIdentityStmt, AlterTableCmd, AlterCollationStmt, AlterDomainStmt, GrantStmt, ObjectWithArgs, AccessPriv, GrantRoleStmt, AlterDefaultPrivilegesStmt, CopyStmt, VariableSetStmt, VariableShowStmt, CreateStmt, Constraint, CreateTableSpaceStmt, DropTableSpaceStmt, AlterTableSpaceOptionsStmt, AlterTableMoveAllStmt, CreateExtensionStmt, AlterExtensionStmt, AlterExtensionContentsStmt, CreateFdwStmt, AlterFdwStmt, CreateForeignServerStmt, AlterForeignServerStmt, CreateForeignTableStmt, CreateUserMappingStmt, AlterUserMappingStmt, DropUserMappingStmt, ImportForeignSchemaStmt, CreatePolicyStmt, AlterPolicyStmt, CreateAmStmt, CreateTrigStmt, CreateEventTrigStmt, AlterEventTrigStmt, CreatePLangStmt, CreateRoleStmt, AlterRoleStmt, AlterRoleSetStmt, DropRoleStmt, CreateSeqStmt, AlterSeqStmt, DefineStmt, CreateDomainStmt, CreateOpClassStmt, CreateOpClassItem, CreateOpFamilyStmt, AlterOpFamilyStmt, DropStmt, TruncateStmt, CommentStmt, SecLabelStmt, DeclareCursorStmt, ClosePortalStmt, FetchStmt, IndexStmt, CreateStatsStmt, StatsElem, AlterStatsStmt, CreateFunctionStmt, FunctionParameter, AlterFunctionStmt, DoStmt, InlineCodeBlock, CallStmt, CallContext, RenameStmt, AlterObjectDependsStmt, AlterObjectSchemaStmt, AlterOwnerStmt, AlterOperatorStmt, AlterTypeStmt, RuleStmt, NotifyStmt, ListenStmt, UnlistenStmt, TransactionStmt, CompositeTypeStmt, CreateEnumStmt, CreateRangeStmt, AlterEnumStmt, ViewStmt, LoadStmt, CreatedbStmt, AlterDatabaseStmt, AlterDatabaseRefreshCollStmt, AlterDatabaseSetStmt, DropdbStmt, AlterSystemStmt, ClusterStmt, VacuumStmt, VacuumRelation, ExplainStmt, CreateTableAsStmt, RefreshMatViewStmt, CheckPointStmt, DiscardStmt, LockStmt, ConstraintsSetStmt, ReindexStmt, CreateConversionStmt, CreateCastStmt, CreateTransformStmt, PrepareStmt, ExecuteStmt, DeallocateStmt, DropOwnedStmt, ReassignOwnedStmt, AlterTSDictionaryStmt, AlterTSConfigurationStmt, PublicationTable, PublicationObjSpec, CreatePublicationStmt, AlterPublicationStmt, CreateSubscriptionStmt, AlterSubscriptionStmt, DropSubscriptionStmt, ScanToken } from "./wrapped"; +import { ParseResult, ScanResult, Integer, Float, Boolean, String, BitString, List, OidList, IntList, A_Const, Alias, RangeVar, TableFunc, IntoClause, Var, Param, Aggref, GroupingFunc, WindowFunc, SubscriptingRef, FuncExpr, NamedArgExpr, OpExpr, DistinctExpr, NullIfExpr, ScalarArrayOpExpr, BoolExpr, SubLink, SubPlan, AlternativeSubPlan, FieldSelect, FieldStore, RelabelType, CoerceViaIO, ArrayCoerceExpr, ConvertRowtypeExpr, CollateExpr, CaseExpr, CaseWhen, CaseTestExpr, ArrayExpr, RowExpr, RowCompareExpr, CoalesceExpr, MinMaxExpr, SQLValueFunction, XmlExpr, JsonFormat, JsonReturning, JsonValueExpr, JsonConstructorExpr, JsonIsPredicate, NullTest, BooleanTest, CoerceToDomain, CoerceToDomainValue, SetToDefault, CurrentOfExpr, NextValueExpr, InferenceElem, TargetEntry, RangeTblRef, JoinExpr, FromExpr, OnConflictExpr, Query, TypeName, ColumnRef, ParamRef, A_Expr, TypeCast, CollateClause, RoleSpec, FuncCall, A_Star, A_Indices, A_Indirection, A_ArrayExpr, ResTarget, MultiAssignRef, SortBy, WindowDef, RangeSubselect, RangeFunction, RangeTableFunc, RangeTableFuncCol, RangeTableSample, ColumnDef, TableLikeClause, IndexElem, DefElem, LockingClause, XmlSerialize, PartitionElem, PartitionSpec, PartitionBoundSpec, PartitionRangeDatum, PartitionCmd, RangeTblEntry, RTEPermissionInfo, RangeTblFunction, TableSampleClause, WithCheckOption, SortGroupClause, GroupingSet, WindowClause, RowMarkClause, WithClause, InferClause, OnConflictClause, CTESearchClause, CTECycleClause, CommonTableExpr, MergeWhenClause, MergeAction, TriggerTransition, JsonOutput, JsonKeyValue, JsonObjectConstructor, JsonArrayConstructor, JsonArrayQueryConstructor, JsonAggConstructor, JsonObjectAgg, JsonArrayAgg, RawStmt, InsertStmt, DeleteStmt, UpdateStmt, MergeStmt, SelectStmt, SetOperationStmt, ReturnStmt, PLAssignStmt, CreateSchemaStmt, AlterTableStmt, ReplicaIdentityStmt, AlterTableCmd, AlterCollationStmt, AlterDomainStmt, GrantStmt, ObjectWithArgs, AccessPriv, GrantRoleStmt, AlterDefaultPrivilegesStmt, CopyStmt, VariableSetStmt, VariableShowStmt, CreateStmt, Constraint, CreateTableSpaceStmt, DropTableSpaceStmt, AlterTableSpaceOptionsStmt, AlterTableMoveAllStmt, CreateExtensionStmt, AlterExtensionStmt, AlterExtensionContentsStmt, CreateFdwStmt, AlterFdwStmt, CreateForeignServerStmt, AlterForeignServerStmt, CreateForeignTableStmt, CreateUserMappingStmt, AlterUserMappingStmt, DropUserMappingStmt, ImportForeignSchemaStmt, CreatePolicyStmt, AlterPolicyStmt, CreateAmStmt, CreateTrigStmt, CreateEventTrigStmt, AlterEventTrigStmt, CreatePLangStmt, CreateRoleStmt, AlterRoleStmt, AlterRoleSetStmt, DropRoleStmt, CreateSeqStmt, AlterSeqStmt, DefineStmt, CreateDomainStmt, CreateOpClassStmt, CreateOpClassItem, CreateOpFamilyStmt, AlterOpFamilyStmt, DropStmt, TruncateStmt, CommentStmt, SecLabelStmt, DeclareCursorStmt, ClosePortalStmt, FetchStmt, IndexStmt, CreateStatsStmt, StatsElem, AlterStatsStmt, CreateFunctionStmt, FunctionParameter, AlterFunctionStmt, DoStmt, InlineCodeBlock, CallStmt, CallContext, RenameStmt, AlterObjectDependsStmt, AlterObjectSchemaStmt, AlterOwnerStmt, AlterOperatorStmt, AlterTypeStmt, RuleStmt, NotifyStmt, ListenStmt, UnlistenStmt, TransactionStmt, CompositeTypeStmt, CreateEnumStmt, CreateRangeStmt, AlterEnumStmt, ViewStmt, LoadStmt, CreatedbStmt, AlterDatabaseStmt, AlterDatabaseRefreshCollStmt, AlterDatabaseSetStmt, DropdbStmt, AlterSystemStmt, ClusterStmt, VacuumStmt, VacuumRelation, ExplainStmt, CreateTableAsStmt, RefreshMatViewStmt, CheckPointStmt, DiscardStmt, LockStmt, ConstraintsSetStmt, ReindexStmt, CreateConversionStmt, CreateCastStmt, CreateTransformStmt, PrepareStmt, ExecuteStmt, DeallocateStmt, DropOwnedStmt, ReassignOwnedStmt, AlterTSDictionaryStmt, AlterTSConfigurationStmt, PublicationTable, PublicationObjSpec, CreatePublicationStmt, AlterPublicationStmt, CreateSubscriptionStmt, AlterSubscriptionStmt, DropSubscriptionStmt, ScanToken } from "./types"; export default { - parseResult(_p?: ParseResult): ParseResult { + parseResult(_p?: ParseResult, isNode?: boolean): ParseResult | { + ParseResult: ParseResult; + } { const _j = {} as ParseResult; _o.set(_j, "version", _p?.version); _o.set(_j, "stmts", _p?.stmts); + if (isNode) { + return { + ParseResult: _j + }; + } return _j; }, - scanResult(_p?: ScanResult): ScanResult { + scanResult(_p?: ScanResult, isNode?: boolean): ScanResult | { + ScanResult: ScanResult; + } { const _j = {} as ScanResult; _o.set(_j, "version", _p?.version); _o.set(_j, "tokens", _p?.tokens); + if (isNode) { + return { + ScanResult: _j + }; + } return _j; }, - integer(_p?: Integer): Integer { + integer(_p?: Integer, isNode?: boolean): Integer | { + Integer: Integer; + } { const _j = {} as Integer; _o.set(_j, "ival", _p?.ival); + if (isNode) { + return { + Integer: _j + }; + } return _j; }, - float(_p?: Float): Float { + float(_p?: Float, isNode?: boolean): Float | { + Float: Float; + } { const _j = {} as Float; _o.set(_j, "fval", _p?.fval); + if (isNode) { + return { + Float: _j + }; + } return _j; }, - boolean(_p?: Boolean): Boolean { + boolean(_p?: Boolean, isNode?: boolean): Boolean | { + Boolean: Boolean; + } { const _j = {} as Boolean; _o.set(_j, "boolval", _p?.boolval); + if (isNode) { + return { + Boolean: _j + }; + } return _j; }, - string(_p?: String): String { + string(_p?: String, isNode?: boolean): String | { + String: String; + } { const _j = {} as String; _o.set(_j, "sval", _p?.sval); + if (isNode) { + return { + String: _j + }; + } return _j; }, - bitString(_p?: BitString): BitString { + bitString(_p?: BitString, isNode?: boolean): BitString | { + BitString: BitString; + } { const _j = {} as BitString; _o.set(_j, "bsval", _p?.bsval); + if (isNode) { + return { + BitString: _j + }; + } return _j; }, - list(_p?: List): List { + list(_p?: List, isNode?: boolean): List | { + List: List; + } { const _j = {} as List; _o.set(_j, "items", _p?.items); + if (isNode) { + return { + List: _j + }; + } return _j; }, - oidList(_p?: OidList): OidList { + oidList(_p?: OidList, isNode?: boolean): OidList | { + OidList: OidList; + } { const _j = {} as OidList; _o.set(_j, "items", _p?.items); + if (isNode) { + return { + OidList: _j + }; + } return _j; }, - intList(_p?: IntList): IntList { + intList(_p?: IntList, isNode?: boolean): IntList | { + IntList: IntList; + } { const _j = {} as IntList; _o.set(_j, "items", _p?.items); + if (isNode) { + return { + IntList: _j + }; + } return _j; }, - aConst(_p?: A_Const): A_Const { + aConst(_p?: A_Const, isNode?: boolean): A_Const | { + A_Const: A_Const; + } { const _j = {} as A_Const; _o.set(_j, "ival", _p?.ival); _o.set(_j, "fval", _p?.fval); @@ -67,15 +139,29 @@ export default { _o.set(_j, "bsval", _p?.bsval); _o.set(_j, "isnull", _p?.isnull); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + A_Const: _j + }; + } return _j; }, - alias(_p?: Alias): Alias { + alias(_p?: Alias, isNode?: boolean): Alias | { + Alias: Alias; + } { const _j = {} as Alias; _o.set(_j, "aliasname", _p?.aliasname); _o.set(_j, "colnames", _p?.colnames); + if (isNode) { + return { + Alias: _j + }; + } return _j; }, - rangeVar(_p?: RangeVar): RangeVar { + rangeVar(_p?: RangeVar, isNode?: boolean): RangeVar | { + RangeVar: RangeVar; + } { const _j = {} as RangeVar; _o.set(_j, "catalogname", _p?.catalogname); _o.set(_j, "schemaname", _p?.schemaname); @@ -84,9 +170,16 @@ export default { _o.set(_j, "relpersistence", _p?.relpersistence); _o.set(_j, "alias", _p?.alias); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RangeVar: _j + }; + } return _j; }, - tableFunc(_p?: TableFunc): TableFunc { + tableFunc(_p?: TableFunc, isNode?: boolean): TableFunc | { + TableFunc: TableFunc; + } { const _j = {} as TableFunc; _o.set(_j, "ns_uris", _p?.ns_uris); _o.set(_j, "ns_names", _p?.ns_names); @@ -101,9 +194,16 @@ export default { _o.set(_j, "notnulls", _p?.notnulls); _o.set(_j, "ordinalitycol", _p?.ordinalitycol); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + TableFunc: _j + }; + } return _j; }, - intoClause(_p?: IntoClause): IntoClause { + intoClause(_p?: IntoClause, isNode?: boolean): IntoClause | { + IntoClause: IntoClause; + } { const _j = {} as IntoClause; _o.set(_j, "rel", _p?.rel); _o.set(_j, "colNames", _p?.colNames); @@ -113,9 +213,16 @@ export default { _o.set(_j, "tableSpaceName", _p?.tableSpaceName); _o.set(_j, "viewQuery", _p?.viewQuery); _o.set(_j, "skipData", _p?.skipData); + if (isNode) { + return { + IntoClause: _j + }; + } return _j; }, - var(_p?: Var): Var { + var(_p?: Var, isNode?: boolean): Var | { + Var: Var; + } { const _j = {} as Var; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "varno", _p?.varno); @@ -126,9 +233,16 @@ export default { _o.set(_j, "varnullingrels", _p?.varnullingrels); _o.set(_j, "varlevelsup", _p?.varlevelsup); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + Var: _j + }; + } return _j; }, - param(_p?: Param): Param { + param(_p?: Param, isNode?: boolean): Param | { + Param: Param; + } { const _j = {} as Param; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "paramkind", _p?.paramkind); @@ -137,9 +251,16 @@ export default { _o.set(_j, "paramtypmod", _p?.paramtypmod); _o.set(_j, "paramcollid", _p?.paramcollid); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + Param: _j + }; + } return _j; }, - aggref(_p?: Aggref): Aggref { + aggref(_p?: Aggref, isNode?: boolean): Aggref | { + Aggref: Aggref; + } { const _j = {} as Aggref; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "aggfnoid", _p?.aggfnoid); @@ -160,18 +281,32 @@ export default { _o.set(_j, "aggno", _p?.aggno); _o.set(_j, "aggtransno", _p?.aggtransno); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + Aggref: _j + }; + } return _j; }, - groupingFunc(_p?: GroupingFunc): GroupingFunc { + groupingFunc(_p?: GroupingFunc, isNode?: boolean): GroupingFunc | { + GroupingFunc: GroupingFunc; + } { const _j = {} as GroupingFunc; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "args", _p?.args); _o.set(_j, "refs", _p?.refs); _o.set(_j, "agglevelsup", _p?.agglevelsup); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + GroupingFunc: _j + }; + } return _j; }, - windowFunc(_p?: WindowFunc): WindowFunc { + windowFunc(_p?: WindowFunc, isNode?: boolean): WindowFunc | { + WindowFunc: WindowFunc; + } { const _j = {} as WindowFunc; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "winfnoid", _p?.winfnoid); @@ -184,9 +319,16 @@ export default { _o.set(_j, "winstar", _p?.winstar); _o.set(_j, "winagg", _p?.winagg); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + WindowFunc: _j + }; + } return _j; }, - subscriptingRef(_p?: SubscriptingRef): SubscriptingRef { + subscriptingRef(_p?: SubscriptingRef, isNode?: boolean): SubscriptingRef | { + SubscriptingRef: SubscriptingRef; + } { const _j = {} as SubscriptingRef; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "refcontainertype", _p?.refcontainertype); @@ -198,9 +340,16 @@ export default { _o.set(_j, "reflowerindexpr", _p?.reflowerindexpr); _o.set(_j, "refexpr", _p?.refexpr); _o.set(_j, "refassgnexpr", _p?.refassgnexpr); + if (isNode) { + return { + SubscriptingRef: _j + }; + } return _j; }, - funcExpr(_p?: FuncExpr): FuncExpr { + funcExpr(_p?: FuncExpr, isNode?: boolean): FuncExpr | { + FuncExpr: FuncExpr; + } { const _j = {} as FuncExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "funcid", _p?.funcid); @@ -212,18 +361,32 @@ export default { _o.set(_j, "inputcollid", _p?.inputcollid); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + FuncExpr: _j + }; + } return _j; }, - namedArgExpr(_p?: NamedArgExpr): NamedArgExpr { + namedArgExpr(_p?: NamedArgExpr, isNode?: boolean): NamedArgExpr | { + NamedArgExpr: NamedArgExpr; + } { const _j = {} as NamedArgExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); _o.set(_j, "name", _p?.name); _o.set(_j, "argnumber", _p?.argnumber); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + NamedArgExpr: _j + }; + } return _j; }, - opExpr(_p?: OpExpr): OpExpr { + opExpr(_p?: OpExpr, isNode?: boolean): OpExpr | { + OpExpr: OpExpr; + } { const _j = {} as OpExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "opno", _p?.opno); @@ -233,9 +396,16 @@ export default { _o.set(_j, "inputcollid", _p?.inputcollid); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + OpExpr: _j + }; + } return _j; }, - distinctExpr(_p?: DistinctExpr): DistinctExpr { + distinctExpr(_p?: DistinctExpr, isNode?: boolean): DistinctExpr | { + DistinctExpr: DistinctExpr; + } { const _j = {} as DistinctExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "opno", _p?.opno); @@ -245,9 +415,16 @@ export default { _o.set(_j, "inputcollid", _p?.inputcollid); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + DistinctExpr: _j + }; + } return _j; }, - nullIfExpr(_p?: NullIfExpr): NullIfExpr { + nullIfExpr(_p?: NullIfExpr, isNode?: boolean): NullIfExpr | { + NullIfExpr: NullIfExpr; + } { const _j = {} as NullIfExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "opno", _p?.opno); @@ -257,9 +434,16 @@ export default { _o.set(_j, "inputcollid", _p?.inputcollid); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + NullIfExpr: _j + }; + } return _j; }, - scalarArrayOpExpr(_p?: ScalarArrayOpExpr): ScalarArrayOpExpr { + scalarArrayOpExpr(_p?: ScalarArrayOpExpr, isNode?: boolean): ScalarArrayOpExpr | { + ScalarArrayOpExpr: ScalarArrayOpExpr; + } { const _j = {} as ScalarArrayOpExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "opno", _p?.opno); @@ -267,17 +451,31 @@ export default { _o.set(_j, "inputcollid", _p?.inputcollid); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ScalarArrayOpExpr: _j + }; + } return _j; }, - boolExpr(_p?: BoolExpr): BoolExpr { + boolExpr(_p?: BoolExpr, isNode?: boolean): BoolExpr | { + BoolExpr: BoolExpr; + } { const _j = {} as BoolExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "boolop", _p?.boolop); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + BoolExpr: _j + }; + } return _j; }, - subLink(_p?: SubLink): SubLink { + subLink(_p?: SubLink, isNode?: boolean): SubLink | { + SubLink: SubLink; + } { const _j = {} as SubLink; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "subLinkType", _p?.subLinkType); @@ -286,9 +484,16 @@ export default { _o.set(_j, "operName", _p?.operName); _o.set(_j, "subselect", _p?.subselect); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + SubLink: _j + }; + } return _j; }, - subPlan(_p?: SubPlan): SubPlan { + subPlan(_p?: SubPlan, isNode?: boolean): SubPlan | { + SubPlan: SubPlan; + } { const _j = {} as SubPlan; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "subLinkType", _p?.subLinkType); @@ -307,15 +512,29 @@ export default { _o.set(_j, "args", _p?.args); _o.set(_j, "startup_cost", _p?.startup_cost); _o.set(_j, "per_call_cost", _p?.per_call_cost); + if (isNode) { + return { + SubPlan: _j + }; + } return _j; }, - alternativeSubPlan(_p?: AlternativeSubPlan): AlternativeSubPlan { + alternativeSubPlan(_p?: AlternativeSubPlan, isNode?: boolean): AlternativeSubPlan | { + AlternativeSubPlan: AlternativeSubPlan; + } { const _j = {} as AlternativeSubPlan; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "subplans", _p?.subplans); + if (isNode) { + return { + AlternativeSubPlan: _j + }; + } return _j; }, - fieldSelect(_p?: FieldSelect): FieldSelect { + fieldSelect(_p?: FieldSelect, isNode?: boolean): FieldSelect | { + FieldSelect: FieldSelect; + } { const _j = {} as FieldSelect; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); @@ -323,18 +542,32 @@ export default { _o.set(_j, "resulttype", _p?.resulttype); _o.set(_j, "resulttypmod", _p?.resulttypmod); _o.set(_j, "resultcollid", _p?.resultcollid); + if (isNode) { + return { + FieldSelect: _j + }; + } return _j; }, - fieldStore(_p?: FieldStore): FieldStore { + fieldStore(_p?: FieldStore, isNode?: boolean): FieldStore | { + FieldStore: FieldStore; + } { const _j = {} as FieldStore; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); _o.set(_j, "newvals", _p?.newvals); _o.set(_j, "fieldnums", _p?.fieldnums); _o.set(_j, "resulttype", _p?.resulttype); + if (isNode) { + return { + FieldStore: _j + }; + } return _j; }, - relabelType(_p?: RelabelType): RelabelType { + relabelType(_p?: RelabelType, isNode?: boolean): RelabelType | { + RelabelType: RelabelType; + } { const _j = {} as RelabelType; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); @@ -343,9 +576,16 @@ export default { _o.set(_j, "resultcollid", _p?.resultcollid); _o.set(_j, "relabelformat", _p?.relabelformat); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RelabelType: _j + }; + } return _j; }, - coerceViaio(_p?: CoerceViaIO): CoerceViaIO { + coerceViaio(_p?: CoerceViaIO, isNode?: boolean): CoerceViaIO | { + CoerceViaIO: CoerceViaIO; + } { const _j = {} as CoerceViaIO; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); @@ -353,9 +593,16 @@ export default { _o.set(_j, "resultcollid", _p?.resultcollid); _o.set(_j, "coerceformat", _p?.coerceformat); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CoerceViaIO: _j + }; + } return _j; }, - arrayCoerceExpr(_p?: ArrayCoerceExpr): ArrayCoerceExpr { + arrayCoerceExpr(_p?: ArrayCoerceExpr, isNode?: boolean): ArrayCoerceExpr | { + ArrayCoerceExpr: ArrayCoerceExpr; + } { const _j = {} as ArrayCoerceExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); @@ -365,26 +612,47 @@ export default { _o.set(_j, "resultcollid", _p?.resultcollid); _o.set(_j, "coerceformat", _p?.coerceformat); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ArrayCoerceExpr: _j + }; + } return _j; }, - convertRowtypeExpr(_p?: ConvertRowtypeExpr): ConvertRowtypeExpr { + convertRowtypeExpr(_p?: ConvertRowtypeExpr, isNode?: boolean): ConvertRowtypeExpr | { + ConvertRowtypeExpr: ConvertRowtypeExpr; + } { const _j = {} as ConvertRowtypeExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); _o.set(_j, "resulttype", _p?.resulttype); _o.set(_j, "convertformat", _p?.convertformat); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ConvertRowtypeExpr: _j + }; + } return _j; }, - collateExpr(_p?: CollateExpr): CollateExpr { + collateExpr(_p?: CollateExpr, isNode?: boolean): CollateExpr | { + CollateExpr: CollateExpr; + } { const _j = {} as CollateExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); _o.set(_j, "collOid", _p?.collOid); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CollateExpr: _j + }; + } return _j; }, - caseExpr(_p?: CaseExpr): CaseExpr { + caseExpr(_p?: CaseExpr, isNode?: boolean): CaseExpr | { + CaseExpr: CaseExpr; + } { const _j = {} as CaseExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "casetype", _p?.casetype); @@ -393,25 +661,46 @@ export default { _o.set(_j, "args", _p?.args); _o.set(_j, "defresult", _p?.defresult); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CaseExpr: _j + }; + } return _j; }, - caseWhen(_p?: CaseWhen): CaseWhen { + caseWhen(_p?: CaseWhen, isNode?: boolean): CaseWhen | { + CaseWhen: CaseWhen; + } { const _j = {} as CaseWhen; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "expr", _p?.expr); _o.set(_j, "result", _p?.result); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CaseWhen: _j + }; + } return _j; }, - caseTestExpr(_p?: CaseTestExpr): CaseTestExpr { + caseTestExpr(_p?: CaseTestExpr, isNode?: boolean): CaseTestExpr | { + CaseTestExpr: CaseTestExpr; + } { const _j = {} as CaseTestExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "typeId", _p?.typeId); _o.set(_j, "typeMod", _p?.typeMod); _o.set(_j, "collation", _p?.collation); + if (isNode) { + return { + CaseTestExpr: _j + }; + } return _j; }, - arrayExpr(_p?: ArrayExpr): ArrayExpr { + arrayExpr(_p?: ArrayExpr, isNode?: boolean): ArrayExpr | { + ArrayExpr: ArrayExpr; + } { const _j = {} as ArrayExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "array_typeid", _p?.array_typeid); @@ -420,9 +709,16 @@ export default { _o.set(_j, "elements", _p?.elements); _o.set(_j, "multidims", _p?.multidims); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ArrayExpr: _j + }; + } return _j; }, - rowExpr(_p?: RowExpr): RowExpr { + rowExpr(_p?: RowExpr, isNode?: boolean): RowExpr | { + RowExpr: RowExpr; + } { const _j = {} as RowExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "args", _p?.args); @@ -430,9 +726,16 @@ export default { _o.set(_j, "row_format", _p?.row_format); _o.set(_j, "colnames", _p?.colnames); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RowExpr: _j + }; + } return _j; }, - rowCompareExpr(_p?: RowCompareExpr): RowCompareExpr { + rowCompareExpr(_p?: RowCompareExpr, isNode?: boolean): RowCompareExpr | { + RowCompareExpr: RowCompareExpr; + } { const _j = {} as RowCompareExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "rctype", _p?.rctype); @@ -441,18 +744,32 @@ export default { _o.set(_j, "inputcollids", _p?.inputcollids); _o.set(_j, "largs", _p?.largs); _o.set(_j, "rargs", _p?.rargs); + if (isNode) { + return { + RowCompareExpr: _j + }; + } return _j; }, - coalesceExpr(_p?: CoalesceExpr): CoalesceExpr { + coalesceExpr(_p?: CoalesceExpr, isNode?: boolean): CoalesceExpr | { + CoalesceExpr: CoalesceExpr; + } { const _j = {} as CoalesceExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "coalescetype", _p?.coalescetype); _o.set(_j, "coalescecollid", _p?.coalescecollid); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CoalesceExpr: _j + }; + } return _j; }, - minMaxExpr(_p?: MinMaxExpr): MinMaxExpr { + minMaxExpr(_p?: MinMaxExpr, isNode?: boolean): MinMaxExpr | { + MinMaxExpr: MinMaxExpr; + } { const _j = {} as MinMaxExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "minmaxtype", _p?.minmaxtype); @@ -461,18 +778,32 @@ export default { _o.set(_j, "op", _p?.op); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + MinMaxExpr: _j + }; + } return _j; }, - sqlValueFunction(_p?: SQLValueFunction): SQLValueFunction { + sqlValueFunction(_p?: SQLValueFunction, isNode?: boolean): SQLValueFunction | { + SQLValueFunction: SQLValueFunction; + } { const _j = {} as SQLValueFunction; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "op", _p?.op); _o.set(_j, "type", _p?.type); _o.set(_j, "typmod", _p?.typmod); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + SQLValueFunction: _j + }; + } return _j; }, - xmlExpr(_p?: XmlExpr): XmlExpr { + xmlExpr(_p?: XmlExpr, isNode?: boolean): XmlExpr | { + XmlExpr: XmlExpr; + } { const _j = {} as XmlExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "op", _p?.op); @@ -485,30 +816,58 @@ export default { _o.set(_j, "type", _p?.type); _o.set(_j, "typmod", _p?.typmod); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + XmlExpr: _j + }; + } return _j; }, - jsonFormat(_p?: JsonFormat): JsonFormat { + jsonFormat(_p?: JsonFormat, isNode?: boolean): JsonFormat | { + JsonFormat: JsonFormat; + } { const _j = {} as JsonFormat; _o.set(_j, "format_type", _p?.format_type); _o.set(_j, "encoding", _p?.encoding); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonFormat: _j + }; + } return _j; }, - jsonReturning(_p?: JsonReturning): JsonReturning { + jsonReturning(_p?: JsonReturning, isNode?: boolean): JsonReturning | { + JsonReturning: JsonReturning; + } { const _j = {} as JsonReturning; _o.set(_j, "format", _p?.format); _o.set(_j, "typid", _p?.typid); _o.set(_j, "typmod", _p?.typmod); + if (isNode) { + return { + JsonReturning: _j + }; + } return _j; }, - jsonValueExpr(_p?: JsonValueExpr): JsonValueExpr { + jsonValueExpr(_p?: JsonValueExpr, isNode?: boolean): JsonValueExpr | { + JsonValueExpr: JsonValueExpr; + } { const _j = {} as JsonValueExpr; _o.set(_j, "raw_expr", _p?.raw_expr); _o.set(_j, "formatted_expr", _p?.formatted_expr); _o.set(_j, "format", _p?.format); + if (isNode) { + return { + JsonValueExpr: _j + }; + } return _j; }, - jsonConstructorExpr(_p?: JsonConstructorExpr): JsonConstructorExpr { + jsonConstructorExpr(_p?: JsonConstructorExpr, isNode?: boolean): JsonConstructorExpr | { + JsonConstructorExpr: JsonConstructorExpr; + } { const _j = {} as JsonConstructorExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "type", _p?.type); @@ -519,35 +878,63 @@ export default { _o.set(_j, "absent_on_null", _p?.absent_on_null); _o.set(_j, "unique", _p?.unique); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonConstructorExpr: _j + }; + } return _j; }, - jsonIsPredicate(_p?: JsonIsPredicate): JsonIsPredicate { + jsonIsPredicate(_p?: JsonIsPredicate, isNode?: boolean): JsonIsPredicate | { + JsonIsPredicate: JsonIsPredicate; + } { const _j = {} as JsonIsPredicate; _o.set(_j, "expr", _p?.expr); _o.set(_j, "format", _p?.format); _o.set(_j, "item_type", _p?.item_type); _o.set(_j, "unique_keys", _p?.unique_keys); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonIsPredicate: _j + }; + } return _j; }, - nullTest(_p?: NullTest): NullTest { + nullTest(_p?: NullTest, isNode?: boolean): NullTest | { + NullTest: NullTest; + } { const _j = {} as NullTest; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); _o.set(_j, "nulltesttype", _p?.nulltesttype); _o.set(_j, "argisrow", _p?.argisrow); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + NullTest: _j + }; + } return _j; }, - booleanTest(_p?: BooleanTest): BooleanTest { + booleanTest(_p?: BooleanTest, isNode?: boolean): BooleanTest | { + BooleanTest: BooleanTest; + } { const _j = {} as BooleanTest; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); _o.set(_j, "booltesttype", _p?.booltesttype); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + BooleanTest: _j + }; + } return _j; }, - coerceToDomain(_p?: CoerceToDomain): CoerceToDomain { + coerceToDomain(_p?: CoerceToDomain, isNode?: boolean): CoerceToDomain | { + CoerceToDomain: CoerceToDomain; + } { const _j = {} as CoerceToDomain; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); @@ -556,50 +943,92 @@ export default { _o.set(_j, "resultcollid", _p?.resultcollid); _o.set(_j, "coercionformat", _p?.coercionformat); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CoerceToDomain: _j + }; + } return _j; }, - coerceToDomainValue(_p?: CoerceToDomainValue): CoerceToDomainValue { + coerceToDomainValue(_p?: CoerceToDomainValue, isNode?: boolean): CoerceToDomainValue | { + CoerceToDomainValue: CoerceToDomainValue; + } { const _j = {} as CoerceToDomainValue; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "typeId", _p?.typeId); _o.set(_j, "typeMod", _p?.typeMod); _o.set(_j, "collation", _p?.collation); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CoerceToDomainValue: _j + }; + } return _j; }, - setToDefault(_p?: SetToDefault): SetToDefault { + setToDefault(_p?: SetToDefault, isNode?: boolean): SetToDefault | { + SetToDefault: SetToDefault; + } { const _j = {} as SetToDefault; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "typeId", _p?.typeId); _o.set(_j, "typeMod", _p?.typeMod); _o.set(_j, "collation", _p?.collation); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + SetToDefault: _j + }; + } return _j; }, - currentOfExpr(_p?: CurrentOfExpr): CurrentOfExpr { + currentOfExpr(_p?: CurrentOfExpr, isNode?: boolean): CurrentOfExpr | { + CurrentOfExpr: CurrentOfExpr; + } { const _j = {} as CurrentOfExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "cvarno", _p?.cvarno); _o.set(_j, "cursor_name", _p?.cursor_name); _o.set(_j, "cursor_param", _p?.cursor_param); + if (isNode) { + return { + CurrentOfExpr: _j + }; + } return _j; }, - nextValueExpr(_p?: NextValueExpr): NextValueExpr { + nextValueExpr(_p?: NextValueExpr, isNode?: boolean): NextValueExpr | { + NextValueExpr: NextValueExpr; + } { const _j = {} as NextValueExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "seqid", _p?.seqid); _o.set(_j, "typeId", _p?.typeId); + if (isNode) { + return { + NextValueExpr: _j + }; + } return _j; }, - inferenceElem(_p?: InferenceElem): InferenceElem { + inferenceElem(_p?: InferenceElem, isNode?: boolean): InferenceElem | { + InferenceElem: InferenceElem; + } { const _j = {} as InferenceElem; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "expr", _p?.expr); _o.set(_j, "infercollid", _p?.infercollid); _o.set(_j, "inferopclass", _p?.inferopclass); + if (isNode) { + return { + InferenceElem: _j + }; + } return _j; }, - targetEntry(_p?: TargetEntry): TargetEntry { + targetEntry(_p?: TargetEntry, isNode?: boolean): TargetEntry | { + TargetEntry: TargetEntry; + } { const _j = {} as TargetEntry; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "expr", _p?.expr); @@ -609,14 +1038,28 @@ export default { _o.set(_j, "resorigtbl", _p?.resorigtbl); _o.set(_j, "resorigcol", _p?.resorigcol); _o.set(_j, "resjunk", _p?.resjunk); + if (isNode) { + return { + TargetEntry: _j + }; + } return _j; }, - rangeTblRef(_p?: RangeTblRef): RangeTblRef { + rangeTblRef(_p?: RangeTblRef, isNode?: boolean): RangeTblRef | { + RangeTblRef: RangeTblRef; + } { const _j = {} as RangeTblRef; _o.set(_j, "rtindex", _p?.rtindex); + if (isNode) { + return { + RangeTblRef: _j + }; + } return _j; }, - joinExpr(_p?: JoinExpr): JoinExpr { + joinExpr(_p?: JoinExpr, isNode?: boolean): JoinExpr | { + JoinExpr: JoinExpr; + } { const _j = {} as JoinExpr; _o.set(_j, "jointype", _p?.jointype); _o.set(_j, "isNatural", _p?.isNatural); @@ -627,15 +1070,29 @@ export default { _o.set(_j, "quals", _p?.quals); _o.set(_j, "alias", _p?.alias); _o.set(_j, "rtindex", _p?.rtindex); + if (isNode) { + return { + JoinExpr: _j + }; + } return _j; }, - fromExpr(_p?: FromExpr): FromExpr { + fromExpr(_p?: FromExpr, isNode?: boolean): FromExpr | { + FromExpr: FromExpr; + } { const _j = {} as FromExpr; _o.set(_j, "fromlist", _p?.fromlist); _o.set(_j, "quals", _p?.quals); + if (isNode) { + return { + FromExpr: _j + }; + } return _j; }, - onConflictExpr(_p?: OnConflictExpr): OnConflictExpr { + onConflictExpr(_p?: OnConflictExpr, isNode?: boolean): OnConflictExpr | { + OnConflictExpr: OnConflictExpr; + } { const _j = {} as OnConflictExpr; _o.set(_j, "action", _p?.action); _o.set(_j, "arbiterElems", _p?.arbiterElems); @@ -645,9 +1102,16 @@ export default { _o.set(_j, "onConflictWhere", _p?.onConflictWhere); _o.set(_j, "exclRelIndex", _p?.exclRelIndex); _o.set(_j, "exclRelTlist", _p?.exclRelTlist); + if (isNode) { + return { + OnConflictExpr: _j + }; + } return _j; }, - query(_p?: Query): Query { + query(_p?: Query, isNode?: boolean): Query | { + Query: Query; + } { const _j = {} as Query; _o.set(_j, "commandType", _p?.commandType); _o.set(_j, "querySource", _p?.querySource); @@ -690,9 +1154,16 @@ export default { _o.set(_j, "withCheckOptions", _p?.withCheckOptions); _o.set(_j, "stmt_location", _p?.stmt_location); _o.set(_j, "stmt_len", _p?.stmt_len); + if (isNode) { + return { + Query: _j + }; + } return _j; }, - typeName(_p?: TypeName): TypeName { + typeName(_p?: TypeName, isNode?: boolean): TypeName | { + TypeName: TypeName; + } { const _j = {} as TypeName; _o.set(_j, "names", _p?.names); _o.set(_j, "typeOid", _p?.typeOid); @@ -702,51 +1173,100 @@ export default { _o.set(_j, "typemod", _p?.typemod); _o.set(_j, "arrayBounds", _p?.arrayBounds); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + TypeName: _j + }; + } return _j; }, - columnRef(_p?: ColumnRef): ColumnRef { + columnRef(_p?: ColumnRef, isNode?: boolean): ColumnRef | { + ColumnRef: ColumnRef; + } { const _j = {} as ColumnRef; _o.set(_j, "fields", _p?.fields); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ColumnRef: _j + }; + } return _j; }, - paramRef(_p?: ParamRef): ParamRef { + paramRef(_p?: ParamRef, isNode?: boolean): ParamRef | { + ParamRef: ParamRef; + } { const _j = {} as ParamRef; _o.set(_j, "number", _p?.number); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ParamRef: _j + }; + } return _j; }, - aExpr(_p?: A_Expr): A_Expr { + aExpr(_p?: A_Expr, isNode?: boolean): A_Expr | { + A_Expr: A_Expr; + } { const _j = {} as A_Expr; _o.set(_j, "kind", _p?.kind); _o.set(_j, "name", _p?.name); _o.set(_j, "lexpr", _p?.lexpr); _o.set(_j, "rexpr", _p?.rexpr); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + A_Expr: _j + }; + } return _j; }, - typeCast(_p?: TypeCast): TypeCast { + typeCast(_p?: TypeCast, isNode?: boolean): TypeCast | { + TypeCast: TypeCast; + } { const _j = {} as TypeCast; _o.set(_j, "arg", _p?.arg); _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + TypeCast: _j + }; + } return _j; }, - collateClause(_p?: CollateClause): CollateClause { + collateClause(_p?: CollateClause, isNode?: boolean): CollateClause | { + CollateClause: CollateClause; + } { const _j = {} as CollateClause; _o.set(_j, "arg", _p?.arg); _o.set(_j, "collname", _p?.collname); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CollateClause: _j + }; + } return _j; }, - roleSpec(_p?: RoleSpec): RoleSpec { + roleSpec(_p?: RoleSpec, isNode?: boolean): RoleSpec | { + RoleSpec: RoleSpec; + } { const _j = {} as RoleSpec; _o.set(_j, "roletype", _p?.roletype); _o.set(_j, "rolename", _p?.rolename); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RoleSpec: _j + }; + } return _j; }, - funcCall(_p?: FuncCall): FuncCall { + funcCall(_p?: FuncCall, isNode?: boolean): FuncCall | { + FuncCall: FuncCall; + } { const _j = {} as FuncCall; _o.set(_j, "funcname", _p?.funcname); _o.set(_j, "args", _p?.args); @@ -759,56 +1279,112 @@ export default { _o.set(_j, "func_variadic", _p?.func_variadic); _o.set(_j, "funcformat", _p?.funcformat); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + FuncCall: _j + }; + } return _j; }, - aStar(_p?: A_Star): A_Star { + aStar(_p?: A_Star, isNode?: boolean): A_Star | { + A_Star: A_Star; + } { const _j = {} as A_Star; + if (isNode) { + return { + A_Star: _j + }; + } return _j; }, - aIndices(_p?: A_Indices): A_Indices { + aIndices(_p?: A_Indices, isNode?: boolean): A_Indices | { + A_Indices: A_Indices; + } { const _j = {} as A_Indices; _o.set(_j, "is_slice", _p?.is_slice); _o.set(_j, "lidx", _p?.lidx); _o.set(_j, "uidx", _p?.uidx); + if (isNode) { + return { + A_Indices: _j + }; + } return _j; }, - aIndirection(_p?: A_Indirection): A_Indirection { + aIndirection(_p?: A_Indirection, isNode?: boolean): A_Indirection | { + A_Indirection: A_Indirection; + } { const _j = {} as A_Indirection; _o.set(_j, "arg", _p?.arg); _o.set(_j, "indirection", _p?.indirection); + if (isNode) { + return { + A_Indirection: _j + }; + } return _j; }, - aArrayExpr(_p?: A_ArrayExpr): A_ArrayExpr { + aArrayExpr(_p?: A_ArrayExpr, isNode?: boolean): A_ArrayExpr | { + A_ArrayExpr: A_ArrayExpr; + } { const _j = {} as A_ArrayExpr; _o.set(_j, "elements", _p?.elements); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + A_ArrayExpr: _j + }; + } return _j; }, - resTarget(_p?: ResTarget): ResTarget { + resTarget(_p?: ResTarget, isNode?: boolean): ResTarget | { + ResTarget: ResTarget; + } { const _j = {} as ResTarget; _o.set(_j, "name", _p?.name); _o.set(_j, "indirection", _p?.indirection); _o.set(_j, "val", _p?.val); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ResTarget: _j + }; + } return _j; }, - multiAssignRef(_p?: MultiAssignRef): MultiAssignRef { + multiAssignRef(_p?: MultiAssignRef, isNode?: boolean): MultiAssignRef | { + MultiAssignRef: MultiAssignRef; + } { const _j = {} as MultiAssignRef; _o.set(_j, "source", _p?.source); _o.set(_j, "colno", _p?.colno); _o.set(_j, "ncolumns", _p?.ncolumns); + if (isNode) { + return { + MultiAssignRef: _j + }; + } return _j; }, - sortBy(_p?: SortBy): SortBy { + sortBy(_p?: SortBy, isNode?: boolean): SortBy | { + SortBy: SortBy; + } { const _j = {} as SortBy; _o.set(_j, "node", _p?.node); _o.set(_j, "sortby_dir", _p?.sortby_dir); _o.set(_j, "sortby_nulls", _p?.sortby_nulls); _o.set(_j, "useOp", _p?.useOp); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + SortBy: _j + }; + } return _j; }, - windowDef(_p?: WindowDef): WindowDef { + windowDef(_p?: WindowDef, isNode?: boolean): WindowDef | { + WindowDef: WindowDef; + } { const _j = {} as WindowDef; _o.set(_j, "name", _p?.name); _o.set(_j, "refname", _p?.refname); @@ -818,16 +1394,30 @@ export default { _o.set(_j, "startOffset", _p?.startOffset); _o.set(_j, "endOffset", _p?.endOffset); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + WindowDef: _j + }; + } return _j; }, - rangeSubselect(_p?: RangeSubselect): RangeSubselect { + rangeSubselect(_p?: RangeSubselect, isNode?: boolean): RangeSubselect | { + RangeSubselect: RangeSubselect; + } { const _j = {} as RangeSubselect; _o.set(_j, "lateral", _p?.lateral); _o.set(_j, "subquery", _p?.subquery); _o.set(_j, "alias", _p?.alias); + if (isNode) { + return { + RangeSubselect: _j + }; + } return _j; }, - rangeFunction(_p?: RangeFunction): RangeFunction { + rangeFunction(_p?: RangeFunction, isNode?: boolean): RangeFunction | { + RangeFunction: RangeFunction; + } { const _j = {} as RangeFunction; _o.set(_j, "lateral", _p?.lateral); _o.set(_j, "ordinality", _p?.ordinality); @@ -835,9 +1425,16 @@ export default { _o.set(_j, "functions", _p?.functions); _o.set(_j, "alias", _p?.alias); _o.set(_j, "coldeflist", _p?.coldeflist); + if (isNode) { + return { + RangeFunction: _j + }; + } return _j; }, - rangeTableFunc(_p?: RangeTableFunc): RangeTableFunc { + rangeTableFunc(_p?: RangeTableFunc, isNode?: boolean): RangeTableFunc | { + RangeTableFunc: RangeTableFunc; + } { const _j = {} as RangeTableFunc; _o.set(_j, "lateral", _p?.lateral); _o.set(_j, "docexpr", _p?.docexpr); @@ -846,9 +1443,16 @@ export default { _o.set(_j, "columns", _p?.columns); _o.set(_j, "alias", _p?.alias); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RangeTableFunc: _j + }; + } return _j; }, - rangeTableFuncCol(_p?: RangeTableFuncCol): RangeTableFuncCol { + rangeTableFuncCol(_p?: RangeTableFuncCol, isNode?: boolean): RangeTableFuncCol | { + RangeTableFuncCol: RangeTableFuncCol; + } { const _j = {} as RangeTableFuncCol; _o.set(_j, "colname", _p?.colname); _o.set(_j, "typeName", _p?.typeName); @@ -857,18 +1461,32 @@ export default { _o.set(_j, "colexpr", _p?.colexpr); _o.set(_j, "coldefexpr", _p?.coldefexpr); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RangeTableFuncCol: _j + }; + } return _j; }, - rangeTableSample(_p?: RangeTableSample): RangeTableSample { + rangeTableSample(_p?: RangeTableSample, isNode?: boolean): RangeTableSample | { + RangeTableSample: RangeTableSample; + } { const _j = {} as RangeTableSample; _o.set(_j, "relation", _p?.relation); _o.set(_j, "method", _p?.method); _o.set(_j, "args", _p?.args); _o.set(_j, "repeatable", _p?.repeatable); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RangeTableSample: _j + }; + } return _j; }, - columnDef(_p?: ColumnDef): ColumnDef { + columnDef(_p?: ColumnDef, isNode?: boolean): ColumnDef | { + ColumnDef: ColumnDef; + } { const _j = {} as ColumnDef; _o.set(_j, "colname", _p?.colname); _o.set(_j, "typeName", _p?.typeName); @@ -889,16 +1507,30 @@ export default { _o.set(_j, "constraints", _p?.constraints); _o.set(_j, "fdwoptions", _p?.fdwoptions); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ColumnDef: _j + }; + } return _j; }, - tableLikeClause(_p?: TableLikeClause): TableLikeClause { + tableLikeClause(_p?: TableLikeClause, isNode?: boolean): TableLikeClause | { + TableLikeClause: TableLikeClause; + } { const _j = {} as TableLikeClause; _o.set(_j, "relation", _p?.relation); _o.set(_j, "options", _p?.options); _o.set(_j, "relationOid", _p?.relationOid); + if (isNode) { + return { + TableLikeClause: _j + }; + } return _j; }, - indexElem(_p?: IndexElem): IndexElem { + indexElem(_p?: IndexElem, isNode?: boolean): IndexElem | { + IndexElem: IndexElem; + } { const _j = {} as IndexElem; _o.set(_j, "name", _p?.name); _o.set(_j, "expr", _p?.expr); @@ -908,50 +1540,92 @@ export default { _o.set(_j, "opclassopts", _p?.opclassopts); _o.set(_j, "ordering", _p?.ordering); _o.set(_j, "nulls_ordering", _p?.nulls_ordering); + if (isNode) { + return { + IndexElem: _j + }; + } return _j; }, - defElem(_p?: DefElem): DefElem { + defElem(_p?: DefElem, isNode?: boolean): DefElem | { + DefElem: DefElem; + } { const _j = {} as DefElem; _o.set(_j, "defnamespace", _p?.defnamespace); _o.set(_j, "defname", _p?.defname); _o.set(_j, "arg", _p?.arg); _o.set(_j, "defaction", _p?.defaction); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + DefElem: _j + }; + } return _j; }, - lockingClause(_p?: LockingClause): LockingClause { + lockingClause(_p?: LockingClause, isNode?: boolean): LockingClause | { + LockingClause: LockingClause; + } { const _j = {} as LockingClause; _o.set(_j, "lockedRels", _p?.lockedRels); _o.set(_j, "strength", _p?.strength); _o.set(_j, "waitPolicy", _p?.waitPolicy); + if (isNode) { + return { + LockingClause: _j + }; + } return _j; }, - xmlSerialize(_p?: XmlSerialize): XmlSerialize { + xmlSerialize(_p?: XmlSerialize, isNode?: boolean): XmlSerialize | { + XmlSerialize: XmlSerialize; + } { const _j = {} as XmlSerialize; _o.set(_j, "xmloption", _p?.xmloption); _o.set(_j, "expr", _p?.expr); _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "indent", _p?.indent); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + XmlSerialize: _j + }; + } return _j; }, - partitionElem(_p?: PartitionElem): PartitionElem { + partitionElem(_p?: PartitionElem, isNode?: boolean): PartitionElem | { + PartitionElem: PartitionElem; + } { const _j = {} as PartitionElem; _o.set(_j, "name", _p?.name); _o.set(_j, "expr", _p?.expr); _o.set(_j, "collation", _p?.collation); _o.set(_j, "opclass", _p?.opclass); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + PartitionElem: _j + }; + } return _j; }, - partitionSpec(_p?: PartitionSpec): PartitionSpec { + partitionSpec(_p?: PartitionSpec, isNode?: boolean): PartitionSpec | { + PartitionSpec: PartitionSpec; + } { const _j = {} as PartitionSpec; _o.set(_j, "strategy", _p?.strategy); _o.set(_j, "partParams", _p?.partParams); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + PartitionSpec: _j + }; + } return _j; }, - partitionBoundSpec(_p?: PartitionBoundSpec): PartitionBoundSpec { + partitionBoundSpec(_p?: PartitionBoundSpec, isNode?: boolean): PartitionBoundSpec | { + PartitionBoundSpec: PartitionBoundSpec; + } { const _j = {} as PartitionBoundSpec; _o.set(_j, "strategy", _p?.strategy); _o.set(_j, "is_default", _p?.is_default); @@ -961,23 +1635,44 @@ export default { _o.set(_j, "lowerdatums", _p?.lowerdatums); _o.set(_j, "upperdatums", _p?.upperdatums); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + PartitionBoundSpec: _j + }; + } return _j; }, - partitionRangeDatum(_p?: PartitionRangeDatum): PartitionRangeDatum { + partitionRangeDatum(_p?: PartitionRangeDatum, isNode?: boolean): PartitionRangeDatum | { + PartitionRangeDatum: PartitionRangeDatum; + } { const _j = {} as PartitionRangeDatum; _o.set(_j, "kind", _p?.kind); _o.set(_j, "value", _p?.value); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + PartitionRangeDatum: _j + }; + } return _j; }, - partitionCmd(_p?: PartitionCmd): PartitionCmd { + partitionCmd(_p?: PartitionCmd, isNode?: boolean): PartitionCmd | { + PartitionCmd: PartitionCmd; + } { const _j = {} as PartitionCmd; _o.set(_j, "name", _p?.name); _o.set(_j, "bound", _p?.bound); _o.set(_j, "concurrent", _p?.concurrent); + if (isNode) { + return { + PartitionCmd: _j + }; + } return _j; }, - rangeTblEntry(_p?: RangeTblEntry): RangeTblEntry { + rangeTblEntry(_p?: RangeTblEntry, isNode?: boolean): RangeTblEntry | { + RangeTblEntry: RangeTblEntry; + } { const _j = {} as RangeTblEntry; _o.set(_j, "rtekind", _p?.rtekind); _o.set(_j, "relid", _p?.relid); @@ -1011,9 +1706,16 @@ export default { _o.set(_j, "inh", _p?.inh); _o.set(_j, "inFromCl", _p?.inFromCl); _o.set(_j, "securityQuals", _p?.securityQuals); + if (isNode) { + return { + RangeTblEntry: _j + }; + } return _j; }, - rtePermissionInfo(_p?: RTEPermissionInfo): RTEPermissionInfo { + rtePermissionInfo(_p?: RTEPermissionInfo, isNode?: boolean): RTEPermissionInfo | { + RTEPermissionInfo: RTEPermissionInfo; + } { const _j = {} as RTEPermissionInfo; _o.set(_j, "relid", _p?.relid); _o.set(_j, "inh", _p?.inh); @@ -1022,9 +1724,16 @@ export default { _o.set(_j, "selectedCols", _p?.selectedCols); _o.set(_j, "insertedCols", _p?.insertedCols); _o.set(_j, "updatedCols", _p?.updatedCols); + if (isNode) { + return { + RTEPermissionInfo: _j + }; + } return _j; }, - rangeTblFunction(_p?: RangeTblFunction): RangeTblFunction { + rangeTblFunction(_p?: RangeTblFunction, isNode?: boolean): RangeTblFunction | { + RangeTblFunction: RangeTblFunction; + } { const _j = {} as RangeTblFunction; _o.set(_j, "funcexpr", _p?.funcexpr); _o.set(_j, "funccolcount", _p?.funccolcount); @@ -1033,41 +1742,76 @@ export default { _o.set(_j, "funccoltypmods", _p?.funccoltypmods); _o.set(_j, "funccolcollations", _p?.funccolcollations); _o.set(_j, "funcparams", _p?.funcparams); + if (isNode) { + return { + RangeTblFunction: _j + }; + } return _j; }, - tableSampleClause(_p?: TableSampleClause): TableSampleClause { + tableSampleClause(_p?: TableSampleClause, isNode?: boolean): TableSampleClause | { + TableSampleClause: TableSampleClause; + } { const _j = {} as TableSampleClause; _o.set(_j, "tsmhandler", _p?.tsmhandler); _o.set(_j, "args", _p?.args); _o.set(_j, "repeatable", _p?.repeatable); + if (isNode) { + return { + TableSampleClause: _j + }; + } return _j; }, - withCheckOption(_p?: WithCheckOption): WithCheckOption { + withCheckOption(_p?: WithCheckOption, isNode?: boolean): WithCheckOption | { + WithCheckOption: WithCheckOption; + } { const _j = {} as WithCheckOption; _o.set(_j, "kind", _p?.kind); _o.set(_j, "relname", _p?.relname); _o.set(_j, "polname", _p?.polname); _o.set(_j, "qual", _p?.qual); _o.set(_j, "cascaded", _p?.cascaded); + if (isNode) { + return { + WithCheckOption: _j + }; + } return _j; }, - sortGroupClause(_p?: SortGroupClause): SortGroupClause { + sortGroupClause(_p?: SortGroupClause, isNode?: boolean): SortGroupClause | { + SortGroupClause: SortGroupClause; + } { const _j = {} as SortGroupClause; _o.set(_j, "tleSortGroupRef", _p?.tleSortGroupRef); _o.set(_j, "eqop", _p?.eqop); _o.set(_j, "sortop", _p?.sortop); _o.set(_j, "nulls_first", _p?.nulls_first); _o.set(_j, "hashable", _p?.hashable); + if (isNode) { + return { + SortGroupClause: _j + }; + } return _j; }, - groupingSet(_p?: GroupingSet): GroupingSet { + groupingSet(_p?: GroupingSet, isNode?: boolean): GroupingSet | { + GroupingSet: GroupingSet; + } { const _j = {} as GroupingSet; _o.set(_j, "kind", _p?.kind); _o.set(_j, "content", _p?.content); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + GroupingSet: _j + }; + } return _j; }, - windowClause(_p?: WindowClause): WindowClause { + windowClause(_p?: WindowClause, isNode?: boolean): WindowClause | { + WindowClause: WindowClause; + } { const _j = {} as WindowClause; _o.set(_j, "name", _p?.name); _o.set(_j, "refname", _p?.refname); @@ -1084,49 +1828,91 @@ export default { _o.set(_j, "inRangeNullsFirst", _p?.inRangeNullsFirst); _o.set(_j, "winref", _p?.winref); _o.set(_j, "copiedOrder", _p?.copiedOrder); + if (isNode) { + return { + WindowClause: _j + }; + } return _j; }, - rowMarkClause(_p?: RowMarkClause): RowMarkClause { + rowMarkClause(_p?: RowMarkClause, isNode?: boolean): RowMarkClause | { + RowMarkClause: RowMarkClause; + } { const _j = {} as RowMarkClause; _o.set(_j, "rti", _p?.rti); _o.set(_j, "strength", _p?.strength); _o.set(_j, "waitPolicy", _p?.waitPolicy); _o.set(_j, "pushedDown", _p?.pushedDown); + if (isNode) { + return { + RowMarkClause: _j + }; + } return _j; }, - withClause(_p?: WithClause): WithClause { + withClause(_p?: WithClause, isNode?: boolean): WithClause | { + WithClause: WithClause; + } { const _j = {} as WithClause; _o.set(_j, "ctes", _p?.ctes); _o.set(_j, "recursive", _p?.recursive); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + WithClause: _j + }; + } return _j; }, - inferClause(_p?: InferClause): InferClause { + inferClause(_p?: InferClause, isNode?: boolean): InferClause | { + InferClause: InferClause; + } { const _j = {} as InferClause; _o.set(_j, "indexElems", _p?.indexElems); _o.set(_j, "whereClause", _p?.whereClause); _o.set(_j, "conname", _p?.conname); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + InferClause: _j + }; + } return _j; }, - onConflictClause(_p?: OnConflictClause): OnConflictClause { + onConflictClause(_p?: OnConflictClause, isNode?: boolean): OnConflictClause | { + OnConflictClause: OnConflictClause; + } { const _j = {} as OnConflictClause; _o.set(_j, "action", _p?.action); _o.set(_j, "infer", _p?.infer); _o.set(_j, "targetList", _p?.targetList); _o.set(_j, "whereClause", _p?.whereClause); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + OnConflictClause: _j + }; + } return _j; }, - cteSearchClause(_p?: CTESearchClause): CTESearchClause { + cteSearchClause(_p?: CTESearchClause, isNode?: boolean): CTESearchClause | { + CTESearchClause: CTESearchClause; + } { const _j = {} as CTESearchClause; _o.set(_j, "search_col_list", _p?.search_col_list); _o.set(_j, "search_breadth_first", _p?.search_breadth_first); _o.set(_j, "search_seq_column", _p?.search_seq_column); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CTESearchClause: _j + }; + } return _j; }, - cteCycleClause(_p?: CTECycleClause): CTECycleClause { + cteCycleClause(_p?: CTECycleClause, isNode?: boolean): CTECycleClause | { + CTECycleClause: CTECycleClause; + } { const _j = {} as CTECycleClause; _o.set(_j, "cycle_col_list", _p?.cycle_col_list); _o.set(_j, "cycle_mark_column", _p?.cycle_mark_column); @@ -1138,9 +1924,16 @@ export default { _o.set(_j, "cycle_mark_typmod", _p?.cycle_mark_typmod); _o.set(_j, "cycle_mark_collation", _p?.cycle_mark_collation); _o.set(_j, "cycle_mark_neop", _p?.cycle_mark_neop); + if (isNode) { + return { + CTECycleClause: _j + }; + } return _j; }, - commonTableExpr(_p?: CommonTableExpr): CommonTableExpr { + commonTableExpr(_p?: CommonTableExpr, isNode?: boolean): CommonTableExpr | { + CommonTableExpr: CommonTableExpr; + } { const _j = {} as CommonTableExpr; _o.set(_j, "ctename", _p?.ctename); _o.set(_j, "aliascolnames", _p?.aliascolnames); @@ -1155,9 +1948,16 @@ export default { _o.set(_j, "ctecoltypes", _p?.ctecoltypes); _o.set(_j, "ctecoltypmods", _p?.ctecoltypmods); _o.set(_j, "ctecolcollations", _p?.ctecolcollations); + if (isNode) { + return { + CommonTableExpr: _j + }; + } return _j; }, - mergeWhenClause(_p?: MergeWhenClause): MergeWhenClause { + mergeWhenClause(_p?: MergeWhenClause, isNode?: boolean): MergeWhenClause | { + MergeWhenClause: MergeWhenClause; + } { const _j = {} as MergeWhenClause; _o.set(_j, "matched", _p?.matched); _o.set(_j, "commandType", _p?.commandType); @@ -1165,9 +1965,16 @@ export default { _o.set(_j, "condition", _p?.condition); _o.set(_j, "targetList", _p?.targetList); _o.set(_j, "values", _p?.values); + if (isNode) { + return { + MergeWhenClause: _j + }; + } return _j; }, - mergeAction(_p?: MergeAction): MergeAction { + mergeAction(_p?: MergeAction, isNode?: boolean): MergeAction | { + MergeAction: MergeAction; + } { const _j = {} as MergeAction; _o.set(_j, "matched", _p?.matched); _o.set(_j, "commandType", _p?.commandType); @@ -1175,85 +1982,162 @@ export default { _o.set(_j, "qual", _p?.qual); _o.set(_j, "targetList", _p?.targetList); _o.set(_j, "updateColnos", _p?.updateColnos); + if (isNode) { + return { + MergeAction: _j + }; + } return _j; }, - triggerTransition(_p?: TriggerTransition): TriggerTransition { + triggerTransition(_p?: TriggerTransition, isNode?: boolean): TriggerTransition | { + TriggerTransition: TriggerTransition; + } { const _j = {} as TriggerTransition; _o.set(_j, "name", _p?.name); _o.set(_j, "isNew", _p?.isNew); _o.set(_j, "isTable", _p?.isTable); + if (isNode) { + return { + TriggerTransition: _j + }; + } return _j; }, - jsonOutput(_p?: JsonOutput): JsonOutput { + jsonOutput(_p?: JsonOutput, isNode?: boolean): JsonOutput | { + JsonOutput: JsonOutput; + } { const _j = {} as JsonOutput; _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "returning", _p?.returning); + if (isNode) { + return { + JsonOutput: _j + }; + } return _j; }, - jsonKeyValue(_p?: JsonKeyValue): JsonKeyValue { + jsonKeyValue(_p?: JsonKeyValue, isNode?: boolean): JsonKeyValue | { + JsonKeyValue: JsonKeyValue; + } { const _j = {} as JsonKeyValue; _o.set(_j, "key", _p?.key); _o.set(_j, "value", _p?.value); + if (isNode) { + return { + JsonKeyValue: _j + }; + } return _j; }, - jsonObjectConstructor(_p?: JsonObjectConstructor): JsonObjectConstructor { + jsonObjectConstructor(_p?: JsonObjectConstructor, isNode?: boolean): JsonObjectConstructor | { + JsonObjectConstructor: JsonObjectConstructor; + } { const _j = {} as JsonObjectConstructor; _o.set(_j, "exprs", _p?.exprs); _o.set(_j, "output", _p?.output); _o.set(_j, "absent_on_null", _p?.absent_on_null); _o.set(_j, "unique", _p?.unique); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonObjectConstructor: _j + }; + } return _j; }, - jsonArrayConstructor(_p?: JsonArrayConstructor): JsonArrayConstructor { + jsonArrayConstructor(_p?: JsonArrayConstructor, isNode?: boolean): JsonArrayConstructor | { + JsonArrayConstructor: JsonArrayConstructor; + } { const _j = {} as JsonArrayConstructor; _o.set(_j, "exprs", _p?.exprs); _o.set(_j, "output", _p?.output); _o.set(_j, "absent_on_null", _p?.absent_on_null); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonArrayConstructor: _j + }; + } return _j; }, - jsonArrayQueryConstructor(_p?: JsonArrayQueryConstructor): JsonArrayQueryConstructor { + jsonArrayQueryConstructor(_p?: JsonArrayQueryConstructor, isNode?: boolean): JsonArrayQueryConstructor | { + JsonArrayQueryConstructor: JsonArrayQueryConstructor; + } { const _j = {} as JsonArrayQueryConstructor; _o.set(_j, "query", _p?.query); _o.set(_j, "output", _p?.output); _o.set(_j, "format", _p?.format); _o.set(_j, "absent_on_null", _p?.absent_on_null); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonArrayQueryConstructor: _j + }; + } return _j; }, - jsonAggConstructor(_p?: JsonAggConstructor): JsonAggConstructor { + jsonAggConstructor(_p?: JsonAggConstructor, isNode?: boolean): JsonAggConstructor | { + JsonAggConstructor: JsonAggConstructor; + } { const _j = {} as JsonAggConstructor; _o.set(_j, "output", _p?.output); _o.set(_j, "agg_filter", _p?.agg_filter); _o.set(_j, "agg_order", _p?.agg_order); _o.set(_j, "over", _p?.over); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonAggConstructor: _j + }; + } return _j; }, - jsonObjectAgg(_p?: JsonObjectAgg): JsonObjectAgg { + jsonObjectAgg(_p?: JsonObjectAgg, isNode?: boolean): JsonObjectAgg | { + JsonObjectAgg: JsonObjectAgg; + } { const _j = {} as JsonObjectAgg; _o.set(_j, "constructor", _p?.constructor); _o.set(_j, "arg", _p?.arg); _o.set(_j, "absent_on_null", _p?.absent_on_null); _o.set(_j, "unique", _p?.unique); + if (isNode) { + return { + JsonObjectAgg: _j + }; + } return _j; }, - jsonArrayAgg(_p?: JsonArrayAgg): JsonArrayAgg { + jsonArrayAgg(_p?: JsonArrayAgg, isNode?: boolean): JsonArrayAgg | { + JsonArrayAgg: JsonArrayAgg; + } { const _j = {} as JsonArrayAgg; _o.set(_j, "constructor", _p?.constructor); _o.set(_j, "arg", _p?.arg); _o.set(_j, "absent_on_null", _p?.absent_on_null); + if (isNode) { + return { + JsonArrayAgg: _j + }; + } return _j; }, - rawStmt(_p?: RawStmt): RawStmt { + rawStmt(_p?: RawStmt, isNode?: boolean): RawStmt | { + RawStmt: RawStmt; + } { const _j = {} as RawStmt; _o.set(_j, "stmt", _p?.stmt); _o.set(_j, "stmt_location", _p?.stmt_location); _o.set(_j, "stmt_len", _p?.stmt_len); + if (isNode) { + return { + RawStmt: _j + }; + } return _j; }, - insertStmt(_p?: InsertStmt): InsertStmt { + insertStmt(_p?: InsertStmt, isNode?: boolean): InsertStmt | { + InsertStmt: InsertStmt; + } { const _j = {} as InsertStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "cols", _p?.cols); @@ -1262,18 +2146,32 @@ export default { _o.set(_j, "returningList", _p?.returningList); _o.set(_j, "withClause", _p?.withClause); _o.set(_j, "override", _p?.override); + if (isNode) { + return { + InsertStmt: _j + }; + } return _j; }, - deleteStmt(_p?: DeleteStmt): DeleteStmt { + deleteStmt(_p?: DeleteStmt, isNode?: boolean): DeleteStmt | { + DeleteStmt: DeleteStmt; + } { const _j = {} as DeleteStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "usingClause", _p?.usingClause); _o.set(_j, "whereClause", _p?.whereClause); _o.set(_j, "returningList", _p?.returningList); _o.set(_j, "withClause", _p?.withClause); + if (isNode) { + return { + DeleteStmt: _j + }; + } return _j; }, - updateStmt(_p?: UpdateStmt): UpdateStmt { + updateStmt(_p?: UpdateStmt, isNode?: boolean): UpdateStmt | { + UpdateStmt: UpdateStmt; + } { const _j = {} as UpdateStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "targetList", _p?.targetList); @@ -1281,18 +2179,32 @@ export default { _o.set(_j, "fromClause", _p?.fromClause); _o.set(_j, "returningList", _p?.returningList); _o.set(_j, "withClause", _p?.withClause); + if (isNode) { + return { + UpdateStmt: _j + }; + } return _j; }, - mergeStmt(_p?: MergeStmt): MergeStmt { + mergeStmt(_p?: MergeStmt, isNode?: boolean): MergeStmt | { + MergeStmt: MergeStmt; + } { const _j = {} as MergeStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "sourceRelation", _p?.sourceRelation); _o.set(_j, "joinCondition", _p?.joinCondition); _o.set(_j, "mergeWhenClauses", _p?.mergeWhenClauses); _o.set(_j, "withClause", _p?.withClause); + if (isNode) { + return { + MergeStmt: _j + }; + } return _j; }, - selectStmt(_p?: SelectStmt): SelectStmt { + selectStmt(_p?: SelectStmt, isNode?: boolean): SelectStmt | { + SelectStmt: SelectStmt; + } { const _j = {} as SelectStmt; _o.set(_j, "distinctClause", _p?.distinctClause); _o.set(_j, "intoClause", _p?.intoClause); @@ -1314,9 +2226,16 @@ export default { _o.set(_j, "all", _p?.all); _o.set(_j, "larg", _p?.larg); _o.set(_j, "rarg", _p?.rarg); + if (isNode) { + return { + SelectStmt: _j + }; + } return _j; }, - setOperationStmt(_p?: SetOperationStmt): SetOperationStmt { + setOperationStmt(_p?: SetOperationStmt, isNode?: boolean): SetOperationStmt | { + SetOperationStmt: SetOperationStmt; + } { const _j = {} as SetOperationStmt; _o.set(_j, "op", _p?.op); _o.set(_j, "all", _p?.all); @@ -1326,45 +2245,87 @@ export default { _o.set(_j, "colTypmods", _p?.colTypmods); _o.set(_j, "colCollations", _p?.colCollations); _o.set(_j, "groupClauses", _p?.groupClauses); + if (isNode) { + return { + SetOperationStmt: _j + }; + } return _j; }, - returnStmt(_p?: ReturnStmt): ReturnStmt { + returnStmt(_p?: ReturnStmt, isNode?: boolean): ReturnStmt | { + ReturnStmt: ReturnStmt; + } { const _j = {} as ReturnStmt; _o.set(_j, "returnval", _p?.returnval); + if (isNode) { + return { + ReturnStmt: _j + }; + } return _j; }, - plAssignStmt(_p?: PLAssignStmt): PLAssignStmt { + plAssignStmt(_p?: PLAssignStmt, isNode?: boolean): PLAssignStmt | { + PLAssignStmt: PLAssignStmt; + } { const _j = {} as PLAssignStmt; _o.set(_j, "name", _p?.name); _o.set(_j, "indirection", _p?.indirection); _o.set(_j, "nnames", _p?.nnames); _o.set(_j, "val", _p?.val); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + PLAssignStmt: _j + }; + } return _j; }, - createSchemaStmt(_p?: CreateSchemaStmt): CreateSchemaStmt { + createSchemaStmt(_p?: CreateSchemaStmt, isNode?: boolean): CreateSchemaStmt | { + CreateSchemaStmt: CreateSchemaStmt; + } { const _j = {} as CreateSchemaStmt; _o.set(_j, "schemaname", _p?.schemaname); _o.set(_j, "authrole", _p?.authrole); _o.set(_j, "schemaElts", _p?.schemaElts); _o.set(_j, "if_not_exists", _p?.if_not_exists); + if (isNode) { + return { + CreateSchemaStmt: _j + }; + } return _j; }, - alterTableStmt(_p?: AlterTableStmt): AlterTableStmt { + alterTableStmt(_p?: AlterTableStmt, isNode?: boolean): AlterTableStmt | { + AlterTableStmt: AlterTableStmt; + } { const _j = {} as AlterTableStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "cmds", _p?.cmds); _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + AlterTableStmt: _j + }; + } return _j; }, - replicaIdentityStmt(_p?: ReplicaIdentityStmt): ReplicaIdentityStmt { + replicaIdentityStmt(_p?: ReplicaIdentityStmt, isNode?: boolean): ReplicaIdentityStmt | { + ReplicaIdentityStmt: ReplicaIdentityStmt; + } { const _j = {} as ReplicaIdentityStmt; _o.set(_j, "identity_type", _p?.identity_type); _o.set(_j, "name", _p?.name); + if (isNode) { + return { + ReplicaIdentityStmt: _j + }; + } return _j; }, - alterTableCmd(_p?: AlterTableCmd): AlterTableCmd { + alterTableCmd(_p?: AlterTableCmd, isNode?: boolean): AlterTableCmd | { + AlterTableCmd: AlterTableCmd; + } { const _j = {} as AlterTableCmd; _o.set(_j, "subtype", _p?.subtype); _o.set(_j, "name", _p?.name); @@ -1374,14 +2335,28 @@ export default { _o.set(_j, "behavior", _p?.behavior); _o.set(_j, "missing_ok", _p?.missing_ok); _o.set(_j, "recurse", _p?.recurse); + if (isNode) { + return { + AlterTableCmd: _j + }; + } return _j; }, - alterCollationStmt(_p?: AlterCollationStmt): AlterCollationStmt { + alterCollationStmt(_p?: AlterCollationStmt, isNode?: boolean): AlterCollationStmt | { + AlterCollationStmt: AlterCollationStmt; + } { const _j = {} as AlterCollationStmt; _o.set(_j, "collname", _p?.collname); + if (isNode) { + return { + AlterCollationStmt: _j + }; + } return _j; }, - alterDomainStmt(_p?: AlterDomainStmt): AlterDomainStmt { + alterDomainStmt(_p?: AlterDomainStmt, isNode?: boolean): AlterDomainStmt | { + AlterDomainStmt: AlterDomainStmt; + } { const _j = {} as AlterDomainStmt; _o.set(_j, "subtype", _p?.subtype); _o.set(_j, "typeName", _p?.typeName); @@ -1389,9 +2364,16 @@ export default { _o.set(_j, "def", _p?.def); _o.set(_j, "behavior", _p?.behavior); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + AlterDomainStmt: _j + }; + } return _j; }, - grantStmt(_p?: GrantStmt): GrantStmt { + grantStmt(_p?: GrantStmt, isNode?: boolean): GrantStmt | { + GrantStmt: GrantStmt; + } { const _j = {} as GrantStmt; _o.set(_j, "is_grant", _p?.is_grant); _o.set(_j, "targtype", _p?.targtype); @@ -1402,23 +2384,44 @@ export default { _o.set(_j, "grant_option", _p?.grant_option); _o.set(_j, "grantor", _p?.grantor); _o.set(_j, "behavior", _p?.behavior); + if (isNode) { + return { + GrantStmt: _j + }; + } return _j; }, - objectWithArgs(_p?: ObjectWithArgs): ObjectWithArgs { + objectWithArgs(_p?: ObjectWithArgs, isNode?: boolean): ObjectWithArgs | { + ObjectWithArgs: ObjectWithArgs; + } { const _j = {} as ObjectWithArgs; _o.set(_j, "objname", _p?.objname); _o.set(_j, "objargs", _p?.objargs); _o.set(_j, "objfuncargs", _p?.objfuncargs); _o.set(_j, "args_unspecified", _p?.args_unspecified); + if (isNode) { + return { + ObjectWithArgs: _j + }; + } return _j; }, - accessPriv(_p?: AccessPriv): AccessPriv { + accessPriv(_p?: AccessPriv, isNode?: boolean): AccessPriv | { + AccessPriv: AccessPriv; + } { const _j = {} as AccessPriv; _o.set(_j, "priv_name", _p?.priv_name); _o.set(_j, "cols", _p?.cols); + if (isNode) { + return { + AccessPriv: _j + }; + } return _j; }, - grantRoleStmt(_p?: GrantRoleStmt): GrantRoleStmt { + grantRoleStmt(_p?: GrantRoleStmt, isNode?: boolean): GrantRoleStmt | { + GrantRoleStmt: GrantRoleStmt; + } { const _j = {} as GrantRoleStmt; _o.set(_j, "granted_roles", _p?.granted_roles); _o.set(_j, "grantee_roles", _p?.grantee_roles); @@ -1426,15 +2429,29 @@ export default { _o.set(_j, "opt", _p?.opt); _o.set(_j, "grantor", _p?.grantor); _o.set(_j, "behavior", _p?.behavior); + if (isNode) { + return { + GrantRoleStmt: _j + }; + } return _j; }, - alterDefaultPrivilegesStmt(_p?: AlterDefaultPrivilegesStmt): AlterDefaultPrivilegesStmt { + alterDefaultPrivilegesStmt(_p?: AlterDefaultPrivilegesStmt, isNode?: boolean): AlterDefaultPrivilegesStmt | { + AlterDefaultPrivilegesStmt: AlterDefaultPrivilegesStmt; + } { const _j = {} as AlterDefaultPrivilegesStmt; _o.set(_j, "options", _p?.options); _o.set(_j, "action", _p?.action); + if (isNode) { + return { + AlterDefaultPrivilegesStmt: _j + }; + } return _j; }, - copyStmt(_p?: CopyStmt): CopyStmt { + copyStmt(_p?: CopyStmt, isNode?: boolean): CopyStmt | { + CopyStmt: CopyStmt; + } { const _j = {} as CopyStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "query", _p?.query); @@ -1444,22 +2461,43 @@ export default { _o.set(_j, "filename", _p?.filename); _o.set(_j, "options", _p?.options); _o.set(_j, "whereClause", _p?.whereClause); + if (isNode) { + return { + CopyStmt: _j + }; + } return _j; }, - variableSetStmt(_p?: VariableSetStmt): VariableSetStmt { + variableSetStmt(_p?: VariableSetStmt, isNode?: boolean): VariableSetStmt | { + VariableSetStmt: VariableSetStmt; + } { const _j = {} as VariableSetStmt; _o.set(_j, "kind", _p?.kind); _o.set(_j, "name", _p?.name); _o.set(_j, "args", _p?.args); _o.set(_j, "is_local", _p?.is_local); + if (isNode) { + return { + VariableSetStmt: _j + }; + } return _j; }, - variableShowStmt(_p?: VariableShowStmt): VariableShowStmt { + variableShowStmt(_p?: VariableShowStmt, isNode?: boolean): VariableShowStmt | { + VariableShowStmt: VariableShowStmt; + } { const _j = {} as VariableShowStmt; _o.set(_j, "name", _p?.name); + if (isNode) { + return { + VariableShowStmt: _j + }; + } return _j; }, - createStmt(_p?: CreateStmt): CreateStmt { + createStmt(_p?: CreateStmt, isNode?: boolean): CreateStmt | { + CreateStmt: CreateStmt; + } { const _j = {} as CreateStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "tableElts", _p?.tableElts); @@ -1473,9 +2511,16 @@ export default { _o.set(_j, "tablespacename", _p?.tablespacename); _o.set(_j, "accessMethod", _p?.accessMethod); _o.set(_j, "if_not_exists", _p?.if_not_exists); + if (isNode) { + return { + CreateStmt: _j + }; + } return _j; }, - constraint(_p?: Constraint): Constraint { + constraint(_p?: Constraint, isNode?: boolean): Constraint | { + Constraint: Constraint; + } { const _j = {} as Constraint; _o.set(_j, "contype", _p?.contype); _o.set(_j, "conname", _p?.conname); @@ -1507,74 +2552,144 @@ export default { _o.set(_j, "old_pktable_oid", _p?.old_pktable_oid); _o.set(_j, "skip_validation", _p?.skip_validation); _o.set(_j, "initially_valid", _p?.initially_valid); + if (isNode) { + return { + Constraint: _j + }; + } return _j; }, - createTableSpaceStmt(_p?: CreateTableSpaceStmt): CreateTableSpaceStmt { + createTableSpaceStmt(_p?: CreateTableSpaceStmt, isNode?: boolean): CreateTableSpaceStmt | { + CreateTableSpaceStmt: CreateTableSpaceStmt; + } { const _j = {} as CreateTableSpaceStmt; _o.set(_j, "tablespacename", _p?.tablespacename); _o.set(_j, "owner", _p?.owner); _o.set(_j, "location", _p?.location); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateTableSpaceStmt: _j + }; + } return _j; }, - dropTableSpaceStmt(_p?: DropTableSpaceStmt): DropTableSpaceStmt { + dropTableSpaceStmt(_p?: DropTableSpaceStmt, isNode?: boolean): DropTableSpaceStmt | { + DropTableSpaceStmt: DropTableSpaceStmt; + } { const _j = {} as DropTableSpaceStmt; _o.set(_j, "tablespacename", _p?.tablespacename); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + DropTableSpaceStmt: _j + }; + } return _j; }, - alterTableSpaceOptionsStmt(_p?: AlterTableSpaceOptionsStmt): AlterTableSpaceOptionsStmt { + alterTableSpaceOptionsStmt(_p?: AlterTableSpaceOptionsStmt, isNode?: boolean): AlterTableSpaceOptionsStmt | { + AlterTableSpaceOptionsStmt: AlterTableSpaceOptionsStmt; + } { const _j = {} as AlterTableSpaceOptionsStmt; _o.set(_j, "tablespacename", _p?.tablespacename); _o.set(_j, "options", _p?.options); _o.set(_j, "isReset", _p?.isReset); + if (isNode) { + return { + AlterTableSpaceOptionsStmt: _j + }; + } return _j; }, - alterTableMoveAllStmt(_p?: AlterTableMoveAllStmt): AlterTableMoveAllStmt { + alterTableMoveAllStmt(_p?: AlterTableMoveAllStmt, isNode?: boolean): AlterTableMoveAllStmt | { + AlterTableMoveAllStmt: AlterTableMoveAllStmt; + } { const _j = {} as AlterTableMoveAllStmt; _o.set(_j, "orig_tablespacename", _p?.orig_tablespacename); _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "roles", _p?.roles); _o.set(_j, "new_tablespacename", _p?.new_tablespacename); _o.set(_j, "nowait", _p?.nowait); + if (isNode) { + return { + AlterTableMoveAllStmt: _j + }; + } return _j; }, - createExtensionStmt(_p?: CreateExtensionStmt): CreateExtensionStmt { + createExtensionStmt(_p?: CreateExtensionStmt, isNode?: boolean): CreateExtensionStmt | { + CreateExtensionStmt: CreateExtensionStmt; + } { const _j = {} as CreateExtensionStmt; _o.set(_j, "extname", _p?.extname); _o.set(_j, "if_not_exists", _p?.if_not_exists); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateExtensionStmt: _j + }; + } return _j; }, - alterExtensionStmt(_p?: AlterExtensionStmt): AlterExtensionStmt { + alterExtensionStmt(_p?: AlterExtensionStmt, isNode?: boolean): AlterExtensionStmt | { + AlterExtensionStmt: AlterExtensionStmt; + } { const _j = {} as AlterExtensionStmt; _o.set(_j, "extname", _p?.extname); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterExtensionStmt: _j + }; + } return _j; }, - alterExtensionContentsStmt(_p?: AlterExtensionContentsStmt): AlterExtensionContentsStmt { + alterExtensionContentsStmt(_p?: AlterExtensionContentsStmt, isNode?: boolean): AlterExtensionContentsStmt | { + AlterExtensionContentsStmt: AlterExtensionContentsStmt; + } { const _j = {} as AlterExtensionContentsStmt; _o.set(_j, "extname", _p?.extname); _o.set(_j, "action", _p?.action); _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "object", _p?.object); + if (isNode) { + return { + AlterExtensionContentsStmt: _j + }; + } return _j; }, - createFdwStmt(_p?: CreateFdwStmt): CreateFdwStmt { + createFdwStmt(_p?: CreateFdwStmt, isNode?: boolean): CreateFdwStmt | { + CreateFdwStmt: CreateFdwStmt; + } { const _j = {} as CreateFdwStmt; _o.set(_j, "fdwname", _p?.fdwname); _o.set(_j, "func_options", _p?.func_options); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateFdwStmt: _j + }; + } return _j; }, - alterFdwStmt(_p?: AlterFdwStmt): AlterFdwStmt { + alterFdwStmt(_p?: AlterFdwStmt, isNode?: boolean): AlterFdwStmt | { + AlterFdwStmt: AlterFdwStmt; + } { const _j = {} as AlterFdwStmt; _o.set(_j, "fdwname", _p?.fdwname); _o.set(_j, "func_options", _p?.func_options); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterFdwStmt: _j + }; + } return _j; }, - createForeignServerStmt(_p?: CreateForeignServerStmt): CreateForeignServerStmt { + createForeignServerStmt(_p?: CreateForeignServerStmt, isNode?: boolean): CreateForeignServerStmt | { + CreateForeignServerStmt: CreateForeignServerStmt; + } { const _j = {} as CreateForeignServerStmt; _o.set(_j, "servername", _p?.servername); _o.set(_j, "servertype", _p?.servertype); @@ -1582,46 +2697,88 @@ export default { _o.set(_j, "fdwname", _p?.fdwname); _o.set(_j, "if_not_exists", _p?.if_not_exists); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateForeignServerStmt: _j + }; + } return _j; }, - alterForeignServerStmt(_p?: AlterForeignServerStmt): AlterForeignServerStmt { + alterForeignServerStmt(_p?: AlterForeignServerStmt, isNode?: boolean): AlterForeignServerStmt | { + AlterForeignServerStmt: AlterForeignServerStmt; + } { const _j = {} as AlterForeignServerStmt; _o.set(_j, "servername", _p?.servername); _o.set(_j, "version", _p?.version); _o.set(_j, "options", _p?.options); _o.set(_j, "has_version", _p?.has_version); + if (isNode) { + return { + AlterForeignServerStmt: _j + }; + } return _j; }, - createForeignTableStmt(_p?: CreateForeignTableStmt): CreateForeignTableStmt { + createForeignTableStmt(_p?: CreateForeignTableStmt, isNode?: boolean): CreateForeignTableStmt | { + CreateForeignTableStmt: CreateForeignTableStmt; + } { const _j = {} as CreateForeignTableStmt; _o.set(_j, "base", _p?.base); _o.set(_j, "servername", _p?.servername); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateForeignTableStmt: _j + }; + } return _j; }, - createUserMappingStmt(_p?: CreateUserMappingStmt): CreateUserMappingStmt { + createUserMappingStmt(_p?: CreateUserMappingStmt, isNode?: boolean): CreateUserMappingStmt | { + CreateUserMappingStmt: CreateUserMappingStmt; + } { const _j = {} as CreateUserMappingStmt; _o.set(_j, "user", _p?.user); _o.set(_j, "servername", _p?.servername); _o.set(_j, "if_not_exists", _p?.if_not_exists); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateUserMappingStmt: _j + }; + } return _j; }, - alterUserMappingStmt(_p?: AlterUserMappingStmt): AlterUserMappingStmt { + alterUserMappingStmt(_p?: AlterUserMappingStmt, isNode?: boolean): AlterUserMappingStmt | { + AlterUserMappingStmt: AlterUserMappingStmt; + } { const _j = {} as AlterUserMappingStmt; _o.set(_j, "user", _p?.user); _o.set(_j, "servername", _p?.servername); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterUserMappingStmt: _j + }; + } return _j; }, - dropUserMappingStmt(_p?: DropUserMappingStmt): DropUserMappingStmt { + dropUserMappingStmt(_p?: DropUserMappingStmt, isNode?: boolean): DropUserMappingStmt | { + DropUserMappingStmt: DropUserMappingStmt; + } { const _j = {} as DropUserMappingStmt; _o.set(_j, "user", _p?.user); _o.set(_j, "servername", _p?.servername); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + DropUserMappingStmt: _j + }; + } return _j; }, - importForeignSchemaStmt(_p?: ImportForeignSchemaStmt): ImportForeignSchemaStmt { + importForeignSchemaStmt(_p?: ImportForeignSchemaStmt, isNode?: boolean): ImportForeignSchemaStmt | { + ImportForeignSchemaStmt: ImportForeignSchemaStmt; + } { const _j = {} as ImportForeignSchemaStmt; _o.set(_j, "server_name", _p?.server_name); _o.set(_j, "remote_schema", _p?.remote_schema); @@ -1629,9 +2786,16 @@ export default { _o.set(_j, "list_type", _p?.list_type); _o.set(_j, "table_list", _p?.table_list); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + ImportForeignSchemaStmt: _j + }; + } return _j; }, - createPolicyStmt(_p?: CreatePolicyStmt): CreatePolicyStmt { + createPolicyStmt(_p?: CreatePolicyStmt, isNode?: boolean): CreatePolicyStmt | { + CreatePolicyStmt: CreatePolicyStmt; + } { const _j = {} as CreatePolicyStmt; _o.set(_j, "policy_name", _p?.policy_name); _o.set(_j, "table", _p?.table); @@ -1640,25 +2804,46 @@ export default { _o.set(_j, "roles", _p?.roles); _o.set(_j, "qual", _p?.qual); _o.set(_j, "with_check", _p?.with_check); + if (isNode) { + return { + CreatePolicyStmt: _j + }; + } return _j; }, - alterPolicyStmt(_p?: AlterPolicyStmt): AlterPolicyStmt { + alterPolicyStmt(_p?: AlterPolicyStmt, isNode?: boolean): AlterPolicyStmt | { + AlterPolicyStmt: AlterPolicyStmt; + } { const _j = {} as AlterPolicyStmt; _o.set(_j, "policy_name", _p?.policy_name); _o.set(_j, "table", _p?.table); _o.set(_j, "roles", _p?.roles); _o.set(_j, "qual", _p?.qual); _o.set(_j, "with_check", _p?.with_check); + if (isNode) { + return { + AlterPolicyStmt: _j + }; + } return _j; }, - createAmStmt(_p?: CreateAmStmt): CreateAmStmt { + createAmStmt(_p?: CreateAmStmt, isNode?: boolean): CreateAmStmt | { + CreateAmStmt: CreateAmStmt; + } { const _j = {} as CreateAmStmt; _o.set(_j, "amname", _p?.amname); _o.set(_j, "handler_name", _p?.handler_name); _o.set(_j, "amtype", _p?.amtype); + if (isNode) { + return { + CreateAmStmt: _j + }; + } return _j; }, - createTrigStmt(_p?: CreateTrigStmt): CreateTrigStmt { + createTrigStmt(_p?: CreateTrigStmt, isNode?: boolean): CreateTrigStmt | { + CreateTrigStmt: CreateTrigStmt; + } { const _j = {} as CreateTrigStmt; _o.set(_j, "replace", _p?.replace); _o.set(_j, "isconstraint", _p?.isconstraint); @@ -1675,23 +2860,44 @@ export default { _o.set(_j, "deferrable", _p?.deferrable); _o.set(_j, "initdeferred", _p?.initdeferred); _o.set(_j, "constrrel", _p?.constrrel); + if (isNode) { + return { + CreateTrigStmt: _j + }; + } return _j; }, - createEventTrigStmt(_p?: CreateEventTrigStmt): CreateEventTrigStmt { + createEventTrigStmt(_p?: CreateEventTrigStmt, isNode?: boolean): CreateEventTrigStmt | { + CreateEventTrigStmt: CreateEventTrigStmt; + } { const _j = {} as CreateEventTrigStmt; _o.set(_j, "trigname", _p?.trigname); _o.set(_j, "eventname", _p?.eventname); _o.set(_j, "whenclause", _p?.whenclause); _o.set(_j, "funcname", _p?.funcname); + if (isNode) { + return { + CreateEventTrigStmt: _j + }; + } return _j; }, - alterEventTrigStmt(_p?: AlterEventTrigStmt): AlterEventTrigStmt { + alterEventTrigStmt(_p?: AlterEventTrigStmt, isNode?: boolean): AlterEventTrigStmt | { + AlterEventTrigStmt: AlterEventTrigStmt; + } { const _j = {} as AlterEventTrigStmt; _o.set(_j, "trigname", _p?.trigname); _o.set(_j, "tgenabled", _p?.tgenabled); + if (isNode) { + return { + AlterEventTrigStmt: _j + }; + } return _j; }, - createpLangStmt(_p?: CreatePLangStmt): CreatePLangStmt { + createpLangStmt(_p?: CreatePLangStmt, isNode?: boolean): CreatePLangStmt | { + CreatePLangStmt: CreatePLangStmt; + } { const _j = {} as CreatePLangStmt; _o.set(_j, "replace", _p?.replace); _o.set(_j, "plname", _p?.plname); @@ -1699,53 +2905,102 @@ export default { _o.set(_j, "plinline", _p?.plinline); _o.set(_j, "plvalidator", _p?.plvalidator); _o.set(_j, "pltrusted", _p?.pltrusted); + if (isNode) { + return { + CreatePLangStmt: _j + }; + } return _j; }, - createRoleStmt(_p?: CreateRoleStmt): CreateRoleStmt { + createRoleStmt(_p?: CreateRoleStmt, isNode?: boolean): CreateRoleStmt | { + CreateRoleStmt: CreateRoleStmt; + } { const _j = {} as CreateRoleStmt; _o.set(_j, "stmt_type", _p?.stmt_type); _o.set(_j, "role", _p?.role); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateRoleStmt: _j + }; + } return _j; }, - alterRoleStmt(_p?: AlterRoleStmt): AlterRoleStmt { + alterRoleStmt(_p?: AlterRoleStmt, isNode?: boolean): AlterRoleStmt | { + AlterRoleStmt: AlterRoleStmt; + } { const _j = {} as AlterRoleStmt; _o.set(_j, "role", _p?.role); _o.set(_j, "options", _p?.options); _o.set(_j, "action", _p?.action); + if (isNode) { + return { + AlterRoleStmt: _j + }; + } return _j; }, - alterRoleSetStmt(_p?: AlterRoleSetStmt): AlterRoleSetStmt { + alterRoleSetStmt(_p?: AlterRoleSetStmt, isNode?: boolean): AlterRoleSetStmt | { + AlterRoleSetStmt: AlterRoleSetStmt; + } { const _j = {} as AlterRoleSetStmt; _o.set(_j, "role", _p?.role); _o.set(_j, "database", _p?.database); _o.set(_j, "setstmt", _p?.setstmt); + if (isNode) { + return { + AlterRoleSetStmt: _j + }; + } return _j; }, - dropRoleStmt(_p?: DropRoleStmt): DropRoleStmt { + dropRoleStmt(_p?: DropRoleStmt, isNode?: boolean): DropRoleStmt | { + DropRoleStmt: DropRoleStmt; + } { const _j = {} as DropRoleStmt; _o.set(_j, "roles", _p?.roles); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + DropRoleStmt: _j + }; + } return _j; }, - createSeqStmt(_p?: CreateSeqStmt): CreateSeqStmt { + createSeqStmt(_p?: CreateSeqStmt, isNode?: boolean): CreateSeqStmt | { + CreateSeqStmt: CreateSeqStmt; + } { const _j = {} as CreateSeqStmt; _o.set(_j, "sequence", _p?.sequence); _o.set(_j, "options", _p?.options); _o.set(_j, "ownerId", _p?.ownerId); _o.set(_j, "for_identity", _p?.for_identity); _o.set(_j, "if_not_exists", _p?.if_not_exists); + if (isNode) { + return { + CreateSeqStmt: _j + }; + } return _j; }, - alterSeqStmt(_p?: AlterSeqStmt): AlterSeqStmt { + alterSeqStmt(_p?: AlterSeqStmt, isNode?: boolean): AlterSeqStmt | { + AlterSeqStmt: AlterSeqStmt; + } { const _j = {} as AlterSeqStmt; _o.set(_j, "sequence", _p?.sequence); _o.set(_j, "options", _p?.options); _o.set(_j, "for_identity", _p?.for_identity); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + AlterSeqStmt: _j + }; + } return _j; }, - defineStmt(_p?: DefineStmt): DefineStmt { + defineStmt(_p?: DefineStmt, isNode?: boolean): DefineStmt | { + DefineStmt: DefineStmt; + } { const _j = {} as DefineStmt; _o.set(_j, "kind", _p?.kind); _o.set(_j, "oldstyle", _p?.oldstyle); @@ -1754,17 +3009,31 @@ export default { _o.set(_j, "definition", _p?.definition); _o.set(_j, "if_not_exists", _p?.if_not_exists); _o.set(_j, "replace", _p?.replace); + if (isNode) { + return { + DefineStmt: _j + }; + } return _j; }, - createDomainStmt(_p?: CreateDomainStmt): CreateDomainStmt { + createDomainStmt(_p?: CreateDomainStmt, isNode?: boolean): CreateDomainStmt | { + CreateDomainStmt: CreateDomainStmt; + } { const _j = {} as CreateDomainStmt; _o.set(_j, "domainname", _p?.domainname); _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "collClause", _p?.collClause); _o.set(_j, "constraints", _p?.constraints); + if (isNode) { + return { + CreateDomainStmt: _j + }; + } return _j; }, - createOpClassStmt(_p?: CreateOpClassStmt): CreateOpClassStmt { + createOpClassStmt(_p?: CreateOpClassStmt, isNode?: boolean): CreateOpClassStmt | { + CreateOpClassStmt: CreateOpClassStmt; + } { const _j = {} as CreateOpClassStmt; _o.set(_j, "opclassname", _p?.opclassname); _o.set(_j, "opfamilyname", _p?.opfamilyname); @@ -1772,9 +3041,16 @@ export default { _o.set(_j, "datatype", _p?.datatype); _o.set(_j, "items", _p?.items); _o.set(_j, "isDefault", _p?.isDefault); + if (isNode) { + return { + CreateOpClassStmt: _j + }; + } return _j; }, - createOpClassItem(_p?: CreateOpClassItem): CreateOpClassItem { + createOpClassItem(_p?: CreateOpClassItem, isNode?: boolean): CreateOpClassItem | { + CreateOpClassItem: CreateOpClassItem; + } { const _j = {} as CreateOpClassItem; _o.set(_j, "itemtype", _p?.itemtype); _o.set(_j, "name", _p?.name); @@ -1782,74 +3058,144 @@ export default { _o.set(_j, "order_family", _p?.order_family); _o.set(_j, "class_args", _p?.class_args); _o.set(_j, "storedtype", _p?.storedtype); + if (isNode) { + return { + CreateOpClassItem: _j + }; + } return _j; }, - createOpFamilyStmt(_p?: CreateOpFamilyStmt): CreateOpFamilyStmt { + createOpFamilyStmt(_p?: CreateOpFamilyStmt, isNode?: boolean): CreateOpFamilyStmt | { + CreateOpFamilyStmt: CreateOpFamilyStmt; + } { const _j = {} as CreateOpFamilyStmt; _o.set(_j, "opfamilyname", _p?.opfamilyname); _o.set(_j, "amname", _p?.amname); + if (isNode) { + return { + CreateOpFamilyStmt: _j + }; + } return _j; }, - alterOpFamilyStmt(_p?: AlterOpFamilyStmt): AlterOpFamilyStmt { + alterOpFamilyStmt(_p?: AlterOpFamilyStmt, isNode?: boolean): AlterOpFamilyStmt | { + AlterOpFamilyStmt: AlterOpFamilyStmt; + } { const _j = {} as AlterOpFamilyStmt; _o.set(_j, "opfamilyname", _p?.opfamilyname); _o.set(_j, "amname", _p?.amname); _o.set(_j, "isDrop", _p?.isDrop); _o.set(_j, "items", _p?.items); + if (isNode) { + return { + AlterOpFamilyStmt: _j + }; + } return _j; }, - dropStmt(_p?: DropStmt): DropStmt { + dropStmt(_p?: DropStmt, isNode?: boolean): DropStmt | { + DropStmt: DropStmt; + } { const _j = {} as DropStmt; _o.set(_j, "objects", _p?.objects); _o.set(_j, "removeType", _p?.removeType); _o.set(_j, "behavior", _p?.behavior); _o.set(_j, "missing_ok", _p?.missing_ok); _o.set(_j, "concurrent", _p?.concurrent); + if (isNode) { + return { + DropStmt: _j + }; + } return _j; }, - truncateStmt(_p?: TruncateStmt): TruncateStmt { + truncateStmt(_p?: TruncateStmt, isNode?: boolean): TruncateStmt | { + TruncateStmt: TruncateStmt; + } { const _j = {} as TruncateStmt; _o.set(_j, "relations", _p?.relations); _o.set(_j, "restart_seqs", _p?.restart_seqs); _o.set(_j, "behavior", _p?.behavior); + if (isNode) { + return { + TruncateStmt: _j + }; + } return _j; }, - commentStmt(_p?: CommentStmt): CommentStmt { + commentStmt(_p?: CommentStmt, isNode?: boolean): CommentStmt | { + CommentStmt: CommentStmt; + } { const _j = {} as CommentStmt; _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "object", _p?.object); _o.set(_j, "comment", _p?.comment); + if (isNode) { + return { + CommentStmt: _j + }; + } return _j; }, - secLabelStmt(_p?: SecLabelStmt): SecLabelStmt { + secLabelStmt(_p?: SecLabelStmt, isNode?: boolean): SecLabelStmt | { + SecLabelStmt: SecLabelStmt; + } { const _j = {} as SecLabelStmt; _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "object", _p?.object); _o.set(_j, "provider", _p?.provider); _o.set(_j, "label", _p?.label); + if (isNode) { + return { + SecLabelStmt: _j + }; + } return _j; }, - declareCursorStmt(_p?: DeclareCursorStmt): DeclareCursorStmt { + declareCursorStmt(_p?: DeclareCursorStmt, isNode?: boolean): DeclareCursorStmt | { + DeclareCursorStmt: DeclareCursorStmt; + } { const _j = {} as DeclareCursorStmt; _o.set(_j, "portalname", _p?.portalname); _o.set(_j, "options", _p?.options); _o.set(_j, "query", _p?.query); + if (isNode) { + return { + DeclareCursorStmt: _j + }; + } return _j; }, - closePortalStmt(_p?: ClosePortalStmt): ClosePortalStmt { + closePortalStmt(_p?: ClosePortalStmt, isNode?: boolean): ClosePortalStmt | { + ClosePortalStmt: ClosePortalStmt; + } { const _j = {} as ClosePortalStmt; _o.set(_j, "portalname", _p?.portalname); + if (isNode) { + return { + ClosePortalStmt: _j + }; + } return _j; }, - fetchStmt(_p?: FetchStmt): FetchStmt { + fetchStmt(_p?: FetchStmt, isNode?: boolean): FetchStmt | { + FetchStmt: FetchStmt; + } { const _j = {} as FetchStmt; _o.set(_j, "direction", _p?.direction); _o.set(_j, "howMany", _p?.howMany); _o.set(_j, "portalname", _p?.portalname); _o.set(_j, "ismove", _p?.ismove); + if (isNode) { + return { + FetchStmt: _j + }; + } return _j; }, - indexStmt(_p?: IndexStmt): IndexStmt { + indexStmt(_p?: IndexStmt, isNode?: boolean): IndexStmt | { + IndexStmt: IndexStmt; + } { const _j = {} as IndexStmt; _o.set(_j, "idxname", _p?.idxname); _o.set(_j, "relation", _p?.relation); @@ -1875,9 +3221,16 @@ export default { _o.set(_j, "concurrent", _p?.concurrent); _o.set(_j, "if_not_exists", _p?.if_not_exists); _o.set(_j, "reset_default_tblspc", _p?.reset_default_tblspc); + if (isNode) { + return { + IndexStmt: _j + }; + } return _j; }, - createStatsStmt(_p?: CreateStatsStmt): CreateStatsStmt { + createStatsStmt(_p?: CreateStatsStmt, isNode?: boolean): CreateStatsStmt | { + CreateStatsStmt: CreateStatsStmt; + } { const _j = {} as CreateStatsStmt; _o.set(_j, "defnames", _p?.defnames); _o.set(_j, "stat_types", _p?.stat_types); @@ -1886,22 +3239,43 @@ export default { _o.set(_j, "stxcomment", _p?.stxcomment); _o.set(_j, "transformed", _p?.transformed); _o.set(_j, "if_not_exists", _p?.if_not_exists); + if (isNode) { + return { + CreateStatsStmt: _j + }; + } return _j; }, - statsElem(_p?: StatsElem): StatsElem { + statsElem(_p?: StatsElem, isNode?: boolean): StatsElem | { + StatsElem: StatsElem; + } { const _j = {} as StatsElem; _o.set(_j, "name", _p?.name); _o.set(_j, "expr", _p?.expr); + if (isNode) { + return { + StatsElem: _j + }; + } return _j; }, - alterStatsStmt(_p?: AlterStatsStmt): AlterStatsStmt { + alterStatsStmt(_p?: AlterStatsStmt, isNode?: boolean): AlterStatsStmt | { + AlterStatsStmt: AlterStatsStmt; + } { const _j = {} as AlterStatsStmt; _o.set(_j, "defnames", _p?.defnames); _o.set(_j, "stxstattarget", _p?.stxstattarget); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + AlterStatsStmt: _j + }; + } return _j; }, - createFunctionStmt(_p?: CreateFunctionStmt): CreateFunctionStmt { + createFunctionStmt(_p?: CreateFunctionStmt, isNode?: boolean): CreateFunctionStmt | { + CreateFunctionStmt: CreateFunctionStmt; + } { const _j = {} as CreateFunctionStmt; _o.set(_j, "is_procedure", _p?.is_procedure); _o.set(_j, "replace", _p?.replace); @@ -1910,49 +3284,98 @@ export default { _o.set(_j, "returnType", _p?.returnType); _o.set(_j, "options", _p?.options); _o.set(_j, "sql_body", _p?.sql_body); + if (isNode) { + return { + CreateFunctionStmt: _j + }; + } return _j; }, - functionParameter(_p?: FunctionParameter): FunctionParameter { + functionParameter(_p?: FunctionParameter, isNode?: boolean): FunctionParameter | { + FunctionParameter: FunctionParameter; + } { const _j = {} as FunctionParameter; _o.set(_j, "name", _p?.name); _o.set(_j, "argType", _p?.argType); _o.set(_j, "mode", _p?.mode); _o.set(_j, "defexpr", _p?.defexpr); + if (isNode) { + return { + FunctionParameter: _j + }; + } return _j; }, - alterFunctionStmt(_p?: AlterFunctionStmt): AlterFunctionStmt { + alterFunctionStmt(_p?: AlterFunctionStmt, isNode?: boolean): AlterFunctionStmt | { + AlterFunctionStmt: AlterFunctionStmt; + } { const _j = {} as AlterFunctionStmt; _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "func", _p?.func); _o.set(_j, "actions", _p?.actions); + if (isNode) { + return { + AlterFunctionStmt: _j + }; + } return _j; }, - doStmt(_p?: DoStmt): DoStmt { + doStmt(_p?: DoStmt, isNode?: boolean): DoStmt | { + DoStmt: DoStmt; + } { const _j = {} as DoStmt; _o.set(_j, "args", _p?.args); + if (isNode) { + return { + DoStmt: _j + }; + } return _j; }, - inlineCodeBlock(_p?: InlineCodeBlock): InlineCodeBlock { + inlineCodeBlock(_p?: InlineCodeBlock, isNode?: boolean): InlineCodeBlock | { + InlineCodeBlock: InlineCodeBlock; + } { const _j = {} as InlineCodeBlock; _o.set(_j, "source_text", _p?.source_text); _o.set(_j, "langOid", _p?.langOid); _o.set(_j, "langIsTrusted", _p?.langIsTrusted); _o.set(_j, "atomic", _p?.atomic); + if (isNode) { + return { + InlineCodeBlock: _j + }; + } return _j; }, - callStmt(_p?: CallStmt): CallStmt { + callStmt(_p?: CallStmt, isNode?: boolean): CallStmt | { + CallStmt: CallStmt; + } { const _j = {} as CallStmt; _o.set(_j, "funccall", _p?.funccall); _o.set(_j, "funcexpr", _p?.funcexpr); _o.set(_j, "outargs", _p?.outargs); + if (isNode) { + return { + CallStmt: _j + }; + } return _j; }, - callContext(_p?: CallContext): CallContext { + callContext(_p?: CallContext, isNode?: boolean): CallContext | { + CallContext: CallContext; + } { const _j = {} as CallContext; _o.set(_j, "atomic", _p?.atomic); + if (isNode) { + return { + CallContext: _j + }; + } return _j; }, - renameStmt(_p?: RenameStmt): RenameStmt { + renameStmt(_p?: RenameStmt, isNode?: boolean): RenameStmt | { + RenameStmt: RenameStmt; + } { const _j = {} as RenameStmt; _o.set(_j, "renameType", _p?.renameType); _o.set(_j, "relationType", _p?.relationType); @@ -1962,47 +3385,89 @@ export default { _o.set(_j, "newname", _p?.newname); _o.set(_j, "behavior", _p?.behavior); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + RenameStmt: _j + }; + } return _j; }, - alterObjectDependsStmt(_p?: AlterObjectDependsStmt): AlterObjectDependsStmt { + alterObjectDependsStmt(_p?: AlterObjectDependsStmt, isNode?: boolean): AlterObjectDependsStmt | { + AlterObjectDependsStmt: AlterObjectDependsStmt; + } { const _j = {} as AlterObjectDependsStmt; _o.set(_j, "objectType", _p?.objectType); _o.set(_j, "relation", _p?.relation); _o.set(_j, "object", _p?.object); _o.set(_j, "extname", _p?.extname); _o.set(_j, "remove", _p?.remove); + if (isNode) { + return { + AlterObjectDependsStmt: _j + }; + } return _j; }, - alterObjectSchemaStmt(_p?: AlterObjectSchemaStmt): AlterObjectSchemaStmt { + alterObjectSchemaStmt(_p?: AlterObjectSchemaStmt, isNode?: boolean): AlterObjectSchemaStmt | { + AlterObjectSchemaStmt: AlterObjectSchemaStmt; + } { const _j = {} as AlterObjectSchemaStmt; _o.set(_j, "objectType", _p?.objectType); _o.set(_j, "relation", _p?.relation); _o.set(_j, "object", _p?.object); _o.set(_j, "newschema", _p?.newschema); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + AlterObjectSchemaStmt: _j + }; + } return _j; }, - alterOwnerStmt(_p?: AlterOwnerStmt): AlterOwnerStmt { + alterOwnerStmt(_p?: AlterOwnerStmt, isNode?: boolean): AlterOwnerStmt | { + AlterOwnerStmt: AlterOwnerStmt; + } { const _j = {} as AlterOwnerStmt; _o.set(_j, "objectType", _p?.objectType); _o.set(_j, "relation", _p?.relation); _o.set(_j, "object", _p?.object); _o.set(_j, "newowner", _p?.newowner); + if (isNode) { + return { + AlterOwnerStmt: _j + }; + } return _j; }, - alterOperatorStmt(_p?: AlterOperatorStmt): AlterOperatorStmt { + alterOperatorStmt(_p?: AlterOperatorStmt, isNode?: boolean): AlterOperatorStmt | { + AlterOperatorStmt: AlterOperatorStmt; + } { const _j = {} as AlterOperatorStmt; _o.set(_j, "opername", _p?.opername); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterOperatorStmt: _j + }; + } return _j; }, - alterTypeStmt(_p?: AlterTypeStmt): AlterTypeStmt { + alterTypeStmt(_p?: AlterTypeStmt, isNode?: boolean): AlterTypeStmt | { + AlterTypeStmt: AlterTypeStmt; + } { const _j = {} as AlterTypeStmt; _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterTypeStmt: _j + }; + } return _j; }, - ruleStmt(_p?: RuleStmt): RuleStmt { + ruleStmt(_p?: RuleStmt, isNode?: boolean): RuleStmt | { + RuleStmt: RuleStmt; + } { const _j = {} as RuleStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "rulename", _p?.rulename); @@ -2011,52 +3476,108 @@ export default { _o.set(_j, "instead", _p?.instead); _o.set(_j, "actions", _p?.actions); _o.set(_j, "replace", _p?.replace); + if (isNode) { + return { + RuleStmt: _j + }; + } return _j; }, - notifyStmt(_p?: NotifyStmt): NotifyStmt { + notifyStmt(_p?: NotifyStmt, isNode?: boolean): NotifyStmt | { + NotifyStmt: NotifyStmt; + } { const _j = {} as NotifyStmt; _o.set(_j, "conditionname", _p?.conditionname); _o.set(_j, "payload", _p?.payload); + if (isNode) { + return { + NotifyStmt: _j + }; + } return _j; }, - listenStmt(_p?: ListenStmt): ListenStmt { + listenStmt(_p?: ListenStmt, isNode?: boolean): ListenStmt | { + ListenStmt: ListenStmt; + } { const _j = {} as ListenStmt; _o.set(_j, "conditionname", _p?.conditionname); + if (isNode) { + return { + ListenStmt: _j + }; + } return _j; }, - unlistenStmt(_p?: UnlistenStmt): UnlistenStmt { + unlistenStmt(_p?: UnlistenStmt, isNode?: boolean): UnlistenStmt | { + UnlistenStmt: UnlistenStmt; + } { const _j = {} as UnlistenStmt; _o.set(_j, "conditionname", _p?.conditionname); + if (isNode) { + return { + UnlistenStmt: _j + }; + } return _j; }, - transactionStmt(_p?: TransactionStmt): TransactionStmt { + transactionStmt(_p?: TransactionStmt, isNode?: boolean): TransactionStmt | { + TransactionStmt: TransactionStmt; + } { const _j = {} as TransactionStmt; _o.set(_j, "kind", _p?.kind); _o.set(_j, "options", _p?.options); _o.set(_j, "savepoint_name", _p?.savepoint_name); _o.set(_j, "gid", _p?.gid); _o.set(_j, "chain", _p?.chain); + if (isNode) { + return { + TransactionStmt: _j + }; + } return _j; }, - compositeTypeStmt(_p?: CompositeTypeStmt): CompositeTypeStmt { + compositeTypeStmt(_p?: CompositeTypeStmt, isNode?: boolean): CompositeTypeStmt | { + CompositeTypeStmt: CompositeTypeStmt; + } { const _j = {} as CompositeTypeStmt; _o.set(_j, "typevar", _p?.typevar); _o.set(_j, "coldeflist", _p?.coldeflist); + if (isNode) { + return { + CompositeTypeStmt: _j + }; + } return _j; }, - createEnumStmt(_p?: CreateEnumStmt): CreateEnumStmt { + createEnumStmt(_p?: CreateEnumStmt, isNode?: boolean): CreateEnumStmt | { + CreateEnumStmt: CreateEnumStmt; + } { const _j = {} as CreateEnumStmt; _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "vals", _p?.vals); + if (isNode) { + return { + CreateEnumStmt: _j + }; + } return _j; }, - createRangeStmt(_p?: CreateRangeStmt): CreateRangeStmt { + createRangeStmt(_p?: CreateRangeStmt, isNode?: boolean): CreateRangeStmt | { + CreateRangeStmt: CreateRangeStmt; + } { const _j = {} as CreateRangeStmt; _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "params", _p?.params); + if (isNode) { + return { + CreateRangeStmt: _j + }; + } return _j; }, - alterEnumStmt(_p?: AlterEnumStmt): AlterEnumStmt { + alterEnumStmt(_p?: AlterEnumStmt, isNode?: boolean): AlterEnumStmt | { + AlterEnumStmt: AlterEnumStmt; + } { const _j = {} as AlterEnumStmt; _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "oldVal", _p?.oldVal); @@ -2064,9 +3585,16 @@ export default { _o.set(_j, "newValNeighbor", _p?.newValNeighbor); _o.set(_j, "newValIsAfter", _p?.newValIsAfter); _o.set(_j, "skipIfNewValExists", _p?.skipIfNewValExists); + if (isNode) { + return { + AlterEnumStmt: _j + }; + } return _j; }, - viewStmt(_p?: ViewStmt): ViewStmt { + viewStmt(_p?: ViewStmt, isNode?: boolean): ViewStmt | { + ViewStmt: ViewStmt; + } { const _j = {} as ViewStmt; _o.set(_j, "view", _p?.view); _o.set(_j, "aliases", _p?.aliases); @@ -2074,185 +3602,381 @@ export default { _o.set(_j, "replace", _p?.replace); _o.set(_j, "options", _p?.options); _o.set(_j, "withCheckOption", _p?.withCheckOption); + if (isNode) { + return { + ViewStmt: _j + }; + } return _j; }, - loadStmt(_p?: LoadStmt): LoadStmt { + loadStmt(_p?: LoadStmt, isNode?: boolean): LoadStmt | { + LoadStmt: LoadStmt; + } { const _j = {} as LoadStmt; _o.set(_j, "filename", _p?.filename); + if (isNode) { + return { + LoadStmt: _j + }; + } return _j; }, - createdbStmt(_p?: CreatedbStmt): CreatedbStmt { + createdbStmt(_p?: CreatedbStmt, isNode?: boolean): CreatedbStmt | { + CreatedbStmt: CreatedbStmt; + } { const _j = {} as CreatedbStmt; _o.set(_j, "dbname", _p?.dbname); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreatedbStmt: _j + }; + } return _j; }, - alterDatabaseStmt(_p?: AlterDatabaseStmt): AlterDatabaseStmt { + alterDatabaseStmt(_p?: AlterDatabaseStmt, isNode?: boolean): AlterDatabaseStmt | { + AlterDatabaseStmt: AlterDatabaseStmt; + } { const _j = {} as AlterDatabaseStmt; _o.set(_j, "dbname", _p?.dbname); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterDatabaseStmt: _j + }; + } return _j; }, - alterDatabaseRefreshCollStmt(_p?: AlterDatabaseRefreshCollStmt): AlterDatabaseRefreshCollStmt { + alterDatabaseRefreshCollStmt(_p?: AlterDatabaseRefreshCollStmt, isNode?: boolean): AlterDatabaseRefreshCollStmt | { + AlterDatabaseRefreshCollStmt: AlterDatabaseRefreshCollStmt; + } { const _j = {} as AlterDatabaseRefreshCollStmt; _o.set(_j, "dbname", _p?.dbname); + if (isNode) { + return { + AlterDatabaseRefreshCollStmt: _j + }; + } return _j; }, - alterDatabaseSetStmt(_p?: AlterDatabaseSetStmt): AlterDatabaseSetStmt { + alterDatabaseSetStmt(_p?: AlterDatabaseSetStmt, isNode?: boolean): AlterDatabaseSetStmt | { + AlterDatabaseSetStmt: AlterDatabaseSetStmt; + } { const _j = {} as AlterDatabaseSetStmt; _o.set(_j, "dbname", _p?.dbname); _o.set(_j, "setstmt", _p?.setstmt); + if (isNode) { + return { + AlterDatabaseSetStmt: _j + }; + } return _j; }, - dropdbStmt(_p?: DropdbStmt): DropdbStmt { + dropdbStmt(_p?: DropdbStmt, isNode?: boolean): DropdbStmt | { + DropdbStmt: DropdbStmt; + } { const _j = {} as DropdbStmt; _o.set(_j, "dbname", _p?.dbname); _o.set(_j, "missing_ok", _p?.missing_ok); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + DropdbStmt: _j + }; + } return _j; }, - alterSystemStmt(_p?: AlterSystemStmt): AlterSystemStmt { + alterSystemStmt(_p?: AlterSystemStmt, isNode?: boolean): AlterSystemStmt | { + AlterSystemStmt: AlterSystemStmt; + } { const _j = {} as AlterSystemStmt; _o.set(_j, "setstmt", _p?.setstmt); + if (isNode) { + return { + AlterSystemStmt: _j + }; + } return _j; }, - clusterStmt(_p?: ClusterStmt): ClusterStmt { + clusterStmt(_p?: ClusterStmt, isNode?: boolean): ClusterStmt | { + ClusterStmt: ClusterStmt; + } { const _j = {} as ClusterStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "indexname", _p?.indexname); _o.set(_j, "params", _p?.params); + if (isNode) { + return { + ClusterStmt: _j + }; + } return _j; }, - vacuumStmt(_p?: VacuumStmt): VacuumStmt { + vacuumStmt(_p?: VacuumStmt, isNode?: boolean): VacuumStmt | { + VacuumStmt: VacuumStmt; + } { const _j = {} as VacuumStmt; _o.set(_j, "options", _p?.options); _o.set(_j, "rels", _p?.rels); _o.set(_j, "is_vacuumcmd", _p?.is_vacuumcmd); + if (isNode) { + return { + VacuumStmt: _j + }; + } return _j; }, - vacuumRelation(_p?: VacuumRelation): VacuumRelation { + vacuumRelation(_p?: VacuumRelation, isNode?: boolean): VacuumRelation | { + VacuumRelation: VacuumRelation; + } { const _j = {} as VacuumRelation; _o.set(_j, "relation", _p?.relation); _o.set(_j, "oid", _p?.oid); _o.set(_j, "va_cols", _p?.va_cols); + if (isNode) { + return { + VacuumRelation: _j + }; + } return _j; }, - explainStmt(_p?: ExplainStmt): ExplainStmt { + explainStmt(_p?: ExplainStmt, isNode?: boolean): ExplainStmt | { + ExplainStmt: ExplainStmt; + } { const _j = {} as ExplainStmt; _o.set(_j, "query", _p?.query); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + ExplainStmt: _j + }; + } return _j; }, - createTableAsStmt(_p?: CreateTableAsStmt): CreateTableAsStmt { + createTableAsStmt(_p?: CreateTableAsStmt, isNode?: boolean): CreateTableAsStmt | { + CreateTableAsStmt: CreateTableAsStmt; + } { const _j = {} as CreateTableAsStmt; _o.set(_j, "query", _p?.query); _o.set(_j, "into", _p?.into); _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "is_select_into", _p?.is_select_into); _o.set(_j, "if_not_exists", _p?.if_not_exists); + if (isNode) { + return { + CreateTableAsStmt: _j + }; + } return _j; }, - refreshMatViewStmt(_p?: RefreshMatViewStmt): RefreshMatViewStmt { + refreshMatViewStmt(_p?: RefreshMatViewStmt, isNode?: boolean): RefreshMatViewStmt | { + RefreshMatViewStmt: RefreshMatViewStmt; + } { const _j = {} as RefreshMatViewStmt; _o.set(_j, "concurrent", _p?.concurrent); _o.set(_j, "skipData", _p?.skipData); _o.set(_j, "relation", _p?.relation); + if (isNode) { + return { + RefreshMatViewStmt: _j + }; + } return _j; }, - checkPointStmt(_p?: CheckPointStmt): CheckPointStmt { + checkPointStmt(_p?: CheckPointStmt, isNode?: boolean): CheckPointStmt | { + CheckPointStmt: CheckPointStmt; + } { const _j = {} as CheckPointStmt; + if (isNode) { + return { + CheckPointStmt: _j + }; + } return _j; }, - discardStmt(_p?: DiscardStmt): DiscardStmt { + discardStmt(_p?: DiscardStmt, isNode?: boolean): DiscardStmt | { + DiscardStmt: DiscardStmt; + } { const _j = {} as DiscardStmt; _o.set(_j, "target", _p?.target); + if (isNode) { + return { + DiscardStmt: _j + }; + } return _j; }, - lockStmt(_p?: LockStmt): LockStmt { + lockStmt(_p?: LockStmt, isNode?: boolean): LockStmt | { + LockStmt: LockStmt; + } { const _j = {} as LockStmt; _o.set(_j, "relations", _p?.relations); _o.set(_j, "mode", _p?.mode); _o.set(_j, "nowait", _p?.nowait); + if (isNode) { + return { + LockStmt: _j + }; + } return _j; }, - constraintsSetStmt(_p?: ConstraintsSetStmt): ConstraintsSetStmt { + constraintsSetStmt(_p?: ConstraintsSetStmt, isNode?: boolean): ConstraintsSetStmt | { + ConstraintsSetStmt: ConstraintsSetStmt; + } { const _j = {} as ConstraintsSetStmt; _o.set(_j, "constraints", _p?.constraints); _o.set(_j, "deferred", _p?.deferred); + if (isNode) { + return { + ConstraintsSetStmt: _j + }; + } return _j; }, - reindexStmt(_p?: ReindexStmt): ReindexStmt { + reindexStmt(_p?: ReindexStmt, isNode?: boolean): ReindexStmt | { + ReindexStmt: ReindexStmt; + } { const _j = {} as ReindexStmt; _o.set(_j, "kind", _p?.kind); _o.set(_j, "relation", _p?.relation); _o.set(_j, "name", _p?.name); _o.set(_j, "params", _p?.params); + if (isNode) { + return { + ReindexStmt: _j + }; + } return _j; }, - createConversionStmt(_p?: CreateConversionStmt): CreateConversionStmt { + createConversionStmt(_p?: CreateConversionStmt, isNode?: boolean): CreateConversionStmt | { + CreateConversionStmt: CreateConversionStmt; + } { const _j = {} as CreateConversionStmt; _o.set(_j, "conversion_name", _p?.conversion_name); _o.set(_j, "for_encoding_name", _p?.for_encoding_name); _o.set(_j, "to_encoding_name", _p?.to_encoding_name); _o.set(_j, "func_name", _p?.func_name); _o.set(_j, "def", _p?.def); + if (isNode) { + return { + CreateConversionStmt: _j + }; + } return _j; }, - createCastStmt(_p?: CreateCastStmt): CreateCastStmt { + createCastStmt(_p?: CreateCastStmt, isNode?: boolean): CreateCastStmt | { + CreateCastStmt: CreateCastStmt; + } { const _j = {} as CreateCastStmt; _o.set(_j, "sourcetype", _p?.sourcetype); _o.set(_j, "targettype", _p?.targettype); _o.set(_j, "func", _p?.func); _o.set(_j, "context", _p?.context); _o.set(_j, "inout", _p?.inout); + if (isNode) { + return { + CreateCastStmt: _j + }; + } return _j; }, - createTransformStmt(_p?: CreateTransformStmt): CreateTransformStmt { + createTransformStmt(_p?: CreateTransformStmt, isNode?: boolean): CreateTransformStmt | { + CreateTransformStmt: CreateTransformStmt; + } { const _j = {} as CreateTransformStmt; _o.set(_j, "replace", _p?.replace); _o.set(_j, "type_name", _p?.type_name); _o.set(_j, "lang", _p?.lang); _o.set(_j, "fromsql", _p?.fromsql); _o.set(_j, "tosql", _p?.tosql); + if (isNode) { + return { + CreateTransformStmt: _j + }; + } return _j; }, - prepareStmt(_p?: PrepareStmt): PrepareStmt { + prepareStmt(_p?: PrepareStmt, isNode?: boolean): PrepareStmt | { + PrepareStmt: PrepareStmt; + } { const _j = {} as PrepareStmt; _o.set(_j, "name", _p?.name); _o.set(_j, "argtypes", _p?.argtypes); _o.set(_j, "query", _p?.query); + if (isNode) { + return { + PrepareStmt: _j + }; + } return _j; }, - executeStmt(_p?: ExecuteStmt): ExecuteStmt { + executeStmt(_p?: ExecuteStmt, isNode?: boolean): ExecuteStmt | { + ExecuteStmt: ExecuteStmt; + } { const _j = {} as ExecuteStmt; _o.set(_j, "name", _p?.name); _o.set(_j, "params", _p?.params); + if (isNode) { + return { + ExecuteStmt: _j + }; + } return _j; }, - deallocateStmt(_p?: DeallocateStmt): DeallocateStmt { + deallocateStmt(_p?: DeallocateStmt, isNode?: boolean): DeallocateStmt | { + DeallocateStmt: DeallocateStmt; + } { const _j = {} as DeallocateStmt; _o.set(_j, "name", _p?.name); + if (isNode) { + return { + DeallocateStmt: _j + }; + } return _j; }, - dropOwnedStmt(_p?: DropOwnedStmt): DropOwnedStmt { + dropOwnedStmt(_p?: DropOwnedStmt, isNode?: boolean): DropOwnedStmt | { + DropOwnedStmt: DropOwnedStmt; + } { const _j = {} as DropOwnedStmt; _o.set(_j, "roles", _p?.roles); _o.set(_j, "behavior", _p?.behavior); + if (isNode) { + return { + DropOwnedStmt: _j + }; + } return _j; }, - reassignOwnedStmt(_p?: ReassignOwnedStmt): ReassignOwnedStmt { + reassignOwnedStmt(_p?: ReassignOwnedStmt, isNode?: boolean): ReassignOwnedStmt | { + ReassignOwnedStmt: ReassignOwnedStmt; + } { const _j = {} as ReassignOwnedStmt; _o.set(_j, "roles", _p?.roles); _o.set(_j, "newrole", _p?.newrole); + if (isNode) { + return { + ReassignOwnedStmt: _j + }; + } return _j; }, - altertsDictionaryStmt(_p?: AlterTSDictionaryStmt): AlterTSDictionaryStmt { + altertsDictionaryStmt(_p?: AlterTSDictionaryStmt, isNode?: boolean): AlterTSDictionaryStmt | { + AlterTSDictionaryStmt: AlterTSDictionaryStmt; + } { const _j = {} as AlterTSDictionaryStmt; _o.set(_j, "dictname", _p?.dictname); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterTSDictionaryStmt: _j + }; + } return _j; }, - altertsConfigurationStmt(_p?: AlterTSConfigurationStmt): AlterTSConfigurationStmt { + altertsConfigurationStmt(_p?: AlterTSConfigurationStmt, isNode?: boolean): AlterTSConfigurationStmt | { + AlterTSConfigurationStmt: AlterTSConfigurationStmt; + } { const _j = {} as AlterTSConfigurationStmt; _o.set(_j, "kind", _p?.kind); _o.set(_j, "cfgname", _p?.cfgname); @@ -2261,70 +3985,131 @@ export default { _o.set(_j, "override", _p?.override); _o.set(_j, "replace", _p?.replace); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + AlterTSConfigurationStmt: _j + }; + } return _j; }, - publicationTable(_p?: PublicationTable): PublicationTable { + publicationTable(_p?: PublicationTable, isNode?: boolean): PublicationTable | { + PublicationTable: PublicationTable; + } { const _j = {} as PublicationTable; _o.set(_j, "relation", _p?.relation); _o.set(_j, "whereClause", _p?.whereClause); _o.set(_j, "columns", _p?.columns); + if (isNode) { + return { + PublicationTable: _j + }; + } return _j; }, - publicationObjSpec(_p?: PublicationObjSpec): PublicationObjSpec { + publicationObjSpec(_p?: PublicationObjSpec, isNode?: boolean): PublicationObjSpec | { + PublicationObjSpec: PublicationObjSpec; + } { const _j = {} as PublicationObjSpec; _o.set(_j, "pubobjtype", _p?.pubobjtype); _o.set(_j, "name", _p?.name); _o.set(_j, "pubtable", _p?.pubtable); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + PublicationObjSpec: _j + }; + } return _j; }, - createPublicationStmt(_p?: CreatePublicationStmt): CreatePublicationStmt { + createPublicationStmt(_p?: CreatePublicationStmt, isNode?: boolean): CreatePublicationStmt | { + CreatePublicationStmt: CreatePublicationStmt; + } { const _j = {} as CreatePublicationStmt; _o.set(_j, "pubname", _p?.pubname); _o.set(_j, "options", _p?.options); _o.set(_j, "pubobjects", _p?.pubobjects); _o.set(_j, "for_all_tables", _p?.for_all_tables); + if (isNode) { + return { + CreatePublicationStmt: _j + }; + } return _j; }, - alterPublicationStmt(_p?: AlterPublicationStmt): AlterPublicationStmt { + alterPublicationStmt(_p?: AlterPublicationStmt, isNode?: boolean): AlterPublicationStmt | { + AlterPublicationStmt: AlterPublicationStmt; + } { const _j = {} as AlterPublicationStmt; _o.set(_j, "pubname", _p?.pubname); _o.set(_j, "options", _p?.options); _o.set(_j, "pubobjects", _p?.pubobjects); _o.set(_j, "for_all_tables", _p?.for_all_tables); _o.set(_j, "action", _p?.action); + if (isNode) { + return { + AlterPublicationStmt: _j + }; + } return _j; }, - createSubscriptionStmt(_p?: CreateSubscriptionStmt): CreateSubscriptionStmt { + createSubscriptionStmt(_p?: CreateSubscriptionStmt, isNode?: boolean): CreateSubscriptionStmt | { + CreateSubscriptionStmt: CreateSubscriptionStmt; + } { const _j = {} as CreateSubscriptionStmt; _o.set(_j, "subname", _p?.subname); _o.set(_j, "conninfo", _p?.conninfo); _o.set(_j, "publication", _p?.publication); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateSubscriptionStmt: _j + }; + } return _j; }, - alterSubscriptionStmt(_p?: AlterSubscriptionStmt): AlterSubscriptionStmt { + alterSubscriptionStmt(_p?: AlterSubscriptionStmt, isNode?: boolean): AlterSubscriptionStmt | { + AlterSubscriptionStmt: AlterSubscriptionStmt; + } { const _j = {} as AlterSubscriptionStmt; _o.set(_j, "kind", _p?.kind); _o.set(_j, "subname", _p?.subname); _o.set(_j, "conninfo", _p?.conninfo); _o.set(_j, "publication", _p?.publication); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterSubscriptionStmt: _j + }; + } return _j; }, - dropSubscriptionStmt(_p?: DropSubscriptionStmt): DropSubscriptionStmt { + dropSubscriptionStmt(_p?: DropSubscriptionStmt, isNode?: boolean): DropSubscriptionStmt | { + DropSubscriptionStmt: DropSubscriptionStmt; + } { const _j = {} as DropSubscriptionStmt; _o.set(_j, "subname", _p?.subname); _o.set(_j, "missing_ok", _p?.missing_ok); _o.set(_j, "behavior", _p?.behavior); + if (isNode) { + return { + DropSubscriptionStmt: _j + }; + } return _j; }, - scanToken(_p?: ScanToken): ScanToken { + scanToken(_p?: ScanToken, isNode?: boolean): ScanToken | { + ScanToken: ScanToken; + } { const _j = {} as ScanToken; _o.set(_j, "start", _p?.start); _o.set(_j, "end", _p?.end); _o.set(_j, "token", _p?.token); _o.set(_j, "keywordKind", _p?.keywordKind); + if (isNode) { + return { + ScanToken: _j + }; + } return _j; } }; \ No newline at end of file diff --git a/__fixtures__/output/utils/astHelpers/inlineNestedObj/types.ts b/__fixtures__/output/utils/astHelpers/inlineNestedObj/types.ts index 4dbf99c8..cf5f2c36 100644 --- a/__fixtures__/output/utils/astHelpers/inlineNestedObj/types.ts +++ b/__fixtures__/output/utils/astHelpers/inlineNestedObj/types.ts @@ -4,7 +4,517 @@ * and run the pg-proto-parser generate command to regenerate this file. */ import { OverridingKind, QuerySource, SortByDir, SortByNulls, SetQuantifier, A_Expr_Kind, RoleSpecType, TableLikeOption, DefElemAction, PartitionStrategy, PartitionRangeDatumKind, RTEKind, WCOKind, GroupingSetKind, CTEMaterialize, SetOperation, ObjectType, DropBehavior, AlterTableType, GrantTargetType, VariableSetKind, ConstrType, ImportForeignSchemaType, RoleStmtType, FetchDirection, FunctionParameterMode, TransactionStmtKind, ViewCheckOption, DiscardMode, ReindexObjectType, AlterTSConfigType, PublicationObjSpecType, AlterPublicationAction, AlterSubscriptionType, OnCommitAction, ParamKind, CoercionContext, CoercionForm, BoolExprType, SubLinkType, RowCompareType, MinMaxOp, SQLValueFunctionOp, XmlExprOp, XmlOptionType, JsonEncoding, JsonFormatType, JsonConstructorType, JsonValueType, NullTestType, BoolTestType, CmdType, JoinType, AggStrategy, AggSplit, SetOpCmd, SetOpStrategy, OnConflictAction, LimitOption, LockClauseStrength, LockWaitPolicy, LockTupleMode, KeywordKind, Token } from "./enums"; -export type Node = ParseResult | ScanResult | Integer | Float | Boolean | String | BitString | List | OidList | IntList | A_Const | Alias | RangeVar | TableFunc | IntoClause | Var | Param | Aggref | GroupingFunc | WindowFunc | SubscriptingRef | FuncExpr | NamedArgExpr | OpExpr | DistinctExpr | NullIfExpr | ScalarArrayOpExpr | BoolExpr | SubLink | SubPlan | AlternativeSubPlan | FieldSelect | FieldStore | RelabelType | CoerceViaIO | ArrayCoerceExpr | ConvertRowtypeExpr | CollateExpr | CaseExpr | CaseWhen | CaseTestExpr | ArrayExpr | RowExpr | RowCompareExpr | CoalesceExpr | MinMaxExpr | SQLValueFunction | XmlExpr | JsonFormat | JsonReturning | JsonValueExpr | JsonConstructorExpr | JsonIsPredicate | NullTest | BooleanTest | CoerceToDomain | CoerceToDomainValue | SetToDefault | CurrentOfExpr | NextValueExpr | InferenceElem | TargetEntry | RangeTblRef | JoinExpr | FromExpr | OnConflictExpr | Query | TypeName | ColumnRef | ParamRef | A_Expr | TypeCast | CollateClause | RoleSpec | FuncCall | A_Star | A_Indices | A_Indirection | A_ArrayExpr | ResTarget | MultiAssignRef | SortBy | WindowDef | RangeSubselect | RangeFunction | RangeTableFunc | RangeTableFuncCol | RangeTableSample | ColumnDef | TableLikeClause | IndexElem | DefElem | LockingClause | XmlSerialize | PartitionElem | PartitionSpec | PartitionBoundSpec | PartitionRangeDatum | PartitionCmd | RangeTblEntry | RTEPermissionInfo | RangeTblFunction | TableSampleClause | WithCheckOption | SortGroupClause | GroupingSet | WindowClause | RowMarkClause | WithClause | InferClause | OnConflictClause | CTESearchClause | CTECycleClause | CommonTableExpr | MergeWhenClause | MergeAction | TriggerTransition | JsonOutput | JsonKeyValue | JsonObjectConstructor | JsonArrayConstructor | JsonArrayQueryConstructor | JsonAggConstructor | JsonObjectAgg | JsonArrayAgg | RawStmt | InsertStmt | DeleteStmt | UpdateStmt | MergeStmt | SelectStmt | SetOperationStmt | ReturnStmt | PLAssignStmt | CreateSchemaStmt | AlterTableStmt | ReplicaIdentityStmt | AlterTableCmd | AlterCollationStmt | AlterDomainStmt | GrantStmt | ObjectWithArgs | AccessPriv | GrantRoleStmt | AlterDefaultPrivilegesStmt | CopyStmt | VariableSetStmt | VariableShowStmt | CreateStmt | Constraint | CreateTableSpaceStmt | DropTableSpaceStmt | AlterTableSpaceOptionsStmt | AlterTableMoveAllStmt | CreateExtensionStmt | AlterExtensionStmt | AlterExtensionContentsStmt | CreateFdwStmt | AlterFdwStmt | CreateForeignServerStmt | AlterForeignServerStmt | CreateForeignTableStmt | CreateUserMappingStmt | AlterUserMappingStmt | DropUserMappingStmt | ImportForeignSchemaStmt | CreatePolicyStmt | AlterPolicyStmt | CreateAmStmt | CreateTrigStmt | CreateEventTrigStmt | AlterEventTrigStmt | CreatePLangStmt | CreateRoleStmt | AlterRoleStmt | AlterRoleSetStmt | DropRoleStmt | CreateSeqStmt | AlterSeqStmt | DefineStmt | CreateDomainStmt | CreateOpClassStmt | CreateOpClassItem | CreateOpFamilyStmt | AlterOpFamilyStmt | DropStmt | TruncateStmt | CommentStmt | SecLabelStmt | DeclareCursorStmt | ClosePortalStmt | FetchStmt | IndexStmt | CreateStatsStmt | StatsElem | AlterStatsStmt | CreateFunctionStmt | FunctionParameter | AlterFunctionStmt | DoStmt | InlineCodeBlock | CallStmt | CallContext | RenameStmt | AlterObjectDependsStmt | AlterObjectSchemaStmt | AlterOwnerStmt | AlterOperatorStmt | AlterTypeStmt | RuleStmt | NotifyStmt | ListenStmt | UnlistenStmt | TransactionStmt | CompositeTypeStmt | CreateEnumStmt | CreateRangeStmt | AlterEnumStmt | ViewStmt | LoadStmt | CreatedbStmt | AlterDatabaseStmt | AlterDatabaseRefreshCollStmt | AlterDatabaseSetStmt | DropdbStmt | AlterSystemStmt | ClusterStmt | VacuumStmt | VacuumRelation | ExplainStmt | CreateTableAsStmt | RefreshMatViewStmt | CheckPointStmt | DiscardStmt | LockStmt | ConstraintsSetStmt | ReindexStmt | CreateConversionStmt | CreateCastStmt | CreateTransformStmt | PrepareStmt | ExecuteStmt | DeallocateStmt | DropOwnedStmt | ReassignOwnedStmt | AlterTSDictionaryStmt | AlterTSConfigurationStmt | PublicationTable | PublicationObjSpec | CreatePublicationStmt | AlterPublicationStmt | CreateSubscriptionStmt | AlterSubscriptionStmt | DropSubscriptionStmt | ScanToken; +export type Node = { + ParseResult: ParseResult; +} | { + ScanResult: ScanResult; +} | { + Integer: Integer; +} | { + Float: Float; +} | { + Boolean: Boolean; +} | { + String: String; +} | { + BitString: BitString; +} | { + List: List; +} | { + OidList: OidList; +} | { + IntList: IntList; +} | { + A_Const: A_Const; +} | { + Alias: Alias; +} | { + RangeVar: RangeVar; +} | { + TableFunc: TableFunc; +} | { + IntoClause: IntoClause; +} | { + Var: Var; +} | { + Param: Param; +} | { + Aggref: Aggref; +} | { + GroupingFunc: GroupingFunc; +} | { + WindowFunc: WindowFunc; +} | { + SubscriptingRef: SubscriptingRef; +} | { + FuncExpr: FuncExpr; +} | { + NamedArgExpr: NamedArgExpr; +} | { + OpExpr: OpExpr; +} | { + DistinctExpr: DistinctExpr; +} | { + NullIfExpr: NullIfExpr; +} | { + ScalarArrayOpExpr: ScalarArrayOpExpr; +} | { + BoolExpr: BoolExpr; +} | { + SubLink: SubLink; +} | { + SubPlan: SubPlan; +} | { + AlternativeSubPlan: AlternativeSubPlan; +} | { + FieldSelect: FieldSelect; +} | { + FieldStore: FieldStore; +} | { + RelabelType: RelabelType; +} | { + CoerceViaIO: CoerceViaIO; +} | { + ArrayCoerceExpr: ArrayCoerceExpr; +} | { + ConvertRowtypeExpr: ConvertRowtypeExpr; +} | { + CollateExpr: CollateExpr; +} | { + CaseExpr: CaseExpr; +} | { + CaseWhen: CaseWhen; +} | { + CaseTestExpr: CaseTestExpr; +} | { + ArrayExpr: ArrayExpr; +} | { + RowExpr: RowExpr; +} | { + RowCompareExpr: RowCompareExpr; +} | { + CoalesceExpr: CoalesceExpr; +} | { + MinMaxExpr: MinMaxExpr; +} | { + SQLValueFunction: SQLValueFunction; +} | { + XmlExpr: XmlExpr; +} | { + JsonFormat: JsonFormat; +} | { + JsonReturning: JsonReturning; +} | { + JsonValueExpr: JsonValueExpr; +} | { + JsonConstructorExpr: JsonConstructorExpr; +} | { + JsonIsPredicate: JsonIsPredicate; +} | { + NullTest: NullTest; +} | { + BooleanTest: BooleanTest; +} | { + CoerceToDomain: CoerceToDomain; +} | { + CoerceToDomainValue: CoerceToDomainValue; +} | { + SetToDefault: SetToDefault; +} | { + CurrentOfExpr: CurrentOfExpr; +} | { + NextValueExpr: NextValueExpr; +} | { + InferenceElem: InferenceElem; +} | { + TargetEntry: TargetEntry; +} | { + RangeTblRef: RangeTblRef; +} | { + JoinExpr: JoinExpr; +} | { + FromExpr: FromExpr; +} | { + OnConflictExpr: OnConflictExpr; +} | { + Query: Query; +} | { + TypeName: TypeName; +} | { + ColumnRef: ColumnRef; +} | { + ParamRef: ParamRef; +} | { + A_Expr: A_Expr; +} | { + TypeCast: TypeCast; +} | { + CollateClause: CollateClause; +} | { + RoleSpec: RoleSpec; +} | { + FuncCall: FuncCall; +} | { + A_Star: A_Star; +} | { + A_Indices: A_Indices; +} | { + A_Indirection: A_Indirection; +} | { + A_ArrayExpr: A_ArrayExpr; +} | { + ResTarget: ResTarget; +} | { + MultiAssignRef: MultiAssignRef; +} | { + SortBy: SortBy; +} | { + WindowDef: WindowDef; +} | { + RangeSubselect: RangeSubselect; +} | { + RangeFunction: RangeFunction; +} | { + RangeTableFunc: RangeTableFunc; +} | { + RangeTableFuncCol: RangeTableFuncCol; +} | { + RangeTableSample: RangeTableSample; +} | { + ColumnDef: ColumnDef; +} | { + TableLikeClause: TableLikeClause; +} | { + IndexElem: IndexElem; +} | { + DefElem: DefElem; +} | { + LockingClause: LockingClause; +} | { + XmlSerialize: XmlSerialize; +} | { + PartitionElem: PartitionElem; +} | { + PartitionSpec: PartitionSpec; +} | { + PartitionBoundSpec: PartitionBoundSpec; +} | { + PartitionRangeDatum: PartitionRangeDatum; +} | { + PartitionCmd: PartitionCmd; +} | { + RangeTblEntry: RangeTblEntry; +} | { + RTEPermissionInfo: RTEPermissionInfo; +} | { + RangeTblFunction: RangeTblFunction; +} | { + TableSampleClause: TableSampleClause; +} | { + WithCheckOption: WithCheckOption; +} | { + SortGroupClause: SortGroupClause; +} | { + GroupingSet: GroupingSet; +} | { + WindowClause: WindowClause; +} | { + RowMarkClause: RowMarkClause; +} | { + WithClause: WithClause; +} | { + InferClause: InferClause; +} | { + OnConflictClause: OnConflictClause; +} | { + CTESearchClause: CTESearchClause; +} | { + CTECycleClause: CTECycleClause; +} | { + CommonTableExpr: CommonTableExpr; +} | { + MergeWhenClause: MergeWhenClause; +} | { + MergeAction: MergeAction; +} | { + TriggerTransition: TriggerTransition; +} | { + JsonOutput: JsonOutput; +} | { + JsonKeyValue: JsonKeyValue; +} | { + JsonObjectConstructor: JsonObjectConstructor; +} | { + JsonArrayConstructor: JsonArrayConstructor; +} | { + JsonArrayQueryConstructor: JsonArrayQueryConstructor; +} | { + JsonAggConstructor: JsonAggConstructor; +} | { + JsonObjectAgg: JsonObjectAgg; +} | { + JsonArrayAgg: JsonArrayAgg; +} | { + RawStmt: RawStmt; +} | { + InsertStmt: InsertStmt; +} | { + DeleteStmt: DeleteStmt; +} | { + UpdateStmt: UpdateStmt; +} | { + MergeStmt: MergeStmt; +} | { + SelectStmt: SelectStmt; +} | { + SetOperationStmt: SetOperationStmt; +} | { + ReturnStmt: ReturnStmt; +} | { + PLAssignStmt: PLAssignStmt; +} | { + CreateSchemaStmt: CreateSchemaStmt; +} | { + AlterTableStmt: AlterTableStmt; +} | { + ReplicaIdentityStmt: ReplicaIdentityStmt; +} | { + AlterTableCmd: AlterTableCmd; +} | { + AlterCollationStmt: AlterCollationStmt; +} | { + AlterDomainStmt: AlterDomainStmt; +} | { + GrantStmt: GrantStmt; +} | { + ObjectWithArgs: ObjectWithArgs; +} | { + AccessPriv: AccessPriv; +} | { + GrantRoleStmt: GrantRoleStmt; +} | { + AlterDefaultPrivilegesStmt: AlterDefaultPrivilegesStmt; +} | { + CopyStmt: CopyStmt; +} | { + VariableSetStmt: VariableSetStmt; +} | { + VariableShowStmt: VariableShowStmt; +} | { + CreateStmt: CreateStmt; +} | { + Constraint: Constraint; +} | { + CreateTableSpaceStmt: CreateTableSpaceStmt; +} | { + DropTableSpaceStmt: DropTableSpaceStmt; +} | { + AlterTableSpaceOptionsStmt: AlterTableSpaceOptionsStmt; +} | { + AlterTableMoveAllStmt: AlterTableMoveAllStmt; +} | { + CreateExtensionStmt: CreateExtensionStmt; +} | { + AlterExtensionStmt: AlterExtensionStmt; +} | { + AlterExtensionContentsStmt: AlterExtensionContentsStmt; +} | { + CreateFdwStmt: CreateFdwStmt; +} | { + AlterFdwStmt: AlterFdwStmt; +} | { + CreateForeignServerStmt: CreateForeignServerStmt; +} | { + AlterForeignServerStmt: AlterForeignServerStmt; +} | { + CreateForeignTableStmt: CreateForeignTableStmt; +} | { + CreateUserMappingStmt: CreateUserMappingStmt; +} | { + AlterUserMappingStmt: AlterUserMappingStmt; +} | { + DropUserMappingStmt: DropUserMappingStmt; +} | { + ImportForeignSchemaStmt: ImportForeignSchemaStmt; +} | { + CreatePolicyStmt: CreatePolicyStmt; +} | { + AlterPolicyStmt: AlterPolicyStmt; +} | { + CreateAmStmt: CreateAmStmt; +} | { + CreateTrigStmt: CreateTrigStmt; +} | { + CreateEventTrigStmt: CreateEventTrigStmt; +} | { + AlterEventTrigStmt: AlterEventTrigStmt; +} | { + CreatePLangStmt: CreatePLangStmt; +} | { + CreateRoleStmt: CreateRoleStmt; +} | { + AlterRoleStmt: AlterRoleStmt; +} | { + AlterRoleSetStmt: AlterRoleSetStmt; +} | { + DropRoleStmt: DropRoleStmt; +} | { + CreateSeqStmt: CreateSeqStmt; +} | { + AlterSeqStmt: AlterSeqStmt; +} | { + DefineStmt: DefineStmt; +} | { + CreateDomainStmt: CreateDomainStmt; +} | { + CreateOpClassStmt: CreateOpClassStmt; +} | { + CreateOpClassItem: CreateOpClassItem; +} | { + CreateOpFamilyStmt: CreateOpFamilyStmt; +} | { + AlterOpFamilyStmt: AlterOpFamilyStmt; +} | { + DropStmt: DropStmt; +} | { + TruncateStmt: TruncateStmt; +} | { + CommentStmt: CommentStmt; +} | { + SecLabelStmt: SecLabelStmt; +} | { + DeclareCursorStmt: DeclareCursorStmt; +} | { + ClosePortalStmt: ClosePortalStmt; +} | { + FetchStmt: FetchStmt; +} | { + IndexStmt: IndexStmt; +} | { + CreateStatsStmt: CreateStatsStmt; +} | { + StatsElem: StatsElem; +} | { + AlterStatsStmt: AlterStatsStmt; +} | { + CreateFunctionStmt: CreateFunctionStmt; +} | { + FunctionParameter: FunctionParameter; +} | { + AlterFunctionStmt: AlterFunctionStmt; +} | { + DoStmt: DoStmt; +} | { + InlineCodeBlock: InlineCodeBlock; +} | { + CallStmt: CallStmt; +} | { + CallContext: CallContext; +} | { + RenameStmt: RenameStmt; +} | { + AlterObjectDependsStmt: AlterObjectDependsStmt; +} | { + AlterObjectSchemaStmt: AlterObjectSchemaStmt; +} | { + AlterOwnerStmt: AlterOwnerStmt; +} | { + AlterOperatorStmt: AlterOperatorStmt; +} | { + AlterTypeStmt: AlterTypeStmt; +} | { + RuleStmt: RuleStmt; +} | { + NotifyStmt: NotifyStmt; +} | { + ListenStmt: ListenStmt; +} | { + UnlistenStmt: UnlistenStmt; +} | { + TransactionStmt: TransactionStmt; +} | { + CompositeTypeStmt: CompositeTypeStmt; +} | { + CreateEnumStmt: CreateEnumStmt; +} | { + CreateRangeStmt: CreateRangeStmt; +} | { + AlterEnumStmt: AlterEnumStmt; +} | { + ViewStmt: ViewStmt; +} | { + LoadStmt: LoadStmt; +} | { + CreatedbStmt: CreatedbStmt; +} | { + AlterDatabaseStmt: AlterDatabaseStmt; +} | { + AlterDatabaseRefreshCollStmt: AlterDatabaseRefreshCollStmt; +} | { + AlterDatabaseSetStmt: AlterDatabaseSetStmt; +} | { + DropdbStmt: DropdbStmt; +} | { + AlterSystemStmt: AlterSystemStmt; +} | { + ClusterStmt: ClusterStmt; +} | { + VacuumStmt: VacuumStmt; +} | { + VacuumRelation: VacuumRelation; +} | { + ExplainStmt: ExplainStmt; +} | { + CreateTableAsStmt: CreateTableAsStmt; +} | { + RefreshMatViewStmt: RefreshMatViewStmt; +} | { + CheckPointStmt: CheckPointStmt; +} | { + DiscardStmt: DiscardStmt; +} | { + LockStmt: LockStmt; +} | { + ConstraintsSetStmt: ConstraintsSetStmt; +} | { + ReindexStmt: ReindexStmt; +} | { + CreateConversionStmt: CreateConversionStmt; +} | { + CreateCastStmt: CreateCastStmt; +} | { + CreateTransformStmt: CreateTransformStmt; +} | { + PrepareStmt: PrepareStmt; +} | { + ExecuteStmt: ExecuteStmt; +} | { + DeallocateStmt: DeallocateStmt; +} | { + DropOwnedStmt: DropOwnedStmt; +} | { + ReassignOwnedStmt: ReassignOwnedStmt; +} | { + AlterTSDictionaryStmt: AlterTSDictionaryStmt; +} | { + AlterTSConfigurationStmt: AlterTSConfigurationStmt; +} | { + PublicationTable: PublicationTable; +} | { + PublicationObjSpec: PublicationObjSpec; +} | { + CreatePublicationStmt: CreatePublicationStmt; +} | { + AlterPublicationStmt: AlterPublicationStmt; +} | { + CreateSubscriptionStmt: CreateSubscriptionStmt; +} | { + AlterSubscriptionStmt: AlterSubscriptionStmt; +} | { + DropSubscriptionStmt: DropSubscriptionStmt; +} | { + ScanToken: ScanToken; +}; export interface ParseResult { version?: number; stmts?: RawStmt[]; diff --git a/__fixtures__/output/utils/enums/bidirectional-explicit/bidirectional.ts b/__fixtures__/output/utils/enums/bidirectional-explicit/bidirectional.ts new file mode 100644 index 00000000..78012d58 --- /dev/null +++ b/__fixtures__/output/utils/enums/bidirectional-explicit/bidirectional.ts @@ -0,0 +1,4232 @@ +/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type EnumType = "OverridingKind" | "QuerySource" | "SortByDir" | "SortByNulls" | "SetQuantifier" | "A_Expr_Kind" | "RoleSpecType" | "TableLikeOption" | "DefElemAction" | "PartitionStrategy" | "PartitionRangeDatumKind" | "RTEKind" | "WCOKind" | "GroupingSetKind" | "CTEMaterialize" | "SetOperation" | "ObjectType" | "DropBehavior" | "AlterTableType" | "GrantTargetType" | "VariableSetKind" | "ConstrType" | "ImportForeignSchemaType" | "RoleStmtType" | "FetchDirection" | "FunctionParameterMode" | "TransactionStmtKind" | "ViewCheckOption" | "DiscardMode" | "ReindexObjectType" | "AlterTSConfigType" | "PublicationObjSpecType" | "AlterPublicationAction" | "AlterSubscriptionType" | "OnCommitAction" | "ParamKind" | "CoercionContext" | "CoercionForm" | "BoolExprType" | "SubLinkType" | "RowCompareType" | "MinMaxOp" | "SQLValueFunctionOp" | "XmlExprOp" | "XmlOptionType" | "JsonEncoding" | "JsonFormatType" | "JsonConstructorType" | "JsonValueType" | "NullTestType" | "BoolTestType" | "CmdType" | "JoinType" | "AggStrategy" | "AggSplit" | "SetOpCmd" | "SetOpStrategy" | "OnConflictAction" | "LimitOption" | "LockClauseStrength" | "LockWaitPolicy" | "LockTupleMode" | "KeywordKind" | "Token"; +export const getEnumValue = (enumType: EnumType, key: string | number) => { + switch (enumType) { + case "OverridingKind": + { + switch (key) { + case "OVERRIDING_NOT_SET": + return 0; + case "OVERRIDING_USER_VALUE": + return 1; + case "OVERRIDING_SYSTEM_VALUE": + return 2; + case 0: + return "OVERRIDING_NOT_SET"; + case 1: + return "OVERRIDING_USER_VALUE"; + case 2: + return "OVERRIDING_SYSTEM_VALUE"; + default: + throw new Error("Key not recognized in enum OverridingKind"); + } + } + case "QuerySource": + { + switch (key) { + case "QSRC_ORIGINAL": + return 0; + case "QSRC_PARSER": + return 1; + case "QSRC_INSTEAD_RULE": + return 2; + case "QSRC_QUAL_INSTEAD_RULE": + return 3; + case "QSRC_NON_INSTEAD_RULE": + return 4; + case 0: + return "QSRC_ORIGINAL"; + case 1: + return "QSRC_PARSER"; + case 2: + return "QSRC_INSTEAD_RULE"; + case 3: + return "QSRC_QUAL_INSTEAD_RULE"; + case 4: + return "QSRC_NON_INSTEAD_RULE"; + default: + throw new Error("Key not recognized in enum QuerySource"); + } + } + case "SortByDir": + { + switch (key) { + case "SORTBY_DEFAULT": + return 0; + case "SORTBY_ASC": + return 1; + case "SORTBY_DESC": + return 2; + case "SORTBY_USING": + return 3; + case 0: + return "SORTBY_DEFAULT"; + case 1: + return "SORTBY_ASC"; + case 2: + return "SORTBY_DESC"; + case 3: + return "SORTBY_USING"; + default: + throw new Error("Key not recognized in enum SortByDir"); + } + } + case "SortByNulls": + { + switch (key) { + case "SORTBY_NULLS_DEFAULT": + return 0; + case "SORTBY_NULLS_FIRST": + return 1; + case "SORTBY_NULLS_LAST": + return 2; + case 0: + return "SORTBY_NULLS_DEFAULT"; + case 1: + return "SORTBY_NULLS_FIRST"; + case 2: + return "SORTBY_NULLS_LAST"; + default: + throw new Error("Key not recognized in enum SortByNulls"); + } + } + case "SetQuantifier": + { + switch (key) { + case "SET_QUANTIFIER_DEFAULT": + return 0; + case "SET_QUANTIFIER_ALL": + return 1; + case "SET_QUANTIFIER_DISTINCT": + return 2; + case 0: + return "SET_QUANTIFIER_DEFAULT"; + case 1: + return "SET_QUANTIFIER_ALL"; + case 2: + return "SET_QUANTIFIER_DISTINCT"; + default: + throw new Error("Key not recognized in enum SetQuantifier"); + } + } + case "A_Expr_Kind": + { + switch (key) { + case "AEXPR_OP": + return 0; + case "AEXPR_OP_ANY": + return 1; + case "AEXPR_OP_ALL": + return 2; + case "AEXPR_DISTINCT": + return 3; + case "AEXPR_NOT_DISTINCT": + return 4; + case "AEXPR_NULLIF": + return 5; + case "AEXPR_IN": + return 6; + case "AEXPR_LIKE": + return 7; + case "AEXPR_ILIKE": + return 8; + case "AEXPR_SIMILAR": + return 9; + case "AEXPR_BETWEEN": + return 10; + case "AEXPR_NOT_BETWEEN": + return 11; + case "AEXPR_BETWEEN_SYM": + return 12; + case "AEXPR_NOT_BETWEEN_SYM": + return 13; + case 0: + return "AEXPR_OP"; + case 1: + return "AEXPR_OP_ANY"; + case 2: + return "AEXPR_OP_ALL"; + case 3: + return "AEXPR_DISTINCT"; + case 4: + return "AEXPR_NOT_DISTINCT"; + case 5: + return "AEXPR_NULLIF"; + case 6: + return "AEXPR_IN"; + case 7: + return "AEXPR_LIKE"; + case 8: + return "AEXPR_ILIKE"; + case 9: + return "AEXPR_SIMILAR"; + case 10: + return "AEXPR_BETWEEN"; + case 11: + return "AEXPR_NOT_BETWEEN"; + case 12: + return "AEXPR_BETWEEN_SYM"; + case 13: + return "AEXPR_NOT_BETWEEN_SYM"; + default: + throw new Error("Key not recognized in enum A_Expr_Kind"); + } + } + case "RoleSpecType": + { + switch (key) { + case "ROLESPEC_CSTRING": + return 0; + case "ROLESPEC_CURRENT_ROLE": + return 1; + case "ROLESPEC_CURRENT_USER": + return 2; + case "ROLESPEC_SESSION_USER": + return 3; + case "ROLESPEC_PUBLIC": + return 4; + case 0: + return "ROLESPEC_CSTRING"; + case 1: + return "ROLESPEC_CURRENT_ROLE"; + case 2: + return "ROLESPEC_CURRENT_USER"; + case 3: + return "ROLESPEC_SESSION_USER"; + case 4: + return "ROLESPEC_PUBLIC"; + default: + throw new Error("Key not recognized in enum RoleSpecType"); + } + } + case "TableLikeOption": + { + switch (key) { + case "CREATE_TABLE_LIKE_COMMENTS": + return 0; + case "CREATE_TABLE_LIKE_COMPRESSION": + return 1; + case "CREATE_TABLE_LIKE_CONSTRAINTS": + return 2; + case "CREATE_TABLE_LIKE_DEFAULTS": + return 3; + case "CREATE_TABLE_LIKE_GENERATED": + return 4; + case "CREATE_TABLE_LIKE_IDENTITY": + return 5; + case "CREATE_TABLE_LIKE_INDEXES": + return 6; + case "CREATE_TABLE_LIKE_STATISTICS": + return 7; + case "CREATE_TABLE_LIKE_STORAGE": + return 8; + case "CREATE_TABLE_LIKE_ALL": + return 9; + case 0: + return "CREATE_TABLE_LIKE_COMMENTS"; + case 1: + return "CREATE_TABLE_LIKE_COMPRESSION"; + case 2: + return "CREATE_TABLE_LIKE_CONSTRAINTS"; + case 3: + return "CREATE_TABLE_LIKE_DEFAULTS"; + case 4: + return "CREATE_TABLE_LIKE_GENERATED"; + case 5: + return "CREATE_TABLE_LIKE_IDENTITY"; + case 6: + return "CREATE_TABLE_LIKE_INDEXES"; + case 7: + return "CREATE_TABLE_LIKE_STATISTICS"; + case 8: + return "CREATE_TABLE_LIKE_STORAGE"; + case 9: + return "CREATE_TABLE_LIKE_ALL"; + default: + throw new Error("Key not recognized in enum TableLikeOption"); + } + } + case "DefElemAction": + { + switch (key) { + case "DEFELEM_UNSPEC": + return 0; + case "DEFELEM_SET": + return 1; + case "DEFELEM_ADD": + return 2; + case "DEFELEM_DROP": + return 3; + case 0: + return "DEFELEM_UNSPEC"; + case 1: + return "DEFELEM_SET"; + case 2: + return "DEFELEM_ADD"; + case 3: + return "DEFELEM_DROP"; + default: + throw new Error("Key not recognized in enum DefElemAction"); + } + } + case "PartitionStrategy": + { + switch (key) { + case "PARTITION_STRATEGY_LIST": + return 0; + case "PARTITION_STRATEGY_RANGE": + return 1; + case "PARTITION_STRATEGY_HASH": + return 2; + case 0: + return "PARTITION_STRATEGY_LIST"; + case 1: + return "PARTITION_STRATEGY_RANGE"; + case 2: + return "PARTITION_STRATEGY_HASH"; + default: + throw new Error("Key not recognized in enum PartitionStrategy"); + } + } + case "PartitionRangeDatumKind": + { + switch (key) { + case "PARTITION_RANGE_DATUM_MINVALUE": + return 0; + case "PARTITION_RANGE_DATUM_VALUE": + return 1; + case "PARTITION_RANGE_DATUM_MAXVALUE": + return 2; + case 0: + return "PARTITION_RANGE_DATUM_MINVALUE"; + case 1: + return "PARTITION_RANGE_DATUM_VALUE"; + case 2: + return "PARTITION_RANGE_DATUM_MAXVALUE"; + default: + throw new Error("Key not recognized in enum PartitionRangeDatumKind"); + } + } + case "RTEKind": + { + switch (key) { + case "RTE_RELATION": + return 0; + case "RTE_SUBQUERY": + return 1; + case "RTE_JOIN": + return 2; + case "RTE_FUNCTION": + return 3; + case "RTE_TABLEFUNC": + return 4; + case "RTE_VALUES": + return 5; + case "RTE_CTE": + return 6; + case "RTE_NAMEDTUPLESTORE": + return 7; + case "RTE_RESULT": + return 8; + case 0: + return "RTE_RELATION"; + case 1: + return "RTE_SUBQUERY"; + case 2: + return "RTE_JOIN"; + case 3: + return "RTE_FUNCTION"; + case 4: + return "RTE_TABLEFUNC"; + case 5: + return "RTE_VALUES"; + case 6: + return "RTE_CTE"; + case 7: + return "RTE_NAMEDTUPLESTORE"; + case 8: + return "RTE_RESULT"; + default: + throw new Error("Key not recognized in enum RTEKind"); + } + } + case "WCOKind": + { + switch (key) { + case "WCO_VIEW_CHECK": + return 0; + case "WCO_RLS_INSERT_CHECK": + return 1; + case "WCO_RLS_UPDATE_CHECK": + return 2; + case "WCO_RLS_CONFLICT_CHECK": + return 3; + case "WCO_RLS_MERGE_UPDATE_CHECK": + return 4; + case "WCO_RLS_MERGE_DELETE_CHECK": + return 5; + case 0: + return "WCO_VIEW_CHECK"; + case 1: + return "WCO_RLS_INSERT_CHECK"; + case 2: + return "WCO_RLS_UPDATE_CHECK"; + case 3: + return "WCO_RLS_CONFLICT_CHECK"; + case 4: + return "WCO_RLS_MERGE_UPDATE_CHECK"; + case 5: + return "WCO_RLS_MERGE_DELETE_CHECK"; + default: + throw new Error("Key not recognized in enum WCOKind"); + } + } + case "GroupingSetKind": + { + switch (key) { + case "GROUPING_SET_EMPTY": + return 0; + case "GROUPING_SET_SIMPLE": + return 1; + case "GROUPING_SET_ROLLUP": + return 2; + case "GROUPING_SET_CUBE": + return 3; + case "GROUPING_SET_SETS": + return 4; + case 0: + return "GROUPING_SET_EMPTY"; + case 1: + return "GROUPING_SET_SIMPLE"; + case 2: + return "GROUPING_SET_ROLLUP"; + case 3: + return "GROUPING_SET_CUBE"; + case 4: + return "GROUPING_SET_SETS"; + default: + throw new Error("Key not recognized in enum GroupingSetKind"); + } + } + case "CTEMaterialize": + { + switch (key) { + case "CTEMaterializeDefault": + return 0; + case "CTEMaterializeAlways": + return 1; + case "CTEMaterializeNever": + return 2; + case 0: + return "CTEMaterializeDefault"; + case 1: + return "CTEMaterializeAlways"; + case 2: + return "CTEMaterializeNever"; + default: + throw new Error("Key not recognized in enum CTEMaterialize"); + } + } + case "SetOperation": + { + switch (key) { + case "SETOP_NONE": + return 0; + case "SETOP_UNION": + return 1; + case "SETOP_INTERSECT": + return 2; + case "SETOP_EXCEPT": + return 3; + case 0: + return "SETOP_NONE"; + case 1: + return "SETOP_UNION"; + case 2: + return "SETOP_INTERSECT"; + case 3: + return "SETOP_EXCEPT"; + default: + throw new Error("Key not recognized in enum SetOperation"); + } + } + case "ObjectType": + { + switch (key) { + case "OBJECT_ACCESS_METHOD": + return 0; + case "OBJECT_AGGREGATE": + return 1; + case "OBJECT_AMOP": + return 2; + case "OBJECT_AMPROC": + return 3; + case "OBJECT_ATTRIBUTE": + return 4; + case "OBJECT_CAST": + return 5; + case "OBJECT_COLUMN": + return 6; + case "OBJECT_COLLATION": + return 7; + case "OBJECT_CONVERSION": + return 8; + case "OBJECT_DATABASE": + return 9; + case "OBJECT_DEFAULT": + return 10; + case "OBJECT_DEFACL": + return 11; + case "OBJECT_DOMAIN": + return 12; + case "OBJECT_DOMCONSTRAINT": + return 13; + case "OBJECT_EVENT_TRIGGER": + return 14; + case "OBJECT_EXTENSION": + return 15; + case "OBJECT_FDW": + return 16; + case "OBJECT_FOREIGN_SERVER": + return 17; + case "OBJECT_FOREIGN_TABLE": + return 18; + case "OBJECT_FUNCTION": + return 19; + case "OBJECT_INDEX": + return 20; + case "OBJECT_LANGUAGE": + return 21; + case "OBJECT_LARGEOBJECT": + return 22; + case "OBJECT_MATVIEW": + return 23; + case "OBJECT_OPCLASS": + return 24; + case "OBJECT_OPERATOR": + return 25; + case "OBJECT_OPFAMILY": + return 26; + case "OBJECT_PARAMETER_ACL": + return 27; + case "OBJECT_POLICY": + return 28; + case "OBJECT_PROCEDURE": + return 29; + case "OBJECT_PUBLICATION": + return 30; + case "OBJECT_PUBLICATION_NAMESPACE": + return 31; + case "OBJECT_PUBLICATION_REL": + return 32; + case "OBJECT_ROLE": + return 33; + case "OBJECT_ROUTINE": + return 34; + case "OBJECT_RULE": + return 35; + case "OBJECT_SCHEMA": + return 36; + case "OBJECT_SEQUENCE": + return 37; + case "OBJECT_SUBSCRIPTION": + return 38; + case "OBJECT_STATISTIC_EXT": + return 39; + case "OBJECT_TABCONSTRAINT": + return 40; + case "OBJECT_TABLE": + return 41; + case "OBJECT_TABLESPACE": + return 42; + case "OBJECT_TRANSFORM": + return 43; + case "OBJECT_TRIGGER": + return 44; + case "OBJECT_TSCONFIGURATION": + return 45; + case "OBJECT_TSDICTIONARY": + return 46; + case "OBJECT_TSPARSER": + return 47; + case "OBJECT_TSTEMPLATE": + return 48; + case "OBJECT_TYPE": + return 49; + case "OBJECT_USER_MAPPING": + return 50; + case "OBJECT_VIEW": + return 51; + case 0: + return "OBJECT_ACCESS_METHOD"; + case 1: + return "OBJECT_AGGREGATE"; + case 2: + return "OBJECT_AMOP"; + case 3: + return "OBJECT_AMPROC"; + case 4: + return "OBJECT_ATTRIBUTE"; + case 5: + return "OBJECT_CAST"; + case 6: + return "OBJECT_COLUMN"; + case 7: + return "OBJECT_COLLATION"; + case 8: + return "OBJECT_CONVERSION"; + case 9: + return "OBJECT_DATABASE"; + case 10: + return "OBJECT_DEFAULT"; + case 11: + return "OBJECT_DEFACL"; + case 12: + return "OBJECT_DOMAIN"; + case 13: + return "OBJECT_DOMCONSTRAINT"; + case 14: + return "OBJECT_EVENT_TRIGGER"; + case 15: + return "OBJECT_EXTENSION"; + case 16: + return "OBJECT_FDW"; + case 17: + return "OBJECT_FOREIGN_SERVER"; + case 18: + return "OBJECT_FOREIGN_TABLE"; + case 19: + return "OBJECT_FUNCTION"; + case 20: + return "OBJECT_INDEX"; + case 21: + return "OBJECT_LANGUAGE"; + case 22: + return "OBJECT_LARGEOBJECT"; + case 23: + return "OBJECT_MATVIEW"; + case 24: + return "OBJECT_OPCLASS"; + case 25: + return "OBJECT_OPERATOR"; + case 26: + return "OBJECT_OPFAMILY"; + case 27: + return "OBJECT_PARAMETER_ACL"; + case 28: + return "OBJECT_POLICY"; + case 29: + return "OBJECT_PROCEDURE"; + case 30: + return "OBJECT_PUBLICATION"; + case 31: + return "OBJECT_PUBLICATION_NAMESPACE"; + case 32: + return "OBJECT_PUBLICATION_REL"; + case 33: + return "OBJECT_ROLE"; + case 34: + return "OBJECT_ROUTINE"; + case 35: + return "OBJECT_RULE"; + case 36: + return "OBJECT_SCHEMA"; + case 37: + return "OBJECT_SEQUENCE"; + case 38: + return "OBJECT_SUBSCRIPTION"; + case 39: + return "OBJECT_STATISTIC_EXT"; + case 40: + return "OBJECT_TABCONSTRAINT"; + case 41: + return "OBJECT_TABLE"; + case 42: + return "OBJECT_TABLESPACE"; + case 43: + return "OBJECT_TRANSFORM"; + case 44: + return "OBJECT_TRIGGER"; + case 45: + return "OBJECT_TSCONFIGURATION"; + case 46: + return "OBJECT_TSDICTIONARY"; + case 47: + return "OBJECT_TSPARSER"; + case 48: + return "OBJECT_TSTEMPLATE"; + case 49: + return "OBJECT_TYPE"; + case 50: + return "OBJECT_USER_MAPPING"; + case 51: + return "OBJECT_VIEW"; + default: + throw new Error("Key not recognized in enum ObjectType"); + } + } + case "DropBehavior": + { + switch (key) { + case "DROP_RESTRICT": + return 0; + case "DROP_CASCADE": + return 1; + case 0: + return "DROP_RESTRICT"; + case 1: + return "DROP_CASCADE"; + default: + throw new Error("Key not recognized in enum DropBehavior"); + } + } + case "AlterTableType": + { + switch (key) { + case "AT_AddColumn": + return 0; + case "AT_AddColumnToView": + return 1; + case "AT_ColumnDefault": + return 2; + case "AT_CookedColumnDefault": + return 3; + case "AT_DropNotNull": + return 4; + case "AT_SetNotNull": + return 5; + case "AT_DropExpression": + return 6; + case "AT_CheckNotNull": + return 7; + case "AT_SetStatistics": + return 8; + case "AT_SetOptions": + return 9; + case "AT_ResetOptions": + return 10; + case "AT_SetStorage": + return 11; + case "AT_SetCompression": + return 12; + case "AT_DropColumn": + return 13; + case "AT_AddIndex": + return 14; + case "AT_ReAddIndex": + return 15; + case "AT_AddConstraint": + return 16; + case "AT_ReAddConstraint": + return 17; + case "AT_ReAddDomainConstraint": + return 18; + case "AT_AlterConstraint": + return 19; + case "AT_ValidateConstraint": + return 20; + case "AT_AddIndexConstraint": + return 21; + case "AT_DropConstraint": + return 22; + case "AT_ReAddComment": + return 23; + case "AT_AlterColumnType": + return 24; + case "AT_AlterColumnGenericOptions": + return 25; + case "AT_ChangeOwner": + return 26; + case "AT_ClusterOn": + return 27; + case "AT_DropCluster": + return 28; + case "AT_SetLogged": + return 29; + case "AT_SetUnLogged": + return 30; + case "AT_DropOids": + return 31; + case "AT_SetAccessMethod": + return 32; + case "AT_SetTableSpace": + return 33; + case "AT_SetRelOptions": + return 34; + case "AT_ResetRelOptions": + return 35; + case "AT_ReplaceRelOptions": + return 36; + case "AT_EnableTrig": + return 37; + case "AT_EnableAlwaysTrig": + return 38; + case "AT_EnableReplicaTrig": + return 39; + case "AT_DisableTrig": + return 40; + case "AT_EnableTrigAll": + return 41; + case "AT_DisableTrigAll": + return 42; + case "AT_EnableTrigUser": + return 43; + case "AT_DisableTrigUser": + return 44; + case "AT_EnableRule": + return 45; + case "AT_EnableAlwaysRule": + return 46; + case "AT_EnableReplicaRule": + return 47; + case "AT_DisableRule": + return 48; + case "AT_AddInherit": + return 49; + case "AT_DropInherit": + return 50; + case "AT_AddOf": + return 51; + case "AT_DropOf": + return 52; + case "AT_ReplicaIdentity": + return 53; + case "AT_EnableRowSecurity": + return 54; + case "AT_DisableRowSecurity": + return 55; + case "AT_ForceRowSecurity": + return 56; + case "AT_NoForceRowSecurity": + return 57; + case "AT_GenericOptions": + return 58; + case "AT_AttachPartition": + return 59; + case "AT_DetachPartition": + return 60; + case "AT_DetachPartitionFinalize": + return 61; + case "AT_AddIdentity": + return 62; + case "AT_SetIdentity": + return 63; + case "AT_DropIdentity": + return 64; + case "AT_ReAddStatistics": + return 65; + case 0: + return "AT_AddColumn"; + case 1: + return "AT_AddColumnToView"; + case 2: + return "AT_ColumnDefault"; + case 3: + return "AT_CookedColumnDefault"; + case 4: + return "AT_DropNotNull"; + case 5: + return "AT_SetNotNull"; + case 6: + return "AT_DropExpression"; + case 7: + return "AT_CheckNotNull"; + case 8: + return "AT_SetStatistics"; + case 9: + return "AT_SetOptions"; + case 10: + return "AT_ResetOptions"; + case 11: + return "AT_SetStorage"; + case 12: + return "AT_SetCompression"; + case 13: + return "AT_DropColumn"; + case 14: + return "AT_AddIndex"; + case 15: + return "AT_ReAddIndex"; + case 16: + return "AT_AddConstraint"; + case 17: + return "AT_ReAddConstraint"; + case 18: + return "AT_ReAddDomainConstraint"; + case 19: + return "AT_AlterConstraint"; + case 20: + return "AT_ValidateConstraint"; + case 21: + return "AT_AddIndexConstraint"; + case 22: + return "AT_DropConstraint"; + case 23: + return "AT_ReAddComment"; + case 24: + return "AT_AlterColumnType"; + case 25: + return "AT_AlterColumnGenericOptions"; + case 26: + return "AT_ChangeOwner"; + case 27: + return "AT_ClusterOn"; + case 28: + return "AT_DropCluster"; + case 29: + return "AT_SetLogged"; + case 30: + return "AT_SetUnLogged"; + case 31: + return "AT_DropOids"; + case 32: + return "AT_SetAccessMethod"; + case 33: + return "AT_SetTableSpace"; + case 34: + return "AT_SetRelOptions"; + case 35: + return "AT_ResetRelOptions"; + case 36: + return "AT_ReplaceRelOptions"; + case 37: + return "AT_EnableTrig"; + case 38: + return "AT_EnableAlwaysTrig"; + case 39: + return "AT_EnableReplicaTrig"; + case 40: + return "AT_DisableTrig"; + case 41: + return "AT_EnableTrigAll"; + case 42: + return "AT_DisableTrigAll"; + case 43: + return "AT_EnableTrigUser"; + case 44: + return "AT_DisableTrigUser"; + case 45: + return "AT_EnableRule"; + case 46: + return "AT_EnableAlwaysRule"; + case 47: + return "AT_EnableReplicaRule"; + case 48: + return "AT_DisableRule"; + case 49: + return "AT_AddInherit"; + case 50: + return "AT_DropInherit"; + case 51: + return "AT_AddOf"; + case 52: + return "AT_DropOf"; + case 53: + return "AT_ReplicaIdentity"; + case 54: + return "AT_EnableRowSecurity"; + case 55: + return "AT_DisableRowSecurity"; + case 56: + return "AT_ForceRowSecurity"; + case 57: + return "AT_NoForceRowSecurity"; + case 58: + return "AT_GenericOptions"; + case 59: + return "AT_AttachPartition"; + case 60: + return "AT_DetachPartition"; + case 61: + return "AT_DetachPartitionFinalize"; + case 62: + return "AT_AddIdentity"; + case 63: + return "AT_SetIdentity"; + case 64: + return "AT_DropIdentity"; + case 65: + return "AT_ReAddStatistics"; + default: + throw new Error("Key not recognized in enum AlterTableType"); + } + } + case "GrantTargetType": + { + switch (key) { + case "ACL_TARGET_OBJECT": + return 0; + case "ACL_TARGET_ALL_IN_SCHEMA": + return 1; + case "ACL_TARGET_DEFAULTS": + return 2; + case 0: + return "ACL_TARGET_OBJECT"; + case 1: + return "ACL_TARGET_ALL_IN_SCHEMA"; + case 2: + return "ACL_TARGET_DEFAULTS"; + default: + throw new Error("Key not recognized in enum GrantTargetType"); + } + } + case "VariableSetKind": + { + switch (key) { + case "VAR_SET_VALUE": + return 0; + case "VAR_SET_DEFAULT": + return 1; + case "VAR_SET_CURRENT": + return 2; + case "VAR_SET_MULTI": + return 3; + case "VAR_RESET": + return 4; + case "VAR_RESET_ALL": + return 5; + case 0: + return "VAR_SET_VALUE"; + case 1: + return "VAR_SET_DEFAULT"; + case 2: + return "VAR_SET_CURRENT"; + case 3: + return "VAR_SET_MULTI"; + case 4: + return "VAR_RESET"; + case 5: + return "VAR_RESET_ALL"; + default: + throw new Error("Key not recognized in enum VariableSetKind"); + } + } + case "ConstrType": + { + switch (key) { + case "CONSTR_NULL": + return 0; + case "CONSTR_NOTNULL": + return 1; + case "CONSTR_DEFAULT": + return 2; + case "CONSTR_IDENTITY": + return 3; + case "CONSTR_GENERATED": + return 4; + case "CONSTR_CHECK": + return 5; + case "CONSTR_PRIMARY": + return 6; + case "CONSTR_UNIQUE": + return 7; + case "CONSTR_EXCLUSION": + return 8; + case "CONSTR_FOREIGN": + return 9; + case "CONSTR_ATTR_DEFERRABLE": + return 10; + case "CONSTR_ATTR_NOT_DEFERRABLE": + return 11; + case "CONSTR_ATTR_DEFERRED": + return 12; + case "CONSTR_ATTR_IMMEDIATE": + return 13; + case 0: + return "CONSTR_NULL"; + case 1: + return "CONSTR_NOTNULL"; + case 2: + return "CONSTR_DEFAULT"; + case 3: + return "CONSTR_IDENTITY"; + case 4: + return "CONSTR_GENERATED"; + case 5: + return "CONSTR_CHECK"; + case 6: + return "CONSTR_PRIMARY"; + case 7: + return "CONSTR_UNIQUE"; + case 8: + return "CONSTR_EXCLUSION"; + case 9: + return "CONSTR_FOREIGN"; + case 10: + return "CONSTR_ATTR_DEFERRABLE"; + case 11: + return "CONSTR_ATTR_NOT_DEFERRABLE"; + case 12: + return "CONSTR_ATTR_DEFERRED"; + case 13: + return "CONSTR_ATTR_IMMEDIATE"; + default: + throw new Error("Key not recognized in enum ConstrType"); + } + } + case "ImportForeignSchemaType": + { + switch (key) { + case "FDW_IMPORT_SCHEMA_ALL": + return 0; + case "FDW_IMPORT_SCHEMA_LIMIT_TO": + return 1; + case "FDW_IMPORT_SCHEMA_EXCEPT": + return 2; + case 0: + return "FDW_IMPORT_SCHEMA_ALL"; + case 1: + return "FDW_IMPORT_SCHEMA_LIMIT_TO"; + case 2: + return "FDW_IMPORT_SCHEMA_EXCEPT"; + default: + throw new Error("Key not recognized in enum ImportForeignSchemaType"); + } + } + case "RoleStmtType": + { + switch (key) { + case "ROLESTMT_ROLE": + return 0; + case "ROLESTMT_USER": + return 1; + case "ROLESTMT_GROUP": + return 2; + case 0: + return "ROLESTMT_ROLE"; + case 1: + return "ROLESTMT_USER"; + case 2: + return "ROLESTMT_GROUP"; + default: + throw new Error("Key not recognized in enum RoleStmtType"); + } + } + case "FetchDirection": + { + switch (key) { + case "FETCH_FORWARD": + return 0; + case "FETCH_BACKWARD": + return 1; + case "FETCH_ABSOLUTE": + return 2; + case "FETCH_RELATIVE": + return 3; + case 0: + return "FETCH_FORWARD"; + case 1: + return "FETCH_BACKWARD"; + case 2: + return "FETCH_ABSOLUTE"; + case 3: + return "FETCH_RELATIVE"; + default: + throw new Error("Key not recognized in enum FetchDirection"); + } + } + case "FunctionParameterMode": + { + switch (key) { + case "FUNC_PARAM_IN": + return 0; + case "FUNC_PARAM_OUT": + return 1; + case "FUNC_PARAM_INOUT": + return 2; + case "FUNC_PARAM_VARIADIC": + return 3; + case "FUNC_PARAM_TABLE": + return 4; + case "FUNC_PARAM_DEFAULT": + return 5; + case 0: + return "FUNC_PARAM_IN"; + case 1: + return "FUNC_PARAM_OUT"; + case 2: + return "FUNC_PARAM_INOUT"; + case 3: + return "FUNC_PARAM_VARIADIC"; + case 4: + return "FUNC_PARAM_TABLE"; + case 5: + return "FUNC_PARAM_DEFAULT"; + default: + throw new Error("Key not recognized in enum FunctionParameterMode"); + } + } + case "TransactionStmtKind": + { + switch (key) { + case "TRANS_STMT_BEGIN": + return 0; + case "TRANS_STMT_START": + return 1; + case "TRANS_STMT_COMMIT": + return 2; + case "TRANS_STMT_ROLLBACK": + return 3; + case "TRANS_STMT_SAVEPOINT": + return 4; + case "TRANS_STMT_RELEASE": + return 5; + case "TRANS_STMT_ROLLBACK_TO": + return 6; + case "TRANS_STMT_PREPARE": + return 7; + case "TRANS_STMT_COMMIT_PREPARED": + return 8; + case "TRANS_STMT_ROLLBACK_PREPARED": + return 9; + case 0: + return "TRANS_STMT_BEGIN"; + case 1: + return "TRANS_STMT_START"; + case 2: + return "TRANS_STMT_COMMIT"; + case 3: + return "TRANS_STMT_ROLLBACK"; + case 4: + return "TRANS_STMT_SAVEPOINT"; + case 5: + return "TRANS_STMT_RELEASE"; + case 6: + return "TRANS_STMT_ROLLBACK_TO"; + case 7: + return "TRANS_STMT_PREPARE"; + case 8: + return "TRANS_STMT_COMMIT_PREPARED"; + case 9: + return "TRANS_STMT_ROLLBACK_PREPARED"; + default: + throw new Error("Key not recognized in enum TransactionStmtKind"); + } + } + case "ViewCheckOption": + { + switch (key) { + case "NO_CHECK_OPTION": + return 0; + case "LOCAL_CHECK_OPTION": + return 1; + case "CASCADED_CHECK_OPTION": + return 2; + case 0: + return "NO_CHECK_OPTION"; + case 1: + return "LOCAL_CHECK_OPTION"; + case 2: + return "CASCADED_CHECK_OPTION"; + default: + throw new Error("Key not recognized in enum ViewCheckOption"); + } + } + case "DiscardMode": + { + switch (key) { + case "DISCARD_ALL": + return 0; + case "DISCARD_PLANS": + return 1; + case "DISCARD_SEQUENCES": + return 2; + case "DISCARD_TEMP": + return 3; + case 0: + return "DISCARD_ALL"; + case 1: + return "DISCARD_PLANS"; + case 2: + return "DISCARD_SEQUENCES"; + case 3: + return "DISCARD_TEMP"; + default: + throw new Error("Key not recognized in enum DiscardMode"); + } + } + case "ReindexObjectType": + { + switch (key) { + case "REINDEX_OBJECT_INDEX": + return 0; + case "REINDEX_OBJECT_TABLE": + return 1; + case "REINDEX_OBJECT_SCHEMA": + return 2; + case "REINDEX_OBJECT_SYSTEM": + return 3; + case "REINDEX_OBJECT_DATABASE": + return 4; + case 0: + return "REINDEX_OBJECT_INDEX"; + case 1: + return "REINDEX_OBJECT_TABLE"; + case 2: + return "REINDEX_OBJECT_SCHEMA"; + case 3: + return "REINDEX_OBJECT_SYSTEM"; + case 4: + return "REINDEX_OBJECT_DATABASE"; + default: + throw new Error("Key not recognized in enum ReindexObjectType"); + } + } + case "AlterTSConfigType": + { + switch (key) { + case "ALTER_TSCONFIG_ADD_MAPPING": + return 0; + case "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN": + return 1; + case "ALTER_TSCONFIG_REPLACE_DICT": + return 2; + case "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN": + return 3; + case "ALTER_TSCONFIG_DROP_MAPPING": + return 4; + case 0: + return "ALTER_TSCONFIG_ADD_MAPPING"; + case 1: + return "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN"; + case 2: + return "ALTER_TSCONFIG_REPLACE_DICT"; + case 3: + return "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN"; + case 4: + return "ALTER_TSCONFIG_DROP_MAPPING"; + default: + throw new Error("Key not recognized in enum AlterTSConfigType"); + } + } + case "PublicationObjSpecType": + { + switch (key) { + case "PUBLICATIONOBJ_TABLE": + return 0; + case "PUBLICATIONOBJ_TABLES_IN_SCHEMA": + return 1; + case "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA": + return 2; + case "PUBLICATIONOBJ_CONTINUATION": + return 3; + case 0: + return "PUBLICATIONOBJ_TABLE"; + case 1: + return "PUBLICATIONOBJ_TABLES_IN_SCHEMA"; + case 2: + return "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA"; + case 3: + return "PUBLICATIONOBJ_CONTINUATION"; + default: + throw new Error("Key not recognized in enum PublicationObjSpecType"); + } + } + case "AlterPublicationAction": + { + switch (key) { + case "AP_AddObjects": + return 0; + case "AP_DropObjects": + return 1; + case "AP_SetObjects": + return 2; + case 0: + return "AP_AddObjects"; + case 1: + return "AP_DropObjects"; + case 2: + return "AP_SetObjects"; + default: + throw new Error("Key not recognized in enum AlterPublicationAction"); + } + } + case "AlterSubscriptionType": + { + switch (key) { + case "ALTER_SUBSCRIPTION_OPTIONS": + return 0; + case "ALTER_SUBSCRIPTION_CONNECTION": + return 1; + case "ALTER_SUBSCRIPTION_SET_PUBLICATION": + return 2; + case "ALTER_SUBSCRIPTION_ADD_PUBLICATION": + return 3; + case "ALTER_SUBSCRIPTION_DROP_PUBLICATION": + return 4; + case "ALTER_SUBSCRIPTION_REFRESH": + return 5; + case "ALTER_SUBSCRIPTION_ENABLED": + return 6; + case "ALTER_SUBSCRIPTION_SKIP": + return 7; + case 0: + return "ALTER_SUBSCRIPTION_OPTIONS"; + case 1: + return "ALTER_SUBSCRIPTION_CONNECTION"; + case 2: + return "ALTER_SUBSCRIPTION_SET_PUBLICATION"; + case 3: + return "ALTER_SUBSCRIPTION_ADD_PUBLICATION"; + case 4: + return "ALTER_SUBSCRIPTION_DROP_PUBLICATION"; + case 5: + return "ALTER_SUBSCRIPTION_REFRESH"; + case 6: + return "ALTER_SUBSCRIPTION_ENABLED"; + case 7: + return "ALTER_SUBSCRIPTION_SKIP"; + default: + throw new Error("Key not recognized in enum AlterSubscriptionType"); + } + } + case "OnCommitAction": + { + switch (key) { + case "ONCOMMIT_NOOP": + return 0; + case "ONCOMMIT_PRESERVE_ROWS": + return 1; + case "ONCOMMIT_DELETE_ROWS": + return 2; + case "ONCOMMIT_DROP": + return 3; + case 0: + return "ONCOMMIT_NOOP"; + case 1: + return "ONCOMMIT_PRESERVE_ROWS"; + case 2: + return "ONCOMMIT_DELETE_ROWS"; + case 3: + return "ONCOMMIT_DROP"; + default: + throw new Error("Key not recognized in enum OnCommitAction"); + } + } + case "ParamKind": + { + switch (key) { + case "PARAM_EXTERN": + return 0; + case "PARAM_EXEC": + return 1; + case "PARAM_SUBLINK": + return 2; + case "PARAM_MULTIEXPR": + return 3; + case 0: + return "PARAM_EXTERN"; + case 1: + return "PARAM_EXEC"; + case 2: + return "PARAM_SUBLINK"; + case 3: + return "PARAM_MULTIEXPR"; + default: + throw new Error("Key not recognized in enum ParamKind"); + } + } + case "CoercionContext": + { + switch (key) { + case "COERCION_IMPLICIT": + return 0; + case "COERCION_ASSIGNMENT": + return 1; + case "COERCION_PLPGSQL": + return 2; + case "COERCION_EXPLICIT": + return 3; + case 0: + return "COERCION_IMPLICIT"; + case 1: + return "COERCION_ASSIGNMENT"; + case 2: + return "COERCION_PLPGSQL"; + case 3: + return "COERCION_EXPLICIT"; + default: + throw new Error("Key not recognized in enum CoercionContext"); + } + } + case "CoercionForm": + { + switch (key) { + case "COERCE_EXPLICIT_CALL": + return 0; + case "COERCE_EXPLICIT_CAST": + return 1; + case "COERCE_IMPLICIT_CAST": + return 2; + case "COERCE_SQL_SYNTAX": + return 3; + case 0: + return "COERCE_EXPLICIT_CALL"; + case 1: + return "COERCE_EXPLICIT_CAST"; + case 2: + return "COERCE_IMPLICIT_CAST"; + case 3: + return "COERCE_SQL_SYNTAX"; + default: + throw new Error("Key not recognized in enum CoercionForm"); + } + } + case "BoolExprType": + { + switch (key) { + case "AND_EXPR": + return 0; + case "OR_EXPR": + return 1; + case "NOT_EXPR": + return 2; + case 0: + return "AND_EXPR"; + case 1: + return "OR_EXPR"; + case 2: + return "NOT_EXPR"; + default: + throw new Error("Key not recognized in enum BoolExprType"); + } + } + case "SubLinkType": + { + switch (key) { + case "EXISTS_SUBLINK": + return 0; + case "ALL_SUBLINK": + return 1; + case "ANY_SUBLINK": + return 2; + case "ROWCOMPARE_SUBLINK": + return 3; + case "EXPR_SUBLINK": + return 4; + case "MULTIEXPR_SUBLINK": + return 5; + case "ARRAY_SUBLINK": + return 6; + case "CTE_SUBLINK": + return 7; + case 0: + return "EXISTS_SUBLINK"; + case 1: + return "ALL_SUBLINK"; + case 2: + return "ANY_SUBLINK"; + case 3: + return "ROWCOMPARE_SUBLINK"; + case 4: + return "EXPR_SUBLINK"; + case 5: + return "MULTIEXPR_SUBLINK"; + case 6: + return "ARRAY_SUBLINK"; + case 7: + return "CTE_SUBLINK"; + default: + throw new Error("Key not recognized in enum SubLinkType"); + } + } + case "RowCompareType": + { + switch (key) { + case "ROWCOMPARE_LT": + return 0; + case "ROWCOMPARE_LE": + return 1; + case "ROWCOMPARE_EQ": + return 2; + case "ROWCOMPARE_GE": + return 3; + case "ROWCOMPARE_GT": + return 4; + case "ROWCOMPARE_NE": + return 5; + case 0: + return "ROWCOMPARE_LT"; + case 1: + return "ROWCOMPARE_LE"; + case 2: + return "ROWCOMPARE_EQ"; + case 3: + return "ROWCOMPARE_GE"; + case 4: + return "ROWCOMPARE_GT"; + case 5: + return "ROWCOMPARE_NE"; + default: + throw new Error("Key not recognized in enum RowCompareType"); + } + } + case "MinMaxOp": + { + switch (key) { + case "IS_GREATEST": + return 0; + case "IS_LEAST": + return 1; + case 0: + return "IS_GREATEST"; + case 1: + return "IS_LEAST"; + default: + throw new Error("Key not recognized in enum MinMaxOp"); + } + } + case "SQLValueFunctionOp": + { + switch (key) { + case "SVFOP_CURRENT_DATE": + return 0; + case "SVFOP_CURRENT_TIME": + return 1; + case "SVFOP_CURRENT_TIME_N": + return 2; + case "SVFOP_CURRENT_TIMESTAMP": + return 3; + case "SVFOP_CURRENT_TIMESTAMP_N": + return 4; + case "SVFOP_LOCALTIME": + return 5; + case "SVFOP_LOCALTIME_N": + return 6; + case "SVFOP_LOCALTIMESTAMP": + return 7; + case "SVFOP_LOCALTIMESTAMP_N": + return 8; + case "SVFOP_CURRENT_ROLE": + return 9; + case "SVFOP_CURRENT_USER": + return 10; + case "SVFOP_USER": + return 11; + case "SVFOP_SESSION_USER": + return 12; + case "SVFOP_CURRENT_CATALOG": + return 13; + case "SVFOP_CURRENT_SCHEMA": + return 14; + case 0: + return "SVFOP_CURRENT_DATE"; + case 1: + return "SVFOP_CURRENT_TIME"; + case 2: + return "SVFOP_CURRENT_TIME_N"; + case 3: + return "SVFOP_CURRENT_TIMESTAMP"; + case 4: + return "SVFOP_CURRENT_TIMESTAMP_N"; + case 5: + return "SVFOP_LOCALTIME"; + case 6: + return "SVFOP_LOCALTIME_N"; + case 7: + return "SVFOP_LOCALTIMESTAMP"; + case 8: + return "SVFOP_LOCALTIMESTAMP_N"; + case 9: + return "SVFOP_CURRENT_ROLE"; + case 10: + return "SVFOP_CURRENT_USER"; + case 11: + return "SVFOP_USER"; + case 12: + return "SVFOP_SESSION_USER"; + case 13: + return "SVFOP_CURRENT_CATALOG"; + case 14: + return "SVFOP_CURRENT_SCHEMA"; + default: + throw new Error("Key not recognized in enum SQLValueFunctionOp"); + } + } + case "XmlExprOp": + { + switch (key) { + case "IS_XMLCONCAT": + return 0; + case "IS_XMLELEMENT": + return 1; + case "IS_XMLFOREST": + return 2; + case "IS_XMLPARSE": + return 3; + case "IS_XMLPI": + return 4; + case "IS_XMLROOT": + return 5; + case "IS_XMLSERIALIZE": + return 6; + case "IS_DOCUMENT": + return 7; + case 0: + return "IS_XMLCONCAT"; + case 1: + return "IS_XMLELEMENT"; + case 2: + return "IS_XMLFOREST"; + case 3: + return "IS_XMLPARSE"; + case 4: + return "IS_XMLPI"; + case 5: + return "IS_XMLROOT"; + case 6: + return "IS_XMLSERIALIZE"; + case 7: + return "IS_DOCUMENT"; + default: + throw new Error("Key not recognized in enum XmlExprOp"); + } + } + case "XmlOptionType": + { + switch (key) { + case "XMLOPTION_DOCUMENT": + return 0; + case "XMLOPTION_CONTENT": + return 1; + case 0: + return "XMLOPTION_DOCUMENT"; + case 1: + return "XMLOPTION_CONTENT"; + default: + throw new Error("Key not recognized in enum XmlOptionType"); + } + } + case "JsonEncoding": + { + switch (key) { + case "JS_ENC_DEFAULT": + return 0; + case "JS_ENC_UTF8": + return 1; + case "JS_ENC_UTF16": + return 2; + case "JS_ENC_UTF32": + return 3; + case 0: + return "JS_ENC_DEFAULT"; + case 1: + return "JS_ENC_UTF8"; + case 2: + return "JS_ENC_UTF16"; + case 3: + return "JS_ENC_UTF32"; + default: + throw new Error("Key not recognized in enum JsonEncoding"); + } + } + case "JsonFormatType": + { + switch (key) { + case "JS_FORMAT_DEFAULT": + return 0; + case "JS_FORMAT_JSON": + return 1; + case "JS_FORMAT_JSONB": + return 2; + case 0: + return "JS_FORMAT_DEFAULT"; + case 1: + return "JS_FORMAT_JSON"; + case 2: + return "JS_FORMAT_JSONB"; + default: + throw new Error("Key not recognized in enum JsonFormatType"); + } + } + case "JsonConstructorType": + { + switch (key) { + case "JSCTOR_JSON_OBJECT": + return 0; + case "JSCTOR_JSON_ARRAY": + return 1; + case "JSCTOR_JSON_OBJECTAGG": + return 2; + case "JSCTOR_JSON_ARRAYAGG": + return 3; + case 0: + return "JSCTOR_JSON_OBJECT"; + case 1: + return "JSCTOR_JSON_ARRAY"; + case 2: + return "JSCTOR_JSON_OBJECTAGG"; + case 3: + return "JSCTOR_JSON_ARRAYAGG"; + default: + throw new Error("Key not recognized in enum JsonConstructorType"); + } + } + case "JsonValueType": + { + switch (key) { + case "JS_TYPE_ANY": + return 0; + case "JS_TYPE_OBJECT": + return 1; + case "JS_TYPE_ARRAY": + return 2; + case "JS_TYPE_SCALAR": + return 3; + case 0: + return "JS_TYPE_ANY"; + case 1: + return "JS_TYPE_OBJECT"; + case 2: + return "JS_TYPE_ARRAY"; + case 3: + return "JS_TYPE_SCALAR"; + default: + throw new Error("Key not recognized in enum JsonValueType"); + } + } + case "NullTestType": + { + switch (key) { + case "IS_NULL": + return 0; + case "IS_NOT_NULL": + return 1; + case 0: + return "IS_NULL"; + case 1: + return "IS_NOT_NULL"; + default: + throw new Error("Key not recognized in enum NullTestType"); + } + } + case "BoolTestType": + { + switch (key) { + case "IS_TRUE": + return 0; + case "IS_NOT_TRUE": + return 1; + case "IS_FALSE": + return 2; + case "IS_NOT_FALSE": + return 3; + case "IS_UNKNOWN": + return 4; + case "IS_NOT_UNKNOWN": + return 5; + case 0: + return "IS_TRUE"; + case 1: + return "IS_NOT_TRUE"; + case 2: + return "IS_FALSE"; + case 3: + return "IS_NOT_FALSE"; + case 4: + return "IS_UNKNOWN"; + case 5: + return "IS_NOT_UNKNOWN"; + default: + throw new Error("Key not recognized in enum BoolTestType"); + } + } + case "CmdType": + { + switch (key) { + case "CMD_UNKNOWN": + return 0; + case "CMD_SELECT": + return 1; + case "CMD_UPDATE": + return 2; + case "CMD_INSERT": + return 3; + case "CMD_DELETE": + return 4; + case "CMD_MERGE": + return 5; + case "CMD_UTILITY": + return 6; + case "CMD_NOTHING": + return 7; + case 0: + return "CMD_UNKNOWN"; + case 1: + return "CMD_SELECT"; + case 2: + return "CMD_UPDATE"; + case 3: + return "CMD_INSERT"; + case 4: + return "CMD_DELETE"; + case 5: + return "CMD_MERGE"; + case 6: + return "CMD_UTILITY"; + case 7: + return "CMD_NOTHING"; + default: + throw new Error("Key not recognized in enum CmdType"); + } + } + case "JoinType": + { + switch (key) { + case "JOIN_INNER": + return 0; + case "JOIN_LEFT": + return 1; + case "JOIN_FULL": + return 2; + case "JOIN_RIGHT": + return 3; + case "JOIN_SEMI": + return 4; + case "JOIN_ANTI": + return 5; + case "JOIN_RIGHT_ANTI": + return 6; + case "JOIN_UNIQUE_OUTER": + return 7; + case "JOIN_UNIQUE_INNER": + return 8; + case 0: + return "JOIN_INNER"; + case 1: + return "JOIN_LEFT"; + case 2: + return "JOIN_FULL"; + case 3: + return "JOIN_RIGHT"; + case 4: + return "JOIN_SEMI"; + case 5: + return "JOIN_ANTI"; + case 6: + return "JOIN_RIGHT_ANTI"; + case 7: + return "JOIN_UNIQUE_OUTER"; + case 8: + return "JOIN_UNIQUE_INNER"; + default: + throw new Error("Key not recognized in enum JoinType"); + } + } + case "AggStrategy": + { + switch (key) { + case "AGG_PLAIN": + return 0; + case "AGG_SORTED": + return 1; + case "AGG_HASHED": + return 2; + case "AGG_MIXED": + return 3; + case 0: + return "AGG_PLAIN"; + case 1: + return "AGG_SORTED"; + case 2: + return "AGG_HASHED"; + case 3: + return "AGG_MIXED"; + default: + throw new Error("Key not recognized in enum AggStrategy"); + } + } + case "AggSplit": + { + switch (key) { + case "AGGSPLIT_SIMPLE": + return 0; + case "AGGSPLIT_INITIAL_SERIAL": + return 1; + case "AGGSPLIT_FINAL_DESERIAL": + return 2; + case 0: + return "AGGSPLIT_SIMPLE"; + case 1: + return "AGGSPLIT_INITIAL_SERIAL"; + case 2: + return "AGGSPLIT_FINAL_DESERIAL"; + default: + throw new Error("Key not recognized in enum AggSplit"); + } + } + case "SetOpCmd": + { + switch (key) { + case "SETOPCMD_INTERSECT": + return 0; + case "SETOPCMD_INTERSECT_ALL": + return 1; + case "SETOPCMD_EXCEPT": + return 2; + case "SETOPCMD_EXCEPT_ALL": + return 3; + case 0: + return "SETOPCMD_INTERSECT"; + case 1: + return "SETOPCMD_INTERSECT_ALL"; + case 2: + return "SETOPCMD_EXCEPT"; + case 3: + return "SETOPCMD_EXCEPT_ALL"; + default: + throw new Error("Key not recognized in enum SetOpCmd"); + } + } + case "SetOpStrategy": + { + switch (key) { + case "SETOP_SORTED": + return 0; + case "SETOP_HASHED": + return 1; + case 0: + return "SETOP_SORTED"; + case 1: + return "SETOP_HASHED"; + default: + throw new Error("Key not recognized in enum SetOpStrategy"); + } + } + case "OnConflictAction": + { + switch (key) { + case "ONCONFLICT_NONE": + return 0; + case "ONCONFLICT_NOTHING": + return 1; + case "ONCONFLICT_UPDATE": + return 2; + case 0: + return "ONCONFLICT_NONE"; + case 1: + return "ONCONFLICT_NOTHING"; + case 2: + return "ONCONFLICT_UPDATE"; + default: + throw new Error("Key not recognized in enum OnConflictAction"); + } + } + case "LimitOption": + { + switch (key) { + case "LIMIT_OPTION_DEFAULT": + return 0; + case "LIMIT_OPTION_COUNT": + return 1; + case "LIMIT_OPTION_WITH_TIES": + return 2; + case 0: + return "LIMIT_OPTION_DEFAULT"; + case 1: + return "LIMIT_OPTION_COUNT"; + case 2: + return "LIMIT_OPTION_WITH_TIES"; + default: + throw new Error("Key not recognized in enum LimitOption"); + } + } + case "LockClauseStrength": + { + switch (key) { + case "LCS_NONE": + return 0; + case "LCS_FORKEYSHARE": + return 1; + case "LCS_FORSHARE": + return 2; + case "LCS_FORNOKEYUPDATE": + return 3; + case "LCS_FORUPDATE": + return 4; + case 0: + return "LCS_NONE"; + case 1: + return "LCS_FORKEYSHARE"; + case 2: + return "LCS_FORSHARE"; + case 3: + return "LCS_FORNOKEYUPDATE"; + case 4: + return "LCS_FORUPDATE"; + default: + throw new Error("Key not recognized in enum LockClauseStrength"); + } + } + case "LockWaitPolicy": + { + switch (key) { + case "LockWaitBlock": + return 0; + case "LockWaitSkip": + return 1; + case "LockWaitError": + return 2; + case 0: + return "LockWaitBlock"; + case 1: + return "LockWaitSkip"; + case 2: + return "LockWaitError"; + default: + throw new Error("Key not recognized in enum LockWaitPolicy"); + } + } + case "LockTupleMode": + { + switch (key) { + case "LockTupleKeyShare": + return 0; + case "LockTupleShare": + return 1; + case "LockTupleNoKeyExclusive": + return 2; + case "LockTupleExclusive": + return 3; + case 0: + return "LockTupleKeyShare"; + case 1: + return "LockTupleShare"; + case 2: + return "LockTupleNoKeyExclusive"; + case 3: + return "LockTupleExclusive"; + default: + throw new Error("Key not recognized in enum LockTupleMode"); + } + } + case "KeywordKind": + { + switch (key) { + case "NO_KEYWORD": + return 0; + case "UNRESERVED_KEYWORD": + return 1; + case "COL_NAME_KEYWORD": + return 2; + case "TYPE_FUNC_NAME_KEYWORD": + return 3; + case "RESERVED_KEYWORD": + return 4; + case 0: + return "NO_KEYWORD"; + case 1: + return "UNRESERVED_KEYWORD"; + case 2: + return "COL_NAME_KEYWORD"; + case 3: + return "TYPE_FUNC_NAME_KEYWORD"; + case 4: + return "RESERVED_KEYWORD"; + default: + throw new Error("Key not recognized in enum KeywordKind"); + } + } + case "Token": + { + switch (key) { + case "NUL": + return 0; + case "ASCII_36": + return 36; + case "ASCII_37": + return 37; + case "ASCII_40": + return 40; + case "ASCII_41": + return 41; + case "ASCII_42": + return 42; + case "ASCII_43": + return 43; + case "ASCII_44": + return 44; + case "ASCII_45": + return 45; + case "ASCII_46": + return 46; + case "ASCII_47": + return 47; + case "ASCII_58": + return 58; + case "ASCII_59": + return 59; + case "ASCII_60": + return 60; + case "ASCII_61": + return 61; + case "ASCII_62": + return 62; + case "ASCII_63": + return 63; + case "ASCII_91": + return 91; + case "ASCII_92": + return 92; + case "ASCII_93": + return 93; + case "ASCII_94": + return 94; + case "IDENT": + return 258; + case "UIDENT": + return 259; + case "FCONST": + return 260; + case "SCONST": + return 261; + case "USCONST": + return 262; + case "BCONST": + return 263; + case "XCONST": + return 264; + case "Op": + return 265; + case "ICONST": + return 266; + case "PARAM": + return 267; + case "TYPECAST": + return 268; + case "DOT_DOT": + return 269; + case "COLON_EQUALS": + return 270; + case "EQUALS_GREATER": + return 271; + case "LESS_EQUALS": + return 272; + case "GREATER_EQUALS": + return 273; + case "NOT_EQUALS": + return 274; + case "SQL_COMMENT": + return 275; + case "C_COMMENT": + return 276; + case "ABORT_P": + return 277; + case "ABSENT": + return 278; + case "ABSOLUTE_P": + return 279; + case "ACCESS": + return 280; + case "ACTION": + return 281; + case "ADD_P": + return 282; + case "ADMIN": + return 283; + case "AFTER": + return 284; + case "AGGREGATE": + return 285; + case "ALL": + return 286; + case "ALSO": + return 287; + case "ALTER": + return 288; + case "ALWAYS": + return 289; + case "ANALYSE": + return 290; + case "ANALYZE": + return 291; + case "AND": + return 292; + case "ANY": + return 293; + case "ARRAY": + return 294; + case "AS": + return 295; + case "ASC": + return 296; + case "ASENSITIVE": + return 297; + case "ASSERTION": + return 298; + case "ASSIGNMENT": + return 299; + case "ASYMMETRIC": + return 300; + case "ATOMIC": + return 301; + case "AT": + return 302; + case "ATTACH": + return 303; + case "ATTRIBUTE": + return 304; + case "AUTHORIZATION": + return 305; + case "BACKWARD": + return 306; + case "BEFORE": + return 307; + case "BEGIN_P": + return 308; + case "BETWEEN": + return 309; + case "BIGINT": + return 310; + case "BINARY": + return 311; + case "BIT": + return 312; + case "BOOLEAN_P": + return 313; + case "BOTH": + return 314; + case "BREADTH": + return 315; + case "BY": + return 316; + case "CACHE": + return 317; + case "CALL": + return 318; + case "CALLED": + return 319; + case "CASCADE": + return 320; + case "CASCADED": + return 321; + case "CASE": + return 322; + case "CAST": + return 323; + case "CATALOG_P": + return 324; + case "CHAIN": + return 325; + case "CHAR_P": + return 326; + case "CHARACTER": + return 327; + case "CHARACTERISTICS": + return 328; + case "CHECK": + return 329; + case "CHECKPOINT": + return 330; + case "CLASS": + return 331; + case "CLOSE": + return 332; + case "CLUSTER": + return 333; + case "COALESCE": + return 334; + case "COLLATE": + return 335; + case "COLLATION": + return 336; + case "COLUMN": + return 337; + case "COLUMNS": + return 338; + case "COMMENT": + return 339; + case "COMMENTS": + return 340; + case "COMMIT": + return 341; + case "COMMITTED": + return 342; + case "COMPRESSION": + return 343; + case "CONCURRENTLY": + return 344; + case "CONFIGURATION": + return 345; + case "CONFLICT": + return 346; + case "CONNECTION": + return 347; + case "CONSTRAINT": + return 348; + case "CONSTRAINTS": + return 349; + case "CONTENT_P": + return 350; + case "CONTINUE_P": + return 351; + case "CONVERSION_P": + return 352; + case "COPY": + return 353; + case "COST": + return 354; + case "CREATE": + return 355; + case "CROSS": + return 356; + case "CSV": + return 357; + case "CUBE": + return 358; + case "CURRENT_P": + return 359; + case "CURRENT_CATALOG": + return 360; + case "CURRENT_DATE": + return 361; + case "CURRENT_ROLE": + return 362; + case "CURRENT_SCHEMA": + return 363; + case "CURRENT_TIME": + return 364; + case "CURRENT_TIMESTAMP": + return 365; + case "CURRENT_USER": + return 366; + case "CURSOR": + return 367; + case "CYCLE": + return 368; + case "DATA_P": + return 369; + case "DATABASE": + return 370; + case "DAY_P": + return 371; + case "DEALLOCATE": + return 372; + case "DEC": + return 373; + case "DECIMAL_P": + return 374; + case "DECLARE": + return 375; + case "DEFAULT": + return 376; + case "DEFAULTS": + return 377; + case "DEFERRABLE": + return 378; + case "DEFERRED": + return 379; + case "DEFINER": + return 380; + case "DELETE_P": + return 381; + case "DELIMITER": + return 382; + case "DELIMITERS": + return 383; + case "DEPENDS": + return 384; + case "DEPTH": + return 385; + case "DESC": + return 386; + case "DETACH": + return 387; + case "DICTIONARY": + return 388; + case "DISABLE_P": + return 389; + case "DISCARD": + return 390; + case "DISTINCT": + return 391; + case "DO": + return 392; + case "DOCUMENT_P": + return 393; + case "DOMAIN_P": + return 394; + case "DOUBLE_P": + return 395; + case "DROP": + return 396; + case "EACH": + return 397; + case "ELSE": + return 398; + case "ENABLE_P": + return 399; + case "ENCODING": + return 400; + case "ENCRYPTED": + return 401; + case "END_P": + return 402; + case "ENUM_P": + return 403; + case "ESCAPE": + return 404; + case "EVENT": + return 405; + case "EXCEPT": + return 406; + case "EXCLUDE": + return 407; + case "EXCLUDING": + return 408; + case "EXCLUSIVE": + return 409; + case "EXECUTE": + return 410; + case "EXISTS": + return 411; + case "EXPLAIN": + return 412; + case "EXPRESSION": + return 413; + case "EXTENSION": + return 414; + case "EXTERNAL": + return 415; + case "EXTRACT": + return 416; + case "FALSE_P": + return 417; + case "FAMILY": + return 418; + case "FETCH": + return 419; + case "FILTER": + return 420; + case "FINALIZE": + return 421; + case "FIRST_P": + return 422; + case "FLOAT_P": + return 423; + case "FOLLOWING": + return 424; + case "FOR": + return 425; + case "FORCE": + return 426; + case "FOREIGN": + return 427; + case "FORMAT": + return 428; + case "FORWARD": + return 429; + case "FREEZE": + return 430; + case "FROM": + return 431; + case "FULL": + return 432; + case "FUNCTION": + return 433; + case "FUNCTIONS": + return 434; + case "GENERATED": + return 435; + case "GLOBAL": + return 436; + case "GRANT": + return 437; + case "GRANTED": + return 438; + case "GREATEST": + return 439; + case "GROUP_P": + return 440; + case "GROUPING": + return 441; + case "GROUPS": + return 442; + case "HANDLER": + return 443; + case "HAVING": + return 444; + case "HEADER_P": + return 445; + case "HOLD": + return 446; + case "HOUR_P": + return 447; + case "IDENTITY_P": + return 448; + case "IF_P": + return 449; + case "ILIKE": + return 450; + case "IMMEDIATE": + return 451; + case "IMMUTABLE": + return 452; + case "IMPLICIT_P": + return 453; + case "IMPORT_P": + return 454; + case "IN_P": + return 455; + case "INCLUDE": + return 456; + case "INCLUDING": + return 457; + case "INCREMENT": + return 458; + case "INDENT": + return 459; + case "INDEX": + return 460; + case "INDEXES": + return 461; + case "INHERIT": + return 462; + case "INHERITS": + return 463; + case "INITIALLY": + return 464; + case "INLINE_P": + return 465; + case "INNER_P": + return 466; + case "INOUT": + return 467; + case "INPUT_P": + return 468; + case "INSENSITIVE": + return 469; + case "INSERT": + return 470; + case "INSTEAD": + return 471; + case "INT_P": + return 472; + case "INTEGER": + return 473; + case "INTERSECT": + return 474; + case "INTERVAL": + return 475; + case "INTO": + return 476; + case "INVOKER": + return 477; + case "IS": + return 478; + case "ISNULL": + return 479; + case "ISOLATION": + return 480; + case "JOIN": + return 481; + case "JSON": + return 482; + case "JSON_ARRAY": + return 483; + case "JSON_ARRAYAGG": + return 484; + case "JSON_OBJECT": + return 485; + case "JSON_OBJECTAGG": + return 486; + case "KEY": + return 487; + case "KEYS": + return 488; + case "LABEL": + return 489; + case "LANGUAGE": + return 490; + case "LARGE_P": + return 491; + case "LAST_P": + return 492; + case "LATERAL_P": + return 493; + case "LEADING": + return 494; + case "LEAKPROOF": + return 495; + case "LEAST": + return 496; + case "LEFT": + return 497; + case "LEVEL": + return 498; + case "LIKE": + return 499; + case "LIMIT": + return 500; + case "LISTEN": + return 501; + case "LOAD": + return 502; + case "LOCAL": + return 503; + case "LOCALTIME": + return 504; + case "LOCALTIMESTAMP": + return 505; + case "LOCATION": + return 506; + case "LOCK_P": + return 507; + case "LOCKED": + return 508; + case "LOGGED": + return 509; + case "MAPPING": + return 510; + case "MATCH": + return 511; + case "MATCHED": + return 512; + case "MATERIALIZED": + return 513; + case "MAXVALUE": + return 514; + case "MERGE": + return 515; + case "METHOD": + return 516; + case "MINUTE_P": + return 517; + case "MINVALUE": + return 518; + case "MODE": + return 519; + case "MONTH_P": + return 520; + case "MOVE": + return 521; + case "NAME_P": + return 522; + case "NAMES": + return 523; + case "NATIONAL": + return 524; + case "NATURAL": + return 525; + case "NCHAR": + return 526; + case "NEW": + return 527; + case "NEXT": + return 528; + case "NFC": + return 529; + case "NFD": + return 530; + case "NFKC": + return 531; + case "NFKD": + return 532; + case "NO": + return 533; + case "NONE": + return 534; + case "NORMALIZE": + return 535; + case "NORMALIZED": + return 536; + case "NOT": + return 537; + case "NOTHING": + return 538; + case "NOTIFY": + return 539; + case "NOTNULL": + return 540; + case "NOWAIT": + return 541; + case "NULL_P": + return 542; + case "NULLIF": + return 543; + case "NULLS_P": + return 544; + case "NUMERIC": + return 545; + case "OBJECT_P": + return 546; + case "OF": + return 547; + case "OFF": + return 548; + case "OFFSET": + return 549; + case "OIDS": + return 550; + case "OLD": + return 551; + case "ON": + return 552; + case "ONLY": + return 553; + case "OPERATOR": + return 554; + case "OPTION": + return 555; + case "OPTIONS": + return 556; + case "OR": + return 557; + case "ORDER": + return 558; + case "ORDINALITY": + return 559; + case "OTHERS": + return 560; + case "OUT_P": + return 561; + case "OUTER_P": + return 562; + case "OVER": + return 563; + case "OVERLAPS": + return 564; + case "OVERLAY": + return 565; + case "OVERRIDING": + return 566; + case "OWNED": + return 567; + case "OWNER": + return 568; + case "PARALLEL": + return 569; + case "PARAMETER": + return 570; + case "PARSER": + return 571; + case "PARTIAL": + return 572; + case "PARTITION": + return 573; + case "PASSING": + return 574; + case "PASSWORD": + return 575; + case "PLACING": + return 576; + case "PLANS": + return 577; + case "POLICY": + return 578; + case "POSITION": + return 579; + case "PRECEDING": + return 580; + case "PRECISION": + return 581; + case "PRESERVE": + return 582; + case "PREPARE": + return 583; + case "PREPARED": + return 584; + case "PRIMARY": + return 585; + case "PRIOR": + return 586; + case "PRIVILEGES": + return 587; + case "PROCEDURAL": + return 588; + case "PROCEDURE": + return 589; + case "PROCEDURES": + return 590; + case "PROGRAM": + return 591; + case "PUBLICATION": + return 592; + case "QUOTE": + return 593; + case "RANGE": + return 594; + case "READ": + return 595; + case "REAL": + return 596; + case "REASSIGN": + return 597; + case "RECHECK": + return 598; + case "RECURSIVE": + return 599; + case "REF_P": + return 600; + case "REFERENCES": + return 601; + case "REFERENCING": + return 602; + case "REFRESH": + return 603; + case "REINDEX": + return 604; + case "RELATIVE_P": + return 605; + case "RELEASE": + return 606; + case "RENAME": + return 607; + case "REPEATABLE": + return 608; + case "REPLACE": + return 609; + case "REPLICA": + return 610; + case "RESET": + return 611; + case "RESTART": + return 612; + case "RESTRICT": + return 613; + case "RETURN": + return 614; + case "RETURNING": + return 615; + case "RETURNS": + return 616; + case "REVOKE": + return 617; + case "RIGHT": + return 618; + case "ROLE": + return 619; + case "ROLLBACK": + return 620; + case "ROLLUP": + return 621; + case "ROUTINE": + return 622; + case "ROUTINES": + return 623; + case "ROW": + return 624; + case "ROWS": + return 625; + case "RULE": + return 626; + case "SAVEPOINT": + return 627; + case "SCALAR": + return 628; + case "SCHEMA": + return 629; + case "SCHEMAS": + return 630; + case "SCROLL": + return 631; + case "SEARCH": + return 632; + case "SECOND_P": + return 633; + case "SECURITY": + return 634; + case "SELECT": + return 635; + case "SEQUENCE": + return 636; + case "SEQUENCES": + return 637; + case "SERIALIZABLE": + return 638; + case "SERVER": + return 639; + case "SESSION": + return 640; + case "SESSION_USER": + return 641; + case "SET": + return 642; + case "SETS": + return 643; + case "SETOF": + return 644; + case "SHARE": + return 645; + case "SHOW": + return 646; + case "SIMILAR": + return 647; + case "SIMPLE": + return 648; + case "SKIP": + return 649; + case "SMALLINT": + return 650; + case "SNAPSHOT": + return 651; + case "SOME": + return 652; + case "SQL_P": + return 653; + case "STABLE": + return 654; + case "STANDALONE_P": + return 655; + case "START": + return 656; + case "STATEMENT": + return 657; + case "STATISTICS": + return 658; + case "STDIN": + return 659; + case "STDOUT": + return 660; + case "STORAGE": + return 661; + case "STORED": + return 662; + case "STRICT_P": + return 663; + case "STRIP_P": + return 664; + case "SUBSCRIPTION": + return 665; + case "SUBSTRING": + return 666; + case "SUPPORT": + return 667; + case "SYMMETRIC": + return 668; + case "SYSID": + return 669; + case "SYSTEM_P": + return 670; + case "SYSTEM_USER": + return 671; + case "TABLE": + return 672; + case "TABLES": + return 673; + case "TABLESAMPLE": + return 674; + case "TABLESPACE": + return 675; + case "TEMP": + return 676; + case "TEMPLATE": + return 677; + case "TEMPORARY": + return 678; + case "TEXT_P": + return 679; + case "THEN": + return 680; + case "TIES": + return 681; + case "TIME": + return 682; + case "TIMESTAMP": + return 683; + case "TO": + return 684; + case "TRAILING": + return 685; + case "TRANSACTION": + return 686; + case "TRANSFORM": + return 687; + case "TREAT": + return 688; + case "TRIGGER": + return 689; + case "TRIM": + return 690; + case "TRUE_P": + return 691; + case "TRUNCATE": + return 692; + case "TRUSTED": + return 693; + case "TYPE_P": + return 694; + case "TYPES_P": + return 695; + case "UESCAPE": + return 696; + case "UNBOUNDED": + return 697; + case "UNCOMMITTED": + return 698; + case "UNENCRYPTED": + return 699; + case "UNION": + return 700; + case "UNIQUE": + return 701; + case "UNKNOWN": + return 702; + case "UNLISTEN": + return 703; + case "UNLOGGED": + return 704; + case "UNTIL": + return 705; + case "UPDATE": + return 706; + case "USER": + return 707; + case "USING": + return 708; + case "VACUUM": + return 709; + case "VALID": + return 710; + case "VALIDATE": + return 711; + case "VALIDATOR": + return 712; + case "VALUE_P": + return 713; + case "VALUES": + return 714; + case "VARCHAR": + return 715; + case "VARIADIC": + return 716; + case "VARYING": + return 717; + case "VERBOSE": + return 718; + case "VERSION_P": + return 719; + case "VIEW": + return 720; + case "VIEWS": + return 721; + case "VOLATILE": + return 722; + case "WHEN": + return 723; + case "WHERE": + return 724; + case "WHITESPACE_P": + return 725; + case "WINDOW": + return 726; + case "WITH": + return 727; + case "WITHIN": + return 728; + case "WITHOUT": + return 729; + case "WORK": + return 730; + case "WRAPPER": + return 731; + case "WRITE": + return 732; + case "XML_P": + return 733; + case "XMLATTRIBUTES": + return 734; + case "XMLCONCAT": + return 735; + case "XMLELEMENT": + return 736; + case "XMLEXISTS": + return 737; + case "XMLFOREST": + return 738; + case "XMLNAMESPACES": + return 739; + case "XMLPARSE": + return 740; + case "XMLPI": + return 741; + case "XMLROOT": + return 742; + case "XMLSERIALIZE": + return 743; + case "XMLTABLE": + return 744; + case "YEAR_P": + return 745; + case "YES_P": + return 746; + case "ZONE": + return 747; + case "FORMAT_LA": + return 748; + case "NOT_LA": + return 749; + case "NULLS_LA": + return 750; + case "WITH_LA": + return 751; + case "WITHOUT_LA": + return 752; + case "MODE_TYPE_NAME": + return 753; + case "MODE_PLPGSQL_EXPR": + return 754; + case "MODE_PLPGSQL_ASSIGN1": + return 755; + case "MODE_PLPGSQL_ASSIGN2": + return 756; + case "MODE_PLPGSQL_ASSIGN3": + return 757; + case "UMINUS": + return 758; + case 0: + return "NUL"; + case 36: + return "ASCII_36"; + case 37: + return "ASCII_37"; + case 40: + return "ASCII_40"; + case 41: + return "ASCII_41"; + case 42: + return "ASCII_42"; + case 43: + return "ASCII_43"; + case 44: + return "ASCII_44"; + case 45: + return "ASCII_45"; + case 46: + return "ASCII_46"; + case 47: + return "ASCII_47"; + case 58: + return "ASCII_58"; + case 59: + return "ASCII_59"; + case 60: + return "ASCII_60"; + case 61: + return "ASCII_61"; + case 62: + return "ASCII_62"; + case 63: + return "ASCII_63"; + case 91: + return "ASCII_91"; + case 92: + return "ASCII_92"; + case 93: + return "ASCII_93"; + case 94: + return "ASCII_94"; + case 258: + return "IDENT"; + case 259: + return "UIDENT"; + case 260: + return "FCONST"; + case 261: + return "SCONST"; + case 262: + return "USCONST"; + case 263: + return "BCONST"; + case 264: + return "XCONST"; + case 265: + return "Op"; + case 266: + return "ICONST"; + case 267: + return "PARAM"; + case 268: + return "TYPECAST"; + case 269: + return "DOT_DOT"; + case 270: + return "COLON_EQUALS"; + case 271: + return "EQUALS_GREATER"; + case 272: + return "LESS_EQUALS"; + case 273: + return "GREATER_EQUALS"; + case 274: + return "NOT_EQUALS"; + case 275: + return "SQL_COMMENT"; + case 276: + return "C_COMMENT"; + case 277: + return "ABORT_P"; + case 278: + return "ABSENT"; + case 279: + return "ABSOLUTE_P"; + case 280: + return "ACCESS"; + case 281: + return "ACTION"; + case 282: + return "ADD_P"; + case 283: + return "ADMIN"; + case 284: + return "AFTER"; + case 285: + return "AGGREGATE"; + case 286: + return "ALL"; + case 287: + return "ALSO"; + case 288: + return "ALTER"; + case 289: + return "ALWAYS"; + case 290: + return "ANALYSE"; + case 291: + return "ANALYZE"; + case 292: + return "AND"; + case 293: + return "ANY"; + case 294: + return "ARRAY"; + case 295: + return "AS"; + case 296: + return "ASC"; + case 297: + return "ASENSITIVE"; + case 298: + return "ASSERTION"; + case 299: + return "ASSIGNMENT"; + case 300: + return "ASYMMETRIC"; + case 301: + return "ATOMIC"; + case 302: + return "AT"; + case 303: + return "ATTACH"; + case 304: + return "ATTRIBUTE"; + case 305: + return "AUTHORIZATION"; + case 306: + return "BACKWARD"; + case 307: + return "BEFORE"; + case 308: + return "BEGIN_P"; + case 309: + return "BETWEEN"; + case 310: + return "BIGINT"; + case 311: + return "BINARY"; + case 312: + return "BIT"; + case 313: + return "BOOLEAN_P"; + case 314: + return "BOTH"; + case 315: + return "BREADTH"; + case 316: + return "BY"; + case 317: + return "CACHE"; + case 318: + return "CALL"; + case 319: + return "CALLED"; + case 320: + return "CASCADE"; + case 321: + return "CASCADED"; + case 322: + return "CASE"; + case 323: + return "CAST"; + case 324: + return "CATALOG_P"; + case 325: + return "CHAIN"; + case 326: + return "CHAR_P"; + case 327: + return "CHARACTER"; + case 328: + return "CHARACTERISTICS"; + case 329: + return "CHECK"; + case 330: + return "CHECKPOINT"; + case 331: + return "CLASS"; + case 332: + return "CLOSE"; + case 333: + return "CLUSTER"; + case 334: + return "COALESCE"; + case 335: + return "COLLATE"; + case 336: + return "COLLATION"; + case 337: + return "COLUMN"; + case 338: + return "COLUMNS"; + case 339: + return "COMMENT"; + case 340: + return "COMMENTS"; + case 341: + return "COMMIT"; + case 342: + return "COMMITTED"; + case 343: + return "COMPRESSION"; + case 344: + return "CONCURRENTLY"; + case 345: + return "CONFIGURATION"; + case 346: + return "CONFLICT"; + case 347: + return "CONNECTION"; + case 348: + return "CONSTRAINT"; + case 349: + return "CONSTRAINTS"; + case 350: + return "CONTENT_P"; + case 351: + return "CONTINUE_P"; + case 352: + return "CONVERSION_P"; + case 353: + return "COPY"; + case 354: + return "COST"; + case 355: + return "CREATE"; + case 356: + return "CROSS"; + case 357: + return "CSV"; + case 358: + return "CUBE"; + case 359: + return "CURRENT_P"; + case 360: + return "CURRENT_CATALOG"; + case 361: + return "CURRENT_DATE"; + case 362: + return "CURRENT_ROLE"; + case 363: + return "CURRENT_SCHEMA"; + case 364: + return "CURRENT_TIME"; + case 365: + return "CURRENT_TIMESTAMP"; + case 366: + return "CURRENT_USER"; + case 367: + return "CURSOR"; + case 368: + return "CYCLE"; + case 369: + return "DATA_P"; + case 370: + return "DATABASE"; + case 371: + return "DAY_P"; + case 372: + return "DEALLOCATE"; + case 373: + return "DEC"; + case 374: + return "DECIMAL_P"; + case 375: + return "DECLARE"; + case 376: + return "DEFAULT"; + case 377: + return "DEFAULTS"; + case 378: + return "DEFERRABLE"; + case 379: + return "DEFERRED"; + case 380: + return "DEFINER"; + case 381: + return "DELETE_P"; + case 382: + return "DELIMITER"; + case 383: + return "DELIMITERS"; + case 384: + return "DEPENDS"; + case 385: + return "DEPTH"; + case 386: + return "DESC"; + case 387: + return "DETACH"; + case 388: + return "DICTIONARY"; + case 389: + return "DISABLE_P"; + case 390: + return "DISCARD"; + case 391: + return "DISTINCT"; + case 392: + return "DO"; + case 393: + return "DOCUMENT_P"; + case 394: + return "DOMAIN_P"; + case 395: + return "DOUBLE_P"; + case 396: + return "DROP"; + case 397: + return "EACH"; + case 398: + return "ELSE"; + case 399: + return "ENABLE_P"; + case 400: + return "ENCODING"; + case 401: + return "ENCRYPTED"; + case 402: + return "END_P"; + case 403: + return "ENUM_P"; + case 404: + return "ESCAPE"; + case 405: + return "EVENT"; + case 406: + return "EXCEPT"; + case 407: + return "EXCLUDE"; + case 408: + return "EXCLUDING"; + case 409: + return "EXCLUSIVE"; + case 410: + return "EXECUTE"; + case 411: + return "EXISTS"; + case 412: + return "EXPLAIN"; + case 413: + return "EXPRESSION"; + case 414: + return "EXTENSION"; + case 415: + return "EXTERNAL"; + case 416: + return "EXTRACT"; + case 417: + return "FALSE_P"; + case 418: + return "FAMILY"; + case 419: + return "FETCH"; + case 420: + return "FILTER"; + case 421: + return "FINALIZE"; + case 422: + return "FIRST_P"; + case 423: + return "FLOAT_P"; + case 424: + return "FOLLOWING"; + case 425: + return "FOR"; + case 426: + return "FORCE"; + case 427: + return "FOREIGN"; + case 428: + return "FORMAT"; + case 429: + return "FORWARD"; + case 430: + return "FREEZE"; + case 431: + return "FROM"; + case 432: + return "FULL"; + case 433: + return "FUNCTION"; + case 434: + return "FUNCTIONS"; + case 435: + return "GENERATED"; + case 436: + return "GLOBAL"; + case 437: + return "GRANT"; + case 438: + return "GRANTED"; + case 439: + return "GREATEST"; + case 440: + return "GROUP_P"; + case 441: + return "GROUPING"; + case 442: + return "GROUPS"; + case 443: + return "HANDLER"; + case 444: + return "HAVING"; + case 445: + return "HEADER_P"; + case 446: + return "HOLD"; + case 447: + return "HOUR_P"; + case 448: + return "IDENTITY_P"; + case 449: + return "IF_P"; + case 450: + return "ILIKE"; + case 451: + return "IMMEDIATE"; + case 452: + return "IMMUTABLE"; + case 453: + return "IMPLICIT_P"; + case 454: + return "IMPORT_P"; + case 455: + return "IN_P"; + case 456: + return "INCLUDE"; + case 457: + return "INCLUDING"; + case 458: + return "INCREMENT"; + case 459: + return "INDENT"; + case 460: + return "INDEX"; + case 461: + return "INDEXES"; + case 462: + return "INHERIT"; + case 463: + return "INHERITS"; + case 464: + return "INITIALLY"; + case 465: + return "INLINE_P"; + case 466: + return "INNER_P"; + case 467: + return "INOUT"; + case 468: + return "INPUT_P"; + case 469: + return "INSENSITIVE"; + case 470: + return "INSERT"; + case 471: + return "INSTEAD"; + case 472: + return "INT_P"; + case 473: + return "INTEGER"; + case 474: + return "INTERSECT"; + case 475: + return "INTERVAL"; + case 476: + return "INTO"; + case 477: + return "INVOKER"; + case 478: + return "IS"; + case 479: + return "ISNULL"; + case 480: + return "ISOLATION"; + case 481: + return "JOIN"; + case 482: + return "JSON"; + case 483: + return "JSON_ARRAY"; + case 484: + return "JSON_ARRAYAGG"; + case 485: + return "JSON_OBJECT"; + case 486: + return "JSON_OBJECTAGG"; + case 487: + return "KEY"; + case 488: + return "KEYS"; + case 489: + return "LABEL"; + case 490: + return "LANGUAGE"; + case 491: + return "LARGE_P"; + case 492: + return "LAST_P"; + case 493: + return "LATERAL_P"; + case 494: + return "LEADING"; + case 495: + return "LEAKPROOF"; + case 496: + return "LEAST"; + case 497: + return "LEFT"; + case 498: + return "LEVEL"; + case 499: + return "LIKE"; + case 500: + return "LIMIT"; + case 501: + return "LISTEN"; + case 502: + return "LOAD"; + case 503: + return "LOCAL"; + case 504: + return "LOCALTIME"; + case 505: + return "LOCALTIMESTAMP"; + case 506: + return "LOCATION"; + case 507: + return "LOCK_P"; + case 508: + return "LOCKED"; + case 509: + return "LOGGED"; + case 510: + return "MAPPING"; + case 511: + return "MATCH"; + case 512: + return "MATCHED"; + case 513: + return "MATERIALIZED"; + case 514: + return "MAXVALUE"; + case 515: + return "MERGE"; + case 516: + return "METHOD"; + case 517: + return "MINUTE_P"; + case 518: + return "MINVALUE"; + case 519: + return "MODE"; + case 520: + return "MONTH_P"; + case 521: + return "MOVE"; + case 522: + return "NAME_P"; + case 523: + return "NAMES"; + case 524: + return "NATIONAL"; + case 525: + return "NATURAL"; + case 526: + return "NCHAR"; + case 527: + return "NEW"; + case 528: + return "NEXT"; + case 529: + return "NFC"; + case 530: + return "NFD"; + case 531: + return "NFKC"; + case 532: + return "NFKD"; + case 533: + return "NO"; + case 534: + return "NONE"; + case 535: + return "NORMALIZE"; + case 536: + return "NORMALIZED"; + case 537: + return "NOT"; + case 538: + return "NOTHING"; + case 539: + return "NOTIFY"; + case 540: + return "NOTNULL"; + case 541: + return "NOWAIT"; + case 542: + return "NULL_P"; + case 543: + return "NULLIF"; + case 544: + return "NULLS_P"; + case 545: + return "NUMERIC"; + case 546: + return "OBJECT_P"; + case 547: + return "OF"; + case 548: + return "OFF"; + case 549: + return "OFFSET"; + case 550: + return "OIDS"; + case 551: + return "OLD"; + case 552: + return "ON"; + case 553: + return "ONLY"; + case 554: + return "OPERATOR"; + case 555: + return "OPTION"; + case 556: + return "OPTIONS"; + case 557: + return "OR"; + case 558: + return "ORDER"; + case 559: + return "ORDINALITY"; + case 560: + return "OTHERS"; + case 561: + return "OUT_P"; + case 562: + return "OUTER_P"; + case 563: + return "OVER"; + case 564: + return "OVERLAPS"; + case 565: + return "OVERLAY"; + case 566: + return "OVERRIDING"; + case 567: + return "OWNED"; + case 568: + return "OWNER"; + case 569: + return "PARALLEL"; + case 570: + return "PARAMETER"; + case 571: + return "PARSER"; + case 572: + return "PARTIAL"; + case 573: + return "PARTITION"; + case 574: + return "PASSING"; + case 575: + return "PASSWORD"; + case 576: + return "PLACING"; + case 577: + return "PLANS"; + case 578: + return "POLICY"; + case 579: + return "POSITION"; + case 580: + return "PRECEDING"; + case 581: + return "PRECISION"; + case 582: + return "PRESERVE"; + case 583: + return "PREPARE"; + case 584: + return "PREPARED"; + case 585: + return "PRIMARY"; + case 586: + return "PRIOR"; + case 587: + return "PRIVILEGES"; + case 588: + return "PROCEDURAL"; + case 589: + return "PROCEDURE"; + case 590: + return "PROCEDURES"; + case 591: + return "PROGRAM"; + case 592: + return "PUBLICATION"; + case 593: + return "QUOTE"; + case 594: + return "RANGE"; + case 595: + return "READ"; + case 596: + return "REAL"; + case 597: + return "REASSIGN"; + case 598: + return "RECHECK"; + case 599: + return "RECURSIVE"; + case 600: + return "REF_P"; + case 601: + return "REFERENCES"; + case 602: + return "REFERENCING"; + case 603: + return "REFRESH"; + case 604: + return "REINDEX"; + case 605: + return "RELATIVE_P"; + case 606: + return "RELEASE"; + case 607: + return "RENAME"; + case 608: + return "REPEATABLE"; + case 609: + return "REPLACE"; + case 610: + return "REPLICA"; + case 611: + return "RESET"; + case 612: + return "RESTART"; + case 613: + return "RESTRICT"; + case 614: + return "RETURN"; + case 615: + return "RETURNING"; + case 616: + return "RETURNS"; + case 617: + return "REVOKE"; + case 618: + return "RIGHT"; + case 619: + return "ROLE"; + case 620: + return "ROLLBACK"; + case 621: + return "ROLLUP"; + case 622: + return "ROUTINE"; + case 623: + return "ROUTINES"; + case 624: + return "ROW"; + case 625: + return "ROWS"; + case 626: + return "RULE"; + case 627: + return "SAVEPOINT"; + case 628: + return "SCALAR"; + case 629: + return "SCHEMA"; + case 630: + return "SCHEMAS"; + case 631: + return "SCROLL"; + case 632: + return "SEARCH"; + case 633: + return "SECOND_P"; + case 634: + return "SECURITY"; + case 635: + return "SELECT"; + case 636: + return "SEQUENCE"; + case 637: + return "SEQUENCES"; + case 638: + return "SERIALIZABLE"; + case 639: + return "SERVER"; + case 640: + return "SESSION"; + case 641: + return "SESSION_USER"; + case 642: + return "SET"; + case 643: + return "SETS"; + case 644: + return "SETOF"; + case 645: + return "SHARE"; + case 646: + return "SHOW"; + case 647: + return "SIMILAR"; + case 648: + return "SIMPLE"; + case 649: + return "SKIP"; + case 650: + return "SMALLINT"; + case 651: + return "SNAPSHOT"; + case 652: + return "SOME"; + case 653: + return "SQL_P"; + case 654: + return "STABLE"; + case 655: + return "STANDALONE_P"; + case 656: + return "START"; + case 657: + return "STATEMENT"; + case 658: + return "STATISTICS"; + case 659: + return "STDIN"; + case 660: + return "STDOUT"; + case 661: + return "STORAGE"; + case 662: + return "STORED"; + case 663: + return "STRICT_P"; + case 664: + return "STRIP_P"; + case 665: + return "SUBSCRIPTION"; + case 666: + return "SUBSTRING"; + case 667: + return "SUPPORT"; + case 668: + return "SYMMETRIC"; + case 669: + return "SYSID"; + case 670: + return "SYSTEM_P"; + case 671: + return "SYSTEM_USER"; + case 672: + return "TABLE"; + case 673: + return "TABLES"; + case 674: + return "TABLESAMPLE"; + case 675: + return "TABLESPACE"; + case 676: + return "TEMP"; + case 677: + return "TEMPLATE"; + case 678: + return "TEMPORARY"; + case 679: + return "TEXT_P"; + case 680: + return "THEN"; + case 681: + return "TIES"; + case 682: + return "TIME"; + case 683: + return "TIMESTAMP"; + case 684: + return "TO"; + case 685: + return "TRAILING"; + case 686: + return "TRANSACTION"; + case 687: + return "TRANSFORM"; + case 688: + return "TREAT"; + case 689: + return "TRIGGER"; + case 690: + return "TRIM"; + case 691: + return "TRUE_P"; + case 692: + return "TRUNCATE"; + case 693: + return "TRUSTED"; + case 694: + return "TYPE_P"; + case 695: + return "TYPES_P"; + case 696: + return "UESCAPE"; + case 697: + return "UNBOUNDED"; + case 698: + return "UNCOMMITTED"; + case 699: + return "UNENCRYPTED"; + case 700: + return "UNION"; + case 701: + return "UNIQUE"; + case 702: + return "UNKNOWN"; + case 703: + return "UNLISTEN"; + case 704: + return "UNLOGGED"; + case 705: + return "UNTIL"; + case 706: + return "UPDATE"; + case 707: + return "USER"; + case 708: + return "USING"; + case 709: + return "VACUUM"; + case 710: + return "VALID"; + case 711: + return "VALIDATE"; + case 712: + return "VALIDATOR"; + case 713: + return "VALUE_P"; + case 714: + return "VALUES"; + case 715: + return "VARCHAR"; + case 716: + return "VARIADIC"; + case 717: + return "VARYING"; + case 718: + return "VERBOSE"; + case 719: + return "VERSION_P"; + case 720: + return "VIEW"; + case 721: + return "VIEWS"; + case 722: + return "VOLATILE"; + case 723: + return "WHEN"; + case 724: + return "WHERE"; + case 725: + return "WHITESPACE_P"; + case 726: + return "WINDOW"; + case 727: + return "WITH"; + case 728: + return "WITHIN"; + case 729: + return "WITHOUT"; + case 730: + return "WORK"; + case 731: + return "WRAPPER"; + case 732: + return "WRITE"; + case 733: + return "XML_P"; + case 734: + return "XMLATTRIBUTES"; + case 735: + return "XMLCONCAT"; + case 736: + return "XMLELEMENT"; + case 737: + return "XMLEXISTS"; + case 738: + return "XMLFOREST"; + case 739: + return "XMLNAMESPACES"; + case 740: + return "XMLPARSE"; + case 741: + return "XMLPI"; + case 742: + return "XMLROOT"; + case 743: + return "XMLSERIALIZE"; + case 744: + return "XMLTABLE"; + case 745: + return "YEAR_P"; + case 746: + return "YES_P"; + case 747: + return "ZONE"; + case 748: + return "FORMAT_LA"; + case 749: + return "NOT_LA"; + case 750: + return "NULLS_LA"; + case 751: + return "WITH_LA"; + case 752: + return "WITHOUT_LA"; + case 753: + return "MODE_TYPE_NAME"; + case 754: + return "MODE_PLPGSQL_EXPR"; + case 755: + return "MODE_PLPGSQL_ASSIGN1"; + case 756: + return "MODE_PLPGSQL_ASSIGN2"; + case 757: + return "MODE_PLPGSQL_ASSIGN3"; + case 758: + return "UMINUS"; + default: + throw new Error("Key not recognized in enum Token"); + } + } + default: + throw new Error("Enum type not recognized"); + } +}; \ No newline at end of file diff --git a/__fixtures__/output/utils/enums/bidirectional/enum-utils.ts b/__fixtures__/output/utils/enums/bidirectional/enum-utils.ts new file mode 100644 index 00000000..78012d58 --- /dev/null +++ b/__fixtures__/output/utils/enums/bidirectional/enum-utils.ts @@ -0,0 +1,4232 @@ +/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type EnumType = "OverridingKind" | "QuerySource" | "SortByDir" | "SortByNulls" | "SetQuantifier" | "A_Expr_Kind" | "RoleSpecType" | "TableLikeOption" | "DefElemAction" | "PartitionStrategy" | "PartitionRangeDatumKind" | "RTEKind" | "WCOKind" | "GroupingSetKind" | "CTEMaterialize" | "SetOperation" | "ObjectType" | "DropBehavior" | "AlterTableType" | "GrantTargetType" | "VariableSetKind" | "ConstrType" | "ImportForeignSchemaType" | "RoleStmtType" | "FetchDirection" | "FunctionParameterMode" | "TransactionStmtKind" | "ViewCheckOption" | "DiscardMode" | "ReindexObjectType" | "AlterTSConfigType" | "PublicationObjSpecType" | "AlterPublicationAction" | "AlterSubscriptionType" | "OnCommitAction" | "ParamKind" | "CoercionContext" | "CoercionForm" | "BoolExprType" | "SubLinkType" | "RowCompareType" | "MinMaxOp" | "SQLValueFunctionOp" | "XmlExprOp" | "XmlOptionType" | "JsonEncoding" | "JsonFormatType" | "JsonConstructorType" | "JsonValueType" | "NullTestType" | "BoolTestType" | "CmdType" | "JoinType" | "AggStrategy" | "AggSplit" | "SetOpCmd" | "SetOpStrategy" | "OnConflictAction" | "LimitOption" | "LockClauseStrength" | "LockWaitPolicy" | "LockTupleMode" | "KeywordKind" | "Token"; +export const getEnumValue = (enumType: EnumType, key: string | number) => { + switch (enumType) { + case "OverridingKind": + { + switch (key) { + case "OVERRIDING_NOT_SET": + return 0; + case "OVERRIDING_USER_VALUE": + return 1; + case "OVERRIDING_SYSTEM_VALUE": + return 2; + case 0: + return "OVERRIDING_NOT_SET"; + case 1: + return "OVERRIDING_USER_VALUE"; + case 2: + return "OVERRIDING_SYSTEM_VALUE"; + default: + throw new Error("Key not recognized in enum OverridingKind"); + } + } + case "QuerySource": + { + switch (key) { + case "QSRC_ORIGINAL": + return 0; + case "QSRC_PARSER": + return 1; + case "QSRC_INSTEAD_RULE": + return 2; + case "QSRC_QUAL_INSTEAD_RULE": + return 3; + case "QSRC_NON_INSTEAD_RULE": + return 4; + case 0: + return "QSRC_ORIGINAL"; + case 1: + return "QSRC_PARSER"; + case 2: + return "QSRC_INSTEAD_RULE"; + case 3: + return "QSRC_QUAL_INSTEAD_RULE"; + case 4: + return "QSRC_NON_INSTEAD_RULE"; + default: + throw new Error("Key not recognized in enum QuerySource"); + } + } + case "SortByDir": + { + switch (key) { + case "SORTBY_DEFAULT": + return 0; + case "SORTBY_ASC": + return 1; + case "SORTBY_DESC": + return 2; + case "SORTBY_USING": + return 3; + case 0: + return "SORTBY_DEFAULT"; + case 1: + return "SORTBY_ASC"; + case 2: + return "SORTBY_DESC"; + case 3: + return "SORTBY_USING"; + default: + throw new Error("Key not recognized in enum SortByDir"); + } + } + case "SortByNulls": + { + switch (key) { + case "SORTBY_NULLS_DEFAULT": + return 0; + case "SORTBY_NULLS_FIRST": + return 1; + case "SORTBY_NULLS_LAST": + return 2; + case 0: + return "SORTBY_NULLS_DEFAULT"; + case 1: + return "SORTBY_NULLS_FIRST"; + case 2: + return "SORTBY_NULLS_LAST"; + default: + throw new Error("Key not recognized in enum SortByNulls"); + } + } + case "SetQuantifier": + { + switch (key) { + case "SET_QUANTIFIER_DEFAULT": + return 0; + case "SET_QUANTIFIER_ALL": + return 1; + case "SET_QUANTIFIER_DISTINCT": + return 2; + case 0: + return "SET_QUANTIFIER_DEFAULT"; + case 1: + return "SET_QUANTIFIER_ALL"; + case 2: + return "SET_QUANTIFIER_DISTINCT"; + default: + throw new Error("Key not recognized in enum SetQuantifier"); + } + } + case "A_Expr_Kind": + { + switch (key) { + case "AEXPR_OP": + return 0; + case "AEXPR_OP_ANY": + return 1; + case "AEXPR_OP_ALL": + return 2; + case "AEXPR_DISTINCT": + return 3; + case "AEXPR_NOT_DISTINCT": + return 4; + case "AEXPR_NULLIF": + return 5; + case "AEXPR_IN": + return 6; + case "AEXPR_LIKE": + return 7; + case "AEXPR_ILIKE": + return 8; + case "AEXPR_SIMILAR": + return 9; + case "AEXPR_BETWEEN": + return 10; + case "AEXPR_NOT_BETWEEN": + return 11; + case "AEXPR_BETWEEN_SYM": + return 12; + case "AEXPR_NOT_BETWEEN_SYM": + return 13; + case 0: + return "AEXPR_OP"; + case 1: + return "AEXPR_OP_ANY"; + case 2: + return "AEXPR_OP_ALL"; + case 3: + return "AEXPR_DISTINCT"; + case 4: + return "AEXPR_NOT_DISTINCT"; + case 5: + return "AEXPR_NULLIF"; + case 6: + return "AEXPR_IN"; + case 7: + return "AEXPR_LIKE"; + case 8: + return "AEXPR_ILIKE"; + case 9: + return "AEXPR_SIMILAR"; + case 10: + return "AEXPR_BETWEEN"; + case 11: + return "AEXPR_NOT_BETWEEN"; + case 12: + return "AEXPR_BETWEEN_SYM"; + case 13: + return "AEXPR_NOT_BETWEEN_SYM"; + default: + throw new Error("Key not recognized in enum A_Expr_Kind"); + } + } + case "RoleSpecType": + { + switch (key) { + case "ROLESPEC_CSTRING": + return 0; + case "ROLESPEC_CURRENT_ROLE": + return 1; + case "ROLESPEC_CURRENT_USER": + return 2; + case "ROLESPEC_SESSION_USER": + return 3; + case "ROLESPEC_PUBLIC": + return 4; + case 0: + return "ROLESPEC_CSTRING"; + case 1: + return "ROLESPEC_CURRENT_ROLE"; + case 2: + return "ROLESPEC_CURRENT_USER"; + case 3: + return "ROLESPEC_SESSION_USER"; + case 4: + return "ROLESPEC_PUBLIC"; + default: + throw new Error("Key not recognized in enum RoleSpecType"); + } + } + case "TableLikeOption": + { + switch (key) { + case "CREATE_TABLE_LIKE_COMMENTS": + return 0; + case "CREATE_TABLE_LIKE_COMPRESSION": + return 1; + case "CREATE_TABLE_LIKE_CONSTRAINTS": + return 2; + case "CREATE_TABLE_LIKE_DEFAULTS": + return 3; + case "CREATE_TABLE_LIKE_GENERATED": + return 4; + case "CREATE_TABLE_LIKE_IDENTITY": + return 5; + case "CREATE_TABLE_LIKE_INDEXES": + return 6; + case "CREATE_TABLE_LIKE_STATISTICS": + return 7; + case "CREATE_TABLE_LIKE_STORAGE": + return 8; + case "CREATE_TABLE_LIKE_ALL": + return 9; + case 0: + return "CREATE_TABLE_LIKE_COMMENTS"; + case 1: + return "CREATE_TABLE_LIKE_COMPRESSION"; + case 2: + return "CREATE_TABLE_LIKE_CONSTRAINTS"; + case 3: + return "CREATE_TABLE_LIKE_DEFAULTS"; + case 4: + return "CREATE_TABLE_LIKE_GENERATED"; + case 5: + return "CREATE_TABLE_LIKE_IDENTITY"; + case 6: + return "CREATE_TABLE_LIKE_INDEXES"; + case 7: + return "CREATE_TABLE_LIKE_STATISTICS"; + case 8: + return "CREATE_TABLE_LIKE_STORAGE"; + case 9: + return "CREATE_TABLE_LIKE_ALL"; + default: + throw new Error("Key not recognized in enum TableLikeOption"); + } + } + case "DefElemAction": + { + switch (key) { + case "DEFELEM_UNSPEC": + return 0; + case "DEFELEM_SET": + return 1; + case "DEFELEM_ADD": + return 2; + case "DEFELEM_DROP": + return 3; + case 0: + return "DEFELEM_UNSPEC"; + case 1: + return "DEFELEM_SET"; + case 2: + return "DEFELEM_ADD"; + case 3: + return "DEFELEM_DROP"; + default: + throw new Error("Key not recognized in enum DefElemAction"); + } + } + case "PartitionStrategy": + { + switch (key) { + case "PARTITION_STRATEGY_LIST": + return 0; + case "PARTITION_STRATEGY_RANGE": + return 1; + case "PARTITION_STRATEGY_HASH": + return 2; + case 0: + return "PARTITION_STRATEGY_LIST"; + case 1: + return "PARTITION_STRATEGY_RANGE"; + case 2: + return "PARTITION_STRATEGY_HASH"; + default: + throw new Error("Key not recognized in enum PartitionStrategy"); + } + } + case "PartitionRangeDatumKind": + { + switch (key) { + case "PARTITION_RANGE_DATUM_MINVALUE": + return 0; + case "PARTITION_RANGE_DATUM_VALUE": + return 1; + case "PARTITION_RANGE_DATUM_MAXVALUE": + return 2; + case 0: + return "PARTITION_RANGE_DATUM_MINVALUE"; + case 1: + return "PARTITION_RANGE_DATUM_VALUE"; + case 2: + return "PARTITION_RANGE_DATUM_MAXVALUE"; + default: + throw new Error("Key not recognized in enum PartitionRangeDatumKind"); + } + } + case "RTEKind": + { + switch (key) { + case "RTE_RELATION": + return 0; + case "RTE_SUBQUERY": + return 1; + case "RTE_JOIN": + return 2; + case "RTE_FUNCTION": + return 3; + case "RTE_TABLEFUNC": + return 4; + case "RTE_VALUES": + return 5; + case "RTE_CTE": + return 6; + case "RTE_NAMEDTUPLESTORE": + return 7; + case "RTE_RESULT": + return 8; + case 0: + return "RTE_RELATION"; + case 1: + return "RTE_SUBQUERY"; + case 2: + return "RTE_JOIN"; + case 3: + return "RTE_FUNCTION"; + case 4: + return "RTE_TABLEFUNC"; + case 5: + return "RTE_VALUES"; + case 6: + return "RTE_CTE"; + case 7: + return "RTE_NAMEDTUPLESTORE"; + case 8: + return "RTE_RESULT"; + default: + throw new Error("Key not recognized in enum RTEKind"); + } + } + case "WCOKind": + { + switch (key) { + case "WCO_VIEW_CHECK": + return 0; + case "WCO_RLS_INSERT_CHECK": + return 1; + case "WCO_RLS_UPDATE_CHECK": + return 2; + case "WCO_RLS_CONFLICT_CHECK": + return 3; + case "WCO_RLS_MERGE_UPDATE_CHECK": + return 4; + case "WCO_RLS_MERGE_DELETE_CHECK": + return 5; + case 0: + return "WCO_VIEW_CHECK"; + case 1: + return "WCO_RLS_INSERT_CHECK"; + case 2: + return "WCO_RLS_UPDATE_CHECK"; + case 3: + return "WCO_RLS_CONFLICT_CHECK"; + case 4: + return "WCO_RLS_MERGE_UPDATE_CHECK"; + case 5: + return "WCO_RLS_MERGE_DELETE_CHECK"; + default: + throw new Error("Key not recognized in enum WCOKind"); + } + } + case "GroupingSetKind": + { + switch (key) { + case "GROUPING_SET_EMPTY": + return 0; + case "GROUPING_SET_SIMPLE": + return 1; + case "GROUPING_SET_ROLLUP": + return 2; + case "GROUPING_SET_CUBE": + return 3; + case "GROUPING_SET_SETS": + return 4; + case 0: + return "GROUPING_SET_EMPTY"; + case 1: + return "GROUPING_SET_SIMPLE"; + case 2: + return "GROUPING_SET_ROLLUP"; + case 3: + return "GROUPING_SET_CUBE"; + case 4: + return "GROUPING_SET_SETS"; + default: + throw new Error("Key not recognized in enum GroupingSetKind"); + } + } + case "CTEMaterialize": + { + switch (key) { + case "CTEMaterializeDefault": + return 0; + case "CTEMaterializeAlways": + return 1; + case "CTEMaterializeNever": + return 2; + case 0: + return "CTEMaterializeDefault"; + case 1: + return "CTEMaterializeAlways"; + case 2: + return "CTEMaterializeNever"; + default: + throw new Error("Key not recognized in enum CTEMaterialize"); + } + } + case "SetOperation": + { + switch (key) { + case "SETOP_NONE": + return 0; + case "SETOP_UNION": + return 1; + case "SETOP_INTERSECT": + return 2; + case "SETOP_EXCEPT": + return 3; + case 0: + return "SETOP_NONE"; + case 1: + return "SETOP_UNION"; + case 2: + return "SETOP_INTERSECT"; + case 3: + return "SETOP_EXCEPT"; + default: + throw new Error("Key not recognized in enum SetOperation"); + } + } + case "ObjectType": + { + switch (key) { + case "OBJECT_ACCESS_METHOD": + return 0; + case "OBJECT_AGGREGATE": + return 1; + case "OBJECT_AMOP": + return 2; + case "OBJECT_AMPROC": + return 3; + case "OBJECT_ATTRIBUTE": + return 4; + case "OBJECT_CAST": + return 5; + case "OBJECT_COLUMN": + return 6; + case "OBJECT_COLLATION": + return 7; + case "OBJECT_CONVERSION": + return 8; + case "OBJECT_DATABASE": + return 9; + case "OBJECT_DEFAULT": + return 10; + case "OBJECT_DEFACL": + return 11; + case "OBJECT_DOMAIN": + return 12; + case "OBJECT_DOMCONSTRAINT": + return 13; + case "OBJECT_EVENT_TRIGGER": + return 14; + case "OBJECT_EXTENSION": + return 15; + case "OBJECT_FDW": + return 16; + case "OBJECT_FOREIGN_SERVER": + return 17; + case "OBJECT_FOREIGN_TABLE": + return 18; + case "OBJECT_FUNCTION": + return 19; + case "OBJECT_INDEX": + return 20; + case "OBJECT_LANGUAGE": + return 21; + case "OBJECT_LARGEOBJECT": + return 22; + case "OBJECT_MATVIEW": + return 23; + case "OBJECT_OPCLASS": + return 24; + case "OBJECT_OPERATOR": + return 25; + case "OBJECT_OPFAMILY": + return 26; + case "OBJECT_PARAMETER_ACL": + return 27; + case "OBJECT_POLICY": + return 28; + case "OBJECT_PROCEDURE": + return 29; + case "OBJECT_PUBLICATION": + return 30; + case "OBJECT_PUBLICATION_NAMESPACE": + return 31; + case "OBJECT_PUBLICATION_REL": + return 32; + case "OBJECT_ROLE": + return 33; + case "OBJECT_ROUTINE": + return 34; + case "OBJECT_RULE": + return 35; + case "OBJECT_SCHEMA": + return 36; + case "OBJECT_SEQUENCE": + return 37; + case "OBJECT_SUBSCRIPTION": + return 38; + case "OBJECT_STATISTIC_EXT": + return 39; + case "OBJECT_TABCONSTRAINT": + return 40; + case "OBJECT_TABLE": + return 41; + case "OBJECT_TABLESPACE": + return 42; + case "OBJECT_TRANSFORM": + return 43; + case "OBJECT_TRIGGER": + return 44; + case "OBJECT_TSCONFIGURATION": + return 45; + case "OBJECT_TSDICTIONARY": + return 46; + case "OBJECT_TSPARSER": + return 47; + case "OBJECT_TSTEMPLATE": + return 48; + case "OBJECT_TYPE": + return 49; + case "OBJECT_USER_MAPPING": + return 50; + case "OBJECT_VIEW": + return 51; + case 0: + return "OBJECT_ACCESS_METHOD"; + case 1: + return "OBJECT_AGGREGATE"; + case 2: + return "OBJECT_AMOP"; + case 3: + return "OBJECT_AMPROC"; + case 4: + return "OBJECT_ATTRIBUTE"; + case 5: + return "OBJECT_CAST"; + case 6: + return "OBJECT_COLUMN"; + case 7: + return "OBJECT_COLLATION"; + case 8: + return "OBJECT_CONVERSION"; + case 9: + return "OBJECT_DATABASE"; + case 10: + return "OBJECT_DEFAULT"; + case 11: + return "OBJECT_DEFACL"; + case 12: + return "OBJECT_DOMAIN"; + case 13: + return "OBJECT_DOMCONSTRAINT"; + case 14: + return "OBJECT_EVENT_TRIGGER"; + case 15: + return "OBJECT_EXTENSION"; + case 16: + return "OBJECT_FDW"; + case 17: + return "OBJECT_FOREIGN_SERVER"; + case 18: + return "OBJECT_FOREIGN_TABLE"; + case 19: + return "OBJECT_FUNCTION"; + case 20: + return "OBJECT_INDEX"; + case 21: + return "OBJECT_LANGUAGE"; + case 22: + return "OBJECT_LARGEOBJECT"; + case 23: + return "OBJECT_MATVIEW"; + case 24: + return "OBJECT_OPCLASS"; + case 25: + return "OBJECT_OPERATOR"; + case 26: + return "OBJECT_OPFAMILY"; + case 27: + return "OBJECT_PARAMETER_ACL"; + case 28: + return "OBJECT_POLICY"; + case 29: + return "OBJECT_PROCEDURE"; + case 30: + return "OBJECT_PUBLICATION"; + case 31: + return "OBJECT_PUBLICATION_NAMESPACE"; + case 32: + return "OBJECT_PUBLICATION_REL"; + case 33: + return "OBJECT_ROLE"; + case 34: + return "OBJECT_ROUTINE"; + case 35: + return "OBJECT_RULE"; + case 36: + return "OBJECT_SCHEMA"; + case 37: + return "OBJECT_SEQUENCE"; + case 38: + return "OBJECT_SUBSCRIPTION"; + case 39: + return "OBJECT_STATISTIC_EXT"; + case 40: + return "OBJECT_TABCONSTRAINT"; + case 41: + return "OBJECT_TABLE"; + case 42: + return "OBJECT_TABLESPACE"; + case 43: + return "OBJECT_TRANSFORM"; + case 44: + return "OBJECT_TRIGGER"; + case 45: + return "OBJECT_TSCONFIGURATION"; + case 46: + return "OBJECT_TSDICTIONARY"; + case 47: + return "OBJECT_TSPARSER"; + case 48: + return "OBJECT_TSTEMPLATE"; + case 49: + return "OBJECT_TYPE"; + case 50: + return "OBJECT_USER_MAPPING"; + case 51: + return "OBJECT_VIEW"; + default: + throw new Error("Key not recognized in enum ObjectType"); + } + } + case "DropBehavior": + { + switch (key) { + case "DROP_RESTRICT": + return 0; + case "DROP_CASCADE": + return 1; + case 0: + return "DROP_RESTRICT"; + case 1: + return "DROP_CASCADE"; + default: + throw new Error("Key not recognized in enum DropBehavior"); + } + } + case "AlterTableType": + { + switch (key) { + case "AT_AddColumn": + return 0; + case "AT_AddColumnToView": + return 1; + case "AT_ColumnDefault": + return 2; + case "AT_CookedColumnDefault": + return 3; + case "AT_DropNotNull": + return 4; + case "AT_SetNotNull": + return 5; + case "AT_DropExpression": + return 6; + case "AT_CheckNotNull": + return 7; + case "AT_SetStatistics": + return 8; + case "AT_SetOptions": + return 9; + case "AT_ResetOptions": + return 10; + case "AT_SetStorage": + return 11; + case "AT_SetCompression": + return 12; + case "AT_DropColumn": + return 13; + case "AT_AddIndex": + return 14; + case "AT_ReAddIndex": + return 15; + case "AT_AddConstraint": + return 16; + case "AT_ReAddConstraint": + return 17; + case "AT_ReAddDomainConstraint": + return 18; + case "AT_AlterConstraint": + return 19; + case "AT_ValidateConstraint": + return 20; + case "AT_AddIndexConstraint": + return 21; + case "AT_DropConstraint": + return 22; + case "AT_ReAddComment": + return 23; + case "AT_AlterColumnType": + return 24; + case "AT_AlterColumnGenericOptions": + return 25; + case "AT_ChangeOwner": + return 26; + case "AT_ClusterOn": + return 27; + case "AT_DropCluster": + return 28; + case "AT_SetLogged": + return 29; + case "AT_SetUnLogged": + return 30; + case "AT_DropOids": + return 31; + case "AT_SetAccessMethod": + return 32; + case "AT_SetTableSpace": + return 33; + case "AT_SetRelOptions": + return 34; + case "AT_ResetRelOptions": + return 35; + case "AT_ReplaceRelOptions": + return 36; + case "AT_EnableTrig": + return 37; + case "AT_EnableAlwaysTrig": + return 38; + case "AT_EnableReplicaTrig": + return 39; + case "AT_DisableTrig": + return 40; + case "AT_EnableTrigAll": + return 41; + case "AT_DisableTrigAll": + return 42; + case "AT_EnableTrigUser": + return 43; + case "AT_DisableTrigUser": + return 44; + case "AT_EnableRule": + return 45; + case "AT_EnableAlwaysRule": + return 46; + case "AT_EnableReplicaRule": + return 47; + case "AT_DisableRule": + return 48; + case "AT_AddInherit": + return 49; + case "AT_DropInherit": + return 50; + case "AT_AddOf": + return 51; + case "AT_DropOf": + return 52; + case "AT_ReplicaIdentity": + return 53; + case "AT_EnableRowSecurity": + return 54; + case "AT_DisableRowSecurity": + return 55; + case "AT_ForceRowSecurity": + return 56; + case "AT_NoForceRowSecurity": + return 57; + case "AT_GenericOptions": + return 58; + case "AT_AttachPartition": + return 59; + case "AT_DetachPartition": + return 60; + case "AT_DetachPartitionFinalize": + return 61; + case "AT_AddIdentity": + return 62; + case "AT_SetIdentity": + return 63; + case "AT_DropIdentity": + return 64; + case "AT_ReAddStatistics": + return 65; + case 0: + return "AT_AddColumn"; + case 1: + return "AT_AddColumnToView"; + case 2: + return "AT_ColumnDefault"; + case 3: + return "AT_CookedColumnDefault"; + case 4: + return "AT_DropNotNull"; + case 5: + return "AT_SetNotNull"; + case 6: + return "AT_DropExpression"; + case 7: + return "AT_CheckNotNull"; + case 8: + return "AT_SetStatistics"; + case 9: + return "AT_SetOptions"; + case 10: + return "AT_ResetOptions"; + case 11: + return "AT_SetStorage"; + case 12: + return "AT_SetCompression"; + case 13: + return "AT_DropColumn"; + case 14: + return "AT_AddIndex"; + case 15: + return "AT_ReAddIndex"; + case 16: + return "AT_AddConstraint"; + case 17: + return "AT_ReAddConstraint"; + case 18: + return "AT_ReAddDomainConstraint"; + case 19: + return "AT_AlterConstraint"; + case 20: + return "AT_ValidateConstraint"; + case 21: + return "AT_AddIndexConstraint"; + case 22: + return "AT_DropConstraint"; + case 23: + return "AT_ReAddComment"; + case 24: + return "AT_AlterColumnType"; + case 25: + return "AT_AlterColumnGenericOptions"; + case 26: + return "AT_ChangeOwner"; + case 27: + return "AT_ClusterOn"; + case 28: + return "AT_DropCluster"; + case 29: + return "AT_SetLogged"; + case 30: + return "AT_SetUnLogged"; + case 31: + return "AT_DropOids"; + case 32: + return "AT_SetAccessMethod"; + case 33: + return "AT_SetTableSpace"; + case 34: + return "AT_SetRelOptions"; + case 35: + return "AT_ResetRelOptions"; + case 36: + return "AT_ReplaceRelOptions"; + case 37: + return "AT_EnableTrig"; + case 38: + return "AT_EnableAlwaysTrig"; + case 39: + return "AT_EnableReplicaTrig"; + case 40: + return "AT_DisableTrig"; + case 41: + return "AT_EnableTrigAll"; + case 42: + return "AT_DisableTrigAll"; + case 43: + return "AT_EnableTrigUser"; + case 44: + return "AT_DisableTrigUser"; + case 45: + return "AT_EnableRule"; + case 46: + return "AT_EnableAlwaysRule"; + case 47: + return "AT_EnableReplicaRule"; + case 48: + return "AT_DisableRule"; + case 49: + return "AT_AddInherit"; + case 50: + return "AT_DropInherit"; + case 51: + return "AT_AddOf"; + case 52: + return "AT_DropOf"; + case 53: + return "AT_ReplicaIdentity"; + case 54: + return "AT_EnableRowSecurity"; + case 55: + return "AT_DisableRowSecurity"; + case 56: + return "AT_ForceRowSecurity"; + case 57: + return "AT_NoForceRowSecurity"; + case 58: + return "AT_GenericOptions"; + case 59: + return "AT_AttachPartition"; + case 60: + return "AT_DetachPartition"; + case 61: + return "AT_DetachPartitionFinalize"; + case 62: + return "AT_AddIdentity"; + case 63: + return "AT_SetIdentity"; + case 64: + return "AT_DropIdentity"; + case 65: + return "AT_ReAddStatistics"; + default: + throw new Error("Key not recognized in enum AlterTableType"); + } + } + case "GrantTargetType": + { + switch (key) { + case "ACL_TARGET_OBJECT": + return 0; + case "ACL_TARGET_ALL_IN_SCHEMA": + return 1; + case "ACL_TARGET_DEFAULTS": + return 2; + case 0: + return "ACL_TARGET_OBJECT"; + case 1: + return "ACL_TARGET_ALL_IN_SCHEMA"; + case 2: + return "ACL_TARGET_DEFAULTS"; + default: + throw new Error("Key not recognized in enum GrantTargetType"); + } + } + case "VariableSetKind": + { + switch (key) { + case "VAR_SET_VALUE": + return 0; + case "VAR_SET_DEFAULT": + return 1; + case "VAR_SET_CURRENT": + return 2; + case "VAR_SET_MULTI": + return 3; + case "VAR_RESET": + return 4; + case "VAR_RESET_ALL": + return 5; + case 0: + return "VAR_SET_VALUE"; + case 1: + return "VAR_SET_DEFAULT"; + case 2: + return "VAR_SET_CURRENT"; + case 3: + return "VAR_SET_MULTI"; + case 4: + return "VAR_RESET"; + case 5: + return "VAR_RESET_ALL"; + default: + throw new Error("Key not recognized in enum VariableSetKind"); + } + } + case "ConstrType": + { + switch (key) { + case "CONSTR_NULL": + return 0; + case "CONSTR_NOTNULL": + return 1; + case "CONSTR_DEFAULT": + return 2; + case "CONSTR_IDENTITY": + return 3; + case "CONSTR_GENERATED": + return 4; + case "CONSTR_CHECK": + return 5; + case "CONSTR_PRIMARY": + return 6; + case "CONSTR_UNIQUE": + return 7; + case "CONSTR_EXCLUSION": + return 8; + case "CONSTR_FOREIGN": + return 9; + case "CONSTR_ATTR_DEFERRABLE": + return 10; + case "CONSTR_ATTR_NOT_DEFERRABLE": + return 11; + case "CONSTR_ATTR_DEFERRED": + return 12; + case "CONSTR_ATTR_IMMEDIATE": + return 13; + case 0: + return "CONSTR_NULL"; + case 1: + return "CONSTR_NOTNULL"; + case 2: + return "CONSTR_DEFAULT"; + case 3: + return "CONSTR_IDENTITY"; + case 4: + return "CONSTR_GENERATED"; + case 5: + return "CONSTR_CHECK"; + case 6: + return "CONSTR_PRIMARY"; + case 7: + return "CONSTR_UNIQUE"; + case 8: + return "CONSTR_EXCLUSION"; + case 9: + return "CONSTR_FOREIGN"; + case 10: + return "CONSTR_ATTR_DEFERRABLE"; + case 11: + return "CONSTR_ATTR_NOT_DEFERRABLE"; + case 12: + return "CONSTR_ATTR_DEFERRED"; + case 13: + return "CONSTR_ATTR_IMMEDIATE"; + default: + throw new Error("Key not recognized in enum ConstrType"); + } + } + case "ImportForeignSchemaType": + { + switch (key) { + case "FDW_IMPORT_SCHEMA_ALL": + return 0; + case "FDW_IMPORT_SCHEMA_LIMIT_TO": + return 1; + case "FDW_IMPORT_SCHEMA_EXCEPT": + return 2; + case 0: + return "FDW_IMPORT_SCHEMA_ALL"; + case 1: + return "FDW_IMPORT_SCHEMA_LIMIT_TO"; + case 2: + return "FDW_IMPORT_SCHEMA_EXCEPT"; + default: + throw new Error("Key not recognized in enum ImportForeignSchemaType"); + } + } + case "RoleStmtType": + { + switch (key) { + case "ROLESTMT_ROLE": + return 0; + case "ROLESTMT_USER": + return 1; + case "ROLESTMT_GROUP": + return 2; + case 0: + return "ROLESTMT_ROLE"; + case 1: + return "ROLESTMT_USER"; + case 2: + return "ROLESTMT_GROUP"; + default: + throw new Error("Key not recognized in enum RoleStmtType"); + } + } + case "FetchDirection": + { + switch (key) { + case "FETCH_FORWARD": + return 0; + case "FETCH_BACKWARD": + return 1; + case "FETCH_ABSOLUTE": + return 2; + case "FETCH_RELATIVE": + return 3; + case 0: + return "FETCH_FORWARD"; + case 1: + return "FETCH_BACKWARD"; + case 2: + return "FETCH_ABSOLUTE"; + case 3: + return "FETCH_RELATIVE"; + default: + throw new Error("Key not recognized in enum FetchDirection"); + } + } + case "FunctionParameterMode": + { + switch (key) { + case "FUNC_PARAM_IN": + return 0; + case "FUNC_PARAM_OUT": + return 1; + case "FUNC_PARAM_INOUT": + return 2; + case "FUNC_PARAM_VARIADIC": + return 3; + case "FUNC_PARAM_TABLE": + return 4; + case "FUNC_PARAM_DEFAULT": + return 5; + case 0: + return "FUNC_PARAM_IN"; + case 1: + return "FUNC_PARAM_OUT"; + case 2: + return "FUNC_PARAM_INOUT"; + case 3: + return "FUNC_PARAM_VARIADIC"; + case 4: + return "FUNC_PARAM_TABLE"; + case 5: + return "FUNC_PARAM_DEFAULT"; + default: + throw new Error("Key not recognized in enum FunctionParameterMode"); + } + } + case "TransactionStmtKind": + { + switch (key) { + case "TRANS_STMT_BEGIN": + return 0; + case "TRANS_STMT_START": + return 1; + case "TRANS_STMT_COMMIT": + return 2; + case "TRANS_STMT_ROLLBACK": + return 3; + case "TRANS_STMT_SAVEPOINT": + return 4; + case "TRANS_STMT_RELEASE": + return 5; + case "TRANS_STMT_ROLLBACK_TO": + return 6; + case "TRANS_STMT_PREPARE": + return 7; + case "TRANS_STMT_COMMIT_PREPARED": + return 8; + case "TRANS_STMT_ROLLBACK_PREPARED": + return 9; + case 0: + return "TRANS_STMT_BEGIN"; + case 1: + return "TRANS_STMT_START"; + case 2: + return "TRANS_STMT_COMMIT"; + case 3: + return "TRANS_STMT_ROLLBACK"; + case 4: + return "TRANS_STMT_SAVEPOINT"; + case 5: + return "TRANS_STMT_RELEASE"; + case 6: + return "TRANS_STMT_ROLLBACK_TO"; + case 7: + return "TRANS_STMT_PREPARE"; + case 8: + return "TRANS_STMT_COMMIT_PREPARED"; + case 9: + return "TRANS_STMT_ROLLBACK_PREPARED"; + default: + throw new Error("Key not recognized in enum TransactionStmtKind"); + } + } + case "ViewCheckOption": + { + switch (key) { + case "NO_CHECK_OPTION": + return 0; + case "LOCAL_CHECK_OPTION": + return 1; + case "CASCADED_CHECK_OPTION": + return 2; + case 0: + return "NO_CHECK_OPTION"; + case 1: + return "LOCAL_CHECK_OPTION"; + case 2: + return "CASCADED_CHECK_OPTION"; + default: + throw new Error("Key not recognized in enum ViewCheckOption"); + } + } + case "DiscardMode": + { + switch (key) { + case "DISCARD_ALL": + return 0; + case "DISCARD_PLANS": + return 1; + case "DISCARD_SEQUENCES": + return 2; + case "DISCARD_TEMP": + return 3; + case 0: + return "DISCARD_ALL"; + case 1: + return "DISCARD_PLANS"; + case 2: + return "DISCARD_SEQUENCES"; + case 3: + return "DISCARD_TEMP"; + default: + throw new Error("Key not recognized in enum DiscardMode"); + } + } + case "ReindexObjectType": + { + switch (key) { + case "REINDEX_OBJECT_INDEX": + return 0; + case "REINDEX_OBJECT_TABLE": + return 1; + case "REINDEX_OBJECT_SCHEMA": + return 2; + case "REINDEX_OBJECT_SYSTEM": + return 3; + case "REINDEX_OBJECT_DATABASE": + return 4; + case 0: + return "REINDEX_OBJECT_INDEX"; + case 1: + return "REINDEX_OBJECT_TABLE"; + case 2: + return "REINDEX_OBJECT_SCHEMA"; + case 3: + return "REINDEX_OBJECT_SYSTEM"; + case 4: + return "REINDEX_OBJECT_DATABASE"; + default: + throw new Error("Key not recognized in enum ReindexObjectType"); + } + } + case "AlterTSConfigType": + { + switch (key) { + case "ALTER_TSCONFIG_ADD_MAPPING": + return 0; + case "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN": + return 1; + case "ALTER_TSCONFIG_REPLACE_DICT": + return 2; + case "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN": + return 3; + case "ALTER_TSCONFIG_DROP_MAPPING": + return 4; + case 0: + return "ALTER_TSCONFIG_ADD_MAPPING"; + case 1: + return "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN"; + case 2: + return "ALTER_TSCONFIG_REPLACE_DICT"; + case 3: + return "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN"; + case 4: + return "ALTER_TSCONFIG_DROP_MAPPING"; + default: + throw new Error("Key not recognized in enum AlterTSConfigType"); + } + } + case "PublicationObjSpecType": + { + switch (key) { + case "PUBLICATIONOBJ_TABLE": + return 0; + case "PUBLICATIONOBJ_TABLES_IN_SCHEMA": + return 1; + case "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA": + return 2; + case "PUBLICATIONOBJ_CONTINUATION": + return 3; + case 0: + return "PUBLICATIONOBJ_TABLE"; + case 1: + return "PUBLICATIONOBJ_TABLES_IN_SCHEMA"; + case 2: + return "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA"; + case 3: + return "PUBLICATIONOBJ_CONTINUATION"; + default: + throw new Error("Key not recognized in enum PublicationObjSpecType"); + } + } + case "AlterPublicationAction": + { + switch (key) { + case "AP_AddObjects": + return 0; + case "AP_DropObjects": + return 1; + case "AP_SetObjects": + return 2; + case 0: + return "AP_AddObjects"; + case 1: + return "AP_DropObjects"; + case 2: + return "AP_SetObjects"; + default: + throw new Error("Key not recognized in enum AlterPublicationAction"); + } + } + case "AlterSubscriptionType": + { + switch (key) { + case "ALTER_SUBSCRIPTION_OPTIONS": + return 0; + case "ALTER_SUBSCRIPTION_CONNECTION": + return 1; + case "ALTER_SUBSCRIPTION_SET_PUBLICATION": + return 2; + case "ALTER_SUBSCRIPTION_ADD_PUBLICATION": + return 3; + case "ALTER_SUBSCRIPTION_DROP_PUBLICATION": + return 4; + case "ALTER_SUBSCRIPTION_REFRESH": + return 5; + case "ALTER_SUBSCRIPTION_ENABLED": + return 6; + case "ALTER_SUBSCRIPTION_SKIP": + return 7; + case 0: + return "ALTER_SUBSCRIPTION_OPTIONS"; + case 1: + return "ALTER_SUBSCRIPTION_CONNECTION"; + case 2: + return "ALTER_SUBSCRIPTION_SET_PUBLICATION"; + case 3: + return "ALTER_SUBSCRIPTION_ADD_PUBLICATION"; + case 4: + return "ALTER_SUBSCRIPTION_DROP_PUBLICATION"; + case 5: + return "ALTER_SUBSCRIPTION_REFRESH"; + case 6: + return "ALTER_SUBSCRIPTION_ENABLED"; + case 7: + return "ALTER_SUBSCRIPTION_SKIP"; + default: + throw new Error("Key not recognized in enum AlterSubscriptionType"); + } + } + case "OnCommitAction": + { + switch (key) { + case "ONCOMMIT_NOOP": + return 0; + case "ONCOMMIT_PRESERVE_ROWS": + return 1; + case "ONCOMMIT_DELETE_ROWS": + return 2; + case "ONCOMMIT_DROP": + return 3; + case 0: + return "ONCOMMIT_NOOP"; + case 1: + return "ONCOMMIT_PRESERVE_ROWS"; + case 2: + return "ONCOMMIT_DELETE_ROWS"; + case 3: + return "ONCOMMIT_DROP"; + default: + throw new Error("Key not recognized in enum OnCommitAction"); + } + } + case "ParamKind": + { + switch (key) { + case "PARAM_EXTERN": + return 0; + case "PARAM_EXEC": + return 1; + case "PARAM_SUBLINK": + return 2; + case "PARAM_MULTIEXPR": + return 3; + case 0: + return "PARAM_EXTERN"; + case 1: + return "PARAM_EXEC"; + case 2: + return "PARAM_SUBLINK"; + case 3: + return "PARAM_MULTIEXPR"; + default: + throw new Error("Key not recognized in enum ParamKind"); + } + } + case "CoercionContext": + { + switch (key) { + case "COERCION_IMPLICIT": + return 0; + case "COERCION_ASSIGNMENT": + return 1; + case "COERCION_PLPGSQL": + return 2; + case "COERCION_EXPLICIT": + return 3; + case 0: + return "COERCION_IMPLICIT"; + case 1: + return "COERCION_ASSIGNMENT"; + case 2: + return "COERCION_PLPGSQL"; + case 3: + return "COERCION_EXPLICIT"; + default: + throw new Error("Key not recognized in enum CoercionContext"); + } + } + case "CoercionForm": + { + switch (key) { + case "COERCE_EXPLICIT_CALL": + return 0; + case "COERCE_EXPLICIT_CAST": + return 1; + case "COERCE_IMPLICIT_CAST": + return 2; + case "COERCE_SQL_SYNTAX": + return 3; + case 0: + return "COERCE_EXPLICIT_CALL"; + case 1: + return "COERCE_EXPLICIT_CAST"; + case 2: + return "COERCE_IMPLICIT_CAST"; + case 3: + return "COERCE_SQL_SYNTAX"; + default: + throw new Error("Key not recognized in enum CoercionForm"); + } + } + case "BoolExprType": + { + switch (key) { + case "AND_EXPR": + return 0; + case "OR_EXPR": + return 1; + case "NOT_EXPR": + return 2; + case 0: + return "AND_EXPR"; + case 1: + return "OR_EXPR"; + case 2: + return "NOT_EXPR"; + default: + throw new Error("Key not recognized in enum BoolExprType"); + } + } + case "SubLinkType": + { + switch (key) { + case "EXISTS_SUBLINK": + return 0; + case "ALL_SUBLINK": + return 1; + case "ANY_SUBLINK": + return 2; + case "ROWCOMPARE_SUBLINK": + return 3; + case "EXPR_SUBLINK": + return 4; + case "MULTIEXPR_SUBLINK": + return 5; + case "ARRAY_SUBLINK": + return 6; + case "CTE_SUBLINK": + return 7; + case 0: + return "EXISTS_SUBLINK"; + case 1: + return "ALL_SUBLINK"; + case 2: + return "ANY_SUBLINK"; + case 3: + return "ROWCOMPARE_SUBLINK"; + case 4: + return "EXPR_SUBLINK"; + case 5: + return "MULTIEXPR_SUBLINK"; + case 6: + return "ARRAY_SUBLINK"; + case 7: + return "CTE_SUBLINK"; + default: + throw new Error("Key not recognized in enum SubLinkType"); + } + } + case "RowCompareType": + { + switch (key) { + case "ROWCOMPARE_LT": + return 0; + case "ROWCOMPARE_LE": + return 1; + case "ROWCOMPARE_EQ": + return 2; + case "ROWCOMPARE_GE": + return 3; + case "ROWCOMPARE_GT": + return 4; + case "ROWCOMPARE_NE": + return 5; + case 0: + return "ROWCOMPARE_LT"; + case 1: + return "ROWCOMPARE_LE"; + case 2: + return "ROWCOMPARE_EQ"; + case 3: + return "ROWCOMPARE_GE"; + case 4: + return "ROWCOMPARE_GT"; + case 5: + return "ROWCOMPARE_NE"; + default: + throw new Error("Key not recognized in enum RowCompareType"); + } + } + case "MinMaxOp": + { + switch (key) { + case "IS_GREATEST": + return 0; + case "IS_LEAST": + return 1; + case 0: + return "IS_GREATEST"; + case 1: + return "IS_LEAST"; + default: + throw new Error("Key not recognized in enum MinMaxOp"); + } + } + case "SQLValueFunctionOp": + { + switch (key) { + case "SVFOP_CURRENT_DATE": + return 0; + case "SVFOP_CURRENT_TIME": + return 1; + case "SVFOP_CURRENT_TIME_N": + return 2; + case "SVFOP_CURRENT_TIMESTAMP": + return 3; + case "SVFOP_CURRENT_TIMESTAMP_N": + return 4; + case "SVFOP_LOCALTIME": + return 5; + case "SVFOP_LOCALTIME_N": + return 6; + case "SVFOP_LOCALTIMESTAMP": + return 7; + case "SVFOP_LOCALTIMESTAMP_N": + return 8; + case "SVFOP_CURRENT_ROLE": + return 9; + case "SVFOP_CURRENT_USER": + return 10; + case "SVFOP_USER": + return 11; + case "SVFOP_SESSION_USER": + return 12; + case "SVFOP_CURRENT_CATALOG": + return 13; + case "SVFOP_CURRENT_SCHEMA": + return 14; + case 0: + return "SVFOP_CURRENT_DATE"; + case 1: + return "SVFOP_CURRENT_TIME"; + case 2: + return "SVFOP_CURRENT_TIME_N"; + case 3: + return "SVFOP_CURRENT_TIMESTAMP"; + case 4: + return "SVFOP_CURRENT_TIMESTAMP_N"; + case 5: + return "SVFOP_LOCALTIME"; + case 6: + return "SVFOP_LOCALTIME_N"; + case 7: + return "SVFOP_LOCALTIMESTAMP"; + case 8: + return "SVFOP_LOCALTIMESTAMP_N"; + case 9: + return "SVFOP_CURRENT_ROLE"; + case 10: + return "SVFOP_CURRENT_USER"; + case 11: + return "SVFOP_USER"; + case 12: + return "SVFOP_SESSION_USER"; + case 13: + return "SVFOP_CURRENT_CATALOG"; + case 14: + return "SVFOP_CURRENT_SCHEMA"; + default: + throw new Error("Key not recognized in enum SQLValueFunctionOp"); + } + } + case "XmlExprOp": + { + switch (key) { + case "IS_XMLCONCAT": + return 0; + case "IS_XMLELEMENT": + return 1; + case "IS_XMLFOREST": + return 2; + case "IS_XMLPARSE": + return 3; + case "IS_XMLPI": + return 4; + case "IS_XMLROOT": + return 5; + case "IS_XMLSERIALIZE": + return 6; + case "IS_DOCUMENT": + return 7; + case 0: + return "IS_XMLCONCAT"; + case 1: + return "IS_XMLELEMENT"; + case 2: + return "IS_XMLFOREST"; + case 3: + return "IS_XMLPARSE"; + case 4: + return "IS_XMLPI"; + case 5: + return "IS_XMLROOT"; + case 6: + return "IS_XMLSERIALIZE"; + case 7: + return "IS_DOCUMENT"; + default: + throw new Error("Key not recognized in enum XmlExprOp"); + } + } + case "XmlOptionType": + { + switch (key) { + case "XMLOPTION_DOCUMENT": + return 0; + case "XMLOPTION_CONTENT": + return 1; + case 0: + return "XMLOPTION_DOCUMENT"; + case 1: + return "XMLOPTION_CONTENT"; + default: + throw new Error("Key not recognized in enum XmlOptionType"); + } + } + case "JsonEncoding": + { + switch (key) { + case "JS_ENC_DEFAULT": + return 0; + case "JS_ENC_UTF8": + return 1; + case "JS_ENC_UTF16": + return 2; + case "JS_ENC_UTF32": + return 3; + case 0: + return "JS_ENC_DEFAULT"; + case 1: + return "JS_ENC_UTF8"; + case 2: + return "JS_ENC_UTF16"; + case 3: + return "JS_ENC_UTF32"; + default: + throw new Error("Key not recognized in enum JsonEncoding"); + } + } + case "JsonFormatType": + { + switch (key) { + case "JS_FORMAT_DEFAULT": + return 0; + case "JS_FORMAT_JSON": + return 1; + case "JS_FORMAT_JSONB": + return 2; + case 0: + return "JS_FORMAT_DEFAULT"; + case 1: + return "JS_FORMAT_JSON"; + case 2: + return "JS_FORMAT_JSONB"; + default: + throw new Error("Key not recognized in enum JsonFormatType"); + } + } + case "JsonConstructorType": + { + switch (key) { + case "JSCTOR_JSON_OBJECT": + return 0; + case "JSCTOR_JSON_ARRAY": + return 1; + case "JSCTOR_JSON_OBJECTAGG": + return 2; + case "JSCTOR_JSON_ARRAYAGG": + return 3; + case 0: + return "JSCTOR_JSON_OBJECT"; + case 1: + return "JSCTOR_JSON_ARRAY"; + case 2: + return "JSCTOR_JSON_OBJECTAGG"; + case 3: + return "JSCTOR_JSON_ARRAYAGG"; + default: + throw new Error("Key not recognized in enum JsonConstructorType"); + } + } + case "JsonValueType": + { + switch (key) { + case "JS_TYPE_ANY": + return 0; + case "JS_TYPE_OBJECT": + return 1; + case "JS_TYPE_ARRAY": + return 2; + case "JS_TYPE_SCALAR": + return 3; + case 0: + return "JS_TYPE_ANY"; + case 1: + return "JS_TYPE_OBJECT"; + case 2: + return "JS_TYPE_ARRAY"; + case 3: + return "JS_TYPE_SCALAR"; + default: + throw new Error("Key not recognized in enum JsonValueType"); + } + } + case "NullTestType": + { + switch (key) { + case "IS_NULL": + return 0; + case "IS_NOT_NULL": + return 1; + case 0: + return "IS_NULL"; + case 1: + return "IS_NOT_NULL"; + default: + throw new Error("Key not recognized in enum NullTestType"); + } + } + case "BoolTestType": + { + switch (key) { + case "IS_TRUE": + return 0; + case "IS_NOT_TRUE": + return 1; + case "IS_FALSE": + return 2; + case "IS_NOT_FALSE": + return 3; + case "IS_UNKNOWN": + return 4; + case "IS_NOT_UNKNOWN": + return 5; + case 0: + return "IS_TRUE"; + case 1: + return "IS_NOT_TRUE"; + case 2: + return "IS_FALSE"; + case 3: + return "IS_NOT_FALSE"; + case 4: + return "IS_UNKNOWN"; + case 5: + return "IS_NOT_UNKNOWN"; + default: + throw new Error("Key not recognized in enum BoolTestType"); + } + } + case "CmdType": + { + switch (key) { + case "CMD_UNKNOWN": + return 0; + case "CMD_SELECT": + return 1; + case "CMD_UPDATE": + return 2; + case "CMD_INSERT": + return 3; + case "CMD_DELETE": + return 4; + case "CMD_MERGE": + return 5; + case "CMD_UTILITY": + return 6; + case "CMD_NOTHING": + return 7; + case 0: + return "CMD_UNKNOWN"; + case 1: + return "CMD_SELECT"; + case 2: + return "CMD_UPDATE"; + case 3: + return "CMD_INSERT"; + case 4: + return "CMD_DELETE"; + case 5: + return "CMD_MERGE"; + case 6: + return "CMD_UTILITY"; + case 7: + return "CMD_NOTHING"; + default: + throw new Error("Key not recognized in enum CmdType"); + } + } + case "JoinType": + { + switch (key) { + case "JOIN_INNER": + return 0; + case "JOIN_LEFT": + return 1; + case "JOIN_FULL": + return 2; + case "JOIN_RIGHT": + return 3; + case "JOIN_SEMI": + return 4; + case "JOIN_ANTI": + return 5; + case "JOIN_RIGHT_ANTI": + return 6; + case "JOIN_UNIQUE_OUTER": + return 7; + case "JOIN_UNIQUE_INNER": + return 8; + case 0: + return "JOIN_INNER"; + case 1: + return "JOIN_LEFT"; + case 2: + return "JOIN_FULL"; + case 3: + return "JOIN_RIGHT"; + case 4: + return "JOIN_SEMI"; + case 5: + return "JOIN_ANTI"; + case 6: + return "JOIN_RIGHT_ANTI"; + case 7: + return "JOIN_UNIQUE_OUTER"; + case 8: + return "JOIN_UNIQUE_INNER"; + default: + throw new Error("Key not recognized in enum JoinType"); + } + } + case "AggStrategy": + { + switch (key) { + case "AGG_PLAIN": + return 0; + case "AGG_SORTED": + return 1; + case "AGG_HASHED": + return 2; + case "AGG_MIXED": + return 3; + case 0: + return "AGG_PLAIN"; + case 1: + return "AGG_SORTED"; + case 2: + return "AGG_HASHED"; + case 3: + return "AGG_MIXED"; + default: + throw new Error("Key not recognized in enum AggStrategy"); + } + } + case "AggSplit": + { + switch (key) { + case "AGGSPLIT_SIMPLE": + return 0; + case "AGGSPLIT_INITIAL_SERIAL": + return 1; + case "AGGSPLIT_FINAL_DESERIAL": + return 2; + case 0: + return "AGGSPLIT_SIMPLE"; + case 1: + return "AGGSPLIT_INITIAL_SERIAL"; + case 2: + return "AGGSPLIT_FINAL_DESERIAL"; + default: + throw new Error("Key not recognized in enum AggSplit"); + } + } + case "SetOpCmd": + { + switch (key) { + case "SETOPCMD_INTERSECT": + return 0; + case "SETOPCMD_INTERSECT_ALL": + return 1; + case "SETOPCMD_EXCEPT": + return 2; + case "SETOPCMD_EXCEPT_ALL": + return 3; + case 0: + return "SETOPCMD_INTERSECT"; + case 1: + return "SETOPCMD_INTERSECT_ALL"; + case 2: + return "SETOPCMD_EXCEPT"; + case 3: + return "SETOPCMD_EXCEPT_ALL"; + default: + throw new Error("Key not recognized in enum SetOpCmd"); + } + } + case "SetOpStrategy": + { + switch (key) { + case "SETOP_SORTED": + return 0; + case "SETOP_HASHED": + return 1; + case 0: + return "SETOP_SORTED"; + case 1: + return "SETOP_HASHED"; + default: + throw new Error("Key not recognized in enum SetOpStrategy"); + } + } + case "OnConflictAction": + { + switch (key) { + case "ONCONFLICT_NONE": + return 0; + case "ONCONFLICT_NOTHING": + return 1; + case "ONCONFLICT_UPDATE": + return 2; + case 0: + return "ONCONFLICT_NONE"; + case 1: + return "ONCONFLICT_NOTHING"; + case 2: + return "ONCONFLICT_UPDATE"; + default: + throw new Error("Key not recognized in enum OnConflictAction"); + } + } + case "LimitOption": + { + switch (key) { + case "LIMIT_OPTION_DEFAULT": + return 0; + case "LIMIT_OPTION_COUNT": + return 1; + case "LIMIT_OPTION_WITH_TIES": + return 2; + case 0: + return "LIMIT_OPTION_DEFAULT"; + case 1: + return "LIMIT_OPTION_COUNT"; + case 2: + return "LIMIT_OPTION_WITH_TIES"; + default: + throw new Error("Key not recognized in enum LimitOption"); + } + } + case "LockClauseStrength": + { + switch (key) { + case "LCS_NONE": + return 0; + case "LCS_FORKEYSHARE": + return 1; + case "LCS_FORSHARE": + return 2; + case "LCS_FORNOKEYUPDATE": + return 3; + case "LCS_FORUPDATE": + return 4; + case 0: + return "LCS_NONE"; + case 1: + return "LCS_FORKEYSHARE"; + case 2: + return "LCS_FORSHARE"; + case 3: + return "LCS_FORNOKEYUPDATE"; + case 4: + return "LCS_FORUPDATE"; + default: + throw new Error("Key not recognized in enum LockClauseStrength"); + } + } + case "LockWaitPolicy": + { + switch (key) { + case "LockWaitBlock": + return 0; + case "LockWaitSkip": + return 1; + case "LockWaitError": + return 2; + case 0: + return "LockWaitBlock"; + case 1: + return "LockWaitSkip"; + case 2: + return "LockWaitError"; + default: + throw new Error("Key not recognized in enum LockWaitPolicy"); + } + } + case "LockTupleMode": + { + switch (key) { + case "LockTupleKeyShare": + return 0; + case "LockTupleShare": + return 1; + case "LockTupleNoKeyExclusive": + return 2; + case "LockTupleExclusive": + return 3; + case 0: + return "LockTupleKeyShare"; + case 1: + return "LockTupleShare"; + case 2: + return "LockTupleNoKeyExclusive"; + case 3: + return "LockTupleExclusive"; + default: + throw new Error("Key not recognized in enum LockTupleMode"); + } + } + case "KeywordKind": + { + switch (key) { + case "NO_KEYWORD": + return 0; + case "UNRESERVED_KEYWORD": + return 1; + case "COL_NAME_KEYWORD": + return 2; + case "TYPE_FUNC_NAME_KEYWORD": + return 3; + case "RESERVED_KEYWORD": + return 4; + case 0: + return "NO_KEYWORD"; + case 1: + return "UNRESERVED_KEYWORD"; + case 2: + return "COL_NAME_KEYWORD"; + case 3: + return "TYPE_FUNC_NAME_KEYWORD"; + case 4: + return "RESERVED_KEYWORD"; + default: + throw new Error("Key not recognized in enum KeywordKind"); + } + } + case "Token": + { + switch (key) { + case "NUL": + return 0; + case "ASCII_36": + return 36; + case "ASCII_37": + return 37; + case "ASCII_40": + return 40; + case "ASCII_41": + return 41; + case "ASCII_42": + return 42; + case "ASCII_43": + return 43; + case "ASCII_44": + return 44; + case "ASCII_45": + return 45; + case "ASCII_46": + return 46; + case "ASCII_47": + return 47; + case "ASCII_58": + return 58; + case "ASCII_59": + return 59; + case "ASCII_60": + return 60; + case "ASCII_61": + return 61; + case "ASCII_62": + return 62; + case "ASCII_63": + return 63; + case "ASCII_91": + return 91; + case "ASCII_92": + return 92; + case "ASCII_93": + return 93; + case "ASCII_94": + return 94; + case "IDENT": + return 258; + case "UIDENT": + return 259; + case "FCONST": + return 260; + case "SCONST": + return 261; + case "USCONST": + return 262; + case "BCONST": + return 263; + case "XCONST": + return 264; + case "Op": + return 265; + case "ICONST": + return 266; + case "PARAM": + return 267; + case "TYPECAST": + return 268; + case "DOT_DOT": + return 269; + case "COLON_EQUALS": + return 270; + case "EQUALS_GREATER": + return 271; + case "LESS_EQUALS": + return 272; + case "GREATER_EQUALS": + return 273; + case "NOT_EQUALS": + return 274; + case "SQL_COMMENT": + return 275; + case "C_COMMENT": + return 276; + case "ABORT_P": + return 277; + case "ABSENT": + return 278; + case "ABSOLUTE_P": + return 279; + case "ACCESS": + return 280; + case "ACTION": + return 281; + case "ADD_P": + return 282; + case "ADMIN": + return 283; + case "AFTER": + return 284; + case "AGGREGATE": + return 285; + case "ALL": + return 286; + case "ALSO": + return 287; + case "ALTER": + return 288; + case "ALWAYS": + return 289; + case "ANALYSE": + return 290; + case "ANALYZE": + return 291; + case "AND": + return 292; + case "ANY": + return 293; + case "ARRAY": + return 294; + case "AS": + return 295; + case "ASC": + return 296; + case "ASENSITIVE": + return 297; + case "ASSERTION": + return 298; + case "ASSIGNMENT": + return 299; + case "ASYMMETRIC": + return 300; + case "ATOMIC": + return 301; + case "AT": + return 302; + case "ATTACH": + return 303; + case "ATTRIBUTE": + return 304; + case "AUTHORIZATION": + return 305; + case "BACKWARD": + return 306; + case "BEFORE": + return 307; + case "BEGIN_P": + return 308; + case "BETWEEN": + return 309; + case "BIGINT": + return 310; + case "BINARY": + return 311; + case "BIT": + return 312; + case "BOOLEAN_P": + return 313; + case "BOTH": + return 314; + case "BREADTH": + return 315; + case "BY": + return 316; + case "CACHE": + return 317; + case "CALL": + return 318; + case "CALLED": + return 319; + case "CASCADE": + return 320; + case "CASCADED": + return 321; + case "CASE": + return 322; + case "CAST": + return 323; + case "CATALOG_P": + return 324; + case "CHAIN": + return 325; + case "CHAR_P": + return 326; + case "CHARACTER": + return 327; + case "CHARACTERISTICS": + return 328; + case "CHECK": + return 329; + case "CHECKPOINT": + return 330; + case "CLASS": + return 331; + case "CLOSE": + return 332; + case "CLUSTER": + return 333; + case "COALESCE": + return 334; + case "COLLATE": + return 335; + case "COLLATION": + return 336; + case "COLUMN": + return 337; + case "COLUMNS": + return 338; + case "COMMENT": + return 339; + case "COMMENTS": + return 340; + case "COMMIT": + return 341; + case "COMMITTED": + return 342; + case "COMPRESSION": + return 343; + case "CONCURRENTLY": + return 344; + case "CONFIGURATION": + return 345; + case "CONFLICT": + return 346; + case "CONNECTION": + return 347; + case "CONSTRAINT": + return 348; + case "CONSTRAINTS": + return 349; + case "CONTENT_P": + return 350; + case "CONTINUE_P": + return 351; + case "CONVERSION_P": + return 352; + case "COPY": + return 353; + case "COST": + return 354; + case "CREATE": + return 355; + case "CROSS": + return 356; + case "CSV": + return 357; + case "CUBE": + return 358; + case "CURRENT_P": + return 359; + case "CURRENT_CATALOG": + return 360; + case "CURRENT_DATE": + return 361; + case "CURRENT_ROLE": + return 362; + case "CURRENT_SCHEMA": + return 363; + case "CURRENT_TIME": + return 364; + case "CURRENT_TIMESTAMP": + return 365; + case "CURRENT_USER": + return 366; + case "CURSOR": + return 367; + case "CYCLE": + return 368; + case "DATA_P": + return 369; + case "DATABASE": + return 370; + case "DAY_P": + return 371; + case "DEALLOCATE": + return 372; + case "DEC": + return 373; + case "DECIMAL_P": + return 374; + case "DECLARE": + return 375; + case "DEFAULT": + return 376; + case "DEFAULTS": + return 377; + case "DEFERRABLE": + return 378; + case "DEFERRED": + return 379; + case "DEFINER": + return 380; + case "DELETE_P": + return 381; + case "DELIMITER": + return 382; + case "DELIMITERS": + return 383; + case "DEPENDS": + return 384; + case "DEPTH": + return 385; + case "DESC": + return 386; + case "DETACH": + return 387; + case "DICTIONARY": + return 388; + case "DISABLE_P": + return 389; + case "DISCARD": + return 390; + case "DISTINCT": + return 391; + case "DO": + return 392; + case "DOCUMENT_P": + return 393; + case "DOMAIN_P": + return 394; + case "DOUBLE_P": + return 395; + case "DROP": + return 396; + case "EACH": + return 397; + case "ELSE": + return 398; + case "ENABLE_P": + return 399; + case "ENCODING": + return 400; + case "ENCRYPTED": + return 401; + case "END_P": + return 402; + case "ENUM_P": + return 403; + case "ESCAPE": + return 404; + case "EVENT": + return 405; + case "EXCEPT": + return 406; + case "EXCLUDE": + return 407; + case "EXCLUDING": + return 408; + case "EXCLUSIVE": + return 409; + case "EXECUTE": + return 410; + case "EXISTS": + return 411; + case "EXPLAIN": + return 412; + case "EXPRESSION": + return 413; + case "EXTENSION": + return 414; + case "EXTERNAL": + return 415; + case "EXTRACT": + return 416; + case "FALSE_P": + return 417; + case "FAMILY": + return 418; + case "FETCH": + return 419; + case "FILTER": + return 420; + case "FINALIZE": + return 421; + case "FIRST_P": + return 422; + case "FLOAT_P": + return 423; + case "FOLLOWING": + return 424; + case "FOR": + return 425; + case "FORCE": + return 426; + case "FOREIGN": + return 427; + case "FORMAT": + return 428; + case "FORWARD": + return 429; + case "FREEZE": + return 430; + case "FROM": + return 431; + case "FULL": + return 432; + case "FUNCTION": + return 433; + case "FUNCTIONS": + return 434; + case "GENERATED": + return 435; + case "GLOBAL": + return 436; + case "GRANT": + return 437; + case "GRANTED": + return 438; + case "GREATEST": + return 439; + case "GROUP_P": + return 440; + case "GROUPING": + return 441; + case "GROUPS": + return 442; + case "HANDLER": + return 443; + case "HAVING": + return 444; + case "HEADER_P": + return 445; + case "HOLD": + return 446; + case "HOUR_P": + return 447; + case "IDENTITY_P": + return 448; + case "IF_P": + return 449; + case "ILIKE": + return 450; + case "IMMEDIATE": + return 451; + case "IMMUTABLE": + return 452; + case "IMPLICIT_P": + return 453; + case "IMPORT_P": + return 454; + case "IN_P": + return 455; + case "INCLUDE": + return 456; + case "INCLUDING": + return 457; + case "INCREMENT": + return 458; + case "INDENT": + return 459; + case "INDEX": + return 460; + case "INDEXES": + return 461; + case "INHERIT": + return 462; + case "INHERITS": + return 463; + case "INITIALLY": + return 464; + case "INLINE_P": + return 465; + case "INNER_P": + return 466; + case "INOUT": + return 467; + case "INPUT_P": + return 468; + case "INSENSITIVE": + return 469; + case "INSERT": + return 470; + case "INSTEAD": + return 471; + case "INT_P": + return 472; + case "INTEGER": + return 473; + case "INTERSECT": + return 474; + case "INTERVAL": + return 475; + case "INTO": + return 476; + case "INVOKER": + return 477; + case "IS": + return 478; + case "ISNULL": + return 479; + case "ISOLATION": + return 480; + case "JOIN": + return 481; + case "JSON": + return 482; + case "JSON_ARRAY": + return 483; + case "JSON_ARRAYAGG": + return 484; + case "JSON_OBJECT": + return 485; + case "JSON_OBJECTAGG": + return 486; + case "KEY": + return 487; + case "KEYS": + return 488; + case "LABEL": + return 489; + case "LANGUAGE": + return 490; + case "LARGE_P": + return 491; + case "LAST_P": + return 492; + case "LATERAL_P": + return 493; + case "LEADING": + return 494; + case "LEAKPROOF": + return 495; + case "LEAST": + return 496; + case "LEFT": + return 497; + case "LEVEL": + return 498; + case "LIKE": + return 499; + case "LIMIT": + return 500; + case "LISTEN": + return 501; + case "LOAD": + return 502; + case "LOCAL": + return 503; + case "LOCALTIME": + return 504; + case "LOCALTIMESTAMP": + return 505; + case "LOCATION": + return 506; + case "LOCK_P": + return 507; + case "LOCKED": + return 508; + case "LOGGED": + return 509; + case "MAPPING": + return 510; + case "MATCH": + return 511; + case "MATCHED": + return 512; + case "MATERIALIZED": + return 513; + case "MAXVALUE": + return 514; + case "MERGE": + return 515; + case "METHOD": + return 516; + case "MINUTE_P": + return 517; + case "MINVALUE": + return 518; + case "MODE": + return 519; + case "MONTH_P": + return 520; + case "MOVE": + return 521; + case "NAME_P": + return 522; + case "NAMES": + return 523; + case "NATIONAL": + return 524; + case "NATURAL": + return 525; + case "NCHAR": + return 526; + case "NEW": + return 527; + case "NEXT": + return 528; + case "NFC": + return 529; + case "NFD": + return 530; + case "NFKC": + return 531; + case "NFKD": + return 532; + case "NO": + return 533; + case "NONE": + return 534; + case "NORMALIZE": + return 535; + case "NORMALIZED": + return 536; + case "NOT": + return 537; + case "NOTHING": + return 538; + case "NOTIFY": + return 539; + case "NOTNULL": + return 540; + case "NOWAIT": + return 541; + case "NULL_P": + return 542; + case "NULLIF": + return 543; + case "NULLS_P": + return 544; + case "NUMERIC": + return 545; + case "OBJECT_P": + return 546; + case "OF": + return 547; + case "OFF": + return 548; + case "OFFSET": + return 549; + case "OIDS": + return 550; + case "OLD": + return 551; + case "ON": + return 552; + case "ONLY": + return 553; + case "OPERATOR": + return 554; + case "OPTION": + return 555; + case "OPTIONS": + return 556; + case "OR": + return 557; + case "ORDER": + return 558; + case "ORDINALITY": + return 559; + case "OTHERS": + return 560; + case "OUT_P": + return 561; + case "OUTER_P": + return 562; + case "OVER": + return 563; + case "OVERLAPS": + return 564; + case "OVERLAY": + return 565; + case "OVERRIDING": + return 566; + case "OWNED": + return 567; + case "OWNER": + return 568; + case "PARALLEL": + return 569; + case "PARAMETER": + return 570; + case "PARSER": + return 571; + case "PARTIAL": + return 572; + case "PARTITION": + return 573; + case "PASSING": + return 574; + case "PASSWORD": + return 575; + case "PLACING": + return 576; + case "PLANS": + return 577; + case "POLICY": + return 578; + case "POSITION": + return 579; + case "PRECEDING": + return 580; + case "PRECISION": + return 581; + case "PRESERVE": + return 582; + case "PREPARE": + return 583; + case "PREPARED": + return 584; + case "PRIMARY": + return 585; + case "PRIOR": + return 586; + case "PRIVILEGES": + return 587; + case "PROCEDURAL": + return 588; + case "PROCEDURE": + return 589; + case "PROCEDURES": + return 590; + case "PROGRAM": + return 591; + case "PUBLICATION": + return 592; + case "QUOTE": + return 593; + case "RANGE": + return 594; + case "READ": + return 595; + case "REAL": + return 596; + case "REASSIGN": + return 597; + case "RECHECK": + return 598; + case "RECURSIVE": + return 599; + case "REF_P": + return 600; + case "REFERENCES": + return 601; + case "REFERENCING": + return 602; + case "REFRESH": + return 603; + case "REINDEX": + return 604; + case "RELATIVE_P": + return 605; + case "RELEASE": + return 606; + case "RENAME": + return 607; + case "REPEATABLE": + return 608; + case "REPLACE": + return 609; + case "REPLICA": + return 610; + case "RESET": + return 611; + case "RESTART": + return 612; + case "RESTRICT": + return 613; + case "RETURN": + return 614; + case "RETURNING": + return 615; + case "RETURNS": + return 616; + case "REVOKE": + return 617; + case "RIGHT": + return 618; + case "ROLE": + return 619; + case "ROLLBACK": + return 620; + case "ROLLUP": + return 621; + case "ROUTINE": + return 622; + case "ROUTINES": + return 623; + case "ROW": + return 624; + case "ROWS": + return 625; + case "RULE": + return 626; + case "SAVEPOINT": + return 627; + case "SCALAR": + return 628; + case "SCHEMA": + return 629; + case "SCHEMAS": + return 630; + case "SCROLL": + return 631; + case "SEARCH": + return 632; + case "SECOND_P": + return 633; + case "SECURITY": + return 634; + case "SELECT": + return 635; + case "SEQUENCE": + return 636; + case "SEQUENCES": + return 637; + case "SERIALIZABLE": + return 638; + case "SERVER": + return 639; + case "SESSION": + return 640; + case "SESSION_USER": + return 641; + case "SET": + return 642; + case "SETS": + return 643; + case "SETOF": + return 644; + case "SHARE": + return 645; + case "SHOW": + return 646; + case "SIMILAR": + return 647; + case "SIMPLE": + return 648; + case "SKIP": + return 649; + case "SMALLINT": + return 650; + case "SNAPSHOT": + return 651; + case "SOME": + return 652; + case "SQL_P": + return 653; + case "STABLE": + return 654; + case "STANDALONE_P": + return 655; + case "START": + return 656; + case "STATEMENT": + return 657; + case "STATISTICS": + return 658; + case "STDIN": + return 659; + case "STDOUT": + return 660; + case "STORAGE": + return 661; + case "STORED": + return 662; + case "STRICT_P": + return 663; + case "STRIP_P": + return 664; + case "SUBSCRIPTION": + return 665; + case "SUBSTRING": + return 666; + case "SUPPORT": + return 667; + case "SYMMETRIC": + return 668; + case "SYSID": + return 669; + case "SYSTEM_P": + return 670; + case "SYSTEM_USER": + return 671; + case "TABLE": + return 672; + case "TABLES": + return 673; + case "TABLESAMPLE": + return 674; + case "TABLESPACE": + return 675; + case "TEMP": + return 676; + case "TEMPLATE": + return 677; + case "TEMPORARY": + return 678; + case "TEXT_P": + return 679; + case "THEN": + return 680; + case "TIES": + return 681; + case "TIME": + return 682; + case "TIMESTAMP": + return 683; + case "TO": + return 684; + case "TRAILING": + return 685; + case "TRANSACTION": + return 686; + case "TRANSFORM": + return 687; + case "TREAT": + return 688; + case "TRIGGER": + return 689; + case "TRIM": + return 690; + case "TRUE_P": + return 691; + case "TRUNCATE": + return 692; + case "TRUSTED": + return 693; + case "TYPE_P": + return 694; + case "TYPES_P": + return 695; + case "UESCAPE": + return 696; + case "UNBOUNDED": + return 697; + case "UNCOMMITTED": + return 698; + case "UNENCRYPTED": + return 699; + case "UNION": + return 700; + case "UNIQUE": + return 701; + case "UNKNOWN": + return 702; + case "UNLISTEN": + return 703; + case "UNLOGGED": + return 704; + case "UNTIL": + return 705; + case "UPDATE": + return 706; + case "USER": + return 707; + case "USING": + return 708; + case "VACUUM": + return 709; + case "VALID": + return 710; + case "VALIDATE": + return 711; + case "VALIDATOR": + return 712; + case "VALUE_P": + return 713; + case "VALUES": + return 714; + case "VARCHAR": + return 715; + case "VARIADIC": + return 716; + case "VARYING": + return 717; + case "VERBOSE": + return 718; + case "VERSION_P": + return 719; + case "VIEW": + return 720; + case "VIEWS": + return 721; + case "VOLATILE": + return 722; + case "WHEN": + return 723; + case "WHERE": + return 724; + case "WHITESPACE_P": + return 725; + case "WINDOW": + return 726; + case "WITH": + return 727; + case "WITHIN": + return 728; + case "WITHOUT": + return 729; + case "WORK": + return 730; + case "WRAPPER": + return 731; + case "WRITE": + return 732; + case "XML_P": + return 733; + case "XMLATTRIBUTES": + return 734; + case "XMLCONCAT": + return 735; + case "XMLELEMENT": + return 736; + case "XMLEXISTS": + return 737; + case "XMLFOREST": + return 738; + case "XMLNAMESPACES": + return 739; + case "XMLPARSE": + return 740; + case "XMLPI": + return 741; + case "XMLROOT": + return 742; + case "XMLSERIALIZE": + return 743; + case "XMLTABLE": + return 744; + case "YEAR_P": + return 745; + case "YES_P": + return 746; + case "ZONE": + return 747; + case "FORMAT_LA": + return 748; + case "NOT_LA": + return 749; + case "NULLS_LA": + return 750; + case "WITH_LA": + return 751; + case "WITHOUT_LA": + return 752; + case "MODE_TYPE_NAME": + return 753; + case "MODE_PLPGSQL_EXPR": + return 754; + case "MODE_PLPGSQL_ASSIGN1": + return 755; + case "MODE_PLPGSQL_ASSIGN2": + return 756; + case "MODE_PLPGSQL_ASSIGN3": + return 757; + case "UMINUS": + return 758; + case 0: + return "NUL"; + case 36: + return "ASCII_36"; + case 37: + return "ASCII_37"; + case 40: + return "ASCII_40"; + case 41: + return "ASCII_41"; + case 42: + return "ASCII_42"; + case 43: + return "ASCII_43"; + case 44: + return "ASCII_44"; + case 45: + return "ASCII_45"; + case 46: + return "ASCII_46"; + case 47: + return "ASCII_47"; + case 58: + return "ASCII_58"; + case 59: + return "ASCII_59"; + case 60: + return "ASCII_60"; + case 61: + return "ASCII_61"; + case 62: + return "ASCII_62"; + case 63: + return "ASCII_63"; + case 91: + return "ASCII_91"; + case 92: + return "ASCII_92"; + case 93: + return "ASCII_93"; + case 94: + return "ASCII_94"; + case 258: + return "IDENT"; + case 259: + return "UIDENT"; + case 260: + return "FCONST"; + case 261: + return "SCONST"; + case 262: + return "USCONST"; + case 263: + return "BCONST"; + case 264: + return "XCONST"; + case 265: + return "Op"; + case 266: + return "ICONST"; + case 267: + return "PARAM"; + case 268: + return "TYPECAST"; + case 269: + return "DOT_DOT"; + case 270: + return "COLON_EQUALS"; + case 271: + return "EQUALS_GREATER"; + case 272: + return "LESS_EQUALS"; + case 273: + return "GREATER_EQUALS"; + case 274: + return "NOT_EQUALS"; + case 275: + return "SQL_COMMENT"; + case 276: + return "C_COMMENT"; + case 277: + return "ABORT_P"; + case 278: + return "ABSENT"; + case 279: + return "ABSOLUTE_P"; + case 280: + return "ACCESS"; + case 281: + return "ACTION"; + case 282: + return "ADD_P"; + case 283: + return "ADMIN"; + case 284: + return "AFTER"; + case 285: + return "AGGREGATE"; + case 286: + return "ALL"; + case 287: + return "ALSO"; + case 288: + return "ALTER"; + case 289: + return "ALWAYS"; + case 290: + return "ANALYSE"; + case 291: + return "ANALYZE"; + case 292: + return "AND"; + case 293: + return "ANY"; + case 294: + return "ARRAY"; + case 295: + return "AS"; + case 296: + return "ASC"; + case 297: + return "ASENSITIVE"; + case 298: + return "ASSERTION"; + case 299: + return "ASSIGNMENT"; + case 300: + return "ASYMMETRIC"; + case 301: + return "ATOMIC"; + case 302: + return "AT"; + case 303: + return "ATTACH"; + case 304: + return "ATTRIBUTE"; + case 305: + return "AUTHORIZATION"; + case 306: + return "BACKWARD"; + case 307: + return "BEFORE"; + case 308: + return "BEGIN_P"; + case 309: + return "BETWEEN"; + case 310: + return "BIGINT"; + case 311: + return "BINARY"; + case 312: + return "BIT"; + case 313: + return "BOOLEAN_P"; + case 314: + return "BOTH"; + case 315: + return "BREADTH"; + case 316: + return "BY"; + case 317: + return "CACHE"; + case 318: + return "CALL"; + case 319: + return "CALLED"; + case 320: + return "CASCADE"; + case 321: + return "CASCADED"; + case 322: + return "CASE"; + case 323: + return "CAST"; + case 324: + return "CATALOG_P"; + case 325: + return "CHAIN"; + case 326: + return "CHAR_P"; + case 327: + return "CHARACTER"; + case 328: + return "CHARACTERISTICS"; + case 329: + return "CHECK"; + case 330: + return "CHECKPOINT"; + case 331: + return "CLASS"; + case 332: + return "CLOSE"; + case 333: + return "CLUSTER"; + case 334: + return "COALESCE"; + case 335: + return "COLLATE"; + case 336: + return "COLLATION"; + case 337: + return "COLUMN"; + case 338: + return "COLUMNS"; + case 339: + return "COMMENT"; + case 340: + return "COMMENTS"; + case 341: + return "COMMIT"; + case 342: + return "COMMITTED"; + case 343: + return "COMPRESSION"; + case 344: + return "CONCURRENTLY"; + case 345: + return "CONFIGURATION"; + case 346: + return "CONFLICT"; + case 347: + return "CONNECTION"; + case 348: + return "CONSTRAINT"; + case 349: + return "CONSTRAINTS"; + case 350: + return "CONTENT_P"; + case 351: + return "CONTINUE_P"; + case 352: + return "CONVERSION_P"; + case 353: + return "COPY"; + case 354: + return "COST"; + case 355: + return "CREATE"; + case 356: + return "CROSS"; + case 357: + return "CSV"; + case 358: + return "CUBE"; + case 359: + return "CURRENT_P"; + case 360: + return "CURRENT_CATALOG"; + case 361: + return "CURRENT_DATE"; + case 362: + return "CURRENT_ROLE"; + case 363: + return "CURRENT_SCHEMA"; + case 364: + return "CURRENT_TIME"; + case 365: + return "CURRENT_TIMESTAMP"; + case 366: + return "CURRENT_USER"; + case 367: + return "CURSOR"; + case 368: + return "CYCLE"; + case 369: + return "DATA_P"; + case 370: + return "DATABASE"; + case 371: + return "DAY_P"; + case 372: + return "DEALLOCATE"; + case 373: + return "DEC"; + case 374: + return "DECIMAL_P"; + case 375: + return "DECLARE"; + case 376: + return "DEFAULT"; + case 377: + return "DEFAULTS"; + case 378: + return "DEFERRABLE"; + case 379: + return "DEFERRED"; + case 380: + return "DEFINER"; + case 381: + return "DELETE_P"; + case 382: + return "DELIMITER"; + case 383: + return "DELIMITERS"; + case 384: + return "DEPENDS"; + case 385: + return "DEPTH"; + case 386: + return "DESC"; + case 387: + return "DETACH"; + case 388: + return "DICTIONARY"; + case 389: + return "DISABLE_P"; + case 390: + return "DISCARD"; + case 391: + return "DISTINCT"; + case 392: + return "DO"; + case 393: + return "DOCUMENT_P"; + case 394: + return "DOMAIN_P"; + case 395: + return "DOUBLE_P"; + case 396: + return "DROP"; + case 397: + return "EACH"; + case 398: + return "ELSE"; + case 399: + return "ENABLE_P"; + case 400: + return "ENCODING"; + case 401: + return "ENCRYPTED"; + case 402: + return "END_P"; + case 403: + return "ENUM_P"; + case 404: + return "ESCAPE"; + case 405: + return "EVENT"; + case 406: + return "EXCEPT"; + case 407: + return "EXCLUDE"; + case 408: + return "EXCLUDING"; + case 409: + return "EXCLUSIVE"; + case 410: + return "EXECUTE"; + case 411: + return "EXISTS"; + case 412: + return "EXPLAIN"; + case 413: + return "EXPRESSION"; + case 414: + return "EXTENSION"; + case 415: + return "EXTERNAL"; + case 416: + return "EXTRACT"; + case 417: + return "FALSE_P"; + case 418: + return "FAMILY"; + case 419: + return "FETCH"; + case 420: + return "FILTER"; + case 421: + return "FINALIZE"; + case 422: + return "FIRST_P"; + case 423: + return "FLOAT_P"; + case 424: + return "FOLLOWING"; + case 425: + return "FOR"; + case 426: + return "FORCE"; + case 427: + return "FOREIGN"; + case 428: + return "FORMAT"; + case 429: + return "FORWARD"; + case 430: + return "FREEZE"; + case 431: + return "FROM"; + case 432: + return "FULL"; + case 433: + return "FUNCTION"; + case 434: + return "FUNCTIONS"; + case 435: + return "GENERATED"; + case 436: + return "GLOBAL"; + case 437: + return "GRANT"; + case 438: + return "GRANTED"; + case 439: + return "GREATEST"; + case 440: + return "GROUP_P"; + case 441: + return "GROUPING"; + case 442: + return "GROUPS"; + case 443: + return "HANDLER"; + case 444: + return "HAVING"; + case 445: + return "HEADER_P"; + case 446: + return "HOLD"; + case 447: + return "HOUR_P"; + case 448: + return "IDENTITY_P"; + case 449: + return "IF_P"; + case 450: + return "ILIKE"; + case 451: + return "IMMEDIATE"; + case 452: + return "IMMUTABLE"; + case 453: + return "IMPLICIT_P"; + case 454: + return "IMPORT_P"; + case 455: + return "IN_P"; + case 456: + return "INCLUDE"; + case 457: + return "INCLUDING"; + case 458: + return "INCREMENT"; + case 459: + return "INDENT"; + case 460: + return "INDEX"; + case 461: + return "INDEXES"; + case 462: + return "INHERIT"; + case 463: + return "INHERITS"; + case 464: + return "INITIALLY"; + case 465: + return "INLINE_P"; + case 466: + return "INNER_P"; + case 467: + return "INOUT"; + case 468: + return "INPUT_P"; + case 469: + return "INSENSITIVE"; + case 470: + return "INSERT"; + case 471: + return "INSTEAD"; + case 472: + return "INT_P"; + case 473: + return "INTEGER"; + case 474: + return "INTERSECT"; + case 475: + return "INTERVAL"; + case 476: + return "INTO"; + case 477: + return "INVOKER"; + case 478: + return "IS"; + case 479: + return "ISNULL"; + case 480: + return "ISOLATION"; + case 481: + return "JOIN"; + case 482: + return "JSON"; + case 483: + return "JSON_ARRAY"; + case 484: + return "JSON_ARRAYAGG"; + case 485: + return "JSON_OBJECT"; + case 486: + return "JSON_OBJECTAGG"; + case 487: + return "KEY"; + case 488: + return "KEYS"; + case 489: + return "LABEL"; + case 490: + return "LANGUAGE"; + case 491: + return "LARGE_P"; + case 492: + return "LAST_P"; + case 493: + return "LATERAL_P"; + case 494: + return "LEADING"; + case 495: + return "LEAKPROOF"; + case 496: + return "LEAST"; + case 497: + return "LEFT"; + case 498: + return "LEVEL"; + case 499: + return "LIKE"; + case 500: + return "LIMIT"; + case 501: + return "LISTEN"; + case 502: + return "LOAD"; + case 503: + return "LOCAL"; + case 504: + return "LOCALTIME"; + case 505: + return "LOCALTIMESTAMP"; + case 506: + return "LOCATION"; + case 507: + return "LOCK_P"; + case 508: + return "LOCKED"; + case 509: + return "LOGGED"; + case 510: + return "MAPPING"; + case 511: + return "MATCH"; + case 512: + return "MATCHED"; + case 513: + return "MATERIALIZED"; + case 514: + return "MAXVALUE"; + case 515: + return "MERGE"; + case 516: + return "METHOD"; + case 517: + return "MINUTE_P"; + case 518: + return "MINVALUE"; + case 519: + return "MODE"; + case 520: + return "MONTH_P"; + case 521: + return "MOVE"; + case 522: + return "NAME_P"; + case 523: + return "NAMES"; + case 524: + return "NATIONAL"; + case 525: + return "NATURAL"; + case 526: + return "NCHAR"; + case 527: + return "NEW"; + case 528: + return "NEXT"; + case 529: + return "NFC"; + case 530: + return "NFD"; + case 531: + return "NFKC"; + case 532: + return "NFKD"; + case 533: + return "NO"; + case 534: + return "NONE"; + case 535: + return "NORMALIZE"; + case 536: + return "NORMALIZED"; + case 537: + return "NOT"; + case 538: + return "NOTHING"; + case 539: + return "NOTIFY"; + case 540: + return "NOTNULL"; + case 541: + return "NOWAIT"; + case 542: + return "NULL_P"; + case 543: + return "NULLIF"; + case 544: + return "NULLS_P"; + case 545: + return "NUMERIC"; + case 546: + return "OBJECT_P"; + case 547: + return "OF"; + case 548: + return "OFF"; + case 549: + return "OFFSET"; + case 550: + return "OIDS"; + case 551: + return "OLD"; + case 552: + return "ON"; + case 553: + return "ONLY"; + case 554: + return "OPERATOR"; + case 555: + return "OPTION"; + case 556: + return "OPTIONS"; + case 557: + return "OR"; + case 558: + return "ORDER"; + case 559: + return "ORDINALITY"; + case 560: + return "OTHERS"; + case 561: + return "OUT_P"; + case 562: + return "OUTER_P"; + case 563: + return "OVER"; + case 564: + return "OVERLAPS"; + case 565: + return "OVERLAY"; + case 566: + return "OVERRIDING"; + case 567: + return "OWNED"; + case 568: + return "OWNER"; + case 569: + return "PARALLEL"; + case 570: + return "PARAMETER"; + case 571: + return "PARSER"; + case 572: + return "PARTIAL"; + case 573: + return "PARTITION"; + case 574: + return "PASSING"; + case 575: + return "PASSWORD"; + case 576: + return "PLACING"; + case 577: + return "PLANS"; + case 578: + return "POLICY"; + case 579: + return "POSITION"; + case 580: + return "PRECEDING"; + case 581: + return "PRECISION"; + case 582: + return "PRESERVE"; + case 583: + return "PREPARE"; + case 584: + return "PREPARED"; + case 585: + return "PRIMARY"; + case 586: + return "PRIOR"; + case 587: + return "PRIVILEGES"; + case 588: + return "PROCEDURAL"; + case 589: + return "PROCEDURE"; + case 590: + return "PROCEDURES"; + case 591: + return "PROGRAM"; + case 592: + return "PUBLICATION"; + case 593: + return "QUOTE"; + case 594: + return "RANGE"; + case 595: + return "READ"; + case 596: + return "REAL"; + case 597: + return "REASSIGN"; + case 598: + return "RECHECK"; + case 599: + return "RECURSIVE"; + case 600: + return "REF_P"; + case 601: + return "REFERENCES"; + case 602: + return "REFERENCING"; + case 603: + return "REFRESH"; + case 604: + return "REINDEX"; + case 605: + return "RELATIVE_P"; + case 606: + return "RELEASE"; + case 607: + return "RENAME"; + case 608: + return "REPEATABLE"; + case 609: + return "REPLACE"; + case 610: + return "REPLICA"; + case 611: + return "RESET"; + case 612: + return "RESTART"; + case 613: + return "RESTRICT"; + case 614: + return "RETURN"; + case 615: + return "RETURNING"; + case 616: + return "RETURNS"; + case 617: + return "REVOKE"; + case 618: + return "RIGHT"; + case 619: + return "ROLE"; + case 620: + return "ROLLBACK"; + case 621: + return "ROLLUP"; + case 622: + return "ROUTINE"; + case 623: + return "ROUTINES"; + case 624: + return "ROW"; + case 625: + return "ROWS"; + case 626: + return "RULE"; + case 627: + return "SAVEPOINT"; + case 628: + return "SCALAR"; + case 629: + return "SCHEMA"; + case 630: + return "SCHEMAS"; + case 631: + return "SCROLL"; + case 632: + return "SEARCH"; + case 633: + return "SECOND_P"; + case 634: + return "SECURITY"; + case 635: + return "SELECT"; + case 636: + return "SEQUENCE"; + case 637: + return "SEQUENCES"; + case 638: + return "SERIALIZABLE"; + case 639: + return "SERVER"; + case 640: + return "SESSION"; + case 641: + return "SESSION_USER"; + case 642: + return "SET"; + case 643: + return "SETS"; + case 644: + return "SETOF"; + case 645: + return "SHARE"; + case 646: + return "SHOW"; + case 647: + return "SIMILAR"; + case 648: + return "SIMPLE"; + case 649: + return "SKIP"; + case 650: + return "SMALLINT"; + case 651: + return "SNAPSHOT"; + case 652: + return "SOME"; + case 653: + return "SQL_P"; + case 654: + return "STABLE"; + case 655: + return "STANDALONE_P"; + case 656: + return "START"; + case 657: + return "STATEMENT"; + case 658: + return "STATISTICS"; + case 659: + return "STDIN"; + case 660: + return "STDOUT"; + case 661: + return "STORAGE"; + case 662: + return "STORED"; + case 663: + return "STRICT_P"; + case 664: + return "STRIP_P"; + case 665: + return "SUBSCRIPTION"; + case 666: + return "SUBSTRING"; + case 667: + return "SUPPORT"; + case 668: + return "SYMMETRIC"; + case 669: + return "SYSID"; + case 670: + return "SYSTEM_P"; + case 671: + return "SYSTEM_USER"; + case 672: + return "TABLE"; + case 673: + return "TABLES"; + case 674: + return "TABLESAMPLE"; + case 675: + return "TABLESPACE"; + case 676: + return "TEMP"; + case 677: + return "TEMPLATE"; + case 678: + return "TEMPORARY"; + case 679: + return "TEXT_P"; + case 680: + return "THEN"; + case 681: + return "TIES"; + case 682: + return "TIME"; + case 683: + return "TIMESTAMP"; + case 684: + return "TO"; + case 685: + return "TRAILING"; + case 686: + return "TRANSACTION"; + case 687: + return "TRANSFORM"; + case 688: + return "TREAT"; + case 689: + return "TRIGGER"; + case 690: + return "TRIM"; + case 691: + return "TRUE_P"; + case 692: + return "TRUNCATE"; + case 693: + return "TRUSTED"; + case 694: + return "TYPE_P"; + case 695: + return "TYPES_P"; + case 696: + return "UESCAPE"; + case 697: + return "UNBOUNDED"; + case 698: + return "UNCOMMITTED"; + case 699: + return "UNENCRYPTED"; + case 700: + return "UNION"; + case 701: + return "UNIQUE"; + case 702: + return "UNKNOWN"; + case 703: + return "UNLISTEN"; + case 704: + return "UNLOGGED"; + case 705: + return "UNTIL"; + case 706: + return "UPDATE"; + case 707: + return "USER"; + case 708: + return "USING"; + case 709: + return "VACUUM"; + case 710: + return "VALID"; + case 711: + return "VALIDATE"; + case 712: + return "VALIDATOR"; + case 713: + return "VALUE_P"; + case 714: + return "VALUES"; + case 715: + return "VARCHAR"; + case 716: + return "VARIADIC"; + case 717: + return "VARYING"; + case 718: + return "VERBOSE"; + case 719: + return "VERSION_P"; + case 720: + return "VIEW"; + case 721: + return "VIEWS"; + case 722: + return "VOLATILE"; + case 723: + return "WHEN"; + case 724: + return "WHERE"; + case 725: + return "WHITESPACE_P"; + case 726: + return "WINDOW"; + case 727: + return "WITH"; + case 728: + return "WITHIN"; + case 729: + return "WITHOUT"; + case 730: + return "WORK"; + case 731: + return "WRAPPER"; + case 732: + return "WRITE"; + case 733: + return "XML_P"; + case 734: + return "XMLATTRIBUTES"; + case 735: + return "XMLCONCAT"; + case 736: + return "XMLELEMENT"; + case 737: + return "XMLEXISTS"; + case 738: + return "XMLFOREST"; + case 739: + return "XMLNAMESPACES"; + case 740: + return "XMLPARSE"; + case 741: + return "XMLPI"; + case 742: + return "XMLROOT"; + case 743: + return "XMLSERIALIZE"; + case 744: + return "XMLTABLE"; + case 745: + return "YEAR_P"; + case 746: + return "YES_P"; + case 747: + return "ZONE"; + case 748: + return "FORMAT_LA"; + case 749: + return "NOT_LA"; + case 750: + return "NULLS_LA"; + case 751: + return "WITH_LA"; + case 752: + return "WITHOUT_LA"; + case 753: + return "MODE_TYPE_NAME"; + case 754: + return "MODE_PLPGSQL_EXPR"; + case 755: + return "MODE_PLPGSQL_ASSIGN1"; + case 756: + return "MODE_PLPGSQL_ASSIGN2"; + case 757: + return "MODE_PLPGSQL_ASSIGN3"; + case 758: + return "UMINUS"; + default: + throw new Error("Key not recognized in enum Token"); + } + } + default: + throw new Error("Enum type not recognized"); + } +}; \ No newline at end of file diff --git a/__fixtures__/output/utils/enums/custom-filenames/custom-int.ts b/__fixtures__/output/utils/enums/custom-filenames/custom-int.ts new file mode 100644 index 00000000..849ed3f2 --- /dev/null +++ b/__fixtures__/output/utils/enums/custom-filenames/custom-int.ts @@ -0,0 +1,2346 @@ +/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type EnumType = "OverridingKind" | "QuerySource" | "SortByDir" | "SortByNulls" | "SetQuantifier" | "A_Expr_Kind" | "RoleSpecType" | "TableLikeOption" | "DefElemAction" | "PartitionStrategy" | "PartitionRangeDatumKind" | "RTEKind" | "WCOKind" | "GroupingSetKind" | "CTEMaterialize" | "SetOperation" | "ObjectType" | "DropBehavior" | "AlterTableType" | "GrantTargetType" | "VariableSetKind" | "ConstrType" | "ImportForeignSchemaType" | "RoleStmtType" | "FetchDirection" | "FunctionParameterMode" | "TransactionStmtKind" | "ViewCheckOption" | "DiscardMode" | "ReindexObjectType" | "AlterTSConfigType" | "PublicationObjSpecType" | "AlterPublicationAction" | "AlterSubscriptionType" | "OnCommitAction" | "ParamKind" | "CoercionContext" | "CoercionForm" | "BoolExprType" | "SubLinkType" | "RowCompareType" | "MinMaxOp" | "SQLValueFunctionOp" | "XmlExprOp" | "XmlOptionType" | "JsonEncoding" | "JsonFormatType" | "JsonConstructorType" | "JsonValueType" | "NullTestType" | "BoolTestType" | "CmdType" | "JoinType" | "AggStrategy" | "AggSplit" | "SetOpCmd" | "SetOpStrategy" | "OnConflictAction" | "LimitOption" | "LockClauseStrength" | "LockWaitPolicy" | "LockTupleMode" | "KeywordKind" | "Token"; +export const getEnumInt = (enumType: EnumType, key: string): number => { + switch (enumType) { + case "OverridingKind": + { + switch (key) { + case "OVERRIDING_NOT_SET": + return 0; + case "OVERRIDING_USER_VALUE": + return 1; + case "OVERRIDING_SYSTEM_VALUE": + return 2; + default: + throw new Error("Key not recognized in enum OverridingKind"); + } + } + case "QuerySource": + { + switch (key) { + case "QSRC_ORIGINAL": + return 0; + case "QSRC_PARSER": + return 1; + case "QSRC_INSTEAD_RULE": + return 2; + case "QSRC_QUAL_INSTEAD_RULE": + return 3; + case "QSRC_NON_INSTEAD_RULE": + return 4; + default: + throw new Error("Key not recognized in enum QuerySource"); + } + } + case "SortByDir": + { + switch (key) { + case "SORTBY_DEFAULT": + return 0; + case "SORTBY_ASC": + return 1; + case "SORTBY_DESC": + return 2; + case "SORTBY_USING": + return 3; + default: + throw new Error("Key not recognized in enum SortByDir"); + } + } + case "SortByNulls": + { + switch (key) { + case "SORTBY_NULLS_DEFAULT": + return 0; + case "SORTBY_NULLS_FIRST": + return 1; + case "SORTBY_NULLS_LAST": + return 2; + default: + throw new Error("Key not recognized in enum SortByNulls"); + } + } + case "SetQuantifier": + { + switch (key) { + case "SET_QUANTIFIER_DEFAULT": + return 0; + case "SET_QUANTIFIER_ALL": + return 1; + case "SET_QUANTIFIER_DISTINCT": + return 2; + default: + throw new Error("Key not recognized in enum SetQuantifier"); + } + } + case "A_Expr_Kind": + { + switch (key) { + case "AEXPR_OP": + return 0; + case "AEXPR_OP_ANY": + return 1; + case "AEXPR_OP_ALL": + return 2; + case "AEXPR_DISTINCT": + return 3; + case "AEXPR_NOT_DISTINCT": + return 4; + case "AEXPR_NULLIF": + return 5; + case "AEXPR_IN": + return 6; + case "AEXPR_LIKE": + return 7; + case "AEXPR_ILIKE": + return 8; + case "AEXPR_SIMILAR": + return 9; + case "AEXPR_BETWEEN": + return 10; + case "AEXPR_NOT_BETWEEN": + return 11; + case "AEXPR_BETWEEN_SYM": + return 12; + case "AEXPR_NOT_BETWEEN_SYM": + return 13; + default: + throw new Error("Key not recognized in enum A_Expr_Kind"); + } + } + case "RoleSpecType": + { + switch (key) { + case "ROLESPEC_CSTRING": + return 0; + case "ROLESPEC_CURRENT_ROLE": + return 1; + case "ROLESPEC_CURRENT_USER": + return 2; + case "ROLESPEC_SESSION_USER": + return 3; + case "ROLESPEC_PUBLIC": + return 4; + default: + throw new Error("Key not recognized in enum RoleSpecType"); + } + } + case "TableLikeOption": + { + switch (key) { + case "CREATE_TABLE_LIKE_COMMENTS": + return 0; + case "CREATE_TABLE_LIKE_COMPRESSION": + return 1; + case "CREATE_TABLE_LIKE_CONSTRAINTS": + return 2; + case "CREATE_TABLE_LIKE_DEFAULTS": + return 3; + case "CREATE_TABLE_LIKE_GENERATED": + return 4; + case "CREATE_TABLE_LIKE_IDENTITY": + return 5; + case "CREATE_TABLE_LIKE_INDEXES": + return 6; + case "CREATE_TABLE_LIKE_STATISTICS": + return 7; + case "CREATE_TABLE_LIKE_STORAGE": + return 8; + case "CREATE_TABLE_LIKE_ALL": + return 9; + default: + throw new Error("Key not recognized in enum TableLikeOption"); + } + } + case "DefElemAction": + { + switch (key) { + case "DEFELEM_UNSPEC": + return 0; + case "DEFELEM_SET": + return 1; + case "DEFELEM_ADD": + return 2; + case "DEFELEM_DROP": + return 3; + default: + throw new Error("Key not recognized in enum DefElemAction"); + } + } + case "PartitionStrategy": + { + switch (key) { + case "PARTITION_STRATEGY_LIST": + return 0; + case "PARTITION_STRATEGY_RANGE": + return 1; + case "PARTITION_STRATEGY_HASH": + return 2; + default: + throw new Error("Key not recognized in enum PartitionStrategy"); + } + } + case "PartitionRangeDatumKind": + { + switch (key) { + case "PARTITION_RANGE_DATUM_MINVALUE": + return 0; + case "PARTITION_RANGE_DATUM_VALUE": + return 1; + case "PARTITION_RANGE_DATUM_MAXVALUE": + return 2; + default: + throw new Error("Key not recognized in enum PartitionRangeDatumKind"); + } + } + case "RTEKind": + { + switch (key) { + case "RTE_RELATION": + return 0; + case "RTE_SUBQUERY": + return 1; + case "RTE_JOIN": + return 2; + case "RTE_FUNCTION": + return 3; + case "RTE_TABLEFUNC": + return 4; + case "RTE_VALUES": + return 5; + case "RTE_CTE": + return 6; + case "RTE_NAMEDTUPLESTORE": + return 7; + case "RTE_RESULT": + return 8; + default: + throw new Error("Key not recognized in enum RTEKind"); + } + } + case "WCOKind": + { + switch (key) { + case "WCO_VIEW_CHECK": + return 0; + case "WCO_RLS_INSERT_CHECK": + return 1; + case "WCO_RLS_UPDATE_CHECK": + return 2; + case "WCO_RLS_CONFLICT_CHECK": + return 3; + case "WCO_RLS_MERGE_UPDATE_CHECK": + return 4; + case "WCO_RLS_MERGE_DELETE_CHECK": + return 5; + default: + throw new Error("Key not recognized in enum WCOKind"); + } + } + case "GroupingSetKind": + { + switch (key) { + case "GROUPING_SET_EMPTY": + return 0; + case "GROUPING_SET_SIMPLE": + return 1; + case "GROUPING_SET_ROLLUP": + return 2; + case "GROUPING_SET_CUBE": + return 3; + case "GROUPING_SET_SETS": + return 4; + default: + throw new Error("Key not recognized in enum GroupingSetKind"); + } + } + case "CTEMaterialize": + { + switch (key) { + case "CTEMaterializeDefault": + return 0; + case "CTEMaterializeAlways": + return 1; + case "CTEMaterializeNever": + return 2; + default: + throw new Error("Key not recognized in enum CTEMaterialize"); + } + } + case "SetOperation": + { + switch (key) { + case "SETOP_NONE": + return 0; + case "SETOP_UNION": + return 1; + case "SETOP_INTERSECT": + return 2; + case "SETOP_EXCEPT": + return 3; + default: + throw new Error("Key not recognized in enum SetOperation"); + } + } + case "ObjectType": + { + switch (key) { + case "OBJECT_ACCESS_METHOD": + return 0; + case "OBJECT_AGGREGATE": + return 1; + case "OBJECT_AMOP": + return 2; + case "OBJECT_AMPROC": + return 3; + case "OBJECT_ATTRIBUTE": + return 4; + case "OBJECT_CAST": + return 5; + case "OBJECT_COLUMN": + return 6; + case "OBJECT_COLLATION": + return 7; + case "OBJECT_CONVERSION": + return 8; + case "OBJECT_DATABASE": + return 9; + case "OBJECT_DEFAULT": + return 10; + case "OBJECT_DEFACL": + return 11; + case "OBJECT_DOMAIN": + return 12; + case "OBJECT_DOMCONSTRAINT": + return 13; + case "OBJECT_EVENT_TRIGGER": + return 14; + case "OBJECT_EXTENSION": + return 15; + case "OBJECT_FDW": + return 16; + case "OBJECT_FOREIGN_SERVER": + return 17; + case "OBJECT_FOREIGN_TABLE": + return 18; + case "OBJECT_FUNCTION": + return 19; + case "OBJECT_INDEX": + return 20; + case "OBJECT_LANGUAGE": + return 21; + case "OBJECT_LARGEOBJECT": + return 22; + case "OBJECT_MATVIEW": + return 23; + case "OBJECT_OPCLASS": + return 24; + case "OBJECT_OPERATOR": + return 25; + case "OBJECT_OPFAMILY": + return 26; + case "OBJECT_PARAMETER_ACL": + return 27; + case "OBJECT_POLICY": + return 28; + case "OBJECT_PROCEDURE": + return 29; + case "OBJECT_PUBLICATION": + return 30; + case "OBJECT_PUBLICATION_NAMESPACE": + return 31; + case "OBJECT_PUBLICATION_REL": + return 32; + case "OBJECT_ROLE": + return 33; + case "OBJECT_ROUTINE": + return 34; + case "OBJECT_RULE": + return 35; + case "OBJECT_SCHEMA": + return 36; + case "OBJECT_SEQUENCE": + return 37; + case "OBJECT_SUBSCRIPTION": + return 38; + case "OBJECT_STATISTIC_EXT": + return 39; + case "OBJECT_TABCONSTRAINT": + return 40; + case "OBJECT_TABLE": + return 41; + case "OBJECT_TABLESPACE": + return 42; + case "OBJECT_TRANSFORM": + return 43; + case "OBJECT_TRIGGER": + return 44; + case "OBJECT_TSCONFIGURATION": + return 45; + case "OBJECT_TSDICTIONARY": + return 46; + case "OBJECT_TSPARSER": + return 47; + case "OBJECT_TSTEMPLATE": + return 48; + case "OBJECT_TYPE": + return 49; + case "OBJECT_USER_MAPPING": + return 50; + case "OBJECT_VIEW": + return 51; + default: + throw new Error("Key not recognized in enum ObjectType"); + } + } + case "DropBehavior": + { + switch (key) { + case "DROP_RESTRICT": + return 0; + case "DROP_CASCADE": + return 1; + default: + throw new Error("Key not recognized in enum DropBehavior"); + } + } + case "AlterTableType": + { + switch (key) { + case "AT_AddColumn": + return 0; + case "AT_AddColumnToView": + return 1; + case "AT_ColumnDefault": + return 2; + case "AT_CookedColumnDefault": + return 3; + case "AT_DropNotNull": + return 4; + case "AT_SetNotNull": + return 5; + case "AT_DropExpression": + return 6; + case "AT_CheckNotNull": + return 7; + case "AT_SetStatistics": + return 8; + case "AT_SetOptions": + return 9; + case "AT_ResetOptions": + return 10; + case "AT_SetStorage": + return 11; + case "AT_SetCompression": + return 12; + case "AT_DropColumn": + return 13; + case "AT_AddIndex": + return 14; + case "AT_ReAddIndex": + return 15; + case "AT_AddConstraint": + return 16; + case "AT_ReAddConstraint": + return 17; + case "AT_ReAddDomainConstraint": + return 18; + case "AT_AlterConstraint": + return 19; + case "AT_ValidateConstraint": + return 20; + case "AT_AddIndexConstraint": + return 21; + case "AT_DropConstraint": + return 22; + case "AT_ReAddComment": + return 23; + case "AT_AlterColumnType": + return 24; + case "AT_AlterColumnGenericOptions": + return 25; + case "AT_ChangeOwner": + return 26; + case "AT_ClusterOn": + return 27; + case "AT_DropCluster": + return 28; + case "AT_SetLogged": + return 29; + case "AT_SetUnLogged": + return 30; + case "AT_DropOids": + return 31; + case "AT_SetAccessMethod": + return 32; + case "AT_SetTableSpace": + return 33; + case "AT_SetRelOptions": + return 34; + case "AT_ResetRelOptions": + return 35; + case "AT_ReplaceRelOptions": + return 36; + case "AT_EnableTrig": + return 37; + case "AT_EnableAlwaysTrig": + return 38; + case "AT_EnableReplicaTrig": + return 39; + case "AT_DisableTrig": + return 40; + case "AT_EnableTrigAll": + return 41; + case "AT_DisableTrigAll": + return 42; + case "AT_EnableTrigUser": + return 43; + case "AT_DisableTrigUser": + return 44; + case "AT_EnableRule": + return 45; + case "AT_EnableAlwaysRule": + return 46; + case "AT_EnableReplicaRule": + return 47; + case "AT_DisableRule": + return 48; + case "AT_AddInherit": + return 49; + case "AT_DropInherit": + return 50; + case "AT_AddOf": + return 51; + case "AT_DropOf": + return 52; + case "AT_ReplicaIdentity": + return 53; + case "AT_EnableRowSecurity": + return 54; + case "AT_DisableRowSecurity": + return 55; + case "AT_ForceRowSecurity": + return 56; + case "AT_NoForceRowSecurity": + return 57; + case "AT_GenericOptions": + return 58; + case "AT_AttachPartition": + return 59; + case "AT_DetachPartition": + return 60; + case "AT_DetachPartitionFinalize": + return 61; + case "AT_AddIdentity": + return 62; + case "AT_SetIdentity": + return 63; + case "AT_DropIdentity": + return 64; + case "AT_ReAddStatistics": + return 65; + default: + throw new Error("Key not recognized in enum AlterTableType"); + } + } + case "GrantTargetType": + { + switch (key) { + case "ACL_TARGET_OBJECT": + return 0; + case "ACL_TARGET_ALL_IN_SCHEMA": + return 1; + case "ACL_TARGET_DEFAULTS": + return 2; + default: + throw new Error("Key not recognized in enum GrantTargetType"); + } + } + case "VariableSetKind": + { + switch (key) { + case "VAR_SET_VALUE": + return 0; + case "VAR_SET_DEFAULT": + return 1; + case "VAR_SET_CURRENT": + return 2; + case "VAR_SET_MULTI": + return 3; + case "VAR_RESET": + return 4; + case "VAR_RESET_ALL": + return 5; + default: + throw new Error("Key not recognized in enum VariableSetKind"); + } + } + case "ConstrType": + { + switch (key) { + case "CONSTR_NULL": + return 0; + case "CONSTR_NOTNULL": + return 1; + case "CONSTR_DEFAULT": + return 2; + case "CONSTR_IDENTITY": + return 3; + case "CONSTR_GENERATED": + return 4; + case "CONSTR_CHECK": + return 5; + case "CONSTR_PRIMARY": + return 6; + case "CONSTR_UNIQUE": + return 7; + case "CONSTR_EXCLUSION": + return 8; + case "CONSTR_FOREIGN": + return 9; + case "CONSTR_ATTR_DEFERRABLE": + return 10; + case "CONSTR_ATTR_NOT_DEFERRABLE": + return 11; + case "CONSTR_ATTR_DEFERRED": + return 12; + case "CONSTR_ATTR_IMMEDIATE": + return 13; + default: + throw new Error("Key not recognized in enum ConstrType"); + } + } + case "ImportForeignSchemaType": + { + switch (key) { + case "FDW_IMPORT_SCHEMA_ALL": + return 0; + case "FDW_IMPORT_SCHEMA_LIMIT_TO": + return 1; + case "FDW_IMPORT_SCHEMA_EXCEPT": + return 2; + default: + throw new Error("Key not recognized in enum ImportForeignSchemaType"); + } + } + case "RoleStmtType": + { + switch (key) { + case "ROLESTMT_ROLE": + return 0; + case "ROLESTMT_USER": + return 1; + case "ROLESTMT_GROUP": + return 2; + default: + throw new Error("Key not recognized in enum RoleStmtType"); + } + } + case "FetchDirection": + { + switch (key) { + case "FETCH_FORWARD": + return 0; + case "FETCH_BACKWARD": + return 1; + case "FETCH_ABSOLUTE": + return 2; + case "FETCH_RELATIVE": + return 3; + default: + throw new Error("Key not recognized in enum FetchDirection"); + } + } + case "FunctionParameterMode": + { + switch (key) { + case "FUNC_PARAM_IN": + return 0; + case "FUNC_PARAM_OUT": + return 1; + case "FUNC_PARAM_INOUT": + return 2; + case "FUNC_PARAM_VARIADIC": + return 3; + case "FUNC_PARAM_TABLE": + return 4; + case "FUNC_PARAM_DEFAULT": + return 5; + default: + throw new Error("Key not recognized in enum FunctionParameterMode"); + } + } + case "TransactionStmtKind": + { + switch (key) { + case "TRANS_STMT_BEGIN": + return 0; + case "TRANS_STMT_START": + return 1; + case "TRANS_STMT_COMMIT": + return 2; + case "TRANS_STMT_ROLLBACK": + return 3; + case "TRANS_STMT_SAVEPOINT": + return 4; + case "TRANS_STMT_RELEASE": + return 5; + case "TRANS_STMT_ROLLBACK_TO": + return 6; + case "TRANS_STMT_PREPARE": + return 7; + case "TRANS_STMT_COMMIT_PREPARED": + return 8; + case "TRANS_STMT_ROLLBACK_PREPARED": + return 9; + default: + throw new Error("Key not recognized in enum TransactionStmtKind"); + } + } + case "ViewCheckOption": + { + switch (key) { + case "NO_CHECK_OPTION": + return 0; + case "LOCAL_CHECK_OPTION": + return 1; + case "CASCADED_CHECK_OPTION": + return 2; + default: + throw new Error("Key not recognized in enum ViewCheckOption"); + } + } + case "DiscardMode": + { + switch (key) { + case "DISCARD_ALL": + return 0; + case "DISCARD_PLANS": + return 1; + case "DISCARD_SEQUENCES": + return 2; + case "DISCARD_TEMP": + return 3; + default: + throw new Error("Key not recognized in enum DiscardMode"); + } + } + case "ReindexObjectType": + { + switch (key) { + case "REINDEX_OBJECT_INDEX": + return 0; + case "REINDEX_OBJECT_TABLE": + return 1; + case "REINDEX_OBJECT_SCHEMA": + return 2; + case "REINDEX_OBJECT_SYSTEM": + return 3; + case "REINDEX_OBJECT_DATABASE": + return 4; + default: + throw new Error("Key not recognized in enum ReindexObjectType"); + } + } + case "AlterTSConfigType": + { + switch (key) { + case "ALTER_TSCONFIG_ADD_MAPPING": + return 0; + case "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN": + return 1; + case "ALTER_TSCONFIG_REPLACE_DICT": + return 2; + case "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN": + return 3; + case "ALTER_TSCONFIG_DROP_MAPPING": + return 4; + default: + throw new Error("Key not recognized in enum AlterTSConfigType"); + } + } + case "PublicationObjSpecType": + { + switch (key) { + case "PUBLICATIONOBJ_TABLE": + return 0; + case "PUBLICATIONOBJ_TABLES_IN_SCHEMA": + return 1; + case "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA": + return 2; + case "PUBLICATIONOBJ_CONTINUATION": + return 3; + default: + throw new Error("Key not recognized in enum PublicationObjSpecType"); + } + } + case "AlterPublicationAction": + { + switch (key) { + case "AP_AddObjects": + return 0; + case "AP_DropObjects": + return 1; + case "AP_SetObjects": + return 2; + default: + throw new Error("Key not recognized in enum AlterPublicationAction"); + } + } + case "AlterSubscriptionType": + { + switch (key) { + case "ALTER_SUBSCRIPTION_OPTIONS": + return 0; + case "ALTER_SUBSCRIPTION_CONNECTION": + return 1; + case "ALTER_SUBSCRIPTION_SET_PUBLICATION": + return 2; + case "ALTER_SUBSCRIPTION_ADD_PUBLICATION": + return 3; + case "ALTER_SUBSCRIPTION_DROP_PUBLICATION": + return 4; + case "ALTER_SUBSCRIPTION_REFRESH": + return 5; + case "ALTER_SUBSCRIPTION_ENABLED": + return 6; + case "ALTER_SUBSCRIPTION_SKIP": + return 7; + default: + throw new Error("Key not recognized in enum AlterSubscriptionType"); + } + } + case "OnCommitAction": + { + switch (key) { + case "ONCOMMIT_NOOP": + return 0; + case "ONCOMMIT_PRESERVE_ROWS": + return 1; + case "ONCOMMIT_DELETE_ROWS": + return 2; + case "ONCOMMIT_DROP": + return 3; + default: + throw new Error("Key not recognized in enum OnCommitAction"); + } + } + case "ParamKind": + { + switch (key) { + case "PARAM_EXTERN": + return 0; + case "PARAM_EXEC": + return 1; + case "PARAM_SUBLINK": + return 2; + case "PARAM_MULTIEXPR": + return 3; + default: + throw new Error("Key not recognized in enum ParamKind"); + } + } + case "CoercionContext": + { + switch (key) { + case "COERCION_IMPLICIT": + return 0; + case "COERCION_ASSIGNMENT": + return 1; + case "COERCION_PLPGSQL": + return 2; + case "COERCION_EXPLICIT": + return 3; + default: + throw new Error("Key not recognized in enum CoercionContext"); + } + } + case "CoercionForm": + { + switch (key) { + case "COERCE_EXPLICIT_CALL": + return 0; + case "COERCE_EXPLICIT_CAST": + return 1; + case "COERCE_IMPLICIT_CAST": + return 2; + case "COERCE_SQL_SYNTAX": + return 3; + default: + throw new Error("Key not recognized in enum CoercionForm"); + } + } + case "BoolExprType": + { + switch (key) { + case "AND_EXPR": + return 0; + case "OR_EXPR": + return 1; + case "NOT_EXPR": + return 2; + default: + throw new Error("Key not recognized in enum BoolExprType"); + } + } + case "SubLinkType": + { + switch (key) { + case "EXISTS_SUBLINK": + return 0; + case "ALL_SUBLINK": + return 1; + case "ANY_SUBLINK": + return 2; + case "ROWCOMPARE_SUBLINK": + return 3; + case "EXPR_SUBLINK": + return 4; + case "MULTIEXPR_SUBLINK": + return 5; + case "ARRAY_SUBLINK": + return 6; + case "CTE_SUBLINK": + return 7; + default: + throw new Error("Key not recognized in enum SubLinkType"); + } + } + case "RowCompareType": + { + switch (key) { + case "ROWCOMPARE_LT": + return 0; + case "ROWCOMPARE_LE": + return 1; + case "ROWCOMPARE_EQ": + return 2; + case "ROWCOMPARE_GE": + return 3; + case "ROWCOMPARE_GT": + return 4; + case "ROWCOMPARE_NE": + return 5; + default: + throw new Error("Key not recognized in enum RowCompareType"); + } + } + case "MinMaxOp": + { + switch (key) { + case "IS_GREATEST": + return 0; + case "IS_LEAST": + return 1; + default: + throw new Error("Key not recognized in enum MinMaxOp"); + } + } + case "SQLValueFunctionOp": + { + switch (key) { + case "SVFOP_CURRENT_DATE": + return 0; + case "SVFOP_CURRENT_TIME": + return 1; + case "SVFOP_CURRENT_TIME_N": + return 2; + case "SVFOP_CURRENT_TIMESTAMP": + return 3; + case "SVFOP_CURRENT_TIMESTAMP_N": + return 4; + case "SVFOP_LOCALTIME": + return 5; + case "SVFOP_LOCALTIME_N": + return 6; + case "SVFOP_LOCALTIMESTAMP": + return 7; + case "SVFOP_LOCALTIMESTAMP_N": + return 8; + case "SVFOP_CURRENT_ROLE": + return 9; + case "SVFOP_CURRENT_USER": + return 10; + case "SVFOP_USER": + return 11; + case "SVFOP_SESSION_USER": + return 12; + case "SVFOP_CURRENT_CATALOG": + return 13; + case "SVFOP_CURRENT_SCHEMA": + return 14; + default: + throw new Error("Key not recognized in enum SQLValueFunctionOp"); + } + } + case "XmlExprOp": + { + switch (key) { + case "IS_XMLCONCAT": + return 0; + case "IS_XMLELEMENT": + return 1; + case "IS_XMLFOREST": + return 2; + case "IS_XMLPARSE": + return 3; + case "IS_XMLPI": + return 4; + case "IS_XMLROOT": + return 5; + case "IS_XMLSERIALIZE": + return 6; + case "IS_DOCUMENT": + return 7; + default: + throw new Error("Key not recognized in enum XmlExprOp"); + } + } + case "XmlOptionType": + { + switch (key) { + case "XMLOPTION_DOCUMENT": + return 0; + case "XMLOPTION_CONTENT": + return 1; + default: + throw new Error("Key not recognized in enum XmlOptionType"); + } + } + case "JsonEncoding": + { + switch (key) { + case "JS_ENC_DEFAULT": + return 0; + case "JS_ENC_UTF8": + return 1; + case "JS_ENC_UTF16": + return 2; + case "JS_ENC_UTF32": + return 3; + default: + throw new Error("Key not recognized in enum JsonEncoding"); + } + } + case "JsonFormatType": + { + switch (key) { + case "JS_FORMAT_DEFAULT": + return 0; + case "JS_FORMAT_JSON": + return 1; + case "JS_FORMAT_JSONB": + return 2; + default: + throw new Error("Key not recognized in enum JsonFormatType"); + } + } + case "JsonConstructorType": + { + switch (key) { + case "JSCTOR_JSON_OBJECT": + return 0; + case "JSCTOR_JSON_ARRAY": + return 1; + case "JSCTOR_JSON_OBJECTAGG": + return 2; + case "JSCTOR_JSON_ARRAYAGG": + return 3; + default: + throw new Error("Key not recognized in enum JsonConstructorType"); + } + } + case "JsonValueType": + { + switch (key) { + case "JS_TYPE_ANY": + return 0; + case "JS_TYPE_OBJECT": + return 1; + case "JS_TYPE_ARRAY": + return 2; + case "JS_TYPE_SCALAR": + return 3; + default: + throw new Error("Key not recognized in enum JsonValueType"); + } + } + case "NullTestType": + { + switch (key) { + case "IS_NULL": + return 0; + case "IS_NOT_NULL": + return 1; + default: + throw new Error("Key not recognized in enum NullTestType"); + } + } + case "BoolTestType": + { + switch (key) { + case "IS_TRUE": + return 0; + case "IS_NOT_TRUE": + return 1; + case "IS_FALSE": + return 2; + case "IS_NOT_FALSE": + return 3; + case "IS_UNKNOWN": + return 4; + case "IS_NOT_UNKNOWN": + return 5; + default: + throw new Error("Key not recognized in enum BoolTestType"); + } + } + case "CmdType": + { + switch (key) { + case "CMD_UNKNOWN": + return 0; + case "CMD_SELECT": + return 1; + case "CMD_UPDATE": + return 2; + case "CMD_INSERT": + return 3; + case "CMD_DELETE": + return 4; + case "CMD_MERGE": + return 5; + case "CMD_UTILITY": + return 6; + case "CMD_NOTHING": + return 7; + default: + throw new Error("Key not recognized in enum CmdType"); + } + } + case "JoinType": + { + switch (key) { + case "JOIN_INNER": + return 0; + case "JOIN_LEFT": + return 1; + case "JOIN_FULL": + return 2; + case "JOIN_RIGHT": + return 3; + case "JOIN_SEMI": + return 4; + case "JOIN_ANTI": + return 5; + case "JOIN_RIGHT_ANTI": + return 6; + case "JOIN_UNIQUE_OUTER": + return 7; + case "JOIN_UNIQUE_INNER": + return 8; + default: + throw new Error("Key not recognized in enum JoinType"); + } + } + case "AggStrategy": + { + switch (key) { + case "AGG_PLAIN": + return 0; + case "AGG_SORTED": + return 1; + case "AGG_HASHED": + return 2; + case "AGG_MIXED": + return 3; + default: + throw new Error("Key not recognized in enum AggStrategy"); + } + } + case "AggSplit": + { + switch (key) { + case "AGGSPLIT_SIMPLE": + return 0; + case "AGGSPLIT_INITIAL_SERIAL": + return 1; + case "AGGSPLIT_FINAL_DESERIAL": + return 2; + default: + throw new Error("Key not recognized in enum AggSplit"); + } + } + case "SetOpCmd": + { + switch (key) { + case "SETOPCMD_INTERSECT": + return 0; + case "SETOPCMD_INTERSECT_ALL": + return 1; + case "SETOPCMD_EXCEPT": + return 2; + case "SETOPCMD_EXCEPT_ALL": + return 3; + default: + throw new Error("Key not recognized in enum SetOpCmd"); + } + } + case "SetOpStrategy": + { + switch (key) { + case "SETOP_SORTED": + return 0; + case "SETOP_HASHED": + return 1; + default: + throw new Error("Key not recognized in enum SetOpStrategy"); + } + } + case "OnConflictAction": + { + switch (key) { + case "ONCONFLICT_NONE": + return 0; + case "ONCONFLICT_NOTHING": + return 1; + case "ONCONFLICT_UPDATE": + return 2; + default: + throw new Error("Key not recognized in enum OnConflictAction"); + } + } + case "LimitOption": + { + switch (key) { + case "LIMIT_OPTION_DEFAULT": + return 0; + case "LIMIT_OPTION_COUNT": + return 1; + case "LIMIT_OPTION_WITH_TIES": + return 2; + default: + throw new Error("Key not recognized in enum LimitOption"); + } + } + case "LockClauseStrength": + { + switch (key) { + case "LCS_NONE": + return 0; + case "LCS_FORKEYSHARE": + return 1; + case "LCS_FORSHARE": + return 2; + case "LCS_FORNOKEYUPDATE": + return 3; + case "LCS_FORUPDATE": + return 4; + default: + throw new Error("Key not recognized in enum LockClauseStrength"); + } + } + case "LockWaitPolicy": + { + switch (key) { + case "LockWaitBlock": + return 0; + case "LockWaitSkip": + return 1; + case "LockWaitError": + return 2; + default: + throw new Error("Key not recognized in enum LockWaitPolicy"); + } + } + case "LockTupleMode": + { + switch (key) { + case "LockTupleKeyShare": + return 0; + case "LockTupleShare": + return 1; + case "LockTupleNoKeyExclusive": + return 2; + case "LockTupleExclusive": + return 3; + default: + throw new Error("Key not recognized in enum LockTupleMode"); + } + } + case "KeywordKind": + { + switch (key) { + case "NO_KEYWORD": + return 0; + case "UNRESERVED_KEYWORD": + return 1; + case "COL_NAME_KEYWORD": + return 2; + case "TYPE_FUNC_NAME_KEYWORD": + return 3; + case "RESERVED_KEYWORD": + return 4; + default: + throw new Error("Key not recognized in enum KeywordKind"); + } + } + case "Token": + { + switch (key) { + case "NUL": + return 0; + case "ASCII_36": + return 36; + case "ASCII_37": + return 37; + case "ASCII_40": + return 40; + case "ASCII_41": + return 41; + case "ASCII_42": + return 42; + case "ASCII_43": + return 43; + case "ASCII_44": + return 44; + case "ASCII_45": + return 45; + case "ASCII_46": + return 46; + case "ASCII_47": + return 47; + case "ASCII_58": + return 58; + case "ASCII_59": + return 59; + case "ASCII_60": + return 60; + case "ASCII_61": + return 61; + case "ASCII_62": + return 62; + case "ASCII_63": + return 63; + case "ASCII_91": + return 91; + case "ASCII_92": + return 92; + case "ASCII_93": + return 93; + case "ASCII_94": + return 94; + case "IDENT": + return 258; + case "UIDENT": + return 259; + case "FCONST": + return 260; + case "SCONST": + return 261; + case "USCONST": + return 262; + case "BCONST": + return 263; + case "XCONST": + return 264; + case "Op": + return 265; + case "ICONST": + return 266; + case "PARAM": + return 267; + case "TYPECAST": + return 268; + case "DOT_DOT": + return 269; + case "COLON_EQUALS": + return 270; + case "EQUALS_GREATER": + return 271; + case "LESS_EQUALS": + return 272; + case "GREATER_EQUALS": + return 273; + case "NOT_EQUALS": + return 274; + case "SQL_COMMENT": + return 275; + case "C_COMMENT": + return 276; + case "ABORT_P": + return 277; + case "ABSENT": + return 278; + case "ABSOLUTE_P": + return 279; + case "ACCESS": + return 280; + case "ACTION": + return 281; + case "ADD_P": + return 282; + case "ADMIN": + return 283; + case "AFTER": + return 284; + case "AGGREGATE": + return 285; + case "ALL": + return 286; + case "ALSO": + return 287; + case "ALTER": + return 288; + case "ALWAYS": + return 289; + case "ANALYSE": + return 290; + case "ANALYZE": + return 291; + case "AND": + return 292; + case "ANY": + return 293; + case "ARRAY": + return 294; + case "AS": + return 295; + case "ASC": + return 296; + case "ASENSITIVE": + return 297; + case "ASSERTION": + return 298; + case "ASSIGNMENT": + return 299; + case "ASYMMETRIC": + return 300; + case "ATOMIC": + return 301; + case "AT": + return 302; + case "ATTACH": + return 303; + case "ATTRIBUTE": + return 304; + case "AUTHORIZATION": + return 305; + case "BACKWARD": + return 306; + case "BEFORE": + return 307; + case "BEGIN_P": + return 308; + case "BETWEEN": + return 309; + case "BIGINT": + return 310; + case "BINARY": + return 311; + case "BIT": + return 312; + case "BOOLEAN_P": + return 313; + case "BOTH": + return 314; + case "BREADTH": + return 315; + case "BY": + return 316; + case "CACHE": + return 317; + case "CALL": + return 318; + case "CALLED": + return 319; + case "CASCADE": + return 320; + case "CASCADED": + return 321; + case "CASE": + return 322; + case "CAST": + return 323; + case "CATALOG_P": + return 324; + case "CHAIN": + return 325; + case "CHAR_P": + return 326; + case "CHARACTER": + return 327; + case "CHARACTERISTICS": + return 328; + case "CHECK": + return 329; + case "CHECKPOINT": + return 330; + case "CLASS": + return 331; + case "CLOSE": + return 332; + case "CLUSTER": + return 333; + case "COALESCE": + return 334; + case "COLLATE": + return 335; + case "COLLATION": + return 336; + case "COLUMN": + return 337; + case "COLUMNS": + return 338; + case "COMMENT": + return 339; + case "COMMENTS": + return 340; + case "COMMIT": + return 341; + case "COMMITTED": + return 342; + case "COMPRESSION": + return 343; + case "CONCURRENTLY": + return 344; + case "CONFIGURATION": + return 345; + case "CONFLICT": + return 346; + case "CONNECTION": + return 347; + case "CONSTRAINT": + return 348; + case "CONSTRAINTS": + return 349; + case "CONTENT_P": + return 350; + case "CONTINUE_P": + return 351; + case "CONVERSION_P": + return 352; + case "COPY": + return 353; + case "COST": + return 354; + case "CREATE": + return 355; + case "CROSS": + return 356; + case "CSV": + return 357; + case "CUBE": + return 358; + case "CURRENT_P": + return 359; + case "CURRENT_CATALOG": + return 360; + case "CURRENT_DATE": + return 361; + case "CURRENT_ROLE": + return 362; + case "CURRENT_SCHEMA": + return 363; + case "CURRENT_TIME": + return 364; + case "CURRENT_TIMESTAMP": + return 365; + case "CURRENT_USER": + return 366; + case "CURSOR": + return 367; + case "CYCLE": + return 368; + case "DATA_P": + return 369; + case "DATABASE": + return 370; + case "DAY_P": + return 371; + case "DEALLOCATE": + return 372; + case "DEC": + return 373; + case "DECIMAL_P": + return 374; + case "DECLARE": + return 375; + case "DEFAULT": + return 376; + case "DEFAULTS": + return 377; + case "DEFERRABLE": + return 378; + case "DEFERRED": + return 379; + case "DEFINER": + return 380; + case "DELETE_P": + return 381; + case "DELIMITER": + return 382; + case "DELIMITERS": + return 383; + case "DEPENDS": + return 384; + case "DEPTH": + return 385; + case "DESC": + return 386; + case "DETACH": + return 387; + case "DICTIONARY": + return 388; + case "DISABLE_P": + return 389; + case "DISCARD": + return 390; + case "DISTINCT": + return 391; + case "DO": + return 392; + case "DOCUMENT_P": + return 393; + case "DOMAIN_P": + return 394; + case "DOUBLE_P": + return 395; + case "DROP": + return 396; + case "EACH": + return 397; + case "ELSE": + return 398; + case "ENABLE_P": + return 399; + case "ENCODING": + return 400; + case "ENCRYPTED": + return 401; + case "END_P": + return 402; + case "ENUM_P": + return 403; + case "ESCAPE": + return 404; + case "EVENT": + return 405; + case "EXCEPT": + return 406; + case "EXCLUDE": + return 407; + case "EXCLUDING": + return 408; + case "EXCLUSIVE": + return 409; + case "EXECUTE": + return 410; + case "EXISTS": + return 411; + case "EXPLAIN": + return 412; + case "EXPRESSION": + return 413; + case "EXTENSION": + return 414; + case "EXTERNAL": + return 415; + case "EXTRACT": + return 416; + case "FALSE_P": + return 417; + case "FAMILY": + return 418; + case "FETCH": + return 419; + case "FILTER": + return 420; + case "FINALIZE": + return 421; + case "FIRST_P": + return 422; + case "FLOAT_P": + return 423; + case "FOLLOWING": + return 424; + case "FOR": + return 425; + case "FORCE": + return 426; + case "FOREIGN": + return 427; + case "FORMAT": + return 428; + case "FORWARD": + return 429; + case "FREEZE": + return 430; + case "FROM": + return 431; + case "FULL": + return 432; + case "FUNCTION": + return 433; + case "FUNCTIONS": + return 434; + case "GENERATED": + return 435; + case "GLOBAL": + return 436; + case "GRANT": + return 437; + case "GRANTED": + return 438; + case "GREATEST": + return 439; + case "GROUP_P": + return 440; + case "GROUPING": + return 441; + case "GROUPS": + return 442; + case "HANDLER": + return 443; + case "HAVING": + return 444; + case "HEADER_P": + return 445; + case "HOLD": + return 446; + case "HOUR_P": + return 447; + case "IDENTITY_P": + return 448; + case "IF_P": + return 449; + case "ILIKE": + return 450; + case "IMMEDIATE": + return 451; + case "IMMUTABLE": + return 452; + case "IMPLICIT_P": + return 453; + case "IMPORT_P": + return 454; + case "IN_P": + return 455; + case "INCLUDE": + return 456; + case "INCLUDING": + return 457; + case "INCREMENT": + return 458; + case "INDENT": + return 459; + case "INDEX": + return 460; + case "INDEXES": + return 461; + case "INHERIT": + return 462; + case "INHERITS": + return 463; + case "INITIALLY": + return 464; + case "INLINE_P": + return 465; + case "INNER_P": + return 466; + case "INOUT": + return 467; + case "INPUT_P": + return 468; + case "INSENSITIVE": + return 469; + case "INSERT": + return 470; + case "INSTEAD": + return 471; + case "INT_P": + return 472; + case "INTEGER": + return 473; + case "INTERSECT": + return 474; + case "INTERVAL": + return 475; + case "INTO": + return 476; + case "INVOKER": + return 477; + case "IS": + return 478; + case "ISNULL": + return 479; + case "ISOLATION": + return 480; + case "JOIN": + return 481; + case "JSON": + return 482; + case "JSON_ARRAY": + return 483; + case "JSON_ARRAYAGG": + return 484; + case "JSON_OBJECT": + return 485; + case "JSON_OBJECTAGG": + return 486; + case "KEY": + return 487; + case "KEYS": + return 488; + case "LABEL": + return 489; + case "LANGUAGE": + return 490; + case "LARGE_P": + return 491; + case "LAST_P": + return 492; + case "LATERAL_P": + return 493; + case "LEADING": + return 494; + case "LEAKPROOF": + return 495; + case "LEAST": + return 496; + case "LEFT": + return 497; + case "LEVEL": + return 498; + case "LIKE": + return 499; + case "LIMIT": + return 500; + case "LISTEN": + return 501; + case "LOAD": + return 502; + case "LOCAL": + return 503; + case "LOCALTIME": + return 504; + case "LOCALTIMESTAMP": + return 505; + case "LOCATION": + return 506; + case "LOCK_P": + return 507; + case "LOCKED": + return 508; + case "LOGGED": + return 509; + case "MAPPING": + return 510; + case "MATCH": + return 511; + case "MATCHED": + return 512; + case "MATERIALIZED": + return 513; + case "MAXVALUE": + return 514; + case "MERGE": + return 515; + case "METHOD": + return 516; + case "MINUTE_P": + return 517; + case "MINVALUE": + return 518; + case "MODE": + return 519; + case "MONTH_P": + return 520; + case "MOVE": + return 521; + case "NAME_P": + return 522; + case "NAMES": + return 523; + case "NATIONAL": + return 524; + case "NATURAL": + return 525; + case "NCHAR": + return 526; + case "NEW": + return 527; + case "NEXT": + return 528; + case "NFC": + return 529; + case "NFD": + return 530; + case "NFKC": + return 531; + case "NFKD": + return 532; + case "NO": + return 533; + case "NONE": + return 534; + case "NORMALIZE": + return 535; + case "NORMALIZED": + return 536; + case "NOT": + return 537; + case "NOTHING": + return 538; + case "NOTIFY": + return 539; + case "NOTNULL": + return 540; + case "NOWAIT": + return 541; + case "NULL_P": + return 542; + case "NULLIF": + return 543; + case "NULLS_P": + return 544; + case "NUMERIC": + return 545; + case "OBJECT_P": + return 546; + case "OF": + return 547; + case "OFF": + return 548; + case "OFFSET": + return 549; + case "OIDS": + return 550; + case "OLD": + return 551; + case "ON": + return 552; + case "ONLY": + return 553; + case "OPERATOR": + return 554; + case "OPTION": + return 555; + case "OPTIONS": + return 556; + case "OR": + return 557; + case "ORDER": + return 558; + case "ORDINALITY": + return 559; + case "OTHERS": + return 560; + case "OUT_P": + return 561; + case "OUTER_P": + return 562; + case "OVER": + return 563; + case "OVERLAPS": + return 564; + case "OVERLAY": + return 565; + case "OVERRIDING": + return 566; + case "OWNED": + return 567; + case "OWNER": + return 568; + case "PARALLEL": + return 569; + case "PARAMETER": + return 570; + case "PARSER": + return 571; + case "PARTIAL": + return 572; + case "PARTITION": + return 573; + case "PASSING": + return 574; + case "PASSWORD": + return 575; + case "PLACING": + return 576; + case "PLANS": + return 577; + case "POLICY": + return 578; + case "POSITION": + return 579; + case "PRECEDING": + return 580; + case "PRECISION": + return 581; + case "PRESERVE": + return 582; + case "PREPARE": + return 583; + case "PREPARED": + return 584; + case "PRIMARY": + return 585; + case "PRIOR": + return 586; + case "PRIVILEGES": + return 587; + case "PROCEDURAL": + return 588; + case "PROCEDURE": + return 589; + case "PROCEDURES": + return 590; + case "PROGRAM": + return 591; + case "PUBLICATION": + return 592; + case "QUOTE": + return 593; + case "RANGE": + return 594; + case "READ": + return 595; + case "REAL": + return 596; + case "REASSIGN": + return 597; + case "RECHECK": + return 598; + case "RECURSIVE": + return 599; + case "REF_P": + return 600; + case "REFERENCES": + return 601; + case "REFERENCING": + return 602; + case "REFRESH": + return 603; + case "REINDEX": + return 604; + case "RELATIVE_P": + return 605; + case "RELEASE": + return 606; + case "RENAME": + return 607; + case "REPEATABLE": + return 608; + case "REPLACE": + return 609; + case "REPLICA": + return 610; + case "RESET": + return 611; + case "RESTART": + return 612; + case "RESTRICT": + return 613; + case "RETURN": + return 614; + case "RETURNING": + return 615; + case "RETURNS": + return 616; + case "REVOKE": + return 617; + case "RIGHT": + return 618; + case "ROLE": + return 619; + case "ROLLBACK": + return 620; + case "ROLLUP": + return 621; + case "ROUTINE": + return 622; + case "ROUTINES": + return 623; + case "ROW": + return 624; + case "ROWS": + return 625; + case "RULE": + return 626; + case "SAVEPOINT": + return 627; + case "SCALAR": + return 628; + case "SCHEMA": + return 629; + case "SCHEMAS": + return 630; + case "SCROLL": + return 631; + case "SEARCH": + return 632; + case "SECOND_P": + return 633; + case "SECURITY": + return 634; + case "SELECT": + return 635; + case "SEQUENCE": + return 636; + case "SEQUENCES": + return 637; + case "SERIALIZABLE": + return 638; + case "SERVER": + return 639; + case "SESSION": + return 640; + case "SESSION_USER": + return 641; + case "SET": + return 642; + case "SETS": + return 643; + case "SETOF": + return 644; + case "SHARE": + return 645; + case "SHOW": + return 646; + case "SIMILAR": + return 647; + case "SIMPLE": + return 648; + case "SKIP": + return 649; + case "SMALLINT": + return 650; + case "SNAPSHOT": + return 651; + case "SOME": + return 652; + case "SQL_P": + return 653; + case "STABLE": + return 654; + case "STANDALONE_P": + return 655; + case "START": + return 656; + case "STATEMENT": + return 657; + case "STATISTICS": + return 658; + case "STDIN": + return 659; + case "STDOUT": + return 660; + case "STORAGE": + return 661; + case "STORED": + return 662; + case "STRICT_P": + return 663; + case "STRIP_P": + return 664; + case "SUBSCRIPTION": + return 665; + case "SUBSTRING": + return 666; + case "SUPPORT": + return 667; + case "SYMMETRIC": + return 668; + case "SYSID": + return 669; + case "SYSTEM_P": + return 670; + case "SYSTEM_USER": + return 671; + case "TABLE": + return 672; + case "TABLES": + return 673; + case "TABLESAMPLE": + return 674; + case "TABLESPACE": + return 675; + case "TEMP": + return 676; + case "TEMPLATE": + return 677; + case "TEMPORARY": + return 678; + case "TEXT_P": + return 679; + case "THEN": + return 680; + case "TIES": + return 681; + case "TIME": + return 682; + case "TIMESTAMP": + return 683; + case "TO": + return 684; + case "TRAILING": + return 685; + case "TRANSACTION": + return 686; + case "TRANSFORM": + return 687; + case "TREAT": + return 688; + case "TRIGGER": + return 689; + case "TRIM": + return 690; + case "TRUE_P": + return 691; + case "TRUNCATE": + return 692; + case "TRUSTED": + return 693; + case "TYPE_P": + return 694; + case "TYPES_P": + return 695; + case "UESCAPE": + return 696; + case "UNBOUNDED": + return 697; + case "UNCOMMITTED": + return 698; + case "UNENCRYPTED": + return 699; + case "UNION": + return 700; + case "UNIQUE": + return 701; + case "UNKNOWN": + return 702; + case "UNLISTEN": + return 703; + case "UNLOGGED": + return 704; + case "UNTIL": + return 705; + case "UPDATE": + return 706; + case "USER": + return 707; + case "USING": + return 708; + case "VACUUM": + return 709; + case "VALID": + return 710; + case "VALIDATE": + return 711; + case "VALIDATOR": + return 712; + case "VALUE_P": + return 713; + case "VALUES": + return 714; + case "VARCHAR": + return 715; + case "VARIADIC": + return 716; + case "VARYING": + return 717; + case "VERBOSE": + return 718; + case "VERSION_P": + return 719; + case "VIEW": + return 720; + case "VIEWS": + return 721; + case "VOLATILE": + return 722; + case "WHEN": + return 723; + case "WHERE": + return 724; + case "WHITESPACE_P": + return 725; + case "WINDOW": + return 726; + case "WITH": + return 727; + case "WITHIN": + return 728; + case "WITHOUT": + return 729; + case "WORK": + return 730; + case "WRAPPER": + return 731; + case "WRITE": + return 732; + case "XML_P": + return 733; + case "XMLATTRIBUTES": + return 734; + case "XMLCONCAT": + return 735; + case "XMLELEMENT": + return 736; + case "XMLEXISTS": + return 737; + case "XMLFOREST": + return 738; + case "XMLNAMESPACES": + return 739; + case "XMLPARSE": + return 740; + case "XMLPI": + return 741; + case "XMLROOT": + return 742; + case "XMLSERIALIZE": + return 743; + case "XMLTABLE": + return 744; + case "YEAR_P": + return 745; + case "YES_P": + return 746; + case "ZONE": + return 747; + case "FORMAT_LA": + return 748; + case "NOT_LA": + return 749; + case "NULLS_LA": + return 750; + case "WITH_LA": + return 751; + case "WITHOUT_LA": + return 752; + case "MODE_TYPE_NAME": + return 753; + case "MODE_PLPGSQL_EXPR": + return 754; + case "MODE_PLPGSQL_ASSIGN1": + return 755; + case "MODE_PLPGSQL_ASSIGN2": + return 756; + case "MODE_PLPGSQL_ASSIGN3": + return 757; + case "UMINUS": + return 758; + default: + throw new Error("Key not recognized in enum Token"); + } + } + default: + throw new Error("Enum type not recognized"); + } +}; \ No newline at end of file diff --git a/__fixtures__/output/utils/enums/custom-filenames/custom-string.ts b/__fixtures__/output/utils/enums/custom-filenames/custom-string.ts new file mode 100644 index 00000000..e433dd61 --- /dev/null +++ b/__fixtures__/output/utils/enums/custom-filenames/custom-string.ts @@ -0,0 +1,2346 @@ +/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type EnumType = "OverridingKind" | "QuerySource" | "SortByDir" | "SortByNulls" | "SetQuantifier" | "A_Expr_Kind" | "RoleSpecType" | "TableLikeOption" | "DefElemAction" | "PartitionStrategy" | "PartitionRangeDatumKind" | "RTEKind" | "WCOKind" | "GroupingSetKind" | "CTEMaterialize" | "SetOperation" | "ObjectType" | "DropBehavior" | "AlterTableType" | "GrantTargetType" | "VariableSetKind" | "ConstrType" | "ImportForeignSchemaType" | "RoleStmtType" | "FetchDirection" | "FunctionParameterMode" | "TransactionStmtKind" | "ViewCheckOption" | "DiscardMode" | "ReindexObjectType" | "AlterTSConfigType" | "PublicationObjSpecType" | "AlterPublicationAction" | "AlterSubscriptionType" | "OnCommitAction" | "ParamKind" | "CoercionContext" | "CoercionForm" | "BoolExprType" | "SubLinkType" | "RowCompareType" | "MinMaxOp" | "SQLValueFunctionOp" | "XmlExprOp" | "XmlOptionType" | "JsonEncoding" | "JsonFormatType" | "JsonConstructorType" | "JsonValueType" | "NullTestType" | "BoolTestType" | "CmdType" | "JoinType" | "AggStrategy" | "AggSplit" | "SetOpCmd" | "SetOpStrategy" | "OnConflictAction" | "LimitOption" | "LockClauseStrength" | "LockWaitPolicy" | "LockTupleMode" | "KeywordKind" | "Token"; +export const getEnumString = (enumType: EnumType, key: number): string => { + switch (enumType) { + case "OverridingKind": + { + switch (key) { + case 0: + return "OVERRIDING_NOT_SET"; + case 1: + return "OVERRIDING_USER_VALUE"; + case 2: + return "OVERRIDING_SYSTEM_VALUE"; + default: + throw new Error("Value not recognized in enum OverridingKind"); + } + } + case "QuerySource": + { + switch (key) { + case 0: + return "QSRC_ORIGINAL"; + case 1: + return "QSRC_PARSER"; + case 2: + return "QSRC_INSTEAD_RULE"; + case 3: + return "QSRC_QUAL_INSTEAD_RULE"; + case 4: + return "QSRC_NON_INSTEAD_RULE"; + default: + throw new Error("Value not recognized in enum QuerySource"); + } + } + case "SortByDir": + { + switch (key) { + case 0: + return "SORTBY_DEFAULT"; + case 1: + return "SORTBY_ASC"; + case 2: + return "SORTBY_DESC"; + case 3: + return "SORTBY_USING"; + default: + throw new Error("Value not recognized in enum SortByDir"); + } + } + case "SortByNulls": + { + switch (key) { + case 0: + return "SORTBY_NULLS_DEFAULT"; + case 1: + return "SORTBY_NULLS_FIRST"; + case 2: + return "SORTBY_NULLS_LAST"; + default: + throw new Error("Value not recognized in enum SortByNulls"); + } + } + case "SetQuantifier": + { + switch (key) { + case 0: + return "SET_QUANTIFIER_DEFAULT"; + case 1: + return "SET_QUANTIFIER_ALL"; + case 2: + return "SET_QUANTIFIER_DISTINCT"; + default: + throw new Error("Value not recognized in enum SetQuantifier"); + } + } + case "A_Expr_Kind": + { + switch (key) { + case 0: + return "AEXPR_OP"; + case 1: + return "AEXPR_OP_ANY"; + case 2: + return "AEXPR_OP_ALL"; + case 3: + return "AEXPR_DISTINCT"; + case 4: + return "AEXPR_NOT_DISTINCT"; + case 5: + return "AEXPR_NULLIF"; + case 6: + return "AEXPR_IN"; + case 7: + return "AEXPR_LIKE"; + case 8: + return "AEXPR_ILIKE"; + case 9: + return "AEXPR_SIMILAR"; + case 10: + return "AEXPR_BETWEEN"; + case 11: + return "AEXPR_NOT_BETWEEN"; + case 12: + return "AEXPR_BETWEEN_SYM"; + case 13: + return "AEXPR_NOT_BETWEEN_SYM"; + default: + throw new Error("Value not recognized in enum A_Expr_Kind"); + } + } + case "RoleSpecType": + { + switch (key) { + case 0: + return "ROLESPEC_CSTRING"; + case 1: + return "ROLESPEC_CURRENT_ROLE"; + case 2: + return "ROLESPEC_CURRENT_USER"; + case 3: + return "ROLESPEC_SESSION_USER"; + case 4: + return "ROLESPEC_PUBLIC"; + default: + throw new Error("Value not recognized in enum RoleSpecType"); + } + } + case "TableLikeOption": + { + switch (key) { + case 0: + return "CREATE_TABLE_LIKE_COMMENTS"; + case 1: + return "CREATE_TABLE_LIKE_COMPRESSION"; + case 2: + return "CREATE_TABLE_LIKE_CONSTRAINTS"; + case 3: + return "CREATE_TABLE_LIKE_DEFAULTS"; + case 4: + return "CREATE_TABLE_LIKE_GENERATED"; + case 5: + return "CREATE_TABLE_LIKE_IDENTITY"; + case 6: + return "CREATE_TABLE_LIKE_INDEXES"; + case 7: + return "CREATE_TABLE_LIKE_STATISTICS"; + case 8: + return "CREATE_TABLE_LIKE_STORAGE"; + case 9: + return "CREATE_TABLE_LIKE_ALL"; + default: + throw new Error("Value not recognized in enum TableLikeOption"); + } + } + case "DefElemAction": + { + switch (key) { + case 0: + return "DEFELEM_UNSPEC"; + case 1: + return "DEFELEM_SET"; + case 2: + return "DEFELEM_ADD"; + case 3: + return "DEFELEM_DROP"; + default: + throw new Error("Value not recognized in enum DefElemAction"); + } + } + case "PartitionStrategy": + { + switch (key) { + case 0: + return "PARTITION_STRATEGY_LIST"; + case 1: + return "PARTITION_STRATEGY_RANGE"; + case 2: + return "PARTITION_STRATEGY_HASH"; + default: + throw new Error("Value not recognized in enum PartitionStrategy"); + } + } + case "PartitionRangeDatumKind": + { + switch (key) { + case 0: + return "PARTITION_RANGE_DATUM_MINVALUE"; + case 1: + return "PARTITION_RANGE_DATUM_VALUE"; + case 2: + return "PARTITION_RANGE_DATUM_MAXVALUE"; + default: + throw new Error("Value not recognized in enum PartitionRangeDatumKind"); + } + } + case "RTEKind": + { + switch (key) { + case 0: + return "RTE_RELATION"; + case 1: + return "RTE_SUBQUERY"; + case 2: + return "RTE_JOIN"; + case 3: + return "RTE_FUNCTION"; + case 4: + return "RTE_TABLEFUNC"; + case 5: + return "RTE_VALUES"; + case 6: + return "RTE_CTE"; + case 7: + return "RTE_NAMEDTUPLESTORE"; + case 8: + return "RTE_RESULT"; + default: + throw new Error("Value not recognized in enum RTEKind"); + } + } + case "WCOKind": + { + switch (key) { + case 0: + return "WCO_VIEW_CHECK"; + case 1: + return "WCO_RLS_INSERT_CHECK"; + case 2: + return "WCO_RLS_UPDATE_CHECK"; + case 3: + return "WCO_RLS_CONFLICT_CHECK"; + case 4: + return "WCO_RLS_MERGE_UPDATE_CHECK"; + case 5: + return "WCO_RLS_MERGE_DELETE_CHECK"; + default: + throw new Error("Value not recognized in enum WCOKind"); + } + } + case "GroupingSetKind": + { + switch (key) { + case 0: + return "GROUPING_SET_EMPTY"; + case 1: + return "GROUPING_SET_SIMPLE"; + case 2: + return "GROUPING_SET_ROLLUP"; + case 3: + return "GROUPING_SET_CUBE"; + case 4: + return "GROUPING_SET_SETS"; + default: + throw new Error("Value not recognized in enum GroupingSetKind"); + } + } + case "CTEMaterialize": + { + switch (key) { + case 0: + return "CTEMaterializeDefault"; + case 1: + return "CTEMaterializeAlways"; + case 2: + return "CTEMaterializeNever"; + default: + throw new Error("Value not recognized in enum CTEMaterialize"); + } + } + case "SetOperation": + { + switch (key) { + case 0: + return "SETOP_NONE"; + case 1: + return "SETOP_UNION"; + case 2: + return "SETOP_INTERSECT"; + case 3: + return "SETOP_EXCEPT"; + default: + throw new Error("Value not recognized in enum SetOperation"); + } + } + case "ObjectType": + { + switch (key) { + case 0: + return "OBJECT_ACCESS_METHOD"; + case 1: + return "OBJECT_AGGREGATE"; + case 2: + return "OBJECT_AMOP"; + case 3: + return "OBJECT_AMPROC"; + case 4: + return "OBJECT_ATTRIBUTE"; + case 5: + return "OBJECT_CAST"; + case 6: + return "OBJECT_COLUMN"; + case 7: + return "OBJECT_COLLATION"; + case 8: + return "OBJECT_CONVERSION"; + case 9: + return "OBJECT_DATABASE"; + case 10: + return "OBJECT_DEFAULT"; + case 11: + return "OBJECT_DEFACL"; + case 12: + return "OBJECT_DOMAIN"; + case 13: + return "OBJECT_DOMCONSTRAINT"; + case 14: + return "OBJECT_EVENT_TRIGGER"; + case 15: + return "OBJECT_EXTENSION"; + case 16: + return "OBJECT_FDW"; + case 17: + return "OBJECT_FOREIGN_SERVER"; + case 18: + return "OBJECT_FOREIGN_TABLE"; + case 19: + return "OBJECT_FUNCTION"; + case 20: + return "OBJECT_INDEX"; + case 21: + return "OBJECT_LANGUAGE"; + case 22: + return "OBJECT_LARGEOBJECT"; + case 23: + return "OBJECT_MATVIEW"; + case 24: + return "OBJECT_OPCLASS"; + case 25: + return "OBJECT_OPERATOR"; + case 26: + return "OBJECT_OPFAMILY"; + case 27: + return "OBJECT_PARAMETER_ACL"; + case 28: + return "OBJECT_POLICY"; + case 29: + return "OBJECT_PROCEDURE"; + case 30: + return "OBJECT_PUBLICATION"; + case 31: + return "OBJECT_PUBLICATION_NAMESPACE"; + case 32: + return "OBJECT_PUBLICATION_REL"; + case 33: + return "OBJECT_ROLE"; + case 34: + return "OBJECT_ROUTINE"; + case 35: + return "OBJECT_RULE"; + case 36: + return "OBJECT_SCHEMA"; + case 37: + return "OBJECT_SEQUENCE"; + case 38: + return "OBJECT_SUBSCRIPTION"; + case 39: + return "OBJECT_STATISTIC_EXT"; + case 40: + return "OBJECT_TABCONSTRAINT"; + case 41: + return "OBJECT_TABLE"; + case 42: + return "OBJECT_TABLESPACE"; + case 43: + return "OBJECT_TRANSFORM"; + case 44: + return "OBJECT_TRIGGER"; + case 45: + return "OBJECT_TSCONFIGURATION"; + case 46: + return "OBJECT_TSDICTIONARY"; + case 47: + return "OBJECT_TSPARSER"; + case 48: + return "OBJECT_TSTEMPLATE"; + case 49: + return "OBJECT_TYPE"; + case 50: + return "OBJECT_USER_MAPPING"; + case 51: + return "OBJECT_VIEW"; + default: + throw new Error("Value not recognized in enum ObjectType"); + } + } + case "DropBehavior": + { + switch (key) { + case 0: + return "DROP_RESTRICT"; + case 1: + return "DROP_CASCADE"; + default: + throw new Error("Value not recognized in enum DropBehavior"); + } + } + case "AlterTableType": + { + switch (key) { + case 0: + return "AT_AddColumn"; + case 1: + return "AT_AddColumnToView"; + case 2: + return "AT_ColumnDefault"; + case 3: + return "AT_CookedColumnDefault"; + case 4: + return "AT_DropNotNull"; + case 5: + return "AT_SetNotNull"; + case 6: + return "AT_DropExpression"; + case 7: + return "AT_CheckNotNull"; + case 8: + return "AT_SetStatistics"; + case 9: + return "AT_SetOptions"; + case 10: + return "AT_ResetOptions"; + case 11: + return "AT_SetStorage"; + case 12: + return "AT_SetCompression"; + case 13: + return "AT_DropColumn"; + case 14: + return "AT_AddIndex"; + case 15: + return "AT_ReAddIndex"; + case 16: + return "AT_AddConstraint"; + case 17: + return "AT_ReAddConstraint"; + case 18: + return "AT_ReAddDomainConstraint"; + case 19: + return "AT_AlterConstraint"; + case 20: + return "AT_ValidateConstraint"; + case 21: + return "AT_AddIndexConstraint"; + case 22: + return "AT_DropConstraint"; + case 23: + return "AT_ReAddComment"; + case 24: + return "AT_AlterColumnType"; + case 25: + return "AT_AlterColumnGenericOptions"; + case 26: + return "AT_ChangeOwner"; + case 27: + return "AT_ClusterOn"; + case 28: + return "AT_DropCluster"; + case 29: + return "AT_SetLogged"; + case 30: + return "AT_SetUnLogged"; + case 31: + return "AT_DropOids"; + case 32: + return "AT_SetAccessMethod"; + case 33: + return "AT_SetTableSpace"; + case 34: + return "AT_SetRelOptions"; + case 35: + return "AT_ResetRelOptions"; + case 36: + return "AT_ReplaceRelOptions"; + case 37: + return "AT_EnableTrig"; + case 38: + return "AT_EnableAlwaysTrig"; + case 39: + return "AT_EnableReplicaTrig"; + case 40: + return "AT_DisableTrig"; + case 41: + return "AT_EnableTrigAll"; + case 42: + return "AT_DisableTrigAll"; + case 43: + return "AT_EnableTrigUser"; + case 44: + return "AT_DisableTrigUser"; + case 45: + return "AT_EnableRule"; + case 46: + return "AT_EnableAlwaysRule"; + case 47: + return "AT_EnableReplicaRule"; + case 48: + return "AT_DisableRule"; + case 49: + return "AT_AddInherit"; + case 50: + return "AT_DropInherit"; + case 51: + return "AT_AddOf"; + case 52: + return "AT_DropOf"; + case 53: + return "AT_ReplicaIdentity"; + case 54: + return "AT_EnableRowSecurity"; + case 55: + return "AT_DisableRowSecurity"; + case 56: + return "AT_ForceRowSecurity"; + case 57: + return "AT_NoForceRowSecurity"; + case 58: + return "AT_GenericOptions"; + case 59: + return "AT_AttachPartition"; + case 60: + return "AT_DetachPartition"; + case 61: + return "AT_DetachPartitionFinalize"; + case 62: + return "AT_AddIdentity"; + case 63: + return "AT_SetIdentity"; + case 64: + return "AT_DropIdentity"; + case 65: + return "AT_ReAddStatistics"; + default: + throw new Error("Value not recognized in enum AlterTableType"); + } + } + case "GrantTargetType": + { + switch (key) { + case 0: + return "ACL_TARGET_OBJECT"; + case 1: + return "ACL_TARGET_ALL_IN_SCHEMA"; + case 2: + return "ACL_TARGET_DEFAULTS"; + default: + throw new Error("Value not recognized in enum GrantTargetType"); + } + } + case "VariableSetKind": + { + switch (key) { + case 0: + return "VAR_SET_VALUE"; + case 1: + return "VAR_SET_DEFAULT"; + case 2: + return "VAR_SET_CURRENT"; + case 3: + return "VAR_SET_MULTI"; + case 4: + return "VAR_RESET"; + case 5: + return "VAR_RESET_ALL"; + default: + throw new Error("Value not recognized in enum VariableSetKind"); + } + } + case "ConstrType": + { + switch (key) { + case 0: + return "CONSTR_NULL"; + case 1: + return "CONSTR_NOTNULL"; + case 2: + return "CONSTR_DEFAULT"; + case 3: + return "CONSTR_IDENTITY"; + case 4: + return "CONSTR_GENERATED"; + case 5: + return "CONSTR_CHECK"; + case 6: + return "CONSTR_PRIMARY"; + case 7: + return "CONSTR_UNIQUE"; + case 8: + return "CONSTR_EXCLUSION"; + case 9: + return "CONSTR_FOREIGN"; + case 10: + return "CONSTR_ATTR_DEFERRABLE"; + case 11: + return "CONSTR_ATTR_NOT_DEFERRABLE"; + case 12: + return "CONSTR_ATTR_DEFERRED"; + case 13: + return "CONSTR_ATTR_IMMEDIATE"; + default: + throw new Error("Value not recognized in enum ConstrType"); + } + } + case "ImportForeignSchemaType": + { + switch (key) { + case 0: + return "FDW_IMPORT_SCHEMA_ALL"; + case 1: + return "FDW_IMPORT_SCHEMA_LIMIT_TO"; + case 2: + return "FDW_IMPORT_SCHEMA_EXCEPT"; + default: + throw new Error("Value not recognized in enum ImportForeignSchemaType"); + } + } + case "RoleStmtType": + { + switch (key) { + case 0: + return "ROLESTMT_ROLE"; + case 1: + return "ROLESTMT_USER"; + case 2: + return "ROLESTMT_GROUP"; + default: + throw new Error("Value not recognized in enum RoleStmtType"); + } + } + case "FetchDirection": + { + switch (key) { + case 0: + return "FETCH_FORWARD"; + case 1: + return "FETCH_BACKWARD"; + case 2: + return "FETCH_ABSOLUTE"; + case 3: + return "FETCH_RELATIVE"; + default: + throw new Error("Value not recognized in enum FetchDirection"); + } + } + case "FunctionParameterMode": + { + switch (key) { + case 0: + return "FUNC_PARAM_IN"; + case 1: + return "FUNC_PARAM_OUT"; + case 2: + return "FUNC_PARAM_INOUT"; + case 3: + return "FUNC_PARAM_VARIADIC"; + case 4: + return "FUNC_PARAM_TABLE"; + case 5: + return "FUNC_PARAM_DEFAULT"; + default: + throw new Error("Value not recognized in enum FunctionParameterMode"); + } + } + case "TransactionStmtKind": + { + switch (key) { + case 0: + return "TRANS_STMT_BEGIN"; + case 1: + return "TRANS_STMT_START"; + case 2: + return "TRANS_STMT_COMMIT"; + case 3: + return "TRANS_STMT_ROLLBACK"; + case 4: + return "TRANS_STMT_SAVEPOINT"; + case 5: + return "TRANS_STMT_RELEASE"; + case 6: + return "TRANS_STMT_ROLLBACK_TO"; + case 7: + return "TRANS_STMT_PREPARE"; + case 8: + return "TRANS_STMT_COMMIT_PREPARED"; + case 9: + return "TRANS_STMT_ROLLBACK_PREPARED"; + default: + throw new Error("Value not recognized in enum TransactionStmtKind"); + } + } + case "ViewCheckOption": + { + switch (key) { + case 0: + return "NO_CHECK_OPTION"; + case 1: + return "LOCAL_CHECK_OPTION"; + case 2: + return "CASCADED_CHECK_OPTION"; + default: + throw new Error("Value not recognized in enum ViewCheckOption"); + } + } + case "DiscardMode": + { + switch (key) { + case 0: + return "DISCARD_ALL"; + case 1: + return "DISCARD_PLANS"; + case 2: + return "DISCARD_SEQUENCES"; + case 3: + return "DISCARD_TEMP"; + default: + throw new Error("Value not recognized in enum DiscardMode"); + } + } + case "ReindexObjectType": + { + switch (key) { + case 0: + return "REINDEX_OBJECT_INDEX"; + case 1: + return "REINDEX_OBJECT_TABLE"; + case 2: + return "REINDEX_OBJECT_SCHEMA"; + case 3: + return "REINDEX_OBJECT_SYSTEM"; + case 4: + return "REINDEX_OBJECT_DATABASE"; + default: + throw new Error("Value not recognized in enum ReindexObjectType"); + } + } + case "AlterTSConfigType": + { + switch (key) { + case 0: + return "ALTER_TSCONFIG_ADD_MAPPING"; + case 1: + return "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN"; + case 2: + return "ALTER_TSCONFIG_REPLACE_DICT"; + case 3: + return "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN"; + case 4: + return "ALTER_TSCONFIG_DROP_MAPPING"; + default: + throw new Error("Value not recognized in enum AlterTSConfigType"); + } + } + case "PublicationObjSpecType": + { + switch (key) { + case 0: + return "PUBLICATIONOBJ_TABLE"; + case 1: + return "PUBLICATIONOBJ_TABLES_IN_SCHEMA"; + case 2: + return "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA"; + case 3: + return "PUBLICATIONOBJ_CONTINUATION"; + default: + throw new Error("Value not recognized in enum PublicationObjSpecType"); + } + } + case "AlterPublicationAction": + { + switch (key) { + case 0: + return "AP_AddObjects"; + case 1: + return "AP_DropObjects"; + case 2: + return "AP_SetObjects"; + default: + throw new Error("Value not recognized in enum AlterPublicationAction"); + } + } + case "AlterSubscriptionType": + { + switch (key) { + case 0: + return "ALTER_SUBSCRIPTION_OPTIONS"; + case 1: + return "ALTER_SUBSCRIPTION_CONNECTION"; + case 2: + return "ALTER_SUBSCRIPTION_SET_PUBLICATION"; + case 3: + return "ALTER_SUBSCRIPTION_ADD_PUBLICATION"; + case 4: + return "ALTER_SUBSCRIPTION_DROP_PUBLICATION"; + case 5: + return "ALTER_SUBSCRIPTION_REFRESH"; + case 6: + return "ALTER_SUBSCRIPTION_ENABLED"; + case 7: + return "ALTER_SUBSCRIPTION_SKIP"; + default: + throw new Error("Value not recognized in enum AlterSubscriptionType"); + } + } + case "OnCommitAction": + { + switch (key) { + case 0: + return "ONCOMMIT_NOOP"; + case 1: + return "ONCOMMIT_PRESERVE_ROWS"; + case 2: + return "ONCOMMIT_DELETE_ROWS"; + case 3: + return "ONCOMMIT_DROP"; + default: + throw new Error("Value not recognized in enum OnCommitAction"); + } + } + case "ParamKind": + { + switch (key) { + case 0: + return "PARAM_EXTERN"; + case 1: + return "PARAM_EXEC"; + case 2: + return "PARAM_SUBLINK"; + case 3: + return "PARAM_MULTIEXPR"; + default: + throw new Error("Value not recognized in enum ParamKind"); + } + } + case "CoercionContext": + { + switch (key) { + case 0: + return "COERCION_IMPLICIT"; + case 1: + return "COERCION_ASSIGNMENT"; + case 2: + return "COERCION_PLPGSQL"; + case 3: + return "COERCION_EXPLICIT"; + default: + throw new Error("Value not recognized in enum CoercionContext"); + } + } + case "CoercionForm": + { + switch (key) { + case 0: + return "COERCE_EXPLICIT_CALL"; + case 1: + return "COERCE_EXPLICIT_CAST"; + case 2: + return "COERCE_IMPLICIT_CAST"; + case 3: + return "COERCE_SQL_SYNTAX"; + default: + throw new Error("Value not recognized in enum CoercionForm"); + } + } + case "BoolExprType": + { + switch (key) { + case 0: + return "AND_EXPR"; + case 1: + return "OR_EXPR"; + case 2: + return "NOT_EXPR"; + default: + throw new Error("Value not recognized in enum BoolExprType"); + } + } + case "SubLinkType": + { + switch (key) { + case 0: + return "EXISTS_SUBLINK"; + case 1: + return "ALL_SUBLINK"; + case 2: + return "ANY_SUBLINK"; + case 3: + return "ROWCOMPARE_SUBLINK"; + case 4: + return "EXPR_SUBLINK"; + case 5: + return "MULTIEXPR_SUBLINK"; + case 6: + return "ARRAY_SUBLINK"; + case 7: + return "CTE_SUBLINK"; + default: + throw new Error("Value not recognized in enum SubLinkType"); + } + } + case "RowCompareType": + { + switch (key) { + case 0: + return "ROWCOMPARE_LT"; + case 1: + return "ROWCOMPARE_LE"; + case 2: + return "ROWCOMPARE_EQ"; + case 3: + return "ROWCOMPARE_GE"; + case 4: + return "ROWCOMPARE_GT"; + case 5: + return "ROWCOMPARE_NE"; + default: + throw new Error("Value not recognized in enum RowCompareType"); + } + } + case "MinMaxOp": + { + switch (key) { + case 0: + return "IS_GREATEST"; + case 1: + return "IS_LEAST"; + default: + throw new Error("Value not recognized in enum MinMaxOp"); + } + } + case "SQLValueFunctionOp": + { + switch (key) { + case 0: + return "SVFOP_CURRENT_DATE"; + case 1: + return "SVFOP_CURRENT_TIME"; + case 2: + return "SVFOP_CURRENT_TIME_N"; + case 3: + return "SVFOP_CURRENT_TIMESTAMP"; + case 4: + return "SVFOP_CURRENT_TIMESTAMP_N"; + case 5: + return "SVFOP_LOCALTIME"; + case 6: + return "SVFOP_LOCALTIME_N"; + case 7: + return "SVFOP_LOCALTIMESTAMP"; + case 8: + return "SVFOP_LOCALTIMESTAMP_N"; + case 9: + return "SVFOP_CURRENT_ROLE"; + case 10: + return "SVFOP_CURRENT_USER"; + case 11: + return "SVFOP_USER"; + case 12: + return "SVFOP_SESSION_USER"; + case 13: + return "SVFOP_CURRENT_CATALOG"; + case 14: + return "SVFOP_CURRENT_SCHEMA"; + default: + throw new Error("Value not recognized in enum SQLValueFunctionOp"); + } + } + case "XmlExprOp": + { + switch (key) { + case 0: + return "IS_XMLCONCAT"; + case 1: + return "IS_XMLELEMENT"; + case 2: + return "IS_XMLFOREST"; + case 3: + return "IS_XMLPARSE"; + case 4: + return "IS_XMLPI"; + case 5: + return "IS_XMLROOT"; + case 6: + return "IS_XMLSERIALIZE"; + case 7: + return "IS_DOCUMENT"; + default: + throw new Error("Value not recognized in enum XmlExprOp"); + } + } + case "XmlOptionType": + { + switch (key) { + case 0: + return "XMLOPTION_DOCUMENT"; + case 1: + return "XMLOPTION_CONTENT"; + default: + throw new Error("Value not recognized in enum XmlOptionType"); + } + } + case "JsonEncoding": + { + switch (key) { + case 0: + return "JS_ENC_DEFAULT"; + case 1: + return "JS_ENC_UTF8"; + case 2: + return "JS_ENC_UTF16"; + case 3: + return "JS_ENC_UTF32"; + default: + throw new Error("Value not recognized in enum JsonEncoding"); + } + } + case "JsonFormatType": + { + switch (key) { + case 0: + return "JS_FORMAT_DEFAULT"; + case 1: + return "JS_FORMAT_JSON"; + case 2: + return "JS_FORMAT_JSONB"; + default: + throw new Error("Value not recognized in enum JsonFormatType"); + } + } + case "JsonConstructorType": + { + switch (key) { + case 0: + return "JSCTOR_JSON_OBJECT"; + case 1: + return "JSCTOR_JSON_ARRAY"; + case 2: + return "JSCTOR_JSON_OBJECTAGG"; + case 3: + return "JSCTOR_JSON_ARRAYAGG"; + default: + throw new Error("Value not recognized in enum JsonConstructorType"); + } + } + case "JsonValueType": + { + switch (key) { + case 0: + return "JS_TYPE_ANY"; + case 1: + return "JS_TYPE_OBJECT"; + case 2: + return "JS_TYPE_ARRAY"; + case 3: + return "JS_TYPE_SCALAR"; + default: + throw new Error("Value not recognized in enum JsonValueType"); + } + } + case "NullTestType": + { + switch (key) { + case 0: + return "IS_NULL"; + case 1: + return "IS_NOT_NULL"; + default: + throw new Error("Value not recognized in enum NullTestType"); + } + } + case "BoolTestType": + { + switch (key) { + case 0: + return "IS_TRUE"; + case 1: + return "IS_NOT_TRUE"; + case 2: + return "IS_FALSE"; + case 3: + return "IS_NOT_FALSE"; + case 4: + return "IS_UNKNOWN"; + case 5: + return "IS_NOT_UNKNOWN"; + default: + throw new Error("Value not recognized in enum BoolTestType"); + } + } + case "CmdType": + { + switch (key) { + case 0: + return "CMD_UNKNOWN"; + case 1: + return "CMD_SELECT"; + case 2: + return "CMD_UPDATE"; + case 3: + return "CMD_INSERT"; + case 4: + return "CMD_DELETE"; + case 5: + return "CMD_MERGE"; + case 6: + return "CMD_UTILITY"; + case 7: + return "CMD_NOTHING"; + default: + throw new Error("Value not recognized in enum CmdType"); + } + } + case "JoinType": + { + switch (key) { + case 0: + return "JOIN_INNER"; + case 1: + return "JOIN_LEFT"; + case 2: + return "JOIN_FULL"; + case 3: + return "JOIN_RIGHT"; + case 4: + return "JOIN_SEMI"; + case 5: + return "JOIN_ANTI"; + case 6: + return "JOIN_RIGHT_ANTI"; + case 7: + return "JOIN_UNIQUE_OUTER"; + case 8: + return "JOIN_UNIQUE_INNER"; + default: + throw new Error("Value not recognized in enum JoinType"); + } + } + case "AggStrategy": + { + switch (key) { + case 0: + return "AGG_PLAIN"; + case 1: + return "AGG_SORTED"; + case 2: + return "AGG_HASHED"; + case 3: + return "AGG_MIXED"; + default: + throw new Error("Value not recognized in enum AggStrategy"); + } + } + case "AggSplit": + { + switch (key) { + case 0: + return "AGGSPLIT_SIMPLE"; + case 1: + return "AGGSPLIT_INITIAL_SERIAL"; + case 2: + return "AGGSPLIT_FINAL_DESERIAL"; + default: + throw new Error("Value not recognized in enum AggSplit"); + } + } + case "SetOpCmd": + { + switch (key) { + case 0: + return "SETOPCMD_INTERSECT"; + case 1: + return "SETOPCMD_INTERSECT_ALL"; + case 2: + return "SETOPCMD_EXCEPT"; + case 3: + return "SETOPCMD_EXCEPT_ALL"; + default: + throw new Error("Value not recognized in enum SetOpCmd"); + } + } + case "SetOpStrategy": + { + switch (key) { + case 0: + return "SETOP_SORTED"; + case 1: + return "SETOP_HASHED"; + default: + throw new Error("Value not recognized in enum SetOpStrategy"); + } + } + case "OnConflictAction": + { + switch (key) { + case 0: + return "ONCONFLICT_NONE"; + case 1: + return "ONCONFLICT_NOTHING"; + case 2: + return "ONCONFLICT_UPDATE"; + default: + throw new Error("Value not recognized in enum OnConflictAction"); + } + } + case "LimitOption": + { + switch (key) { + case 0: + return "LIMIT_OPTION_DEFAULT"; + case 1: + return "LIMIT_OPTION_COUNT"; + case 2: + return "LIMIT_OPTION_WITH_TIES"; + default: + throw new Error("Value not recognized in enum LimitOption"); + } + } + case "LockClauseStrength": + { + switch (key) { + case 0: + return "LCS_NONE"; + case 1: + return "LCS_FORKEYSHARE"; + case 2: + return "LCS_FORSHARE"; + case 3: + return "LCS_FORNOKEYUPDATE"; + case 4: + return "LCS_FORUPDATE"; + default: + throw new Error("Value not recognized in enum LockClauseStrength"); + } + } + case "LockWaitPolicy": + { + switch (key) { + case 0: + return "LockWaitBlock"; + case 1: + return "LockWaitSkip"; + case 2: + return "LockWaitError"; + default: + throw new Error("Value not recognized in enum LockWaitPolicy"); + } + } + case "LockTupleMode": + { + switch (key) { + case 0: + return "LockTupleKeyShare"; + case 1: + return "LockTupleShare"; + case 2: + return "LockTupleNoKeyExclusive"; + case 3: + return "LockTupleExclusive"; + default: + throw new Error("Value not recognized in enum LockTupleMode"); + } + } + case "KeywordKind": + { + switch (key) { + case 0: + return "NO_KEYWORD"; + case 1: + return "UNRESERVED_KEYWORD"; + case 2: + return "COL_NAME_KEYWORD"; + case 3: + return "TYPE_FUNC_NAME_KEYWORD"; + case 4: + return "RESERVED_KEYWORD"; + default: + throw new Error("Value not recognized in enum KeywordKind"); + } + } + case "Token": + { + switch (key) { + case 0: + return "NUL"; + case 36: + return "ASCII_36"; + case 37: + return "ASCII_37"; + case 40: + return "ASCII_40"; + case 41: + return "ASCII_41"; + case 42: + return "ASCII_42"; + case 43: + return "ASCII_43"; + case 44: + return "ASCII_44"; + case 45: + return "ASCII_45"; + case 46: + return "ASCII_46"; + case 47: + return "ASCII_47"; + case 58: + return "ASCII_58"; + case 59: + return "ASCII_59"; + case 60: + return "ASCII_60"; + case 61: + return "ASCII_61"; + case 62: + return "ASCII_62"; + case 63: + return "ASCII_63"; + case 91: + return "ASCII_91"; + case 92: + return "ASCII_92"; + case 93: + return "ASCII_93"; + case 94: + return "ASCII_94"; + case 258: + return "IDENT"; + case 259: + return "UIDENT"; + case 260: + return "FCONST"; + case 261: + return "SCONST"; + case 262: + return "USCONST"; + case 263: + return "BCONST"; + case 264: + return "XCONST"; + case 265: + return "Op"; + case 266: + return "ICONST"; + case 267: + return "PARAM"; + case 268: + return "TYPECAST"; + case 269: + return "DOT_DOT"; + case 270: + return "COLON_EQUALS"; + case 271: + return "EQUALS_GREATER"; + case 272: + return "LESS_EQUALS"; + case 273: + return "GREATER_EQUALS"; + case 274: + return "NOT_EQUALS"; + case 275: + return "SQL_COMMENT"; + case 276: + return "C_COMMENT"; + case 277: + return "ABORT_P"; + case 278: + return "ABSENT"; + case 279: + return "ABSOLUTE_P"; + case 280: + return "ACCESS"; + case 281: + return "ACTION"; + case 282: + return "ADD_P"; + case 283: + return "ADMIN"; + case 284: + return "AFTER"; + case 285: + return "AGGREGATE"; + case 286: + return "ALL"; + case 287: + return "ALSO"; + case 288: + return "ALTER"; + case 289: + return "ALWAYS"; + case 290: + return "ANALYSE"; + case 291: + return "ANALYZE"; + case 292: + return "AND"; + case 293: + return "ANY"; + case 294: + return "ARRAY"; + case 295: + return "AS"; + case 296: + return "ASC"; + case 297: + return "ASENSITIVE"; + case 298: + return "ASSERTION"; + case 299: + return "ASSIGNMENT"; + case 300: + return "ASYMMETRIC"; + case 301: + return "ATOMIC"; + case 302: + return "AT"; + case 303: + return "ATTACH"; + case 304: + return "ATTRIBUTE"; + case 305: + return "AUTHORIZATION"; + case 306: + return "BACKWARD"; + case 307: + return "BEFORE"; + case 308: + return "BEGIN_P"; + case 309: + return "BETWEEN"; + case 310: + return "BIGINT"; + case 311: + return "BINARY"; + case 312: + return "BIT"; + case 313: + return "BOOLEAN_P"; + case 314: + return "BOTH"; + case 315: + return "BREADTH"; + case 316: + return "BY"; + case 317: + return "CACHE"; + case 318: + return "CALL"; + case 319: + return "CALLED"; + case 320: + return "CASCADE"; + case 321: + return "CASCADED"; + case 322: + return "CASE"; + case 323: + return "CAST"; + case 324: + return "CATALOG_P"; + case 325: + return "CHAIN"; + case 326: + return "CHAR_P"; + case 327: + return "CHARACTER"; + case 328: + return "CHARACTERISTICS"; + case 329: + return "CHECK"; + case 330: + return "CHECKPOINT"; + case 331: + return "CLASS"; + case 332: + return "CLOSE"; + case 333: + return "CLUSTER"; + case 334: + return "COALESCE"; + case 335: + return "COLLATE"; + case 336: + return "COLLATION"; + case 337: + return "COLUMN"; + case 338: + return "COLUMNS"; + case 339: + return "COMMENT"; + case 340: + return "COMMENTS"; + case 341: + return "COMMIT"; + case 342: + return "COMMITTED"; + case 343: + return "COMPRESSION"; + case 344: + return "CONCURRENTLY"; + case 345: + return "CONFIGURATION"; + case 346: + return "CONFLICT"; + case 347: + return "CONNECTION"; + case 348: + return "CONSTRAINT"; + case 349: + return "CONSTRAINTS"; + case 350: + return "CONTENT_P"; + case 351: + return "CONTINUE_P"; + case 352: + return "CONVERSION_P"; + case 353: + return "COPY"; + case 354: + return "COST"; + case 355: + return "CREATE"; + case 356: + return "CROSS"; + case 357: + return "CSV"; + case 358: + return "CUBE"; + case 359: + return "CURRENT_P"; + case 360: + return "CURRENT_CATALOG"; + case 361: + return "CURRENT_DATE"; + case 362: + return "CURRENT_ROLE"; + case 363: + return "CURRENT_SCHEMA"; + case 364: + return "CURRENT_TIME"; + case 365: + return "CURRENT_TIMESTAMP"; + case 366: + return "CURRENT_USER"; + case 367: + return "CURSOR"; + case 368: + return "CYCLE"; + case 369: + return "DATA_P"; + case 370: + return "DATABASE"; + case 371: + return "DAY_P"; + case 372: + return "DEALLOCATE"; + case 373: + return "DEC"; + case 374: + return "DECIMAL_P"; + case 375: + return "DECLARE"; + case 376: + return "DEFAULT"; + case 377: + return "DEFAULTS"; + case 378: + return "DEFERRABLE"; + case 379: + return "DEFERRED"; + case 380: + return "DEFINER"; + case 381: + return "DELETE_P"; + case 382: + return "DELIMITER"; + case 383: + return "DELIMITERS"; + case 384: + return "DEPENDS"; + case 385: + return "DEPTH"; + case 386: + return "DESC"; + case 387: + return "DETACH"; + case 388: + return "DICTIONARY"; + case 389: + return "DISABLE_P"; + case 390: + return "DISCARD"; + case 391: + return "DISTINCT"; + case 392: + return "DO"; + case 393: + return "DOCUMENT_P"; + case 394: + return "DOMAIN_P"; + case 395: + return "DOUBLE_P"; + case 396: + return "DROP"; + case 397: + return "EACH"; + case 398: + return "ELSE"; + case 399: + return "ENABLE_P"; + case 400: + return "ENCODING"; + case 401: + return "ENCRYPTED"; + case 402: + return "END_P"; + case 403: + return "ENUM_P"; + case 404: + return "ESCAPE"; + case 405: + return "EVENT"; + case 406: + return "EXCEPT"; + case 407: + return "EXCLUDE"; + case 408: + return "EXCLUDING"; + case 409: + return "EXCLUSIVE"; + case 410: + return "EXECUTE"; + case 411: + return "EXISTS"; + case 412: + return "EXPLAIN"; + case 413: + return "EXPRESSION"; + case 414: + return "EXTENSION"; + case 415: + return "EXTERNAL"; + case 416: + return "EXTRACT"; + case 417: + return "FALSE_P"; + case 418: + return "FAMILY"; + case 419: + return "FETCH"; + case 420: + return "FILTER"; + case 421: + return "FINALIZE"; + case 422: + return "FIRST_P"; + case 423: + return "FLOAT_P"; + case 424: + return "FOLLOWING"; + case 425: + return "FOR"; + case 426: + return "FORCE"; + case 427: + return "FOREIGN"; + case 428: + return "FORMAT"; + case 429: + return "FORWARD"; + case 430: + return "FREEZE"; + case 431: + return "FROM"; + case 432: + return "FULL"; + case 433: + return "FUNCTION"; + case 434: + return "FUNCTIONS"; + case 435: + return "GENERATED"; + case 436: + return "GLOBAL"; + case 437: + return "GRANT"; + case 438: + return "GRANTED"; + case 439: + return "GREATEST"; + case 440: + return "GROUP_P"; + case 441: + return "GROUPING"; + case 442: + return "GROUPS"; + case 443: + return "HANDLER"; + case 444: + return "HAVING"; + case 445: + return "HEADER_P"; + case 446: + return "HOLD"; + case 447: + return "HOUR_P"; + case 448: + return "IDENTITY_P"; + case 449: + return "IF_P"; + case 450: + return "ILIKE"; + case 451: + return "IMMEDIATE"; + case 452: + return "IMMUTABLE"; + case 453: + return "IMPLICIT_P"; + case 454: + return "IMPORT_P"; + case 455: + return "IN_P"; + case 456: + return "INCLUDE"; + case 457: + return "INCLUDING"; + case 458: + return "INCREMENT"; + case 459: + return "INDENT"; + case 460: + return "INDEX"; + case 461: + return "INDEXES"; + case 462: + return "INHERIT"; + case 463: + return "INHERITS"; + case 464: + return "INITIALLY"; + case 465: + return "INLINE_P"; + case 466: + return "INNER_P"; + case 467: + return "INOUT"; + case 468: + return "INPUT_P"; + case 469: + return "INSENSITIVE"; + case 470: + return "INSERT"; + case 471: + return "INSTEAD"; + case 472: + return "INT_P"; + case 473: + return "INTEGER"; + case 474: + return "INTERSECT"; + case 475: + return "INTERVAL"; + case 476: + return "INTO"; + case 477: + return "INVOKER"; + case 478: + return "IS"; + case 479: + return "ISNULL"; + case 480: + return "ISOLATION"; + case 481: + return "JOIN"; + case 482: + return "JSON"; + case 483: + return "JSON_ARRAY"; + case 484: + return "JSON_ARRAYAGG"; + case 485: + return "JSON_OBJECT"; + case 486: + return "JSON_OBJECTAGG"; + case 487: + return "KEY"; + case 488: + return "KEYS"; + case 489: + return "LABEL"; + case 490: + return "LANGUAGE"; + case 491: + return "LARGE_P"; + case 492: + return "LAST_P"; + case 493: + return "LATERAL_P"; + case 494: + return "LEADING"; + case 495: + return "LEAKPROOF"; + case 496: + return "LEAST"; + case 497: + return "LEFT"; + case 498: + return "LEVEL"; + case 499: + return "LIKE"; + case 500: + return "LIMIT"; + case 501: + return "LISTEN"; + case 502: + return "LOAD"; + case 503: + return "LOCAL"; + case 504: + return "LOCALTIME"; + case 505: + return "LOCALTIMESTAMP"; + case 506: + return "LOCATION"; + case 507: + return "LOCK_P"; + case 508: + return "LOCKED"; + case 509: + return "LOGGED"; + case 510: + return "MAPPING"; + case 511: + return "MATCH"; + case 512: + return "MATCHED"; + case 513: + return "MATERIALIZED"; + case 514: + return "MAXVALUE"; + case 515: + return "MERGE"; + case 516: + return "METHOD"; + case 517: + return "MINUTE_P"; + case 518: + return "MINVALUE"; + case 519: + return "MODE"; + case 520: + return "MONTH_P"; + case 521: + return "MOVE"; + case 522: + return "NAME_P"; + case 523: + return "NAMES"; + case 524: + return "NATIONAL"; + case 525: + return "NATURAL"; + case 526: + return "NCHAR"; + case 527: + return "NEW"; + case 528: + return "NEXT"; + case 529: + return "NFC"; + case 530: + return "NFD"; + case 531: + return "NFKC"; + case 532: + return "NFKD"; + case 533: + return "NO"; + case 534: + return "NONE"; + case 535: + return "NORMALIZE"; + case 536: + return "NORMALIZED"; + case 537: + return "NOT"; + case 538: + return "NOTHING"; + case 539: + return "NOTIFY"; + case 540: + return "NOTNULL"; + case 541: + return "NOWAIT"; + case 542: + return "NULL_P"; + case 543: + return "NULLIF"; + case 544: + return "NULLS_P"; + case 545: + return "NUMERIC"; + case 546: + return "OBJECT_P"; + case 547: + return "OF"; + case 548: + return "OFF"; + case 549: + return "OFFSET"; + case 550: + return "OIDS"; + case 551: + return "OLD"; + case 552: + return "ON"; + case 553: + return "ONLY"; + case 554: + return "OPERATOR"; + case 555: + return "OPTION"; + case 556: + return "OPTIONS"; + case 557: + return "OR"; + case 558: + return "ORDER"; + case 559: + return "ORDINALITY"; + case 560: + return "OTHERS"; + case 561: + return "OUT_P"; + case 562: + return "OUTER_P"; + case 563: + return "OVER"; + case 564: + return "OVERLAPS"; + case 565: + return "OVERLAY"; + case 566: + return "OVERRIDING"; + case 567: + return "OWNED"; + case 568: + return "OWNER"; + case 569: + return "PARALLEL"; + case 570: + return "PARAMETER"; + case 571: + return "PARSER"; + case 572: + return "PARTIAL"; + case 573: + return "PARTITION"; + case 574: + return "PASSING"; + case 575: + return "PASSWORD"; + case 576: + return "PLACING"; + case 577: + return "PLANS"; + case 578: + return "POLICY"; + case 579: + return "POSITION"; + case 580: + return "PRECEDING"; + case 581: + return "PRECISION"; + case 582: + return "PRESERVE"; + case 583: + return "PREPARE"; + case 584: + return "PREPARED"; + case 585: + return "PRIMARY"; + case 586: + return "PRIOR"; + case 587: + return "PRIVILEGES"; + case 588: + return "PROCEDURAL"; + case 589: + return "PROCEDURE"; + case 590: + return "PROCEDURES"; + case 591: + return "PROGRAM"; + case 592: + return "PUBLICATION"; + case 593: + return "QUOTE"; + case 594: + return "RANGE"; + case 595: + return "READ"; + case 596: + return "REAL"; + case 597: + return "REASSIGN"; + case 598: + return "RECHECK"; + case 599: + return "RECURSIVE"; + case 600: + return "REF_P"; + case 601: + return "REFERENCES"; + case 602: + return "REFERENCING"; + case 603: + return "REFRESH"; + case 604: + return "REINDEX"; + case 605: + return "RELATIVE_P"; + case 606: + return "RELEASE"; + case 607: + return "RENAME"; + case 608: + return "REPEATABLE"; + case 609: + return "REPLACE"; + case 610: + return "REPLICA"; + case 611: + return "RESET"; + case 612: + return "RESTART"; + case 613: + return "RESTRICT"; + case 614: + return "RETURN"; + case 615: + return "RETURNING"; + case 616: + return "RETURNS"; + case 617: + return "REVOKE"; + case 618: + return "RIGHT"; + case 619: + return "ROLE"; + case 620: + return "ROLLBACK"; + case 621: + return "ROLLUP"; + case 622: + return "ROUTINE"; + case 623: + return "ROUTINES"; + case 624: + return "ROW"; + case 625: + return "ROWS"; + case 626: + return "RULE"; + case 627: + return "SAVEPOINT"; + case 628: + return "SCALAR"; + case 629: + return "SCHEMA"; + case 630: + return "SCHEMAS"; + case 631: + return "SCROLL"; + case 632: + return "SEARCH"; + case 633: + return "SECOND_P"; + case 634: + return "SECURITY"; + case 635: + return "SELECT"; + case 636: + return "SEQUENCE"; + case 637: + return "SEQUENCES"; + case 638: + return "SERIALIZABLE"; + case 639: + return "SERVER"; + case 640: + return "SESSION"; + case 641: + return "SESSION_USER"; + case 642: + return "SET"; + case 643: + return "SETS"; + case 644: + return "SETOF"; + case 645: + return "SHARE"; + case 646: + return "SHOW"; + case 647: + return "SIMILAR"; + case 648: + return "SIMPLE"; + case 649: + return "SKIP"; + case 650: + return "SMALLINT"; + case 651: + return "SNAPSHOT"; + case 652: + return "SOME"; + case 653: + return "SQL_P"; + case 654: + return "STABLE"; + case 655: + return "STANDALONE_P"; + case 656: + return "START"; + case 657: + return "STATEMENT"; + case 658: + return "STATISTICS"; + case 659: + return "STDIN"; + case 660: + return "STDOUT"; + case 661: + return "STORAGE"; + case 662: + return "STORED"; + case 663: + return "STRICT_P"; + case 664: + return "STRIP_P"; + case 665: + return "SUBSCRIPTION"; + case 666: + return "SUBSTRING"; + case 667: + return "SUPPORT"; + case 668: + return "SYMMETRIC"; + case 669: + return "SYSID"; + case 670: + return "SYSTEM_P"; + case 671: + return "SYSTEM_USER"; + case 672: + return "TABLE"; + case 673: + return "TABLES"; + case 674: + return "TABLESAMPLE"; + case 675: + return "TABLESPACE"; + case 676: + return "TEMP"; + case 677: + return "TEMPLATE"; + case 678: + return "TEMPORARY"; + case 679: + return "TEXT_P"; + case 680: + return "THEN"; + case 681: + return "TIES"; + case 682: + return "TIME"; + case 683: + return "TIMESTAMP"; + case 684: + return "TO"; + case 685: + return "TRAILING"; + case 686: + return "TRANSACTION"; + case 687: + return "TRANSFORM"; + case 688: + return "TREAT"; + case 689: + return "TRIGGER"; + case 690: + return "TRIM"; + case 691: + return "TRUE_P"; + case 692: + return "TRUNCATE"; + case 693: + return "TRUSTED"; + case 694: + return "TYPE_P"; + case 695: + return "TYPES_P"; + case 696: + return "UESCAPE"; + case 697: + return "UNBOUNDED"; + case 698: + return "UNCOMMITTED"; + case 699: + return "UNENCRYPTED"; + case 700: + return "UNION"; + case 701: + return "UNIQUE"; + case 702: + return "UNKNOWN"; + case 703: + return "UNLISTEN"; + case 704: + return "UNLOGGED"; + case 705: + return "UNTIL"; + case 706: + return "UPDATE"; + case 707: + return "USER"; + case 708: + return "USING"; + case 709: + return "VACUUM"; + case 710: + return "VALID"; + case 711: + return "VALIDATE"; + case 712: + return "VALIDATOR"; + case 713: + return "VALUE_P"; + case 714: + return "VALUES"; + case 715: + return "VARCHAR"; + case 716: + return "VARIADIC"; + case 717: + return "VARYING"; + case 718: + return "VERBOSE"; + case 719: + return "VERSION_P"; + case 720: + return "VIEW"; + case 721: + return "VIEWS"; + case 722: + return "VOLATILE"; + case 723: + return "WHEN"; + case 724: + return "WHERE"; + case 725: + return "WHITESPACE_P"; + case 726: + return "WINDOW"; + case 727: + return "WITH"; + case 728: + return "WITHIN"; + case 729: + return "WITHOUT"; + case 730: + return "WORK"; + case 731: + return "WRAPPER"; + case 732: + return "WRITE"; + case 733: + return "XML_P"; + case 734: + return "XMLATTRIBUTES"; + case 735: + return "XMLCONCAT"; + case 736: + return "XMLELEMENT"; + case 737: + return "XMLEXISTS"; + case 738: + return "XMLFOREST"; + case 739: + return "XMLNAMESPACES"; + case 740: + return "XMLPARSE"; + case 741: + return "XMLPI"; + case 742: + return "XMLROOT"; + case 743: + return "XMLSERIALIZE"; + case 744: + return "XMLTABLE"; + case 745: + return "YEAR_P"; + case 746: + return "YES_P"; + case 747: + return "ZONE"; + case 748: + return "FORMAT_LA"; + case 749: + return "NOT_LA"; + case 750: + return "NULLS_LA"; + case 751: + return "WITH_LA"; + case 752: + return "WITHOUT_LA"; + case 753: + return "MODE_TYPE_NAME"; + case 754: + return "MODE_PLPGSQL_EXPR"; + case 755: + return "MODE_PLPGSQL_ASSIGN1"; + case 756: + return "MODE_PLPGSQL_ASSIGN2"; + case 757: + return "MODE_PLPGSQL_ASSIGN3"; + case 758: + return "UMINUS"; + default: + throw new Error("Value not recognized in enum Token"); + } + } + default: + throw new Error("Enum type not recognized"); + } +}; \ No newline at end of file diff --git a/__fixtures__/output/utils/enums/nested-objects-custom/custom-int-nested.ts b/__fixtures__/output/utils/enums/nested-objects-custom/custom-int-nested.ts new file mode 100644 index 00000000..d6c10ddf --- /dev/null +++ b/__fixtures__/output/utils/enums/nested-objects-custom/custom-int-nested.ts @@ -0,0 +1,2344 @@ +/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type EnumType = "OverridingKind" | "QuerySource" | "SortByDir" | "SortByNulls" | "SetQuantifier" | "A_Expr_Kind" | "RoleSpecType" | "TableLikeOption" | "DefElemAction" | "PartitionStrategy" | "PartitionRangeDatumKind" | "RTEKind" | "WCOKind" | "GroupingSetKind" | "CTEMaterialize" | "SetOperation" | "ObjectType" | "DropBehavior" | "AlterTableType" | "GrantTargetType" | "VariableSetKind" | "ConstrType" | "ImportForeignSchemaType" | "RoleStmtType" | "FetchDirection" | "FunctionParameterMode" | "TransactionStmtKind" | "ViewCheckOption" | "DiscardMode" | "ReindexObjectType" | "AlterTSConfigType" | "PublicationObjSpecType" | "AlterPublicationAction" | "AlterSubscriptionType" | "OnCommitAction" | "ParamKind" | "CoercionContext" | "CoercionForm" | "BoolExprType" | "SubLinkType" | "RowCompareType" | "MinMaxOp" | "SQLValueFunctionOp" | "XmlExprOp" | "XmlOptionType" | "JsonEncoding" | "JsonFormatType" | "JsonConstructorType" | "JsonValueType" | "NullTestType" | "BoolTestType" | "CmdType" | "JoinType" | "AggStrategy" | "AggSplit" | "SetOpCmd" | "SetOpStrategy" | "OnConflictAction" | "LimitOption" | "LockClauseStrength" | "LockWaitPolicy" | "LockTupleMode" | "KeywordKind" | "Token"; +export type EnumToIntMap = { + "OverridingKind": (key: string) => number; + "QuerySource": (key: string) => number; + "SortByDir": (key: string) => number; + "SortByNulls": (key: string) => number; + "SetQuantifier": (key: string) => number; + "A_Expr_Kind": (key: string) => number; + "RoleSpecType": (key: string) => number; + "TableLikeOption": (key: string) => number; + "DefElemAction": (key: string) => number; + "PartitionStrategy": (key: string) => number; + "PartitionRangeDatumKind": (key: string) => number; + "RTEKind": (key: string) => number; + "WCOKind": (key: string) => number; + "GroupingSetKind": (key: string) => number; + "CTEMaterialize": (key: string) => number; + "SetOperation": (key: string) => number; + "ObjectType": (key: string) => number; + "DropBehavior": (key: string) => number; + "AlterTableType": (key: string) => number; + "GrantTargetType": (key: string) => number; + "VariableSetKind": (key: string) => number; + "ConstrType": (key: string) => number; + "ImportForeignSchemaType": (key: string) => number; + "RoleStmtType": (key: string) => number; + "FetchDirection": (key: string) => number; + "FunctionParameterMode": (key: string) => number; + "TransactionStmtKind": (key: string) => number; + "ViewCheckOption": (key: string) => number; + "DiscardMode": (key: string) => number; + "ReindexObjectType": (key: string) => number; + "AlterTSConfigType": (key: string) => number; + "PublicationObjSpecType": (key: string) => number; + "AlterPublicationAction": (key: string) => number; + "AlterSubscriptionType": (key: string) => number; + "OnCommitAction": (key: string) => number; + "ParamKind": (key: string) => number; + "CoercionContext": (key: string) => number; + "CoercionForm": (key: string) => number; + "BoolExprType": (key: string) => number; + "SubLinkType": (key: string) => number; + "RowCompareType": (key: string) => number; + "MinMaxOp": (key: string) => number; + "SQLValueFunctionOp": (key: string) => number; + "XmlExprOp": (key: string) => number; + "XmlOptionType": (key: string) => number; + "JsonEncoding": (key: string) => number; + "JsonFormatType": (key: string) => number; + "JsonConstructorType": (key: string) => number; + "JsonValueType": (key: string) => number; + "NullTestType": (key: string) => number; + "BoolTestType": (key: string) => number; + "CmdType": (key: string) => number; + "JoinType": (key: string) => number; + "AggStrategy": (key: string) => number; + "AggSplit": (key: string) => number; + "SetOpCmd": (key: string) => number; + "SetOpStrategy": (key: string) => number; + "OnConflictAction": (key: string) => number; + "LimitOption": (key: string) => number; + "LockClauseStrength": (key: string) => number; + "LockWaitPolicy": (key: string) => number; + "LockTupleMode": (key: string) => number; + "KeywordKind": (key: string) => number; + "Token": (key: string) => number; +}; +export const enumToIntMap: EnumToIntMap = { + "OverridingKind": (key: string): number => { + switch (key) { + case "OVERRIDING_NOT_SET": + return 0; + case "OVERRIDING_USER_VALUE": + return 1; + case "OVERRIDING_SYSTEM_VALUE": + return 2; + default: + throw new Error("Key not recognized in enum OverridingKind"); + } + }, + "QuerySource": (key: string): number => { + switch (key) { + case "QSRC_ORIGINAL": + return 0; + case "QSRC_PARSER": + return 1; + case "QSRC_INSTEAD_RULE": + return 2; + case "QSRC_QUAL_INSTEAD_RULE": + return 3; + case "QSRC_NON_INSTEAD_RULE": + return 4; + default: + throw new Error("Key not recognized in enum QuerySource"); + } + }, + "SortByDir": (key: string): number => { + switch (key) { + case "SORTBY_DEFAULT": + return 0; + case "SORTBY_ASC": + return 1; + case "SORTBY_DESC": + return 2; + case "SORTBY_USING": + return 3; + default: + throw new Error("Key not recognized in enum SortByDir"); + } + }, + "SortByNulls": (key: string): number => { + switch (key) { + case "SORTBY_NULLS_DEFAULT": + return 0; + case "SORTBY_NULLS_FIRST": + return 1; + case "SORTBY_NULLS_LAST": + return 2; + default: + throw new Error("Key not recognized in enum SortByNulls"); + } + }, + "SetQuantifier": (key: string): number => { + switch (key) { + case "SET_QUANTIFIER_DEFAULT": + return 0; + case "SET_QUANTIFIER_ALL": + return 1; + case "SET_QUANTIFIER_DISTINCT": + return 2; + default: + throw new Error("Key not recognized in enum SetQuantifier"); + } + }, + "A_Expr_Kind": (key: string): number => { + switch (key) { + case "AEXPR_OP": + return 0; + case "AEXPR_OP_ANY": + return 1; + case "AEXPR_OP_ALL": + return 2; + case "AEXPR_DISTINCT": + return 3; + case "AEXPR_NOT_DISTINCT": + return 4; + case "AEXPR_NULLIF": + return 5; + case "AEXPR_IN": + return 6; + case "AEXPR_LIKE": + return 7; + case "AEXPR_ILIKE": + return 8; + case "AEXPR_SIMILAR": + return 9; + case "AEXPR_BETWEEN": + return 10; + case "AEXPR_NOT_BETWEEN": + return 11; + case "AEXPR_BETWEEN_SYM": + return 12; + case "AEXPR_NOT_BETWEEN_SYM": + return 13; + default: + throw new Error("Key not recognized in enum A_Expr_Kind"); + } + }, + "RoleSpecType": (key: string): number => { + switch (key) { + case "ROLESPEC_CSTRING": + return 0; + case "ROLESPEC_CURRENT_ROLE": + return 1; + case "ROLESPEC_CURRENT_USER": + return 2; + case "ROLESPEC_SESSION_USER": + return 3; + case "ROLESPEC_PUBLIC": + return 4; + default: + throw new Error("Key not recognized in enum RoleSpecType"); + } + }, + "TableLikeOption": (key: string): number => { + switch (key) { + case "CREATE_TABLE_LIKE_COMMENTS": + return 0; + case "CREATE_TABLE_LIKE_COMPRESSION": + return 1; + case "CREATE_TABLE_LIKE_CONSTRAINTS": + return 2; + case "CREATE_TABLE_LIKE_DEFAULTS": + return 3; + case "CREATE_TABLE_LIKE_GENERATED": + return 4; + case "CREATE_TABLE_LIKE_IDENTITY": + return 5; + case "CREATE_TABLE_LIKE_INDEXES": + return 6; + case "CREATE_TABLE_LIKE_STATISTICS": + return 7; + case "CREATE_TABLE_LIKE_STORAGE": + return 8; + case "CREATE_TABLE_LIKE_ALL": + return 9; + default: + throw new Error("Key not recognized in enum TableLikeOption"); + } + }, + "DefElemAction": (key: string): number => { + switch (key) { + case "DEFELEM_UNSPEC": + return 0; + case "DEFELEM_SET": + return 1; + case "DEFELEM_ADD": + return 2; + case "DEFELEM_DROP": + return 3; + default: + throw new Error("Key not recognized in enum DefElemAction"); + } + }, + "PartitionStrategy": (key: string): number => { + switch (key) { + case "PARTITION_STRATEGY_LIST": + return 0; + case "PARTITION_STRATEGY_RANGE": + return 1; + case "PARTITION_STRATEGY_HASH": + return 2; + default: + throw new Error("Key not recognized in enum PartitionStrategy"); + } + }, + "PartitionRangeDatumKind": (key: string): number => { + switch (key) { + case "PARTITION_RANGE_DATUM_MINVALUE": + return 0; + case "PARTITION_RANGE_DATUM_VALUE": + return 1; + case "PARTITION_RANGE_DATUM_MAXVALUE": + return 2; + default: + throw new Error("Key not recognized in enum PartitionRangeDatumKind"); + } + }, + "RTEKind": (key: string): number => { + switch (key) { + case "RTE_RELATION": + return 0; + case "RTE_SUBQUERY": + return 1; + case "RTE_JOIN": + return 2; + case "RTE_FUNCTION": + return 3; + case "RTE_TABLEFUNC": + return 4; + case "RTE_VALUES": + return 5; + case "RTE_CTE": + return 6; + case "RTE_NAMEDTUPLESTORE": + return 7; + case "RTE_RESULT": + return 8; + default: + throw new Error("Key not recognized in enum RTEKind"); + } + }, + "WCOKind": (key: string): number => { + switch (key) { + case "WCO_VIEW_CHECK": + return 0; + case "WCO_RLS_INSERT_CHECK": + return 1; + case "WCO_RLS_UPDATE_CHECK": + return 2; + case "WCO_RLS_CONFLICT_CHECK": + return 3; + case "WCO_RLS_MERGE_UPDATE_CHECK": + return 4; + case "WCO_RLS_MERGE_DELETE_CHECK": + return 5; + default: + throw new Error("Key not recognized in enum WCOKind"); + } + }, + "GroupingSetKind": (key: string): number => { + switch (key) { + case "GROUPING_SET_EMPTY": + return 0; + case "GROUPING_SET_SIMPLE": + return 1; + case "GROUPING_SET_ROLLUP": + return 2; + case "GROUPING_SET_CUBE": + return 3; + case "GROUPING_SET_SETS": + return 4; + default: + throw new Error("Key not recognized in enum GroupingSetKind"); + } + }, + "CTEMaterialize": (key: string): number => { + switch (key) { + case "CTEMaterializeDefault": + return 0; + case "CTEMaterializeAlways": + return 1; + case "CTEMaterializeNever": + return 2; + default: + throw new Error("Key not recognized in enum CTEMaterialize"); + } + }, + "SetOperation": (key: string): number => { + switch (key) { + case "SETOP_NONE": + return 0; + case "SETOP_UNION": + return 1; + case "SETOP_INTERSECT": + return 2; + case "SETOP_EXCEPT": + return 3; + default: + throw new Error("Key not recognized in enum SetOperation"); + } + }, + "ObjectType": (key: string): number => { + switch (key) { + case "OBJECT_ACCESS_METHOD": + return 0; + case "OBJECT_AGGREGATE": + return 1; + case "OBJECT_AMOP": + return 2; + case "OBJECT_AMPROC": + return 3; + case "OBJECT_ATTRIBUTE": + return 4; + case "OBJECT_CAST": + return 5; + case "OBJECT_COLUMN": + return 6; + case "OBJECT_COLLATION": + return 7; + case "OBJECT_CONVERSION": + return 8; + case "OBJECT_DATABASE": + return 9; + case "OBJECT_DEFAULT": + return 10; + case "OBJECT_DEFACL": + return 11; + case "OBJECT_DOMAIN": + return 12; + case "OBJECT_DOMCONSTRAINT": + return 13; + case "OBJECT_EVENT_TRIGGER": + return 14; + case "OBJECT_EXTENSION": + return 15; + case "OBJECT_FDW": + return 16; + case "OBJECT_FOREIGN_SERVER": + return 17; + case "OBJECT_FOREIGN_TABLE": + return 18; + case "OBJECT_FUNCTION": + return 19; + case "OBJECT_INDEX": + return 20; + case "OBJECT_LANGUAGE": + return 21; + case "OBJECT_LARGEOBJECT": + return 22; + case "OBJECT_MATVIEW": + return 23; + case "OBJECT_OPCLASS": + return 24; + case "OBJECT_OPERATOR": + return 25; + case "OBJECT_OPFAMILY": + return 26; + case "OBJECT_PARAMETER_ACL": + return 27; + case "OBJECT_POLICY": + return 28; + case "OBJECT_PROCEDURE": + return 29; + case "OBJECT_PUBLICATION": + return 30; + case "OBJECT_PUBLICATION_NAMESPACE": + return 31; + case "OBJECT_PUBLICATION_REL": + return 32; + case "OBJECT_ROLE": + return 33; + case "OBJECT_ROUTINE": + return 34; + case "OBJECT_RULE": + return 35; + case "OBJECT_SCHEMA": + return 36; + case "OBJECT_SEQUENCE": + return 37; + case "OBJECT_SUBSCRIPTION": + return 38; + case "OBJECT_STATISTIC_EXT": + return 39; + case "OBJECT_TABCONSTRAINT": + return 40; + case "OBJECT_TABLE": + return 41; + case "OBJECT_TABLESPACE": + return 42; + case "OBJECT_TRANSFORM": + return 43; + case "OBJECT_TRIGGER": + return 44; + case "OBJECT_TSCONFIGURATION": + return 45; + case "OBJECT_TSDICTIONARY": + return 46; + case "OBJECT_TSPARSER": + return 47; + case "OBJECT_TSTEMPLATE": + return 48; + case "OBJECT_TYPE": + return 49; + case "OBJECT_USER_MAPPING": + return 50; + case "OBJECT_VIEW": + return 51; + default: + throw new Error("Key not recognized in enum ObjectType"); + } + }, + "DropBehavior": (key: string): number => { + switch (key) { + case "DROP_RESTRICT": + return 0; + case "DROP_CASCADE": + return 1; + default: + throw new Error("Key not recognized in enum DropBehavior"); + } + }, + "AlterTableType": (key: string): number => { + switch (key) { + case "AT_AddColumn": + return 0; + case "AT_AddColumnToView": + return 1; + case "AT_ColumnDefault": + return 2; + case "AT_CookedColumnDefault": + return 3; + case "AT_DropNotNull": + return 4; + case "AT_SetNotNull": + return 5; + case "AT_DropExpression": + return 6; + case "AT_CheckNotNull": + return 7; + case "AT_SetStatistics": + return 8; + case "AT_SetOptions": + return 9; + case "AT_ResetOptions": + return 10; + case "AT_SetStorage": + return 11; + case "AT_SetCompression": + return 12; + case "AT_DropColumn": + return 13; + case "AT_AddIndex": + return 14; + case "AT_ReAddIndex": + return 15; + case "AT_AddConstraint": + return 16; + case "AT_ReAddConstraint": + return 17; + case "AT_ReAddDomainConstraint": + return 18; + case "AT_AlterConstraint": + return 19; + case "AT_ValidateConstraint": + return 20; + case "AT_AddIndexConstraint": + return 21; + case "AT_DropConstraint": + return 22; + case "AT_ReAddComment": + return 23; + case "AT_AlterColumnType": + return 24; + case "AT_AlterColumnGenericOptions": + return 25; + case "AT_ChangeOwner": + return 26; + case "AT_ClusterOn": + return 27; + case "AT_DropCluster": + return 28; + case "AT_SetLogged": + return 29; + case "AT_SetUnLogged": + return 30; + case "AT_DropOids": + return 31; + case "AT_SetAccessMethod": + return 32; + case "AT_SetTableSpace": + return 33; + case "AT_SetRelOptions": + return 34; + case "AT_ResetRelOptions": + return 35; + case "AT_ReplaceRelOptions": + return 36; + case "AT_EnableTrig": + return 37; + case "AT_EnableAlwaysTrig": + return 38; + case "AT_EnableReplicaTrig": + return 39; + case "AT_DisableTrig": + return 40; + case "AT_EnableTrigAll": + return 41; + case "AT_DisableTrigAll": + return 42; + case "AT_EnableTrigUser": + return 43; + case "AT_DisableTrigUser": + return 44; + case "AT_EnableRule": + return 45; + case "AT_EnableAlwaysRule": + return 46; + case "AT_EnableReplicaRule": + return 47; + case "AT_DisableRule": + return 48; + case "AT_AddInherit": + return 49; + case "AT_DropInherit": + return 50; + case "AT_AddOf": + return 51; + case "AT_DropOf": + return 52; + case "AT_ReplicaIdentity": + return 53; + case "AT_EnableRowSecurity": + return 54; + case "AT_DisableRowSecurity": + return 55; + case "AT_ForceRowSecurity": + return 56; + case "AT_NoForceRowSecurity": + return 57; + case "AT_GenericOptions": + return 58; + case "AT_AttachPartition": + return 59; + case "AT_DetachPartition": + return 60; + case "AT_DetachPartitionFinalize": + return 61; + case "AT_AddIdentity": + return 62; + case "AT_SetIdentity": + return 63; + case "AT_DropIdentity": + return 64; + case "AT_ReAddStatistics": + return 65; + default: + throw new Error("Key not recognized in enum AlterTableType"); + } + }, + "GrantTargetType": (key: string): number => { + switch (key) { + case "ACL_TARGET_OBJECT": + return 0; + case "ACL_TARGET_ALL_IN_SCHEMA": + return 1; + case "ACL_TARGET_DEFAULTS": + return 2; + default: + throw new Error("Key not recognized in enum GrantTargetType"); + } + }, + "VariableSetKind": (key: string): number => { + switch (key) { + case "VAR_SET_VALUE": + return 0; + case "VAR_SET_DEFAULT": + return 1; + case "VAR_SET_CURRENT": + return 2; + case "VAR_SET_MULTI": + return 3; + case "VAR_RESET": + return 4; + case "VAR_RESET_ALL": + return 5; + default: + throw new Error("Key not recognized in enum VariableSetKind"); + } + }, + "ConstrType": (key: string): number => { + switch (key) { + case "CONSTR_NULL": + return 0; + case "CONSTR_NOTNULL": + return 1; + case "CONSTR_DEFAULT": + return 2; + case "CONSTR_IDENTITY": + return 3; + case "CONSTR_GENERATED": + return 4; + case "CONSTR_CHECK": + return 5; + case "CONSTR_PRIMARY": + return 6; + case "CONSTR_UNIQUE": + return 7; + case "CONSTR_EXCLUSION": + return 8; + case "CONSTR_FOREIGN": + return 9; + case "CONSTR_ATTR_DEFERRABLE": + return 10; + case "CONSTR_ATTR_NOT_DEFERRABLE": + return 11; + case "CONSTR_ATTR_DEFERRED": + return 12; + case "CONSTR_ATTR_IMMEDIATE": + return 13; + default: + throw new Error("Key not recognized in enum ConstrType"); + } + }, + "ImportForeignSchemaType": (key: string): number => { + switch (key) { + case "FDW_IMPORT_SCHEMA_ALL": + return 0; + case "FDW_IMPORT_SCHEMA_LIMIT_TO": + return 1; + case "FDW_IMPORT_SCHEMA_EXCEPT": + return 2; + default: + throw new Error("Key not recognized in enum ImportForeignSchemaType"); + } + }, + "RoleStmtType": (key: string): number => { + switch (key) { + case "ROLESTMT_ROLE": + return 0; + case "ROLESTMT_USER": + return 1; + case "ROLESTMT_GROUP": + return 2; + default: + throw new Error("Key not recognized in enum RoleStmtType"); + } + }, + "FetchDirection": (key: string): number => { + switch (key) { + case "FETCH_FORWARD": + return 0; + case "FETCH_BACKWARD": + return 1; + case "FETCH_ABSOLUTE": + return 2; + case "FETCH_RELATIVE": + return 3; + default: + throw new Error("Key not recognized in enum FetchDirection"); + } + }, + "FunctionParameterMode": (key: string): number => { + switch (key) { + case "FUNC_PARAM_IN": + return 0; + case "FUNC_PARAM_OUT": + return 1; + case "FUNC_PARAM_INOUT": + return 2; + case "FUNC_PARAM_VARIADIC": + return 3; + case "FUNC_PARAM_TABLE": + return 4; + case "FUNC_PARAM_DEFAULT": + return 5; + default: + throw new Error("Key not recognized in enum FunctionParameterMode"); + } + }, + "TransactionStmtKind": (key: string): number => { + switch (key) { + case "TRANS_STMT_BEGIN": + return 0; + case "TRANS_STMT_START": + return 1; + case "TRANS_STMT_COMMIT": + return 2; + case "TRANS_STMT_ROLLBACK": + return 3; + case "TRANS_STMT_SAVEPOINT": + return 4; + case "TRANS_STMT_RELEASE": + return 5; + case "TRANS_STMT_ROLLBACK_TO": + return 6; + case "TRANS_STMT_PREPARE": + return 7; + case "TRANS_STMT_COMMIT_PREPARED": + return 8; + case "TRANS_STMT_ROLLBACK_PREPARED": + return 9; + default: + throw new Error("Key not recognized in enum TransactionStmtKind"); + } + }, + "ViewCheckOption": (key: string): number => { + switch (key) { + case "NO_CHECK_OPTION": + return 0; + case "LOCAL_CHECK_OPTION": + return 1; + case "CASCADED_CHECK_OPTION": + return 2; + default: + throw new Error("Key not recognized in enum ViewCheckOption"); + } + }, + "DiscardMode": (key: string): number => { + switch (key) { + case "DISCARD_ALL": + return 0; + case "DISCARD_PLANS": + return 1; + case "DISCARD_SEQUENCES": + return 2; + case "DISCARD_TEMP": + return 3; + default: + throw new Error("Key not recognized in enum DiscardMode"); + } + }, + "ReindexObjectType": (key: string): number => { + switch (key) { + case "REINDEX_OBJECT_INDEX": + return 0; + case "REINDEX_OBJECT_TABLE": + return 1; + case "REINDEX_OBJECT_SCHEMA": + return 2; + case "REINDEX_OBJECT_SYSTEM": + return 3; + case "REINDEX_OBJECT_DATABASE": + return 4; + default: + throw new Error("Key not recognized in enum ReindexObjectType"); + } + }, + "AlterTSConfigType": (key: string): number => { + switch (key) { + case "ALTER_TSCONFIG_ADD_MAPPING": + return 0; + case "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN": + return 1; + case "ALTER_TSCONFIG_REPLACE_DICT": + return 2; + case "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN": + return 3; + case "ALTER_TSCONFIG_DROP_MAPPING": + return 4; + default: + throw new Error("Key not recognized in enum AlterTSConfigType"); + } + }, + "PublicationObjSpecType": (key: string): number => { + switch (key) { + case "PUBLICATIONOBJ_TABLE": + return 0; + case "PUBLICATIONOBJ_TABLES_IN_SCHEMA": + return 1; + case "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA": + return 2; + case "PUBLICATIONOBJ_CONTINUATION": + return 3; + default: + throw new Error("Key not recognized in enum PublicationObjSpecType"); + } + }, + "AlterPublicationAction": (key: string): number => { + switch (key) { + case "AP_AddObjects": + return 0; + case "AP_DropObjects": + return 1; + case "AP_SetObjects": + return 2; + default: + throw new Error("Key not recognized in enum AlterPublicationAction"); + } + }, + "AlterSubscriptionType": (key: string): number => { + switch (key) { + case "ALTER_SUBSCRIPTION_OPTIONS": + return 0; + case "ALTER_SUBSCRIPTION_CONNECTION": + return 1; + case "ALTER_SUBSCRIPTION_SET_PUBLICATION": + return 2; + case "ALTER_SUBSCRIPTION_ADD_PUBLICATION": + return 3; + case "ALTER_SUBSCRIPTION_DROP_PUBLICATION": + return 4; + case "ALTER_SUBSCRIPTION_REFRESH": + return 5; + case "ALTER_SUBSCRIPTION_ENABLED": + return 6; + case "ALTER_SUBSCRIPTION_SKIP": + return 7; + default: + throw new Error("Key not recognized in enum AlterSubscriptionType"); + } + }, + "OnCommitAction": (key: string): number => { + switch (key) { + case "ONCOMMIT_NOOP": + return 0; + case "ONCOMMIT_PRESERVE_ROWS": + return 1; + case "ONCOMMIT_DELETE_ROWS": + return 2; + case "ONCOMMIT_DROP": + return 3; + default: + throw new Error("Key not recognized in enum OnCommitAction"); + } + }, + "ParamKind": (key: string): number => { + switch (key) { + case "PARAM_EXTERN": + return 0; + case "PARAM_EXEC": + return 1; + case "PARAM_SUBLINK": + return 2; + case "PARAM_MULTIEXPR": + return 3; + default: + throw new Error("Key not recognized in enum ParamKind"); + } + }, + "CoercionContext": (key: string): number => { + switch (key) { + case "COERCION_IMPLICIT": + return 0; + case "COERCION_ASSIGNMENT": + return 1; + case "COERCION_PLPGSQL": + return 2; + case "COERCION_EXPLICIT": + return 3; + default: + throw new Error("Key not recognized in enum CoercionContext"); + } + }, + "CoercionForm": (key: string): number => { + switch (key) { + case "COERCE_EXPLICIT_CALL": + return 0; + case "COERCE_EXPLICIT_CAST": + return 1; + case "COERCE_IMPLICIT_CAST": + return 2; + case "COERCE_SQL_SYNTAX": + return 3; + default: + throw new Error("Key not recognized in enum CoercionForm"); + } + }, + "BoolExprType": (key: string): number => { + switch (key) { + case "AND_EXPR": + return 0; + case "OR_EXPR": + return 1; + case "NOT_EXPR": + return 2; + default: + throw new Error("Key not recognized in enum BoolExprType"); + } + }, + "SubLinkType": (key: string): number => { + switch (key) { + case "EXISTS_SUBLINK": + return 0; + case "ALL_SUBLINK": + return 1; + case "ANY_SUBLINK": + return 2; + case "ROWCOMPARE_SUBLINK": + return 3; + case "EXPR_SUBLINK": + return 4; + case "MULTIEXPR_SUBLINK": + return 5; + case "ARRAY_SUBLINK": + return 6; + case "CTE_SUBLINK": + return 7; + default: + throw new Error("Key not recognized in enum SubLinkType"); + } + }, + "RowCompareType": (key: string): number => { + switch (key) { + case "ROWCOMPARE_LT": + return 0; + case "ROWCOMPARE_LE": + return 1; + case "ROWCOMPARE_EQ": + return 2; + case "ROWCOMPARE_GE": + return 3; + case "ROWCOMPARE_GT": + return 4; + case "ROWCOMPARE_NE": + return 5; + default: + throw new Error("Key not recognized in enum RowCompareType"); + } + }, + "MinMaxOp": (key: string): number => { + switch (key) { + case "IS_GREATEST": + return 0; + case "IS_LEAST": + return 1; + default: + throw new Error("Key not recognized in enum MinMaxOp"); + } + }, + "SQLValueFunctionOp": (key: string): number => { + switch (key) { + case "SVFOP_CURRENT_DATE": + return 0; + case "SVFOP_CURRENT_TIME": + return 1; + case "SVFOP_CURRENT_TIME_N": + return 2; + case "SVFOP_CURRENT_TIMESTAMP": + return 3; + case "SVFOP_CURRENT_TIMESTAMP_N": + return 4; + case "SVFOP_LOCALTIME": + return 5; + case "SVFOP_LOCALTIME_N": + return 6; + case "SVFOP_LOCALTIMESTAMP": + return 7; + case "SVFOP_LOCALTIMESTAMP_N": + return 8; + case "SVFOP_CURRENT_ROLE": + return 9; + case "SVFOP_CURRENT_USER": + return 10; + case "SVFOP_USER": + return 11; + case "SVFOP_SESSION_USER": + return 12; + case "SVFOP_CURRENT_CATALOG": + return 13; + case "SVFOP_CURRENT_SCHEMA": + return 14; + default: + throw new Error("Key not recognized in enum SQLValueFunctionOp"); + } + }, + "XmlExprOp": (key: string): number => { + switch (key) { + case "IS_XMLCONCAT": + return 0; + case "IS_XMLELEMENT": + return 1; + case "IS_XMLFOREST": + return 2; + case "IS_XMLPARSE": + return 3; + case "IS_XMLPI": + return 4; + case "IS_XMLROOT": + return 5; + case "IS_XMLSERIALIZE": + return 6; + case "IS_DOCUMENT": + return 7; + default: + throw new Error("Key not recognized in enum XmlExprOp"); + } + }, + "XmlOptionType": (key: string): number => { + switch (key) { + case "XMLOPTION_DOCUMENT": + return 0; + case "XMLOPTION_CONTENT": + return 1; + default: + throw new Error("Key not recognized in enum XmlOptionType"); + } + }, + "JsonEncoding": (key: string): number => { + switch (key) { + case "JS_ENC_DEFAULT": + return 0; + case "JS_ENC_UTF8": + return 1; + case "JS_ENC_UTF16": + return 2; + case "JS_ENC_UTF32": + return 3; + default: + throw new Error("Key not recognized in enum JsonEncoding"); + } + }, + "JsonFormatType": (key: string): number => { + switch (key) { + case "JS_FORMAT_DEFAULT": + return 0; + case "JS_FORMAT_JSON": + return 1; + case "JS_FORMAT_JSONB": + return 2; + default: + throw new Error("Key not recognized in enum JsonFormatType"); + } + }, + "JsonConstructorType": (key: string): number => { + switch (key) { + case "JSCTOR_JSON_OBJECT": + return 0; + case "JSCTOR_JSON_ARRAY": + return 1; + case "JSCTOR_JSON_OBJECTAGG": + return 2; + case "JSCTOR_JSON_ARRAYAGG": + return 3; + default: + throw new Error("Key not recognized in enum JsonConstructorType"); + } + }, + "JsonValueType": (key: string): number => { + switch (key) { + case "JS_TYPE_ANY": + return 0; + case "JS_TYPE_OBJECT": + return 1; + case "JS_TYPE_ARRAY": + return 2; + case "JS_TYPE_SCALAR": + return 3; + default: + throw new Error("Key not recognized in enum JsonValueType"); + } + }, + "NullTestType": (key: string): number => { + switch (key) { + case "IS_NULL": + return 0; + case "IS_NOT_NULL": + return 1; + default: + throw new Error("Key not recognized in enum NullTestType"); + } + }, + "BoolTestType": (key: string): number => { + switch (key) { + case "IS_TRUE": + return 0; + case "IS_NOT_TRUE": + return 1; + case "IS_FALSE": + return 2; + case "IS_NOT_FALSE": + return 3; + case "IS_UNKNOWN": + return 4; + case "IS_NOT_UNKNOWN": + return 5; + default: + throw new Error("Key not recognized in enum BoolTestType"); + } + }, + "CmdType": (key: string): number => { + switch (key) { + case "CMD_UNKNOWN": + return 0; + case "CMD_SELECT": + return 1; + case "CMD_UPDATE": + return 2; + case "CMD_INSERT": + return 3; + case "CMD_DELETE": + return 4; + case "CMD_MERGE": + return 5; + case "CMD_UTILITY": + return 6; + case "CMD_NOTHING": + return 7; + default: + throw new Error("Key not recognized in enum CmdType"); + } + }, + "JoinType": (key: string): number => { + switch (key) { + case "JOIN_INNER": + return 0; + case "JOIN_LEFT": + return 1; + case "JOIN_FULL": + return 2; + case "JOIN_RIGHT": + return 3; + case "JOIN_SEMI": + return 4; + case "JOIN_ANTI": + return 5; + case "JOIN_RIGHT_ANTI": + return 6; + case "JOIN_UNIQUE_OUTER": + return 7; + case "JOIN_UNIQUE_INNER": + return 8; + default: + throw new Error("Key not recognized in enum JoinType"); + } + }, + "AggStrategy": (key: string): number => { + switch (key) { + case "AGG_PLAIN": + return 0; + case "AGG_SORTED": + return 1; + case "AGG_HASHED": + return 2; + case "AGG_MIXED": + return 3; + default: + throw new Error("Key not recognized in enum AggStrategy"); + } + }, + "AggSplit": (key: string): number => { + switch (key) { + case "AGGSPLIT_SIMPLE": + return 0; + case "AGGSPLIT_INITIAL_SERIAL": + return 1; + case "AGGSPLIT_FINAL_DESERIAL": + return 2; + default: + throw new Error("Key not recognized in enum AggSplit"); + } + }, + "SetOpCmd": (key: string): number => { + switch (key) { + case "SETOPCMD_INTERSECT": + return 0; + case "SETOPCMD_INTERSECT_ALL": + return 1; + case "SETOPCMD_EXCEPT": + return 2; + case "SETOPCMD_EXCEPT_ALL": + return 3; + default: + throw new Error("Key not recognized in enum SetOpCmd"); + } + }, + "SetOpStrategy": (key: string): number => { + switch (key) { + case "SETOP_SORTED": + return 0; + case "SETOP_HASHED": + return 1; + default: + throw new Error("Key not recognized in enum SetOpStrategy"); + } + }, + "OnConflictAction": (key: string): number => { + switch (key) { + case "ONCONFLICT_NONE": + return 0; + case "ONCONFLICT_NOTHING": + return 1; + case "ONCONFLICT_UPDATE": + return 2; + default: + throw new Error("Key not recognized in enum OnConflictAction"); + } + }, + "LimitOption": (key: string): number => { + switch (key) { + case "LIMIT_OPTION_DEFAULT": + return 0; + case "LIMIT_OPTION_COUNT": + return 1; + case "LIMIT_OPTION_WITH_TIES": + return 2; + default: + throw new Error("Key not recognized in enum LimitOption"); + } + }, + "LockClauseStrength": (key: string): number => { + switch (key) { + case "LCS_NONE": + return 0; + case "LCS_FORKEYSHARE": + return 1; + case "LCS_FORSHARE": + return 2; + case "LCS_FORNOKEYUPDATE": + return 3; + case "LCS_FORUPDATE": + return 4; + default: + throw new Error("Key not recognized in enum LockClauseStrength"); + } + }, + "LockWaitPolicy": (key: string): number => { + switch (key) { + case "LockWaitBlock": + return 0; + case "LockWaitSkip": + return 1; + case "LockWaitError": + return 2; + default: + throw new Error("Key not recognized in enum LockWaitPolicy"); + } + }, + "LockTupleMode": (key: string): number => { + switch (key) { + case "LockTupleKeyShare": + return 0; + case "LockTupleShare": + return 1; + case "LockTupleNoKeyExclusive": + return 2; + case "LockTupleExclusive": + return 3; + default: + throw new Error("Key not recognized in enum LockTupleMode"); + } + }, + "KeywordKind": (key: string): number => { + switch (key) { + case "NO_KEYWORD": + return 0; + case "UNRESERVED_KEYWORD": + return 1; + case "COL_NAME_KEYWORD": + return 2; + case "TYPE_FUNC_NAME_KEYWORD": + return 3; + case "RESERVED_KEYWORD": + return 4; + default: + throw new Error("Key not recognized in enum KeywordKind"); + } + }, + "Token": (key: string): number => { + switch (key) { + case "NUL": + return 0; + case "ASCII_36": + return 36; + case "ASCII_37": + return 37; + case "ASCII_40": + return 40; + case "ASCII_41": + return 41; + case "ASCII_42": + return 42; + case "ASCII_43": + return 43; + case "ASCII_44": + return 44; + case "ASCII_45": + return 45; + case "ASCII_46": + return 46; + case "ASCII_47": + return 47; + case "ASCII_58": + return 58; + case "ASCII_59": + return 59; + case "ASCII_60": + return 60; + case "ASCII_61": + return 61; + case "ASCII_62": + return 62; + case "ASCII_63": + return 63; + case "ASCII_91": + return 91; + case "ASCII_92": + return 92; + case "ASCII_93": + return 93; + case "ASCII_94": + return 94; + case "IDENT": + return 258; + case "UIDENT": + return 259; + case "FCONST": + return 260; + case "SCONST": + return 261; + case "USCONST": + return 262; + case "BCONST": + return 263; + case "XCONST": + return 264; + case "Op": + return 265; + case "ICONST": + return 266; + case "PARAM": + return 267; + case "TYPECAST": + return 268; + case "DOT_DOT": + return 269; + case "COLON_EQUALS": + return 270; + case "EQUALS_GREATER": + return 271; + case "LESS_EQUALS": + return 272; + case "GREATER_EQUALS": + return 273; + case "NOT_EQUALS": + return 274; + case "SQL_COMMENT": + return 275; + case "C_COMMENT": + return 276; + case "ABORT_P": + return 277; + case "ABSENT": + return 278; + case "ABSOLUTE_P": + return 279; + case "ACCESS": + return 280; + case "ACTION": + return 281; + case "ADD_P": + return 282; + case "ADMIN": + return 283; + case "AFTER": + return 284; + case "AGGREGATE": + return 285; + case "ALL": + return 286; + case "ALSO": + return 287; + case "ALTER": + return 288; + case "ALWAYS": + return 289; + case "ANALYSE": + return 290; + case "ANALYZE": + return 291; + case "AND": + return 292; + case "ANY": + return 293; + case "ARRAY": + return 294; + case "AS": + return 295; + case "ASC": + return 296; + case "ASENSITIVE": + return 297; + case "ASSERTION": + return 298; + case "ASSIGNMENT": + return 299; + case "ASYMMETRIC": + return 300; + case "ATOMIC": + return 301; + case "AT": + return 302; + case "ATTACH": + return 303; + case "ATTRIBUTE": + return 304; + case "AUTHORIZATION": + return 305; + case "BACKWARD": + return 306; + case "BEFORE": + return 307; + case "BEGIN_P": + return 308; + case "BETWEEN": + return 309; + case "BIGINT": + return 310; + case "BINARY": + return 311; + case "BIT": + return 312; + case "BOOLEAN_P": + return 313; + case "BOTH": + return 314; + case "BREADTH": + return 315; + case "BY": + return 316; + case "CACHE": + return 317; + case "CALL": + return 318; + case "CALLED": + return 319; + case "CASCADE": + return 320; + case "CASCADED": + return 321; + case "CASE": + return 322; + case "CAST": + return 323; + case "CATALOG_P": + return 324; + case "CHAIN": + return 325; + case "CHAR_P": + return 326; + case "CHARACTER": + return 327; + case "CHARACTERISTICS": + return 328; + case "CHECK": + return 329; + case "CHECKPOINT": + return 330; + case "CLASS": + return 331; + case "CLOSE": + return 332; + case "CLUSTER": + return 333; + case "COALESCE": + return 334; + case "COLLATE": + return 335; + case "COLLATION": + return 336; + case "COLUMN": + return 337; + case "COLUMNS": + return 338; + case "COMMENT": + return 339; + case "COMMENTS": + return 340; + case "COMMIT": + return 341; + case "COMMITTED": + return 342; + case "COMPRESSION": + return 343; + case "CONCURRENTLY": + return 344; + case "CONFIGURATION": + return 345; + case "CONFLICT": + return 346; + case "CONNECTION": + return 347; + case "CONSTRAINT": + return 348; + case "CONSTRAINTS": + return 349; + case "CONTENT_P": + return 350; + case "CONTINUE_P": + return 351; + case "CONVERSION_P": + return 352; + case "COPY": + return 353; + case "COST": + return 354; + case "CREATE": + return 355; + case "CROSS": + return 356; + case "CSV": + return 357; + case "CUBE": + return 358; + case "CURRENT_P": + return 359; + case "CURRENT_CATALOG": + return 360; + case "CURRENT_DATE": + return 361; + case "CURRENT_ROLE": + return 362; + case "CURRENT_SCHEMA": + return 363; + case "CURRENT_TIME": + return 364; + case "CURRENT_TIMESTAMP": + return 365; + case "CURRENT_USER": + return 366; + case "CURSOR": + return 367; + case "CYCLE": + return 368; + case "DATA_P": + return 369; + case "DATABASE": + return 370; + case "DAY_P": + return 371; + case "DEALLOCATE": + return 372; + case "DEC": + return 373; + case "DECIMAL_P": + return 374; + case "DECLARE": + return 375; + case "DEFAULT": + return 376; + case "DEFAULTS": + return 377; + case "DEFERRABLE": + return 378; + case "DEFERRED": + return 379; + case "DEFINER": + return 380; + case "DELETE_P": + return 381; + case "DELIMITER": + return 382; + case "DELIMITERS": + return 383; + case "DEPENDS": + return 384; + case "DEPTH": + return 385; + case "DESC": + return 386; + case "DETACH": + return 387; + case "DICTIONARY": + return 388; + case "DISABLE_P": + return 389; + case "DISCARD": + return 390; + case "DISTINCT": + return 391; + case "DO": + return 392; + case "DOCUMENT_P": + return 393; + case "DOMAIN_P": + return 394; + case "DOUBLE_P": + return 395; + case "DROP": + return 396; + case "EACH": + return 397; + case "ELSE": + return 398; + case "ENABLE_P": + return 399; + case "ENCODING": + return 400; + case "ENCRYPTED": + return 401; + case "END_P": + return 402; + case "ENUM_P": + return 403; + case "ESCAPE": + return 404; + case "EVENT": + return 405; + case "EXCEPT": + return 406; + case "EXCLUDE": + return 407; + case "EXCLUDING": + return 408; + case "EXCLUSIVE": + return 409; + case "EXECUTE": + return 410; + case "EXISTS": + return 411; + case "EXPLAIN": + return 412; + case "EXPRESSION": + return 413; + case "EXTENSION": + return 414; + case "EXTERNAL": + return 415; + case "EXTRACT": + return 416; + case "FALSE_P": + return 417; + case "FAMILY": + return 418; + case "FETCH": + return 419; + case "FILTER": + return 420; + case "FINALIZE": + return 421; + case "FIRST_P": + return 422; + case "FLOAT_P": + return 423; + case "FOLLOWING": + return 424; + case "FOR": + return 425; + case "FORCE": + return 426; + case "FOREIGN": + return 427; + case "FORMAT": + return 428; + case "FORWARD": + return 429; + case "FREEZE": + return 430; + case "FROM": + return 431; + case "FULL": + return 432; + case "FUNCTION": + return 433; + case "FUNCTIONS": + return 434; + case "GENERATED": + return 435; + case "GLOBAL": + return 436; + case "GRANT": + return 437; + case "GRANTED": + return 438; + case "GREATEST": + return 439; + case "GROUP_P": + return 440; + case "GROUPING": + return 441; + case "GROUPS": + return 442; + case "HANDLER": + return 443; + case "HAVING": + return 444; + case "HEADER_P": + return 445; + case "HOLD": + return 446; + case "HOUR_P": + return 447; + case "IDENTITY_P": + return 448; + case "IF_P": + return 449; + case "ILIKE": + return 450; + case "IMMEDIATE": + return 451; + case "IMMUTABLE": + return 452; + case "IMPLICIT_P": + return 453; + case "IMPORT_P": + return 454; + case "IN_P": + return 455; + case "INCLUDE": + return 456; + case "INCLUDING": + return 457; + case "INCREMENT": + return 458; + case "INDENT": + return 459; + case "INDEX": + return 460; + case "INDEXES": + return 461; + case "INHERIT": + return 462; + case "INHERITS": + return 463; + case "INITIALLY": + return 464; + case "INLINE_P": + return 465; + case "INNER_P": + return 466; + case "INOUT": + return 467; + case "INPUT_P": + return 468; + case "INSENSITIVE": + return 469; + case "INSERT": + return 470; + case "INSTEAD": + return 471; + case "INT_P": + return 472; + case "INTEGER": + return 473; + case "INTERSECT": + return 474; + case "INTERVAL": + return 475; + case "INTO": + return 476; + case "INVOKER": + return 477; + case "IS": + return 478; + case "ISNULL": + return 479; + case "ISOLATION": + return 480; + case "JOIN": + return 481; + case "JSON": + return 482; + case "JSON_ARRAY": + return 483; + case "JSON_ARRAYAGG": + return 484; + case "JSON_OBJECT": + return 485; + case "JSON_OBJECTAGG": + return 486; + case "KEY": + return 487; + case "KEYS": + return 488; + case "LABEL": + return 489; + case "LANGUAGE": + return 490; + case "LARGE_P": + return 491; + case "LAST_P": + return 492; + case "LATERAL_P": + return 493; + case "LEADING": + return 494; + case "LEAKPROOF": + return 495; + case "LEAST": + return 496; + case "LEFT": + return 497; + case "LEVEL": + return 498; + case "LIKE": + return 499; + case "LIMIT": + return 500; + case "LISTEN": + return 501; + case "LOAD": + return 502; + case "LOCAL": + return 503; + case "LOCALTIME": + return 504; + case "LOCALTIMESTAMP": + return 505; + case "LOCATION": + return 506; + case "LOCK_P": + return 507; + case "LOCKED": + return 508; + case "LOGGED": + return 509; + case "MAPPING": + return 510; + case "MATCH": + return 511; + case "MATCHED": + return 512; + case "MATERIALIZED": + return 513; + case "MAXVALUE": + return 514; + case "MERGE": + return 515; + case "METHOD": + return 516; + case "MINUTE_P": + return 517; + case "MINVALUE": + return 518; + case "MODE": + return 519; + case "MONTH_P": + return 520; + case "MOVE": + return 521; + case "NAME_P": + return 522; + case "NAMES": + return 523; + case "NATIONAL": + return 524; + case "NATURAL": + return 525; + case "NCHAR": + return 526; + case "NEW": + return 527; + case "NEXT": + return 528; + case "NFC": + return 529; + case "NFD": + return 530; + case "NFKC": + return 531; + case "NFKD": + return 532; + case "NO": + return 533; + case "NONE": + return 534; + case "NORMALIZE": + return 535; + case "NORMALIZED": + return 536; + case "NOT": + return 537; + case "NOTHING": + return 538; + case "NOTIFY": + return 539; + case "NOTNULL": + return 540; + case "NOWAIT": + return 541; + case "NULL_P": + return 542; + case "NULLIF": + return 543; + case "NULLS_P": + return 544; + case "NUMERIC": + return 545; + case "OBJECT_P": + return 546; + case "OF": + return 547; + case "OFF": + return 548; + case "OFFSET": + return 549; + case "OIDS": + return 550; + case "OLD": + return 551; + case "ON": + return 552; + case "ONLY": + return 553; + case "OPERATOR": + return 554; + case "OPTION": + return 555; + case "OPTIONS": + return 556; + case "OR": + return 557; + case "ORDER": + return 558; + case "ORDINALITY": + return 559; + case "OTHERS": + return 560; + case "OUT_P": + return 561; + case "OUTER_P": + return 562; + case "OVER": + return 563; + case "OVERLAPS": + return 564; + case "OVERLAY": + return 565; + case "OVERRIDING": + return 566; + case "OWNED": + return 567; + case "OWNER": + return 568; + case "PARALLEL": + return 569; + case "PARAMETER": + return 570; + case "PARSER": + return 571; + case "PARTIAL": + return 572; + case "PARTITION": + return 573; + case "PASSING": + return 574; + case "PASSWORD": + return 575; + case "PLACING": + return 576; + case "PLANS": + return 577; + case "POLICY": + return 578; + case "POSITION": + return 579; + case "PRECEDING": + return 580; + case "PRECISION": + return 581; + case "PRESERVE": + return 582; + case "PREPARE": + return 583; + case "PREPARED": + return 584; + case "PRIMARY": + return 585; + case "PRIOR": + return 586; + case "PRIVILEGES": + return 587; + case "PROCEDURAL": + return 588; + case "PROCEDURE": + return 589; + case "PROCEDURES": + return 590; + case "PROGRAM": + return 591; + case "PUBLICATION": + return 592; + case "QUOTE": + return 593; + case "RANGE": + return 594; + case "READ": + return 595; + case "REAL": + return 596; + case "REASSIGN": + return 597; + case "RECHECK": + return 598; + case "RECURSIVE": + return 599; + case "REF_P": + return 600; + case "REFERENCES": + return 601; + case "REFERENCING": + return 602; + case "REFRESH": + return 603; + case "REINDEX": + return 604; + case "RELATIVE_P": + return 605; + case "RELEASE": + return 606; + case "RENAME": + return 607; + case "REPEATABLE": + return 608; + case "REPLACE": + return 609; + case "REPLICA": + return 610; + case "RESET": + return 611; + case "RESTART": + return 612; + case "RESTRICT": + return 613; + case "RETURN": + return 614; + case "RETURNING": + return 615; + case "RETURNS": + return 616; + case "REVOKE": + return 617; + case "RIGHT": + return 618; + case "ROLE": + return 619; + case "ROLLBACK": + return 620; + case "ROLLUP": + return 621; + case "ROUTINE": + return 622; + case "ROUTINES": + return 623; + case "ROW": + return 624; + case "ROWS": + return 625; + case "RULE": + return 626; + case "SAVEPOINT": + return 627; + case "SCALAR": + return 628; + case "SCHEMA": + return 629; + case "SCHEMAS": + return 630; + case "SCROLL": + return 631; + case "SEARCH": + return 632; + case "SECOND_P": + return 633; + case "SECURITY": + return 634; + case "SELECT": + return 635; + case "SEQUENCE": + return 636; + case "SEQUENCES": + return 637; + case "SERIALIZABLE": + return 638; + case "SERVER": + return 639; + case "SESSION": + return 640; + case "SESSION_USER": + return 641; + case "SET": + return 642; + case "SETS": + return 643; + case "SETOF": + return 644; + case "SHARE": + return 645; + case "SHOW": + return 646; + case "SIMILAR": + return 647; + case "SIMPLE": + return 648; + case "SKIP": + return 649; + case "SMALLINT": + return 650; + case "SNAPSHOT": + return 651; + case "SOME": + return 652; + case "SQL_P": + return 653; + case "STABLE": + return 654; + case "STANDALONE_P": + return 655; + case "START": + return 656; + case "STATEMENT": + return 657; + case "STATISTICS": + return 658; + case "STDIN": + return 659; + case "STDOUT": + return 660; + case "STORAGE": + return 661; + case "STORED": + return 662; + case "STRICT_P": + return 663; + case "STRIP_P": + return 664; + case "SUBSCRIPTION": + return 665; + case "SUBSTRING": + return 666; + case "SUPPORT": + return 667; + case "SYMMETRIC": + return 668; + case "SYSID": + return 669; + case "SYSTEM_P": + return 670; + case "SYSTEM_USER": + return 671; + case "TABLE": + return 672; + case "TABLES": + return 673; + case "TABLESAMPLE": + return 674; + case "TABLESPACE": + return 675; + case "TEMP": + return 676; + case "TEMPLATE": + return 677; + case "TEMPORARY": + return 678; + case "TEXT_P": + return 679; + case "THEN": + return 680; + case "TIES": + return 681; + case "TIME": + return 682; + case "TIMESTAMP": + return 683; + case "TO": + return 684; + case "TRAILING": + return 685; + case "TRANSACTION": + return 686; + case "TRANSFORM": + return 687; + case "TREAT": + return 688; + case "TRIGGER": + return 689; + case "TRIM": + return 690; + case "TRUE_P": + return 691; + case "TRUNCATE": + return 692; + case "TRUSTED": + return 693; + case "TYPE_P": + return 694; + case "TYPES_P": + return 695; + case "UESCAPE": + return 696; + case "UNBOUNDED": + return 697; + case "UNCOMMITTED": + return 698; + case "UNENCRYPTED": + return 699; + case "UNION": + return 700; + case "UNIQUE": + return 701; + case "UNKNOWN": + return 702; + case "UNLISTEN": + return 703; + case "UNLOGGED": + return 704; + case "UNTIL": + return 705; + case "UPDATE": + return 706; + case "USER": + return 707; + case "USING": + return 708; + case "VACUUM": + return 709; + case "VALID": + return 710; + case "VALIDATE": + return 711; + case "VALIDATOR": + return 712; + case "VALUE_P": + return 713; + case "VALUES": + return 714; + case "VARCHAR": + return 715; + case "VARIADIC": + return 716; + case "VARYING": + return 717; + case "VERBOSE": + return 718; + case "VERSION_P": + return 719; + case "VIEW": + return 720; + case "VIEWS": + return 721; + case "VOLATILE": + return 722; + case "WHEN": + return 723; + case "WHERE": + return 724; + case "WHITESPACE_P": + return 725; + case "WINDOW": + return 726; + case "WITH": + return 727; + case "WITHIN": + return 728; + case "WITHOUT": + return 729; + case "WORK": + return 730; + case "WRAPPER": + return 731; + case "WRITE": + return 732; + case "XML_P": + return 733; + case "XMLATTRIBUTES": + return 734; + case "XMLCONCAT": + return 735; + case "XMLELEMENT": + return 736; + case "XMLEXISTS": + return 737; + case "XMLFOREST": + return 738; + case "XMLNAMESPACES": + return 739; + case "XMLPARSE": + return 740; + case "XMLPI": + return 741; + case "XMLROOT": + return 742; + case "XMLSERIALIZE": + return 743; + case "XMLTABLE": + return 744; + case "YEAR_P": + return 745; + case "YES_P": + return 746; + case "ZONE": + return 747; + case "FORMAT_LA": + return 748; + case "NOT_LA": + return 749; + case "NULLS_LA": + return 750; + case "WITH_LA": + return 751; + case "WITHOUT_LA": + return 752; + case "MODE_TYPE_NAME": + return 753; + case "MODE_PLPGSQL_EXPR": + return 754; + case "MODE_PLPGSQL_ASSIGN1": + return 755; + case "MODE_PLPGSQL_ASSIGN2": + return 756; + case "MODE_PLPGSQL_ASSIGN3": + return 757; + case "UMINUS": + return 758; + default: + throw new Error("Key not recognized in enum Token"); + } + } +}; \ No newline at end of file diff --git a/__fixtures__/output/utils/enums/nested-objects-custom/custom-string-nested.ts b/__fixtures__/output/utils/enums/nested-objects-custom/custom-string-nested.ts new file mode 100644 index 00000000..4590ea76 --- /dev/null +++ b/__fixtures__/output/utils/enums/nested-objects-custom/custom-string-nested.ts @@ -0,0 +1,2344 @@ +/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type EnumType = "OverridingKind" | "QuerySource" | "SortByDir" | "SortByNulls" | "SetQuantifier" | "A_Expr_Kind" | "RoleSpecType" | "TableLikeOption" | "DefElemAction" | "PartitionStrategy" | "PartitionRangeDatumKind" | "RTEKind" | "WCOKind" | "GroupingSetKind" | "CTEMaterialize" | "SetOperation" | "ObjectType" | "DropBehavior" | "AlterTableType" | "GrantTargetType" | "VariableSetKind" | "ConstrType" | "ImportForeignSchemaType" | "RoleStmtType" | "FetchDirection" | "FunctionParameterMode" | "TransactionStmtKind" | "ViewCheckOption" | "DiscardMode" | "ReindexObjectType" | "AlterTSConfigType" | "PublicationObjSpecType" | "AlterPublicationAction" | "AlterSubscriptionType" | "OnCommitAction" | "ParamKind" | "CoercionContext" | "CoercionForm" | "BoolExprType" | "SubLinkType" | "RowCompareType" | "MinMaxOp" | "SQLValueFunctionOp" | "XmlExprOp" | "XmlOptionType" | "JsonEncoding" | "JsonFormatType" | "JsonConstructorType" | "JsonValueType" | "NullTestType" | "BoolTestType" | "CmdType" | "JoinType" | "AggStrategy" | "AggSplit" | "SetOpCmd" | "SetOpStrategy" | "OnConflictAction" | "LimitOption" | "LockClauseStrength" | "LockWaitPolicy" | "LockTupleMode" | "KeywordKind" | "Token"; +export type EnumToStringMap = { + "OverridingKind": (value: number) => string; + "QuerySource": (value: number) => string; + "SortByDir": (value: number) => string; + "SortByNulls": (value: number) => string; + "SetQuantifier": (value: number) => string; + "A_Expr_Kind": (value: number) => string; + "RoleSpecType": (value: number) => string; + "TableLikeOption": (value: number) => string; + "DefElemAction": (value: number) => string; + "PartitionStrategy": (value: number) => string; + "PartitionRangeDatumKind": (value: number) => string; + "RTEKind": (value: number) => string; + "WCOKind": (value: number) => string; + "GroupingSetKind": (value: number) => string; + "CTEMaterialize": (value: number) => string; + "SetOperation": (value: number) => string; + "ObjectType": (value: number) => string; + "DropBehavior": (value: number) => string; + "AlterTableType": (value: number) => string; + "GrantTargetType": (value: number) => string; + "VariableSetKind": (value: number) => string; + "ConstrType": (value: number) => string; + "ImportForeignSchemaType": (value: number) => string; + "RoleStmtType": (value: number) => string; + "FetchDirection": (value: number) => string; + "FunctionParameterMode": (value: number) => string; + "TransactionStmtKind": (value: number) => string; + "ViewCheckOption": (value: number) => string; + "DiscardMode": (value: number) => string; + "ReindexObjectType": (value: number) => string; + "AlterTSConfigType": (value: number) => string; + "PublicationObjSpecType": (value: number) => string; + "AlterPublicationAction": (value: number) => string; + "AlterSubscriptionType": (value: number) => string; + "OnCommitAction": (value: number) => string; + "ParamKind": (value: number) => string; + "CoercionContext": (value: number) => string; + "CoercionForm": (value: number) => string; + "BoolExprType": (value: number) => string; + "SubLinkType": (value: number) => string; + "RowCompareType": (value: number) => string; + "MinMaxOp": (value: number) => string; + "SQLValueFunctionOp": (value: number) => string; + "XmlExprOp": (value: number) => string; + "XmlOptionType": (value: number) => string; + "JsonEncoding": (value: number) => string; + "JsonFormatType": (value: number) => string; + "JsonConstructorType": (value: number) => string; + "JsonValueType": (value: number) => string; + "NullTestType": (value: number) => string; + "BoolTestType": (value: number) => string; + "CmdType": (value: number) => string; + "JoinType": (value: number) => string; + "AggStrategy": (value: number) => string; + "AggSplit": (value: number) => string; + "SetOpCmd": (value: number) => string; + "SetOpStrategy": (value: number) => string; + "OnConflictAction": (value: number) => string; + "LimitOption": (value: number) => string; + "LockClauseStrength": (value: number) => string; + "LockWaitPolicy": (value: number) => string; + "LockTupleMode": (value: number) => string; + "KeywordKind": (value: number) => string; + "Token": (value: number) => string; +}; +export const enumToStringMap: EnumToStringMap = { + "OverridingKind": (value: number): string => { + switch (value) { + case 0: + return "OVERRIDING_NOT_SET"; + case 1: + return "OVERRIDING_USER_VALUE"; + case 2: + return "OVERRIDING_SYSTEM_VALUE"; + default: + throw new Error("Value not recognized in enum OverridingKind"); + } + }, + "QuerySource": (value: number): string => { + switch (value) { + case 0: + return "QSRC_ORIGINAL"; + case 1: + return "QSRC_PARSER"; + case 2: + return "QSRC_INSTEAD_RULE"; + case 3: + return "QSRC_QUAL_INSTEAD_RULE"; + case 4: + return "QSRC_NON_INSTEAD_RULE"; + default: + throw new Error("Value not recognized in enum QuerySource"); + } + }, + "SortByDir": (value: number): string => { + switch (value) { + case 0: + return "SORTBY_DEFAULT"; + case 1: + return "SORTBY_ASC"; + case 2: + return "SORTBY_DESC"; + case 3: + return "SORTBY_USING"; + default: + throw new Error("Value not recognized in enum SortByDir"); + } + }, + "SortByNulls": (value: number): string => { + switch (value) { + case 0: + return "SORTBY_NULLS_DEFAULT"; + case 1: + return "SORTBY_NULLS_FIRST"; + case 2: + return "SORTBY_NULLS_LAST"; + default: + throw new Error("Value not recognized in enum SortByNulls"); + } + }, + "SetQuantifier": (value: number): string => { + switch (value) { + case 0: + return "SET_QUANTIFIER_DEFAULT"; + case 1: + return "SET_QUANTIFIER_ALL"; + case 2: + return "SET_QUANTIFIER_DISTINCT"; + default: + throw new Error("Value not recognized in enum SetQuantifier"); + } + }, + "A_Expr_Kind": (value: number): string => { + switch (value) { + case 0: + return "AEXPR_OP"; + case 1: + return "AEXPR_OP_ANY"; + case 2: + return "AEXPR_OP_ALL"; + case 3: + return "AEXPR_DISTINCT"; + case 4: + return "AEXPR_NOT_DISTINCT"; + case 5: + return "AEXPR_NULLIF"; + case 6: + return "AEXPR_IN"; + case 7: + return "AEXPR_LIKE"; + case 8: + return "AEXPR_ILIKE"; + case 9: + return "AEXPR_SIMILAR"; + case 10: + return "AEXPR_BETWEEN"; + case 11: + return "AEXPR_NOT_BETWEEN"; + case 12: + return "AEXPR_BETWEEN_SYM"; + case 13: + return "AEXPR_NOT_BETWEEN_SYM"; + default: + throw new Error("Value not recognized in enum A_Expr_Kind"); + } + }, + "RoleSpecType": (value: number): string => { + switch (value) { + case 0: + return "ROLESPEC_CSTRING"; + case 1: + return "ROLESPEC_CURRENT_ROLE"; + case 2: + return "ROLESPEC_CURRENT_USER"; + case 3: + return "ROLESPEC_SESSION_USER"; + case 4: + return "ROLESPEC_PUBLIC"; + default: + throw new Error("Value not recognized in enum RoleSpecType"); + } + }, + "TableLikeOption": (value: number): string => { + switch (value) { + case 0: + return "CREATE_TABLE_LIKE_COMMENTS"; + case 1: + return "CREATE_TABLE_LIKE_COMPRESSION"; + case 2: + return "CREATE_TABLE_LIKE_CONSTRAINTS"; + case 3: + return "CREATE_TABLE_LIKE_DEFAULTS"; + case 4: + return "CREATE_TABLE_LIKE_GENERATED"; + case 5: + return "CREATE_TABLE_LIKE_IDENTITY"; + case 6: + return "CREATE_TABLE_LIKE_INDEXES"; + case 7: + return "CREATE_TABLE_LIKE_STATISTICS"; + case 8: + return "CREATE_TABLE_LIKE_STORAGE"; + case 9: + return "CREATE_TABLE_LIKE_ALL"; + default: + throw new Error("Value not recognized in enum TableLikeOption"); + } + }, + "DefElemAction": (value: number): string => { + switch (value) { + case 0: + return "DEFELEM_UNSPEC"; + case 1: + return "DEFELEM_SET"; + case 2: + return "DEFELEM_ADD"; + case 3: + return "DEFELEM_DROP"; + default: + throw new Error("Value not recognized in enum DefElemAction"); + } + }, + "PartitionStrategy": (value: number): string => { + switch (value) { + case 0: + return "PARTITION_STRATEGY_LIST"; + case 1: + return "PARTITION_STRATEGY_RANGE"; + case 2: + return "PARTITION_STRATEGY_HASH"; + default: + throw new Error("Value not recognized in enum PartitionStrategy"); + } + }, + "PartitionRangeDatumKind": (value: number): string => { + switch (value) { + case 0: + return "PARTITION_RANGE_DATUM_MINVALUE"; + case 1: + return "PARTITION_RANGE_DATUM_VALUE"; + case 2: + return "PARTITION_RANGE_DATUM_MAXVALUE"; + default: + throw new Error("Value not recognized in enum PartitionRangeDatumKind"); + } + }, + "RTEKind": (value: number): string => { + switch (value) { + case 0: + return "RTE_RELATION"; + case 1: + return "RTE_SUBQUERY"; + case 2: + return "RTE_JOIN"; + case 3: + return "RTE_FUNCTION"; + case 4: + return "RTE_TABLEFUNC"; + case 5: + return "RTE_VALUES"; + case 6: + return "RTE_CTE"; + case 7: + return "RTE_NAMEDTUPLESTORE"; + case 8: + return "RTE_RESULT"; + default: + throw new Error("Value not recognized in enum RTEKind"); + } + }, + "WCOKind": (value: number): string => { + switch (value) { + case 0: + return "WCO_VIEW_CHECK"; + case 1: + return "WCO_RLS_INSERT_CHECK"; + case 2: + return "WCO_RLS_UPDATE_CHECK"; + case 3: + return "WCO_RLS_CONFLICT_CHECK"; + case 4: + return "WCO_RLS_MERGE_UPDATE_CHECK"; + case 5: + return "WCO_RLS_MERGE_DELETE_CHECK"; + default: + throw new Error("Value not recognized in enum WCOKind"); + } + }, + "GroupingSetKind": (value: number): string => { + switch (value) { + case 0: + return "GROUPING_SET_EMPTY"; + case 1: + return "GROUPING_SET_SIMPLE"; + case 2: + return "GROUPING_SET_ROLLUP"; + case 3: + return "GROUPING_SET_CUBE"; + case 4: + return "GROUPING_SET_SETS"; + default: + throw new Error("Value not recognized in enum GroupingSetKind"); + } + }, + "CTEMaterialize": (value: number): string => { + switch (value) { + case 0: + return "CTEMaterializeDefault"; + case 1: + return "CTEMaterializeAlways"; + case 2: + return "CTEMaterializeNever"; + default: + throw new Error("Value not recognized in enum CTEMaterialize"); + } + }, + "SetOperation": (value: number): string => { + switch (value) { + case 0: + return "SETOP_NONE"; + case 1: + return "SETOP_UNION"; + case 2: + return "SETOP_INTERSECT"; + case 3: + return "SETOP_EXCEPT"; + default: + throw new Error("Value not recognized in enum SetOperation"); + } + }, + "ObjectType": (value: number): string => { + switch (value) { + case 0: + return "OBJECT_ACCESS_METHOD"; + case 1: + return "OBJECT_AGGREGATE"; + case 2: + return "OBJECT_AMOP"; + case 3: + return "OBJECT_AMPROC"; + case 4: + return "OBJECT_ATTRIBUTE"; + case 5: + return "OBJECT_CAST"; + case 6: + return "OBJECT_COLUMN"; + case 7: + return "OBJECT_COLLATION"; + case 8: + return "OBJECT_CONVERSION"; + case 9: + return "OBJECT_DATABASE"; + case 10: + return "OBJECT_DEFAULT"; + case 11: + return "OBJECT_DEFACL"; + case 12: + return "OBJECT_DOMAIN"; + case 13: + return "OBJECT_DOMCONSTRAINT"; + case 14: + return "OBJECT_EVENT_TRIGGER"; + case 15: + return "OBJECT_EXTENSION"; + case 16: + return "OBJECT_FDW"; + case 17: + return "OBJECT_FOREIGN_SERVER"; + case 18: + return "OBJECT_FOREIGN_TABLE"; + case 19: + return "OBJECT_FUNCTION"; + case 20: + return "OBJECT_INDEX"; + case 21: + return "OBJECT_LANGUAGE"; + case 22: + return "OBJECT_LARGEOBJECT"; + case 23: + return "OBJECT_MATVIEW"; + case 24: + return "OBJECT_OPCLASS"; + case 25: + return "OBJECT_OPERATOR"; + case 26: + return "OBJECT_OPFAMILY"; + case 27: + return "OBJECT_PARAMETER_ACL"; + case 28: + return "OBJECT_POLICY"; + case 29: + return "OBJECT_PROCEDURE"; + case 30: + return "OBJECT_PUBLICATION"; + case 31: + return "OBJECT_PUBLICATION_NAMESPACE"; + case 32: + return "OBJECT_PUBLICATION_REL"; + case 33: + return "OBJECT_ROLE"; + case 34: + return "OBJECT_ROUTINE"; + case 35: + return "OBJECT_RULE"; + case 36: + return "OBJECT_SCHEMA"; + case 37: + return "OBJECT_SEQUENCE"; + case 38: + return "OBJECT_SUBSCRIPTION"; + case 39: + return "OBJECT_STATISTIC_EXT"; + case 40: + return "OBJECT_TABCONSTRAINT"; + case 41: + return "OBJECT_TABLE"; + case 42: + return "OBJECT_TABLESPACE"; + case 43: + return "OBJECT_TRANSFORM"; + case 44: + return "OBJECT_TRIGGER"; + case 45: + return "OBJECT_TSCONFIGURATION"; + case 46: + return "OBJECT_TSDICTIONARY"; + case 47: + return "OBJECT_TSPARSER"; + case 48: + return "OBJECT_TSTEMPLATE"; + case 49: + return "OBJECT_TYPE"; + case 50: + return "OBJECT_USER_MAPPING"; + case 51: + return "OBJECT_VIEW"; + default: + throw new Error("Value not recognized in enum ObjectType"); + } + }, + "DropBehavior": (value: number): string => { + switch (value) { + case 0: + return "DROP_RESTRICT"; + case 1: + return "DROP_CASCADE"; + default: + throw new Error("Value not recognized in enum DropBehavior"); + } + }, + "AlterTableType": (value: number): string => { + switch (value) { + case 0: + return "AT_AddColumn"; + case 1: + return "AT_AddColumnToView"; + case 2: + return "AT_ColumnDefault"; + case 3: + return "AT_CookedColumnDefault"; + case 4: + return "AT_DropNotNull"; + case 5: + return "AT_SetNotNull"; + case 6: + return "AT_DropExpression"; + case 7: + return "AT_CheckNotNull"; + case 8: + return "AT_SetStatistics"; + case 9: + return "AT_SetOptions"; + case 10: + return "AT_ResetOptions"; + case 11: + return "AT_SetStorage"; + case 12: + return "AT_SetCompression"; + case 13: + return "AT_DropColumn"; + case 14: + return "AT_AddIndex"; + case 15: + return "AT_ReAddIndex"; + case 16: + return "AT_AddConstraint"; + case 17: + return "AT_ReAddConstraint"; + case 18: + return "AT_ReAddDomainConstraint"; + case 19: + return "AT_AlterConstraint"; + case 20: + return "AT_ValidateConstraint"; + case 21: + return "AT_AddIndexConstraint"; + case 22: + return "AT_DropConstraint"; + case 23: + return "AT_ReAddComment"; + case 24: + return "AT_AlterColumnType"; + case 25: + return "AT_AlterColumnGenericOptions"; + case 26: + return "AT_ChangeOwner"; + case 27: + return "AT_ClusterOn"; + case 28: + return "AT_DropCluster"; + case 29: + return "AT_SetLogged"; + case 30: + return "AT_SetUnLogged"; + case 31: + return "AT_DropOids"; + case 32: + return "AT_SetAccessMethod"; + case 33: + return "AT_SetTableSpace"; + case 34: + return "AT_SetRelOptions"; + case 35: + return "AT_ResetRelOptions"; + case 36: + return "AT_ReplaceRelOptions"; + case 37: + return "AT_EnableTrig"; + case 38: + return "AT_EnableAlwaysTrig"; + case 39: + return "AT_EnableReplicaTrig"; + case 40: + return "AT_DisableTrig"; + case 41: + return "AT_EnableTrigAll"; + case 42: + return "AT_DisableTrigAll"; + case 43: + return "AT_EnableTrigUser"; + case 44: + return "AT_DisableTrigUser"; + case 45: + return "AT_EnableRule"; + case 46: + return "AT_EnableAlwaysRule"; + case 47: + return "AT_EnableReplicaRule"; + case 48: + return "AT_DisableRule"; + case 49: + return "AT_AddInherit"; + case 50: + return "AT_DropInherit"; + case 51: + return "AT_AddOf"; + case 52: + return "AT_DropOf"; + case 53: + return "AT_ReplicaIdentity"; + case 54: + return "AT_EnableRowSecurity"; + case 55: + return "AT_DisableRowSecurity"; + case 56: + return "AT_ForceRowSecurity"; + case 57: + return "AT_NoForceRowSecurity"; + case 58: + return "AT_GenericOptions"; + case 59: + return "AT_AttachPartition"; + case 60: + return "AT_DetachPartition"; + case 61: + return "AT_DetachPartitionFinalize"; + case 62: + return "AT_AddIdentity"; + case 63: + return "AT_SetIdentity"; + case 64: + return "AT_DropIdentity"; + case 65: + return "AT_ReAddStatistics"; + default: + throw new Error("Value not recognized in enum AlterTableType"); + } + }, + "GrantTargetType": (value: number): string => { + switch (value) { + case 0: + return "ACL_TARGET_OBJECT"; + case 1: + return "ACL_TARGET_ALL_IN_SCHEMA"; + case 2: + return "ACL_TARGET_DEFAULTS"; + default: + throw new Error("Value not recognized in enum GrantTargetType"); + } + }, + "VariableSetKind": (value: number): string => { + switch (value) { + case 0: + return "VAR_SET_VALUE"; + case 1: + return "VAR_SET_DEFAULT"; + case 2: + return "VAR_SET_CURRENT"; + case 3: + return "VAR_SET_MULTI"; + case 4: + return "VAR_RESET"; + case 5: + return "VAR_RESET_ALL"; + default: + throw new Error("Value not recognized in enum VariableSetKind"); + } + }, + "ConstrType": (value: number): string => { + switch (value) { + case 0: + return "CONSTR_NULL"; + case 1: + return "CONSTR_NOTNULL"; + case 2: + return "CONSTR_DEFAULT"; + case 3: + return "CONSTR_IDENTITY"; + case 4: + return "CONSTR_GENERATED"; + case 5: + return "CONSTR_CHECK"; + case 6: + return "CONSTR_PRIMARY"; + case 7: + return "CONSTR_UNIQUE"; + case 8: + return "CONSTR_EXCLUSION"; + case 9: + return "CONSTR_FOREIGN"; + case 10: + return "CONSTR_ATTR_DEFERRABLE"; + case 11: + return "CONSTR_ATTR_NOT_DEFERRABLE"; + case 12: + return "CONSTR_ATTR_DEFERRED"; + case 13: + return "CONSTR_ATTR_IMMEDIATE"; + default: + throw new Error("Value not recognized in enum ConstrType"); + } + }, + "ImportForeignSchemaType": (value: number): string => { + switch (value) { + case 0: + return "FDW_IMPORT_SCHEMA_ALL"; + case 1: + return "FDW_IMPORT_SCHEMA_LIMIT_TO"; + case 2: + return "FDW_IMPORT_SCHEMA_EXCEPT"; + default: + throw new Error("Value not recognized in enum ImportForeignSchemaType"); + } + }, + "RoleStmtType": (value: number): string => { + switch (value) { + case 0: + return "ROLESTMT_ROLE"; + case 1: + return "ROLESTMT_USER"; + case 2: + return "ROLESTMT_GROUP"; + default: + throw new Error("Value not recognized in enum RoleStmtType"); + } + }, + "FetchDirection": (value: number): string => { + switch (value) { + case 0: + return "FETCH_FORWARD"; + case 1: + return "FETCH_BACKWARD"; + case 2: + return "FETCH_ABSOLUTE"; + case 3: + return "FETCH_RELATIVE"; + default: + throw new Error("Value not recognized in enum FetchDirection"); + } + }, + "FunctionParameterMode": (value: number): string => { + switch (value) { + case 0: + return "FUNC_PARAM_IN"; + case 1: + return "FUNC_PARAM_OUT"; + case 2: + return "FUNC_PARAM_INOUT"; + case 3: + return "FUNC_PARAM_VARIADIC"; + case 4: + return "FUNC_PARAM_TABLE"; + case 5: + return "FUNC_PARAM_DEFAULT"; + default: + throw new Error("Value not recognized in enum FunctionParameterMode"); + } + }, + "TransactionStmtKind": (value: number): string => { + switch (value) { + case 0: + return "TRANS_STMT_BEGIN"; + case 1: + return "TRANS_STMT_START"; + case 2: + return "TRANS_STMT_COMMIT"; + case 3: + return "TRANS_STMT_ROLLBACK"; + case 4: + return "TRANS_STMT_SAVEPOINT"; + case 5: + return "TRANS_STMT_RELEASE"; + case 6: + return "TRANS_STMT_ROLLBACK_TO"; + case 7: + return "TRANS_STMT_PREPARE"; + case 8: + return "TRANS_STMT_COMMIT_PREPARED"; + case 9: + return "TRANS_STMT_ROLLBACK_PREPARED"; + default: + throw new Error("Value not recognized in enum TransactionStmtKind"); + } + }, + "ViewCheckOption": (value: number): string => { + switch (value) { + case 0: + return "NO_CHECK_OPTION"; + case 1: + return "LOCAL_CHECK_OPTION"; + case 2: + return "CASCADED_CHECK_OPTION"; + default: + throw new Error("Value not recognized in enum ViewCheckOption"); + } + }, + "DiscardMode": (value: number): string => { + switch (value) { + case 0: + return "DISCARD_ALL"; + case 1: + return "DISCARD_PLANS"; + case 2: + return "DISCARD_SEQUENCES"; + case 3: + return "DISCARD_TEMP"; + default: + throw new Error("Value not recognized in enum DiscardMode"); + } + }, + "ReindexObjectType": (value: number): string => { + switch (value) { + case 0: + return "REINDEX_OBJECT_INDEX"; + case 1: + return "REINDEX_OBJECT_TABLE"; + case 2: + return "REINDEX_OBJECT_SCHEMA"; + case 3: + return "REINDEX_OBJECT_SYSTEM"; + case 4: + return "REINDEX_OBJECT_DATABASE"; + default: + throw new Error("Value not recognized in enum ReindexObjectType"); + } + }, + "AlterTSConfigType": (value: number): string => { + switch (value) { + case 0: + return "ALTER_TSCONFIG_ADD_MAPPING"; + case 1: + return "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN"; + case 2: + return "ALTER_TSCONFIG_REPLACE_DICT"; + case 3: + return "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN"; + case 4: + return "ALTER_TSCONFIG_DROP_MAPPING"; + default: + throw new Error("Value not recognized in enum AlterTSConfigType"); + } + }, + "PublicationObjSpecType": (value: number): string => { + switch (value) { + case 0: + return "PUBLICATIONOBJ_TABLE"; + case 1: + return "PUBLICATIONOBJ_TABLES_IN_SCHEMA"; + case 2: + return "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA"; + case 3: + return "PUBLICATIONOBJ_CONTINUATION"; + default: + throw new Error("Value not recognized in enum PublicationObjSpecType"); + } + }, + "AlterPublicationAction": (value: number): string => { + switch (value) { + case 0: + return "AP_AddObjects"; + case 1: + return "AP_DropObjects"; + case 2: + return "AP_SetObjects"; + default: + throw new Error("Value not recognized in enum AlterPublicationAction"); + } + }, + "AlterSubscriptionType": (value: number): string => { + switch (value) { + case 0: + return "ALTER_SUBSCRIPTION_OPTIONS"; + case 1: + return "ALTER_SUBSCRIPTION_CONNECTION"; + case 2: + return "ALTER_SUBSCRIPTION_SET_PUBLICATION"; + case 3: + return "ALTER_SUBSCRIPTION_ADD_PUBLICATION"; + case 4: + return "ALTER_SUBSCRIPTION_DROP_PUBLICATION"; + case 5: + return "ALTER_SUBSCRIPTION_REFRESH"; + case 6: + return "ALTER_SUBSCRIPTION_ENABLED"; + case 7: + return "ALTER_SUBSCRIPTION_SKIP"; + default: + throw new Error("Value not recognized in enum AlterSubscriptionType"); + } + }, + "OnCommitAction": (value: number): string => { + switch (value) { + case 0: + return "ONCOMMIT_NOOP"; + case 1: + return "ONCOMMIT_PRESERVE_ROWS"; + case 2: + return "ONCOMMIT_DELETE_ROWS"; + case 3: + return "ONCOMMIT_DROP"; + default: + throw new Error("Value not recognized in enum OnCommitAction"); + } + }, + "ParamKind": (value: number): string => { + switch (value) { + case 0: + return "PARAM_EXTERN"; + case 1: + return "PARAM_EXEC"; + case 2: + return "PARAM_SUBLINK"; + case 3: + return "PARAM_MULTIEXPR"; + default: + throw new Error("Value not recognized in enum ParamKind"); + } + }, + "CoercionContext": (value: number): string => { + switch (value) { + case 0: + return "COERCION_IMPLICIT"; + case 1: + return "COERCION_ASSIGNMENT"; + case 2: + return "COERCION_PLPGSQL"; + case 3: + return "COERCION_EXPLICIT"; + default: + throw new Error("Value not recognized in enum CoercionContext"); + } + }, + "CoercionForm": (value: number): string => { + switch (value) { + case 0: + return "COERCE_EXPLICIT_CALL"; + case 1: + return "COERCE_EXPLICIT_CAST"; + case 2: + return "COERCE_IMPLICIT_CAST"; + case 3: + return "COERCE_SQL_SYNTAX"; + default: + throw new Error("Value not recognized in enum CoercionForm"); + } + }, + "BoolExprType": (value: number): string => { + switch (value) { + case 0: + return "AND_EXPR"; + case 1: + return "OR_EXPR"; + case 2: + return "NOT_EXPR"; + default: + throw new Error("Value not recognized in enum BoolExprType"); + } + }, + "SubLinkType": (value: number): string => { + switch (value) { + case 0: + return "EXISTS_SUBLINK"; + case 1: + return "ALL_SUBLINK"; + case 2: + return "ANY_SUBLINK"; + case 3: + return "ROWCOMPARE_SUBLINK"; + case 4: + return "EXPR_SUBLINK"; + case 5: + return "MULTIEXPR_SUBLINK"; + case 6: + return "ARRAY_SUBLINK"; + case 7: + return "CTE_SUBLINK"; + default: + throw new Error("Value not recognized in enum SubLinkType"); + } + }, + "RowCompareType": (value: number): string => { + switch (value) { + case 0: + return "ROWCOMPARE_LT"; + case 1: + return "ROWCOMPARE_LE"; + case 2: + return "ROWCOMPARE_EQ"; + case 3: + return "ROWCOMPARE_GE"; + case 4: + return "ROWCOMPARE_GT"; + case 5: + return "ROWCOMPARE_NE"; + default: + throw new Error("Value not recognized in enum RowCompareType"); + } + }, + "MinMaxOp": (value: number): string => { + switch (value) { + case 0: + return "IS_GREATEST"; + case 1: + return "IS_LEAST"; + default: + throw new Error("Value not recognized in enum MinMaxOp"); + } + }, + "SQLValueFunctionOp": (value: number): string => { + switch (value) { + case 0: + return "SVFOP_CURRENT_DATE"; + case 1: + return "SVFOP_CURRENT_TIME"; + case 2: + return "SVFOP_CURRENT_TIME_N"; + case 3: + return "SVFOP_CURRENT_TIMESTAMP"; + case 4: + return "SVFOP_CURRENT_TIMESTAMP_N"; + case 5: + return "SVFOP_LOCALTIME"; + case 6: + return "SVFOP_LOCALTIME_N"; + case 7: + return "SVFOP_LOCALTIMESTAMP"; + case 8: + return "SVFOP_LOCALTIMESTAMP_N"; + case 9: + return "SVFOP_CURRENT_ROLE"; + case 10: + return "SVFOP_CURRENT_USER"; + case 11: + return "SVFOP_USER"; + case 12: + return "SVFOP_SESSION_USER"; + case 13: + return "SVFOP_CURRENT_CATALOG"; + case 14: + return "SVFOP_CURRENT_SCHEMA"; + default: + throw new Error("Value not recognized in enum SQLValueFunctionOp"); + } + }, + "XmlExprOp": (value: number): string => { + switch (value) { + case 0: + return "IS_XMLCONCAT"; + case 1: + return "IS_XMLELEMENT"; + case 2: + return "IS_XMLFOREST"; + case 3: + return "IS_XMLPARSE"; + case 4: + return "IS_XMLPI"; + case 5: + return "IS_XMLROOT"; + case 6: + return "IS_XMLSERIALIZE"; + case 7: + return "IS_DOCUMENT"; + default: + throw new Error("Value not recognized in enum XmlExprOp"); + } + }, + "XmlOptionType": (value: number): string => { + switch (value) { + case 0: + return "XMLOPTION_DOCUMENT"; + case 1: + return "XMLOPTION_CONTENT"; + default: + throw new Error("Value not recognized in enum XmlOptionType"); + } + }, + "JsonEncoding": (value: number): string => { + switch (value) { + case 0: + return "JS_ENC_DEFAULT"; + case 1: + return "JS_ENC_UTF8"; + case 2: + return "JS_ENC_UTF16"; + case 3: + return "JS_ENC_UTF32"; + default: + throw new Error("Value not recognized in enum JsonEncoding"); + } + }, + "JsonFormatType": (value: number): string => { + switch (value) { + case 0: + return "JS_FORMAT_DEFAULT"; + case 1: + return "JS_FORMAT_JSON"; + case 2: + return "JS_FORMAT_JSONB"; + default: + throw new Error("Value not recognized in enum JsonFormatType"); + } + }, + "JsonConstructorType": (value: number): string => { + switch (value) { + case 0: + return "JSCTOR_JSON_OBJECT"; + case 1: + return "JSCTOR_JSON_ARRAY"; + case 2: + return "JSCTOR_JSON_OBJECTAGG"; + case 3: + return "JSCTOR_JSON_ARRAYAGG"; + default: + throw new Error("Value not recognized in enum JsonConstructorType"); + } + }, + "JsonValueType": (value: number): string => { + switch (value) { + case 0: + return "JS_TYPE_ANY"; + case 1: + return "JS_TYPE_OBJECT"; + case 2: + return "JS_TYPE_ARRAY"; + case 3: + return "JS_TYPE_SCALAR"; + default: + throw new Error("Value not recognized in enum JsonValueType"); + } + }, + "NullTestType": (value: number): string => { + switch (value) { + case 0: + return "IS_NULL"; + case 1: + return "IS_NOT_NULL"; + default: + throw new Error("Value not recognized in enum NullTestType"); + } + }, + "BoolTestType": (value: number): string => { + switch (value) { + case 0: + return "IS_TRUE"; + case 1: + return "IS_NOT_TRUE"; + case 2: + return "IS_FALSE"; + case 3: + return "IS_NOT_FALSE"; + case 4: + return "IS_UNKNOWN"; + case 5: + return "IS_NOT_UNKNOWN"; + default: + throw new Error("Value not recognized in enum BoolTestType"); + } + }, + "CmdType": (value: number): string => { + switch (value) { + case 0: + return "CMD_UNKNOWN"; + case 1: + return "CMD_SELECT"; + case 2: + return "CMD_UPDATE"; + case 3: + return "CMD_INSERT"; + case 4: + return "CMD_DELETE"; + case 5: + return "CMD_MERGE"; + case 6: + return "CMD_UTILITY"; + case 7: + return "CMD_NOTHING"; + default: + throw new Error("Value not recognized in enum CmdType"); + } + }, + "JoinType": (value: number): string => { + switch (value) { + case 0: + return "JOIN_INNER"; + case 1: + return "JOIN_LEFT"; + case 2: + return "JOIN_FULL"; + case 3: + return "JOIN_RIGHT"; + case 4: + return "JOIN_SEMI"; + case 5: + return "JOIN_ANTI"; + case 6: + return "JOIN_RIGHT_ANTI"; + case 7: + return "JOIN_UNIQUE_OUTER"; + case 8: + return "JOIN_UNIQUE_INNER"; + default: + throw new Error("Value not recognized in enum JoinType"); + } + }, + "AggStrategy": (value: number): string => { + switch (value) { + case 0: + return "AGG_PLAIN"; + case 1: + return "AGG_SORTED"; + case 2: + return "AGG_HASHED"; + case 3: + return "AGG_MIXED"; + default: + throw new Error("Value not recognized in enum AggStrategy"); + } + }, + "AggSplit": (value: number): string => { + switch (value) { + case 0: + return "AGGSPLIT_SIMPLE"; + case 1: + return "AGGSPLIT_INITIAL_SERIAL"; + case 2: + return "AGGSPLIT_FINAL_DESERIAL"; + default: + throw new Error("Value not recognized in enum AggSplit"); + } + }, + "SetOpCmd": (value: number): string => { + switch (value) { + case 0: + return "SETOPCMD_INTERSECT"; + case 1: + return "SETOPCMD_INTERSECT_ALL"; + case 2: + return "SETOPCMD_EXCEPT"; + case 3: + return "SETOPCMD_EXCEPT_ALL"; + default: + throw new Error("Value not recognized in enum SetOpCmd"); + } + }, + "SetOpStrategy": (value: number): string => { + switch (value) { + case 0: + return "SETOP_SORTED"; + case 1: + return "SETOP_HASHED"; + default: + throw new Error("Value not recognized in enum SetOpStrategy"); + } + }, + "OnConflictAction": (value: number): string => { + switch (value) { + case 0: + return "ONCONFLICT_NONE"; + case 1: + return "ONCONFLICT_NOTHING"; + case 2: + return "ONCONFLICT_UPDATE"; + default: + throw new Error("Value not recognized in enum OnConflictAction"); + } + }, + "LimitOption": (value: number): string => { + switch (value) { + case 0: + return "LIMIT_OPTION_DEFAULT"; + case 1: + return "LIMIT_OPTION_COUNT"; + case 2: + return "LIMIT_OPTION_WITH_TIES"; + default: + throw new Error("Value not recognized in enum LimitOption"); + } + }, + "LockClauseStrength": (value: number): string => { + switch (value) { + case 0: + return "LCS_NONE"; + case 1: + return "LCS_FORKEYSHARE"; + case 2: + return "LCS_FORSHARE"; + case 3: + return "LCS_FORNOKEYUPDATE"; + case 4: + return "LCS_FORUPDATE"; + default: + throw new Error("Value not recognized in enum LockClauseStrength"); + } + }, + "LockWaitPolicy": (value: number): string => { + switch (value) { + case 0: + return "LockWaitBlock"; + case 1: + return "LockWaitSkip"; + case 2: + return "LockWaitError"; + default: + throw new Error("Value not recognized in enum LockWaitPolicy"); + } + }, + "LockTupleMode": (value: number): string => { + switch (value) { + case 0: + return "LockTupleKeyShare"; + case 1: + return "LockTupleShare"; + case 2: + return "LockTupleNoKeyExclusive"; + case 3: + return "LockTupleExclusive"; + default: + throw new Error("Value not recognized in enum LockTupleMode"); + } + }, + "KeywordKind": (value: number): string => { + switch (value) { + case 0: + return "NO_KEYWORD"; + case 1: + return "UNRESERVED_KEYWORD"; + case 2: + return "COL_NAME_KEYWORD"; + case 3: + return "TYPE_FUNC_NAME_KEYWORD"; + case 4: + return "RESERVED_KEYWORD"; + default: + throw new Error("Value not recognized in enum KeywordKind"); + } + }, + "Token": (value: number): string => { + switch (value) { + case 0: + return "NUL"; + case 36: + return "ASCII_36"; + case 37: + return "ASCII_37"; + case 40: + return "ASCII_40"; + case 41: + return "ASCII_41"; + case 42: + return "ASCII_42"; + case 43: + return "ASCII_43"; + case 44: + return "ASCII_44"; + case 45: + return "ASCII_45"; + case 46: + return "ASCII_46"; + case 47: + return "ASCII_47"; + case 58: + return "ASCII_58"; + case 59: + return "ASCII_59"; + case 60: + return "ASCII_60"; + case 61: + return "ASCII_61"; + case 62: + return "ASCII_62"; + case 63: + return "ASCII_63"; + case 91: + return "ASCII_91"; + case 92: + return "ASCII_92"; + case 93: + return "ASCII_93"; + case 94: + return "ASCII_94"; + case 258: + return "IDENT"; + case 259: + return "UIDENT"; + case 260: + return "FCONST"; + case 261: + return "SCONST"; + case 262: + return "USCONST"; + case 263: + return "BCONST"; + case 264: + return "XCONST"; + case 265: + return "Op"; + case 266: + return "ICONST"; + case 267: + return "PARAM"; + case 268: + return "TYPECAST"; + case 269: + return "DOT_DOT"; + case 270: + return "COLON_EQUALS"; + case 271: + return "EQUALS_GREATER"; + case 272: + return "LESS_EQUALS"; + case 273: + return "GREATER_EQUALS"; + case 274: + return "NOT_EQUALS"; + case 275: + return "SQL_COMMENT"; + case 276: + return "C_COMMENT"; + case 277: + return "ABORT_P"; + case 278: + return "ABSENT"; + case 279: + return "ABSOLUTE_P"; + case 280: + return "ACCESS"; + case 281: + return "ACTION"; + case 282: + return "ADD_P"; + case 283: + return "ADMIN"; + case 284: + return "AFTER"; + case 285: + return "AGGREGATE"; + case 286: + return "ALL"; + case 287: + return "ALSO"; + case 288: + return "ALTER"; + case 289: + return "ALWAYS"; + case 290: + return "ANALYSE"; + case 291: + return "ANALYZE"; + case 292: + return "AND"; + case 293: + return "ANY"; + case 294: + return "ARRAY"; + case 295: + return "AS"; + case 296: + return "ASC"; + case 297: + return "ASENSITIVE"; + case 298: + return "ASSERTION"; + case 299: + return "ASSIGNMENT"; + case 300: + return "ASYMMETRIC"; + case 301: + return "ATOMIC"; + case 302: + return "AT"; + case 303: + return "ATTACH"; + case 304: + return "ATTRIBUTE"; + case 305: + return "AUTHORIZATION"; + case 306: + return "BACKWARD"; + case 307: + return "BEFORE"; + case 308: + return "BEGIN_P"; + case 309: + return "BETWEEN"; + case 310: + return "BIGINT"; + case 311: + return "BINARY"; + case 312: + return "BIT"; + case 313: + return "BOOLEAN_P"; + case 314: + return "BOTH"; + case 315: + return "BREADTH"; + case 316: + return "BY"; + case 317: + return "CACHE"; + case 318: + return "CALL"; + case 319: + return "CALLED"; + case 320: + return "CASCADE"; + case 321: + return "CASCADED"; + case 322: + return "CASE"; + case 323: + return "CAST"; + case 324: + return "CATALOG_P"; + case 325: + return "CHAIN"; + case 326: + return "CHAR_P"; + case 327: + return "CHARACTER"; + case 328: + return "CHARACTERISTICS"; + case 329: + return "CHECK"; + case 330: + return "CHECKPOINT"; + case 331: + return "CLASS"; + case 332: + return "CLOSE"; + case 333: + return "CLUSTER"; + case 334: + return "COALESCE"; + case 335: + return "COLLATE"; + case 336: + return "COLLATION"; + case 337: + return "COLUMN"; + case 338: + return "COLUMNS"; + case 339: + return "COMMENT"; + case 340: + return "COMMENTS"; + case 341: + return "COMMIT"; + case 342: + return "COMMITTED"; + case 343: + return "COMPRESSION"; + case 344: + return "CONCURRENTLY"; + case 345: + return "CONFIGURATION"; + case 346: + return "CONFLICT"; + case 347: + return "CONNECTION"; + case 348: + return "CONSTRAINT"; + case 349: + return "CONSTRAINTS"; + case 350: + return "CONTENT_P"; + case 351: + return "CONTINUE_P"; + case 352: + return "CONVERSION_P"; + case 353: + return "COPY"; + case 354: + return "COST"; + case 355: + return "CREATE"; + case 356: + return "CROSS"; + case 357: + return "CSV"; + case 358: + return "CUBE"; + case 359: + return "CURRENT_P"; + case 360: + return "CURRENT_CATALOG"; + case 361: + return "CURRENT_DATE"; + case 362: + return "CURRENT_ROLE"; + case 363: + return "CURRENT_SCHEMA"; + case 364: + return "CURRENT_TIME"; + case 365: + return "CURRENT_TIMESTAMP"; + case 366: + return "CURRENT_USER"; + case 367: + return "CURSOR"; + case 368: + return "CYCLE"; + case 369: + return "DATA_P"; + case 370: + return "DATABASE"; + case 371: + return "DAY_P"; + case 372: + return "DEALLOCATE"; + case 373: + return "DEC"; + case 374: + return "DECIMAL_P"; + case 375: + return "DECLARE"; + case 376: + return "DEFAULT"; + case 377: + return "DEFAULTS"; + case 378: + return "DEFERRABLE"; + case 379: + return "DEFERRED"; + case 380: + return "DEFINER"; + case 381: + return "DELETE_P"; + case 382: + return "DELIMITER"; + case 383: + return "DELIMITERS"; + case 384: + return "DEPENDS"; + case 385: + return "DEPTH"; + case 386: + return "DESC"; + case 387: + return "DETACH"; + case 388: + return "DICTIONARY"; + case 389: + return "DISABLE_P"; + case 390: + return "DISCARD"; + case 391: + return "DISTINCT"; + case 392: + return "DO"; + case 393: + return "DOCUMENT_P"; + case 394: + return "DOMAIN_P"; + case 395: + return "DOUBLE_P"; + case 396: + return "DROP"; + case 397: + return "EACH"; + case 398: + return "ELSE"; + case 399: + return "ENABLE_P"; + case 400: + return "ENCODING"; + case 401: + return "ENCRYPTED"; + case 402: + return "END_P"; + case 403: + return "ENUM_P"; + case 404: + return "ESCAPE"; + case 405: + return "EVENT"; + case 406: + return "EXCEPT"; + case 407: + return "EXCLUDE"; + case 408: + return "EXCLUDING"; + case 409: + return "EXCLUSIVE"; + case 410: + return "EXECUTE"; + case 411: + return "EXISTS"; + case 412: + return "EXPLAIN"; + case 413: + return "EXPRESSION"; + case 414: + return "EXTENSION"; + case 415: + return "EXTERNAL"; + case 416: + return "EXTRACT"; + case 417: + return "FALSE_P"; + case 418: + return "FAMILY"; + case 419: + return "FETCH"; + case 420: + return "FILTER"; + case 421: + return "FINALIZE"; + case 422: + return "FIRST_P"; + case 423: + return "FLOAT_P"; + case 424: + return "FOLLOWING"; + case 425: + return "FOR"; + case 426: + return "FORCE"; + case 427: + return "FOREIGN"; + case 428: + return "FORMAT"; + case 429: + return "FORWARD"; + case 430: + return "FREEZE"; + case 431: + return "FROM"; + case 432: + return "FULL"; + case 433: + return "FUNCTION"; + case 434: + return "FUNCTIONS"; + case 435: + return "GENERATED"; + case 436: + return "GLOBAL"; + case 437: + return "GRANT"; + case 438: + return "GRANTED"; + case 439: + return "GREATEST"; + case 440: + return "GROUP_P"; + case 441: + return "GROUPING"; + case 442: + return "GROUPS"; + case 443: + return "HANDLER"; + case 444: + return "HAVING"; + case 445: + return "HEADER_P"; + case 446: + return "HOLD"; + case 447: + return "HOUR_P"; + case 448: + return "IDENTITY_P"; + case 449: + return "IF_P"; + case 450: + return "ILIKE"; + case 451: + return "IMMEDIATE"; + case 452: + return "IMMUTABLE"; + case 453: + return "IMPLICIT_P"; + case 454: + return "IMPORT_P"; + case 455: + return "IN_P"; + case 456: + return "INCLUDE"; + case 457: + return "INCLUDING"; + case 458: + return "INCREMENT"; + case 459: + return "INDENT"; + case 460: + return "INDEX"; + case 461: + return "INDEXES"; + case 462: + return "INHERIT"; + case 463: + return "INHERITS"; + case 464: + return "INITIALLY"; + case 465: + return "INLINE_P"; + case 466: + return "INNER_P"; + case 467: + return "INOUT"; + case 468: + return "INPUT_P"; + case 469: + return "INSENSITIVE"; + case 470: + return "INSERT"; + case 471: + return "INSTEAD"; + case 472: + return "INT_P"; + case 473: + return "INTEGER"; + case 474: + return "INTERSECT"; + case 475: + return "INTERVAL"; + case 476: + return "INTO"; + case 477: + return "INVOKER"; + case 478: + return "IS"; + case 479: + return "ISNULL"; + case 480: + return "ISOLATION"; + case 481: + return "JOIN"; + case 482: + return "JSON"; + case 483: + return "JSON_ARRAY"; + case 484: + return "JSON_ARRAYAGG"; + case 485: + return "JSON_OBJECT"; + case 486: + return "JSON_OBJECTAGG"; + case 487: + return "KEY"; + case 488: + return "KEYS"; + case 489: + return "LABEL"; + case 490: + return "LANGUAGE"; + case 491: + return "LARGE_P"; + case 492: + return "LAST_P"; + case 493: + return "LATERAL_P"; + case 494: + return "LEADING"; + case 495: + return "LEAKPROOF"; + case 496: + return "LEAST"; + case 497: + return "LEFT"; + case 498: + return "LEVEL"; + case 499: + return "LIKE"; + case 500: + return "LIMIT"; + case 501: + return "LISTEN"; + case 502: + return "LOAD"; + case 503: + return "LOCAL"; + case 504: + return "LOCALTIME"; + case 505: + return "LOCALTIMESTAMP"; + case 506: + return "LOCATION"; + case 507: + return "LOCK_P"; + case 508: + return "LOCKED"; + case 509: + return "LOGGED"; + case 510: + return "MAPPING"; + case 511: + return "MATCH"; + case 512: + return "MATCHED"; + case 513: + return "MATERIALIZED"; + case 514: + return "MAXVALUE"; + case 515: + return "MERGE"; + case 516: + return "METHOD"; + case 517: + return "MINUTE_P"; + case 518: + return "MINVALUE"; + case 519: + return "MODE"; + case 520: + return "MONTH_P"; + case 521: + return "MOVE"; + case 522: + return "NAME_P"; + case 523: + return "NAMES"; + case 524: + return "NATIONAL"; + case 525: + return "NATURAL"; + case 526: + return "NCHAR"; + case 527: + return "NEW"; + case 528: + return "NEXT"; + case 529: + return "NFC"; + case 530: + return "NFD"; + case 531: + return "NFKC"; + case 532: + return "NFKD"; + case 533: + return "NO"; + case 534: + return "NONE"; + case 535: + return "NORMALIZE"; + case 536: + return "NORMALIZED"; + case 537: + return "NOT"; + case 538: + return "NOTHING"; + case 539: + return "NOTIFY"; + case 540: + return "NOTNULL"; + case 541: + return "NOWAIT"; + case 542: + return "NULL_P"; + case 543: + return "NULLIF"; + case 544: + return "NULLS_P"; + case 545: + return "NUMERIC"; + case 546: + return "OBJECT_P"; + case 547: + return "OF"; + case 548: + return "OFF"; + case 549: + return "OFFSET"; + case 550: + return "OIDS"; + case 551: + return "OLD"; + case 552: + return "ON"; + case 553: + return "ONLY"; + case 554: + return "OPERATOR"; + case 555: + return "OPTION"; + case 556: + return "OPTIONS"; + case 557: + return "OR"; + case 558: + return "ORDER"; + case 559: + return "ORDINALITY"; + case 560: + return "OTHERS"; + case 561: + return "OUT_P"; + case 562: + return "OUTER_P"; + case 563: + return "OVER"; + case 564: + return "OVERLAPS"; + case 565: + return "OVERLAY"; + case 566: + return "OVERRIDING"; + case 567: + return "OWNED"; + case 568: + return "OWNER"; + case 569: + return "PARALLEL"; + case 570: + return "PARAMETER"; + case 571: + return "PARSER"; + case 572: + return "PARTIAL"; + case 573: + return "PARTITION"; + case 574: + return "PASSING"; + case 575: + return "PASSWORD"; + case 576: + return "PLACING"; + case 577: + return "PLANS"; + case 578: + return "POLICY"; + case 579: + return "POSITION"; + case 580: + return "PRECEDING"; + case 581: + return "PRECISION"; + case 582: + return "PRESERVE"; + case 583: + return "PREPARE"; + case 584: + return "PREPARED"; + case 585: + return "PRIMARY"; + case 586: + return "PRIOR"; + case 587: + return "PRIVILEGES"; + case 588: + return "PROCEDURAL"; + case 589: + return "PROCEDURE"; + case 590: + return "PROCEDURES"; + case 591: + return "PROGRAM"; + case 592: + return "PUBLICATION"; + case 593: + return "QUOTE"; + case 594: + return "RANGE"; + case 595: + return "READ"; + case 596: + return "REAL"; + case 597: + return "REASSIGN"; + case 598: + return "RECHECK"; + case 599: + return "RECURSIVE"; + case 600: + return "REF_P"; + case 601: + return "REFERENCES"; + case 602: + return "REFERENCING"; + case 603: + return "REFRESH"; + case 604: + return "REINDEX"; + case 605: + return "RELATIVE_P"; + case 606: + return "RELEASE"; + case 607: + return "RENAME"; + case 608: + return "REPEATABLE"; + case 609: + return "REPLACE"; + case 610: + return "REPLICA"; + case 611: + return "RESET"; + case 612: + return "RESTART"; + case 613: + return "RESTRICT"; + case 614: + return "RETURN"; + case 615: + return "RETURNING"; + case 616: + return "RETURNS"; + case 617: + return "REVOKE"; + case 618: + return "RIGHT"; + case 619: + return "ROLE"; + case 620: + return "ROLLBACK"; + case 621: + return "ROLLUP"; + case 622: + return "ROUTINE"; + case 623: + return "ROUTINES"; + case 624: + return "ROW"; + case 625: + return "ROWS"; + case 626: + return "RULE"; + case 627: + return "SAVEPOINT"; + case 628: + return "SCALAR"; + case 629: + return "SCHEMA"; + case 630: + return "SCHEMAS"; + case 631: + return "SCROLL"; + case 632: + return "SEARCH"; + case 633: + return "SECOND_P"; + case 634: + return "SECURITY"; + case 635: + return "SELECT"; + case 636: + return "SEQUENCE"; + case 637: + return "SEQUENCES"; + case 638: + return "SERIALIZABLE"; + case 639: + return "SERVER"; + case 640: + return "SESSION"; + case 641: + return "SESSION_USER"; + case 642: + return "SET"; + case 643: + return "SETS"; + case 644: + return "SETOF"; + case 645: + return "SHARE"; + case 646: + return "SHOW"; + case 647: + return "SIMILAR"; + case 648: + return "SIMPLE"; + case 649: + return "SKIP"; + case 650: + return "SMALLINT"; + case 651: + return "SNAPSHOT"; + case 652: + return "SOME"; + case 653: + return "SQL_P"; + case 654: + return "STABLE"; + case 655: + return "STANDALONE_P"; + case 656: + return "START"; + case 657: + return "STATEMENT"; + case 658: + return "STATISTICS"; + case 659: + return "STDIN"; + case 660: + return "STDOUT"; + case 661: + return "STORAGE"; + case 662: + return "STORED"; + case 663: + return "STRICT_P"; + case 664: + return "STRIP_P"; + case 665: + return "SUBSCRIPTION"; + case 666: + return "SUBSTRING"; + case 667: + return "SUPPORT"; + case 668: + return "SYMMETRIC"; + case 669: + return "SYSID"; + case 670: + return "SYSTEM_P"; + case 671: + return "SYSTEM_USER"; + case 672: + return "TABLE"; + case 673: + return "TABLES"; + case 674: + return "TABLESAMPLE"; + case 675: + return "TABLESPACE"; + case 676: + return "TEMP"; + case 677: + return "TEMPLATE"; + case 678: + return "TEMPORARY"; + case 679: + return "TEXT_P"; + case 680: + return "THEN"; + case 681: + return "TIES"; + case 682: + return "TIME"; + case 683: + return "TIMESTAMP"; + case 684: + return "TO"; + case 685: + return "TRAILING"; + case 686: + return "TRANSACTION"; + case 687: + return "TRANSFORM"; + case 688: + return "TREAT"; + case 689: + return "TRIGGER"; + case 690: + return "TRIM"; + case 691: + return "TRUE_P"; + case 692: + return "TRUNCATE"; + case 693: + return "TRUSTED"; + case 694: + return "TYPE_P"; + case 695: + return "TYPES_P"; + case 696: + return "UESCAPE"; + case 697: + return "UNBOUNDED"; + case 698: + return "UNCOMMITTED"; + case 699: + return "UNENCRYPTED"; + case 700: + return "UNION"; + case 701: + return "UNIQUE"; + case 702: + return "UNKNOWN"; + case 703: + return "UNLISTEN"; + case 704: + return "UNLOGGED"; + case 705: + return "UNTIL"; + case 706: + return "UPDATE"; + case 707: + return "USER"; + case 708: + return "USING"; + case 709: + return "VACUUM"; + case 710: + return "VALID"; + case 711: + return "VALIDATE"; + case 712: + return "VALIDATOR"; + case 713: + return "VALUE_P"; + case 714: + return "VALUES"; + case 715: + return "VARCHAR"; + case 716: + return "VARIADIC"; + case 717: + return "VARYING"; + case 718: + return "VERBOSE"; + case 719: + return "VERSION_P"; + case 720: + return "VIEW"; + case 721: + return "VIEWS"; + case 722: + return "VOLATILE"; + case 723: + return "WHEN"; + case 724: + return "WHERE"; + case 725: + return "WHITESPACE_P"; + case 726: + return "WINDOW"; + case 727: + return "WITH"; + case 728: + return "WITHIN"; + case 729: + return "WITHOUT"; + case 730: + return "WORK"; + case 731: + return "WRAPPER"; + case 732: + return "WRITE"; + case 733: + return "XML_P"; + case 734: + return "XMLATTRIBUTES"; + case 735: + return "XMLCONCAT"; + case 736: + return "XMLELEMENT"; + case 737: + return "XMLEXISTS"; + case 738: + return "XMLFOREST"; + case 739: + return "XMLNAMESPACES"; + case 740: + return "XMLPARSE"; + case 741: + return "XMLPI"; + case 742: + return "XMLROOT"; + case 743: + return "XMLSERIALIZE"; + case 744: + return "XMLTABLE"; + case 745: + return "YEAR_P"; + case 746: + return "YES_P"; + case 747: + return "ZONE"; + case 748: + return "FORMAT_LA"; + case 749: + return "NOT_LA"; + case 750: + return "NULLS_LA"; + case 751: + return "WITH_LA"; + case 752: + return "WITHOUT_LA"; + case 753: + return "MODE_TYPE_NAME"; + case 754: + return "MODE_PLPGSQL_EXPR"; + case 755: + return "MODE_PLPGSQL_ASSIGN1"; + case 756: + return "MODE_PLPGSQL_ASSIGN2"; + case 757: + return "MODE_PLPGSQL_ASSIGN3"; + case 758: + return "UMINUS"; + default: + throw new Error("Value not recognized in enum Token"); + } + } +}; \ No newline at end of file diff --git a/__fixtures__/output/utils/enums/nested-objects/enum-to-int-nested.ts b/__fixtures__/output/utils/enums/nested-objects/enum-to-int-nested.ts new file mode 100644 index 00000000..d6c10ddf --- /dev/null +++ b/__fixtures__/output/utils/enums/nested-objects/enum-to-int-nested.ts @@ -0,0 +1,2344 @@ +/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type EnumType = "OverridingKind" | "QuerySource" | "SortByDir" | "SortByNulls" | "SetQuantifier" | "A_Expr_Kind" | "RoleSpecType" | "TableLikeOption" | "DefElemAction" | "PartitionStrategy" | "PartitionRangeDatumKind" | "RTEKind" | "WCOKind" | "GroupingSetKind" | "CTEMaterialize" | "SetOperation" | "ObjectType" | "DropBehavior" | "AlterTableType" | "GrantTargetType" | "VariableSetKind" | "ConstrType" | "ImportForeignSchemaType" | "RoleStmtType" | "FetchDirection" | "FunctionParameterMode" | "TransactionStmtKind" | "ViewCheckOption" | "DiscardMode" | "ReindexObjectType" | "AlterTSConfigType" | "PublicationObjSpecType" | "AlterPublicationAction" | "AlterSubscriptionType" | "OnCommitAction" | "ParamKind" | "CoercionContext" | "CoercionForm" | "BoolExprType" | "SubLinkType" | "RowCompareType" | "MinMaxOp" | "SQLValueFunctionOp" | "XmlExprOp" | "XmlOptionType" | "JsonEncoding" | "JsonFormatType" | "JsonConstructorType" | "JsonValueType" | "NullTestType" | "BoolTestType" | "CmdType" | "JoinType" | "AggStrategy" | "AggSplit" | "SetOpCmd" | "SetOpStrategy" | "OnConflictAction" | "LimitOption" | "LockClauseStrength" | "LockWaitPolicy" | "LockTupleMode" | "KeywordKind" | "Token"; +export type EnumToIntMap = { + "OverridingKind": (key: string) => number; + "QuerySource": (key: string) => number; + "SortByDir": (key: string) => number; + "SortByNulls": (key: string) => number; + "SetQuantifier": (key: string) => number; + "A_Expr_Kind": (key: string) => number; + "RoleSpecType": (key: string) => number; + "TableLikeOption": (key: string) => number; + "DefElemAction": (key: string) => number; + "PartitionStrategy": (key: string) => number; + "PartitionRangeDatumKind": (key: string) => number; + "RTEKind": (key: string) => number; + "WCOKind": (key: string) => number; + "GroupingSetKind": (key: string) => number; + "CTEMaterialize": (key: string) => number; + "SetOperation": (key: string) => number; + "ObjectType": (key: string) => number; + "DropBehavior": (key: string) => number; + "AlterTableType": (key: string) => number; + "GrantTargetType": (key: string) => number; + "VariableSetKind": (key: string) => number; + "ConstrType": (key: string) => number; + "ImportForeignSchemaType": (key: string) => number; + "RoleStmtType": (key: string) => number; + "FetchDirection": (key: string) => number; + "FunctionParameterMode": (key: string) => number; + "TransactionStmtKind": (key: string) => number; + "ViewCheckOption": (key: string) => number; + "DiscardMode": (key: string) => number; + "ReindexObjectType": (key: string) => number; + "AlterTSConfigType": (key: string) => number; + "PublicationObjSpecType": (key: string) => number; + "AlterPublicationAction": (key: string) => number; + "AlterSubscriptionType": (key: string) => number; + "OnCommitAction": (key: string) => number; + "ParamKind": (key: string) => number; + "CoercionContext": (key: string) => number; + "CoercionForm": (key: string) => number; + "BoolExprType": (key: string) => number; + "SubLinkType": (key: string) => number; + "RowCompareType": (key: string) => number; + "MinMaxOp": (key: string) => number; + "SQLValueFunctionOp": (key: string) => number; + "XmlExprOp": (key: string) => number; + "XmlOptionType": (key: string) => number; + "JsonEncoding": (key: string) => number; + "JsonFormatType": (key: string) => number; + "JsonConstructorType": (key: string) => number; + "JsonValueType": (key: string) => number; + "NullTestType": (key: string) => number; + "BoolTestType": (key: string) => number; + "CmdType": (key: string) => number; + "JoinType": (key: string) => number; + "AggStrategy": (key: string) => number; + "AggSplit": (key: string) => number; + "SetOpCmd": (key: string) => number; + "SetOpStrategy": (key: string) => number; + "OnConflictAction": (key: string) => number; + "LimitOption": (key: string) => number; + "LockClauseStrength": (key: string) => number; + "LockWaitPolicy": (key: string) => number; + "LockTupleMode": (key: string) => number; + "KeywordKind": (key: string) => number; + "Token": (key: string) => number; +}; +export const enumToIntMap: EnumToIntMap = { + "OverridingKind": (key: string): number => { + switch (key) { + case "OVERRIDING_NOT_SET": + return 0; + case "OVERRIDING_USER_VALUE": + return 1; + case "OVERRIDING_SYSTEM_VALUE": + return 2; + default: + throw new Error("Key not recognized in enum OverridingKind"); + } + }, + "QuerySource": (key: string): number => { + switch (key) { + case "QSRC_ORIGINAL": + return 0; + case "QSRC_PARSER": + return 1; + case "QSRC_INSTEAD_RULE": + return 2; + case "QSRC_QUAL_INSTEAD_RULE": + return 3; + case "QSRC_NON_INSTEAD_RULE": + return 4; + default: + throw new Error("Key not recognized in enum QuerySource"); + } + }, + "SortByDir": (key: string): number => { + switch (key) { + case "SORTBY_DEFAULT": + return 0; + case "SORTBY_ASC": + return 1; + case "SORTBY_DESC": + return 2; + case "SORTBY_USING": + return 3; + default: + throw new Error("Key not recognized in enum SortByDir"); + } + }, + "SortByNulls": (key: string): number => { + switch (key) { + case "SORTBY_NULLS_DEFAULT": + return 0; + case "SORTBY_NULLS_FIRST": + return 1; + case "SORTBY_NULLS_LAST": + return 2; + default: + throw new Error("Key not recognized in enum SortByNulls"); + } + }, + "SetQuantifier": (key: string): number => { + switch (key) { + case "SET_QUANTIFIER_DEFAULT": + return 0; + case "SET_QUANTIFIER_ALL": + return 1; + case "SET_QUANTIFIER_DISTINCT": + return 2; + default: + throw new Error("Key not recognized in enum SetQuantifier"); + } + }, + "A_Expr_Kind": (key: string): number => { + switch (key) { + case "AEXPR_OP": + return 0; + case "AEXPR_OP_ANY": + return 1; + case "AEXPR_OP_ALL": + return 2; + case "AEXPR_DISTINCT": + return 3; + case "AEXPR_NOT_DISTINCT": + return 4; + case "AEXPR_NULLIF": + return 5; + case "AEXPR_IN": + return 6; + case "AEXPR_LIKE": + return 7; + case "AEXPR_ILIKE": + return 8; + case "AEXPR_SIMILAR": + return 9; + case "AEXPR_BETWEEN": + return 10; + case "AEXPR_NOT_BETWEEN": + return 11; + case "AEXPR_BETWEEN_SYM": + return 12; + case "AEXPR_NOT_BETWEEN_SYM": + return 13; + default: + throw new Error("Key not recognized in enum A_Expr_Kind"); + } + }, + "RoleSpecType": (key: string): number => { + switch (key) { + case "ROLESPEC_CSTRING": + return 0; + case "ROLESPEC_CURRENT_ROLE": + return 1; + case "ROLESPEC_CURRENT_USER": + return 2; + case "ROLESPEC_SESSION_USER": + return 3; + case "ROLESPEC_PUBLIC": + return 4; + default: + throw new Error("Key not recognized in enum RoleSpecType"); + } + }, + "TableLikeOption": (key: string): number => { + switch (key) { + case "CREATE_TABLE_LIKE_COMMENTS": + return 0; + case "CREATE_TABLE_LIKE_COMPRESSION": + return 1; + case "CREATE_TABLE_LIKE_CONSTRAINTS": + return 2; + case "CREATE_TABLE_LIKE_DEFAULTS": + return 3; + case "CREATE_TABLE_LIKE_GENERATED": + return 4; + case "CREATE_TABLE_LIKE_IDENTITY": + return 5; + case "CREATE_TABLE_LIKE_INDEXES": + return 6; + case "CREATE_TABLE_LIKE_STATISTICS": + return 7; + case "CREATE_TABLE_LIKE_STORAGE": + return 8; + case "CREATE_TABLE_LIKE_ALL": + return 9; + default: + throw new Error("Key not recognized in enum TableLikeOption"); + } + }, + "DefElemAction": (key: string): number => { + switch (key) { + case "DEFELEM_UNSPEC": + return 0; + case "DEFELEM_SET": + return 1; + case "DEFELEM_ADD": + return 2; + case "DEFELEM_DROP": + return 3; + default: + throw new Error("Key not recognized in enum DefElemAction"); + } + }, + "PartitionStrategy": (key: string): number => { + switch (key) { + case "PARTITION_STRATEGY_LIST": + return 0; + case "PARTITION_STRATEGY_RANGE": + return 1; + case "PARTITION_STRATEGY_HASH": + return 2; + default: + throw new Error("Key not recognized in enum PartitionStrategy"); + } + }, + "PartitionRangeDatumKind": (key: string): number => { + switch (key) { + case "PARTITION_RANGE_DATUM_MINVALUE": + return 0; + case "PARTITION_RANGE_DATUM_VALUE": + return 1; + case "PARTITION_RANGE_DATUM_MAXVALUE": + return 2; + default: + throw new Error("Key not recognized in enum PartitionRangeDatumKind"); + } + }, + "RTEKind": (key: string): number => { + switch (key) { + case "RTE_RELATION": + return 0; + case "RTE_SUBQUERY": + return 1; + case "RTE_JOIN": + return 2; + case "RTE_FUNCTION": + return 3; + case "RTE_TABLEFUNC": + return 4; + case "RTE_VALUES": + return 5; + case "RTE_CTE": + return 6; + case "RTE_NAMEDTUPLESTORE": + return 7; + case "RTE_RESULT": + return 8; + default: + throw new Error("Key not recognized in enum RTEKind"); + } + }, + "WCOKind": (key: string): number => { + switch (key) { + case "WCO_VIEW_CHECK": + return 0; + case "WCO_RLS_INSERT_CHECK": + return 1; + case "WCO_RLS_UPDATE_CHECK": + return 2; + case "WCO_RLS_CONFLICT_CHECK": + return 3; + case "WCO_RLS_MERGE_UPDATE_CHECK": + return 4; + case "WCO_RLS_MERGE_DELETE_CHECK": + return 5; + default: + throw new Error("Key not recognized in enum WCOKind"); + } + }, + "GroupingSetKind": (key: string): number => { + switch (key) { + case "GROUPING_SET_EMPTY": + return 0; + case "GROUPING_SET_SIMPLE": + return 1; + case "GROUPING_SET_ROLLUP": + return 2; + case "GROUPING_SET_CUBE": + return 3; + case "GROUPING_SET_SETS": + return 4; + default: + throw new Error("Key not recognized in enum GroupingSetKind"); + } + }, + "CTEMaterialize": (key: string): number => { + switch (key) { + case "CTEMaterializeDefault": + return 0; + case "CTEMaterializeAlways": + return 1; + case "CTEMaterializeNever": + return 2; + default: + throw new Error("Key not recognized in enum CTEMaterialize"); + } + }, + "SetOperation": (key: string): number => { + switch (key) { + case "SETOP_NONE": + return 0; + case "SETOP_UNION": + return 1; + case "SETOP_INTERSECT": + return 2; + case "SETOP_EXCEPT": + return 3; + default: + throw new Error("Key not recognized in enum SetOperation"); + } + }, + "ObjectType": (key: string): number => { + switch (key) { + case "OBJECT_ACCESS_METHOD": + return 0; + case "OBJECT_AGGREGATE": + return 1; + case "OBJECT_AMOP": + return 2; + case "OBJECT_AMPROC": + return 3; + case "OBJECT_ATTRIBUTE": + return 4; + case "OBJECT_CAST": + return 5; + case "OBJECT_COLUMN": + return 6; + case "OBJECT_COLLATION": + return 7; + case "OBJECT_CONVERSION": + return 8; + case "OBJECT_DATABASE": + return 9; + case "OBJECT_DEFAULT": + return 10; + case "OBJECT_DEFACL": + return 11; + case "OBJECT_DOMAIN": + return 12; + case "OBJECT_DOMCONSTRAINT": + return 13; + case "OBJECT_EVENT_TRIGGER": + return 14; + case "OBJECT_EXTENSION": + return 15; + case "OBJECT_FDW": + return 16; + case "OBJECT_FOREIGN_SERVER": + return 17; + case "OBJECT_FOREIGN_TABLE": + return 18; + case "OBJECT_FUNCTION": + return 19; + case "OBJECT_INDEX": + return 20; + case "OBJECT_LANGUAGE": + return 21; + case "OBJECT_LARGEOBJECT": + return 22; + case "OBJECT_MATVIEW": + return 23; + case "OBJECT_OPCLASS": + return 24; + case "OBJECT_OPERATOR": + return 25; + case "OBJECT_OPFAMILY": + return 26; + case "OBJECT_PARAMETER_ACL": + return 27; + case "OBJECT_POLICY": + return 28; + case "OBJECT_PROCEDURE": + return 29; + case "OBJECT_PUBLICATION": + return 30; + case "OBJECT_PUBLICATION_NAMESPACE": + return 31; + case "OBJECT_PUBLICATION_REL": + return 32; + case "OBJECT_ROLE": + return 33; + case "OBJECT_ROUTINE": + return 34; + case "OBJECT_RULE": + return 35; + case "OBJECT_SCHEMA": + return 36; + case "OBJECT_SEQUENCE": + return 37; + case "OBJECT_SUBSCRIPTION": + return 38; + case "OBJECT_STATISTIC_EXT": + return 39; + case "OBJECT_TABCONSTRAINT": + return 40; + case "OBJECT_TABLE": + return 41; + case "OBJECT_TABLESPACE": + return 42; + case "OBJECT_TRANSFORM": + return 43; + case "OBJECT_TRIGGER": + return 44; + case "OBJECT_TSCONFIGURATION": + return 45; + case "OBJECT_TSDICTIONARY": + return 46; + case "OBJECT_TSPARSER": + return 47; + case "OBJECT_TSTEMPLATE": + return 48; + case "OBJECT_TYPE": + return 49; + case "OBJECT_USER_MAPPING": + return 50; + case "OBJECT_VIEW": + return 51; + default: + throw new Error("Key not recognized in enum ObjectType"); + } + }, + "DropBehavior": (key: string): number => { + switch (key) { + case "DROP_RESTRICT": + return 0; + case "DROP_CASCADE": + return 1; + default: + throw new Error("Key not recognized in enum DropBehavior"); + } + }, + "AlterTableType": (key: string): number => { + switch (key) { + case "AT_AddColumn": + return 0; + case "AT_AddColumnToView": + return 1; + case "AT_ColumnDefault": + return 2; + case "AT_CookedColumnDefault": + return 3; + case "AT_DropNotNull": + return 4; + case "AT_SetNotNull": + return 5; + case "AT_DropExpression": + return 6; + case "AT_CheckNotNull": + return 7; + case "AT_SetStatistics": + return 8; + case "AT_SetOptions": + return 9; + case "AT_ResetOptions": + return 10; + case "AT_SetStorage": + return 11; + case "AT_SetCompression": + return 12; + case "AT_DropColumn": + return 13; + case "AT_AddIndex": + return 14; + case "AT_ReAddIndex": + return 15; + case "AT_AddConstraint": + return 16; + case "AT_ReAddConstraint": + return 17; + case "AT_ReAddDomainConstraint": + return 18; + case "AT_AlterConstraint": + return 19; + case "AT_ValidateConstraint": + return 20; + case "AT_AddIndexConstraint": + return 21; + case "AT_DropConstraint": + return 22; + case "AT_ReAddComment": + return 23; + case "AT_AlterColumnType": + return 24; + case "AT_AlterColumnGenericOptions": + return 25; + case "AT_ChangeOwner": + return 26; + case "AT_ClusterOn": + return 27; + case "AT_DropCluster": + return 28; + case "AT_SetLogged": + return 29; + case "AT_SetUnLogged": + return 30; + case "AT_DropOids": + return 31; + case "AT_SetAccessMethod": + return 32; + case "AT_SetTableSpace": + return 33; + case "AT_SetRelOptions": + return 34; + case "AT_ResetRelOptions": + return 35; + case "AT_ReplaceRelOptions": + return 36; + case "AT_EnableTrig": + return 37; + case "AT_EnableAlwaysTrig": + return 38; + case "AT_EnableReplicaTrig": + return 39; + case "AT_DisableTrig": + return 40; + case "AT_EnableTrigAll": + return 41; + case "AT_DisableTrigAll": + return 42; + case "AT_EnableTrigUser": + return 43; + case "AT_DisableTrigUser": + return 44; + case "AT_EnableRule": + return 45; + case "AT_EnableAlwaysRule": + return 46; + case "AT_EnableReplicaRule": + return 47; + case "AT_DisableRule": + return 48; + case "AT_AddInherit": + return 49; + case "AT_DropInherit": + return 50; + case "AT_AddOf": + return 51; + case "AT_DropOf": + return 52; + case "AT_ReplicaIdentity": + return 53; + case "AT_EnableRowSecurity": + return 54; + case "AT_DisableRowSecurity": + return 55; + case "AT_ForceRowSecurity": + return 56; + case "AT_NoForceRowSecurity": + return 57; + case "AT_GenericOptions": + return 58; + case "AT_AttachPartition": + return 59; + case "AT_DetachPartition": + return 60; + case "AT_DetachPartitionFinalize": + return 61; + case "AT_AddIdentity": + return 62; + case "AT_SetIdentity": + return 63; + case "AT_DropIdentity": + return 64; + case "AT_ReAddStatistics": + return 65; + default: + throw new Error("Key not recognized in enum AlterTableType"); + } + }, + "GrantTargetType": (key: string): number => { + switch (key) { + case "ACL_TARGET_OBJECT": + return 0; + case "ACL_TARGET_ALL_IN_SCHEMA": + return 1; + case "ACL_TARGET_DEFAULTS": + return 2; + default: + throw new Error("Key not recognized in enum GrantTargetType"); + } + }, + "VariableSetKind": (key: string): number => { + switch (key) { + case "VAR_SET_VALUE": + return 0; + case "VAR_SET_DEFAULT": + return 1; + case "VAR_SET_CURRENT": + return 2; + case "VAR_SET_MULTI": + return 3; + case "VAR_RESET": + return 4; + case "VAR_RESET_ALL": + return 5; + default: + throw new Error("Key not recognized in enum VariableSetKind"); + } + }, + "ConstrType": (key: string): number => { + switch (key) { + case "CONSTR_NULL": + return 0; + case "CONSTR_NOTNULL": + return 1; + case "CONSTR_DEFAULT": + return 2; + case "CONSTR_IDENTITY": + return 3; + case "CONSTR_GENERATED": + return 4; + case "CONSTR_CHECK": + return 5; + case "CONSTR_PRIMARY": + return 6; + case "CONSTR_UNIQUE": + return 7; + case "CONSTR_EXCLUSION": + return 8; + case "CONSTR_FOREIGN": + return 9; + case "CONSTR_ATTR_DEFERRABLE": + return 10; + case "CONSTR_ATTR_NOT_DEFERRABLE": + return 11; + case "CONSTR_ATTR_DEFERRED": + return 12; + case "CONSTR_ATTR_IMMEDIATE": + return 13; + default: + throw new Error("Key not recognized in enum ConstrType"); + } + }, + "ImportForeignSchemaType": (key: string): number => { + switch (key) { + case "FDW_IMPORT_SCHEMA_ALL": + return 0; + case "FDW_IMPORT_SCHEMA_LIMIT_TO": + return 1; + case "FDW_IMPORT_SCHEMA_EXCEPT": + return 2; + default: + throw new Error("Key not recognized in enum ImportForeignSchemaType"); + } + }, + "RoleStmtType": (key: string): number => { + switch (key) { + case "ROLESTMT_ROLE": + return 0; + case "ROLESTMT_USER": + return 1; + case "ROLESTMT_GROUP": + return 2; + default: + throw new Error("Key not recognized in enum RoleStmtType"); + } + }, + "FetchDirection": (key: string): number => { + switch (key) { + case "FETCH_FORWARD": + return 0; + case "FETCH_BACKWARD": + return 1; + case "FETCH_ABSOLUTE": + return 2; + case "FETCH_RELATIVE": + return 3; + default: + throw new Error("Key not recognized in enum FetchDirection"); + } + }, + "FunctionParameterMode": (key: string): number => { + switch (key) { + case "FUNC_PARAM_IN": + return 0; + case "FUNC_PARAM_OUT": + return 1; + case "FUNC_PARAM_INOUT": + return 2; + case "FUNC_PARAM_VARIADIC": + return 3; + case "FUNC_PARAM_TABLE": + return 4; + case "FUNC_PARAM_DEFAULT": + return 5; + default: + throw new Error("Key not recognized in enum FunctionParameterMode"); + } + }, + "TransactionStmtKind": (key: string): number => { + switch (key) { + case "TRANS_STMT_BEGIN": + return 0; + case "TRANS_STMT_START": + return 1; + case "TRANS_STMT_COMMIT": + return 2; + case "TRANS_STMT_ROLLBACK": + return 3; + case "TRANS_STMT_SAVEPOINT": + return 4; + case "TRANS_STMT_RELEASE": + return 5; + case "TRANS_STMT_ROLLBACK_TO": + return 6; + case "TRANS_STMT_PREPARE": + return 7; + case "TRANS_STMT_COMMIT_PREPARED": + return 8; + case "TRANS_STMT_ROLLBACK_PREPARED": + return 9; + default: + throw new Error("Key not recognized in enum TransactionStmtKind"); + } + }, + "ViewCheckOption": (key: string): number => { + switch (key) { + case "NO_CHECK_OPTION": + return 0; + case "LOCAL_CHECK_OPTION": + return 1; + case "CASCADED_CHECK_OPTION": + return 2; + default: + throw new Error("Key not recognized in enum ViewCheckOption"); + } + }, + "DiscardMode": (key: string): number => { + switch (key) { + case "DISCARD_ALL": + return 0; + case "DISCARD_PLANS": + return 1; + case "DISCARD_SEQUENCES": + return 2; + case "DISCARD_TEMP": + return 3; + default: + throw new Error("Key not recognized in enum DiscardMode"); + } + }, + "ReindexObjectType": (key: string): number => { + switch (key) { + case "REINDEX_OBJECT_INDEX": + return 0; + case "REINDEX_OBJECT_TABLE": + return 1; + case "REINDEX_OBJECT_SCHEMA": + return 2; + case "REINDEX_OBJECT_SYSTEM": + return 3; + case "REINDEX_OBJECT_DATABASE": + return 4; + default: + throw new Error("Key not recognized in enum ReindexObjectType"); + } + }, + "AlterTSConfigType": (key: string): number => { + switch (key) { + case "ALTER_TSCONFIG_ADD_MAPPING": + return 0; + case "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN": + return 1; + case "ALTER_TSCONFIG_REPLACE_DICT": + return 2; + case "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN": + return 3; + case "ALTER_TSCONFIG_DROP_MAPPING": + return 4; + default: + throw new Error("Key not recognized in enum AlterTSConfigType"); + } + }, + "PublicationObjSpecType": (key: string): number => { + switch (key) { + case "PUBLICATIONOBJ_TABLE": + return 0; + case "PUBLICATIONOBJ_TABLES_IN_SCHEMA": + return 1; + case "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA": + return 2; + case "PUBLICATIONOBJ_CONTINUATION": + return 3; + default: + throw new Error("Key not recognized in enum PublicationObjSpecType"); + } + }, + "AlterPublicationAction": (key: string): number => { + switch (key) { + case "AP_AddObjects": + return 0; + case "AP_DropObjects": + return 1; + case "AP_SetObjects": + return 2; + default: + throw new Error("Key not recognized in enum AlterPublicationAction"); + } + }, + "AlterSubscriptionType": (key: string): number => { + switch (key) { + case "ALTER_SUBSCRIPTION_OPTIONS": + return 0; + case "ALTER_SUBSCRIPTION_CONNECTION": + return 1; + case "ALTER_SUBSCRIPTION_SET_PUBLICATION": + return 2; + case "ALTER_SUBSCRIPTION_ADD_PUBLICATION": + return 3; + case "ALTER_SUBSCRIPTION_DROP_PUBLICATION": + return 4; + case "ALTER_SUBSCRIPTION_REFRESH": + return 5; + case "ALTER_SUBSCRIPTION_ENABLED": + return 6; + case "ALTER_SUBSCRIPTION_SKIP": + return 7; + default: + throw new Error("Key not recognized in enum AlterSubscriptionType"); + } + }, + "OnCommitAction": (key: string): number => { + switch (key) { + case "ONCOMMIT_NOOP": + return 0; + case "ONCOMMIT_PRESERVE_ROWS": + return 1; + case "ONCOMMIT_DELETE_ROWS": + return 2; + case "ONCOMMIT_DROP": + return 3; + default: + throw new Error("Key not recognized in enum OnCommitAction"); + } + }, + "ParamKind": (key: string): number => { + switch (key) { + case "PARAM_EXTERN": + return 0; + case "PARAM_EXEC": + return 1; + case "PARAM_SUBLINK": + return 2; + case "PARAM_MULTIEXPR": + return 3; + default: + throw new Error("Key not recognized in enum ParamKind"); + } + }, + "CoercionContext": (key: string): number => { + switch (key) { + case "COERCION_IMPLICIT": + return 0; + case "COERCION_ASSIGNMENT": + return 1; + case "COERCION_PLPGSQL": + return 2; + case "COERCION_EXPLICIT": + return 3; + default: + throw new Error("Key not recognized in enum CoercionContext"); + } + }, + "CoercionForm": (key: string): number => { + switch (key) { + case "COERCE_EXPLICIT_CALL": + return 0; + case "COERCE_EXPLICIT_CAST": + return 1; + case "COERCE_IMPLICIT_CAST": + return 2; + case "COERCE_SQL_SYNTAX": + return 3; + default: + throw new Error("Key not recognized in enum CoercionForm"); + } + }, + "BoolExprType": (key: string): number => { + switch (key) { + case "AND_EXPR": + return 0; + case "OR_EXPR": + return 1; + case "NOT_EXPR": + return 2; + default: + throw new Error("Key not recognized in enum BoolExprType"); + } + }, + "SubLinkType": (key: string): number => { + switch (key) { + case "EXISTS_SUBLINK": + return 0; + case "ALL_SUBLINK": + return 1; + case "ANY_SUBLINK": + return 2; + case "ROWCOMPARE_SUBLINK": + return 3; + case "EXPR_SUBLINK": + return 4; + case "MULTIEXPR_SUBLINK": + return 5; + case "ARRAY_SUBLINK": + return 6; + case "CTE_SUBLINK": + return 7; + default: + throw new Error("Key not recognized in enum SubLinkType"); + } + }, + "RowCompareType": (key: string): number => { + switch (key) { + case "ROWCOMPARE_LT": + return 0; + case "ROWCOMPARE_LE": + return 1; + case "ROWCOMPARE_EQ": + return 2; + case "ROWCOMPARE_GE": + return 3; + case "ROWCOMPARE_GT": + return 4; + case "ROWCOMPARE_NE": + return 5; + default: + throw new Error("Key not recognized in enum RowCompareType"); + } + }, + "MinMaxOp": (key: string): number => { + switch (key) { + case "IS_GREATEST": + return 0; + case "IS_LEAST": + return 1; + default: + throw new Error("Key not recognized in enum MinMaxOp"); + } + }, + "SQLValueFunctionOp": (key: string): number => { + switch (key) { + case "SVFOP_CURRENT_DATE": + return 0; + case "SVFOP_CURRENT_TIME": + return 1; + case "SVFOP_CURRENT_TIME_N": + return 2; + case "SVFOP_CURRENT_TIMESTAMP": + return 3; + case "SVFOP_CURRENT_TIMESTAMP_N": + return 4; + case "SVFOP_LOCALTIME": + return 5; + case "SVFOP_LOCALTIME_N": + return 6; + case "SVFOP_LOCALTIMESTAMP": + return 7; + case "SVFOP_LOCALTIMESTAMP_N": + return 8; + case "SVFOP_CURRENT_ROLE": + return 9; + case "SVFOP_CURRENT_USER": + return 10; + case "SVFOP_USER": + return 11; + case "SVFOP_SESSION_USER": + return 12; + case "SVFOP_CURRENT_CATALOG": + return 13; + case "SVFOP_CURRENT_SCHEMA": + return 14; + default: + throw new Error("Key not recognized in enum SQLValueFunctionOp"); + } + }, + "XmlExprOp": (key: string): number => { + switch (key) { + case "IS_XMLCONCAT": + return 0; + case "IS_XMLELEMENT": + return 1; + case "IS_XMLFOREST": + return 2; + case "IS_XMLPARSE": + return 3; + case "IS_XMLPI": + return 4; + case "IS_XMLROOT": + return 5; + case "IS_XMLSERIALIZE": + return 6; + case "IS_DOCUMENT": + return 7; + default: + throw new Error("Key not recognized in enum XmlExprOp"); + } + }, + "XmlOptionType": (key: string): number => { + switch (key) { + case "XMLOPTION_DOCUMENT": + return 0; + case "XMLOPTION_CONTENT": + return 1; + default: + throw new Error("Key not recognized in enum XmlOptionType"); + } + }, + "JsonEncoding": (key: string): number => { + switch (key) { + case "JS_ENC_DEFAULT": + return 0; + case "JS_ENC_UTF8": + return 1; + case "JS_ENC_UTF16": + return 2; + case "JS_ENC_UTF32": + return 3; + default: + throw new Error("Key not recognized in enum JsonEncoding"); + } + }, + "JsonFormatType": (key: string): number => { + switch (key) { + case "JS_FORMAT_DEFAULT": + return 0; + case "JS_FORMAT_JSON": + return 1; + case "JS_FORMAT_JSONB": + return 2; + default: + throw new Error("Key not recognized in enum JsonFormatType"); + } + }, + "JsonConstructorType": (key: string): number => { + switch (key) { + case "JSCTOR_JSON_OBJECT": + return 0; + case "JSCTOR_JSON_ARRAY": + return 1; + case "JSCTOR_JSON_OBJECTAGG": + return 2; + case "JSCTOR_JSON_ARRAYAGG": + return 3; + default: + throw new Error("Key not recognized in enum JsonConstructorType"); + } + }, + "JsonValueType": (key: string): number => { + switch (key) { + case "JS_TYPE_ANY": + return 0; + case "JS_TYPE_OBJECT": + return 1; + case "JS_TYPE_ARRAY": + return 2; + case "JS_TYPE_SCALAR": + return 3; + default: + throw new Error("Key not recognized in enum JsonValueType"); + } + }, + "NullTestType": (key: string): number => { + switch (key) { + case "IS_NULL": + return 0; + case "IS_NOT_NULL": + return 1; + default: + throw new Error("Key not recognized in enum NullTestType"); + } + }, + "BoolTestType": (key: string): number => { + switch (key) { + case "IS_TRUE": + return 0; + case "IS_NOT_TRUE": + return 1; + case "IS_FALSE": + return 2; + case "IS_NOT_FALSE": + return 3; + case "IS_UNKNOWN": + return 4; + case "IS_NOT_UNKNOWN": + return 5; + default: + throw new Error("Key not recognized in enum BoolTestType"); + } + }, + "CmdType": (key: string): number => { + switch (key) { + case "CMD_UNKNOWN": + return 0; + case "CMD_SELECT": + return 1; + case "CMD_UPDATE": + return 2; + case "CMD_INSERT": + return 3; + case "CMD_DELETE": + return 4; + case "CMD_MERGE": + return 5; + case "CMD_UTILITY": + return 6; + case "CMD_NOTHING": + return 7; + default: + throw new Error("Key not recognized in enum CmdType"); + } + }, + "JoinType": (key: string): number => { + switch (key) { + case "JOIN_INNER": + return 0; + case "JOIN_LEFT": + return 1; + case "JOIN_FULL": + return 2; + case "JOIN_RIGHT": + return 3; + case "JOIN_SEMI": + return 4; + case "JOIN_ANTI": + return 5; + case "JOIN_RIGHT_ANTI": + return 6; + case "JOIN_UNIQUE_OUTER": + return 7; + case "JOIN_UNIQUE_INNER": + return 8; + default: + throw new Error("Key not recognized in enum JoinType"); + } + }, + "AggStrategy": (key: string): number => { + switch (key) { + case "AGG_PLAIN": + return 0; + case "AGG_SORTED": + return 1; + case "AGG_HASHED": + return 2; + case "AGG_MIXED": + return 3; + default: + throw new Error("Key not recognized in enum AggStrategy"); + } + }, + "AggSplit": (key: string): number => { + switch (key) { + case "AGGSPLIT_SIMPLE": + return 0; + case "AGGSPLIT_INITIAL_SERIAL": + return 1; + case "AGGSPLIT_FINAL_DESERIAL": + return 2; + default: + throw new Error("Key not recognized in enum AggSplit"); + } + }, + "SetOpCmd": (key: string): number => { + switch (key) { + case "SETOPCMD_INTERSECT": + return 0; + case "SETOPCMD_INTERSECT_ALL": + return 1; + case "SETOPCMD_EXCEPT": + return 2; + case "SETOPCMD_EXCEPT_ALL": + return 3; + default: + throw new Error("Key not recognized in enum SetOpCmd"); + } + }, + "SetOpStrategy": (key: string): number => { + switch (key) { + case "SETOP_SORTED": + return 0; + case "SETOP_HASHED": + return 1; + default: + throw new Error("Key not recognized in enum SetOpStrategy"); + } + }, + "OnConflictAction": (key: string): number => { + switch (key) { + case "ONCONFLICT_NONE": + return 0; + case "ONCONFLICT_NOTHING": + return 1; + case "ONCONFLICT_UPDATE": + return 2; + default: + throw new Error("Key not recognized in enum OnConflictAction"); + } + }, + "LimitOption": (key: string): number => { + switch (key) { + case "LIMIT_OPTION_DEFAULT": + return 0; + case "LIMIT_OPTION_COUNT": + return 1; + case "LIMIT_OPTION_WITH_TIES": + return 2; + default: + throw new Error("Key not recognized in enum LimitOption"); + } + }, + "LockClauseStrength": (key: string): number => { + switch (key) { + case "LCS_NONE": + return 0; + case "LCS_FORKEYSHARE": + return 1; + case "LCS_FORSHARE": + return 2; + case "LCS_FORNOKEYUPDATE": + return 3; + case "LCS_FORUPDATE": + return 4; + default: + throw new Error("Key not recognized in enum LockClauseStrength"); + } + }, + "LockWaitPolicy": (key: string): number => { + switch (key) { + case "LockWaitBlock": + return 0; + case "LockWaitSkip": + return 1; + case "LockWaitError": + return 2; + default: + throw new Error("Key not recognized in enum LockWaitPolicy"); + } + }, + "LockTupleMode": (key: string): number => { + switch (key) { + case "LockTupleKeyShare": + return 0; + case "LockTupleShare": + return 1; + case "LockTupleNoKeyExclusive": + return 2; + case "LockTupleExclusive": + return 3; + default: + throw new Error("Key not recognized in enum LockTupleMode"); + } + }, + "KeywordKind": (key: string): number => { + switch (key) { + case "NO_KEYWORD": + return 0; + case "UNRESERVED_KEYWORD": + return 1; + case "COL_NAME_KEYWORD": + return 2; + case "TYPE_FUNC_NAME_KEYWORD": + return 3; + case "RESERVED_KEYWORD": + return 4; + default: + throw new Error("Key not recognized in enum KeywordKind"); + } + }, + "Token": (key: string): number => { + switch (key) { + case "NUL": + return 0; + case "ASCII_36": + return 36; + case "ASCII_37": + return 37; + case "ASCII_40": + return 40; + case "ASCII_41": + return 41; + case "ASCII_42": + return 42; + case "ASCII_43": + return 43; + case "ASCII_44": + return 44; + case "ASCII_45": + return 45; + case "ASCII_46": + return 46; + case "ASCII_47": + return 47; + case "ASCII_58": + return 58; + case "ASCII_59": + return 59; + case "ASCII_60": + return 60; + case "ASCII_61": + return 61; + case "ASCII_62": + return 62; + case "ASCII_63": + return 63; + case "ASCII_91": + return 91; + case "ASCII_92": + return 92; + case "ASCII_93": + return 93; + case "ASCII_94": + return 94; + case "IDENT": + return 258; + case "UIDENT": + return 259; + case "FCONST": + return 260; + case "SCONST": + return 261; + case "USCONST": + return 262; + case "BCONST": + return 263; + case "XCONST": + return 264; + case "Op": + return 265; + case "ICONST": + return 266; + case "PARAM": + return 267; + case "TYPECAST": + return 268; + case "DOT_DOT": + return 269; + case "COLON_EQUALS": + return 270; + case "EQUALS_GREATER": + return 271; + case "LESS_EQUALS": + return 272; + case "GREATER_EQUALS": + return 273; + case "NOT_EQUALS": + return 274; + case "SQL_COMMENT": + return 275; + case "C_COMMENT": + return 276; + case "ABORT_P": + return 277; + case "ABSENT": + return 278; + case "ABSOLUTE_P": + return 279; + case "ACCESS": + return 280; + case "ACTION": + return 281; + case "ADD_P": + return 282; + case "ADMIN": + return 283; + case "AFTER": + return 284; + case "AGGREGATE": + return 285; + case "ALL": + return 286; + case "ALSO": + return 287; + case "ALTER": + return 288; + case "ALWAYS": + return 289; + case "ANALYSE": + return 290; + case "ANALYZE": + return 291; + case "AND": + return 292; + case "ANY": + return 293; + case "ARRAY": + return 294; + case "AS": + return 295; + case "ASC": + return 296; + case "ASENSITIVE": + return 297; + case "ASSERTION": + return 298; + case "ASSIGNMENT": + return 299; + case "ASYMMETRIC": + return 300; + case "ATOMIC": + return 301; + case "AT": + return 302; + case "ATTACH": + return 303; + case "ATTRIBUTE": + return 304; + case "AUTHORIZATION": + return 305; + case "BACKWARD": + return 306; + case "BEFORE": + return 307; + case "BEGIN_P": + return 308; + case "BETWEEN": + return 309; + case "BIGINT": + return 310; + case "BINARY": + return 311; + case "BIT": + return 312; + case "BOOLEAN_P": + return 313; + case "BOTH": + return 314; + case "BREADTH": + return 315; + case "BY": + return 316; + case "CACHE": + return 317; + case "CALL": + return 318; + case "CALLED": + return 319; + case "CASCADE": + return 320; + case "CASCADED": + return 321; + case "CASE": + return 322; + case "CAST": + return 323; + case "CATALOG_P": + return 324; + case "CHAIN": + return 325; + case "CHAR_P": + return 326; + case "CHARACTER": + return 327; + case "CHARACTERISTICS": + return 328; + case "CHECK": + return 329; + case "CHECKPOINT": + return 330; + case "CLASS": + return 331; + case "CLOSE": + return 332; + case "CLUSTER": + return 333; + case "COALESCE": + return 334; + case "COLLATE": + return 335; + case "COLLATION": + return 336; + case "COLUMN": + return 337; + case "COLUMNS": + return 338; + case "COMMENT": + return 339; + case "COMMENTS": + return 340; + case "COMMIT": + return 341; + case "COMMITTED": + return 342; + case "COMPRESSION": + return 343; + case "CONCURRENTLY": + return 344; + case "CONFIGURATION": + return 345; + case "CONFLICT": + return 346; + case "CONNECTION": + return 347; + case "CONSTRAINT": + return 348; + case "CONSTRAINTS": + return 349; + case "CONTENT_P": + return 350; + case "CONTINUE_P": + return 351; + case "CONVERSION_P": + return 352; + case "COPY": + return 353; + case "COST": + return 354; + case "CREATE": + return 355; + case "CROSS": + return 356; + case "CSV": + return 357; + case "CUBE": + return 358; + case "CURRENT_P": + return 359; + case "CURRENT_CATALOG": + return 360; + case "CURRENT_DATE": + return 361; + case "CURRENT_ROLE": + return 362; + case "CURRENT_SCHEMA": + return 363; + case "CURRENT_TIME": + return 364; + case "CURRENT_TIMESTAMP": + return 365; + case "CURRENT_USER": + return 366; + case "CURSOR": + return 367; + case "CYCLE": + return 368; + case "DATA_P": + return 369; + case "DATABASE": + return 370; + case "DAY_P": + return 371; + case "DEALLOCATE": + return 372; + case "DEC": + return 373; + case "DECIMAL_P": + return 374; + case "DECLARE": + return 375; + case "DEFAULT": + return 376; + case "DEFAULTS": + return 377; + case "DEFERRABLE": + return 378; + case "DEFERRED": + return 379; + case "DEFINER": + return 380; + case "DELETE_P": + return 381; + case "DELIMITER": + return 382; + case "DELIMITERS": + return 383; + case "DEPENDS": + return 384; + case "DEPTH": + return 385; + case "DESC": + return 386; + case "DETACH": + return 387; + case "DICTIONARY": + return 388; + case "DISABLE_P": + return 389; + case "DISCARD": + return 390; + case "DISTINCT": + return 391; + case "DO": + return 392; + case "DOCUMENT_P": + return 393; + case "DOMAIN_P": + return 394; + case "DOUBLE_P": + return 395; + case "DROP": + return 396; + case "EACH": + return 397; + case "ELSE": + return 398; + case "ENABLE_P": + return 399; + case "ENCODING": + return 400; + case "ENCRYPTED": + return 401; + case "END_P": + return 402; + case "ENUM_P": + return 403; + case "ESCAPE": + return 404; + case "EVENT": + return 405; + case "EXCEPT": + return 406; + case "EXCLUDE": + return 407; + case "EXCLUDING": + return 408; + case "EXCLUSIVE": + return 409; + case "EXECUTE": + return 410; + case "EXISTS": + return 411; + case "EXPLAIN": + return 412; + case "EXPRESSION": + return 413; + case "EXTENSION": + return 414; + case "EXTERNAL": + return 415; + case "EXTRACT": + return 416; + case "FALSE_P": + return 417; + case "FAMILY": + return 418; + case "FETCH": + return 419; + case "FILTER": + return 420; + case "FINALIZE": + return 421; + case "FIRST_P": + return 422; + case "FLOAT_P": + return 423; + case "FOLLOWING": + return 424; + case "FOR": + return 425; + case "FORCE": + return 426; + case "FOREIGN": + return 427; + case "FORMAT": + return 428; + case "FORWARD": + return 429; + case "FREEZE": + return 430; + case "FROM": + return 431; + case "FULL": + return 432; + case "FUNCTION": + return 433; + case "FUNCTIONS": + return 434; + case "GENERATED": + return 435; + case "GLOBAL": + return 436; + case "GRANT": + return 437; + case "GRANTED": + return 438; + case "GREATEST": + return 439; + case "GROUP_P": + return 440; + case "GROUPING": + return 441; + case "GROUPS": + return 442; + case "HANDLER": + return 443; + case "HAVING": + return 444; + case "HEADER_P": + return 445; + case "HOLD": + return 446; + case "HOUR_P": + return 447; + case "IDENTITY_P": + return 448; + case "IF_P": + return 449; + case "ILIKE": + return 450; + case "IMMEDIATE": + return 451; + case "IMMUTABLE": + return 452; + case "IMPLICIT_P": + return 453; + case "IMPORT_P": + return 454; + case "IN_P": + return 455; + case "INCLUDE": + return 456; + case "INCLUDING": + return 457; + case "INCREMENT": + return 458; + case "INDENT": + return 459; + case "INDEX": + return 460; + case "INDEXES": + return 461; + case "INHERIT": + return 462; + case "INHERITS": + return 463; + case "INITIALLY": + return 464; + case "INLINE_P": + return 465; + case "INNER_P": + return 466; + case "INOUT": + return 467; + case "INPUT_P": + return 468; + case "INSENSITIVE": + return 469; + case "INSERT": + return 470; + case "INSTEAD": + return 471; + case "INT_P": + return 472; + case "INTEGER": + return 473; + case "INTERSECT": + return 474; + case "INTERVAL": + return 475; + case "INTO": + return 476; + case "INVOKER": + return 477; + case "IS": + return 478; + case "ISNULL": + return 479; + case "ISOLATION": + return 480; + case "JOIN": + return 481; + case "JSON": + return 482; + case "JSON_ARRAY": + return 483; + case "JSON_ARRAYAGG": + return 484; + case "JSON_OBJECT": + return 485; + case "JSON_OBJECTAGG": + return 486; + case "KEY": + return 487; + case "KEYS": + return 488; + case "LABEL": + return 489; + case "LANGUAGE": + return 490; + case "LARGE_P": + return 491; + case "LAST_P": + return 492; + case "LATERAL_P": + return 493; + case "LEADING": + return 494; + case "LEAKPROOF": + return 495; + case "LEAST": + return 496; + case "LEFT": + return 497; + case "LEVEL": + return 498; + case "LIKE": + return 499; + case "LIMIT": + return 500; + case "LISTEN": + return 501; + case "LOAD": + return 502; + case "LOCAL": + return 503; + case "LOCALTIME": + return 504; + case "LOCALTIMESTAMP": + return 505; + case "LOCATION": + return 506; + case "LOCK_P": + return 507; + case "LOCKED": + return 508; + case "LOGGED": + return 509; + case "MAPPING": + return 510; + case "MATCH": + return 511; + case "MATCHED": + return 512; + case "MATERIALIZED": + return 513; + case "MAXVALUE": + return 514; + case "MERGE": + return 515; + case "METHOD": + return 516; + case "MINUTE_P": + return 517; + case "MINVALUE": + return 518; + case "MODE": + return 519; + case "MONTH_P": + return 520; + case "MOVE": + return 521; + case "NAME_P": + return 522; + case "NAMES": + return 523; + case "NATIONAL": + return 524; + case "NATURAL": + return 525; + case "NCHAR": + return 526; + case "NEW": + return 527; + case "NEXT": + return 528; + case "NFC": + return 529; + case "NFD": + return 530; + case "NFKC": + return 531; + case "NFKD": + return 532; + case "NO": + return 533; + case "NONE": + return 534; + case "NORMALIZE": + return 535; + case "NORMALIZED": + return 536; + case "NOT": + return 537; + case "NOTHING": + return 538; + case "NOTIFY": + return 539; + case "NOTNULL": + return 540; + case "NOWAIT": + return 541; + case "NULL_P": + return 542; + case "NULLIF": + return 543; + case "NULLS_P": + return 544; + case "NUMERIC": + return 545; + case "OBJECT_P": + return 546; + case "OF": + return 547; + case "OFF": + return 548; + case "OFFSET": + return 549; + case "OIDS": + return 550; + case "OLD": + return 551; + case "ON": + return 552; + case "ONLY": + return 553; + case "OPERATOR": + return 554; + case "OPTION": + return 555; + case "OPTIONS": + return 556; + case "OR": + return 557; + case "ORDER": + return 558; + case "ORDINALITY": + return 559; + case "OTHERS": + return 560; + case "OUT_P": + return 561; + case "OUTER_P": + return 562; + case "OVER": + return 563; + case "OVERLAPS": + return 564; + case "OVERLAY": + return 565; + case "OVERRIDING": + return 566; + case "OWNED": + return 567; + case "OWNER": + return 568; + case "PARALLEL": + return 569; + case "PARAMETER": + return 570; + case "PARSER": + return 571; + case "PARTIAL": + return 572; + case "PARTITION": + return 573; + case "PASSING": + return 574; + case "PASSWORD": + return 575; + case "PLACING": + return 576; + case "PLANS": + return 577; + case "POLICY": + return 578; + case "POSITION": + return 579; + case "PRECEDING": + return 580; + case "PRECISION": + return 581; + case "PRESERVE": + return 582; + case "PREPARE": + return 583; + case "PREPARED": + return 584; + case "PRIMARY": + return 585; + case "PRIOR": + return 586; + case "PRIVILEGES": + return 587; + case "PROCEDURAL": + return 588; + case "PROCEDURE": + return 589; + case "PROCEDURES": + return 590; + case "PROGRAM": + return 591; + case "PUBLICATION": + return 592; + case "QUOTE": + return 593; + case "RANGE": + return 594; + case "READ": + return 595; + case "REAL": + return 596; + case "REASSIGN": + return 597; + case "RECHECK": + return 598; + case "RECURSIVE": + return 599; + case "REF_P": + return 600; + case "REFERENCES": + return 601; + case "REFERENCING": + return 602; + case "REFRESH": + return 603; + case "REINDEX": + return 604; + case "RELATIVE_P": + return 605; + case "RELEASE": + return 606; + case "RENAME": + return 607; + case "REPEATABLE": + return 608; + case "REPLACE": + return 609; + case "REPLICA": + return 610; + case "RESET": + return 611; + case "RESTART": + return 612; + case "RESTRICT": + return 613; + case "RETURN": + return 614; + case "RETURNING": + return 615; + case "RETURNS": + return 616; + case "REVOKE": + return 617; + case "RIGHT": + return 618; + case "ROLE": + return 619; + case "ROLLBACK": + return 620; + case "ROLLUP": + return 621; + case "ROUTINE": + return 622; + case "ROUTINES": + return 623; + case "ROW": + return 624; + case "ROWS": + return 625; + case "RULE": + return 626; + case "SAVEPOINT": + return 627; + case "SCALAR": + return 628; + case "SCHEMA": + return 629; + case "SCHEMAS": + return 630; + case "SCROLL": + return 631; + case "SEARCH": + return 632; + case "SECOND_P": + return 633; + case "SECURITY": + return 634; + case "SELECT": + return 635; + case "SEQUENCE": + return 636; + case "SEQUENCES": + return 637; + case "SERIALIZABLE": + return 638; + case "SERVER": + return 639; + case "SESSION": + return 640; + case "SESSION_USER": + return 641; + case "SET": + return 642; + case "SETS": + return 643; + case "SETOF": + return 644; + case "SHARE": + return 645; + case "SHOW": + return 646; + case "SIMILAR": + return 647; + case "SIMPLE": + return 648; + case "SKIP": + return 649; + case "SMALLINT": + return 650; + case "SNAPSHOT": + return 651; + case "SOME": + return 652; + case "SQL_P": + return 653; + case "STABLE": + return 654; + case "STANDALONE_P": + return 655; + case "START": + return 656; + case "STATEMENT": + return 657; + case "STATISTICS": + return 658; + case "STDIN": + return 659; + case "STDOUT": + return 660; + case "STORAGE": + return 661; + case "STORED": + return 662; + case "STRICT_P": + return 663; + case "STRIP_P": + return 664; + case "SUBSCRIPTION": + return 665; + case "SUBSTRING": + return 666; + case "SUPPORT": + return 667; + case "SYMMETRIC": + return 668; + case "SYSID": + return 669; + case "SYSTEM_P": + return 670; + case "SYSTEM_USER": + return 671; + case "TABLE": + return 672; + case "TABLES": + return 673; + case "TABLESAMPLE": + return 674; + case "TABLESPACE": + return 675; + case "TEMP": + return 676; + case "TEMPLATE": + return 677; + case "TEMPORARY": + return 678; + case "TEXT_P": + return 679; + case "THEN": + return 680; + case "TIES": + return 681; + case "TIME": + return 682; + case "TIMESTAMP": + return 683; + case "TO": + return 684; + case "TRAILING": + return 685; + case "TRANSACTION": + return 686; + case "TRANSFORM": + return 687; + case "TREAT": + return 688; + case "TRIGGER": + return 689; + case "TRIM": + return 690; + case "TRUE_P": + return 691; + case "TRUNCATE": + return 692; + case "TRUSTED": + return 693; + case "TYPE_P": + return 694; + case "TYPES_P": + return 695; + case "UESCAPE": + return 696; + case "UNBOUNDED": + return 697; + case "UNCOMMITTED": + return 698; + case "UNENCRYPTED": + return 699; + case "UNION": + return 700; + case "UNIQUE": + return 701; + case "UNKNOWN": + return 702; + case "UNLISTEN": + return 703; + case "UNLOGGED": + return 704; + case "UNTIL": + return 705; + case "UPDATE": + return 706; + case "USER": + return 707; + case "USING": + return 708; + case "VACUUM": + return 709; + case "VALID": + return 710; + case "VALIDATE": + return 711; + case "VALIDATOR": + return 712; + case "VALUE_P": + return 713; + case "VALUES": + return 714; + case "VARCHAR": + return 715; + case "VARIADIC": + return 716; + case "VARYING": + return 717; + case "VERBOSE": + return 718; + case "VERSION_P": + return 719; + case "VIEW": + return 720; + case "VIEWS": + return 721; + case "VOLATILE": + return 722; + case "WHEN": + return 723; + case "WHERE": + return 724; + case "WHITESPACE_P": + return 725; + case "WINDOW": + return 726; + case "WITH": + return 727; + case "WITHIN": + return 728; + case "WITHOUT": + return 729; + case "WORK": + return 730; + case "WRAPPER": + return 731; + case "WRITE": + return 732; + case "XML_P": + return 733; + case "XMLATTRIBUTES": + return 734; + case "XMLCONCAT": + return 735; + case "XMLELEMENT": + return 736; + case "XMLEXISTS": + return 737; + case "XMLFOREST": + return 738; + case "XMLNAMESPACES": + return 739; + case "XMLPARSE": + return 740; + case "XMLPI": + return 741; + case "XMLROOT": + return 742; + case "XMLSERIALIZE": + return 743; + case "XMLTABLE": + return 744; + case "YEAR_P": + return 745; + case "YES_P": + return 746; + case "ZONE": + return 747; + case "FORMAT_LA": + return 748; + case "NOT_LA": + return 749; + case "NULLS_LA": + return 750; + case "WITH_LA": + return 751; + case "WITHOUT_LA": + return 752; + case "MODE_TYPE_NAME": + return 753; + case "MODE_PLPGSQL_EXPR": + return 754; + case "MODE_PLPGSQL_ASSIGN1": + return 755; + case "MODE_PLPGSQL_ASSIGN2": + return 756; + case "MODE_PLPGSQL_ASSIGN3": + return 757; + case "UMINUS": + return 758; + default: + throw new Error("Key not recognized in enum Token"); + } + } +}; \ No newline at end of file diff --git a/__fixtures__/output/utils/enums/nested-objects/enum-to-string-nested.ts b/__fixtures__/output/utils/enums/nested-objects/enum-to-string-nested.ts new file mode 100644 index 00000000..4590ea76 --- /dev/null +++ b/__fixtures__/output/utils/enums/nested-objects/enum-to-string-nested.ts @@ -0,0 +1,2344 @@ +/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type EnumType = "OverridingKind" | "QuerySource" | "SortByDir" | "SortByNulls" | "SetQuantifier" | "A_Expr_Kind" | "RoleSpecType" | "TableLikeOption" | "DefElemAction" | "PartitionStrategy" | "PartitionRangeDatumKind" | "RTEKind" | "WCOKind" | "GroupingSetKind" | "CTEMaterialize" | "SetOperation" | "ObjectType" | "DropBehavior" | "AlterTableType" | "GrantTargetType" | "VariableSetKind" | "ConstrType" | "ImportForeignSchemaType" | "RoleStmtType" | "FetchDirection" | "FunctionParameterMode" | "TransactionStmtKind" | "ViewCheckOption" | "DiscardMode" | "ReindexObjectType" | "AlterTSConfigType" | "PublicationObjSpecType" | "AlterPublicationAction" | "AlterSubscriptionType" | "OnCommitAction" | "ParamKind" | "CoercionContext" | "CoercionForm" | "BoolExprType" | "SubLinkType" | "RowCompareType" | "MinMaxOp" | "SQLValueFunctionOp" | "XmlExprOp" | "XmlOptionType" | "JsonEncoding" | "JsonFormatType" | "JsonConstructorType" | "JsonValueType" | "NullTestType" | "BoolTestType" | "CmdType" | "JoinType" | "AggStrategy" | "AggSplit" | "SetOpCmd" | "SetOpStrategy" | "OnConflictAction" | "LimitOption" | "LockClauseStrength" | "LockWaitPolicy" | "LockTupleMode" | "KeywordKind" | "Token"; +export type EnumToStringMap = { + "OverridingKind": (value: number) => string; + "QuerySource": (value: number) => string; + "SortByDir": (value: number) => string; + "SortByNulls": (value: number) => string; + "SetQuantifier": (value: number) => string; + "A_Expr_Kind": (value: number) => string; + "RoleSpecType": (value: number) => string; + "TableLikeOption": (value: number) => string; + "DefElemAction": (value: number) => string; + "PartitionStrategy": (value: number) => string; + "PartitionRangeDatumKind": (value: number) => string; + "RTEKind": (value: number) => string; + "WCOKind": (value: number) => string; + "GroupingSetKind": (value: number) => string; + "CTEMaterialize": (value: number) => string; + "SetOperation": (value: number) => string; + "ObjectType": (value: number) => string; + "DropBehavior": (value: number) => string; + "AlterTableType": (value: number) => string; + "GrantTargetType": (value: number) => string; + "VariableSetKind": (value: number) => string; + "ConstrType": (value: number) => string; + "ImportForeignSchemaType": (value: number) => string; + "RoleStmtType": (value: number) => string; + "FetchDirection": (value: number) => string; + "FunctionParameterMode": (value: number) => string; + "TransactionStmtKind": (value: number) => string; + "ViewCheckOption": (value: number) => string; + "DiscardMode": (value: number) => string; + "ReindexObjectType": (value: number) => string; + "AlterTSConfigType": (value: number) => string; + "PublicationObjSpecType": (value: number) => string; + "AlterPublicationAction": (value: number) => string; + "AlterSubscriptionType": (value: number) => string; + "OnCommitAction": (value: number) => string; + "ParamKind": (value: number) => string; + "CoercionContext": (value: number) => string; + "CoercionForm": (value: number) => string; + "BoolExprType": (value: number) => string; + "SubLinkType": (value: number) => string; + "RowCompareType": (value: number) => string; + "MinMaxOp": (value: number) => string; + "SQLValueFunctionOp": (value: number) => string; + "XmlExprOp": (value: number) => string; + "XmlOptionType": (value: number) => string; + "JsonEncoding": (value: number) => string; + "JsonFormatType": (value: number) => string; + "JsonConstructorType": (value: number) => string; + "JsonValueType": (value: number) => string; + "NullTestType": (value: number) => string; + "BoolTestType": (value: number) => string; + "CmdType": (value: number) => string; + "JoinType": (value: number) => string; + "AggStrategy": (value: number) => string; + "AggSplit": (value: number) => string; + "SetOpCmd": (value: number) => string; + "SetOpStrategy": (value: number) => string; + "OnConflictAction": (value: number) => string; + "LimitOption": (value: number) => string; + "LockClauseStrength": (value: number) => string; + "LockWaitPolicy": (value: number) => string; + "LockTupleMode": (value: number) => string; + "KeywordKind": (value: number) => string; + "Token": (value: number) => string; +}; +export const enumToStringMap: EnumToStringMap = { + "OverridingKind": (value: number): string => { + switch (value) { + case 0: + return "OVERRIDING_NOT_SET"; + case 1: + return "OVERRIDING_USER_VALUE"; + case 2: + return "OVERRIDING_SYSTEM_VALUE"; + default: + throw new Error("Value not recognized in enum OverridingKind"); + } + }, + "QuerySource": (value: number): string => { + switch (value) { + case 0: + return "QSRC_ORIGINAL"; + case 1: + return "QSRC_PARSER"; + case 2: + return "QSRC_INSTEAD_RULE"; + case 3: + return "QSRC_QUAL_INSTEAD_RULE"; + case 4: + return "QSRC_NON_INSTEAD_RULE"; + default: + throw new Error("Value not recognized in enum QuerySource"); + } + }, + "SortByDir": (value: number): string => { + switch (value) { + case 0: + return "SORTBY_DEFAULT"; + case 1: + return "SORTBY_ASC"; + case 2: + return "SORTBY_DESC"; + case 3: + return "SORTBY_USING"; + default: + throw new Error("Value not recognized in enum SortByDir"); + } + }, + "SortByNulls": (value: number): string => { + switch (value) { + case 0: + return "SORTBY_NULLS_DEFAULT"; + case 1: + return "SORTBY_NULLS_FIRST"; + case 2: + return "SORTBY_NULLS_LAST"; + default: + throw new Error("Value not recognized in enum SortByNulls"); + } + }, + "SetQuantifier": (value: number): string => { + switch (value) { + case 0: + return "SET_QUANTIFIER_DEFAULT"; + case 1: + return "SET_QUANTIFIER_ALL"; + case 2: + return "SET_QUANTIFIER_DISTINCT"; + default: + throw new Error("Value not recognized in enum SetQuantifier"); + } + }, + "A_Expr_Kind": (value: number): string => { + switch (value) { + case 0: + return "AEXPR_OP"; + case 1: + return "AEXPR_OP_ANY"; + case 2: + return "AEXPR_OP_ALL"; + case 3: + return "AEXPR_DISTINCT"; + case 4: + return "AEXPR_NOT_DISTINCT"; + case 5: + return "AEXPR_NULLIF"; + case 6: + return "AEXPR_IN"; + case 7: + return "AEXPR_LIKE"; + case 8: + return "AEXPR_ILIKE"; + case 9: + return "AEXPR_SIMILAR"; + case 10: + return "AEXPR_BETWEEN"; + case 11: + return "AEXPR_NOT_BETWEEN"; + case 12: + return "AEXPR_BETWEEN_SYM"; + case 13: + return "AEXPR_NOT_BETWEEN_SYM"; + default: + throw new Error("Value not recognized in enum A_Expr_Kind"); + } + }, + "RoleSpecType": (value: number): string => { + switch (value) { + case 0: + return "ROLESPEC_CSTRING"; + case 1: + return "ROLESPEC_CURRENT_ROLE"; + case 2: + return "ROLESPEC_CURRENT_USER"; + case 3: + return "ROLESPEC_SESSION_USER"; + case 4: + return "ROLESPEC_PUBLIC"; + default: + throw new Error("Value not recognized in enum RoleSpecType"); + } + }, + "TableLikeOption": (value: number): string => { + switch (value) { + case 0: + return "CREATE_TABLE_LIKE_COMMENTS"; + case 1: + return "CREATE_TABLE_LIKE_COMPRESSION"; + case 2: + return "CREATE_TABLE_LIKE_CONSTRAINTS"; + case 3: + return "CREATE_TABLE_LIKE_DEFAULTS"; + case 4: + return "CREATE_TABLE_LIKE_GENERATED"; + case 5: + return "CREATE_TABLE_LIKE_IDENTITY"; + case 6: + return "CREATE_TABLE_LIKE_INDEXES"; + case 7: + return "CREATE_TABLE_LIKE_STATISTICS"; + case 8: + return "CREATE_TABLE_LIKE_STORAGE"; + case 9: + return "CREATE_TABLE_LIKE_ALL"; + default: + throw new Error("Value not recognized in enum TableLikeOption"); + } + }, + "DefElemAction": (value: number): string => { + switch (value) { + case 0: + return "DEFELEM_UNSPEC"; + case 1: + return "DEFELEM_SET"; + case 2: + return "DEFELEM_ADD"; + case 3: + return "DEFELEM_DROP"; + default: + throw new Error("Value not recognized in enum DefElemAction"); + } + }, + "PartitionStrategy": (value: number): string => { + switch (value) { + case 0: + return "PARTITION_STRATEGY_LIST"; + case 1: + return "PARTITION_STRATEGY_RANGE"; + case 2: + return "PARTITION_STRATEGY_HASH"; + default: + throw new Error("Value not recognized in enum PartitionStrategy"); + } + }, + "PartitionRangeDatumKind": (value: number): string => { + switch (value) { + case 0: + return "PARTITION_RANGE_DATUM_MINVALUE"; + case 1: + return "PARTITION_RANGE_DATUM_VALUE"; + case 2: + return "PARTITION_RANGE_DATUM_MAXVALUE"; + default: + throw new Error("Value not recognized in enum PartitionRangeDatumKind"); + } + }, + "RTEKind": (value: number): string => { + switch (value) { + case 0: + return "RTE_RELATION"; + case 1: + return "RTE_SUBQUERY"; + case 2: + return "RTE_JOIN"; + case 3: + return "RTE_FUNCTION"; + case 4: + return "RTE_TABLEFUNC"; + case 5: + return "RTE_VALUES"; + case 6: + return "RTE_CTE"; + case 7: + return "RTE_NAMEDTUPLESTORE"; + case 8: + return "RTE_RESULT"; + default: + throw new Error("Value not recognized in enum RTEKind"); + } + }, + "WCOKind": (value: number): string => { + switch (value) { + case 0: + return "WCO_VIEW_CHECK"; + case 1: + return "WCO_RLS_INSERT_CHECK"; + case 2: + return "WCO_RLS_UPDATE_CHECK"; + case 3: + return "WCO_RLS_CONFLICT_CHECK"; + case 4: + return "WCO_RLS_MERGE_UPDATE_CHECK"; + case 5: + return "WCO_RLS_MERGE_DELETE_CHECK"; + default: + throw new Error("Value not recognized in enum WCOKind"); + } + }, + "GroupingSetKind": (value: number): string => { + switch (value) { + case 0: + return "GROUPING_SET_EMPTY"; + case 1: + return "GROUPING_SET_SIMPLE"; + case 2: + return "GROUPING_SET_ROLLUP"; + case 3: + return "GROUPING_SET_CUBE"; + case 4: + return "GROUPING_SET_SETS"; + default: + throw new Error("Value not recognized in enum GroupingSetKind"); + } + }, + "CTEMaterialize": (value: number): string => { + switch (value) { + case 0: + return "CTEMaterializeDefault"; + case 1: + return "CTEMaterializeAlways"; + case 2: + return "CTEMaterializeNever"; + default: + throw new Error("Value not recognized in enum CTEMaterialize"); + } + }, + "SetOperation": (value: number): string => { + switch (value) { + case 0: + return "SETOP_NONE"; + case 1: + return "SETOP_UNION"; + case 2: + return "SETOP_INTERSECT"; + case 3: + return "SETOP_EXCEPT"; + default: + throw new Error("Value not recognized in enum SetOperation"); + } + }, + "ObjectType": (value: number): string => { + switch (value) { + case 0: + return "OBJECT_ACCESS_METHOD"; + case 1: + return "OBJECT_AGGREGATE"; + case 2: + return "OBJECT_AMOP"; + case 3: + return "OBJECT_AMPROC"; + case 4: + return "OBJECT_ATTRIBUTE"; + case 5: + return "OBJECT_CAST"; + case 6: + return "OBJECT_COLUMN"; + case 7: + return "OBJECT_COLLATION"; + case 8: + return "OBJECT_CONVERSION"; + case 9: + return "OBJECT_DATABASE"; + case 10: + return "OBJECT_DEFAULT"; + case 11: + return "OBJECT_DEFACL"; + case 12: + return "OBJECT_DOMAIN"; + case 13: + return "OBJECT_DOMCONSTRAINT"; + case 14: + return "OBJECT_EVENT_TRIGGER"; + case 15: + return "OBJECT_EXTENSION"; + case 16: + return "OBJECT_FDW"; + case 17: + return "OBJECT_FOREIGN_SERVER"; + case 18: + return "OBJECT_FOREIGN_TABLE"; + case 19: + return "OBJECT_FUNCTION"; + case 20: + return "OBJECT_INDEX"; + case 21: + return "OBJECT_LANGUAGE"; + case 22: + return "OBJECT_LARGEOBJECT"; + case 23: + return "OBJECT_MATVIEW"; + case 24: + return "OBJECT_OPCLASS"; + case 25: + return "OBJECT_OPERATOR"; + case 26: + return "OBJECT_OPFAMILY"; + case 27: + return "OBJECT_PARAMETER_ACL"; + case 28: + return "OBJECT_POLICY"; + case 29: + return "OBJECT_PROCEDURE"; + case 30: + return "OBJECT_PUBLICATION"; + case 31: + return "OBJECT_PUBLICATION_NAMESPACE"; + case 32: + return "OBJECT_PUBLICATION_REL"; + case 33: + return "OBJECT_ROLE"; + case 34: + return "OBJECT_ROUTINE"; + case 35: + return "OBJECT_RULE"; + case 36: + return "OBJECT_SCHEMA"; + case 37: + return "OBJECT_SEQUENCE"; + case 38: + return "OBJECT_SUBSCRIPTION"; + case 39: + return "OBJECT_STATISTIC_EXT"; + case 40: + return "OBJECT_TABCONSTRAINT"; + case 41: + return "OBJECT_TABLE"; + case 42: + return "OBJECT_TABLESPACE"; + case 43: + return "OBJECT_TRANSFORM"; + case 44: + return "OBJECT_TRIGGER"; + case 45: + return "OBJECT_TSCONFIGURATION"; + case 46: + return "OBJECT_TSDICTIONARY"; + case 47: + return "OBJECT_TSPARSER"; + case 48: + return "OBJECT_TSTEMPLATE"; + case 49: + return "OBJECT_TYPE"; + case 50: + return "OBJECT_USER_MAPPING"; + case 51: + return "OBJECT_VIEW"; + default: + throw new Error("Value not recognized in enum ObjectType"); + } + }, + "DropBehavior": (value: number): string => { + switch (value) { + case 0: + return "DROP_RESTRICT"; + case 1: + return "DROP_CASCADE"; + default: + throw new Error("Value not recognized in enum DropBehavior"); + } + }, + "AlterTableType": (value: number): string => { + switch (value) { + case 0: + return "AT_AddColumn"; + case 1: + return "AT_AddColumnToView"; + case 2: + return "AT_ColumnDefault"; + case 3: + return "AT_CookedColumnDefault"; + case 4: + return "AT_DropNotNull"; + case 5: + return "AT_SetNotNull"; + case 6: + return "AT_DropExpression"; + case 7: + return "AT_CheckNotNull"; + case 8: + return "AT_SetStatistics"; + case 9: + return "AT_SetOptions"; + case 10: + return "AT_ResetOptions"; + case 11: + return "AT_SetStorage"; + case 12: + return "AT_SetCompression"; + case 13: + return "AT_DropColumn"; + case 14: + return "AT_AddIndex"; + case 15: + return "AT_ReAddIndex"; + case 16: + return "AT_AddConstraint"; + case 17: + return "AT_ReAddConstraint"; + case 18: + return "AT_ReAddDomainConstraint"; + case 19: + return "AT_AlterConstraint"; + case 20: + return "AT_ValidateConstraint"; + case 21: + return "AT_AddIndexConstraint"; + case 22: + return "AT_DropConstraint"; + case 23: + return "AT_ReAddComment"; + case 24: + return "AT_AlterColumnType"; + case 25: + return "AT_AlterColumnGenericOptions"; + case 26: + return "AT_ChangeOwner"; + case 27: + return "AT_ClusterOn"; + case 28: + return "AT_DropCluster"; + case 29: + return "AT_SetLogged"; + case 30: + return "AT_SetUnLogged"; + case 31: + return "AT_DropOids"; + case 32: + return "AT_SetAccessMethod"; + case 33: + return "AT_SetTableSpace"; + case 34: + return "AT_SetRelOptions"; + case 35: + return "AT_ResetRelOptions"; + case 36: + return "AT_ReplaceRelOptions"; + case 37: + return "AT_EnableTrig"; + case 38: + return "AT_EnableAlwaysTrig"; + case 39: + return "AT_EnableReplicaTrig"; + case 40: + return "AT_DisableTrig"; + case 41: + return "AT_EnableTrigAll"; + case 42: + return "AT_DisableTrigAll"; + case 43: + return "AT_EnableTrigUser"; + case 44: + return "AT_DisableTrigUser"; + case 45: + return "AT_EnableRule"; + case 46: + return "AT_EnableAlwaysRule"; + case 47: + return "AT_EnableReplicaRule"; + case 48: + return "AT_DisableRule"; + case 49: + return "AT_AddInherit"; + case 50: + return "AT_DropInherit"; + case 51: + return "AT_AddOf"; + case 52: + return "AT_DropOf"; + case 53: + return "AT_ReplicaIdentity"; + case 54: + return "AT_EnableRowSecurity"; + case 55: + return "AT_DisableRowSecurity"; + case 56: + return "AT_ForceRowSecurity"; + case 57: + return "AT_NoForceRowSecurity"; + case 58: + return "AT_GenericOptions"; + case 59: + return "AT_AttachPartition"; + case 60: + return "AT_DetachPartition"; + case 61: + return "AT_DetachPartitionFinalize"; + case 62: + return "AT_AddIdentity"; + case 63: + return "AT_SetIdentity"; + case 64: + return "AT_DropIdentity"; + case 65: + return "AT_ReAddStatistics"; + default: + throw new Error("Value not recognized in enum AlterTableType"); + } + }, + "GrantTargetType": (value: number): string => { + switch (value) { + case 0: + return "ACL_TARGET_OBJECT"; + case 1: + return "ACL_TARGET_ALL_IN_SCHEMA"; + case 2: + return "ACL_TARGET_DEFAULTS"; + default: + throw new Error("Value not recognized in enum GrantTargetType"); + } + }, + "VariableSetKind": (value: number): string => { + switch (value) { + case 0: + return "VAR_SET_VALUE"; + case 1: + return "VAR_SET_DEFAULT"; + case 2: + return "VAR_SET_CURRENT"; + case 3: + return "VAR_SET_MULTI"; + case 4: + return "VAR_RESET"; + case 5: + return "VAR_RESET_ALL"; + default: + throw new Error("Value not recognized in enum VariableSetKind"); + } + }, + "ConstrType": (value: number): string => { + switch (value) { + case 0: + return "CONSTR_NULL"; + case 1: + return "CONSTR_NOTNULL"; + case 2: + return "CONSTR_DEFAULT"; + case 3: + return "CONSTR_IDENTITY"; + case 4: + return "CONSTR_GENERATED"; + case 5: + return "CONSTR_CHECK"; + case 6: + return "CONSTR_PRIMARY"; + case 7: + return "CONSTR_UNIQUE"; + case 8: + return "CONSTR_EXCLUSION"; + case 9: + return "CONSTR_FOREIGN"; + case 10: + return "CONSTR_ATTR_DEFERRABLE"; + case 11: + return "CONSTR_ATTR_NOT_DEFERRABLE"; + case 12: + return "CONSTR_ATTR_DEFERRED"; + case 13: + return "CONSTR_ATTR_IMMEDIATE"; + default: + throw new Error("Value not recognized in enum ConstrType"); + } + }, + "ImportForeignSchemaType": (value: number): string => { + switch (value) { + case 0: + return "FDW_IMPORT_SCHEMA_ALL"; + case 1: + return "FDW_IMPORT_SCHEMA_LIMIT_TO"; + case 2: + return "FDW_IMPORT_SCHEMA_EXCEPT"; + default: + throw new Error("Value not recognized in enum ImportForeignSchemaType"); + } + }, + "RoleStmtType": (value: number): string => { + switch (value) { + case 0: + return "ROLESTMT_ROLE"; + case 1: + return "ROLESTMT_USER"; + case 2: + return "ROLESTMT_GROUP"; + default: + throw new Error("Value not recognized in enum RoleStmtType"); + } + }, + "FetchDirection": (value: number): string => { + switch (value) { + case 0: + return "FETCH_FORWARD"; + case 1: + return "FETCH_BACKWARD"; + case 2: + return "FETCH_ABSOLUTE"; + case 3: + return "FETCH_RELATIVE"; + default: + throw new Error("Value not recognized in enum FetchDirection"); + } + }, + "FunctionParameterMode": (value: number): string => { + switch (value) { + case 0: + return "FUNC_PARAM_IN"; + case 1: + return "FUNC_PARAM_OUT"; + case 2: + return "FUNC_PARAM_INOUT"; + case 3: + return "FUNC_PARAM_VARIADIC"; + case 4: + return "FUNC_PARAM_TABLE"; + case 5: + return "FUNC_PARAM_DEFAULT"; + default: + throw new Error("Value not recognized in enum FunctionParameterMode"); + } + }, + "TransactionStmtKind": (value: number): string => { + switch (value) { + case 0: + return "TRANS_STMT_BEGIN"; + case 1: + return "TRANS_STMT_START"; + case 2: + return "TRANS_STMT_COMMIT"; + case 3: + return "TRANS_STMT_ROLLBACK"; + case 4: + return "TRANS_STMT_SAVEPOINT"; + case 5: + return "TRANS_STMT_RELEASE"; + case 6: + return "TRANS_STMT_ROLLBACK_TO"; + case 7: + return "TRANS_STMT_PREPARE"; + case 8: + return "TRANS_STMT_COMMIT_PREPARED"; + case 9: + return "TRANS_STMT_ROLLBACK_PREPARED"; + default: + throw new Error("Value not recognized in enum TransactionStmtKind"); + } + }, + "ViewCheckOption": (value: number): string => { + switch (value) { + case 0: + return "NO_CHECK_OPTION"; + case 1: + return "LOCAL_CHECK_OPTION"; + case 2: + return "CASCADED_CHECK_OPTION"; + default: + throw new Error("Value not recognized in enum ViewCheckOption"); + } + }, + "DiscardMode": (value: number): string => { + switch (value) { + case 0: + return "DISCARD_ALL"; + case 1: + return "DISCARD_PLANS"; + case 2: + return "DISCARD_SEQUENCES"; + case 3: + return "DISCARD_TEMP"; + default: + throw new Error("Value not recognized in enum DiscardMode"); + } + }, + "ReindexObjectType": (value: number): string => { + switch (value) { + case 0: + return "REINDEX_OBJECT_INDEX"; + case 1: + return "REINDEX_OBJECT_TABLE"; + case 2: + return "REINDEX_OBJECT_SCHEMA"; + case 3: + return "REINDEX_OBJECT_SYSTEM"; + case 4: + return "REINDEX_OBJECT_DATABASE"; + default: + throw new Error("Value not recognized in enum ReindexObjectType"); + } + }, + "AlterTSConfigType": (value: number): string => { + switch (value) { + case 0: + return "ALTER_TSCONFIG_ADD_MAPPING"; + case 1: + return "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN"; + case 2: + return "ALTER_TSCONFIG_REPLACE_DICT"; + case 3: + return "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN"; + case 4: + return "ALTER_TSCONFIG_DROP_MAPPING"; + default: + throw new Error("Value not recognized in enum AlterTSConfigType"); + } + }, + "PublicationObjSpecType": (value: number): string => { + switch (value) { + case 0: + return "PUBLICATIONOBJ_TABLE"; + case 1: + return "PUBLICATIONOBJ_TABLES_IN_SCHEMA"; + case 2: + return "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA"; + case 3: + return "PUBLICATIONOBJ_CONTINUATION"; + default: + throw new Error("Value not recognized in enum PublicationObjSpecType"); + } + }, + "AlterPublicationAction": (value: number): string => { + switch (value) { + case 0: + return "AP_AddObjects"; + case 1: + return "AP_DropObjects"; + case 2: + return "AP_SetObjects"; + default: + throw new Error("Value not recognized in enum AlterPublicationAction"); + } + }, + "AlterSubscriptionType": (value: number): string => { + switch (value) { + case 0: + return "ALTER_SUBSCRIPTION_OPTIONS"; + case 1: + return "ALTER_SUBSCRIPTION_CONNECTION"; + case 2: + return "ALTER_SUBSCRIPTION_SET_PUBLICATION"; + case 3: + return "ALTER_SUBSCRIPTION_ADD_PUBLICATION"; + case 4: + return "ALTER_SUBSCRIPTION_DROP_PUBLICATION"; + case 5: + return "ALTER_SUBSCRIPTION_REFRESH"; + case 6: + return "ALTER_SUBSCRIPTION_ENABLED"; + case 7: + return "ALTER_SUBSCRIPTION_SKIP"; + default: + throw new Error("Value not recognized in enum AlterSubscriptionType"); + } + }, + "OnCommitAction": (value: number): string => { + switch (value) { + case 0: + return "ONCOMMIT_NOOP"; + case 1: + return "ONCOMMIT_PRESERVE_ROWS"; + case 2: + return "ONCOMMIT_DELETE_ROWS"; + case 3: + return "ONCOMMIT_DROP"; + default: + throw new Error("Value not recognized in enum OnCommitAction"); + } + }, + "ParamKind": (value: number): string => { + switch (value) { + case 0: + return "PARAM_EXTERN"; + case 1: + return "PARAM_EXEC"; + case 2: + return "PARAM_SUBLINK"; + case 3: + return "PARAM_MULTIEXPR"; + default: + throw new Error("Value not recognized in enum ParamKind"); + } + }, + "CoercionContext": (value: number): string => { + switch (value) { + case 0: + return "COERCION_IMPLICIT"; + case 1: + return "COERCION_ASSIGNMENT"; + case 2: + return "COERCION_PLPGSQL"; + case 3: + return "COERCION_EXPLICIT"; + default: + throw new Error("Value not recognized in enum CoercionContext"); + } + }, + "CoercionForm": (value: number): string => { + switch (value) { + case 0: + return "COERCE_EXPLICIT_CALL"; + case 1: + return "COERCE_EXPLICIT_CAST"; + case 2: + return "COERCE_IMPLICIT_CAST"; + case 3: + return "COERCE_SQL_SYNTAX"; + default: + throw new Error("Value not recognized in enum CoercionForm"); + } + }, + "BoolExprType": (value: number): string => { + switch (value) { + case 0: + return "AND_EXPR"; + case 1: + return "OR_EXPR"; + case 2: + return "NOT_EXPR"; + default: + throw new Error("Value not recognized in enum BoolExprType"); + } + }, + "SubLinkType": (value: number): string => { + switch (value) { + case 0: + return "EXISTS_SUBLINK"; + case 1: + return "ALL_SUBLINK"; + case 2: + return "ANY_SUBLINK"; + case 3: + return "ROWCOMPARE_SUBLINK"; + case 4: + return "EXPR_SUBLINK"; + case 5: + return "MULTIEXPR_SUBLINK"; + case 6: + return "ARRAY_SUBLINK"; + case 7: + return "CTE_SUBLINK"; + default: + throw new Error("Value not recognized in enum SubLinkType"); + } + }, + "RowCompareType": (value: number): string => { + switch (value) { + case 0: + return "ROWCOMPARE_LT"; + case 1: + return "ROWCOMPARE_LE"; + case 2: + return "ROWCOMPARE_EQ"; + case 3: + return "ROWCOMPARE_GE"; + case 4: + return "ROWCOMPARE_GT"; + case 5: + return "ROWCOMPARE_NE"; + default: + throw new Error("Value not recognized in enum RowCompareType"); + } + }, + "MinMaxOp": (value: number): string => { + switch (value) { + case 0: + return "IS_GREATEST"; + case 1: + return "IS_LEAST"; + default: + throw new Error("Value not recognized in enum MinMaxOp"); + } + }, + "SQLValueFunctionOp": (value: number): string => { + switch (value) { + case 0: + return "SVFOP_CURRENT_DATE"; + case 1: + return "SVFOP_CURRENT_TIME"; + case 2: + return "SVFOP_CURRENT_TIME_N"; + case 3: + return "SVFOP_CURRENT_TIMESTAMP"; + case 4: + return "SVFOP_CURRENT_TIMESTAMP_N"; + case 5: + return "SVFOP_LOCALTIME"; + case 6: + return "SVFOP_LOCALTIME_N"; + case 7: + return "SVFOP_LOCALTIMESTAMP"; + case 8: + return "SVFOP_LOCALTIMESTAMP_N"; + case 9: + return "SVFOP_CURRENT_ROLE"; + case 10: + return "SVFOP_CURRENT_USER"; + case 11: + return "SVFOP_USER"; + case 12: + return "SVFOP_SESSION_USER"; + case 13: + return "SVFOP_CURRENT_CATALOG"; + case 14: + return "SVFOP_CURRENT_SCHEMA"; + default: + throw new Error("Value not recognized in enum SQLValueFunctionOp"); + } + }, + "XmlExprOp": (value: number): string => { + switch (value) { + case 0: + return "IS_XMLCONCAT"; + case 1: + return "IS_XMLELEMENT"; + case 2: + return "IS_XMLFOREST"; + case 3: + return "IS_XMLPARSE"; + case 4: + return "IS_XMLPI"; + case 5: + return "IS_XMLROOT"; + case 6: + return "IS_XMLSERIALIZE"; + case 7: + return "IS_DOCUMENT"; + default: + throw new Error("Value not recognized in enum XmlExprOp"); + } + }, + "XmlOptionType": (value: number): string => { + switch (value) { + case 0: + return "XMLOPTION_DOCUMENT"; + case 1: + return "XMLOPTION_CONTENT"; + default: + throw new Error("Value not recognized in enum XmlOptionType"); + } + }, + "JsonEncoding": (value: number): string => { + switch (value) { + case 0: + return "JS_ENC_DEFAULT"; + case 1: + return "JS_ENC_UTF8"; + case 2: + return "JS_ENC_UTF16"; + case 3: + return "JS_ENC_UTF32"; + default: + throw new Error("Value not recognized in enum JsonEncoding"); + } + }, + "JsonFormatType": (value: number): string => { + switch (value) { + case 0: + return "JS_FORMAT_DEFAULT"; + case 1: + return "JS_FORMAT_JSON"; + case 2: + return "JS_FORMAT_JSONB"; + default: + throw new Error("Value not recognized in enum JsonFormatType"); + } + }, + "JsonConstructorType": (value: number): string => { + switch (value) { + case 0: + return "JSCTOR_JSON_OBJECT"; + case 1: + return "JSCTOR_JSON_ARRAY"; + case 2: + return "JSCTOR_JSON_OBJECTAGG"; + case 3: + return "JSCTOR_JSON_ARRAYAGG"; + default: + throw new Error("Value not recognized in enum JsonConstructorType"); + } + }, + "JsonValueType": (value: number): string => { + switch (value) { + case 0: + return "JS_TYPE_ANY"; + case 1: + return "JS_TYPE_OBJECT"; + case 2: + return "JS_TYPE_ARRAY"; + case 3: + return "JS_TYPE_SCALAR"; + default: + throw new Error("Value not recognized in enum JsonValueType"); + } + }, + "NullTestType": (value: number): string => { + switch (value) { + case 0: + return "IS_NULL"; + case 1: + return "IS_NOT_NULL"; + default: + throw new Error("Value not recognized in enum NullTestType"); + } + }, + "BoolTestType": (value: number): string => { + switch (value) { + case 0: + return "IS_TRUE"; + case 1: + return "IS_NOT_TRUE"; + case 2: + return "IS_FALSE"; + case 3: + return "IS_NOT_FALSE"; + case 4: + return "IS_UNKNOWN"; + case 5: + return "IS_NOT_UNKNOWN"; + default: + throw new Error("Value not recognized in enum BoolTestType"); + } + }, + "CmdType": (value: number): string => { + switch (value) { + case 0: + return "CMD_UNKNOWN"; + case 1: + return "CMD_SELECT"; + case 2: + return "CMD_UPDATE"; + case 3: + return "CMD_INSERT"; + case 4: + return "CMD_DELETE"; + case 5: + return "CMD_MERGE"; + case 6: + return "CMD_UTILITY"; + case 7: + return "CMD_NOTHING"; + default: + throw new Error("Value not recognized in enum CmdType"); + } + }, + "JoinType": (value: number): string => { + switch (value) { + case 0: + return "JOIN_INNER"; + case 1: + return "JOIN_LEFT"; + case 2: + return "JOIN_FULL"; + case 3: + return "JOIN_RIGHT"; + case 4: + return "JOIN_SEMI"; + case 5: + return "JOIN_ANTI"; + case 6: + return "JOIN_RIGHT_ANTI"; + case 7: + return "JOIN_UNIQUE_OUTER"; + case 8: + return "JOIN_UNIQUE_INNER"; + default: + throw new Error("Value not recognized in enum JoinType"); + } + }, + "AggStrategy": (value: number): string => { + switch (value) { + case 0: + return "AGG_PLAIN"; + case 1: + return "AGG_SORTED"; + case 2: + return "AGG_HASHED"; + case 3: + return "AGG_MIXED"; + default: + throw new Error("Value not recognized in enum AggStrategy"); + } + }, + "AggSplit": (value: number): string => { + switch (value) { + case 0: + return "AGGSPLIT_SIMPLE"; + case 1: + return "AGGSPLIT_INITIAL_SERIAL"; + case 2: + return "AGGSPLIT_FINAL_DESERIAL"; + default: + throw new Error("Value not recognized in enum AggSplit"); + } + }, + "SetOpCmd": (value: number): string => { + switch (value) { + case 0: + return "SETOPCMD_INTERSECT"; + case 1: + return "SETOPCMD_INTERSECT_ALL"; + case 2: + return "SETOPCMD_EXCEPT"; + case 3: + return "SETOPCMD_EXCEPT_ALL"; + default: + throw new Error("Value not recognized in enum SetOpCmd"); + } + }, + "SetOpStrategy": (value: number): string => { + switch (value) { + case 0: + return "SETOP_SORTED"; + case 1: + return "SETOP_HASHED"; + default: + throw new Error("Value not recognized in enum SetOpStrategy"); + } + }, + "OnConflictAction": (value: number): string => { + switch (value) { + case 0: + return "ONCONFLICT_NONE"; + case 1: + return "ONCONFLICT_NOTHING"; + case 2: + return "ONCONFLICT_UPDATE"; + default: + throw new Error("Value not recognized in enum OnConflictAction"); + } + }, + "LimitOption": (value: number): string => { + switch (value) { + case 0: + return "LIMIT_OPTION_DEFAULT"; + case 1: + return "LIMIT_OPTION_COUNT"; + case 2: + return "LIMIT_OPTION_WITH_TIES"; + default: + throw new Error("Value not recognized in enum LimitOption"); + } + }, + "LockClauseStrength": (value: number): string => { + switch (value) { + case 0: + return "LCS_NONE"; + case 1: + return "LCS_FORKEYSHARE"; + case 2: + return "LCS_FORSHARE"; + case 3: + return "LCS_FORNOKEYUPDATE"; + case 4: + return "LCS_FORUPDATE"; + default: + throw new Error("Value not recognized in enum LockClauseStrength"); + } + }, + "LockWaitPolicy": (value: number): string => { + switch (value) { + case 0: + return "LockWaitBlock"; + case 1: + return "LockWaitSkip"; + case 2: + return "LockWaitError"; + default: + throw new Error("Value not recognized in enum LockWaitPolicy"); + } + }, + "LockTupleMode": (value: number): string => { + switch (value) { + case 0: + return "LockTupleKeyShare"; + case 1: + return "LockTupleShare"; + case 2: + return "LockTupleNoKeyExclusive"; + case 3: + return "LockTupleExclusive"; + default: + throw new Error("Value not recognized in enum LockTupleMode"); + } + }, + "KeywordKind": (value: number): string => { + switch (value) { + case 0: + return "NO_KEYWORD"; + case 1: + return "UNRESERVED_KEYWORD"; + case 2: + return "COL_NAME_KEYWORD"; + case 3: + return "TYPE_FUNC_NAME_KEYWORD"; + case 4: + return "RESERVED_KEYWORD"; + default: + throw new Error("Value not recognized in enum KeywordKind"); + } + }, + "Token": (value: number): string => { + switch (value) { + case 0: + return "NUL"; + case 36: + return "ASCII_36"; + case 37: + return "ASCII_37"; + case 40: + return "ASCII_40"; + case 41: + return "ASCII_41"; + case 42: + return "ASCII_42"; + case 43: + return "ASCII_43"; + case 44: + return "ASCII_44"; + case 45: + return "ASCII_45"; + case 46: + return "ASCII_46"; + case 47: + return "ASCII_47"; + case 58: + return "ASCII_58"; + case 59: + return "ASCII_59"; + case 60: + return "ASCII_60"; + case 61: + return "ASCII_61"; + case 62: + return "ASCII_62"; + case 63: + return "ASCII_63"; + case 91: + return "ASCII_91"; + case 92: + return "ASCII_92"; + case 93: + return "ASCII_93"; + case 94: + return "ASCII_94"; + case 258: + return "IDENT"; + case 259: + return "UIDENT"; + case 260: + return "FCONST"; + case 261: + return "SCONST"; + case 262: + return "USCONST"; + case 263: + return "BCONST"; + case 264: + return "XCONST"; + case 265: + return "Op"; + case 266: + return "ICONST"; + case 267: + return "PARAM"; + case 268: + return "TYPECAST"; + case 269: + return "DOT_DOT"; + case 270: + return "COLON_EQUALS"; + case 271: + return "EQUALS_GREATER"; + case 272: + return "LESS_EQUALS"; + case 273: + return "GREATER_EQUALS"; + case 274: + return "NOT_EQUALS"; + case 275: + return "SQL_COMMENT"; + case 276: + return "C_COMMENT"; + case 277: + return "ABORT_P"; + case 278: + return "ABSENT"; + case 279: + return "ABSOLUTE_P"; + case 280: + return "ACCESS"; + case 281: + return "ACTION"; + case 282: + return "ADD_P"; + case 283: + return "ADMIN"; + case 284: + return "AFTER"; + case 285: + return "AGGREGATE"; + case 286: + return "ALL"; + case 287: + return "ALSO"; + case 288: + return "ALTER"; + case 289: + return "ALWAYS"; + case 290: + return "ANALYSE"; + case 291: + return "ANALYZE"; + case 292: + return "AND"; + case 293: + return "ANY"; + case 294: + return "ARRAY"; + case 295: + return "AS"; + case 296: + return "ASC"; + case 297: + return "ASENSITIVE"; + case 298: + return "ASSERTION"; + case 299: + return "ASSIGNMENT"; + case 300: + return "ASYMMETRIC"; + case 301: + return "ATOMIC"; + case 302: + return "AT"; + case 303: + return "ATTACH"; + case 304: + return "ATTRIBUTE"; + case 305: + return "AUTHORIZATION"; + case 306: + return "BACKWARD"; + case 307: + return "BEFORE"; + case 308: + return "BEGIN_P"; + case 309: + return "BETWEEN"; + case 310: + return "BIGINT"; + case 311: + return "BINARY"; + case 312: + return "BIT"; + case 313: + return "BOOLEAN_P"; + case 314: + return "BOTH"; + case 315: + return "BREADTH"; + case 316: + return "BY"; + case 317: + return "CACHE"; + case 318: + return "CALL"; + case 319: + return "CALLED"; + case 320: + return "CASCADE"; + case 321: + return "CASCADED"; + case 322: + return "CASE"; + case 323: + return "CAST"; + case 324: + return "CATALOG_P"; + case 325: + return "CHAIN"; + case 326: + return "CHAR_P"; + case 327: + return "CHARACTER"; + case 328: + return "CHARACTERISTICS"; + case 329: + return "CHECK"; + case 330: + return "CHECKPOINT"; + case 331: + return "CLASS"; + case 332: + return "CLOSE"; + case 333: + return "CLUSTER"; + case 334: + return "COALESCE"; + case 335: + return "COLLATE"; + case 336: + return "COLLATION"; + case 337: + return "COLUMN"; + case 338: + return "COLUMNS"; + case 339: + return "COMMENT"; + case 340: + return "COMMENTS"; + case 341: + return "COMMIT"; + case 342: + return "COMMITTED"; + case 343: + return "COMPRESSION"; + case 344: + return "CONCURRENTLY"; + case 345: + return "CONFIGURATION"; + case 346: + return "CONFLICT"; + case 347: + return "CONNECTION"; + case 348: + return "CONSTRAINT"; + case 349: + return "CONSTRAINTS"; + case 350: + return "CONTENT_P"; + case 351: + return "CONTINUE_P"; + case 352: + return "CONVERSION_P"; + case 353: + return "COPY"; + case 354: + return "COST"; + case 355: + return "CREATE"; + case 356: + return "CROSS"; + case 357: + return "CSV"; + case 358: + return "CUBE"; + case 359: + return "CURRENT_P"; + case 360: + return "CURRENT_CATALOG"; + case 361: + return "CURRENT_DATE"; + case 362: + return "CURRENT_ROLE"; + case 363: + return "CURRENT_SCHEMA"; + case 364: + return "CURRENT_TIME"; + case 365: + return "CURRENT_TIMESTAMP"; + case 366: + return "CURRENT_USER"; + case 367: + return "CURSOR"; + case 368: + return "CYCLE"; + case 369: + return "DATA_P"; + case 370: + return "DATABASE"; + case 371: + return "DAY_P"; + case 372: + return "DEALLOCATE"; + case 373: + return "DEC"; + case 374: + return "DECIMAL_P"; + case 375: + return "DECLARE"; + case 376: + return "DEFAULT"; + case 377: + return "DEFAULTS"; + case 378: + return "DEFERRABLE"; + case 379: + return "DEFERRED"; + case 380: + return "DEFINER"; + case 381: + return "DELETE_P"; + case 382: + return "DELIMITER"; + case 383: + return "DELIMITERS"; + case 384: + return "DEPENDS"; + case 385: + return "DEPTH"; + case 386: + return "DESC"; + case 387: + return "DETACH"; + case 388: + return "DICTIONARY"; + case 389: + return "DISABLE_P"; + case 390: + return "DISCARD"; + case 391: + return "DISTINCT"; + case 392: + return "DO"; + case 393: + return "DOCUMENT_P"; + case 394: + return "DOMAIN_P"; + case 395: + return "DOUBLE_P"; + case 396: + return "DROP"; + case 397: + return "EACH"; + case 398: + return "ELSE"; + case 399: + return "ENABLE_P"; + case 400: + return "ENCODING"; + case 401: + return "ENCRYPTED"; + case 402: + return "END_P"; + case 403: + return "ENUM_P"; + case 404: + return "ESCAPE"; + case 405: + return "EVENT"; + case 406: + return "EXCEPT"; + case 407: + return "EXCLUDE"; + case 408: + return "EXCLUDING"; + case 409: + return "EXCLUSIVE"; + case 410: + return "EXECUTE"; + case 411: + return "EXISTS"; + case 412: + return "EXPLAIN"; + case 413: + return "EXPRESSION"; + case 414: + return "EXTENSION"; + case 415: + return "EXTERNAL"; + case 416: + return "EXTRACT"; + case 417: + return "FALSE_P"; + case 418: + return "FAMILY"; + case 419: + return "FETCH"; + case 420: + return "FILTER"; + case 421: + return "FINALIZE"; + case 422: + return "FIRST_P"; + case 423: + return "FLOAT_P"; + case 424: + return "FOLLOWING"; + case 425: + return "FOR"; + case 426: + return "FORCE"; + case 427: + return "FOREIGN"; + case 428: + return "FORMAT"; + case 429: + return "FORWARD"; + case 430: + return "FREEZE"; + case 431: + return "FROM"; + case 432: + return "FULL"; + case 433: + return "FUNCTION"; + case 434: + return "FUNCTIONS"; + case 435: + return "GENERATED"; + case 436: + return "GLOBAL"; + case 437: + return "GRANT"; + case 438: + return "GRANTED"; + case 439: + return "GREATEST"; + case 440: + return "GROUP_P"; + case 441: + return "GROUPING"; + case 442: + return "GROUPS"; + case 443: + return "HANDLER"; + case 444: + return "HAVING"; + case 445: + return "HEADER_P"; + case 446: + return "HOLD"; + case 447: + return "HOUR_P"; + case 448: + return "IDENTITY_P"; + case 449: + return "IF_P"; + case 450: + return "ILIKE"; + case 451: + return "IMMEDIATE"; + case 452: + return "IMMUTABLE"; + case 453: + return "IMPLICIT_P"; + case 454: + return "IMPORT_P"; + case 455: + return "IN_P"; + case 456: + return "INCLUDE"; + case 457: + return "INCLUDING"; + case 458: + return "INCREMENT"; + case 459: + return "INDENT"; + case 460: + return "INDEX"; + case 461: + return "INDEXES"; + case 462: + return "INHERIT"; + case 463: + return "INHERITS"; + case 464: + return "INITIALLY"; + case 465: + return "INLINE_P"; + case 466: + return "INNER_P"; + case 467: + return "INOUT"; + case 468: + return "INPUT_P"; + case 469: + return "INSENSITIVE"; + case 470: + return "INSERT"; + case 471: + return "INSTEAD"; + case 472: + return "INT_P"; + case 473: + return "INTEGER"; + case 474: + return "INTERSECT"; + case 475: + return "INTERVAL"; + case 476: + return "INTO"; + case 477: + return "INVOKER"; + case 478: + return "IS"; + case 479: + return "ISNULL"; + case 480: + return "ISOLATION"; + case 481: + return "JOIN"; + case 482: + return "JSON"; + case 483: + return "JSON_ARRAY"; + case 484: + return "JSON_ARRAYAGG"; + case 485: + return "JSON_OBJECT"; + case 486: + return "JSON_OBJECTAGG"; + case 487: + return "KEY"; + case 488: + return "KEYS"; + case 489: + return "LABEL"; + case 490: + return "LANGUAGE"; + case 491: + return "LARGE_P"; + case 492: + return "LAST_P"; + case 493: + return "LATERAL_P"; + case 494: + return "LEADING"; + case 495: + return "LEAKPROOF"; + case 496: + return "LEAST"; + case 497: + return "LEFT"; + case 498: + return "LEVEL"; + case 499: + return "LIKE"; + case 500: + return "LIMIT"; + case 501: + return "LISTEN"; + case 502: + return "LOAD"; + case 503: + return "LOCAL"; + case 504: + return "LOCALTIME"; + case 505: + return "LOCALTIMESTAMP"; + case 506: + return "LOCATION"; + case 507: + return "LOCK_P"; + case 508: + return "LOCKED"; + case 509: + return "LOGGED"; + case 510: + return "MAPPING"; + case 511: + return "MATCH"; + case 512: + return "MATCHED"; + case 513: + return "MATERIALIZED"; + case 514: + return "MAXVALUE"; + case 515: + return "MERGE"; + case 516: + return "METHOD"; + case 517: + return "MINUTE_P"; + case 518: + return "MINVALUE"; + case 519: + return "MODE"; + case 520: + return "MONTH_P"; + case 521: + return "MOVE"; + case 522: + return "NAME_P"; + case 523: + return "NAMES"; + case 524: + return "NATIONAL"; + case 525: + return "NATURAL"; + case 526: + return "NCHAR"; + case 527: + return "NEW"; + case 528: + return "NEXT"; + case 529: + return "NFC"; + case 530: + return "NFD"; + case 531: + return "NFKC"; + case 532: + return "NFKD"; + case 533: + return "NO"; + case 534: + return "NONE"; + case 535: + return "NORMALIZE"; + case 536: + return "NORMALIZED"; + case 537: + return "NOT"; + case 538: + return "NOTHING"; + case 539: + return "NOTIFY"; + case 540: + return "NOTNULL"; + case 541: + return "NOWAIT"; + case 542: + return "NULL_P"; + case 543: + return "NULLIF"; + case 544: + return "NULLS_P"; + case 545: + return "NUMERIC"; + case 546: + return "OBJECT_P"; + case 547: + return "OF"; + case 548: + return "OFF"; + case 549: + return "OFFSET"; + case 550: + return "OIDS"; + case 551: + return "OLD"; + case 552: + return "ON"; + case 553: + return "ONLY"; + case 554: + return "OPERATOR"; + case 555: + return "OPTION"; + case 556: + return "OPTIONS"; + case 557: + return "OR"; + case 558: + return "ORDER"; + case 559: + return "ORDINALITY"; + case 560: + return "OTHERS"; + case 561: + return "OUT_P"; + case 562: + return "OUTER_P"; + case 563: + return "OVER"; + case 564: + return "OVERLAPS"; + case 565: + return "OVERLAY"; + case 566: + return "OVERRIDING"; + case 567: + return "OWNED"; + case 568: + return "OWNER"; + case 569: + return "PARALLEL"; + case 570: + return "PARAMETER"; + case 571: + return "PARSER"; + case 572: + return "PARTIAL"; + case 573: + return "PARTITION"; + case 574: + return "PASSING"; + case 575: + return "PASSWORD"; + case 576: + return "PLACING"; + case 577: + return "PLANS"; + case 578: + return "POLICY"; + case 579: + return "POSITION"; + case 580: + return "PRECEDING"; + case 581: + return "PRECISION"; + case 582: + return "PRESERVE"; + case 583: + return "PREPARE"; + case 584: + return "PREPARED"; + case 585: + return "PRIMARY"; + case 586: + return "PRIOR"; + case 587: + return "PRIVILEGES"; + case 588: + return "PROCEDURAL"; + case 589: + return "PROCEDURE"; + case 590: + return "PROCEDURES"; + case 591: + return "PROGRAM"; + case 592: + return "PUBLICATION"; + case 593: + return "QUOTE"; + case 594: + return "RANGE"; + case 595: + return "READ"; + case 596: + return "REAL"; + case 597: + return "REASSIGN"; + case 598: + return "RECHECK"; + case 599: + return "RECURSIVE"; + case 600: + return "REF_P"; + case 601: + return "REFERENCES"; + case 602: + return "REFERENCING"; + case 603: + return "REFRESH"; + case 604: + return "REINDEX"; + case 605: + return "RELATIVE_P"; + case 606: + return "RELEASE"; + case 607: + return "RENAME"; + case 608: + return "REPEATABLE"; + case 609: + return "REPLACE"; + case 610: + return "REPLICA"; + case 611: + return "RESET"; + case 612: + return "RESTART"; + case 613: + return "RESTRICT"; + case 614: + return "RETURN"; + case 615: + return "RETURNING"; + case 616: + return "RETURNS"; + case 617: + return "REVOKE"; + case 618: + return "RIGHT"; + case 619: + return "ROLE"; + case 620: + return "ROLLBACK"; + case 621: + return "ROLLUP"; + case 622: + return "ROUTINE"; + case 623: + return "ROUTINES"; + case 624: + return "ROW"; + case 625: + return "ROWS"; + case 626: + return "RULE"; + case 627: + return "SAVEPOINT"; + case 628: + return "SCALAR"; + case 629: + return "SCHEMA"; + case 630: + return "SCHEMAS"; + case 631: + return "SCROLL"; + case 632: + return "SEARCH"; + case 633: + return "SECOND_P"; + case 634: + return "SECURITY"; + case 635: + return "SELECT"; + case 636: + return "SEQUENCE"; + case 637: + return "SEQUENCES"; + case 638: + return "SERIALIZABLE"; + case 639: + return "SERVER"; + case 640: + return "SESSION"; + case 641: + return "SESSION_USER"; + case 642: + return "SET"; + case 643: + return "SETS"; + case 644: + return "SETOF"; + case 645: + return "SHARE"; + case 646: + return "SHOW"; + case 647: + return "SIMILAR"; + case 648: + return "SIMPLE"; + case 649: + return "SKIP"; + case 650: + return "SMALLINT"; + case 651: + return "SNAPSHOT"; + case 652: + return "SOME"; + case 653: + return "SQL_P"; + case 654: + return "STABLE"; + case 655: + return "STANDALONE_P"; + case 656: + return "START"; + case 657: + return "STATEMENT"; + case 658: + return "STATISTICS"; + case 659: + return "STDIN"; + case 660: + return "STDOUT"; + case 661: + return "STORAGE"; + case 662: + return "STORED"; + case 663: + return "STRICT_P"; + case 664: + return "STRIP_P"; + case 665: + return "SUBSCRIPTION"; + case 666: + return "SUBSTRING"; + case 667: + return "SUPPORT"; + case 668: + return "SYMMETRIC"; + case 669: + return "SYSID"; + case 670: + return "SYSTEM_P"; + case 671: + return "SYSTEM_USER"; + case 672: + return "TABLE"; + case 673: + return "TABLES"; + case 674: + return "TABLESAMPLE"; + case 675: + return "TABLESPACE"; + case 676: + return "TEMP"; + case 677: + return "TEMPLATE"; + case 678: + return "TEMPORARY"; + case 679: + return "TEXT_P"; + case 680: + return "THEN"; + case 681: + return "TIES"; + case 682: + return "TIME"; + case 683: + return "TIMESTAMP"; + case 684: + return "TO"; + case 685: + return "TRAILING"; + case 686: + return "TRANSACTION"; + case 687: + return "TRANSFORM"; + case 688: + return "TREAT"; + case 689: + return "TRIGGER"; + case 690: + return "TRIM"; + case 691: + return "TRUE_P"; + case 692: + return "TRUNCATE"; + case 693: + return "TRUSTED"; + case 694: + return "TYPE_P"; + case 695: + return "TYPES_P"; + case 696: + return "UESCAPE"; + case 697: + return "UNBOUNDED"; + case 698: + return "UNCOMMITTED"; + case 699: + return "UNENCRYPTED"; + case 700: + return "UNION"; + case 701: + return "UNIQUE"; + case 702: + return "UNKNOWN"; + case 703: + return "UNLISTEN"; + case 704: + return "UNLOGGED"; + case 705: + return "UNTIL"; + case 706: + return "UPDATE"; + case 707: + return "USER"; + case 708: + return "USING"; + case 709: + return "VACUUM"; + case 710: + return "VALID"; + case 711: + return "VALIDATE"; + case 712: + return "VALIDATOR"; + case 713: + return "VALUE_P"; + case 714: + return "VALUES"; + case 715: + return "VARCHAR"; + case 716: + return "VARIADIC"; + case 717: + return "VARYING"; + case 718: + return "VERBOSE"; + case 719: + return "VERSION_P"; + case 720: + return "VIEW"; + case 721: + return "VIEWS"; + case 722: + return "VOLATILE"; + case 723: + return "WHEN"; + case 724: + return "WHERE"; + case 725: + return "WHITESPACE_P"; + case 726: + return "WINDOW"; + case 727: + return "WITH"; + case 728: + return "WITHIN"; + case 729: + return "WITHOUT"; + case 730: + return "WORK"; + case 731: + return "WRAPPER"; + case 732: + return "WRITE"; + case 733: + return "XML_P"; + case 734: + return "XMLATTRIBUTES"; + case 735: + return "XMLCONCAT"; + case 736: + return "XMLELEMENT"; + case 737: + return "XMLEXISTS"; + case 738: + return "XMLFOREST"; + case 739: + return "XMLNAMESPACES"; + case 740: + return "XMLPARSE"; + case 741: + return "XMLPI"; + case 742: + return "XMLROOT"; + case 743: + return "XMLSERIALIZE"; + case 744: + return "XMLTABLE"; + case 745: + return "YEAR_P"; + case 746: + return "YES_P"; + case 747: + return "ZONE"; + case 748: + return "FORMAT_LA"; + case 749: + return "NOT_LA"; + case 750: + return "NULLS_LA"; + case 751: + return "WITH_LA"; + case 752: + return "WITHOUT_LA"; + case 753: + return "MODE_TYPE_NAME"; + case 754: + return "MODE_PLPGSQL_EXPR"; + case 755: + return "MODE_PLPGSQL_ASSIGN1"; + case 756: + return "MODE_PLPGSQL_ASSIGN2"; + case 757: + return "MODE_PLPGSQL_ASSIGN3"; + case 758: + return "UMINUS"; + default: + throw new Error("Value not recognized in enum Token"); + } + } +}; \ No newline at end of file diff --git a/__fixtures__/output/utils/enums/unidirectional/enum-to-int-utils.ts b/__fixtures__/output/utils/enums/unidirectional/enum-to-int-utils.ts new file mode 100644 index 00000000..849ed3f2 --- /dev/null +++ b/__fixtures__/output/utils/enums/unidirectional/enum-to-int-utils.ts @@ -0,0 +1,2346 @@ +/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type EnumType = "OverridingKind" | "QuerySource" | "SortByDir" | "SortByNulls" | "SetQuantifier" | "A_Expr_Kind" | "RoleSpecType" | "TableLikeOption" | "DefElemAction" | "PartitionStrategy" | "PartitionRangeDatumKind" | "RTEKind" | "WCOKind" | "GroupingSetKind" | "CTEMaterialize" | "SetOperation" | "ObjectType" | "DropBehavior" | "AlterTableType" | "GrantTargetType" | "VariableSetKind" | "ConstrType" | "ImportForeignSchemaType" | "RoleStmtType" | "FetchDirection" | "FunctionParameterMode" | "TransactionStmtKind" | "ViewCheckOption" | "DiscardMode" | "ReindexObjectType" | "AlterTSConfigType" | "PublicationObjSpecType" | "AlterPublicationAction" | "AlterSubscriptionType" | "OnCommitAction" | "ParamKind" | "CoercionContext" | "CoercionForm" | "BoolExprType" | "SubLinkType" | "RowCompareType" | "MinMaxOp" | "SQLValueFunctionOp" | "XmlExprOp" | "XmlOptionType" | "JsonEncoding" | "JsonFormatType" | "JsonConstructorType" | "JsonValueType" | "NullTestType" | "BoolTestType" | "CmdType" | "JoinType" | "AggStrategy" | "AggSplit" | "SetOpCmd" | "SetOpStrategy" | "OnConflictAction" | "LimitOption" | "LockClauseStrength" | "LockWaitPolicy" | "LockTupleMode" | "KeywordKind" | "Token"; +export const getEnumInt = (enumType: EnumType, key: string): number => { + switch (enumType) { + case "OverridingKind": + { + switch (key) { + case "OVERRIDING_NOT_SET": + return 0; + case "OVERRIDING_USER_VALUE": + return 1; + case "OVERRIDING_SYSTEM_VALUE": + return 2; + default: + throw new Error("Key not recognized in enum OverridingKind"); + } + } + case "QuerySource": + { + switch (key) { + case "QSRC_ORIGINAL": + return 0; + case "QSRC_PARSER": + return 1; + case "QSRC_INSTEAD_RULE": + return 2; + case "QSRC_QUAL_INSTEAD_RULE": + return 3; + case "QSRC_NON_INSTEAD_RULE": + return 4; + default: + throw new Error("Key not recognized in enum QuerySource"); + } + } + case "SortByDir": + { + switch (key) { + case "SORTBY_DEFAULT": + return 0; + case "SORTBY_ASC": + return 1; + case "SORTBY_DESC": + return 2; + case "SORTBY_USING": + return 3; + default: + throw new Error("Key not recognized in enum SortByDir"); + } + } + case "SortByNulls": + { + switch (key) { + case "SORTBY_NULLS_DEFAULT": + return 0; + case "SORTBY_NULLS_FIRST": + return 1; + case "SORTBY_NULLS_LAST": + return 2; + default: + throw new Error("Key not recognized in enum SortByNulls"); + } + } + case "SetQuantifier": + { + switch (key) { + case "SET_QUANTIFIER_DEFAULT": + return 0; + case "SET_QUANTIFIER_ALL": + return 1; + case "SET_QUANTIFIER_DISTINCT": + return 2; + default: + throw new Error("Key not recognized in enum SetQuantifier"); + } + } + case "A_Expr_Kind": + { + switch (key) { + case "AEXPR_OP": + return 0; + case "AEXPR_OP_ANY": + return 1; + case "AEXPR_OP_ALL": + return 2; + case "AEXPR_DISTINCT": + return 3; + case "AEXPR_NOT_DISTINCT": + return 4; + case "AEXPR_NULLIF": + return 5; + case "AEXPR_IN": + return 6; + case "AEXPR_LIKE": + return 7; + case "AEXPR_ILIKE": + return 8; + case "AEXPR_SIMILAR": + return 9; + case "AEXPR_BETWEEN": + return 10; + case "AEXPR_NOT_BETWEEN": + return 11; + case "AEXPR_BETWEEN_SYM": + return 12; + case "AEXPR_NOT_BETWEEN_SYM": + return 13; + default: + throw new Error("Key not recognized in enum A_Expr_Kind"); + } + } + case "RoleSpecType": + { + switch (key) { + case "ROLESPEC_CSTRING": + return 0; + case "ROLESPEC_CURRENT_ROLE": + return 1; + case "ROLESPEC_CURRENT_USER": + return 2; + case "ROLESPEC_SESSION_USER": + return 3; + case "ROLESPEC_PUBLIC": + return 4; + default: + throw new Error("Key not recognized in enum RoleSpecType"); + } + } + case "TableLikeOption": + { + switch (key) { + case "CREATE_TABLE_LIKE_COMMENTS": + return 0; + case "CREATE_TABLE_LIKE_COMPRESSION": + return 1; + case "CREATE_TABLE_LIKE_CONSTRAINTS": + return 2; + case "CREATE_TABLE_LIKE_DEFAULTS": + return 3; + case "CREATE_TABLE_LIKE_GENERATED": + return 4; + case "CREATE_TABLE_LIKE_IDENTITY": + return 5; + case "CREATE_TABLE_LIKE_INDEXES": + return 6; + case "CREATE_TABLE_LIKE_STATISTICS": + return 7; + case "CREATE_TABLE_LIKE_STORAGE": + return 8; + case "CREATE_TABLE_LIKE_ALL": + return 9; + default: + throw new Error("Key not recognized in enum TableLikeOption"); + } + } + case "DefElemAction": + { + switch (key) { + case "DEFELEM_UNSPEC": + return 0; + case "DEFELEM_SET": + return 1; + case "DEFELEM_ADD": + return 2; + case "DEFELEM_DROP": + return 3; + default: + throw new Error("Key not recognized in enum DefElemAction"); + } + } + case "PartitionStrategy": + { + switch (key) { + case "PARTITION_STRATEGY_LIST": + return 0; + case "PARTITION_STRATEGY_RANGE": + return 1; + case "PARTITION_STRATEGY_HASH": + return 2; + default: + throw new Error("Key not recognized in enum PartitionStrategy"); + } + } + case "PartitionRangeDatumKind": + { + switch (key) { + case "PARTITION_RANGE_DATUM_MINVALUE": + return 0; + case "PARTITION_RANGE_DATUM_VALUE": + return 1; + case "PARTITION_RANGE_DATUM_MAXVALUE": + return 2; + default: + throw new Error("Key not recognized in enum PartitionRangeDatumKind"); + } + } + case "RTEKind": + { + switch (key) { + case "RTE_RELATION": + return 0; + case "RTE_SUBQUERY": + return 1; + case "RTE_JOIN": + return 2; + case "RTE_FUNCTION": + return 3; + case "RTE_TABLEFUNC": + return 4; + case "RTE_VALUES": + return 5; + case "RTE_CTE": + return 6; + case "RTE_NAMEDTUPLESTORE": + return 7; + case "RTE_RESULT": + return 8; + default: + throw new Error("Key not recognized in enum RTEKind"); + } + } + case "WCOKind": + { + switch (key) { + case "WCO_VIEW_CHECK": + return 0; + case "WCO_RLS_INSERT_CHECK": + return 1; + case "WCO_RLS_UPDATE_CHECK": + return 2; + case "WCO_RLS_CONFLICT_CHECK": + return 3; + case "WCO_RLS_MERGE_UPDATE_CHECK": + return 4; + case "WCO_RLS_MERGE_DELETE_CHECK": + return 5; + default: + throw new Error("Key not recognized in enum WCOKind"); + } + } + case "GroupingSetKind": + { + switch (key) { + case "GROUPING_SET_EMPTY": + return 0; + case "GROUPING_SET_SIMPLE": + return 1; + case "GROUPING_SET_ROLLUP": + return 2; + case "GROUPING_SET_CUBE": + return 3; + case "GROUPING_SET_SETS": + return 4; + default: + throw new Error("Key not recognized in enum GroupingSetKind"); + } + } + case "CTEMaterialize": + { + switch (key) { + case "CTEMaterializeDefault": + return 0; + case "CTEMaterializeAlways": + return 1; + case "CTEMaterializeNever": + return 2; + default: + throw new Error("Key not recognized in enum CTEMaterialize"); + } + } + case "SetOperation": + { + switch (key) { + case "SETOP_NONE": + return 0; + case "SETOP_UNION": + return 1; + case "SETOP_INTERSECT": + return 2; + case "SETOP_EXCEPT": + return 3; + default: + throw new Error("Key not recognized in enum SetOperation"); + } + } + case "ObjectType": + { + switch (key) { + case "OBJECT_ACCESS_METHOD": + return 0; + case "OBJECT_AGGREGATE": + return 1; + case "OBJECT_AMOP": + return 2; + case "OBJECT_AMPROC": + return 3; + case "OBJECT_ATTRIBUTE": + return 4; + case "OBJECT_CAST": + return 5; + case "OBJECT_COLUMN": + return 6; + case "OBJECT_COLLATION": + return 7; + case "OBJECT_CONVERSION": + return 8; + case "OBJECT_DATABASE": + return 9; + case "OBJECT_DEFAULT": + return 10; + case "OBJECT_DEFACL": + return 11; + case "OBJECT_DOMAIN": + return 12; + case "OBJECT_DOMCONSTRAINT": + return 13; + case "OBJECT_EVENT_TRIGGER": + return 14; + case "OBJECT_EXTENSION": + return 15; + case "OBJECT_FDW": + return 16; + case "OBJECT_FOREIGN_SERVER": + return 17; + case "OBJECT_FOREIGN_TABLE": + return 18; + case "OBJECT_FUNCTION": + return 19; + case "OBJECT_INDEX": + return 20; + case "OBJECT_LANGUAGE": + return 21; + case "OBJECT_LARGEOBJECT": + return 22; + case "OBJECT_MATVIEW": + return 23; + case "OBJECT_OPCLASS": + return 24; + case "OBJECT_OPERATOR": + return 25; + case "OBJECT_OPFAMILY": + return 26; + case "OBJECT_PARAMETER_ACL": + return 27; + case "OBJECT_POLICY": + return 28; + case "OBJECT_PROCEDURE": + return 29; + case "OBJECT_PUBLICATION": + return 30; + case "OBJECT_PUBLICATION_NAMESPACE": + return 31; + case "OBJECT_PUBLICATION_REL": + return 32; + case "OBJECT_ROLE": + return 33; + case "OBJECT_ROUTINE": + return 34; + case "OBJECT_RULE": + return 35; + case "OBJECT_SCHEMA": + return 36; + case "OBJECT_SEQUENCE": + return 37; + case "OBJECT_SUBSCRIPTION": + return 38; + case "OBJECT_STATISTIC_EXT": + return 39; + case "OBJECT_TABCONSTRAINT": + return 40; + case "OBJECT_TABLE": + return 41; + case "OBJECT_TABLESPACE": + return 42; + case "OBJECT_TRANSFORM": + return 43; + case "OBJECT_TRIGGER": + return 44; + case "OBJECT_TSCONFIGURATION": + return 45; + case "OBJECT_TSDICTIONARY": + return 46; + case "OBJECT_TSPARSER": + return 47; + case "OBJECT_TSTEMPLATE": + return 48; + case "OBJECT_TYPE": + return 49; + case "OBJECT_USER_MAPPING": + return 50; + case "OBJECT_VIEW": + return 51; + default: + throw new Error("Key not recognized in enum ObjectType"); + } + } + case "DropBehavior": + { + switch (key) { + case "DROP_RESTRICT": + return 0; + case "DROP_CASCADE": + return 1; + default: + throw new Error("Key not recognized in enum DropBehavior"); + } + } + case "AlterTableType": + { + switch (key) { + case "AT_AddColumn": + return 0; + case "AT_AddColumnToView": + return 1; + case "AT_ColumnDefault": + return 2; + case "AT_CookedColumnDefault": + return 3; + case "AT_DropNotNull": + return 4; + case "AT_SetNotNull": + return 5; + case "AT_DropExpression": + return 6; + case "AT_CheckNotNull": + return 7; + case "AT_SetStatistics": + return 8; + case "AT_SetOptions": + return 9; + case "AT_ResetOptions": + return 10; + case "AT_SetStorage": + return 11; + case "AT_SetCompression": + return 12; + case "AT_DropColumn": + return 13; + case "AT_AddIndex": + return 14; + case "AT_ReAddIndex": + return 15; + case "AT_AddConstraint": + return 16; + case "AT_ReAddConstraint": + return 17; + case "AT_ReAddDomainConstraint": + return 18; + case "AT_AlterConstraint": + return 19; + case "AT_ValidateConstraint": + return 20; + case "AT_AddIndexConstraint": + return 21; + case "AT_DropConstraint": + return 22; + case "AT_ReAddComment": + return 23; + case "AT_AlterColumnType": + return 24; + case "AT_AlterColumnGenericOptions": + return 25; + case "AT_ChangeOwner": + return 26; + case "AT_ClusterOn": + return 27; + case "AT_DropCluster": + return 28; + case "AT_SetLogged": + return 29; + case "AT_SetUnLogged": + return 30; + case "AT_DropOids": + return 31; + case "AT_SetAccessMethod": + return 32; + case "AT_SetTableSpace": + return 33; + case "AT_SetRelOptions": + return 34; + case "AT_ResetRelOptions": + return 35; + case "AT_ReplaceRelOptions": + return 36; + case "AT_EnableTrig": + return 37; + case "AT_EnableAlwaysTrig": + return 38; + case "AT_EnableReplicaTrig": + return 39; + case "AT_DisableTrig": + return 40; + case "AT_EnableTrigAll": + return 41; + case "AT_DisableTrigAll": + return 42; + case "AT_EnableTrigUser": + return 43; + case "AT_DisableTrigUser": + return 44; + case "AT_EnableRule": + return 45; + case "AT_EnableAlwaysRule": + return 46; + case "AT_EnableReplicaRule": + return 47; + case "AT_DisableRule": + return 48; + case "AT_AddInherit": + return 49; + case "AT_DropInherit": + return 50; + case "AT_AddOf": + return 51; + case "AT_DropOf": + return 52; + case "AT_ReplicaIdentity": + return 53; + case "AT_EnableRowSecurity": + return 54; + case "AT_DisableRowSecurity": + return 55; + case "AT_ForceRowSecurity": + return 56; + case "AT_NoForceRowSecurity": + return 57; + case "AT_GenericOptions": + return 58; + case "AT_AttachPartition": + return 59; + case "AT_DetachPartition": + return 60; + case "AT_DetachPartitionFinalize": + return 61; + case "AT_AddIdentity": + return 62; + case "AT_SetIdentity": + return 63; + case "AT_DropIdentity": + return 64; + case "AT_ReAddStatistics": + return 65; + default: + throw new Error("Key not recognized in enum AlterTableType"); + } + } + case "GrantTargetType": + { + switch (key) { + case "ACL_TARGET_OBJECT": + return 0; + case "ACL_TARGET_ALL_IN_SCHEMA": + return 1; + case "ACL_TARGET_DEFAULTS": + return 2; + default: + throw new Error("Key not recognized in enum GrantTargetType"); + } + } + case "VariableSetKind": + { + switch (key) { + case "VAR_SET_VALUE": + return 0; + case "VAR_SET_DEFAULT": + return 1; + case "VAR_SET_CURRENT": + return 2; + case "VAR_SET_MULTI": + return 3; + case "VAR_RESET": + return 4; + case "VAR_RESET_ALL": + return 5; + default: + throw new Error("Key not recognized in enum VariableSetKind"); + } + } + case "ConstrType": + { + switch (key) { + case "CONSTR_NULL": + return 0; + case "CONSTR_NOTNULL": + return 1; + case "CONSTR_DEFAULT": + return 2; + case "CONSTR_IDENTITY": + return 3; + case "CONSTR_GENERATED": + return 4; + case "CONSTR_CHECK": + return 5; + case "CONSTR_PRIMARY": + return 6; + case "CONSTR_UNIQUE": + return 7; + case "CONSTR_EXCLUSION": + return 8; + case "CONSTR_FOREIGN": + return 9; + case "CONSTR_ATTR_DEFERRABLE": + return 10; + case "CONSTR_ATTR_NOT_DEFERRABLE": + return 11; + case "CONSTR_ATTR_DEFERRED": + return 12; + case "CONSTR_ATTR_IMMEDIATE": + return 13; + default: + throw new Error("Key not recognized in enum ConstrType"); + } + } + case "ImportForeignSchemaType": + { + switch (key) { + case "FDW_IMPORT_SCHEMA_ALL": + return 0; + case "FDW_IMPORT_SCHEMA_LIMIT_TO": + return 1; + case "FDW_IMPORT_SCHEMA_EXCEPT": + return 2; + default: + throw new Error("Key not recognized in enum ImportForeignSchemaType"); + } + } + case "RoleStmtType": + { + switch (key) { + case "ROLESTMT_ROLE": + return 0; + case "ROLESTMT_USER": + return 1; + case "ROLESTMT_GROUP": + return 2; + default: + throw new Error("Key not recognized in enum RoleStmtType"); + } + } + case "FetchDirection": + { + switch (key) { + case "FETCH_FORWARD": + return 0; + case "FETCH_BACKWARD": + return 1; + case "FETCH_ABSOLUTE": + return 2; + case "FETCH_RELATIVE": + return 3; + default: + throw new Error("Key not recognized in enum FetchDirection"); + } + } + case "FunctionParameterMode": + { + switch (key) { + case "FUNC_PARAM_IN": + return 0; + case "FUNC_PARAM_OUT": + return 1; + case "FUNC_PARAM_INOUT": + return 2; + case "FUNC_PARAM_VARIADIC": + return 3; + case "FUNC_PARAM_TABLE": + return 4; + case "FUNC_PARAM_DEFAULT": + return 5; + default: + throw new Error("Key not recognized in enum FunctionParameterMode"); + } + } + case "TransactionStmtKind": + { + switch (key) { + case "TRANS_STMT_BEGIN": + return 0; + case "TRANS_STMT_START": + return 1; + case "TRANS_STMT_COMMIT": + return 2; + case "TRANS_STMT_ROLLBACK": + return 3; + case "TRANS_STMT_SAVEPOINT": + return 4; + case "TRANS_STMT_RELEASE": + return 5; + case "TRANS_STMT_ROLLBACK_TO": + return 6; + case "TRANS_STMT_PREPARE": + return 7; + case "TRANS_STMT_COMMIT_PREPARED": + return 8; + case "TRANS_STMT_ROLLBACK_PREPARED": + return 9; + default: + throw new Error("Key not recognized in enum TransactionStmtKind"); + } + } + case "ViewCheckOption": + { + switch (key) { + case "NO_CHECK_OPTION": + return 0; + case "LOCAL_CHECK_OPTION": + return 1; + case "CASCADED_CHECK_OPTION": + return 2; + default: + throw new Error("Key not recognized in enum ViewCheckOption"); + } + } + case "DiscardMode": + { + switch (key) { + case "DISCARD_ALL": + return 0; + case "DISCARD_PLANS": + return 1; + case "DISCARD_SEQUENCES": + return 2; + case "DISCARD_TEMP": + return 3; + default: + throw new Error("Key not recognized in enum DiscardMode"); + } + } + case "ReindexObjectType": + { + switch (key) { + case "REINDEX_OBJECT_INDEX": + return 0; + case "REINDEX_OBJECT_TABLE": + return 1; + case "REINDEX_OBJECT_SCHEMA": + return 2; + case "REINDEX_OBJECT_SYSTEM": + return 3; + case "REINDEX_OBJECT_DATABASE": + return 4; + default: + throw new Error("Key not recognized in enum ReindexObjectType"); + } + } + case "AlterTSConfigType": + { + switch (key) { + case "ALTER_TSCONFIG_ADD_MAPPING": + return 0; + case "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN": + return 1; + case "ALTER_TSCONFIG_REPLACE_DICT": + return 2; + case "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN": + return 3; + case "ALTER_TSCONFIG_DROP_MAPPING": + return 4; + default: + throw new Error("Key not recognized in enum AlterTSConfigType"); + } + } + case "PublicationObjSpecType": + { + switch (key) { + case "PUBLICATIONOBJ_TABLE": + return 0; + case "PUBLICATIONOBJ_TABLES_IN_SCHEMA": + return 1; + case "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA": + return 2; + case "PUBLICATIONOBJ_CONTINUATION": + return 3; + default: + throw new Error("Key not recognized in enum PublicationObjSpecType"); + } + } + case "AlterPublicationAction": + { + switch (key) { + case "AP_AddObjects": + return 0; + case "AP_DropObjects": + return 1; + case "AP_SetObjects": + return 2; + default: + throw new Error("Key not recognized in enum AlterPublicationAction"); + } + } + case "AlterSubscriptionType": + { + switch (key) { + case "ALTER_SUBSCRIPTION_OPTIONS": + return 0; + case "ALTER_SUBSCRIPTION_CONNECTION": + return 1; + case "ALTER_SUBSCRIPTION_SET_PUBLICATION": + return 2; + case "ALTER_SUBSCRIPTION_ADD_PUBLICATION": + return 3; + case "ALTER_SUBSCRIPTION_DROP_PUBLICATION": + return 4; + case "ALTER_SUBSCRIPTION_REFRESH": + return 5; + case "ALTER_SUBSCRIPTION_ENABLED": + return 6; + case "ALTER_SUBSCRIPTION_SKIP": + return 7; + default: + throw new Error("Key not recognized in enum AlterSubscriptionType"); + } + } + case "OnCommitAction": + { + switch (key) { + case "ONCOMMIT_NOOP": + return 0; + case "ONCOMMIT_PRESERVE_ROWS": + return 1; + case "ONCOMMIT_DELETE_ROWS": + return 2; + case "ONCOMMIT_DROP": + return 3; + default: + throw new Error("Key not recognized in enum OnCommitAction"); + } + } + case "ParamKind": + { + switch (key) { + case "PARAM_EXTERN": + return 0; + case "PARAM_EXEC": + return 1; + case "PARAM_SUBLINK": + return 2; + case "PARAM_MULTIEXPR": + return 3; + default: + throw new Error("Key not recognized in enum ParamKind"); + } + } + case "CoercionContext": + { + switch (key) { + case "COERCION_IMPLICIT": + return 0; + case "COERCION_ASSIGNMENT": + return 1; + case "COERCION_PLPGSQL": + return 2; + case "COERCION_EXPLICIT": + return 3; + default: + throw new Error("Key not recognized in enum CoercionContext"); + } + } + case "CoercionForm": + { + switch (key) { + case "COERCE_EXPLICIT_CALL": + return 0; + case "COERCE_EXPLICIT_CAST": + return 1; + case "COERCE_IMPLICIT_CAST": + return 2; + case "COERCE_SQL_SYNTAX": + return 3; + default: + throw new Error("Key not recognized in enum CoercionForm"); + } + } + case "BoolExprType": + { + switch (key) { + case "AND_EXPR": + return 0; + case "OR_EXPR": + return 1; + case "NOT_EXPR": + return 2; + default: + throw new Error("Key not recognized in enum BoolExprType"); + } + } + case "SubLinkType": + { + switch (key) { + case "EXISTS_SUBLINK": + return 0; + case "ALL_SUBLINK": + return 1; + case "ANY_SUBLINK": + return 2; + case "ROWCOMPARE_SUBLINK": + return 3; + case "EXPR_SUBLINK": + return 4; + case "MULTIEXPR_SUBLINK": + return 5; + case "ARRAY_SUBLINK": + return 6; + case "CTE_SUBLINK": + return 7; + default: + throw new Error("Key not recognized in enum SubLinkType"); + } + } + case "RowCompareType": + { + switch (key) { + case "ROWCOMPARE_LT": + return 0; + case "ROWCOMPARE_LE": + return 1; + case "ROWCOMPARE_EQ": + return 2; + case "ROWCOMPARE_GE": + return 3; + case "ROWCOMPARE_GT": + return 4; + case "ROWCOMPARE_NE": + return 5; + default: + throw new Error("Key not recognized in enum RowCompareType"); + } + } + case "MinMaxOp": + { + switch (key) { + case "IS_GREATEST": + return 0; + case "IS_LEAST": + return 1; + default: + throw new Error("Key not recognized in enum MinMaxOp"); + } + } + case "SQLValueFunctionOp": + { + switch (key) { + case "SVFOP_CURRENT_DATE": + return 0; + case "SVFOP_CURRENT_TIME": + return 1; + case "SVFOP_CURRENT_TIME_N": + return 2; + case "SVFOP_CURRENT_TIMESTAMP": + return 3; + case "SVFOP_CURRENT_TIMESTAMP_N": + return 4; + case "SVFOP_LOCALTIME": + return 5; + case "SVFOP_LOCALTIME_N": + return 6; + case "SVFOP_LOCALTIMESTAMP": + return 7; + case "SVFOP_LOCALTIMESTAMP_N": + return 8; + case "SVFOP_CURRENT_ROLE": + return 9; + case "SVFOP_CURRENT_USER": + return 10; + case "SVFOP_USER": + return 11; + case "SVFOP_SESSION_USER": + return 12; + case "SVFOP_CURRENT_CATALOG": + return 13; + case "SVFOP_CURRENT_SCHEMA": + return 14; + default: + throw new Error("Key not recognized in enum SQLValueFunctionOp"); + } + } + case "XmlExprOp": + { + switch (key) { + case "IS_XMLCONCAT": + return 0; + case "IS_XMLELEMENT": + return 1; + case "IS_XMLFOREST": + return 2; + case "IS_XMLPARSE": + return 3; + case "IS_XMLPI": + return 4; + case "IS_XMLROOT": + return 5; + case "IS_XMLSERIALIZE": + return 6; + case "IS_DOCUMENT": + return 7; + default: + throw new Error("Key not recognized in enum XmlExprOp"); + } + } + case "XmlOptionType": + { + switch (key) { + case "XMLOPTION_DOCUMENT": + return 0; + case "XMLOPTION_CONTENT": + return 1; + default: + throw new Error("Key not recognized in enum XmlOptionType"); + } + } + case "JsonEncoding": + { + switch (key) { + case "JS_ENC_DEFAULT": + return 0; + case "JS_ENC_UTF8": + return 1; + case "JS_ENC_UTF16": + return 2; + case "JS_ENC_UTF32": + return 3; + default: + throw new Error("Key not recognized in enum JsonEncoding"); + } + } + case "JsonFormatType": + { + switch (key) { + case "JS_FORMAT_DEFAULT": + return 0; + case "JS_FORMAT_JSON": + return 1; + case "JS_FORMAT_JSONB": + return 2; + default: + throw new Error("Key not recognized in enum JsonFormatType"); + } + } + case "JsonConstructorType": + { + switch (key) { + case "JSCTOR_JSON_OBJECT": + return 0; + case "JSCTOR_JSON_ARRAY": + return 1; + case "JSCTOR_JSON_OBJECTAGG": + return 2; + case "JSCTOR_JSON_ARRAYAGG": + return 3; + default: + throw new Error("Key not recognized in enum JsonConstructorType"); + } + } + case "JsonValueType": + { + switch (key) { + case "JS_TYPE_ANY": + return 0; + case "JS_TYPE_OBJECT": + return 1; + case "JS_TYPE_ARRAY": + return 2; + case "JS_TYPE_SCALAR": + return 3; + default: + throw new Error("Key not recognized in enum JsonValueType"); + } + } + case "NullTestType": + { + switch (key) { + case "IS_NULL": + return 0; + case "IS_NOT_NULL": + return 1; + default: + throw new Error("Key not recognized in enum NullTestType"); + } + } + case "BoolTestType": + { + switch (key) { + case "IS_TRUE": + return 0; + case "IS_NOT_TRUE": + return 1; + case "IS_FALSE": + return 2; + case "IS_NOT_FALSE": + return 3; + case "IS_UNKNOWN": + return 4; + case "IS_NOT_UNKNOWN": + return 5; + default: + throw new Error("Key not recognized in enum BoolTestType"); + } + } + case "CmdType": + { + switch (key) { + case "CMD_UNKNOWN": + return 0; + case "CMD_SELECT": + return 1; + case "CMD_UPDATE": + return 2; + case "CMD_INSERT": + return 3; + case "CMD_DELETE": + return 4; + case "CMD_MERGE": + return 5; + case "CMD_UTILITY": + return 6; + case "CMD_NOTHING": + return 7; + default: + throw new Error("Key not recognized in enum CmdType"); + } + } + case "JoinType": + { + switch (key) { + case "JOIN_INNER": + return 0; + case "JOIN_LEFT": + return 1; + case "JOIN_FULL": + return 2; + case "JOIN_RIGHT": + return 3; + case "JOIN_SEMI": + return 4; + case "JOIN_ANTI": + return 5; + case "JOIN_RIGHT_ANTI": + return 6; + case "JOIN_UNIQUE_OUTER": + return 7; + case "JOIN_UNIQUE_INNER": + return 8; + default: + throw new Error("Key not recognized in enum JoinType"); + } + } + case "AggStrategy": + { + switch (key) { + case "AGG_PLAIN": + return 0; + case "AGG_SORTED": + return 1; + case "AGG_HASHED": + return 2; + case "AGG_MIXED": + return 3; + default: + throw new Error("Key not recognized in enum AggStrategy"); + } + } + case "AggSplit": + { + switch (key) { + case "AGGSPLIT_SIMPLE": + return 0; + case "AGGSPLIT_INITIAL_SERIAL": + return 1; + case "AGGSPLIT_FINAL_DESERIAL": + return 2; + default: + throw new Error("Key not recognized in enum AggSplit"); + } + } + case "SetOpCmd": + { + switch (key) { + case "SETOPCMD_INTERSECT": + return 0; + case "SETOPCMD_INTERSECT_ALL": + return 1; + case "SETOPCMD_EXCEPT": + return 2; + case "SETOPCMD_EXCEPT_ALL": + return 3; + default: + throw new Error("Key not recognized in enum SetOpCmd"); + } + } + case "SetOpStrategy": + { + switch (key) { + case "SETOP_SORTED": + return 0; + case "SETOP_HASHED": + return 1; + default: + throw new Error("Key not recognized in enum SetOpStrategy"); + } + } + case "OnConflictAction": + { + switch (key) { + case "ONCONFLICT_NONE": + return 0; + case "ONCONFLICT_NOTHING": + return 1; + case "ONCONFLICT_UPDATE": + return 2; + default: + throw new Error("Key not recognized in enum OnConflictAction"); + } + } + case "LimitOption": + { + switch (key) { + case "LIMIT_OPTION_DEFAULT": + return 0; + case "LIMIT_OPTION_COUNT": + return 1; + case "LIMIT_OPTION_WITH_TIES": + return 2; + default: + throw new Error("Key not recognized in enum LimitOption"); + } + } + case "LockClauseStrength": + { + switch (key) { + case "LCS_NONE": + return 0; + case "LCS_FORKEYSHARE": + return 1; + case "LCS_FORSHARE": + return 2; + case "LCS_FORNOKEYUPDATE": + return 3; + case "LCS_FORUPDATE": + return 4; + default: + throw new Error("Key not recognized in enum LockClauseStrength"); + } + } + case "LockWaitPolicy": + { + switch (key) { + case "LockWaitBlock": + return 0; + case "LockWaitSkip": + return 1; + case "LockWaitError": + return 2; + default: + throw new Error("Key not recognized in enum LockWaitPolicy"); + } + } + case "LockTupleMode": + { + switch (key) { + case "LockTupleKeyShare": + return 0; + case "LockTupleShare": + return 1; + case "LockTupleNoKeyExclusive": + return 2; + case "LockTupleExclusive": + return 3; + default: + throw new Error("Key not recognized in enum LockTupleMode"); + } + } + case "KeywordKind": + { + switch (key) { + case "NO_KEYWORD": + return 0; + case "UNRESERVED_KEYWORD": + return 1; + case "COL_NAME_KEYWORD": + return 2; + case "TYPE_FUNC_NAME_KEYWORD": + return 3; + case "RESERVED_KEYWORD": + return 4; + default: + throw new Error("Key not recognized in enum KeywordKind"); + } + } + case "Token": + { + switch (key) { + case "NUL": + return 0; + case "ASCII_36": + return 36; + case "ASCII_37": + return 37; + case "ASCII_40": + return 40; + case "ASCII_41": + return 41; + case "ASCII_42": + return 42; + case "ASCII_43": + return 43; + case "ASCII_44": + return 44; + case "ASCII_45": + return 45; + case "ASCII_46": + return 46; + case "ASCII_47": + return 47; + case "ASCII_58": + return 58; + case "ASCII_59": + return 59; + case "ASCII_60": + return 60; + case "ASCII_61": + return 61; + case "ASCII_62": + return 62; + case "ASCII_63": + return 63; + case "ASCII_91": + return 91; + case "ASCII_92": + return 92; + case "ASCII_93": + return 93; + case "ASCII_94": + return 94; + case "IDENT": + return 258; + case "UIDENT": + return 259; + case "FCONST": + return 260; + case "SCONST": + return 261; + case "USCONST": + return 262; + case "BCONST": + return 263; + case "XCONST": + return 264; + case "Op": + return 265; + case "ICONST": + return 266; + case "PARAM": + return 267; + case "TYPECAST": + return 268; + case "DOT_DOT": + return 269; + case "COLON_EQUALS": + return 270; + case "EQUALS_GREATER": + return 271; + case "LESS_EQUALS": + return 272; + case "GREATER_EQUALS": + return 273; + case "NOT_EQUALS": + return 274; + case "SQL_COMMENT": + return 275; + case "C_COMMENT": + return 276; + case "ABORT_P": + return 277; + case "ABSENT": + return 278; + case "ABSOLUTE_P": + return 279; + case "ACCESS": + return 280; + case "ACTION": + return 281; + case "ADD_P": + return 282; + case "ADMIN": + return 283; + case "AFTER": + return 284; + case "AGGREGATE": + return 285; + case "ALL": + return 286; + case "ALSO": + return 287; + case "ALTER": + return 288; + case "ALWAYS": + return 289; + case "ANALYSE": + return 290; + case "ANALYZE": + return 291; + case "AND": + return 292; + case "ANY": + return 293; + case "ARRAY": + return 294; + case "AS": + return 295; + case "ASC": + return 296; + case "ASENSITIVE": + return 297; + case "ASSERTION": + return 298; + case "ASSIGNMENT": + return 299; + case "ASYMMETRIC": + return 300; + case "ATOMIC": + return 301; + case "AT": + return 302; + case "ATTACH": + return 303; + case "ATTRIBUTE": + return 304; + case "AUTHORIZATION": + return 305; + case "BACKWARD": + return 306; + case "BEFORE": + return 307; + case "BEGIN_P": + return 308; + case "BETWEEN": + return 309; + case "BIGINT": + return 310; + case "BINARY": + return 311; + case "BIT": + return 312; + case "BOOLEAN_P": + return 313; + case "BOTH": + return 314; + case "BREADTH": + return 315; + case "BY": + return 316; + case "CACHE": + return 317; + case "CALL": + return 318; + case "CALLED": + return 319; + case "CASCADE": + return 320; + case "CASCADED": + return 321; + case "CASE": + return 322; + case "CAST": + return 323; + case "CATALOG_P": + return 324; + case "CHAIN": + return 325; + case "CHAR_P": + return 326; + case "CHARACTER": + return 327; + case "CHARACTERISTICS": + return 328; + case "CHECK": + return 329; + case "CHECKPOINT": + return 330; + case "CLASS": + return 331; + case "CLOSE": + return 332; + case "CLUSTER": + return 333; + case "COALESCE": + return 334; + case "COLLATE": + return 335; + case "COLLATION": + return 336; + case "COLUMN": + return 337; + case "COLUMNS": + return 338; + case "COMMENT": + return 339; + case "COMMENTS": + return 340; + case "COMMIT": + return 341; + case "COMMITTED": + return 342; + case "COMPRESSION": + return 343; + case "CONCURRENTLY": + return 344; + case "CONFIGURATION": + return 345; + case "CONFLICT": + return 346; + case "CONNECTION": + return 347; + case "CONSTRAINT": + return 348; + case "CONSTRAINTS": + return 349; + case "CONTENT_P": + return 350; + case "CONTINUE_P": + return 351; + case "CONVERSION_P": + return 352; + case "COPY": + return 353; + case "COST": + return 354; + case "CREATE": + return 355; + case "CROSS": + return 356; + case "CSV": + return 357; + case "CUBE": + return 358; + case "CURRENT_P": + return 359; + case "CURRENT_CATALOG": + return 360; + case "CURRENT_DATE": + return 361; + case "CURRENT_ROLE": + return 362; + case "CURRENT_SCHEMA": + return 363; + case "CURRENT_TIME": + return 364; + case "CURRENT_TIMESTAMP": + return 365; + case "CURRENT_USER": + return 366; + case "CURSOR": + return 367; + case "CYCLE": + return 368; + case "DATA_P": + return 369; + case "DATABASE": + return 370; + case "DAY_P": + return 371; + case "DEALLOCATE": + return 372; + case "DEC": + return 373; + case "DECIMAL_P": + return 374; + case "DECLARE": + return 375; + case "DEFAULT": + return 376; + case "DEFAULTS": + return 377; + case "DEFERRABLE": + return 378; + case "DEFERRED": + return 379; + case "DEFINER": + return 380; + case "DELETE_P": + return 381; + case "DELIMITER": + return 382; + case "DELIMITERS": + return 383; + case "DEPENDS": + return 384; + case "DEPTH": + return 385; + case "DESC": + return 386; + case "DETACH": + return 387; + case "DICTIONARY": + return 388; + case "DISABLE_P": + return 389; + case "DISCARD": + return 390; + case "DISTINCT": + return 391; + case "DO": + return 392; + case "DOCUMENT_P": + return 393; + case "DOMAIN_P": + return 394; + case "DOUBLE_P": + return 395; + case "DROP": + return 396; + case "EACH": + return 397; + case "ELSE": + return 398; + case "ENABLE_P": + return 399; + case "ENCODING": + return 400; + case "ENCRYPTED": + return 401; + case "END_P": + return 402; + case "ENUM_P": + return 403; + case "ESCAPE": + return 404; + case "EVENT": + return 405; + case "EXCEPT": + return 406; + case "EXCLUDE": + return 407; + case "EXCLUDING": + return 408; + case "EXCLUSIVE": + return 409; + case "EXECUTE": + return 410; + case "EXISTS": + return 411; + case "EXPLAIN": + return 412; + case "EXPRESSION": + return 413; + case "EXTENSION": + return 414; + case "EXTERNAL": + return 415; + case "EXTRACT": + return 416; + case "FALSE_P": + return 417; + case "FAMILY": + return 418; + case "FETCH": + return 419; + case "FILTER": + return 420; + case "FINALIZE": + return 421; + case "FIRST_P": + return 422; + case "FLOAT_P": + return 423; + case "FOLLOWING": + return 424; + case "FOR": + return 425; + case "FORCE": + return 426; + case "FOREIGN": + return 427; + case "FORMAT": + return 428; + case "FORWARD": + return 429; + case "FREEZE": + return 430; + case "FROM": + return 431; + case "FULL": + return 432; + case "FUNCTION": + return 433; + case "FUNCTIONS": + return 434; + case "GENERATED": + return 435; + case "GLOBAL": + return 436; + case "GRANT": + return 437; + case "GRANTED": + return 438; + case "GREATEST": + return 439; + case "GROUP_P": + return 440; + case "GROUPING": + return 441; + case "GROUPS": + return 442; + case "HANDLER": + return 443; + case "HAVING": + return 444; + case "HEADER_P": + return 445; + case "HOLD": + return 446; + case "HOUR_P": + return 447; + case "IDENTITY_P": + return 448; + case "IF_P": + return 449; + case "ILIKE": + return 450; + case "IMMEDIATE": + return 451; + case "IMMUTABLE": + return 452; + case "IMPLICIT_P": + return 453; + case "IMPORT_P": + return 454; + case "IN_P": + return 455; + case "INCLUDE": + return 456; + case "INCLUDING": + return 457; + case "INCREMENT": + return 458; + case "INDENT": + return 459; + case "INDEX": + return 460; + case "INDEXES": + return 461; + case "INHERIT": + return 462; + case "INHERITS": + return 463; + case "INITIALLY": + return 464; + case "INLINE_P": + return 465; + case "INNER_P": + return 466; + case "INOUT": + return 467; + case "INPUT_P": + return 468; + case "INSENSITIVE": + return 469; + case "INSERT": + return 470; + case "INSTEAD": + return 471; + case "INT_P": + return 472; + case "INTEGER": + return 473; + case "INTERSECT": + return 474; + case "INTERVAL": + return 475; + case "INTO": + return 476; + case "INVOKER": + return 477; + case "IS": + return 478; + case "ISNULL": + return 479; + case "ISOLATION": + return 480; + case "JOIN": + return 481; + case "JSON": + return 482; + case "JSON_ARRAY": + return 483; + case "JSON_ARRAYAGG": + return 484; + case "JSON_OBJECT": + return 485; + case "JSON_OBJECTAGG": + return 486; + case "KEY": + return 487; + case "KEYS": + return 488; + case "LABEL": + return 489; + case "LANGUAGE": + return 490; + case "LARGE_P": + return 491; + case "LAST_P": + return 492; + case "LATERAL_P": + return 493; + case "LEADING": + return 494; + case "LEAKPROOF": + return 495; + case "LEAST": + return 496; + case "LEFT": + return 497; + case "LEVEL": + return 498; + case "LIKE": + return 499; + case "LIMIT": + return 500; + case "LISTEN": + return 501; + case "LOAD": + return 502; + case "LOCAL": + return 503; + case "LOCALTIME": + return 504; + case "LOCALTIMESTAMP": + return 505; + case "LOCATION": + return 506; + case "LOCK_P": + return 507; + case "LOCKED": + return 508; + case "LOGGED": + return 509; + case "MAPPING": + return 510; + case "MATCH": + return 511; + case "MATCHED": + return 512; + case "MATERIALIZED": + return 513; + case "MAXVALUE": + return 514; + case "MERGE": + return 515; + case "METHOD": + return 516; + case "MINUTE_P": + return 517; + case "MINVALUE": + return 518; + case "MODE": + return 519; + case "MONTH_P": + return 520; + case "MOVE": + return 521; + case "NAME_P": + return 522; + case "NAMES": + return 523; + case "NATIONAL": + return 524; + case "NATURAL": + return 525; + case "NCHAR": + return 526; + case "NEW": + return 527; + case "NEXT": + return 528; + case "NFC": + return 529; + case "NFD": + return 530; + case "NFKC": + return 531; + case "NFKD": + return 532; + case "NO": + return 533; + case "NONE": + return 534; + case "NORMALIZE": + return 535; + case "NORMALIZED": + return 536; + case "NOT": + return 537; + case "NOTHING": + return 538; + case "NOTIFY": + return 539; + case "NOTNULL": + return 540; + case "NOWAIT": + return 541; + case "NULL_P": + return 542; + case "NULLIF": + return 543; + case "NULLS_P": + return 544; + case "NUMERIC": + return 545; + case "OBJECT_P": + return 546; + case "OF": + return 547; + case "OFF": + return 548; + case "OFFSET": + return 549; + case "OIDS": + return 550; + case "OLD": + return 551; + case "ON": + return 552; + case "ONLY": + return 553; + case "OPERATOR": + return 554; + case "OPTION": + return 555; + case "OPTIONS": + return 556; + case "OR": + return 557; + case "ORDER": + return 558; + case "ORDINALITY": + return 559; + case "OTHERS": + return 560; + case "OUT_P": + return 561; + case "OUTER_P": + return 562; + case "OVER": + return 563; + case "OVERLAPS": + return 564; + case "OVERLAY": + return 565; + case "OVERRIDING": + return 566; + case "OWNED": + return 567; + case "OWNER": + return 568; + case "PARALLEL": + return 569; + case "PARAMETER": + return 570; + case "PARSER": + return 571; + case "PARTIAL": + return 572; + case "PARTITION": + return 573; + case "PASSING": + return 574; + case "PASSWORD": + return 575; + case "PLACING": + return 576; + case "PLANS": + return 577; + case "POLICY": + return 578; + case "POSITION": + return 579; + case "PRECEDING": + return 580; + case "PRECISION": + return 581; + case "PRESERVE": + return 582; + case "PREPARE": + return 583; + case "PREPARED": + return 584; + case "PRIMARY": + return 585; + case "PRIOR": + return 586; + case "PRIVILEGES": + return 587; + case "PROCEDURAL": + return 588; + case "PROCEDURE": + return 589; + case "PROCEDURES": + return 590; + case "PROGRAM": + return 591; + case "PUBLICATION": + return 592; + case "QUOTE": + return 593; + case "RANGE": + return 594; + case "READ": + return 595; + case "REAL": + return 596; + case "REASSIGN": + return 597; + case "RECHECK": + return 598; + case "RECURSIVE": + return 599; + case "REF_P": + return 600; + case "REFERENCES": + return 601; + case "REFERENCING": + return 602; + case "REFRESH": + return 603; + case "REINDEX": + return 604; + case "RELATIVE_P": + return 605; + case "RELEASE": + return 606; + case "RENAME": + return 607; + case "REPEATABLE": + return 608; + case "REPLACE": + return 609; + case "REPLICA": + return 610; + case "RESET": + return 611; + case "RESTART": + return 612; + case "RESTRICT": + return 613; + case "RETURN": + return 614; + case "RETURNING": + return 615; + case "RETURNS": + return 616; + case "REVOKE": + return 617; + case "RIGHT": + return 618; + case "ROLE": + return 619; + case "ROLLBACK": + return 620; + case "ROLLUP": + return 621; + case "ROUTINE": + return 622; + case "ROUTINES": + return 623; + case "ROW": + return 624; + case "ROWS": + return 625; + case "RULE": + return 626; + case "SAVEPOINT": + return 627; + case "SCALAR": + return 628; + case "SCHEMA": + return 629; + case "SCHEMAS": + return 630; + case "SCROLL": + return 631; + case "SEARCH": + return 632; + case "SECOND_P": + return 633; + case "SECURITY": + return 634; + case "SELECT": + return 635; + case "SEQUENCE": + return 636; + case "SEQUENCES": + return 637; + case "SERIALIZABLE": + return 638; + case "SERVER": + return 639; + case "SESSION": + return 640; + case "SESSION_USER": + return 641; + case "SET": + return 642; + case "SETS": + return 643; + case "SETOF": + return 644; + case "SHARE": + return 645; + case "SHOW": + return 646; + case "SIMILAR": + return 647; + case "SIMPLE": + return 648; + case "SKIP": + return 649; + case "SMALLINT": + return 650; + case "SNAPSHOT": + return 651; + case "SOME": + return 652; + case "SQL_P": + return 653; + case "STABLE": + return 654; + case "STANDALONE_P": + return 655; + case "START": + return 656; + case "STATEMENT": + return 657; + case "STATISTICS": + return 658; + case "STDIN": + return 659; + case "STDOUT": + return 660; + case "STORAGE": + return 661; + case "STORED": + return 662; + case "STRICT_P": + return 663; + case "STRIP_P": + return 664; + case "SUBSCRIPTION": + return 665; + case "SUBSTRING": + return 666; + case "SUPPORT": + return 667; + case "SYMMETRIC": + return 668; + case "SYSID": + return 669; + case "SYSTEM_P": + return 670; + case "SYSTEM_USER": + return 671; + case "TABLE": + return 672; + case "TABLES": + return 673; + case "TABLESAMPLE": + return 674; + case "TABLESPACE": + return 675; + case "TEMP": + return 676; + case "TEMPLATE": + return 677; + case "TEMPORARY": + return 678; + case "TEXT_P": + return 679; + case "THEN": + return 680; + case "TIES": + return 681; + case "TIME": + return 682; + case "TIMESTAMP": + return 683; + case "TO": + return 684; + case "TRAILING": + return 685; + case "TRANSACTION": + return 686; + case "TRANSFORM": + return 687; + case "TREAT": + return 688; + case "TRIGGER": + return 689; + case "TRIM": + return 690; + case "TRUE_P": + return 691; + case "TRUNCATE": + return 692; + case "TRUSTED": + return 693; + case "TYPE_P": + return 694; + case "TYPES_P": + return 695; + case "UESCAPE": + return 696; + case "UNBOUNDED": + return 697; + case "UNCOMMITTED": + return 698; + case "UNENCRYPTED": + return 699; + case "UNION": + return 700; + case "UNIQUE": + return 701; + case "UNKNOWN": + return 702; + case "UNLISTEN": + return 703; + case "UNLOGGED": + return 704; + case "UNTIL": + return 705; + case "UPDATE": + return 706; + case "USER": + return 707; + case "USING": + return 708; + case "VACUUM": + return 709; + case "VALID": + return 710; + case "VALIDATE": + return 711; + case "VALIDATOR": + return 712; + case "VALUE_P": + return 713; + case "VALUES": + return 714; + case "VARCHAR": + return 715; + case "VARIADIC": + return 716; + case "VARYING": + return 717; + case "VERBOSE": + return 718; + case "VERSION_P": + return 719; + case "VIEW": + return 720; + case "VIEWS": + return 721; + case "VOLATILE": + return 722; + case "WHEN": + return 723; + case "WHERE": + return 724; + case "WHITESPACE_P": + return 725; + case "WINDOW": + return 726; + case "WITH": + return 727; + case "WITHIN": + return 728; + case "WITHOUT": + return 729; + case "WORK": + return 730; + case "WRAPPER": + return 731; + case "WRITE": + return 732; + case "XML_P": + return 733; + case "XMLATTRIBUTES": + return 734; + case "XMLCONCAT": + return 735; + case "XMLELEMENT": + return 736; + case "XMLEXISTS": + return 737; + case "XMLFOREST": + return 738; + case "XMLNAMESPACES": + return 739; + case "XMLPARSE": + return 740; + case "XMLPI": + return 741; + case "XMLROOT": + return 742; + case "XMLSERIALIZE": + return 743; + case "XMLTABLE": + return 744; + case "YEAR_P": + return 745; + case "YES_P": + return 746; + case "ZONE": + return 747; + case "FORMAT_LA": + return 748; + case "NOT_LA": + return 749; + case "NULLS_LA": + return 750; + case "WITH_LA": + return 751; + case "WITHOUT_LA": + return 752; + case "MODE_TYPE_NAME": + return 753; + case "MODE_PLPGSQL_EXPR": + return 754; + case "MODE_PLPGSQL_ASSIGN1": + return 755; + case "MODE_PLPGSQL_ASSIGN2": + return 756; + case "MODE_PLPGSQL_ASSIGN3": + return 757; + case "UMINUS": + return 758; + default: + throw new Error("Key not recognized in enum Token"); + } + } + default: + throw new Error("Enum type not recognized"); + } +}; \ No newline at end of file diff --git a/__fixtures__/output/utils/enums/unidirectional/enum-to-string-utils.ts b/__fixtures__/output/utils/enums/unidirectional/enum-to-string-utils.ts new file mode 100644 index 00000000..e433dd61 --- /dev/null +++ b/__fixtures__/output/utils/enums/unidirectional/enum-to-string-utils.ts @@ -0,0 +1,2346 @@ +/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type EnumType = "OverridingKind" | "QuerySource" | "SortByDir" | "SortByNulls" | "SetQuantifier" | "A_Expr_Kind" | "RoleSpecType" | "TableLikeOption" | "DefElemAction" | "PartitionStrategy" | "PartitionRangeDatumKind" | "RTEKind" | "WCOKind" | "GroupingSetKind" | "CTEMaterialize" | "SetOperation" | "ObjectType" | "DropBehavior" | "AlterTableType" | "GrantTargetType" | "VariableSetKind" | "ConstrType" | "ImportForeignSchemaType" | "RoleStmtType" | "FetchDirection" | "FunctionParameterMode" | "TransactionStmtKind" | "ViewCheckOption" | "DiscardMode" | "ReindexObjectType" | "AlterTSConfigType" | "PublicationObjSpecType" | "AlterPublicationAction" | "AlterSubscriptionType" | "OnCommitAction" | "ParamKind" | "CoercionContext" | "CoercionForm" | "BoolExprType" | "SubLinkType" | "RowCompareType" | "MinMaxOp" | "SQLValueFunctionOp" | "XmlExprOp" | "XmlOptionType" | "JsonEncoding" | "JsonFormatType" | "JsonConstructorType" | "JsonValueType" | "NullTestType" | "BoolTestType" | "CmdType" | "JoinType" | "AggStrategy" | "AggSplit" | "SetOpCmd" | "SetOpStrategy" | "OnConflictAction" | "LimitOption" | "LockClauseStrength" | "LockWaitPolicy" | "LockTupleMode" | "KeywordKind" | "Token"; +export const getEnumString = (enumType: EnumType, key: number): string => { + switch (enumType) { + case "OverridingKind": + { + switch (key) { + case 0: + return "OVERRIDING_NOT_SET"; + case 1: + return "OVERRIDING_USER_VALUE"; + case 2: + return "OVERRIDING_SYSTEM_VALUE"; + default: + throw new Error("Value not recognized in enum OverridingKind"); + } + } + case "QuerySource": + { + switch (key) { + case 0: + return "QSRC_ORIGINAL"; + case 1: + return "QSRC_PARSER"; + case 2: + return "QSRC_INSTEAD_RULE"; + case 3: + return "QSRC_QUAL_INSTEAD_RULE"; + case 4: + return "QSRC_NON_INSTEAD_RULE"; + default: + throw new Error("Value not recognized in enum QuerySource"); + } + } + case "SortByDir": + { + switch (key) { + case 0: + return "SORTBY_DEFAULT"; + case 1: + return "SORTBY_ASC"; + case 2: + return "SORTBY_DESC"; + case 3: + return "SORTBY_USING"; + default: + throw new Error("Value not recognized in enum SortByDir"); + } + } + case "SortByNulls": + { + switch (key) { + case 0: + return "SORTBY_NULLS_DEFAULT"; + case 1: + return "SORTBY_NULLS_FIRST"; + case 2: + return "SORTBY_NULLS_LAST"; + default: + throw new Error("Value not recognized in enum SortByNulls"); + } + } + case "SetQuantifier": + { + switch (key) { + case 0: + return "SET_QUANTIFIER_DEFAULT"; + case 1: + return "SET_QUANTIFIER_ALL"; + case 2: + return "SET_QUANTIFIER_DISTINCT"; + default: + throw new Error("Value not recognized in enum SetQuantifier"); + } + } + case "A_Expr_Kind": + { + switch (key) { + case 0: + return "AEXPR_OP"; + case 1: + return "AEXPR_OP_ANY"; + case 2: + return "AEXPR_OP_ALL"; + case 3: + return "AEXPR_DISTINCT"; + case 4: + return "AEXPR_NOT_DISTINCT"; + case 5: + return "AEXPR_NULLIF"; + case 6: + return "AEXPR_IN"; + case 7: + return "AEXPR_LIKE"; + case 8: + return "AEXPR_ILIKE"; + case 9: + return "AEXPR_SIMILAR"; + case 10: + return "AEXPR_BETWEEN"; + case 11: + return "AEXPR_NOT_BETWEEN"; + case 12: + return "AEXPR_BETWEEN_SYM"; + case 13: + return "AEXPR_NOT_BETWEEN_SYM"; + default: + throw new Error("Value not recognized in enum A_Expr_Kind"); + } + } + case "RoleSpecType": + { + switch (key) { + case 0: + return "ROLESPEC_CSTRING"; + case 1: + return "ROLESPEC_CURRENT_ROLE"; + case 2: + return "ROLESPEC_CURRENT_USER"; + case 3: + return "ROLESPEC_SESSION_USER"; + case 4: + return "ROLESPEC_PUBLIC"; + default: + throw new Error("Value not recognized in enum RoleSpecType"); + } + } + case "TableLikeOption": + { + switch (key) { + case 0: + return "CREATE_TABLE_LIKE_COMMENTS"; + case 1: + return "CREATE_TABLE_LIKE_COMPRESSION"; + case 2: + return "CREATE_TABLE_LIKE_CONSTRAINTS"; + case 3: + return "CREATE_TABLE_LIKE_DEFAULTS"; + case 4: + return "CREATE_TABLE_LIKE_GENERATED"; + case 5: + return "CREATE_TABLE_LIKE_IDENTITY"; + case 6: + return "CREATE_TABLE_LIKE_INDEXES"; + case 7: + return "CREATE_TABLE_LIKE_STATISTICS"; + case 8: + return "CREATE_TABLE_LIKE_STORAGE"; + case 9: + return "CREATE_TABLE_LIKE_ALL"; + default: + throw new Error("Value not recognized in enum TableLikeOption"); + } + } + case "DefElemAction": + { + switch (key) { + case 0: + return "DEFELEM_UNSPEC"; + case 1: + return "DEFELEM_SET"; + case 2: + return "DEFELEM_ADD"; + case 3: + return "DEFELEM_DROP"; + default: + throw new Error("Value not recognized in enum DefElemAction"); + } + } + case "PartitionStrategy": + { + switch (key) { + case 0: + return "PARTITION_STRATEGY_LIST"; + case 1: + return "PARTITION_STRATEGY_RANGE"; + case 2: + return "PARTITION_STRATEGY_HASH"; + default: + throw new Error("Value not recognized in enum PartitionStrategy"); + } + } + case "PartitionRangeDatumKind": + { + switch (key) { + case 0: + return "PARTITION_RANGE_DATUM_MINVALUE"; + case 1: + return "PARTITION_RANGE_DATUM_VALUE"; + case 2: + return "PARTITION_RANGE_DATUM_MAXVALUE"; + default: + throw new Error("Value not recognized in enum PartitionRangeDatumKind"); + } + } + case "RTEKind": + { + switch (key) { + case 0: + return "RTE_RELATION"; + case 1: + return "RTE_SUBQUERY"; + case 2: + return "RTE_JOIN"; + case 3: + return "RTE_FUNCTION"; + case 4: + return "RTE_TABLEFUNC"; + case 5: + return "RTE_VALUES"; + case 6: + return "RTE_CTE"; + case 7: + return "RTE_NAMEDTUPLESTORE"; + case 8: + return "RTE_RESULT"; + default: + throw new Error("Value not recognized in enum RTEKind"); + } + } + case "WCOKind": + { + switch (key) { + case 0: + return "WCO_VIEW_CHECK"; + case 1: + return "WCO_RLS_INSERT_CHECK"; + case 2: + return "WCO_RLS_UPDATE_CHECK"; + case 3: + return "WCO_RLS_CONFLICT_CHECK"; + case 4: + return "WCO_RLS_MERGE_UPDATE_CHECK"; + case 5: + return "WCO_RLS_MERGE_DELETE_CHECK"; + default: + throw new Error("Value not recognized in enum WCOKind"); + } + } + case "GroupingSetKind": + { + switch (key) { + case 0: + return "GROUPING_SET_EMPTY"; + case 1: + return "GROUPING_SET_SIMPLE"; + case 2: + return "GROUPING_SET_ROLLUP"; + case 3: + return "GROUPING_SET_CUBE"; + case 4: + return "GROUPING_SET_SETS"; + default: + throw new Error("Value not recognized in enum GroupingSetKind"); + } + } + case "CTEMaterialize": + { + switch (key) { + case 0: + return "CTEMaterializeDefault"; + case 1: + return "CTEMaterializeAlways"; + case 2: + return "CTEMaterializeNever"; + default: + throw new Error("Value not recognized in enum CTEMaterialize"); + } + } + case "SetOperation": + { + switch (key) { + case 0: + return "SETOP_NONE"; + case 1: + return "SETOP_UNION"; + case 2: + return "SETOP_INTERSECT"; + case 3: + return "SETOP_EXCEPT"; + default: + throw new Error("Value not recognized in enum SetOperation"); + } + } + case "ObjectType": + { + switch (key) { + case 0: + return "OBJECT_ACCESS_METHOD"; + case 1: + return "OBJECT_AGGREGATE"; + case 2: + return "OBJECT_AMOP"; + case 3: + return "OBJECT_AMPROC"; + case 4: + return "OBJECT_ATTRIBUTE"; + case 5: + return "OBJECT_CAST"; + case 6: + return "OBJECT_COLUMN"; + case 7: + return "OBJECT_COLLATION"; + case 8: + return "OBJECT_CONVERSION"; + case 9: + return "OBJECT_DATABASE"; + case 10: + return "OBJECT_DEFAULT"; + case 11: + return "OBJECT_DEFACL"; + case 12: + return "OBJECT_DOMAIN"; + case 13: + return "OBJECT_DOMCONSTRAINT"; + case 14: + return "OBJECT_EVENT_TRIGGER"; + case 15: + return "OBJECT_EXTENSION"; + case 16: + return "OBJECT_FDW"; + case 17: + return "OBJECT_FOREIGN_SERVER"; + case 18: + return "OBJECT_FOREIGN_TABLE"; + case 19: + return "OBJECT_FUNCTION"; + case 20: + return "OBJECT_INDEX"; + case 21: + return "OBJECT_LANGUAGE"; + case 22: + return "OBJECT_LARGEOBJECT"; + case 23: + return "OBJECT_MATVIEW"; + case 24: + return "OBJECT_OPCLASS"; + case 25: + return "OBJECT_OPERATOR"; + case 26: + return "OBJECT_OPFAMILY"; + case 27: + return "OBJECT_PARAMETER_ACL"; + case 28: + return "OBJECT_POLICY"; + case 29: + return "OBJECT_PROCEDURE"; + case 30: + return "OBJECT_PUBLICATION"; + case 31: + return "OBJECT_PUBLICATION_NAMESPACE"; + case 32: + return "OBJECT_PUBLICATION_REL"; + case 33: + return "OBJECT_ROLE"; + case 34: + return "OBJECT_ROUTINE"; + case 35: + return "OBJECT_RULE"; + case 36: + return "OBJECT_SCHEMA"; + case 37: + return "OBJECT_SEQUENCE"; + case 38: + return "OBJECT_SUBSCRIPTION"; + case 39: + return "OBJECT_STATISTIC_EXT"; + case 40: + return "OBJECT_TABCONSTRAINT"; + case 41: + return "OBJECT_TABLE"; + case 42: + return "OBJECT_TABLESPACE"; + case 43: + return "OBJECT_TRANSFORM"; + case 44: + return "OBJECT_TRIGGER"; + case 45: + return "OBJECT_TSCONFIGURATION"; + case 46: + return "OBJECT_TSDICTIONARY"; + case 47: + return "OBJECT_TSPARSER"; + case 48: + return "OBJECT_TSTEMPLATE"; + case 49: + return "OBJECT_TYPE"; + case 50: + return "OBJECT_USER_MAPPING"; + case 51: + return "OBJECT_VIEW"; + default: + throw new Error("Value not recognized in enum ObjectType"); + } + } + case "DropBehavior": + { + switch (key) { + case 0: + return "DROP_RESTRICT"; + case 1: + return "DROP_CASCADE"; + default: + throw new Error("Value not recognized in enum DropBehavior"); + } + } + case "AlterTableType": + { + switch (key) { + case 0: + return "AT_AddColumn"; + case 1: + return "AT_AddColumnToView"; + case 2: + return "AT_ColumnDefault"; + case 3: + return "AT_CookedColumnDefault"; + case 4: + return "AT_DropNotNull"; + case 5: + return "AT_SetNotNull"; + case 6: + return "AT_DropExpression"; + case 7: + return "AT_CheckNotNull"; + case 8: + return "AT_SetStatistics"; + case 9: + return "AT_SetOptions"; + case 10: + return "AT_ResetOptions"; + case 11: + return "AT_SetStorage"; + case 12: + return "AT_SetCompression"; + case 13: + return "AT_DropColumn"; + case 14: + return "AT_AddIndex"; + case 15: + return "AT_ReAddIndex"; + case 16: + return "AT_AddConstraint"; + case 17: + return "AT_ReAddConstraint"; + case 18: + return "AT_ReAddDomainConstraint"; + case 19: + return "AT_AlterConstraint"; + case 20: + return "AT_ValidateConstraint"; + case 21: + return "AT_AddIndexConstraint"; + case 22: + return "AT_DropConstraint"; + case 23: + return "AT_ReAddComment"; + case 24: + return "AT_AlterColumnType"; + case 25: + return "AT_AlterColumnGenericOptions"; + case 26: + return "AT_ChangeOwner"; + case 27: + return "AT_ClusterOn"; + case 28: + return "AT_DropCluster"; + case 29: + return "AT_SetLogged"; + case 30: + return "AT_SetUnLogged"; + case 31: + return "AT_DropOids"; + case 32: + return "AT_SetAccessMethod"; + case 33: + return "AT_SetTableSpace"; + case 34: + return "AT_SetRelOptions"; + case 35: + return "AT_ResetRelOptions"; + case 36: + return "AT_ReplaceRelOptions"; + case 37: + return "AT_EnableTrig"; + case 38: + return "AT_EnableAlwaysTrig"; + case 39: + return "AT_EnableReplicaTrig"; + case 40: + return "AT_DisableTrig"; + case 41: + return "AT_EnableTrigAll"; + case 42: + return "AT_DisableTrigAll"; + case 43: + return "AT_EnableTrigUser"; + case 44: + return "AT_DisableTrigUser"; + case 45: + return "AT_EnableRule"; + case 46: + return "AT_EnableAlwaysRule"; + case 47: + return "AT_EnableReplicaRule"; + case 48: + return "AT_DisableRule"; + case 49: + return "AT_AddInherit"; + case 50: + return "AT_DropInherit"; + case 51: + return "AT_AddOf"; + case 52: + return "AT_DropOf"; + case 53: + return "AT_ReplicaIdentity"; + case 54: + return "AT_EnableRowSecurity"; + case 55: + return "AT_DisableRowSecurity"; + case 56: + return "AT_ForceRowSecurity"; + case 57: + return "AT_NoForceRowSecurity"; + case 58: + return "AT_GenericOptions"; + case 59: + return "AT_AttachPartition"; + case 60: + return "AT_DetachPartition"; + case 61: + return "AT_DetachPartitionFinalize"; + case 62: + return "AT_AddIdentity"; + case 63: + return "AT_SetIdentity"; + case 64: + return "AT_DropIdentity"; + case 65: + return "AT_ReAddStatistics"; + default: + throw new Error("Value not recognized in enum AlterTableType"); + } + } + case "GrantTargetType": + { + switch (key) { + case 0: + return "ACL_TARGET_OBJECT"; + case 1: + return "ACL_TARGET_ALL_IN_SCHEMA"; + case 2: + return "ACL_TARGET_DEFAULTS"; + default: + throw new Error("Value not recognized in enum GrantTargetType"); + } + } + case "VariableSetKind": + { + switch (key) { + case 0: + return "VAR_SET_VALUE"; + case 1: + return "VAR_SET_DEFAULT"; + case 2: + return "VAR_SET_CURRENT"; + case 3: + return "VAR_SET_MULTI"; + case 4: + return "VAR_RESET"; + case 5: + return "VAR_RESET_ALL"; + default: + throw new Error("Value not recognized in enum VariableSetKind"); + } + } + case "ConstrType": + { + switch (key) { + case 0: + return "CONSTR_NULL"; + case 1: + return "CONSTR_NOTNULL"; + case 2: + return "CONSTR_DEFAULT"; + case 3: + return "CONSTR_IDENTITY"; + case 4: + return "CONSTR_GENERATED"; + case 5: + return "CONSTR_CHECK"; + case 6: + return "CONSTR_PRIMARY"; + case 7: + return "CONSTR_UNIQUE"; + case 8: + return "CONSTR_EXCLUSION"; + case 9: + return "CONSTR_FOREIGN"; + case 10: + return "CONSTR_ATTR_DEFERRABLE"; + case 11: + return "CONSTR_ATTR_NOT_DEFERRABLE"; + case 12: + return "CONSTR_ATTR_DEFERRED"; + case 13: + return "CONSTR_ATTR_IMMEDIATE"; + default: + throw new Error("Value not recognized in enum ConstrType"); + } + } + case "ImportForeignSchemaType": + { + switch (key) { + case 0: + return "FDW_IMPORT_SCHEMA_ALL"; + case 1: + return "FDW_IMPORT_SCHEMA_LIMIT_TO"; + case 2: + return "FDW_IMPORT_SCHEMA_EXCEPT"; + default: + throw new Error("Value not recognized in enum ImportForeignSchemaType"); + } + } + case "RoleStmtType": + { + switch (key) { + case 0: + return "ROLESTMT_ROLE"; + case 1: + return "ROLESTMT_USER"; + case 2: + return "ROLESTMT_GROUP"; + default: + throw new Error("Value not recognized in enum RoleStmtType"); + } + } + case "FetchDirection": + { + switch (key) { + case 0: + return "FETCH_FORWARD"; + case 1: + return "FETCH_BACKWARD"; + case 2: + return "FETCH_ABSOLUTE"; + case 3: + return "FETCH_RELATIVE"; + default: + throw new Error("Value not recognized in enum FetchDirection"); + } + } + case "FunctionParameterMode": + { + switch (key) { + case 0: + return "FUNC_PARAM_IN"; + case 1: + return "FUNC_PARAM_OUT"; + case 2: + return "FUNC_PARAM_INOUT"; + case 3: + return "FUNC_PARAM_VARIADIC"; + case 4: + return "FUNC_PARAM_TABLE"; + case 5: + return "FUNC_PARAM_DEFAULT"; + default: + throw new Error("Value not recognized in enum FunctionParameterMode"); + } + } + case "TransactionStmtKind": + { + switch (key) { + case 0: + return "TRANS_STMT_BEGIN"; + case 1: + return "TRANS_STMT_START"; + case 2: + return "TRANS_STMT_COMMIT"; + case 3: + return "TRANS_STMT_ROLLBACK"; + case 4: + return "TRANS_STMT_SAVEPOINT"; + case 5: + return "TRANS_STMT_RELEASE"; + case 6: + return "TRANS_STMT_ROLLBACK_TO"; + case 7: + return "TRANS_STMT_PREPARE"; + case 8: + return "TRANS_STMT_COMMIT_PREPARED"; + case 9: + return "TRANS_STMT_ROLLBACK_PREPARED"; + default: + throw new Error("Value not recognized in enum TransactionStmtKind"); + } + } + case "ViewCheckOption": + { + switch (key) { + case 0: + return "NO_CHECK_OPTION"; + case 1: + return "LOCAL_CHECK_OPTION"; + case 2: + return "CASCADED_CHECK_OPTION"; + default: + throw new Error("Value not recognized in enum ViewCheckOption"); + } + } + case "DiscardMode": + { + switch (key) { + case 0: + return "DISCARD_ALL"; + case 1: + return "DISCARD_PLANS"; + case 2: + return "DISCARD_SEQUENCES"; + case 3: + return "DISCARD_TEMP"; + default: + throw new Error("Value not recognized in enum DiscardMode"); + } + } + case "ReindexObjectType": + { + switch (key) { + case 0: + return "REINDEX_OBJECT_INDEX"; + case 1: + return "REINDEX_OBJECT_TABLE"; + case 2: + return "REINDEX_OBJECT_SCHEMA"; + case 3: + return "REINDEX_OBJECT_SYSTEM"; + case 4: + return "REINDEX_OBJECT_DATABASE"; + default: + throw new Error("Value not recognized in enum ReindexObjectType"); + } + } + case "AlterTSConfigType": + { + switch (key) { + case 0: + return "ALTER_TSCONFIG_ADD_MAPPING"; + case 1: + return "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN"; + case 2: + return "ALTER_TSCONFIG_REPLACE_DICT"; + case 3: + return "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN"; + case 4: + return "ALTER_TSCONFIG_DROP_MAPPING"; + default: + throw new Error("Value not recognized in enum AlterTSConfigType"); + } + } + case "PublicationObjSpecType": + { + switch (key) { + case 0: + return "PUBLICATIONOBJ_TABLE"; + case 1: + return "PUBLICATIONOBJ_TABLES_IN_SCHEMA"; + case 2: + return "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA"; + case 3: + return "PUBLICATIONOBJ_CONTINUATION"; + default: + throw new Error("Value not recognized in enum PublicationObjSpecType"); + } + } + case "AlterPublicationAction": + { + switch (key) { + case 0: + return "AP_AddObjects"; + case 1: + return "AP_DropObjects"; + case 2: + return "AP_SetObjects"; + default: + throw new Error("Value not recognized in enum AlterPublicationAction"); + } + } + case "AlterSubscriptionType": + { + switch (key) { + case 0: + return "ALTER_SUBSCRIPTION_OPTIONS"; + case 1: + return "ALTER_SUBSCRIPTION_CONNECTION"; + case 2: + return "ALTER_SUBSCRIPTION_SET_PUBLICATION"; + case 3: + return "ALTER_SUBSCRIPTION_ADD_PUBLICATION"; + case 4: + return "ALTER_SUBSCRIPTION_DROP_PUBLICATION"; + case 5: + return "ALTER_SUBSCRIPTION_REFRESH"; + case 6: + return "ALTER_SUBSCRIPTION_ENABLED"; + case 7: + return "ALTER_SUBSCRIPTION_SKIP"; + default: + throw new Error("Value not recognized in enum AlterSubscriptionType"); + } + } + case "OnCommitAction": + { + switch (key) { + case 0: + return "ONCOMMIT_NOOP"; + case 1: + return "ONCOMMIT_PRESERVE_ROWS"; + case 2: + return "ONCOMMIT_DELETE_ROWS"; + case 3: + return "ONCOMMIT_DROP"; + default: + throw new Error("Value not recognized in enum OnCommitAction"); + } + } + case "ParamKind": + { + switch (key) { + case 0: + return "PARAM_EXTERN"; + case 1: + return "PARAM_EXEC"; + case 2: + return "PARAM_SUBLINK"; + case 3: + return "PARAM_MULTIEXPR"; + default: + throw new Error("Value not recognized in enum ParamKind"); + } + } + case "CoercionContext": + { + switch (key) { + case 0: + return "COERCION_IMPLICIT"; + case 1: + return "COERCION_ASSIGNMENT"; + case 2: + return "COERCION_PLPGSQL"; + case 3: + return "COERCION_EXPLICIT"; + default: + throw new Error("Value not recognized in enum CoercionContext"); + } + } + case "CoercionForm": + { + switch (key) { + case 0: + return "COERCE_EXPLICIT_CALL"; + case 1: + return "COERCE_EXPLICIT_CAST"; + case 2: + return "COERCE_IMPLICIT_CAST"; + case 3: + return "COERCE_SQL_SYNTAX"; + default: + throw new Error("Value not recognized in enum CoercionForm"); + } + } + case "BoolExprType": + { + switch (key) { + case 0: + return "AND_EXPR"; + case 1: + return "OR_EXPR"; + case 2: + return "NOT_EXPR"; + default: + throw new Error("Value not recognized in enum BoolExprType"); + } + } + case "SubLinkType": + { + switch (key) { + case 0: + return "EXISTS_SUBLINK"; + case 1: + return "ALL_SUBLINK"; + case 2: + return "ANY_SUBLINK"; + case 3: + return "ROWCOMPARE_SUBLINK"; + case 4: + return "EXPR_SUBLINK"; + case 5: + return "MULTIEXPR_SUBLINK"; + case 6: + return "ARRAY_SUBLINK"; + case 7: + return "CTE_SUBLINK"; + default: + throw new Error("Value not recognized in enum SubLinkType"); + } + } + case "RowCompareType": + { + switch (key) { + case 0: + return "ROWCOMPARE_LT"; + case 1: + return "ROWCOMPARE_LE"; + case 2: + return "ROWCOMPARE_EQ"; + case 3: + return "ROWCOMPARE_GE"; + case 4: + return "ROWCOMPARE_GT"; + case 5: + return "ROWCOMPARE_NE"; + default: + throw new Error("Value not recognized in enum RowCompareType"); + } + } + case "MinMaxOp": + { + switch (key) { + case 0: + return "IS_GREATEST"; + case 1: + return "IS_LEAST"; + default: + throw new Error("Value not recognized in enum MinMaxOp"); + } + } + case "SQLValueFunctionOp": + { + switch (key) { + case 0: + return "SVFOP_CURRENT_DATE"; + case 1: + return "SVFOP_CURRENT_TIME"; + case 2: + return "SVFOP_CURRENT_TIME_N"; + case 3: + return "SVFOP_CURRENT_TIMESTAMP"; + case 4: + return "SVFOP_CURRENT_TIMESTAMP_N"; + case 5: + return "SVFOP_LOCALTIME"; + case 6: + return "SVFOP_LOCALTIME_N"; + case 7: + return "SVFOP_LOCALTIMESTAMP"; + case 8: + return "SVFOP_LOCALTIMESTAMP_N"; + case 9: + return "SVFOP_CURRENT_ROLE"; + case 10: + return "SVFOP_CURRENT_USER"; + case 11: + return "SVFOP_USER"; + case 12: + return "SVFOP_SESSION_USER"; + case 13: + return "SVFOP_CURRENT_CATALOG"; + case 14: + return "SVFOP_CURRENT_SCHEMA"; + default: + throw new Error("Value not recognized in enum SQLValueFunctionOp"); + } + } + case "XmlExprOp": + { + switch (key) { + case 0: + return "IS_XMLCONCAT"; + case 1: + return "IS_XMLELEMENT"; + case 2: + return "IS_XMLFOREST"; + case 3: + return "IS_XMLPARSE"; + case 4: + return "IS_XMLPI"; + case 5: + return "IS_XMLROOT"; + case 6: + return "IS_XMLSERIALIZE"; + case 7: + return "IS_DOCUMENT"; + default: + throw new Error("Value not recognized in enum XmlExprOp"); + } + } + case "XmlOptionType": + { + switch (key) { + case 0: + return "XMLOPTION_DOCUMENT"; + case 1: + return "XMLOPTION_CONTENT"; + default: + throw new Error("Value not recognized in enum XmlOptionType"); + } + } + case "JsonEncoding": + { + switch (key) { + case 0: + return "JS_ENC_DEFAULT"; + case 1: + return "JS_ENC_UTF8"; + case 2: + return "JS_ENC_UTF16"; + case 3: + return "JS_ENC_UTF32"; + default: + throw new Error("Value not recognized in enum JsonEncoding"); + } + } + case "JsonFormatType": + { + switch (key) { + case 0: + return "JS_FORMAT_DEFAULT"; + case 1: + return "JS_FORMAT_JSON"; + case 2: + return "JS_FORMAT_JSONB"; + default: + throw new Error("Value not recognized in enum JsonFormatType"); + } + } + case "JsonConstructorType": + { + switch (key) { + case 0: + return "JSCTOR_JSON_OBJECT"; + case 1: + return "JSCTOR_JSON_ARRAY"; + case 2: + return "JSCTOR_JSON_OBJECTAGG"; + case 3: + return "JSCTOR_JSON_ARRAYAGG"; + default: + throw new Error("Value not recognized in enum JsonConstructorType"); + } + } + case "JsonValueType": + { + switch (key) { + case 0: + return "JS_TYPE_ANY"; + case 1: + return "JS_TYPE_OBJECT"; + case 2: + return "JS_TYPE_ARRAY"; + case 3: + return "JS_TYPE_SCALAR"; + default: + throw new Error("Value not recognized in enum JsonValueType"); + } + } + case "NullTestType": + { + switch (key) { + case 0: + return "IS_NULL"; + case 1: + return "IS_NOT_NULL"; + default: + throw new Error("Value not recognized in enum NullTestType"); + } + } + case "BoolTestType": + { + switch (key) { + case 0: + return "IS_TRUE"; + case 1: + return "IS_NOT_TRUE"; + case 2: + return "IS_FALSE"; + case 3: + return "IS_NOT_FALSE"; + case 4: + return "IS_UNKNOWN"; + case 5: + return "IS_NOT_UNKNOWN"; + default: + throw new Error("Value not recognized in enum BoolTestType"); + } + } + case "CmdType": + { + switch (key) { + case 0: + return "CMD_UNKNOWN"; + case 1: + return "CMD_SELECT"; + case 2: + return "CMD_UPDATE"; + case 3: + return "CMD_INSERT"; + case 4: + return "CMD_DELETE"; + case 5: + return "CMD_MERGE"; + case 6: + return "CMD_UTILITY"; + case 7: + return "CMD_NOTHING"; + default: + throw new Error("Value not recognized in enum CmdType"); + } + } + case "JoinType": + { + switch (key) { + case 0: + return "JOIN_INNER"; + case 1: + return "JOIN_LEFT"; + case 2: + return "JOIN_FULL"; + case 3: + return "JOIN_RIGHT"; + case 4: + return "JOIN_SEMI"; + case 5: + return "JOIN_ANTI"; + case 6: + return "JOIN_RIGHT_ANTI"; + case 7: + return "JOIN_UNIQUE_OUTER"; + case 8: + return "JOIN_UNIQUE_INNER"; + default: + throw new Error("Value not recognized in enum JoinType"); + } + } + case "AggStrategy": + { + switch (key) { + case 0: + return "AGG_PLAIN"; + case 1: + return "AGG_SORTED"; + case 2: + return "AGG_HASHED"; + case 3: + return "AGG_MIXED"; + default: + throw new Error("Value not recognized in enum AggStrategy"); + } + } + case "AggSplit": + { + switch (key) { + case 0: + return "AGGSPLIT_SIMPLE"; + case 1: + return "AGGSPLIT_INITIAL_SERIAL"; + case 2: + return "AGGSPLIT_FINAL_DESERIAL"; + default: + throw new Error("Value not recognized in enum AggSplit"); + } + } + case "SetOpCmd": + { + switch (key) { + case 0: + return "SETOPCMD_INTERSECT"; + case 1: + return "SETOPCMD_INTERSECT_ALL"; + case 2: + return "SETOPCMD_EXCEPT"; + case 3: + return "SETOPCMD_EXCEPT_ALL"; + default: + throw new Error("Value not recognized in enum SetOpCmd"); + } + } + case "SetOpStrategy": + { + switch (key) { + case 0: + return "SETOP_SORTED"; + case 1: + return "SETOP_HASHED"; + default: + throw new Error("Value not recognized in enum SetOpStrategy"); + } + } + case "OnConflictAction": + { + switch (key) { + case 0: + return "ONCONFLICT_NONE"; + case 1: + return "ONCONFLICT_NOTHING"; + case 2: + return "ONCONFLICT_UPDATE"; + default: + throw new Error("Value not recognized in enum OnConflictAction"); + } + } + case "LimitOption": + { + switch (key) { + case 0: + return "LIMIT_OPTION_DEFAULT"; + case 1: + return "LIMIT_OPTION_COUNT"; + case 2: + return "LIMIT_OPTION_WITH_TIES"; + default: + throw new Error("Value not recognized in enum LimitOption"); + } + } + case "LockClauseStrength": + { + switch (key) { + case 0: + return "LCS_NONE"; + case 1: + return "LCS_FORKEYSHARE"; + case 2: + return "LCS_FORSHARE"; + case 3: + return "LCS_FORNOKEYUPDATE"; + case 4: + return "LCS_FORUPDATE"; + default: + throw new Error("Value not recognized in enum LockClauseStrength"); + } + } + case "LockWaitPolicy": + { + switch (key) { + case 0: + return "LockWaitBlock"; + case 1: + return "LockWaitSkip"; + case 2: + return "LockWaitError"; + default: + throw new Error("Value not recognized in enum LockWaitPolicy"); + } + } + case "LockTupleMode": + { + switch (key) { + case 0: + return "LockTupleKeyShare"; + case 1: + return "LockTupleShare"; + case 2: + return "LockTupleNoKeyExclusive"; + case 3: + return "LockTupleExclusive"; + default: + throw new Error("Value not recognized in enum LockTupleMode"); + } + } + case "KeywordKind": + { + switch (key) { + case 0: + return "NO_KEYWORD"; + case 1: + return "UNRESERVED_KEYWORD"; + case 2: + return "COL_NAME_KEYWORD"; + case 3: + return "TYPE_FUNC_NAME_KEYWORD"; + case 4: + return "RESERVED_KEYWORD"; + default: + throw new Error("Value not recognized in enum KeywordKind"); + } + } + case "Token": + { + switch (key) { + case 0: + return "NUL"; + case 36: + return "ASCII_36"; + case 37: + return "ASCII_37"; + case 40: + return "ASCII_40"; + case 41: + return "ASCII_41"; + case 42: + return "ASCII_42"; + case 43: + return "ASCII_43"; + case 44: + return "ASCII_44"; + case 45: + return "ASCII_45"; + case 46: + return "ASCII_46"; + case 47: + return "ASCII_47"; + case 58: + return "ASCII_58"; + case 59: + return "ASCII_59"; + case 60: + return "ASCII_60"; + case 61: + return "ASCII_61"; + case 62: + return "ASCII_62"; + case 63: + return "ASCII_63"; + case 91: + return "ASCII_91"; + case 92: + return "ASCII_92"; + case 93: + return "ASCII_93"; + case 94: + return "ASCII_94"; + case 258: + return "IDENT"; + case 259: + return "UIDENT"; + case 260: + return "FCONST"; + case 261: + return "SCONST"; + case 262: + return "USCONST"; + case 263: + return "BCONST"; + case 264: + return "XCONST"; + case 265: + return "Op"; + case 266: + return "ICONST"; + case 267: + return "PARAM"; + case 268: + return "TYPECAST"; + case 269: + return "DOT_DOT"; + case 270: + return "COLON_EQUALS"; + case 271: + return "EQUALS_GREATER"; + case 272: + return "LESS_EQUALS"; + case 273: + return "GREATER_EQUALS"; + case 274: + return "NOT_EQUALS"; + case 275: + return "SQL_COMMENT"; + case 276: + return "C_COMMENT"; + case 277: + return "ABORT_P"; + case 278: + return "ABSENT"; + case 279: + return "ABSOLUTE_P"; + case 280: + return "ACCESS"; + case 281: + return "ACTION"; + case 282: + return "ADD_P"; + case 283: + return "ADMIN"; + case 284: + return "AFTER"; + case 285: + return "AGGREGATE"; + case 286: + return "ALL"; + case 287: + return "ALSO"; + case 288: + return "ALTER"; + case 289: + return "ALWAYS"; + case 290: + return "ANALYSE"; + case 291: + return "ANALYZE"; + case 292: + return "AND"; + case 293: + return "ANY"; + case 294: + return "ARRAY"; + case 295: + return "AS"; + case 296: + return "ASC"; + case 297: + return "ASENSITIVE"; + case 298: + return "ASSERTION"; + case 299: + return "ASSIGNMENT"; + case 300: + return "ASYMMETRIC"; + case 301: + return "ATOMIC"; + case 302: + return "AT"; + case 303: + return "ATTACH"; + case 304: + return "ATTRIBUTE"; + case 305: + return "AUTHORIZATION"; + case 306: + return "BACKWARD"; + case 307: + return "BEFORE"; + case 308: + return "BEGIN_P"; + case 309: + return "BETWEEN"; + case 310: + return "BIGINT"; + case 311: + return "BINARY"; + case 312: + return "BIT"; + case 313: + return "BOOLEAN_P"; + case 314: + return "BOTH"; + case 315: + return "BREADTH"; + case 316: + return "BY"; + case 317: + return "CACHE"; + case 318: + return "CALL"; + case 319: + return "CALLED"; + case 320: + return "CASCADE"; + case 321: + return "CASCADED"; + case 322: + return "CASE"; + case 323: + return "CAST"; + case 324: + return "CATALOG_P"; + case 325: + return "CHAIN"; + case 326: + return "CHAR_P"; + case 327: + return "CHARACTER"; + case 328: + return "CHARACTERISTICS"; + case 329: + return "CHECK"; + case 330: + return "CHECKPOINT"; + case 331: + return "CLASS"; + case 332: + return "CLOSE"; + case 333: + return "CLUSTER"; + case 334: + return "COALESCE"; + case 335: + return "COLLATE"; + case 336: + return "COLLATION"; + case 337: + return "COLUMN"; + case 338: + return "COLUMNS"; + case 339: + return "COMMENT"; + case 340: + return "COMMENTS"; + case 341: + return "COMMIT"; + case 342: + return "COMMITTED"; + case 343: + return "COMPRESSION"; + case 344: + return "CONCURRENTLY"; + case 345: + return "CONFIGURATION"; + case 346: + return "CONFLICT"; + case 347: + return "CONNECTION"; + case 348: + return "CONSTRAINT"; + case 349: + return "CONSTRAINTS"; + case 350: + return "CONTENT_P"; + case 351: + return "CONTINUE_P"; + case 352: + return "CONVERSION_P"; + case 353: + return "COPY"; + case 354: + return "COST"; + case 355: + return "CREATE"; + case 356: + return "CROSS"; + case 357: + return "CSV"; + case 358: + return "CUBE"; + case 359: + return "CURRENT_P"; + case 360: + return "CURRENT_CATALOG"; + case 361: + return "CURRENT_DATE"; + case 362: + return "CURRENT_ROLE"; + case 363: + return "CURRENT_SCHEMA"; + case 364: + return "CURRENT_TIME"; + case 365: + return "CURRENT_TIMESTAMP"; + case 366: + return "CURRENT_USER"; + case 367: + return "CURSOR"; + case 368: + return "CYCLE"; + case 369: + return "DATA_P"; + case 370: + return "DATABASE"; + case 371: + return "DAY_P"; + case 372: + return "DEALLOCATE"; + case 373: + return "DEC"; + case 374: + return "DECIMAL_P"; + case 375: + return "DECLARE"; + case 376: + return "DEFAULT"; + case 377: + return "DEFAULTS"; + case 378: + return "DEFERRABLE"; + case 379: + return "DEFERRED"; + case 380: + return "DEFINER"; + case 381: + return "DELETE_P"; + case 382: + return "DELIMITER"; + case 383: + return "DELIMITERS"; + case 384: + return "DEPENDS"; + case 385: + return "DEPTH"; + case 386: + return "DESC"; + case 387: + return "DETACH"; + case 388: + return "DICTIONARY"; + case 389: + return "DISABLE_P"; + case 390: + return "DISCARD"; + case 391: + return "DISTINCT"; + case 392: + return "DO"; + case 393: + return "DOCUMENT_P"; + case 394: + return "DOMAIN_P"; + case 395: + return "DOUBLE_P"; + case 396: + return "DROP"; + case 397: + return "EACH"; + case 398: + return "ELSE"; + case 399: + return "ENABLE_P"; + case 400: + return "ENCODING"; + case 401: + return "ENCRYPTED"; + case 402: + return "END_P"; + case 403: + return "ENUM_P"; + case 404: + return "ESCAPE"; + case 405: + return "EVENT"; + case 406: + return "EXCEPT"; + case 407: + return "EXCLUDE"; + case 408: + return "EXCLUDING"; + case 409: + return "EXCLUSIVE"; + case 410: + return "EXECUTE"; + case 411: + return "EXISTS"; + case 412: + return "EXPLAIN"; + case 413: + return "EXPRESSION"; + case 414: + return "EXTENSION"; + case 415: + return "EXTERNAL"; + case 416: + return "EXTRACT"; + case 417: + return "FALSE_P"; + case 418: + return "FAMILY"; + case 419: + return "FETCH"; + case 420: + return "FILTER"; + case 421: + return "FINALIZE"; + case 422: + return "FIRST_P"; + case 423: + return "FLOAT_P"; + case 424: + return "FOLLOWING"; + case 425: + return "FOR"; + case 426: + return "FORCE"; + case 427: + return "FOREIGN"; + case 428: + return "FORMAT"; + case 429: + return "FORWARD"; + case 430: + return "FREEZE"; + case 431: + return "FROM"; + case 432: + return "FULL"; + case 433: + return "FUNCTION"; + case 434: + return "FUNCTIONS"; + case 435: + return "GENERATED"; + case 436: + return "GLOBAL"; + case 437: + return "GRANT"; + case 438: + return "GRANTED"; + case 439: + return "GREATEST"; + case 440: + return "GROUP_P"; + case 441: + return "GROUPING"; + case 442: + return "GROUPS"; + case 443: + return "HANDLER"; + case 444: + return "HAVING"; + case 445: + return "HEADER_P"; + case 446: + return "HOLD"; + case 447: + return "HOUR_P"; + case 448: + return "IDENTITY_P"; + case 449: + return "IF_P"; + case 450: + return "ILIKE"; + case 451: + return "IMMEDIATE"; + case 452: + return "IMMUTABLE"; + case 453: + return "IMPLICIT_P"; + case 454: + return "IMPORT_P"; + case 455: + return "IN_P"; + case 456: + return "INCLUDE"; + case 457: + return "INCLUDING"; + case 458: + return "INCREMENT"; + case 459: + return "INDENT"; + case 460: + return "INDEX"; + case 461: + return "INDEXES"; + case 462: + return "INHERIT"; + case 463: + return "INHERITS"; + case 464: + return "INITIALLY"; + case 465: + return "INLINE_P"; + case 466: + return "INNER_P"; + case 467: + return "INOUT"; + case 468: + return "INPUT_P"; + case 469: + return "INSENSITIVE"; + case 470: + return "INSERT"; + case 471: + return "INSTEAD"; + case 472: + return "INT_P"; + case 473: + return "INTEGER"; + case 474: + return "INTERSECT"; + case 475: + return "INTERVAL"; + case 476: + return "INTO"; + case 477: + return "INVOKER"; + case 478: + return "IS"; + case 479: + return "ISNULL"; + case 480: + return "ISOLATION"; + case 481: + return "JOIN"; + case 482: + return "JSON"; + case 483: + return "JSON_ARRAY"; + case 484: + return "JSON_ARRAYAGG"; + case 485: + return "JSON_OBJECT"; + case 486: + return "JSON_OBJECTAGG"; + case 487: + return "KEY"; + case 488: + return "KEYS"; + case 489: + return "LABEL"; + case 490: + return "LANGUAGE"; + case 491: + return "LARGE_P"; + case 492: + return "LAST_P"; + case 493: + return "LATERAL_P"; + case 494: + return "LEADING"; + case 495: + return "LEAKPROOF"; + case 496: + return "LEAST"; + case 497: + return "LEFT"; + case 498: + return "LEVEL"; + case 499: + return "LIKE"; + case 500: + return "LIMIT"; + case 501: + return "LISTEN"; + case 502: + return "LOAD"; + case 503: + return "LOCAL"; + case 504: + return "LOCALTIME"; + case 505: + return "LOCALTIMESTAMP"; + case 506: + return "LOCATION"; + case 507: + return "LOCK_P"; + case 508: + return "LOCKED"; + case 509: + return "LOGGED"; + case 510: + return "MAPPING"; + case 511: + return "MATCH"; + case 512: + return "MATCHED"; + case 513: + return "MATERIALIZED"; + case 514: + return "MAXVALUE"; + case 515: + return "MERGE"; + case 516: + return "METHOD"; + case 517: + return "MINUTE_P"; + case 518: + return "MINVALUE"; + case 519: + return "MODE"; + case 520: + return "MONTH_P"; + case 521: + return "MOVE"; + case 522: + return "NAME_P"; + case 523: + return "NAMES"; + case 524: + return "NATIONAL"; + case 525: + return "NATURAL"; + case 526: + return "NCHAR"; + case 527: + return "NEW"; + case 528: + return "NEXT"; + case 529: + return "NFC"; + case 530: + return "NFD"; + case 531: + return "NFKC"; + case 532: + return "NFKD"; + case 533: + return "NO"; + case 534: + return "NONE"; + case 535: + return "NORMALIZE"; + case 536: + return "NORMALIZED"; + case 537: + return "NOT"; + case 538: + return "NOTHING"; + case 539: + return "NOTIFY"; + case 540: + return "NOTNULL"; + case 541: + return "NOWAIT"; + case 542: + return "NULL_P"; + case 543: + return "NULLIF"; + case 544: + return "NULLS_P"; + case 545: + return "NUMERIC"; + case 546: + return "OBJECT_P"; + case 547: + return "OF"; + case 548: + return "OFF"; + case 549: + return "OFFSET"; + case 550: + return "OIDS"; + case 551: + return "OLD"; + case 552: + return "ON"; + case 553: + return "ONLY"; + case 554: + return "OPERATOR"; + case 555: + return "OPTION"; + case 556: + return "OPTIONS"; + case 557: + return "OR"; + case 558: + return "ORDER"; + case 559: + return "ORDINALITY"; + case 560: + return "OTHERS"; + case 561: + return "OUT_P"; + case 562: + return "OUTER_P"; + case 563: + return "OVER"; + case 564: + return "OVERLAPS"; + case 565: + return "OVERLAY"; + case 566: + return "OVERRIDING"; + case 567: + return "OWNED"; + case 568: + return "OWNER"; + case 569: + return "PARALLEL"; + case 570: + return "PARAMETER"; + case 571: + return "PARSER"; + case 572: + return "PARTIAL"; + case 573: + return "PARTITION"; + case 574: + return "PASSING"; + case 575: + return "PASSWORD"; + case 576: + return "PLACING"; + case 577: + return "PLANS"; + case 578: + return "POLICY"; + case 579: + return "POSITION"; + case 580: + return "PRECEDING"; + case 581: + return "PRECISION"; + case 582: + return "PRESERVE"; + case 583: + return "PREPARE"; + case 584: + return "PREPARED"; + case 585: + return "PRIMARY"; + case 586: + return "PRIOR"; + case 587: + return "PRIVILEGES"; + case 588: + return "PROCEDURAL"; + case 589: + return "PROCEDURE"; + case 590: + return "PROCEDURES"; + case 591: + return "PROGRAM"; + case 592: + return "PUBLICATION"; + case 593: + return "QUOTE"; + case 594: + return "RANGE"; + case 595: + return "READ"; + case 596: + return "REAL"; + case 597: + return "REASSIGN"; + case 598: + return "RECHECK"; + case 599: + return "RECURSIVE"; + case 600: + return "REF_P"; + case 601: + return "REFERENCES"; + case 602: + return "REFERENCING"; + case 603: + return "REFRESH"; + case 604: + return "REINDEX"; + case 605: + return "RELATIVE_P"; + case 606: + return "RELEASE"; + case 607: + return "RENAME"; + case 608: + return "REPEATABLE"; + case 609: + return "REPLACE"; + case 610: + return "REPLICA"; + case 611: + return "RESET"; + case 612: + return "RESTART"; + case 613: + return "RESTRICT"; + case 614: + return "RETURN"; + case 615: + return "RETURNING"; + case 616: + return "RETURNS"; + case 617: + return "REVOKE"; + case 618: + return "RIGHT"; + case 619: + return "ROLE"; + case 620: + return "ROLLBACK"; + case 621: + return "ROLLUP"; + case 622: + return "ROUTINE"; + case 623: + return "ROUTINES"; + case 624: + return "ROW"; + case 625: + return "ROWS"; + case 626: + return "RULE"; + case 627: + return "SAVEPOINT"; + case 628: + return "SCALAR"; + case 629: + return "SCHEMA"; + case 630: + return "SCHEMAS"; + case 631: + return "SCROLL"; + case 632: + return "SEARCH"; + case 633: + return "SECOND_P"; + case 634: + return "SECURITY"; + case 635: + return "SELECT"; + case 636: + return "SEQUENCE"; + case 637: + return "SEQUENCES"; + case 638: + return "SERIALIZABLE"; + case 639: + return "SERVER"; + case 640: + return "SESSION"; + case 641: + return "SESSION_USER"; + case 642: + return "SET"; + case 643: + return "SETS"; + case 644: + return "SETOF"; + case 645: + return "SHARE"; + case 646: + return "SHOW"; + case 647: + return "SIMILAR"; + case 648: + return "SIMPLE"; + case 649: + return "SKIP"; + case 650: + return "SMALLINT"; + case 651: + return "SNAPSHOT"; + case 652: + return "SOME"; + case 653: + return "SQL_P"; + case 654: + return "STABLE"; + case 655: + return "STANDALONE_P"; + case 656: + return "START"; + case 657: + return "STATEMENT"; + case 658: + return "STATISTICS"; + case 659: + return "STDIN"; + case 660: + return "STDOUT"; + case 661: + return "STORAGE"; + case 662: + return "STORED"; + case 663: + return "STRICT_P"; + case 664: + return "STRIP_P"; + case 665: + return "SUBSCRIPTION"; + case 666: + return "SUBSTRING"; + case 667: + return "SUPPORT"; + case 668: + return "SYMMETRIC"; + case 669: + return "SYSID"; + case 670: + return "SYSTEM_P"; + case 671: + return "SYSTEM_USER"; + case 672: + return "TABLE"; + case 673: + return "TABLES"; + case 674: + return "TABLESAMPLE"; + case 675: + return "TABLESPACE"; + case 676: + return "TEMP"; + case 677: + return "TEMPLATE"; + case 678: + return "TEMPORARY"; + case 679: + return "TEXT_P"; + case 680: + return "THEN"; + case 681: + return "TIES"; + case 682: + return "TIME"; + case 683: + return "TIMESTAMP"; + case 684: + return "TO"; + case 685: + return "TRAILING"; + case 686: + return "TRANSACTION"; + case 687: + return "TRANSFORM"; + case 688: + return "TREAT"; + case 689: + return "TRIGGER"; + case 690: + return "TRIM"; + case 691: + return "TRUE_P"; + case 692: + return "TRUNCATE"; + case 693: + return "TRUSTED"; + case 694: + return "TYPE_P"; + case 695: + return "TYPES_P"; + case 696: + return "UESCAPE"; + case 697: + return "UNBOUNDED"; + case 698: + return "UNCOMMITTED"; + case 699: + return "UNENCRYPTED"; + case 700: + return "UNION"; + case 701: + return "UNIQUE"; + case 702: + return "UNKNOWN"; + case 703: + return "UNLISTEN"; + case 704: + return "UNLOGGED"; + case 705: + return "UNTIL"; + case 706: + return "UPDATE"; + case 707: + return "USER"; + case 708: + return "USING"; + case 709: + return "VACUUM"; + case 710: + return "VALID"; + case 711: + return "VALIDATE"; + case 712: + return "VALIDATOR"; + case 713: + return "VALUE_P"; + case 714: + return "VALUES"; + case 715: + return "VARCHAR"; + case 716: + return "VARIADIC"; + case 717: + return "VARYING"; + case 718: + return "VERBOSE"; + case 719: + return "VERSION_P"; + case 720: + return "VIEW"; + case 721: + return "VIEWS"; + case 722: + return "VOLATILE"; + case 723: + return "WHEN"; + case 724: + return "WHERE"; + case 725: + return "WHITESPACE_P"; + case 726: + return "WINDOW"; + case 727: + return "WITH"; + case 728: + return "WITHIN"; + case 729: + return "WITHOUT"; + case 730: + return "WORK"; + case 731: + return "WRAPPER"; + case 732: + return "WRITE"; + case 733: + return "XML_P"; + case 734: + return "XMLATTRIBUTES"; + case 735: + return "XMLCONCAT"; + case 736: + return "XMLELEMENT"; + case 737: + return "XMLEXISTS"; + case 738: + return "XMLFOREST"; + case 739: + return "XMLNAMESPACES"; + case 740: + return "XMLPARSE"; + case 741: + return "XMLPI"; + case 742: + return "XMLROOT"; + case 743: + return "XMLSERIALIZE"; + case 744: + return "XMLTABLE"; + case 745: + return "YEAR_P"; + case 746: + return "YES_P"; + case 747: + return "ZONE"; + case 748: + return "FORMAT_LA"; + case 749: + return "NOT_LA"; + case 750: + return "NULLS_LA"; + case 751: + return "WITH_LA"; + case 752: + return "WITHOUT_LA"; + case 753: + return "MODE_TYPE_NAME"; + case 754: + return "MODE_PLPGSQL_EXPR"; + case 755: + return "MODE_PLPGSQL_ASSIGN1"; + case 756: + return "MODE_PLPGSQL_ASSIGN2"; + case 757: + return "MODE_PLPGSQL_ASSIGN3"; + case 758: + return "UMINUS"; + default: + throw new Error("Value not recognized in enum Token"); + } + } + default: + throw new Error("Enum type not recognized"); + } +}; \ No newline at end of file diff --git a/packages/deparser/__tests__/kitchen-sink/latest-misc-cascades.test.ts b/packages/deparser/__tests__/kitchen-sink/latest-misc-cascades.test.ts index 0f92da97..5984c80a 100644 --- a/packages/deparser/__tests__/kitchen-sink/latest-misc-cascades.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/latest-misc-cascades.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('latest-misc-cascades', () => { - fixtures.runFixtureTests([ +it('latest-misc-cascades', async () => { + await fixtures.runFixtureTests([ "latest/misc/cascades-1.sql", "latest/misc/cascades-2.sql", "latest/misc/cascades-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/latest-misc-quotes_etc.test.ts b/packages/deparser/__tests__/kitchen-sink/latest-misc-quotes_etc.test.ts index 3070aea3..200b6f6a 100644 --- a/packages/deparser/__tests__/kitchen-sink/latest-misc-quotes_etc.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/latest-misc-quotes_etc.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('latest-misc-quotes_etc', () => { - fixtures.runFixtureTests([ +it('latest-misc-quotes_etc', async () => { + await fixtures.runFixtureTests([ "latest/misc/quotes_etc-1.sql", "latest/misc/quotes_etc-2.sql" ]); diff --git a/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_aggregate.test.ts b/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_aggregate.test.ts index 4d7cc5c1..c6505f2b 100644 --- a/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_aggregate.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_aggregate.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('latest-postgres-create_aggregate', () => { - fixtures.runFixtureTests([ +it('latest-postgres-create_aggregate', async () => { + await fixtures.runFixtureTests([ "latest/postgres/create_aggregate-1.sql", "latest/postgres/create_aggregate-2.sql", "latest/postgres/create_aggregate-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_am.test.ts b/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_am.test.ts index 85876ef7..ed054569 100644 --- a/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_am.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_am.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('latest-postgres-create_am', () => { - fixtures.runFixtureTests([ +it('latest-postgres-create_am', async () => { + await fixtures.runFixtureTests([ "latest/postgres/create_am-1.sql", "latest/postgres/create_am-2.sql", "latest/postgres/create_am-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_cast.test.ts b/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_cast.test.ts index cdd12977..f2e3f560 100644 --- a/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_cast.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_cast.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('latest-postgres-create_cast', () => { - fixtures.runFixtureTests([ +it('latest-postgres-create_cast', async () => { + await fixtures.runFixtureTests([ "latest/postgres/create_cast-1.sql", "latest/postgres/create_cast-2.sql", "latest/postgres/create_cast-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_function_sql.test.ts b/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_function_sql.test.ts index ad06d18d..93ef6cb5 100644 --- a/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_function_sql.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_function_sql.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('latest-postgres-create_function_sql', () => { - fixtures.runFixtureTests([ +it('latest-postgres-create_function_sql', async () => { + await fixtures.runFixtureTests([ "latest/postgres/create_function_sql-1.sql", "latest/postgres/create_function_sql-2.sql", "latest/postgres/create_function_sql-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_index.test.ts b/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_index.test.ts index 0efd8121..da206405 100644 --- a/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_index.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_index.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('latest-postgres-create_index', () => { - fixtures.runFixtureTests([ +it('latest-postgres-create_index', async () => { + await fixtures.runFixtureTests([ "latest/postgres/create_index-1.sql", "latest/postgres/create_index-2.sql", "latest/postgres/create_index-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_index_spgist.test.ts b/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_index_spgist.test.ts index 9013c6b7..b327310e 100644 --- a/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_index_spgist.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_index_spgist.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('latest-postgres-create_index_spgist', () => { - fixtures.runFixtureTests([ +it('latest-postgres-create_index_spgist', async () => { + await fixtures.runFixtureTests([ "latest/postgres/create_index_spgist-1.sql", "latest/postgres/create_index_spgist-2.sql", "latest/postgres/create_index_spgist-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_misc.test.ts b/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_misc.test.ts index 125aefd1..ef35d2a8 100644 --- a/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_misc.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_misc.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('latest-postgres-create_misc', () => { - fixtures.runFixtureTests([ +it('latest-postgres-create_misc', async () => { + await fixtures.runFixtureTests([ "latest/postgres/create_misc-1.sql", "latest/postgres/create_misc-2.sql", "latest/postgres/create_misc-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_operator.test.ts b/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_operator.test.ts index c9b3af41..03f6dc56 100644 --- a/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_operator.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_operator.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('latest-postgres-create_operator', () => { - fixtures.runFixtureTests([ +it('latest-postgres-create_operator', async () => { + await fixtures.runFixtureTests([ "latest/postgres/create_operator-1.sql", "latest/postgres/create_operator-2.sql", "latest/postgres/create_operator-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_procedure.test.ts b/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_procedure.test.ts index fdd23ed9..90293dda 100644 --- a/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_procedure.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_procedure.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('latest-postgres-create_procedure', () => { - fixtures.runFixtureTests([ +it('latest-postgres-create_procedure', async () => { + await fixtures.runFixtureTests([ "latest/postgres/create_procedure-1.sql", "latest/postgres/create_procedure-2.sql", "latest/postgres/create_procedure-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_role.test.ts b/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_role.test.ts index cbedaa7f..4a740045 100644 --- a/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_role.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_role.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('latest-postgres-create_role', () => { - fixtures.runFixtureTests([ +it('latest-postgres-create_role', async () => { + await fixtures.runFixtureTests([ "latest/postgres/create_role-1.sql", "latest/postgres/create_role-2.sql", "latest/postgres/create_role-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_schema.test.ts b/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_schema.test.ts index 593bf3e5..903c3970 100644 --- a/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_schema.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_schema.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('latest-postgres-create_schema', () => { - fixtures.runFixtureTests([ +it('latest-postgres-create_schema', async () => { + await fixtures.runFixtureTests([ "latest/postgres/create_schema-1.sql", "latest/postgres/create_schema-2.sql", "latest/postgres/create_schema-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_table.test.ts b/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_table.test.ts index 663246e7..688950d0 100644 --- a/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_table.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_table.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('latest-postgres-create_table', () => { - fixtures.runFixtureTests([ +it('latest-postgres-create_table', async () => { + await fixtures.runFixtureTests([ "latest/postgres/create_table-1.sql", "latest/postgres/create_table-2.sql", "latest/postgres/create_table-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_table_like.test.ts b/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_table_like.test.ts index d6f841bd..e68d0d22 100644 --- a/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_table_like.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_table_like.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('latest-postgres-create_table_like', () => { - fixtures.runFixtureTests([ +it('latest-postgres-create_table_like', async () => { + await fixtures.runFixtureTests([ "latest/postgres/create_table_like-1.sql", "latest/postgres/create_table_like-2.sql", "latest/postgres/create_table_like-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_type.test.ts b/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_type.test.ts index 7d86f342..8eecacf2 100644 --- a/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_type.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_type.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('latest-postgres-create_type', () => { - fixtures.runFixtureTests([ +it('latest-postgres-create_type', async () => { + await fixtures.runFixtureTests([ "latest/postgres/create_type-1.sql", "latest/postgres/create_type-2.sql", "latest/postgres/create_type-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_view.test.ts b/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_view.test.ts index cf08d548..7e29d4cd 100644 --- a/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_view.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/latest-postgres-create_view.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('latest-postgres-create_view', () => { - fixtures.runFixtureTests([ +it('latest-postgres-create_view', async () => { + await fixtures.runFixtureTests([ "latest/postgres/create_view-1.sql", "latest/postgres/create_view-2.sql", "latest/postgres/create_view-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/latest-postgres-event_trigger.test.ts b/packages/deparser/__tests__/kitchen-sink/latest-postgres-event_trigger.test.ts index dd79dbb5..ccaaa400 100644 --- a/packages/deparser/__tests__/kitchen-sink/latest-postgres-event_trigger.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/latest-postgres-event_trigger.test.ts @@ -2,6 +2,6 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('latest-postgres-event_trigger', () => { - fixtures.runFixtureTests([]); +it('latest-postgres-event_trigger', async () => { + await fixtures.runFixtureTests([]); }); diff --git a/packages/deparser/__tests__/kitchen-sink/latest-postgres-event_trigger_login.test.ts b/packages/deparser/__tests__/kitchen-sink/latest-postgres-event_trigger_login.test.ts index d6bf944b..f07fa896 100644 --- a/packages/deparser/__tests__/kitchen-sink/latest-postgres-event_trigger_login.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/latest-postgres-event_trigger_login.test.ts @@ -2,6 +2,6 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('latest-postgres-event_trigger_login', () => { - fixtures.runFixtureTests([]); +it('latest-postgres-event_trigger_login', async () => { + await fixtures.runFixtureTests([]); }); diff --git a/packages/deparser/__tests__/kitchen-sink/original-a_expr.test.ts b/packages/deparser/__tests__/kitchen-sink/original-a_expr.test.ts index 4b028be3..fdc8f2ca 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-a_expr.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-a_expr.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-a_expr', () => { - fixtures.runFixtureTests([ +it('original-a_expr', async () => { + await fixtures.runFixtureTests([ "original/a_expr-1.sql", "original/a_expr-2.sql", "original/a_expr-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-alter-alter.test.ts b/packages/deparser/__tests__/kitchen-sink/original-alter-alter.test.ts index 905308ea..bd7d16d5 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-alter-alter.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-alter-alter.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-alter-alter', () => { - fixtures.runFixtureTests([ +it('original-alter-alter', async () => { + await fixtures.runFixtureTests([ "original/alter/alter-1.sql", "original/alter/alter-2.sql", "original/alter/alter-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-alter-default-privs.test.ts b/packages/deparser/__tests__/kitchen-sink/original-alter-default-privs.test.ts index 2251a957..8d4388b8 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-alter-default-privs.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-alter-default-privs.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-alter-default-privs', () => { - fixtures.runFixtureTests([ +it('original-alter-default-privs', async () => { + await fixtures.runFixtureTests([ "original/alter/default-privs-1.sql", "original/alter/default-privs-2.sql", "original/alter/default-privs-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-call.test.ts b/packages/deparser/__tests__/kitchen-sink/original-call.test.ts index 9809099b..eef0052b 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-call.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-call.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-call', () => { - fixtures.runFixtureTests([ +it('original-call', async () => { + await fixtures.runFixtureTests([ "original/call-1.sql", "original/call-2.sql", "original/call-3.sql" diff --git a/packages/deparser/__tests__/kitchen-sink/original-comment.test.ts b/packages/deparser/__tests__/kitchen-sink/original-comment.test.ts index b2dfa59b..bbb9106d 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-comment.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-comment.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-comment', () => { - fixtures.runFixtureTests([ +it('original-comment', async () => { + await fixtures.runFixtureTests([ "original/comment-1.sql", "original/comment-2.sql", "original/comment-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-comments-custom.test.ts b/packages/deparser/__tests__/kitchen-sink/original-comments-custom.test.ts index 08e78f7a..8cb4af5c 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-comments-custom.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-comments-custom.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-comments-custom', () => { - fixtures.runFixtureTests([ +it('original-comments-custom', async () => { + await fixtures.runFixtureTests([ "original/comments/custom-1.sql", "original/comments/custom-2.sql", "original/comments/custom-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-complex.test.ts b/packages/deparser/__tests__/kitchen-sink/original-complex.test.ts index 8bba22b0..3e3b87aa 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-complex.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-complex.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-complex', () => { - fixtures.runFixtureTests([ +it('original-complex', async () => { + await fixtures.runFixtureTests([ "original/complex-1.sql" ]); }); diff --git a/packages/deparser/__tests__/kitchen-sink/original-copy.test.ts b/packages/deparser/__tests__/kitchen-sink/original-copy.test.ts index 103ce1b9..61cc3460 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-copy.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-copy.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-copy', () => { - fixtures.runFixtureTests([ +it('original-copy', async () => { + await fixtures.runFixtureTests([ "original/copy-1.sql" ]); }); diff --git a/packages/deparser/__tests__/kitchen-sink/original-custom.test.ts b/packages/deparser/__tests__/kitchen-sink/original-custom.test.ts index a5a79845..bcf0685d 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-custom.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-custom.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-custom', () => { - fixtures.runFixtureTests([ +it('original-custom', async () => { + await fixtures.runFixtureTests([ "original/custom-1.sql", "original/custom-2.sql", "original/custom-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-define.test.ts b/packages/deparser/__tests__/kitchen-sink/original-define.test.ts index c05d7ab1..e5b783c8 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-define.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-define.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-define', () => { - fixtures.runFixtureTests([ +it('original-define', async () => { + await fixtures.runFixtureTests([ "original/define-1.sql" ]); }); diff --git a/packages/deparser/__tests__/kitchen-sink/original-do-custom.test.ts b/packages/deparser/__tests__/kitchen-sink/original-do-custom.test.ts index c996bb52..e5207b95 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-do-custom.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-do-custom.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-do-custom', () => { - fixtures.runFixtureTests([ +it('original-do-custom', async () => { + await fixtures.runFixtureTests([ "original/do/custom-1.sql" ]); }); diff --git a/packages/deparser/__tests__/kitchen-sink/original-domains-create.test.ts b/packages/deparser/__tests__/kitchen-sink/original-domains-create.test.ts index 86e9c3ce..e787f5fa 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-domains-create.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-domains-create.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-domains-create', () => { - fixtures.runFixtureTests([ +it('original-domains-create', async () => { + await fixtures.runFixtureTests([ "original/domains/create-1.sql", "original/domains/create-2.sql" ]); diff --git a/packages/deparser/__tests__/kitchen-sink/original-drops.test.ts b/packages/deparser/__tests__/kitchen-sink/original-drops.test.ts index acf43428..781a8b3c 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-drops.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-drops.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-drops', () => { - fixtures.runFixtureTests([ +it('original-drops', async () => { + await fixtures.runFixtureTests([ "original/drops-1.sql", "original/drops-2.sql", "original/drops-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-enums-alter.test.ts b/packages/deparser/__tests__/kitchen-sink/original-enums-alter.test.ts index 042fa560..7307cad8 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-enums-alter.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-enums-alter.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-enums-alter', () => { - fixtures.runFixtureTests([ +it('original-enums-alter', async () => { + await fixtures.runFixtureTests([ "original/enums/alter-1.sql", "original/enums/alter-2.sql", "original/enums/alter-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-enums-create.test.ts b/packages/deparser/__tests__/kitchen-sink/original-enums-create.test.ts index dff4037c..aea9eeee 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-enums-create.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-enums-create.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-enums-create', () => { - fixtures.runFixtureTests([ +it('original-enums-create', async () => { + await fixtures.runFixtureTests([ "original/enums/create-1.sql" ]); }); diff --git a/packages/deparser/__tests__/kitchen-sink/original-extensions-custom.test.ts b/packages/deparser/__tests__/kitchen-sink/original-extensions-custom.test.ts index 428db62a..51b07066 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-extensions-custom.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-extensions-custom.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-extensions-custom', () => { - fixtures.runFixtureTests([ +it('original-extensions-custom', async () => { + await fixtures.runFixtureTests([ "original/extensions/custom-1.sql", "original/extensions/custom-2.sql", "original/extensions/custom-3.sql" diff --git a/packages/deparser/__tests__/kitchen-sink/original-functions-basic.test.ts b/packages/deparser/__tests__/kitchen-sink/original-functions-basic.test.ts index 6cc780a2..84b735f0 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-functions-basic.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-functions-basic.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-functions-basic', () => { - fixtures.runFixtureTests([ +it('original-functions-basic', async () => { + await fixtures.runFixtureTests([ "original/functions/basic-1.sql", "original/functions/basic-2.sql" ]); diff --git a/packages/deparser/__tests__/kitchen-sink/original-functions-do.test.ts b/packages/deparser/__tests__/kitchen-sink/original-functions-do.test.ts index 304f3c4d..ee36874e 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-functions-do.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-functions-do.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-functions-do', () => { - fixtures.runFixtureTests([ +it('original-functions-do', async () => { + await fixtures.runFixtureTests([ "original/functions/do-1.sql", "original/functions/do-2.sql", "original/functions/do-3.sql" diff --git a/packages/deparser/__tests__/kitchen-sink/original-functions-returns_table.test.ts b/packages/deparser/__tests__/kitchen-sink/original-functions-returns_table.test.ts index 8b10ec22..effac461 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-functions-returns_table.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-functions-returns_table.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-functions-returns_table', () => { - fixtures.runFixtureTests([ +it('original-functions-returns_table', async () => { + await fixtures.runFixtureTests([ "original/functions/returns_table-1.sql" ]); }); diff --git a/packages/deparser/__tests__/kitchen-sink/original-functions-returns_trigger.test.ts b/packages/deparser/__tests__/kitchen-sink/original-functions-returns_trigger.test.ts index 8af86388..45244ac6 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-functions-returns_trigger.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-functions-returns_trigger.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-functions-returns_trigger', () => { - fixtures.runFixtureTests([ +it('original-functions-returns_trigger', async () => { + await fixtures.runFixtureTests([ "original/functions/returns_trigger-1.sql" ]); }); diff --git a/packages/deparser/__tests__/kitchen-sink/original-functions-setof.test.ts b/packages/deparser/__tests__/kitchen-sink/original-functions-setof.test.ts index 924ab906..f2741956 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-functions-setof.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-functions-setof.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-functions-setof', () => { - fixtures.runFixtureTests([ +it('original-functions-setof', async () => { + await fixtures.runFixtureTests([ "original/functions/setof-1.sql", "original/functions/setof-2.sql" ]); diff --git a/packages/deparser/__tests__/kitchen-sink/original-grants-custom.test.ts b/packages/deparser/__tests__/kitchen-sink/original-grants-custom.test.ts index 35bca231..f180cd1e 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-grants-custom.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-grants-custom.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-grants-custom', () => { - fixtures.runFixtureTests([ +it('original-grants-custom', async () => { + await fixtures.runFixtureTests([ "original/grants/custom-1.sql", "original/grants/custom-2.sql", "original/grants/custom-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-indexes-custom.test.ts b/packages/deparser/__tests__/kitchen-sink/original-indexes-custom.test.ts index 31959c56..2ecf7690 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-indexes-custom.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-indexes-custom.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-indexes-custom', () => { - fixtures.runFixtureTests([ +it('original-indexes-custom', async () => { + await fixtures.runFixtureTests([ "original/indexes/custom-1.sql", "original/indexes/custom-2.sql", "original/indexes/custom-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-misc.test.ts b/packages/deparser/__tests__/kitchen-sink/original-misc.test.ts index f24b4fce..2676d266 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-misc.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-misc.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-misc', () => { - fixtures.runFixtureTests([ +it('original-misc', async () => { + await fixtures.runFixtureTests([ "original/misc-1.sql", "original/misc-2.sql", "original/misc-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-param-ref.test.ts b/packages/deparser/__tests__/kitchen-sink/original-param-ref.test.ts index 3f8abe4a..c04e2fd2 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-param-ref.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-param-ref.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-param-ref', () => { - fixtures.runFixtureTests([ +it('original-param-ref', async () => { + await fixtures.runFixtureTests([ "original/param-ref-1.sql", "original/param-ref-2.sql" ]); diff --git a/packages/deparser/__tests__/kitchen-sink/original-parens.test.ts b/packages/deparser/__tests__/kitchen-sink/original-parens.test.ts index 9129fd75..965d60a4 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-parens.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-parens.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-parens', () => { - fixtures.runFixtureTests([ +it('original-parens', async () => { + await fixtures.runFixtureTests([ "original/parens-1.sql", "original/parens-2.sql", "original/parens-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-pg_catalog.test.ts b/packages/deparser/__tests__/kitchen-sink/original-pg_catalog.test.ts index a5e88b62..1774717a 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-pg_catalog.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-pg_catalog.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-pg_catalog', () => { - fixtures.runFixtureTests([ +it('original-pg_catalog', async () => { + await fixtures.runFixtureTests([ "original/pg_catalog-1.sql", "original/pg_catalog-2.sql", "original/pg_catalog-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-policies-custom.test.ts b/packages/deparser/__tests__/kitchen-sink/original-policies-custom.test.ts index e17c4aad..d0b0e2ba 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-policies-custom.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-policies-custom.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-policies-custom', () => { - fixtures.runFixtureTests([ +it('original-policies-custom', async () => { + await fixtures.runFixtureTests([ "original/policies/custom-1.sql", "original/policies/custom-2.sql", "original/policies/custom-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-preceeding.test.ts b/packages/deparser/__tests__/kitchen-sink/original-preceeding.test.ts index 146fec9c..2326aef1 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-preceeding.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-preceeding.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-preceeding', () => { - fixtures.runFixtureTests([ +it('original-preceeding', async () => { + await fixtures.runFixtureTests([ "original/preceeding-1.sql" ]); }); diff --git a/packages/deparser/__tests__/kitchen-sink/original-privs-and-defaults.test.ts b/packages/deparser/__tests__/kitchen-sink/original-privs-and-defaults.test.ts index dc2898e6..ec64dff4 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-privs-and-defaults.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-privs-and-defaults.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-privs-and-defaults', () => { - fixtures.runFixtureTests([ +it('original-privs-and-defaults', async () => { + await fixtures.runFixtureTests([ "original/privs-and-defaults-1.sql", "original/privs-and-defaults-2.sql", "original/privs-and-defaults-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-query-001.test.ts b/packages/deparser/__tests__/kitchen-sink/original-query-001.test.ts index 17ce44d6..37cfa228 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-query-001.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-query-001.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-query-001', () => { - fixtures.runFixtureTests([ +it('original-query-001', async () => { + await fixtures.runFixtureTests([ "original/query-001-1.sql" ]); }); diff --git a/packages/deparser/__tests__/kitchen-sink/original-query-002.test.ts b/packages/deparser/__tests__/kitchen-sink/original-query-002.test.ts index e346582d..ba15efb9 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-query-002.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-query-002.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-query-002', () => { - fixtures.runFixtureTests([ +it('original-query-002', async () => { + await fixtures.runFixtureTests([ "original/query-002-1.sql" ]); }); diff --git a/packages/deparser/__tests__/kitchen-sink/original-query-003.test.ts b/packages/deparser/__tests__/kitchen-sink/original-query-003.test.ts index 0e187401..bf915cf5 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-query-003.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-query-003.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-query-003', () => { - fixtures.runFixtureTests([ +it('original-query-003', async () => { + await fixtures.runFixtureTests([ "original/query-003-1.sql" ]); }); diff --git a/packages/deparser/__tests__/kitchen-sink/original-roles-create.test.ts b/packages/deparser/__tests__/kitchen-sink/original-roles-create.test.ts index 595d6922..91066b09 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-roles-create.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-roles-create.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-roles-create', () => { - fixtures.runFixtureTests([ +it('original-roles-create', async () => { + await fixtures.runFixtureTests([ "original/roles/create-1.sql", "original/roles/create-2.sql", "original/roles/create-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-roles-grants.test.ts b/packages/deparser/__tests__/kitchen-sink/original-roles-grants.test.ts index 10be89c5..652e11ba 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-roles-grants.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-roles-grants.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-roles-grants', () => { - fixtures.runFixtureTests([ +it('original-roles-grants', async () => { + await fixtures.runFixtureTests([ "original/roles/grants-1.sql", "original/roles/grants-2.sql", "original/roles/grants-3.sql" diff --git a/packages/deparser/__tests__/kitchen-sink/original-rules-create.test.ts b/packages/deparser/__tests__/kitchen-sink/original-rules-create.test.ts index ee234284..a53ea7fb 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-rules-create.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-rules-create.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-rules-create', () => { - fixtures.runFixtureTests([ +it('original-rules-create', async () => { + await fixtures.runFixtureTests([ "original/rules/create-1.sql", "original/rules/create-2.sql", "original/rules/create-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-sequences-alter.test.ts b/packages/deparser/__tests__/kitchen-sink/original-sequences-alter.test.ts index 993ed5a5..132dac72 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-sequences-alter.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-sequences-alter.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-sequences-alter', () => { - fixtures.runFixtureTests([ +it('original-sequences-alter', async () => { + await fixtures.runFixtureTests([ "original/sequences/alter-1.sql", "original/sequences/alter-2.sql", "original/sequences/alter-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-sequences-sequences.test.ts b/packages/deparser/__tests__/kitchen-sink/original-sequences-sequences.test.ts index 16e101df..865522f3 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-sequences-sequences.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-sequences-sequences.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-sequences-sequences', () => { - fixtures.runFixtureTests([ +it('original-sequences-sequences', async () => { + await fixtures.runFixtureTests([ "original/sequences/sequences-1.sql", "original/sequences/sequences-2.sql", "original/sequences/sequences-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-set-custom.test.ts b/packages/deparser/__tests__/kitchen-sink/original-set-custom.test.ts index 3fb599c3..20f4dc35 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-set-custom.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-set-custom.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-set-custom', () => { - fixtures.runFixtureTests([ +it('original-set-custom', async () => { + await fixtures.runFixtureTests([ "original/set/custom-1.sql", "original/set/custom-2.sql", "original/set/custom-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-simple.test.ts b/packages/deparser/__tests__/kitchen-sink/original-simple.test.ts index da2f1121..b663d030 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-simple.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-simple.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-simple', () => { - fixtures.runFixtureTests([ +it('original-simple', async () => { + await fixtures.runFixtureTests([ "original/simple-1.sql", "original/simple-2.sql", "original/simple-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-statements-alias.test.ts b/packages/deparser/__tests__/kitchen-sink/original-statements-alias.test.ts index 96a4f8be..5f5dcf11 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-statements-alias.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-statements-alias.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-statements-alias', () => { - fixtures.runFixtureTests([ +it('original-statements-alias', async () => { + await fixtures.runFixtureTests([ "original/statements/alias-1.sql", "original/statements/alias-2.sql", "original/statements/alias-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-statements-conflicts.test.ts b/packages/deparser/__tests__/kitchen-sink/original-statements-conflicts.test.ts index 0ada2493..3320ae8a 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-statements-conflicts.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-statements-conflicts.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-statements-conflicts', () => { - fixtures.runFixtureTests([ +it('original-statements-conflicts', async () => { + await fixtures.runFixtureTests([ "original/statements/conflicts-1.sql", "original/statements/conflicts-2.sql", "original/statements/conflicts-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-statements-cte.test.ts b/packages/deparser/__tests__/kitchen-sink/original-statements-cte.test.ts index b2a1d230..4d4d6c0f 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-statements-cte.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-statements-cte.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-statements-cte', () => { - fixtures.runFixtureTests([ +it('original-statements-cte', async () => { + await fixtures.runFixtureTests([ "original/statements/cte-1.sql" ]); }); diff --git a/packages/deparser/__tests__/kitchen-sink/original-statements-delete.test.ts b/packages/deparser/__tests__/kitchen-sink/original-statements-delete.test.ts index f3a92c76..afd8a838 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-statements-delete.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-statements-delete.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-statements-delete', () => { - fixtures.runFixtureTests([ +it('original-statements-delete', async () => { + await fixtures.runFixtureTests([ "original/statements/delete-1.sql", "original/statements/delete-2.sql", "original/statements/delete-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-statements-insert.test.ts b/packages/deparser/__tests__/kitchen-sink/original-statements-insert.test.ts index 98674e94..f4b424df 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-statements-insert.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-statements-insert.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-statements-insert', () => { - fixtures.runFixtureTests([ +it('original-statements-insert', async () => { + await fixtures.runFixtureTests([ "original/statements/insert-1.sql", "original/statements/insert-2.sql", "original/statements/insert-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-statements-select.test.ts b/packages/deparser/__tests__/kitchen-sink/original-statements-select.test.ts index c48071d4..ae81ed25 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-statements-select.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-statements-select.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-statements-select', () => { - fixtures.runFixtureTests([ +it('original-statements-select', async () => { + await fixtures.runFixtureTests([ "original/statements/select-1.sql", "original/statements/select-2.sql", "original/statements/select-3.sql" diff --git a/packages/deparser/__tests__/kitchen-sink/original-statements-update.test.ts b/packages/deparser/__tests__/kitchen-sink/original-statements-update.test.ts index e82a892d..db7af07f 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-statements-update.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-statements-update.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-statements-update', () => { - fixtures.runFixtureTests([ +it('original-statements-update', async () => { + await fixtures.runFixtureTests([ "original/statements/update-1.sql", "original/statements/update-2.sql", "original/statements/update-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-tables-check.test.ts b/packages/deparser/__tests__/kitchen-sink/original-tables-check.test.ts index 6e3ca189..ce62e9b7 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-tables-check.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-tables-check.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-tables-check', () => { - fixtures.runFixtureTests([ +it('original-tables-check', async () => { + await fixtures.runFixtureTests([ "original/tables/check-1.sql", "original/tables/check-2.sql", "original/tables/check-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-tables-custom.test.ts b/packages/deparser/__tests__/kitchen-sink/original-tables-custom.test.ts index beb42a1d..9dadf4b9 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-tables-custom.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-tables-custom.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-tables-custom', () => { - fixtures.runFixtureTests([ +it('original-tables-custom', async () => { + await fixtures.runFixtureTests([ "original/tables/custom-1.sql", "original/tables/custom-2.sql", "original/tables/custom-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-tables-defaults.test.ts b/packages/deparser/__tests__/kitchen-sink/original-tables-defaults.test.ts index 680b63e3..3cd4a8eb 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-tables-defaults.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-tables-defaults.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-tables-defaults', () => { - fixtures.runFixtureTests([ +it('original-tables-defaults', async () => { + await fixtures.runFixtureTests([ "original/tables/defaults-1.sql" ]); }); diff --git a/packages/deparser/__tests__/kitchen-sink/original-tables-exclude.test.ts b/packages/deparser/__tests__/kitchen-sink/original-tables-exclude.test.ts index bef05ac8..089e3895 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-tables-exclude.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-tables-exclude.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-tables-exclude', () => { - fixtures.runFixtureTests([ +it('original-tables-exclude', async () => { + await fixtures.runFixtureTests([ "original/tables/exclude-1.sql", "original/tables/exclude-2.sql" ]); diff --git a/packages/deparser/__tests__/kitchen-sink/original-tables-foreign.test.ts b/packages/deparser/__tests__/kitchen-sink/original-tables-foreign.test.ts index 6e63567d..ac33bd8a 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-tables-foreign.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-tables-foreign.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-tables-foreign', () => { - fixtures.runFixtureTests([ +it('original-tables-foreign', async () => { + await fixtures.runFixtureTests([ "original/tables/foreign-1.sql", "original/tables/foreign-2.sql", "original/tables/foreign-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-tables-match.test.ts b/packages/deparser/__tests__/kitchen-sink/original-tables-match.test.ts index f564e7f6..247045b2 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-tables-match.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-tables-match.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-tables-match', () => { - fixtures.runFixtureTests([ +it('original-tables-match', async () => { + await fixtures.runFixtureTests([ "original/tables/match-1.sql", "original/tables/match-2.sql", "original/tables/match-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-tables-nulls.test.ts b/packages/deparser/__tests__/kitchen-sink/original-tables-nulls.test.ts index 32372ef9..99572cec 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-tables-nulls.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-tables-nulls.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-tables-nulls', () => { - fixtures.runFixtureTests([ +it('original-tables-nulls', async () => { + await fixtures.runFixtureTests([ "original/tables/nulls-1.sql", "original/tables/nulls-2.sql", "original/tables/nulls-3.sql" diff --git a/packages/deparser/__tests__/kitchen-sink/original-tables-on_delete.test.ts b/packages/deparser/__tests__/kitchen-sink/original-tables-on_delete.test.ts index 7d9a687c..c52900cb 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-tables-on_delete.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-tables-on_delete.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-tables-on_delete', () => { - fixtures.runFixtureTests([ +it('original-tables-on_delete', async () => { + await fixtures.runFixtureTests([ "original/tables/on_delete-1.sql" ]); }); diff --git a/packages/deparser/__tests__/kitchen-sink/original-tables-on_update.test.ts b/packages/deparser/__tests__/kitchen-sink/original-tables-on_update.test.ts index 10524a10..9bdd2974 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-tables-on_update.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-tables-on_update.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-tables-on_update', () => { - fixtures.runFixtureTests([ +it('original-tables-on_update', async () => { + await fixtures.runFixtureTests([ "original/tables/on_update-1.sql" ]); }); diff --git a/packages/deparser/__tests__/kitchen-sink/original-tables-temp.test.ts b/packages/deparser/__tests__/kitchen-sink/original-tables-temp.test.ts index 9b391616..462a17b2 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-tables-temp.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-tables-temp.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-tables-temp', () => { - fixtures.runFixtureTests([ +it('original-tables-temp', async () => { + await fixtures.runFixtureTests([ "original/tables/temp-1.sql", "original/tables/temp-2.sql", "original/tables/temp-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-tables-unique.test.ts b/packages/deparser/__tests__/kitchen-sink/original-tables-unique.test.ts index 84f233f3..6ea42d87 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-tables-unique.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-tables-unique.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-tables-unique', () => { - fixtures.runFixtureTests([ +it('original-tables-unique', async () => { + await fixtures.runFixtureTests([ "original/tables/unique-1.sql", "original/tables/unique-2.sql", "original/tables/unique-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-transactions-begin_commit.test.ts b/packages/deparser/__tests__/kitchen-sink/original-transactions-begin_commit.test.ts index fb4778c6..64294a16 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-transactions-begin_commit.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-transactions-begin_commit.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-transactions-begin_commit', () => { - fixtures.runFixtureTests([ +it('original-transactions-begin_commit', async () => { + await fixtures.runFixtureTests([ "original/transactions/begin_commit-1.sql", "original/transactions/begin_commit-2.sql", "original/transactions/begin_commit-3.sql" diff --git a/packages/deparser/__tests__/kitchen-sink/original-transactions-lock.test.ts b/packages/deparser/__tests__/kitchen-sink/original-transactions-lock.test.ts index 64a28a5d..42259a8a 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-transactions-lock.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-transactions-lock.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-transactions-lock', () => { - fixtures.runFixtureTests([ +it('original-transactions-lock', async () => { + await fixtures.runFixtureTests([ "original/transactions/lock-1.sql", "original/transactions/lock-2.sql", "original/transactions/lock-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-triggers-create.test.ts b/packages/deparser/__tests__/kitchen-sink/original-triggers-create.test.ts index 387a96e9..905fb749 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-triggers-create.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-triggers-create.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-triggers-create', () => { - fixtures.runFixtureTests([ +it('original-triggers-create', async () => { + await fixtures.runFixtureTests([ "original/triggers/create-1.sql", "original/triggers/create-2.sql", "original/triggers/create-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-triggers-custom.test.ts b/packages/deparser/__tests__/kitchen-sink/original-triggers-custom.test.ts index 6171186f..2fd8aa1a 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-triggers-custom.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-triggers-custom.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-triggers-custom', () => { - fixtures.runFixtureTests([ +it('original-triggers-custom', async () => { + await fixtures.runFixtureTests([ "original/triggers/custom-1.sql", "original/triggers/custom-2.sql", "original/triggers/custom-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-types-composite.test.ts b/packages/deparser/__tests__/kitchen-sink/original-types-composite.test.ts index 1ab94907..0e36ce56 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-types-composite.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-types-composite.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-types-composite', () => { - fixtures.runFixtureTests([ +it('original-types-composite', async () => { + await fixtures.runFixtureTests([ "original/types/composite-1.sql" ]); }); diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-abstime.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-abstime.test.ts index e83da6e4..2d6033d4 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-abstime.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-abstime.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-abstime', () => { - fixtures.runFixtureTests([ +it('original-upstream-abstime', async () => { + await fixtures.runFixtureTests([ "original/upstream/abstime-1.sql", "original/upstream/abstime-2.sql", "original/upstream/abstime-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-advisory_lock.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-advisory_lock.test.ts index 7c0f15aa..334e579c 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-advisory_lock.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-advisory_lock.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-advisory_lock', () => { - fixtures.runFixtureTests([ +it('original-upstream-advisory_lock', async () => { + await fixtures.runFixtureTests([ "original/upstream/advisory_lock-1.sql", "original/upstream/advisory_lock-2.sql", "original/upstream/advisory_lock-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-aggregates.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-aggregates.test.ts index ee33e2bf..7bfabdbd 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-aggregates.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-aggregates.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-aggregates', () => { - fixtures.runFixtureTests([ +it('original-upstream-aggregates', async () => { + await fixtures.runFixtureTests([ "original/upstream/aggregates-1.sql", "original/upstream/aggregates-2.sql", "original/upstream/aggregates-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-alter_generic.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-alter_generic.test.ts index 8041efc6..4d8eab72 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-alter_generic.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-alter_generic.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-alter_generic', () => { - fixtures.runFixtureTests([ +it('original-upstream-alter_generic', async () => { + await fixtures.runFixtureTests([ "original/upstream/alter_generic-1.sql", "original/upstream/alter_generic-2.sql", "original/upstream/alter_generic-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-alter_operator.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-alter_operator.test.ts index b74fb878..45db5bd9 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-alter_operator.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-alter_operator.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-alter_operator', () => { - fixtures.runFixtureTests([ +it('original-upstream-alter_operator', async () => { + await fixtures.runFixtureTests([ "original/upstream/alter_operator-1.sql", "original/upstream/alter_operator-2.sql", "original/upstream/alter_operator-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-alter_table.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-alter_table.test.ts index 234dfcb2..b59e236f 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-alter_table.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-alter_table.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-alter_table', () => { - fixtures.runFixtureTests([ +it('original-upstream-alter_table', async () => { + await fixtures.runFixtureTests([ "original/upstream/alter_table-1.sql", "original/upstream/alter_table-2.sql", "original/upstream/alter_table-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-arrays.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-arrays.test.ts index a5ed04dd..bca2eb1e 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-arrays.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-arrays.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-arrays', () => { - fixtures.runFixtureTests([ +it('original-upstream-arrays', async () => { + await fixtures.runFixtureTests([ "original/upstream/arrays-1.sql", "original/upstream/arrays-2.sql", "original/upstream/arrays-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-async.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-async.test.ts index 353d1552..e57beb99 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-async.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-async.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-async', () => { - fixtures.runFixtureTests([ +it('original-upstream-async', async () => { + await fixtures.runFixtureTests([ "original/upstream/async-1.sql", "original/upstream/async-2.sql", "original/upstream/async-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-bit.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-bit.test.ts index f9e63bee..d3d8b403 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-bit.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-bit.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-bit', () => { - fixtures.runFixtureTests([ +it('original-upstream-bit', async () => { + await fixtures.runFixtureTests([ "original/upstream/bit-1.sql", "original/upstream/bit-2.sql", "original/upstream/bit-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-bitmapops.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-bitmapops.test.ts index 4e426a49..09f05d19 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-bitmapops.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-bitmapops.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-bitmapops', () => { - fixtures.runFixtureTests([ +it('original-upstream-bitmapops', async () => { + await fixtures.runFixtureTests([ "original/upstream/bitmapops-1.sql", "original/upstream/bitmapops-2.sql", "original/upstream/bitmapops-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-boolean.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-boolean.test.ts index 8787a29e..ab3fbaf7 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-boolean.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-boolean.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-boolean', () => { - fixtures.runFixtureTests([ +it('original-upstream-boolean', async () => { + await fixtures.runFixtureTests([ "original/upstream/boolean-1.sql", "original/upstream/boolean-2.sql", "original/upstream/boolean-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-box.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-box.test.ts index 66922325..a415aeed 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-box.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-box.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-box', () => { - fixtures.runFixtureTests([ +it('original-upstream-box', async () => { + await fixtures.runFixtureTests([ "original/upstream/box-1.sql", "original/upstream/box-2.sql", "original/upstream/box-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-brin.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-brin.test.ts index 8652f56c..7887eeb8 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-brin.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-brin.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-brin', () => { - fixtures.runFixtureTests([ +it('original-upstream-brin', async () => { + await fixtures.runFixtureTests([ "original/upstream/brin-1.sql", "original/upstream/brin-2.sql", "original/upstream/brin-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-btree_index.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-btree_index.test.ts index 63be25c3..a010d677 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-btree_index.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-btree_index.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-btree_index', () => { - fixtures.runFixtureTests([ +it('original-upstream-btree_index', async () => { + await fixtures.runFixtureTests([ "original/upstream/btree_index-1.sql", "original/upstream/btree_index-2.sql", "original/upstream/btree_index-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-case.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-case.test.ts index 40bd759d..f1b76d2e 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-case.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-case.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-case', () => { - fixtures.runFixtureTests([ +it('original-upstream-case', async () => { + await fixtures.runFixtureTests([ "original/upstream/case-1.sql", "original/upstream/case-2.sql", "original/upstream/case-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-char.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-char.test.ts index 4ba2288b..cfca9d55 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-char.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-char.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-char', () => { - fixtures.runFixtureTests([ +it('original-upstream-char', async () => { + await fixtures.runFixtureTests([ "original/upstream/char-1.sql", "original/upstream/char-2.sql", "original/upstream/char-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-circle.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-circle.test.ts index 93503dc2..3b51f7ec 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-circle.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-circle.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-circle', () => { - fixtures.runFixtureTests([ +it('original-upstream-circle', async () => { + await fixtures.runFixtureTests([ "original/upstream/circle-1.sql", "original/upstream/circle-2.sql", "original/upstream/circle-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-cluster.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-cluster.test.ts index 4abe1214..f9b5343d 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-cluster.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-cluster.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-cluster', () => { - fixtures.runFixtureTests([ +it('original-upstream-cluster', async () => { + await fixtures.runFixtureTests([ "original/upstream/cluster-1.sql", "original/upstream/cluster-2.sql", "original/upstream/cluster-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-collate.linux.utf8.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-collate.linux.utf8.test.ts index 1b982b32..e321c10c 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-collate.linux.utf8.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-collate.linux.utf8.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-collate.linux.utf8', () => { - fixtures.runFixtureTests([ +it('original-upstream-collate.linux.utf8', async () => { + await fixtures.runFixtureTests([ "original/upstream/collate.linux.utf8-1.sql", "original/upstream/collate.linux.utf8-2.sql", "original/upstream/collate.linux.utf8-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-collate.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-collate.test.ts index 6bbf5bcd..7fd3995e 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-collate.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-collate.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-collate', () => { - fixtures.runFixtureTests([ +it('original-upstream-collate', async () => { + await fixtures.runFixtureTests([ "original/upstream/collate-1.sql", "original/upstream/collate-2.sql", "original/upstream/collate-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-combocid.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-combocid.test.ts index e4a82c47..29f61285 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-combocid.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-combocid.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-combocid', () => { - fixtures.runFixtureTests([ +it('original-upstream-combocid', async () => { + await fixtures.runFixtureTests([ "original/upstream/combocid-1.sql", "original/upstream/combocid-2.sql", "original/upstream/combocid-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-comments.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-comments.test.ts index be94fdae..9f2c7882 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-comments.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-comments.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-comments', () => { - fixtures.runFixtureTests([ +it('original-upstream-comments', async () => { + await fixtures.runFixtureTests([ "original/upstream/comments-1.sql", "original/upstream/comments-2.sql", "original/upstream/comments-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-conversion.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-conversion.test.ts index 58ebaca6..7f584c02 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-conversion.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-conversion.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-conversion', () => { - fixtures.runFixtureTests([ +it('original-upstream-conversion', async () => { + await fixtures.runFixtureTests([ "original/upstream/conversion-1.sql", "original/upstream/conversion-2.sql", "original/upstream/conversion-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-copy2.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-copy2.test.ts index ff66509a..7f2b113e 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-copy2.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-copy2.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-copy2', () => { - fixtures.runFixtureTests([ +it('original-upstream-copy2', async () => { + await fixtures.runFixtureTests([ "original/upstream/copy2-1.sql", "original/upstream/copy2-2.sql", "original/upstream/copy2-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-copydml.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-copydml.test.ts index d8da5c16..fc8ab9d2 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-copydml.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-copydml.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-copydml', () => { - fixtures.runFixtureTests([ +it('original-upstream-copydml', async () => { + await fixtures.runFixtureTests([ "original/upstream/copydml-1.sql", "original/upstream/copydml-2.sql", "original/upstream/copydml-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-copyselect.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-copyselect.test.ts index 8397ba59..a08dc153 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-copyselect.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-copyselect.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-copyselect', () => { - fixtures.runFixtureTests([ +it('original-upstream-copyselect', async () => { + await fixtures.runFixtureTests([ "original/upstream/copyselect-1.sql", "original/upstream/copyselect-2.sql", "original/upstream/copyselect-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-create_aggregate.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-create_aggregate.test.ts index fa53682d..da6189a3 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-create_aggregate.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-create_aggregate.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-create_aggregate', () => { - fixtures.runFixtureTests([ +it('original-upstream-create_aggregate', async () => { + await fixtures.runFixtureTests([ "original/upstream/create_aggregate-1.sql", "original/upstream/create_aggregate-2.sql", "original/upstream/create_aggregate-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-create_am.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-create_am.test.ts index 5552cf13..ea112cf6 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-create_am.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-create_am.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-create_am', () => { - fixtures.runFixtureTests([ +it('original-upstream-create_am', async () => { + await fixtures.runFixtureTests([ "original/upstream/create_am-1.sql", "original/upstream/create_am-2.sql", "original/upstream/create_am-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-create_cast.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-create_cast.test.ts index bbeca746..2f6efd45 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-create_cast.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-create_cast.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-create_cast', () => { - fixtures.runFixtureTests([ +it('original-upstream-create_cast', async () => { + await fixtures.runFixtureTests([ "original/upstream/create_cast-1.sql", "original/upstream/create_cast-2.sql", "original/upstream/create_cast-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-create_function_3.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-create_function_3.test.ts index 2fb89117..539469c2 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-create_function_3.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-create_function_3.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-create_function_3', () => { - fixtures.runFixtureTests([ +it('original-upstream-create_function_3', async () => { + await fixtures.runFixtureTests([ "original/upstream/create_function_3-1.sql", "original/upstream/create_function_3-2.sql", "original/upstream/create_function_3-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-create_index.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-create_index.test.ts index 76b5fffd..a855a8df 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-create_index.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-create_index.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-create_index', () => { - fixtures.runFixtureTests([ +it('original-upstream-create_index', async () => { + await fixtures.runFixtureTests([ "original/upstream/create_index-1.sql", "original/upstream/create_index-2.sql", "original/upstream/create_index-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-create_misc.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-create_misc.test.ts index 09e15359..c15aa366 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-create_misc.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-create_misc.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-create_misc', () => { - fixtures.runFixtureTests([ +it('original-upstream-create_misc', async () => { + await fixtures.runFixtureTests([ "original/upstream/create_misc-1.sql", "original/upstream/create_misc-2.sql", "original/upstream/create_misc-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-create_operator.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-create_operator.test.ts index 3ee52935..f0b4245a 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-create_operator.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-create_operator.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-create_operator', () => { - fixtures.runFixtureTests([ +it('original-upstream-create_operator', async () => { + await fixtures.runFixtureTests([ "original/upstream/create_operator-1.sql", "original/upstream/create_operator-2.sql", "original/upstream/create_operator-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-create_table.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-create_table.test.ts index e8cc9e08..48febc7f 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-create_table.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-create_table.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-create_table', () => { - fixtures.runFixtureTests([ +it('original-upstream-create_table', async () => { + await fixtures.runFixtureTests([ "original/upstream/create_table-1.sql", "original/upstream/create_table-2.sql", "original/upstream/create_table-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-create_table_like.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-create_table_like.test.ts index ce82d37f..dc29e26c 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-create_table_like.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-create_table_like.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-create_table_like', () => { - fixtures.runFixtureTests([ +it('original-upstream-create_table_like', async () => { + await fixtures.runFixtureTests([ "original/upstream/create_table_like-1.sql", "original/upstream/create_table_like-2.sql", "original/upstream/create_table_like-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-create_type.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-create_type.test.ts index 4b333d73..cefbfc04 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-create_type.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-create_type.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-create_type', () => { - fixtures.runFixtureTests([ +it('original-upstream-create_type', async () => { + await fixtures.runFixtureTests([ "original/upstream/create_type-1.sql", "original/upstream/create_type-2.sql", "original/upstream/create_type-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-create_view.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-create_view.test.ts index 8c1ca9e9..bc110785 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-create_view.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-create_view.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-create_view', () => { - fixtures.runFixtureTests([ +it('original-upstream-create_view', async () => { + await fixtures.runFixtureTests([ "original/upstream/create_view-1.sql", "original/upstream/create_view-2.sql", "original/upstream/create_view-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-date.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-date.test.ts index 9d51438b..f3e95670 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-date.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-date.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-date', () => { - fixtures.runFixtureTests([ +it('original-upstream-date', async () => { + await fixtures.runFixtureTests([ "original/upstream/date-1.sql", "original/upstream/date-2.sql", "original/upstream/date-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-dbsize.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-dbsize.test.ts index ac8c7ebd..ca72a45a 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-dbsize.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-dbsize.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-dbsize', () => { - fixtures.runFixtureTests([ +it('original-upstream-dbsize', async () => { + await fixtures.runFixtureTests([ "original/upstream/dbsize-1.sql", "original/upstream/dbsize-2.sql", "original/upstream/dbsize-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-delete.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-delete.test.ts index 9ade3791..dec936d9 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-delete.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-delete.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-delete', () => { - fixtures.runFixtureTests([ +it('original-upstream-delete', async () => { + await fixtures.runFixtureTests([ "original/upstream/delete-1.sql", "original/upstream/delete-2.sql", "original/upstream/delete-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-dependency.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-dependency.test.ts index b538f746..ba62562c 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-dependency.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-dependency.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-dependency', () => { - fixtures.runFixtureTests([ +it('original-upstream-dependency', async () => { + await fixtures.runFixtureTests([ "original/upstream/dependency-1.sql", "original/upstream/dependency-2.sql", "original/upstream/dependency-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-domain.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-domain.test.ts index 86872c76..9d30c576 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-domain.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-domain.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-domain', () => { - fixtures.runFixtureTests([ +it('original-upstream-domain', async () => { + await fixtures.runFixtureTests([ "original/upstream/domain-1.sql", "original/upstream/domain-2.sql", "original/upstream/domain-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-drop_if_exists.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-drop_if_exists.test.ts index 71e95eff..0091980d 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-drop_if_exists.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-drop_if_exists.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-drop_if_exists', () => { - fixtures.runFixtureTests([ +it('original-upstream-drop_if_exists', async () => { + await fixtures.runFixtureTests([ "original/upstream/drop_if_exists-1.sql", "original/upstream/drop_if_exists-2.sql", "original/upstream/drop_if_exists-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-drop_operator.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-drop_operator.test.ts index e31cad58..ce597e2a 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-drop_operator.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-drop_operator.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-drop_operator', () => { - fixtures.runFixtureTests([ +it('original-upstream-drop_operator', async () => { + await fixtures.runFixtureTests([ "original/upstream/drop_operator-1.sql", "original/upstream/drop_operator-2.sql", "original/upstream/drop_operator-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-enum.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-enum.test.ts index 56bd1cb6..e59415de 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-enum.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-enum.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-enum', () => { - fixtures.runFixtureTests([ +it('original-upstream-enum', async () => { + await fixtures.runFixtureTests([ "original/upstream/enum-1.sql", "original/upstream/enum-2.sql", "original/upstream/enum-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-equivclass.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-equivclass.test.ts index 5c8ef3f2..17161e0b 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-equivclass.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-equivclass.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-equivclass', () => { - fixtures.runFixtureTests([ +it('original-upstream-equivclass', async () => { + await fixtures.runFixtureTests([ "original/upstream/equivclass-1.sql", "original/upstream/equivclass-2.sql", "original/upstream/equivclass-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-errors.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-errors.test.ts index 7657e759..1e3e0e80 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-errors.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-errors.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-errors', () => { - fixtures.runFixtureTests([ +it('original-upstream-errors', async () => { + await fixtures.runFixtureTests([ "original/upstream/errors-1.sql", "original/upstream/errors-2.sql", "original/upstream/errors-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-event_trigger.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-event_trigger.test.ts index 05e6db79..c5a51987 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-event_trigger.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-event_trigger.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-event_trigger', () => { - fixtures.runFixtureTests([ +it('original-upstream-event_trigger', async () => { + await fixtures.runFixtureTests([ "original/upstream/event_trigger-1.sql", "original/upstream/event_trigger-2.sql", "original/upstream/event_trigger-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-float4.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-float4.test.ts index a269e12b..91879732 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-float4.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-float4.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-float4', () => { - fixtures.runFixtureTests([ +it('original-upstream-float4', async () => { + await fixtures.runFixtureTests([ "original/upstream/float4-1.sql", "original/upstream/float4-2.sql", "original/upstream/float4-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-float8.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-float8.test.ts index 7f743692..48b3a59e 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-float8.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-float8.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-float8', () => { - fixtures.runFixtureTests([ +it('original-upstream-float8', async () => { + await fixtures.runFixtureTests([ "original/upstream/float8-1.sql", "original/upstream/float8-2.sql", "original/upstream/float8-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-foreign_data.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-foreign_data.test.ts index c58c765c..3eb254ac 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-foreign_data.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-foreign_data.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-foreign_data', () => { - fixtures.runFixtureTests([ +it('original-upstream-foreign_data', async () => { + await fixtures.runFixtureTests([ "original/upstream/foreign_data-1.sql", "original/upstream/foreign_data-2.sql", "original/upstream/foreign_data-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-foreign_key.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-foreign_key.test.ts index 95c0d35a..9b7e8717 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-foreign_key.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-foreign_key.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-foreign_key', () => { - fixtures.runFixtureTests([ +it('original-upstream-foreign_key', async () => { + await fixtures.runFixtureTests([ "original/upstream/foreign_key-1.sql", "original/upstream/foreign_key-2.sql", "original/upstream/foreign_key-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-functional_deps.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-functional_deps.test.ts index c9f75ae9..f05d1dd7 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-functional_deps.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-functional_deps.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-functional_deps', () => { - fixtures.runFixtureTests([ +it('original-upstream-functional_deps', async () => { + await fixtures.runFixtureTests([ "original/upstream/functional_deps-1.sql", "original/upstream/functional_deps-2.sql", "original/upstream/functional_deps-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-geometry.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-geometry.test.ts index 7d23e4af..890ab004 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-geometry.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-geometry.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-geometry', () => { - fixtures.runFixtureTests([ +it('original-upstream-geometry', async () => { + await fixtures.runFixtureTests([ "original/upstream/geometry-1.sql", "original/upstream/geometry-2.sql", "original/upstream/geometry-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-gin.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-gin.test.ts index 26b194df..938dc3d3 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-gin.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-gin.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-gin', () => { - fixtures.runFixtureTests([ +it('original-upstream-gin', async () => { + await fixtures.runFixtureTests([ "original/upstream/gin-1.sql", "original/upstream/gin-2.sql", "original/upstream/gin-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-gist.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-gist.test.ts index 63790fb6..13741af3 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-gist.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-gist.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-gist', () => { - fixtures.runFixtureTests([ +it('original-upstream-gist', async () => { + await fixtures.runFixtureTests([ "original/upstream/gist-1.sql", "original/upstream/gist-2.sql", "original/upstream/gist-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-groupingsets.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-groupingsets.test.ts index cb9ddc34..3168bc1d 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-groupingsets.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-groupingsets.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-groupingsets', () => { - fixtures.runFixtureTests([ +it('original-upstream-groupingsets', async () => { + await fixtures.runFixtureTests([ "original/upstream/groupingsets-1.sql", "original/upstream/groupingsets-2.sql", "original/upstream/groupingsets-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-guc.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-guc.test.ts index b9363ff2..9e2fcbe1 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-guc.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-guc.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-guc', () => { - fixtures.runFixtureTests([ +it('original-upstream-guc', async () => { + await fixtures.runFixtureTests([ "original/upstream/guc-1.sql", "original/upstream/guc-2.sql", "original/upstream/guc-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-hash_index.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-hash_index.test.ts index 546ea69c..8b110f3d 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-hash_index.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-hash_index.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-hash_index', () => { - fixtures.runFixtureTests([ +it('original-upstream-hash_index', async () => { + await fixtures.runFixtureTests([ "original/upstream/hash_index-1.sql", "original/upstream/hash_index-2.sql", "original/upstream/hash_index-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-horology.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-horology.test.ts index a1588f4c..148eb463 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-horology.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-horology.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-horology', () => { - fixtures.runFixtureTests([ +it('original-upstream-horology', async () => { + await fixtures.runFixtureTests([ "original/upstream/horology-1.sql", "original/upstream/horology-2.sql", "original/upstream/horology-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-hs_primary_extremes.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-hs_primary_extremes.test.ts index 3fa7a935..314ab74f 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-hs_primary_extremes.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-hs_primary_extremes.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-hs_primary_extremes', () => { - fixtures.runFixtureTests([ +it('original-upstream-hs_primary_extremes', async () => { + await fixtures.runFixtureTests([ "original/upstream/hs_primary_extremes-1.sql", "original/upstream/hs_primary_extremes-2.sql", "original/upstream/hs_primary_extremes-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-hs_primary_setup.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-hs_primary_setup.test.ts index b7b75766..a8ae6a96 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-hs_primary_setup.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-hs_primary_setup.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-hs_primary_setup', () => { - fixtures.runFixtureTests([ +it('original-upstream-hs_primary_setup', async () => { + await fixtures.runFixtureTests([ "original/upstream/hs_primary_setup-1.sql", "original/upstream/hs_primary_setup-2.sql", "original/upstream/hs_primary_setup-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-hs_standby_allowed.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-hs_standby_allowed.test.ts index eabc34e9..4cc68b64 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-hs_standby_allowed.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-hs_standby_allowed.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-hs_standby_allowed', () => { - fixtures.runFixtureTests([ +it('original-upstream-hs_standby_allowed', async () => { + await fixtures.runFixtureTests([ "original/upstream/hs_standby_allowed-1.sql", "original/upstream/hs_standby_allowed-2.sql", "original/upstream/hs_standby_allowed-3.sql" diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-hs_standby_check.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-hs_standby_check.test.ts index 46fb1614..530d8d0f 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-hs_standby_check.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-hs_standby_check.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-hs_standby_check', () => { - fixtures.runFixtureTests([ +it('original-upstream-hs_standby_check', async () => { + await fixtures.runFixtureTests([ "original/upstream/hs_standby_check-1.sql" ]); }); diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-hs_standby_disallowed.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-hs_standby_disallowed.test.ts index 3d169460..44470c0f 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-hs_standby_disallowed.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-hs_standby_disallowed.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-hs_standby_disallowed', () => { - fixtures.runFixtureTests([ +it('original-upstream-hs_standby_disallowed', async () => { + await fixtures.runFixtureTests([ "original/upstream/hs_standby_disallowed-1.sql", "original/upstream/hs_standby_disallowed-2.sql", "original/upstream/hs_standby_disallowed-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-hs_standby_functions.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-hs_standby_functions.test.ts index 18f3c131..51dd2143 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-hs_standby_functions.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-hs_standby_functions.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-hs_standby_functions', () => { - fixtures.runFixtureTests([ +it('original-upstream-hs_standby_functions', async () => { + await fixtures.runFixtureTests([ "original/upstream/hs_standby_functions-1.sql", "original/upstream/hs_standby_functions-2.sql", "original/upstream/hs_standby_functions-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-indirect_toast.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-indirect_toast.test.ts index 3bd4d55a..7aa1cc6c 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-indirect_toast.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-indirect_toast.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-indirect_toast', () => { - fixtures.runFixtureTests([ +it('original-upstream-indirect_toast', async () => { + await fixtures.runFixtureTests([ "original/upstream/indirect_toast-1.sql", "original/upstream/indirect_toast-2.sql", "original/upstream/indirect_toast-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-inet.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-inet.test.ts index 8a61bf98..30522267 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-inet.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-inet.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-inet', () => { - fixtures.runFixtureTests([ +it('original-upstream-inet', async () => { + await fixtures.runFixtureTests([ "original/upstream/inet-1.sql", "original/upstream/inet-2.sql", "original/upstream/inet-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-inherit.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-inherit.test.ts index c6bff9a7..3dca572c 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-inherit.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-inherit.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-inherit', () => { - fixtures.runFixtureTests([ +it('original-upstream-inherit', async () => { + await fixtures.runFixtureTests([ "original/upstream/inherit-1.sql", "original/upstream/inherit-2.sql", "original/upstream/inherit-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-init_privs.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-init_privs.test.ts index 28f6749a..1095cc16 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-init_privs.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-init_privs.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-init_privs', () => { - fixtures.runFixtureTests([ +it('original-upstream-init_privs', async () => { + await fixtures.runFixtureTests([ "original/upstream/init_privs-1.sql", "original/upstream/init_privs-2.sql", "original/upstream/init_privs-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-insert.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-insert.test.ts index d9eb5672..5343a6c8 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-insert.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-insert.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-insert', () => { - fixtures.runFixtureTests([ +it('original-upstream-insert', async () => { + await fixtures.runFixtureTests([ "original/upstream/insert-1.sql", "original/upstream/insert-2.sql", "original/upstream/insert-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-insert_conflict.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-insert_conflict.test.ts index 3c95297c..6a564e3b 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-insert_conflict.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-insert_conflict.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-insert_conflict', () => { - fixtures.runFixtureTests([ +it('original-upstream-insert_conflict', async () => { + await fixtures.runFixtureTests([ "original/upstream/insert_conflict-1.sql", "original/upstream/insert_conflict-2.sql", "original/upstream/insert_conflict-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-int2.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-int2.test.ts index 2f50186e..31de2049 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-int2.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-int2.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-int2', () => { - fixtures.runFixtureTests([ +it('original-upstream-int2', async () => { + await fixtures.runFixtureTests([ "original/upstream/int2-1.sql", "original/upstream/int2-2.sql", "original/upstream/int2-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-int4.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-int4.test.ts index 9a47d267..94008b06 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-int4.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-int4.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-int4', () => { - fixtures.runFixtureTests([ +it('original-upstream-int4', async () => { + await fixtures.runFixtureTests([ "original/upstream/int4-1.sql", "original/upstream/int4-2.sql", "original/upstream/int4-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-int8.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-int8.test.ts index 677baa18..88707abc 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-int8.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-int8.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-int8', () => { - fixtures.runFixtureTests([ +it('original-upstream-int8', async () => { + await fixtures.runFixtureTests([ "original/upstream/int8-1.sql", "original/upstream/int8-2.sql", "original/upstream/int8-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-interval.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-interval.test.ts index ac4d327f..c16c90f8 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-interval.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-interval.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-interval', () => { - fixtures.runFixtureTests([ +it('original-upstream-interval', async () => { + await fixtures.runFixtureTests([ "original/upstream/interval-1.sql", "original/upstream/interval-2.sql", "original/upstream/interval-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-join.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-join.test.ts index 415f2eba..ddd3c53a 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-join.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-join.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-join', () => { - fixtures.runFixtureTests([ +it('original-upstream-join', async () => { + await fixtures.runFixtureTests([ "original/upstream/join-1.sql", "original/upstream/join-2.sql", "original/upstream/join-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-json.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-json.test.ts index d72b83e0..d6fa3469 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-json.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-json.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-json', () => { - fixtures.runFixtureTests([ +it('original-upstream-json', async () => { + await fixtures.runFixtureTests([ "original/upstream/json-1.sql", "original/upstream/json-2.sql", "original/upstream/json-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-json_encoding.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-json_encoding.test.ts index a482e179..a757258e 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-json_encoding.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-json_encoding.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-json_encoding', () => { - fixtures.runFixtureTests([ +it('original-upstream-json_encoding', async () => { + await fixtures.runFixtureTests([ "original/upstream/json_encoding-1.sql", "original/upstream/json_encoding-2.sql", "original/upstream/json_encoding-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-jsonb.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-jsonb.test.ts index ceadbaff..08119154 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-jsonb.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-jsonb.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-jsonb', () => { - fixtures.runFixtureTests([ +it('original-upstream-jsonb', async () => { + await fixtures.runFixtureTests([ "original/upstream/jsonb-1.sql", "original/upstream/jsonb-2.sql", "original/upstream/jsonb-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-limit.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-limit.test.ts index 33a5de28..1c341a24 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-limit.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-limit.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-limit', () => { - fixtures.runFixtureTests([ +it('original-upstream-limit', async () => { + await fixtures.runFixtureTests([ "original/upstream/limit-1.sql", "original/upstream/limit-2.sql", "original/upstream/limit-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-line.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-line.test.ts index e8f3db26..8b69d3be 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-line.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-line.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-line', () => { - fixtures.runFixtureTests([ +it('original-upstream-line', async () => { + await fixtures.runFixtureTests([ "original/upstream/line-1.sql", "original/upstream/line-2.sql", "original/upstream/line-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-lock.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-lock.test.ts index e3a3f48c..73699a25 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-lock.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-lock.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-lock', () => { - fixtures.runFixtureTests([ +it('original-upstream-lock', async () => { + await fixtures.runFixtureTests([ "original/upstream/lock-1.sql", "original/upstream/lock-2.sql", "original/upstream/lock-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-lseg.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-lseg.test.ts index cfce7b1b..d33b9b74 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-lseg.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-lseg.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-lseg', () => { - fixtures.runFixtureTests([ +it('original-upstream-lseg', async () => { + await fixtures.runFixtureTests([ "original/upstream/lseg-1.sql", "original/upstream/lseg-2.sql", "original/upstream/lseg-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-macaddr.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-macaddr.test.ts index 5ab2c4bd..ab3e0d99 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-macaddr.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-macaddr.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-macaddr', () => { - fixtures.runFixtureTests([ +it('original-upstream-macaddr', async () => { + await fixtures.runFixtureTests([ "original/upstream/macaddr-1.sql", "original/upstream/macaddr-2.sql", "original/upstream/macaddr-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-matview.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-matview.test.ts index 612ae53c..953a2d2e 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-matview.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-matview.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-matview', () => { - fixtures.runFixtureTests([ +it('original-upstream-matview', async () => { + await fixtures.runFixtureTests([ "original/upstream/matview-1.sql", "original/upstream/matview-2.sql", "original/upstream/matview-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-misc_functions.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-misc_functions.test.ts index 9c5f5686..39a05fa2 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-misc_functions.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-misc_functions.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-misc_functions', () => { - fixtures.runFixtureTests([ +it('original-upstream-misc_functions', async () => { + await fixtures.runFixtureTests([ "original/upstream/misc_functions-1.sql", "original/upstream/misc_functions-2.sql", "original/upstream/misc_functions-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-money.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-money.test.ts index f8c53d8b..412625cf 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-money.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-money.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-money', () => { - fixtures.runFixtureTests([ +it('original-upstream-money', async () => { + await fixtures.runFixtureTests([ "original/upstream/money-1.sql", "original/upstream/money-2.sql", "original/upstream/money-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-name.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-name.test.ts index 22885fec..aa07e1f9 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-name.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-name.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-name', () => { - fixtures.runFixtureTests([ +it('original-upstream-name', async () => { + await fixtures.runFixtureTests([ "original/upstream/name-1.sql", "original/upstream/name-2.sql", "original/upstream/name-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-namespace.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-namespace.test.ts index e45d6471..d2403af6 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-namespace.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-namespace.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-namespace', () => { - fixtures.runFixtureTests([ +it('original-upstream-namespace', async () => { + await fixtures.runFixtureTests([ "original/upstream/namespace-1.sql", "original/upstream/namespace-2.sql", "original/upstream/namespace-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-numeric.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-numeric.test.ts index 2310b3fe..59abaacb 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-numeric.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-numeric.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-numeric', () => { - fixtures.runFixtureTests([ +it('original-upstream-numeric', async () => { + await fixtures.runFixtureTests([ "original/upstream/numeric-1.sql", "original/upstream/numeric-2.sql", "original/upstream/numeric-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-numeric_big.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-numeric_big.test.ts index d1335026..afcdabc3 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-numeric_big.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-numeric_big.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-numeric_big', () => { - fixtures.runFixtureTests([ +it('original-upstream-numeric_big', async () => { + await fixtures.runFixtureTests([ "original/upstream/numeric_big-1.sql", "original/upstream/numeric_big-2.sql", "original/upstream/numeric_big-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-numerology.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-numerology.test.ts index e5d8db6e..757f184d 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-numerology.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-numerology.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-numerology', () => { - fixtures.runFixtureTests([ +it('original-upstream-numerology', async () => { + await fixtures.runFixtureTests([ "original/upstream/numerology-1.sql", "original/upstream/numerology-2.sql", "original/upstream/numerology-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-object_address.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-object_address.test.ts index 1aa2a279..eaa040fd 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-object_address.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-object_address.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-object_address', () => { - fixtures.runFixtureTests([ +it('original-upstream-object_address', async () => { + await fixtures.runFixtureTests([ "original/upstream/object_address-1.sql", "original/upstream/object_address-2.sql", "original/upstream/object_address-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-oid.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-oid.test.ts index 81d195e3..ad80162a 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-oid.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-oid.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-oid', () => { - fixtures.runFixtureTests([ +it('original-upstream-oid', async () => { + await fixtures.runFixtureTests([ "original/upstream/oid-1.sql", "original/upstream/oid-2.sql", "original/upstream/oid-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-oidjoins.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-oidjoins.test.ts index a17822af..cb420ede 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-oidjoins.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-oidjoins.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-oidjoins', () => { - fixtures.runFixtureTests([ +it('original-upstream-oidjoins', async () => { + await fixtures.runFixtureTests([ "original/upstream/oidjoins-1.sql", "original/upstream/oidjoins-2.sql", "original/upstream/oidjoins-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-opr_sanity.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-opr_sanity.test.ts index b3dec8b5..c167c13c 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-opr_sanity.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-opr_sanity.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-opr_sanity', () => { - fixtures.runFixtureTests([ +it('original-upstream-opr_sanity', async () => { + await fixtures.runFixtureTests([ "original/upstream/opr_sanity-1.sql", "original/upstream/opr_sanity-2.sql", "original/upstream/opr_sanity-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-path.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-path.test.ts index b205f7c8..e6e67518 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-path.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-path.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-path', () => { - fixtures.runFixtureTests([ +it('original-upstream-path', async () => { + await fixtures.runFixtureTests([ "original/upstream/path-1.sql", "original/upstream/path-2.sql", "original/upstream/path-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-pg_lsn.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-pg_lsn.test.ts index 2e510101..714787ce 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-pg_lsn.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-pg_lsn.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-pg_lsn', () => { - fixtures.runFixtureTests([ +it('original-upstream-pg_lsn', async () => { + await fixtures.runFixtureTests([ "original/upstream/pg_lsn-1.sql", "original/upstream/pg_lsn-2.sql", "original/upstream/pg_lsn-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-plancache.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-plancache.test.ts index 4ef4234e..f247f876 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-plancache.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-plancache.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-plancache', () => { - fixtures.runFixtureTests([ +it('original-upstream-plancache', async () => { + await fixtures.runFixtureTests([ "original/upstream/plancache-1.sql", "original/upstream/plancache-2.sql", "original/upstream/plancache-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-plpgsql.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-plpgsql.test.ts index 454e3704..2d649fd8 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-plpgsql.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-plpgsql.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-plpgsql', () => { - fixtures.runFixtureTests([ +it('original-upstream-plpgsql', async () => { + await fixtures.runFixtureTests([ "original/upstream/plpgsql-1.sql", "original/upstream/plpgsql-2.sql", "original/upstream/plpgsql-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-point.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-point.test.ts index 7c7a2b38..8d0c38a7 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-point.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-point.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-point', () => { - fixtures.runFixtureTests([ +it('original-upstream-point', async () => { + await fixtures.runFixtureTests([ "original/upstream/point-1.sql", "original/upstream/point-2.sql", "original/upstream/point-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-polygon.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-polygon.test.ts index eea4410f..27cf9ab3 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-polygon.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-polygon.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-polygon', () => { - fixtures.runFixtureTests([ +it('original-upstream-polygon', async () => { + await fixtures.runFixtureTests([ "original/upstream/polygon-1.sql", "original/upstream/polygon-2.sql", "original/upstream/polygon-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-polymorphism.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-polymorphism.test.ts index 64140a77..a8023423 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-polymorphism.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-polymorphism.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-polymorphism', () => { - fixtures.runFixtureTests([ +it('original-upstream-polymorphism', async () => { + await fixtures.runFixtureTests([ "original/upstream/polymorphism-1.sql", "original/upstream/polymorphism-2.sql", "original/upstream/polymorphism-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-portals.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-portals.test.ts index 774ac7f8..7c648ded 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-portals.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-portals.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-portals', () => { - fixtures.runFixtureTests([ +it('original-upstream-portals', async () => { + await fixtures.runFixtureTests([ "original/upstream/portals-1.sql", "original/upstream/portals-2.sql", "original/upstream/portals-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-portals_p2.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-portals_p2.test.ts index fcc2645b..68c9d16a 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-portals_p2.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-portals_p2.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-portals_p2', () => { - fixtures.runFixtureTests([ +it('original-upstream-portals_p2', async () => { + await fixtures.runFixtureTests([ "original/upstream/portals_p2-1.sql", "original/upstream/portals_p2-2.sql", "original/upstream/portals_p2-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-prepare.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-prepare.test.ts index 41ba2d87..79db47bf 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-prepare.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-prepare.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-prepare', () => { - fixtures.runFixtureTests([ +it('original-upstream-prepare', async () => { + await fixtures.runFixtureTests([ "original/upstream/prepare-1.sql", "original/upstream/prepare-2.sql", "original/upstream/prepare-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-prepared_xacts.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-prepared_xacts.test.ts index 3010002b..e07bfd9a 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-prepared_xacts.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-prepared_xacts.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-prepared_xacts', () => { - fixtures.runFixtureTests([ +it('original-upstream-prepared_xacts', async () => { + await fixtures.runFixtureTests([ "original/upstream/prepared_xacts-1.sql", "original/upstream/prepared_xacts-2.sql", "original/upstream/prepared_xacts-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-privileges.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-privileges.test.ts index d0df31d3..f2246882 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-privileges.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-privileges.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-privileges', () => { - fixtures.runFixtureTests([ +it('original-upstream-privileges', async () => { + await fixtures.runFixtureTests([ "original/upstream/privileges-1.sql", "original/upstream/privileges-2.sql", "original/upstream/privileges-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-psql.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-psql.test.ts index 54e7ae42..dea5d376 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-psql.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-psql.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-psql', () => { - fixtures.runFixtureTests([ +it('original-upstream-psql', async () => { + await fixtures.runFixtureTests([ "original/upstream/psql-1.sql", "original/upstream/psql-2.sql", "original/upstream/psql-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-psql_crosstab.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-psql_crosstab.test.ts index 4055ec2b..477579bf 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-psql_crosstab.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-psql_crosstab.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-psql_crosstab', () => { - fixtures.runFixtureTests([ +it('original-upstream-psql_crosstab', async () => { + await fixtures.runFixtureTests([ "original/upstream/psql_crosstab-1.sql", "original/upstream/psql_crosstab-2.sql", "original/upstream/psql_crosstab-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-random.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-random.test.ts index 89577565..239b50be 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-random.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-random.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-random', () => { - fixtures.runFixtureTests([ +it('original-upstream-random', async () => { + await fixtures.runFixtureTests([ "original/upstream/random-1.sql", "original/upstream/random-2.sql", "original/upstream/random-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-rangefuncs.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-rangefuncs.test.ts index 970da5a5..b0a5c800 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-rangefuncs.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-rangefuncs.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-rangefuncs', () => { - fixtures.runFixtureTests([ +it('original-upstream-rangefuncs', async () => { + await fixtures.runFixtureTests([ "original/upstream/rangefuncs-1.sql", "original/upstream/rangefuncs-2.sql", "original/upstream/rangefuncs-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-rangetypes.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-rangetypes.test.ts index c3454a46..c51fdff0 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-rangetypes.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-rangetypes.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-rangetypes', () => { - fixtures.runFixtureTests([ +it('original-upstream-rangetypes', async () => { + await fixtures.runFixtureTests([ "original/upstream/rangetypes-1.sql", "original/upstream/rangetypes-2.sql", "original/upstream/rangetypes-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-regex.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-regex.test.ts index c88f356f..05bbb2c8 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-regex.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-regex.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-regex', () => { - fixtures.runFixtureTests([ +it('original-upstream-regex', async () => { + await fixtures.runFixtureTests([ "original/upstream/regex-1.sql", "original/upstream/regex-2.sql", "original/upstream/regex-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-regproc.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-regproc.test.ts index 1433bb2b..eaa6fa88 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-regproc.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-regproc.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-regproc', () => { - fixtures.runFixtureTests([ +it('original-upstream-regproc', async () => { + await fixtures.runFixtureTests([ "original/upstream/regproc-1.sql", "original/upstream/regproc-2.sql", "original/upstream/regproc-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-reltime.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-reltime.test.ts index eb6e9d77..e3071fac 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-reltime.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-reltime.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-reltime', () => { - fixtures.runFixtureTests([ +it('original-upstream-reltime', async () => { + await fixtures.runFixtureTests([ "original/upstream/reltime-1.sql", "original/upstream/reltime-2.sql", "original/upstream/reltime-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-replica_identity.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-replica_identity.test.ts index 67e35c1a..1101792d 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-replica_identity.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-replica_identity.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-replica_identity', () => { - fixtures.runFixtureTests([ +it('original-upstream-replica_identity', async () => { + await fixtures.runFixtureTests([ "original/upstream/replica_identity-1.sql", "original/upstream/replica_identity-2.sql", "original/upstream/replica_identity-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-returning.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-returning.test.ts index 27ec82a8..30d9290f 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-returning.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-returning.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-returning', () => { - fixtures.runFixtureTests([ +it('original-upstream-returning', async () => { + await fixtures.runFixtureTests([ "original/upstream/returning-1.sql", "original/upstream/returning-2.sql", "original/upstream/returning-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-roleattributes.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-roleattributes.test.ts index f9e5cc5e..9de39e39 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-roleattributes.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-roleattributes.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-roleattributes', () => { - fixtures.runFixtureTests([ +it('original-upstream-roleattributes', async () => { + await fixtures.runFixtureTests([ "original/upstream/roleattributes-1.sql", "original/upstream/roleattributes-2.sql", "original/upstream/roleattributes-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-rolenames.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-rolenames.test.ts index 95071252..dd03b656 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-rolenames.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-rolenames.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-rolenames', () => { - fixtures.runFixtureTests([ +it('original-upstream-rolenames', async () => { + await fixtures.runFixtureTests([ "original/upstream/rolenames-1.sql", "original/upstream/rolenames-2.sql", "original/upstream/rolenames-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-rowsecurity.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-rowsecurity.test.ts index 67c0b8b2..62b1ca83 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-rowsecurity.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-rowsecurity.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-rowsecurity', () => { - fixtures.runFixtureTests([ +it('original-upstream-rowsecurity', async () => { + await fixtures.runFixtureTests([ "original/upstream/rowsecurity-1.sql", "original/upstream/rowsecurity-2.sql", "original/upstream/rowsecurity-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-rowtypes.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-rowtypes.test.ts index 99c84342..817ae31a 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-rowtypes.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-rowtypes.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-rowtypes', () => { - fixtures.runFixtureTests([ +it('original-upstream-rowtypes', async () => { + await fixtures.runFixtureTests([ "original/upstream/rowtypes-1.sql", "original/upstream/rowtypes-2.sql", "original/upstream/rowtypes-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-rules.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-rules.test.ts index 440c962f..a9a954eb 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-rules.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-rules.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-rules', () => { - fixtures.runFixtureTests([ +it('original-upstream-rules', async () => { + await fixtures.runFixtureTests([ "original/upstream/rules-1.sql", "original/upstream/rules-2.sql", "original/upstream/rules-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-sanity_check.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-sanity_check.test.ts index 7357b007..0c968351 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-sanity_check.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-sanity_check.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-sanity_check', () => { - fixtures.runFixtureTests([ +it('original-upstream-sanity_check', async () => { + await fixtures.runFixtureTests([ "original/upstream/sanity_check-1.sql", "original/upstream/sanity_check-2.sql", "original/upstream/sanity_check-3.sql" diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-security_label.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-security_label.test.ts index b50ca846..02b098e5 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-security_label.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-security_label.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-security_label', () => { - fixtures.runFixtureTests([ +it('original-upstream-security_label', async () => { + await fixtures.runFixtureTests([ "original/upstream/security_label-1.sql", "original/upstream/security_label-2.sql", "original/upstream/security_label-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-select.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-select.test.ts index 3e9441b7..d874464c 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-select.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-select.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-select', () => { - fixtures.runFixtureTests([ +it('original-upstream-select', async () => { + await fixtures.runFixtureTests([ "original/upstream/select-1.sql", "original/upstream/select-2.sql", "original/upstream/select-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-select_distinct.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-select_distinct.test.ts index 5d56d135..8e62794c 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-select_distinct.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-select_distinct.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-select_distinct', () => { - fixtures.runFixtureTests([ +it('original-upstream-select_distinct', async () => { + await fixtures.runFixtureTests([ "original/upstream/select_distinct-1.sql", "original/upstream/select_distinct-2.sql", "original/upstream/select_distinct-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-select_distinct_on.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-select_distinct_on.test.ts index c3288758..28959e96 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-select_distinct_on.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-select_distinct_on.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-select_distinct_on', () => { - fixtures.runFixtureTests([ +it('original-upstream-select_distinct_on', async () => { + await fixtures.runFixtureTests([ "original/upstream/select_distinct_on-1.sql", "original/upstream/select_distinct_on-2.sql", "original/upstream/select_distinct_on-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-select_having.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-select_having.test.ts index d495ac6c..db61f035 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-select_having.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-select_having.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-select_having', () => { - fixtures.runFixtureTests([ +it('original-upstream-select_having', async () => { + await fixtures.runFixtureTests([ "original/upstream/select_having-1.sql", "original/upstream/select_having-2.sql", "original/upstream/select_having-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-select_implicit.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-select_implicit.test.ts index 156b3606..e214f7d2 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-select_implicit.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-select_implicit.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-select_implicit', () => { - fixtures.runFixtureTests([ +it('original-upstream-select_implicit', async () => { + await fixtures.runFixtureTests([ "original/upstream/select_implicit-1.sql", "original/upstream/select_implicit-2.sql", "original/upstream/select_implicit-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-select_into.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-select_into.test.ts index 59313dc9..6b9fff9b 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-select_into.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-select_into.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-select_into', () => { - fixtures.runFixtureTests([ +it('original-upstream-select_into', async () => { + await fixtures.runFixtureTests([ "original/upstream/select_into-1.sql", "original/upstream/select_into-2.sql", "original/upstream/select_into-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-select_views.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-select_views.test.ts index 17b7ca8b..ec8c7761 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-select_views.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-select_views.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-select_views', () => { - fixtures.runFixtureTests([ +it('original-upstream-select_views', async () => { + await fixtures.runFixtureTests([ "original/upstream/select_views-1.sql", "original/upstream/select_views-2.sql", "original/upstream/select_views-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-sequence.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-sequence.test.ts index d894e7b4..8a8962af 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-sequence.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-sequence.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-sequence', () => { - fixtures.runFixtureTests([ +it('original-upstream-sequence', async () => { + await fixtures.runFixtureTests([ "original/upstream/sequence-1.sql", "original/upstream/sequence-2.sql", "original/upstream/sequence-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-spgist.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-spgist.test.ts index 8a1281ca..2e4389f3 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-spgist.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-spgist.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-spgist', () => { - fixtures.runFixtureTests([ +it('original-upstream-spgist', async () => { + await fixtures.runFixtureTests([ "original/upstream/spgist-1.sql", "original/upstream/spgist-2.sql", "original/upstream/spgist-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-stats.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-stats.test.ts index a479de08..7d143b9f 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-stats.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-stats.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-stats', () => { - fixtures.runFixtureTests([ +it('original-upstream-stats', async () => { + await fixtures.runFixtureTests([ "original/upstream/stats-1.sql", "original/upstream/stats-2.sql", "original/upstream/stats-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-strings.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-strings.test.ts index a9fd5b5f..aa049106 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-strings.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-strings.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-strings', () => { - fixtures.runFixtureTests([ +it('original-upstream-strings', async () => { + await fixtures.runFixtureTests([ "original/upstream/strings-1.sql", "original/upstream/strings-2.sql", "original/upstream/strings-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-subselect.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-subselect.test.ts index 1d6e17c6..735e32c3 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-subselect.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-subselect.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-subselect', () => { - fixtures.runFixtureTests([ +it('original-upstream-subselect', async () => { + await fixtures.runFixtureTests([ "original/upstream/subselect-1.sql", "original/upstream/subselect-2.sql", "original/upstream/subselect-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-tablesample.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-tablesample.test.ts index 5362ed24..af285bf0 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-tablesample.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-tablesample.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-tablesample', () => { - fixtures.runFixtureTests([ +it('original-upstream-tablesample', async () => { + await fixtures.runFixtureTests([ "original/upstream/tablesample-1.sql", "original/upstream/tablesample-2.sql", "original/upstream/tablesample-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-temp.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-temp.test.ts index ff9babb8..5bb7a6eb 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-temp.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-temp.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-temp', () => { - fixtures.runFixtureTests([ +it('original-upstream-temp', async () => { + await fixtures.runFixtureTests([ "original/upstream/temp-1.sql", "original/upstream/temp-2.sql", "original/upstream/temp-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-text.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-text.test.ts index 823f1e5f..34f228da 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-text.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-text.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-text', () => { - fixtures.runFixtureTests([ +it('original-upstream-text', async () => { + await fixtures.runFixtureTests([ "original/upstream/text-1.sql", "original/upstream/text-2.sql", "original/upstream/text-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-time.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-time.test.ts index 6d62fc92..fad200aa 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-time.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-time.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-time', () => { - fixtures.runFixtureTests([ +it('original-upstream-time', async () => { + await fixtures.runFixtureTests([ "original/upstream/time-1.sql", "original/upstream/time-2.sql", "original/upstream/time-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-timestamp.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-timestamp.test.ts index 45a70565..dcd729f9 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-timestamp.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-timestamp.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-timestamp', () => { - fixtures.runFixtureTests([ +it('original-upstream-timestamp', async () => { + await fixtures.runFixtureTests([ "original/upstream/timestamp-1.sql", "original/upstream/timestamp-2.sql", "original/upstream/timestamp-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-timestamptz.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-timestamptz.test.ts index 1948fcfb..d7944c9d 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-timestamptz.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-timestamptz.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-timestamptz', () => { - fixtures.runFixtureTests([ +it('original-upstream-timestamptz', async () => { + await fixtures.runFixtureTests([ "original/upstream/timestamptz-1.sql", "original/upstream/timestamptz-2.sql", "original/upstream/timestamptz-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-timetz.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-timetz.test.ts index 951462e4..1233ce4c 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-timetz.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-timetz.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-timetz', () => { - fixtures.runFixtureTests([ +it('original-upstream-timetz', async () => { + await fixtures.runFixtureTests([ "original/upstream/timetz-1.sql", "original/upstream/timetz-2.sql", "original/upstream/timetz-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-tinterval.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-tinterval.test.ts index ab2ecb89..b3c8ee18 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-tinterval.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-tinterval.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-tinterval', () => { - fixtures.runFixtureTests([ +it('original-upstream-tinterval', async () => { + await fixtures.runFixtureTests([ "original/upstream/tinterval-1.sql", "original/upstream/tinterval-2.sql", "original/upstream/tinterval-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-transactions.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-transactions.test.ts index 6b4efbce..c8622792 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-transactions.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-transactions.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-transactions', () => { - fixtures.runFixtureTests([ +it('original-upstream-transactions', async () => { + await fixtures.runFixtureTests([ "original/upstream/transactions-1.sql", "original/upstream/transactions-2.sql", "original/upstream/transactions-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-triggers.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-triggers.test.ts index 4b5905a7..c58a47d5 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-triggers.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-triggers.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-triggers', () => { - fixtures.runFixtureTests([ +it('original-upstream-triggers', async () => { + await fixtures.runFixtureTests([ "original/upstream/triggers-1.sql", "original/upstream/triggers-2.sql", "original/upstream/triggers-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-truncate.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-truncate.test.ts index d0dd405b..f092c97b 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-truncate.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-truncate.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-truncate', () => { - fixtures.runFixtureTests([ +it('original-upstream-truncate', async () => { + await fixtures.runFixtureTests([ "original/upstream/truncate-1.sql", "original/upstream/truncate-2.sql", "original/upstream/truncate-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-tsdicts.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-tsdicts.test.ts index 3cd57cb5..69dd1967 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-tsdicts.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-tsdicts.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-tsdicts', () => { - fixtures.runFixtureTests([ +it('original-upstream-tsdicts', async () => { + await fixtures.runFixtureTests([ "original/upstream/tsdicts-1.sql", "original/upstream/tsdicts-2.sql", "original/upstream/tsdicts-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-tsearch.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-tsearch.test.ts index 1b30070a..1debec10 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-tsearch.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-tsearch.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-tsearch', () => { - fixtures.runFixtureTests([ +it('original-upstream-tsearch', async () => { + await fixtures.runFixtureTests([ "original/upstream/tsearch-1.sql", "original/upstream/tsearch-2.sql", "original/upstream/tsearch-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-tstypes.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-tstypes.test.ts index 96f823ac..59e56962 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-tstypes.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-tstypes.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-tstypes', () => { - fixtures.runFixtureTests([ +it('original-upstream-tstypes', async () => { + await fixtures.runFixtureTests([ "original/upstream/tstypes-1.sql", "original/upstream/tstypes-2.sql", "original/upstream/tstypes-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-txid.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-txid.test.ts index e031b578..2fb2c111 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-txid.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-txid.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-txid', () => { - fixtures.runFixtureTests([ +it('original-upstream-txid', async () => { + await fixtures.runFixtureTests([ "original/upstream/txid-1.sql", "original/upstream/txid-2.sql", "original/upstream/txid-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-type_sanity.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-type_sanity.test.ts index bbff5876..3cc53a7e 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-type_sanity.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-type_sanity.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-type_sanity', () => { - fixtures.runFixtureTests([ +it('original-upstream-type_sanity', async () => { + await fixtures.runFixtureTests([ "original/upstream/type_sanity-1.sql", "original/upstream/type_sanity-2.sql", "original/upstream/type_sanity-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-typed_table.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-typed_table.test.ts index 5d68696e..6278ddd4 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-typed_table.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-typed_table.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-typed_table', () => { - fixtures.runFixtureTests([ +it('original-upstream-typed_table', async () => { + await fixtures.runFixtureTests([ "original/upstream/typed_table-1.sql", "original/upstream/typed_table-2.sql", "original/upstream/typed_table-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-union.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-union.test.ts index 8c0762f3..ba922225 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-union.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-union.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-union', () => { - fixtures.runFixtureTests([ +it('original-upstream-union', async () => { + await fixtures.runFixtureTests([ "original/upstream/union-1.sql", "original/upstream/union-2.sql", "original/upstream/union-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-updatable_views.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-updatable_views.test.ts index f798374e..fbf8b586 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-updatable_views.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-updatable_views.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-updatable_views', () => { - fixtures.runFixtureTests([ +it('original-upstream-updatable_views', async () => { + await fixtures.runFixtureTests([ "original/upstream/updatable_views-1.sql", "original/upstream/updatable_views-2.sql", "original/upstream/updatable_views-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-update.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-update.test.ts index f5a2adbb..e018abb5 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-update.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-update.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-update', () => { - fixtures.runFixtureTests([ +it('original-upstream-update', async () => { + await fixtures.runFixtureTests([ "original/upstream/update-1.sql", "original/upstream/update-2.sql", "original/upstream/update-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-uuid.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-uuid.test.ts index 5ac83c1c..5889a5ca 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-uuid.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-uuid.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-uuid', () => { - fixtures.runFixtureTests([ +it('original-upstream-uuid', async () => { + await fixtures.runFixtureTests([ "original/upstream/uuid-1.sql", "original/upstream/uuid-2.sql", "original/upstream/uuid-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-vacuum.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-vacuum.test.ts index 4a707c84..59fa13dc 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-vacuum.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-vacuum.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-vacuum', () => { - fixtures.runFixtureTests([ +it('original-upstream-vacuum', async () => { + await fixtures.runFixtureTests([ "original/upstream/vacuum-1.sql", "original/upstream/vacuum-2.sql", "original/upstream/vacuum-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-varchar.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-varchar.test.ts index 9222363c..825eaa45 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-varchar.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-varchar.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-varchar', () => { - fixtures.runFixtureTests([ +it('original-upstream-varchar', async () => { + await fixtures.runFixtureTests([ "original/upstream/varchar-1.sql", "original/upstream/varchar-2.sql", "original/upstream/varchar-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-window.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-window.test.ts index a63fe051..dd0c5d38 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-window.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-window.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-window', () => { - fixtures.runFixtureTests([ +it('original-upstream-window', async () => { + await fixtures.runFixtureTests([ "original/upstream/window-1.sql", "original/upstream/window-2.sql", "original/upstream/window-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-with.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-with.test.ts index f68d17ae..ab2a22e0 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-with.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-with.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-with', () => { - fixtures.runFixtureTests([ +it('original-upstream-with', async () => { + await fixtures.runFixtureTests([ "original/upstream/with-1.sql", "original/upstream/with-2.sql", "original/upstream/with-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-xml.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-xml.test.ts index 769be54a..f1a44895 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-xml.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-xml.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-xml', () => { - fixtures.runFixtureTests([ +it('original-upstream-xml', async () => { + await fixtures.runFixtureTests([ "original/upstream/xml-1.sql", "original/upstream/xml-2.sql", "original/upstream/xml-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-upstream-xmlmap.test.ts b/packages/deparser/__tests__/kitchen-sink/original-upstream-xmlmap.test.ts index a09fff0e..a7f0bc62 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-upstream-xmlmap.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-upstream-xmlmap.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-upstream-xmlmap', () => { - fixtures.runFixtureTests([ +it('original-upstream-xmlmap', async () => { + await fixtures.runFixtureTests([ "original/upstream/xmlmap-1.sql", "original/upstream/xmlmap-2.sql", "original/upstream/xmlmap-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-views-create.test.ts b/packages/deparser/__tests__/kitchen-sink/original-views-create.test.ts index 922973eb..8aac5425 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-views-create.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-views-create.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-views-create', () => { - fixtures.runFixtureTests([ +it('original-views-create', async () => { + await fixtures.runFixtureTests([ "original/views/create-1.sql", "original/views/create-2.sql", "original/views/create-3.sql", diff --git a/packages/deparser/__tests__/kitchen-sink/original-views-replace.test.ts b/packages/deparser/__tests__/kitchen-sink/original-views-replace.test.ts index cdd88364..9a259f77 100644 --- a/packages/deparser/__tests__/kitchen-sink/original-views-replace.test.ts +++ b/packages/deparser/__tests__/kitchen-sink/original-views-replace.test.ts @@ -2,8 +2,8 @@ import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('original-views-replace', () => { - fixtures.runFixtureTests([ +it('original-views-replace', async () => { + await fixtures.runFixtureTests([ "original/views/replace-1.sql" ]); }); diff --git a/packages/deparser/package.json b/packages/deparser/package.json index 4477fcb6..1af8adb4 100644 --- a/packages/deparser/package.json +++ b/packages/deparser/package.json @@ -1,5 +1,5 @@ { - "name": "@pgsql/deparser", + "name": "pgsql-deparser", "version": "17.0.0", "author": "Dan Lynch ", "description": "PostgreSQL AST Deparser", @@ -45,11 +45,9 @@ "database" ], "devDependencies": { - "@pgsql/parser": "^17.0.0" + "libpg-query": "17.3.3" }, "dependencies": { - "@pgsql/types": "^17.0.0", - "dotty": "^0.1.0", - "pgsql-enums": "^17.0.0" + "@pgsql/types": "^17.0.0" } } \ No newline at end of file diff --git a/packages/deparser/scripts/make-fixtures-ast.ts b/packages/deparser/scripts/make-fixtures-ast.ts index f3baab75..4e1d481b 100644 --- a/packages/deparser/scripts/make-fixtures-ast.ts +++ b/packages/deparser/scripts/make-fixtures-ast.ts @@ -2,7 +2,7 @@ import * as path from 'path'; import * as fs from 'fs'; import { sync as globSync } from 'glob'; -import { parse, deparse as deparseSync } from '@pgsql/parser'; +import { parse } from 'libpg-query'; import { ParseResult, RawStmt } from '@pgsql/types'; import { cleanTree } from '../src/utils'; @@ -18,25 +18,31 @@ function ensureDir(dir: string) { ensureDir(OUT_DIR); const fixtures = globSync(`${FIXTURE_DIR}/**/*.sql`); -fixtures.forEach((fixturePath) => { - const relPath = path.relative(FIXTURE_DIR, fixturePath); - const sql = fs.readFileSync(fixturePath, 'utf-8'); - let statements: ParseResult; - try { - statements = parse(sql); - } catch (err: any) { - console.error(`Failed to parse ${relPath}:`, err); - return; + +async function main() { + for (const fixturePath of fixtures) { + const relPath = path.relative(FIXTURE_DIR, fixturePath); + const sql = fs.readFileSync(fixturePath, 'utf-8'); + let statements: ParseResult; + try { + statements = await parse(sql); + } catch (err: any) { + console.error(`Failed to parse ${relPath}:`, err); + continue; + } + + for (let idx = 0; idx < statements.stmts.length; idx++) { + const stmt = statements.stmts[idx]; + const outDir = path.join(OUT_DIR, path.dirname(relPath)); + ensureDir(outDir); + const base = path.basename(relPath, '.sql'); + const outName = `${base}-${idx + 1}.sql`; + const outPath = path.join(outDir, outName); + + fs.writeFileSync(outPath, JSON.stringify(cleanTree(stmt.stmt), null, 2)); + console.log(`Generated ${outPath}`); + } } +} - statements.stmts.forEach((stmt: RawStmt, idx: number) => { - const outDir = path.join(OUT_DIR, path.dirname(relPath)); - ensureDir(outDir); - const base = path.basename(relPath, '.sql'); - const outName = `${base}-${idx + 1}.sql`; - const outPath = path.join(outDir, outName); - - fs.writeFileSync(outPath, JSON.stringify(cleanTree(stmt.stmt), null, 2)); - console.log(`Generated ${outPath}`); - }); -}); +main().catch(console.error); diff --git a/packages/deparser/scripts/make-fixtures-sql.ts b/packages/deparser/scripts/make-fixtures-sql.ts index 5502e522..02642608 100644 --- a/packages/deparser/scripts/make-fixtures-sql.ts +++ b/packages/deparser/scripts/make-fixtures-sql.ts @@ -2,7 +2,7 @@ import * as path from 'path'; import * as fs from 'fs'; import { sync as globSync } from 'glob'; -import { parse, deparse as deparseSync } from '@pgsql/parser'; +import { parse, deparse } from 'libpg-query'; import { ParseResult, RawStmt } from '@pgsql/types'; const FIXTURE_DIR = path.join(__dirname, '../../../__fixtures__/legacy'); @@ -17,34 +17,40 @@ function ensureDir(dir: string) { ensureDir(OUT_DIR); const fixtures = globSync(`${FIXTURE_DIR}/**/*.sql`); -fixtures.forEach((fixturePath) => { - const relPath = path.relative(FIXTURE_DIR, fixturePath); - const sql = fs.readFileSync(fixturePath, 'utf-8'); - let statements: ParseResult; - try { - statements = parse(sql); - } catch (err: any) { - console.error(`Failed to parse ${relPath}:`, err); - return; - } - statements.stmts.forEach((stmt: RawStmt, idx: number) => { - const outDir = path.join(OUT_DIR, path.dirname(relPath)); - ensureDir(outDir); - const base = path.basename(relPath, '.sql'); - const outName = `${base}-${idx + 1}.sql`; - const outPath = path.join(outDir, outName); - let deparsedSql: string; +async function main() { + for (const fixturePath of fixtures) { + const relPath = path.relative(FIXTURE_DIR, fixturePath); + const sql = fs.readFileSync(fixturePath, 'utf-8'); + let statements: ParseResult; try { - deparsedSql = deparseSync({ - version: 170000, - stmts: [stmt] - }); + statements = await parse(sql); } catch (err: any) { - console.error(`Failed to deparse statement ${idx + 1} in ${relPath}:`, err); - return; + console.error(`Failed to parse ${relPath}:`, err); + continue; + } + + for (let idx = 0; idx < statements.stmts.length; idx++) { + const stmt = statements.stmts[idx]; + const outDir = path.join(OUT_DIR, path.dirname(relPath)); + ensureDir(outDir); + const base = path.basename(relPath, '.sql'); + const outName = `${base}-${idx + 1}.sql`; + const outPath = path.join(outDir, outName); + let deparsedSql: string; + try { + deparsedSql = await deparse({ + version: 170000, + stmts: [stmt] + }); + } catch (err: any) { + console.error(`Failed to deparse statement ${idx + 1} in ${relPath}:`, err); + continue; + } + fs.writeFileSync(outPath, deparsedSql); + console.log(`Generated ${outPath}`); } - fs.writeFileSync(outPath, deparsedSql); - console.log(`Generated ${outPath}`); - }); -}); + } +} + +main().catch(console.error); diff --git a/packages/deparser/scripts/make-fixtures.ts b/packages/deparser/scripts/make-fixtures.ts index 023cc4f3..7ee65a6c 100644 --- a/packages/deparser/scripts/make-fixtures.ts +++ b/packages/deparser/scripts/make-fixtures.ts @@ -2,7 +2,7 @@ import * as path from 'path'; import * as fs from 'fs'; import { sync as globSync } from 'glob'; -import { parse, deparse as deparseSync } from '@pgsql/parser'; +import { parse, deparse } from 'libpg-query'; import { ParseResult, RawStmt } from '@pgsql/types'; const FIXTURE_DIR = path.join(__dirname, '../../../__fixtures__/kitchen-sink'); @@ -18,32 +18,39 @@ ensureDir(OUT_DIR); const fixtures = globSync(`${FIXTURE_DIR}/**/*.sql`); -// Collect deparsed SQL in a single JSON -const results: Record = {}; -fixtures.forEach((fixturePath) => { - const relPath = path.relative(FIXTURE_DIR, fixturePath); - const sql = fs.readFileSync(fixturePath, 'utf-8'); - let parseResult: ParseResult; - try { - parseResult = parse(sql); - } catch (err: any) { - console.error(`Failed to parse ${relPath}:`, err); - return; - } - parseResult.stmts.forEach((stmt: RawStmt, idx: number) => { - let deparsedSql: string; +async function main() { + // Collect deparsed SQL in a single JSON + const results: Record = {}; + + for (const fixturePath of fixtures) { + const relPath = path.relative(FIXTURE_DIR, fixturePath); + const sql = fs.readFileSync(fixturePath, 'utf-8'); + let parseResult: ParseResult; try { - deparsedSql = deparseSync({ version: 170000, stmts: [stmt] }); + parseResult = await parse(sql); } catch (err: any) { - console.error(`Failed to deparse statement ${idx + 1} in ${relPath}:`, err); - return; + console.error(`Failed to parse ${relPath}:`, err); + continue; + } + + for (let idx = 0; idx < parseResult.stmts.length; idx++) { + const stmt = parseResult.stmts[idx]; + let deparsedSql: string; + try { + deparsedSql = await deparse({ version: 170000, stmts: [stmt] }); + } catch (err: any) { + console.error(`Failed to deparse statement ${idx + 1} in ${relPath}:`, err); + continue; + } + const key = `${relPath.replace(/\.sql$/, '')}-${idx + 1}.sql`; + results[key] = deparsedSql; } - const key = `${relPath.replace(/\.sql$/, '')}-${idx + 1}.sql`; - results[key] = deparsedSql; - }); -}); + } + + // Write aggregated JSON to output file + const outputFile = path.join(OUT_DIR, 'generated.json'); + fs.writeFileSync(outputFile, JSON.stringify(results, null, 2)); + console.log(`Wrote JSON to ${outputFile}`); +} -// Write aggregated JSON to output file -const outputFile = path.join(OUT_DIR, 'generated.json'); -fs.writeFileSync(outputFile, JSON.stringify(results, null, 2)); -console.log(`Wrote JSON to ${outputFile}`); +main().catch(console.error); diff --git a/packages/deparser/scripts/make-kitchen-sink.ts b/packages/deparser/scripts/make-kitchen-sink.ts index ae1341d7..78cb3094 100644 --- a/packages/deparser/scripts/make-kitchen-sink.ts +++ b/packages/deparser/scripts/make-kitchen-sink.ts @@ -2,9 +2,8 @@ import * as path from 'path'; import * as fs from 'fs'; import { sync as globSync } from 'glob'; -import { parse, deparse as deparseSync } from '@pgsql/parser'; +import { parse } from 'libpg-query'; import { ParseResult, RawStmt } from '@pgsql/types'; -import { cleanTree } from '../src/utils'; const FIXTURE_DIR = path.join(__dirname, '../../../__fixtures__/kitchen-sink'); const OUT_DIR = path.join(__dirname, '../__tests__/kitchen-sink'); @@ -22,30 +21,35 @@ const generateTestFile = (name: string, tests: string[]) => { import { FixtureTestUtils } from '../../test-utils'; const fixtures = new FixtureTestUtils(); -it('${name}', () => { - fixtures.runFixtureTests(${JSON.stringify(tests, null, 2)}); +it('${name}', async () => { + await fixtures.runFixtureTests(${JSON.stringify(tests, null, 2)}); }); ` }; const fixtures = globSync(`${FIXTURE_DIR}/**/*.sql`); -fixtures.forEach((fixturePath) => { - const relPath = path.relative(FIXTURE_DIR, fixturePath); - const sql = fs.readFileSync(fixturePath, 'utf-8'); - let statements: ParseResult; - try { - statements = parse(sql); - } catch (err: any) { - console.error(`Failed to parse ${relPath}:`, err); - return; - } - const names = statements.stmts.map((stmt: RawStmt, idx: number) => { - const outName = `${relPath.replace(/\.sql$/, '')}-${idx + 1}.sql`; - return outName; - }); +async function main() { + for (const fixturePath of fixtures) { + const relPath = path.relative(FIXTURE_DIR, fixturePath); + const sql = fs.readFileSync(fixturePath, 'utf-8'); + let statements: ParseResult; + try { + statements = await parse(sql); + } catch (err: any) { + console.error(`Failed to parse ${relPath}:`, err); + continue; + } + + const names = statements.stmts.map((stmt: RawStmt, idx: number) => { + const outName = `${relPath.replace(/\.sql$/, '')}-${idx + 1}.sql`; + return outName; + }); + + const testFileName = relPath.replace(/\//g, '-').replace(/\.sql$/, ''); + const testFile = generateTestFile(testFileName, names); + fs.writeFileSync(path.join(OUT_DIR, `${testFileName}.test.ts`), testFile); + } +} - const testFileName = relPath.replace(/\//g, '-').replace(/\.sql$/, ''); - const testFile = generateTestFile(testFileName, names); - fs.writeFileSync(path.join(OUT_DIR, `${testFileName}.test.ts`), testFile); -}); +main().catch(console.error); diff --git a/packages/deparser/src/utils/list-utils.ts b/packages/deparser/src/utils/list-utils.ts index b25d4dd4..982a5bb0 100644 --- a/packages/deparser/src/utils/list-utils.ts +++ b/packages/deparser/src/utils/list-utils.ts @@ -1,5 +1,3 @@ -import { Node } from '@pgsql/types'; - export class ListUtils { static unwrapList(obj: any): any[] { if (obj === undefined || obj === null) { diff --git a/packages/deparser/test-utils/index.ts b/packages/deparser/test-utils/index.ts index 5f6f98c0..28a070fa 100644 --- a/packages/deparser/test-utils/index.ts +++ b/packages/deparser/test-utils/index.ts @@ -1,6 +1,6 @@ -import { parse } from '@pgsql/parser'; +import { parse } from 'libpg-query'; import { deparse } from '../src'; -import { cleanTree, cleanLines } from '../src/utils'; +import { cleanTree } from '../src/utils'; import { readFileSync } from 'fs'; import * as path from 'path'; import { expect } from '@jest/globals'; @@ -81,9 +81,9 @@ export class TestUtils { console.error(errMessage.join('\n')); } - tryParse(sql: string) { + async tryParse(sql: string) { try { - return parse(sql); + return await parse(sql); } catch (err: any) { if (err.cursorPosition) { this.printErrorMessage(sql, err.cursorPosition); @@ -92,17 +92,17 @@ export class TestUtils { } } - expectAstMatch(testName: string, sql: string) { + async expectAstMatch(testName: string, sql: string) { let tree: any; try { tree = this.tryParse(sql); if (tree.stmts) { - tree.stmts.forEach((stmt: any) => { + tree.stmts.forEach(async (stmt: any) => { if (stmt.stmt) { const outSql = deparse(stmt.stmt); let reparsed; try { - reparsed = parse(outSql); + reparsed = await parse(outSql); } catch (parseErr) { throw createParseError( 'INVALID_DEPARSED_SQL', @@ -205,14 +205,14 @@ export class FixtureTestUtils extends TestUtils { ); } - runFixtureTests(filters: string[]) { + async runFixtureTests(filters: string[]) { if (filters.length === 0) { console.log('no filters provided, skipping tests.'); return; } - this.getTestEntries(filters).forEach(([relativePath, sql]) => { + this.getTestEntries(filters).forEach(async ([relativePath, sql]) => { try { - this.expectAstMatch(relativePath, sql); + await this.expectAstMatch(relativePath, sql); } catch (err) { throw err; } diff --git a/packages/enums-utils/README.md b/packages/enums-utils/README.md deleted file mode 100644 index d0bc944d..00000000 --- a/packages/enums-utils/README.md +++ /dev/null @@ -1,124 +0,0 @@ -# pgsql-enums - -

- -

- -

- - - - - - - -

- -This is a helper package for `pgsql-parser`. it provides `getEnum` function, and contains the Postgres Enums as JSON baked into the package - -`pgsql-enums` is a utility package designed to support `pgsql-parser` by providing easy access to PostgreSQL enumeration types in JSON format. This package facilitates the conversion between string and integer representations of PostgreSQL enums, enhancing the usability of ASTs generated by `pgsql-parser`. - -**NOTE:** This is the legacy library for helpers and enums for `pgsql-parser`, created long before [pg-proto-parser](https://github.com/launchql/pg-proto-parser) was developed. The plan is to gradually deprecate this library and transition towards using `@pgsql/enums` and `@pgsql/utils` for more modern and efficient PostgreSQL parsing and utility functions. - -## Features - -- **Enum Conversion**: Offers functions to convert PostgreSQL enums from string to integer and vice versa. -- **Predefined Enums**: Contains predefined JSON mappings for PostgreSQL enums, readily accessible for use in your projects. -- **Easy Integration**: Designed to work seamlessly with [`pgsql-parser`](https://github.com/launchql/pgsql-parser), simplifying the handling of enum values in the AST. - -## Installation - -```bash -npm install pgsql-enums -``` - -## Usage - -```ts -import { toInt, toStr } from 'pgsql-enums'; - -const str = toStr['A_Expr_Kind']['10']; // Returns the string representation of the enum value 10 -const num = toInt['A_Expr_Kind']['AEXPR_LIKE']; // Returns the numeric representation of the enum value 'AEXPR_LIKE' -``` - -## Enums JSON Structure - -Enums are provided in two JSON structures: one for converting from string to integer and another for converting from integer to string. - -### String to Integer - -```json -{ - "A_Expr_Kind": { - "AEXPR_OP": 0, - "AEXPR_OP_ANY": 1, - ... - } -} -``` - -### Integer to String - -```json -{ - "A_Expr_Kind": { - "0": "AEXPR_OP", - "1": "AEXPR_OP_ANY", - ... - } -} -``` - -## Helpers - -### `TYPE_NAMES` - -A constant object mapping PostgreSQL internal object type identifiers to their readable names. Use this to convert type codes into human-readable format. - -```ts -import { TYPE_NAMES } from 'pgsql-enums'; - -console.log(TYPE_NAMES.OBJECT_TABLE); // Outputs 'TABLE' -console.log(TYPE_NAMES.OBJECT_INDEX); // Outputs 'INDEX' -console.log(TYPE_NAMES.OBJECT_VIEW); // Outputs 'VIEW' - -``` - -### `objtypeName` - -```ts -import { objtypeName } from 'pgsql-enums'; - -console.log(objtypeName('OBJECT_TABLE')); // Outputs 'TABLE' -console.log(objtypeName('OBJECT_INDEX')); // Outputs 'INDEX' -console.log(objtypeName('OBJECT_VIEW')); // Outputs 'VIEW' - -``` - - -### `getConstraintFromConstrType` - -```ts -import { getConstraintFromConstrType } from 'pgsql-enums'; - -console.log(getConstraintFromConstrType('CONSTR_PRIMARY')); // Outputs 'PRIMARY KEY' -console.log(getConstraintFromConstrType('CONSTR_UNIQUE')); // Outputs 'UNIQUE' -console.log(getConstraintFromConstrType('CONSTR_CHECK')); // Outputs 'CHECK' -``` - -## Related - -* [pgsql-parser](https://github.com/launchql/pgsql-parser): The real PostgreSQL parser for Node.js, providing symmetric parsing and deparsing of SQL statements with actual PostgreSQL parser integration. -* [pgsql-deparser](https://github.com/launchql/pgsql-parser/tree/main/packages/deparser): A streamlined tool designed for converting PostgreSQL ASTs back into SQL queries, focusing solely on deparser functionality to complement `pgsql-parser`. -* [pgsql-enums](https://github.com/launchql/pgsql-parser/tree/main/packages/pgsql-enums): A utility package offering easy access to PostgreSQL enumeration types in JSON format, aiding in string and integer conversions of enums used within ASTs to compliment `pgsql-parser` -* [@pgsql/enums](https://github.com/launchql/pgsql-parser/tree/main/packages/enums): Provides PostgreSQL AST enums in TypeScript, enhancing type safety and usability in projects interacting with PostgreSQL AST nodes. -* [@pgsql/types](https://github.com/launchql/pgsql-parser/tree/main/packages/types): Offers TypeScript type definitions for PostgreSQL AST nodes, facilitating type-safe construction, analysis, and manipulation of ASTs. -* [@pgsql/utils](https://github.com/launchql/pgsql-parser/tree/main/packages/utils): A comprehensive utility library for PostgreSQL, offering type-safe AST node creation and enum value conversions, simplifying the construction and manipulation of PostgreSQL ASTs. -* [pg-proto-parser](https://github.com/launchql/pg-proto-parser): A TypeScript tool that parses PostgreSQL Protocol Buffers definitions to generate TypeScript interfaces, utility functions, and JSON mappings for enums. -* [libpg-query](https://github.com/launchql/libpg-query-node): The real PostgreSQL parser exposed for Node.js, used primarily in `pgsql-parser` for parsing and deparsing SQL queries. - -## Disclaimer - -AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED “AS IS”, AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. - -No developer or entity involved in creating Software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the Software code or Software CLI, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. \ No newline at end of file diff --git a/packages/enums-utils/__test__/enums.test.ts b/packages/enums-utils/__test__/enums.test.ts deleted file mode 100644 index 8ee0ea0e..00000000 --- a/packages/enums-utils/__test__/enums.test.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { getEnum } from '../src'; - -it('getter', () => { - expect(getEnum('OverridingKind', 0)).toEqual('OVERRIDING_NOT_SET'); - expect(getEnum('OverridingKind', 'OVERRIDING_NOT_SET')).toEqual(0); -}); \ No newline at end of file diff --git a/packages/enums-utils/jest.config.js b/packages/enums-utils/jest.config.js deleted file mode 100644 index 0aa3aaa4..00000000 --- a/packages/enums-utils/jest.config.js +++ /dev/null @@ -1,18 +0,0 @@ -/** @type {import('ts-jest').JestConfigWithTsJest} */ -module.exports = { - preset: "ts-jest", - testEnvironment: "node", - transform: { - "^.+\\.tsx?$": [ - "ts-jest", - { - babelConfig: false, - tsconfig: "tsconfig.json", - }, - ], - }, - transformIgnorePatterns: [`/node_modules/*`], - testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", - moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"], - modulePathIgnorePatterns: ["dist/*"] -}; diff --git a/packages/enums-utils/package.json b/packages/enums-utils/package.json deleted file mode 100644 index 185cf1d8..00000000 --- a/packages/enums-utils/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "pgsql-enums", - "version": "17.0.0", - "author": "Dan Lynch ", - "description": "PostgreSQL AST enums for deparsing", - "main": "index.js", - "module": "esm/index.js", - "types": "index.d.ts", - "homepage": "https://github.com/launchql/pgsql-parser", - "license": "SEE LICENSE IN LICENSE", - "publishConfig": { - "access": "public", - "directory": "dist" - }, - "repository": { - "type": "git", - "url": "https://github.com/launchql/pgsql-parser" - }, - "bugs": { - "url": "https://github.com/launchql/pgsql-parser/issues" - }, - "scripts": { - "copy": "copyfiles -f ../../LICENSE README.md package.json dist", - "clean": "rimraf dist/**", - "prepare": "npm run build", - "build": "npm run build:proto && npm run clean; tsc; tsc -p tsconfig.esm.json; npm run copy", - "build:proto": "ts-node scripts/pg-proto-parser", - "build:dev": "npm run clean; tsc --declarationMap; tsc -p tsconfig.esm.json; npm run copy", - "lint": "eslint . --fix", - "test": "jest", - "test:watch": "jest --watch" - }, - "devDependencies": { - "pg-proto-parser": "^1.24.0" - }, - "keywords": [] -} \ No newline at end of file diff --git a/packages/enums-utils/scripts/index.js b/packages/enums-utils/scripts/index.js deleted file mode 100644 index 8bf0dc53..00000000 --- a/packages/enums-utils/scripts/index.js +++ /dev/null @@ -1,83 +0,0 @@ -const enums = require('./libpg_enums'); -const structs = require('./libpg_structs'); -const fs = require('fs'); - -let astNodes = {}; -const getAstNodes = (which) => { - const nodes = structs[which]; - astNodes = Object.keys(nodes).reduce((m, key) => { - const obj = nodes[key].fields.reduce((m2, field) => { - if (!field.name) { - return m2; - } - const type = field.c_type.replace(/\*$/, ''); - let nested = false; - let isEnum = false; - if (structs[which].hasOwnProperty(type)) { - nested = true; - } - if (toStr.hasOwnProperty(type)) { - isEnum = true; - } - m2[field.name] = { - type - }; - if (nested) m2[field.name].nested = nested; - if (isEnum) m2[field.name].enum = isEnum; - - return m2; - }, {}); - m[key] = obj; - return m; - }, astNodes); -}; - -const toInt = {}; -const toStr = {}; -const getEnums = (which) => { - const nodes = enums[which]; - - Object.keys(nodes).forEach((key) => { - nodes[key].values.forEach((value, i) => { - if (!value.name) return; - - let val; - if (typeof value.value === 'undefined') { - val = i - 1; - } else { - val = value.value; - } - - toInt[key] = toInt[key] || {}; - toInt[key][value.name] = val; - toStr[key] = toStr[key] || {}; - toStr[key][val] = value.name; - }); - }); -}; - -getEnums('nodes/primnodes'); -getEnums('nodes/parsenodes'); -getEnums('nodes/lockoptions'); -getEnums('nodes/nodes'); -getEnums('commands/vacuum'); - -getAstNodes('nodes/primnodes'); -getAstNodes('nodes/parsenodes'); -getAstNodes('nodes/lockoptions'); -getAstNodes('commands/vacuum'); -getAstNodes('nodes/value'); - -fs.writeFileSync( - __dirname + '/../src/nodes.json', - JSON.stringify(astNodes, null, 2) -); - -fs.writeFileSync( - __dirname + '/../src/enum.2str.json', - JSON.stringify(toStr, null, 2) -); -fs.writeFileSync( - __dirname + '/../src/enum.2int.json', - JSON.stringify(toInt, null, 2) -); diff --git a/packages/enums-utils/scripts/libpg_enums.js b/packages/enums-utils/scripts/libpg_enums.js deleted file mode 100644 index cc8565c6..00000000 --- a/packages/enums-utils/scripts/libpg_enums.js +++ /dev/null @@ -1,6354 +0,0 @@ -module.exports = { - 'nodes/parsenodes': { - OverridingKind: { - values: [ - { - comment: '' - }, - { - name: 'OVERRIDING_NOT_SET', - value: 0 - }, - { - name: 'OVERRIDING_USER_VALUE', - value: 1 - }, - { - name: 'OVERRIDING_SYSTEM_VALUE', - value: 2 - } - ], - comment: - '/*-------------------------------------------------------------------------\n *\n * parsenodes.h\n *\t definitions for parse tree nodes\n *\n * Many of the node types used in parsetrees include a "location" field.\n * This is a byte (not character) offset in the original source text, to be\n * used for positioning an error cursor when there is an error related to\n * the node. Access to the original source text is needed to make use of\n * the location. At the topmost (statement) level, we also provide a\n * statement length, likewise measured in bytes, for convenience in\n * identifying statement boundaries in multi-statement source strings.\n *\n *\n * Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group\n * Portions Copyright (c) 1994, Regents of the University of California\n *\n * src/include/nodes/parsenodes.h\n *\n *-------------------------------------------------------------------------\n */\n' - }, - QuerySource: { - values: [ - { - comment: '' - }, - { - name: 'QSRC_ORIGINAL', - value: 0, - comment: '/* original parsetree (explicit query) */' - }, - { - name: 'QSRC_PARSER', - value: 1, - comment: '/* added by parse analysis (now unused) */' - }, - { - name: 'QSRC_INSTEAD_RULE', - value: 2, - comment: '/* added by unconditional INSTEAD rule */' - }, - { - name: 'QSRC_QUAL_INSTEAD_RULE', - value: 3, - comment: '/* added by conditional INSTEAD rule */' - }, - { - name: 'QSRC_NON_INSTEAD_RULE', - value: 4, - comment: '/* added by non-INSTEAD rule */' - } - ], - comment: '/* Possible sources of a Query */\n' - }, - SortByDir: { - values: [ - { - comment: '' - }, - { - name: 'SORTBY_DEFAULT', - value: 0 - }, - { - name: 'SORTBY_ASC', - value: 1 - }, - { - name: 'SORTBY_DESC', - value: 2 - }, - { - name: 'SORTBY_USING', - value: 3, - comment: '/* not allowed in CREATE INDEX ... */' - } - ], - comment: '/* Sort ordering options for ORDER BY and CREATE INDEX */\n' - }, - SortByNulls: { - values: [ - { - comment: '' - }, - { - name: 'SORTBY_NULLS_DEFAULT', - value: 0 - }, - { - name: 'SORTBY_NULLS_FIRST', - value: 1 - }, - { - name: 'SORTBY_NULLS_LAST', - value: 2 - } - ], - comment: null - }, - A_Expr_Kind: { - values: [ - { - comment: '' - }, - { - name: 'AEXPR_OP', - value: 0, - comment: '/* normal operator */' - }, - { - name: 'AEXPR_OP_ANY', - value: 1, - comment: '/* scalar op ANY (array) */' - }, - { - name: 'AEXPR_OP_ALL', - value: 2, - comment: '/* scalar op ALL (array) */' - }, - { - name: 'AEXPR_DISTINCT', - value: 3, - comment: '/* IS DISTINCT FROM - name must be "=" */' - }, - { - name: 'AEXPR_NOT_DISTINCT', - value: 4, - comment: '/* IS NOT DISTINCT FROM - name must be "=" */' - }, - { - name: 'AEXPR_NULLIF', - value: 5, - comment: '/* NULLIF - name must be "=" */' - }, - { - name: 'AEXPR_OF', - value: 6, - comment: '/* IS [NOT] OF - name must be "=" or "<>" */' - }, - { - name: 'AEXPR_IN', - value: 7, - comment: '/* [NOT] IN - name must be "=" or "<>" */' - }, - { - name: 'AEXPR_LIKE', - value: 8, - comment: '/* [NOT] LIKE - name must be "~~" or "!~~" */' - }, - { - name: 'AEXPR_ILIKE', - value: 9, - comment: '/* [NOT] ILIKE - name must be "~~*" or "!~~*" */' - }, - { - name: 'AEXPR_SIMILAR', - value: 10, - comment: '/* [NOT] SIMILAR - name must be "~" or "!~" */' - }, - { - name: 'AEXPR_BETWEEN', - value: 11, - comment: '/* name must be "BETWEEN" */' - }, - { - name: 'AEXPR_NOT_BETWEEN', - value: 12, - comment: '/* name must be "NOT BETWEEN" */' - }, - { - name: 'AEXPR_BETWEEN_SYM', - value: 13, - comment: '/* name must be "BETWEEN SYMMETRIC" */' - }, - { - name: 'AEXPR_NOT_BETWEEN_SYM', - value: 14, - comment: '/* name must be "NOT BETWEEN SYMMETRIC" */' - }, - { - name: 'AEXPR_PAREN', - value: 15, - comment: '/* nameless dummy node for parentheses */' - } - ], - comment: '/*\n * A_Expr - infix, prefix, and postfix expressions\n */\n' - }, - RoleSpecType: { - values: [ - { - comment: '' - }, - { - name: 'ROLESPEC_CSTRING', - value: 0, - comment: '/* role name is stored as a C string */' - }, - { - name: 'ROLESPEC_CURRENT_USER', - value: 1, - comment: '/* role spec is CURRENT_USER */' - }, - { - name: 'ROLESPEC_SESSION_USER', - value: 2, - comment: '/* role spec is SESSION_USER */' - }, - { - name: 'ROLESPEC_PUBLIC', - value: 3, - comment: '/* role name is "public" */' - } - ], - comment: - '/*\n * RoleSpec - a role name or one of a few special values.\n */\n' - }, - TableLikeOption: { - values: [ - { - comment: '' - }, - { - name: 'CREATE_TABLE_LIKE_COMMENTS', - value: 1 - }, - { - name: 'CREATE_TABLE_LIKE_CONSTRAINTS', - value: 2 - }, - { - name: 'CREATE_TABLE_LIKE_DEFAULTS', - value: 4 - }, - { - name: 'CREATE_TABLE_LIKE_GENERATED', - value: 8 - }, - { - name: 'CREATE_TABLE_LIKE_IDENTITY', - value: 16 - }, - { - name: 'CREATE_TABLE_LIKE_INDEXES', - value: 32 - }, - { - name: 'CREATE_TABLE_LIKE_STATISTICS', - value: 64 - }, - { - name: 'CREATE_TABLE_LIKE_STORAGE', - value: 128 - }, - { - name: 'CREATE_TABLE_LIKE_ALL', - value: 2147483647 - } - ], - comment: null - }, - DefElemAction: { - values: [ - { - comment: '' - }, - { - name: 'DEFELEM_UNSPEC', - value: 0, - comment: '/* no action given */' - }, - { - name: 'DEFELEM_SET', - value: 1 - }, - { - name: 'DEFELEM_ADD', - value: 2 - }, - { - name: 'DEFELEM_DROP', - value: 3 - } - ], - comment: - '/*\n * DefElem - a generic "name = value" option definition\n *\n * In some contexts the name can be qualified. Also, certain SQL commands\n * allow a SET/ADD/DROP action to be attached to option settings, so it\'s\n * convenient to carry a field for that too. (Note: currently, it is our\n * practice that the grammar allows namespace and action only in statements\n * where they are relevant; C code can just ignore those fields in other\n * statements.)\n */\n' - }, - PartitionRangeDatumKind: { - values: [ - { - comment: '' - }, - { - name: 'PARTITION_RANGE_DATUM_MINVALUE', - value: 0 - }, - { - name: 'PARTITION_RANGE_DATUM_VALUE', - value: 0, - comment: '/* a specific (bounded) value */' - }, - { - name: 'PARTITION_RANGE_DATUM_MAXVALUE', - value: 1, - comment: '/* greater than any other value */' - } - ], - comment: - '/*\n * PartitionRangeDatum - one of the values in a range partition bound\n *\n * This can be MINVALUE, MAXVALUE or a specific bounded value.\n */\n' - }, - RTEKind: { - values: [ - { - comment: '' - }, - { - name: 'RTE_RELATION', - value: 0, - comment: '/* ordinary relation reference */' - }, - { - name: 'RTE_SUBQUERY', - value: 1, - comment: '/* subquery in FROM */' - }, - { - name: 'RTE_JOIN', - value: 2, - comment: '/* join */' - }, - { - name: 'RTE_FUNCTION', - value: 3, - comment: '/* function in FROM */' - }, - { - name: 'RTE_TABLEFUNC', - value: 4, - comment: '/* TableFunc(.., column list) */' - }, - { - name: 'RTE_VALUES', - value: 5, - comment: '/* VALUES (), (), ... */' - }, - { - name: 'RTE_CTE', - value: 6, - comment: '/* common table expr (WITH list element) */' - }, - { - name: 'RTE_NAMEDTUPLESTORE', - value: 7, - comment: '/* tuplestore, e.g. for AFTER triggers */' - }, - { - name: 'RTE_RESULT', - value: 8, - comment: - "/* RTE represents an empty FROM clause; such\n\t\t\t\t\t\t\t\t * RTEs are added by the planner, they're not\n\t\t\t\t\t\t\t\t * present during parsing or rewriting */\n" - } - ], - comment: - "/*--------------------\n * RangeTblEntry -\n *\t A range table is a List of RangeTblEntry nodes.\n *\n *\t A range table entry may represent a plain relation, a sub-select in\n *\t FROM, or the result of a JOIN clause. (Only explicit JOIN syntax\n *\t produces an RTE, not the implicit join resulting from multiple FROM\n *\t items. This is because we only need the RTE to deal with SQL features\n *\t like outer joins and join-output-column aliasing.) Other special\n *\t RTE types also exist, as indicated by RTEKind.\n *\n *\t Note that we consider RTE_RELATION to cover anything that has a pg_class\n *\t entry. relkind distinguishes the sub-cases.\n *\n *\t alias is an Alias node representing the AS alias-clause attached to the\n *\t FROM expression, or NULL if no clause.\n *\n *\t eref is the table reference name and column reference names (either\n *\t real or aliases). Note that system columns (OID etc) are not included\n *\t in the column list.\n *\t eref->aliasname is required to be present, and should generally be used\n *\t to identify the RTE for error messages etc.\n *\n *\t In RELATION RTEs, the colnames in both alias and eref are indexed by\n *\t physical attribute number; this means there must be colname entries for\n *\t dropped columns. When building an RTE we insert empty strings (\"\") for\n *\t dropped columns. Note however that a stored rule may have nonempty\n *\t colnames for columns dropped since the rule was created (and for that\n *\t matter the colnames might be out of date due to column renamings).\n *\t The same comments apply to FUNCTION RTEs when a function's return type\n *\t is a named composite type.\n *\n *\t In JOIN RTEs, the colnames in both alias and eref are one-to-one with\n *\t joinaliasvars entries. A JOIN RTE will omit columns of its inputs when\n *\t those columns are known to be dropped at parse time. Again, however,\n *\t a stored rule might contain entries for columns dropped since the rule\n *\t was created. (This is only possible for columns not actually referenced\n *\t in the rule.) When loading a stored rule, we replace the joinaliasvars\n *\t items for any such columns with null pointers. (We can't simply delete\n *\t them from the joinaliasvars list, because that would affect the attnums\n *\t of Vars referencing the rest of the list.)\n *\n *\t inh is true for relation references that should be expanded to include\n *\t inheritance children, if the rel has any. This *must* be false for\n *\t RTEs other than RTE_RELATION entries.\n *\n *\t inFromCl marks those range variables that are listed in the FROM clause.\n *\t It's false for RTEs that are added to a query behind the scenes, such\n *\t as the NEW and OLD variables for a rule, or the subqueries of a UNION.\n *\t This flag is not used anymore during parsing, since the parser now uses\n *\t a separate \"namespace\" data structure to control visibility, but it is\n *\t needed by ruleutils.c to determine whether RTEs should be shown in\n *\t decompiled queries.\n *\n *\t requiredPerms and checkAsUser specify run-time access permissions\n *\t checks to be performed at query startup. The user must have *all*\n *\t of the permissions that are OR'd together in requiredPerms (zero\n *\t indicates no permissions checking). If checkAsUser is not zero,\n *\t then do the permissions checks using the access rights of that user,\n *\t not the current effective user ID. (This allows rules to act as\n *\t setuid gateways.) Permissions checks only apply to RELATION RTEs.\n *\n *\t For SELECT/INSERT/UPDATE permissions, if the user doesn't have\n *\t table-wide permissions then it is sufficient to have the permissions\n *\t on all columns identified in selectedCols (for SELECT) and/or\n *\t insertedCols and/or updatedCols (INSERT with ON CONFLICT DO UPDATE may\n *\t have all 3). selectedCols, insertedCols and updatedCols are bitmapsets,\n *\t which cannot have negative integer members, so we subtract\n *\t FirstLowInvalidHeapAttributeNumber from column numbers before storing\n *\t them in these fields. A whole-row Var reference is represented by\n *\t setting the bit for InvalidAttrNumber.\n *\n *\t updatedCols is also used in some other places, for example, to determine\n *\t which triggers to fire and in FDWs to know which changed columns they\n *\t need to ship off.\n *\n *\t Generated columns that are caused to be updated by an update to a base\n *\t column are listed in extraUpdatedCols. This is not considered for\n *\t permission checking, but it is useful in those places that want to know\n *\t the full set of columns being updated as opposed to only the ones the\n *\t user explicitly mentioned in the query. (There is currently no need for\n *\t an extraInsertedCols, but it could exist.) Note that extraUpdatedCols\n *\t is populated during query rewrite, NOT in the parser, since generated\n *\t columns could be added after a rule has been parsed and stored.\n *\n *\t securityQuals is a list of security barrier quals (boolean expressions),\n *\t to be tested in the listed order before returning a row from the\n *\t relation. It is always NIL in parser output. Entries are added by the\n *\t rewriter to implement security-barrier views and/or row-level security.\n *\t Note that the planner turns each boolean expression into an implicitly\n *\t AND'ed sublist, as is its usual habit with qualification expressions.\n *--------------------\n */\n" - }, - WCOKind: { - values: [ - { - comment: '' - }, - { - name: 'WCO_VIEW_CHECK', - value: 0, - comment: '/* WCO on an auto-updatable view */' - }, - { - name: 'WCO_RLS_INSERT_CHECK', - value: 1, - comment: '/* RLS INSERT WITH CHECK policy */' - }, - { - name: 'WCO_RLS_UPDATE_CHECK', - value: 2, - comment: '/* RLS UPDATE WITH CHECK policy */' - }, - { - name: 'WCO_RLS_CONFLICT_CHECK', - value: 3, - comment: '/* RLS ON CONFLICT DO UPDATE USING policy */' - } - ], - comment: - '/*\n * WithCheckOption -\n *\t\trepresentation of WITH CHECK OPTION checks to be applied to new tuples\n *\t\twhen inserting/updating an auto-updatable view, or RLS WITH CHECK\n *\t\tpolicies to be applied when inserting/updating a relation with RLS.\n */\n' - }, - GroupingSetKind: { - values: [ - { - comment: '' - }, - { - name: 'GROUPING_SET_EMPTY', - value: 0 - }, - { - name: 'GROUPING_SET_SIMPLE', - value: 1 - }, - { - name: 'GROUPING_SET_ROLLUP', - value: 2 - }, - { - name: 'GROUPING_SET_CUBE', - value: 3 - }, - { - name: 'GROUPING_SET_SETS', - value: 4 - } - ], - comment: - "/*\n * GroupingSet -\n *\t\trepresentation of CUBE, ROLLUP and GROUPING SETS clauses\n *\n * In a Query with grouping sets, the groupClause contains a flat list of\n * SortGroupClause nodes for each distinct expression used. The actual\n * structure of the GROUP BY clause is given by the groupingSets tree.\n *\n * In the raw parser output, GroupingSet nodes (of all types except SIMPLE\n * which is not used) are potentially mixed in with the expressions in the\n * groupClause of the SelectStmt. (An expression can't contain a GroupingSet,\n * but a list may mix GroupingSet and expression nodes.) At this stage, the\n * content of each node is a list of expressions, some of which may be RowExprs\n * which represent sublists rather than actual row constructors, and nested\n * GroupingSet nodes where legal in the grammar. The structure directly\n * reflects the query syntax.\n *\n * In parse analysis, the transformed expressions are used to build the tlist\n * and groupClause list (of SortGroupClause nodes), and the groupingSets tree\n * is eventually reduced to a fixed format:\n *\n * EMPTY nodes represent (), and obviously have no content\n *\n * SIMPLE nodes represent a list of one or more expressions to be treated as an\n * atom by the enclosing structure; the content is an integer list of\n * ressortgroupref values (see SortGroupClause)\n *\n * CUBE and ROLLUP nodes contain a list of one or more SIMPLE nodes.\n *\n * SETS nodes contain a list of EMPTY, SIMPLE, CUBE or ROLLUP nodes, but after\n * parse analysis they cannot contain more SETS nodes; enough of the syntactic\n * transforms of the spec have been applied that we no longer have arbitrarily\n * deep nesting (though we still preserve the use of cube/rollup).\n *\n * Note that if the groupingSets tree contains no SIMPLE nodes (only EMPTY\n * nodes at the leaves), then the groupClause will be empty, but this is still\n * an aggregation query (similar to using aggs or HAVING without GROUP BY).\n *\n * As an example, the following clause:\n *\n * GROUP BY GROUPING SETS ((a,b), CUBE(c,(d,e)))\n *\n * looks like this after raw parsing:\n *\n * SETS( RowExpr(a,b) , CUBE( c, RowExpr(d,e) ) )\n *\n * and parse analysis converts it to:\n *\n * SETS( SIMPLE(1,2), CUBE( SIMPLE(3), SIMPLE(4,5) ) )\n */\n" - }, - CTEMaterialize: { - values: [ - { - comment: '' - }, - { - name: 'CTEMaterializeDefault', - value: 0, - comment: '/* no option specified */' - }, - { - name: 'CTEMaterializeAlways', - value: 1, - comment: '/* MATERIALIZED */' - }, - { - name: 'CTEMaterializeNever', - value: 2, - comment: '/* NOT MATERIALIZED */' - } - ], - comment: - "/*\n * CommonTableExpr -\n *\t representation of WITH list element\n *\n * We don't currently support the SEARCH or CYCLE clause.\n */\n" - }, - SetOperation: { - values: [ - { - comment: '' - }, - { - name: 'SETOP_NONE', - value: 0 - }, - { - name: 'SETOP_UNION', - value: 1 - }, - { - name: 'SETOP_INTERSECT', - value: 2 - }, - { - name: 'SETOP_EXCEPT', - value: 3 - } - ], - comment: - '/* ----------------------\n *\t\tSelect Statement\n *\n * A "simple" SELECT is represented in the output of gram.y by a single\n * SelectStmt node; so is a VALUES construct. A query containing set\n * operators (UNION, INTERSECT, EXCEPT) is represented by a tree of SelectStmt\n * nodes, in which the leaf nodes are component SELECTs and the internal nodes\n * represent UNION, INTERSECT, or EXCEPT operators. Using the same node\n * type for both leaf and internal nodes allows gram.y to stick ORDER BY,\n * LIMIT, etc, clause values into a SELECT statement without worrying\n * whether it is a simple or compound SELECT.\n * ----------------------\n */\n' - }, - ObjectType: { - values: [ - { - comment: '' - }, - { - name: 'OBJECT_ACCESS_METHOD', - value: 0 - }, - { - name: 'OBJECT_AGGREGATE', - value: 1 - }, - { - name: 'OBJECT_AMOP', - value: 2 - }, - { - name: 'OBJECT_AMPROC', - value: 3 - }, - { - name: 'OBJECT_ATTRIBUTE', - value: 4, - comment: "/* type's attribute, when distinct from column */" - }, - { - name: 'OBJECT_CAST', - value: 5 - }, - { - name: 'OBJECT_COLUMN', - value: 6 - }, - { - name: 'OBJECT_COLLATION', - value: 7 - }, - { - name: 'OBJECT_CONVERSION', - value: 8 - }, - { - name: 'OBJECT_DATABASE', - value: 9 - }, - { - name: 'OBJECT_DEFAULT', - value: 10 - }, - { - name: 'OBJECT_DEFACL', - value: 11 - }, - { - name: 'OBJECT_DOMAIN', - value: 12 - }, - { - name: 'OBJECT_DOMCONSTRAINT', - value: 13 - }, - { - name: 'OBJECT_EVENT_TRIGGER', - value: 14 - }, - { - name: 'OBJECT_EXTENSION', - value: 15 - }, - { - name: 'OBJECT_FDW', - value: 16 - }, - { - name: 'OBJECT_FOREIGN_SERVER', - value: 17 - }, - { - name: 'OBJECT_FOREIGN_TABLE', - value: 18 - }, - { - name: 'OBJECT_FUNCTION', - value: 19 - }, - { - name: 'OBJECT_INDEX', - value: 20 - }, - { - name: 'OBJECT_LANGUAGE', - value: 21 - }, - { - name: 'OBJECT_LARGEOBJECT', - value: 22 - }, - { - name: 'OBJECT_MATVIEW', - value: 23 - }, - { - name: 'OBJECT_OPCLASS', - value: 24 - }, - { - name: 'OBJECT_OPERATOR', - value: 25 - }, - { - name: 'OBJECT_OPFAMILY', - value: 26 - }, - { - name: 'OBJECT_POLICY', - value: 27 - }, - { - name: 'OBJECT_PROCEDURE', - value: 28 - }, - { - name: 'OBJECT_PUBLICATION', - value: 29 - }, - { - name: 'OBJECT_PUBLICATION_REL', - value: 30 - }, - { - name: 'OBJECT_ROLE', - value: 31 - }, - { - name: 'OBJECT_ROUTINE', - value: 32 - }, - { - name: 'OBJECT_RULE', - value: 33 - }, - { - name: 'OBJECT_SCHEMA', - value: 34 - }, - { - name: 'OBJECT_SEQUENCE', - value: 35 - }, - { - name: 'OBJECT_SUBSCRIPTION', - value: 36 - }, - { - name: 'OBJECT_STATISTIC_EXT', - value: 37 - }, - { - name: 'OBJECT_TABCONSTRAINT', - value: 38 - }, - { - name: 'OBJECT_TABLE', - value: 39 - }, - { - name: 'OBJECT_TABLESPACE', - value: 40 - }, - { - name: 'OBJECT_TRANSFORM', - value: 41 - }, - { - name: 'OBJECT_TRIGGER', - value: 42 - }, - { - name: 'OBJECT_TSCONFIGURATION', - value: 43 - }, - { - name: 'OBJECT_TSDICTIONARY', - value: 44 - }, - { - name: 'OBJECT_TSPARSER', - value: 45 - }, - { - name: 'OBJECT_TSTEMPLATE', - value: 46 - }, - { - name: 'OBJECT_TYPE', - value: 47 - }, - { - name: 'OBJECT_USER_MAPPING', - value: 48 - }, - { - name: 'OBJECT_VIEW', - value: 49 - } - ], - comment: - "/*\n * When a command can act on several kinds of objects with only one\n * parse structure required, use these constants to designate the\n * object type. Note that commands typically don't support all the types.\n */\n" - }, - DropBehavior: { - values: [ - { - comment: '' - }, - { - name: 'DROP_RESTRICT', - value: 0, - comment: '/* drop fails if any dependent objects */' - }, - { - name: 'DROP_CASCADE', - value: 1, - comment: '/* remove dependent objects too */' - } - ], - comment: null - }, - AlterTableType: { - values: [ - { - comment: '' - }, - { - name: 'AT_AddColumn', - value: 0, - comment: '/* add column */' - }, - { - name: 'AT_AddColumnRecurse', - value: 1, - comment: '/* internal to commands/tablecmds.c */' - }, - { - name: 'AT_AddColumnToView', - value: 2, - comment: '/* implicitly via CREATE OR REPLACE VIEW */' - }, - { - name: 'AT_ColumnDefault', - value: 3, - comment: '/* alter column default */' - }, - { - name: 'AT_CookedColumnDefault', - value: 4, - comment: '/* add a pre-cooked column default */' - }, - { - name: 'AT_DropNotNull', - value: 5, - comment: '/* alter column drop not null */' - }, - { - name: 'AT_SetNotNull', - value: 6, - comment: '/* alter column set not null */' - }, - { - name: 'AT_DropExpression', - value: 7, - comment: '/* alter column drop expression */' - }, - { - name: 'AT_CheckNotNull', - value: 8, - comment: '/* check column is already marked not null */' - }, - { - name: 'AT_SetStatistics', - value: 9, - comment: '/* alter column set statistics */' - }, - { - name: 'AT_SetOptions', - value: 10, - comment: '/* alter column set ( options ) */' - }, - { - name: 'AT_ResetOptions', - value: 11, - comment: '/* alter column reset ( options ) */' - }, - { - name: 'AT_SetStorage', - value: 12, - comment: '/* alter column set storage */' - }, - { - name: 'AT_DropColumn', - value: 13, - comment: '/* drop column */' - }, - { - name: 'AT_DropColumnRecurse', - value: 14, - comment: '/* internal to commands/tablecmds.c */' - }, - { - name: 'AT_AddIndex', - value: 15, - comment: '/* add index */' - }, - { - name: 'AT_ReAddIndex', - value: 16, - comment: '/* internal to commands/tablecmds.c */' - }, - { - name: 'AT_AddConstraint', - value: 17, - comment: '/* add constraint */' - }, - { - name: 'AT_AddConstraintRecurse', - value: 18, - comment: '/* internal to commands/tablecmds.c */' - }, - { - name: 'AT_ReAddConstraint', - value: 19, - comment: '/* internal to commands/tablecmds.c */' - }, - { - name: 'AT_ReAddDomainConstraint', - value: 20, - comment: '/* internal to commands/tablecmds.c */' - }, - { - name: 'AT_AlterConstraint', - value: 21, - comment: '/* alter constraint */' - }, - { - name: 'AT_ValidateConstraint', - value: 22, - comment: '/* validate constraint */' - }, - { - name: 'AT_ValidateConstraintRecurse', - value: 23, - comment: '/* internal to commands/tablecmds.c */' - }, - { - name: 'AT_AddIndexConstraint', - value: 24, - comment: '/* add constraint using existing index */' - }, - { - name: 'AT_DropConstraint', - value: 25, - comment: '/* drop constraint */' - }, - { - name: 'AT_DropConstraintRecurse', - value: 26, - comment: '/* internal to commands/tablecmds.c */' - }, - { - name: 'AT_ReAddComment', - value: 27, - comment: '/* internal to commands/tablecmds.c */' - }, - { - name: 'AT_AlterColumnType', - value: 28, - comment: '/* alter column type */' - }, - { - name: 'AT_AlterColumnGenericOptions', - value: 29, - comment: '/* alter column OPTIONS (...) */' - }, - { - name: 'AT_ChangeOwner', - value: 30, - comment: '/* change owner */' - }, - { - name: 'AT_ClusterOn', - value: 31, - comment: '/* CLUSTER ON */' - }, - { - name: 'AT_DropCluster', - value: 32, - comment: '/* SET WITHOUT CLUSTER */' - }, - { - name: 'AT_SetLogged', - value: 33, - comment: '/* SET LOGGED */' - }, - { - name: 'AT_SetUnLogged', - value: 34, - comment: '/* SET UNLOGGED */' - }, - { - name: 'AT_DropOids', - value: 35, - comment: '/* SET WITHOUT OIDS */' - }, - { - name: 'AT_SetTableSpace', - value: 36, - comment: '/* SET TABLESPACE */' - }, - { - name: 'AT_SetRelOptions', - value: 37, - comment: '/* SET (...) -- AM specific parameters */' - }, - { - name: 'AT_ResetRelOptions', - value: 38, - comment: '/* RESET (...) -- AM specific parameters */' - }, - { - name: 'AT_ReplaceRelOptions', - value: 39, - comment: '/* replace reloption list in its entirety */' - }, - { - name: 'AT_EnableTrig', - value: 40, - comment: '/* ENABLE TRIGGER name */' - }, - { - name: 'AT_EnableAlwaysTrig', - value: 41, - comment: '/* ENABLE ALWAYS TRIGGER name */' - }, - { - name: 'AT_EnableReplicaTrig', - value: 42, - comment: '/* ENABLE REPLICA TRIGGER name */' - }, - { - name: 'AT_DisableTrig', - value: 43, - comment: '/* DISABLE TRIGGER name */' - }, - { - name: 'AT_EnableTrigAll', - value: 44, - comment: '/* ENABLE TRIGGER ALL */' - }, - { - name: 'AT_DisableTrigAll', - value: 45, - comment: '/* DISABLE TRIGGER ALL */' - }, - { - name: 'AT_EnableTrigUser', - value: 46, - comment: '/* ENABLE TRIGGER USER */' - }, - { - name: 'AT_DisableTrigUser', - value: 47, - comment: '/* DISABLE TRIGGER USER */' - }, - { - name: 'AT_EnableRule', - value: 48, - comment: '/* ENABLE RULE name */' - }, - { - name: 'AT_EnableAlwaysRule', - value: 49, - comment: '/* ENABLE ALWAYS RULE name */' - }, - { - name: 'AT_EnableReplicaRule', - value: 50, - comment: '/* ENABLE REPLICA RULE name */' - }, - { - name: 'AT_DisableRule', - value: 51, - comment: '/* DISABLE RULE name */' - }, - { - name: 'AT_AddInherit', - value: 52, - comment: '/* INHERIT parent */' - }, - { - name: 'AT_DropInherit', - value: 53, - comment: '/* NO INHERIT parent */' - }, - { - name: 'AT_AddOf', - value: 54, - comment: '/* OF */' - }, - { - name: 'AT_DropOf', - value: 55, - comment: '/* NOT OF */' - }, - { - name: 'AT_ReplicaIdentity', - value: 56, - comment: '/* REPLICA IDENTITY */' - }, - { - name: 'AT_EnableRowSecurity', - value: 57, - comment: '/* ENABLE ROW SECURITY */' - }, - { - name: 'AT_DisableRowSecurity', - value: 58, - comment: '/* DISABLE ROW SECURITY */' - }, - { - name: 'AT_ForceRowSecurity', - value: 59, - comment: '/* FORCE ROW SECURITY */' - }, - { - name: 'AT_NoForceRowSecurity', - value: 60, - comment: '/* NO FORCE ROW SECURITY */' - }, - { - name: 'AT_GenericOptions', - value: 61, - comment: '/* OPTIONS (...) */' - }, - { - name: 'AT_AttachPartition', - value: 62, - comment: '/* ATTACH PARTITION */' - }, - { - name: 'AT_DetachPartition', - value: 63, - comment: '/* DETACH PARTITION */' - }, - { - name: 'AT_AddIdentity', - value: 64, - comment: '/* ADD IDENTITY */' - }, - { - name: 'AT_SetIdentity', - value: 65, - comment: '/* SET identity column options */' - }, - { - name: 'AT_DropIdentity', - value: 66, - comment: '/* DROP IDENTITY */' - } - ], - comment: null - }, - GrantTargetType: { - values: [ - { - comment: '' - }, - { - name: 'ACL_TARGET_OBJECT', - value: 0, - comment: '/* grant on specific named object(s) */' - }, - { - name: 'ACL_TARGET_ALL_IN_SCHEMA', - value: 1, - comment: '/* grant on all objects in given schema(s) */' - }, - { - name: 'ACL_TARGET_DEFAULTS', - value: 2, - comment: '/* ALTER DEFAULT PRIVILEGES */' - } - ], - comment: - '/* ----------------------\n *\t\tGrant|Revoke Statement\n * ----------------------\n */\n' - }, - VariableSetKind: { - values: [ - { - comment: '' - }, - { - name: 'VAR_SET_VALUE', - value: 0, - comment: '/* SET var = value */' - }, - { - name: 'VAR_SET_DEFAULT', - value: 1, - comment: '/* SET var TO DEFAULT */' - }, - { - name: 'VAR_SET_CURRENT', - value: 2, - comment: '/* SET var FROM CURRENT */' - }, - { - name: 'VAR_SET_MULTI', - value: 3, - comment: '/* special case for SET TRANSACTION ... */' - }, - { - name: 'VAR_RESET', - value: 4, - comment: '/* RESET var */' - }, - { - name: 'VAR_RESET_ALL', - value: 5, - comment: '/* RESET ALL */' - } - ], - comment: - '/* ----------------------\n * SET Statement (includes RESET)\n *\n * "SET var TO DEFAULT" and "RESET var" are semantically equivalent, but we\n * preserve the distinction in VariableSetKind for CreateCommandTag().\n * ----------------------\n */\n' - }, - ConstrType: { - values: [ - { - comment: '' - }, - { - name: 'CONSTR_NULL', - value: 0, - comment: - '/* not standard SQL, but a lot of people\n\t\t\t\t\t\t\t\t * expect it */\n' - }, - { - name: 'CONSTR_NOTNULL', - value: 1 - }, - { - name: 'CONSTR_DEFAULT', - value: 2 - }, - { - name: 'CONSTR_IDENTITY', - value: 3 - }, - { - name: 'CONSTR_GENERATED', - value: 4 - }, - { - name: 'CONSTR_CHECK', - value: 5 - }, - { - name: 'CONSTR_PRIMARY', - value: 6 - }, - { - name: 'CONSTR_UNIQUE', - value: 7 - }, - { - name: 'CONSTR_EXCLUSION', - value: 8 - }, - { - name: 'CONSTR_FOREIGN', - value: 9 - }, - { - name: 'CONSTR_ATTR_DEFERRABLE', - value: 10, - comment: '/* attributes for previous constraint node */' - }, - { - name: 'CONSTR_ATTR_NOT_DEFERRABLE', - value: 11 - }, - { - name: 'CONSTR_ATTR_DEFERRED', - value: 12 - }, - { - name: 'CONSTR_ATTR_IMMEDIATE', - value: 13 - } - ], - comment: - '/* ----------\n * Definitions for constraints in CreateStmt\n *\n * Note that column defaults are treated as a type of constraint,\n * even though that\'s a bit odd semantically.\n *\n * For constraints that use expressions (CONSTR_CHECK, CONSTR_DEFAULT)\n * we may have the expression in either "raw" form (an untransformed\n * parse tree) or "cooked" form (the nodeToString representation of\n * an executable expression tree), depending on how this Constraint\n * node was created (by parsing, or by inheritance from an existing\n * relation). We should never have both in the same node!\n *\n * FKCONSTR_ACTION_xxx values are stored into pg_constraint.confupdtype\n * and pg_constraint.confdeltype columns; FKCONSTR_MATCH_xxx values are\n * stored into pg_constraint.confmatchtype. Changing the code values may\n * require an initdb!\n *\n * If skip_validation is true then we skip checking that the existing rows\n * in the table satisfy the constraint, and just install the catalog entries\n * for the constraint. A new FK constraint is marked as valid iff\n * initially_valid is true. (Usually skip_validation and initially_valid\n * are inverses, but we can set both true if the table is known empty.)\n *\n * Constraint attributes (DEFERRABLE etc) are initially represented as\n * separate Constraint nodes for simplicity of parsing. parse_utilcmd.c makes\n * a pass through the constraints list to insert the info into the appropriate\n * Constraint node.\n * ----------\n */\n' - }, - ImportForeignSchemaType: { - values: [ - { - comment: '' - }, - { - name: 'FDW_IMPORT_SCHEMA_ALL', - value: 0, - comment: '/* all relations wanted */' - }, - { - name: 'FDW_IMPORT_SCHEMA_LIMIT_TO', - value: 1, - comment: '/* include only listed tables in import */' - }, - { - name: 'FDW_IMPORT_SCHEMA_EXCEPT', - value: 2, - comment: '/* exclude listed tables from import */' - } - ], - comment: - '/* ----------------------\n *\t\tImport Foreign Schema Statement\n * ----------------------\n */\n' - }, - RoleStmtType: { - values: [ - { - comment: '' - }, - { - name: 'ROLESTMT_ROLE', - value: 0 - }, - { - name: 'ROLESTMT_USER', - value: 1 - }, - { - name: 'ROLESTMT_GROUP', - value: 2 - } - ], - comment: - "/* ----------------------\n *\tCreate/Alter/Drop Role Statements\n *\n * Note: these node types are also used for the backwards-compatible\n * Create/Alter/Drop User/Group statements. In the ALTER and DROP cases\n * there's really no need to distinguish what the original spelling was,\n * but for CREATE we mark the type because the defaults vary.\n * ----------------------\n */\n" - }, - FetchDirection: { - values: [ - { - comment: '' - }, - { - comment: - '\t/* for these, howMany is how many rows to fetch; FETCH_ALL means ALL */\n' - }, - { - name: 'FETCH_FORWARD', - value: 0 - }, - { - name: 'FETCH_BACKWARD', - value: 1 - }, - { - comment: - '\t/* for these, howMany indicates a position; only one row is fetched */\n' - }, - { - name: 'FETCH_ABSOLUTE', - value: 2 - }, - { - name: 'FETCH_RELATIVE', - value: 3 - } - ], - comment: - '/* ----------------------\n *\t\tFetch Statement (also Move)\n * ----------------------\n */\n' - }, - FunctionParameterMode: { - values: [ - { - comment: '' - }, - { - comment: - "\t/* the assigned enum values appear in pg_proc, don't change 'em! */\n" - }, - { - name: 'FUNC_PARAM_IN', - value: 105, - comment: '/* input only */' - }, - { - name: 'FUNC_PARAM_OUT', - value: 111, - comment: '/* output only */' - }, - { - name: 'FUNC_PARAM_INOUT', - value: 98, - comment: '/* both */' - }, - { - name: 'FUNC_PARAM_VARIADIC', - value: 118, - comment: '/* variadic (always input) */' - }, - { - name: 'FUNC_PARAM_TABLE', - value: 116, - comment: '/* table function output column */' - } - ], - comment: null - }, - TransactionStmtKind: { - values: [ - { - comment: '' - }, - { - name: 'TRANS_STMT_BEGIN', - value: 0 - }, - { - name: 'TRANS_STMT_START', - value: 1, - comment: '/* semantically identical to BEGIN */' - }, - { - name: 'TRANS_STMT_COMMIT', - value: 2 - }, - { - name: 'TRANS_STMT_ROLLBACK', - value: 3 - }, - { - name: 'TRANS_STMT_SAVEPOINT', - value: 4 - }, - { - name: 'TRANS_STMT_RELEASE', - value: 5 - }, - { - name: 'TRANS_STMT_ROLLBACK_TO', - value: 6 - }, - { - name: 'TRANS_STMT_PREPARE', - value: 7 - }, - { - name: 'TRANS_STMT_COMMIT_PREPARED', - value: 8 - }, - { - name: 'TRANS_STMT_ROLLBACK_PREPARED', - value: 9 - } - ], - comment: - '/* ----------------------\n *\t\t{Begin|Commit|Rollback} Transaction Statement\n * ----------------------\n */\n' - }, - ViewCheckOption: { - values: [ - { - comment: '' - }, - { - name: 'NO_CHECK_OPTION', - value: 0 - }, - { - name: 'LOCAL_CHECK_OPTION', - value: 1 - }, - { - name: 'CASCADED_CHECK_OPTION', - value: 2 - } - ], - comment: - '/* ----------------------\n *\t\tCreate View Statement\n * ----------------------\n */\n' - }, - ClusterOption: { - values: [ - { - comment: '' - }, - { - name: 'CLUOPT_RECHECK', - value: 1, - comment: '/* recheck relation state */' - }, - { - name: 'CLUOPT_VERBOSE', - value: 2, - comment: '/* print progress info */' - } - ], - comment: - "/* ----------------------\n *\t\tCluster Statement (support pbrown's cluster index implementation)\n * ----------------------\n */\n" - }, - DiscardMode: { - values: [ - { - comment: '' - }, - { - name: 'DISCARD_ALL', - value: 0 - }, - { - name: 'DISCARD_PLANS', - value: 1 - }, - { - name: 'DISCARD_SEQUENCES', - value: 2 - }, - { - name: 'DISCARD_TEMP', - value: 3 - } - ], - comment: - '/* ----------------------\n * Discard Statement\n * ----------------------\n */\n' - }, - ReindexObjectType: { - values: [ - { - comment: '' - }, - { - name: 'REINDEX_OBJECT_INDEX', - value: 0, - comment: '/* index */' - }, - { - name: 'REINDEX_OBJECT_TABLE', - value: 1, - comment: '/* table or materialized view */' - }, - { - name: 'REINDEX_OBJECT_SCHEMA', - value: 2, - comment: '/* schema */' - }, - { - name: 'REINDEX_OBJECT_SYSTEM', - value: 3, - comment: '/* system catalogs */' - }, - { - name: 'REINDEX_OBJECT_DATABASE', - value: 4, - comment: '/* database */' - } - ], - comment: '/* Reindex options */\n' - }, - AlterTSConfigType: { - values: [ - { - comment: '' - }, - { - name: 'ALTER_TSCONFIG_ADD_MAPPING', - value: 0 - }, - { - name: 'ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN', - value: 1 - }, - { - name: 'ALTER_TSCONFIG_REPLACE_DICT', - value: 2 - }, - { - name: 'ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN', - value: 3 - }, - { - name: 'ALTER_TSCONFIG_DROP_MAPPING', - value: 4 - } - ], - comment: - '/*\n * TS Configuration stmts: DefineStmt, RenameStmt and DropStmt are default\n */\n' - }, - AlterSubscriptionType: { - values: [ - { - comment: '' - }, - { - name: 'ALTER_SUBSCRIPTION_OPTIONS', - value: 0 - }, - { - name: 'ALTER_SUBSCRIPTION_CONNECTION', - value: 1 - }, - { - name: 'ALTER_SUBSCRIPTION_PUBLICATION', - value: 2 - }, - { - name: 'ALTER_SUBSCRIPTION_REFRESH', - value: 3 - }, - { - name: 'ALTER_SUBSCRIPTION_ENABLED', - value: 4 - } - ], - comment: null - } - }, - 'nodes/primnodes': { - OnCommitAction: { - values: [ - { - comment: '' - }, - { - name: 'ONCOMMIT_NOOP', - value: 0, - comment: '/* No ON COMMIT clause (do nothing) */' - }, - { - name: 'ONCOMMIT_PRESERVE_ROWS', - value: 1, - comment: '/* ON COMMIT PRESERVE ROWS (do nothing) */' - }, - { - name: 'ONCOMMIT_DELETE_ROWS', - value: 2, - comment: '/* ON COMMIT DELETE ROWS */' - }, - { - name: 'ONCOMMIT_DROP', - value: 3, - comment: '/* ON COMMIT DROP */' - } - ], - comment: '/* What to do at commit time for temporary relations */\n' - }, - ParamKind: { - values: [ - { - comment: '' - }, - { - name: 'PARAM_EXTERN', - value: 0 - }, - { - name: 'PARAM_EXEC', - value: 1 - }, - { - name: 'PARAM_SUBLINK', - value: 2 - }, - { - name: 'PARAM_MULTIEXPR', - value: 3 - } - ], - comment: - "/*\n * Param\n *\n *\t\tparamkind specifies the kind of parameter. The possible values\n *\t\tfor this field are:\n *\n *\t\tPARAM_EXTERN: The parameter value is supplied from outside the plan.\n *\t\t\t\tSuch parameters are numbered from 1 to n.\n *\n *\t\tPARAM_EXEC: The parameter is an internal executor parameter, used\n *\t\t\t\tfor passing values into and out of sub-queries or from\n *\t\t\t\tnestloop joins to their inner scans.\n *\t\t\t\tFor historical reasons, such parameters are numbered from 0.\n *\t\t\t\tThese numbers are independent of PARAM_EXTERN numbers.\n *\n *\t\tPARAM_SUBLINK:\tThe parameter represents an output column of a SubLink\n *\t\t\t\tnode's sub-select. The column number is contained in the\n *\t\t\t\t`paramid' field. (This type of Param is converted to\n *\t\t\t\tPARAM_EXEC during planning.)\n *\n *\t\tPARAM_MULTIEXPR: Like PARAM_SUBLINK, the parameter represents an\n *\t\t\t\toutput column of a SubLink node's sub-select, but here, the\n *\t\t\t\tSubLink is always a MULTIEXPR SubLink. The high-order 16 bits\n *\t\t\t\tof the `paramid' field contain the SubLink's subLinkId, and\n *\t\t\t\tthe low-order 16 bits contain the column number. (This type\n *\t\t\t\tof Param is also converted to PARAM_EXEC during planning.)\n */\n" - }, - CoercionContext: { - values: [ - { - comment: '' - }, - { - name: 'COERCION_IMPLICIT', - value: 0, - comment: '/* coercion in context of expression */' - }, - { - name: 'COERCION_ASSIGNMENT', - value: 1, - comment: '/* coercion in context of assignment */' - }, - { - name: 'COERCION_EXPLICIT', - value: 2, - comment: '/* explicit cast operation */' - } - ], - comment: - '/*\n * CoercionContext - distinguishes the allowed set of type casts\n *\n * NB: ordering of the alternatives is significant; later (larger) values\n * allow more casts than earlier ones.\n */\n' - }, - CoercionForm: { - values: [ - { - comment: '' - }, - { - name: 'COERCE_EXPLICIT_CALL', - value: 0, - comment: '/* display as a function call */' - }, - { - name: 'COERCE_EXPLICIT_CAST', - value: 1, - comment: '/* display as an explicit cast */' - }, - { - name: 'COERCE_IMPLICIT_CAST', - value: 2, - comment: '/* implicit cast, so hide it */' - } - ], - comment: - "/*\n * CoercionForm - how to display a node that could have come from a cast\n *\n * NB: equal() ignores CoercionForm fields, therefore this *must* not carry\n * any semantically significant information. We need that behavior so that\n * the planner will consider equivalent implicit and explicit casts to be\n * equivalent. In cases where those actually behave differently, the coercion\n * function's arguments will be different.\n */\n" - }, - BoolExprType: { - values: [ - { - comment: '' - }, - { - name: 'AND_EXPR', - value: 0 - }, - { - name: 'OR_EXPR' - }, - { - name: 'NOT_EXPR' - } - ], - comment: - '/*\n * BoolExpr - expression node for the basic Boolean operators AND, OR, NOT\n *\n * Notice the arguments are given as a List. For NOT, of course the list\n * must always have exactly one element. For AND and OR, there can be two\n * or more arguments.\n */\n' - }, - SubLinkType: { - values: [ - { - comment: '' - }, - { - name: 'EXISTS_SUBLINK', - value: 0 - }, - { - name: 'ALL_SUBLINK', - value: 1 - }, - { - name: 'ANY_SUBLINK', - value: 2 - }, - { - name: 'ROWCOMPARE_SUBLINK', - value: 3 - }, - { - name: 'EXPR_SUBLINK', - value: 4 - }, - { - name: 'MULTIEXPR_SUBLINK', - value: 5 - }, - { - name: 'ARRAY_SUBLINK', - value: 6 - }, - { - name: 'CTE_SUBLINK', - value: 7, - comment: '/* for SubPlans only */' - } - ], - comment: - "/*\n * SubLink\n *\n * A SubLink represents a subselect appearing in an expression, and in some\n * cases also the combining operator(s) just above it. The subLinkType\n * indicates the form of the expression represented:\n *\tEXISTS_SUBLINK\t\tEXISTS(SELECT ...)\n *\tALL_SUBLINK\t\t\t(lefthand) op ALL (SELECT ...)\n *\tANY_SUBLINK\t\t\t(lefthand) op ANY (SELECT ...)\n *\tROWCOMPARE_SUBLINK\t(lefthand) op (SELECT ...)\n *\tEXPR_SUBLINK\t\t(SELECT with single targetlist item ...)\n *\tMULTIEXPR_SUBLINK\t(SELECT with multiple targetlist items ...)\n *\tARRAY_SUBLINK\t\tARRAY(SELECT with single targetlist item ...)\n *\tCTE_SUBLINK\t\t\tWITH query (never actually part of an expression)\n * For ALL, ANY, and ROWCOMPARE, the lefthand is a list of expressions of the\n * same length as the subselect's targetlist. ROWCOMPARE will *always* have\n * a list with more than one entry; if the subselect has just one target\n * then the parser will create an EXPR_SUBLINK instead (and any operator\n * above the subselect will be represented separately).\n * ROWCOMPARE, EXPR, and MULTIEXPR require the subselect to deliver at most\n * one row (if it returns no rows, the result is NULL).\n * ALL, ANY, and ROWCOMPARE require the combining operators to deliver boolean\n * results. ALL and ANY combine the per-row results using AND and OR\n * semantics respectively.\n * ARRAY requires just one target column, and creates an array of the target\n * column's type using any number of rows resulting from the subselect.\n *\n * SubLink is classed as an Expr node, but it is not actually executable;\n * it must be replaced in the expression tree by a SubPlan node during\n * planning.\n *\n * NOTE: in the raw output of gram.y, testexpr contains just the raw form\n * of the lefthand expression (if any), and operName is the String name of\n * the combining operator. Also, subselect is a raw parsetree. During parse\n * analysis, the parser transforms testexpr into a complete boolean expression\n * that compares the lefthand value(s) to PARAM_SUBLINK nodes representing the\n * output columns of the subselect. And subselect is transformed to a Query.\n * This is the representation seen in saved rules and in the rewriter.\n *\n * In EXISTS, EXPR, MULTIEXPR, and ARRAY SubLinks, testexpr and operName\n * are unused and are always null.\n *\n * subLinkId is currently used only for MULTIEXPR SubLinks, and is zero in\n * other SubLinks. This number identifies different multiple-assignment\n * subqueries within an UPDATE statement's SET list. It is unique only\n * within a particular targetlist. The output column(s) of the MULTIEXPR\n * are referenced by PARAM_MULTIEXPR Params appearing elsewhere in the tlist.\n *\n * The CTE_SUBLINK case never occurs in actual SubLink nodes, but it is used\n * in SubPlans generated for WITH subqueries.\n */\n" - }, - RowCompareType: { - values: [ - { - comment: '' - }, - { - comment: - '\t/* Values of this enum are chosen to match btree strategy numbers */\n' - }, - { - name: 'ROWCOMPARE_LT', - value: 1, - comment: '/* BTLessStrategyNumber */' - }, - { - name: 'ROWCOMPARE_LE', - value: 2, - comment: '/* BTLessEqualStrategyNumber */' - }, - { - name: 'ROWCOMPARE_EQ', - value: 3, - comment: '/* BTEqualStrategyNumber */' - }, - { - name: 'ROWCOMPARE_GE', - value: 4, - comment: '/* BTGreaterEqualStrategyNumber */' - }, - { - name: 'ROWCOMPARE_GT', - value: 5, - comment: '/* BTGreaterStrategyNumber */' - }, - { - name: 'ROWCOMPARE_NE', - value: 6, - comment: '/* no such btree strategy */' - } - ], - comment: - '/*\n * RowCompareExpr - row-wise comparison, such as (a, b) <= (1, 2)\n *\n * We support row comparison for any operator that can be determined to\n * act like =, <>, <, <=, >, or >= (we determine this by looking for the\n * operator in btree opfamilies). Note that the same operator name might\n * map to a different operator for each pair of row elements, since the\n * element datatypes can vary.\n *\n * A RowCompareExpr node is only generated for the < <= > >= cases;\n * the = and <> cases are translated to simple AND or OR combinations\n * of the pairwise comparisons. However, we include = and <> in the\n * RowCompareType enum for the convenience of parser logic.\n */\n' - }, - MinMaxOp: { - values: [ - { - comment: '' - }, - { - name: 'IS_GREATEST', - value: 0 - }, - { - name: 'IS_LEAST', - value: 1 - } - ], - comment: '/*\n * MinMaxExpr - a GREATEST or LEAST function\n */\n' - }, - SQLValueFunctionOp: { - values: [ - { - comment: '' - }, - { - name: 'SVFOP_CURRENT_DATE', - value: 0 - }, - { - name: 'SVFOP_CURRENT_TIME', - value: 1 - }, - { - name: 'SVFOP_CURRENT_TIME_N', - value: 2 - }, - { - name: 'SVFOP_CURRENT_TIMESTAMP', - value: 3 - }, - { - name: 'SVFOP_CURRENT_TIMESTAMP_N', - value: 4 - }, - { - name: 'SVFOP_LOCALTIME', - value: 5 - }, - { - name: 'SVFOP_LOCALTIME_N', - value: 6 - }, - { - name: 'SVFOP_LOCALTIMESTAMP', - value: 7 - }, - { - name: 'SVFOP_LOCALTIMESTAMP_N', - value: 8 - }, - { - name: 'SVFOP_CURRENT_ROLE', - value: 9 - }, - { - name: 'SVFOP_CURRENT_USER', - value: 10 - }, - { - name: 'SVFOP_USER', - value: 11 - }, - { - name: 'SVFOP_SESSION_USER', - value: 12 - }, - { - name: 'SVFOP_CURRENT_CATALOG', - value: 13 - }, - { - name: 'SVFOP_CURRENT_SCHEMA', - value: 14 - } - ], - comment: - "/*\n * SQLValueFunction - parameterless functions with special grammar productions\n *\n * The SQL standard categorizes some of these as \n * and others as . We call 'em SQLValueFunctions\n * for lack of a better term. We store type and typmod of the result so that\n * some code doesn't need to know each function individually, and because\n * we would need to store typmod anyway for some of the datetime functions.\n * Note that currently, all variants return non-collating datatypes, so we do\n * not need a collation field; also, all these functions are stable.\n */\n" - }, - XmlExprOp: { - values: [ - { - comment: '' - }, - { - name: 'IS_XMLCONCAT', - value: 0, - comment: '/* XMLCONCAT(args) */' - }, - { - name: 'IS_XMLELEMENT', - value: 1, - comment: '/* XMLELEMENT(name, xml_attributes, args) */' - }, - { - name: 'IS_XMLFOREST', - value: 2, - comment: '/* XMLFOREST(xml_attributes) */' - }, - { - name: 'IS_XMLPARSE', - value: 3, - comment: '/* XMLPARSE(text, is_doc, preserve_ws) */' - }, - { - name: 'IS_XMLPI', - value: 4, - comment: '/* XMLPI(name [, args]) */' - }, - { - name: 'IS_XMLROOT', - value: 5, - comment: '/* XMLROOT(xml, version, standalone) */' - }, - { - name: 'IS_XMLSERIALIZE', - value: 6, - comment: '/* XMLSERIALIZE(is_document, xmlval) */' - }, - { - name: 'IS_DOCUMENT', - value: 7, - comment: '/* xmlval IS DOCUMENT */' - } - ], - comment: - "/*\n * XmlExpr - various SQL/XML functions requiring special grammar productions\n *\n * 'name' carries the \"NAME foo\" argument (already XML-escaped).\n * 'named_args' and 'arg_names' represent an xml_attribute list.\n * 'args' carries all other arguments.\n *\n * Note: result type/typmod/collation are not stored, but can be deduced\n * from the XmlExprOp. The type/typmod fields are just used for display\n * purposes, and are NOT necessarily the true result type of the node.\n */\n" - }, - XmlOptionType: { - values: [ - { - comment: '' - }, - { - name: 'XMLOPTION_DOCUMENT', - value: 0 - }, - { - name: 'XMLOPTION_CONTENT', - value: 1 - } - ], - comment: null - }, - NullTestType: { - values: [ - { - comment: '' - }, - { - name: 'IS_NULL', - value: 0 - }, - { - name: 'IS_NOT_NULL' - } - ], - comment: - '/* ----------------\n * NullTest\n *\n * NullTest represents the operation of testing a value for NULLness.\n * The appropriate test is performed and returned as a boolean Datum.\n *\n * When argisrow is false, this simply represents a test for the null value.\n *\n * When argisrow is true, the input expression must yield a rowtype, and\n * the node implements "row IS [NOT] NULL" per the SQL standard. This\n * includes checking individual fields for NULLness when the row datum\n * itself isn\'t NULL.\n *\n * NOTE: the combination of a rowtype input and argisrow==false does NOT\n * correspond to the SQL notation "row IS [NOT] NULL"; instead, this case\n * represents the SQL notation "row IS [NOT] DISTINCT FROM NULL".\n * ----------------\n */\n' - }, - BoolTestType: { - values: [ - { - comment: '' - }, - { - name: 'IS_TRUE', - value: 0 - }, - { - name: 'IS_NOT_TRUE' - }, - { - name: 'IS_FALSE' - }, - { - name: 'IS_NOT_FALSE' - }, - { - name: 'IS_UNKNOWN' - }, - { - name: 'IS_NOT_UNKNOWN' - } - ], - comment: - '/*\n * BooleanTest\n *\n * BooleanTest represents the operation of determining whether a boolean\n * is TRUE, FALSE, or UNKNOWN (ie, NULL). All six meaningful combinations\n * are supported. Note that a NULL input does *not* cause a NULL result.\n * The appropriate test is performed and returned as a boolean Datum.\n */\n' - } - }, - 'nodes/lockoptions': { - LockClauseStrength: { - values: [ - { - comment: '' - }, - { - name: 'LCS_NONE', - value: 0, - comment: '/* no such clause - only used in PlanRowMark */' - }, - { - name: 'LCS_FORKEYSHARE', - value: 1, - comment: '/* FOR KEY SHARE */' - }, - { - name: 'LCS_FORSHARE', - value: 2, - comment: '/* FOR SHARE */' - }, - { - name: 'LCS_FORNOKEYUPDATE', - value: 3, - comment: '/* FOR NO KEY UPDATE */' - }, - { - name: 'LCS_FORUPDATE', - value: 4, - comment: '/* FOR UPDATE */' - } - ], - comment: - '/*\n * This enum represents the different strengths of FOR UPDATE/SHARE clauses.\n * The ordering here is important, because the highest numerical value takes\n * precedence when a RTE is specified multiple ways. See applyLockingClause.\n */\n' - }, - LockWaitPolicy: { - values: [ - { - comment: '' - }, - { - comment: - '\t/* Wait for the lock to become available (default behavior) */\n' - }, - { - name: 'LockWaitBlock', - value: 0 - }, - { - comment: "\t/* Skip rows that can't be locked (SKIP LOCKED) */\n" - }, - { - name: 'LockWaitSkip', - value: 1 - }, - { - comment: '\t/* Raise an error if a row cannot be locked (NOWAIT) */\n' - }, - { - name: 'LockWaitError', - value: 2 - } - ], - comment: - '/*\n * This enum controls how to deal with rows being locked by FOR UPDATE/SHARE\n * clauses (i.e., it represents the NOWAIT and SKIP LOCKED options).\n * The ordering here is important, because the highest numerical value takes\n * precedence when a RTE is specified multiple ways. See applyLockingClause.\n */\n' - }, - LockTupleMode: { - values: [ - { - comment: '' - }, - { - comment: '\t/* SELECT FOR KEY SHARE */\n' - }, - { - name: 'LockTupleKeyShare', - value: 0 - }, - { - comment: '\t/* SELECT FOR SHARE */\n' - }, - { - name: 'LockTupleShare', - value: 1 - }, - { - comment: - "\t/* SELECT FOR NO KEY UPDATE, and UPDATEs that don't modify key columns */\n" - }, - { - name: 'LockTupleNoKeyExclusive', - value: 2 - }, - { - comment: - '\t/* SELECT FOR UPDATE, UPDATEs that modify key columns, and DELETE */\n' - }, - { - name: 'LockTupleExclusive', - value: 3 - } - ], - comment: '/*\n * Possible lock modes for a tuple.\n */\n' - } - }, - 'nodes/nodes': { - NodeTag: { - values: [ - { - comment: '' - }, - { - name: 'T_Invalid', - value: 0 - }, - { - comment: '' - }, - { - comment: '\t/*\n\t * TAGS FOR EXECUTOR NODES (execnodes.h)\n\t */\n' - }, - { - name: 'T_IndexInfo', - value: 1 - }, - { - name: 'T_ExprContext', - value: 2 - }, - { - name: 'T_ProjectionInfo', - value: 3 - }, - { - name: 'T_JunkFilter', - value: 4 - }, - { - name: 'T_OnConflictSetState', - value: 5 - }, - { - name: 'T_ResultRelInfo', - value: 6 - }, - { - name: 'T_EState', - value: 7 - }, - { - name: 'T_TupleTableSlot', - value: 8 - }, - { - comment: '' - }, - { - comment: '\t/*\n\t * TAGS FOR PLAN NODES (plannodes.h)\n\t */\n' - }, - { - name: 'T_Plan', - value: 9 - }, - { - name: 'T_Result', - value: 10 - }, - { - name: 'T_ProjectSet', - value: 11 - }, - { - name: 'T_ModifyTable', - value: 12 - }, - { - name: 'T_Append', - value: 13 - }, - { - name: 'T_MergeAppend', - value: 14 - }, - { - name: 'T_RecursiveUnion', - value: 15 - }, - { - name: 'T_BitmapAnd', - value: 16 - }, - { - name: 'T_BitmapOr', - value: 17 - }, - { - name: 'T_Scan', - value: 18 - }, - { - name: 'T_SeqScan', - value: 19 - }, - { - name: 'T_SampleScan', - value: 20 - }, - { - name: 'T_IndexScan', - value: 21 - }, - { - name: 'T_IndexOnlyScan', - value: 22 - }, - { - name: 'T_BitmapIndexScan', - value: 23 - }, - { - name: 'T_BitmapHeapScan', - value: 24 - }, - { - name: 'T_TidScan', - value: 25 - }, - { - name: 'T_SubqueryScan', - value: 26 - }, - { - name: 'T_FunctionScan', - value: 27 - }, - { - name: 'T_ValuesScan', - value: 28 - }, - { - name: 'T_TableFuncScan', - value: 29 - }, - { - name: 'T_CteScan', - value: 30 - }, - { - name: 'T_NamedTuplestoreScan', - value: 31 - }, - { - name: 'T_WorkTableScan', - value: 32 - }, - { - name: 'T_ForeignScan', - value: 33 - }, - { - name: 'T_CustomScan', - value: 34 - }, - { - name: 'T_Join', - value: 35 - }, - { - name: 'T_NestLoop', - value: 36 - }, - { - name: 'T_MergeJoin', - value: 37 - }, - { - name: 'T_HashJoin', - value: 38 - }, - { - name: 'T_Material', - value: 39 - }, - { - name: 'T_Sort', - value: 40 - }, - { - name: 'T_IncrementalSort', - value: 41 - }, - { - name: 'T_Group', - value: 42 - }, - { - name: 'T_Agg', - value: 43 - }, - { - name: 'T_WindowAgg', - value: 44 - }, - { - name: 'T_Unique', - value: 45 - }, - { - name: 'T_Gather', - value: 46 - }, - { - name: 'T_GatherMerge', - value: 47 - }, - { - name: 'T_Hash', - value: 48 - }, - { - name: 'T_SetOp', - value: 49 - }, - { - name: 'T_LockRows', - value: 50 - }, - { - name: 'T_Limit', - value: 51 - }, - { - comment: "\t/* these aren't subclasses of Plan: */\n" - }, - { - name: 'T_NestLoopParam', - value: 52 - }, - { - name: 'T_PlanRowMark', - value: 53 - }, - { - name: 'T_PartitionPruneInfo', - value: 54 - }, - { - name: 'T_PartitionedRelPruneInfo', - value: 55 - }, - { - name: 'T_PartitionPruneStepOp', - value: 56 - }, - { - name: 'T_PartitionPruneStepCombine', - value: 57 - }, - { - name: 'T_PlanInvalItem', - value: 58 - }, - { - comment: '' - }, - { - comment: - '\t/*\n\t * TAGS FOR PLAN STATE NODES (execnodes.h)\n\t *\n\t * These should correspond one-to-one with Plan node types.\n\t */\n' - }, - { - name: 'T_PlanState', - value: 59 - }, - { - name: 'T_ResultState', - value: 60 - }, - { - name: 'T_ProjectSetState', - value: 61 - }, - { - name: 'T_ModifyTableState', - value: 62 - }, - { - name: 'T_AppendState', - value: 63 - }, - { - name: 'T_MergeAppendState', - value: 64 - }, - { - name: 'T_RecursiveUnionState', - value: 65 - }, - { - name: 'T_BitmapAndState', - value: 66 - }, - { - name: 'T_BitmapOrState', - value: 67 - }, - { - name: 'T_ScanState', - value: 68 - }, - { - name: 'T_SeqScanState', - value: 69 - }, - { - name: 'T_SampleScanState', - value: 70 - }, - { - name: 'T_IndexScanState', - value: 71 - }, - { - name: 'T_IndexOnlyScanState', - value: 72 - }, - { - name: 'T_BitmapIndexScanState', - value: 73 - }, - { - name: 'T_BitmapHeapScanState', - value: 74 - }, - { - name: 'T_TidScanState', - value: 75 - }, - { - name: 'T_SubqueryScanState', - value: 76 - }, - { - name: 'T_FunctionScanState', - value: 77 - }, - { - name: 'T_TableFuncScanState', - value: 78 - }, - { - name: 'T_ValuesScanState', - value: 79 - }, - { - name: 'T_CteScanState', - value: 80 - }, - { - name: 'T_NamedTuplestoreScanState', - value: 81 - }, - { - name: 'T_WorkTableScanState', - value: 82 - }, - { - name: 'T_ForeignScanState', - value: 83 - }, - { - name: 'T_CustomScanState', - value: 84 - }, - { - name: 'T_JoinState', - value: 85 - }, - { - name: 'T_NestLoopState', - value: 86 - }, - { - name: 'T_MergeJoinState', - value: 87 - }, - { - name: 'T_HashJoinState', - value: 88 - }, - { - name: 'T_MaterialState', - value: 89 - }, - { - name: 'T_SortState', - value: 90 - }, - { - name: 'T_IncrementalSortState', - value: 91 - }, - { - name: 'T_GroupState', - value: 92 - }, - { - name: 'T_AggState', - value: 93 - }, - { - name: 'T_WindowAggState', - value: 94 - }, - { - name: 'T_UniqueState', - value: 95 - }, - { - name: 'T_GatherState', - value: 96 - }, - { - name: 'T_GatherMergeState', - value: 97 - }, - { - name: 'T_HashState', - value: 98 - }, - { - name: 'T_SetOpState', - value: 99 - }, - { - name: 'T_LockRowsState', - value: 100 - }, - { - name: 'T_LimitState', - value: 101 - }, - { - comment: '' - }, - { - comment: '\t/*\n\t * TAGS FOR PRIMITIVE NODES (primnodes.h)\n\t */\n' - }, - { - name: 'T_Alias', - value: 102 - }, - { - name: 'T_RangeVar', - value: 103 - }, - { - name: 'T_TableFunc', - value: 104 - }, - { - name: 'T_Expr', - value: 105 - }, - { - name: 'T_Var', - value: 106 - }, - { - name: 'T_Const', - value: 107 - }, - { - name: 'T_Param', - value: 108 - }, - { - name: 'T_Aggref', - value: 109 - }, - { - name: 'T_GroupingFunc', - value: 110 - }, - { - name: 'T_WindowFunc', - value: 111 - }, - { - name: 'T_SubscriptingRef', - value: 112 - }, - { - name: 'T_FuncExpr', - value: 113 - }, - { - name: 'T_NamedArgExpr', - value: 114 - }, - { - name: 'T_OpExpr', - value: 115 - }, - { - name: 'T_DistinctExpr', - value: 116 - }, - { - name: 'T_NullIfExpr', - value: 117 - }, - { - name: 'T_ScalarArrayOpExpr', - value: 118 - }, - { - name: 'T_BoolExpr', - value: 119 - }, - { - name: 'T_SubLink', - value: 120 - }, - { - name: 'T_SubPlan', - value: 121 - }, - { - name: 'T_AlternativeSubPlan', - value: 122 - }, - { - name: 'T_FieldSelect', - value: 123 - }, - { - name: 'T_FieldStore', - value: 124 - }, - { - name: 'T_RelabelType', - value: 125 - }, - { - name: 'T_CoerceViaIO', - value: 126 - }, - { - name: 'T_ArrayCoerceExpr', - value: 127 - }, - { - name: 'T_ConvertRowtypeExpr', - value: 128 - }, - { - name: 'T_CollateExpr', - value: 129 - }, - { - name: 'T_CaseExpr', - value: 130 - }, - { - name: 'T_CaseWhen', - value: 131 - }, - { - name: 'T_CaseTestExpr', - value: 132 - }, - { - name: 'T_ArrayExpr', - value: 133 - }, - { - name: 'T_RowExpr', - value: 134 - }, - { - name: 'T_RowCompareExpr', - value: 135 - }, - { - name: 'T_CoalesceExpr', - value: 136 - }, - { - name: 'T_MinMaxExpr', - value: 137 - }, - { - name: 'T_SQLValueFunction', - value: 138 - }, - { - name: 'T_XmlExpr', - value: 139 - }, - { - name: 'T_NullTest', - value: 140 - }, - { - name: 'T_BooleanTest', - value: 141 - }, - { - name: 'T_CoerceToDomain', - value: 142 - }, - { - name: 'T_CoerceToDomainValue', - value: 143 - }, - { - name: 'T_SetToDefault', - value: 144 - }, - { - name: 'T_CurrentOfExpr', - value: 145 - }, - { - name: 'T_NextValueExpr', - value: 146 - }, - { - name: 'T_InferenceElem', - value: 147 - }, - { - name: 'T_TargetEntry', - value: 148 - }, - { - name: 'T_RangeTblRef', - value: 149 - }, - { - name: 'T_JoinExpr', - value: 150 - }, - { - name: 'T_FromExpr', - value: 151 - }, - { - name: 'T_OnConflictExpr', - value: 152 - }, - { - name: 'T_IntoClause', - value: 153 - }, - { - comment: '' - }, - { - comment: - "\t/*\n\t * TAGS FOR EXPRESSION STATE NODES (execnodes.h)\n\t *\n\t * ExprState represents the evaluation state for a whole expression tree.\n\t * Most Expr-based plan nodes do not have a corresponding expression state\n\t * node, they're fully handled within execExpr* - but sometimes the state\n\t * needs to be shared with other parts of the executor, as for example\n\t * with AggrefExprState, which nodeAgg.c has to modify.\n\t */\n" - }, - { - name: 'T_ExprState', - value: 154 - }, - { - name: 'T_AggrefExprState', - value: 155 - }, - { - name: 'T_WindowFuncExprState', - value: 156 - }, - { - name: 'T_SetExprState', - value: 157 - }, - { - name: 'T_SubPlanState', - value: 158 - }, - { - name: 'T_AlternativeSubPlanState', - value: 159 - }, - { - name: 'T_DomainConstraintState', - value: 160 - }, - { - comment: '' - }, - { - comment: '\t/*\n\t * TAGS FOR PLANNER NODES (pathnodes.h)\n\t */\n' - }, - { - name: 'T_PlannerInfo', - value: 161 - }, - { - name: 'T_PlannerGlobal', - value: 162 - }, - { - name: 'T_RelOptInfo', - value: 163 - }, - { - name: 'T_IndexOptInfo', - value: 164 - }, - { - name: 'T_ForeignKeyOptInfo', - value: 165 - }, - { - name: 'T_ParamPathInfo', - value: 166 - }, - { - name: 'T_Path', - value: 167 - }, - { - name: 'T_IndexPath', - value: 168 - }, - { - name: 'T_BitmapHeapPath', - value: 169 - }, - { - name: 'T_BitmapAndPath', - value: 170 - }, - { - name: 'T_BitmapOrPath', - value: 171 - }, - { - name: 'T_TidPath', - value: 172 - }, - { - name: 'T_SubqueryScanPath', - value: 173 - }, - { - name: 'T_ForeignPath', - value: 174 - }, - { - name: 'T_CustomPath', - value: 175 - }, - { - name: 'T_NestPath', - value: 176 - }, - { - name: 'T_MergePath', - value: 177 - }, - { - name: 'T_HashPath', - value: 178 - }, - { - name: 'T_AppendPath', - value: 179 - }, - { - name: 'T_MergeAppendPath', - value: 180 - }, - { - name: 'T_GroupResultPath', - value: 181 - }, - { - name: 'T_MaterialPath', - value: 182 - }, - { - name: 'T_UniquePath', - value: 183 - }, - { - name: 'T_GatherPath', - value: 184 - }, - { - name: 'T_GatherMergePath', - value: 185 - }, - { - name: 'T_ProjectionPath', - value: 186 - }, - { - name: 'T_ProjectSetPath', - value: 187 - }, - { - name: 'T_SortPath', - value: 188 - }, - { - name: 'T_IncrementalSortPath', - value: 189 - }, - { - name: 'T_GroupPath', - value: 190 - }, - { - name: 'T_UpperUniquePath', - value: 191 - }, - { - name: 'T_AggPath', - value: 192 - }, - { - name: 'T_GroupingSetsPath', - value: 193 - }, - { - name: 'T_MinMaxAggPath', - value: 194 - }, - { - name: 'T_WindowAggPath', - value: 195 - }, - { - name: 'T_SetOpPath', - value: 196 - }, - { - name: 'T_RecursiveUnionPath', - value: 197 - }, - { - name: 'T_LockRowsPath', - value: 198 - }, - { - name: 'T_ModifyTablePath', - value: 199 - }, - { - name: 'T_LimitPath', - value: 200 - }, - { - comment: "\t/* these aren't subclasses of Path: */\n" - }, - { - name: 'T_EquivalenceClass', - value: 201 - }, - { - name: 'T_EquivalenceMember', - value: 202 - }, - { - name: 'T_PathKey', - value: 203 - }, - { - name: 'T_PathTarget', - value: 204 - }, - { - name: 'T_RestrictInfo', - value: 205 - }, - { - name: 'T_IndexClause', - value: 206 - }, - { - name: 'T_PlaceHolderVar', - value: 207 - }, - { - name: 'T_SpecialJoinInfo', - value: 208 - }, - { - name: 'T_AppendRelInfo', - value: 209 - }, - { - name: 'T_PlaceHolderInfo', - value: 210 - }, - { - name: 'T_MinMaxAggInfo', - value: 211 - }, - { - name: 'T_PlannerParamItem', - value: 212 - }, - { - name: 'T_RollupData', - value: 213 - }, - { - name: 'T_GroupingSetData', - value: 214 - }, - { - name: 'T_StatisticExtInfo', - value: 215 - }, - { - comment: '' - }, - { - comment: '\t/*\n\t * TAGS FOR MEMORY NODES (memnodes.h)\n\t */\n' - }, - { - name: 'T_MemoryContext', - value: 216 - }, - { - name: 'T_AllocSetContext', - value: 217 - }, - { - name: 'T_SlabContext', - value: 218 - }, - { - name: 'T_GenerationContext', - value: 219 - }, - { - comment: '' - }, - { - comment: '\t/*\n\t * TAGS FOR VALUE NODES (value.h)\n\t */\n' - }, - { - name: 'T_Value', - value: 220 - }, - { - name: 'T_Integer', - value: 221 - }, - { - name: 'T_Float', - value: 222 - }, - { - name: 'T_String', - value: 223 - }, - { - name: 'T_BitString', - value: 224 - }, - { - name: 'T_Null', - value: 225 - }, - { - comment: '' - }, - { - comment: '\t/*\n\t * TAGS FOR LIST NODES (pg_list.h)\n\t */\n' - }, - { - name: 'T_List', - value: 226 - }, - { - name: 'T_IntList', - value: 227 - }, - { - name: 'T_OidList', - value: 228 - }, - { - comment: '' - }, - { - comment: - '\t/*\n\t * TAGS FOR EXTENSIBLE NODES (extensible.h)\n\t */\n' - }, - { - name: 'T_ExtensibleNode', - value: 229 - }, - { - comment: '' - }, - { - comment: - '\t/*\n\t * TAGS FOR STATEMENT NODES (mostly in parsenodes.h)\n\t */\n' - }, - { - name: 'T_RawStmt', - value: 230 - }, - { - name: 'T_Query', - value: 231 - }, - { - name: 'T_PlannedStmt', - value: 232 - }, - { - name: 'T_InsertStmt', - value: 233 - }, - { - name: 'T_DeleteStmt', - value: 234 - }, - { - name: 'T_UpdateStmt', - value: 235 - }, - { - name: 'T_SelectStmt', - value: 236 - }, - { - name: 'T_AlterTableStmt', - value: 237 - }, - { - name: 'T_AlterTableCmd', - value: 238 - }, - { - name: 'T_AlterDomainStmt', - value: 239 - }, - { - name: 'T_SetOperationStmt', - value: 240 - }, - { - name: 'T_GrantStmt', - value: 241 - }, - { - name: 'T_GrantRoleStmt', - value: 242 - }, - { - name: 'T_AlterDefaultPrivilegesStmt', - value: 243 - }, - { - name: 'T_ClosePortalStmt', - value: 244 - }, - { - name: 'T_ClusterStmt', - value: 245 - }, - { - name: 'T_CopyStmt', - value: 246 - }, - { - name: 'T_CreateStmt', - value: 247 - }, - { - name: 'T_DefineStmt', - value: 248 - }, - { - name: 'T_DropStmt', - value: 249 - }, - { - name: 'T_TruncateStmt', - value: 250 - }, - { - name: 'T_CommentStmt', - value: 251 - }, - { - name: 'T_FetchStmt', - value: 252 - }, - { - name: 'T_IndexStmt', - value: 253 - }, - { - name: 'T_CreateFunctionStmt', - value: 254 - }, - { - name: 'T_AlterFunctionStmt', - value: 255 - }, - { - name: 'T_DoStmt', - value: 256 - }, - { - name: 'T_RenameStmt', - value: 257 - }, - { - name: 'T_RuleStmt', - value: 258 - }, - { - name: 'T_NotifyStmt', - value: 259 - }, - { - name: 'T_ListenStmt', - value: 260 - }, - { - name: 'T_UnlistenStmt', - value: 261 - }, - { - name: 'T_TransactionStmt', - value: 262 - }, - { - name: 'T_ViewStmt', - value: 263 - }, - { - name: 'T_LoadStmt', - value: 264 - }, - { - name: 'T_CreateDomainStmt', - value: 265 - }, - { - name: 'T_CreatedbStmt', - value: 266 - }, - { - name: 'T_DropdbStmt', - value: 267 - }, - { - name: 'T_VacuumStmt', - value: 268 - }, - { - name: 'T_ExplainStmt', - value: 269 - }, - { - name: 'T_CreateTableAsStmt', - value: 270 - }, - { - name: 'T_CreateSeqStmt', - value: 271 - }, - { - name: 'T_AlterSeqStmt', - value: 272 - }, - { - name: 'T_VariableSetStmt', - value: 273 - }, - { - name: 'T_VariableShowStmt', - value: 274 - }, - { - name: 'T_DiscardStmt', - value: 275 - }, - { - name: 'T_CreateTrigStmt', - value: 276 - }, - { - name: 'T_CreatePLangStmt', - value: 277 - }, - { - name: 'T_CreateRoleStmt', - value: 278 - }, - { - name: 'T_AlterRoleStmt', - value: 279 - }, - { - name: 'T_DropRoleStmt', - value: 280 - }, - { - name: 'T_LockStmt', - value: 281 - }, - { - name: 'T_ConstraintsSetStmt', - value: 282 - }, - { - name: 'T_ReindexStmt', - value: 283 - }, - { - name: 'T_CheckPointStmt', - value: 284 - }, - { - name: 'T_CreateSchemaStmt', - value: 285 - }, - { - name: 'T_AlterDatabaseStmt', - value: 286 - }, - { - name: 'T_AlterDatabaseSetStmt', - value: 287 - }, - { - name: 'T_AlterRoleSetStmt', - value: 288 - }, - { - name: 'T_CreateConversionStmt', - value: 289 - }, - { - name: 'T_CreateCastStmt', - value: 290 - }, - { - name: 'T_CreateOpClassStmt', - value: 291 - }, - { - name: 'T_CreateOpFamilyStmt', - value: 292 - }, - { - name: 'T_AlterOpFamilyStmt', - value: 293 - }, - { - name: 'T_PrepareStmt', - value: 294 - }, - { - name: 'T_ExecuteStmt', - value: 295 - }, - { - name: 'T_DeallocateStmt', - value: 296 - }, - { - name: 'T_DeclareCursorStmt', - value: 297 - }, - { - name: 'T_CreateTableSpaceStmt', - value: 298 - }, - { - name: 'T_DropTableSpaceStmt', - value: 299 - }, - { - name: 'T_AlterObjectDependsStmt', - value: 300 - }, - { - name: 'T_AlterObjectSchemaStmt', - value: 301 - }, - { - name: 'T_AlterOwnerStmt', - value: 302 - }, - { - name: 'T_AlterOperatorStmt', - value: 303 - }, - { - name: 'T_AlterTypeStmt', - value: 304 - }, - { - name: 'T_DropOwnedStmt', - value: 305 - }, - { - name: 'T_ReassignOwnedStmt', - value: 306 - }, - { - name: 'T_CompositeTypeStmt', - value: 307 - }, - { - name: 'T_CreateEnumStmt', - value: 308 - }, - { - name: 'T_CreateRangeStmt', - value: 309 - }, - { - name: 'T_AlterEnumStmt', - value: 310 - }, - { - name: 'T_AlterTSDictionaryStmt', - value: 311 - }, - { - name: 'T_AlterTSConfigurationStmt', - value: 312 - }, - { - name: 'T_CreateFdwStmt', - value: 313 - }, - { - name: 'T_AlterFdwStmt', - value: 314 - }, - { - name: 'T_CreateForeignServerStmt', - value: 315 - }, - { - name: 'T_AlterForeignServerStmt', - value: 316 - }, - { - name: 'T_CreateUserMappingStmt', - value: 317 - }, - { - name: 'T_AlterUserMappingStmt', - value: 318 - }, - { - name: 'T_DropUserMappingStmt', - value: 319 - }, - { - name: 'T_AlterTableSpaceOptionsStmt', - value: 320 - }, - { - name: 'T_AlterTableMoveAllStmt', - value: 321 - }, - { - name: 'T_SecLabelStmt', - value: 322 - }, - { - name: 'T_CreateForeignTableStmt', - value: 323 - }, - { - name: 'T_ImportForeignSchemaStmt', - value: 324 - }, - { - name: 'T_CreateExtensionStmt', - value: 325 - }, - { - name: 'T_AlterExtensionStmt', - value: 326 - }, - { - name: 'T_AlterExtensionContentsStmt', - value: 327 - }, - { - name: 'T_CreateEventTrigStmt', - value: 328 - }, - { - name: 'T_AlterEventTrigStmt', - value: 329 - }, - { - name: 'T_RefreshMatViewStmt', - value: 330 - }, - { - name: 'T_ReplicaIdentityStmt', - value: 331 - }, - { - name: 'T_AlterSystemStmt', - value: 332 - }, - { - name: 'T_CreatePolicyStmt', - value: 333 - }, - { - name: 'T_AlterPolicyStmt', - value: 334 - }, - { - name: 'T_CreateTransformStmt', - value: 335 - }, - { - name: 'T_CreateAmStmt', - value: 336 - }, - { - name: 'T_CreatePublicationStmt', - value: 337 - }, - { - name: 'T_AlterPublicationStmt', - value: 338 - }, - { - name: 'T_CreateSubscriptionStmt', - value: 339 - }, - { - name: 'T_AlterSubscriptionStmt', - value: 340 - }, - { - name: 'T_DropSubscriptionStmt', - value: 341 - }, - { - name: 'T_CreateStatsStmt', - value: 342 - }, - { - name: 'T_AlterCollationStmt', - value: 343 - }, - { - name: 'T_CallStmt', - value: 344 - }, - { - name: 'T_AlterStatsStmt', - value: 345 - }, - { - comment: '' - }, - { - comment: - '\t/*\n\t * TAGS FOR PARSE TREE NODES (parsenodes.h)\n\t */\n' - }, - { - name: 'T_A_Expr', - value: 346 - }, - { - name: 'T_ColumnRef', - value: 347 - }, - { - name: 'T_ParamRef', - value: 348 - }, - { - name: 'T_A_Const', - value: 349 - }, - { - name: 'T_FuncCall', - value: 350 - }, - { - name: 'T_A_Star', - value: 351 - }, - { - name: 'T_A_Indices', - value: 352 - }, - { - name: 'T_A_Indirection', - value: 353 - }, - { - name: 'T_A_ArrayExpr', - value: 354 - }, - { - name: 'T_ResTarget', - value: 355 - }, - { - name: 'T_MultiAssignRef', - value: 356 - }, - { - name: 'T_TypeCast', - value: 357 - }, - { - name: 'T_CollateClause', - value: 358 - }, - { - name: 'T_SortBy', - value: 359 - }, - { - name: 'T_WindowDef', - value: 360 - }, - { - name: 'T_RangeSubselect', - value: 361 - }, - { - name: 'T_RangeFunction', - value: 362 - }, - { - name: 'T_RangeTableSample', - value: 363 - }, - { - name: 'T_RangeTableFunc', - value: 364 - }, - { - name: 'T_RangeTableFuncCol', - value: 365 - }, - { - name: 'T_TypeName', - value: 366 - }, - { - name: 'T_ColumnDef', - value: 367 - }, - { - name: 'T_IndexElem', - value: 368 - }, - { - name: 'T_Constraint', - value: 369 - }, - { - name: 'T_DefElem', - value: 370 - }, - { - name: 'T_RangeTblEntry', - value: 371 - }, - { - name: 'T_RangeTblFunction', - value: 372 - }, - { - name: 'T_TableSampleClause', - value: 373 - }, - { - name: 'T_WithCheckOption', - value: 374 - }, - { - name: 'T_SortGroupClause', - value: 375 - }, - { - name: 'T_GroupingSet', - value: 376 - }, - { - name: 'T_WindowClause', - value: 377 - }, - { - name: 'T_ObjectWithArgs', - value: 378 - }, - { - name: 'T_AccessPriv', - value: 379 - }, - { - name: 'T_CreateOpClassItem', - value: 380 - }, - { - name: 'T_TableLikeClause', - value: 381 - }, - { - name: 'T_FunctionParameter', - value: 382 - }, - { - name: 'T_LockingClause', - value: 383 - }, - { - name: 'T_RowMarkClause', - value: 384 - }, - { - name: 'T_XmlSerialize', - value: 385 - }, - { - name: 'T_WithClause', - value: 386 - }, - { - name: 'T_InferClause', - value: 387 - }, - { - name: 'T_OnConflictClause', - value: 388 - }, - { - name: 'T_CommonTableExpr', - value: 389 - }, - { - name: 'T_RoleSpec', - value: 390 - }, - { - name: 'T_TriggerTransition', - value: 391 - }, - { - name: 'T_PartitionElem', - value: 392 - }, - { - name: 'T_PartitionSpec', - value: 393 - }, - { - name: 'T_PartitionBoundSpec', - value: 394 - }, - { - name: 'T_PartitionRangeDatum', - value: 395 - }, - { - name: 'T_PartitionCmd', - value: 396 - }, - { - name: 'T_VacuumRelation', - value: 397 - }, - { - comment: '' - }, - { - comment: - '\t/*\n\t * TAGS FOR REPLICATION GRAMMAR PARSE NODES (replnodes.h)\n\t */\n' - }, - { - name: 'T_IdentifySystemCmd', - value: 398 - }, - { - name: 'T_BaseBackupCmd', - value: 399 - }, - { - name: 'T_CreateReplicationSlotCmd', - value: 400 - }, - { - name: 'T_DropReplicationSlotCmd', - value: 401 - }, - { - name: 'T_StartReplicationCmd', - value: 402 - }, - { - name: 'T_TimeLineHistoryCmd', - value: 403 - }, - { - name: 'T_SQLCmd', - value: 404 - }, - { - comment: '' - }, - { - comment: - "\t/*\n\t * TAGS FOR RANDOM OTHER STUFF\n\t *\n\t * These are objects that aren't part of parse/plan/execute node tree\n\t * structures, but we give them NodeTags anyway for identification\n\t * purposes (usually because they are involved in APIs where we want to\n\t * pass multiple object types through the same pointer).\n\t */\n" - }, - { - name: 'T_TriggerData', - value: 405, - comment: '/* in commands/trigger.h */' - }, - { - name: 'T_EventTriggerData', - value: 406, - comment: '/* in commands/event_trigger.h */' - }, - { - name: 'T_ReturnSetInfo', - value: 407, - comment: '/* in nodes/execnodes.h */' - }, - { - name: 'T_WindowObjectData', - value: 408, - comment: '/* private in nodeWindowAgg.c */' - }, - { - name: 'T_TIDBitmap', - value: 409, - comment: '/* in nodes/tidbitmap.h */' - }, - { - name: 'T_InlineCodeBlock', - value: 410, - comment: '/* in nodes/parsenodes.h */' - }, - { - name: 'T_FdwRoutine', - value: 411, - comment: '/* in foreign/fdwapi.h */' - }, - { - name: 'T_IndexAmRoutine', - value: 412, - comment: '/* in access/amapi.h */' - }, - { - name: 'T_TableAmRoutine', - value: 413, - comment: '/* in access/tableam.h */' - }, - { - name: 'T_TsmRoutine', - value: 414, - comment: '/* in access/tsmapi.h */' - }, - { - name: 'T_ForeignKeyCacheInfo', - value: 415, - comment: '/* in utils/rel.h */' - }, - { - name: 'T_CallContext', - value: 416, - comment: '/* in nodes/parsenodes.h */' - }, - { - name: 'T_SupportRequestSimplify', - value: 417, - comment: '/* in nodes/supportnodes.h */' - }, - { - name: 'T_SupportRequestSelectivity', - value: 418, - comment: '/* in nodes/supportnodes.h */' - }, - { - name: 'T_SupportRequestCost', - value: 419, - comment: '/* in nodes/supportnodes.h */' - }, - { - name: 'T_SupportRequestRows', - value: 420, - comment: '/* in nodes/supportnodes.h */' - }, - { - name: 'T_SupportRequestIndexCondition', - value: 421, - comment: '/* in nodes/supportnodes.h */' - } - ], - comment: - "/*\n * The first field of every node is NodeTag. Each node created (with makeNode)\n * will have one of the following tags as the value of its first field.\n *\n * Note that inserting or deleting node types changes the numbers of other\n * node types later in the list. This is no problem during development, since\n * the node numbers are never stored on disk. But don't do it in a released\n * branch, because that would represent an ABI break for extensions.\n */\n" - }, - CmdType: { - values: [ - { - comment: '' - }, - { - name: 'CMD_UNKNOWN', - value: 0 - }, - { - name: 'CMD_SELECT', - value: 1, - comment: '/* select stmt */' - }, - { - name: 'CMD_UPDATE', - value: 2, - comment: '/* update stmt */' - }, - { - name: 'CMD_INSERT', - value: 3, - comment: '/* insert stmt */' - }, - { - name: 'CMD_DELETE', - value: 4 - }, - { - name: 'CMD_UTILITY', - value: 5, - comment: - '/* cmds like create, destroy, copy, vacuum,\n\t\t\t\t\t\t\t\t * etc. */\n' - }, - { - name: 'CMD_NOTHING', - value: 6, - comment: - '/* dummy command for instead nothing rules\n\t\t\t\t\t\t\t\t * with qual */\n' - } - ], - comment: - '/*\n * CmdType -\n *\t enums for type of operation represented by a Query or PlannedStmt\n *\n * This is needed in both parsenodes.h and plannodes.h, so put it here...\n */\n' - }, - JoinType: { - values: [ - { - comment: '' - }, - { - comment: - '\t/*\n\t * The canonical kinds of joins according to the SQL JOIN syntax. Only\n\t * these codes can appear in parser output (e.g., JoinExpr nodes).\n\t */\n' - }, - { - name: 'JOIN_INNER', - value: 0, - comment: '/* matching tuple pairs only */' - }, - { - name: 'JOIN_LEFT', - value: 1, - comment: '/* pairs + unmatched LHS tuples */' - }, - { - name: 'JOIN_FULL', - value: 2, - comment: '/* pairs + unmatched LHS + unmatched RHS */' - }, - { - name: 'JOIN_RIGHT', - value: 3, - comment: '/* pairs + unmatched RHS tuples */' - }, - { - comment: '' - }, - { - comment: - '\t/*\n\t * Semijoins and anti-semijoins (as defined in relational theory) do not\n\t * appear in the SQL JOIN syntax, but there are standard idioms for\n\t * representing them (e.g., using EXISTS). The planner recognizes these\n\t * cases and converts them to joins. So the planner and executor must\n\t * support these codes. NOTE: in JOIN_SEMI output, it is unspecified\n\t * which matching RHS row is joined to. In JOIN_ANTI output, the row is\n\t * guaranteed to be null-extended.\n\t */\n' - }, - { - name: 'JOIN_SEMI', - value: 4, - comment: '/* 1 copy of each LHS row that has match(es) */' - }, - { - name: 'JOIN_ANTI', - value: 5, - comment: '/* 1 copy of each LHS row that has no match */' - }, - { - comment: '' - }, - { - comment: - '\t/*\n\t * These codes are used internally in the planner, but are not supported\n\t * by the executor (nor, indeed, by most of the planner).\n\t */\n' - }, - { - name: 'JOIN_UNIQUE_OUTER', - value: 6, - comment: '/* LHS path must be made unique */' - }, - { - name: 'JOIN_UNIQUE_INNER', - value: 7, - comment: '/* RHS path must be made unique */' - }, - { - comment: '' - }, - { - comment: - '\t/*\n\t * We might need additional join types someday.\n\t */\n' - } - ], - comment: - '/*\n * JoinType -\n *\t enums for types of relation joins\n *\n * JoinType determines the exact semantics of joining two relations using\n * a matching qualification. For example, it tells what to do with a tuple\n * that has no match in the other relation.\n *\n * This is needed in both parsenodes.h and plannodes.h, so put it here...\n */\n' - }, - AggStrategy: { - values: [ - { - comment: '' - }, - { - name: 'AGG_PLAIN', - value: 0, - comment: '/* simple agg across all input rows */' - }, - { - name: 'AGG_SORTED', - value: 1, - comment: '/* grouped agg, input must be sorted */' - }, - { - name: 'AGG_HASHED', - value: 2, - comment: '/* grouped agg, use internal hashtable */' - }, - { - name: 'AGG_MIXED', - value: 3, - comment: '/* grouped agg, hash and sort both used */' - } - ], - comment: - '/*\n * AggStrategy -\n *\t overall execution strategies for Agg plan nodes\n *\n * This is needed in both pathnodes.h and plannodes.h, so put it here...\n */\n' - }, - AggSplit: { - values: [ - { - comment: '' - }, - { - comment: '\t/* Basic, non-split aggregation: */\n' - }, - { - name: 'AGGSPLIT_SIMPLE', - value: 0 - }, - { - comment: - '\t/* Initial phase of partial aggregation, with serialization: */\n' - }, - { - name: 'AGGSPLIT_INITIAL_SERIAL', - value: 1 - }, - { - comment: - '\t/* Final phase of partial aggregation, with deserialization: */\n' - }, - { - name: 'AGGSPLIT_FINAL_DESERIAL', - value: 2 - } - ], - comment: - '/* Supported operating modes (i.e., useful combinations of these options): */\n' - }, - SetOpCmd: { - values: [ - { - comment: '' - }, - { - name: 'SETOPCMD_INTERSECT', - value: 0 - }, - { - name: 'SETOPCMD_INTERSECT_ALL', - value: 1 - }, - { - name: 'SETOPCMD_EXCEPT', - value: 2 - }, - { - name: 'SETOPCMD_EXCEPT_ALL', - value: 3 - } - ], - comment: - '/*\n * SetOpCmd and SetOpStrategy -\n *\t overall semantics and execution strategies for SetOp plan nodes\n *\n * This is needed in both pathnodes.h and plannodes.h, so put it here...\n */\n' - }, - SetOpStrategy: { - values: [ - { - comment: '' - }, - { - name: 'SETOP_SORTED', - value: 0, - comment: '/* input must be sorted */' - }, - { - name: 'SETOP_HASHED', - value: 1, - comment: '/* use internal hashtable */' - } - ], - comment: null - }, - OnConflictAction: { - values: [ - { - comment: '' - }, - { - name: 'ONCONFLICT_NONE', - value: 0, - comment: '/* No "ON CONFLICT" clause */' - }, - { - name: 'ONCONFLICT_NOTHING', - value: 1, - comment: '/* ON CONFLICT ... DO NOTHING */' - }, - { - name: 'ONCONFLICT_UPDATE', - value: 2, - comment: '/* ON CONFLICT ... DO UPDATE */' - } - ], - comment: - '/*\n * OnConflictAction -\n *\t "ON CONFLICT" clause type of query\n *\n * This is needed in both parsenodes.h and plannodes.h, so put it here...\n */\n' - }, - LimitOption: { - values: [ - { - comment: '' - }, - { - name: 'LIMIT_OPTION_DEFAULT', - value: 0, - comment: '/* No limit present */' - }, - { - name: 'LIMIT_OPTION_COUNT', - value: 1, - comment: '/* FETCH FIRST... ONLY */' - }, - { - name: 'LIMIT_OPTION_WITH_TIES', - value: 2, - comment: '/* FETCH FIRST... WITH TIES */' - } - ], - comment: - '/*\n * LimitOption -\n *\tLIMIT option of query\n *\n * This is needed in both parsenodes.h and plannodes.h, so put it here...\n */\n' - } - }, - 'nodes/params': {}, - 'access/attnum': {}, - c: {}, - postgres: { - vartag_external: { - values: [ - { - comment: '' - }, - { - name: 'VARTAG_INDIRECT', - value: 1 - }, - { - name: 'VARTAG_EXPANDED_RO', - value: 2 - }, - { - name: 'VARTAG_EXPANDED_RW', - value: 3 - }, - { - name: 'VARTAG_ONDISK', - value: 18 - } - ], - comment: - '/*\n * Type tag for the various sorts of "TOAST pointer" datums. The peculiar\n * value for VARTAG_ONDISK comes from a requirement for on-disk compatibility\n * with a previous notion that the tag field was the pointer datum\'s length.\n */\n' - } - }, - postgres_ext: {}, - 'commands/vacuum': { - VacuumOption: { - values: [ - { - comment: '' - }, - { - name: 'VACOPT_VACUUM', - value: 1, - comment: '/* do VACUUM */' - }, - { - name: 'VACOPT_ANALYZE', - value: 2, - comment: '/* do ANALYZE */' - }, - { - name: 'VACOPT_VERBOSE', - value: 4, - comment: '/* print progress info */' - }, - { - name: 'VACOPT_FREEZE', - value: 8, - comment: '/* FREEZE option */' - }, - { - name: 'VACOPT_FULL', - value: 16, - comment: '/* FULL (non-concurrent) vacuum */' - }, - { - name: 'VACOPT_SKIP_LOCKED', - value: 32, - comment: '/* skip if cannot get lock */' - }, - { - name: 'VACOPT_SKIPTOAST', - value: 64, - comment: "/* don't process the TOAST table, if any */" - }, - { - name: 'VACOPT_DISABLE_PAGE_SKIPPING', - value: 128, - comment: "/* don't skip any pages */" - } - ], - comment: null - }, - VacOptTernaryValue: { - values: [ - { - comment: '' - }, - { - name: 'VACOPT_TERNARY_DEFAULT', - value: 0 - }, - { - name: 'VACOPT_TERNARY_DISABLED', - value: 1 - }, - { - name: 'VACOPT_TERNARY_ENABLED', - value: 2 - } - ], - comment: - '/*\n * A ternary value used by vacuum parameters.\n *\n * DEFAULT value is used to determine the value based on other\n * configurations, e.g. reloptions.\n */\n' - } - }, - 'storage/block': {}, - 'access/sdir': { - ScanDirection: { - values: [ - { - comment: '' - }, - { - name: 'BackwardScanDirection', - value: 0 - }, - { - name: 'NoMovementScanDirection', - value: 0 - }, - { - name: 'ForwardScanDirection', - value: 1 - } - ], - comment: - "/*\n * ScanDirection was an int8 for no apparent reason. I kept the original\n * values because I'm not sure if I'll break anything otherwise. -ay 2/95\n */\n" - } - }, - 'mb/pg_wchar': { - pg_enc: { - values: [ - { - comment: '' - }, - { - name: 'PG_SQL_ASCII', - value: 0, - comment: '/* SQL/ASCII */' - }, - { - name: 'PG_EUC_JP', - value: 1, - comment: '/* EUC for Japanese */' - }, - { - name: 'PG_EUC_CN', - value: 2, - comment: '/* EUC for Chinese */' - }, - { - name: 'PG_EUC_KR', - value: 3, - comment: '/* EUC for Korean */' - }, - { - name: 'PG_EUC_TW', - value: 4, - comment: '/* EUC for Taiwan */' - }, - { - name: 'PG_EUC_JIS_2004', - value: 5, - comment: '/* EUC-JIS-2004 */' - }, - { - name: 'PG_UTF8', - value: 6, - comment: '/* Unicode UTF8 */' - }, - { - name: 'PG_MULE_INTERNAL', - value: 7, - comment: '/* Mule internal code */' - }, - { - name: 'PG_LATIN1', - value: 8, - comment: '/* ISO-8859-1 Latin 1 */' - }, - { - name: 'PG_LATIN2', - value: 9, - comment: '/* ISO-8859-2 Latin 2 */' - }, - { - name: 'PG_LATIN3', - value: 10, - comment: '/* ISO-8859-3 Latin 3 */' - }, - { - name: 'PG_LATIN4', - value: 11, - comment: '/* ISO-8859-4 Latin 4 */' - }, - { - name: 'PG_LATIN5', - value: 12, - comment: '/* ISO-8859-9 Latin 5 */' - }, - { - name: 'PG_LATIN6', - value: 13, - comment: '/* ISO-8859-10 Latin6 */' - }, - { - name: 'PG_LATIN7', - value: 14, - comment: '/* ISO-8859-13 Latin7 */' - }, - { - name: 'PG_LATIN8', - value: 15, - comment: '/* ISO-8859-14 Latin8 */' - }, - { - name: 'PG_LATIN9', - value: 16, - comment: '/* ISO-8859-15 Latin9 */' - }, - { - name: 'PG_LATIN10', - value: 17, - comment: '/* ISO-8859-16 Latin10 */' - }, - { - name: 'PG_WIN1256', - value: 18, - comment: '/* windows-1256 */' - }, - { - name: 'PG_WIN1258', - value: 19, - comment: '/* Windows-1258 */' - }, - { - name: 'PG_WIN866', - value: 20, - comment: '/* (MS-DOS CP866) */' - }, - { - name: 'PG_WIN874', - value: 21, - comment: '/* windows-874 */' - }, - { - name: 'PG_KOI8R', - value: 22, - comment: '/* KOI8-R */' - }, - { - name: 'PG_WIN1251', - value: 23, - comment: '/* windows-1251 */' - }, - { - name: 'PG_WIN1252', - value: 24, - comment: '/* windows-1252 */' - }, - { - name: 'PG_ISO_8859_5', - value: 25, - comment: '/* ISO-8859-5 */' - }, - { - name: 'PG_ISO_8859_6', - value: 26, - comment: '/* ISO-8859-6 */' - }, - { - name: 'PG_ISO_8859_7', - value: 27, - comment: '/* ISO-8859-7 */' - }, - { - name: 'PG_ISO_8859_8', - value: 28, - comment: '/* ISO-8859-8 */' - }, - { - name: 'PG_WIN1250', - value: 29, - comment: '/* windows-1250 */' - }, - { - name: 'PG_WIN1253', - value: 30, - comment: '/* windows-1253 */' - }, - { - name: 'PG_WIN1254', - value: 31, - comment: '/* windows-1254 */' - }, - { - name: 'PG_WIN1255', - value: 32, - comment: '/* windows-1255 */' - }, - { - name: 'PG_WIN1257', - value: 33, - comment: '/* windows-1257 */' - }, - { - name: 'PG_KOI8U', - value: 34, - comment: '/* KOI8-U */' - }, - { - comment: '\t/* PG_ENCODING_BE_LAST points to the above entry */\n' - }, - { - comment: '' - }, - { - comment: '\t/* followings are for client encoding only */\n' - }, - { - name: 'PG_SJIS', - value: 35, - comment: '/* Shift JIS (Windows-932) */' - }, - { - name: 'PG_BIG5', - value: 36, - comment: '/* Big5 (Windows-950) */' - }, - { - name: 'PG_GBK', - value: 37, - comment: '/* GBK (Windows-936) */' - }, - { - name: 'PG_UHC', - value: 38, - comment: '/* UHC (Windows-949) */' - }, - { - name: 'PG_GB18030', - value: 39, - comment: '/* GB18030 */' - }, - { - name: 'PG_JOHAB', - value: 40, - comment: '/* EUC for Korean JOHAB */' - }, - { - name: 'PG_SHIFT_JIS_2004', - value: 41, - comment: '/* Shift-JIS-2004 */' - }, - { - name: '_PG_LAST_ENCODING_', - value: 42, - comment: '/* mark only */' - }, - { - comment: '' - } - ], - comment: - "/*\n * PostgreSQL encoding identifiers\n *\n * WARNING: the order of this enum must be same as order of entries\n *\t\t\tin the pg_enc2name_tbl[] array (in src/common/encnames.c), and\n *\t\t\tin the pg_wchar_table[] array (in src/common/wchar.c)!\n *\n *\t\t\tIf you add some encoding don't forget to check\n *\t\t\tPG_ENCODING_BE_LAST macro.\n *\n * PG_SQL_ASCII is default encoding and must be = 0.\n *\n * XXX\tWe must avoid renumbering any backend encoding until libpq's major\n * version number is increased beyond 5; it turns out that the backend\n * encoding IDs are effectively part of libpq's ABI as far as 8.2 initdb and\n * psql are concerned.\n */\n" - } - }, - '../backend/parser/gram': { - yytokentype: { - values: [ - { - name: 'IDENT', - value: 258 - }, - { - name: 'UIDENT', - value: 259 - }, - { - name: 'FCONST', - value: 260 - }, - { - name: 'SCONST', - value: 261 - }, - { - name: 'USCONST', - value: 262 - }, - { - name: 'BCONST', - value: 263 - }, - { - name: 'XCONST', - value: 264 - }, - { - name: 'Op', - value: 265 - }, - { - name: 'ICONST', - value: 266 - }, - { - name: 'PARAM', - value: 267 - }, - { - name: 'TYPECAST', - value: 268 - }, - { - name: 'DOT_DOT', - value: 269 - }, - { - name: 'COLON_EQUALS', - value: 270 - }, - { - name: 'EQUALS_GREATER', - value: 271 - }, - { - name: 'LESS_EQUALS', - value: 272 - }, - { - name: 'GREATER_EQUALS', - value: 273 - }, - { - name: 'NOT_EQUALS', - value: 274 - }, - { - name: 'SQL_COMMENT', - value: 275 - }, - { - name: 'C_COMMENT', - value: 276 - }, - { - name: 'ABORT_P', - value: 277 - }, - { - name: 'ABSOLUTE_P', - value: 278 - }, - { - name: 'ACCESS', - value: 279 - }, - { - name: 'ACTION', - value: 280 - }, - { - name: 'ADD_P', - value: 281 - }, - { - name: 'ADMIN', - value: 282 - }, - { - name: 'AFTER', - value: 283 - }, - { - name: 'AGGREGATE', - value: 284 - }, - { - name: 'ALL', - value: 285 - }, - { - name: 'ALSO', - value: 286 - }, - { - name: 'ALTER', - value: 287 - }, - { - name: 'ALWAYS', - value: 288 - }, - { - name: 'ANALYSE', - value: 289 - }, - { - name: 'ANALYZE', - value: 290 - }, - { - name: 'AND', - value: 291 - }, - { - name: 'ANY', - value: 292 - }, - { - name: 'ARRAY', - value: 293 - }, - { - name: 'AS', - value: 294 - }, - { - name: 'ASC', - value: 295 - }, - { - name: 'ASSERTION', - value: 296 - }, - { - name: 'ASSIGNMENT', - value: 297 - }, - { - name: 'ASYMMETRIC', - value: 298 - }, - { - name: 'AT', - value: 299 - }, - { - name: 'ATTACH', - value: 300 - }, - { - name: 'ATTRIBUTE', - value: 301 - }, - { - name: 'AUTHORIZATION', - value: 302 - }, - { - name: 'BACKWARD', - value: 303 - }, - { - name: 'BEFORE', - value: 304 - }, - { - name: 'BEGIN_P', - value: 305 - }, - { - name: 'BETWEEN', - value: 306 - }, - { - name: 'BIGINT', - value: 307 - }, - { - name: 'BINARY', - value: 308 - }, - { - name: 'BIT', - value: 309 - }, - { - name: 'BOOLEAN_P', - value: 310 - }, - { - name: 'BOTH', - value: 311 - }, - { - name: 'BY', - value: 312 - }, - { - name: 'CACHE', - value: 313 - }, - { - name: 'CALL', - value: 314 - }, - { - name: 'CALLED', - value: 315 - }, - { - name: 'CASCADE', - value: 316 - }, - { - name: 'CASCADED', - value: 317 - }, - { - name: 'CASE', - value: 318 - }, - { - name: 'CAST', - value: 319 - }, - { - name: 'CATALOG_P', - value: 320 - }, - { - name: 'CHAIN', - value: 321 - }, - { - name: 'CHAR_P', - value: 322 - }, - { - name: 'CHARACTER', - value: 323 - }, - { - name: 'CHARACTERISTICS', - value: 324 - }, - { - name: 'CHECK', - value: 325 - }, - { - name: 'CHECKPOINT', - value: 326 - }, - { - name: 'CLASS', - value: 327 - }, - { - name: 'CLOSE', - value: 328 - }, - { - name: 'CLUSTER', - value: 329 - }, - { - name: 'COALESCE', - value: 330 - }, - { - name: 'COLLATE', - value: 331 - }, - { - name: 'COLLATION', - value: 332 - }, - { - name: 'COLUMN', - value: 333 - }, - { - name: 'COLUMNS', - value: 334 - }, - { - name: 'COMMENT', - value: 335 - }, - { - name: 'COMMENTS', - value: 336 - }, - { - name: 'COMMIT', - value: 337 - }, - { - name: 'COMMITTED', - value: 338 - }, - { - name: 'CONCURRENTLY', - value: 339 - }, - { - name: 'CONFIGURATION', - value: 340 - }, - { - name: 'CONFLICT', - value: 341 - }, - { - name: 'CONNECTION', - value: 342 - }, - { - name: 'CONSTRAINT', - value: 343 - }, - { - name: 'CONSTRAINTS', - value: 344 - }, - { - name: 'CONTENT_P', - value: 345 - }, - { - name: 'CONTINUE_P', - value: 346 - }, - { - name: 'CONVERSION_P', - value: 347 - }, - { - name: 'COPY', - value: 348 - }, - { - name: 'COST', - value: 349 - }, - { - name: 'CREATE', - value: 350 - }, - { - name: 'CROSS', - value: 351 - }, - { - name: 'CSV', - value: 352 - }, - { - name: 'CUBE', - value: 353 - }, - { - name: 'CURRENT_P', - value: 354 - }, - { - name: 'CURRENT_CATALOG', - value: 355 - }, - { - name: 'CURRENT_DATE', - value: 356 - }, - { - name: 'CURRENT_ROLE', - value: 357 - }, - { - name: 'CURRENT_SCHEMA', - value: 358 - }, - { - name: 'CURRENT_TIME', - value: 359 - }, - { - name: 'CURRENT_TIMESTAMP', - value: 360 - }, - { - name: 'CURRENT_USER', - value: 361 - }, - { - name: 'CURSOR', - value: 362 - }, - { - name: 'CYCLE', - value: 363 - }, - { - name: 'DATA_P', - value: 364 - }, - { - name: 'DATABASE', - value: 365 - }, - { - name: 'DAY_P', - value: 366 - }, - { - name: 'DEALLOCATE', - value: 367 - }, - { - name: 'DEC', - value: 368 - }, - { - name: 'DECIMAL_P', - value: 369 - }, - { - name: 'DECLARE', - value: 370 - }, - { - name: 'DEFAULT', - value: 371 - }, - { - name: 'DEFAULTS', - value: 372 - }, - { - name: 'DEFERRABLE', - value: 373 - }, - { - name: 'DEFERRED', - value: 374 - }, - { - name: 'DEFINER', - value: 375 - }, - { - name: 'DELETE_P', - value: 376 - }, - { - name: 'DELIMITER', - value: 377 - }, - { - name: 'DELIMITERS', - value: 378 - }, - { - name: 'DEPENDS', - value: 379 - }, - { - name: 'DESC', - value: 380 - }, - { - name: 'DETACH', - value: 381 - }, - { - name: 'DICTIONARY', - value: 382 - }, - { - name: 'DISABLE_P', - value: 383 - }, - { - name: 'DISCARD', - value: 384 - }, - { - name: 'DISTINCT', - value: 385 - }, - { - name: 'DO', - value: 386 - }, - { - name: 'DOCUMENT_P', - value: 387 - }, - { - name: 'DOMAIN_P', - value: 388 - }, - { - name: 'DOUBLE_P', - value: 389 - }, - { - name: 'DROP', - value: 390 - }, - { - name: 'EACH', - value: 391 - }, - { - name: 'ELSE', - value: 392 - }, - { - name: 'ENABLE_P', - value: 393 - }, - { - name: 'ENCODING', - value: 394 - }, - { - name: 'ENCRYPTED', - value: 395 - }, - { - name: 'END_P', - value: 396 - }, - { - name: 'ENUM_P', - value: 397 - }, - { - name: 'ESCAPE', - value: 398 - }, - { - name: 'EVENT', - value: 399 - }, - { - name: 'EXCEPT', - value: 400 - }, - { - name: 'EXCLUDE', - value: 401 - }, - { - name: 'EXCLUDING', - value: 402 - }, - { - name: 'EXCLUSIVE', - value: 403 - }, - { - name: 'EXECUTE', - value: 404 - }, - { - name: 'EXISTS', - value: 405 - }, - { - name: 'EXPLAIN', - value: 406 - }, - { - name: 'EXPRESSION', - value: 407 - }, - { - name: 'EXTENSION', - value: 408 - }, - { - name: 'EXTERNAL', - value: 409 - }, - { - name: 'EXTRACT', - value: 410 - }, - { - name: 'FALSE_P', - value: 411 - }, - { - name: 'FAMILY', - value: 412 - }, - { - name: 'FETCH', - value: 413 - }, - { - name: 'FILTER', - value: 414 - }, - { - name: 'FIRST_P', - value: 415 - }, - { - name: 'FLOAT_P', - value: 416 - }, - { - name: 'FOLLOWING', - value: 417 - }, - { - name: 'FOR', - value: 418 - }, - { - name: 'FORCE', - value: 419 - }, - { - name: 'FOREIGN', - value: 420 - }, - { - name: 'FORWARD', - value: 421 - }, - { - name: 'FREEZE', - value: 422 - }, - { - name: 'FROM', - value: 423 - }, - { - name: 'FULL', - value: 424 - }, - { - name: 'FUNCTION', - value: 425 - }, - { - name: 'FUNCTIONS', - value: 426 - }, - { - name: 'GENERATED', - value: 427 - }, - { - name: 'GLOBAL', - value: 428 - }, - { - name: 'GRANT', - value: 429 - }, - { - name: 'GRANTED', - value: 430 - }, - { - name: 'GREATEST', - value: 431 - }, - { - name: 'GROUP_P', - value: 432 - }, - { - name: 'GROUPING', - value: 433 - }, - { - name: 'GROUPS', - value: 434 - }, - { - name: 'HANDLER', - value: 435 - }, - { - name: 'HAVING', - value: 436 - }, - { - name: 'HEADER_P', - value: 437 - }, - { - name: 'HOLD', - value: 438 - }, - { - name: 'HOUR_P', - value: 439 - }, - { - name: 'IDENTITY_P', - value: 440 - }, - { - name: 'IF_P', - value: 441 - }, - { - name: 'ILIKE', - value: 442 - }, - { - name: 'IMMEDIATE', - value: 443 - }, - { - name: 'IMMUTABLE', - value: 444 - }, - { - name: 'IMPLICIT_P', - value: 445 - }, - { - name: 'IMPORT_P', - value: 446 - }, - { - name: 'IN_P', - value: 447 - }, - { - name: 'INCLUDE', - value: 448 - }, - { - name: 'INCLUDING', - value: 449 - }, - { - name: 'INCREMENT', - value: 450 - }, - { - name: 'INDEX', - value: 451 - }, - { - name: 'INDEXES', - value: 452 - }, - { - name: 'INHERIT', - value: 453 - }, - { - name: 'INHERITS', - value: 454 - }, - { - name: 'INITIALLY', - value: 455 - }, - { - name: 'INLINE_P', - value: 456 - }, - { - name: 'INNER_P', - value: 457 - }, - { - name: 'INOUT', - value: 458 - }, - { - name: 'INPUT_P', - value: 459 - }, - { - name: 'INSENSITIVE', - value: 460 - }, - { - name: 'INSERT', - value: 461 - }, - { - name: 'INSTEAD', - value: 462 - }, - { - name: 'INT_P', - value: 463 - }, - { - name: 'INTEGER', - value: 464 - }, - { - name: 'INTERSECT', - value: 465 - }, - { - name: 'INTERVAL', - value: 466 - }, - { - name: 'INTO', - value: 467 - }, - { - name: 'INVOKER', - value: 468 - }, - { - name: 'IS', - value: 469 - }, - { - name: 'ISNULL', - value: 470 - }, - { - name: 'ISOLATION', - value: 471 - }, - { - name: 'JOIN', - value: 472 - }, - { - name: 'KEY', - value: 473 - }, - { - name: 'LABEL', - value: 474 - }, - { - name: 'LANGUAGE', - value: 475 - }, - { - name: 'LARGE_P', - value: 476 - }, - { - name: 'LAST_P', - value: 477 - }, - { - name: 'LATERAL_P', - value: 478 - }, - { - name: 'LEADING', - value: 479 - }, - { - name: 'LEAKPROOF', - value: 480 - }, - { - name: 'LEAST', - value: 481 - }, - { - name: 'LEFT', - value: 482 - }, - { - name: 'LEVEL', - value: 483 - }, - { - name: 'LIKE', - value: 484 - }, - { - name: 'LIMIT', - value: 485 - }, - { - name: 'LISTEN', - value: 486 - }, - { - name: 'LOAD', - value: 487 - }, - { - name: 'LOCAL', - value: 488 - }, - { - name: 'LOCALTIME', - value: 489 - }, - { - name: 'LOCALTIMESTAMP', - value: 490 - }, - { - name: 'LOCATION', - value: 491 - }, - { - name: 'LOCK_P', - value: 492 - }, - { - name: 'LOCKED', - value: 493 - }, - { - name: 'LOGGED', - value: 494 - }, - { - name: 'MAPPING', - value: 495 - }, - { - name: 'MATCH', - value: 496 - }, - { - name: 'MATERIALIZED', - value: 497 - }, - { - name: 'MAXVALUE', - value: 498 - }, - { - name: 'METHOD', - value: 499 - }, - { - name: 'MINUTE_P', - value: 500 - }, - { - name: 'MINVALUE', - value: 501 - }, - { - name: 'MODE', - value: 502 - }, - { - name: 'MONTH_P', - value: 503 - }, - { - name: 'MOVE', - value: 504 - }, - { - name: 'NAME_P', - value: 505 - }, - { - name: 'NAMES', - value: 506 - }, - { - name: 'NATIONAL', - value: 507 - }, - { - name: 'NATURAL', - value: 508 - }, - { - name: 'NCHAR', - value: 509 - }, - { - name: 'NEW', - value: 510 - }, - { - name: 'NEXT', - value: 511 - }, - { - name: 'NFC', - value: 512 - }, - { - name: 'NFD', - value: 513 - }, - { - name: 'NFKC', - value: 514 - }, - { - name: 'NFKD', - value: 515 - }, - { - name: 'NO', - value: 516 - }, - { - name: 'NONE', - value: 517 - }, - { - name: 'NORMALIZE', - value: 518 - }, - { - name: 'NORMALIZED', - value: 519 - }, - { - name: 'NOT', - value: 520 - }, - { - name: 'NOTHING', - value: 521 - }, - { - name: 'NOTIFY', - value: 522 - }, - { - name: 'NOTNULL', - value: 523 - }, - { - name: 'NOWAIT', - value: 524 - }, - { - name: 'NULL_P', - value: 525 - }, - { - name: 'NULLIF', - value: 526 - }, - { - name: 'NULLS_P', - value: 527 - }, - { - name: 'NUMERIC', - value: 528 - }, - { - name: 'OBJECT_P', - value: 529 - }, - { - name: 'OF', - value: 530 - }, - { - name: 'OFF', - value: 531 - }, - { - name: 'OFFSET', - value: 532 - }, - { - name: 'OIDS', - value: 533 - }, - { - name: 'OLD', - value: 534 - }, - { - name: 'ON', - value: 535 - }, - { - name: 'ONLY', - value: 536 - }, - { - name: 'OPERATOR', - value: 537 - }, - { - name: 'OPTION', - value: 538 - }, - { - name: 'OPTIONS', - value: 539 - }, - { - name: 'OR', - value: 540 - }, - { - name: 'ORDER', - value: 541 - }, - { - name: 'ORDINALITY', - value: 542 - }, - { - name: 'OTHERS', - value: 543 - }, - { - name: 'OUT_P', - value: 544 - }, - { - name: 'OUTER_P', - value: 545 - }, - { - name: 'OVER', - value: 546 - }, - { - name: 'OVERLAPS', - value: 547 - }, - { - name: 'OVERLAY', - value: 548 - }, - { - name: 'OVERRIDING', - value: 549 - }, - { - name: 'OWNED', - value: 550 - }, - { - name: 'OWNER', - value: 551 - }, - { - name: 'PARALLEL', - value: 552 - }, - { - name: 'PARSER', - value: 553 - }, - { - name: 'PARTIAL', - value: 554 - }, - { - name: 'PARTITION', - value: 555 - }, - { - name: 'PASSING', - value: 556 - }, - { - name: 'PASSWORD', - value: 557 - }, - { - name: 'PLACING', - value: 558 - }, - { - name: 'PLANS', - value: 559 - }, - { - name: 'POLICY', - value: 560 - }, - { - name: 'POSITION', - value: 561 - }, - { - name: 'PRECEDING', - value: 562 - }, - { - name: 'PRECISION', - value: 563 - }, - { - name: 'PRESERVE', - value: 564 - }, - { - name: 'PREPARE', - value: 565 - }, - { - name: 'PREPARED', - value: 566 - }, - { - name: 'PRIMARY', - value: 567 - }, - { - name: 'PRIOR', - value: 568 - }, - { - name: 'PRIVILEGES', - value: 569 - }, - { - name: 'PROCEDURAL', - value: 570 - }, - { - name: 'PROCEDURE', - value: 571 - }, - { - name: 'PROCEDURES', - value: 572 - }, - { - name: 'PROGRAM', - value: 573 - }, - { - name: 'PUBLICATION', - value: 574 - }, - { - name: 'QUOTE', - value: 575 - }, - { - name: 'RANGE', - value: 576 - }, - { - name: 'READ', - value: 577 - }, - { - name: 'REAL', - value: 578 - }, - { - name: 'REASSIGN', - value: 579 - }, - { - name: 'RECHECK', - value: 580 - }, - { - name: 'RECURSIVE', - value: 581 - }, - { - name: 'REF', - value: 582 - }, - { - name: 'REFERENCES', - value: 583 - }, - { - name: 'REFERENCING', - value: 584 - }, - { - name: 'REFRESH', - value: 585 - }, - { - name: 'REINDEX', - value: 586 - }, - { - name: 'RELATIVE_P', - value: 587 - }, - { - name: 'RELEASE', - value: 588 - }, - { - name: 'RENAME', - value: 589 - }, - { - name: 'REPEATABLE', - value: 590 - }, - { - name: 'REPLACE', - value: 591 - }, - { - name: 'REPLICA', - value: 592 - }, - { - name: 'RESET', - value: 593 - }, - { - name: 'RESTART', - value: 594 - }, - { - name: 'RESTRICT', - value: 595 - }, - { - name: 'RETURNING', - value: 596 - }, - { - name: 'RETURNS', - value: 597 - }, - { - name: 'REVOKE', - value: 598 - }, - { - name: 'RIGHT', - value: 599 - }, - { - name: 'ROLE', - value: 600 - }, - { - name: 'ROLLBACK', - value: 601 - }, - { - name: 'ROLLUP', - value: 602 - }, - { - name: 'ROUTINE', - value: 603 - }, - { - name: 'ROUTINES', - value: 604 - }, - { - name: 'ROW', - value: 605 - }, - { - name: 'ROWS', - value: 606 - }, - { - name: 'RULE', - value: 607 - }, - { - name: 'SAVEPOINT', - value: 608 - }, - { - name: 'SCHEMA', - value: 609 - }, - { - name: 'SCHEMAS', - value: 610 - }, - { - name: 'SCROLL', - value: 611 - }, - { - name: 'SEARCH', - value: 612 - }, - { - name: 'SECOND_P', - value: 613 - }, - { - name: 'SECURITY', - value: 614 - }, - { - name: 'SELECT', - value: 615 - }, - { - name: 'SEQUENCE', - value: 616 - }, - { - name: 'SEQUENCES', - value: 617 - }, - { - name: 'SERIALIZABLE', - value: 618 - }, - { - name: 'SERVER', - value: 619 - }, - { - name: 'SESSION', - value: 620 - }, - { - name: 'SESSION_USER', - value: 621 - }, - { - name: 'SET', - value: 622 - }, - { - name: 'SETS', - value: 623 - }, - { - name: 'SETOF', - value: 624 - }, - { - name: 'SHARE', - value: 625 - }, - { - name: 'SHOW', - value: 626 - }, - { - name: 'SIMILAR', - value: 627 - }, - { - name: 'SIMPLE', - value: 628 - }, - { - name: 'SKIP', - value: 629 - }, - { - name: 'SMALLINT', - value: 630 - }, - { - name: 'SNAPSHOT', - value: 631 - }, - { - name: 'SOME', - value: 632 - }, - { - name: 'SQL_P', - value: 633 - }, - { - name: 'STABLE', - value: 634 - }, - { - name: 'STANDALONE_P', - value: 635 - }, - { - name: 'START', - value: 636 - }, - { - name: 'STATEMENT', - value: 637 - }, - { - name: 'STATISTICS', - value: 638 - }, - { - name: 'STDIN', - value: 639 - }, - { - name: 'STDOUT', - value: 640 - }, - { - name: 'STORAGE', - value: 641 - }, - { - name: 'STORED', - value: 642 - }, - { - name: 'STRICT_P', - value: 643 - }, - { - name: 'STRIP_P', - value: 644 - }, - { - name: 'SUBSCRIPTION', - value: 645 - }, - { - name: 'SUBSTRING', - value: 646 - }, - { - name: 'SUPPORT', - value: 647 - }, - { - name: 'SYMMETRIC', - value: 648 - }, - { - name: 'SYSID', - value: 649 - }, - { - name: 'SYSTEM_P', - value: 650 - }, - { - name: 'TABLE', - value: 651 - }, - { - name: 'TABLES', - value: 652 - }, - { - name: 'TABLESAMPLE', - value: 653 - }, - { - name: 'TABLESPACE', - value: 654 - }, - { - name: 'TEMP', - value: 655 - }, - { - name: 'TEMPLATE', - value: 656 - }, - { - name: 'TEMPORARY', - value: 657 - }, - { - name: 'TEXT_P', - value: 658 - }, - { - name: 'THEN', - value: 659 - }, - { - name: 'TIES', - value: 660 - }, - { - name: 'TIME', - value: 661 - }, - { - name: 'TIMESTAMP', - value: 662 - }, - { - name: 'TO', - value: 663 - }, - { - name: 'TRAILING', - value: 664 - }, - { - name: 'TRANSACTION', - value: 665 - }, - { - name: 'TRANSFORM', - value: 666 - }, - { - name: 'TREAT', - value: 667 - }, - { - name: 'TRIGGER', - value: 668 - }, - { - name: 'TRIM', - value: 669 - }, - { - name: 'TRUE_P', - value: 670 - }, - { - name: 'TRUNCATE', - value: 671 - }, - { - name: 'TRUSTED', - value: 672 - }, - { - name: 'TYPE_P', - value: 673 - }, - { - name: 'TYPES_P', - value: 674 - }, - { - name: 'UESCAPE', - value: 675 - }, - { - name: 'UNBOUNDED', - value: 676 - }, - { - name: 'UNCOMMITTED', - value: 677 - }, - { - name: 'UNENCRYPTED', - value: 678 - }, - { - name: 'UNION', - value: 679 - }, - { - name: 'UNIQUE', - value: 680 - }, - { - name: 'UNKNOWN', - value: 681 - }, - { - name: 'UNLISTEN', - value: 682 - }, - { - name: 'UNLOGGED', - value: 683 - }, - { - name: 'UNTIL', - value: 684 - }, - { - name: 'UPDATE', - value: 685 - }, - { - name: 'USER', - value: 686 - }, - { - name: 'USING', - value: 687 - }, - { - name: 'VACUUM', - value: 688 - }, - { - name: 'VALID', - value: 689 - }, - { - name: 'VALIDATE', - value: 690 - }, - { - name: 'VALIDATOR', - value: 691 - }, - { - name: 'VALUE_P', - value: 692 - }, - { - name: 'VALUES', - value: 693 - }, - { - name: 'VARCHAR', - value: 694 - }, - { - name: 'VARIADIC', - value: 695 - }, - { - name: 'VARYING', - value: 696 - }, - { - name: 'VERBOSE', - value: 697 - }, - { - name: 'VERSION_P', - value: 698 - }, - { - name: 'VIEW', - value: 699 - }, - { - name: 'VIEWS', - value: 700 - }, - { - name: 'VOLATILE', - value: 701 - }, - { - name: 'WHEN', - value: 702 - }, - { - name: 'WHERE', - value: 703 - }, - { - name: 'WHITESPACE_P', - value: 704 - }, - { - name: 'WINDOW', - value: 705 - }, - { - name: 'WITH', - value: 706 - }, - { - name: 'WITHIN', - value: 707 - }, - { - name: 'WITHOUT', - value: 708 - }, - { - name: 'WORK', - value: 709 - }, - { - name: 'WRAPPER', - value: 710 - }, - { - name: 'WRITE', - value: 711 - }, - { - name: 'XML_P', - value: 712 - }, - { - name: 'XMLATTRIBUTES', - value: 713 - }, - { - name: 'XMLCONCAT', - value: 714 - }, - { - name: 'XMLELEMENT', - value: 715 - }, - { - name: 'XMLEXISTS', - value: 716 - }, - { - name: 'XMLFOREST', - value: 717 - }, - { - name: 'XMLNAMESPACES', - value: 718 - }, - { - name: 'XMLPARSE', - value: 719 - }, - { - name: 'XMLPI', - value: 720 - }, - { - name: 'XMLROOT', - value: 721 - }, - { - name: 'XMLSERIALIZE', - value: 722 - }, - { - name: 'XMLTABLE', - value: 723 - }, - { - name: 'YEAR_P', - value: 724 - }, - { - name: 'YES_P', - value: 725 - }, - { - name: 'ZONE', - value: 726 - }, - { - name: 'NOT_LA', - value: 727 - }, - { - name: 'NULLS_LA', - value: 728 - }, - { - name: 'WITH_LA', - value: 729 - }, - { - name: 'POSTFIXOP', - value: 730 - }, - { - name: 'UMINUS', - value: 731 - } - ], - comment: - ' /* Put the tokens into the symbol table, so that GDB and other debuggers\n know about them. */\n' - } - } -}; diff --git a/packages/enums-utils/scripts/libpg_structs.js b/packages/enums-utils/scripts/libpg_structs.js deleted file mode 100644 index aa70a5cb..00000000 --- a/packages/enums-utils/scripts/libpg_structs.js +++ /dev/null @@ -1,8907 +0,0 @@ -module.exports = { - 'nodes/parsenodes': { - Query: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - comment: '' - }, - { - name: 'commandType', - c_type: 'CmdType', - comment: '/* select|insert|update|delete|utility */' - }, - { - comment: '' - }, - { - name: 'querySource', - c_type: 'QuerySource', - comment: '/* where did I come from? */' - }, - { - comment: '' - }, - { - name: 'queryId', - c_type: 'uint64', - comment: '/* query identifier (can be set by plugins) */' - }, - { - comment: '' - }, - { - name: 'canSetTag', - c_type: 'bool', - comment: '/* do I set the command result tag? */' - }, - { - comment: '' - }, - { - name: 'utilityStmt', - c_type: 'Node*', - comment: '/* non-null if commandType == CMD_UTILITY */' - }, - { - comment: '' - }, - { - name: 'resultRelation', - c_type: 'int', - comment: - '/* rtable index of target relation for\n\t\t\t\t\t\t\t\t * INSERT/UPDATE/DELETE; 0 for SELECT */\n' - }, - { - comment: '' - }, - { - name: 'hasAggs', - c_type: 'bool', - comment: '/* has aggregates in tlist or havingQual */' - }, - { - name: 'hasWindowFuncs', - c_type: 'bool', - comment: '/* has window functions in tlist */' - }, - { - name: 'hasTargetSRFs', - c_type: 'bool', - comment: '/* has set-returning functions in tlist */' - }, - { - name: 'hasSubLinks', - c_type: 'bool', - comment: '/* has subquery SubLink */' - }, - { - name: 'hasDistinctOn', - c_type: 'bool', - comment: '/* distinctClause is from DISTINCT ON */' - }, - { - name: 'hasRecursive', - c_type: 'bool', - comment: '/* WITH RECURSIVE was specified */' - }, - { - name: 'hasModifyingCTE', - c_type: 'bool', - comment: '/* has INSERT/UPDATE/DELETE in WITH */' - }, - { - name: 'hasForUpdate', - c_type: 'bool', - comment: '/* FOR [KEY] UPDATE/SHARE was specified */' - }, - { - name: 'hasRowSecurity', - c_type: 'bool', - comment: '/* rewriter has applied some RLS policy */' - }, - { - comment: '' - }, - { - name: 'cteList', - c_type: 'List*', - comment: "/* WITH list (of CommonTableExpr's) */" - }, - { - comment: '' - }, - { - name: 'rtable', - c_type: 'List*', - comment: '/* list of range table entries */' - }, - { - name: 'jointree', - c_type: 'FromExpr*', - comment: '/* table join tree (FROM and WHERE clauses) */' - }, - { - comment: '' - }, - { - name: 'targetList', - c_type: 'List*', - comment: '/* target list (of TargetEntry) */' - }, - { - comment: '' - }, - { - name: 'override', - c_type: 'OverridingKind', - comment: '/* OVERRIDING clause */' - }, - { - comment: '' - }, - { - name: 'onConflict', - c_type: 'OnConflictExpr*', - comment: '/* ON CONFLICT DO [NOTHING | UPDATE] */' - }, - { - comment: '' - }, - { - name: 'returningList', - c_type: 'List*', - comment: '/* return-values list (of TargetEntry) */' - }, - { - comment: '' - }, - { - name: 'groupClause', - c_type: 'List*', - comment: "/* a list of SortGroupClause's */" - }, - { - comment: '' - }, - { - name: 'groupingSets', - c_type: 'List*', - comment: "/* a list of GroupingSet's if present */" - }, - { - comment: '' - }, - { - name: 'havingQual', - c_type: 'Node*', - comment: '/* qualifications applied to groups */' - }, - { - comment: '' - }, - { - name: 'windowClause', - c_type: 'List*', - comment: "/* a list of WindowClause's */" - }, - { - comment: '' - }, - { - name: 'distinctClause', - c_type: 'List*', - comment: "/* a list of SortGroupClause's */" - }, - { - comment: '' - }, - { - name: 'sortClause', - c_type: 'List*', - comment: "/* a list of SortGroupClause's */" - }, - { - comment: '' - }, - { - name: 'limitOffset', - c_type: 'Node*', - comment: '/* # of result tuples to skip (int8 expr) */' - }, - { - name: 'limitCount', - c_type: 'Node*', - comment: '/* # of result tuples to return (int8 expr) */' - }, - { - name: 'limitOption', - c_type: 'LimitOption', - comment: '/* limit type */' - }, - { - comment: '' - }, - { - name: 'rowMarks', - c_type: 'List*', - comment: "/* a list of RowMarkClause's */" - }, - { - comment: '' - }, - { - name: 'setOperations', - c_type: 'Node*', - comment: - '/* set-operation tree if this is top level of\n\t\t\t\t\t\t\t\t * a UNION/INTERSECT/EXCEPT query */\n' - }, - { - comment: '' - }, - { - name: 'constraintDeps', - c_type: 'List*', - comment: - '/* a list of pg_constraint OIDs that the query\n\t\t\t\t\t\t\t\t * depends on to be semantically valid */\n' - }, - { - comment: '' - }, - { - name: 'withCheckOptions', - c_type: 'List*', - comment: - "/* a list of WithCheckOption's (added\n\t\t\t\t\t\t\t\t\t * during rewrite) */\n" - }, - { - comment: '' - }, - { - comment: - '\t/*\n\t * The following two fields identify the portion of the source text string\n\t * containing this query. They are typically only populated in top-level\n\t * Queries, not in sub-queries. When not set, they might both be zero, or\n\t * both be -1 meaning "unknown".\n\t */\n' - }, - { - name: 'stmt_location', - c_type: 'int', - comment: '/* start location, or -1 if unknown */' - }, - { - name: 'stmt_len', - c_type: 'int', - comment: '/* length in bytes; 0 means "rest of string" */' - } - ], - comment: - '/*\n * Query -\n *\t Parse analysis turns all statements into a Query tree\n *\t for further processing by the rewriter and planner.\n *\n *\t Utility statements (i.e. non-optimizable statements) have the\n *\t utilityStmt field set, and the rest of the Query is mostly dummy.\n *\n *\t Planning converts a Query tree into a Plan tree headed by a PlannedStmt\n *\t node --- the Query structure is not used by the executor.\n */\n' - }, - TypeName: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'names', - c_type: 'List*', - comment: '/* qualified name (list of Value strings) */' - }, - { - name: 'typeOid', - c_type: 'Oid', - comment: '/* type identified by OID */' - }, - { - name: 'setof', - c_type: 'bool', - comment: '/* is a set? */' - }, - { - name: 'pct_type', - c_type: 'bool', - comment: '/* %TYPE specified? */' - }, - { - name: 'typmods', - c_type: 'List*', - comment: '/* type modifier expression(s) */' - }, - { - name: 'typemod', - c_type: 'int32', - comment: '/* prespecified type modifier */' - }, - { - name: 'arrayBounds', - c_type: 'List*', - comment: '/* array bounds */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - '/*\n * TypeName - specifies a type in definitions\n *\n * For TypeName structures generated internally, it is often easier to\n * specify the type by OID than by name. If "names" is NIL then the\n * actual type OID is given by typeOid, otherwise typeOid is unused.\n * Similarly, if "typmods" is NIL then the actual typmod is expected to\n * be prespecified in typemod, otherwise typemod is unused.\n *\n * If pct_type is true, then names is actually a field name and we look up\n * the type of that field. Otherwise (the normal case), names is a type\n * name possibly qualified with schema and database name.\n */\n' - }, - ColumnRef: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'fields', - c_type: 'List*', - comment: '/* field names (Value strings) or A_Star */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - '/*\n * ColumnRef - specifies a reference to a column, or possibly a whole tuple\n *\n * The "fields" list must be nonempty. It can contain string Value nodes\n * (representing names) and A_Star nodes (representing occurrence of a \'*\').\n * Currently, A_Star must appear only as the last list element --- the grammar\n * is responsible for enforcing this!\n *\n * Note: any container subscripting or selection of fields from composite columns\n * is represented by an A_Indirection node above the ColumnRef. However,\n * for simplicity in the normal case, initial field selection from a table\n * name is represented within ColumnRef and not by adding A_Indirection.\n */\n' - }, - ParamRef: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'number', - c_type: 'int', - comment: '/* the number of the parameter */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: '/*\n * ParamRef - specifies a $n parameter reference\n */\n' - }, - A_Expr: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'kind', - c_type: 'A_Expr_Kind', - comment: '/* see above */' - }, - { - name: 'name', - c_type: 'List*', - comment: '/* possibly-qualified name of operator */' - }, - { - name: 'lexpr', - c_type: 'Node*', - comment: '/* left argument, or NULL if none */' - }, - { - name: 'rexpr', - c_type: 'Node*', - comment: '/* right argument, or NULL if none */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: '/*\n * A_Expr - infix, prefix, and postfix expressions\n */\n' - }, - A_Const: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'val', - c_type: 'Value', - comment: '/* value (includes type info, see value.h) */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: '/*\n * A_Const - a literal constant\n */\n' - }, - TypeCast: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'arg', - c_type: 'Node*', - comment: '/* the expression being casted */' - }, - { - name: 'typeName', - c_type: 'TypeName*', - comment: '/* the target type */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: '/*\n * TypeCast - a CAST expression\n */\n' - }, - CollateClause: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'arg', - c_type: 'Node*', - comment: '/* input expression */' - }, - { - name: 'collname', - c_type: 'List*', - comment: '/* possibly-qualified collation name */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: '/*\n * CollateClause - a COLLATE expression\n */\n' - }, - RoleSpec: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'roletype', - c_type: 'RoleSpecType', - comment: '/* Type of this rolespec */' - }, - { - name: 'rolename', - c_type: 'char*', - comment: '/* filled only for ROLESPEC_CSTRING */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: null - }, - FuncCall: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'funcname', - c_type: 'List*', - comment: '/* qualified name of function */' - }, - { - name: 'args', - c_type: 'List*', - comment: '/* the arguments (list of exprs) */' - }, - { - name: 'agg_order', - c_type: 'List*', - comment: '/* ORDER BY (list of SortBy) */' - }, - { - name: 'agg_filter', - c_type: 'Node*', - comment: '/* FILTER clause, if any */' - }, - { - name: 'agg_within_group', - c_type: 'bool', - comment: '/* ORDER BY appeared in WITHIN GROUP */' - }, - { - name: 'agg_star', - c_type: 'bool', - comment: "/* argument was really '*' */" - }, - { - name: 'agg_distinct', - c_type: 'bool', - comment: '/* arguments were labeled DISTINCT */' - }, - { - name: 'func_variadic', - c_type: 'bool', - comment: '/* last argument was labeled VARIADIC */' - }, - { - name: 'over', - c_type: 'WindowDef*', - comment: '/* OVER clause, if any */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - "/*\n * FuncCall - a function or aggregate invocation\n *\n * agg_order (if not NIL) indicates we saw 'foo(... ORDER BY ...)', or if\n * agg_within_group is true, it was 'foo(...) WITHIN GROUP (ORDER BY ...)'.\n * agg_star indicates we saw a 'foo(*)' construct, while agg_distinct\n * indicates we saw 'foo(DISTINCT ...)'. In any of these cases, the\n * construct *must* be an aggregate call. Otherwise, it might be either an\n * aggregate or some other kind of function. However, if FILTER or OVER is\n * present it had better be an aggregate or window function.\n *\n * Normally, you'd initialize this via makeFuncCall() and then only change the\n * parts of the struct its defaults don't match afterwards, as needed.\n */\n" - }, - A_Star: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - } - ], - comment: - "/*\n * A_Star - '*' representing all columns of a table or compound field\n *\n * This can appear within ColumnRef.fields, A_Indirection.indirection, and\n * ResTarget.indirection lists.\n */\n" - }, - A_Indices: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'is_slice', - c_type: 'bool', - comment: '/* true if slice (i.e., colon present) */' - }, - { - name: 'lidx', - c_type: 'Node*', - comment: '/* slice lower bound, if any */' - }, - { - name: 'uidx', - c_type: 'Node*', - comment: '/* subscript, or slice upper bound if any */' - } - ], - comment: - '/*\n * A_Indices - array subscript or slice bounds ([idx] or [lidx:uidx])\n *\n * In slice case, either or both of lidx and uidx can be NULL (omitted).\n * In non-slice case, uidx holds the single subscript and lidx is always NULL.\n */\n' - }, - A_Indirection: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'arg', - c_type: 'Node*', - comment: '/* the thing being selected from */' - }, - { - name: 'indirection', - c_type: 'List*', - comment: '/* subscripts and/or field names and/or * */' - } - ], - comment: - '/*\n * A_Indirection - select a field and/or array element from an expression\n *\n * The indirection list can contain A_Indices nodes (representing\n * subscripting), string Value nodes (representing field selection --- the\n * string value is the name of the field to select), and A_Star nodes\n * (representing selection of all fields of a composite type).\n * For example, a complex selection operation like\n *\t\t\t\t(foo).field1[42][7].field2\n * would be represented with a single A_Indirection node having a 4-element\n * indirection list.\n *\n * Currently, A_Star must appear only as the last list element --- the grammar\n * is responsible for enforcing this!\n */\n' - }, - A_ArrayExpr: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'elements', - c_type: 'List*', - comment: '/* array element expressions */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: '/*\n * A_ArrayExpr - an ARRAY[] construct\n */\n' - }, - ResTarget: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'name', - c_type: 'char*', - comment: '/* column name or NULL */' - }, - { - name: 'indirection', - c_type: 'List*', - comment: "/* subscripts, field names, and '*', or NIL */" - }, - { - name: 'val', - c_type: 'Node*', - comment: '/* the value expression to compute or assign */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - "/*\n * ResTarget -\n *\t result target (used in target list of pre-transformed parse trees)\n *\n * In a SELECT target list, 'name' is the column label from an\n * 'AS ColumnLabel' clause, or NULL if there was none, and 'val' is the\n * value expression itself. The 'indirection' field is not used.\n *\n * INSERT uses ResTarget in its target-column-names list. Here, 'name' is\n * the name of the destination column, 'indirection' stores any subscripts\n * attached to the destination, and 'val' is not used.\n *\n * In an UPDATE target list, 'name' is the name of the destination column,\n * 'indirection' stores any subscripts attached to the destination, and\n * 'val' is the expression to assign.\n *\n * See A_Indirection for more info about what can appear in 'indirection'.\n */\n" - }, - MultiAssignRef: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'source', - c_type: 'Node*', - comment: '/* the row-valued expression */' - }, - { - name: 'colno', - c_type: 'int', - comment: '/* column number for this target (1..n) */' - }, - { - name: 'ncolumns', - c_type: 'int', - comment: '/* number of targets in the construct */' - } - ], - comment: - '/*\n * MultiAssignRef - element of a row source expression for UPDATE\n *\n * In an UPDATE target list, when we have SET (a,b,c) = row-valued-expression,\n * we generate separate ResTarget items for each of a,b,c. Their "val" trees\n * are MultiAssignRef nodes numbered 1..n, linking to a common copy of the\n * row-valued-expression (which parse analysis will process only once, when\n * handling the MultiAssignRef with colno=1).\n */\n' - }, - SortBy: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'node', - c_type: 'Node*', - comment: '/* expression to sort on */' - }, - { - name: 'sortby_dir', - c_type: 'SortByDir', - comment: '/* ASC/DESC/USING/default */' - }, - { - name: 'sortby_nulls', - c_type: 'SortByNulls', - comment: '/* NULLS FIRST/LAST */' - }, - { - name: 'useOp', - c_type: 'List*', - comment: '/* name of op to use, if SORTBY_USING */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* operator location, or -1 if none/unknown */' - } - ], - comment: '/*\n * SortBy - for ORDER BY clause\n */\n' - }, - WindowDef: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'name', - c_type: 'char*', - comment: "/* window's own name */" - }, - { - name: 'refname', - c_type: 'char*', - comment: '/* referenced window name, if any */' - }, - { - name: 'partitionClause', - c_type: 'List*', - comment: '/* PARTITION BY expression list */' - }, - { - name: 'orderClause', - c_type: 'List*', - comment: '/* ORDER BY (list of SortBy) */' - }, - { - name: 'frameOptions', - c_type: 'int', - comment: '/* frame_clause options, see below */' - }, - { - name: 'startOffset', - c_type: 'Node*', - comment: '/* expression for starting bound, if any */' - }, - { - name: 'endOffset', - c_type: 'Node*', - comment: '/* expression for ending bound, if any */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* parse location, or -1 if none/unknown */' - } - ], - comment: - '/*\n * WindowDef - raw representation of WINDOW and OVER clauses\n *\n * For entries in a WINDOW list, "name" is the window name being defined.\n * For OVER clauses, we use "name" for the "OVER window" syntax, or "refname"\n * for the "OVER (window)" syntax, which is subtly different --- the latter\n * implies overriding the window frame clause.\n */\n' - }, - RangeSubselect: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'lateral', - c_type: 'bool', - comment: '/* does it have LATERAL prefix? */' - }, - { - name: 'subquery', - c_type: 'Node*', - comment: '/* the untransformed sub-select clause */' - }, - { - name: 'alias', - c_type: 'Alias*', - comment: '/* table alias & optional column aliases */' - } - ], - comment: - '/*\n * RangeSubselect - subquery appearing in a FROM clause\n */\n' - }, - RangeFunction: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'lateral', - c_type: 'bool', - comment: '/* does it have LATERAL prefix? */' - }, - { - name: 'ordinality', - c_type: 'bool', - comment: '/* does it have WITH ORDINALITY suffix? */' - }, - { - name: 'is_rowsfrom', - c_type: 'bool', - comment: '/* is result of ROWS FROM() syntax? */' - }, - { - name: 'functions', - c_type: 'List*', - comment: '/* per-function information, see above */' - }, - { - name: 'alias', - c_type: 'Alias*', - comment: '/* table alias & optional column aliases */' - }, - { - name: 'coldeflist', - c_type: 'List*', - comment: - '/* list of ColumnDef nodes to describe result\n\t\t\t\t\t\t\t\t * of function returning RECORD */\n' - } - ], - comment: - "/*\n * RangeFunction - function call appearing in a FROM clause\n *\n * functions is a List because we use this to represent the construct\n * ROWS FROM(func1(...), func2(...), ...). Each element of this list is a\n * two-element sublist, the first element being the untransformed function\n * call tree, and the second element being a possibly-empty list of ColumnDef\n * nodes representing any columndef list attached to that function within the\n * ROWS FROM() syntax.\n *\n * alias and coldeflist represent any alias and/or columndef list attached\n * at the top level. (We disallow coldeflist appearing both here and\n * per-function, but that's checked in parse analysis, not by the grammar.)\n */\n" - }, - RangeTableFunc: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'lateral', - c_type: 'bool', - comment: '/* does it have LATERAL prefix? */' - }, - { - name: 'docexpr', - c_type: 'Node*', - comment: '/* document expression */' - }, - { - name: 'rowexpr', - c_type: 'Node*', - comment: '/* row generator expression */' - }, - { - name: 'namespaces', - c_type: 'List*', - comment: '/* list of namespaces as ResTarget */' - }, - { - name: 'columns', - c_type: 'List*', - comment: '/* list of RangeTableFuncCol */' - }, - { - name: 'alias', - c_type: 'Alias*', - comment: '/* table alias & optional column aliases */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - '/*\n * RangeTableFunc - raw form of "table functions" such as XMLTABLE\n */\n' - }, - RangeTableFuncCol: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'colname', - c_type: 'char*', - comment: '/* name of generated column */' - }, - { - name: 'typeName', - c_type: 'TypeName*', - comment: '/* type of generated column */' - }, - { - name: 'for_ordinality', - c_type: 'bool', - comment: '/* does it have FOR ORDINALITY? */' - }, - { - name: 'is_not_null', - c_type: 'bool', - comment: '/* does it have NOT NULL? */' - }, - { - name: 'colexpr', - c_type: 'Node*', - comment: '/* column filter expression */' - }, - { - name: 'coldefexpr', - c_type: 'Node*', - comment: '/* column default value expression */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - '/*\n * RangeTableFuncCol - one column in a RangeTableFunc->columns\n *\n * If for_ordinality is true (FOR ORDINALITY), then the column is an int4\n * column and the rest of the fields are ignored.\n */\n' - }, - RangeTableSample: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'relation', - c_type: 'Node*', - comment: '/* relation to be sampled */' - }, - { - name: 'method', - c_type: 'List*', - comment: '/* sampling method name (possibly qualified) */' - }, - { - name: 'args', - c_type: 'List*', - comment: '/* argument(s) for sampling method */' - }, - { - name: 'repeatable', - c_type: 'Node*', - comment: '/* REPEATABLE expression, or NULL if none */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* method name location, or -1 if unknown */' - } - ], - comment: - '/*\n * RangeTableSample - TABLESAMPLE appearing in a raw FROM clause\n *\n * This node, appearing only in raw parse trees, represents\n *\t\t TABLESAMPLE () REPEATABLE ()\n * Currently, the can only be a RangeVar, but we might in future\n * allow RangeSubselect and other options. Note that the RangeTableSample\n * is wrapped around the node representing the , rather than being\n * a subfield of it.\n */\n' - }, - ColumnDef: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'colname', - c_type: 'char*', - comment: '/* name of column */' - }, - { - name: 'typeName', - c_type: 'TypeName*', - comment: '/* type of column */' - }, - { - name: 'inhcount', - c_type: 'int', - comment: '/* number of times column is inherited */' - }, - { - name: 'is_local', - c_type: 'bool', - comment: "/* column has local (non-inherited) def'n */" - }, - { - name: 'is_not_null', - c_type: 'bool', - comment: '/* NOT NULL constraint specified? */' - }, - { - name: 'is_from_type', - c_type: 'bool', - comment: '/* column definition came from table type */' - }, - { - name: 'storage', - c_type: 'char', - comment: '/* attstorage setting, or 0 for default */' - }, - { - name: 'raw_default', - c_type: 'Node*', - comment: '/* default value (untransformed parse tree) */' - }, - { - name: 'cooked_default', - c_type: 'Node*', - comment: '/* default value (transformed expr tree) */' - }, - { - name: 'identity', - c_type: 'char', - comment: '/* attidentity setting */' - }, - { - name: 'identitySequence', - c_type: 'RangeVar*', - comment: - '/* to store identity sequence name for\n\t\t\t\t\t\t\t\t\t * ALTER TABLE ... ADD COLUMN */\n' - }, - { - name: 'generated', - c_type: 'char', - comment: '/* attgenerated setting */' - }, - { - name: 'collClause', - c_type: 'CollateClause*', - comment: '/* untransformed COLLATE spec, if any */' - }, - { - name: 'collOid', - c_type: 'Oid', - comment: '/* collation OID (InvalidOid if not set) */' - }, - { - name: 'constraints', - c_type: 'List*', - comment: '/* other constraints on column */' - }, - { - name: 'fdwoptions', - c_type: 'List*', - comment: '/* per-column FDW options */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* parse location, or -1 if none/unknown */' - } - ], - comment: - '/*\n * ColumnDef - column definition (used in various creates)\n *\n * If the column has a default value, we may have the value expression\n * in either "raw" form (an untransformed parse tree) or "cooked" form\n * (a post-parse-analysis, executable expression tree), depending on\n * how this ColumnDef node was created (by parsing, or by inheritance\n * from an existing relation). We should never have both in the same node!\n *\n * Similarly, we may have a COLLATE specification in either raw form\n * (represented as a CollateClause with arg==NULL) or cooked form\n * (the collation\'s OID).\n *\n * The constraints list may contain a CONSTR_DEFAULT item in a raw\n * parsetree produced by gram.y, but transformCreateStmt will remove\n * the item and set raw_default instead. CONSTR_DEFAULT items\n * should not appear in any subsequent processing.\n */\n' - }, - TableLikeClause: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'relation', - c_type: 'RangeVar*', - comment: null - }, - { - name: 'options', - c_type: 'bits32', - comment: '/* OR of TableLikeOption flags */' - } - ], - comment: - '/*\n * TableLikeClause - CREATE TABLE ( ... LIKE ... ) clause\n */\n' - }, - IndexElem: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'name', - c_type: 'char*', - comment: '/* name of attribute to index, or NULL */' - }, - { - name: 'expr', - c_type: 'Node*', - comment: '/* expression to index, or NULL */' - }, - { - name: 'indexcolname', - c_type: 'char*', - comment: '/* name for index column; NULL = default */' - }, - { - name: 'collation', - c_type: 'List*', - comment: '/* name of collation; NIL = default */' - }, - { - name: 'opclass', - c_type: 'List*', - comment: '/* name of desired opclass; NIL = default */' - }, - { - name: 'opclassopts', - c_type: 'List*', - comment: '/* opclass-specific options, or NIL */' - }, - { - name: 'ordering', - c_type: 'SortByDir', - comment: '/* ASC/DESC/default */' - }, - { - name: 'nulls_ordering', - c_type: 'SortByNulls', - comment: '/* FIRST/LAST/default */' - } - ], - comment: - "/*\n * IndexElem - index parameters (used in CREATE INDEX, and in ON CONFLICT)\n *\n * For a plain index attribute, 'name' is the name of the table column to\n * index, and 'expr' is NULL. For an index expression, 'name' is NULL and\n * 'expr' is the expression tree.\n */\n" - }, - DefElem: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'defnamespace', - c_type: 'char*', - comment: '/* NULL if unqualified name */' - }, - { - name: 'defname', - c_type: 'char*', - comment: null - }, - { - name: 'arg', - c_type: 'Node*', - comment: '/* a (Value *) or a (TypeName *) */' - }, - { - name: 'defaction', - c_type: 'DefElemAction', - comment: '/* unspecified action, or SET/ADD/DROP */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - '/*\n * DefElem - a generic "name = value" option definition\n *\n * In some contexts the name can be qualified. Also, certain SQL commands\n * allow a SET/ADD/DROP action to be attached to option settings, so it\'s\n * convenient to carry a field for that too. (Note: currently, it is our\n * practice that the grammar allows namespace and action only in statements\n * where they are relevant; C code can just ignore those fields in other\n * statements.)\n */\n' - }, - LockingClause: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'lockedRels', - c_type: 'List*', - comment: '/* FOR [KEY] UPDATE/SHARE relations */' - }, - { - name: 'strength', - c_type: 'LockClauseStrength', - comment: null - }, - { - name: 'waitPolicy', - c_type: 'LockWaitPolicy', - comment: '/* NOWAIT and SKIP LOCKED */' - } - ], - comment: - '/*\n * LockingClause - raw representation of FOR [NO KEY] UPDATE/[KEY] SHARE\n *\t\toptions\n *\n * Note: lockedRels == NIL means "all relations in query". Otherwise it\n * is a list of RangeVar nodes. (We use RangeVar mainly because it carries\n * a location field --- currently, parse analysis insists on unqualified\n * names in LockingClause.)\n */\n' - }, - XmlSerialize: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'xmloption', - c_type: 'XmlOptionType', - comment: '/* DOCUMENT or CONTENT */' - }, - { - name: 'expr', - c_type: 'Node*', - comment: null - }, - { - name: 'typeName', - c_type: 'TypeName*', - comment: null - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: '/*\n * XMLSERIALIZE (in raw parse tree only)\n */\n' - }, - PartitionElem: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'name', - c_type: 'char*', - comment: '/* name of column to partition on, or NULL */' - }, - { - name: 'expr', - c_type: 'Node*', - comment: '/* expression to partition on, or NULL */' - }, - { - name: 'collation', - c_type: 'List*', - comment: '/* name of collation; NIL = default */' - }, - { - name: 'opclass', - c_type: 'List*', - comment: '/* name of desired opclass; NIL = default */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - "/*\n * PartitionElem - parse-time representation of a single partition key\n *\n * expr can be either a raw expression tree or a parse-analyzed expression.\n * We don't store these on-disk, though.\n */\n" - }, - PartitionSpec: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'strategy', - c_type: 'char*', - comment: - "/* partitioning strategy ('hash', 'list' or\n\t\t\t\t\t\t\t\t * 'range') */\n" - }, - { - name: 'partParams', - c_type: 'List*', - comment: '/* List of PartitionElems */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - '/*\n * PartitionSpec - parse-time representation of a partition key specification\n *\n * This represents the key space we will be partitioning on.\n */\n' - }, - PartitionBoundSpec: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - comment: '' - }, - { - name: 'strategy', - c_type: 'char', - comment: '/* see PARTITION_STRATEGY codes above */' - }, - { - name: 'is_default', - c_type: 'bool', - comment: '/* is it a default partition bound? */' - }, - { - comment: '' - }, - { - comment: '\t/* Partitioning info for HASH strategy: */\n' - }, - { - name: 'modulus', - c_type: 'int', - comment: null - }, - { - name: 'remainder', - c_type: 'int', - comment: null - }, - { - comment: '' - }, - { - comment: '\t/* Partitioning info for LIST strategy: */\n' - }, - { - name: 'listdatums', - c_type: 'List*', - comment: '/* List of Consts (or A_Consts in raw tree) */' - }, - { - comment: '' - }, - { - comment: '\t/* Partitioning info for RANGE strategy: */\n' - }, - { - name: 'lowerdatums', - c_type: 'List*', - comment: '/* List of PartitionRangeDatums */' - }, - { - name: 'upperdatums', - c_type: 'List*', - comment: '/* List of PartitionRangeDatums */' - }, - { - comment: '' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - '/*\n * PartitionBoundSpec - a partition bound specification\n *\n * This represents the portion of the partition key space assigned to a\n * particular partition. These are stored on disk in pg_class.relpartbound.\n */\n' - }, - PartitionRangeDatum: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - comment: '' - }, - { - name: 'kind', - c_type: 'PartitionRangeDatumKind', - comment: null - }, - { - name: 'value', - c_type: 'Node*', - comment: - '/* Const (or A_Const in raw tree), if kind is\n\t\t\t\t\t\t\t\t * PARTITION_RANGE_DATUM_VALUE, else NULL */\n' - }, - { - comment: '' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: null - }, - PartitionCmd: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'name', - c_type: 'RangeVar*', - comment: '/* name of partition to attach/detach */' - }, - { - name: 'bound', - c_type: 'PartitionBoundSpec*', - comment: '/* FOR VALUES, if attaching */' - } - ], - comment: - '/*\n * PartitionCmd - info for ALTER TABLE/INDEX ATTACH/DETACH PARTITION commands\n */\n' - }, - RangeTblEntry: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - comment: '' - }, - { - name: 'rtekind', - c_type: 'RTEKind', - comment: '/* see above */' - }, - { - comment: '' - }, - { - comment: - "\t/*\n\t * XXX the fields applicable to only some rte kinds should be merged into\n\t * a union. I didn't do this yet because the diffs would impact a lot of\n\t * code that is being actively worked on. FIXME someday.\n\t */\n" - }, - { - comment: '' - }, - { - comment: - "\t/*\n\t * Fields valid for a plain relation RTE (else zero):\n\t *\n\t * As a special case, RTE_NAMEDTUPLESTORE can also set relid to indicate\n\t * that the tuple format of the tuplestore is the same as the referenced\n\t * relation. This allows plans referencing AFTER trigger transition\n\t * tables to be invalidated if the underlying table is altered.\n\t *\n\t * rellockmode is really LOCKMODE, but it's declared int to avoid having\n\t * to include lock-related headers here. It must be RowExclusiveLock if\n\t * the RTE is an INSERT/UPDATE/DELETE target, else RowShareLock if the RTE\n\t * is a SELECT FOR UPDATE/FOR SHARE target, else AccessShareLock.\n\t *\n\t * Note: in some cases, rule expansion may result in RTEs that are marked\n\t * with RowExclusiveLock even though they are not the target of the\n\t * current query; this happens if a DO ALSO rule simply scans the original\n\t * target table. We leave such RTEs with their original lockmode so as to\n\t * avoid getting an additional, lesser lock.\n\t */\n" - }, - { - name: 'relid', - c_type: 'Oid', - comment: '/* OID of the relation */' - }, - { - name: 'relkind', - c_type: 'char', - comment: '/* relation kind (see pg_class.relkind) */' - }, - { - name: 'rellockmode', - c_type: 'int', - comment: '/* lock level that query requires on the rel */' - }, - { - name: 'tablesample', - c_type: 'TableSampleClause*', - comment: '/* sampling info, or NULL */' - }, - { - comment: '' - }, - { - comment: - '\t/*\n\t * Fields valid for a subquery RTE (else NULL):\n\t */\n' - }, - { - name: 'subquery', - c_type: 'Query*', - comment: '/* the sub-query */' - }, - { - name: 'security_barrier', - c_type: 'bool', - comment: '/* is from security_barrier view? */' - }, - { - comment: '' - }, - { - comment: - "\t/*\n\t * Fields valid for a join RTE (else NULL/zero):\n\t *\n\t * joinaliasvars is a list of (usually) Vars corresponding to the columns\n\t * of the join result. An alias Var referencing column K of the join\n\t * result can be replaced by the K'th element of joinaliasvars --- but to\n\t * simplify the task of reverse-listing aliases correctly, we do not do\n\t * that until planning time. In detail: an element of joinaliasvars can\n\t * be a Var of one of the join's input relations, or such a Var with an\n\t * implicit coercion to the join's output column type, or a COALESCE\n\t * expression containing the two input column Vars (possibly coerced).\n\t * Elements beyond the first joinmergedcols entries are always just Vars,\n\t * and are never referenced from elsewhere in the query (that is, join\n\t * alias Vars are generated only for merged columns). We keep these\n\t * entries only because they're needed in expandRTE() and similar code.\n\t *\n\t * Within a Query loaded from a stored rule, it is possible for non-merged\n\t * joinaliasvars items to be null pointers, which are placeholders for\n\t * (necessarily unreferenced) columns dropped since the rule was made.\n\t * Also, once planning begins, joinaliasvars items can be almost anything,\n\t * as a result of subquery-flattening substitutions.\n\t *\n\t * joinleftcols is an integer list of physical column numbers of the left\n\t * join input rel that are included in the join; likewise joinrighttcols\n\t * for the right join input rel. (Which rels those are can be determined\n\t * from the associated JoinExpr.) If the join is USING/NATURAL, then the\n\t * first joinmergedcols entries in each list identify the merged columns.\n\t * The merged columns come first in the join output, then remaining\n\t * columns of the left input, then remaining columns of the right.\n\t *\n\t * Note that input columns could have been dropped after creation of a\n\t * stored rule, if they are not referenced in the query (in particular,\n\t * merged columns could not be dropped); this is not accounted for in\n\t * joinleftcols/joinrighttcols.\n\t */\n" - }, - { - name: 'jointype', - c_type: 'JoinType', - comment: '/* type of join */' - }, - { - name: 'joinmergedcols', - c_type: 'int', - comment: '/* number of merged (JOIN USING) columns */' - }, - { - name: 'joinaliasvars', - c_type: 'List*', - comment: '/* list of alias-var expansions */' - }, - { - name: 'joinleftcols', - c_type: 'List*', - comment: '/* left-side input column numbers */' - }, - { - name: 'joinrightcols', - c_type: 'List*', - comment: '/* right-side input column numbers */' - }, - { - comment: '' - }, - { - comment: - '\t/*\n\t * Fields valid for a function RTE (else NIL/zero):\n\t *\n\t * When funcordinality is true, the eref->colnames list includes an alias\n\t * for the ordinality column. The ordinality column is otherwise\n\t * implicit, and must be accounted for "by hand" in places such as\n\t * expandRTE().\n\t */\n' - }, - { - name: 'functions', - c_type: 'List*', - comment: '/* list of RangeTblFunction nodes */' - }, - { - name: 'funcordinality', - c_type: 'bool', - comment: '/* is this called WITH ORDINALITY? */' - }, - { - comment: '' - }, - { - comment: - '\t/*\n\t * Fields valid for a TableFunc RTE (else NULL):\n\t */\n' - }, - { - name: 'tablefunc', - c_type: 'TableFunc*', - comment: null - }, - { - comment: '' - }, - { - comment: - '\t/*\n\t * Fields valid for a values RTE (else NIL):\n\t */\n' - }, - { - name: 'values_lists', - c_type: 'List*', - comment: '/* list of expression lists */' - }, - { - comment: '' - }, - { - comment: - '\t/*\n\t * Fields valid for a CTE RTE (else NULL/zero):\n\t */\n' - }, - { - name: 'ctename', - c_type: 'char*', - comment: '/* name of the WITH list item */' - }, - { - name: 'ctelevelsup', - c_type: 'Index', - comment: '/* number of query levels up */' - }, - { - name: 'self_reference', - c_type: 'bool', - comment: '/* is this a recursive self-reference? */' - }, - { - comment: '' - }, - { - comment: - "\t/*\n\t * Fields valid for CTE, VALUES, ENR, and TableFunc RTEs (else NIL):\n\t *\n\t * We need these for CTE RTEs so that the types of self-referential\n\t * columns are well-defined. For VALUES RTEs, storing these explicitly\n\t * saves having to re-determine the info by scanning the values_lists. For\n\t * ENRs, we store the types explicitly here (we could get the information\n\t * from the catalogs if 'relid' was supplied, but we'd still need these\n\t * for TupleDesc-based ENRs, so we might as well always store the type\n\t * info here). For TableFuncs, these fields are redundant with data in\n\t * the TableFunc node, but keeping them here allows some code sharing with\n\t * the other cases.\n\t *\n\t * For ENRs only, we have to consider the possibility of dropped columns.\n\t * A dropped column is included in these lists, but it will have zeroes in\n\t * all three lists (as well as an empty-string entry in eref). Testing\n\t * for zero coltype is the standard way to detect a dropped column.\n\t */\n" - }, - { - name: 'coltypes', - c_type: 'List*', - comment: '/* OID list of column type OIDs */' - }, - { - name: 'coltypmods', - c_type: 'List*', - comment: '/* integer list of column typmods */' - }, - { - name: 'colcollations', - c_type: 'List*', - comment: '/* OID list of column collation OIDs */' - }, - { - comment: '' - }, - { - comment: - '\t/*\n\t * Fields valid for ENR RTEs (else NULL/zero):\n\t */\n' - }, - { - name: 'enrname', - c_type: 'char*', - comment: '/* name of ephemeral named relation */' - }, - { - name: 'enrtuples', - c_type: 'double', - comment: '/* estimated or actual from caller */' - }, - { - comment: '' - }, - { - comment: '\t/*\n\t * Fields valid in all RTEs:\n\t */\n' - }, - { - name: 'alias', - c_type: 'Alias*', - comment: '/* user-written alias clause, if any */' - }, - { - name: 'eref', - c_type: 'Alias*', - comment: '/* expanded reference names */' - }, - { - name: 'lateral', - c_type: 'bool', - comment: '/* subquery, function, or values is LATERAL? */' - }, - { - name: 'inh', - c_type: 'bool', - comment: '/* inheritance requested? */' - }, - { - name: 'inFromCl', - c_type: 'bool', - comment: '/* present in FROM clause? */' - }, - { - name: 'requiredPerms', - c_type: 'AclMode', - comment: '/* bitmask of required access permissions */' - }, - { - name: 'checkAsUser', - c_type: 'Oid', - comment: '/* if valid, check access as this role */' - }, - { - name: 'selectedCols', - c_type: 'Bitmapset*', - comment: '/* columns needing SELECT permission */' - }, - { - name: 'insertedCols', - c_type: 'Bitmapset*', - comment: '/* columns needing INSERT permission */' - }, - { - name: 'updatedCols', - c_type: 'Bitmapset*', - comment: '/* columns needing UPDATE permission */' - }, - { - name: 'extraUpdatedCols', - c_type: 'Bitmapset*', - comment: '/* generated columns being updated */' - }, - { - name: 'securityQuals', - c_type: 'List*', - comment: '/* security barrier quals to apply, if any */' - } - ], - comment: - "/*--------------------\n * RangeTblEntry -\n *\t A range table is a List of RangeTblEntry nodes.\n *\n *\t A range table entry may represent a plain relation, a sub-select in\n *\t FROM, or the result of a JOIN clause. (Only explicit JOIN syntax\n *\t produces an RTE, not the implicit join resulting from multiple FROM\n *\t items. This is because we only need the RTE to deal with SQL features\n *\t like outer joins and join-output-column aliasing.) Other special\n *\t RTE types also exist, as indicated by RTEKind.\n *\n *\t Note that we consider RTE_RELATION to cover anything that has a pg_class\n *\t entry. relkind distinguishes the sub-cases.\n *\n *\t alias is an Alias node representing the AS alias-clause attached to the\n *\t FROM expression, or NULL if no clause.\n *\n *\t eref is the table reference name and column reference names (either\n *\t real or aliases). Note that system columns (OID etc) are not included\n *\t in the column list.\n *\t eref->aliasname is required to be present, and should generally be used\n *\t to identify the RTE for error messages etc.\n *\n *\t In RELATION RTEs, the colnames in both alias and eref are indexed by\n *\t physical attribute number; this means there must be colname entries for\n *\t dropped columns. When building an RTE we insert empty strings (\"\") for\n *\t dropped columns. Note however that a stored rule may have nonempty\n *\t colnames for columns dropped since the rule was created (and for that\n *\t matter the colnames might be out of date due to column renamings).\n *\t The same comments apply to FUNCTION RTEs when a function's return type\n *\t is a named composite type.\n *\n *\t In JOIN RTEs, the colnames in both alias and eref are one-to-one with\n *\t joinaliasvars entries. A JOIN RTE will omit columns of its inputs when\n *\t those columns are known to be dropped at parse time. Again, however,\n *\t a stored rule might contain entries for columns dropped since the rule\n *\t was created. (This is only possible for columns not actually referenced\n *\t in the rule.) When loading a stored rule, we replace the joinaliasvars\n *\t items for any such columns with null pointers. (We can't simply delete\n *\t them from the joinaliasvars list, because that would affect the attnums\n *\t of Vars referencing the rest of the list.)\n *\n *\t inh is true for relation references that should be expanded to include\n *\t inheritance children, if the rel has any. This *must* be false for\n *\t RTEs other than RTE_RELATION entries.\n *\n *\t inFromCl marks those range variables that are listed in the FROM clause.\n *\t It's false for RTEs that are added to a query behind the scenes, such\n *\t as the NEW and OLD variables for a rule, or the subqueries of a UNION.\n *\t This flag is not used anymore during parsing, since the parser now uses\n *\t a separate \"namespace\" data structure to control visibility, but it is\n *\t needed by ruleutils.c to determine whether RTEs should be shown in\n *\t decompiled queries.\n *\n *\t requiredPerms and checkAsUser specify run-time access permissions\n *\t checks to be performed at query startup. The user must have *all*\n *\t of the permissions that are OR'd together in requiredPerms (zero\n *\t indicates no permissions checking). If checkAsUser is not zero,\n *\t then do the permissions checks using the access rights of that user,\n *\t not the current effective user ID. (This allows rules to act as\n *\t setuid gateways.) Permissions checks only apply to RELATION RTEs.\n *\n *\t For SELECT/INSERT/UPDATE permissions, if the user doesn't have\n *\t table-wide permissions then it is sufficient to have the permissions\n *\t on all columns identified in selectedCols (for SELECT) and/or\n *\t insertedCols and/or updatedCols (INSERT with ON CONFLICT DO UPDATE may\n *\t have all 3). selectedCols, insertedCols and updatedCols are bitmapsets,\n *\t which cannot have negative integer members, so we subtract\n *\t FirstLowInvalidHeapAttributeNumber from column numbers before storing\n *\t them in these fields. A whole-row Var reference is represented by\n *\t setting the bit for InvalidAttrNumber.\n *\n *\t updatedCols is also used in some other places, for example, to determine\n *\t which triggers to fire and in FDWs to know which changed columns they\n *\t need to ship off.\n *\n *\t Generated columns that are caused to be updated by an update to a base\n *\t column are listed in extraUpdatedCols. This is not considered for\n *\t permission checking, but it is useful in those places that want to know\n *\t the full set of columns being updated as opposed to only the ones the\n *\t user explicitly mentioned in the query. (There is currently no need for\n *\t an extraInsertedCols, but it could exist.) Note that extraUpdatedCols\n *\t is populated during query rewrite, NOT in the parser, since generated\n *\t columns could be added after a rule has been parsed and stored.\n *\n *\t securityQuals is a list of security barrier quals (boolean expressions),\n *\t to be tested in the listed order before returning a row from the\n *\t relation. It is always NIL in parser output. Entries are added by the\n *\t rewriter to implement security-barrier views and/or row-level security.\n *\t Note that the planner turns each boolean expression into an implicitly\n *\t AND'ed sublist, as is its usual habit with qualification expressions.\n *--------------------\n */\n" - }, - RangeTblFunction: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - comment: '' - }, - { - name: 'funcexpr', - c_type: 'Node*', - comment: '/* expression tree for func call */' - }, - { - name: 'funccolcount', - c_type: 'int', - comment: '/* number of columns it contributes to RTE */' - }, - { - comment: - '\t/* These fields record the contents of a column definition list, if any: */\n' - }, - { - name: 'funccolnames', - c_type: 'List*', - comment: '/* column names (list of String) */' - }, - { - name: 'funccoltypes', - c_type: 'List*', - comment: '/* OID list of column type OIDs */' - }, - { - name: 'funccoltypmods', - c_type: 'List*', - comment: '/* integer list of column typmods */' - }, - { - name: 'funccolcollations', - c_type: 'List*', - comment: '/* OID list of column collation OIDs */' - }, - { - comment: - '\t/* This is set during planning for use by the executor: */\n' - }, - { - name: 'funcparams', - c_type: 'Bitmapset*', - comment: '/* PARAM_EXEC Param IDs affecting this func */' - } - ], - comment: - "/*\n * RangeTblFunction -\n *\t RangeTblEntry subsidiary data for one function in a FUNCTION RTE.\n *\n * If the function had a column definition list (required for an\n * otherwise-unspecified RECORD result), funccolnames lists the names given\n * in the definition list, funccoltypes lists their declared column types,\n * funccoltypmods lists their typmods, funccolcollations their collations.\n * Otherwise, those fields are NIL.\n *\n * Notice we don't attempt to store info about the results of functions\n * returning named composite types, because those can change from time to\n * time. We do however remember how many columns we thought the type had\n * (including dropped columns!), so that we can successfully ignore any\n * columns added after the query was parsed.\n */\n" - }, - TableSampleClause: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'tsmhandler', - c_type: 'Oid', - comment: '/* OID of the tablesample handler function */' - }, - { - name: 'args', - c_type: 'List*', - comment: '/* tablesample argument expression(s) */' - }, - { - name: 'repeatable', - c_type: 'Expr*', - comment: '/* REPEATABLE expression, or NULL if none */' - } - ], - comment: - '/*\n * TableSampleClause - TABLESAMPLE appearing in a transformed FROM clause\n *\n * Unlike RangeTableSample, this is a subnode of the relevant RangeTblEntry.\n */\n' - }, - WithCheckOption: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'kind', - c_type: 'WCOKind', - comment: '/* kind of WCO */' - }, - { - name: 'relname', - c_type: 'char*', - comment: '/* name of relation that specified the WCO */' - }, - { - name: 'polname', - c_type: 'char*', - comment: '/* name of RLS policy being checked */' - }, - { - name: 'qual', - c_type: 'Node*', - comment: '/* constraint qual to check */' - }, - { - name: 'cascaded', - c_type: 'bool', - comment: '/* true for a cascaded WCO on a view */' - } - ], - comment: null - }, - SortGroupClause: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'tleSortGroupRef', - c_type: 'Index', - comment: '/* reference into targetlist */' - }, - { - name: 'eqop', - c_type: 'Oid', - comment: "/* the equality operator ('=' op) */" - }, - { - name: 'sortop', - c_type: 'Oid', - comment: "/* the ordering operator ('<' op), or 0 */" - }, - { - name: 'nulls_first', - c_type: 'bool', - comment: '/* do NULLs come before normal values? */' - }, - { - name: 'hashable', - c_type: 'bool', - comment: '/* can eqop be implemented by hashing? */' - } - ], - comment: - "/*\n * SortGroupClause -\n *\t\trepresentation of ORDER BY, GROUP BY, PARTITION BY,\n *\t\tDISTINCT, DISTINCT ON items\n *\n * You might think that ORDER BY is only interested in defining ordering,\n * and GROUP/DISTINCT are only interested in defining equality. However,\n * one way to implement grouping is to sort and then apply a \"uniq\"-like\n * filter. So it's also interesting to keep track of possible sort operators\n * for GROUP/DISTINCT, and in particular to try to sort for the grouping\n * in a way that will also yield a requested ORDER BY ordering. So we need\n * to be able to compare ORDER BY and GROUP/DISTINCT lists, which motivates\n * the decision to give them the same representation.\n *\n * tleSortGroupRef must match ressortgroupref of exactly one entry of the\n *\t\tquery's targetlist; that is the expression to be sorted or grouped by.\n * eqop is the OID of the equality operator.\n * sortop is the OID of the ordering operator (a \"<\" or \">\" operator),\n *\t\tor InvalidOid if not available.\n * nulls_first means about what you'd expect. If sortop is InvalidOid\n *\t\tthen nulls_first is meaningless and should be set to false.\n * hashable is true if eqop is hashable (note this condition also depends\n *\t\ton the datatype of the input expression).\n *\n * In an ORDER BY item, all fields must be valid. (The eqop isn't essential\n * here, but it's cheap to get it along with the sortop, and requiring it\n * to be valid eases comparisons to grouping items.) Note that this isn't\n * actually enough information to determine an ordering: if the sortop is\n * collation-sensitive, a collation OID is needed too. We don't store the\n * collation in SortGroupClause because it's not available at the time the\n * parser builds the SortGroupClause; instead, consult the exposed collation\n * of the referenced targetlist expression to find out what it is.\n *\n * In a grouping item, eqop must be valid. If the eqop is a btree equality\n * operator, then sortop should be set to a compatible ordering operator.\n * We prefer to set eqop/sortop/nulls_first to match any ORDER BY item that\n * the query presents for the same tlist item. If there is none, we just\n * use the default ordering op for the datatype.\n *\n * If the tlist item's type has a hash opclass but no btree opclass, then\n * we will set eqop to the hash equality operator, sortop to InvalidOid,\n * and nulls_first to false. A grouping item of this kind can only be\n * implemented by hashing, and of course it'll never match an ORDER BY item.\n *\n * The hashable flag is provided since we generally have the requisite\n * information readily available when the SortGroupClause is constructed,\n * and it's relatively expensive to get it again later. Note there is no\n * need for a \"sortable\" flag since OidIsValid(sortop) serves the purpose.\n *\n * A query might have both ORDER BY and DISTINCT (or DISTINCT ON) clauses.\n * In SELECT DISTINCT, the distinctClause list is as long or longer than the\n * sortClause list, while in SELECT DISTINCT ON it's typically shorter.\n * The two lists must match up to the end of the shorter one --- the parser\n * rearranges the distinctClause if necessary to make this true. (This\n * restriction ensures that only one sort step is needed to both satisfy the\n * ORDER BY and set up for the Unique step. This is semantically necessary\n * for DISTINCT ON, and presents no real drawback for DISTINCT.)\n */\n" - }, - GroupingSet: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'kind', - c_type: 'GroupingSetKind', - comment: null - }, - { - name: 'content', - c_type: 'List*', - comment: null - }, - { - name: 'location', - c_type: 'int', - comment: null - } - ], - comment: null - }, - WindowClause: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'name', - c_type: 'char*', - comment: '/* window name (NULL in an OVER clause) */' - }, - { - name: 'refname', - c_type: 'char*', - comment: '/* referenced window name, if any */' - }, - { - name: 'partitionClause', - c_type: 'List*', - comment: '/* PARTITION BY list */' - }, - { - name: 'orderClause', - c_type: 'List*', - comment: '/* ORDER BY list */' - }, - { - name: 'frameOptions', - c_type: 'int', - comment: '/* frame_clause options, see WindowDef */' - }, - { - name: 'startOffset', - c_type: 'Node*', - comment: '/* expression for starting bound, if any */' - }, - { - name: 'endOffset', - c_type: 'Node*', - comment: '/* expression for ending bound, if any */' - }, - { - name: 'startInRangeFunc', - c_type: 'Oid', - comment: '/* in_range function for startOffset */' - }, - { - name: 'endInRangeFunc', - c_type: 'Oid', - comment: '/* in_range function for endOffset */' - }, - { - name: 'inRangeColl', - c_type: 'Oid', - comment: '/* collation for in_range tests */' - }, - { - name: 'inRangeAsc', - c_type: 'bool', - comment: '/* use ASC sort order for in_range tests? */' - }, - { - name: 'inRangeNullsFirst', - c_type: 'bool', - comment: '/* nulls sort first for in_range tests? */' - }, - { - name: 'winref', - c_type: 'Index', - comment: '/* ID referenced by window functions */' - }, - { - name: 'copiedOrder', - c_type: 'bool', - comment: '/* did we copy orderClause from refname? */' - } - ], - comment: - "/*\n * WindowClause -\n *\t\ttransformed representation of WINDOW and OVER clauses\n *\n * A parsed Query's windowClause list contains these structs. \"name\" is set\n * if the clause originally came from WINDOW, and is NULL if it originally\n * was an OVER clause (but note that we collapse out duplicate OVERs).\n * partitionClause and orderClause are lists of SortGroupClause structs.\n * If we have RANGE with offset PRECEDING/FOLLOWING, the semantics of that are\n * specified by startInRangeFunc/inRangeColl/inRangeAsc/inRangeNullsFirst\n * for the start offset, or endInRangeFunc/inRange* for the end offset.\n * winref is an ID number referenced by WindowFunc nodes; it must be unique\n * among the members of a Query's windowClause list.\n * When refname isn't null, the partitionClause is always copied from there;\n * the orderClause might or might not be copied (see copiedOrder); the framing\n * options are never copied, per spec.\n */\n" - }, - RowMarkClause: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'rti', - c_type: 'Index', - comment: '/* range table index of target relation */' - }, - { - name: 'strength', - c_type: 'LockClauseStrength', - comment: null - }, - { - name: 'waitPolicy', - c_type: 'LockWaitPolicy', - comment: '/* NOWAIT and SKIP LOCKED */' - }, - { - name: 'pushedDown', - c_type: 'bool', - comment: '/* pushed down from higher query level? */' - } - ], - comment: - '/*\n * RowMarkClause -\n *\t parser output representation of FOR [KEY] UPDATE/SHARE clauses\n *\n * Query.rowMarks contains a separate RowMarkClause node for each relation\n * identified as a FOR [KEY] UPDATE/SHARE target. If one of these clauses\n * is applied to a subquery, we generate RowMarkClauses for all normal and\n * subquery rels in the subquery, but they are marked pushedDown = true to\n * distinguish them from clauses that were explicitly written at this query\n * level. Also, Query.hasForUpdate tells whether there were explicit FOR\n * UPDATE/SHARE/KEY SHARE clauses in the current query level.\n */\n' - }, - WithClause: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'ctes', - c_type: 'List*', - comment: '/* list of CommonTableExprs */' - }, - { - name: 'recursive', - c_type: 'bool', - comment: '/* true = WITH RECURSIVE */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - '/*\n * WithClause -\n *\t representation of WITH clause\n *\n * Note: WithClause does not propagate into the Query representation;\n * but CommonTableExpr does.\n */\n' - }, - InferClause: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'indexElems', - c_type: 'List*', - comment: '/* IndexElems to infer unique index */' - }, - { - name: 'whereClause', - c_type: 'Node*', - comment: '/* qualification (partial-index predicate) */' - }, - { - name: 'conname', - c_type: 'char*', - comment: '/* Constraint name, or NULL if unnamed */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - '/*\n * InferClause -\n *\t\tON CONFLICT unique index inference clause\n *\n * Note: InferClause does not propagate into the Query representation.\n */\n' - }, - OnConflictClause: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'action', - c_type: 'OnConflictAction', - comment: '/* DO NOTHING or UPDATE? */' - }, - { - name: 'infer', - c_type: 'InferClause*', - comment: '/* Optional index inference clause */' - }, - { - name: 'targetList', - c_type: 'List*', - comment: '/* the target list (of ResTarget) */' - }, - { - name: 'whereClause', - c_type: 'Node*', - comment: '/* qualifications */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - '/*\n * OnConflictClause -\n *\t\trepresentation of ON CONFLICT clause\n *\n * Note: OnConflictClause does not propagate into the Query representation.\n */\n' - }, - CommonTableExpr: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'ctename', - c_type: 'char*', - comment: '/* query name (never qualified) */' - }, - { - name: 'aliascolnames', - c_type: 'List*', - comment: '/* optional list of column names */' - }, - { - name: 'ctematerialized', - c_type: 'CTEMaterialize', - comment: '/* is this an optimization fence? */' - }, - { - comment: - '\t/* SelectStmt/InsertStmt/etc before parse analysis, Query afterwards: */\n' - }, - { - name: 'ctequery', - c_type: 'Node*', - comment: "/* the CTE's subquery */" - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - }, - { - comment: '\t/* These fields are set during parse analysis: */\n' - }, - { - name: 'cterecursive', - c_type: 'bool', - comment: '/* is this CTE actually recursive? */' - }, - { - name: 'cterefcount', - c_type: 'int', - comment: - '/* number of RTEs referencing this CTE\n\t\t\t\t\t\t\t\t * (excluding internal self-references) */\n' - }, - { - name: 'ctecolnames', - c_type: 'List*', - comment: '/* list of output column names */' - }, - { - name: 'ctecoltypes', - c_type: 'List*', - comment: '/* OID list of output column type OIDs */' - }, - { - name: 'ctecoltypmods', - c_type: 'List*', - comment: '/* integer list of output column typmods */' - }, - { - name: 'ctecolcollations', - c_type: 'List*', - comment: '/* OID list of column collation OIDs */' - } - ], - comment: null - }, - TriggerTransition: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'name', - c_type: 'char*', - comment: null - }, - { - name: 'isNew', - c_type: 'bool', - comment: null - }, - { - name: 'isTable', - c_type: 'bool', - comment: null - } - ], - comment: - '/*\n * TriggerTransition -\n *\t representation of transition row or table naming clause\n *\n * Only transition tables are initially supported in the syntax, and only for\n * AFTER triggers, but other permutations are accepted by the parser so we can\n * give a meaningful message from C code.\n */\n' - }, - RawStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'stmt', - c_type: 'Node*', - comment: '/* raw parse tree */' - }, - { - name: 'stmt_location', - c_type: 'int', - comment: '/* start location, or -1 if unknown */' - }, - { - name: 'stmt_len', - c_type: 'int', - comment: '/* length in bytes; 0 means "rest of string" */' - } - ], - comment: - "/*\n *\t\tRawStmt --- container for any one statement's raw parse tree\n *\n * Parse analysis converts a raw parse tree headed by a RawStmt node into\n * an analyzed statement headed by a Query node. For optimizable statements,\n * the conversion is complex. For utility statements, the parser usually just\n * transfers the raw parse tree (sans RawStmt) into the utilityStmt field of\n * the Query node, and all the useful work happens at execution time.\n *\n * stmt_location/stmt_len identify the portion of the source text string\n * containing this raw statement (useful for multi-statement strings).\n */\n" - }, - InsertStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'relation', - c_type: 'RangeVar*', - comment: '/* relation to insert into */' - }, - { - name: 'cols', - c_type: 'List*', - comment: '/* optional: names of the target columns */' - }, - { - name: 'selectStmt', - c_type: 'Node*', - comment: '/* the source SELECT/VALUES, or NULL */' - }, - { - name: 'onConflictClause', - c_type: 'OnConflictClause*', - comment: '/* ON CONFLICT clause */' - }, - { - name: 'returningList', - c_type: 'List*', - comment: '/* list of expressions to return */' - }, - { - name: 'withClause', - c_type: 'WithClause*', - comment: '/* WITH clause */' - }, - { - name: 'override', - c_type: 'OverridingKind', - comment: '/* OVERRIDING clause */' - } - ], - comment: - '/* ----------------------\n *\t\tInsert Statement\n *\n * The source expression is represented by SelectStmt for both the\n * SELECT and VALUES cases. If selectStmt is NULL, then the query\n * is INSERT ... DEFAULT VALUES.\n * ----------------------\n */\n' - }, - DeleteStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'relation', - c_type: 'RangeVar*', - comment: '/* relation to delete from */' - }, - { - name: 'usingClause', - c_type: 'List*', - comment: '/* optional using clause for more tables */' - }, - { - name: 'whereClause', - c_type: 'Node*', - comment: '/* qualifications */' - }, - { - name: 'returningList', - c_type: 'List*', - comment: '/* list of expressions to return */' - }, - { - name: 'withClause', - c_type: 'WithClause*', - comment: '/* WITH clause */' - } - ], - comment: - '/* ----------------------\n *\t\tDelete Statement\n * ----------------------\n */\n' - }, - UpdateStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'relation', - c_type: 'RangeVar*', - comment: '/* relation to update */' - }, - { - name: 'targetList', - c_type: 'List*', - comment: '/* the target list (of ResTarget) */' - }, - { - name: 'whereClause', - c_type: 'Node*', - comment: '/* qualifications */' - }, - { - name: 'fromClause', - c_type: 'List*', - comment: '/* optional from clause for more tables */' - }, - { - name: 'returningList', - c_type: 'List*', - comment: '/* list of expressions to return */' - }, - { - name: 'withClause', - c_type: 'WithClause*', - comment: '/* WITH clause */' - } - ], - comment: - '/* ----------------------\n *\t\tUpdate Statement\n * ----------------------\n */\n' - }, - SelectStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - comment: '' - }, - { - comment: - '\t/*\n\t * These fields are used only in "leaf" SelectStmts.\n\t */\n' - }, - { - name: 'distinctClause', - c_type: 'List*', - comment: - '/* NULL, list of DISTINCT ON exprs, or\n\t\t\t\t\t\t\t\t * lcons(NIL,NIL) for all (SELECT DISTINCT) */\n' - }, - { - name: 'intoClause', - c_type: 'IntoClause*', - comment: '/* target for SELECT INTO */' - }, - { - name: 'targetList', - c_type: 'List*', - comment: '/* the target list (of ResTarget) */' - }, - { - name: 'fromClause', - c_type: 'List*', - comment: '/* the FROM clause */' - }, - { - name: 'whereClause', - c_type: 'Node*', - comment: '/* WHERE qualification */' - }, - { - name: 'groupClause', - c_type: 'List*', - comment: '/* GROUP BY clauses */' - }, - { - name: 'havingClause', - c_type: 'Node*', - comment: '/* HAVING conditional-expression */' - }, - { - name: 'windowClause', - c_type: 'List*', - comment: '/* WINDOW window_name AS (...), ... */' - }, - { - comment: '' - }, - { - comment: - '\t/*\n\t * In a "leaf" node representing a VALUES list, the above fields are all\n\t * null, and instead this field is set. Note that the elements of the\n\t * sublists are just expressions, without ResTarget decoration. Also note\n\t * that a list element can be DEFAULT (represented as a SetToDefault\n\t * node), regardless of the context of the VALUES list. It\'s up to parse\n\t * analysis to reject that where not valid.\n\t */\n' - }, - { - name: 'valuesLists', - c_type: 'List*', - comment: '/* untransformed list of expression lists */' - }, - { - comment: '' - }, - { - comment: - '\t/*\n\t * These fields are used in both "leaf" SelectStmts and upper-level\n\t * SelectStmts.\n\t */\n' - }, - { - name: 'sortClause', - c_type: 'List*', - comment: "/* sort clause (a list of SortBy's) */" - }, - { - name: 'limitOffset', - c_type: 'Node*', - comment: '/* # of result tuples to skip */' - }, - { - name: 'limitCount', - c_type: 'Node*', - comment: '/* # of result tuples to return */' - }, - { - name: 'limitOption', - c_type: 'LimitOption', - comment: '/* limit type */' - }, - { - name: 'lockingClause', - c_type: 'List*', - comment: "/* FOR UPDATE (list of LockingClause's) */" - }, - { - name: 'withClause', - c_type: 'WithClause*', - comment: '/* WITH clause */' - }, - { - comment: '' - }, - { - comment: - '\t/*\n\t * These fields are used only in upper-level SelectStmts.\n\t */\n' - }, - { - name: 'op', - c_type: 'SetOperation', - comment: '/* type of set op */' - }, - { - name: 'all', - c_type: 'bool', - comment: '/* ALL specified? */' - }, - { - name: 'larg', - c_type: 'SelectStmt*', - comment: '/* left child */' - }, - { - name: 'rarg', - c_type: 'SelectStmt*', - comment: '/* right child */' - }, - { - comment: '\t/* Eventually add fields for CORRESPONDING spec here */\n' - } - ], - comment: - '/* ----------------------\n *\t\tSelect Statement\n *\n * A "simple" SELECT is represented in the output of gram.y by a single\n * SelectStmt node; so is a VALUES construct. A query containing set\n * operators (UNION, INTERSECT, EXCEPT) is represented by a tree of SelectStmt\n * nodes, in which the leaf nodes are component SELECTs and the internal nodes\n * represent UNION, INTERSECT, or EXCEPT operators. Using the same node\n * type for both leaf and internal nodes allows gram.y to stick ORDER BY,\n * LIMIT, etc, clause values into a SELECT statement without worrying\n * whether it is a simple or compound SELECT.\n * ----------------------\n */\n' - }, - SetOperationStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'op', - c_type: 'SetOperation', - comment: '/* type of set op */' - }, - { - name: 'all', - c_type: 'bool', - comment: '/* ALL specified? */' - }, - { - name: 'larg', - c_type: 'Node*', - comment: '/* left child */' - }, - { - name: 'rarg', - c_type: 'Node*', - comment: '/* right child */' - }, - { - comment: '\t/* Eventually add fields for CORRESPONDING spec here */\n' - }, - { - comment: '' - }, - { - comment: '\t/* Fields derived during parse analysis: */\n' - }, - { - name: 'colTypes', - c_type: 'List*', - comment: '/* OID list of output column type OIDs */' - }, - { - name: 'colTypmods', - c_type: 'List*', - comment: '/* integer list of output column typmods */' - }, - { - name: 'colCollations', - c_type: 'List*', - comment: '/* OID list of output column collation OIDs */' - }, - { - name: 'groupClauses', - c_type: 'List*', - comment: "/* a list of SortGroupClause's */" - }, - { - comment: - '\t/* groupClauses is NIL if UNION ALL, but must be set otherwise */\n' - } - ], - comment: - "/* ----------------------\n *\t\tSet Operation node for post-analysis query trees\n *\n * After parse analysis, a SELECT with set operations is represented by a\n * top-level Query node containing the leaf SELECTs as subqueries in its\n * range table. Its setOperations field shows the tree of set operations,\n * with leaf SelectStmt nodes replaced by RangeTblRef nodes, and internal\n * nodes replaced by SetOperationStmt nodes. Information about the output\n * column types is added, too. (Note that the child nodes do not necessarily\n * produce these types directly, but we've checked that their output types\n * can be coerced to the output column type.) Also, if it's not UNION ALL,\n * information about the types' sort/group semantics is provided in the form\n * of a SortGroupClause list (same representation as, eg, DISTINCT).\n * The resolved common column collations are provided too; but note that if\n * it's not UNION ALL, it's okay for a column to not have a common collation,\n * so a member of the colCollations list could be InvalidOid even though the\n * column has a collatable type.\n * ----------------------\n */\n" - }, - CreateSchemaStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'schemaname', - c_type: 'char*', - comment: '/* the name of the schema to create */' - }, - { - name: 'authrole', - c_type: 'RoleSpec*', - comment: '/* the owner of the created schema */' - }, - { - name: 'schemaElts', - c_type: 'List*', - comment: '/* schema components (list of parsenodes) */' - }, - { - name: 'if_not_exists', - c_type: 'bool', - comment: '/* just do nothing if schema already exists? */' - } - ], - comment: - '/* ----------------------\n *\t\tCreate Schema Statement\n *\n * NOTE: the schemaElts list contains raw parsetrees for component statements\n * of the schema, such as CREATE TABLE, GRANT, etc. These are analyzed and\n * executed after the schema itself is created.\n * ----------------------\n */\n' - }, - AlterTableStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'relation', - c_type: 'RangeVar*', - comment: '/* table to work on */' - }, - { - name: 'cmds', - c_type: 'List*', - comment: '/* list of subcommands */' - }, - { - name: 'relkind', - c_type: 'ObjectType', - comment: '/* type of object */' - }, - { - name: 'missing_ok', - c_type: 'bool', - comment: '/* skip error if table missing */' - } - ], - comment: - '/* ----------------------\n *\tAlter Table\n * ----------------------\n */\n' - }, - ReplicaIdentityStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'identity_type', - c_type: 'char', - comment: null - }, - { - name: 'name', - c_type: 'char*', - comment: null - } - ], - comment: - '/* ----------------------\n *\tAlter Table\n * ----------------------\n */\n' - }, - AlterTableCmd: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'subtype', - c_type: 'AlterTableType', - comment: '/* Type of table alteration to apply */' - }, - { - name: 'name', - c_type: 'char*', - comment: - '/* column, constraint, or trigger to act on,\n\t\t\t\t\t\t\t\t * or tablespace */\n' - }, - { - name: 'num', - c_type: 'int16', - comment: - '/* attribute number for columns referenced by\n\t\t\t\t\t\t\t\t * number */\n' - }, - { - name: 'newowner', - c_type: 'RoleSpec*', - comment: null - }, - { - name: 'def', - c_type: 'Node*', - comment: - '/* definition of new column, index,\n\t\t\t\t\t\t\t\t * constraint, or parent table */\n' - }, - { - name: 'behavior', - c_type: 'DropBehavior', - comment: '/* RESTRICT or CASCADE for DROP cases */' - }, - { - name: 'missing_ok', - c_type: 'bool', - comment: '/* skip error if missing? */' - } - ], - comment: - '/* ----------------------\n *\tAlter Table\n * ----------------------\n */\n' - }, - AlterCollationStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'collname', - c_type: 'List*', - comment: null - } - ], - comment: - '/* ----------------------\n * Alter Collation\n * ----------------------\n */\n' - }, - AlterDomainStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'subtype', - c_type: 'char', - comment: - '/*------------\n\t\t\t\t\t\t\t\t *\tT = alter column default\n\t\t\t\t\t\t\t\t *\tN = alter column drop not null\n\t\t\t\t\t\t\t\t *\tO = alter column set not null\n\t\t\t\t\t\t\t\t *\tC = add constraint\n\t\t\t\t\t\t\t\t *\tX = drop constraint\n\t\t\t\t\t\t\t\t *------------\n\t\t\t\t\t\t\t\t */\n' - }, - { - name: 'typeName', - c_type: 'List*', - comment: '/* domain to work on */' - }, - { - name: 'name', - c_type: 'char*', - comment: '/* column or constraint name to act on */' - }, - { - name: 'def', - c_type: 'Node*', - comment: '/* definition of default or constraint */' - }, - { - name: 'behavior', - c_type: 'DropBehavior', - comment: '/* RESTRICT or CASCADE for DROP cases */' - }, - { - name: 'missing_ok', - c_type: 'bool', - comment: '/* skip error if missing? */' - } - ], - comment: - '/* ----------------------\n *\tAlter Domain\n *\n * The fields are used in different ways by the different variants of\n * this command.\n * ----------------------\n */\n' - }, - GrantStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'is_grant', - c_type: 'bool', - comment: '/* true = GRANT, false = REVOKE */' - }, - { - name: 'targtype', - c_type: 'GrantTargetType', - comment: '/* type of the grant target */' - }, - { - name: 'objtype', - c_type: 'ObjectType', - comment: '/* kind of object being operated on */' - }, - { - name: 'objects', - c_type: 'List*', - comment: - '/* list of RangeVar nodes, ObjectWithArgs\n\t\t\t\t\t\t\t\t * nodes, or plain names (as Value strings) */\n' - }, - { - name: 'privileges', - c_type: 'List*', - comment: '/* list of AccessPriv nodes */' - }, - { - comment: '\t/* privileges == NIL denotes ALL PRIVILEGES */\n' - }, - { - name: 'grantees', - c_type: 'List*', - comment: '/* list of RoleSpec nodes */' - }, - { - name: 'grant_option', - c_type: 'bool', - comment: '/* grant or revoke grant option */' - }, - { - name: 'behavior', - c_type: 'DropBehavior', - comment: '/* drop behavior (for REVOKE) */' - } - ], - comment: - '/* ----------------------\n *\t\tGrant|Revoke Statement\n * ----------------------\n */\n' - }, - ObjectWithArgs: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'objname', - c_type: 'List*', - comment: '/* qualified name of function/operator */' - }, - { - name: 'objargs', - c_type: 'List*', - comment: '/* list of Typename nodes */' - }, - { - name: 'args_unspecified', - c_type: 'bool', - comment: - '/* argument list was omitted, so name must\n\t\t\t\t\t\t\t\t\t * be unique (note that objargs == NIL\n\t\t\t\t\t\t\t\t\t * means zero args) */\n' - } - ], - comment: - '/*\n * Note: ObjectWithArgs carries only the types of the input parameters of the\n * function. So it is sufficient to identify an existing function, but it\n * is not enough info to define a function nor to call it.\n */\n' - }, - AccessPriv: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'priv_name', - c_type: 'char*', - comment: '/* string name of privilege */' - }, - { - name: 'cols', - c_type: 'List*', - comment: '/* list of Value strings */' - } - ], - comment: - '/*\n * An access privilege, with optional list of column names\n * priv_name == NULL denotes ALL PRIVILEGES (only used with a column list)\n * cols == NIL denotes "all columns"\n * Note that simple "ALL PRIVILEGES" is represented as a NIL list, not\n * an AccessPriv with both fields null.\n */\n' - }, - GrantRoleStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'granted_roles', - c_type: 'List*', - comment: '/* list of roles to be granted/revoked */' - }, - { - name: 'grantee_roles', - c_type: 'List*', - comment: '/* list of member roles to add/delete */' - }, - { - name: 'is_grant', - c_type: 'bool', - comment: '/* true = GRANT, false = REVOKE */' - }, - { - name: 'admin_opt', - c_type: 'bool', - comment: '/* with admin option */' - }, - { - name: 'grantor', - c_type: 'RoleSpec*', - comment: '/* set grantor to other than current role */' - }, - { - name: 'behavior', - c_type: 'DropBehavior', - comment: '/* drop behavior (for REVOKE) */' - } - ], - comment: - '/* ----------------------\n *\t\tGrant/Revoke Role Statement\n *\n * Note: because of the parsing ambiguity with the GRANT \n * statement, granted_roles is a list of AccessPriv; the execution code\n * should complain if any column lists appear. grantee_roles is a list\n * of role names, as Value strings.\n * ----------------------\n */\n' - }, - AlterDefaultPrivilegesStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'options', - c_type: 'List*', - comment: '/* list of DefElem */' - }, - { - name: 'action', - c_type: 'GrantStmt*', - comment: '/* GRANT/REVOKE action (with objects=NIL) */' - } - ], - comment: - '/* ----------------------\n *\tAlter Default Privileges Statement\n * ----------------------\n */\n' - }, - CopyStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'relation', - c_type: 'RangeVar*', - comment: '/* the relation to copy */' - }, - { - name: 'query', - c_type: 'Node*', - comment: - '/* the query (SELECT or DML statement with\n\t\t\t\t\t\t\t\t * RETURNING) to copy, as a raw parse tree */\n' - }, - { - name: 'attlist', - c_type: 'List*', - comment: - '/* List of column names (as Strings), or NIL\n\t\t\t\t\t\t\t\t * for all columns */\n' - }, - { - name: 'is_from', - c_type: 'bool', - comment: '/* TO or FROM */' - }, - { - name: 'is_program', - c_type: 'bool', - comment: "/* is 'filename' a program to popen? */" - }, - { - name: 'filename', - c_type: 'char*', - comment: '/* filename, or NULL for STDIN/STDOUT */' - }, - { - name: 'options', - c_type: 'List*', - comment: '/* List of DefElem nodes */' - }, - { - name: 'whereClause', - c_type: 'Node*', - comment: '/* WHERE condition (or NULL) */' - } - ], - comment: - '/* ----------------------\n *\t\tCopy Statement\n *\n * We support "COPY relation FROM file", "COPY relation TO file", and\n * "COPY (query) TO file". In any given CopyStmt, exactly one of "relation"\n * and "query" must be non-NULL.\n * ----------------------\n */\n' - }, - VariableSetStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'kind', - c_type: 'VariableSetKind', - comment: null - }, - { - name: 'name', - c_type: 'char*', - comment: '/* variable to be set */' - }, - { - name: 'args', - c_type: 'List*', - comment: '/* List of A_Const nodes */' - }, - { - name: 'is_local', - c_type: 'bool', - comment: '/* SET LOCAL? */' - } - ], - comment: null - }, - VariableShowStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'name', - c_type: 'char*', - comment: null - } - ], - comment: - '/* ----------------------\n * Show Statement\n * ----------------------\n */\n' - }, - CreateStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'relation', - c_type: 'RangeVar*', - comment: '/* relation to create */' - }, - { - name: 'tableElts', - c_type: 'List*', - comment: '/* column definitions (list of ColumnDef) */' - }, - { - name: 'inhRelations', - c_type: 'List*', - comment: - '/* relations to inherit from (list of\n\t\t\t\t\t\t\t\t * inhRelation) */\n' - }, - { - name: 'partbound', - c_type: 'PartitionBoundSpec*', - comment: '/* FOR VALUES clause */' - }, - { - name: 'partspec', - c_type: 'PartitionSpec*', - comment: '/* PARTITION BY clause */' - }, - { - name: 'ofTypename', - c_type: 'TypeName*', - comment: '/* OF typename */' - }, - { - name: 'constraints', - c_type: 'List*', - comment: '/* constraints (list of Constraint nodes) */' - }, - { - name: 'options', - c_type: 'List*', - comment: '/* options from WITH clause */' - }, - { - name: 'oncommit', - c_type: 'OnCommitAction', - comment: '/* what do we do at COMMIT? */' - }, - { - name: 'tablespacename', - c_type: 'char*', - comment: '/* table space to use, or NULL */' - }, - { - name: 'accessMethod', - c_type: 'char*', - comment: '/* table access method */' - }, - { - name: 'if_not_exists', - c_type: 'bool', - comment: '/* just do nothing if it already exists? */' - } - ], - comment: - '/* ----------------------\n *\t\tCreate Table Statement\n *\n * NOTE: in the raw gram.y output, ColumnDef and Constraint nodes are\n * intermixed in tableElts, and constraints is NIL. After parse analysis,\n * tableElts contains just ColumnDefs, and constraints contains just\n * Constraint nodes (in fact, only CONSTR_CHECK nodes, in the present\n * implementation).\n * ----------------------\n */\n' - }, - Constraint: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'contype', - c_type: 'ConstrType', - comment: '/* see above */' - }, - { - comment: '' - }, - { - comment: '\t/* Fields used for most/all constraint types: */\n' - }, - { - name: 'conname', - c_type: 'char*', - comment: '/* Constraint name, or NULL if unnamed */' - }, - { - name: 'deferrable', - c_type: 'bool', - comment: '/* DEFERRABLE? */' - }, - { - name: 'initdeferred', - c_type: 'bool', - comment: '/* INITIALLY DEFERRED? */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - }, - { - comment: '' - }, - { - comment: - '\t/* Fields used for constraints with expressions (CHECK and DEFAULT): */\n' - }, - { - name: 'is_no_inherit', - c_type: 'bool', - comment: '/* is constraint non-inheritable? */' - }, - { - name: 'raw_expr', - c_type: 'Node*', - comment: '/* expr, as untransformed parse tree */' - }, - { - name: 'cooked_expr', - c_type: 'char*', - comment: '/* expr, as nodeToString representation */' - }, - { - name: 'generated_when', - c_type: 'char', - comment: '/* ALWAYS or BY DEFAULT */' - }, - { - comment: '' - }, - { - comment: - '\t/* Fields used for unique constraints (UNIQUE and PRIMARY KEY): */\n' - }, - { - name: 'keys', - c_type: 'List*', - comment: - '/* String nodes naming referenced key\n\t\t\t\t\t\t\t\t * column(s) */\n' - }, - { - name: 'including', - c_type: 'List*', - comment: - '/* String nodes naming referenced nonkey\n\t\t\t\t\t\t\t\t * column(s) */\n' - }, - { - comment: '' - }, - { - comment: '\t/* Fields used for EXCLUSION constraints: */\n' - }, - { - name: 'exclusions', - c_type: 'List*', - comment: '/* list of (IndexElem, operator name) pairs */' - }, - { - comment: '' - }, - { - comment: - '\t/* Fields used for index constraints (UNIQUE, PRIMARY KEY, EXCLUSION): */\n' - }, - { - name: 'options', - c_type: 'List*', - comment: '/* options from WITH clause */' - }, - { - name: 'indexname', - c_type: 'char*', - comment: '/* existing index to use; otherwise NULL */' - }, - { - name: 'indexspace', - c_type: 'char*', - comment: '/* index tablespace; NULL for default */' - }, - { - name: 'reset_default_tblspc', - c_type: 'bool', - comment: - '/* reset default_tablespace prior to\n\t\t\t\t\t\t\t\t\t\t * creating the index */\n' - }, - { - comment: - '\t/* These could be, but currently are not, used for UNIQUE/PKEY: */\n' - }, - { - name: 'access_method', - c_type: 'char*', - comment: '/* index access method; NULL for default */' - }, - { - name: 'where_clause', - c_type: 'Node*', - comment: '/* partial index predicate */' - }, - { - comment: '' - }, - { - comment: '\t/* Fields used for FOREIGN KEY constraints: */\n' - }, - { - name: 'pktable', - c_type: 'RangeVar*', - comment: '/* Primary key table */' - }, - { - name: 'fk_attrs', - c_type: 'List*', - comment: '/* Attributes of foreign key */' - }, - { - name: 'pk_attrs', - c_type: 'List*', - comment: '/* Corresponding attrs in PK table */' - }, - { - name: 'fk_matchtype', - c_type: 'char', - comment: '/* FULL, PARTIAL, SIMPLE */' - }, - { - name: 'fk_upd_action', - c_type: 'char', - comment: '/* ON UPDATE action */' - }, - { - name: 'fk_del_action', - c_type: 'char', - comment: '/* ON DELETE action */' - }, - { - name: 'old_conpfeqop', - c_type: 'List*', - comment: '/* pg_constraint.conpfeqop of my former self */' - }, - { - name: 'old_pktable_oid', - c_type: 'Oid', - comment: - '/* pg_constraint.confrelid of my former\n\t\t\t\t\t\t\t\t\t * self */\n' - }, - { - comment: '' - }, - { - comment: - '\t/* Fields used for constraints that allow a NOT VALID specification */\n' - }, - { - name: 'skip_validation', - c_type: 'bool', - comment: '/* skip validation of existing rows? */' - }, - { - name: 'initially_valid', - c_type: 'bool', - comment: '/* mark the new constraint as valid? */' - } - ], - comment: '/* Foreign key matchtype codes */\n' - }, - CreateTableSpaceStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'tablespacename', - c_type: 'char*', - comment: null - }, - { - name: 'owner', - c_type: 'RoleSpec*', - comment: null - }, - { - name: 'location', - c_type: 'char*', - comment: null - }, - { - name: 'options', - c_type: 'List*', - comment: null - } - ], - comment: - '/* ----------------------\n *\t\tCreate/Drop Table Space Statements\n * ----------------------\n */\n' - }, - DropTableSpaceStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'tablespacename', - c_type: 'char*', - comment: null - }, - { - name: 'missing_ok', - c_type: 'bool', - comment: '/* skip error if missing? */' - } - ], - comment: - '/* ----------------------\n *\t\tCreate/Drop Table Space Statements\n * ----------------------\n */\n' - }, - AlterTableSpaceOptionsStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'tablespacename', - c_type: 'char*', - comment: null - }, - { - name: 'options', - c_type: 'List*', - comment: null - }, - { - name: 'isReset', - c_type: 'bool', - comment: null - } - ], - comment: null - }, - AlterTableMoveAllStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'orig_tablespacename', - c_type: 'char*', - comment: null - }, - { - name: 'objtype', - c_type: 'ObjectType', - comment: '/* Object type to move */' - }, - { - name: 'roles', - c_type: 'List*', - comment: '/* List of roles to move objects of */' - }, - { - name: 'new_tablespacename', - c_type: 'char*', - comment: null - }, - { - name: 'nowait', - c_type: 'bool', - comment: null - } - ], - comment: null - }, - CreateExtensionStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'extname', - c_type: 'char*', - comment: null - }, - { - name: 'if_not_exists', - c_type: 'bool', - comment: '/* just do nothing if it already exists? */' - }, - { - name: 'options', - c_type: 'List*', - comment: '/* List of DefElem nodes */' - } - ], - comment: - '/* ----------------------\n *\t\tCreate/Alter Extension Statements\n * ----------------------\n */\n' - }, - AlterExtensionStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'extname', - c_type: 'char*', - comment: null - }, - { - name: 'options', - c_type: 'List*', - comment: '/* List of DefElem nodes */' - } - ], - comment: - '/* Only used for ALTER EXTENSION UPDATE; later might need an action field */\n' - }, - AlterExtensionContentsStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'extname', - c_type: 'char*', - comment: "/* Extension's name */" - }, - { - name: 'action', - c_type: 'int', - comment: '/* +1 = add object, -1 = drop object */' - }, - { - name: 'objtype', - c_type: 'ObjectType', - comment: "/* Object's type */" - }, - { - name: 'object', - c_type: 'Node*', - comment: '/* Qualified name of the object */' - } - ], - comment: - '/* ----------------------\n *\t\tCreate/Alter Extension Statements\n * ----------------------\n */\n' - }, - CreateFdwStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'fdwname', - c_type: 'char*', - comment: '/* foreign-data wrapper name */' - }, - { - name: 'func_options', - c_type: 'List*', - comment: '/* HANDLER/VALIDATOR options */' - }, - { - name: 'options', - c_type: 'List*', - comment: '/* generic options to FDW */' - } - ], - comment: - '/* ----------------------\n *\t\tCreate/Alter FOREIGN DATA WRAPPER Statements\n * ----------------------\n */\n' - }, - AlterFdwStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'fdwname', - c_type: 'char*', - comment: '/* foreign-data wrapper name */' - }, - { - name: 'func_options', - c_type: 'List*', - comment: '/* HANDLER/VALIDATOR options */' - }, - { - name: 'options', - c_type: 'List*', - comment: '/* generic options to FDW */' - } - ], - comment: - '/* ----------------------\n *\t\tCreate/Alter FOREIGN DATA WRAPPER Statements\n * ----------------------\n */\n' - }, - CreateForeignServerStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'servername', - c_type: 'char*', - comment: '/* server name */' - }, - { - name: 'servertype', - c_type: 'char*', - comment: '/* optional server type */' - }, - { - name: 'version', - c_type: 'char*', - comment: '/* optional server version */' - }, - { - name: 'fdwname', - c_type: 'char*', - comment: '/* FDW name */' - }, - { - name: 'if_not_exists', - c_type: 'bool', - comment: '/* just do nothing if it already exists? */' - }, - { - name: 'options', - c_type: 'List*', - comment: '/* generic options to server */' - } - ], - comment: - '/* ----------------------\n *\t\tCreate/Alter FOREIGN SERVER Statements\n * ----------------------\n */\n' - }, - AlterForeignServerStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'servername', - c_type: 'char*', - comment: '/* server name */' - }, - { - name: 'version', - c_type: 'char*', - comment: '/* optional server version */' - }, - { - name: 'options', - c_type: 'List*', - comment: '/* generic options to server */' - }, - { - name: 'has_version', - c_type: 'bool', - comment: '/* version specified */' - } - ], - comment: - '/* ----------------------\n *\t\tCreate/Alter FOREIGN SERVER Statements\n * ----------------------\n */\n' - }, - CreateForeignTableStmt: { - fields: [ - { - name: 'base', - c_type: 'CreateStmt', - comment: null - }, - { - name: 'servername', - c_type: 'char*', - comment: null - }, - { - name: 'options', - c_type: 'List*', - comment: null - } - ], - comment: - '/* ----------------------\n *\t\tCreate FOREIGN TABLE Statement\n * ----------------------\n */\n' - }, - CreateUserMappingStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'user', - c_type: 'RoleSpec*', - comment: '/* user role */' - }, - { - name: 'servername', - c_type: 'char*', - comment: '/* server name */' - }, - { - name: 'if_not_exists', - c_type: 'bool', - comment: '/* just do nothing if it already exists? */' - }, - { - name: 'options', - c_type: 'List*', - comment: '/* generic options to server */' - } - ], - comment: - '/* ----------------------\n *\t\tCreate/Drop USER MAPPING Statements\n * ----------------------\n */\n' - }, - AlterUserMappingStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'user', - c_type: 'RoleSpec*', - comment: '/* user role */' - }, - { - name: 'servername', - c_type: 'char*', - comment: '/* server name */' - }, - { - name: 'options', - c_type: 'List*', - comment: '/* generic options to server */' - } - ], - comment: - '/* ----------------------\n *\t\tCreate/Drop USER MAPPING Statements\n * ----------------------\n */\n' - }, - DropUserMappingStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'user', - c_type: 'RoleSpec*', - comment: '/* user role */' - }, - { - name: 'servername', - c_type: 'char*', - comment: '/* server name */' - }, - { - name: 'missing_ok', - c_type: 'bool', - comment: '/* ignore missing mappings */' - } - ], - comment: - '/* ----------------------\n *\t\tCreate/Drop USER MAPPING Statements\n * ----------------------\n */\n' - }, - ImportForeignSchemaStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'server_name', - c_type: 'char*', - comment: '/* FDW server name */' - }, - { - name: 'remote_schema', - c_type: 'char*', - comment: '/* remote schema name to query */' - }, - { - name: 'local_schema', - c_type: 'char*', - comment: '/* local schema to create objects in */' - }, - { - name: 'list_type', - c_type: 'ImportForeignSchemaType', - comment: '/* type of table list */' - }, - { - name: 'table_list', - c_type: 'List*', - comment: '/* List of RangeVar */' - }, - { - name: 'options', - c_type: 'List*', - comment: '/* list of options to pass to FDW */' - } - ], - comment: null - }, - CreatePolicyStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'policy_name', - c_type: 'char*', - comment: "/* Policy's name */" - }, - { - name: 'table', - c_type: 'RangeVar*', - comment: '/* the table name the policy applies to */' - }, - { - name: 'cmd_name', - c_type: 'char*', - comment: '/* the command name the policy applies to */' - }, - { - name: 'permissive', - c_type: 'bool', - comment: '/* restrictive or permissive policy */' - }, - { - name: 'roles', - c_type: 'List*', - comment: '/* the roles associated with the policy */' - }, - { - name: 'qual', - c_type: 'Node*', - comment: "/* the policy's condition */" - }, - { - name: 'with_check', - c_type: 'Node*', - comment: "/* the policy's WITH CHECK condition. */" - } - ], - comment: - '/*----------------------\n *\t\tCreate POLICY Statement\n *----------------------\n */\n' - }, - AlterPolicyStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'policy_name', - c_type: 'char*', - comment: "/* Policy's name */" - }, - { - name: 'table', - c_type: 'RangeVar*', - comment: '/* the table name the policy applies to */' - }, - { - name: 'roles', - c_type: 'List*', - comment: '/* the roles associated with the policy */' - }, - { - name: 'qual', - c_type: 'Node*', - comment: "/* the policy's condition */" - }, - { - name: 'with_check', - c_type: 'Node*', - comment: "/* the policy's WITH CHECK condition. */" - } - ], - comment: - '/*----------------------\n *\t\tAlter POLICY Statement\n *----------------------\n */\n' - }, - CreateAmStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'amname', - c_type: 'char*', - comment: '/* access method name */' - }, - { - name: 'handler_name', - c_type: 'List*', - comment: '/* handler function name */' - }, - { - name: 'amtype', - c_type: 'char', - comment: '/* type of access method */' - } - ], - comment: - '/*----------------------\n *\t\tCreate ACCESS METHOD Statement\n *----------------------\n */\n' - }, - CreateTrigStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'trigname', - c_type: 'char*', - comment: "/* TRIGGER's name */" - }, - { - name: 'relation', - c_type: 'RangeVar*', - comment: '/* relation trigger is on */' - }, - { - name: 'funcname', - c_type: 'List*', - comment: '/* qual. name of function to call */' - }, - { - name: 'args', - c_type: 'List*', - comment: '/* list of (T_String) Values or NIL */' - }, - { - name: 'row', - c_type: 'bool', - comment: '/* ROW/STATEMENT */' - }, - { - comment: - '\t/* timing uses the TRIGGER_TYPE bits defined in catalog/pg_trigger.h */\n' - }, - { - name: 'timing', - c_type: 'int16', - comment: '/* BEFORE, AFTER, or INSTEAD */' - }, - { - comment: - '\t/* events uses the TRIGGER_TYPE bits defined in catalog/pg_trigger.h */\n' - }, - { - name: 'events', - c_type: 'int16', - comment: '/* "OR" of INSERT/UPDATE/DELETE/TRUNCATE */' - }, - { - name: 'columns', - c_type: 'List*', - comment: '/* column names, or NIL for all columns */' - }, - { - name: 'whenClause', - c_type: 'Node*', - comment: '/* qual expression, or NULL if none */' - }, - { - name: 'isconstraint', - c_type: 'bool', - comment: '/* This is a constraint trigger */' - }, - { - comment: '\t/* explicitly named transition data */\n' - }, - { - name: 'transitionRels', - c_type: 'List*', - comment: '/* TriggerTransition nodes, or NIL if none */' - }, - { - comment: - '\t/* The remaining fields are only used for constraint triggers */\n' - }, - { - name: 'deferrable', - c_type: 'bool', - comment: '/* [NOT] DEFERRABLE */' - }, - { - name: 'initdeferred', - c_type: 'bool', - comment: '/* INITIALLY {DEFERRED|IMMEDIATE} */' - }, - { - name: 'constrrel', - c_type: 'RangeVar*', - comment: '/* opposite relation, if RI trigger */' - } - ], - comment: - '/* ----------------------\n *\t\tCreate TRIGGER Statement\n * ----------------------\n */\n' - }, - CreateEventTrigStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'trigname', - c_type: 'char*', - comment: "/* TRIGGER's name */" - }, - { - name: 'eventname', - c_type: 'char*', - comment: "/* event's identifier */" - }, - { - name: 'whenclause', - c_type: 'List*', - comment: '/* list of DefElems indicating filtering */' - }, - { - name: 'funcname', - c_type: 'List*', - comment: '/* qual. name of function to call */' - } - ], - comment: - '/* ----------------------\n *\t\tCreate EVENT TRIGGER Statement\n * ----------------------\n */\n' - }, - AlterEventTrigStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'trigname', - c_type: 'char*', - comment: "/* TRIGGER's name */" - }, - { - name: 'tgenabled', - c_type: 'char', - comment: - "/* trigger's firing configuration WRT\n\t\t\t\t\t\t\t\t * session_replication_role */\n" - } - ], - comment: - '/* ----------------------\n *\t\tAlter EVENT TRIGGER Statement\n * ----------------------\n */\n' - }, - CreatePLangStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'replace', - c_type: 'bool', - comment: '/* T => replace if already exists */' - }, - { - name: 'plname', - c_type: 'char*', - comment: '/* PL name */' - }, - { - name: 'plhandler', - c_type: 'List*', - comment: '/* PL call handler function (qual. name) */' - }, - { - name: 'plinline', - c_type: 'List*', - comment: '/* optional inline function (qual. name) */' - }, - { - name: 'plvalidator', - c_type: 'List*', - comment: '/* optional validator function (qual. name) */' - }, - { - name: 'pltrusted', - c_type: 'bool', - comment: '/* PL is trusted */' - } - ], - comment: - '/* ----------------------\n *\t\tCreate LANGUAGE Statements\n * ----------------------\n */\n' - }, - CreateRoleStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'stmt_type', - c_type: 'RoleStmtType', - comment: '/* ROLE/USER/GROUP */' - }, - { - name: 'role', - c_type: 'char*', - comment: '/* role name */' - }, - { - name: 'options', - c_type: 'List*', - comment: '/* List of DefElem nodes */' - } - ], - comment: - "/* ----------------------\n *\tCreate/Alter/Drop Role Statements\n *\n * Note: these node types are also used for the backwards-compatible\n * Create/Alter/Drop User/Group statements. In the ALTER and DROP cases\n * there's really no need to distinguish what the original spelling was,\n * but for CREATE we mark the type because the defaults vary.\n * ----------------------\n */\n" - }, - AlterRoleStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'role', - c_type: 'RoleSpec*', - comment: '/* role */' - }, - { - name: 'options', - c_type: 'List*', - comment: '/* List of DefElem nodes */' - }, - { - name: 'action', - c_type: 'int', - comment: '/* +1 = add members, -1 = drop members */' - } - ], - comment: - "/* ----------------------\n *\tCreate/Alter/Drop Role Statements\n *\n * Note: these node types are also used for the backwards-compatible\n * Create/Alter/Drop User/Group statements. In the ALTER and DROP cases\n * there's really no need to distinguish what the original spelling was,\n * but for CREATE we mark the type because the defaults vary.\n * ----------------------\n */\n" - }, - AlterRoleSetStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'role', - c_type: 'RoleSpec*', - comment: '/* role */' - }, - { - name: 'database', - c_type: 'char*', - comment: '/* database name, or NULL */' - }, - { - name: 'setstmt', - c_type: 'VariableSetStmt*', - comment: '/* SET or RESET subcommand */' - } - ], - comment: - "/* ----------------------\n *\tCreate/Alter/Drop Role Statements\n *\n * Note: these node types are also used for the backwards-compatible\n * Create/Alter/Drop User/Group statements. In the ALTER and DROP cases\n * there's really no need to distinguish what the original spelling was,\n * but for CREATE we mark the type because the defaults vary.\n * ----------------------\n */\n" - }, - DropRoleStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'roles', - c_type: 'List*', - comment: '/* List of roles to remove */' - }, - { - name: 'missing_ok', - c_type: 'bool', - comment: '/* skip error if a role is missing? */' - } - ], - comment: - "/* ----------------------\n *\tCreate/Alter/Drop Role Statements\n *\n * Note: these node types are also used for the backwards-compatible\n * Create/Alter/Drop User/Group statements. In the ALTER and DROP cases\n * there's really no need to distinguish what the original spelling was,\n * but for CREATE we mark the type because the defaults vary.\n * ----------------------\n */\n" - }, - CreateSeqStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'sequence', - c_type: 'RangeVar*', - comment: '/* the sequence to create */' - }, - { - name: 'options', - c_type: 'List*', - comment: null - }, - { - name: 'ownerId', - c_type: 'Oid', - comment: '/* ID of owner, or InvalidOid for default */' - }, - { - name: 'for_identity', - c_type: 'bool', - comment: null - }, - { - name: 'if_not_exists', - c_type: 'bool', - comment: '/* just do nothing if it already exists? */' - } - ], - comment: - '/* ----------------------\n *\t\t{Create|Alter} SEQUENCE Statement\n * ----------------------\n */\n' - }, - AlterSeqStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'sequence', - c_type: 'RangeVar*', - comment: '/* the sequence to alter */' - }, - { - name: 'options', - c_type: 'List*', - comment: null - }, - { - name: 'for_identity', - c_type: 'bool', - comment: null - }, - { - name: 'missing_ok', - c_type: 'bool', - comment: '/* skip error if a role is missing? */' - } - ], - comment: - '/* ----------------------\n *\t\t{Create|Alter} SEQUENCE Statement\n * ----------------------\n */\n' - }, - DefineStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'kind', - c_type: 'ObjectType', - comment: '/* aggregate, operator, type */' - }, - { - name: 'oldstyle', - c_type: 'bool', - comment: '/* hack to signal old CREATE AGG syntax */' - }, - { - name: 'defnames', - c_type: 'List*', - comment: '/* qualified name (list of Value strings) */' - }, - { - name: 'args', - c_type: 'List*', - comment: '/* a list of TypeName (if needed) */' - }, - { - name: 'definition', - c_type: 'List*', - comment: '/* a list of DefElem */' - }, - { - name: 'if_not_exists', - c_type: 'bool', - comment: '/* just do nothing if it already exists? */' - }, - { - name: 'replace', - c_type: 'bool', - comment: '/* replace if already exists? */' - } - ], - comment: - '/* ----------------------\n *\t\tCreate {Aggregate|Operator|Type} Statement\n * ----------------------\n */\n' - }, - CreateDomainStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'domainname', - c_type: 'List*', - comment: '/* qualified name (list of Value strings) */' - }, - { - name: 'typeName', - c_type: 'TypeName*', - comment: '/* the base type */' - }, - { - name: 'collClause', - c_type: 'CollateClause*', - comment: '/* untransformed COLLATE spec, if any */' - }, - { - name: 'constraints', - c_type: 'List*', - comment: '/* constraints (list of Constraint nodes) */' - } - ], - comment: - '/* ----------------------\n *\t\tCreate Domain Statement\n * ----------------------\n */\n' - }, - CreateOpClassStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'opclassname', - c_type: 'List*', - comment: '/* qualified name (list of Value strings) */' - }, - { - name: 'opfamilyname', - c_type: 'List*', - comment: '/* qualified name (ditto); NIL if omitted */' - }, - { - name: 'amname', - c_type: 'char*', - comment: '/* name of index AM opclass is for */' - }, - { - name: 'datatype', - c_type: 'TypeName*', - comment: '/* datatype of indexed column */' - }, - { - name: 'items', - c_type: 'List*', - comment: '/* List of CreateOpClassItem nodes */' - }, - { - name: 'isDefault', - c_type: 'bool', - comment: '/* Should be marked as default for type? */' - } - ], - comment: - '/* ----------------------\n *\t\tCreate Operator Class Statement\n * ----------------------\n */\n' - }, - CreateOpClassItem: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'itemtype', - c_type: 'int', - comment: '/* see codes above */' - }, - { - name: 'name', - c_type: 'ObjectWithArgs*', - comment: '/* operator or function name and args */' - }, - { - name: 'number', - c_type: 'int', - comment: '/* strategy num or support proc num */' - }, - { - name: 'order_family', - c_type: 'List*', - comment: '/* only used for ordering operators */' - }, - { - name: 'class_args', - c_type: 'List*', - comment: - '/* amproclefttype/amprocrighttype or\n\t\t\t\t\t\t\t\t * amoplefttype/amoprighttype */\n' - }, - { - comment: '\t/* fields used for a storagetype item: */\n' - }, - { - name: 'storedtype', - c_type: 'TypeName*', - comment: '/* datatype stored in index */' - } - ], - comment: - '/* ----------------------\n *\t\tCreate Operator Class Statement\n * ----------------------\n */\n' - }, - CreateOpFamilyStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'opfamilyname', - c_type: 'List*', - comment: '/* qualified name (list of Value strings) */' - }, - { - name: 'amname', - c_type: 'char*', - comment: '/* name of index AM opfamily is for */' - } - ], - comment: - '/* ----------------------\n *\t\tCreate Operator Family Statement\n * ----------------------\n */\n' - }, - AlterOpFamilyStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'opfamilyname', - c_type: 'List*', - comment: '/* qualified name (list of Value strings) */' - }, - { - name: 'amname', - c_type: 'char*', - comment: '/* name of index AM opfamily is for */' - }, - { - name: 'isDrop', - c_type: 'bool', - comment: '/* ADD or DROP the items? */' - }, - { - name: 'items', - c_type: 'List*', - comment: '/* List of CreateOpClassItem nodes */' - } - ], - comment: - '/* ----------------------\n *\t\tAlter Operator Family Statement\n * ----------------------\n */\n' - }, - DropStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'objects', - c_type: 'List*', - comment: '/* list of names */' - }, - { - name: 'removeType', - c_type: 'ObjectType', - comment: '/* object type */' - }, - { - name: 'behavior', - c_type: 'DropBehavior', - comment: '/* RESTRICT or CASCADE behavior */' - }, - { - name: 'missing_ok', - c_type: 'bool', - comment: '/* skip error if object is missing? */' - }, - { - name: 'concurrent', - c_type: 'bool', - comment: '/* drop index concurrently? */' - } - ], - comment: - '/* ----------------------\n *\t\tDrop Table|Sequence|View|Index|Type|Domain|Conversion|Schema Statement\n * ----------------------\n */\n' - }, - TruncateStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'relations', - c_type: 'List*', - comment: '/* relations (RangeVars) to be truncated */' - }, - { - name: 'restart_seqs', - c_type: 'bool', - comment: '/* restart owned sequences? */' - }, - { - name: 'behavior', - c_type: 'DropBehavior', - comment: '/* RESTRICT or CASCADE behavior */' - } - ], - comment: - '/* ----------------------\n *\t\t\t\tTruncate Table Statement\n * ----------------------\n */\n' - }, - CommentStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'objtype', - c_type: 'ObjectType', - comment: "/* Object's type */" - }, - { - name: 'object', - c_type: 'Node*', - comment: '/* Qualified name of the object */' - }, - { - name: 'comment', - c_type: 'char*', - comment: '/* Comment to insert, or NULL to remove */' - } - ], - comment: - '/* ----------------------\n *\t\t\t\tComment On Statement\n * ----------------------\n */\n' - }, - SecLabelStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'objtype', - c_type: 'ObjectType', - comment: "/* Object's type */" - }, - { - name: 'object', - c_type: 'Node*', - comment: '/* Qualified name of the object */' - }, - { - name: 'provider', - c_type: 'char*', - comment: '/* Label provider (or NULL) */' - }, - { - name: 'label', - c_type: 'char*', - comment: '/* New security label to be assigned */' - } - ], - comment: - '/* ----------------------\n *\t\t\t\tSECURITY LABEL Statement\n * ----------------------\n */\n' - }, - DeclareCursorStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'portalname', - c_type: 'char*', - comment: '/* name of the portal (cursor) */' - }, - { - name: 'options', - c_type: 'int', - comment: '/* bitmask of options (see above) */' - }, - { - name: 'query', - c_type: 'Node*', - comment: '/* the query (see comments above) */' - } - ], - comment: - '/* these planner-control flags do not correspond to any SQL grammar: */\n' - }, - ClosePortalStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'portalname', - c_type: 'char*', - comment: '/* name of the portal (cursor) */' - }, - { - comment: '\t/* NULL means CLOSE ALL */\n' - } - ], - comment: - '/* ----------------------\n *\t\tClose Portal Statement\n * ----------------------\n */\n' - }, - FetchStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'direction', - c_type: 'FetchDirection', - comment: '/* see above */' - }, - { - name: 'howMany', - c_type: 'long', - comment: '/* number of rows, or position argument */' - }, - { - name: 'portalname', - c_type: 'char*', - comment: '/* name of portal (cursor) */' - }, - { - name: 'ismove', - c_type: 'bool', - comment: '/* true if MOVE */' - } - ], - comment: - '/* ----------------------\n *\t\tFetch Statement (also Move)\n * ----------------------\n */\n' - }, - IndexStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'idxname', - c_type: 'char*', - comment: '/* name of new index, or NULL for default */' - }, - { - name: 'relation', - c_type: 'RangeVar*', - comment: '/* relation to build index on */' - }, - { - name: 'accessMethod', - c_type: 'char*', - comment: '/* name of access method (eg. btree) */' - }, - { - name: 'tableSpace', - c_type: 'char*', - comment: '/* tablespace, or NULL for default */' - }, - { - name: 'indexParams', - c_type: 'List*', - comment: '/* columns to index: a list of IndexElem */' - }, - { - name: 'indexIncludingParams', - c_type: 'List*', - comment: - '/* additional columns to index: a list\n\t\t\t\t\t\t\t\t\t\t * of IndexElem */\n' - }, - { - name: 'options', - c_type: 'List*', - comment: '/* WITH clause options: a list of DefElem */' - }, - { - name: 'whereClause', - c_type: 'Node*', - comment: '/* qualification (partial-index predicate) */' - }, - { - name: 'excludeOpNames', - c_type: 'List*', - comment: '/* exclusion operator names, or NIL if none */' - }, - { - name: 'idxcomment', - c_type: 'char*', - comment: '/* comment to apply to index, or NULL */' - }, - { - name: 'indexOid', - c_type: 'Oid', - comment: '/* OID of an existing index, if any */' - }, - { - name: 'oldNode', - c_type: 'Oid', - comment: '/* relfilenode of existing storage, if any */' - }, - { - name: 'oldCreateSubid', - c_type: 'SubTransactionId', - comment: '/* rd_createSubid of oldNode */' - }, - { - name: 'oldFirstRelfilenodeSubid', - c_type: 'SubTransactionId', - comment: - '/* rd_firstRelfilenodeSubid of\n\t\t\t\t\t\t\t\t\t\t\t\t * oldNode */\n' - }, - { - name: 'unique', - c_type: 'bool', - comment: '/* is index unique? */' - }, - { - name: 'primary', - c_type: 'bool', - comment: '/* is index a primary key? */' - }, - { - name: 'isconstraint', - c_type: 'bool', - comment: '/* is it for a pkey/unique constraint? */' - }, - { - name: 'deferrable', - c_type: 'bool', - comment: '/* is the constraint DEFERRABLE? */' - }, - { - name: 'initdeferred', - c_type: 'bool', - comment: '/* is the constraint INITIALLY DEFERRED? */' - }, - { - name: 'transformed', - c_type: 'bool', - comment: '/* true when transformIndexStmt is finished */' - }, - { - name: 'concurrent', - c_type: 'bool', - comment: '/* should this be a concurrent index build? */' - }, - { - name: 'if_not_exists', - c_type: 'bool', - comment: '/* just do nothing if index already exists? */' - }, - { - name: 'reset_default_tblspc', - c_type: 'bool', - comment: - '/* reset default_tablespace prior to\n\t\t\t\t\t\t\t\t\t\t * executing */\n' - } - ], - comment: - "/* ----------------------\n *\t\tCreate Index Statement\n *\n * This represents creation of an index and/or an associated constraint.\n * If isconstraint is true, we should create a pg_constraint entry along\n * with the index. But if indexOid isn't InvalidOid, we are not creating an\n * index, just a UNIQUE/PKEY constraint using an existing index. isconstraint\n * must always be true in this case, and the fields describing the index\n * properties are empty.\n * ----------------------\n */\n" - }, - CreateStatsStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'defnames', - c_type: 'List*', - comment: '/* qualified name (list of Value strings) */' - }, - { - name: 'stat_types', - c_type: 'List*', - comment: '/* stat types (list of Value strings) */' - }, - { - name: 'exprs', - c_type: 'List*', - comment: '/* expressions to build statistics on */' - }, - { - name: 'relations', - c_type: 'List*', - comment: '/* rels to build stats on (list of RangeVar) */' - }, - { - name: 'stxcomment', - c_type: 'char*', - comment: '/* comment to apply to stats, or NULL */' - }, - { - name: 'if_not_exists', - c_type: 'bool', - comment: '/* do nothing if stats name already exists */' - } - ], - comment: - '/* ----------------------\n *\t\tCreate Statistics Statement\n * ----------------------\n */\n' - }, - AlterStatsStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'defnames', - c_type: 'List*', - comment: '/* qualified name (list of Value strings) */' - }, - { - name: 'stxstattarget', - c_type: 'int', - comment: '/* statistics target */' - }, - { - name: 'missing_ok', - c_type: 'bool', - comment: '/* skip error if statistics object is missing */' - } - ], - comment: - '/* ----------------------\n *\t\tAlter Statistics Statement\n * ----------------------\n */\n' - }, - CreateFunctionStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'is_procedure', - c_type: 'bool', - comment: "/* it's really CREATE PROCEDURE */" - }, - { - name: 'replace', - c_type: 'bool', - comment: '/* T => replace if already exists */' - }, - { - name: 'funcname', - c_type: 'List*', - comment: '/* qualified name of function to create */' - }, - { - name: 'parameters', - c_type: 'List*', - comment: '/* a list of FunctionParameter */' - }, - { - name: 'returnType', - c_type: 'TypeName*', - comment: '/* the return type */' - }, - { - name: 'options', - c_type: 'List*', - comment: '/* a list of DefElem */' - } - ], - comment: - '/* ----------------------\n *\t\tCreate Function Statement\n * ----------------------\n */\n' - }, - FunctionParameter: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'name', - c_type: 'char*', - comment: '/* parameter name, or NULL if not given */' - }, - { - name: 'argType', - c_type: 'TypeName*', - comment: '/* TypeName for parameter type */' - }, - { - name: 'mode', - c_type: 'FunctionParameterMode', - comment: '/* IN/OUT/etc */' - }, - { - name: 'defexpr', - c_type: 'Node*', - comment: '/* raw default expr, or NULL if not given */' - } - ], - comment: - '/* ----------------------\n *\t\tCreate Function Statement\n * ----------------------\n */\n' - }, - AlterFunctionStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'objtype', - c_type: 'ObjectType', - comment: null - }, - { - name: 'func', - c_type: 'ObjectWithArgs*', - comment: '/* name and args of function */' - }, - { - name: 'actions', - c_type: 'List*', - comment: '/* list of DefElem */' - } - ], - comment: - '/* ----------------------\n *\t\tCreate Function Statement\n * ----------------------\n */\n' - }, - DoStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'args', - c_type: 'List*', - comment: '/* List of DefElem nodes */' - } - ], - comment: - '/* ----------------------\n *\t\tDO Statement\n *\n * DoStmt is the raw parser output, InlineCodeBlock is the execution-time API\n * ----------------------\n */\n' - }, - InlineCodeBlock: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'source_text', - c_type: 'char*', - comment: '/* source text of anonymous code block */' - }, - { - name: 'langOid', - c_type: 'Oid', - comment: '/* OID of selected language */' - }, - { - name: 'langIsTrusted', - c_type: 'bool', - comment: '/* trusted property of the language */' - }, - { - name: 'atomic', - c_type: 'bool', - comment: '/* atomic execution context */' - } - ], - comment: - '/* ----------------------\n *\t\tDO Statement\n *\n * DoStmt is the raw parser output, InlineCodeBlock is the execution-time API\n * ----------------------\n */\n' - }, - CallStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'funccall', - c_type: 'FuncCall*', - comment: '/* from the parser */' - }, - { - name: 'funcexpr', - c_type: 'FuncExpr*', - comment: '/* transformed */' - } - ], - comment: - '/* ----------------------\n *\t\tCALL statement\n * ----------------------\n */\n' - }, - CallContext: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'atomic', - c_type: 'bool', - comment: null - } - ], - comment: null - }, - RenameStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'renameType', - c_type: 'ObjectType', - comment: '/* OBJECT_TABLE, OBJECT_COLUMN, etc */' - }, - { - name: 'relationType', - c_type: 'ObjectType', - comment: '/* if column name, associated relation type */' - }, - { - name: 'relation', - c_type: 'RangeVar*', - comment: "/* in case it's a table */" - }, - { - name: 'object', - c_type: 'Node*', - comment: "/* in case it's some other object */" - }, - { - name: 'subname', - c_type: 'char*', - comment: - '/* name of contained object (column, rule,\n\t\t\t\t\t\t\t\t * trigger, etc) */\n' - }, - { - name: 'newname', - c_type: 'char*', - comment: '/* the new name */' - }, - { - name: 'behavior', - c_type: 'DropBehavior', - comment: '/* RESTRICT or CASCADE behavior */' - }, - { - name: 'missing_ok', - c_type: 'bool', - comment: '/* skip error if missing? */' - } - ], - comment: - '/* ----------------------\n *\t\tAlter Object Rename Statement\n * ----------------------\n */\n' - }, - AlterObjectDependsStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'objectType', - c_type: 'ObjectType', - comment: '/* OBJECT_FUNCTION, OBJECT_TRIGGER, etc */' - }, - { - name: 'relation', - c_type: 'RangeVar*', - comment: '/* in case a table is involved */' - }, - { - name: 'object', - c_type: 'Node*', - comment: '/* name of the object */' - }, - { - name: 'extname', - c_type: 'Value*', - comment: '/* extension name */' - }, - { - name: 'remove', - c_type: 'bool', - comment: '/* set true to remove dep rather than add */' - } - ], - comment: - '/* ----------------------\n * ALTER object DEPENDS ON EXTENSION extname\n * ----------------------\n */\n' - }, - AlterObjectSchemaStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'objectType', - c_type: 'ObjectType', - comment: '/* OBJECT_TABLE, OBJECT_TYPE, etc */' - }, - { - name: 'relation', - c_type: 'RangeVar*', - comment: "/* in case it's a table */" - }, - { - name: 'object', - c_type: 'Node*', - comment: "/* in case it's some other object */" - }, - { - name: 'newschema', - c_type: 'char*', - comment: '/* the new schema */' - }, - { - name: 'missing_ok', - c_type: 'bool', - comment: '/* skip error if missing? */' - } - ], - comment: - '/* ----------------------\n *\t\tALTER object SET SCHEMA Statement\n * ----------------------\n */\n' - }, - AlterOwnerStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'objectType', - c_type: 'ObjectType', - comment: '/* OBJECT_TABLE, OBJECT_TYPE, etc */' - }, - { - name: 'relation', - c_type: 'RangeVar*', - comment: "/* in case it's a table */" - }, - { - name: 'object', - c_type: 'Node*', - comment: "/* in case it's some other object */" - }, - { - name: 'newowner', - c_type: 'RoleSpec*', - comment: '/* the new owner */' - } - ], - comment: - '/* ----------------------\n *\t\tAlter Object Owner Statement\n * ----------------------\n */\n' - }, - AlterOperatorStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'opername', - c_type: 'ObjectWithArgs*', - comment: '/* operator name and argument types */' - }, - { - name: 'options', - c_type: 'List*', - comment: '/* List of DefElem nodes */' - } - ], - comment: - '/* ----------------------\n *\t\tAlter Operator Set ( this-n-that )\n * ----------------------\n */\n' - }, - AlterTypeStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'typeName', - c_type: 'List*', - comment: '/* type name (possibly qualified) */' - }, - { - name: 'options', - c_type: 'List*', - comment: '/* List of DefElem nodes */' - } - ], - comment: - '/* ------------------------\n *\t\tAlter Type Set ( this-n-that )\n * ------------------------\n */\n' - }, - RuleStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'relation', - c_type: 'RangeVar*', - comment: '/* relation the rule is for */' - }, - { - name: 'rulename', - c_type: 'char*', - comment: '/* name of the rule */' - }, - { - name: 'whereClause', - c_type: 'Node*', - comment: '/* qualifications */' - }, - { - name: 'event', - c_type: 'CmdType', - comment: '/* SELECT, INSERT, etc */' - }, - { - name: 'instead', - c_type: 'bool', - comment: "/* is a 'do instead'? */" - }, - { - name: 'actions', - c_type: 'List*', - comment: '/* the action statements */' - }, - { - name: 'replace', - c_type: 'bool', - comment: '/* OR REPLACE */' - } - ], - comment: - '/* ----------------------\n *\t\tCreate Rule Statement\n * ----------------------\n */\n' - }, - NotifyStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'conditionname', - c_type: 'char*', - comment: '/* condition name to notify */' - }, - { - name: 'payload', - c_type: 'char*', - comment: '/* the payload string, or NULL if none */' - } - ], - comment: - '/* ----------------------\n *\t\tNotify Statement\n * ----------------------\n */\n' - }, - ListenStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'conditionname', - c_type: 'char*', - comment: '/* condition name to listen on */' - } - ], - comment: - '/* ----------------------\n *\t\tListen Statement\n * ----------------------\n */\n' - }, - UnlistenStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'conditionname', - c_type: 'char*', - comment: '/* name to unlisten on, or NULL for all */' - } - ], - comment: - '/* ----------------------\n *\t\tUnlisten Statement\n * ----------------------\n */\n' - }, - TransactionStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'kind', - c_type: 'TransactionStmtKind', - comment: '/* see above */' - }, - { - name: 'options', - c_type: 'List*', - comment: '/* for BEGIN/START commands */' - }, - { - name: 'savepoint_name', - c_type: 'char*', - comment: '/* for savepoint commands */' - }, - { - name: 'gid', - c_type: 'char*', - comment: '/* for two-phase-commit related commands */' - }, - { - name: 'chain', - c_type: 'bool', - comment: '/* AND CHAIN option */' - } - ], - comment: - '/* ----------------------\n *\t\t{Begin|Commit|Rollback} Transaction Statement\n * ----------------------\n */\n' - }, - CompositeTypeStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'typevar', - c_type: 'RangeVar*', - comment: '/* the composite type to be created */' - }, - { - name: 'coldeflist', - c_type: 'List*', - comment: '/* list of ColumnDef nodes */' - } - ], - comment: - '/* ----------------------\n *\t\tCreate Type Statement, composite types\n * ----------------------\n */\n' - }, - CreateEnumStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'typeName', - c_type: 'List*', - comment: '/* qualified name (list of Value strings) */' - }, - { - name: 'vals', - c_type: 'List*', - comment: '/* enum values (list of Value strings) */' - } - ], - comment: - '/* ----------------------\n *\t\tCreate Type Statement, enum types\n * ----------------------\n */\n' - }, - CreateRangeStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'typeName', - c_type: 'List*', - comment: '/* qualified name (list of Value strings) */' - }, - { - name: 'params', - c_type: 'List*', - comment: '/* range parameters (list of DefElem) */' - } - ], - comment: - '/* ----------------------\n *\t\tCreate Type Statement, range types\n * ----------------------\n */\n' - }, - AlterEnumStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'typeName', - c_type: 'List*', - comment: '/* qualified name (list of Value strings) */' - }, - { - name: 'oldVal', - c_type: 'char*', - comment: "/* old enum value's name, if renaming */" - }, - { - name: 'newVal', - c_type: 'char*', - comment: "/* new enum value's name */" - }, - { - name: 'newValNeighbor', - c_type: 'char*', - comment: '/* neighboring enum value, if specified */' - }, - { - name: 'newValIsAfter', - c_type: 'bool', - comment: '/* place new enum value after neighbor? */' - }, - { - name: 'skipIfNewValExists', - c_type: 'bool', - comment: '/* no error if new already exists? */' - } - ], - comment: - '/* ----------------------\n *\t\tAlter Type Statement, enum types\n * ----------------------\n */\n' - }, - ViewStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'view', - c_type: 'RangeVar*', - comment: '/* the view to be created */' - }, - { - name: 'aliases', - c_type: 'List*', - comment: '/* target column names */' - }, - { - name: 'query', - c_type: 'Node*', - comment: '/* the SELECT query (as a raw parse tree) */' - }, - { - name: 'replace', - c_type: 'bool', - comment: '/* replace an existing view? */' - }, - { - name: 'options', - c_type: 'List*', - comment: '/* options from WITH clause */' - }, - { - name: 'withCheckOption', - c_type: 'ViewCheckOption', - comment: '/* WITH CHECK OPTION */' - } - ], - comment: - '/* ----------------------\n *\t\tCreate View Statement\n * ----------------------\n */\n' - }, - LoadStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'filename', - c_type: 'char*', - comment: '/* file to load */' - } - ], - comment: - '/* ----------------------\n *\t\tLoad Statement\n * ----------------------\n */\n' - }, - CreatedbStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'dbname', - c_type: 'char*', - comment: '/* name of database to create */' - }, - { - name: 'options', - c_type: 'List*', - comment: '/* List of DefElem nodes */' - } - ], - comment: - '/* ----------------------\n *\t\tCreatedb Statement\n * ----------------------\n */\n' - }, - AlterDatabaseStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'dbname', - c_type: 'char*', - comment: '/* name of database to alter */' - }, - { - name: 'options', - c_type: 'List*', - comment: '/* List of DefElem nodes */' - } - ], - comment: - '/* ----------------------\n *\tAlter Database\n * ----------------------\n */\n' - }, - AlterDatabaseSetStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'dbname', - c_type: 'char*', - comment: '/* database name */' - }, - { - name: 'setstmt', - c_type: 'VariableSetStmt*', - comment: '/* SET or RESET subcommand */' - } - ], - comment: - '/* ----------------------\n *\tAlter Database\n * ----------------------\n */\n' - }, - DropdbStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'dbname', - c_type: 'char*', - comment: '/* database to drop */' - }, - { - name: 'missing_ok', - c_type: 'bool', - comment: '/* skip error if db is missing? */' - }, - { - name: 'options', - c_type: 'List*', - comment: '/* currently only FORCE is supported */' - } - ], - comment: - '/* ----------------------\n *\t\tDropdb Statement\n * ----------------------\n */\n' - }, - AlterSystemStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'setstmt', - c_type: 'VariableSetStmt*', - comment: '/* SET subcommand */' - } - ], - comment: - '/* ----------------------\n *\t\tAlter System Statement\n * ----------------------\n */\n' - }, - ClusterStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'relation', - c_type: 'RangeVar*', - comment: '/* relation being indexed, or NULL if all */' - }, - { - name: 'indexname', - c_type: 'char*', - comment: '/* original index defined */' - }, - { - name: 'options', - c_type: 'int', - comment: '/* OR of ClusterOption flags */' - } - ], - comment: null - }, - VacuumStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'options', - c_type: 'List*', - comment: '/* list of DefElem nodes */' - }, - { - name: 'rels', - c_type: 'List*', - comment: '/* list of VacuumRelation, or NIL for all */' - }, - { - name: 'is_vacuumcmd', - c_type: 'bool', - comment: '/* true for VACUUM, false for ANALYZE */' - } - ], - comment: - "/* ----------------------\n *\t\tVacuum and Analyze Statements\n *\n * Even though these are nominally two statements, it's convenient to use\n * just one node type for both.\n * ----------------------\n */\n" - }, - VacuumRelation: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'relation', - c_type: 'RangeVar*', - comment: '/* table name to process, or NULL */' - }, - { - name: 'oid', - c_type: 'Oid', - comment: "/* table's OID; InvalidOid if not looked up */" - }, - { - name: 'va_cols', - c_type: 'List*', - comment: '/* list of column names, or NIL for all */' - } - ], - comment: - "/*\n * Info about a single target table of VACUUM/ANALYZE.\n *\n * If the OID field is set, it always identifies the table to process.\n * Then the relation field can be NULL; if it isn't, it's used only to report\n * failure to open/lock the relation.\n */\n" - }, - ExplainStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'query', - c_type: 'Node*', - comment: '/* the query (see comments above) */' - }, - { - name: 'options', - c_type: 'List*', - comment: '/* list of DefElem nodes */' - } - ], - comment: - '/* ----------------------\n *\t\tExplain Statement\n *\n * The "query" field is initially a raw parse tree, and is converted to a\n * Query node during parse analysis. Note that rewriting and planning\n * of the query are always postponed until execution.\n * ----------------------\n */\n' - }, - CreateTableAsStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'query', - c_type: 'Node*', - comment: '/* the query (see comments above) */' - }, - { - name: 'into', - c_type: 'IntoClause*', - comment: '/* destination table */' - }, - { - name: 'relkind', - c_type: 'ObjectType', - comment: '/* OBJECT_TABLE or OBJECT_MATVIEW */' - }, - { - name: 'is_select_into', - c_type: 'bool', - comment: '/* it was written as SELECT INTO */' - }, - { - name: 'if_not_exists', - c_type: 'bool', - comment: '/* just do nothing if it already exists? */' - } - ], - comment: - '/* ----------------------\n *\t\tCREATE TABLE AS Statement (a/k/a SELECT INTO)\n *\n * A query written as CREATE TABLE AS will produce this node type natively.\n * A query written as SELECT ... INTO will be transformed to this form during\n * parse analysis.\n * A query written as CREATE MATERIALIZED view will produce this node type,\n * during parse analysis, since it needs all the same data.\n *\n * The "query" field is handled similarly to EXPLAIN, though note that it\n * can be a SELECT or an EXECUTE, but not other DML statements.\n * ----------------------\n */\n' - }, - RefreshMatViewStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'concurrent', - c_type: 'bool', - comment: '/* allow concurrent access? */' - }, - { - name: 'skipData', - c_type: 'bool', - comment: '/* true for WITH NO DATA */' - }, - { - name: 'relation', - c_type: 'RangeVar*', - comment: '/* relation to insert into */' - } - ], - comment: - '/* ----------------------\n *\t\tREFRESH MATERIALIZED VIEW Statement\n * ----------------------\n */\n' - }, - CheckPointStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - } - ], - comment: - '/* ----------------------\n * Checkpoint Statement\n * ----------------------\n */\n' - }, - DiscardStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'target', - c_type: 'DiscardMode', - comment: null - } - ], - comment: - '/* ----------------------\n * Discard Statement\n * ----------------------\n */\n' - }, - LockStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'relations', - c_type: 'List*', - comment: '/* relations to lock */' - }, - { - name: 'mode', - c_type: 'int', - comment: '/* lock mode */' - }, - { - name: 'nowait', - c_type: 'bool', - comment: '/* no wait mode */' - } - ], - comment: - '/* ----------------------\n *\t\tLOCK Statement\n * ----------------------\n */\n' - }, - ConstraintsSetStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'constraints', - c_type: 'List*', - comment: '/* List of names as RangeVars */' - }, - { - name: 'deferred', - c_type: 'bool', - comment: null - } - ], - comment: - '/* ----------------------\n *\t\tSET CONSTRAINTS Statement\n * ----------------------\n */\n' - }, - ReindexStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'kind', - c_type: 'ReindexObjectType', - comment: - '/* REINDEX_OBJECT_INDEX, REINDEX_OBJECT_TABLE,\n\t\t\t\t\t\t\t\t * etc. */\n' - }, - { - name: 'relation', - c_type: 'RangeVar*', - comment: '/* Table or index to reindex */' - }, - { - name: 'name', - c_type: 'char*', - comment: '/* name of database to reindex */' - }, - { - name: 'options', - c_type: 'int', - comment: '/* Reindex options flags */' - }, - { - name: 'concurrent', - c_type: 'bool', - comment: '/* reindex concurrently? */' - } - ], - comment: null - }, - CreateConversionStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'conversion_name', - c_type: 'List*', - comment: '/* Name of the conversion */' - }, - { - name: 'for_encoding_name', - c_type: 'char*', - comment: '/* source encoding name */' - }, - { - name: 'to_encoding_name', - c_type: 'char*', - comment: '/* destination encoding name */' - }, - { - name: 'func_name', - c_type: 'List*', - comment: '/* qualified conversion function name */' - }, - { - name: 'def', - c_type: 'bool', - comment: '/* is this a default conversion? */' - } - ], - comment: - '/* ----------------------\n *\t\tCREATE CONVERSION Statement\n * ----------------------\n */\n' - }, - CreateCastStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'sourcetype', - c_type: 'TypeName*', - comment: null - }, - { - name: 'targettype', - c_type: 'TypeName*', - comment: null - }, - { - name: 'func', - c_type: 'ObjectWithArgs*', - comment: null - }, - { - name: 'context', - c_type: 'CoercionContext', - comment: null - }, - { - name: 'inout', - c_type: 'bool', - comment: null - } - ], - comment: - '/* ----------------------\n *\tCREATE CAST Statement\n * ----------------------\n */\n' - }, - CreateTransformStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'replace', - c_type: 'bool', - comment: null - }, - { - name: 'type_name', - c_type: 'TypeName*', - comment: null - }, - { - name: 'lang', - c_type: 'char*', - comment: null - }, - { - name: 'fromsql', - c_type: 'ObjectWithArgs*', - comment: null - }, - { - name: 'tosql', - c_type: 'ObjectWithArgs*', - comment: null - } - ], - comment: - '/* ----------------------\n *\tCREATE TRANSFORM Statement\n * ----------------------\n */\n' - }, - PrepareStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'name', - c_type: 'char*', - comment: '/* Name of plan, arbitrary */' - }, - { - name: 'argtypes', - c_type: 'List*', - comment: '/* Types of parameters (List of TypeName) */' - }, - { - name: 'query', - c_type: 'Node*', - comment: '/* The query itself (as a raw parsetree) */' - } - ], - comment: - '/* ----------------------\n *\t\tPREPARE Statement\n * ----------------------\n */\n' - }, - ExecuteStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'name', - c_type: 'char*', - comment: '/* The name of the plan to execute */' - }, - { - name: 'params', - c_type: 'List*', - comment: '/* Values to assign to parameters */' - } - ], - comment: - '/* ----------------------\n *\t\tEXECUTE Statement\n * ----------------------\n */\n' - }, - DeallocateStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'name', - c_type: 'char*', - comment: '/* The name of the plan to remove */' - }, - { - comment: '\t/* NULL means DEALLOCATE ALL */\n' - } - ], - comment: - '/* ----------------------\n *\t\tDEALLOCATE Statement\n * ----------------------\n */\n' - }, - DropOwnedStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'roles', - c_type: 'List*', - comment: null - }, - { - name: 'behavior', - c_type: 'DropBehavior', - comment: null - } - ], - comment: '/*\n *\t\tDROP OWNED statement\n */\n' - }, - ReassignOwnedStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'roles', - c_type: 'List*', - comment: null - }, - { - name: 'newrole', - c_type: 'RoleSpec*', - comment: null - } - ], - comment: '/*\n *\t\tREASSIGN OWNED statement\n */\n' - }, - AlterTSDictionaryStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'dictname', - c_type: 'List*', - comment: '/* qualified name (list of Value strings) */' - }, - { - name: 'options', - c_type: 'List*', - comment: '/* List of DefElem nodes */' - } - ], - comment: - '/*\n * TS Dictionary stmts: DefineStmt, RenameStmt and DropStmt are default\n */\n' - }, - AlterTSConfigurationStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'kind', - c_type: 'AlterTSConfigType', - comment: '/* ALTER_TSCONFIG_ADD_MAPPING, etc */' - }, - { - name: 'cfgname', - c_type: 'List*', - comment: '/* qualified name (list of Value strings) */' - }, - { - comment: '' - }, - { - comment: - "\t/*\n\t * dicts will be non-NIL if ADD/ALTER MAPPING was specified. If dicts is\n\t * NIL, but tokentype isn't, DROP MAPPING was specified.\n\t */\n" - }, - { - name: 'tokentype', - c_type: 'List*', - comment: '/* list of Value strings */' - }, - { - name: 'dicts', - c_type: 'List*', - comment: '/* list of list of Value strings */' - }, - { - name: 'override', - c_type: 'bool', - comment: '/* if true - remove old variant */' - }, - { - name: 'replace', - c_type: 'bool', - comment: '/* if true - replace dictionary by another */' - }, - { - name: 'missing_ok', - c_type: 'bool', - comment: '/* for DROP - skip error if missing? */' - } - ], - comment: null - }, - CreatePublicationStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'pubname', - c_type: 'char*', - comment: '/* Name of the publication */' - }, - { - name: 'options', - c_type: 'List*', - comment: '/* List of DefElem nodes */' - }, - { - name: 'tables', - c_type: 'List*', - comment: '/* Optional list of tables to add */' - }, - { - name: 'for_all_tables', - c_type: 'bool', - comment: '/* Special publication for all tables in db */' - } - ], - comment: null - }, - AlterPublicationStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'pubname', - c_type: 'char*', - comment: '/* Name of the publication */' - }, - { - comment: '' - }, - { - comment: '\t/* parameters used for ALTER PUBLICATION ... WITH */\n' - }, - { - name: 'options', - c_type: 'List*', - comment: '/* List of DefElem nodes */' - }, - { - comment: '' - }, - { - comment: - '\t/* parameters used for ALTER PUBLICATION ... ADD/DROP TABLE */\n' - }, - { - name: 'tables', - c_type: 'List*', - comment: '/* List of tables to add/drop */' - }, - { - name: 'for_all_tables', - c_type: 'bool', - comment: '/* Special publication for all tables in db */' - }, - { - name: 'tableAction', - c_type: 'DefElemAction', - comment: '/* What action to perform with the tables */' - } - ], - comment: null - }, - CreateSubscriptionStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'subname', - c_type: 'char*', - comment: '/* Name of the subscription */' - }, - { - name: 'conninfo', - c_type: 'char*', - comment: '/* Connection string to publisher */' - }, - { - name: 'publication', - c_type: 'List*', - comment: '/* One or more publication to subscribe to */' - }, - { - name: 'options', - c_type: 'List*', - comment: '/* List of DefElem nodes */' - } - ], - comment: null - }, - AlterSubscriptionStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'kind', - c_type: 'AlterSubscriptionType', - comment: '/* ALTER_SUBSCRIPTION_OPTIONS, etc */' - }, - { - name: 'subname', - c_type: 'char*', - comment: '/* Name of the subscription */' - }, - { - name: 'conninfo', - c_type: 'char*', - comment: '/* Connection string to publisher */' - }, - { - name: 'publication', - c_type: 'List*', - comment: '/* One or more publication to subscribe to */' - }, - { - name: 'options', - c_type: 'List*', - comment: '/* List of DefElem nodes */' - } - ], - comment: null - }, - DropSubscriptionStmt: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'subname', - c_type: 'char*', - comment: '/* Name of the subscription */' - }, - { - name: 'missing_ok', - c_type: 'bool', - comment: '/* Skip error if missing? */' - }, - { - name: 'behavior', - c_type: 'DropBehavior', - comment: '/* RESTRICT or CASCADE behavior */' - } - ], - comment: null - } - }, - 'nodes/primnodes': { - Alias: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'aliasname', - c_type: 'char*', - comment: '/* aliased rel name (never qualified) */' - }, - { - name: 'colnames', - c_type: 'List*', - comment: '/* optional list of column aliases */' - } - ], - comment: - '/*\n * Alias -\n *\t specifies an alias for a range variable; the alias might also\n *\t specify renaming of columns within the table.\n *\n * Note: colnames is a list of Value nodes (always strings). In Alias structs\n * associated with RTEs, there may be entries corresponding to dropped\n * columns; these are normally empty strings (""). See parsenodes.h for info.\n */\n' - }, - RangeVar: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'catalogname', - c_type: 'char*', - comment: '/* the catalog (database) name, or NULL */' - }, - { - name: 'schemaname', - c_type: 'char*', - comment: '/* the schema name, or NULL */' - }, - { - name: 'relname', - c_type: 'char*', - comment: '/* the relation/sequence name */' - }, - { - name: 'inh', - c_type: 'bool', - comment: - '/* expand rel by inheritance? recursively act\n\t\t\t\t\t\t\t\t * on children? */\n' - }, - { - name: 'relpersistence', - c_type: 'char', - comment: '/* see RELPERSISTENCE_* in pg_class.h */' - }, - { - name: 'alias', - c_type: 'Alias*', - comment: '/* table alias & optional column aliases */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - '/*\n * RangeVar - range variable, used in FROM clauses\n *\n * Also used to represent table names in utility statements; there, the alias\n * field is not used, and inh tells whether to apply the operation\n * recursively to child tables. In some contexts it is also useful to carry\n * a TEMP table indication here.\n */\n' - }, - TableFunc: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'ns_uris', - c_type: 'List*', - comment: '/* list of namespace URI expressions */' - }, - { - name: 'ns_names', - c_type: 'List*', - comment: '/* list of namespace names or NULL */' - }, - { - name: 'docexpr', - c_type: 'Node*', - comment: '/* input document expression */' - }, - { - name: 'rowexpr', - c_type: 'Node*', - comment: '/* row filter expression */' - }, - { - name: 'colnames', - c_type: 'List*', - comment: '/* column names (list of String) */' - }, - { - name: 'coltypes', - c_type: 'List*', - comment: '/* OID list of column type OIDs */' - }, - { - name: 'coltypmods', - c_type: 'List*', - comment: '/* integer list of column typmods */' - }, - { - name: 'colcollations', - c_type: 'List*', - comment: '/* OID list of column collation OIDs */' - }, - { - name: 'colexprs', - c_type: 'List*', - comment: '/* list of column filter expressions */' - }, - { - name: 'coldefexprs', - c_type: 'List*', - comment: '/* list of column default expressions */' - }, - { - name: 'notnulls', - c_type: 'Bitmapset*', - comment: '/* nullability flag for each output column */' - }, - { - name: 'ordinalitycol', - c_type: 'int', - comment: '/* counts from 0; -1 if none specified */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - '/*\n * TableFunc - node for a table function, such as XMLTABLE.\n *\n * Entries in the ns_names list are either string Value nodes containing\n * literal namespace names, or NULL pointers to represent DEFAULT.\n */\n' - }, - IntoClause: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - comment: '' - }, - { - name: 'rel', - c_type: 'RangeVar*', - comment: '/* target relation name */' - }, - { - name: 'colNames', - c_type: 'List*', - comment: '/* column names to assign, or NIL */' - }, - { - name: 'accessMethod', - c_type: 'char*', - comment: '/* table access method */' - }, - { - name: 'options', - c_type: 'List*', - comment: '/* options from WITH clause */' - }, - { - name: 'onCommit', - c_type: 'OnCommitAction', - comment: '/* what do we do at COMMIT? */' - }, - { - name: 'tableSpaceName', - c_type: 'char*', - comment: '/* table space to use, or NULL */' - }, - { - name: 'viewQuery', - c_type: 'Node*', - comment: "/* materialized view's SELECT query */" - }, - { - name: 'skipData', - c_type: 'bool', - comment: '/* true for WITH NO DATA */' - } - ], - comment: - "/*\n * IntoClause - target information for SELECT INTO, CREATE TABLE AS, and\n * CREATE MATERIALIZED VIEW\n *\n * For CREATE MATERIALIZED VIEW, viewQuery is the parsed-but-not-rewritten\n * SELECT Query for the view; otherwise it's NULL. (Although it's actually\n * Query*, we declare it as Node* to avoid a forward reference.)\n */\n" - }, - Expr: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - } - ], - comment: - '/*\n * Expr - generic superclass for executable-expression nodes\n *\n * All node types that are used in executable expression trees should derive\n * from Expr (that is, have Expr as their first field). Since Expr only\n * contains NodeTag, this is a formality, but it is an easy form of\n * documentation. See also the ExprState node types in execnodes.h.\n */\n' - }, - Var: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'varno', - c_type: 'Index', - comment: - "/* index of this var's relation in the range\n\t\t\t\t\t\t\t\t * table, or INNER_VAR/OUTER_VAR/INDEX_VAR */\n" - }, - { - name: 'varattno', - c_type: 'AttrNumber', - comment: - '/* attribute number of this var, or zero for\n\t\t\t\t\t\t\t\t * all attrs ("whole-row Var") */\n' - }, - { - name: 'vartype', - c_type: 'Oid', - comment: '/* pg_type OID for the type of this var */' - }, - { - name: 'vartypmod', - c_type: 'int32', - comment: '/* pg_attribute typmod value */' - }, - { - name: 'varcollid', - c_type: 'Oid', - comment: '/* OID of collation, or InvalidOid if none */' - }, - { - name: 'varlevelsup', - c_type: 'Index', - comment: - '/* for subquery variables referencing outer\n\t\t\t\t\t\t\t\t * relations; 0 in a normal var, >0 means N\n\t\t\t\t\t\t\t\t * levels up */\n' - }, - { - name: 'varnosyn', - c_type: 'Index', - comment: '/* syntactic relation index (0 if unknown) */' - }, - { - name: 'varattnosyn', - c_type: 'AttrNumber', - comment: '/* syntactic attribute number */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - '/* Symbols for the indexes of the special RTE entries in rules */\n' - }, - Const: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'consttype', - c_type: 'Oid', - comment: "/* pg_type OID of the constant's datatype */" - }, - { - name: 'consttypmod', - c_type: 'int32', - comment: '/* typmod value, if any */' - }, - { - name: 'constcollid', - c_type: 'Oid', - comment: '/* OID of collation, or InvalidOid if none */' - }, - { - name: 'constlen', - c_type: 'int', - comment: "/* typlen of the constant's datatype */" - }, - { - name: 'constvalue', - c_type: 'Datum', - comment: "/* the constant's value */" - }, - { - name: 'constisnull', - c_type: 'bool', - comment: - '/* whether the constant is null (if true,\n\t\t\t\t\t\t\t\t * constvalue is undefined) */\n' - }, - { - name: 'constbyval', - c_type: 'bool', - comment: - '/* whether this datatype is passed by value.\n\t\t\t\t\t\t\t\t * If true, then all the information is stored\n\t\t\t\t\t\t\t\t * in the Datum. If false, then the Datum\n\t\t\t\t\t\t\t\t * contains a pointer to the information. */\n' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - "/*\n * Const\n *\n * Note: for varlena data types, we make a rule that a Const node's value\n * must be in non-extended form (4-byte header, no compression or external\n * references). This ensures that the Const node is self-contained and makes\n * it more likely that equal() will see logically identical values as equal.\n */\n" - }, - Param: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'paramkind', - c_type: 'ParamKind', - comment: '/* kind of parameter. See above */' - }, - { - name: 'paramid', - c_type: 'int', - comment: '/* numeric ID for parameter */' - }, - { - name: 'paramtype', - c_type: 'Oid', - comment: "/* pg_type OID of parameter's datatype */" - }, - { - name: 'paramtypmod', - c_type: 'int32', - comment: '/* typmod value, if known */' - }, - { - name: 'paramcollid', - c_type: 'Oid', - comment: '/* OID of collation, or InvalidOid if none */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - "/*\n * Param\n *\n *\t\tparamkind specifies the kind of parameter. The possible values\n *\t\tfor this field are:\n *\n *\t\tPARAM_EXTERN: The parameter value is supplied from outside the plan.\n *\t\t\t\tSuch parameters are numbered from 1 to n.\n *\n *\t\tPARAM_EXEC: The parameter is an internal executor parameter, used\n *\t\t\t\tfor passing values into and out of sub-queries or from\n *\t\t\t\tnestloop joins to their inner scans.\n *\t\t\t\tFor historical reasons, such parameters are numbered from 0.\n *\t\t\t\tThese numbers are independent of PARAM_EXTERN numbers.\n *\n *\t\tPARAM_SUBLINK:\tThe parameter represents an output column of a SubLink\n *\t\t\t\tnode's sub-select. The column number is contained in the\n *\t\t\t\t`paramid' field. (This type of Param is converted to\n *\t\t\t\tPARAM_EXEC during planning.)\n *\n *\t\tPARAM_MULTIEXPR: Like PARAM_SUBLINK, the parameter represents an\n *\t\t\t\toutput column of a SubLink node's sub-select, but here, the\n *\t\t\t\tSubLink is always a MULTIEXPR SubLink. The high-order 16 bits\n *\t\t\t\tof the `paramid' field contain the SubLink's subLinkId, and\n *\t\t\t\tthe low-order 16 bits contain the column number. (This type\n *\t\t\t\tof Param is also converted to PARAM_EXEC during planning.)\n */\n" - }, - Aggref: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'aggfnoid', - c_type: 'Oid', - comment: '/* pg_proc Oid of the aggregate */' - }, - { - name: 'aggtype', - c_type: 'Oid', - comment: '/* type Oid of result of the aggregate */' - }, - { - name: 'aggcollid', - c_type: 'Oid', - comment: '/* OID of collation of result */' - }, - { - name: 'inputcollid', - c_type: 'Oid', - comment: '/* OID of collation that function should use */' - }, - { - name: 'aggtranstype', - c_type: 'Oid', - comment: "/* type Oid of aggregate's transition value */" - }, - { - name: 'aggargtypes', - c_type: 'List*', - comment: '/* type Oids of direct and aggregated args */' - }, - { - name: 'aggdirectargs', - c_type: 'List*', - comment: '/* direct arguments, if an ordered-set agg */' - }, - { - name: 'args', - c_type: 'List*', - comment: '/* aggregated arguments and sort expressions */' - }, - { - name: 'aggorder', - c_type: 'List*', - comment: '/* ORDER BY (list of SortGroupClause) */' - }, - { - name: 'aggdistinct', - c_type: 'List*', - comment: '/* DISTINCT (list of SortGroupClause) */' - }, - { - name: 'aggfilter', - c_type: 'Expr*', - comment: '/* FILTER expression, if any */' - }, - { - name: 'aggstar', - c_type: 'bool', - comment: "/* true if argument list was really '*' */" - }, - { - name: 'aggvariadic', - c_type: 'bool', - comment: - '/* true if variadic arguments have been\n\t\t\t\t\t\t\t\t * combined into an array last argument */\n' - }, - { - name: 'aggkind', - c_type: 'char', - comment: '/* aggregate kind (see pg_aggregate.h) */' - }, - { - name: 'agglevelsup', - c_type: 'Index', - comment: '/* > 0 if agg belongs to outer query */' - }, - { - name: 'aggsplit', - c_type: 'AggSplit', - comment: '/* expected agg-splitting mode of parent Agg */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - "/*\n * Aggref\n *\n * The aggregate's args list is a targetlist, ie, a list of TargetEntry nodes.\n *\n * For a normal (non-ordered-set) aggregate, the non-resjunk TargetEntries\n * represent the aggregate's regular arguments (if any) and resjunk TLEs can\n * be added at the end to represent ORDER BY expressions that are not also\n * arguments. As in a top-level Query, the TLEs can be marked with\n * ressortgroupref indexes to let them be referenced by SortGroupClause\n * entries in the aggorder and/or aggdistinct lists. This represents ORDER BY\n * and DISTINCT operations to be applied to the aggregate input rows before\n * they are passed to the transition function. The grammar only allows a\n * simple \"DISTINCT\" specifier for the arguments, but we use the full\n * query-level representation to allow more code sharing.\n *\n * For an ordered-set aggregate, the args list represents the WITHIN GROUP\n * (aggregated) arguments, all of which will be listed in the aggorder list.\n * DISTINCT is not supported in this case, so aggdistinct will be NIL.\n * The direct arguments appear in aggdirectargs (as a list of plain\n * expressions, not TargetEntry nodes).\n *\n * aggtranstype is the data type of the state transition values for this\n * aggregate (resolved to an actual type, if agg's transtype is polymorphic).\n * This is determined during planning and is InvalidOid before that.\n *\n * aggargtypes is an OID list of the data types of the direct and regular\n * arguments. Normally it's redundant with the aggdirectargs and args lists,\n * but in a combining aggregate, it's not because the args list has been\n * replaced with a single argument representing the partial-aggregate\n * transition values.\n *\n * aggsplit indicates the expected partial-aggregation mode for the Aggref's\n * parent plan node. It's always set to AGGSPLIT_SIMPLE in the parser, but\n * the planner might change it to something else. We use this mainly as\n * a crosscheck that the Aggrefs match the plan; but note that when aggsplit\n * indicates a non-final mode, aggtype reflects the transition data type\n * not the SQL-level output type of the aggregate.\n */\n" - }, - GroupingFunc: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'args', - c_type: 'List*', - comment: - '/* arguments, not evaluated but kept for\n\t\t\t\t\t\t\t\t * benefit of EXPLAIN etc. */\n' - }, - { - name: 'refs', - c_type: 'List*', - comment: '/* ressortgrouprefs of arguments */' - }, - { - name: 'cols', - c_type: 'List*', - comment: '/* actual column positions set by planner */' - }, - { - name: 'agglevelsup', - c_type: 'Index', - comment: '/* same as Aggref.agglevelsup */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location */' - } - ], - comment: - '/*\n * GroupingFunc\n *\n * A GroupingFunc is a GROUPING(...) expression, which behaves in many ways\n * like an aggregate function (e.g. it "belongs" to a specific query level,\n * which might not be the one immediately containing it), but also differs in\n * an important respect: it never evaluates its arguments, they merely\n * designate expressions from the GROUP BY clause of the query level to which\n * it belongs.\n *\n * The spec defines the evaluation of GROUPING() purely by syntactic\n * replacement, but we make it a real expression for optimization purposes so\n * that one Agg node can handle multiple grouping sets at once. Evaluating the\n * result only needs the column positions to check against the grouping set\n * being projected. However, for EXPLAIN to produce meaningful output, we have\n * to keep the original expressions around, since expression deparse does not\n * give us any feasible way to get at the GROUP BY clause.\n *\n * Also, we treat two GroupingFunc nodes as equal if they have equal arguments\n * lists and agglevelsup, without comparing the refs and cols annotations.\n *\n * In raw parse output we have only the args list; parse analysis fills in the\n * refs list, and the planner fills in the cols list.\n */\n' - }, - WindowFunc: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'winfnoid', - c_type: 'Oid', - comment: '/* pg_proc Oid of the function */' - }, - { - name: 'wintype', - c_type: 'Oid', - comment: '/* type Oid of result of the window function */' - }, - { - name: 'wincollid', - c_type: 'Oid', - comment: '/* OID of collation of result */' - }, - { - name: 'inputcollid', - c_type: 'Oid', - comment: '/* OID of collation that function should use */' - }, - { - name: 'args', - c_type: 'List*', - comment: '/* arguments to the window function */' - }, - { - name: 'aggfilter', - c_type: 'Expr*', - comment: '/* FILTER expression, if any */' - }, - { - name: 'winref', - c_type: 'Index', - comment: '/* index of associated WindowClause */' - }, - { - name: 'winstar', - c_type: 'bool', - comment: "/* true if argument list was really '*' */" - }, - { - name: 'winagg', - c_type: 'bool', - comment: '/* is function a simple aggregate? */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: '/*\n * WindowFunc\n */\n' - }, - SubscriptingRef: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'refcontainertype', - c_type: 'Oid', - comment: '/* type of the container proper */' - }, - { - name: 'refelemtype', - c_type: 'Oid', - comment: '/* type of the container elements */' - }, - { - name: 'reftypmod', - c_type: 'int32', - comment: '/* typmod of the container (and elements too) */' - }, - { - name: 'refcollid', - c_type: 'Oid', - comment: '/* OID of collation, or InvalidOid if none */' - }, - { - name: 'refupperindexpr', - c_type: 'List*', - comment: - '/* expressions that evaluate to upper\n\t\t\t\t\t\t\t\t\t * container indexes */\n' - }, - { - name: 'reflowerindexpr', - c_type: 'List*', - comment: - '/* expressions that evaluate to lower\n\t\t\t\t\t\t\t\t\t * container indexes, or NIL for single\n\t\t\t\t\t\t\t\t\t * container element */\n' - }, - { - name: 'refexpr', - c_type: 'Expr*', - comment: - '/* the expression that evaluates to a\n\t\t\t\t\t\t\t\t * container value */\n' - }, - { - comment: '' - }, - { - name: 'refassgnexpr', - c_type: 'Expr*', - comment: - '/* expression for the source value, or NULL if\n\t\t\t\t\t\t\t\t * fetch */\n' - } - ], - comment: - '/* ----------------\n *\tSubscriptingRef: describes a subscripting operation over a container\n *\t\t\t(array, etc).\n *\n * A SubscriptingRef can describe fetching a single element from a container,\n * fetching a part of container (e.g. array slice), storing a single element into\n * a container, or storing a slice. The "store" cases work with an\n * initial container value and a source value that is inserted into the\n * appropriate part of the container; the result of the operation is an\n * entire new modified container value.\n *\n * If reflowerindexpr = NIL, then we are fetching or storing a single container\n * element at the subscripts given by refupperindexpr. Otherwise we are\n * fetching or storing a container slice, that is a rectangular subcontainer\n * with lower and upper bounds given by the index expressions.\n * reflowerindexpr must be the same length as refupperindexpr when it\n * is not NIL.\n *\n * In the slice case, individual expressions in the subscript lists can be\n * NULL, meaning "substitute the array\'s current lower or upper bound".\n *\n * Note: the result datatype is the element type when fetching a single\n * element; but it is the array type when doing subarray fetch or either\n * type of store.\n *\n * Note: for the cases where a container is returned, if refexpr yields a R/W\n * expanded container, then the implementation is allowed to modify that object\n * in-place and return the same object.)\n * ----------------\n */\n' - }, - FuncExpr: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'funcid', - c_type: 'Oid', - comment: '/* PG_PROC OID of the function */' - }, - { - name: 'funcresulttype', - c_type: 'Oid', - comment: '/* PG_TYPE OID of result value */' - }, - { - name: 'funcretset', - c_type: 'bool', - comment: '/* true if function returns set */' - }, - { - name: 'funcvariadic', - c_type: 'bool', - comment: - '/* true if variadic arguments have been\n\t\t\t\t\t\t\t\t * combined into an array last argument */\n' - }, - { - name: 'funcformat', - c_type: 'CoercionForm', - comment: '/* how to display this function call */' - }, - { - name: 'funccollid', - c_type: 'Oid', - comment: '/* OID of collation of result */' - }, - { - name: 'inputcollid', - c_type: 'Oid', - comment: '/* OID of collation that function should use */' - }, - { - name: 'args', - c_type: 'List*', - comment: '/* arguments to the function */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: '/*\n * FuncExpr - expression node for a function call\n */\n' - }, - NamedArgExpr: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'arg', - c_type: 'Expr*', - comment: '/* the argument expression */' - }, - { - name: 'name', - c_type: 'char*', - comment: '/* the name */' - }, - { - name: 'argnumber', - c_type: 'int', - comment: "/* argument's number in positional notation */" - }, - { - name: 'location', - c_type: 'int', - comment: '/* argument name location, or -1 if unknown */' - } - ], - comment: - "/*\n * NamedArgExpr - a named argument of a function\n *\n * This node type can only appear in the args list of a FuncCall or FuncExpr\n * node. We support pure positional call notation (no named arguments),\n * named notation (all arguments are named), and mixed notation (unnamed\n * arguments followed by named ones).\n *\n * Parse analysis sets argnumber to the positional index of the argument,\n * but doesn't rearrange the argument list.\n *\n * The planner will convert argument lists to pure positional notation\n * during expression preprocessing, so execution never sees a NamedArgExpr.\n */\n" - }, - OpExpr: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'opno', - c_type: 'Oid', - comment: '/* PG_OPERATOR OID of the operator */' - }, - { - name: 'opfuncid', - c_type: 'Oid', - comment: '/* PG_PROC OID of underlying function */' - }, - { - name: 'opresulttype', - c_type: 'Oid', - comment: '/* PG_TYPE OID of result value */' - }, - { - name: 'opretset', - c_type: 'bool', - comment: '/* true if operator returns set */' - }, - { - name: 'opcollid', - c_type: 'Oid', - comment: '/* OID of collation of result */' - }, - { - name: 'inputcollid', - c_type: 'Oid', - comment: '/* OID of collation that operator should use */' - }, - { - name: 'args', - c_type: 'List*', - comment: '/* arguments to the operator (1 or 2) */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - '/*\n * OpExpr - expression node for an operator invocation\n *\n * Semantically, this is essentially the same as a function call.\n *\n * Note that opfuncid is not necessarily filled in immediately on creation\n * of the node. The planner makes sure it is valid before passing the node\n * tree to the executor, but during parsing/planning opfuncid can be 0.\n */\n' - }, - ScalarArrayOpExpr: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'opno', - c_type: 'Oid', - comment: '/* PG_OPERATOR OID of the operator */' - }, - { - name: 'opfuncid', - c_type: 'Oid', - comment: '/* PG_PROC OID of underlying function */' - }, - { - name: 'useOr', - c_type: 'bool', - comment: '/* true for ANY, false for ALL */' - }, - { - name: 'inputcollid', - c_type: 'Oid', - comment: '/* OID of collation that operator should use */' - }, - { - name: 'args', - c_type: 'List*', - comment: '/* the scalar and array operands */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - '/*\n * ScalarArrayOpExpr - expression node for "scalar op ANY/ALL (array)"\n *\n * The operator must yield boolean. It is applied to the left operand\n * and each element of the righthand array, and the results are combined\n * with OR or AND (for ANY or ALL respectively). The node representation\n * is almost the same as for the underlying operator, but we need a useOr\n * flag to remember whether it\'s ANY or ALL, and we don\'t have to store\n * the result type (or the collation) because it must be boolean.\n */\n' - }, - BoolExpr: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'boolop', - c_type: 'BoolExprType', - comment: null - }, - { - name: 'args', - c_type: 'List*', - comment: '/* arguments to this expression */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: null - }, - SubLink: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'subLinkType', - c_type: 'SubLinkType', - comment: '/* see above */' - }, - { - name: 'subLinkId', - c_type: 'int', - comment: '/* ID (1..n); 0 if not MULTIEXPR */' - }, - { - name: 'testexpr', - c_type: 'Node*', - comment: '/* outer-query test for ALL/ANY/ROWCOMPARE */' - }, - { - name: 'operName', - c_type: 'List*', - comment: '/* originally specified operator name */' - }, - { - name: 'subselect', - c_type: 'Node*', - comment: '/* subselect as Query* or raw parsetree */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - "/*\n * SubLink\n *\n * A SubLink represents a subselect appearing in an expression, and in some\n * cases also the combining operator(s) just above it. The subLinkType\n * indicates the form of the expression represented:\n *\tEXISTS_SUBLINK\t\tEXISTS(SELECT ...)\n *\tALL_SUBLINK\t\t\t(lefthand) op ALL (SELECT ...)\n *\tANY_SUBLINK\t\t\t(lefthand) op ANY (SELECT ...)\n *\tROWCOMPARE_SUBLINK\t(lefthand) op (SELECT ...)\n *\tEXPR_SUBLINK\t\t(SELECT with single targetlist item ...)\n *\tMULTIEXPR_SUBLINK\t(SELECT with multiple targetlist items ...)\n *\tARRAY_SUBLINK\t\tARRAY(SELECT with single targetlist item ...)\n *\tCTE_SUBLINK\t\t\tWITH query (never actually part of an expression)\n * For ALL, ANY, and ROWCOMPARE, the lefthand is a list of expressions of the\n * same length as the subselect's targetlist. ROWCOMPARE will *always* have\n * a list with more than one entry; if the subselect has just one target\n * then the parser will create an EXPR_SUBLINK instead (and any operator\n * above the subselect will be represented separately).\n * ROWCOMPARE, EXPR, and MULTIEXPR require the subselect to deliver at most\n * one row (if it returns no rows, the result is NULL).\n * ALL, ANY, and ROWCOMPARE require the combining operators to deliver boolean\n * results. ALL and ANY combine the per-row results using AND and OR\n * semantics respectively.\n * ARRAY requires just one target column, and creates an array of the target\n * column's type using any number of rows resulting from the subselect.\n *\n * SubLink is classed as an Expr node, but it is not actually executable;\n * it must be replaced in the expression tree by a SubPlan node during\n * planning.\n *\n * NOTE: in the raw output of gram.y, testexpr contains just the raw form\n * of the lefthand expression (if any), and operName is the String name of\n * the combining operator. Also, subselect is a raw parsetree. During parse\n * analysis, the parser transforms testexpr into a complete boolean expression\n * that compares the lefthand value(s) to PARAM_SUBLINK nodes representing the\n * output columns of the subselect. And subselect is transformed to a Query.\n * This is the representation seen in saved rules and in the rewriter.\n *\n * In EXISTS, EXPR, MULTIEXPR, and ARRAY SubLinks, testexpr and operName\n * are unused and are always null.\n *\n * subLinkId is currently used only for MULTIEXPR SubLinks, and is zero in\n * other SubLinks. This number identifies different multiple-assignment\n * subqueries within an UPDATE statement's SET list. It is unique only\n * within a particular targetlist. The output column(s) of the MULTIEXPR\n * are referenced by PARAM_MULTIEXPR Params appearing elsewhere in the tlist.\n *\n * The CTE_SUBLINK case never occurs in actual SubLink nodes, but it is used\n * in SubPlans generated for WITH subqueries.\n */\n" - }, - SubPlan: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - comment: '\t/* Fields copied from original SubLink: */\n' - }, - { - name: 'subLinkType', - c_type: 'SubLinkType', - comment: '/* see above */' - }, - { - comment: - '\t/* The combining operators, transformed to an executable expression: */\n' - }, - { - name: 'testexpr', - c_type: 'Node*', - comment: '/* OpExpr or RowCompareExpr expression tree */' - }, - { - name: 'paramIds', - c_type: 'List*', - comment: '/* IDs of Params embedded in the above */' - }, - { - comment: '\t/* Identification of the Plan tree to use: */\n' - }, - { - name: 'plan_id', - c_type: 'int', - comment: '/* Index (from 1) in PlannedStmt.subplans */' - }, - { - comment: - '\t/* Identification of the SubPlan for EXPLAIN and debugging purposes: */\n' - }, - { - name: 'plan_name', - c_type: 'char*', - comment: '/* A name assigned during planning */' - }, - { - comment: - "\t/* Extra data useful for determining subplan's output type: */\n" - }, - { - name: 'firstColType', - c_type: 'Oid', - comment: '/* Type of first column of subplan result */' - }, - { - name: 'firstColTypmod', - c_type: 'int32', - comment: '/* Typmod of first column of subplan result */' - }, - { - name: 'firstColCollation', - c_type: 'Oid', - comment: - '/* Collation of first column of subplan\n\t\t\t\t\t\t\t\t\t * result */\n' - }, - { - comment: '\t/* Information about execution strategy: */\n' - }, - { - name: 'useHashTable', - c_type: 'bool', - comment: - '/* true to store subselect output in a hash\n\t\t\t\t\t\t\t\t * table (implies we are doing "IN") */\n' - }, - { - name: 'unknownEqFalse', - c_type: 'bool', - comment: - "/* true if it's okay to return FALSE when the\n\t\t\t\t\t\t\t\t * spec result is UNKNOWN; this allows much\n\t\t\t\t\t\t\t\t * simpler handling of null values */\n" - }, - { - name: 'parallel_safe', - c_type: 'bool', - comment: '/* is the subplan parallel-safe? */' - }, - { - comment: - '\t/* Note: parallel_safe does not consider contents of testexpr or args */\n' - }, - { - comment: - '\t/* Information for passing params into and out of the subselect: */\n' - }, - { - comment: - '\t/* setParam and parParam are lists of integers (param IDs) */\n' - }, - { - name: 'setParam', - c_type: 'List*', - comment: - '/* initplan subqueries have to set these\n\t\t\t\t\t\t\t\t * Params for parent plan */\n' - }, - { - name: 'parParam', - c_type: 'List*', - comment: '/* indices of input Params from parent plan */' - }, - { - name: 'args', - c_type: 'List*', - comment: '/* exprs to pass as parParam values */' - }, - { - comment: '\t/* Estimated execution costs: */\n' - }, - { - name: 'startup_cost', - c_type: 'Cost', - comment: '/* one-time setup cost */' - }, - { - name: 'per_call_cost', - c_type: 'Cost', - comment: '/* cost for each subplan evaluation */' - } - ], - comment: - '/*\n * SubPlan - executable expression node for a subplan (sub-SELECT)\n *\n * The planner replaces SubLink nodes in expression trees with SubPlan\n * nodes after it has finished planning the subquery. SubPlan references\n * a sub-plantree stored in the subplans list of the toplevel PlannedStmt.\n * (We avoid a direct link to make it easier to copy expression trees\n * without causing multiple processing of the subplan.)\n *\n * In an ordinary subplan, testexpr points to an executable expression\n * (OpExpr, an AND/OR tree of OpExprs, or RowCompareExpr) for the combining\n * operator(s); the left-hand arguments are the original lefthand expressions,\n * and the right-hand arguments are PARAM_EXEC Param nodes representing the\n * outputs of the sub-select. (NOTE: runtime coercion functions may be\n * inserted as well.) This is just the same expression tree as testexpr in\n * the original SubLink node, but the PARAM_SUBLINK nodes are replaced by\n * suitably numbered PARAM_EXEC nodes.\n *\n * If the sub-select becomes an initplan rather than a subplan, the executable\n * expression is part of the outer plan\'s expression tree (and the SubPlan\n * node itself is not, but rather is found in the outer plan\'s initPlan\n * list). In this case testexpr is NULL to avoid duplication.\n *\n * The planner also derives lists of the values that need to be passed into\n * and out of the subplan. Input values are represented as a list "args" of\n * expressions to be evaluated in the outer-query context (currently these\n * args are always just Vars, but in principle they could be any expression).\n * The values are assigned to the global PARAM_EXEC params indexed by parParam\n * (the parParam and args lists must have the same ordering). setParam is a\n * list of the PARAM_EXEC params that are computed by the sub-select, if it\n * is an initplan; they are listed in order by sub-select output column\n * position. (parParam and setParam are integer Lists, not Bitmapsets,\n * because their ordering is significant.)\n *\n * Also, the planner computes startup and per-call costs for use of the\n * SubPlan. Note that these include the cost of the subquery proper,\n * evaluation of the testexpr if any, and any hashtable management overhead.\n */\n' - }, - AlternativeSubPlan: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'subplans', - c_type: 'List*', - comment: '/* SubPlan(s) with equivalent results */' - } - ], - comment: - "/*\n * AlternativeSubPlan - expression node for a choice among SubPlans\n *\n * The subplans are given as a List so that the node definition need not\n * change if there's ever more than two alternatives. For the moment,\n * though, there are always exactly two; and the first one is the fast-start\n * plan.\n */\n" - }, - FieldSelect: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'arg', - c_type: 'Expr*', - comment: '/* input expression */' - }, - { - name: 'fieldnum', - c_type: 'AttrNumber', - comment: '/* attribute number of field to extract */' - }, - { - name: 'resulttype', - c_type: 'Oid', - comment: - '/* type of the field (result type of this\n\t\t\t\t\t\t\t\t * node) */\n' - }, - { - name: 'resulttypmod', - c_type: 'int32', - comment: '/* output typmod (usually -1) */' - }, - { - name: 'resultcollid', - c_type: 'Oid', - comment: '/* OID of collation of the field */' - } - ], - comment: - '/* ----------------\n * FieldSelect\n *\n * FieldSelect represents the operation of extracting one field from a tuple\n * value. At runtime, the input expression is expected to yield a rowtype\n * Datum. The specified field number is extracted and returned as a Datum.\n * ----------------\n */\n' - }, - FieldStore: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'arg', - c_type: 'Expr*', - comment: '/* input tuple value */' - }, - { - name: 'newvals', - c_type: 'List*', - comment: '/* new value(s) for field(s) */' - }, - { - name: 'fieldnums', - c_type: 'List*', - comment: '/* integer list of field attnums */' - }, - { - name: 'resulttype', - c_type: 'Oid', - comment: '/* type of result (same as type of arg) */' - }, - { - comment: - '\t/* Like RowExpr, we deliberately omit a typmod and collation here */\n' - } - ], - comment: - '/* ----------------\n * FieldStore\n *\n * FieldStore represents the operation of modifying one field in a tuple\n * value, yielding a new tuple value (the input is not touched!). Like\n * the assign case of SubscriptingRef, this is used to implement UPDATE of a\n * portion of a column.\n *\n * resulttype is always a named composite type (not a domain). To update\n * a composite domain value, apply CoerceToDomain to the FieldStore.\n *\n * A single FieldStore can actually represent updates of several different\n * fields. The parser only generates FieldStores with single-element lists,\n * but the planner will collapse multiple updates of the same base column\n * into one FieldStore.\n * ----------------\n */\n' - }, - RelabelType: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'arg', - c_type: 'Expr*', - comment: '/* input expression */' - }, - { - name: 'resulttype', - c_type: 'Oid', - comment: '/* output type of coercion expression */' - }, - { - name: 'resulttypmod', - c_type: 'int32', - comment: '/* output typmod (usually -1) */' - }, - { - name: 'resultcollid', - c_type: 'Oid', - comment: '/* OID of collation, or InvalidOid if none */' - }, - { - name: 'relabelformat', - c_type: 'CoercionForm', - comment: '/* how to display this node */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - '/* ----------------\n * RelabelType\n *\n * RelabelType represents a "dummy" type coercion between two binary-\n * compatible datatypes, such as reinterpreting the result of an OID\n * expression as an int4. It is a no-op at runtime; we only need it\n * to provide a place to store the correct type to be attributed to\n * the expression result during type resolution. (We can\'t get away\n * with just overwriting the type field of the input expression node,\n * so we need a separate node to show the coercion\'s result type.)\n * ----------------\n */\n' - }, - CoerceViaIO: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'arg', - c_type: 'Expr*', - comment: '/* input expression */' - }, - { - name: 'resulttype', - c_type: 'Oid', - comment: '/* output type of coercion */' - }, - { - comment: '\t/* output typmod is not stored, but is presumed -1 */\n' - }, - { - name: 'resultcollid', - c_type: 'Oid', - comment: '/* OID of collation, or InvalidOid if none */' - }, - { - name: 'coerceformat', - c_type: 'CoercionForm', - comment: '/* how to display this node */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - "/* ----------------\n * CoerceViaIO\n *\n * CoerceViaIO represents a type coercion between two types whose textual\n * representations are compatible, implemented by invoking the source type's\n * typoutput function then the destination type's typinput function.\n * ----------------\n */\n" - }, - ArrayCoerceExpr: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'arg', - c_type: 'Expr*', - comment: '/* input expression (yields an array) */' - }, - { - name: 'elemexpr', - c_type: 'Expr*', - comment: '/* expression representing per-element work */' - }, - { - name: 'resulttype', - c_type: 'Oid', - comment: '/* output type of coercion (an array type) */' - }, - { - name: 'resulttypmod', - c_type: 'int32', - comment: '/* output typmod (also element typmod) */' - }, - { - name: 'resultcollid', - c_type: 'Oid', - comment: '/* OID of collation, or InvalidOid if none */' - }, - { - name: 'coerceformat', - c_type: 'CoercionForm', - comment: '/* how to display this node */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - '/* ----------------\n * ArrayCoerceExpr\n *\n * ArrayCoerceExpr represents a type coercion from one array type to another,\n * which is implemented by applying the per-element coercion expression\n * "elemexpr" to each element of the source array. Within elemexpr, the\n * source element is represented by a CaseTestExpr node. Note that even if\n * elemexpr is a no-op (that is, just CaseTestExpr + RelabelType), the\n * coercion still requires some effort: we have to fix the element type OID\n * stored in the array header.\n * ----------------\n */\n' - }, - ConvertRowtypeExpr: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'arg', - c_type: 'Expr*', - comment: '/* input expression */' - }, - { - name: 'resulttype', - c_type: 'Oid', - comment: '/* output type (always a composite type) */' - }, - { - comment: - '\t/* Like RowExpr, we deliberately omit a typmod and collation here */\n' - }, - { - name: 'convertformat', - c_type: 'CoercionForm', - comment: '/* how to display this node */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - '/* ----------------\n * ConvertRowtypeExpr\n *\n * ConvertRowtypeExpr represents a type coercion from one composite type\n * to another, where the source type is guaranteed to contain all the columns\n * needed for the destination type plus possibly others; the columns need not\n * be in the same positions, but are matched up by name. This is primarily\n * used to convert a whole-row value of an inheritance child table into a\n * valid whole-row value of its parent table\'s rowtype. Both resulttype\n * and the exposed type of "arg" must be named composite types (not domains).\n * ----------------\n */\n' - }, - CollateExpr: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'arg', - c_type: 'Expr*', - comment: '/* input expression */' - }, - { - name: 'collOid', - c_type: 'Oid', - comment: "/* collation's OID */" - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - '/*----------\n * CollateExpr - COLLATE\n *\n * The planner replaces CollateExpr with RelabelType during expression\n * preprocessing, so execution never sees a CollateExpr.\n *----------\n */\n' - }, - CaseExpr: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'casetype', - c_type: 'Oid', - comment: '/* type of expression result */' - }, - { - name: 'casecollid', - c_type: 'Oid', - comment: '/* OID of collation, or InvalidOid if none */' - }, - { - name: 'arg', - c_type: 'Expr*', - comment: '/* implicit equality comparison argument */' - }, - { - name: 'args', - c_type: 'List*', - comment: '/* the arguments (list of WHEN clauses) */' - }, - { - name: 'defresult', - c_type: 'Expr*', - comment: '/* the default result (ELSE clause) */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - '/*----------\n * CaseExpr - a CASE expression\n *\n * We support two distinct forms of CASE expression:\n *\t\tCASE WHEN boolexpr THEN expr [ WHEN boolexpr THEN expr ... ]\n *\t\tCASE testexpr WHEN compexpr THEN expr [ WHEN compexpr THEN expr ... ]\n * These are distinguishable by the "arg" field being NULL in the first case\n * and the testexpr in the second case.\n *\n * In the raw grammar output for the second form, the condition expressions\n * of the WHEN clauses are just the comparison values. Parse analysis\n * converts these to valid boolean expressions of the form\n *\t\tCaseTestExpr \'=\' compexpr\n * where the CaseTestExpr node is a placeholder that emits the correct\n * value at runtime. This structure is used so that the testexpr need be\n * evaluated only once. Note that after parse analysis, the condition\n * expressions always yield boolean.\n *\n * Note: we can test whether a CaseExpr has been through parse analysis\n * yet by checking whether casetype is InvalidOid or not.\n *----------\n */\n' - }, - CaseWhen: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'expr', - c_type: 'Expr*', - comment: '/* condition expression */' - }, - { - name: 'result', - c_type: 'Expr*', - comment: '/* substitution result */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: '/*\n * CaseWhen - one arm of a CASE expression\n */\n' - }, - CaseTestExpr: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'typeId', - c_type: 'Oid', - comment: '/* type for substituted value */' - }, - { - name: 'typeMod', - c_type: 'int32', - comment: '/* typemod for substituted value */' - }, - { - name: 'collation', - c_type: 'Oid', - comment: '/* collation for the substituted value */' - } - ], - comment: - "/*\n * Placeholder node for the test value to be processed by a CASE expression.\n * This is effectively like a Param, but can be implemented more simply\n * since we need only one replacement value at a time.\n *\n * We also abuse this node type for some other purposes, including:\n *\t* Placeholder for the current array element value in ArrayCoerceExpr;\n *\t see build_coercion_expression().\n *\t* Nested FieldStore/SubscriptingRef assignment expressions in INSERT/UPDATE;\n *\t see transformAssignmentIndirection().\n *\n * The uses in CaseExpr and ArrayCoerceExpr are safe only to the extent that\n * there is not any other CaseExpr or ArrayCoerceExpr between the value source\n * node and its child CaseTestExpr(s). This is true in the parse analysis\n * output, but the planner's function-inlining logic has to be careful not to\n * break it.\n *\n * The nested-assignment-expression case is safe because the only node types\n * that can be above such CaseTestExprs are FieldStore and SubscriptingRef.\n */\n" - }, - ArrayExpr: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'array_typeid', - c_type: 'Oid', - comment: '/* type of expression result */' - }, - { - name: 'array_collid', - c_type: 'Oid', - comment: '/* OID of collation, or InvalidOid if none */' - }, - { - name: 'element_typeid', - c_type: 'Oid', - comment: '/* common type of array elements */' - }, - { - name: 'elements', - c_type: 'List*', - comment: '/* the array elements or sub-arrays */' - }, - { - name: 'multidims', - c_type: 'bool', - comment: '/* true if elements are sub-arrays */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - '/*\n * ArrayExpr - an ARRAY[] expression\n *\n * Note: if multidims is false, the constituent expressions all yield the\n * scalar type identified by element_typeid. If multidims is true, the\n * constituent expressions all yield arrays of element_typeid (ie, the same\n * type as array_typeid); at runtime we must check for compatible subscripts.\n */\n' - }, - RowExpr: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'args', - c_type: 'List*', - comment: '/* the fields */' - }, - { - name: 'row_typeid', - c_type: 'Oid', - comment: "/* RECORDOID or a composite type's ID */" - }, - { - comment: '' - }, - { - comment: - "\t/*\n\t * row_typeid cannot be a domain over composite, only plain composite. To\n\t * create a composite domain value, apply CoerceToDomain to the RowExpr.\n\t *\n\t * Note: we deliberately do NOT store a typmod. Although a typmod will be\n\t * associated with specific RECORD types at runtime, it will differ for\n\t * different backends, and so cannot safely be stored in stored\n\t * parsetrees. We must assume typmod -1 for a RowExpr node.\n\t *\n\t * We don't need to store a collation either. The result type is\n\t * necessarily composite, and composite types never have a collation.\n\t */\n" - }, - { - name: 'row_format', - c_type: 'CoercionForm', - comment: '/* how to display this node */' - }, - { - name: 'colnames', - c_type: 'List*', - comment: '/* list of String, or NIL */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - "/*\n * RowExpr - a ROW() expression\n *\n * Note: the list of fields must have a one-for-one correspondence with\n * physical fields of the associated rowtype, although it is okay for it\n * to be shorter than the rowtype. That is, the N'th list element must\n * match up with the N'th physical field. When the N'th physical field\n * is a dropped column (attisdropped) then the N'th list element can just\n * be a NULL constant. (This case can only occur for named composite types,\n * not RECORD types, since those are built from the RowExpr itself rather\n * than vice versa.) It is important not to assume that length(args) is\n * the same as the number of columns logically present in the rowtype.\n *\n * colnames provides field names in cases where the names can't easily be\n * obtained otherwise. Names *must* be provided if row_typeid is RECORDOID.\n * If row_typeid identifies a known composite type, colnames can be NIL to\n * indicate the type's cataloged field names apply. Note that colnames can\n * be non-NIL even for a composite type, and typically is when the RowExpr\n * was created by expanding a whole-row Var. This is so that we can retain\n * the column alias names of the RTE that the Var referenced (which would\n * otherwise be very difficult to extract from the parsetree). Like the\n * args list, colnames is one-for-one with physical fields of the rowtype.\n */\n" - }, - RowCompareExpr: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'rctype', - c_type: 'RowCompareType', - comment: '/* LT LE GE or GT, never EQ or NE */' - }, - { - name: 'opnos', - c_type: 'List*', - comment: '/* OID list of pairwise comparison ops */' - }, - { - name: 'opfamilies', - c_type: 'List*', - comment: '/* OID list of containing operator families */' - }, - { - name: 'inputcollids', - c_type: 'List*', - comment: '/* OID list of collations for comparisons */' - }, - { - name: 'largs', - c_type: 'List*', - comment: '/* the left-hand input arguments */' - }, - { - name: 'rargs', - c_type: 'List*', - comment: '/* the right-hand input arguments */' - } - ], - comment: - '/*\n * RowCompareExpr - row-wise comparison, such as (a, b) <= (1, 2)\n *\n * We support row comparison for any operator that can be determined to\n * act like =, <>, <, <=, >, or >= (we determine this by looking for the\n * operator in btree opfamilies). Note that the same operator name might\n * map to a different operator for each pair of row elements, since the\n * element datatypes can vary.\n *\n * A RowCompareExpr node is only generated for the < <= > >= cases;\n * the = and <> cases are translated to simple AND or OR combinations\n * of the pairwise comparisons. However, we include = and <> in the\n * RowCompareType enum for the convenience of parser logic.\n */\n' - }, - CoalesceExpr: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'coalescetype', - c_type: 'Oid', - comment: '/* type of expression result */' - }, - { - name: 'coalescecollid', - c_type: 'Oid', - comment: '/* OID of collation, or InvalidOid if none */' - }, - { - name: 'args', - c_type: 'List*', - comment: '/* the arguments */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: '/*\n * CoalesceExpr - a COALESCE expression\n */\n' - }, - MinMaxExpr: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'minmaxtype', - c_type: 'Oid', - comment: '/* common type of arguments and result */' - }, - { - name: 'minmaxcollid', - c_type: 'Oid', - comment: '/* OID of collation of result */' - }, - { - name: 'inputcollid', - c_type: 'Oid', - comment: '/* OID of collation that function should use */' - }, - { - name: 'op', - c_type: 'MinMaxOp', - comment: '/* function to execute */' - }, - { - name: 'args', - c_type: 'List*', - comment: '/* the arguments */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: '/*\n * MinMaxExpr - a GREATEST or LEAST function\n */\n' - }, - SQLValueFunction: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'op', - c_type: 'SQLValueFunctionOp', - comment: '/* which function this is */' - }, - { - name: 'type', - c_type: 'Oid', - comment: '/* result type/typmod */' - }, - { - name: 'typmod', - c_type: 'int32', - comment: null - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: null - }, - XmlExpr: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'op', - c_type: 'XmlExprOp', - comment: '/* xml function ID */' - }, - { - name: 'name', - c_type: 'char*', - comment: '/* name in xml(NAME foo ...) syntaxes */' - }, - { - name: 'named_args', - c_type: 'List*', - comment: '/* non-XML expressions for xml_attributes */' - }, - { - name: 'arg_names', - c_type: 'List*', - comment: '/* parallel list of Value strings */' - }, - { - name: 'args', - c_type: 'List*', - comment: '/* list of expressions */' - }, - { - name: 'xmloption', - c_type: 'XmlOptionType', - comment: '/* DOCUMENT or CONTENT */' - }, - { - name: 'type', - c_type: 'Oid', - comment: '/* target type/typmod for XMLSERIALIZE */' - }, - { - name: 'typmod', - c_type: 'int32', - comment: null - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: null - }, - NullTest: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'arg', - c_type: 'Expr*', - comment: '/* input expression */' - }, - { - name: 'nulltesttype', - c_type: 'NullTestType', - comment: '/* IS NULL, IS NOT NULL */' - }, - { - name: 'argisrow', - c_type: 'bool', - comment: '/* T to perform field-by-field null checks */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - '/* ----------------\n * NullTest\n *\n * NullTest represents the operation of testing a value for NULLness.\n * The appropriate test is performed and returned as a boolean Datum.\n *\n * When argisrow is false, this simply represents a test for the null value.\n *\n * When argisrow is true, the input expression must yield a rowtype, and\n * the node implements "row IS [NOT] NULL" per the SQL standard. This\n * includes checking individual fields for NULLness when the row datum\n * itself isn\'t NULL.\n *\n * NOTE: the combination of a rowtype input and argisrow==false does NOT\n * correspond to the SQL notation "row IS [NOT] NULL"; instead, this case\n * represents the SQL notation "row IS [NOT] DISTINCT FROM NULL".\n * ----------------\n */\n' - }, - BooleanTest: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'arg', - c_type: 'Expr*', - comment: '/* input expression */' - }, - { - name: 'booltesttype', - c_type: 'BoolTestType', - comment: '/* test type */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - '/*\n * BooleanTest\n *\n * BooleanTest represents the operation of determining whether a boolean\n * is TRUE, FALSE, or UNKNOWN (ie, NULL). All six meaningful combinations\n * are supported. Note that a NULL input does *not* cause a NULL result.\n * The appropriate test is performed and returned as a boolean Datum.\n */\n' - }, - CoerceToDomain: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'arg', - c_type: 'Expr*', - comment: '/* input expression */' - }, - { - name: 'resulttype', - c_type: 'Oid', - comment: '/* domain type ID (result type) */' - }, - { - name: 'resulttypmod', - c_type: 'int32', - comment: '/* output typmod (currently always -1) */' - }, - { - name: 'resultcollid', - c_type: 'Oid', - comment: '/* OID of collation, or InvalidOid if none */' - }, - { - name: 'coercionformat', - c_type: 'CoercionForm', - comment: '/* how to display this node */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - '/*\n * CoerceToDomain\n *\n * CoerceToDomain represents the operation of coercing a value to a domain\n * type. At runtime (and not before) the precise set of constraints to be\n * checked will be determined. If the value passes, it is returned as the\n * result; if not, an error is raised. Note that this is equivalent to\n * RelabelType in the scenario where no constraints are applied.\n */\n' - }, - CoerceToDomainValue: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'typeId', - c_type: 'Oid', - comment: '/* type for substituted value */' - }, - { - name: 'typeMod', - c_type: 'int32', - comment: '/* typemod for substituted value */' - }, - { - name: 'collation', - c_type: 'Oid', - comment: '/* collation for the substituted value */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - "/*\n * Placeholder node for the value to be processed by a domain's check\n * constraint. This is effectively like a Param, but can be implemented more\n * simply since we need only one replacement value at a time.\n *\n * Note: the typeId/typeMod/collation will be set from the domain's base type,\n * not the domain itself. This is because we shouldn't consider the value\n * to be a member of the domain if we haven't yet checked its constraints.\n */\n" - }, - SetToDefault: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'typeId', - c_type: 'Oid', - comment: '/* type for substituted value */' - }, - { - name: 'typeMod', - c_type: 'int32', - comment: '/* typemod for substituted value */' - }, - { - name: 'collation', - c_type: 'Oid', - comment: '/* collation for the substituted value */' - }, - { - name: 'location', - c_type: 'int', - comment: '/* token location, or -1 if unknown */' - } - ], - comment: - '/*\n * Placeholder node for a DEFAULT marker in an INSERT or UPDATE command.\n *\n * This is not an executable expression: it must be replaced by the actual\n * column default expression during rewriting. But it is convenient to\n * treat it as an expression node during parsing and rewriting.\n */\n' - }, - CurrentOfExpr: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'cvarno', - c_type: 'Index', - comment: '/* RT index of target relation */' - }, - { - name: 'cursor_name', - c_type: 'char*', - comment: '/* name of referenced cursor, or NULL */' - }, - { - name: 'cursor_param', - c_type: 'int', - comment: '/* refcursor parameter number, or 0 */' - } - ], - comment: - '/*\n * Node representing [WHERE] CURRENT OF cursor_name\n *\n * CURRENT OF is a bit like a Var, in that it carries the rangetable index\n * of the target relation being constrained; this aids placing the expression\n * correctly during planning. We can assume however that its "levelsup" is\n * always zero, due to the syntactic constraints on where it can appear.\n *\n * The referenced cursor can be represented either as a hardwired string\n * or as a reference to a run-time parameter of type REFCURSOR. The latter\n * case is for the convenience of plpgsql.\n */\n' - }, - NextValueExpr: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'seqid', - c_type: 'Oid', - comment: null - }, - { - name: 'typeId', - c_type: 'Oid', - comment: null - } - ], - comment: - '/*\n * NextValueExpr - get next value from sequence\n *\n * This has the same effect as calling the nextval() function, but it does not\n * check permissions on the sequence. This is used for identity columns,\n * where the sequence is an implicit dependency without its own permissions.\n */\n' - }, - InferenceElem: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'expr', - c_type: 'Node*', - comment: '/* expression to infer from, or NULL */' - }, - { - name: 'infercollid', - c_type: 'Oid', - comment: '/* OID of collation, or InvalidOid */' - }, - { - name: 'inferopclass', - c_type: 'Oid', - comment: '/* OID of att opclass, or InvalidOid */' - } - ], - comment: - '/*\n * InferenceElem - an element of a unique index inference specification\n *\n * This mostly matches the structure of IndexElems, but having a dedicated\n * primnode allows for a clean separation between the use of index parameters\n * by utility commands, and this node.\n */\n' - }, - TargetEntry: { - fields: [ - { - name: 'xpr', - c_type: 'Expr', - comment: null - }, - { - name: 'expr', - c_type: 'Expr*', - comment: '/* expression to evaluate */' - }, - { - name: 'resno', - c_type: 'AttrNumber', - comment: '/* attribute number (see notes above) */' - }, - { - name: 'resname', - c_type: 'char*', - comment: '/* name of the column (could be NULL) */' - }, - { - name: 'ressortgroupref', - c_type: 'Index', - comment: - '/* nonzero if referenced by a sort/group\n\t\t\t\t\t\t\t\t\t * clause */\n' - }, - { - name: 'resorigtbl', - c_type: 'Oid', - comment: "/* OID of column's source table */" - }, - { - name: 'resorigcol', - c_type: 'AttrNumber', - comment: "/* column's number in source table */" - }, - { - name: 'resjunk', - c_type: 'bool', - comment: - '/* set to true to eliminate the attribute from\n\t\t\t\t\t\t\t\t * final target list */\n' - } - ], - comment: - "/*--------------------\n * TargetEntry -\n *\t a target entry (used in query target lists)\n *\n * Strictly speaking, a TargetEntry isn't an expression node (since it can't\n * be evaluated by ExecEvalExpr). But we treat it as one anyway, since in\n * very many places it's convenient to process a whole query targetlist as a\n * single expression tree.\n *\n * In a SELECT's targetlist, resno should always be equal to the item's\n * ordinal position (counting from 1). However, in an INSERT or UPDATE\n * targetlist, resno represents the attribute number of the destination\n * column for the item; so there may be missing or out-of-order resnos.\n * It is even legal to have duplicated resnos; consider\n *\t\tUPDATE table SET arraycol[1] = ..., arraycol[2] = ..., ...\n * The two meanings come together in the executor, because the planner\n * transforms INSERT/UPDATE tlists into a normalized form with exactly\n * one entry for each column of the destination table. Before that's\n * happened, however, it is risky to assume that resno == position.\n * Generally get_tle_by_resno() should be used rather than list_nth()\n * to fetch tlist entries by resno, and only in SELECT should you assume\n * that resno is a unique identifier.\n *\n * resname is required to represent the correct column name in non-resjunk\n * entries of top-level SELECT targetlists, since it will be used as the\n * column title sent to the frontend. In most other contexts it is only\n * a debugging aid, and may be wrong or even NULL. (In particular, it may\n * be wrong in a tlist from a stored rule, if the referenced column has been\n * renamed by ALTER TABLE since the rule was made. Also, the planner tends\n * to store NULL rather than look up a valid name for tlist entries in\n * non-toplevel plan nodes.) In resjunk entries, resname should be either\n * a specific system-generated name (such as \"ctid\") or NULL; anything else\n * risks confusing ExecGetJunkAttribute!\n *\n * ressortgroupref is used in the representation of ORDER BY, GROUP BY, and\n * DISTINCT items. Targetlist entries with ressortgroupref=0 are not\n * sort/group items. If ressortgroupref>0, then this item is an ORDER BY,\n * GROUP BY, and/or DISTINCT target value. No two entries in a targetlist\n * may have the same nonzero ressortgroupref --- but there is no particular\n * meaning to the nonzero values, except as tags. (For example, one must\n * not assume that lower ressortgroupref means a more significant sort key.)\n * The order of the associated SortGroupClause lists determine the semantics.\n *\n * resorigtbl/resorigcol identify the source of the column, if it is a\n * simple reference to a column of a base table (or view). If it is not\n * a simple reference, these fields are zeroes.\n *\n * If resjunk is true then the column is a working column (such as a sort key)\n * that should be removed from the final output of the query. Resjunk columns\n * must have resnos that cannot duplicate any regular column's resno. Also\n * note that there are places that assume resjunk columns come after non-junk\n * columns.\n *--------------------\n */\n" - }, - RangeTblRef: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'rtindex', - c_type: 'int', - comment: null - } - ], - comment: - "/*\n * RangeTblRef - reference to an entry in the query's rangetable\n *\n * We could use direct pointers to the RT entries and skip having these\n * nodes, but multiple pointers to the same node in a querytree cause\n * lots of headaches, so it seems better to store an index into the RT.\n */\n" - }, - JoinExpr: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'jointype', - c_type: 'JoinType', - comment: '/* type of join */' - }, - { - name: 'isNatural', - c_type: 'bool', - comment: '/* Natural join? Will need to shape table */' - }, - { - name: 'larg', - c_type: 'Node*', - comment: '/* left subtree */' - }, - { - name: 'rarg', - c_type: 'Node*', - comment: '/* right subtree */' - }, - { - name: 'usingClause', - c_type: 'List*', - comment: '/* USING clause, if any (list of String) */' - }, - { - name: 'quals', - c_type: 'Node*', - comment: '/* qualifiers on join, if any */' - }, - { - name: 'alias', - c_type: 'Alias*', - comment: '/* user-written alias clause, if any */' - }, - { - name: 'rtindex', - c_type: 'int', - comment: '/* RT index assigned for join, or 0 */' - } - ], - comment: - '/*----------\n * JoinExpr - for SQL JOIN expressions\n *\n * isNatural, usingClause, and quals are interdependent. The user can write\n * only one of NATURAL, USING(), or ON() (this is enforced by the grammar).\n * If he writes NATURAL then parse analysis generates the equivalent USING()\n * list, and from that fills in "quals" with the right equality comparisons.\n * If he writes USING() then "quals" is filled with equality comparisons.\n * If he writes ON() then only "quals" is set. Note that NATURAL/USING\n * are not equivalent to ON() since they also affect the output column list.\n *\n * alias is an Alias node representing the AS alias-clause attached to the\n * join expression, or NULL if no clause. NB: presence or absence of the\n * alias has a critical impact on semantics, because a join with an alias\n * restricts visibility of the tables/columns inside it.\n *\n * During parse analysis, an RTE is created for the Join, and its index\n * is filled into rtindex. This RTE is present mainly so that Vars can\n * be created that refer to the outputs of the join. The planner sometimes\n * generates JoinExprs internally; these can have rtindex = 0 if there are\n * no join alias variables referencing such joins.\n *----------\n */\n' - }, - FromExpr: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'fromlist', - c_type: 'List*', - comment: '/* List of join subtrees */' - }, - { - name: 'quals', - c_type: 'Node*', - comment: '/* qualifiers on join, if any */' - } - ], - comment: - "/*----------\n * FromExpr - represents a FROM ... WHERE ... construct\n *\n * This is both more flexible than a JoinExpr (it can have any number of\n * children, including zero) and less so --- we don't need to deal with\n * aliases and so on. The output column set is implicitly just the union\n * of the outputs of the children.\n *----------\n */\n" - }, - OnConflictExpr: { - fields: [ - { - name: 'type', - c_type: 'NodeTag', - comment: null - }, - { - name: 'action', - c_type: 'OnConflictAction', - comment: '/* DO NOTHING or UPDATE? */' - }, - { - comment: '' - }, - { - comment: '\t/* Arbiter */\n' - }, - { - name: 'arbiterElems', - c_type: 'List*', - comment: - "/* unique index arbiter list (of\n\t\t\t\t\t\t\t\t * InferenceElem's) */\n" - }, - { - name: 'arbiterWhere', - c_type: 'Node*', - comment: '/* unique index arbiter WHERE clause */' - }, - { - name: 'constraint', - c_type: 'Oid', - comment: '/* pg_constraint OID for arbiter */' - }, - { - comment: '' - }, - { - comment: '\t/* ON CONFLICT UPDATE */\n' - }, - { - name: 'onConflictSet', - c_type: 'List*', - comment: '/* List of ON CONFLICT SET TargetEntrys */' - }, - { - name: 'onConflictWhere', - c_type: 'Node*', - comment: '/* qualifiers to restrict UPDATE to */' - }, - { - name: 'exclRelIndex', - c_type: 'int', - comment: "/* RT index of 'excluded' relation */" - }, - { - name: 'exclRelTlist', - c_type: 'List*', - comment: '/* tlist of the EXCLUDED pseudo relation */' - } - ], - comment: - '/*----------\n * OnConflictExpr - represents an ON CONFLICT DO ... expression\n *\n * The optimizer requires a list of inference elements, and optionally a WHERE\n * clause to infer a unique index. The unique index (or, occasionally,\n * indexes) inferred are used to arbitrate whether or not the alternative ON\n * CONFLICT path is taken.\n *----------\n */\n' - } - }, - 'nodes/lockoptions': {}, - 'nodes/nodes': {}, - 'nodes/params': { - ParamExternData: { - fields: [ - { - name: 'value', - c_type: 'Datum', - comment: '/* parameter value */' - }, - { - name: 'isnull', - c_type: 'bool', - comment: '/* is it NULL? */' - }, - { - name: 'pflags', - c_type: 'uint16', - comment: '/* flag bits, see above */' - }, - { - name: 'ptype', - c_type: 'Oid', - comment: "/* parameter's datatype, or 0 */" - } - ], - comment: - '/*\n *\t ParamListInfo\n *\n *\t ParamListInfo structures are used to pass parameters into the executor\n *\t for parameterized plans. We support two basic approaches to supplying\n *\t parameter values, the "static" way and the "dynamic" way.\n *\n *\t In the static approach, per-parameter data is stored in an array of\n *\t ParamExternData structs appended to the ParamListInfo struct.\n *\t Each entry in the array defines the value to be substituted for a\n *\t PARAM_EXTERN parameter. The "paramid" of a PARAM_EXTERN Param\n *\t can range from 1 to numParams.\n *\n *\t Although parameter numbers are normally consecutive, we allow\n *\t ptype == InvalidOid to signal an unused array entry.\n *\n *\t pflags is a flags field. Currently the only used bit is:\n *\t PARAM_FLAG_CONST signals the planner that it may treat this parameter\n *\t as a constant (i.e., generate a plan that works only for this value\n *\t of the parameter).\n *\n *\t In the dynamic approach, all access to parameter values is done through\n *\t hook functions found in the ParamListInfo struct. In this case,\n *\t the ParamExternData array is typically unused and not allocated;\n *\t but the legal range of paramid is still 1 to numParams.\n *\n *\t Although the data structure is really an array, not a list, we keep\n *\t the old typedef name to avoid unnecessary code changes.\n *\n *\t There are 3 hook functions that can be associated with a ParamListInfo\n *\t structure:\n *\n *\t If paramFetch isn\'t null, it is called to fetch the ParamExternData\n *\t for a particular param ID, rather than accessing the relevant element\n *\t of the ParamExternData array. This supports the case where the array\n *\t isn\'t there at all, as well as cases where the data in the array\n *\t might be obsolete or lazily evaluated. paramFetch must return the\n *\t address of a ParamExternData struct describing the specified param ID;\n *\t the convention above about ptype == InvalidOid signaling an invalid\n *\t param ID still applies. The returned struct can either be placed in\n *\t the "workspace" supplied by the caller, or it can be in storage\n *\t controlled by the paramFetch hook if that\'s more convenient.\n *\t (In either case, the struct is not expected to be long-lived.)\n *\t If "speculative" is true, the paramFetch hook should not risk errors\n *\t in trying to fetch the parameter value, and should report an invalid\n *\t parameter instead.\n *\n *\t If paramCompile isn\'t null, then it controls what execExpr.c compiles\n *\t for PARAM_EXTERN Param nodes --- typically, this hook would emit a\n *\t EEOP_PARAM_CALLBACK step. This allows unnecessary work to be\n *\t optimized away in compiled expressions.\n *\n *\t If parserSetup isn\'t null, then it is called to re-instantiate the\n *\t original parsing hooks when a query needs to be re-parsed/planned.\n *\t This is especially useful if the types of parameters might change\n *\t from time to time, since it can replace the need to supply a fixed\n *\t list of parameter types to the parser.\n *\n *\t Notice that the paramFetch and paramCompile hooks are actually passed\n *\t the ParamListInfo struct\'s address; they can therefore access all\n *\t three of the "arg" fields, and the distinction between paramFetchArg\n *\t and paramCompileArg is rather arbitrary.\n */\n' - }, - ParamListInfoData: { - fields: [ - { - name: 'paramFetch', - c_type: 'ParamFetchHook', - comment: '/* parameter fetch hook */' - }, - { - name: 'paramFetchArg', - c_type: 'void*', - comment: null - }, - { - name: 'paramCompile', - c_type: 'ParamCompileHook', - comment: '/* parameter compile hook */' - }, - { - name: 'paramCompileArg', - c_type: 'void*', - comment: null - }, - { - name: 'parserSetup', - c_type: 'ParserSetupHook', - comment: '/* parser setup hook */' - }, - { - name: 'parserSetupArg', - c_type: 'void*', - comment: null - }, - { - name: 'paramValuesStr', - c_type: 'char*', - comment: '/* params as a single string for errors */' - }, - { - name: 'numParams', - c_type: 'int', - comment: '/* nominal/maximum # of Params represented */' - }, - { - comment: '' - }, - { - comment: - '\t/*\n\t * params[] may be of length zero if paramFetch is supplied; otherwise it\n\t * must be of length numParams.\n\t */\n' - } - ], - comment: - '/*\n *\t ParamListInfo\n *\n *\t ParamListInfo structures are used to pass parameters into the executor\n *\t for parameterized plans. We support two basic approaches to supplying\n *\t parameter values, the "static" way and the "dynamic" way.\n *\n *\t In the static approach, per-parameter data is stored in an array of\n *\t ParamExternData structs appended to the ParamListInfo struct.\n *\t Each entry in the array defines the value to be substituted for a\n *\t PARAM_EXTERN parameter. The "paramid" of a PARAM_EXTERN Param\n *\t can range from 1 to numParams.\n *\n *\t Although parameter numbers are normally consecutive, we allow\n *\t ptype == InvalidOid to signal an unused array entry.\n *\n *\t pflags is a flags field. Currently the only used bit is:\n *\t PARAM_FLAG_CONST signals the planner that it may treat this parameter\n *\t as a constant (i.e., generate a plan that works only for this value\n *\t of the parameter).\n *\n *\t In the dynamic approach, all access to parameter values is done through\n *\t hook functions found in the ParamListInfo struct. In this case,\n *\t the ParamExternData array is typically unused and not allocated;\n *\t but the legal range of paramid is still 1 to numParams.\n *\n *\t Although the data structure is really an array, not a list, we keep\n *\t the old typedef name to avoid unnecessary code changes.\n *\n *\t There are 3 hook functions that can be associated with a ParamListInfo\n *\t structure:\n *\n *\t If paramFetch isn\'t null, it is called to fetch the ParamExternData\n *\t for a particular param ID, rather than accessing the relevant element\n *\t of the ParamExternData array. This supports the case where the array\n *\t isn\'t there at all, as well as cases where the data in the array\n *\t might be obsolete or lazily evaluated. paramFetch must return the\n *\t address of a ParamExternData struct describing the specified param ID;\n *\t the convention above about ptype == InvalidOid signaling an invalid\n *\t param ID still applies. The returned struct can either be placed in\n *\t the "workspace" supplied by the caller, or it can be in storage\n *\t controlled by the paramFetch hook if that\'s more convenient.\n *\t (In either case, the struct is not expected to be long-lived.)\n *\t If "speculative" is true, the paramFetch hook should not risk errors\n *\t in trying to fetch the parameter value, and should report an invalid\n *\t parameter instead.\n *\n *\t If paramCompile isn\'t null, then it controls what execExpr.c compiles\n *\t for PARAM_EXTERN Param nodes --- typically, this hook would emit a\n *\t EEOP_PARAM_CALLBACK step. This allows unnecessary work to be\n *\t optimized away in compiled expressions.\n *\n *\t If parserSetup isn\'t null, then it is called to re-instantiate the\n *\t original parsing hooks when a query needs to be re-parsed/planned.\n *\t This is especially useful if the types of parameters might change\n *\t from time to time, since it can replace the need to supply a fixed\n *\t list of parameter types to the parser.\n *\n *\t Notice that the paramFetch and paramCompile hooks are actually passed\n *\t the ParamListInfo struct\'s address; they can therefore access all\n *\t three of the "arg" fields, and the distinction between paramFetchArg\n *\t and paramCompileArg is rather arbitrary.\n */\n' - }, - ParamExecData: { - fields: [ - { - name: 'execPlan', - c_type: 'void*', - comment: '/* should be "SubPlanState *" */' - }, - { - name: 'value', - c_type: 'Datum', - comment: null - }, - { - name: 'isnull', - c_type: 'bool', - comment: null - } - ], - comment: - "/* ----------------\n *\t ParamExecData\n *\n *\t ParamExecData entries are used for executor internal parameters\n *\t (that is, values being passed into or out of a sub-query). The\n *\t paramid of a PARAM_EXEC Param is a (zero-based) index into an\n *\t array of ParamExecData records, which is referenced through\n *\t es_param_exec_vals or ecxt_param_exec_vals.\n *\n *\t If execPlan is not NULL, it points to a SubPlanState node that needs\n *\t to be executed to produce the value. (This is done so that we can have\n *\t lazy evaluation of InitPlans: they aren't executed until/unless a\n *\t result value is needed.)\tOtherwise the value is assumed to be valid\n *\t when needed.\n * ----------------\n */\n" - }, - ParamsErrorCbData: { - fields: [ - { - name: 'portalName', - c_type: 'char*', - comment: null - }, - { - name: 'params', - c_type: 'ParamListInfo', - comment: null - } - ], - comment: '/* type of argument for ParamsErrorCallback */\n' - } - }, - 'access/attnum': {}, - c: {}, - postgres: { - varatt_external: { - fields: [ - { - name: 'va_rawsize', - c_type: 'int32', - comment: '/* Original data size (includes header) */' - }, - { - name: 'va_extsize', - c_type: 'int32', - comment: "/* External saved size (doesn't) */" - }, - { - name: 'va_valueid', - c_type: 'Oid', - comment: '/* Unique ID of value within TOAST table */' - }, - { - name: 'va_toastrelid', - c_type: 'Oid', - comment: '/* RelID of TOAST table containing it */' - } - ], - comment: - '/*\n * struct varatt_external is a traditional "TOAST pointer", that is, the\n * information needed to fetch a Datum stored out-of-line in a TOAST table.\n * The data is compressed if and only if va_extsize < va_rawsize - VARHDRSZ.\n * This struct must not contain any padding, because we sometimes compare\n * these pointers using memcmp.\n *\n * Note that this information is stored unaligned within actual tuples, so\n * you need to memcpy from the tuple into a local struct variable before\n * you can look at these fields! (The reason we use memcmp is to avoid\n * having to do that just to detect equality of two TOAST pointers...)\n */\n' - }, - varatt_expanded: { - fields: [ - { - name: 'eohptr', - c_type: 'ExpandedObjectHeader*', - comment: null - } - ], - comment: null - }, - NullableDatum: { - fields: [ - { - name: 'value', - c_type: 'Datum', - comment: null - }, - { - comment: '' - }, - { - name: 'isnull', - c_type: 'bool', - comment: null - }, - { - comment: - '\t/* due to alignment padding this could be used for flags for free */\n' - } - ], - comment: - '/*\n * A NullableDatum is used in places where both a Datum and its nullness needs\n * to be stored. This can be more efficient than storing datums and nullness\n * in separate arrays, due to better spatial locality, even if more space may\n * be wasted due to padding.\n */\n' - } - }, - postgres_ext: {}, - 'commands/vacuum': { - VacAttrStats: { - fields: [ - { - comment: - '\t/*\n\t * These fields are set up by the main ANALYZE code before invoking the\n\t * type-specific typanalyze function.\n\t *\n\t * Note: do not assume that the data being analyzed has the same datatype\n\t * shown in attr, ie do not trust attr->atttypid, attlen, etc. This is\n\t * because some index opclasses store a different type than the underlying\n\t * column/expression. Instead use attrtypid, attrtypmod, and attrtype for\n\t * information about the datatype being fed to the typanalyze function.\n\t * Likewise, use attrcollid not attr->attcollation.\n\t */\n' - }, - { - name: 'attr', - c_type: 'Form_pg_attribute', - comment: '/* copy of pg_attribute row for column */' - }, - { - name: 'attrtypid', - c_type: 'Oid', - comment: '/* type of data being analyzed */' - }, - { - name: 'attrtypmod', - c_type: 'int32', - comment: '/* typmod of data being analyzed */' - }, - { - name: 'attrtype', - c_type: 'Form_pg_type', - comment: '/* copy of pg_type row for attrtypid */' - }, - { - name: 'attrcollid', - c_type: 'Oid', - comment: '/* collation of data being analyzed */' - }, - { - name: 'anl_context', - c_type: 'MemoryContext', - comment: '/* where to save long-lived data */' - }, - { - comment: '' - }, - { - comment: - '\t/*\n\t * These fields must be filled in by the typanalyze routine, unless it\n\t * returns false.\n\t */\n' - }, - { - name: 'compute_stats', - c_type: 'AnalyzeAttrComputeStatsFunc', - comment: '/* function pointer */' - }, - { - name: 'minrows', - c_type: 'int', - comment: '/* Minimum # of rows wanted for stats */' - }, - { - name: 'extra_data', - c_type: 'void*', - comment: '/* for extra type-specific data */' - }, - { - comment: '' - }, - { - comment: - '\t/*\n\t * These fields are to be filled in by the compute_stats routine. (They\n\t * are initialized to zero when the struct is created.)\n\t */\n' - }, - { - name: 'stats_valid', - c_type: 'bool', - comment: null - }, - { - name: 'stanullfrac', - c_type: 'float4', - comment: '/* fraction of entries that are NULL */' - }, - { - name: 'stawidth', - c_type: 'int32', - comment: '/* average width of column values */' - }, - { - name: 'stadistinct', - c_type: 'float4', - comment: '/* # distinct values */' - }, - { - name: 'stakind[STATISTIC_NUM_SLOTS]', - c_type: 'int16', - comment: null - }, - { - name: 'staop[STATISTIC_NUM_SLOTS]', - c_type: 'Oid', - comment: null - }, - { - name: 'stacoll[STATISTIC_NUM_SLOTS]', - c_type: 'Oid', - comment: null - }, - { - name: 'numnumbers[STATISTIC_NUM_SLOTS]', - c_type: 'int', - comment: null - }, - { - name: 'stanumbers[STATISTIC_NUM_SLOTS]', - c_type: 'float4*', - comment: null - }, - { - name: 'numvalues[STATISTIC_NUM_SLOTS]', - c_type: 'int', - comment: null - }, - { - name: 'stavalues[STATISTIC_NUM_SLOTS]', - c_type: 'Datum*', - comment: null - }, - { - comment: '' - }, - { - comment: - "\t/*\n\t * These fields describe the stavalues[n] element types. They will be\n\t * initialized to match attrtypid, but a custom typanalyze function might\n\t * want to store an array of something other than the analyzed column's\n\t * elements. It should then overwrite these fields.\n\t */\n" - }, - { - name: 'statypid[STATISTIC_NUM_SLOTS]', - c_type: 'Oid', - comment: null - }, - { - name: 'statyplen[STATISTIC_NUM_SLOTS]', - c_type: 'int16', - comment: null - }, - { - name: 'statypbyval[STATISTIC_NUM_SLOTS]', - c_type: 'bool', - comment: null - }, - { - name: 'statypalign[STATISTIC_NUM_SLOTS]', - c_type: 'char', - comment: null - }, - { - comment: '' - }, - { - comment: - '\t/*\n\t * These fields are private to the main ANALYZE code and should not be\n\t * looked at by type-specific functions.\n\t */\n' - }, - { - name: 'tupattnum', - c_type: 'int', - comment: '/* attribute number within tuples */' - }, - { - name: 'rows', - c_type: 'HeapTuple*', - comment: '/* access info for std fetch function */' - }, - { - name: 'tupDesc', - c_type: 'TupleDesc', - comment: null - }, - { - name: 'exprvals', - c_type: 'Datum*', - comment: '/* access info for index fetch function */' - }, - { - name: 'exprnulls', - c_type: 'bool*', - comment: null - }, - { - name: 'rowstride', - c_type: 'int', - comment: null - } - ], - comment: null - }, - VacuumParams: { - fields: [ - { - name: 'options', - c_type: 'int', - comment: '/* bitmask of VacuumOption */' - }, - { - name: 'freeze_min_age', - c_type: 'int', - comment: '/* min freeze age, -1 to use default */' - }, - { - name: 'freeze_table_age', - c_type: 'int', - comment: '/* age at which to scan whole table */' - }, - { - name: 'multixact_freeze_min_age', - c_type: 'int', - comment: - '/* min multixact freeze age, -1 to\n\t\t\t\t\t\t\t\t\t\t\t * use default */\n' - }, - { - name: 'multixact_freeze_table_age', - c_type: 'int', - comment: - '/* multixact age at which to scan\n\t\t\t\t\t\t\t\t\t\t\t * whole table */\n' - }, - { - name: 'is_wraparound', - c_type: 'bool', - comment: '/* force a for-wraparound vacuum */' - }, - { - name: 'log_min_duration', - c_type: 'int', - comment: - '/* minimum execution threshold in ms at\n\t\t\t\t\t\t\t\t\t * which verbose logs are activated, -1\n\t\t\t\t\t\t\t\t\t * to use default */\n' - }, - { - name: 'index_cleanup', - c_type: 'VacOptTernaryValue', - comment: - '/* Do index vacuum and cleanup,\n\t\t\t\t\t\t\t\t\t\t * default value depends on reloptions */\n' - }, - { - name: 'truncate', - c_type: 'VacOptTernaryValue', - comment: - '/* Truncate empty pages at the end,\n\t\t\t\t\t\t\t\t\t * default value depends on reloptions */\n' - }, - { - comment: '' - }, - { - comment: - '\t/*\n\t * The number of parallel vacuum workers. 0 by default which means choose\n\t * based on the number of indexes. -1 indicates parallel vacuum is\n\t * disabled.\n\t */\n' - }, - { - name: 'nworkers', - c_type: 'int', - comment: null - } - ], - comment: - '/*\n * Parameters customizing behavior of VACUUM and ANALYZE.\n *\n * Note that at least one of VACOPT_VACUUM and VACOPT_ANALYZE must be set\n * in options.\n */\n' - } - }, - 'storage/block': { - BlockIdData: { - fields: [ - { - name: 'bi_hi', - c_type: 'uint16', - comment: null - }, - { - name: 'bi_lo', - c_type: 'uint16', - comment: null - } - ], - comment: - "/*\n * BlockId:\n *\n * this is a storage type for BlockNumber. in other words, this type\n * is used for on-disk structures (e.g., in HeapTupleData) whereas\n * BlockNumber is the type on which calculations are performed (e.g.,\n * in access method code).\n *\n * there doesn't appear to be any reason to have separate types except\n * for the fact that BlockIds can be SHORTALIGN'd (and therefore any\n * structures that contains them, such as ItemPointerData, can also be\n * SHORTALIGN'd). this is an important consideration for reducing the\n * space requirements of the line pointer (ItemIdData) array on each\n * page and the header of each heap or index tuple, so it doesn't seem\n * wise to change this without good reason.\n */\n" - } - }, - 'access/sdir': {}, - 'mb/pg_wchar': {}, - '../backend/parser/gram': { - YYLTYPE: { - fields: [ - { - name: 'first_line', - c_type: 'int', - comment: null - }, - { - name: 'first_column', - c_type: 'int', - comment: null - }, - { - name: 'last_line', - c_type: 'int', - comment: null - }, - { - name: 'last_column', - c_type: 'int', - comment: null - } - ], - comment: '/* Line 1529 of yacc.c. */\n' - } - }, - 'nodes/value': { - Integer: { - fields: [ - { - name: 'ival', - c_type: 'long' - } - ] - }, - Float: { - fields: [ - { - name: 'str', - c_type: 'char*' - } - ] - }, - String: { - fields: [ - { - name: 'str', - c_type: 'char*' - } - ] - }, - BitString: { - fields: [ - { - name: 'str', - c_type: 'char*' - } - ] - }, - Null: { - fields: [] - } - }, - 'nodes/pg_list': { - List: { - fields: [ - { - name: 'items', - c_type: '[]Node' - } - ] - } - } -}; diff --git a/packages/enums-utils/scripts/pg-proto-parser.ts b/packages/enums-utils/scripts/pg-proto-parser.ts deleted file mode 100644 index f6b12925..00000000 --- a/packages/enums-utils/scripts/pg-proto-parser.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { PgProtoParser, PgProtoParserOptions } from 'pg-proto-parser'; -import { resolve, join } from 'path'; - -const inFile: string = join(__dirname, '../../../__fixtures__/proto/17-latest.proto'); -const outDir: string = resolve(join(__dirname, '../src')); - -const options: PgProtoParserOptions = { - outDir, - enums: { - json: { - enabled: true - } - } -}; -const parser = new PgProtoParser(inFile, options); - -parser.write(); diff --git a/packages/enums-utils/src/index.ts b/packages/enums-utils/src/index.ts deleted file mode 100644 index b9869d29..00000000 --- a/packages/enums-utils/src/index.ts +++ /dev/null @@ -1,14 +0,0 @@ -import toInt from './enums2int.json'; -import toStr from './enums2str.json'; -import nodes from './nodes.json'; - -export { toInt, toStr, nodes }; -export const getEnum = (enumType, key) => { - if (typeof key === 'number') { - return toStr[enumType][key]; - } else { - return toInt[enumType][key]; - } -}; - -export * from './types'; diff --git a/packages/enums-utils/src/nodes.json b/packages/enums-utils/src/nodes.json deleted file mode 100644 index 63b52bf3..00000000 --- a/packages/enums-utils/src/nodes.json +++ /dev/null @@ -1,4944 +0,0 @@ -{ - "Alias": { - "type": { - "type": "NodeTag", - "enum": true - }, - "aliasname": { - "type": "char" - }, - "colnames": { - "type": "List" - } - }, - "RangeVar": { - "type": { - "type": "NodeTag", - "enum": true - }, - "catalogname": { - "type": "char" - }, - "schemaname": { - "type": "char" - }, - "relname": { - "type": "char" - }, - "inh": { - "type": "bool" - }, - "relpersistence": { - "type": "char" - }, - "alias": { - "type": "Alias", - "nested": true - }, - "location": { - "type": "int" - } - }, - "TableFunc": { - "type": { - "type": "NodeTag", - "enum": true - }, - "ns_uris": { - "type": "List" - }, - "ns_names": { - "type": "List" - }, - "docexpr": { - "type": "Node" - }, - "rowexpr": { - "type": "Node" - }, - "colnames": { - "type": "List" - }, - "coltypes": { - "type": "List" - }, - "coltypmods": { - "type": "List" - }, - "colcollations": { - "type": "List" - }, - "colexprs": { - "type": "List" - }, - "coldefexprs": { - "type": "List" - }, - "notnulls": { - "type": "Bitmapset" - }, - "ordinalitycol": { - "type": "int" - }, - "location": { - "type": "int" - } - }, - "IntoClause": { - "type": { - "type": "NodeTag", - "enum": true - }, - "rel": { - "type": "RangeVar", - "nested": true - }, - "colNames": { - "type": "List" - }, - "accessMethod": { - "type": "char" - }, - "options": { - "type": "List" - }, - "onCommit": { - "type": "OnCommitAction", - "enum": true - }, - "tableSpaceName": { - "type": "char" - }, - "viewQuery": { - "type": "Node" - }, - "skipData": { - "type": "bool" - } - }, - "Expr": { - "type": { - "type": "NodeTag", - "enum": true - } - }, - "Var": { - "xpr": { - "type": "Expr", - "nested": true - }, - "varno": { - "type": "Index" - }, - "varattno": { - "type": "AttrNumber" - }, - "vartype": { - "type": "Oid" - }, - "vartypmod": { - "type": "int32" - }, - "varcollid": { - "type": "Oid" - }, - "varlevelsup": { - "type": "Index" - }, - "varnosyn": { - "type": "Index" - }, - "varattnosyn": { - "type": "AttrNumber" - }, - "location": { - "type": "int" - } - }, - "Const": { - "xpr": { - "type": "Expr", - "nested": true - }, - "consttype": { - "type": "Oid" - }, - "consttypmod": { - "type": "int32" - }, - "constcollid": { - "type": "Oid" - }, - "constlen": { - "type": "int" - }, - "constvalue": { - "type": "Datum" - }, - "constisnull": { - "type": "bool" - }, - "constbyval": { - "type": "bool" - }, - "location": { - "type": "int" - } - }, - "Param": { - "xpr": { - "type": "Expr", - "nested": true - }, - "paramkind": { - "type": "ParamKind", - "enum": true - }, - "paramid": { - "type": "int" - }, - "paramtype": { - "type": "Oid" - }, - "paramtypmod": { - "type": "int32" - }, - "paramcollid": { - "type": "Oid" - }, - "location": { - "type": "int" - } - }, - "Aggref": { - "xpr": { - "type": "Expr", - "nested": true - }, - "aggfnoid": { - "type": "Oid" - }, - "aggtype": { - "type": "Oid" - }, - "aggcollid": { - "type": "Oid" - }, - "inputcollid": { - "type": "Oid" - }, - "aggtranstype": { - "type": "Oid" - }, - "aggargtypes": { - "type": "List" - }, - "aggdirectargs": { - "type": "List" - }, - "args": { - "type": "List" - }, - "aggorder": { - "type": "List" - }, - "aggdistinct": { - "type": "List" - }, - "aggfilter": { - "type": "Expr", - "nested": true - }, - "aggstar": { - "type": "bool" - }, - "aggvariadic": { - "type": "bool" - }, - "aggkind": { - "type": "char" - }, - "agglevelsup": { - "type": "Index" - }, - "aggsplit": { - "type": "AggSplit", - "enum": true - }, - "location": { - "type": "int" - } - }, - "GroupingFunc": { - "xpr": { - "type": "Expr", - "nested": true - }, - "args": { - "type": "List" - }, - "refs": { - "type": "List" - }, - "cols": { - "type": "List" - }, - "agglevelsup": { - "type": "Index" - }, - "location": { - "type": "int" - } - }, - "WindowFunc": { - "xpr": { - "type": "Expr", - "nested": true - }, - "winfnoid": { - "type": "Oid" - }, - "wintype": { - "type": "Oid" - }, - "wincollid": { - "type": "Oid" - }, - "inputcollid": { - "type": "Oid" - }, - "args": { - "type": "List" - }, - "aggfilter": { - "type": "Expr", - "nested": true - }, - "winref": { - "type": "Index" - }, - "winstar": { - "type": "bool" - }, - "winagg": { - "type": "bool" - }, - "location": { - "type": "int" - } - }, - "SubscriptingRef": { - "xpr": { - "type": "Expr", - "nested": true - }, - "refcontainertype": { - "type": "Oid" - }, - "refelemtype": { - "type": "Oid" - }, - "reftypmod": { - "type": "int32" - }, - "refcollid": { - "type": "Oid" - }, - "refupperindexpr": { - "type": "List" - }, - "reflowerindexpr": { - "type": "List" - }, - "refexpr": { - "type": "Expr", - "nested": true - }, - "refassgnexpr": { - "type": "Expr", - "nested": true - } - }, - "FuncExpr": { - "xpr": { - "type": "Expr", - "nested": true - }, - "funcid": { - "type": "Oid" - }, - "funcresulttype": { - "type": "Oid" - }, - "funcretset": { - "type": "bool" - }, - "funcvariadic": { - "type": "bool" - }, - "funcformat": { - "type": "CoercionForm", - "enum": true - }, - "funccollid": { - "type": "Oid" - }, - "inputcollid": { - "type": "Oid" - }, - "args": { - "type": "List" - }, - "location": { - "type": "int" - } - }, - "NamedArgExpr": { - "xpr": { - "type": "Expr", - "nested": true - }, - "arg": { - "type": "Expr", - "nested": true - }, - "name": { - "type": "char" - }, - "argnumber": { - "type": "int" - }, - "location": { - "type": "int" - } - }, - "OpExpr": { - "xpr": { - "type": "Expr", - "nested": true - }, - "opno": { - "type": "Oid" - }, - "opfuncid": { - "type": "Oid" - }, - "opresulttype": { - "type": "Oid" - }, - "opretset": { - "type": "bool" - }, - "opcollid": { - "type": "Oid" - }, - "inputcollid": { - "type": "Oid" - }, - "args": { - "type": "List" - }, - "location": { - "type": "int" - } - }, - "ScalarArrayOpExpr": { - "xpr": { - "type": "Expr", - "nested": true - }, - "opno": { - "type": "Oid" - }, - "opfuncid": { - "type": "Oid" - }, - "useOr": { - "type": "bool" - }, - "inputcollid": { - "type": "Oid" - }, - "args": { - "type": "List" - }, - "location": { - "type": "int" - } - }, - "BoolExpr": { - "xpr": { - "type": "Expr", - "nested": true - }, - "boolop": { - "type": "BoolExprType", - "enum": true - }, - "args": { - "type": "List" - }, - "location": { - "type": "int" - } - }, - "SubLink": { - "xpr": { - "type": "Expr", - "nested": true - }, - "subLinkType": { - "type": "SubLinkType", - "enum": true - }, - "subLinkId": { - "type": "int" - }, - "testexpr": { - "type": "Node" - }, - "operName": { - "type": "List" - }, - "subselect": { - "type": "Node" - }, - "location": { - "type": "int" - } - }, - "SubPlan": { - "xpr": { - "type": "Expr", - "nested": true - }, - "subLinkType": { - "type": "SubLinkType", - "enum": true - }, - "testexpr": { - "type": "Node" - }, - "paramIds": { - "type": "List" - }, - "plan_id": { - "type": "int" - }, - "plan_name": { - "type": "char" - }, - "firstColType": { - "type": "Oid" - }, - "firstColTypmod": { - "type": "int32" - }, - "firstColCollation": { - "type": "Oid" - }, - "useHashTable": { - "type": "bool" - }, - "unknownEqFalse": { - "type": "bool" - }, - "parallel_safe": { - "type": "bool" - }, - "setParam": { - "type": "List" - }, - "parParam": { - "type": "List" - }, - "args": { - "type": "List" - }, - "startup_cost": { - "type": "Cost" - }, - "per_call_cost": { - "type": "Cost" - } - }, - "AlternativeSubPlan": { - "xpr": { - "type": "Expr", - "nested": true - }, - "subplans": { - "type": "List" - } - }, - "FieldSelect": { - "xpr": { - "type": "Expr", - "nested": true - }, - "arg": { - "type": "Expr", - "nested": true - }, - "fieldnum": { - "type": "AttrNumber" - }, - "resulttype": { - "type": "Oid" - }, - "resulttypmod": { - "type": "int32" - }, - "resultcollid": { - "type": "Oid" - } - }, - "FieldStore": { - "xpr": { - "type": "Expr", - "nested": true - }, - "arg": { - "type": "Expr", - "nested": true - }, - "newvals": { - "type": "List" - }, - "fieldnums": { - "type": "List" - }, - "resulttype": { - "type": "Oid" - } - }, - "RelabelType": { - "xpr": { - "type": "Expr", - "nested": true - }, - "arg": { - "type": "Expr", - "nested": true - }, - "resulttype": { - "type": "Oid" - }, - "resulttypmod": { - "type": "int32" - }, - "resultcollid": { - "type": "Oid" - }, - "relabelformat": { - "type": "CoercionForm", - "enum": true - }, - "location": { - "type": "int" - } - }, - "CoerceViaIO": { - "xpr": { - "type": "Expr", - "nested": true - }, - "arg": { - "type": "Expr", - "nested": true - }, - "resulttype": { - "type": "Oid" - }, - "resultcollid": { - "type": "Oid" - }, - "coerceformat": { - "type": "CoercionForm", - "enum": true - }, - "location": { - "type": "int" - } - }, - "ArrayCoerceExpr": { - "xpr": { - "type": "Expr", - "nested": true - }, - "arg": { - "type": "Expr", - "nested": true - }, - "elemexpr": { - "type": "Expr", - "nested": true - }, - "resulttype": { - "type": "Oid" - }, - "resulttypmod": { - "type": "int32" - }, - "resultcollid": { - "type": "Oid" - }, - "coerceformat": { - "type": "CoercionForm", - "enum": true - }, - "location": { - "type": "int" - } - }, - "ConvertRowtypeExpr": { - "xpr": { - "type": "Expr", - "nested": true - }, - "arg": { - "type": "Expr", - "nested": true - }, - "resulttype": { - "type": "Oid" - }, - "convertformat": { - "type": "CoercionForm", - "enum": true - }, - "location": { - "type": "int" - } - }, - "CollateExpr": { - "xpr": { - "type": "Expr", - "nested": true - }, - "arg": { - "type": "Expr", - "nested": true - }, - "collOid": { - "type": "Oid" - }, - "location": { - "type": "int" - } - }, - "CaseExpr": { - "xpr": { - "type": "Expr", - "nested": true - }, - "casetype": { - "type": "Oid" - }, - "casecollid": { - "type": "Oid" - }, - "arg": { - "type": "Expr", - "nested": true - }, - "args": { - "type": "List" - }, - "defresult": { - "type": "Expr", - "nested": true - }, - "location": { - "type": "int" - } - }, - "CaseWhen": { - "xpr": { - "type": "Expr", - "nested": true - }, - "expr": { - "type": "Expr", - "nested": true - }, - "result": { - "type": "Expr", - "nested": true - }, - "location": { - "type": "int" - } - }, - "CaseTestExpr": { - "xpr": { - "type": "Expr", - "nested": true - }, - "typeId": { - "type": "Oid" - }, - "typeMod": { - "type": "int32" - }, - "collation": { - "type": "Oid" - } - }, - "ArrayExpr": { - "xpr": { - "type": "Expr", - "nested": true - }, - "array_typeid": { - "type": "Oid" - }, - "array_collid": { - "type": "Oid" - }, - "element_typeid": { - "type": "Oid" - }, - "elements": { - "type": "List" - }, - "multidims": { - "type": "bool" - }, - "location": { - "type": "int" - } - }, - "RowExpr": { - "xpr": { - "type": "Expr", - "nested": true - }, - "args": { - "type": "List" - }, - "row_typeid": { - "type": "Oid" - }, - "row_format": { - "type": "CoercionForm", - "enum": true - }, - "colnames": { - "type": "List" - }, - "location": { - "type": "int" - } - }, - "RowCompareExpr": { - "xpr": { - "type": "Expr", - "nested": true - }, - "rctype": { - "type": "RowCompareType", - "enum": true - }, - "opnos": { - "type": "List" - }, - "opfamilies": { - "type": "List" - }, - "inputcollids": { - "type": "List" - }, - "largs": { - "type": "List" - }, - "rargs": { - "type": "List" - } - }, - "CoalesceExpr": { - "xpr": { - "type": "Expr", - "nested": true - }, - "coalescetype": { - "type": "Oid" - }, - "coalescecollid": { - "type": "Oid" - }, - "args": { - "type": "List" - }, - "location": { - "type": "int" - } - }, - "MinMaxExpr": { - "xpr": { - "type": "Expr", - "nested": true - }, - "minmaxtype": { - "type": "Oid" - }, - "minmaxcollid": { - "type": "Oid" - }, - "inputcollid": { - "type": "Oid" - }, - "op": { - "type": "MinMaxOp", - "enum": true - }, - "args": { - "type": "List" - }, - "location": { - "type": "int" - } - }, - "SQLValueFunction": { - "xpr": { - "type": "Expr", - "nested": true - }, - "op": { - "type": "SQLValueFunctionOp", - "enum": true - }, - "type": { - "type": "Oid" - }, - "typmod": { - "type": "int32" - }, - "location": { - "type": "int" - } - }, - "XmlExpr": { - "xpr": { - "type": "Expr", - "nested": true - }, - "op": { - "type": "XmlExprOp", - "enum": true - }, - "name": { - "type": "char" - }, - "named_args": { - "type": "List" - }, - "arg_names": { - "type": "List" - }, - "args": { - "type": "List" - }, - "xmloption": { - "type": "XmlOptionType", - "enum": true - }, - "type": { - "type": "Oid" - }, - "typmod": { - "type": "int32" - }, - "location": { - "type": "int" - } - }, - "NullTest": { - "xpr": { - "type": "Expr", - "nested": true - }, - "arg": { - "type": "Expr", - "nested": true - }, - "nulltesttype": { - "type": "NullTestType", - "enum": true - }, - "argisrow": { - "type": "bool" - }, - "location": { - "type": "int" - } - }, - "BooleanTest": { - "xpr": { - "type": "Expr", - "nested": true - }, - "arg": { - "type": "Expr", - "nested": true - }, - "booltesttype": { - "type": "BoolTestType", - "enum": true - }, - "location": { - "type": "int" - } - }, - "CoerceToDomain": { - "xpr": { - "type": "Expr", - "nested": true - }, - "arg": { - "type": "Expr", - "nested": true - }, - "resulttype": { - "type": "Oid" - }, - "resulttypmod": { - "type": "int32" - }, - "resultcollid": { - "type": "Oid" - }, - "coercionformat": { - "type": "CoercionForm", - "enum": true - }, - "location": { - "type": "int" - } - }, - "CoerceToDomainValue": { - "xpr": { - "type": "Expr", - "nested": true - }, - "typeId": { - "type": "Oid" - }, - "typeMod": { - "type": "int32" - }, - "collation": { - "type": "Oid" - }, - "location": { - "type": "int" - } - }, - "SetToDefault": { - "xpr": { - "type": "Expr", - "nested": true - }, - "typeId": { - "type": "Oid" - }, - "typeMod": { - "type": "int32" - }, - "collation": { - "type": "Oid" - }, - "location": { - "type": "int" - } - }, - "CurrentOfExpr": { - "xpr": { - "type": "Expr", - "nested": true - }, - "cvarno": { - "type": "Index" - }, - "cursor_name": { - "type": "char" - }, - "cursor_param": { - "type": "int" - } - }, - "NextValueExpr": { - "xpr": { - "type": "Expr", - "nested": true - }, - "seqid": { - "type": "Oid" - }, - "typeId": { - "type": "Oid" - } - }, - "InferenceElem": { - "xpr": { - "type": "Expr", - "nested": true - }, - "expr": { - "type": "Node" - }, - "infercollid": { - "type": "Oid" - }, - "inferopclass": { - "type": "Oid" - } - }, - "TargetEntry": { - "xpr": { - "type": "Expr", - "nested": true - }, - "expr": { - "type": "Expr", - "nested": true - }, - "resno": { - "type": "AttrNumber" - }, - "resname": { - "type": "char" - }, - "ressortgroupref": { - "type": "Index" - }, - "resorigtbl": { - "type": "Oid" - }, - "resorigcol": { - "type": "AttrNumber" - }, - "resjunk": { - "type": "bool" - } - }, - "RangeTblRef": { - "type": { - "type": "NodeTag", - "enum": true - }, - "rtindex": { - "type": "int" - } - }, - "JoinExpr": { - "type": { - "type": "NodeTag", - "enum": true - }, - "jointype": { - "type": "JoinType", - "enum": true - }, - "isNatural": { - "type": "bool" - }, - "larg": { - "type": "Node" - }, - "rarg": { - "type": "Node" - }, - "usingClause": { - "type": "List" - }, - "quals": { - "type": "Node" - }, - "alias": { - "type": "Alias", - "nested": true - }, - "rtindex": { - "type": "int" - } - }, - "FromExpr": { - "type": { - "type": "NodeTag", - "enum": true - }, - "fromlist": { - "type": "List" - }, - "quals": { - "type": "Node" - } - }, - "OnConflictExpr": { - "type": { - "type": "NodeTag", - "enum": true - }, - "action": { - "type": "OnConflictAction", - "enum": true - }, - "arbiterElems": { - "type": "List" - }, - "arbiterWhere": { - "type": "Node" - }, - "constraint": { - "type": "Oid" - }, - "onConflictSet": { - "type": "List" - }, - "onConflictWhere": { - "type": "Node" - }, - "exclRelIndex": { - "type": "int" - }, - "exclRelTlist": { - "type": "List" - } - }, - "Query": { - "type": { - "type": "NodeTag", - "enum": true - }, - "commandType": { - "type": "CmdType", - "enum": true - }, - "querySource": { - "type": "QuerySource", - "enum": true - }, - "queryId": { - "type": "uint64" - }, - "canSetTag": { - "type": "bool" - }, - "utilityStmt": { - "type": "Node" - }, - "resultRelation": { - "type": "int" - }, - "hasAggs": { - "type": "bool" - }, - "hasWindowFuncs": { - "type": "bool" - }, - "hasTargetSRFs": { - "type": "bool" - }, - "hasSubLinks": { - "type": "bool" - }, - "hasDistinctOn": { - "type": "bool" - }, - "hasRecursive": { - "type": "bool" - }, - "hasModifyingCTE": { - "type": "bool" - }, - "hasForUpdate": { - "type": "bool" - }, - "hasRowSecurity": { - "type": "bool" - }, - "cteList": { - "type": "List" - }, - "rtable": { - "type": "List" - }, - "jointree": { - "type": "FromExpr" - }, - "targetList": { - "type": "List" - }, - "override": { - "type": "OverridingKind", - "enum": true - }, - "onConflict": { - "type": "OnConflictExpr" - }, - "returningList": { - "type": "List" - }, - "groupClause": { - "type": "List" - }, - "groupingSets": { - "type": "List" - }, - "havingQual": { - "type": "Node" - }, - "windowClause": { - "type": "List" - }, - "distinctClause": { - "type": "List" - }, - "sortClause": { - "type": "List" - }, - "limitOffset": { - "type": "Node" - }, - "limitCount": { - "type": "Node" - }, - "limitOption": { - "type": "LimitOption", - "enum": true - }, - "rowMarks": { - "type": "List" - }, - "setOperations": { - "type": "Node" - }, - "constraintDeps": { - "type": "List" - }, - "withCheckOptions": { - "type": "List" - }, - "stmt_location": { - "type": "int" - }, - "stmt_len": { - "type": "int" - } - }, - "TypeName": { - "type": { - "type": "NodeTag", - "enum": true - }, - "names": { - "type": "List" - }, - "typeOid": { - "type": "Oid" - }, - "setof": { - "type": "bool" - }, - "pct_type": { - "type": "bool" - }, - "typmods": { - "type": "List" - }, - "typemod": { - "type": "int32" - }, - "arrayBounds": { - "type": "List" - }, - "location": { - "type": "int" - } - }, - "ColumnRef": { - "type": { - "type": "NodeTag", - "enum": true - }, - "fields": { - "type": "List" - }, - "location": { - "type": "int" - } - }, - "ParamRef": { - "type": { - "type": "NodeTag", - "enum": true - }, - "number": { - "type": "int" - }, - "location": { - "type": "int" - } - }, - "A_Expr": { - "type": { - "type": "NodeTag", - "enum": true - }, - "kind": { - "type": "A_Expr_Kind", - "enum": true - }, - "name": { - "type": "List" - }, - "lexpr": { - "type": "Node" - }, - "rexpr": { - "type": "Node" - }, - "location": { - "type": "int" - } - }, - "A_Const": { - "type": { - "type": "NodeTag", - "enum": true - }, - "val": { - "type": "Value" - }, - "location": { - "type": "int" - } - }, - "TypeCast": { - "type": { - "type": "NodeTag", - "enum": true - }, - "arg": { - "type": "Node" - }, - "typeName": { - "type": "TypeName", - "nested": true - }, - "location": { - "type": "int" - } - }, - "CollateClause": { - "type": { - "type": "NodeTag", - "enum": true - }, - "arg": { - "type": "Node" - }, - "collname": { - "type": "List" - }, - "location": { - "type": "int" - } - }, - "RoleSpec": { - "type": { - "type": "NodeTag", - "enum": true - }, - "roletype": { - "type": "RoleSpecType", - "enum": true - }, - "rolename": { - "type": "char" - }, - "location": { - "type": "int" - } - }, - "FuncCall": { - "type": { - "type": "NodeTag", - "enum": true - }, - "funcname": { - "type": "List" - }, - "args": { - "type": "List" - }, - "agg_order": { - "type": "List" - }, - "agg_filter": { - "type": "Node" - }, - "agg_within_group": { - "type": "bool" - }, - "agg_star": { - "type": "bool" - }, - "agg_distinct": { - "type": "bool" - }, - "func_variadic": { - "type": "bool" - }, - "over": { - "type": "WindowDef", - "nested": true - }, - "location": { - "type": "int" - } - }, - "A_Star": { - "type": { - "type": "NodeTag", - "enum": true - } - }, - "A_Indices": { - "type": { - "type": "NodeTag", - "enum": true - }, - "is_slice": { - "type": "bool" - }, - "lidx": { - "type": "Node" - }, - "uidx": { - "type": "Node" - } - }, - "A_Indirection": { - "type": { - "type": "NodeTag", - "enum": true - }, - "arg": { - "type": "Node" - }, - "indirection": { - "type": "List" - } - }, - "A_ArrayExpr": { - "type": { - "type": "NodeTag", - "enum": true - }, - "elements": { - "type": "List" - }, - "location": { - "type": "int" - } - }, - "ResTarget": { - "type": { - "type": "NodeTag", - "enum": true - }, - "name": { - "type": "char" - }, - "indirection": { - "type": "List" - }, - "val": { - "type": "Node" - }, - "location": { - "type": "int" - } - }, - "MultiAssignRef": { - "type": { - "type": "NodeTag", - "enum": true - }, - "source": { - "type": "Node" - }, - "colno": { - "type": "int" - }, - "ncolumns": { - "type": "int" - } - }, - "SortBy": { - "type": { - "type": "NodeTag", - "enum": true - }, - "node": { - "type": "Node" - }, - "sortby_dir": { - "type": "SortByDir", - "enum": true - }, - "sortby_nulls": { - "type": "SortByNulls", - "enum": true - }, - "useOp": { - "type": "List" - }, - "location": { - "type": "int" - } - }, - "WindowDef": { - "type": { - "type": "NodeTag", - "enum": true - }, - "name": { - "type": "char" - }, - "refname": { - "type": "char" - }, - "partitionClause": { - "type": "List" - }, - "orderClause": { - "type": "List" - }, - "frameOptions": { - "type": "int" - }, - "startOffset": { - "type": "Node" - }, - "endOffset": { - "type": "Node" - }, - "location": { - "type": "int" - } - }, - "RangeSubselect": { - "type": { - "type": "NodeTag", - "enum": true - }, - "lateral": { - "type": "bool" - }, - "subquery": { - "type": "Node" - }, - "alias": { - "type": "Alias" - } - }, - "RangeFunction": { - "type": { - "type": "NodeTag", - "enum": true - }, - "lateral": { - "type": "bool" - }, - "ordinality": { - "type": "bool" - }, - "is_rowsfrom": { - "type": "bool" - }, - "functions": { - "type": "List" - }, - "alias": { - "type": "Alias" - }, - "coldeflist": { - "type": "List" - } - }, - "RangeTableFunc": { - "type": { - "type": "NodeTag", - "enum": true - }, - "lateral": { - "type": "bool" - }, - "docexpr": { - "type": "Node" - }, - "rowexpr": { - "type": "Node" - }, - "namespaces": { - "type": "List" - }, - "columns": { - "type": "List" - }, - "alias": { - "type": "Alias" - }, - "location": { - "type": "int" - } - }, - "RangeTableFuncCol": { - "type": { - "type": "NodeTag", - "enum": true - }, - "colname": { - "type": "char" - }, - "typeName": { - "type": "TypeName", - "nested": true - }, - "for_ordinality": { - "type": "bool" - }, - "is_not_null": { - "type": "bool" - }, - "colexpr": { - "type": "Node" - }, - "coldefexpr": { - "type": "Node" - }, - "location": { - "type": "int" - } - }, - "RangeTableSample": { - "type": { - "type": "NodeTag", - "enum": true - }, - "relation": { - "type": "Node" - }, - "method": { - "type": "List" - }, - "args": { - "type": "List" - }, - "repeatable": { - "type": "Node" - }, - "location": { - "type": "int" - } - }, - "ColumnDef": { - "type": { - "type": "NodeTag", - "enum": true - }, - "colname": { - "type": "char" - }, - "typeName": { - "type": "TypeName", - "nested": true - }, - "inhcount": { - "type": "int" - }, - "is_local": { - "type": "bool" - }, - "is_not_null": { - "type": "bool" - }, - "is_from_type": { - "type": "bool" - }, - "storage": { - "type": "char" - }, - "raw_default": { - "type": "Node" - }, - "cooked_default": { - "type": "Node" - }, - "identity": { - "type": "char" - }, - "identitySequence": { - "type": "RangeVar" - }, - "generated": { - "type": "char" - }, - "collClause": { - "type": "CollateClause", - "nested": true - }, - "collOid": { - "type": "Oid" - }, - "constraints": { - "type": "List" - }, - "fdwoptions": { - "type": "List" - }, - "location": { - "type": "int" - } - }, - "TableLikeClause": { - "type": { - "type": "NodeTag", - "enum": true - }, - "relation": { - "type": "RangeVar" - }, - "options": { - "type": "bits32" - } - }, - "IndexElem": { - "type": { - "type": "NodeTag", - "enum": true - }, - "name": { - "type": "char" - }, - "expr": { - "type": "Node" - }, - "indexcolname": { - "type": "char" - }, - "collation": { - "type": "List" - }, - "opclass": { - "type": "List" - }, - "opclassopts": { - "type": "List" - }, - "ordering": { - "type": "SortByDir", - "enum": true - }, - "nulls_ordering": { - "type": "SortByNulls", - "enum": true - } - }, - "DefElem": { - "type": { - "type": "NodeTag", - "enum": true - }, - "defnamespace": { - "type": "char" - }, - "defname": { - "type": "char" - }, - "arg": { - "type": "Node" - }, - "defaction": { - "type": "DefElemAction", - "enum": true - }, - "location": { - "type": "int" - } - }, - "LockingClause": { - "type": { - "type": "NodeTag", - "enum": true - }, - "lockedRels": { - "type": "List" - }, - "strength": { - "type": "LockClauseStrength", - "enum": true - }, - "waitPolicy": { - "type": "LockWaitPolicy", - "enum": true - } - }, - "XmlSerialize": { - "type": { - "type": "NodeTag", - "enum": true - }, - "xmloption": { - "type": "XmlOptionType", - "enum": true - }, - "expr": { - "type": "Node" - }, - "typeName": { - "type": "TypeName", - "nested": true - }, - "location": { - "type": "int" - } - }, - "PartitionElem": { - "type": { - "type": "NodeTag", - "enum": true - }, - "name": { - "type": "char" - }, - "expr": { - "type": "Node" - }, - "collation": { - "type": "List" - }, - "opclass": { - "type": "List" - }, - "location": { - "type": "int" - } - }, - "PartitionSpec": { - "type": { - "type": "NodeTag", - "enum": true - }, - "strategy": { - "type": "char" - }, - "partParams": { - "type": "List" - }, - "location": { - "type": "int" - } - }, - "PartitionBoundSpec": { - "type": { - "type": "NodeTag", - "enum": true - }, - "strategy": { - "type": "char" - }, - "is_default": { - "type": "bool" - }, - "modulus": { - "type": "int" - }, - "remainder": { - "type": "int" - }, - "listdatums": { - "type": "List" - }, - "lowerdatums": { - "type": "List" - }, - "upperdatums": { - "type": "List" - }, - "location": { - "type": "int" - } - }, - "PartitionRangeDatum": { - "type": { - "type": "NodeTag", - "enum": true - }, - "kind": { - "type": "PartitionRangeDatumKind", - "enum": true - }, - "value": { - "type": "Node" - }, - "location": { - "type": "int" - } - }, - "PartitionCmd": { - "type": { - "type": "NodeTag", - "enum": true - }, - "name": { - "type": "RangeVar" - }, - "bound": { - "type": "PartitionBoundSpec", - "nested": true - } - }, - "RangeTblEntry": { - "type": { - "type": "NodeTag", - "enum": true - }, - "rtekind": { - "type": "RTEKind", - "enum": true - }, - "relid": { - "type": "Oid" - }, - "relkind": { - "type": "char" - }, - "rellockmode": { - "type": "int" - }, - "tablesample": { - "type": "TableSampleClause", - "nested": true - }, - "subquery": { - "type": "Query", - "nested": true - }, - "security_barrier": { - "type": "bool" - }, - "jointype": { - "type": "JoinType", - "enum": true - }, - "joinmergedcols": { - "type": "int" - }, - "joinaliasvars": { - "type": "List" - }, - "joinleftcols": { - "type": "List" - }, - "joinrightcols": { - "type": "List" - }, - "functions": { - "type": "List" - }, - "funcordinality": { - "type": "bool" - }, - "tablefunc": { - "type": "TableFunc" - }, - "values_lists": { - "type": "List" - }, - "ctename": { - "type": "char" - }, - "ctelevelsup": { - "type": "Index" - }, - "self_reference": { - "type": "bool" - }, - "coltypes": { - "type": "List" - }, - "coltypmods": { - "type": "List" - }, - "colcollations": { - "type": "List" - }, - "enrname": { - "type": "char" - }, - "enrtuples": { - "type": "double" - }, - "alias": { - "type": "Alias" - }, - "eref": { - "type": "Alias" - }, - "lateral": { - "type": "bool" - }, - "inh": { - "type": "bool" - }, - "inFromCl": { - "type": "bool" - }, - "requiredPerms": { - "type": "AclMode" - }, - "checkAsUser": { - "type": "Oid" - }, - "selectedCols": { - "type": "Bitmapset" - }, - "insertedCols": { - "type": "Bitmapset" - }, - "updatedCols": { - "type": "Bitmapset" - }, - "extraUpdatedCols": { - "type": "Bitmapset" - }, - "securityQuals": { - "type": "List" - } - }, - "RangeTblFunction": { - "type": { - "type": "NodeTag", - "enum": true - }, - "funcexpr": { - "type": "Node" - }, - "funccolcount": { - "type": "int" - }, - "funccolnames": { - "type": "List" - }, - "funccoltypes": { - "type": "List" - }, - "funccoltypmods": { - "type": "List" - }, - "funccolcollations": { - "type": "List" - }, - "funcparams": { - "type": "Bitmapset" - } - }, - "TableSampleClause": { - "type": { - "type": "NodeTag", - "enum": true - }, - "tsmhandler": { - "type": "Oid" - }, - "args": { - "type": "List" - }, - "repeatable": { - "type": "Expr" - } - }, - "WithCheckOption": { - "type": { - "type": "NodeTag", - "enum": true - }, - "kind": { - "type": "WCOKind", - "enum": true - }, - "relname": { - "type": "char" - }, - "polname": { - "type": "char" - }, - "qual": { - "type": "Node" - }, - "cascaded": { - "type": "bool" - } - }, - "SortGroupClause": { - "type": { - "type": "NodeTag", - "enum": true - }, - "tleSortGroupRef": { - "type": "Index" - }, - "eqop": { - "type": "Oid" - }, - "sortop": { - "type": "Oid" - }, - "nulls_first": { - "type": "bool" - }, - "hashable": { - "type": "bool" - } - }, - "GroupingSet": { - "type": { - "type": "NodeTag", - "enum": true - }, - "kind": { - "type": "GroupingSetKind", - "enum": true - }, - "content": { - "type": "List" - }, - "location": { - "type": "int" - } - }, - "WindowClause": { - "type": { - "type": "NodeTag", - "enum": true - }, - "name": { - "type": "char" - }, - "refname": { - "type": "char" - }, - "partitionClause": { - "type": "List" - }, - "orderClause": { - "type": "List" - }, - "frameOptions": { - "type": "int" - }, - "startOffset": { - "type": "Node" - }, - "endOffset": { - "type": "Node" - }, - "startInRangeFunc": { - "type": "Oid" - }, - "endInRangeFunc": { - "type": "Oid" - }, - "inRangeColl": { - "type": "Oid" - }, - "inRangeAsc": { - "type": "bool" - }, - "inRangeNullsFirst": { - "type": "bool" - }, - "winref": { - "type": "Index" - }, - "copiedOrder": { - "type": "bool" - } - }, - "RowMarkClause": { - "type": { - "type": "NodeTag", - "enum": true - }, - "rti": { - "type": "Index" - }, - "strength": { - "type": "LockClauseStrength", - "enum": true - }, - "waitPolicy": { - "type": "LockWaitPolicy", - "enum": true - }, - "pushedDown": { - "type": "bool" - } - }, - "WithClause": { - "type": { - "type": "NodeTag", - "enum": true - }, - "ctes": { - "type": "List" - }, - "recursive": { - "type": "bool" - }, - "location": { - "type": "int" - } - }, - "InferClause": { - "type": { - "type": "NodeTag", - "enum": true - }, - "indexElems": { - "type": "List" - }, - "whereClause": { - "type": "Node" - }, - "conname": { - "type": "char" - }, - "location": { - "type": "int" - } - }, - "OnConflictClause": { - "type": { - "type": "NodeTag", - "enum": true - }, - "action": { - "type": "OnConflictAction", - "enum": true - }, - "infer": { - "type": "InferClause", - "nested": true - }, - "targetList": { - "type": "List" - }, - "whereClause": { - "type": "Node" - }, - "location": { - "type": "int" - } - }, - "CommonTableExpr": { - "type": { - "type": "NodeTag", - "enum": true - }, - "ctename": { - "type": "char" - }, - "aliascolnames": { - "type": "List" - }, - "ctematerialized": { - "type": "CTEMaterialize", - "enum": true - }, - "ctequery": { - "type": "Node" - }, - "location": { - "type": "int" - }, - "cterecursive": { - "type": "bool" - }, - "cterefcount": { - "type": "int" - }, - "ctecolnames": { - "type": "List" - }, - "ctecoltypes": { - "type": "List" - }, - "ctecoltypmods": { - "type": "List" - }, - "ctecolcollations": { - "type": "List" - } - }, - "TriggerTransition": { - "type": { - "type": "NodeTag", - "enum": true - }, - "name": { - "type": "char" - }, - "isNew": { - "type": "bool" - }, - "isTable": { - "type": "bool" - } - }, - "RawStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "stmt": { - "type": "Node" - }, - "stmt_location": { - "type": "int" - }, - "stmt_len": { - "type": "int" - } - }, - "InsertStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "relation": { - "type": "RangeVar" - }, - "cols": { - "type": "List" - }, - "selectStmt": { - "type": "Node" - }, - "onConflictClause": { - "type": "OnConflictClause", - "nested": true - }, - "returningList": { - "type": "List" - }, - "withClause": { - "type": "WithClause", - "nested": true - }, - "override": { - "type": "OverridingKind", - "enum": true - } - }, - "DeleteStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "relation": { - "type": "RangeVar" - }, - "usingClause": { - "type": "List" - }, - "whereClause": { - "type": "Node" - }, - "returningList": { - "type": "List" - }, - "withClause": { - "type": "WithClause", - "nested": true - } - }, - "UpdateStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "relation": { - "type": "RangeVar" - }, - "targetList": { - "type": "List" - }, - "whereClause": { - "type": "Node" - }, - "fromClause": { - "type": "List" - }, - "returningList": { - "type": "List" - }, - "withClause": { - "type": "WithClause", - "nested": true - } - }, - "SelectStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "distinctClause": { - "type": "List" - }, - "intoClause": { - "type": "IntoClause" - }, - "targetList": { - "type": "List" - }, - "fromClause": { - "type": "List" - }, - "whereClause": { - "type": "Node" - }, - "groupClause": { - "type": "List" - }, - "havingClause": { - "type": "Node" - }, - "windowClause": { - "type": "List" - }, - "valuesLists": { - "type": "List" - }, - "sortClause": { - "type": "List" - }, - "limitOffset": { - "type": "Node" - }, - "limitCount": { - "type": "Node" - }, - "limitOption": { - "type": "LimitOption", - "enum": true - }, - "lockingClause": { - "type": "List" - }, - "withClause": { - "type": "WithClause", - "nested": true - }, - "op": { - "type": "SetOperation", - "enum": true - }, - "all": { - "type": "bool" - }, - "larg": { - "type": "SelectStmt", - "nested": true - }, - "rarg": { - "type": "SelectStmt", - "nested": true - } - }, - "SetOperationStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "op": { - "type": "SetOperation", - "enum": true - }, - "all": { - "type": "bool" - }, - "larg": { - "type": "Node" - }, - "rarg": { - "type": "Node" - }, - "colTypes": { - "type": "List" - }, - "colTypmods": { - "type": "List" - }, - "colCollations": { - "type": "List" - }, - "groupClauses": { - "type": "List" - } - }, - "CreateSchemaStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "schemaname": { - "type": "char" - }, - "authrole": { - "type": "RoleSpec", - "nested": true - }, - "schemaElts": { - "type": "List" - }, - "if_not_exists": { - "type": "bool" - } - }, - "AlterTableStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "relation": { - "type": "RangeVar" - }, - "cmds": { - "type": "List" - }, - "relkind": { - "type": "ObjectType", - "enum": true - }, - "missing_ok": { - "type": "bool" - } - }, - "ReplicaIdentityStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "identity_type": { - "type": "char" - }, - "name": { - "type": "char" - } - }, - "AlterTableCmd": { - "type": { - "type": "NodeTag", - "enum": true - }, - "subtype": { - "type": "AlterTableType", - "enum": true - }, - "name": { - "type": "char" - }, - "num": { - "type": "int16" - }, - "newowner": { - "type": "RoleSpec", - "nested": true - }, - "def": { - "type": "Node" - }, - "behavior": { - "type": "DropBehavior", - "enum": true - }, - "missing_ok": { - "type": "bool" - } - }, - "AlterCollationStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "collname": { - "type": "List" - } - }, - "AlterDomainStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "subtype": { - "type": "char" - }, - "typeName": { - "type": "List" - }, - "name": { - "type": "char" - }, - "def": { - "type": "Node" - }, - "behavior": { - "type": "DropBehavior", - "enum": true - }, - "missing_ok": { - "type": "bool" - } - }, - "GrantStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "is_grant": { - "type": "bool" - }, - "targtype": { - "type": "GrantTargetType", - "enum": true - }, - "objtype": { - "type": "ObjectType", - "enum": true - }, - "objects": { - "type": "List" - }, - "privileges": { - "type": "List" - }, - "grantees": { - "type": "List" - }, - "grant_option": { - "type": "bool" - }, - "behavior": { - "type": "DropBehavior", - "enum": true - } - }, - "ObjectWithArgs": { - "type": { - "type": "NodeTag", - "enum": true - }, - "objname": { - "type": "List" - }, - "objargs": { - "type": "List" - }, - "args_unspecified": { - "type": "bool" - } - }, - "AccessPriv": { - "type": { - "type": "NodeTag", - "enum": true - }, - "priv_name": { - "type": "char" - }, - "cols": { - "type": "List" - } - }, - "GrantRoleStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "granted_roles": { - "type": "List" - }, - "grantee_roles": { - "type": "List" - }, - "is_grant": { - "type": "bool" - }, - "admin_opt": { - "type": "bool" - }, - "grantor": { - "type": "RoleSpec", - "nested": true - }, - "behavior": { - "type": "DropBehavior", - "enum": true - } - }, - "AlterDefaultPrivilegesStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "options": { - "type": "List" - }, - "action": { - "type": "GrantStmt", - "nested": true - } - }, - "CopyStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "relation": { - "type": "RangeVar" - }, - "query": { - "type": "Node" - }, - "attlist": { - "type": "List" - }, - "is_from": { - "type": "bool" - }, - "is_program": { - "type": "bool" - }, - "filename": { - "type": "char" - }, - "options": { - "type": "List" - }, - "whereClause": { - "type": "Node" - } - }, - "VariableSetStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "kind": { - "type": "VariableSetKind", - "enum": true - }, - "name": { - "type": "char" - }, - "args": { - "type": "List" - }, - "is_local": { - "type": "bool" - } - }, - "VariableShowStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "name": { - "type": "char" - } - }, - "CreateStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "relation": { - "type": "RangeVar" - }, - "tableElts": { - "type": "List" - }, - "inhRelations": { - "type": "List" - }, - "partbound": { - "type": "PartitionBoundSpec", - "nested": true - }, - "partspec": { - "type": "PartitionSpec", - "nested": true - }, - "ofTypename": { - "type": "TypeName", - "nested": true - }, - "constraints": { - "type": "List" - }, - "options": { - "type": "List" - }, - "oncommit": { - "type": "OnCommitAction", - "enum": true - }, - "tablespacename": { - "type": "char" - }, - "accessMethod": { - "type": "char" - }, - "if_not_exists": { - "type": "bool" - } - }, - "Constraint": { - "type": { - "type": "NodeTag", - "enum": true - }, - "contype": { - "type": "ConstrType", - "enum": true - }, - "conname": { - "type": "char" - }, - "deferrable": { - "type": "bool" - }, - "initdeferred": { - "type": "bool" - }, - "location": { - "type": "int" - }, - "is_no_inherit": { - "type": "bool" - }, - "raw_expr": { - "type": "Node" - }, - "cooked_expr": { - "type": "char" - }, - "generated_when": { - "type": "char" - }, - "keys": { - "type": "List" - }, - "including": { - "type": "List" - }, - "exclusions": { - "type": "List" - }, - "options": { - "type": "List" - }, - "indexname": { - "type": "char" - }, - "indexspace": { - "type": "char" - }, - "reset_default_tblspc": { - "type": "bool" - }, - "access_method": { - "type": "char" - }, - "where_clause": { - "type": "Node" - }, - "pktable": { - "type": "RangeVar" - }, - "fk_attrs": { - "type": "List" - }, - "pk_attrs": { - "type": "List" - }, - "fk_matchtype": { - "type": "char" - }, - "fk_upd_action": { - "type": "char" - }, - "fk_del_action": { - "type": "char" - }, - "old_conpfeqop": { - "type": "List" - }, - "old_pktable_oid": { - "type": "Oid" - }, - "skip_validation": { - "type": "bool" - }, - "initially_valid": { - "type": "bool" - } - }, - "CreateTableSpaceStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "tablespacename": { - "type": "char" - }, - "owner": { - "type": "RoleSpec", - "nested": true - }, - "location": { - "type": "char" - }, - "options": { - "type": "List" - } - }, - "DropTableSpaceStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "tablespacename": { - "type": "char" - }, - "missing_ok": { - "type": "bool" - } - }, - "AlterTableSpaceOptionsStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "tablespacename": { - "type": "char" - }, - "options": { - "type": "List" - }, - "isReset": { - "type": "bool" - } - }, - "AlterTableMoveAllStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "orig_tablespacename": { - "type": "char" - }, - "objtype": { - "type": "ObjectType", - "enum": true - }, - "roles": { - "type": "List" - }, - "new_tablespacename": { - "type": "char" - }, - "nowait": { - "type": "bool" - } - }, - "CreateExtensionStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "extname": { - "type": "char" - }, - "if_not_exists": { - "type": "bool" - }, - "options": { - "type": "List" - } - }, - "AlterExtensionStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "extname": { - "type": "char" - }, - "options": { - "type": "List" - } - }, - "AlterExtensionContentsStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "extname": { - "type": "char" - }, - "action": { - "type": "int" - }, - "objtype": { - "type": "ObjectType", - "enum": true - }, - "object": { - "type": "Node" - } - }, - "CreateFdwStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "fdwname": { - "type": "char" - }, - "func_options": { - "type": "List" - }, - "options": { - "type": "List" - } - }, - "AlterFdwStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "fdwname": { - "type": "char" - }, - "func_options": { - "type": "List" - }, - "options": { - "type": "List" - } - }, - "CreateForeignServerStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "servername": { - "type": "char" - }, - "servertype": { - "type": "char" - }, - "version": { - "type": "char" - }, - "fdwname": { - "type": "char" - }, - "if_not_exists": { - "type": "bool" - }, - "options": { - "type": "List" - } - }, - "AlterForeignServerStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "servername": { - "type": "char" - }, - "version": { - "type": "char" - }, - "options": { - "type": "List" - }, - "has_version": { - "type": "bool" - } - }, - "CreateForeignTableStmt": { - "base": { - "type": "CreateStmt", - "nested": true - }, - "servername": { - "type": "char" - }, - "options": { - "type": "List" - } - }, - "CreateUserMappingStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "user": { - "type": "RoleSpec", - "nested": true - }, - "servername": { - "type": "char" - }, - "if_not_exists": { - "type": "bool" - }, - "options": { - "type": "List" - } - }, - "AlterUserMappingStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "user": { - "type": "RoleSpec", - "nested": true - }, - "servername": { - "type": "char" - }, - "options": { - "type": "List" - } - }, - "DropUserMappingStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "user": { - "type": "RoleSpec", - "nested": true - }, - "servername": { - "type": "char" - }, - "missing_ok": { - "type": "bool" - } - }, - "ImportForeignSchemaStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "server_name": { - "type": "char" - }, - "remote_schema": { - "type": "char" - }, - "local_schema": { - "type": "char" - }, - "list_type": { - "type": "ImportForeignSchemaType", - "enum": true - }, - "table_list": { - "type": "List" - }, - "options": { - "type": "List" - } - }, - "CreatePolicyStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "policy_name": { - "type": "char" - }, - "table": { - "type": "RangeVar" - }, - "cmd_name": { - "type": "char" - }, - "permissive": { - "type": "bool" - }, - "roles": { - "type": "List" - }, - "qual": { - "type": "Node" - }, - "with_check": { - "type": "Node" - } - }, - "AlterPolicyStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "policy_name": { - "type": "char" - }, - "table": { - "type": "RangeVar" - }, - "roles": { - "type": "List" - }, - "qual": { - "type": "Node" - }, - "with_check": { - "type": "Node" - } - }, - "CreateAmStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "amname": { - "type": "char" - }, - "handler_name": { - "type": "List" - }, - "amtype": { - "type": "char" - } - }, - "CreateTrigStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "trigname": { - "type": "char" - }, - "relation": { - "type": "RangeVar" - }, - "funcname": { - "type": "List" - }, - "args": { - "type": "List" - }, - "row": { - "type": "bool" - }, - "timing": { - "type": "int16" - }, - "events": { - "type": "int16" - }, - "columns": { - "type": "List" - }, - "whenClause": { - "type": "Node" - }, - "isconstraint": { - "type": "bool" - }, - "transitionRels": { - "type": "List" - }, - "deferrable": { - "type": "bool" - }, - "initdeferred": { - "type": "bool" - }, - "constrrel": { - "type": "RangeVar" - } - }, - "CreateEventTrigStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "trigname": { - "type": "char" - }, - "eventname": { - "type": "char" - }, - "whenclause": { - "type": "List" - }, - "funcname": { - "type": "List" - } - }, - "AlterEventTrigStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "trigname": { - "type": "char" - }, - "tgenabled": { - "type": "char" - } - }, - "CreatePLangStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "replace": { - "type": "bool" - }, - "plname": { - "type": "char" - }, - "plhandler": { - "type": "List" - }, - "plinline": { - "type": "List" - }, - "plvalidator": { - "type": "List" - }, - "pltrusted": { - "type": "bool" - } - }, - "CreateRoleStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "stmt_type": { - "type": "RoleStmtType", - "enum": true - }, - "role": { - "type": "char" - }, - "options": { - "type": "List" - } - }, - "AlterRoleStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "role": { - "type": "RoleSpec", - "nested": true - }, - "options": { - "type": "List" - }, - "action": { - "type": "int" - } - }, - "AlterRoleSetStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "role": { - "type": "RoleSpec", - "nested": true - }, - "database": { - "type": "char" - }, - "setstmt": { - "type": "VariableSetStmt", - "nested": true - } - }, - "DropRoleStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "roles": { - "type": "List" - }, - "missing_ok": { - "type": "bool" - } - }, - "CreateSeqStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "sequence": { - "type": "RangeVar" - }, - "options": { - "type": "List" - }, - "ownerId": { - "type": "Oid" - }, - "for_identity": { - "type": "bool" - }, - "if_not_exists": { - "type": "bool" - } - }, - "AlterSeqStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "sequence": { - "type": "RangeVar" - }, - "options": { - "type": "List" - }, - "for_identity": { - "type": "bool" - }, - "missing_ok": { - "type": "bool" - } - }, - "DefineStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "kind": { - "type": "ObjectType", - "enum": true - }, - "oldstyle": { - "type": "bool" - }, - "defnames": { - "type": "List" - }, - "args": { - "type": "List" - }, - "definition": { - "type": "List" - }, - "if_not_exists": { - "type": "bool" - }, - "replace": { - "type": "bool" - } - }, - "CreateDomainStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "domainname": { - "type": "List" - }, - "typeName": { - "type": "TypeName", - "nested": true - }, - "collClause": { - "type": "CollateClause", - "nested": true - }, - "constraints": { - "type": "List" - } - }, - "CreateOpClassStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "opclassname": { - "type": "List" - }, - "opfamilyname": { - "type": "List" - }, - "amname": { - "type": "char" - }, - "datatype": { - "type": "TypeName", - "nested": true - }, - "items": { - "type": "List" - }, - "isDefault": { - "type": "bool" - } - }, - "CreateOpClassItem": { - "type": { - "type": "NodeTag", - "enum": true - }, - "itemtype": { - "type": "int" - }, - "name": { - "type": "ObjectWithArgs", - "nested": true - }, - "number": { - "type": "int" - }, - "order_family": { - "type": "List" - }, - "class_args": { - "type": "List" - }, - "storedtype": { - "type": "TypeName", - "nested": true - } - }, - "CreateOpFamilyStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "opfamilyname": { - "type": "List" - }, - "amname": { - "type": "char" - } - }, - "AlterOpFamilyStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "opfamilyname": { - "type": "List" - }, - "amname": { - "type": "char" - }, - "isDrop": { - "type": "bool" - }, - "items": { - "type": "List" - } - }, - "DropStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "objects": { - "type": "List" - }, - "removeType": { - "type": "ObjectType", - "enum": true - }, - "behavior": { - "type": "DropBehavior", - "enum": true - }, - "missing_ok": { - "type": "bool" - }, - "concurrent": { - "type": "bool" - } - }, - "TruncateStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "relations": { - "type": "List" - }, - "restart_seqs": { - "type": "bool" - }, - "behavior": { - "type": "DropBehavior", - "enum": true - } - }, - "CommentStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "objtype": { - "type": "ObjectType", - "enum": true - }, - "object": { - "type": "Node" - }, - "comment": { - "type": "char" - } - }, - "SecLabelStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "objtype": { - "type": "ObjectType", - "enum": true - }, - "object": { - "type": "Node" - }, - "provider": { - "type": "char" - }, - "label": { - "type": "char" - } - }, - "DeclareCursorStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "portalname": { - "type": "char" - }, - "options": { - "type": "int" - }, - "query": { - "type": "Node" - } - }, - "ClosePortalStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "portalname": { - "type": "char" - } - }, - "FetchStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "direction": { - "type": "FetchDirection", - "enum": true - }, - "howMany": { - "type": "long" - }, - "portalname": { - "type": "char" - }, - "ismove": { - "type": "bool" - } - }, - "IndexStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "idxname": { - "type": "char" - }, - "relation": { - "type": "RangeVar" - }, - "accessMethod": { - "type": "char" - }, - "tableSpace": { - "type": "char" - }, - "indexParams": { - "type": "List" - }, - "indexIncludingParams": { - "type": "List" - }, - "options": { - "type": "List" - }, - "whereClause": { - "type": "Node" - }, - "excludeOpNames": { - "type": "List" - }, - "idxcomment": { - "type": "char" - }, - "indexOid": { - "type": "Oid" - }, - "oldNode": { - "type": "Oid" - }, - "oldCreateSubid": { - "type": "SubTransactionId" - }, - "oldFirstRelfilenodeSubid": { - "type": "SubTransactionId" - }, - "unique": { - "type": "bool" - }, - "primary": { - "type": "bool" - }, - "isconstraint": { - "type": "bool" - }, - "deferrable": { - "type": "bool" - }, - "initdeferred": { - "type": "bool" - }, - "transformed": { - "type": "bool" - }, - "concurrent": { - "type": "bool" - }, - "if_not_exists": { - "type": "bool" - }, - "reset_default_tblspc": { - "type": "bool" - } - }, - "CreateStatsStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "defnames": { - "type": "List" - }, - "stat_types": { - "type": "List" - }, - "exprs": { - "type": "List" - }, - "relations": { - "type": "List" - }, - "stxcomment": { - "type": "char" - }, - "if_not_exists": { - "type": "bool" - } - }, - "AlterStatsStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "defnames": { - "type": "List" - }, - "stxstattarget": { - "type": "int" - }, - "missing_ok": { - "type": "bool" - } - }, - "CreateFunctionStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "is_procedure": { - "type": "bool" - }, - "replace": { - "type": "bool" - }, - "funcname": { - "type": "List" - }, - "parameters": { - "type": "List" - }, - "returnType": { - "type": "TypeName", - "nested": true - }, - "options": { - "type": "List" - } - }, - "FunctionParameter": { - "type": { - "type": "NodeTag", - "enum": true - }, - "name": { - "type": "char" - }, - "argType": { - "type": "TypeName", - "nested": true - }, - "mode": { - "type": "FunctionParameterMode", - "enum": true - }, - "defexpr": { - "type": "Node" - } - }, - "AlterFunctionStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "objtype": { - "type": "ObjectType", - "enum": true - }, - "func": { - "type": "ObjectWithArgs", - "nested": true - }, - "actions": { - "type": "List" - } - }, - "DoStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "args": { - "type": "List" - } - }, - "InlineCodeBlock": { - "type": { - "type": "NodeTag", - "enum": true - }, - "source_text": { - "type": "char" - }, - "langOid": { - "type": "Oid" - }, - "langIsTrusted": { - "type": "bool" - }, - "atomic": { - "type": "bool" - } - }, - "CallStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "funccall": { - "type": "FuncCall", - "nested": true - }, - "funcexpr": { - "type": "FuncExpr" - } - }, - "CallContext": { - "type": { - "type": "NodeTag", - "enum": true - }, - "atomic": { - "type": "bool" - } - }, - "RenameStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "renameType": { - "type": "ObjectType", - "enum": true - }, - "relationType": { - "type": "ObjectType", - "enum": true - }, - "relation": { - "type": "RangeVar" - }, - "object": { - "type": "Node" - }, - "subname": { - "type": "char" - }, - "newname": { - "type": "char" - }, - "behavior": { - "type": "DropBehavior", - "enum": true - }, - "missing_ok": { - "type": "bool" - } - }, - "AlterObjectDependsStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "objectType": { - "type": "ObjectType", - "enum": true - }, - "relation": { - "type": "RangeVar" - }, - "object": { - "type": "Node" - }, - "extname": { - "type": "Value" - }, - "remove": { - "type": "bool" - } - }, - "AlterObjectSchemaStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "objectType": { - "type": "ObjectType", - "enum": true - }, - "relation": { - "type": "RangeVar" - }, - "object": { - "type": "Node" - }, - "newschema": { - "type": "char" - }, - "missing_ok": { - "type": "bool" - } - }, - "AlterOwnerStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "objectType": { - "type": "ObjectType", - "enum": true - }, - "relation": { - "type": "RangeVar" - }, - "object": { - "type": "Node" - }, - "newowner": { - "type": "RoleSpec", - "nested": true - } - }, - "AlterOperatorStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "opername": { - "type": "ObjectWithArgs", - "nested": true - }, - "options": { - "type": "List" - } - }, - "AlterTypeStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "typeName": { - "type": "List" - }, - "options": { - "type": "List" - } - }, - "RuleStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "relation": { - "type": "RangeVar" - }, - "rulename": { - "type": "char" - }, - "whereClause": { - "type": "Node" - }, - "event": { - "type": "CmdType", - "enum": true - }, - "instead": { - "type": "bool" - }, - "actions": { - "type": "List" - }, - "replace": { - "type": "bool" - } - }, - "NotifyStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "conditionname": { - "type": "char" - }, - "payload": { - "type": "char" - } - }, - "ListenStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "conditionname": { - "type": "char" - } - }, - "UnlistenStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "conditionname": { - "type": "char" - } - }, - "TransactionStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "kind": { - "type": "TransactionStmtKind", - "enum": true - }, - "options": { - "type": "List" - }, - "savepoint_name": { - "type": "char" - }, - "gid": { - "type": "char" - }, - "chain": { - "type": "bool" - } - }, - "CompositeTypeStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "typevar": { - "type": "RangeVar" - }, - "coldeflist": { - "type": "List" - } - }, - "CreateEnumStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "typeName": { - "type": "List" - }, - "vals": { - "type": "List" - } - }, - "CreateRangeStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "typeName": { - "type": "List" - }, - "params": { - "type": "List" - } - }, - "AlterEnumStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "typeName": { - "type": "List" - }, - "oldVal": { - "type": "char" - }, - "newVal": { - "type": "char" - }, - "newValNeighbor": { - "type": "char" - }, - "newValIsAfter": { - "type": "bool" - }, - "skipIfNewValExists": { - "type": "bool" - } - }, - "ViewStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "view": { - "type": "RangeVar" - }, - "aliases": { - "type": "List" - }, - "query": { - "type": "Node" - }, - "replace": { - "type": "bool" - }, - "options": { - "type": "List" - }, - "withCheckOption": { - "type": "ViewCheckOption", - "enum": true - } - }, - "LoadStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "filename": { - "type": "char" - } - }, - "CreatedbStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "dbname": { - "type": "char" - }, - "options": { - "type": "List" - } - }, - "AlterDatabaseStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "dbname": { - "type": "char" - }, - "options": { - "type": "List" - } - }, - "AlterDatabaseSetStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "dbname": { - "type": "char" - }, - "setstmt": { - "type": "VariableSetStmt", - "nested": true - } - }, - "DropdbStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "dbname": { - "type": "char" - }, - "missing_ok": { - "type": "bool" - }, - "options": { - "type": "List" - } - }, - "AlterSystemStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "setstmt": { - "type": "VariableSetStmt", - "nested": true - } - }, - "ClusterStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "relation": { - "type": "RangeVar" - }, - "indexname": { - "type": "char" - }, - "options": { - "type": "int" - } - }, - "VacuumStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "options": { - "type": "List" - }, - "rels": { - "type": "List" - }, - "is_vacuumcmd": { - "type": "bool" - } - }, - "VacuumRelation": { - "type": { - "type": "NodeTag", - "enum": true - }, - "relation": { - "type": "RangeVar" - }, - "oid": { - "type": "Oid" - }, - "va_cols": { - "type": "List" - } - }, - "ExplainStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "query": { - "type": "Node" - }, - "options": { - "type": "List" - } - }, - "CreateTableAsStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "query": { - "type": "Node" - }, - "into": { - "type": "IntoClause" - }, - "relkind": { - "type": "ObjectType", - "enum": true - }, - "is_select_into": { - "type": "bool" - }, - "if_not_exists": { - "type": "bool" - } - }, - "RefreshMatViewStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "concurrent": { - "type": "bool" - }, - "skipData": { - "type": "bool" - }, - "relation": { - "type": "RangeVar" - } - }, - "CheckPointStmt": { - "type": { - "type": "NodeTag", - "enum": true - } - }, - "DiscardStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "target": { - "type": "DiscardMode", - "enum": true - } - }, - "LockStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "relations": { - "type": "List" - }, - "mode": { - "type": "int" - }, - "nowait": { - "type": "bool" - } - }, - "ConstraintsSetStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "constraints": { - "type": "List" - }, - "deferred": { - "type": "bool" - } - }, - "ReindexStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "kind": { - "type": "ReindexObjectType", - "enum": true - }, - "relation": { - "type": "RangeVar" - }, - "name": { - "type": "char" - }, - "options": { - "type": "int" - }, - "concurrent": { - "type": "bool" - } - }, - "CreateConversionStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "conversion_name": { - "type": "List" - }, - "for_encoding_name": { - "type": "char" - }, - "to_encoding_name": { - "type": "char" - }, - "func_name": { - "type": "List" - }, - "def": { - "type": "bool" - } - }, - "CreateCastStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "sourcetype": { - "type": "TypeName", - "nested": true - }, - "targettype": { - "type": "TypeName", - "nested": true - }, - "func": { - "type": "ObjectWithArgs", - "nested": true - }, - "context": { - "type": "CoercionContext", - "enum": true - }, - "inout": { - "type": "bool" - } - }, - "CreateTransformStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "replace": { - "type": "bool" - }, - "type_name": { - "type": "TypeName", - "nested": true - }, - "lang": { - "type": "char" - }, - "fromsql": { - "type": "ObjectWithArgs", - "nested": true - }, - "tosql": { - "type": "ObjectWithArgs", - "nested": true - } - }, - "PrepareStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "name": { - "type": "char" - }, - "argtypes": { - "type": "List" - }, - "query": { - "type": "Node" - } - }, - "ExecuteStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "name": { - "type": "char" - }, - "params": { - "type": "List" - } - }, - "DeallocateStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "name": { - "type": "char" - } - }, - "DropOwnedStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "roles": { - "type": "List" - }, - "behavior": { - "type": "DropBehavior", - "enum": true - } - }, - "ReassignOwnedStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "roles": { - "type": "List" - }, - "newrole": { - "type": "RoleSpec", - "nested": true - } - }, - "AlterTSDictionaryStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "dictname": { - "type": "List" - }, - "options": { - "type": "List" - } - }, - "AlterTSConfigurationStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "kind": { - "type": "AlterTSConfigType", - "enum": true - }, - "cfgname": { - "type": "List" - }, - "tokentype": { - "type": "List" - }, - "dicts": { - "type": "List" - }, - "override": { - "type": "bool" - }, - "replace": { - "type": "bool" - }, - "missing_ok": { - "type": "bool" - } - }, - "CreatePublicationStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "pubname": { - "type": "char" - }, - "options": { - "type": "List" - }, - "tables": { - "type": "List" - }, - "for_all_tables": { - "type": "bool" - } - }, - "AlterPublicationStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "pubname": { - "type": "char" - }, - "options": { - "type": "List" - }, - "tables": { - "type": "List" - }, - "for_all_tables": { - "type": "bool" - }, - "tableAction": { - "type": "DefElemAction", - "enum": true - } - }, - "CreateSubscriptionStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "subname": { - "type": "char" - }, - "conninfo": { - "type": "char" - }, - "publication": { - "type": "List" - }, - "options": { - "type": "List" - } - }, - "AlterSubscriptionStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "kind": { - "type": "AlterSubscriptionType", - "enum": true - }, - "subname": { - "type": "char" - }, - "conninfo": { - "type": "char" - }, - "publication": { - "type": "List" - }, - "options": { - "type": "List" - } - }, - "DropSubscriptionStmt": { - "type": { - "type": "NodeTag", - "enum": true - }, - "subname": { - "type": "char" - }, - "missing_ok": { - "type": "bool" - }, - "behavior": { - "type": "DropBehavior", - "enum": true - } - }, - "VacAttrStats": { - "attr": { - "type": "Form_pg_attribute" - }, - "attrtypid": { - "type": "Oid" - }, - "attrtypmod": { - "type": "int32" - }, - "attrtype": { - "type": "Form_pg_type" - }, - "attrcollid": { - "type": "Oid" - }, - "anl_context": { - "type": "MemoryContext" - }, - "compute_stats": { - "type": "AnalyzeAttrComputeStatsFunc" - }, - "minrows": { - "type": "int" - }, - "extra_data": { - "type": "void" - }, - "stats_valid": { - "type": "bool" - }, - "stanullfrac": { - "type": "float4" - }, - "stawidth": { - "type": "int32" - }, - "stadistinct": { - "type": "float4" - }, - "stakind[STATISTIC_NUM_SLOTS]": { - "type": "int16" - }, - "staop[STATISTIC_NUM_SLOTS]": { - "type": "Oid" - }, - "stacoll[STATISTIC_NUM_SLOTS]": { - "type": "Oid" - }, - "numnumbers[STATISTIC_NUM_SLOTS]": { - "type": "int" - }, - "stanumbers[STATISTIC_NUM_SLOTS]": { - "type": "float4" - }, - "numvalues[STATISTIC_NUM_SLOTS]": { - "type": "int" - }, - "stavalues[STATISTIC_NUM_SLOTS]": { - "type": "Datum" - }, - "statypid[STATISTIC_NUM_SLOTS]": { - "type": "Oid" - }, - "statyplen[STATISTIC_NUM_SLOTS]": { - "type": "int16" - }, - "statypbyval[STATISTIC_NUM_SLOTS]": { - "type": "bool" - }, - "statypalign[STATISTIC_NUM_SLOTS]": { - "type": "char" - }, - "tupattnum": { - "type": "int" - }, - "rows": { - "type": "HeapTuple" - }, - "tupDesc": { - "type": "TupleDesc" - }, - "exprvals": { - "type": "Datum" - }, - "exprnulls": { - "type": "bool" - }, - "rowstride": { - "type": "int" - } - }, - "VacuumParams": { - "options": { - "type": "int" - }, - "freeze_min_age": { - "type": "int" - }, - "freeze_table_age": { - "type": "int" - }, - "multixact_freeze_min_age": { - "type": "int" - }, - "multixact_freeze_table_age": { - "type": "int" - }, - "is_wraparound": { - "type": "bool" - }, - "log_min_duration": { - "type": "int" - }, - "index_cleanup": { - "type": "VacOptTernaryValue", - "enum": true - }, - "truncate": { - "type": "VacOptTernaryValue", - "enum": true - }, - "nworkers": { - "type": "int" - } - }, - "Integer": { - "ival": { - "type": "long" - } - }, - "Float": { - "str": { - "type": "char" - } - }, - "String": { - "str": { - "type": "char" - } - }, - "BitString": { - "str": { - "type": "char" - } - }, - "Null": {} -} \ No newline at end of file diff --git a/packages/enums-utils/src/types.ts b/packages/enums-utils/src/types.ts deleted file mode 100644 index f6166c2a..00000000 --- a/packages/enums-utils/src/types.ts +++ /dev/null @@ -1,90 +0,0 @@ -import { format } from 'util'; - -const fail = (type, node) => { - throw new Error(format('Unhandled %s node: %s', type, JSON.stringify(node))); -}; - -export const TYPE_NAMES = { - OBJECT_ACCESS_METHOD: 'ACCESS METHOD', - OBJECT_AGGREGATE: 'AGGREGATE', - OBJECT_ATTRIBUTE: 'ATTRIBUTE', - OBJECT_CAST: 'CAST', - OBJECT_COLLATION: 'COLLATION', - OBJECT_COLUMN: 'COLUMN', - OBJECT_CONVERSION: 'CONVERSION', - OBJECT_DATABASE: 'DATABASE', - OBJECT_DOMAIN: 'DOMAIN', - OBJECT_DOMCONSTRAINT: 'CONSTRAINT', - OBJECT_EVENT_TRIGGER: 'EVENT TRIGGER', - OBJECT_EXTENSION: 'EXTENSION', - OBJECT_FDW: 'FOREIGN DATA WRAPPER', - OBJECT_FOREIGN_SERVER: 'SERVER', - OBJECT_FOREIGN_TABLE: 'FOREIGN TABLE', - OBJECT_FUNCTION: 'FUNCTION', - OBJECT_INDEX: 'INDEX', - OBJECT_LANGUAGE: 'LANGUAGE', - OBJECT_LARGEOBJECT: 'LARGE OBJECT', - OBJECT_MATVIEW: 'MATERIALIZED VIEW', - OBJECT_OPCLASS: 'OPERATOR CLASS', - OBJECT_OPERATOR: 'OPERATOR', - OBJECT_OPFAMILY: 'OPERATOR FAMILY', - OBJECT_POLICY: 'POLICY', - OBJECT_PROCEDURE: 'PROCEDURE', - OBJECT_PUBLICATION: 'PUBLICATION', - OBJECT_ROLE: 'ROLE', - OBJECT_ROUTINE: 'ROUTINE', - OBJECT_RULE: 'RULE', - OBJECT_SCHEMA: 'SCHEMA', - OBJECT_SEQUENCE: 'SEQUENCE', - OBJECT_STATISTIC_EXT: 'STATISTICS', - OBJECT_SUBSCRIPTION: 'SUBSCRIPTION', - OBJECT_TABCONSTRAINT: 'CONSTRAINT', - OBJECT_TABLE: 'TABLE', - OBJECT_TABLESPACE: 'TABLESPACE', - OBJECT_TRANSFORM: 'TRANSFORM', - OBJECT_TRIGGER: 'TRIGGER', - OBJECT_TSCONFIGURATION: 'TEXT SEARCH CONFIGURATION', - OBJECT_TSDICTIONARY: 'TEXT SEARCH DICTIONARY', - OBJECT_TSPARSER: 'TEXT SEARCH PARSER', - OBJECT_TSTEMPLATE: 'TEXT SEARCH TEMPLATE', - OBJECT_TYPE: 'TYPE', - OBJECT_VIEW: 'VIEW' -}; - -export const objtypeName = (arg) => { - return TYPE_NAMES[arg]; -}; - -export const getConstraintFromConstrType = (type) => { - switch (type) { - case 'CONSTR_NULL': - return 'NULL'; - case 'CONSTR_NOTNULL': - return 'NOT NULL'; - case 'CONSTR_DEFAULT': - return 'DEFAULT'; - case 'CONSTR_CHECK': - return 'CHECK'; - case 'CONSTR_PRIMARY': - return 'PRIMARY KEY'; - case 'CONSTR_UNIQUE': - return 'UNIQUE'; - case 'CONSTR_EXCLUSION': - return 'EXCLUDE'; - case 'CONSTR_FOREIGN': - return 'REFERENCES'; - - case 'CONSTR_GENERATED': - return 'GENERATED'; - - case 'CONSTR_IDENTITY': - return 'IDENTITY'; - - case 'CONSTR_ATTR_DEFERRABLE': - case 'CONSTR_ATTR_NOT_DEFERRABLE': - case 'CONSTR_ATTR_DEFERRED': - case 'CONSTR_ATTR_IMMEDIATE': - default: - return fail(type, 'ConstrType'); - } -}; diff --git a/packages/enums-utils/tsconfig.esm.json b/packages/enums-utils/tsconfig.esm.json deleted file mode 100644 index 800d7506..00000000 --- a/packages/enums-utils/tsconfig.esm.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "dist/esm", - "module": "es2022", - "rootDir": "src/", - "declaration": false - } -} diff --git a/packages/enums-utils/tsconfig.json b/packages/enums-utils/tsconfig.json deleted file mode 100644 index 1a9d5696..00000000 --- a/packages/enums-utils/tsconfig.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "dist", - "rootDir": "src/" - }, - "include": ["src/**/*.ts"], - "exclude": ["dist", "node_modules", "**/*.spec.*", "**/*.test.*"] -} diff --git a/packages/enums/__test__/enums.test.ts b/packages/enums/__test__/enums.test.ts index 2aa41ae4..d7f6270c 100644 --- a/packages/enums/__test__/enums.test.ts +++ b/packages/enums/__test__/enums.test.ts @@ -15,11 +15,9 @@ it('enums', () => { case e.A_Expr_Kind.AEXPR_NOT_BETWEEN_SYM: case e.A_Expr_Kind.AEXPR_NOT_DISTINCT: case e.A_Expr_Kind.AEXPR_NULLIF: - case e.A_Expr_Kind.AEXPR_OF: case e.A_Expr_Kind.AEXPR_OP: case e.A_Expr_Kind.AEXPR_OP_ALL: case e.A_Expr_Kind.AEXPR_OP_ANY: - case e.A_Expr_Kind.AEXPR_PAREN: case e.A_Expr_Kind.AEXPR_SIMILAR: expect(exprKind).toBeDefined(); break; diff --git a/packages/enums/package.json b/packages/enums/package.json index 31dbb94b..7fe8c707 100644 --- a/packages/enums/package.json +++ b/packages/enums/package.json @@ -1,5 +1,5 @@ { - "name": "@pgsql/enums", + "name": "pgsql-enums", "version": "17.0.0", "author": "Dan Lynch ", "description": "PostgreSQL AST enums for pgsql-parser", diff --git a/packages/enums/scripts/pg-proto-parser.ts b/packages/enums/scripts/pg-proto-parser.ts index 9315d1f5..ec85765d 100644 --- a/packages/enums/scripts/pg-proto-parser.ts +++ b/packages/enums/scripts/pg-proto-parser.ts @@ -8,7 +8,8 @@ const options: PgProtoParserOptions = { outDir, enums: { enabled: true, - enumsAsTypeUnion: false + enumsAsTypeUnion: false, + filename: 'index.ts' } }; const parser = new PgProtoParser(inFile, options); diff --git a/packages/enums/src/enums.ts b/packages/enums/src/enums.ts deleted file mode 100644 index 4d158b1c..00000000 --- a/packages/enums/src/enums.ts +++ /dev/null @@ -1,1144 +0,0 @@ -/** -* This file was automatically generated by pg-proto-parser@1.24.0. -* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, -* and run the pg-proto-parser generate command to regenerate this file. -*/ -export enum QuerySource { - QSRC_ORIGINAL = 0, - QSRC_PARSER = 1, - QSRC_INSTEAD_RULE = 2, - QSRC_QUAL_INSTEAD_RULE = 3, - QSRC_NON_INSTEAD_RULE = 4, -} -export enum SortByDir { - SORTBY_DEFAULT = 0, - SORTBY_ASC = 1, - SORTBY_DESC = 2, - SORTBY_USING = 3, -} -export enum SortByNulls { - SORTBY_NULLS_DEFAULT = 0, - SORTBY_NULLS_FIRST = 1, - SORTBY_NULLS_LAST = 2, -} -export enum SetQuantifier { - SET_QUANTIFIER_DEFAULT = 0, - SET_QUANTIFIER_ALL = 1, - SET_QUANTIFIER_DISTINCT = 2, -} -export enum A_Expr_Kind { - AEXPR_OP = 0, - AEXPR_OP_ANY = 1, - AEXPR_OP_ALL = 2, - AEXPR_DISTINCT = 3, - AEXPR_NOT_DISTINCT = 4, - AEXPR_NULLIF = 5, - AEXPR_IN = 6, - AEXPR_LIKE = 7, - AEXPR_ILIKE = 8, - AEXPR_SIMILAR = 9, - AEXPR_BETWEEN = 10, - AEXPR_NOT_BETWEEN = 11, - AEXPR_BETWEEN_SYM = 12, - AEXPR_NOT_BETWEEN_SYM = 13, -} -export enum RoleSpecType { - ROLESPEC_CSTRING = 0, - ROLESPEC_CURRENT_ROLE = 1, - ROLESPEC_CURRENT_USER = 2, - ROLESPEC_SESSION_USER = 3, - ROLESPEC_PUBLIC = 4, -} -export enum TableLikeOption { - CREATE_TABLE_LIKE_COMMENTS = 0, - CREATE_TABLE_LIKE_COMPRESSION = 1, - CREATE_TABLE_LIKE_CONSTRAINTS = 2, - CREATE_TABLE_LIKE_DEFAULTS = 3, - CREATE_TABLE_LIKE_GENERATED = 4, - CREATE_TABLE_LIKE_IDENTITY = 5, - CREATE_TABLE_LIKE_INDEXES = 6, - CREATE_TABLE_LIKE_STATISTICS = 7, - CREATE_TABLE_LIKE_STORAGE = 8, - CREATE_TABLE_LIKE_ALL = 9, -} -export enum DefElemAction { - DEFELEM_UNSPEC = 0, - DEFELEM_SET = 1, - DEFELEM_ADD = 2, - DEFELEM_DROP = 3, -} -export enum PartitionStrategy { - PARTITION_STRATEGY_LIST = 0, - PARTITION_STRATEGY_RANGE = 1, - PARTITION_STRATEGY_HASH = 2, -} -export enum PartitionRangeDatumKind { - PARTITION_RANGE_DATUM_MINVALUE = 0, - PARTITION_RANGE_DATUM_VALUE = 1, - PARTITION_RANGE_DATUM_MAXVALUE = 2, -} -export enum RTEKind { - RTE_RELATION = 0, - RTE_SUBQUERY = 1, - RTE_JOIN = 2, - RTE_FUNCTION = 3, - RTE_TABLEFUNC = 4, - RTE_VALUES = 5, - RTE_CTE = 6, - RTE_NAMEDTUPLESTORE = 7, - RTE_RESULT = 8, -} -export enum WCOKind { - WCO_VIEW_CHECK = 0, - WCO_RLS_INSERT_CHECK = 1, - WCO_RLS_UPDATE_CHECK = 2, - WCO_RLS_CONFLICT_CHECK = 3, - WCO_RLS_MERGE_UPDATE_CHECK = 4, - WCO_RLS_MERGE_DELETE_CHECK = 5, -} -export enum GroupingSetKind { - GROUPING_SET_EMPTY = 0, - GROUPING_SET_SIMPLE = 1, - GROUPING_SET_ROLLUP = 2, - GROUPING_SET_CUBE = 3, - GROUPING_SET_SETS = 4, -} -export enum CTEMaterialize { - CTEMaterializeDefault = 0, - CTEMaterializeAlways = 1, - CTEMaterializeNever = 2, -} -export enum JsonQuotes { - JS_QUOTES_UNSPEC = 0, - JS_QUOTES_KEEP = 1, - JS_QUOTES_OMIT = 2, -} -export enum JsonTableColumnType { - JTC_FOR_ORDINALITY = 0, - JTC_REGULAR = 1, - JTC_EXISTS = 2, - JTC_FORMATTED = 3, - JTC_NESTED = 4, -} -export enum SetOperation { - SETOP_NONE = 0, - SETOP_UNION = 1, - SETOP_INTERSECT = 2, - SETOP_EXCEPT = 3, -} -export enum ObjectType { - OBJECT_ACCESS_METHOD = 0, - OBJECT_AGGREGATE = 1, - OBJECT_AMOP = 2, - OBJECT_AMPROC = 3, - OBJECT_ATTRIBUTE = 4, - OBJECT_CAST = 5, - OBJECT_COLUMN = 6, - OBJECT_COLLATION = 7, - OBJECT_CONVERSION = 8, - OBJECT_DATABASE = 9, - OBJECT_DEFAULT = 10, - OBJECT_DEFACL = 11, - OBJECT_DOMAIN = 12, - OBJECT_DOMCONSTRAINT = 13, - OBJECT_EVENT_TRIGGER = 14, - OBJECT_EXTENSION = 15, - OBJECT_FDW = 16, - OBJECT_FOREIGN_SERVER = 17, - OBJECT_FOREIGN_TABLE = 18, - OBJECT_FUNCTION = 19, - OBJECT_INDEX = 20, - OBJECT_LANGUAGE = 21, - OBJECT_LARGEOBJECT = 22, - OBJECT_MATVIEW = 23, - OBJECT_OPCLASS = 24, - OBJECT_OPERATOR = 25, - OBJECT_OPFAMILY = 26, - OBJECT_PARAMETER_ACL = 27, - OBJECT_POLICY = 28, - OBJECT_PROCEDURE = 29, - OBJECT_PUBLICATION = 30, - OBJECT_PUBLICATION_NAMESPACE = 31, - OBJECT_PUBLICATION_REL = 32, - OBJECT_ROLE = 33, - OBJECT_ROUTINE = 34, - OBJECT_RULE = 35, - OBJECT_SCHEMA = 36, - OBJECT_SEQUENCE = 37, - OBJECT_SUBSCRIPTION = 38, - OBJECT_STATISTIC_EXT = 39, - OBJECT_TABCONSTRAINT = 40, - OBJECT_TABLE = 41, - OBJECT_TABLESPACE = 42, - OBJECT_TRANSFORM = 43, - OBJECT_TRIGGER = 44, - OBJECT_TSCONFIGURATION = 45, - OBJECT_TSDICTIONARY = 46, - OBJECT_TSPARSER = 47, - OBJECT_TSTEMPLATE = 48, - OBJECT_TYPE = 49, - OBJECT_USER_MAPPING = 50, - OBJECT_VIEW = 51, -} -export enum DropBehavior { - DROP_RESTRICT = 0, - DROP_CASCADE = 1, -} -export enum AlterTableType { - AT_AddColumn = 0, - AT_AddColumnToView = 1, - AT_ColumnDefault = 2, - AT_CookedColumnDefault = 3, - AT_DropNotNull = 4, - AT_SetNotNull = 5, - AT_SetExpression = 6, - AT_DropExpression = 7, - AT_CheckNotNull = 8, - AT_SetStatistics = 9, - AT_SetOptions = 10, - AT_ResetOptions = 11, - AT_SetStorage = 12, - AT_SetCompression = 13, - AT_DropColumn = 14, - AT_AddIndex = 15, - AT_ReAddIndex = 16, - AT_AddConstraint = 17, - AT_ReAddConstraint = 18, - AT_ReAddDomainConstraint = 19, - AT_AlterConstraint = 20, - AT_ValidateConstraint = 21, - AT_AddIndexConstraint = 22, - AT_DropConstraint = 23, - AT_ReAddComment = 24, - AT_AlterColumnType = 25, - AT_AlterColumnGenericOptions = 26, - AT_ChangeOwner = 27, - AT_ClusterOn = 28, - AT_DropCluster = 29, - AT_SetLogged = 30, - AT_SetUnLogged = 31, - AT_DropOids = 32, - AT_SetAccessMethod = 33, - AT_SetTableSpace = 34, - AT_SetRelOptions = 35, - AT_ResetRelOptions = 36, - AT_ReplaceRelOptions = 37, - AT_EnableTrig = 38, - AT_EnableAlwaysTrig = 39, - AT_EnableReplicaTrig = 40, - AT_DisableTrig = 41, - AT_EnableTrigAll = 42, - AT_DisableTrigAll = 43, - AT_EnableTrigUser = 44, - AT_DisableTrigUser = 45, - AT_EnableRule = 46, - AT_EnableAlwaysRule = 47, - AT_EnableReplicaRule = 48, - AT_DisableRule = 49, - AT_AddInherit = 50, - AT_DropInherit = 51, - AT_AddOf = 52, - AT_DropOf = 53, - AT_ReplicaIdentity = 54, - AT_EnableRowSecurity = 55, - AT_DisableRowSecurity = 56, - AT_ForceRowSecurity = 57, - AT_NoForceRowSecurity = 58, - AT_GenericOptions = 59, - AT_AttachPartition = 60, - AT_DetachPartition = 61, - AT_DetachPartitionFinalize = 62, - AT_AddIdentity = 63, - AT_SetIdentity = 64, - AT_DropIdentity = 65, - AT_ReAddStatistics = 66, -} -export enum GrantTargetType { - ACL_TARGET_OBJECT = 0, - ACL_TARGET_ALL_IN_SCHEMA = 1, - ACL_TARGET_DEFAULTS = 2, -} -export enum VariableSetKind { - VAR_SET_VALUE = 0, - VAR_SET_DEFAULT = 1, - VAR_SET_CURRENT = 2, - VAR_SET_MULTI = 3, - VAR_RESET = 4, - VAR_RESET_ALL = 5, -} -export enum ConstrType { - CONSTR_NULL = 0, - CONSTR_NOTNULL = 1, - CONSTR_DEFAULT = 2, - CONSTR_IDENTITY = 3, - CONSTR_GENERATED = 4, - CONSTR_CHECK = 5, - CONSTR_PRIMARY = 6, - CONSTR_UNIQUE = 7, - CONSTR_EXCLUSION = 8, - CONSTR_FOREIGN = 9, - CONSTR_ATTR_DEFERRABLE = 10, - CONSTR_ATTR_NOT_DEFERRABLE = 11, - CONSTR_ATTR_DEFERRED = 12, - CONSTR_ATTR_IMMEDIATE = 13, -} -export enum ImportForeignSchemaType { - FDW_IMPORT_SCHEMA_ALL = 0, - FDW_IMPORT_SCHEMA_LIMIT_TO = 1, - FDW_IMPORT_SCHEMA_EXCEPT = 2, -} -export enum RoleStmtType { - ROLESTMT_ROLE = 0, - ROLESTMT_USER = 1, - ROLESTMT_GROUP = 2, -} -export enum FetchDirection { - FETCH_FORWARD = 0, - FETCH_BACKWARD = 1, - FETCH_ABSOLUTE = 2, - FETCH_RELATIVE = 3, -} -export enum FunctionParameterMode { - FUNC_PARAM_IN = 0, - FUNC_PARAM_OUT = 1, - FUNC_PARAM_INOUT = 2, - FUNC_PARAM_VARIADIC = 3, - FUNC_PARAM_TABLE = 4, - FUNC_PARAM_DEFAULT = 5, -} -export enum TransactionStmtKind { - TRANS_STMT_BEGIN = 0, - TRANS_STMT_START = 1, - TRANS_STMT_COMMIT = 2, - TRANS_STMT_ROLLBACK = 3, - TRANS_STMT_SAVEPOINT = 4, - TRANS_STMT_RELEASE = 5, - TRANS_STMT_ROLLBACK_TO = 6, - TRANS_STMT_PREPARE = 7, - TRANS_STMT_COMMIT_PREPARED = 8, - TRANS_STMT_ROLLBACK_PREPARED = 9, -} -export enum ViewCheckOption { - NO_CHECK_OPTION = 0, - LOCAL_CHECK_OPTION = 1, - CASCADED_CHECK_OPTION = 2, -} -export enum DiscardMode { - DISCARD_ALL = 0, - DISCARD_PLANS = 1, - DISCARD_SEQUENCES = 2, - DISCARD_TEMP = 3, -} -export enum ReindexObjectType { - REINDEX_OBJECT_INDEX = 0, - REINDEX_OBJECT_TABLE = 1, - REINDEX_OBJECT_SCHEMA = 2, - REINDEX_OBJECT_SYSTEM = 3, - REINDEX_OBJECT_DATABASE = 4, -} -export enum AlterTSConfigType { - ALTER_TSCONFIG_ADD_MAPPING = 0, - ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN = 1, - ALTER_TSCONFIG_REPLACE_DICT = 2, - ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN = 3, - ALTER_TSCONFIG_DROP_MAPPING = 4, -} -export enum PublicationObjSpecType { - PUBLICATIONOBJ_TABLE = 0, - PUBLICATIONOBJ_TABLES_IN_SCHEMA = 1, - PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA = 2, - PUBLICATIONOBJ_CONTINUATION = 3, -} -export enum AlterPublicationAction { - AP_AddObjects = 0, - AP_DropObjects = 1, - AP_SetObjects = 2, -} -export enum AlterSubscriptionType { - ALTER_SUBSCRIPTION_OPTIONS = 0, - ALTER_SUBSCRIPTION_CONNECTION = 1, - ALTER_SUBSCRIPTION_SET_PUBLICATION = 2, - ALTER_SUBSCRIPTION_ADD_PUBLICATION = 3, - ALTER_SUBSCRIPTION_DROP_PUBLICATION = 4, - ALTER_SUBSCRIPTION_REFRESH = 5, - ALTER_SUBSCRIPTION_ENABLED = 6, - ALTER_SUBSCRIPTION_SKIP = 7, -} -export enum OverridingKind { - OVERRIDING_NOT_SET = 0, - OVERRIDING_USER_VALUE = 1, - OVERRIDING_SYSTEM_VALUE = 2, -} -export enum OnCommitAction { - ONCOMMIT_NOOP = 0, - ONCOMMIT_PRESERVE_ROWS = 1, - ONCOMMIT_DELETE_ROWS = 2, - ONCOMMIT_DROP = 3, -} -export enum TableFuncType { - TFT_XMLTABLE = 0, - TFT_JSON_TABLE = 1, -} -export enum ParamKind { - PARAM_EXTERN = 0, - PARAM_EXEC = 1, - PARAM_SUBLINK = 2, - PARAM_MULTIEXPR = 3, -} -export enum CoercionContext { - COERCION_IMPLICIT = 0, - COERCION_ASSIGNMENT = 1, - COERCION_PLPGSQL = 2, - COERCION_EXPLICIT = 3, -} -export enum CoercionForm { - COERCE_EXPLICIT_CALL = 0, - COERCE_EXPLICIT_CAST = 1, - COERCE_IMPLICIT_CAST = 2, - COERCE_SQL_SYNTAX = 3, -} -export enum BoolExprType { - AND_EXPR = 0, - OR_EXPR = 1, - NOT_EXPR = 2, -} -export enum SubLinkType { - EXISTS_SUBLINK = 0, - ALL_SUBLINK = 1, - ANY_SUBLINK = 2, - ROWCOMPARE_SUBLINK = 3, - EXPR_SUBLINK = 4, - MULTIEXPR_SUBLINK = 5, - ARRAY_SUBLINK = 6, - CTE_SUBLINK = 7, -} -export enum RowCompareType { - ROWCOMPARE_LT = 0, - ROWCOMPARE_LE = 1, - ROWCOMPARE_EQ = 2, - ROWCOMPARE_GE = 3, - ROWCOMPARE_GT = 4, - ROWCOMPARE_NE = 5, -} -export enum MinMaxOp { - IS_GREATEST = 0, - IS_LEAST = 1, -} -export enum SQLValueFunctionOp { - SVFOP_CURRENT_DATE = 0, - SVFOP_CURRENT_TIME = 1, - SVFOP_CURRENT_TIME_N = 2, - SVFOP_CURRENT_TIMESTAMP = 3, - SVFOP_CURRENT_TIMESTAMP_N = 4, - SVFOP_LOCALTIME = 5, - SVFOP_LOCALTIME_N = 6, - SVFOP_LOCALTIMESTAMP = 7, - SVFOP_LOCALTIMESTAMP_N = 8, - SVFOP_CURRENT_ROLE = 9, - SVFOP_CURRENT_USER = 10, - SVFOP_USER = 11, - SVFOP_SESSION_USER = 12, - SVFOP_CURRENT_CATALOG = 13, - SVFOP_CURRENT_SCHEMA = 14, -} -export enum XmlExprOp { - IS_XMLCONCAT = 0, - IS_XMLELEMENT = 1, - IS_XMLFOREST = 2, - IS_XMLPARSE = 3, - IS_XMLPI = 4, - IS_XMLROOT = 5, - IS_XMLSERIALIZE = 6, - IS_DOCUMENT = 7, -} -export enum XmlOptionType { - XMLOPTION_DOCUMENT = 0, - XMLOPTION_CONTENT = 1, -} -export enum JsonEncoding { - JS_ENC_DEFAULT = 0, - JS_ENC_UTF8 = 1, - JS_ENC_UTF16 = 2, - JS_ENC_UTF32 = 3, -} -export enum JsonFormatType { - JS_FORMAT_DEFAULT = 0, - JS_FORMAT_JSON = 1, - JS_FORMAT_JSONB = 2, -} -export enum JsonConstructorType { - JSCTOR_JSON_OBJECT = 0, - JSCTOR_JSON_ARRAY = 1, - JSCTOR_JSON_OBJECTAGG = 2, - JSCTOR_JSON_ARRAYAGG = 3, - JSCTOR_JSON_PARSE = 4, - JSCTOR_JSON_SCALAR = 5, - JSCTOR_JSON_SERIALIZE = 6, -} -export enum JsonValueType { - JS_TYPE_ANY = 0, - JS_TYPE_OBJECT = 1, - JS_TYPE_ARRAY = 2, - JS_TYPE_SCALAR = 3, -} -export enum JsonWrapper { - JSW_UNSPEC = 0, - JSW_NONE = 1, - JSW_CONDITIONAL = 2, - JSW_UNCONDITIONAL = 3, -} -export enum JsonBehaviorType { - JSON_BEHAVIOR_NULL = 0, - JSON_BEHAVIOR_ERROR = 1, - JSON_BEHAVIOR_EMPTY = 2, - JSON_BEHAVIOR_TRUE = 3, - JSON_BEHAVIOR_FALSE = 4, - JSON_BEHAVIOR_UNKNOWN = 5, - JSON_BEHAVIOR_EMPTY_ARRAY = 6, - JSON_BEHAVIOR_EMPTY_OBJECT = 7, - JSON_BEHAVIOR_DEFAULT = 8, -} -export enum JsonExprOp { - JSON_EXISTS_OP = 0, - JSON_QUERY_OP = 1, - JSON_VALUE_OP = 2, - JSON_TABLE_OP = 3, -} -export enum NullTestType { - IS_NULL = 0, - IS_NOT_NULL = 1, -} -export enum BoolTestType { - IS_TRUE = 0, - IS_NOT_TRUE = 1, - IS_FALSE = 2, - IS_NOT_FALSE = 3, - IS_UNKNOWN = 4, - IS_NOT_UNKNOWN = 5, -} -export enum MergeMatchKind { - MERGE_WHEN_MATCHED = 0, - MERGE_WHEN_NOT_MATCHED_BY_SOURCE = 1, - MERGE_WHEN_NOT_MATCHED_BY_TARGET = 2, -} -export enum CmdType { - CMD_UNKNOWN = 0, - CMD_SELECT = 1, - CMD_UPDATE = 2, - CMD_INSERT = 3, - CMD_DELETE = 4, - CMD_MERGE = 5, - CMD_UTILITY = 6, - CMD_NOTHING = 7, -} -export enum JoinType { - JOIN_INNER = 0, - JOIN_LEFT = 1, - JOIN_FULL = 2, - JOIN_RIGHT = 3, - JOIN_SEMI = 4, - JOIN_ANTI = 5, - JOIN_RIGHT_ANTI = 6, - JOIN_UNIQUE_OUTER = 7, - JOIN_UNIQUE_INNER = 8, -} -export enum AggStrategy { - AGG_PLAIN = 0, - AGG_SORTED = 1, - AGG_HASHED = 2, - AGG_MIXED = 3, -} -export enum AggSplit { - AGGSPLIT_SIMPLE = 0, - AGGSPLIT_INITIAL_SERIAL = 1, - AGGSPLIT_FINAL_DESERIAL = 2, -} -export enum SetOpCmd { - SETOPCMD_INTERSECT = 0, - SETOPCMD_INTERSECT_ALL = 1, - SETOPCMD_EXCEPT = 2, - SETOPCMD_EXCEPT_ALL = 3, -} -export enum SetOpStrategy { - SETOP_SORTED = 0, - SETOP_HASHED = 1, -} -export enum OnConflictAction { - ONCONFLICT_NONE = 0, - ONCONFLICT_NOTHING = 1, - ONCONFLICT_UPDATE = 2, -} -export enum LimitOption { - LIMIT_OPTION_DEFAULT = 0, - LIMIT_OPTION_COUNT = 1, - LIMIT_OPTION_WITH_TIES = 2, -} -export enum LockClauseStrength { - LCS_NONE = 0, - LCS_FORKEYSHARE = 1, - LCS_FORSHARE = 2, - LCS_FORNOKEYUPDATE = 3, - LCS_FORUPDATE = 4, -} -export enum LockWaitPolicy { - LockWaitBlock = 0, - LockWaitSkip = 1, - LockWaitError = 2, -} -export enum LockTupleMode { - LockTupleKeyShare = 0, - LockTupleShare = 1, - LockTupleNoKeyExclusive = 2, - LockTupleExclusive = 3, -} -export enum KeywordKind { - NO_KEYWORD = 0, - UNRESERVED_KEYWORD = 1, - COL_NAME_KEYWORD = 2, - TYPE_FUNC_NAME_KEYWORD = 3, - RESERVED_KEYWORD = 4, -} -export enum Token { - NUL = 0, - ASCII_36 = 36, - ASCII_37 = 37, - ASCII_40 = 40, - ASCII_41 = 41, - ASCII_42 = 42, - ASCII_43 = 43, - ASCII_44 = 44, - ASCII_45 = 45, - ASCII_46 = 46, - ASCII_47 = 47, - ASCII_58 = 58, - ASCII_59 = 59, - ASCII_60 = 60, - ASCII_61 = 61, - ASCII_62 = 62, - ASCII_63 = 63, - ASCII_91 = 91, - ASCII_92 = 92, - ASCII_93 = 93, - ASCII_94 = 94, - IDENT = 258, - UIDENT = 259, - FCONST = 260, - SCONST = 261, - USCONST = 262, - BCONST = 263, - XCONST = 264, - Op = 265, - ICONST = 266, - PARAM = 267, - TYPECAST = 268, - DOT_DOT = 269, - COLON_EQUALS = 270, - EQUALS_GREATER = 271, - LESS_EQUALS = 272, - GREATER_EQUALS = 273, - NOT_EQUALS = 274, - SQL_COMMENT = 275, - C_COMMENT = 276, - ABORT_P = 277, - ABSENT = 278, - ABSOLUTE_P = 279, - ACCESS = 280, - ACTION = 281, - ADD_P = 282, - ADMIN = 283, - AFTER = 284, - AGGREGATE = 285, - ALL = 286, - ALSO = 287, - ALTER = 288, - ALWAYS = 289, - ANALYSE = 290, - ANALYZE = 291, - AND = 292, - ANY = 293, - ARRAY = 294, - AS = 295, - ASC = 296, - ASENSITIVE = 297, - ASSERTION = 298, - ASSIGNMENT = 299, - ASYMMETRIC = 300, - ATOMIC = 301, - AT = 302, - ATTACH = 303, - ATTRIBUTE = 304, - AUTHORIZATION = 305, - BACKWARD = 306, - BEFORE = 307, - BEGIN_P = 308, - BETWEEN = 309, - BIGINT = 310, - BINARY = 311, - BIT = 312, - BOOLEAN_P = 313, - BOTH = 314, - BREADTH = 315, - BY = 316, - CACHE = 317, - CALL = 318, - CALLED = 319, - CASCADE = 320, - CASCADED = 321, - CASE = 322, - CAST = 323, - CATALOG_P = 324, - CHAIN = 325, - CHAR_P = 326, - CHARACTER = 327, - CHARACTERISTICS = 328, - CHECK = 329, - CHECKPOINT = 330, - CLASS = 331, - CLOSE = 332, - CLUSTER = 333, - COALESCE = 334, - COLLATE = 335, - COLLATION = 336, - COLUMN = 337, - COLUMNS = 338, - COMMENT = 339, - COMMENTS = 340, - COMMIT = 341, - COMMITTED = 342, - COMPRESSION = 343, - CONCURRENTLY = 344, - CONDITIONAL = 345, - CONFIGURATION = 346, - CONFLICT = 347, - CONNECTION = 348, - CONSTRAINT = 349, - CONSTRAINTS = 350, - CONTENT_P = 351, - CONTINUE_P = 352, - CONVERSION_P = 353, - COPY = 354, - COST = 355, - CREATE = 356, - CROSS = 357, - CSV = 358, - CUBE = 359, - CURRENT_P = 360, - CURRENT_CATALOG = 361, - CURRENT_DATE = 362, - CURRENT_ROLE = 363, - CURRENT_SCHEMA = 364, - CURRENT_TIME = 365, - CURRENT_TIMESTAMP = 366, - CURRENT_USER = 367, - CURSOR = 368, - CYCLE = 369, - DATA_P = 370, - DATABASE = 371, - DAY_P = 372, - DEALLOCATE = 373, - DEC = 374, - DECIMAL_P = 375, - DECLARE = 376, - DEFAULT = 377, - DEFAULTS = 378, - DEFERRABLE = 379, - DEFERRED = 380, - DEFINER = 381, - DELETE_P = 382, - DELIMITER = 383, - DELIMITERS = 384, - DEPENDS = 385, - DEPTH = 386, - DESC = 387, - DETACH = 388, - DICTIONARY = 389, - DISABLE_P = 390, - DISCARD = 391, - DISTINCT = 392, - DO = 393, - DOCUMENT_P = 394, - DOMAIN_P = 395, - DOUBLE_P = 396, - DROP = 397, - EACH = 398, - ELSE = 399, - EMPTY_P = 400, - ENABLE_P = 401, - ENCODING = 402, - ENCRYPTED = 403, - END_P = 404, - ENUM_P = 405, - ERROR_P = 406, - ESCAPE = 407, - EVENT = 408, - EXCEPT = 409, - EXCLUDE = 410, - EXCLUDING = 411, - EXCLUSIVE = 412, - EXECUTE = 413, - EXISTS = 414, - EXPLAIN = 415, - EXPRESSION = 416, - EXTENSION = 417, - EXTERNAL = 418, - EXTRACT = 419, - FALSE_P = 420, - FAMILY = 421, - FETCH = 422, - FILTER = 423, - FINALIZE = 424, - FIRST_P = 425, - FLOAT_P = 426, - FOLLOWING = 427, - FOR = 428, - FORCE = 429, - FOREIGN = 430, - FORMAT = 431, - FORWARD = 432, - FREEZE = 433, - FROM = 434, - FULL = 435, - FUNCTION = 436, - FUNCTIONS = 437, - GENERATED = 438, - GLOBAL = 439, - GRANT = 440, - GRANTED = 441, - GREATEST = 442, - GROUP_P = 443, - GROUPING = 444, - GROUPS = 445, - HANDLER = 446, - HAVING = 447, - HEADER_P = 448, - HOLD = 449, - HOUR_P = 450, - IDENTITY_P = 451, - IF_P = 452, - ILIKE = 453, - IMMEDIATE = 454, - IMMUTABLE = 455, - IMPLICIT_P = 456, - IMPORT_P = 457, - IN_P = 458, - INCLUDE = 459, - INCLUDING = 460, - INCREMENT = 461, - INDENT = 462, - INDEX = 463, - INDEXES = 464, - INHERIT = 465, - INHERITS = 466, - INITIALLY = 467, - INLINE_P = 468, - INNER_P = 469, - INOUT = 470, - INPUT_P = 471, - INSENSITIVE = 472, - INSERT = 473, - INSTEAD = 474, - INT_P = 475, - INTEGER = 476, - INTERSECT = 477, - INTERVAL = 478, - INTO = 479, - INVOKER = 480, - IS = 481, - ISNULL = 482, - ISOLATION = 483, - JOIN = 484, - JSON = 485, - JSON_ARRAY = 486, - JSON_ARRAYAGG = 487, - JSON_EXISTS = 488, - JSON_OBJECT = 489, - JSON_OBJECTAGG = 490, - JSON_QUERY = 491, - JSON_SCALAR = 492, - JSON_SERIALIZE = 493, - JSON_TABLE = 494, - JSON_VALUE = 495, - KEEP = 496, - KEY = 497, - KEYS = 498, - LABEL = 499, - LANGUAGE = 500, - LARGE_P = 501, - LAST_P = 502, - LATERAL_P = 503, - LEADING = 504, - LEAKPROOF = 505, - LEAST = 506, - LEFT = 507, - LEVEL = 508, - LIKE = 509, - LIMIT = 510, - LISTEN = 511, - LOAD = 512, - LOCAL = 513, - LOCALTIME = 514, - LOCALTIMESTAMP = 515, - LOCATION = 516, - LOCK_P = 517, - LOCKED = 518, - LOGGED = 519, - MAPPING = 520, - MATCH = 521, - MATCHED = 522, - MATERIALIZED = 523, - MAXVALUE = 524, - MERGE = 525, - MERGE_ACTION = 526, - METHOD = 527, - MINUTE_P = 528, - MINVALUE = 529, - MODE = 530, - MONTH_P = 531, - MOVE = 532, - NAME_P = 533, - NAMES = 534, - NATIONAL = 535, - NATURAL = 536, - NCHAR = 537, - NESTED = 538, - NEW = 539, - NEXT = 540, - NFC = 541, - NFD = 542, - NFKC = 543, - NFKD = 544, - NO = 545, - NONE = 546, - NORMALIZE = 547, - NORMALIZED = 548, - NOT = 549, - NOTHING = 550, - NOTIFY = 551, - NOTNULL = 552, - NOWAIT = 553, - NULL_P = 554, - NULLIF = 555, - NULLS_P = 556, - NUMERIC = 557, - OBJECT_P = 558, - OF = 559, - OFF = 560, - OFFSET = 561, - OIDS = 562, - OLD = 563, - OMIT = 564, - ON = 565, - ONLY = 566, - OPERATOR = 567, - OPTION = 568, - OPTIONS = 569, - OR = 570, - ORDER = 571, - ORDINALITY = 572, - OTHERS = 573, - OUT_P = 574, - OUTER_P = 575, - OVER = 576, - OVERLAPS = 577, - OVERLAY = 578, - OVERRIDING = 579, - OWNED = 580, - OWNER = 581, - PARALLEL = 582, - PARAMETER = 583, - PARSER = 584, - PARTIAL = 585, - PARTITION = 586, - PASSING = 587, - PASSWORD = 588, - PATH = 589, - PLACING = 590, - PLAN = 591, - PLANS = 592, - POLICY = 593, - POSITION = 594, - PRECEDING = 595, - PRECISION = 596, - PRESERVE = 597, - PREPARE = 598, - PREPARED = 599, - PRIMARY = 600, - PRIOR = 601, - PRIVILEGES = 602, - PROCEDURAL = 603, - PROCEDURE = 604, - PROCEDURES = 605, - PROGRAM = 606, - PUBLICATION = 607, - QUOTE = 608, - QUOTES = 609, - RANGE = 610, - READ = 611, - REAL = 612, - REASSIGN = 613, - RECHECK = 614, - RECURSIVE = 615, - REF_P = 616, - REFERENCES = 617, - REFERENCING = 618, - REFRESH = 619, - REINDEX = 620, - RELATIVE_P = 621, - RELEASE = 622, - RENAME = 623, - REPEATABLE = 624, - REPLACE = 625, - REPLICA = 626, - RESET = 627, - RESTART = 628, - RESTRICT = 629, - RETURN = 630, - RETURNING = 631, - RETURNS = 632, - REVOKE = 633, - RIGHT = 634, - ROLE = 635, - ROLLBACK = 636, - ROLLUP = 637, - ROUTINE = 638, - ROUTINES = 639, - ROW = 640, - ROWS = 641, - RULE = 642, - SAVEPOINT = 643, - SCALAR = 644, - SCHEMA = 645, - SCHEMAS = 646, - SCROLL = 647, - SEARCH = 648, - SECOND_P = 649, - SECURITY = 650, - SELECT = 651, - SEQUENCE = 652, - SEQUENCES = 653, - SERIALIZABLE = 654, - SERVER = 655, - SESSION = 656, - SESSION_USER = 657, - SET = 658, - SETS = 659, - SETOF = 660, - SHARE = 661, - SHOW = 662, - SIMILAR = 663, - SIMPLE = 664, - SKIP = 665, - SMALLINT = 666, - SNAPSHOT = 667, - SOME = 668, - SOURCE = 669, - SQL_P = 670, - STABLE = 671, - STANDALONE_P = 672, - START = 673, - STATEMENT = 674, - STATISTICS = 675, - STDIN = 676, - STDOUT = 677, - STORAGE = 678, - STORED = 679, - STRICT_P = 680, - STRING_P = 681, - STRIP_P = 682, - SUBSCRIPTION = 683, - SUBSTRING = 684, - SUPPORT = 685, - SYMMETRIC = 686, - SYSID = 687, - SYSTEM_P = 688, - SYSTEM_USER = 689, - TABLE = 690, - TABLES = 691, - TABLESAMPLE = 692, - TABLESPACE = 693, - TARGET = 694, - TEMP = 695, - TEMPLATE = 696, - TEMPORARY = 697, - TEXT_P = 698, - THEN = 699, - TIES = 700, - TIME = 701, - TIMESTAMP = 702, - TO = 703, - TRAILING = 704, - TRANSACTION = 705, - TRANSFORM = 706, - TREAT = 707, - TRIGGER = 708, - TRIM = 709, - TRUE_P = 710, - TRUNCATE = 711, - TRUSTED = 712, - TYPE_P = 713, - TYPES_P = 714, - UESCAPE = 715, - UNBOUNDED = 716, - UNCONDITIONAL = 717, - UNCOMMITTED = 718, - UNENCRYPTED = 719, - UNION = 720, - UNIQUE = 721, - UNKNOWN = 722, - UNLISTEN = 723, - UNLOGGED = 724, - UNTIL = 725, - UPDATE = 726, - USER = 727, - USING = 728, - VACUUM = 729, - VALID = 730, - VALIDATE = 731, - VALIDATOR = 732, - VALUE_P = 733, - VALUES = 734, - VARCHAR = 735, - VARIADIC = 736, - VARYING = 737, - VERBOSE = 738, - VERSION_P = 739, - VIEW = 740, - VIEWS = 741, - VOLATILE = 742, - WHEN = 743, - WHERE = 744, - WHITESPACE_P = 745, - WINDOW = 746, - WITH = 747, - WITHIN = 748, - WITHOUT = 749, - WORK = 750, - WRAPPER = 751, - WRITE = 752, - XML_P = 753, - XMLATTRIBUTES = 754, - XMLCONCAT = 755, - XMLELEMENT = 756, - XMLEXISTS = 757, - XMLFOREST = 758, - XMLNAMESPACES = 759, - XMLPARSE = 760, - XMLPI = 761, - XMLROOT = 762, - XMLSERIALIZE = 763, - XMLTABLE = 764, - YEAR_P = 765, - YES_P = 766, - ZONE = 767, - FORMAT_LA = 768, - NOT_LA = 769, - NULLS_LA = 770, - WITH_LA = 771, - WITHOUT_LA = 772, - MODE_TYPE_NAME = 773, - MODE_PLPGSQL_EXPR = 774, - MODE_PLPGSQL_ASSIGN1 = 775, - MODE_PLPGSQL_ASSIGN2 = 776, - MODE_PLPGSQL_ASSIGN3 = 777, - UMINUS = 778, -} \ No newline at end of file diff --git a/packages/enums/src/index.ts b/packages/enums/src/index.ts index 1743646d..4d158b1c 100644 --- a/packages/enums/src/index.ts +++ b/packages/enums/src/index.ts @@ -1,3 +1,1144 @@ -export default () => { - -}; \ No newline at end of file +/** +* This file was automatically generated by pg-proto-parser@1.24.0. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export enum QuerySource { + QSRC_ORIGINAL = 0, + QSRC_PARSER = 1, + QSRC_INSTEAD_RULE = 2, + QSRC_QUAL_INSTEAD_RULE = 3, + QSRC_NON_INSTEAD_RULE = 4, +} +export enum SortByDir { + SORTBY_DEFAULT = 0, + SORTBY_ASC = 1, + SORTBY_DESC = 2, + SORTBY_USING = 3, +} +export enum SortByNulls { + SORTBY_NULLS_DEFAULT = 0, + SORTBY_NULLS_FIRST = 1, + SORTBY_NULLS_LAST = 2, +} +export enum SetQuantifier { + SET_QUANTIFIER_DEFAULT = 0, + SET_QUANTIFIER_ALL = 1, + SET_QUANTIFIER_DISTINCT = 2, +} +export enum A_Expr_Kind { + AEXPR_OP = 0, + AEXPR_OP_ANY = 1, + AEXPR_OP_ALL = 2, + AEXPR_DISTINCT = 3, + AEXPR_NOT_DISTINCT = 4, + AEXPR_NULLIF = 5, + AEXPR_IN = 6, + AEXPR_LIKE = 7, + AEXPR_ILIKE = 8, + AEXPR_SIMILAR = 9, + AEXPR_BETWEEN = 10, + AEXPR_NOT_BETWEEN = 11, + AEXPR_BETWEEN_SYM = 12, + AEXPR_NOT_BETWEEN_SYM = 13, +} +export enum RoleSpecType { + ROLESPEC_CSTRING = 0, + ROLESPEC_CURRENT_ROLE = 1, + ROLESPEC_CURRENT_USER = 2, + ROLESPEC_SESSION_USER = 3, + ROLESPEC_PUBLIC = 4, +} +export enum TableLikeOption { + CREATE_TABLE_LIKE_COMMENTS = 0, + CREATE_TABLE_LIKE_COMPRESSION = 1, + CREATE_TABLE_LIKE_CONSTRAINTS = 2, + CREATE_TABLE_LIKE_DEFAULTS = 3, + CREATE_TABLE_LIKE_GENERATED = 4, + CREATE_TABLE_LIKE_IDENTITY = 5, + CREATE_TABLE_LIKE_INDEXES = 6, + CREATE_TABLE_LIKE_STATISTICS = 7, + CREATE_TABLE_LIKE_STORAGE = 8, + CREATE_TABLE_LIKE_ALL = 9, +} +export enum DefElemAction { + DEFELEM_UNSPEC = 0, + DEFELEM_SET = 1, + DEFELEM_ADD = 2, + DEFELEM_DROP = 3, +} +export enum PartitionStrategy { + PARTITION_STRATEGY_LIST = 0, + PARTITION_STRATEGY_RANGE = 1, + PARTITION_STRATEGY_HASH = 2, +} +export enum PartitionRangeDatumKind { + PARTITION_RANGE_DATUM_MINVALUE = 0, + PARTITION_RANGE_DATUM_VALUE = 1, + PARTITION_RANGE_DATUM_MAXVALUE = 2, +} +export enum RTEKind { + RTE_RELATION = 0, + RTE_SUBQUERY = 1, + RTE_JOIN = 2, + RTE_FUNCTION = 3, + RTE_TABLEFUNC = 4, + RTE_VALUES = 5, + RTE_CTE = 6, + RTE_NAMEDTUPLESTORE = 7, + RTE_RESULT = 8, +} +export enum WCOKind { + WCO_VIEW_CHECK = 0, + WCO_RLS_INSERT_CHECK = 1, + WCO_RLS_UPDATE_CHECK = 2, + WCO_RLS_CONFLICT_CHECK = 3, + WCO_RLS_MERGE_UPDATE_CHECK = 4, + WCO_RLS_MERGE_DELETE_CHECK = 5, +} +export enum GroupingSetKind { + GROUPING_SET_EMPTY = 0, + GROUPING_SET_SIMPLE = 1, + GROUPING_SET_ROLLUP = 2, + GROUPING_SET_CUBE = 3, + GROUPING_SET_SETS = 4, +} +export enum CTEMaterialize { + CTEMaterializeDefault = 0, + CTEMaterializeAlways = 1, + CTEMaterializeNever = 2, +} +export enum JsonQuotes { + JS_QUOTES_UNSPEC = 0, + JS_QUOTES_KEEP = 1, + JS_QUOTES_OMIT = 2, +} +export enum JsonTableColumnType { + JTC_FOR_ORDINALITY = 0, + JTC_REGULAR = 1, + JTC_EXISTS = 2, + JTC_FORMATTED = 3, + JTC_NESTED = 4, +} +export enum SetOperation { + SETOP_NONE = 0, + SETOP_UNION = 1, + SETOP_INTERSECT = 2, + SETOP_EXCEPT = 3, +} +export enum ObjectType { + OBJECT_ACCESS_METHOD = 0, + OBJECT_AGGREGATE = 1, + OBJECT_AMOP = 2, + OBJECT_AMPROC = 3, + OBJECT_ATTRIBUTE = 4, + OBJECT_CAST = 5, + OBJECT_COLUMN = 6, + OBJECT_COLLATION = 7, + OBJECT_CONVERSION = 8, + OBJECT_DATABASE = 9, + OBJECT_DEFAULT = 10, + OBJECT_DEFACL = 11, + OBJECT_DOMAIN = 12, + OBJECT_DOMCONSTRAINT = 13, + OBJECT_EVENT_TRIGGER = 14, + OBJECT_EXTENSION = 15, + OBJECT_FDW = 16, + OBJECT_FOREIGN_SERVER = 17, + OBJECT_FOREIGN_TABLE = 18, + OBJECT_FUNCTION = 19, + OBJECT_INDEX = 20, + OBJECT_LANGUAGE = 21, + OBJECT_LARGEOBJECT = 22, + OBJECT_MATVIEW = 23, + OBJECT_OPCLASS = 24, + OBJECT_OPERATOR = 25, + OBJECT_OPFAMILY = 26, + OBJECT_PARAMETER_ACL = 27, + OBJECT_POLICY = 28, + OBJECT_PROCEDURE = 29, + OBJECT_PUBLICATION = 30, + OBJECT_PUBLICATION_NAMESPACE = 31, + OBJECT_PUBLICATION_REL = 32, + OBJECT_ROLE = 33, + OBJECT_ROUTINE = 34, + OBJECT_RULE = 35, + OBJECT_SCHEMA = 36, + OBJECT_SEQUENCE = 37, + OBJECT_SUBSCRIPTION = 38, + OBJECT_STATISTIC_EXT = 39, + OBJECT_TABCONSTRAINT = 40, + OBJECT_TABLE = 41, + OBJECT_TABLESPACE = 42, + OBJECT_TRANSFORM = 43, + OBJECT_TRIGGER = 44, + OBJECT_TSCONFIGURATION = 45, + OBJECT_TSDICTIONARY = 46, + OBJECT_TSPARSER = 47, + OBJECT_TSTEMPLATE = 48, + OBJECT_TYPE = 49, + OBJECT_USER_MAPPING = 50, + OBJECT_VIEW = 51, +} +export enum DropBehavior { + DROP_RESTRICT = 0, + DROP_CASCADE = 1, +} +export enum AlterTableType { + AT_AddColumn = 0, + AT_AddColumnToView = 1, + AT_ColumnDefault = 2, + AT_CookedColumnDefault = 3, + AT_DropNotNull = 4, + AT_SetNotNull = 5, + AT_SetExpression = 6, + AT_DropExpression = 7, + AT_CheckNotNull = 8, + AT_SetStatistics = 9, + AT_SetOptions = 10, + AT_ResetOptions = 11, + AT_SetStorage = 12, + AT_SetCompression = 13, + AT_DropColumn = 14, + AT_AddIndex = 15, + AT_ReAddIndex = 16, + AT_AddConstraint = 17, + AT_ReAddConstraint = 18, + AT_ReAddDomainConstraint = 19, + AT_AlterConstraint = 20, + AT_ValidateConstraint = 21, + AT_AddIndexConstraint = 22, + AT_DropConstraint = 23, + AT_ReAddComment = 24, + AT_AlterColumnType = 25, + AT_AlterColumnGenericOptions = 26, + AT_ChangeOwner = 27, + AT_ClusterOn = 28, + AT_DropCluster = 29, + AT_SetLogged = 30, + AT_SetUnLogged = 31, + AT_DropOids = 32, + AT_SetAccessMethod = 33, + AT_SetTableSpace = 34, + AT_SetRelOptions = 35, + AT_ResetRelOptions = 36, + AT_ReplaceRelOptions = 37, + AT_EnableTrig = 38, + AT_EnableAlwaysTrig = 39, + AT_EnableReplicaTrig = 40, + AT_DisableTrig = 41, + AT_EnableTrigAll = 42, + AT_DisableTrigAll = 43, + AT_EnableTrigUser = 44, + AT_DisableTrigUser = 45, + AT_EnableRule = 46, + AT_EnableAlwaysRule = 47, + AT_EnableReplicaRule = 48, + AT_DisableRule = 49, + AT_AddInherit = 50, + AT_DropInherit = 51, + AT_AddOf = 52, + AT_DropOf = 53, + AT_ReplicaIdentity = 54, + AT_EnableRowSecurity = 55, + AT_DisableRowSecurity = 56, + AT_ForceRowSecurity = 57, + AT_NoForceRowSecurity = 58, + AT_GenericOptions = 59, + AT_AttachPartition = 60, + AT_DetachPartition = 61, + AT_DetachPartitionFinalize = 62, + AT_AddIdentity = 63, + AT_SetIdentity = 64, + AT_DropIdentity = 65, + AT_ReAddStatistics = 66, +} +export enum GrantTargetType { + ACL_TARGET_OBJECT = 0, + ACL_TARGET_ALL_IN_SCHEMA = 1, + ACL_TARGET_DEFAULTS = 2, +} +export enum VariableSetKind { + VAR_SET_VALUE = 0, + VAR_SET_DEFAULT = 1, + VAR_SET_CURRENT = 2, + VAR_SET_MULTI = 3, + VAR_RESET = 4, + VAR_RESET_ALL = 5, +} +export enum ConstrType { + CONSTR_NULL = 0, + CONSTR_NOTNULL = 1, + CONSTR_DEFAULT = 2, + CONSTR_IDENTITY = 3, + CONSTR_GENERATED = 4, + CONSTR_CHECK = 5, + CONSTR_PRIMARY = 6, + CONSTR_UNIQUE = 7, + CONSTR_EXCLUSION = 8, + CONSTR_FOREIGN = 9, + CONSTR_ATTR_DEFERRABLE = 10, + CONSTR_ATTR_NOT_DEFERRABLE = 11, + CONSTR_ATTR_DEFERRED = 12, + CONSTR_ATTR_IMMEDIATE = 13, +} +export enum ImportForeignSchemaType { + FDW_IMPORT_SCHEMA_ALL = 0, + FDW_IMPORT_SCHEMA_LIMIT_TO = 1, + FDW_IMPORT_SCHEMA_EXCEPT = 2, +} +export enum RoleStmtType { + ROLESTMT_ROLE = 0, + ROLESTMT_USER = 1, + ROLESTMT_GROUP = 2, +} +export enum FetchDirection { + FETCH_FORWARD = 0, + FETCH_BACKWARD = 1, + FETCH_ABSOLUTE = 2, + FETCH_RELATIVE = 3, +} +export enum FunctionParameterMode { + FUNC_PARAM_IN = 0, + FUNC_PARAM_OUT = 1, + FUNC_PARAM_INOUT = 2, + FUNC_PARAM_VARIADIC = 3, + FUNC_PARAM_TABLE = 4, + FUNC_PARAM_DEFAULT = 5, +} +export enum TransactionStmtKind { + TRANS_STMT_BEGIN = 0, + TRANS_STMT_START = 1, + TRANS_STMT_COMMIT = 2, + TRANS_STMT_ROLLBACK = 3, + TRANS_STMT_SAVEPOINT = 4, + TRANS_STMT_RELEASE = 5, + TRANS_STMT_ROLLBACK_TO = 6, + TRANS_STMT_PREPARE = 7, + TRANS_STMT_COMMIT_PREPARED = 8, + TRANS_STMT_ROLLBACK_PREPARED = 9, +} +export enum ViewCheckOption { + NO_CHECK_OPTION = 0, + LOCAL_CHECK_OPTION = 1, + CASCADED_CHECK_OPTION = 2, +} +export enum DiscardMode { + DISCARD_ALL = 0, + DISCARD_PLANS = 1, + DISCARD_SEQUENCES = 2, + DISCARD_TEMP = 3, +} +export enum ReindexObjectType { + REINDEX_OBJECT_INDEX = 0, + REINDEX_OBJECT_TABLE = 1, + REINDEX_OBJECT_SCHEMA = 2, + REINDEX_OBJECT_SYSTEM = 3, + REINDEX_OBJECT_DATABASE = 4, +} +export enum AlterTSConfigType { + ALTER_TSCONFIG_ADD_MAPPING = 0, + ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN = 1, + ALTER_TSCONFIG_REPLACE_DICT = 2, + ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN = 3, + ALTER_TSCONFIG_DROP_MAPPING = 4, +} +export enum PublicationObjSpecType { + PUBLICATIONOBJ_TABLE = 0, + PUBLICATIONOBJ_TABLES_IN_SCHEMA = 1, + PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA = 2, + PUBLICATIONOBJ_CONTINUATION = 3, +} +export enum AlterPublicationAction { + AP_AddObjects = 0, + AP_DropObjects = 1, + AP_SetObjects = 2, +} +export enum AlterSubscriptionType { + ALTER_SUBSCRIPTION_OPTIONS = 0, + ALTER_SUBSCRIPTION_CONNECTION = 1, + ALTER_SUBSCRIPTION_SET_PUBLICATION = 2, + ALTER_SUBSCRIPTION_ADD_PUBLICATION = 3, + ALTER_SUBSCRIPTION_DROP_PUBLICATION = 4, + ALTER_SUBSCRIPTION_REFRESH = 5, + ALTER_SUBSCRIPTION_ENABLED = 6, + ALTER_SUBSCRIPTION_SKIP = 7, +} +export enum OverridingKind { + OVERRIDING_NOT_SET = 0, + OVERRIDING_USER_VALUE = 1, + OVERRIDING_SYSTEM_VALUE = 2, +} +export enum OnCommitAction { + ONCOMMIT_NOOP = 0, + ONCOMMIT_PRESERVE_ROWS = 1, + ONCOMMIT_DELETE_ROWS = 2, + ONCOMMIT_DROP = 3, +} +export enum TableFuncType { + TFT_XMLTABLE = 0, + TFT_JSON_TABLE = 1, +} +export enum ParamKind { + PARAM_EXTERN = 0, + PARAM_EXEC = 1, + PARAM_SUBLINK = 2, + PARAM_MULTIEXPR = 3, +} +export enum CoercionContext { + COERCION_IMPLICIT = 0, + COERCION_ASSIGNMENT = 1, + COERCION_PLPGSQL = 2, + COERCION_EXPLICIT = 3, +} +export enum CoercionForm { + COERCE_EXPLICIT_CALL = 0, + COERCE_EXPLICIT_CAST = 1, + COERCE_IMPLICIT_CAST = 2, + COERCE_SQL_SYNTAX = 3, +} +export enum BoolExprType { + AND_EXPR = 0, + OR_EXPR = 1, + NOT_EXPR = 2, +} +export enum SubLinkType { + EXISTS_SUBLINK = 0, + ALL_SUBLINK = 1, + ANY_SUBLINK = 2, + ROWCOMPARE_SUBLINK = 3, + EXPR_SUBLINK = 4, + MULTIEXPR_SUBLINK = 5, + ARRAY_SUBLINK = 6, + CTE_SUBLINK = 7, +} +export enum RowCompareType { + ROWCOMPARE_LT = 0, + ROWCOMPARE_LE = 1, + ROWCOMPARE_EQ = 2, + ROWCOMPARE_GE = 3, + ROWCOMPARE_GT = 4, + ROWCOMPARE_NE = 5, +} +export enum MinMaxOp { + IS_GREATEST = 0, + IS_LEAST = 1, +} +export enum SQLValueFunctionOp { + SVFOP_CURRENT_DATE = 0, + SVFOP_CURRENT_TIME = 1, + SVFOP_CURRENT_TIME_N = 2, + SVFOP_CURRENT_TIMESTAMP = 3, + SVFOP_CURRENT_TIMESTAMP_N = 4, + SVFOP_LOCALTIME = 5, + SVFOP_LOCALTIME_N = 6, + SVFOP_LOCALTIMESTAMP = 7, + SVFOP_LOCALTIMESTAMP_N = 8, + SVFOP_CURRENT_ROLE = 9, + SVFOP_CURRENT_USER = 10, + SVFOP_USER = 11, + SVFOP_SESSION_USER = 12, + SVFOP_CURRENT_CATALOG = 13, + SVFOP_CURRENT_SCHEMA = 14, +} +export enum XmlExprOp { + IS_XMLCONCAT = 0, + IS_XMLELEMENT = 1, + IS_XMLFOREST = 2, + IS_XMLPARSE = 3, + IS_XMLPI = 4, + IS_XMLROOT = 5, + IS_XMLSERIALIZE = 6, + IS_DOCUMENT = 7, +} +export enum XmlOptionType { + XMLOPTION_DOCUMENT = 0, + XMLOPTION_CONTENT = 1, +} +export enum JsonEncoding { + JS_ENC_DEFAULT = 0, + JS_ENC_UTF8 = 1, + JS_ENC_UTF16 = 2, + JS_ENC_UTF32 = 3, +} +export enum JsonFormatType { + JS_FORMAT_DEFAULT = 0, + JS_FORMAT_JSON = 1, + JS_FORMAT_JSONB = 2, +} +export enum JsonConstructorType { + JSCTOR_JSON_OBJECT = 0, + JSCTOR_JSON_ARRAY = 1, + JSCTOR_JSON_OBJECTAGG = 2, + JSCTOR_JSON_ARRAYAGG = 3, + JSCTOR_JSON_PARSE = 4, + JSCTOR_JSON_SCALAR = 5, + JSCTOR_JSON_SERIALIZE = 6, +} +export enum JsonValueType { + JS_TYPE_ANY = 0, + JS_TYPE_OBJECT = 1, + JS_TYPE_ARRAY = 2, + JS_TYPE_SCALAR = 3, +} +export enum JsonWrapper { + JSW_UNSPEC = 0, + JSW_NONE = 1, + JSW_CONDITIONAL = 2, + JSW_UNCONDITIONAL = 3, +} +export enum JsonBehaviorType { + JSON_BEHAVIOR_NULL = 0, + JSON_BEHAVIOR_ERROR = 1, + JSON_BEHAVIOR_EMPTY = 2, + JSON_BEHAVIOR_TRUE = 3, + JSON_BEHAVIOR_FALSE = 4, + JSON_BEHAVIOR_UNKNOWN = 5, + JSON_BEHAVIOR_EMPTY_ARRAY = 6, + JSON_BEHAVIOR_EMPTY_OBJECT = 7, + JSON_BEHAVIOR_DEFAULT = 8, +} +export enum JsonExprOp { + JSON_EXISTS_OP = 0, + JSON_QUERY_OP = 1, + JSON_VALUE_OP = 2, + JSON_TABLE_OP = 3, +} +export enum NullTestType { + IS_NULL = 0, + IS_NOT_NULL = 1, +} +export enum BoolTestType { + IS_TRUE = 0, + IS_NOT_TRUE = 1, + IS_FALSE = 2, + IS_NOT_FALSE = 3, + IS_UNKNOWN = 4, + IS_NOT_UNKNOWN = 5, +} +export enum MergeMatchKind { + MERGE_WHEN_MATCHED = 0, + MERGE_WHEN_NOT_MATCHED_BY_SOURCE = 1, + MERGE_WHEN_NOT_MATCHED_BY_TARGET = 2, +} +export enum CmdType { + CMD_UNKNOWN = 0, + CMD_SELECT = 1, + CMD_UPDATE = 2, + CMD_INSERT = 3, + CMD_DELETE = 4, + CMD_MERGE = 5, + CMD_UTILITY = 6, + CMD_NOTHING = 7, +} +export enum JoinType { + JOIN_INNER = 0, + JOIN_LEFT = 1, + JOIN_FULL = 2, + JOIN_RIGHT = 3, + JOIN_SEMI = 4, + JOIN_ANTI = 5, + JOIN_RIGHT_ANTI = 6, + JOIN_UNIQUE_OUTER = 7, + JOIN_UNIQUE_INNER = 8, +} +export enum AggStrategy { + AGG_PLAIN = 0, + AGG_SORTED = 1, + AGG_HASHED = 2, + AGG_MIXED = 3, +} +export enum AggSplit { + AGGSPLIT_SIMPLE = 0, + AGGSPLIT_INITIAL_SERIAL = 1, + AGGSPLIT_FINAL_DESERIAL = 2, +} +export enum SetOpCmd { + SETOPCMD_INTERSECT = 0, + SETOPCMD_INTERSECT_ALL = 1, + SETOPCMD_EXCEPT = 2, + SETOPCMD_EXCEPT_ALL = 3, +} +export enum SetOpStrategy { + SETOP_SORTED = 0, + SETOP_HASHED = 1, +} +export enum OnConflictAction { + ONCONFLICT_NONE = 0, + ONCONFLICT_NOTHING = 1, + ONCONFLICT_UPDATE = 2, +} +export enum LimitOption { + LIMIT_OPTION_DEFAULT = 0, + LIMIT_OPTION_COUNT = 1, + LIMIT_OPTION_WITH_TIES = 2, +} +export enum LockClauseStrength { + LCS_NONE = 0, + LCS_FORKEYSHARE = 1, + LCS_FORSHARE = 2, + LCS_FORNOKEYUPDATE = 3, + LCS_FORUPDATE = 4, +} +export enum LockWaitPolicy { + LockWaitBlock = 0, + LockWaitSkip = 1, + LockWaitError = 2, +} +export enum LockTupleMode { + LockTupleKeyShare = 0, + LockTupleShare = 1, + LockTupleNoKeyExclusive = 2, + LockTupleExclusive = 3, +} +export enum KeywordKind { + NO_KEYWORD = 0, + UNRESERVED_KEYWORD = 1, + COL_NAME_KEYWORD = 2, + TYPE_FUNC_NAME_KEYWORD = 3, + RESERVED_KEYWORD = 4, +} +export enum Token { + NUL = 0, + ASCII_36 = 36, + ASCII_37 = 37, + ASCII_40 = 40, + ASCII_41 = 41, + ASCII_42 = 42, + ASCII_43 = 43, + ASCII_44 = 44, + ASCII_45 = 45, + ASCII_46 = 46, + ASCII_47 = 47, + ASCII_58 = 58, + ASCII_59 = 59, + ASCII_60 = 60, + ASCII_61 = 61, + ASCII_62 = 62, + ASCII_63 = 63, + ASCII_91 = 91, + ASCII_92 = 92, + ASCII_93 = 93, + ASCII_94 = 94, + IDENT = 258, + UIDENT = 259, + FCONST = 260, + SCONST = 261, + USCONST = 262, + BCONST = 263, + XCONST = 264, + Op = 265, + ICONST = 266, + PARAM = 267, + TYPECAST = 268, + DOT_DOT = 269, + COLON_EQUALS = 270, + EQUALS_GREATER = 271, + LESS_EQUALS = 272, + GREATER_EQUALS = 273, + NOT_EQUALS = 274, + SQL_COMMENT = 275, + C_COMMENT = 276, + ABORT_P = 277, + ABSENT = 278, + ABSOLUTE_P = 279, + ACCESS = 280, + ACTION = 281, + ADD_P = 282, + ADMIN = 283, + AFTER = 284, + AGGREGATE = 285, + ALL = 286, + ALSO = 287, + ALTER = 288, + ALWAYS = 289, + ANALYSE = 290, + ANALYZE = 291, + AND = 292, + ANY = 293, + ARRAY = 294, + AS = 295, + ASC = 296, + ASENSITIVE = 297, + ASSERTION = 298, + ASSIGNMENT = 299, + ASYMMETRIC = 300, + ATOMIC = 301, + AT = 302, + ATTACH = 303, + ATTRIBUTE = 304, + AUTHORIZATION = 305, + BACKWARD = 306, + BEFORE = 307, + BEGIN_P = 308, + BETWEEN = 309, + BIGINT = 310, + BINARY = 311, + BIT = 312, + BOOLEAN_P = 313, + BOTH = 314, + BREADTH = 315, + BY = 316, + CACHE = 317, + CALL = 318, + CALLED = 319, + CASCADE = 320, + CASCADED = 321, + CASE = 322, + CAST = 323, + CATALOG_P = 324, + CHAIN = 325, + CHAR_P = 326, + CHARACTER = 327, + CHARACTERISTICS = 328, + CHECK = 329, + CHECKPOINT = 330, + CLASS = 331, + CLOSE = 332, + CLUSTER = 333, + COALESCE = 334, + COLLATE = 335, + COLLATION = 336, + COLUMN = 337, + COLUMNS = 338, + COMMENT = 339, + COMMENTS = 340, + COMMIT = 341, + COMMITTED = 342, + COMPRESSION = 343, + CONCURRENTLY = 344, + CONDITIONAL = 345, + CONFIGURATION = 346, + CONFLICT = 347, + CONNECTION = 348, + CONSTRAINT = 349, + CONSTRAINTS = 350, + CONTENT_P = 351, + CONTINUE_P = 352, + CONVERSION_P = 353, + COPY = 354, + COST = 355, + CREATE = 356, + CROSS = 357, + CSV = 358, + CUBE = 359, + CURRENT_P = 360, + CURRENT_CATALOG = 361, + CURRENT_DATE = 362, + CURRENT_ROLE = 363, + CURRENT_SCHEMA = 364, + CURRENT_TIME = 365, + CURRENT_TIMESTAMP = 366, + CURRENT_USER = 367, + CURSOR = 368, + CYCLE = 369, + DATA_P = 370, + DATABASE = 371, + DAY_P = 372, + DEALLOCATE = 373, + DEC = 374, + DECIMAL_P = 375, + DECLARE = 376, + DEFAULT = 377, + DEFAULTS = 378, + DEFERRABLE = 379, + DEFERRED = 380, + DEFINER = 381, + DELETE_P = 382, + DELIMITER = 383, + DELIMITERS = 384, + DEPENDS = 385, + DEPTH = 386, + DESC = 387, + DETACH = 388, + DICTIONARY = 389, + DISABLE_P = 390, + DISCARD = 391, + DISTINCT = 392, + DO = 393, + DOCUMENT_P = 394, + DOMAIN_P = 395, + DOUBLE_P = 396, + DROP = 397, + EACH = 398, + ELSE = 399, + EMPTY_P = 400, + ENABLE_P = 401, + ENCODING = 402, + ENCRYPTED = 403, + END_P = 404, + ENUM_P = 405, + ERROR_P = 406, + ESCAPE = 407, + EVENT = 408, + EXCEPT = 409, + EXCLUDE = 410, + EXCLUDING = 411, + EXCLUSIVE = 412, + EXECUTE = 413, + EXISTS = 414, + EXPLAIN = 415, + EXPRESSION = 416, + EXTENSION = 417, + EXTERNAL = 418, + EXTRACT = 419, + FALSE_P = 420, + FAMILY = 421, + FETCH = 422, + FILTER = 423, + FINALIZE = 424, + FIRST_P = 425, + FLOAT_P = 426, + FOLLOWING = 427, + FOR = 428, + FORCE = 429, + FOREIGN = 430, + FORMAT = 431, + FORWARD = 432, + FREEZE = 433, + FROM = 434, + FULL = 435, + FUNCTION = 436, + FUNCTIONS = 437, + GENERATED = 438, + GLOBAL = 439, + GRANT = 440, + GRANTED = 441, + GREATEST = 442, + GROUP_P = 443, + GROUPING = 444, + GROUPS = 445, + HANDLER = 446, + HAVING = 447, + HEADER_P = 448, + HOLD = 449, + HOUR_P = 450, + IDENTITY_P = 451, + IF_P = 452, + ILIKE = 453, + IMMEDIATE = 454, + IMMUTABLE = 455, + IMPLICIT_P = 456, + IMPORT_P = 457, + IN_P = 458, + INCLUDE = 459, + INCLUDING = 460, + INCREMENT = 461, + INDENT = 462, + INDEX = 463, + INDEXES = 464, + INHERIT = 465, + INHERITS = 466, + INITIALLY = 467, + INLINE_P = 468, + INNER_P = 469, + INOUT = 470, + INPUT_P = 471, + INSENSITIVE = 472, + INSERT = 473, + INSTEAD = 474, + INT_P = 475, + INTEGER = 476, + INTERSECT = 477, + INTERVAL = 478, + INTO = 479, + INVOKER = 480, + IS = 481, + ISNULL = 482, + ISOLATION = 483, + JOIN = 484, + JSON = 485, + JSON_ARRAY = 486, + JSON_ARRAYAGG = 487, + JSON_EXISTS = 488, + JSON_OBJECT = 489, + JSON_OBJECTAGG = 490, + JSON_QUERY = 491, + JSON_SCALAR = 492, + JSON_SERIALIZE = 493, + JSON_TABLE = 494, + JSON_VALUE = 495, + KEEP = 496, + KEY = 497, + KEYS = 498, + LABEL = 499, + LANGUAGE = 500, + LARGE_P = 501, + LAST_P = 502, + LATERAL_P = 503, + LEADING = 504, + LEAKPROOF = 505, + LEAST = 506, + LEFT = 507, + LEVEL = 508, + LIKE = 509, + LIMIT = 510, + LISTEN = 511, + LOAD = 512, + LOCAL = 513, + LOCALTIME = 514, + LOCALTIMESTAMP = 515, + LOCATION = 516, + LOCK_P = 517, + LOCKED = 518, + LOGGED = 519, + MAPPING = 520, + MATCH = 521, + MATCHED = 522, + MATERIALIZED = 523, + MAXVALUE = 524, + MERGE = 525, + MERGE_ACTION = 526, + METHOD = 527, + MINUTE_P = 528, + MINVALUE = 529, + MODE = 530, + MONTH_P = 531, + MOVE = 532, + NAME_P = 533, + NAMES = 534, + NATIONAL = 535, + NATURAL = 536, + NCHAR = 537, + NESTED = 538, + NEW = 539, + NEXT = 540, + NFC = 541, + NFD = 542, + NFKC = 543, + NFKD = 544, + NO = 545, + NONE = 546, + NORMALIZE = 547, + NORMALIZED = 548, + NOT = 549, + NOTHING = 550, + NOTIFY = 551, + NOTNULL = 552, + NOWAIT = 553, + NULL_P = 554, + NULLIF = 555, + NULLS_P = 556, + NUMERIC = 557, + OBJECT_P = 558, + OF = 559, + OFF = 560, + OFFSET = 561, + OIDS = 562, + OLD = 563, + OMIT = 564, + ON = 565, + ONLY = 566, + OPERATOR = 567, + OPTION = 568, + OPTIONS = 569, + OR = 570, + ORDER = 571, + ORDINALITY = 572, + OTHERS = 573, + OUT_P = 574, + OUTER_P = 575, + OVER = 576, + OVERLAPS = 577, + OVERLAY = 578, + OVERRIDING = 579, + OWNED = 580, + OWNER = 581, + PARALLEL = 582, + PARAMETER = 583, + PARSER = 584, + PARTIAL = 585, + PARTITION = 586, + PASSING = 587, + PASSWORD = 588, + PATH = 589, + PLACING = 590, + PLAN = 591, + PLANS = 592, + POLICY = 593, + POSITION = 594, + PRECEDING = 595, + PRECISION = 596, + PRESERVE = 597, + PREPARE = 598, + PREPARED = 599, + PRIMARY = 600, + PRIOR = 601, + PRIVILEGES = 602, + PROCEDURAL = 603, + PROCEDURE = 604, + PROCEDURES = 605, + PROGRAM = 606, + PUBLICATION = 607, + QUOTE = 608, + QUOTES = 609, + RANGE = 610, + READ = 611, + REAL = 612, + REASSIGN = 613, + RECHECK = 614, + RECURSIVE = 615, + REF_P = 616, + REFERENCES = 617, + REFERENCING = 618, + REFRESH = 619, + REINDEX = 620, + RELATIVE_P = 621, + RELEASE = 622, + RENAME = 623, + REPEATABLE = 624, + REPLACE = 625, + REPLICA = 626, + RESET = 627, + RESTART = 628, + RESTRICT = 629, + RETURN = 630, + RETURNING = 631, + RETURNS = 632, + REVOKE = 633, + RIGHT = 634, + ROLE = 635, + ROLLBACK = 636, + ROLLUP = 637, + ROUTINE = 638, + ROUTINES = 639, + ROW = 640, + ROWS = 641, + RULE = 642, + SAVEPOINT = 643, + SCALAR = 644, + SCHEMA = 645, + SCHEMAS = 646, + SCROLL = 647, + SEARCH = 648, + SECOND_P = 649, + SECURITY = 650, + SELECT = 651, + SEQUENCE = 652, + SEQUENCES = 653, + SERIALIZABLE = 654, + SERVER = 655, + SESSION = 656, + SESSION_USER = 657, + SET = 658, + SETS = 659, + SETOF = 660, + SHARE = 661, + SHOW = 662, + SIMILAR = 663, + SIMPLE = 664, + SKIP = 665, + SMALLINT = 666, + SNAPSHOT = 667, + SOME = 668, + SOURCE = 669, + SQL_P = 670, + STABLE = 671, + STANDALONE_P = 672, + START = 673, + STATEMENT = 674, + STATISTICS = 675, + STDIN = 676, + STDOUT = 677, + STORAGE = 678, + STORED = 679, + STRICT_P = 680, + STRING_P = 681, + STRIP_P = 682, + SUBSCRIPTION = 683, + SUBSTRING = 684, + SUPPORT = 685, + SYMMETRIC = 686, + SYSID = 687, + SYSTEM_P = 688, + SYSTEM_USER = 689, + TABLE = 690, + TABLES = 691, + TABLESAMPLE = 692, + TABLESPACE = 693, + TARGET = 694, + TEMP = 695, + TEMPLATE = 696, + TEMPORARY = 697, + TEXT_P = 698, + THEN = 699, + TIES = 700, + TIME = 701, + TIMESTAMP = 702, + TO = 703, + TRAILING = 704, + TRANSACTION = 705, + TRANSFORM = 706, + TREAT = 707, + TRIGGER = 708, + TRIM = 709, + TRUE_P = 710, + TRUNCATE = 711, + TRUSTED = 712, + TYPE_P = 713, + TYPES_P = 714, + UESCAPE = 715, + UNBOUNDED = 716, + UNCONDITIONAL = 717, + UNCOMMITTED = 718, + UNENCRYPTED = 719, + UNION = 720, + UNIQUE = 721, + UNKNOWN = 722, + UNLISTEN = 723, + UNLOGGED = 724, + UNTIL = 725, + UPDATE = 726, + USER = 727, + USING = 728, + VACUUM = 729, + VALID = 730, + VALIDATE = 731, + VALIDATOR = 732, + VALUE_P = 733, + VALUES = 734, + VARCHAR = 735, + VARIADIC = 736, + VARYING = 737, + VERBOSE = 738, + VERSION_P = 739, + VIEW = 740, + VIEWS = 741, + VOLATILE = 742, + WHEN = 743, + WHERE = 744, + WHITESPACE_P = 745, + WINDOW = 746, + WITH = 747, + WITHIN = 748, + WITHOUT = 749, + WORK = 750, + WRAPPER = 751, + WRITE = 752, + XML_P = 753, + XMLATTRIBUTES = 754, + XMLCONCAT = 755, + XMLELEMENT = 756, + XMLEXISTS = 757, + XMLFOREST = 758, + XMLNAMESPACES = 759, + XMLPARSE = 760, + XMLPI = 761, + XMLROOT = 762, + XMLSERIALIZE = 763, + XMLTABLE = 764, + YEAR_P = 765, + YES_P = 766, + ZONE = 767, + FORMAT_LA = 768, + NOT_LA = 769, + NULLS_LA = 770, + WITH_LA = 771, + WITHOUT_LA = 772, + MODE_TYPE_NAME = 773, + MODE_PLPGSQL_EXPR = 774, + MODE_PLPGSQL_ASSIGN1 = 775, + MODE_PLPGSQL_ASSIGN2 = 776, + MODE_PLPGSQL_ASSIGN3 = 777, + UMINUS = 778, +} \ No newline at end of file diff --git a/packages/parser/README.md b/packages/parser/README.md index 07f5d6d1..3e1d7c90 100644 --- a/packages/parser/README.md +++ b/packages/parser/README.md @@ -27,6 +27,51 @@ npm install pgsql-parser - **True PostgreSQL Parsing:** Utilizes the real PostgreSQL source code for accurate parsing. - **Symmetric Parsing and Deparsing:** Convert SQL to AST and back, enabling query manipulation. - **AST Manipulation:** Easily modify parts of a SQL statement through the AST. +- **WebAssembly Powered:** Cross-platform compatibility without native dependencies. + +## API + +The package exports both async and sync methods. Async methods handle initialization automatically, while sync methods require explicit initialization. + +⚠️ We recommend using `@pgsql/deparser` instead of `deparse` from `pgsql-parser`. The deparser package is more complete, supports sub-expressions, and doesn't require the WebAssembly module, making it lighter and more flexible for most use cases. It will soon be deprecated, in a minor version bump. + +### Async Methods (Recommended) + +```typescript +import { parse, deparse, parseFunction } from 'pgsql-parser'; + +// Parse SQL to AST +const stmts = await parse('SELECT * FROM test_table'); + +// Deparse AST back to SQL +const sql = await deparse(stmts); + +// Parse PL/pgSQL functions +const funcAst = await parseFunction(` + CREATE FUNCTION get_count() RETURNS integer AS $$ + BEGIN + RETURN (SELECT COUNT(*) FROM users); + END; + $$ LANGUAGE plpgsql; +`); +``` + +### Sync Methods + +Sync methods require explicit initialization using `loadModule()`: + +```typescript +import { loadModule, parseSync, deparseSync } from 'pgsql-parser'; + +// Initialize first (required for sync methods) +await loadModule(); + +// Now safe to use sync methods +const stmts = parseSync('SELECT * FROM test_table'); +const sql = deparseSync(stmts); +``` + +**Note:** We recommend using async methods as they handle initialization automatically. Use sync methods only when necessary, and always call `loadModule()` first. ## Parser Example @@ -35,12 +80,12 @@ Rewrite part of a SQL query: ```js import { parse, deparse } from 'pgsql-parser'; -const stmts = parse('SELECT * FROM test_table'); +const stmts = await parse('SELECT * FROM test_table'); // Assuming the structure of stmts is known and matches the expected type stmts[0].RawStmt.stmt.SelectStmt.fromClause[0].RangeVar.relname = 'another_table'; -console.log(deparse(stmts)); +console.log(await deparse(stmts)); // SELECT * FROM "another_table" ``` @@ -52,11 +97,11 @@ The `pgsql-deparser` module serializes ASTs to SQL in pure TypeScript, avoiding Here's how you can use the deparser in your TypeScript code, using [`@pgsql/utils`](https://github.com/launchql/pgsql-parser/tree/main/packages/utils) to create an AST for `deparse`: ```ts -import ast, { SelectStmt } from '@pgsql/utils'; +import ast from '@pgsql/utils'; import { deparse } from 'pgsql-deparser'; // This could have been obtained from any JSON or AST, not necessarily @pgsql/utils -const stmt: SelectStmt = ast.selectStmt({ +const stmt = ast.selectStmt({ targetList: [ ast.resTarget({ val: ast.columnRef({ @@ -96,51 +141,16 @@ npm install -g pgsql-parser pgsql-parser ``` -### Documentation - -### `parser.parse(sql)` - -Parses the query and returns a parse object. - -### Parameters - -| parameter | type | description | -| -------------------- | ------------------ | --------------------------------------------------------- | -| `query` | String | SQL query | - -Returns an object in the format: - -``` -{ query: , - error: { message: , - fileName: , - lineNumber: , - cursorPosition: } -``` - -### `parser.deparse(query)` - -Deparses the query tree and returns a formatted SQL statement. This function takes as input a query AST -in the same format as the `query` property of on the result of the `parse` method. This is the primary -functionality of this module. - -### Parameters - -| parameter | type | description | -| -------------------- | ------------------ | --------------------------------------------------------- | -| `query` | Object | Query tree obtained from `parse` | - -Returns a normalized formatted SQL string. - ## Versions As of PG 13, PG majors versions maintained will have a matching dedicated major npm version. Only the latest Postgres stable release receives active updates. -Our latest is built with `13-latest` branch from libpg_query +Our latest is built with `17-latest` branch from libpg_query -| PostgreSQL Major Version | libpg_query | Status | npm +| PostgreSQL Major Version | libpg_query | Status | npm tag | |--------------------------|-------------|---------------------|---------| -| 13 | 13-latest | Active development | `latest` +| 17 | 17-latest | Active Development | `latest` | +| 13 | 13-latest | Only Critical Fixes | `13.16.0` | | 12 | (n/a) | Not supported | | 11 | (n/a) | Not supported | | 10 | 10-latest | Not supported | `@1.3.1` ([tree](https://github.com/launchql/pgsql-parser/tree/39b7b1adc8914253226e286a48105785219a81ca)) | @@ -157,22 +167,18 @@ Our latest is built with `13-latest` branch from libpg_query * [pg-proto-parser](https://github.com/launchql/pg-proto-parser): A TypeScript tool that parses PostgreSQL Protocol Buffers definitions to generate TypeScript interfaces, utility functions, and JSON mappings for enums. * [libpg-query](https://github.com/launchql/libpg-query-node): The real PostgreSQL parser exposed for Node.js, used primarily in `pgsql-parser` for parsing and deparsing SQL queries. +## Credits + Thanks [@lfittl](https://github.com/lfittl) for building the core `libpg_query` suite: * [libpg_query](https://github.com/pganalyze/libpg_query) * [pg_query](https://github.com/lfittl/pg_query) * [pg_query.go](https://github.com/lfittl/pg_query.go) -## Credits - -Thanks to [@zhm](https://github.com/zhm) for the OG parser that started it all: - -* [pg-query-parser](https://github.com/zhm/pg-query-parser) -* [pg-query-native](https://github.com/zhm/node-pg-query-native) -* [Original LICENSE](https://github.com/zhm/pg-query-parser/blob/master/LICENSE.md) +Thanks to [@zhm](https://github.com/zhm) for the [OG Parser](https://github.com/zhm/pg-query-parser/blob/master/LICENSE.md) that started it all. ## Disclaimer -AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED “AS IS”, AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. +AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. No developer or entity involved in creating Software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the Software code or Software CLI, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. \ No newline at end of file diff --git a/packages/parser/__tests__/__snapshots__/async.test.ts.snap b/packages/parser/__tests__/__snapshots__/async.test.ts.snap deleted file mode 100644 index 00aeb599..00000000 --- a/packages/parser/__tests__/__snapshots__/async.test.ts.snap +++ /dev/null @@ -1,119 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`works 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": undefined, - "relname": "restaurants", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": undefined, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": undefined, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "health_grade", - }, - }, - ], - "location": undefined, - }, - }, - "location": undefined, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": undefined, - "sval": { - "sval": "A", - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "average_rating", - }, - }, - ], - "location": undefined, - }, - }, - "location": undefined, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "fval": { - "fval": "4.5", - }, - "location": undefined, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": undefined, - }, - }, - }, - }, - "stmt_len": undefined, - "stmt_location": undefined, - }, - }, -] -`; diff --git a/packages/parser/__tests__/__snapshots__/funcs.test.ts.snap b/packages/parser/__tests__/__snapshots__/funcs.test.ts.snap deleted file mode 100644 index 1b3624a2..00000000 --- a/packages/parser/__tests__/__snapshots__/funcs.test.ts.snap +++ /dev/null @@ -1,189 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`works 1`] = ` -[ - { - "PLpgSQL_function": { - "action": { - "PLpgSQL_stmt_block": { - "body": [ - { - "PLpgSQL_stmt_assign": { - "expr": { - "PLpgSQL_expr": { - "parseMode": 3, - "query": "result = ast.jsonb_set(result, '{IndexElem, name}', to_jsonb(v_name))", - }, - }, - "lineno": 5, - "varno": 7, - }, - }, - { - "PLpgSQL_stmt_assign": { - "expr": { - "PLpgSQL_expr": { - "parseMode": 3, - "query": "result = ast.jsonb_set(result, '{IndexElem, ordering}', to_jsonb(v_ordering))", - }, - }, - "lineno": 6, - "varno": 7, - }, - }, - { - "PLpgSQL_stmt_assign": { - "expr": { - "PLpgSQL_expr": { - "parseMode": 3, - "query": "result = ast.jsonb_set(result, '{IndexElem, nulls_ordering}', to_jsonb(v_nulls_ordering))", - }, - }, - "lineno": 7, - "varno": 7, - }, - }, - { - "PLpgSQL_stmt_assign": { - "expr": { - "PLpgSQL_expr": { - "parseMode": 3, - "query": "result = ast.jsonb_set(result, '{IndexElem, expr}', v_expr)", - }, - }, - "lineno": 8, - "varno": 7, - }, - }, - { - "PLpgSQL_stmt_assign": { - "expr": { - "PLpgSQL_expr": { - "parseMode": 3, - "query": "result = ast.jsonb_set(result, '{IndexElem, opclass}', v_opclass)", - }, - }, - "lineno": 9, - "varno": 7, - }, - }, - { - "PLpgSQL_stmt_assign": { - "expr": { - "PLpgSQL_expr": { - "parseMode": 3, - "query": "result = ast.jsonb_set(result, '{IndexElem, collation}', v_collation)", - }, - }, - "lineno": 10, - "varno": 7, - }, - }, - { - "PLpgSQL_stmt_return": { - "expr": { - "PLpgSQL_expr": { - "parseMode": 2, - "query": "result", - }, - }, - "lineno": 11, - }, - }, - ], - "lineno": 4, - }, - }, - "datums": [ - { - "PLpgSQL_var": { - "datatype": { - "PLpgSQL_type": { - "typname": "text", - }, - }, - "refname": "v_name", - }, - }, - { - "PLpgSQL_var": { - "datatype": { - "PLpgSQL_type": { - "typname": "pg_catalog.int4", - }, - }, - "refname": "v_ordering", - }, - }, - { - "PLpgSQL_var": { - "datatype": { - "PLpgSQL_type": { - "typname": "pg_catalog.int4", - }, - }, - "refname": "v_nulls_ordering", - }, - }, - { - "PLpgSQL_var": { - "datatype": { - "PLpgSQL_type": { - "typname": "jsonb", - }, - }, - "refname": "v_expr", - }, - }, - { - "PLpgSQL_var": { - "datatype": { - "PLpgSQL_type": { - "typname": "jsonb", - }, - }, - "refname": "v_opclass", - }, - }, - { - "PLpgSQL_var": { - "datatype": { - "PLpgSQL_type": { - "typname": "jsonb", - }, - }, - "refname": "v_collation", - }, - }, - { - "PLpgSQL_var": { - "datatype": { - "PLpgSQL_type": { - "typname": "pg_catalog."boolean"", - }, - }, - "refname": "found", - }, - }, - { - "PLpgSQL_var": { - "datatype": { - "PLpgSQL_type": { - "typname": "jsonb ", - }, - }, - "default_val": { - "PLpgSQL_expr": { - "parseMode": 2, - "query": "'{"IndexElem":{}}'::jsonb", - }, - }, - "lineno": 3, - "refname": "result", - }, - }, - ], - }, - }, -] -`; diff --git a/packages/parser/__tests__/__snapshots__/kitchen-sink.test.ts.snap b/packages/parser/__tests__/__snapshots__/kitchen-sink.test.ts.snap deleted file mode 100644 index d440b573..00000000 --- a/packages/parser/__tests__/__snapshots__/kitchen-sink.test.ts.snap +++ /dev/null @@ -1,508561 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`a_expr 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "c", - }, - "inh": true, - "location": 278, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 320, - }, - }, - "location": 326, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relnamespace", - }, - }, - ], - "location": 328, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "n", - }, - "inh": true, - "location": 302, - "relname": "pg_namespace", - "relpersistence": "p", - }, - }, - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "r", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 368, - }, - }, - "location": 374, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relowner", - }, - }, - ], - "location": 376, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "r", - }, - "inh": true, - "location": 354, - "relname": "pg_roles", - "relpersistence": "p", - }, - }, - }, - }, - { - "RangeFunction": { - "alias": { - "aliasname": "acl", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "CoalesceExpr": { - "args": [ - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relacl", - }, - }, - ], - "location": 410, - }, - }, - "location": 416, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 418, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 433, - "sval": { - "sval": "{%%s=arwdDxt/%%s}", - }, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "rolname", - }, - }, - ], - "location": 454, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "rolname", - }, - }, - ], - "location": 463, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 426, - }, - }, - "location": 471, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 473, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "location": 401, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "unnest", - }, - }, - ], - "location": 394, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - { - "RangeFunction": { - "alias": { - "aliasname": "s", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "acl", - }, - }, - ], - "location": 518, - }, - }, - { - "A_Const": { - "location": 523, - "sval": { - "sval": "=|/", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "regexp_split_to_array", - }, - }, - ], - "location": 496, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "grantee", - }, - }, - ], - "location": 668, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "table_name", - }, - }, - ], - "location": 677, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "table_schema", - }, - }, - ], - "location": 689, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relkind", - }, - }, - ], - "location": 703, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relkind", - }, - }, - ], - "location": 726, - }, - }, - "location": 734, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 737, - "sval": { - "sval": "r", - }, - }, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relkind", - }, - }, - ], - "location": 742, - }, - }, - "location": 750, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 753, - "sval": { - "sval": "v", - }, - }, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relkind", - }, - }, - ], - "location": 758, - }, - }, - "location": 766, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 769, - "sval": { - "sval": "m", - }, - }, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relkind", - }, - }, - ], - "location": 774, - }, - }, - "location": 782, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 785, - "sval": { - "sval": "i", - }, - }, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relkind", - }, - }, - ], - "location": 790, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 799, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 808, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 70, - "name": "grantee", - "val": { - "CoalesceExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_NULLIF", - "lexpr": { - "A_Indirection": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "s", - }, - }, - ], - "location": 86, - }, - }, - "indirection": [ - { - "A_Indices": { - "uidx": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 88, - }, - }, - }, - }, - ], - }, - }, - "location": 79, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 92, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "A_Const": { - "location": 97, - "sval": { - "sval": "PUBLIC", - }, - }, - }, - ], - "location": 70, - }, - }, - }, - }, - { - "ResTarget": { - "location": 127, - "name": "table_name", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 127, - }, - }, - }, - }, - { - "ResTarget": { - "location": 158, - "name": "table_schema", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 158, - }, - }, - }, - }, - { - "ResTarget": { - "location": 191, - "name": "privileges", - "val": { - "FuncCall": { - "args": [ - { - "A_Indirection": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "s", - }, - }, - ], - "location": 202, - }, - }, - "indirection": [ - { - "A_Indices": { - "uidx": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 204, - }, - }, - }, - }, - ], - }, - }, - { - "A_Const": { - "location": 208, - "sval": { - "sval": ", ", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "string_agg", - }, - }, - ], - "location": 191, - }, - }, - }, - }, - { - "ResTarget": { - "location": 237, - "name": "table_type", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relkind", - }, - }, - ], - "location": 237, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Indirection": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "s", - }, - }, - ], - "location": 545, - }, - }, - "indirection": [ - { - "A_Indices": { - "uidx": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 547, - }, - }, - }, - }, - ], - }, - }, - "location": 550, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 552, - "sval": { - "sval": "authenticated", - }, - }, - }, - }, - }, - { - "NullTest": { - "arg": { - "A_Indirection": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "s", - }, - }, - ], - "location": 571, - }, - }, - "indirection": [ - { - "A_Indices": { - "uidx": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 573, - }, - }, - }, - }, - ], - }, - }, - "location": 576, - "nulltesttype": "IS_NULL", - }, - }, - ], - "boolop": "OR_EXPR", - "location": 568, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 589, - }, - }, - "location": 597, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 605, - "sval": { - "sval": "pg_catalog", - }, - }, - }, - { - "A_Const": { - "location": 619, - "sval": { - "sval": "information_schema", - }, - }, - }, - { - "A_Const": { - "location": 641, - "sval": { - "sval": "pg_toast", - }, - }, - }, - ], - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 585, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 12, - "relname": "app_authorized_grants", - "relpersistence": "p", - "schemaname": "superschema", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 815, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 837, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 837, - }, - }, - "location": 839, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 841, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 816, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 886, - "relname": "vtable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 868, - "val": { - "A_Expr": { - "kind": "AEXPR_OP_ANY", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "foo", - }, - }, - ], - "location": 868, - }, - }, - "location": 872, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 878, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 49, - "stmt_location": 843, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 936, - "relname": "vtable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 918, - "val": { - "A_Expr": { - "kind": "AEXPR_OP_ALL", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "foo", - }, - }, - ], - "location": 918, - }, - }, - "location": 922, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 928, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 49, - "stmt_location": 893, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1006, - "relname": "vtable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 993, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "foo", - }, - }, - ], - "location": 993, - }, - }, - }, - }, - { - "ResTarget": { - "location": 997, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "bar", - }, - }, - ], - "location": 997, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_DISTINCT", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "foo", - }, - }, - ], - "location": 1019, - }, - }, - "location": 1023, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "bar", - }, - }, - ], - "location": 1040, - }, - }, - }, - }, - }, - }, - "stmt_len": 100, - "stmt_location": 943, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1065, - "relname": "vtable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1052, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "foo", - }, - }, - ], - "location": 1052, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1056, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "bar", - }, - }, - ], - "location": 1056, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_NOT_DISTINCT", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "foo", - }, - }, - ], - "location": 1078, - }, - }, - "location": 1082, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "bar", - }, - }, - ], - "location": 1103, - }, - }, - }, - }, - }, - }, - "stmt_len": 62, - "stmt_location": 1044, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_LEFT", - "larg": { - "RangeVar": { - "inh": true, - "location": 1142, - "relname": "t1", - "relpersistence": "p", - }, - }, - "quals": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_NOT_DISTINCT", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "foo", - }, - }, - ], - "location": 1170, - }, - }, - "location": 1177, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "foo", - }, - }, - ], - "location": 1198, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_NOT_DISTINCT", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "bar", - }, - }, - ], - "location": 1210, - }, - }, - "location": 1217, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "bar", - }, - }, - ], - "location": 1238, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_NOT_DISTINCT", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "baz", - }, - }, - ], - "location": 1250, - }, - }, - "location": 1257, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "baz", - }, - }, - ], - "location": 1278, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 1206, - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 1161, - "relname": "t2", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1116, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "foo", - }, - }, - ], - "location": 1116, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1123, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "bar", - }, - }, - ], - "location": 1123, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1130, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "baz", - }, - }, - ], - "location": 1130, - }, - }, - }, - }, - ], - "whereClause": { - "NullTest": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "foo", - }, - }, - ], - "location": 1295, - }, - }, - "location": 1302, - "nulltesttype": "IS_NULL", - }, - }, - }, - }, - "stmt_len": 204, - "stmt_location": 1107, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1340, - "val": { - "A_Expr": { - "kind": "AEXPR_NULLIF", - "lexpr": { - "A_Const": { - "isnull": true, - "location": 1347, - }, - }, - "location": 1340, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1353, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 1312, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1571, - "val": { - "SubLink": { - "location": 1577, - "subLinkType": "ANY_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1605, - "relname": "table_name", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1588, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "column_name", - }, - }, - ], - "location": 1588, - }, - }, - }, - }, - ], - }, - }, - "testexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 1571, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 259, - "stmt_location": 1357, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1630, - "val": { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 1636, - "subLinkType": "ANY_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1668, - "relname": "table_name", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1651, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "column_name", - }, - }, - ], - "location": 1651, - }, - }, - }, - }, - ], - }, - }, - "testexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 1630, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 1636, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 1617, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1733, - "relname": "rental", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "return_date", - }, - }, - ], - "location": 1779, - }, - }, - "sortby_dir": "SORTBY_DESC", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1689, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "customer_id", - }, - }, - ], - "location": 1689, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1703, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "rental_id", - }, - }, - ], - "location": 1703, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1715, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "return_date", - }, - }, - ], - "location": 1715, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "customer_id", - }, - }, - ], - "location": 1747, - }, - }, - "location": 1759, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1763, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1766, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 115, - "stmt_location": 1680, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1851, - "relname": "rental", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1807, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "customer_id", - }, - }, - ], - "location": 1807, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1821, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "rental_id", - }, - }, - ], - "location": 1821, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1833, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "return_date", - }, - }, - ], - "location": 1833, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "customer_id", - }, - }, - ], - "location": 1865, - }, - }, - "location": 1877, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1885, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1888, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 94, - "stmt_location": 1796, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1945, - "relname": "rental", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1901, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "customer_id", - }, - }, - ], - "location": 1901, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1915, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "rental_id", - }, - }, - ], - "location": 1915, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1927, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "return_date", - }, - }, - ], - "location": 1927, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "customer_id", - }, - }, - ], - "location": 1959, - }, - }, - "location": 1971, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1974, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "customer_id", - }, - }, - ], - "location": 1980, - }, - }, - "location": 1992, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1995, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 1976, - }, - }, - }, - }, - "stmt_len": 105, - "stmt_location": 1891, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2013, - "relname": "employees", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2006, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2006, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "name", - }, - }, - ], - "location": 2029, - }, - }, - "location": 2034, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 2038, - "sval": { - "sval": "James John", - }, - }, - }, - { - "A_Const": { - "location": 2052, - "sval": { - "sval": "Mercy Bush", - }, - }, - }, - { - "A_Const": { - "location": 2066, - "sval": { - "sval": "Kate Joel", - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 81, - "stmt_location": 1997, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2095, - "relname": "employees", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2088, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2088, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "name", - }, - }, - ], - "location": 2111, - }, - }, - "location": 2116, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 2124, - "sval": { - "sval": "James John", - }, - }, - }, - { - "A_Const": { - "location": 2138, - "sval": { - "sval": "Mercy Bush", - }, - }, - }, - { - "A_Const": { - "location": 2152, - "sval": { - "sval": "Kate Joel", - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 85, - "stmt_location": 2079, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2191, - "relname": "rental", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "customer_id", - }, - }, - ], - "location": 2255, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2174, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "customer_id", - }, - }, - ], - "location": 2174, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "return_date", - }, - }, - ], - "location": 2210, - }, - }, - "location": 2204, - "typeName": { - "location": 2225, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2231, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2233, - "sval": { - "sval": "2005-05-27", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 101, - "stmt_location": 2165, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2320, - "relname": "customer", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "customer_id", - }, - }, - ], - "location": 2450, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2277, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "customer_id", - }, - }, - ], - "location": 2277, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2291, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "first_name", - }, - }, - ], - "location": 2291, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2304, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "last_name", - }, - }, - ], - "location": 2304, - }, - }, - }, - }, - ], - "whereClause": { - "SubLink": { - "location": 2348, - "subLinkType": "ANY_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2381, - "relname": "rental", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2362, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "customer_id", - }, - }, - ], - "location": 2362, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "return_date", - }, - }, - ], - "location": 2402, - }, - }, - "location": 2396, - "typeName": { - "location": 2417, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2423, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2425, - "sval": { - "sval": "2005-05-27", - }, - }, - }, - }, - }, - }, - }, - "testexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "customer_id", - }, - }, - ], - "location": 2336, - }, - }, - }, - }, - }, - }, - "stmt_len": 194, - "stmt_location": 2267, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2493, - "relname": "student", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2486, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2486, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "name", - }, - }, - ], - "location": 2507, - }, - }, - "location": 2512, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2517, - "sval": { - "sval": "a%", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 2462, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2537, - "relname": "student", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2530, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2530, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "name", - }, - }, - ], - "location": 2551, - }, - }, - "location": 2556, - "name": [ - { - "String": { - "sval": "!~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2565, - "sval": { - "sval": "a%", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 47, - "stmt_location": 2522, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2579, - "val": { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "A_Const": { - "location": 2579, - "sval": { - "sval": "foo", - }, - }, - }, - "location": 2585, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2590, - "sval": { - "sval": "foo", - }, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2599, - "val": { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "A_Const": { - "location": 2599, - "sval": { - "sval": "foo", - }, - }, - }, - "location": 2605, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2610, - "sval": { - "sval": "f%", - }, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2618, - "val": { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "A_Const": { - "location": 2618, - "sval": { - "sval": "foo", - }, - }, - }, - "location": 2624, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2629, - "sval": { - "sval": "_o_", - }, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2638, - "val": { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "A_Const": { - "location": 2638, - "sval": { - "sval": "bar", - }, - }, - }, - "location": 2644, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2649, - "sval": { - "sval": "b_", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 83, - "stmt_location": 2570, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2687, - "relname": "student", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2680, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2680, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_ILIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "name", - }, - }, - ], - "location": 2701, - }, - }, - "location": 2706, - "name": [ - { - "String": { - "sval": "~~*", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2712, - "sval": { - "sval": "a%", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 62, - "stmt_location": 2654, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2732, - "relname": "student", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2725, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2725, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_ILIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "name", - }, - }, - ], - "location": 2746, - }, - }, - "location": 2751, - "name": [ - { - "String": { - "sval": "!~~*", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2761, - "sval": { - "sval": "a%", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 48, - "stmt_location": 2717, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2794, - "val": { - "A_Expr": { - "kind": "AEXPR_SIMILAR", - "lexpr": { - "A_Const": { - "location": 2794, - "sval": { - "sval": "xyz", - }, - }, - }, - "location": 2800, - "name": [ - { - "String": { - "sval": "~", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2811, - "sval": { - "sval": "xyz", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "similar_to_escape", - }, - }, - ], - "location": 2800, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 50, - "stmt_location": 2766, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2826, - "val": { - "A_Expr": { - "kind": "AEXPR_SIMILAR", - "lexpr": { - "A_Const": { - "location": 2826, - "sval": { - "sval": "xyz", - }, - }, - }, - "location": 2832, - "name": [ - { - "String": { - "sval": "~", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2843, - "sval": { - "sval": "x", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "similar_to_escape", - }, - }, - ], - "location": 2832, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 29, - "stmt_location": 2817, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2859, - "val": { - "A_Expr": { - "kind": "AEXPR_SIMILAR", - "lexpr": { - "A_Const": { - "location": 2859, - "sval": { - "sval": "xyz", - }, - }, - }, - "location": 2865, - "name": [ - { - "String": { - "sval": "~", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2876, - "sval": { - "sval": "%(y|a)%", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "similar_to_escape", - }, - }, - ], - "location": 2865, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 2847, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2895, - "val": { - "A_Expr": { - "kind": "AEXPR_SIMILAR", - "lexpr": { - "A_Const": { - "location": 2895, - "sval": { - "sval": "xyz", - }, - }, - }, - "location": 2901, - "name": [ - { - "String": { - "sval": "~", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2912, - "sval": { - "sval": "(y|z)%", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "similar_to_escape", - }, - }, - ], - "location": 2901, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 2886, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2930, - "val": { - "A_Expr": { - "kind": "AEXPR_SIMILAR", - "lexpr": { - "A_Const": { - "location": 2930, - "sval": { - "sval": "xyz", - }, - }, - }, - "location": 2936, - "name": [ - { - "String": { - "sval": "~", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2947, - "sval": { - "sval": "xyz", - }, - }, - }, - { - "A_Const": { - "location": 2960, - "sval": { - "sval": "x", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "similar_to_escape", - }, - }, - ], - "location": 2936, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 2921, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2973, - "val": { - "A_Expr": { - "kind": "AEXPR_SIMILAR", - "lexpr": { - "A_Const": { - "location": 2973, - "sval": { - "sval": "xyz", - }, - }, - }, - "location": 2979, - "name": [ - { - "String": { - "sval": "~", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2990, - "sval": { - "sval": "x", - }, - }, - }, - { - "A_Const": { - "location": 3001, - "sval": { - "sval": "x", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "similar_to_escape", - }, - }, - ], - "location": 2979, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 2964, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3017, - "val": { - "A_Expr": { - "kind": "AEXPR_SIMILAR", - "lexpr": { - "A_Const": { - "location": 3017, - "sval": { - "sval": "xyz", - }, - }, - }, - "location": 3023, - "name": [ - { - "String": { - "sval": "~", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 3034, - "sval": { - "sval": "%(y|a)%", - }, - }, - }, - { - "A_Const": { - "location": 3051, - "sval": { - "sval": "x", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "similar_to_escape", - }, - }, - ], - "location": 3023, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 49, - "stmt_location": 3005, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3064, - "val": { - "A_Expr": { - "kind": "AEXPR_SIMILAR", - "lexpr": { - "A_Const": { - "location": 3064, - "sval": { - "sval": "xyz", - }, - }, - }, - "location": 3070, - "name": [ - { - "String": { - "sval": "~", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 3081, - "sval": { - "sval": "(y|z)%", - }, - }, - }, - { - "A_Const": { - "location": 3097, - "sval": { - "sval": "x", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "similar_to_escape", - }, - }, - ], - "location": 3070, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 3055, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3110, - "val": { - "A_Expr": { - "kind": "AEXPR_SIMILAR", - "lexpr": { - "A_Const": { - "location": 3110, - "sval": { - "sval": "xyz", - }, - }, - }, - "location": 3116, - "name": [ - { - "String": { - "sval": "!~", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 3131, - "sval": { - "sval": "xyz", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "similar_to_escape", - }, - }, - ], - "location": 3116, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 3101, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3146, - "val": { - "A_Expr": { - "kind": "AEXPR_SIMILAR", - "lexpr": { - "A_Const": { - "location": 3146, - "sval": { - "sval": "xyz", - }, - }, - }, - "location": 3152, - "name": [ - { - "String": { - "sval": "!~", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 3167, - "sval": { - "sval": "x", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "similar_to_escape", - }, - }, - ], - "location": 3152, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 3137, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3183, - "val": { - "A_Expr": { - "kind": "AEXPR_SIMILAR", - "lexpr": { - "A_Const": { - "location": 3183, - "sval": { - "sval": "xyz", - }, - }, - }, - "location": 3189, - "name": [ - { - "String": { - "sval": "!~", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 3204, - "sval": { - "sval": "%(y|a)%", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "similar_to_escape", - }, - }, - ], - "location": 3189, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 3171, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3223, - "val": { - "A_Expr": { - "kind": "AEXPR_SIMILAR", - "lexpr": { - "A_Const": { - "location": 3223, - "sval": { - "sval": "xyz", - }, - }, - }, - "location": 3229, - "name": [ - { - "String": { - "sval": "!~", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 3244, - "sval": { - "sval": "(y|z)%", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "similar_to_escape", - }, - }, - ], - "location": 3229, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 3214, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3262, - "val": { - "A_Expr": { - "kind": "AEXPR_SIMILAR", - "lexpr": { - "A_Const": { - "location": 3262, - "sval": { - "sval": "xyz", - }, - }, - }, - "location": 3268, - "name": [ - { - "String": { - "sval": "!~", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 3283, - "sval": { - "sval": "xyz", - }, - }, - }, - { - "A_Const": { - "location": 3296, - "sval": { - "sval": "x", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "similar_to_escape", - }, - }, - ], - "location": 3268, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 3253, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3309, - "val": { - "A_Expr": { - "kind": "AEXPR_SIMILAR", - "lexpr": { - "A_Const": { - "location": 3309, - "sval": { - "sval": "xyz", - }, - }, - }, - "location": 3315, - "name": [ - { - "String": { - "sval": "!~", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 3330, - "sval": { - "sval": "x", - }, - }, - }, - { - "A_Const": { - "location": 3341, - "sval": { - "sval": "x", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "similar_to_escape", - }, - }, - ], - "location": 3315, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 3300, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3357, - "val": { - "A_Expr": { - "kind": "AEXPR_SIMILAR", - "lexpr": { - "A_Const": { - "location": 3357, - "sval": { - "sval": "xyz", - }, - }, - }, - "location": 3363, - "name": [ - { - "String": { - "sval": "!~", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 3378, - "sval": { - "sval": "%(y|a)%", - }, - }, - }, - { - "A_Const": { - "location": 3395, - "sval": { - "sval": "x", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "similar_to_escape", - }, - }, - ], - "location": 3363, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 3345, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3408, - "val": { - "A_Expr": { - "kind": "AEXPR_SIMILAR", - "lexpr": { - "A_Const": { - "location": 3408, - "sval": { - "sval": "xyz", - }, - }, - }, - "location": 3414, - "name": [ - { - "String": { - "sval": "!~", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 3429, - "sval": { - "sval": "(y|z)%", - }, - }, - }, - { - "A_Const": { - "location": 3445, - "sval": { - "sval": "x", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "similar_to_escape", - }, - }, - ], - "location": 3414, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 49, - "stmt_location": 3399, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "numbers", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - ], - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3566, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 3568, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 3550, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3543, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3543, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_BETWEEN_SYM", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "numbers", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3596, - }, - }, - "location": 3606, - "name": [ - { - "String": { - "sval": "BETWEEN SYMMETRIC", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 3624, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 3630, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 182, - "stmt_location": 3449, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "numbers", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - ], - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3664, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 3666, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 3648, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3641, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3641, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_BETWEEN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "numbers", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3694, - }, - }, - "location": 3704, - "name": [ - { - "String": { - "sval": "BETWEEN", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 3712, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 3718, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 87, - "stmt_location": 3632, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "numbers", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - ], - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3752, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 3754, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 3736, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3729, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3729, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_NOT_BETWEEN_SYM", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "numbers", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3782, - }, - }, - "location": 3792, - "name": [ - { - "String": { - "sval": "NOT BETWEEN SYMMETRIC", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 3814, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 3820, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 101, - "stmt_location": 3720, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "numbers", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - ], - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3854, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 3856, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 3838, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3831, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3831, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_NOT_BETWEEN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "numbers", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3884, - }, - }, - "location": 3894, - "name": [ - { - "String": { - "sval": "NOT BETWEEN", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 3906, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 3912, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 91, - "stmt_location": 3822, - }, - }, -] -`; - -exports[`comment 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "@name meta -@isImportant -@jsonField date timestamp -@jsonField name text -@jsonField episode enum ONE=1 TWO=2 -This field has a load of arbitrary tags.", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "my_schema", - }, - }, - { - "String": { - "sval": "my_table", - }, - }, - { - "String": { - "sval": "my_column", - }, - }, - ], - }, - }, - "objtype": "OBJECT_COLUMN", - }, - }, - "stmt_len": 207, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "@name my_new_table_name -@omit update,delete -This is the documentation.", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "my_schema", - }, - }, - { - "String": { - "sval": "my_table", - }, - }, - ], - }, - }, - "objtype": "OBJECT_TABLE", - }, - }, - "stmt_len": 118, - "stmt_location": 208, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "@name my_new_view_name -@omit update,delete -This is the documentation.", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "my_schema", - }, - }, - { - "String": { - "sval": "mv_view", - }, - }, - ], - }, - }, - "objtype": "OBJECT_VIEW", - }, - }, - "stmt_len": 115, - "stmt_location": 327, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "@name my_new_view_name -@omit update,delete -This is the documentation.", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "my_schema", - }, - }, - { - "String": { - "sval": "mv_view", - }, - }, - ], - }, - }, - "objtype": "OBJECT_MATVIEW", - }, - }, - "stmt_len": 128, - "stmt_location": 443, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "@name my_new_type_name -This is the documentation.", - "object": { - "TypeName": { - "location": 590, - "names": [ - { - "String": { - "sval": "my_schema", - }, - }, - { - "String": { - "sval": "my_type", - }, - }, - ], - "typemod": -1, - }, - }, - "objtype": "OBJECT_TYPE", - }, - }, - "stmt_len": 94, - "stmt_location": 572, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "@name my_new_column -@omit create,update -This is the documentation.", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "my_schema", - }, - }, - { - "String": { - "sval": "my_table", - }, - }, - { - "String": { - "sval": "my_column", - }, - }, - ], - }, - }, - "objtype": "OBJECT_COLUMN", - }, - }, - "stmt_len": 125, - "stmt_location": 667, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "@foreignFieldName foos -@fieldName bar -Documentation here.", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "my_schema", - }, - }, - { - "String": { - "sval": "my_table", - }, - }, - { - "String": { - "sval": "my_constraint", - }, - }, - ], - }, - }, - "objtype": "OBJECT_TABCONSTRAINT", - }, - }, - "stmt_len": 127, - "stmt_location": 793, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "@name my_new_function_name -Documentation here.", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 955, - "names": [ - { - "String": { - "sval": "arg_type_1", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 967, - "names": [ - { - "String": { - "sval": "arg_type_2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 955, - "names": [ - { - "String": { - "sval": "arg_type_1", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 967, - "names": [ - { - "String": { - "sval": "arg_type_2", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "my_function", - }, - }, - ], - }, - }, - "objtype": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 113, - "stmt_location": 921, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": " -inmycomment", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 1101, - "names": [ - { - "String": { - "sval": "arg_type_1", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 1113, - "names": [ - { - "String": { - "sval": "arg_type_2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 1101, - "names": [ - { - "String": { - "sval": "arg_type_1", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 1113, - "names": [ - { - "String": { - "sval": "arg_type_2", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "my_function", - }, - }, - ], - }, - }, - "objtype": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 111, - "stmt_location": 1035, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "inmycomment", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 1181, - "names": [ - { - "String": { - "sval": "arg_type_1", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 1193, - "names": [ - { - "String": { - "sval": "arg_type_2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 1181, - "names": [ - { - "String": { - "sval": "arg_type_1", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 1193, - "names": [ - { - "String": { - "sval": "arg_type_2", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "my_function", - }, - }, - ], - }, - }, - "objtype": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 76, - "stmt_location": 1147, - }, - }, -] -`; - -exports[`drops 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "schema_name", - }, - }, - { - "String": { - "sval": "table_name", - }, - }, - { - "String": { - "sval": "policy_name", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_POLICY", - }, - }, - "stmt_len": 49, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "table_name", - }, - }, - { - "String": { - "sval": "policy_name", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_POLICY", - }, - }, - "stmt_len": 38, - "stmt_location": 50, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 142, - "rolename": "authenticated", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "objects": [ - { - "RangeVar": { - "inh": true, - "location": 114, - "relname": "table_name", - "relpersistence": "p", - "schemaname": "schema_name", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "privileges": [ - { - "AccessPriv": { - "priv_name": "delete", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 66, - "stmt_location": 89, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 196, - "rolename": "authenticated", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "objects": [ - { - "RangeVar": { - "inh": true, - "location": 180, - "relname": "table_name", - "relpersistence": "p", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "privileges": [ - { - "AccessPriv": { - "priv_name": "delete", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 53, - "stmt_location": 156, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "table_name", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 23, - "stmt_location": 210, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "schema_name", - }, - }, - { - "String": { - "sval": "table_name", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 34, - "stmt_location": 234, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "column_name", - "subtype": "AT_DropColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 283, - "relname": "table_name", - "relpersistence": "p", - "schemaname": "schema_name", - }, - }, - }, - "stmt_len": 60, - "stmt_location": 269, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "column_name", - "subtype": "AT_DropColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 343, - "relname": "table_name", - "relpersistence": "p", - "schemaname": "schema-name", - }, - }, - }, - "stmt_len": 61, - "stmt_location": 330, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "sdf-sdf", - "subtype": "AT_DropColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 405, - "relname": "aa-bdd", - "relpersistence": "p", - "schemaname": "schema-name", - }, - }, - }, - "stmt_len": 57, - "stmt_location": 392, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "column_name", - "subtype": "AT_DropColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 463, - "relname": "table-name", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 49, - "stmt_location": 450, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "column_name", - "subtype": "AT_DropColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 513, - "relname": "table_name", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 47, - "stmt_location": 500, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "hsseq", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_SEQUENCE", - }, - }, - "stmt_len": 31, - "stmt_location": 548, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "some-thing", - }, - }, - { - "String": { - "sval": "hsseq", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_SEQUENCE", - }, - }, - "stmt_len": 43, - "stmt_location": 580, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "new_column_name1", - "relation": { - "inh": true, - "location": 638, - "relname": "table_name", - "relpersistence": "p", - "schemaname": "schemaname", - }, - "relationType": "OBJECT_TABLE", - "renameType": "OBJECT_COLUMN", - "subname": "column_name1", - }, - }, - "stmt_len": 75, - "stmt_location": 624, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "new_column_name1", - "relation": { - "inh": true, - "location": 713, - "relname": "table_name", - "relpersistence": "p", - }, - "relationType": "OBJECT_TABLE", - "renameType": "OBJECT_COLUMN", - "subname": "column_name1", - }, - }, - "stmt_len": 63, - "stmt_location": 700, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 776, - "names": [ - { - "String": { - "sval": "test_type", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_TYPE", - }, - }, - "stmt_len": 21, - "stmt_location": 764, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 797, - "names": [ - { - "String": { - "sval": "schema_name", - }, - }, - { - "String": { - "sval": "test_type", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_TYPE", - }, - }, - "stmt_len": 32, - "stmt_location": 786, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 830, - "names": [ - { - "String": { - "sval": "schema-name", - }, - }, - { - "String": { - "sval": "test_type", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_TYPE", - }, - }, - "stmt_len": 34, - "stmt_location": 819, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 865, - "names": [ - { - "String": { - "sval": "schema-name", - }, - }, - { - "String": { - "sval": "test-type", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_TYPE", - }, - }, - "stmt_len": 36, - "stmt_location": 854, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "TypeName": { - "location": 912, - "names": [ - { - "String": { - "sval": "test_type_exists", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_TYPE", - }, - }, - "stmt_len": 37, - "stmt_location": 891, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "TypeName": { - "location": 950, - "names": [ - { - "String": { - "sval": "aa-bb", - }, - }, - { - "String": { - "sval": "test_type_exists", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_TYPE", - }, - }, - "stmt_len": 45, - "stmt_location": 929, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "TypeName": { - "location": 986, - "names": [ - { - "String": { - "sval": "eitype", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_TYPE", - }, - }, - "stmt_len": 25, - "stmt_location": 975, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 1057, - "names": [ - { - "String": { - "sval": "testdomain2b", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 68, - "stmt_location": 1001, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 1083, - "names": [ - { - "String": { - "sval": "schema_name", - }, - }, - { - "String": { - "sval": "testdomain2b", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 37, - "stmt_location": 1070, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 1177, - "names": [ - { - "String": { - "sval": "testdomain1", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 1177, - "names": [ - { - "String": { - "sval": "testdomain1", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "a", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "testfunc5b", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 81, - "stmt_location": 1108, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 1230, - "names": [ - { - "String": { - "sval": "testdomain1", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 1230, - "names": [ - { - "String": { - "sval": "testdomain1", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "a", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "my-schema", - }, - }, - { - "String": { - "sval": "testfunc5b", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 52, - "stmt_location": 1190, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 1271, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 1271, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "b", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "testfunc6b", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 32, - "stmt_location": 1243, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 1316, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 1316, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "b", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "my-schema", - }, - }, - { - "String": { - "sval": "testfunc6b", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 44, - "stmt_location": 1276, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 1364, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 1364, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "b", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "my-schema", - }, - }, - { - "String": { - "sval": "test-func6b", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 47, - "stmt_location": 1321, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "ObjectWithArgs": { - "args_unspecified": true, - "objname": [ - { - "String": { - "sval": "testfunc7777", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 27, - "stmt_location": 1369, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "ObjectWithArgs": { - "args_unspecified": true, - "objname": [ - { - "String": { - "sval": "my-schema", - }, - }, - { - "String": { - "sval": "testfunc7777", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 39, - "stmt_location": 1397, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "table_name", - }, - }, - { - "String": { - "sval": "trigger_name", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TRIGGER", - }, - }, - "stmt_len": 86, - "stmt_location": 1437, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "table_name", - }, - }, - { - "String": { - "sval": "trigger_name", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TRIGGER", - }, - }, - "stmt_len": 50, - "stmt_location": 1524, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "schema_name", - }, - }, - { - "String": { - "sval": "table_name", - }, - }, - { - "String": { - "sval": "trigger_name", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TRIGGER", - }, - }, - "stmt_len": 53, - "stmt_location": 1575, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "schema_name", - }, - }, - { - "String": { - "sval": "table_name", - }, - }, - { - "String": { - "sval": "trigger_name", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TRIGGER", - }, - }, - "stmt_len": 62, - "stmt_location": 1629, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "table_name", - }, - }, - { - "String": { - "sval": "rule_name", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_RULE", - }, - }, - "stmt_len": 35, - "stmt_location": 1692, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "table_name", - }, - }, - { - "String": { - "sval": "rule_name", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_RULE", - }, - }, - "stmt_len": 44, - "stmt_location": 1728, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "schema_name", - }, - }, - { - "String": { - "sval": "table_name", - }, - }, - { - "String": { - "sval": "rule_name", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_RULE", - }, - }, - "stmt_len": 47, - "stmt_location": 1773, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "schema_name", - }, - }, - { - "String": { - "sval": "table_name", - }, - }, - { - "String": { - "sval": "rule_name", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_RULE", - }, - }, - "stmt_len": 56, - "stmt_location": 1821, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_view_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_VIEW", - }, - }, - "stmt_len": 38, - "stmt_location": 1878, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_view_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_VIEW", - }, - }, - "stmt_len": 28, - "stmt_location": 1917, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "test_extension_exists", - }, - }, - ], - "removeType": "OBJECT_EXTENSION", - }, - }, - "stmt_len": 90, - "stmt_location": 1946, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "String": { - "sval": "test_extension_exists", - }, - }, - ], - "removeType": "OBJECT_EXTENSION", - }, - }, - "stmt_len": 47, - "stmt_location": 2037, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "test_fdw_exists", - }, - }, - ], - "removeType": "OBJECT_FDW", - }, - }, - "stmt_len": 43, - "stmt_location": 2085, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "String": { - "sval": "test_fdw_exists", - }, - }, - ], - "removeType": "OBJECT_FDW", - }, - }, - "stmt_len": 52, - "stmt_location": 2129, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 2228, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 2228, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "foo", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 50, - "stmt_location": 2182, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 2263, - "names": [ - { - "String": { - "sval": "no_such_type", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 2263, - "names": [ - { - "String": { - "sval": "no_such_type", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "foo", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 43, - "stmt_location": 2233, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 2307, - "names": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "no_such_type", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 2307, - "names": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "no_such_type", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "foo", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 58, - "stmt_location": 2277, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "TypeName": { - "location": 2359, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 2370, - "names": [ - { - "String": { - "sval": "no_such_type2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_CAST", - }, - }, - "stmt_len": 48, - "stmt_location": 2336, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "TypeName": { - "location": 2407, - "names": [ - { - "String": { - "sval": "no_such_type1", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 2424, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_CAST", - }, - }, - "stmt_len": 47, - "stmt_location": 2385, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "TypeName": { - "location": 2455, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 2466, - "names": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "bar", - }, - }, - ], - "typemod": -1, - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_CAST", - }, - }, - "stmt_len": 52, - "stmt_location": 2433, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "TypeName": { - "location": 2508, - "names": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "foo", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 2530, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_CAST", - }, - }, - "stmt_len": 52, - "stmt_location": 2486, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "foo", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_COLLATION", - }, - }, - "stmt_len": 45, - "stmt_location": 2539, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "foo", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_CONVERSION", - }, - }, - "stmt_len": 45, - "stmt_location": 2585, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "TypeName": { - "location": 2654, - "names": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "foo", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 41, - "stmt_location": 2631, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "foo", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FOREIGN_TABLE", - }, - }, - "stmt_len": 48, - "stmt_location": 2673, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "foo", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_INDEX", - }, - }, - "stmt_len": 41, - "stmt_location": 2722, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "foo", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_MATVIEW", - }, - }, - "stmt_len": 52, - "stmt_location": 2764, - }, - }, -] -`; - -exports[`kitchen sink alias 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "a#b", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 30, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 33, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 14, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 7, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 41, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "a#b", - "colnames": [ - { - "String": { - "sval": "c#d", - }, - }, - ], - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 74, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 77, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 58, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 51, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 51, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 50, - "stmt_location": 42, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "aba", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 126, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 129, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 110, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 103, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 103, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 93, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "aba", - "colnames": [ - { - "String": { - "sval": "ccd", - }, - }, - ], - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 170, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 173, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 154, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 147, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 147, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 50, - "stmt_location": 138, - }, - }, -] -`; - -exports[`kitchen sink alter 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateSchemaStmt": { - "if_not_exists": true, - "schemaname": "app_jobs", - }, - }, - "stmt_len": 36, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 52, - "relname": "job_queues", - "relpersistence": "p", - "schemaname": "app_jobs", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "queue_name", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 95, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 104, - }, - }, - ], - "is_local": true, - "location": 76, - "typeName": { - "location": 87, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "job_count", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 133, - "raw_expr": { - "A_Const": { - "ival": {}, - "location": 141, - }, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 143, - }, - }, - ], - "is_local": true, - "location": 119, - "typeName": { - "location": 129, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "locked_at", - "is_local": true, - "location": 155, - "typeName": { - "location": 165, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "locked_by", - "is_local": true, - "location": 193, - "typeName": { - "location": 203, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 175, - "stmt_location": 37, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "subtype": "AT_EnableRowSecurity", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 227, - "relname": "job_queues", - "relpersistence": "p", - "schemaname": "app_jobs", - }, - }, - }, - "stmt_len": 59, - "stmt_location": 213, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 288, - "relname": "foo", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "name", - "is_local": true, - "location": 296, - "typeName": { - "location": 301, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "foo_timestamp", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 334, - "raw_expr": { - "SQLValueFunction": { - "location": 342, - "op": "SVFOP_CURRENT_DATE", - "typmod": -1, - }, - }, - }, - }, - ], - "is_local": true, - "location": 309, - "typeName": { - "location": 323, - "names": [ - { - "String": { - "sval": "timestampz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 83, - "stmt_location": 273, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "city", - "relation": { - "inh": true, - "location": 371, - "relname": "foo", - "relpersistence": "p", - }, - "relationType": "OBJECT_TABLE", - "renameType": "OBJECT_COLUMN", - "subname": "name", - }, - }, - "stmt_len": 44, - "stmt_location": 357, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "foo_timestamp", - "subtype": "AT_ColumnDefault", - }, - }, - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "location": 482, - "raw_default": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 569, - "sval": { - "sval": "epoch", - }, - }, - }, - "location": -1, - "typeName": { - "location": 544, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 577, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "foo_timestamp", - }, - }, - ], - "location": 579, - }, - }, - "location": 593, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 604, - "sval": { - "sval": "1 second", - }, - }, - }, - "location": -1, - "typeName": { - "location": 595, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "typeName": { - "location": 501, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "name": "foo_timestamp", - "subtype": "AT_AlterColumnType", - }, - }, - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "now", - }, - }, - ], - "location": 659, - }, - }, - "name": "foo_timestamp", - "subtype": "AT_ColumnDefault", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 416, - "relname": "foo", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 262, - "stmt_location": 402, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "my_constraint_fey", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "order_id", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 695, - "pk_attrs": [ - { - "String": { - "sval": "id", - }, - }, - ], - "pktable": { - "inh": true, - "location": 760, - "relname": "orders", - "relpersistence": "p", - "schemaname": "othr", - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 679, - "relname": "foo", - "relpersistence": "p", - "schemaname": "scha", - }, - }, - }, - "stmt_len": 111, - "stmt_location": 665, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "my_constraint_fey", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "order_id", - }, - }, - ], - "fk_del_action": "c", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 807, - "pk_attrs": [ - { - "String": { - "sval": "id", - }, - }, - ], - "pktable": { - "inh": true, - "location": 872, - "relname": "orders", - "relpersistence": "p", - "schemaname": "othr", - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 791, - "relname": "foo", - "relpersistence": "p", - "schemaname": "scha", - }, - }, - }, - "stmt_len": 129, - "stmt_location": 777, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "my_constraint_fey", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "order_id", - }, - }, - ], - "fk_del_action": "r", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 937, - "pk_attrs": [ - { - "String": { - "sval": "id", - }, - }, - ], - "pktable": { - "inh": true, - "location": 1002, - "relname": "orders", - "relpersistence": "p", - "schemaname": "othr", - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 921, - "relname": "foo", - "relpersistence": "p", - "schemaname": "scha", - }, - }, - }, - "stmt_len": 130, - "stmt_location": 907, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "my_constraint_fey", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "order_id", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 1068, - "pk_attrs": [ - { - "String": { - "sval": "id", - }, - }, - ], - "pktable": { - "inh": true, - "location": 1133, - "relname": "orders", - "relpersistence": "p", - "schemaname": "othr", - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 1052, - "relname": "foo", - "relpersistence": "p", - "schemaname": "scha", - }, - }, - }, - "stmt_len": 131, - "stmt_location": 1038, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "my_constraint_fey", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "order_id", - }, - }, - ], - "fk_del_action": "n", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 1200, - "pk_attrs": [ - { - "String": { - "sval": "id", - }, - }, - ], - "pktable": { - "inh": true, - "location": 1265, - "relname": "orders", - "relpersistence": "p", - "schemaname": "othr", - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 1184, - "relname": "foo", - "relpersistence": "p", - "schemaname": "scha", - }, - }, - }, - "stmt_len": 130, - "stmt_location": 1170, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "my_constraint_fey", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "order_id", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "d", - "initially_valid": true, - "location": 1331, - "pk_attrs": [ - { - "String": { - "sval": "id", - }, - }, - ], - "pktable": { - "inh": true, - "location": 1396, - "relname": "orders", - "relpersistence": "p", - "schemaname": "othr", - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 1315, - "relname": "foo", - "relpersistence": "p", - "schemaname": "scha", - }, - }, - }, - "stmt_len": 133, - "stmt_location": 1301, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "my_constraint_fey", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "order_id", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "c", - "initially_valid": true, - "location": 1465, - "pk_attrs": [ - { - "String": { - "sval": "id", - }, - }, - ], - "pktable": { - "inh": true, - "location": 1530, - "relname": "orders", - "relpersistence": "p", - "schemaname": "othr", - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 1449, - "relname": "foo", - "relpersistence": "p", - "schemaname": "scha", - }, - }, - }, - "stmt_len": 129, - "stmt_location": 1435, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "my_constraint_fey", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "order_id", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "r", - "initially_valid": true, - "location": 1595, - "pk_attrs": [ - { - "String": { - "sval": "id", - }, - }, - ], - "pktable": { - "inh": true, - "location": 1660, - "relname": "orders", - "relpersistence": "p", - "schemaname": "othr", - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 1579, - "relname": "foo", - "relpersistence": "p", - "schemaname": "scha", - }, - }, - }, - "stmt_len": 130, - "stmt_location": 1565, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "my_constraint_fey", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "order_id", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 1726, - "pk_attrs": [ - { - "String": { - "sval": "id", - }, - }, - ], - "pktable": { - "inh": true, - "location": 1791, - "relname": "orders", - "relpersistence": "p", - "schemaname": "othr", - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 1710, - "relname": "foo", - "relpersistence": "p", - "schemaname": "scha", - }, - }, - }, - "stmt_len": 131, - "stmt_location": 1696, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "my_constraint_fey", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "order_id", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "n", - "initially_valid": true, - "location": 1858, - "pk_attrs": [ - { - "String": { - "sval": "id", - }, - }, - ], - "pktable": { - "inh": true, - "location": 1923, - "relname": "orders", - "relpersistence": "p", - "schemaname": "othr", - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 1842, - "relname": "foo", - "relpersistence": "p", - "schemaname": "scha", - }, - }, - }, - "stmt_len": 130, - "stmt_location": 1828, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "my_constraint_fey", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "order_id", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "d", - "initially_valid": true, - "location": 1989, - "pk_attrs": [ - { - "String": { - "sval": "id", - }, - }, - ], - "pktable": { - "inh": true, - "location": 2054, - "relname": "orders", - "relpersistence": "p", - "schemaname": "othr", - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 1973, - "relname": "foo", - "relpersistence": "p", - "schemaname": "scha", - }, - }, - }, - "stmt_len": 133, - "stmt_location": 1959, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "my_constraint_fey", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "order_id", - }, - }, - ], - "fk_del_action": "n", - "fk_matchtype": "s", - "fk_upd_action": "d", - "initially_valid": true, - "location": 2123, - "pk_attrs": [ - { - "String": { - "sval": "id", - }, - }, - ], - "pktable": { - "inh": true, - "location": 2188, - "relname": "orders", - "relpersistence": "p", - "schemaname": "othr", - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 2107, - "relname": "foo", - "relpersistence": "p", - "schemaname": "scha", - }, - }, - }, - "stmt_len": 166, - "stmt_location": 2093, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "my_constraint_fey", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "f", - "fk_upd_action": "a", - "initially_valid": true, - "location": 2290, - "pk_attrs": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "d", - }, - }, - ], - "pktable": { - "inh": true, - "location": 2350, - "relname": "orders", - "relpersistence": "p", - "schemaname": "othr", - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 2274, - "relname": "foo", - "relpersistence": "p", - "schemaname": "scha", - }, - }, - }, - "stmt_len": 118, - "stmt_location": 2260, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "my_constraint_fey", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 2409, - "pk_attrs": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "d", - }, - }, - ], - "pktable": { - "inh": true, - "location": 2470, - "relname": "orders", - "relpersistence": "p", - "schemaname": "othr", - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 2393, - "relname": "foo", - "relpersistence": "p", - "schemaname": "scha", - }, - }, - }, - "stmt_len": 121, - "stmt_location": 2379, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "col_field_pkey", - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 2547, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "location": 2520, - "relname": "mfield", - "relpersistence": "p", - "schemaname": "collections", - }, - }, - }, - "stmt_len": 88, - "stmt_location": 2501, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "col_field_pkey", - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 2631, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 2604, - "relname": "mfield", - "relpersistence": "p", - "schemaname": "collections", - }, - }, - }, - "stmt_len": 83, - "stmt_location": 2590, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "location": 3193, - "raw_default": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "column_name", - }, - }, - ], - "location": 3241, - }, - }, - "location": 3252, - "typeName": { - "location": 3254, - "names": [ - { - "String": { - "sval": "new_column_type", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "typeName": { - "location": 3219, - "names": [ - { - "String": { - "sval": "new_column_type", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "name": "column_name", - "subtype": "AT_AlterColumnType", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 3157, - "relname": "table_name", - "relpersistence": "p", - "schemaname": "schema_name", - }, - }, - }, - "stmt_len": 595, - "stmt_location": 2674, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "location": 3319, - "raw_default": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "column_name", - }, - }, - ], - "location": 3358, - }, - }, - "location": 3369, - "typeName": { - "location": 3371, - "names": [ - { - "String": { - "sval": "new_column_type", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "typeName": { - "location": 3336, - "names": [ - { - "String": { - "sval": "new_column_type", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "name": "column_name", - "subtype": "AT_AlterColumnType", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 3283, - "relname": "table_name", - "relpersistence": "p", - "schemaname": "schema_name", - }, - }, - }, - "stmt_len": 116, - "stmt_location": 3270, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "column_name", - "is_local": true, - "location": 3435, - "typeName": { - "location": 3447, - "names": [ - { - "String": { - "sval": "column_type", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 3401, - "relname": "table_name", - "relpersistence": "p", - "schemaname": "schema_name", - }, - }, - }, - "stmt_len": 71, - "stmt_location": 3387, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "column_name", - "is_local": true, - "location": 3506, - "typeName": { - "location": 3518, - "names": [ - { - "String": { - "sval": "geometry", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "location": 3527, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4326, - }, - "location": 3536, - }, - }, - ], - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 3472, - "relname": "table_name", - "relpersistence": "p", - "schemaname": "schema_name", - }, - }, - }, - "stmt_len": 82, - "stmt_location": 3459, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "column-name", - "is_local": true, - "location": 3589, - "typeName": { - "location": 3603, - "names": [ - { - "String": { - "sval": "geometry", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "location": 3612, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4326, - }, - "location": 3621, - }, - }, - ], - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 3555, - "relname": "table_name", - "relpersistence": "p", - "schemaname": "schema_name", - }, - }, - }, - "stmt_len": 84, - "stmt_location": 3542, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "column_name", - "is_local": true, - "location": 3674, - "typeName": { - "location": 3686, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 3640, - "relname": "table_name", - "relpersistence": "p", - "schemaname": "schema_name", - }, - }, - }, - "stmt_len": 62, - "stmt_location": 3627, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "column_name", - "subtype": "AT_DropColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 3704, - "relname": "table_name", - "relpersistence": "p", - "schemaname": "schema_name", - }, - }, - }, - "stmt_len": 60, - "stmt_location": 3690, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "newowner": { - "location": 3784, - "rolename": "regtest_alter_user2", - "roletype": "ROLESPEC_CSTRING", - }, - "subtype": "AT_ChangeOwner", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 3767, - "relname": "mytable", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 52, - "stmt_location": 3751, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_func4", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 3831, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 3831, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_func3", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 51, - "stmt_location": 3804, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_func4", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 3882, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 3882, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_func1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 50, - "stmt_location": 3856, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 3947, - "rolename": "regtest_alter_user2", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 3933, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 3933, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_func3", - }, - }, - ], - }, - }, - "objectType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 59, - "stmt_location": 3907, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 4007, - "rolename": "regtest_alter_user3", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 3993, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 3993, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_func2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 59, - "stmt_location": 3967, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "alt_nsp2", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 4053, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 4053, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_func3", - }, - }, - ], - }, - }, - "objectType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 50, - "stmt_location": 4027, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "alt_nsp2", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 4110, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 4110, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_func2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 56, - "stmt_location": 4078, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "new_schema_name", - "objectType": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 4149, - "relname": "table_name", - "relpersistence": "p", - "schemaname": "old_schema_name", - }, - }, - }, - "stmt_len": 71, - "stmt_location": 4135, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_fdw2", - "object": { - "String": { - "sval": "alt_fdw1", - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_FDW", - }, - }, - "stmt_len": 56, - "stmt_location": 4207, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_fdw3", - "object": { - "String": { - "sval": "alt_fdw1", - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_FDW", - }, - }, - "stmt_len": 56, - "stmt_location": 4264, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_fserv2", - "object": { - "String": { - "sval": "alt_fserv1", - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 48, - "stmt_location": 4321, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_fserv3", - "object": { - "String": { - "sval": "alt_fserv1", - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 47, - "stmt_location": 4370, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "c", - "is_local": true, - "location": 4460, - "typeName": { - "location": 4462, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_TYPE", - "relation": { - "location": 4435, - "relname": "test_type2", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 48, - "stmt_location": 4418, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_CASCADE", - "def": { - "ColumnDef": { - "colname": "c", - "is_local": true, - "location": 4505, - "typeName": { - "location": 4507, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_TYPE", - "relation": { - "location": 4480, - "relname": "test_type2", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 52, - "stmt_location": 4467, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "location": 4559, - "typeName": { - "location": 4566, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "name": "b", - "subtype": "AT_AlterColumnType", - }, - }, - ], - "objtype": "OBJECT_TYPE", - "relation": { - "location": 4532, - "relname": "test_type2", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 53, - "stmt_location": 4520, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_CASCADE", - "def": { - "ColumnDef": { - "location": 4614, - "typeName": { - "location": 4621, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "name": "b", - "subtype": "AT_AlterColumnType", - }, - }, - ], - "objtype": "OBJECT_TYPE", - "relation": { - "location": 4587, - "relname": "test_type2", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 62, - "stmt_location": 4574, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "b", - "subtype": "AT_DropColumn", - }, - }, - ], - "objtype": "OBJECT_TYPE", - "relation": { - "location": 4649, - "relname": "test_type2", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 39, - "stmt_location": 4637, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_CASCADE", - "name": "b", - "subtype": "AT_DropColumn", - }, - }, - ], - "objtype": "OBJECT_TYPE", - "relation": { - "location": 4690, - "relname": "test_type2", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 48, - "stmt_location": 4677, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "aa", - "relation": { - "location": 4738, - "relname": "test_type2", - "relpersistence": "p", - }, - "relationType": "OBJECT_TYPE", - "renameType": "OBJECT_ATTRIBUTE", - "subname": "a", - }, - }, - "stmt_len": 47, - "stmt_location": 4726, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_CASCADE", - "newname": "aa", - "relation": { - "location": 4787, - "relname": "test_type2", - "relpersistence": "p", - }, - "relationType": "OBJECT_TYPE", - "renameType": "OBJECT_ATTRIBUTE", - "subname": "a", - }, - }, - "stmt_len": 56, - "stmt_location": 4774, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "a", - "subtype": "AT_DropColumn", - }, - }, - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 4887, - "typeName": { - "location": 4889, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_TYPE", - "relation": { - "location": 4844, - "relname": "test_type3", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 61, - "stmt_location": 4831, - }, - }, - { - "RawStmt": { - "stmt": { - "CompositeTypeStmt": { - "coldeflist": [ - { - "ColumnDef": { - "colname": "z", - "is_local": true, - "location": 4916, - "typeName": { - "location": 4918, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "x", - "is_local": true, - "location": 4924, - "typeName": { - "location": 4926, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "y", - "is_local": true, - "location": 4931, - "typeName": { - "location": 4933, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 8, - }, - "location": 4941, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4943, - }, - }, - ], - }, - }, - }, - ], - "typevar": { - "location": 4906, - "relname": "tt_t0", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 53, - "stmt_location": 4893, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "z", - "subtype": "AT_DropColumn", - }, - }, - ], - "objtype": "OBJECT_TYPE", - "relation": { - "location": 4959, - "relname": "tt_t0", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 34, - "stmt_location": 4947, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "q", - "subtype": "AT_DropColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 5059, - "relname": "tt7", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 87, - "stmt_location": 4982, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "TypeName": { - "location": 5099, - "names": [ - { - "String": { - "sval": "tt_t0", - }, - }, - ], - "typemod": -1, - }, - }, - "subtype": "AT_AddOf", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 5092, - "relname": "tt1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 34, - "stmt_location": 5070, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "subtype": "AT_DropOf", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 5118, - "relname": "tt7", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 23, - "stmt_location": 5105, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "test_drop_constr_parent_c_check", - "subtype": "AT_DropConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "location": 5148, - "relname": "test_drop_constr_parent", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 92, - "stmt_location": 5129, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "f", - "is_local": true, - "location": 5261, - "typeName": { - "location": 5263, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "missing_ok": true, - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 5246, - "relname": "tt8", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 44, - "stmt_location": 5222, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "xxx", - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "f", - }, - }, - ], - "location": 5298, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "missing_ok": true, - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 5290, - "relname": "tt8", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 60, - "stmt_location": 5267, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 5359, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_BETWEEN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - ], - "location": 5366, - }, - }, - "location": 5368, - "name": [ - { - "String": { - "sval": "BETWEEN", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 5376, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 5382, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "missing_ok": true, - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 5351, - "relname": "tt8", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 57, - "stmt_location": 5328, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "A_Const": { - "ival": {}, - "location": 5440, - }, - }, - "name": "f", - "subtype": "AT_ColumnDefault", - }, - }, - ], - "missing_ok": true, - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 5409, - "relname": "tt8", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 55, - "stmt_location": 5386, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "newname": "f1", - "relation": { - "inh": true, - "location": 5465, - "relname": "tt8", - "relpersistence": "p", - }, - "relationType": "OBJECT_TABLE", - "renameType": "OBJECT_COLUMN", - "subname": "f", - }, - }, - "stmt_len": 48, - "stmt_location": 5442, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "missing_ok": true, - "newschema": "alter2", - "objectType": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 5514, - "relname": "tt8", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 44, - "stmt_location": 5491, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "f", - "is_local": true, - "location": 5575, - "typeName": { - "location": 5577, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "missing_ok": true, - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 5560, - "relname": "tt8", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 44, - "stmt_location": 5536, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "xxx", - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "f", - }, - }, - ], - "location": 5612, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "missing_ok": true, - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 5604, - "relname": "tt8", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 60, - "stmt_location": 5581, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 5673, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_BETWEEN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - ], - "location": 5680, - }, - }, - "location": 5682, - "name": [ - { - "String": { - "sval": "BETWEEN", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 5690, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 5696, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "missing_ok": true, - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 5665, - "relname": "tt8", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 57, - "stmt_location": 5642, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "A_Const": { - "ival": {}, - "location": 5754, - }, - }, - "name": "f", - "subtype": "AT_ColumnDefault", - }, - }, - ], - "missing_ok": true, - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 5723, - "relname": "tt8", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 55, - "stmt_location": 5700, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "newname": "f1", - "relation": { - "inh": true, - "location": 5779, - "relname": "tt8", - "relpersistence": "p", - }, - "relationType": "OBJECT_TABLE", - "renameType": "OBJECT_COLUMN", - "subname": "f", - }, - }, - "stmt_len": 48, - "stmt_location": 5756, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "missing_ok": true, - "newschema": "alter2", - "objectType": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 5828, - "relname": "tt8", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 44, - "stmt_location": 5805, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "location": 5890, - "typeName": { - "location": 5916, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "name": "indexed_col", - "subtype": "AT_AlterColumnType", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 5864, - "relname": "comment_test", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 69, - "stmt_location": 5850, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "location": 5959, - "typeName": { - "location": 5985, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "name": "indexed_col", - "subtype": "AT_AlterColumnType", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 5933, - "relname": "comment_test", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 69, - "stmt_location": 5920, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "c2", - "is_local": true, - "location": 6046, - "typeName": { - "location": 6049, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "missing_ok": true, - "subtype": "AT_AddColumn", - }, - }, - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "c3", - "is_local": true, - "location": 6084, - "typeName": { - "location": 6087, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "missing_ok": true, - "subtype": "AT_AddColumn", - }, - }, - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "c4", - "is_local": true, - "location": 6108, - "typeName": { - "location": 6111, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 6004, - "relname": "test_add_column", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 128, - "stmt_location": 5990, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "good", - "newValIsAfter": true, - "typeName": [ - { - "String": { - "sval": "bogus", - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 6119, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "good", - "newValIsAfter": true, - "typeName": [ - { - "String": { - "sval": "schemaname", - }, - }, - { - "String": { - "sval": "bogus", - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 6155, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "good", - "newValIsAfter": true, - "typeName": [ - { - "String": { - "sval": "schema-name", - }, - }, - { - "String": { - "sval": "bogus", - }, - }, - ], - }, - }, - "stmt_len": 48, - "stmt_location": 6201, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "good", - "newValIsAfter": true, - "typeName": [ - { - "String": { - "sval": "schema-name", - }, - }, - { - "String": { - "sval": "bog-us", - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 6250, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "goo'd", - "newValIsAfter": true, - "typeName": [ - { - "String": { - "sval": "schema-name", - }, - }, - { - "String": { - "sval": "bog-us", - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 6302, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "bogon", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "bogus", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_TYPE", - }, - }, - "stmt_len": 34, - "stmt_location": 6356, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "c", - "is_local": true, - "location": 6424, - "typeName": { - "location": 6426, - "names": [ - { - "String": { - "sval": "testdomain1", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_TYPE", - "relation": { - "location": 6403, - "relname": "test8b", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 46, - "stmt_location": 6391, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "location": 6473, - "typeName": { - "location": 6480, - "names": [ - { - "String": { - "sval": "testdomain1", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "name": "b", - "subtype": "AT_AlterColumnType", - }, - }, - ], - "objtype": "OBJECT_TYPE", - "relation": { - "location": 6450, - "relname": "test8b", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 53, - "stmt_location": 6438, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 6527, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - ], - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "testtype1", - }, - }, - ], - }, - }, - ], - "objtype": "OBJECT_TYPE", - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 41, - "stmt_location": 6492, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "meow", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 6560, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 6583, - }, - }, - "location": 6589, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 11, - }, - "location": 6591, - }, - }, - }, - }, - }, - }, - "subtype": "C", - "typeName": [ - { - "String": { - "sval": "things", - }, - }, - ], - }, - }, - "stmt_len": 60, - "stmt_location": 6534, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "meow", - "contype": "CONSTR_CHECK", - "location": 6620, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 6643, - }, - }, - "location": 6649, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 11, - }, - "location": 6651, - }, - }, - }, - }, - "skip_validation": true, - }, - }, - "subtype": "C", - "typeName": [ - { - "String": { - "sval": "things", - }, - }, - ], - }, - }, - "stmt_len": 69, - "stmt_location": 6595, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "name": "meow", - "subtype": "V", - "typeName": [ - { - "String": { - "sval": "things", - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 6665, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "t", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 6734, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 6754, - }, - }, - "location": 6760, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6762, - }, - }, - }, - }, - }, - }, - "subtype": "C", - "typeName": [ - { - "String": { - "sval": "con", - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 6711, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "t", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 6797, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 6817, - }, - }, - "location": 6823, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 34, - }, - "location": 6825, - }, - }, - }, - }, - }, - }, - "subtype": "C", - "typeName": [ - { - "String": { - "sval": "con", - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 6765, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 6851, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 6858, - }, - }, - "location": 6864, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 6866, - }, - }, - }, - }, - }, - }, - "subtype": "C", - "typeName": [ - { - "String": { - "sval": "con", - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 6829, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 6899, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 6916, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6923, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6926, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "substring", - }, - }, - ], - "location": 6906, - }, - }, - "location": 6929, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 6931, - "sval": { - "sval": "x", - }, - }, - }, - }, - }, - }, - }, - ], - "domainname": [ - { - "String": { - "sval": "dinter", - }, - }, - ], - "typeName": { - "location": 6892, - "names": [ - { - "String": { - "sval": "vchar4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 66, - "stmt_location": 6869, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 6963, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 6980, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6987, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6990, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "substring", - }, - }, - ], - "location": 6970, - }, - }, - "location": 6993, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 6995, - "sval": { - "sval": "1", - }, - }, - }, - }, - }, - }, - }, - ], - "domainname": [ - { - "String": { - "sval": "dtop", - }, - }, - ], - "typeName": { - "location": 6956, - "names": [ - { - "String": { - "sval": "dinter", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 63, - "stmt_location": 6936, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "testdomain2", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "testdomain1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 48, - "stmt_location": 7000, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "testdomain3", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "testdomain2", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_TYPE", - }, - }, - "stmt_len": 45, - "stmt_location": 7049, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "constraints": [ - { - "Constraint": { - "conname": "unsigned", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 7156, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 7183, - }, - }, - "location": 7189, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 7191, - }, - }, - }, - }, - }, - }, - ], - "domainname": [ - { - "String": { - "sval": "testdomain1", - }, - }, - ], - "typeName": { - "location": 7152, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 98, - "stmt_location": 7095, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "unsigned_foo", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "testdomain1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_DOMCONSTRAINT", - "subname": "unsigned", - }, - }, - "stmt_len": 68, - "stmt_location": 7194, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "name": "unsigned_foo", - "subtype": "X", - "typeName": [ - { - "String": { - "sval": "testdomain1", - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 7263, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 7331, - "names": [ - { - "String": { - "sval": "testdomain1", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 24, - "stmt_location": 7318, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "height_in", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_GENERATED", - "generated_when": "a", - "location": 7394, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "height_cm", - }, - }, - ], - "location": 7415, - }, - }, - "location": 7425, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "fval": { - "fval": "2.54", - }, - "location": 7427, - }, - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 7376, - "typeName": { - "location": 7386, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 7357, - "relname": "mytable", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 96, - "stmt_location": 7343, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "newname", - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_SCHEMA", - "subname": "schemaname", - }, - }, - "stmt_len": 43, - "stmt_location": 7440, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 7518, - "rolename": "newowner", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "String": { - "sval": "schemaname", - }, - }, - "objectType": "OBJECT_SCHEMA", - }, - }, - "stmt_len": 42, - "stmt_location": 7484, - }, - }, -] -`; - -exports[`kitchen sink comments 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "@fieldName parent", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "roles_public", - }, - }, - { - "String": { - "sval": "memberships", - }, - }, - { - "String": { - "sval": "memberships_membership_id_fkey", - }, - }, - ], - }, - }, - "objtype": "OBJECT_TABCONSTRAINT", - }, - }, - "stmt_len": 105, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "Development Database", - "object": { - "String": { - "sval": "my_database", - }, - }, - "objtype": "OBJECT_DATABASE", - }, - }, - "stmt_len": 58, - "stmt_location": 106, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "Email Address Domain", - "object": { - "TypeName": { - "location": 184, - "names": [ - { - "String": { - "sval": "my_domain", - }, - }, - ], - "typemod": -1, - }, - }, - "objtype": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 54, - "stmt_location": 165, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "implements the hstore data type", - "object": { - "String": { - "sval": "hstore", - }, - }, - "objtype": "OBJECT_EXTENSION", - }, - }, - "stmt_len": 65, - "stmt_location": 220, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "my foreign data wrapper", - "object": { - "String": { - "sval": "mywrapper", - }, - }, - "objtype": "OBJECT_FDW", - }, - }, - "stmt_len": 71, - "stmt_location": 286, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "Employee Information in other database", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "my_foreign_table", - }, - }, - ], - }, - }, - "objtype": "OBJECT_FOREIGN_TABLE", - }, - }, - "stmt_len": 86, - "stmt_location": 358, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "Returns Roman Numeral", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 479, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 479, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "my_function", - }, - }, - ], - }, - }, - "objtype": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 71, - "stmt_location": 445, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "Enforces uniqueness on employee ID", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "my_index", - }, - }, - ], - }, - }, - "objtype": "OBJECT_INDEX", - }, - }, - "stmt_len": 66, - "stmt_location": 517, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "Python support for stored procedures", - "object": { - "String": { - "sval": "plpython", - }, - }, - "objtype": "OBJECT_LANGUAGE", - }, - }, - "stmt_len": 71, - "stmt_location": 584, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "Planning document", - "object": { - "Integer": { - "ival": 346344, - }, - }, - "objtype": "OBJECT_LARGEOBJECT", - }, - }, - "stmt_len": 54, - "stmt_location": 656, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "Summary of order history", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "my_matview", - }, - }, - ], - }, - }, - "objtype": "OBJECT_MATVIEW", - }, - }, - "stmt_len": 70, - "stmt_location": 711, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "Performs intersection of two texts", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 806, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 812, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "^", - }, - }, - ], - }, - }, - "objtype": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 75, - "stmt_location": 782, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "Unary minus", - "object": { - "ObjectWithArgs": { - "objargs": [ - {}, - { - "TypeName": { - "location": 888, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "-", - }, - }, - ], - }, - }, - "objtype": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 55, - "stmt_location": 858, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "4 byte integer operators for btrees", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "btree", - }, - }, - { - "String": { - "sval": "int4ops", - }, - }, - ], - }, - }, - "objtype": "OBJECT_OPCLASS", - }, - }, - "stmt_len": 87, - "stmt_location": 914, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "all integer operators for btrees", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "btree", - }, - }, - { - "String": { - "sval": "integer_ops", - }, - }, - ], - }, - }, - "objtype": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 89, - "stmt_location": 1002, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "Filter rows by users", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "mytable", - }, - }, - { - "String": { - "sval": "my_policy", - }, - }, - ], - }, - }, - "objtype": "OBJECT_POLICY", - }, - }, - "stmt_len": 65, - "stmt_location": 1092, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "Administration group for finance tables", - "object": { - "String": { - "sval": "my_role", - }, - }, - "objtype": "OBJECT_ROLE", - }, - }, - "stmt_len": 69, - "stmt_location": 1158, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "Logs updates of employee records", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "my_table", - }, - }, - { - "String": { - "sval": "my_rule", - }, - }, - ], - }, - }, - "objtype": "OBJECT_RULE", - }, - }, - "stmt_len": 74, - "stmt_location": 1228, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "Departmental data", - "object": { - "String": { - "sval": "my_schema", - }, - }, - "objtype": "OBJECT_SCHEMA", - }, - }, - "stmt_len": 51, - "stmt_location": 1303, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "Used to generate primary keys", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "my_sequence", - }, - }, - ], - }, - }, - "objtype": "OBJECT_SEQUENCE", - }, - }, - "stmt_len": 67, - "stmt_location": 1355, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "my foreign server", - "object": { - "String": { - "sval": "myserver", - }, - }, - "objtype": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 50, - "stmt_location": 1423, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "Improves planner row estimations", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "my_statistics", - }, - }, - ], - }, - }, - "objtype": "OBJECT_STATISTIC_EXT", - }, - }, - "stmt_len": 74, - "stmt_location": 1474, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "Employee Information", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "my_schema", - }, - }, - { - "String": { - "sval": "my_table", - }, - }, - ], - }, - }, - "objtype": "OBJECT_TABLE", - }, - }, - "stmt_len": 62, - "stmt_location": 1549, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "Tablespace for indexes", - "object": { - "String": { - "sval": "my_tablespace", - }, - }, - "objtype": "OBJECT_TABLESPACE", - }, - }, - "stmt_len": 64, - "stmt_location": 1612, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "Special word filtering", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "my_config", - }, - }, - ], - }, - }, - "objtype": "OBJECT_TSCONFIGURATION", - }, - }, - "stmt_len": 75, - "stmt_location": 1677, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "Snowball stemmer for Swedish language", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "swedish", - }, - }, - ], - }, - }, - "objtype": "OBJECT_TSDICTIONARY", - }, - }, - "stmt_len": 85, - "stmt_location": 1753, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "Splits text into words", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "my_parser", - }, - }, - ], - }, - }, - "objtype": "OBJECT_TSPARSER", - }, - }, - "stmt_len": 68, - "stmt_location": 1839, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "Snowball stemmer", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "snowball", - }, - }, - ], - }, - }, - "objtype": "OBJECT_TSTEMPLATE", - }, - }, - "stmt_len": 63, - "stmt_location": 1908, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "Transform between hstore and Python dict", - "object": { - "List": { - "items": [ - { - "TypeName": { - "location": 1998, - "names": [ - { - "String": { - "sval": "hstore", - }, - }, - ], - "typemod": -1, - }, - }, - { - "String": { - "sval": "plpythonu", - }, - }, - ], - }, - }, - "objtype": "OBJECT_TRANSFORM", - }, - }, - "stmt_len": 97, - "stmt_location": 1972, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "Used for RI", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "my_table", - }, - }, - { - "String": { - "sval": "my_trigger", - }, - }, - ], - }, - }, - "objtype": "OBJECT_TRIGGER", - }, - }, - "stmt_len": 59, - "stmt_location": 2070, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "Complex number data type", - "object": { - "TypeName": { - "location": 2147, - "names": [ - { - "String": { - "sval": "complex", - }, - }, - ], - "typemod": -1, - }, - }, - "objtype": "OBJECT_TYPE", - }, - }, - "stmt_len": 54, - "stmt_location": 2130, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "View of departmental costs", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "my_view", - }, - }, - ], - }, - }, - "objtype": "OBJECT_VIEW", - }, - }, - "stmt_len": 56, - "stmt_location": 2185, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "object": { - "List": { - "items": [ - { - "String": { - "sval": "mytable", - }, - }, - ], - }, - }, - "objtype": "OBJECT_TABLE", - }, - }, - "stmt_len": 35, - "stmt_location": 2242, - }, - }, -] -`; - -exports[`kitchen sink conflicts 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 22, - "name": "project_id", - }, - }, - { - "ResTarget": { - "location": 34, - "name": "name", - }, - }, - { - "ResTarget": { - "location": 40, - "name": "field_name", - }, - }, - ], - "onConflictClause": { - "action": "ONCONFLICT_UPDATE", - "infer": { - "indexElems": [ - { - "IndexElem": { - "name": "project_id", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "name", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "location": 128, - }, - "location": 116, - "targetList": [ - { - "ResTarget": { - "location": 171, - "name": "field_name", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "excluded", - }, - }, - { - "String": { - "sval": "field_name", - }, - }, - ], - "location": 184, - }, - }, - }, - }, - ], - }, - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 12, - "relname": "table", - "relpersistence": "p", - "schemaname": "yo", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v_obj_key_id", - }, - }, - ], - "location": 62, - }, - }, - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v_secret_name", - }, - }, - ], - "location": 76, - }, - }, - "location": 89, - "typeName": { - "location": 91, - "names": [ - { - "String": { - "sval": "bytea", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v_secret_value", - }, - }, - ], - "location": 98, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 203, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 229, - "name": "project_id", - }, - }, - { - "ResTarget": { - "location": 241, - "name": "name", - }, - }, - { - "ResTarget": { - "location": 247, - "name": "field_name", - }, - }, - ], - "onConflictClause": { - "action": "ONCONFLICT_UPDATE", - "infer": { - "indexElems": [ - { - "IndexElem": { - "name": "project_id", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "name", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "location": 335, - }, - "location": 323, - "targetList": [ - { - "ResTarget": { - "location": 378, - "name": "field_name", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "excluded", - }, - }, - { - "String": { - "sval": "field_name", - }, - }, - ], - "location": 391, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "prop", - }, - }, - ], - "location": 419, - }, - }, - "location": 424, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 426, - }, - }, - }, - }, - }, - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 219, - "relname": "table", - "relpersistence": "p", - "schemaname": "yo", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v_obj_key_id", - }, - }, - ], - "location": 269, - }, - }, - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v_secret_name", - }, - }, - ], - "location": 283, - }, - }, - "location": 296, - "typeName": { - "location": 298, - "names": [ - { - "String": { - "sval": "bytea", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v_secret_value", - }, - }, - ], - "location": 305, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 223, - "stmt_location": 204, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 452, - "name": "project_id", - }, - }, - { - "ResTarget": { - "location": 464, - "name": "name", - }, - }, - { - "ResTarget": { - "location": 470, - "name": "field_name", - }, - }, - ], - "onConflictClause": { - "action": "ONCONFLICT_NOTHING", - "infer": { - "indexElems": [ - { - "IndexElem": { - "name": "project_id", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "name", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "location": 558, - }, - "location": 546, - }, - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 442, - "relname": "table", - "relpersistence": "p", - "schemaname": "yo", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v_obj_key_id", - }, - }, - ], - "location": 492, - }, - }, - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v_secret_name", - }, - }, - ], - "location": 506, - }, - }, - "location": 519, - "typeName": { - "location": 521, - "names": [ - { - "String": { - "sval": "bytea", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v_secret_value", - }, - }, - ], - "location": 528, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 161, - "stmt_location": 428, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 615, - "name": "name", - }, - }, - { - "ResTarget": { - "location": 621, - "name": "email", - }, - }, - ], - "onConflictClause": { - "action": "ONCONFLICT_NOTHING", - "infer": { - "conname": "customers_name_key", - "location": 696, - }, - "location": 683, - }, - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 604, - "relname": "customers", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 640, - "sval": { - "sval": "Microsoft", - }, - }, - }, - { - "A_Const": { - "location": 655, - "sval": { - "sval": "hotline@microsoft.com", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 150, - "stmt_location": 590, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 767, - "name": "name", - }, - }, - { - "ResTarget": { - "location": 773, - "name": "email", - }, - }, - ], - "onConflictClause": { - "action": "ONCONFLICT_UPDATE", - "infer": { - "indexElems": [ - { - "IndexElem": { - "name": "name", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "location": 847, - }, - "location": 835, - "targetList": [ - { - "ResTarget": { - "location": 874, - "name": "email", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "excluded", - }, - }, - { - "String": { - "sval": "email", - }, - }, - ], - "location": 882, - }, - }, - "location": 897, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 900, - "sval": { - "sval": ";", - }, - }, - }, - }, - }, - "location": 904, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "customers", - }, - }, - { - "String": { - "sval": "email", - }, - }, - ], - "location": 907, - }, - }, - }, - }, - }, - }, - ], - }, - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 756, - "relname": "customers", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 792, - "sval": { - "sval": "Microsoft", - }, - }, - }, - { - "A_Const": { - "location": 807, - "sval": { - "sval": "hotline@microsoft.com", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 181, - "stmt_location": 741, - }, - }, -] -`; - -exports[`kitchen sink default privs 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "AlterDefaultPrivilegesStmt": { - "action": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 88, - "rolename": "authenticated", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objtype": "OBJECT_FUNCTION", - "privileges": [ - { - "AccessPriv": { - "priv_name": "execute", - }, - }, - ], - "targtype": "ACL_TARGET_DEFAULTS", - }, - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "objects_public", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "schemas", - "location": 25, - }, - }, - ], - }, - }, - "stmt_len": 101, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDefaultPrivilegesStmt": { - "action": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 166, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - ], - "objtype": "OBJECT_FUNCTION", - "privileges": [ - { - "AccessPriv": { - "priv_name": "execute", - }, - }, - ], - "targtype": "ACL_TARGET_DEFAULTS", - }, - }, - }, - "stmt_len": 70, - "stmt_location": 102, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDefaultPrivilegesStmt": { - "action": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 246, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - ], - "is_grant": true, - "objtype": "OBJECT_TABLE", - "privileges": [ - { - "AccessPriv": { - "priv_name": "select", - }, - }, - ], - "targtype": "ACL_TARGET_DEFAULTS", - }, - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "myschema", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "schemas", - "location": 201, - }, - }, - ], - }, - }, - "stmt_len": 79, - "stmt_location": 173, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDefaultPrivilegesStmt": { - "action": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 325, - "rolename": "webuser", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objtype": "OBJECT_TABLE", - "privileges": [ - { - "AccessPriv": { - "priv_name": "insert", - }, - }, - ], - "targtype": "ACL_TARGET_DEFAULTS", - }, - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "myschema", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "schemas", - "location": 280, - }, - }, - ], - }, - }, - "stmt_len": 79, - "stmt_location": 253, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDefaultPrivilegesStmt": { - "action": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 409, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "privileges": [ - { - "AccessPriv": { - "priv_name": "select", - }, - }, - ], - "targtype": "ACL_TARGET_DEFAULTS", - }, - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "myschema", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "schemas", - "location": 361, - }, - }, - ], - }, - }, - "stmt_len": 82, - "stmt_location": 333, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDefaultPrivilegesStmt": { - "action": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 490, - "rolename": "webuser", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "privileges": [ - { - "AccessPriv": { - "priv_name": "insert", - }, - }, - ], - "targtype": "ACL_TARGET_DEFAULTS", - }, - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "myschema", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "schemas", - "location": 442, - }, - }, - ], - }, - }, - "stmt_len": 81, - "stmt_location": 416, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDefaultPrivilegesStmt": { - "action": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 573, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - ], - "objtype": "OBJECT_FUNCTION", - "privileges": [ - { - "AccessPriv": { - "priv_name": "execute", - }, - }, - ], - "targtype": "ACL_TARGET_DEFAULTS", - }, - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "RoleSpec": { - "location": 534, - "rolename": "admin", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "roles", - "location": 525, - }, - }, - ], - }, - }, - "stmt_len": 81, - "stmt_location": 498, - }, - }, -] -`; - -exports[`kitchen sink delete 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 12, - "relname": "shoelace_data", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "sl_name", - }, - }, - ], - "location": 37, - }, - }, - "location": 45, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "old", - }, - }, - { - "String": { - "sval": "sl_name", - }, - }, - ], - "location": 47, - }, - }, - }, - }, - }, - }, - "stmt_len": 58, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "alias": { - "aliasname": "dt", - }, - "inh": true, - "location": 73, - "relname": "delete_test", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "dt", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 97, - }, - }, - "location": 102, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 75, - }, - "location": 104, - }, - }, - }, - }, - }, - }, - "stmt_len": 47, - "stmt_location": 59, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "alias": { - "aliasname": "dt", - }, - "inh": true, - "location": 121, - "relname": "delete_test", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "delete_test", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 142, - }, - }, - "location": 156, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 25, - }, - "location": 158, - }, - }, - }, - }, - }, - }, - "stmt_len": 53, - "stmt_location": 107, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 175, - "relname": "delete_test", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 193, - }, - }, - "location": 195, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 25, - }, - "location": 197, - }, - }, - }, - }, - }, - }, - "stmt_len": 38, - "stmt_location": 161, - }, - }, -] -`; - -exports[`kitchen sink do stmt 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "DoStmt": { - "args": [ - { - "DefElem": { - "arg": { - "String": { - "sval": " -BEGIN - IF NOT EXISTS ( - SELECT - 1 - FROM - pg_roles - WHERE - rolname = 'administrator') THEN - CREATE ROLE administrator; - COMMENT ON ROLE administrator IS 'Administration group'; - END IF; -END ", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 3, - }, - }, - ], - }, - }, - "stmt_len": 303, - "stmt_location": 0, - }, - }, -] -`; - -exports[`kitchen sink domain 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "domainname": [ - { - "String": { - "sval": "v8", - }, - }, - { - "String": { - "sval": "json", - }, - }, - ], - "typeName": { - "location": 25, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "json", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 29, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 64, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 72, - }, - }, - "location": 78, - "name": [ - { - "String": { - "sval": "~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 80, - "sval": { - "sval": "^[a-zA-Z0-9.!#$%&'*+/=?^_\`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$", - }, - }, - }, - }, - }, - }, - }, - ], - "domainname": [ - { - "String": { - "sval": "email", - }, - }, - ], - "typeName": { - "location": 55, - "names": [ - { - "String": { - "sval": "citext", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 187, - "stmt_location": 30, - }, - }, -] -`; - -exports[`kitchen sink domains 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "domainname": [ - { - "String": { - "sval": "v8", - }, - }, - { - "String": { - "sval": "json", - }, - }, - ], - "typeName": { - "location": 25, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "json", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 29, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 64, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 72, - }, - }, - "location": 78, - "name": [ - { - "String": { - "sval": "~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 80, - "sval": { - "sval": "^[a-zA-Z0-9.!#$%&'*+/=?^_\`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$", - }, - }, - }, - }, - }, - }, - }, - ], - "domainname": [ - { - "String": { - "sval": "email", - }, - }, - ], - "typeName": { - "location": 55, - "names": [ - { - "String": { - "sval": "citext", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 187, - "stmt_location": 30, - }, - }, -] -`; - -exports[`kitchen sink enums 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateEnumStmt": { - "typeName": [ - { - "String": { - "sval": "myschema", - }, - }, - { - "String": { - "sval": "special_type", - }, - }, - ], - "vals": [ - { - "String": { - "sval": "oh", - }, - }, - { - "String": { - "sval": "yea", - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 0, - }, - }, -] -`; - -exports[`kitchen sink fixtures complex.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f1", - }, - "inh": true, - "location": 77, - "relname": "player", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "f2", - }, - "inh": true, - "location": 90, - "relname": "player", - "relpersistence": "p", - }, - }, - { - "JoinExpr": { - "jointype": "JOIN_FULL", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "p1", - }, - "inh": true, - "location": 103, - "relname": "plays", - "relpersistence": "p", - }, - }, - "quals": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p1", - }, - }, - { - "String": { - "sval": "playerid", - }, - }, - ], - "location": 140, - }, - }, - "location": 152, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p2", - }, - }, - { - "String": { - "sval": "playerid", - }, - }, - ], - "location": 154, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p1", - }, - }, - { - "String": { - "sval": "teamid", - }, - }, - ], - "location": 170, - }, - }, - "location": 180, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p2", - }, - }, - { - "String": { - "sval": "teamid", - }, - }, - ], - "location": 182, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 166, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "p2", - }, - "inh": true, - "location": 128, - "relname": "plays", - "relpersistence": "p", - }, - }, - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p1", - }, - }, - { - "String": { - "sval": "playerid", - }, - }, - ], - "location": 203, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - { - "String": { - "sval": "playerid", - }, - }, - ], - "location": 218, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p2", - }, - }, - { - "String": { - "sval": "playerid", - }, - }, - ], - "location": 233, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f2", - }, - }, - { - "String": { - "sval": "playerid", - }, - }, - ], - "location": 248, - }, - }, - ], - "havingClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p1", - }, - }, - { - "String": { - "sval": "playerid", - }, - }, - ], - "location": 275, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 269, - }, - }, - "location": 288, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 290, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p2", - }, - }, - { - "String": { - "sval": "playerid", - }, - }, - ], - "location": 309, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 303, - }, - }, - "location": 322, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 324, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p1", - }, - }, - { - "String": { - "sval": "playerid", - }, - }, - ], - "location": 337, - }, - }, - "location": 349, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - { - "String": { - "sval": "playerid", - }, - }, - ], - "location": 351, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p2", - }, - }, - { - "String": { - "sval": "playerid", - }, - }, - ], - "location": 367, - }, - }, - "location": 379, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f2", - }, - }, - { - "String": { - "sval": "playerid", - }, - }, - ], - "location": 381, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 299, - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p1", - }, - }, - { - "String": { - "sval": "playerid", - }, - }, - ], - "location": 9, - }, - }, - }, - }, - { - "ResTarget": { - "location": 24, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - { - "String": { - "sval": "playername", - }, - }, - ], - "location": 24, - }, - }, - }, - }, - { - "ResTarget": { - "location": 41, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p2", - }, - }, - { - "String": { - "sval": "playerid", - }, - }, - ], - "location": 41, - }, - }, - }, - }, - { - "ResTarget": { - "location": 56, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f2", - }, - }, - { - "String": { - "sval": "playername", - }, - }, - ], - "location": 56, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 392, - "stmt_location": 0, - }, - }, -] -`; - -exports[`kitchen sink fixtures custom.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 14, - "relname": "tab", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": 37, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 27, - }, - }, - "sortby_dir": "SORTBY_USING", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - "useOp": [ - { - "String": { - "sval": "<", - }, - }, - ], - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 7, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 7, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 55, - "relname": "tab", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": 78, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 68, - }, - }, - "sortby_dir": "SORTBY_USING", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - "useOp": [ - { - "String": { - "sval": ">", - }, - }, - ], - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 48, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 48, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 39, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 96, - "relname": "tab", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": 119, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 109, - }, - }, - "sortby_dir": "SORTBY_USING", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - "useOp": [ - { - "String": { - "sval": "=", - }, - }, - ], - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 89, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 89, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 80, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 137, - "relname": "tab", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": 160, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 150, - }, - }, - "sortby_dir": "SORTBY_USING", - "sortby_nulls": "SORTBY_NULLS_FIRST", - "useOp": [ - { - "String": { - "sval": "=", - }, - }, - ], - }, - }, - { - "SortBy": { - "location": 186, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col2", - }, - }, - ], - "location": 175, - }, - }, - "sortby_dir": "SORTBY_USING", - "sortby_nulls": "SORTBY_NULLS_LAST", - "useOp": [ - { - "String": { - "sval": "<", - }, - }, - ], - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 130, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 130, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 77, - "stmt_location": 121, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 208, - "val": { - "FuncCall": { - "args": [ - { - "NamedArgExpr": { - "arg": { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 237, - }, - }, - { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 241, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 245, - }, - }, - { - "A_Const": { - "fval": { - "fval": "4.4", - }, - "location": 248, - }, - }, - ], - "location": 231, - }, - }, - "argnumber": -1, - "location": 224, - "name": "arr", - }, - }, - ], - "func_variadic": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "mleast", - }, - }, - ], - "location": 208, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 199, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 263, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 270, - "sval": { - "sval": "'123\\000\\001", - }, - }, - }, - { - "A_Const": { - "location": 290, - "sval": { - "sval": "base64", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "encode", - }, - }, - ], - "location": 263, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 254, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 309, - "val": { - "A_Const": { - "location": 309, - "sval": { - "sval": "слон", - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 300, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 343, - "val": { - "A_Const": { - "location": 343, - "sval": { - "sval": "data", - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 334, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 372, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 372, - }, - }, - "location": 374, - "name": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 397, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 363, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "coldeflist": [ - { - "ColumnDef": { - "colname": "fooid", - "is_local": true, - "location": 541, - "typeName": { - "location": 547, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "foosubid", - "is_local": true, - "location": 552, - "typeName": { - "location": 561, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "fooname", - "is_local": true, - "location": 566, - "typeName": { - "location": 574, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 434, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "getfoo6", - }, - }, - ], - "location": 426, - }, - }, - { - "List": { - "items": [ - { - "ColumnDef": { - "colname": "fooid", - "is_local": true, - "location": 441, - "typeName": { - "location": 447, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "foosubid", - "is_local": true, - "location": 452, - "typeName": { - "location": 461, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "fooname", - "is_local": true, - "location": 466, - "typeName": { - "location": 474, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 489, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "getfoo7", - }, - }, - ], - "location": 481, - }, - }, - { - "List": { - "items": [ - { - "ColumnDef": { - "colname": "fooid", - "is_local": true, - "location": 496, - "typeName": { - "location": 502, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "foosubid", - "is_local": true, - "location": 507, - "typeName": { - "location": 516, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "fooname", - "is_local": true, - "location": 521, - "typeName": { - "location": 529, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - ], - "is_rowsfrom": true, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 408, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 408, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 180, - "stmt_location": 399, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 596, - "relname": "b", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 589, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 589, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 604, - }, - }, - "location": 606, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "SubLink": { - "location": 608, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 616, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 616, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 38, - "stmt_location": 580, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 635, - "relname": "b", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 628, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 628, - }, - }, - }, - }, - ], - "whereClause": { - "SubLink": { - "location": 645, - "operName": [ - { - "String": { - "sval": "<", - }, - }, - ], - "subLinkType": "ALL_SUBLINK", - "subselect": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 659, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 659, - }, - }, - }, - }, - ], - }, - }, - "testexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 643, - }, - }, - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 619, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 678, - "relname": "b", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 671, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 671, - }, - }, - }, - }, - ], - "whereClause": { - "SubLink": { - "location": 688, - "operName": [ - { - "String": { - "sval": "<", - }, - }, - ], - "subLinkType": "ANY_SUBLINK", - "subselect": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 702, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 702, - }, - }, - }, - }, - ], - }, - }, - "testexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 686, - }, - }, - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 662, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 721, - "relname": "b", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 714, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 714, - }, - }, - }, - }, - ], - "whereClause": { - "SubLink": { - "location": 729, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 744, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 744, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 41, - "stmt_location": 705, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 763, - "relname": "b", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 756, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 756, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 771, - }, - }, - "location": 773, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "SubLink": { - "location": 775, - "subLinkType": "ARRAY_SUBLINK", - "subselect": { - "SelectStmt": { - "distinctClause": [ - {}, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 798, - "val": { - "SubLink": { - "location": 798, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 806, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 806, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 810, - "val": { - "SubLink": { - "location": 810, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "distinctClause": [ - {}, - ], - "groupClause": [ - { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 838, - }, - }, - ], - "havingClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 847, - }, - }, - "location": 849, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "SubLink": { - "location": 851, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 859, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 859, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 827, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 827, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 116, - "stmt_location": 747, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 873, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 873, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_SIMILAR", - "lexpr": { - "A_Const": { - "location": 881, - "sval": { - "sval": "abc", - }, - }, - }, - "location": 887, - "name": [ - { - "String": { - "sval": "~", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 898, - "sval": { - "sval": "abc", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "similar_to_escape", - }, - }, - ], - "location": 887, - }, - }, - }, - }, - }, - }, - "stmt_len": 39, - "stmt_location": 864, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 913, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 913, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_SIMILAR", - "lexpr": { - "A_Const": { - "location": 921, - "sval": { - "sval": "abc", - }, - }, - }, - "location": 927, - "name": [ - { - "String": { - "sval": "~", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 943, - "sval": { - "sval": "test", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "test", - }, - }, - ], - "location": 938, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "similar_to_escape", - }, - }, - ], - "location": 927, - }, - }, - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 904, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 960, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 960, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_SIMILAR", - "lexpr": { - "A_Const": { - "location": 968, - "sval": { - "sval": "abc", - }, - }, - }, - "location": 974, - "name": [ - { - "String": { - "sval": "~", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 990, - "sval": { - "sval": "test", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "test", - }, - }, - ], - "location": 985, - }, - }, - { - "A_Const": { - "location": 1005, - "sval": { - "sval": "t", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "similar_to_escape", - }, - }, - ], - "location": 974, - }, - }, - }, - }, - }, - }, - "stmt_len": 57, - "stmt_location": 951, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1018, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1018, - }, - }, - "location": 1019, - "typeName": { - "location": 1021, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": -1, - }, - }, - ], - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 15, - "stmt_location": 1009, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 1047, - "sval": { - "sval": "UNICODE", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "client_encoding", - }, - }, - "stmt_len": 31, - "stmt_location": 1025, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 1082, - "sval": { - "sval": "UNICODE", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "client_encoding", - }, - }, - "stmt_len": 34, - "stmt_location": 1057, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 1118, - "sval": { - "sval": "notice", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "client_min_messages", - }, - }, - "stmt_len": 32, - "stmt_location": 1092, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "client_encoding", - }, - }, - "stmt_len": 22, - "stmt_location": 1125, - }, - }, -] -`; - -exports[`kitchen sink fixtures param-ref.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 84, - "relname": "table_name", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 75, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 75, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "name", - }, - }, - ], - "location": 103, - }, - }, - "location": 108, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ParamRef": { - "location": 110, - "number": 1, - }, - }, - }, - }, - }, - }, - "stmt_len": 112, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 124, - "name": "name", - "val": { - "TypeCast": { - "arg": { - "ParamRef": { - "location": 124, - "number": 1, - }, - }, - "location": 126, - "typeName": { - "location": 128, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 113, - }, - }, -] -`; - -exports[`kitchen sink fixtures query-001.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "innerquery", - }, - "subquery": { - "SelectStmt": { - "distinctClause": [ - {}, - ], - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeSubselect": { - "alias": { - "aliasname": "t1", - }, - "subquery": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_LEFT", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "p", - }, - "inh": true, - "location": 299, - "relname": "player", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "playerid", - }, - }, - ], - "location": 334, - }, - }, - "location": 345, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pl", - }, - }, - { - "String": { - "sval": "playerid", - }, - }, - ], - "location": 347, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "pl", - }, - "inh": true, - "location": 322, - "relname": "plays", - "relpersistence": "p", - }, - }, - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "playerid", - }, - }, - ], - "location": 372, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "playername", - }, - }, - ], - "location": 384, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 146, - "name": "t1id", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "playerid", - }, - }, - ], - "location": 146, - }, - }, - }, - }, - { - "ResTarget": { - "location": 172, - "name": "t1player", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "playerid", - }, - }, - ], - "location": 179, - }, - }, - { - "A_Const": { - "location": 191, - "sval": { - "sval": ":", - }, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "playername", - }, - }, - ], - "location": 196, - }, - }, - { - "A_Const": { - "location": 210, - "sval": { - "sval": " ", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "concat", - }, - }, - ], - "location": 172, - }, - }, - }, - }, - { - "ResTarget": { - "location": 234, - "name": "player_teams", - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pl", - }, - }, - { - "String": { - "sval": "teamid", - }, - }, - ], - "location": 263, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pl", - }, - }, - { - "String": { - "sval": "teamid", - }, - }, - ], - "location": 244, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_agg", - }, - }, - ], - "location": 234, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "quals": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "player_teams", - }, - }, - ], - "location": 621, - }, - }, - "location": 636, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "player_teams", - }, - }, - ], - "location": 637, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "t1id", - }, - }, - ], - "location": 657, - }, - }, - "location": 665, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "t2id", - }, - }, - ], - "location": 668, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 653, - }, - }, - "rarg": { - "RangeSubselect": { - "alias": { - "aliasname": "t2", - }, - "subquery": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_LEFT", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "p", - }, - "inh": true, - "location": 519, - "relname": "player", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "playerid", - }, - }, - ], - "location": 552, - }, - }, - "location": 563, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pl", - }, - }, - { - "String": { - "sval": "playerid", - }, - }, - ], - "location": 565, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "pl", - }, - "inh": true, - "location": 540, - "relname": "plays", - "relpersistence": "p", - }, - }, - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "playerid", - }, - }, - ], - "location": 588, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "playername", - }, - }, - ], - "location": 600, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 432, - "name": "t2id", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "playerid", - }, - }, - ], - "location": 432, - }, - }, - }, - }, - { - "ResTarget": { - "location": 456, - "name": "player_teams", - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pl", - }, - }, - { - "String": { - "sval": "teamid", - }, - }, - ], - "location": 485, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pl", - }, - }, - { - "String": { - "sval": "teamid", - }, - }, - ], - "location": 466, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_agg", - }, - }, - ], - "location": 456, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 72, - "name": "players_dist", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "t1player", - }, - }, - ], - "location": 72, - }, - }, - }, - }, - { - "ResTarget": { - "location": 105, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "player_teams", - }, - }, - ], - "location": 105, - }, - }, - }, - }, - ], - }, - }, - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "player_teams", - }, - }, - ], - "location": 698, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "players", - }, - }, - ], - "location": 19, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_agg", - }, - }, - ], - "location": 9, - }, - }, - }, - }, - { - "ResTarget": { - "location": 31, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "player_teams", - }, - }, - ], - "location": 31, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 710, - "stmt_location": 0, - }, - }, -] -`; - -exports[`kitchen sink fixtures query-002.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f1", - }, - "inh": true, - "location": 14, - "relname": "Foo", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 7, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - { - "String": { - "sval": "FooUID", - }, - }, - ], - "location": 29, - }, - }, - "location": 41, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "SubLink": { - "location": 43, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_LEFT", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "f2", - }, - "inh": true, - "location": 72, - "relname": "Foo", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f2", - }, - }, - { - "String": { - "sval": "BarUID", - }, - }, - ], - "location": 105, - }, - }, - "location": 117, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "BarUID", - }, - }, - ], - "location": 119, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 94, - "relname": "Bar", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitCount": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 195, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 55, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f2", - }, - }, - { - "String": { - "sval": "FooUID", - }, - }, - ], - "location": 55, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "NullTest": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f2", - }, - }, - { - "String": { - "sval": "BarUID", - }, - }, - ], - "location": 139, - }, - }, - "location": 151, - "nulltesttype": "IS_NOT_NULL", - }, - }, - { - "NullTest": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "BarUID", - }, - }, - ], - "location": 167, - }, - }, - "location": 178, - "nulltesttype": "IS_NULL", - }, - }, - ], - "boolop": "AND_EXPR", - "location": 163, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": undefined, - "stmt_location": 0, - }, - }, -] -`; - -exports[`kitchen sink fixtures query-003.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7, - "val": { - "A_Indirection": { - "arg": { - "TypeCast": { - "arg": { - "SubLink": { - "location": 8, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16, - "val": { - "TypeCast": { - "arg": { - "RowExpr": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 20, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 22, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 24, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 26, - }, - }, - ], - "location": 16, - "row_format": "COERCE_EXPLICIT_CALL", - }, - }, - "location": 28, - "typeName": { - "location": 30, - "names": [ - { - "String": { - "sval": "test", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "location": 35, - "typeName": { - "location": 37, - "names": [ - { - "String": { - "sval": "test", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "indirection": [ - { - "A_Star": {}, - }, - ], - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 0, - }, - }, -] -`; - -exports[`kitchen sink fixtures simple.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 18, - "relname": "table_name", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 9, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "name", - }, - }, - ], - "location": 37, - }, - }, - "location": 42, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 44, - "sval": { - "sval": "test", - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "num", - }, - }, - ], - "location": 55, - }, - }, - "location": 59, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 61, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "last_name", - }, - }, - ], - "location": 69, - }, - }, - "location": 79, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 84, - "sval": { - "sval": "%'test'%", - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 51, - }, - }, - }, - }, - "stmt_len": 96, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 117, - "relname": "table_name", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 108, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 108, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "name", - }, - }, - ], - "location": 136, - }, - }, - "location": 141, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 143, - "sval": { - "sval": "test", - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "num", - }, - }, - ], - "location": 154, - }, - }, - "location": 158, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 160, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "last_name", - }, - }, - ], - "location": 168, - }, - }, - "location": 178, - "name": [ - { - "String": { - "sval": "!~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 187, - "sval": { - "sval": "%'test'%", - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 150, - }, - }, - }, - }, - "stmt_len": 102, - "stmt_location": 97, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 220, - "relname": "table_name", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 211, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 211, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "name", - }, - }, - ], - "location": 239, - }, - }, - "location": 244, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 246, - "sval": { - "sval": "test", - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "num", - }, - }, - ], - "location": 257, - }, - }, - "location": 261, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 263, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_ILIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "last_name", - }, - }, - ], - "location": 271, - }, - }, - "location": 281, - "name": [ - { - "String": { - "sval": "~~*", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 287, - "sval": { - "sval": "%'test'%", - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 253, - }, - }, - }, - }, - "stmt_len": 99, - "stmt_location": 200, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 320, - "relname": "table_name", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 311, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 311, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "name", - }, - }, - ], - "location": 339, - }, - }, - "location": 344, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 346, - "sval": { - "sval": "test", - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "num", - }, - }, - ], - "location": 357, - }, - }, - "location": 361, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 363, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_ILIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "last_name", - }, - }, - ], - "location": 371, - }, - }, - "location": 381, - "name": [ - { - "String": { - "sval": "!~~*", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 391, - "sval": { - "sval": "%'test'%", - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 353, - }, - }, - }, - }, - "stmt_len": 103, - "stmt_location": 300, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 424, - "relname": "table_name", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 415, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 415, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_SIMILAR", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "last_name", - }, - }, - ], - "location": 443, - }, - }, - "location": 453, - "name": [ - { - "String": { - "sval": "~", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 464, - "sval": { - "sval": "%(b|d)%", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "similar_to_escape", - }, - }, - ], - "location": 453, - }, - }, - }, - }, - }, - }, - "stmt_len": 69, - "stmt_location": 404, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 494, - "relname": "table_name", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 485, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 485, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_SIMILAR", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "last_name", - }, - }, - ], - "location": 513, - }, - }, - "location": 523, - "name": [ - { - "String": { - "sval": "~", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 534, - "sval": { - "sval": "%(b|d)%", - }, - }, - }, - { - "A_Const": { - "location": 551, - "sval": { - "sval": "a", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "similar_to_escape", - }, - }, - ], - "location": 523, - }, - }, - }, - }, - }, - }, - "stmt_len": 80, - "stmt_location": 474, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 575, - "relname": "table_name", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 566, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 566, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_SIMILAR", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "last_name", - }, - }, - ], - "location": 594, - }, - }, - "location": 604, - "name": [ - { - "String": { - "sval": "!~", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 619, - "sval": { - "sval": "%(b|d)%", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "similar_to_escape", - }, - }, - ], - "location": 604, - }, - }, - }, - }, - }, - }, - "stmt_len": 73, - "stmt_location": 555, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 649, - "relname": "table_name", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 640, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 640, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_SIMILAR", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "last_name", - }, - }, - ], - "location": 668, - }, - }, - "location": 678, - "name": [ - { - "String": { - "sval": "!~", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 693, - "sval": { - "sval": "%(b|d)%", - }, - }, - }, - { - "A_Const": { - "location": 710, - "sval": { - "sval": "a", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "similar_to_escape", - }, - }, - ], - "location": 678, - }, - }, - }, - }, - }, - }, - "stmt_len": 84, - "stmt_location": 629, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 734, - "relname": "table_name", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 725, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 725, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "last_name", - }, - }, - ], - "location": 753, - }, - }, - "location": 763, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "first_name", - }, - }, - ], - "location": 765, - }, - }, - }, - }, - }, - }, - "stmt_len": 61, - "stmt_location": 714, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 796, - "relname": "table_name", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 787, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 787, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "last_name", - }, - }, - ], - "location": 815, - }, - }, - "location": 825, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "first_name", - }, - }, - ], - "location": 828, - }, - }, - }, - }, - }, - }, - "stmt_len": 62, - "stmt_location": 776, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 859, - "relname": "table_name", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 850, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 850, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP_ANY", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "last_name", - }, - }, - ], - "location": 878, - }, - }, - "location": 888, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "stuff", - }, - }, - ], - "location": 895, - }, - }, - }, - }, - }, - }, - "stmt_len": 62, - "stmt_location": 839, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 922, - "relname": "table_name", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 913, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 913, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP_ALL", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "last_name", - }, - }, - ], - "location": 941, - }, - }, - "location": 951, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "stuff", - }, - }, - ], - "location": 958, - }, - }, - }, - }, - }, - }, - "stmt_len": 62, - "stmt_location": 902, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "inh": true, - "location": 1010, - "relname": "film", - "relpersistence": "p", - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 1026, - "relname": "film_category", - "relpersistence": "p", - }, - }, - "usingClause": [ - { - "String": { - "sval": "film_id", - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 978, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "title", - }, - }, - ], - "location": 978, - }, - }, - }, - }, - { - "ResTarget": { - "location": 989, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "category_id", - }, - }, - ], - "location": 989, - }, - }, - }, - }, - ], - "whereClause": { - "SubLink": { - "location": 1085, - "operName": [ - { - "String": { - "sval": "=", - }, - }, - ], - "subLinkType": "ANY_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1156, - "relname": "category", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1119, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "category_id", - }, - }, - ], - "location": 1119, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "name", - }, - }, - ], - "location": 1191, - }, - }, - "location": 1196, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1198, - "sval": { - "sval": "Action", - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "name", - }, - }, - ], - "location": 1222, - }, - }, - "location": 1227, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1229, - "sval": { - "sval": "Drama", - }, - }, - }, - }, - }, - ], - "boolop": "OR_EXPR", - "location": 1219, - }, - }, - }, - }, - "testexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "category_id", - }, - }, - ], - "location": 1073, - }, - }, - }, - }, - }, - }, - "stmt_len": 277, - "stmt_location": 965, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "inh": true, - "location": 1288, - "relname": "film", - "relpersistence": "p", - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 1304, - "relname": "film_category", - "relpersistence": "p", - }, - }, - "usingClause": [ - { - "String": { - "sval": "film_id", - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1256, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "title", - }, - }, - ], - "location": 1256, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1267, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "category_id", - }, - }, - ], - "location": 1267, - }, - }, - }, - }, - ], - "whereClause": { - "SubLink": { - "location": 1363, - "subLinkType": "ANY_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1431, - "relname": "category", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1394, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "category_id", - }, - }, - ], - "location": 1394, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "name", - }, - }, - ], - "location": 1466, - }, - }, - "location": 1471, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1473, - "sval": { - "sval": "Action", - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "name", - }, - }, - ], - "location": 1497, - }, - }, - "location": 1502, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1504, - "sval": { - "sval": "Drama", - }, - }, - }, - }, - }, - ], - "boolop": "OR_EXPR", - "location": 1494, - }, - }, - }, - }, - "testexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "category_id", - }, - }, - ], - "location": 1351, - }, - }, - }, - }, - }, - }, - "stmt_len": 274, - "stmt_location": 1243, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "inh": true, - "location": 1567, - "relname": "film", - "relpersistence": "p", - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 1583, - "relname": "film_category", - "relpersistence": "p", - }, - }, - "usingClause": [ - { - "String": { - "sval": "film_id", - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1535, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "title", - }, - }, - ], - "location": 1535, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1546, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "category_id", - }, - }, - ], - "location": 1546, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 1642, - "subLinkType": "ANY_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1714, - "relname": "category", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1677, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "category_id", - }, - }, - ], - "location": 1677, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "name", - }, - }, - ], - "location": 1749, - }, - }, - "location": 1754, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1756, - "sval": { - "sval": "Action", - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "name", - }, - }, - ], - "location": 1780, - }, - }, - "location": 1785, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1787, - "sval": { - "sval": "Drama", - }, - }, - }, - }, - }, - ], - "boolop": "OR_EXPR", - "location": 1777, - }, - }, - }, - }, - "testexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "category_id", - }, - }, - ], - "location": 1630, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 1642, - }, - }, - }, - }, - "stmt_len": 282, - "stmt_location": 1518, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1821, - "relname": "film", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1810, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "title", - }, - }, - ], - "location": 1810, - }, - }, - }, - }, - ], - "whereClause": { - "SubLink": { - "location": 1839, - "operName": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "subLinkType": "ANY_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "inh": true, - "location": 1881, - "relname": "film", - "relpersistence": "p", - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 1901, - "relname": "film_category", - "relpersistence": "p", - }, - }, - "usingClause": [ - { - "String": { - "sval": "film_id", - }, - }, - ], - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "category_id", - }, - }, - ], - "location": 1944, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1858, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "length", - }, - }, - ], - "location": 1863, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 1858, - }, - }, - }, - }, - ], - }, - }, - "testexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "length", - }, - }, - ], - "location": 1832, - }, - }, - }, - }, - }, - }, - "stmt_len": 156, - "stmt_location": 1801, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1974, - "relname": "transaction", - "relpersistence": "p", - "schemaname": "transactions", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1967, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1967, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_BETWEEN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "transaction_date", - }, - }, - ], - "location": 2007, - }, - }, - "location": 2024, - "name": [ - { - "String": { - "sval": "BETWEEN", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2040, - "sval": { - "sval": "2020-01-01", - }, - }, - }, - { - "A_Const": { - "location": 2053, - "sval": { - "sval": "YYYY-MM-DD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_date", - }, - }, - ], - "location": 2032, - }, - }, - { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2079, - "sval": { - "sval": "2020-12-31", - }, - }, - }, - { - "A_Const": { - "location": 2092, - "sval": { - "sval": "YYYY-MM-DD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_date", - }, - }, - ], - "location": 2071, - }, - }, - ], - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "owner", - }, - }, - ], - "location": 2110, - }, - }, - "location": 2115, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 2116, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 2106, - }, - }, - }, - }, - "stmt_len": 159, - "stmt_location": 1958, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2134, - "relname": "transaction", - "relpersistence": "p", - "schemaname": "transactions", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2127, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2127, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_NOT_BETWEEN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "transaction_date", - }, - }, - ], - "location": 2167, - }, - }, - "location": 2184, - "name": [ - { - "String": { - "sval": "NOT BETWEEN", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2204, - "sval": { - "sval": "2020-01-01", - }, - }, - }, - { - "A_Const": { - "location": 2217, - "sval": { - "sval": "YYYY-MM-DD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_date", - }, - }, - ], - "location": 2196, - }, - }, - { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2243, - "sval": { - "sval": "2020-12-31", - }, - }, - }, - { - "A_Const": { - "location": 2256, - "sval": { - "sval": "YYYY-MM-DD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_date", - }, - }, - ], - "location": 2235, - }, - }, - ], - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "owner", - }, - }, - ], - "location": 2274, - }, - }, - "location": 2279, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 2280, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 2270, - }, - }, - }, - }, - "stmt_len": 163, - "stmt_location": 2118, - }, - }, -] -`; - -exports[`kitchen sink functions basic 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "someschema", - }, - }, - { - "String": { - "sval": "myfunc", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -UPDATE - mytable -SET - ref_id = new_ref_id -WHERE - id = some_id; -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 88, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 168, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "volatile", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 183, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 54, - "names": [ - { - "String": { - "sval": "uuid", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "some_id", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 69, - "names": [ - { - "String": { - "sval": "uuid", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "other_id", - }, - }, - ], - "replace": true, - "returnType": { - "location": 83, - "names": [ - { - "String": { - "sval": "void", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 191, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "someschema", - }, - }, - { - "String": { - "sval": "myfunc", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -UPDATE - mytable -SET - ref_id = new_ref_id -WHERE - id = some_id; -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 285, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 365, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "volatile", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 380, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 248, - "names": [ - { - "String": { - "sval": "uuid", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "some_id", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 263, - "names": [ - { - "String": { - "sval": "uuid", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "other_id", - }, - }, - ], - "replace": true, - "returnType": { - "location": 277, - "names": [ - { - "String": { - "sval": "obj", - }, - }, - { - "String": { - "sval": "geo", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 196, - "stmt_location": 192, - }, - }, -] -`; - -exports[`kitchen sink functions returns_table 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "someschema", - }, - }, - { - "String": { - "sval": "myfunc", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -SELECT * FROM - mytable -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 131, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 166, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "volatile", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 181, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 54, - "names": [ - { - "String": { - "sval": "obj", - }, - }, - { - "String": { - "sval": "geo_type", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "some_id", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 77, - "names": [ - { - "String": { - "sval": "obj", - }, - }, - { - "String": { - "sval": "geo_type", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "other_id", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 111, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_TABLE", - "name": "path", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 122, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_TABLE", - "name": "name", - }, - }, - ], - "replace": true, - "returnType": { - "location": 99, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "record", - }, - }, - ], - "setof": true, - "typemod": -1, - }, - }, - }, - "stmt_len": 189, - "stmt_location": 0, - }, - }, -] -`; - -exports[`kitchen sink functions returns_trigger 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "helpers", - }, - }, - { - "String": { - "sval": "some_method", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -BEGIN - IF tg_op = 'INSERT' THEN - NEW.some_prop = helpers.do_magic (NEW.data); - RETURN NEW; - END IF; -END; -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 70, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 204, - }, - }, - ], - "replace": true, - "returnType": { - "location": 62, - "names": [ - { - "String": { - "sval": "trigger", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 222, - "stmt_location": 0, - }, - }, -] -`; - -exports[`kitchen sink functions setof 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "someschema", - }, - }, - { - "String": { - "sval": "myfunc", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -UPDATE - mytable -SET - ref_id = new_ref_id -WHERE - id = some_id -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 97, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 176, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "volatile", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 191, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 54, - "names": [ - { - "String": { - "sval": "uuid", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "some_id", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 69, - "names": [ - { - "String": { - "sval": "uuid", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "other_id", - }, - }, - ], - "replace": true, - "returnType": { - "location": 89, - "names": [ - { - "String": { - "sval": "obj", - }, - }, - { - "String": { - "sval": "geo", - }, - }, - ], - "setof": true, - "typemod": -1, - }, - }, - }, - "stmt_len": 199, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "someschema", - }, - }, - { - "String": { - "sval": "myfunc", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -UPDATE - mytable -SET - ref_id = new_ref_id -WHERE - id = some_id -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 315, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 394, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "volatile", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 409, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 256, - "names": [ - { - "String": { - "sval": "obj", - }, - }, - { - "String": { - "sval": "geo_type", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "some_id", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 279, - "names": [ - { - "String": { - "sval": "obj", - }, - }, - { - "String": { - "sval": "geo_type", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "other_id", - }, - }, - ], - "replace": true, - "returnType": { - "location": 307, - "names": [ - { - "String": { - "sval": "obj", - }, - }, - { - "String": { - "sval": "geo", - }, - }, - ], - "setof": true, - "typemod": -1, - }, - }, - }, - "stmt_len": 217, - "stmt_location": 200, - }, - }, -] -`; - -exports[`kitchen sink grants 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 31, - "rolename": "administrator", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "String": { - "sval": "users", - }, - }, - ], - "objtype": "OBJECT_SCHEMA", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 44, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 93, - "rolename": "anonymous", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "ObjectWithArgs": { - "args_unspecified": true, - "objname": [ - { - "String": { - "sval": "auth", - }, - }, - { - "String": { - "sval": "authenticate", - }, - }, - ], - }, - }, - ], - "objtype": "OBJECT_FUNCTION", - "privileges": [ - { - "AccessPriv": { - "priv_name": "execute", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 57, - "stmt_location": 45, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 161, - "rolename": "administrator", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "RangeVar": { - "inh": true, - "location": 147, - "relname": "token", - "relpersistence": "p", - "schemaname": "auth", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "privileges": [ - { - "AccessPriv": { - "priv_name": "select", - }, - }, - { - "AccessPriv": { - "priv_name": "insert", - }, - }, - { - "AccessPriv": { - "priv_name": "update", - }, - }, - { - "AccessPriv": { - "priv_name": "delete", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 71, - "stmt_location": 103, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 211, - "rolename": "administrator", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "objects": [ - { - "String": { - "sval": "users", - }, - }, - ], - "objtype": "OBJECT_SCHEMA", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 49, - "stmt_location": 175, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 276, - "rolename": "anonymous", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "objects": [ - { - "ObjectWithArgs": { - "args_unspecified": true, - "objname": [ - { - "String": { - "sval": "auth", - }, - }, - { - "String": { - "sval": "authenticate", - }, - }, - ], - }, - }, - ], - "objtype": "OBJECT_FUNCTION", - "privileges": [ - { - "AccessPriv": { - "priv_name": "execute", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 60, - "stmt_location": 225, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 347, - "rolename": "administrator", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "objects": [ - { - "RangeVar": { - "inh": true, - "location": 331, - "relname": "token", - "relpersistence": "p", - "schemaname": "auth", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "privileges": [ - { - "AccessPriv": { - "priv_name": "select", - }, - }, - { - "AccessPriv": { - "priv_name": "insert", - }, - }, - { - "AccessPriv": { - "priv_name": "update", - }, - }, - { - "AccessPriv": { - "priv_name": "delete", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 74, - "stmt_location": 286, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 412, - "rolename": "somerole", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "RangeVar": { - "inh": true, - "location": 387, - "relname": "sometable2", - "relpersistence": "p", - "schemaname": "someschema", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "privileges": [ - { - "AccessPriv": { - "priv_name": "select", - }, - }, - { - "AccessPriv": { - "priv_name": "insert", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 59, - "stmt_location": 361, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 472, - "rolename": "somerole", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "RangeVar": { - "inh": true, - "location": 447, - "relname": "sometable2", - "relpersistence": "p", - "schemaname": "someschema", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "privileges": [ - { - "AccessPriv": { - "cols": [ - { - "String": { - "sval": "col2", - }, - }, - ], - "priv_name": "update", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 59, - "stmt_location": 421, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 535, - "rolename": "somerole", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "RangeVar": { - "inh": true, - "location": 510, - "relname": "sometable2", - "relpersistence": "p", - "schemaname": "someschema", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "privileges": [ - { - "AccessPriv": { - "cols": [ - { - "String": { - "sval": "col2", - }, - }, - { - "String": { - "sval": "col3", - }, - }, - ], - "priv_name": "update", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 62, - "stmt_location": 481, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 610, - "rolename": "somerole", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "RangeVar": { - "inh": true, - "location": 585, - "relname": "sometable2", - "relpersistence": "p", - "schemaname": "someschema", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "privileges": [ - { - "AccessPriv": { - "cols": [ - { - "String": { - "sval": "col2", - }, - }, - { - "String": { - "sval": "another-column", - }, - }, - ], - "priv_name": "update", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 74, - "stmt_location": 544, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 708, - "rolename": "somerole", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "RangeVar": { - "inh": true, - "location": 683, - "relname": "sometable2", - "relpersistence": "p", - "schemaname": "someschema", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "privileges": [ - { - "AccessPriv": { - "cols": [ - { - "String": { - "sval": "col2", - }, - }, - ], - "priv_name": "insert", - }, - }, - { - "AccessPriv": { - "cols": [ - { - "String": { - "sval": "col2", - }, - }, - { - "String": { - "sval": "another-column", - }, - }, - ], - "priv_name": "update", - }, - }, - { - "AccessPriv": { - "priv_name": "delete", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 97, - "stmt_location": 619, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 771, - "rolename": "somerole", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "RangeVar": { - "inh": true, - "location": 746, - "relname": "sometable2", - "relpersistence": "p", - "schemaname": "someschema", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "privileges": [ - { - "AccessPriv": { - "cols": [ - { - "String": { - "sval": "col2", - }, - }, - { - "String": { - "sval": "col3", - }, - }, - ], - "priv_name": "insert", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 62, - "stmt_location": 717, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 846, - "rolename": "somerole", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "RangeVar": { - "inh": true, - "location": 821, - "relname": "sometable2", - "relpersistence": "p", - "schemaname": "someschema", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "privileges": [ - { - "AccessPriv": { - "cols": [ - { - "String": { - "sval": "col2", - }, - }, - { - "String": { - "sval": "another-column", - }, - }, - ], - "priv_name": "insert", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 74, - "stmt_location": 780, - }, - }, -] -`; - -exports[`kitchen sink indexes 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "concurrent": true, - "idxname": "boom_merkle_tree_tag_created_reference_idx", - "indexParams": [ - { - "IndexElem": { - "name": "tag", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "created", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "reference", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 72, - "relname": "merkle_tree", - "relpersistence": "p", - "schemaname": "boom", - }, - }, - }, - "stmt_len": 114, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "databases_database_unique_name_idx", - "indexParams": [ - { - "IndexElem": { - "name": "tenant_id", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "expr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "name", - }, - }, - ], - "location": 228, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "database_name_hash", - }, - }, - ], - "location": 209, - }, - }, - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 175, - "relname": "database", - "relpersistence": "p", - "schemaname": "databases", - }, - "unique": true, - }, - }, - "stmt_len": 120, - "stmt_location": 115, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "boom_worktree_idx", - "indexParams": [ - { - "IndexElem": { - "name": "tag", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "reference", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "created", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "expr": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "path", - }, - }, - ], - "location": 336, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 330, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "md5", - }, - }, - ], - "location": 326, - }, - }, - { - "A_Const": { - "location": 344, - "sval": { - "sval": "hex", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "decode", - }, - }, - ], - "location": 319, - }, - }, - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 279, - "relname": "worktree", - "relpersistence": "p", - "schemaname": "boom", - }, - "unique": true, - }, - }, - "stmt_len": 115, - "stmt_location": 236, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "uniq_service_when_not_null", - "indexParams": [ - { - "IndexElem": { - "name": "uid", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "svc", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 406, - "relname": "table3", - "relpersistence": "p", - "schemaname": "schema2", - }, - "unique": true, - "whereClause": { - "NullTest": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "svc", - }, - }, - ], - "location": 440, - }, - }, - "location": 444, - "nulltesttype": "IS_NOT_NULL", - }, - }, - }, - }, - "stmt_len": 103, - "stmt_location": 352, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "new_unique_idx", - "indexIncludingParams": [ - { - "IndexElem": { - "name": "c", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "indexParams": [ - { - "IndexElem": { - "name": "a", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "b", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 496, - "relname": "new_example", - "relpersistence": "p", - }, - "unique": true, - }, - }, - "stmt_len": 69, - "stmt_location": 456, - }, - }, -] -`; - -exports[`kitchen sink insert 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 12, - "relname": "shoelace_data", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 36, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 39, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 42, - }, - }, - { - "A_Const": { - "location": 45, - "sval": { - "sval": "truth", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 54, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 89, - "name": "id", - }, - }, - { - "ResTarget": { - "location": 93, - "name": "col1", - }, - }, - { - "ResTarget": { - "location": 99, - "name": "col2", - }, - }, - { - "ResTarget": { - "location": 105, - "name": "val1", - }, - }, - { - "ResTarget": { - "location": 111, - "name": "bl2", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 74, - "relname": "shoelace_data", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 126, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 129, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 132, - }, - }, - { - "A_Const": { - "location": 135, - "sval": { - "sval": "truth", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 144, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 89, - "stmt_location": 60, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 164, - "relname": "shoelace_data", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 42, - "stmt_location": 150, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 212, - "name": "f2", - }, - }, - { - "ResTarget": { - "location": 215, - "name": "f3", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 207, - "relname": "foo", - "relpersistence": "p", - }, - "returningList": [ - { - "ResTarget": { - "location": 294, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 294, - }, - }, - }, - }, - { - "ResTarget": { - "location": 297, - "name": "sum", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 297, - }, - }, - "location": 299, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f3", - }, - }, - ], - "location": 300, - }, - }, - }, - }, - }, - }, - ], - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 229, - "sval": { - "sval": "test", - }, - }, - }, - { - "SetToDefault": { - "location": 237, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 248, - "sval": { - "sval": "More", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 11, - }, - "location": 256, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 268, - "sval": { - "sval": "more", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "upper", - }, - }, - ], - "location": 262, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 277, - }, - }, - "location": 278, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 9, - }, - "location": 279, - }, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 116, - "stmt_location": 193, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 335, - "name": "name", - }, - }, - { - "ResTarget": { - "location": 341, - "name": "email", - }, - }, - ], - "onConflictClause": { - "action": "ONCONFLICT_UPDATE", - "infer": { - "indexElems": [ - { - "IndexElem": { - "name": "id", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "project_id", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "location": 415, - }, - "location": 403, - "targetList": [ - { - "ResTarget": { - "location": 461, - "name": "email", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "excluded", - }, - }, - { - "String": { - "sval": "email", - }, - }, - ], - "location": 469, - }, - }, - "location": 484, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 487, - "sval": { - "sval": ";", - }, - }, - }, - }, - }, - "location": 491, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "customers", - }, - }, - { - "String": { - "sval": "email", - }, - }, - ], - "location": 494, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 519, - "name": "level", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "customers", - }, - }, - { - "String": { - "sval": "level", - }, - }, - ], - "location": 527, - }, - }, - "location": 543, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 545, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 556, - "name": "other", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "excluded", - }, - }, - { - "String": { - "sval": "other", - }, - }, - ], - "location": 564, - }, - }, - }, - }, - ], - }, - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 324, - "relname": "customers", - "relpersistence": "p", - }, - "returningList": [ - { - "ResTarget": { - "location": 593, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 593, - }, - }, - }, - }, - ], - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 360, - "sval": { - "sval": "Microsoft", - }, - }, - }, - { - "A_Const": { - "location": 375, - "sval": { - "sval": "hotline@microsoft.com", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 284, - "stmt_location": 310, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 622, - "name": "name", - }, - }, - { - "ResTarget": { - "location": 628, - "name": "code", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 610, - "relname": "modules", - "relpersistence": "p", - "schemaname": "v8", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 644, - "sval": { - "sval": "ajv", - }, - }, - }, - { - "A_Const": { - "location": 651, - "sval": { - "sval": " (function () { var module = { exports: { } }; -var exports = module.exports; - -/* plv8 bundle begins */ - -/* plv8 bundle ends */ -return module; - -})(); ", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 219, - "stmt_location": 595, - }, - }, -] -`; - -exports[`kitchen sink policies 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreatePolicyStmt": { - "cmd_name": "delete", - "permissive": true, - "policy_name": "delete_user", - "qual": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 80, - }, - }, - "location": 83, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 101, - "sval": { - "sval": "user.id", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "current_setting", - }, - }, - ], - "location": 85, - }, - }, - "location": 111, - "typeName": { - "location": 113, - "names": [ - { - "String": { - "sval": "uuid", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - "roles": [ - { - "RoleSpec": { - "location": 54, - "rolename": "authenticated", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "table": { - "inh": true, - "location": 29, - "relname": "user", - "relpersistence": "p", - "schemaname": "users", - }, - }, - }, - "stmt_len": 119, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreatePolicyStmt": { - "cmd_name": "delete", - "permissive": true, - "policy_name": "delete_user_no_to", - "qual": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 191, - }, - }, - "location": 194, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 212, - "sval": { - "sval": "user.id", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "current_setting", - }, - }, - ], - "location": 196, - }, - }, - "location": 222, - "typeName": { - "location": 224, - "names": [ - { - "String": { - "sval": "uuid", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - "roles": [ - { - "RoleSpec": { - "location": -1, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - ], - "table": { - "inh": true, - "location": 157, - "relname": "user", - "relpersistence": "p", - "schemaname": "users", - }, - }, - }, - "stmt_len": 110, - "stmt_location": 120, - }, - }, - { - "RawStmt": { - "stmt": { - "CreatePolicyStmt": { - "cmd_name": "delete", - "permissive": true, - "policy_name": "delete_user_no_to", - "roles": [ - { - "RoleSpec": { - "location": -1, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - ], - "table": { - "inh": true, - "location": 268, - "relname": "user", - "relpersistence": "p", - "schemaname": "users", - }, - "with_check": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 307, - }, - }, - "location": 310, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 328, - "sval": { - "sval": "user.id", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "current_setting", - }, - }, - ], - "location": 312, - }, - }, - "location": 338, - "typeName": { - "location": 340, - "names": [ - { - "String": { - "sval": "uuid", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 115, - "stmt_location": 231, - }, - }, - { - "RawStmt": { - "stmt": { - "CreatePolicyStmt": { - "cmd_name": "delete", - "permissive": true, - "policy_name": "delete_user", - "qual": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 427, - }, - }, - "location": 431, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 450, - "sval": { - "sval": "user.id", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "current_setting", - }, - }, - ], - "location": 434, - }, - }, - "location": 460, - "typeName": { - "location": 462, - "names": [ - { - "String": { - "sval": "uuid", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - "roles": [ - { - "RoleSpec": { - "location": 405, - "rolename": "authenticated", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "table": { - "inh": true, - "location": 378, - "relname": "user", - "relpersistence": "p", - "schemaname": "users", - }, - }, - }, - "stmt_len": 121, - "stmt_location": 347, - }, - }, - { - "RawStmt": { - "stmt": { - "CreatePolicyStmt": { - "cmd_name": "select", - "permissive": true, - "policy_name": "select_user", - "qual": { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 540, - }, - }, - "roles": [ - { - "RoleSpec": { - "location": 526, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - ], - "table": { - "inh": true, - "location": 499, - "relname": "user", - "relpersistence": "p", - "schemaname": "users", - }, - }, - }, - "stmt_len": 76, - "stmt_location": 469, - }, - }, - { - "RawStmt": { - "stmt": { - "CreatePolicyStmt": { - "cmd_name": "delete", - "permissive": true, - "policy_name": "delete_own", - "qual": { - "A_Expr": { - "kind": "AEXPR_OP_ANY", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "group_id", - }, - }, - ], - "location": 621, - }, - }, - "location": 630, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "otherschema", - }, - }, - { - "String": { - "sval": "my_policy_fn", - }, - }, - ], - "location": 637, - }, - }, - }, - }, - "roles": [ - { - "RoleSpec": { - "location": 607, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - ], - "table": { - "inh": true, - "location": 576, - "relname": "mytable", - "relpersistence": "p", - "schemaname": "myschema", - }, - }, - }, - "stmt_len": 119, - "stmt_location": 546, - }, - }, - { - "RawStmt": { - "stmt": { - "CreatePolicyStmt": { - "cmd_name": "all", - "permissive": true, - "policy_name": "insert_own", - "roles": [ - { - "RoleSpec": { - "location": 723, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - ], - "table": { - "inh": true, - "location": 695, - "relname": "mytable", - "relpersistence": "p", - "schemaname": "myschema", - }, - "with_check": { - "A_Expr": { - "kind": "AEXPR_OP_ANY", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "group_id", - }, - }, - ], - "location": 742, - }, - }, - "location": 751, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "otherschema", - }, - }, - { - "String": { - "sval": "my_policy_fn", - }, - }, - ], - "location": 758, - }, - }, - }, - }, - }, - }, - "stmt_len": 120, - "stmt_location": 666, - }, - }, - { - "RawStmt": { - "stmt": { - "CreatePolicyStmt": { - "cmd_name": "select", - "permissive": true, - "policy_name": "select_any", - "qual": { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 861, - }, - }, - "roles": [ - { - "RoleSpec": { - "location": 847, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - ], - "table": { - "inh": true, - "location": 816, - "relname": "mytable", - "relpersistence": "p", - "schemaname": "myschema", - }, - }, - }, - "stmt_len": 79, - "stmt_location": 787, - }, - }, - { - "RawStmt": { - "stmt": { - "CreatePolicyStmt": { - "cmd_name": "update", - "permissive": true, - "policy_name": "update_own", - "qual": { - "A_Expr": { - "kind": "AEXPR_OP_ANY", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "group_id", - }, - }, - ], - "location": 941, - }, - }, - "location": 950, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "otherschema", - }, - }, - { - "String": { - "sval": "my_policy_fn", - }, - }, - ], - "location": 957, - }, - }, - }, - }, - "roles": [ - { - "RoleSpec": { - "location": 927, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - ], - "table": { - "inh": true, - "location": 896, - "relname": "mytable", - "relpersistence": "p", - "schemaname": "myschema", - }, - }, - }, - "stmt_len": 118, - "stmt_location": 867, - }, - }, - { - "RawStmt": { - "stmt": { - "CreatePolicyStmt": { - "cmd_name": "delete", - "permissive": true, - "policy_name": "delete_pol_permissive", - "roles": [ - { - "RoleSpec": { - "location": -1, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - ], - "table": { - "inh": true, - "location": 1028, - "relname": "user", - "relpersistence": "p", - "schemaname": "users", - }, - "with_check": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 1081, - }, - }, - "location": 1084, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1102, - "sval": { - "sval": "user.id", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "current_setting", - }, - }, - ], - "location": 1086, - }, - }, - "location": 1112, - "typeName": { - "location": 1114, - "names": [ - { - "String": { - "sval": "uuid", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 134, - "stmt_location": 986, - }, - }, - { - "RawStmt": { - "stmt": { - "CreatePolicyStmt": { - "cmd_name": "delete", - "policy_name": "delete_pol_restrictive", - "roles": [ - { - "RoleSpec": { - "location": -1, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - ], - "table": { - "inh": true, - "location": 1163, - "relname": "user", - "relpersistence": "p", - "schemaname": "users", - }, - "with_check": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 1217, - }, - }, - "location": 1220, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1238, - "sval": { - "sval": "user.id", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "current_setting", - }, - }, - ], - "location": 1222, - }, - }, - "location": 1248, - "typeName": { - "location": 1250, - "names": [ - { - "String": { - "sval": "uuid", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 135, - "stmt_location": 1121, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterPolicyStmt": { - "policy_name": "authenticated_can_select_on_user_permissions_select", - "qual": { - "SubLink": { - "location": 1394, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "acl", - }, - "inh": true, - "location": 1420, - "relname": "mbr_acl", - "relpersistence": "p", - "schemaname": "acl_schema", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1410, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1410, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "acl", - }, - }, - { - "String": { - "sval": "actor_id", - }, - }, - ], - "location": 1452, - }, - }, - "location": 1465, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "jwt_public", - }, - }, - { - "String": { - "sval": "current_user_id", - }, - }, - ], - "location": 1467, - }, - }, - }, - }, - }, - }, - }, - }, - "roles": [ - { - "RoleSpec": { - "location": 1367, - "rolename": "authenticated", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "table": { - "inh": true, - "location": 1331, - "relname": "user_permissions", - "relpersistence": "p", - "schemaname": "perm_schema", - }, - }, - }, - "stmt_len": 245, - "stmt_location": 1257, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterPolicyStmt": { - "policy_name": "authenticated_can_select_on_user_permissions_select", - "roles": [ - { - "RoleSpec": { - "location": 1614, - "rolename": "authenticated", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "table": { - "inh": true, - "location": 1578, - "relname": "user_permissions", - "relpersistence": "p", - "schemaname": "perm_schema", - }, - "with_check": { - "SubLink": { - "location": 1646, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "acl", - }, - "inh": true, - "location": 1672, - "relname": "mbr_acl", - "relpersistence": "p", - "schemaname": "acl_schema", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1662, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1662, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "acl", - }, - }, - { - "String": { - "sval": "actor_id", - }, - }, - ], - "location": 1704, - }, - }, - "location": 1717, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "jwt_public", - }, - }, - { - "String": { - "sval": "current_user_id", - }, - }, - ], - "location": 1719, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 251, - "stmt_location": 1503, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterPolicyStmt": { - "policy_name": "authenticated_can_select_on_user_permissions_select", - "qual": { - "SubLink": { - "location": 1893, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "acl", - }, - "inh": true, - "location": 1919, - "relname": "mbr_acl", - "relpersistence": "p", - "schemaname": "acl_schema", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1909, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1909, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "acl", - }, - }, - { - "String": { - "sval": "actor_id", - }, - }, - ], - "location": 1951, - }, - }, - "location": 1964, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "jwt_public", - }, - }, - { - "String": { - "sval": "current_user_id", - }, - }, - ], - "location": 1966, - }, - }, - }, - }, - }, - }, - }, - }, - "roles": [ - { - "RoleSpec": { - "location": 1866, - "rolename": "authenticated", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "table": { - "inh": true, - "location": 1830, - "relname": "user_permissions", - "relpersistence": "p", - "schemaname": "perm_schema", - }, - "with_check": { - "SubLink": { - "location": 2017, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "acl", - }, - "inh": true, - "location": 2043, - "relname": "mbr_acl", - "relpersistence": "p", - "schemaname": "acl_schema", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2033, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2033, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "acl", - }, - }, - { - "String": { - "sval": "actor_id", - }, - }, - ], - "location": 2075, - }, - }, - "location": 2088, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "jwt_public", - }, - }, - { - "String": { - "sval": "current_user_id", - }, - }, - ], - "location": 2090, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 370, - "stmt_location": 1755, - }, - }, -] -`; - -exports[`kitchen sink roles create 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "role": "app_anonymous", - "stmt_type": "ROLESTMT_ROLE", - }, - }, - "stmt_len": 25, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "role": "app_authenticated", - "stmt_type": "ROLESTMT_ROLE", - }, - }, - "stmt_len": 30, - "stmt_location": 26, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "options": [ - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "canlogin", - "location": 79, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "xyz", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "password", - "location": 85, - }, - }, - ], - "role": "app_user", - "stmt_type": "ROLESTMT_ROLE", - }, - }, - "stmt_len": 42, - "stmt_location": 57, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "options": [ - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "canlogin", - "location": 126, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "jw8s0F4", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "password", - "location": 132, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "2005-01-01", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "validUntil", - "location": 151, - }, - }, - ], - "role": "miriam", - "stmt_type": "ROLESTMT_ROLE", - }, - }, - "stmt_len": 75, - "stmt_location": 100, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "options": [ - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "canlogin", - "location": 202, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "jw8s0F4", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "password", - "location": 208, - }, - }, - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "createdb", - "location": 227, - }, - }, - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "createrole", - "location": 236, - }, - }, - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "inherit", - "location": 247, - }, - }, - ], - "role": "admin1", - "stmt_type": "ROLESTMT_ROLE", - }, - }, - "stmt_len": 78, - "stmt_location": 176, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "options": [ - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": false, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "canlogin", - "location": 281, - }, - }, - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": false, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "createdb", - "location": 289, - }, - }, - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": false, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "createrole", - "location": 300, - }, - }, - ], - "role": "admin2", - "stmt_type": "ROLESTMT_ROLE", - }, - }, - "stmt_len": 57, - "stmt_location": 255, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "RoleSpec": { - "location": 344, - "rolename": "app_authenticated", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "adminmembers", - "location": 338, - }, - }, - ], - "role": "authy", - "stmt_type": "ROLESTMT_ROLE", - }, - }, - "stmt_len": 48, - "stmt_location": 313, - }, - }, -] -`; - -exports[`kitchen sink roles grants 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "GrantRoleStmt": { - "behavior": "DROP_RESTRICT", - "granted_roles": [ - { - "AccessPriv": { - "priv_name": "app_authenticated", - }, - }, - ], - "grantee_roles": [ - { - "RoleSpec": { - "location": 81, - "rolename": "app_user", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - }, - }, - "stmt_len": 89, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantRoleStmt": { - "behavior": "DROP_RESTRICT", - "granted_roles": [ - { - "AccessPriv": { - "priv_name": "app_authenticated", - }, - }, - { - "AccessPriv": { - "priv_name": "app_anonymous", - }, - }, - ], - "grantee_roles": [ - { - "RoleSpec": { - "location": 133, - "rolename": "app_user", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - }, - }, - "stmt_len": 51, - "stmt_location": 90, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantRoleStmt": { - "behavior": "DROP_RESTRICT", - "granted_roles": [ - { - "AccessPriv": { - "priv_name": "app_authenticated", - }, - }, - { - "AccessPriv": { - "priv_name": "app_anonymous", - }, - }, - ], - "grantee_roles": [ - { - "RoleSpec": { - "location": 186, - "rolename": "app_user", - "roletype": "ROLESPEC_CSTRING", - }, - }, - { - "RoleSpec": { - "location": 196, - "rolename": "super_app_user", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - }, - }, - "stmt_len": 68, - "stmt_location": 142, - }, - }, -] -`; - -exports[`kitchen sink rules create 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "RuleStmt": { - "event": "CMD_INSERT", - "instead": true, - "relation": { - "inh": true, - "location": 52, - "relname": "collections", - "relpersistence": "p", - "schemaname": "dbs", - }, - "rulename": "collections_ins_protect", - }, - }, - "stmt_len": 94, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "RuleStmt": { - "event": "CMD_UPDATE", - "instead": true, - "relation": { - "inh": true, - "location": 153, - "relname": "collections", - "relpersistence": "p", - "schemaname": "dbs", - }, - "rulename": "collections_upd_protect", - }, - }, - "stmt_len": 108, - "stmt_location": 95, - }, - }, - { - "RawStmt": { - "stmt": { - "RuleStmt": { - "event": "CMD_DELETE", - "instead": true, - "relation": { - "inh": true, - "location": 258, - "relname": "collections", - "relpersistence": "p", - "schemaname": "dbs", - }, - "rulename": "collections_del_protect", - }, - }, - "stmt_len": 96, - "stmt_location": 204, - }, - }, - { - "RawStmt": { - "stmt": { - "RuleStmt": { - "actions": [ - { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 379, - "relname": "shoelace_data", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 404, - "name": "sl_name", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "new", - }, - }, - { - "String": { - "sval": "sl_name", - }, - }, - ], - "location": 414, - }, - }, - }, - }, - { - "ResTarget": { - "location": 438, - "name": "sl_avail", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "new", - }, - }, - { - "String": { - "sval": "sl_avail", - }, - }, - ], - "location": 449, - }, - }, - }, - }, - { - "ResTarget": { - "location": 474, - "name": "sl_color", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "new", - }, - }, - { - "String": { - "sval": "sl_color", - }, - }, - ], - "location": 485, - }, - }, - }, - }, - { - "ResTarget": { - "location": 510, - "name": "sl_len", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "new", - }, - }, - { - "String": { - "sval": "sl_len", - }, - }, - ], - "location": 519, - }, - }, - }, - }, - { - "ResTarget": { - "location": 542, - "name": "sl_unit", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "new", - }, - }, - { - "String": { - "sval": "sl_unit", - }, - }, - ], - "location": 552, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "sl_name", - }, - }, - ], - "location": 575, - }, - }, - "location": 583, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "old", - }, - }, - { - "String": { - "sval": "sl_name", - }, - }, - ], - "location": 585, - }, - }, - }, - }, - }, - }, - ], - "event": "CMD_UPDATE", - "instead": true, - "relation": { - "inh": true, - "location": 344, - "relname": "shoelace", - "relpersistence": "p", - }, - "rulename": "shoelace_upd", - }, - }, - "stmt_len": 295, - "stmt_location": 301, - }, - }, - { - "RawStmt": { - "stmt": { - "RuleStmt": { - "actions": [ - { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 680, - "relname": "shoelace_data", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "sl_name", - }, - }, - ], - "location": 705, - }, - }, - "location": 713, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "old", - }, - }, - { - "String": { - "sval": "sl_name", - }, - }, - ], - "location": 715, - }, - }, - }, - }, - }, - }, - ], - "event": "CMD_DELETE", - "instead": true, - "relation": { - "inh": true, - "location": 640, - "relname": "shoelace", - "relpersistence": "p", - }, - "rulename": "shoelace_del", - }, - }, - "stmt_len": 129, - "stmt_location": 597, - }, - }, - { - "RawStmt": { - "stmt": { - "RuleStmt": { - "actions": [ - { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 813, - "relname": "t1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 806, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 806, - }, - }, - }, - }, - ], - }, - }, - ], - "event": "CMD_SELECT", - "instead": true, - "relation": { - "inh": true, - "location": 772, - "relname": "t2", - "relpersistence": "p", - }, - "rulename": "_RETURN", - }, - }, - "stmt_len": 88, - "stmt_location": 727, - }, - }, - { - "RawStmt": { - "stmt": { - "RuleStmt": { - "actions": [ - { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 931, - "relname": "shoelace_log", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "new", - }, - }, - { - "String": { - "sval": "sl_name", - }, - }, - ], - "location": 989, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "new", - }, - }, - { - "String": { - "sval": "sl_avail", - }, - }, - ], - "location": 1038, - }, - }, - { - "SQLValueFunction": { - "location": 1088, - "op": "SVFOP_CURRENT_USER", - "typmod": -1, - }, - }, - { - "SQLValueFunction": { - "location": 1138, - "op": "SVFOP_CURRENT_TIMESTAMP", - "typmod": -1, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "event": "CMD_UPDATE", - "relation": { - "inh": true, - "location": 859, - "relname": "shoelace_data", - "relpersistence": "p", - }, - "rulename": "log_shoelace", - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "new", - }, - }, - { - "String": { - "sval": "sl_avail", - }, - }, - ], - "location": 883, - }, - }, - "location": 896, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "old", - }, - }, - { - "String": { - "sval": "sl_avail", - }, - }, - ], - "location": 899, - }, - }, - }, - }, - }, - }, - "stmt_len": 373, - "stmt_location": 816, - }, - }, - { - "RawStmt": { - "stmt": { - "RuleStmt": { - "actions": [ - { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1273, - "relname": "shoelace_data", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "new", - }, - }, - { - "String": { - "sval": "sl_name", - }, - }, - ], - "location": 1307, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "new", - }, - }, - { - "String": { - "sval": "sl_avail", - }, - }, - ], - "location": 1331, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "new", - }, - }, - { - "String": { - "sval": "sl_color", - }, - }, - ], - "location": 1356, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "new", - }, - }, - { - "String": { - "sval": "sl_len", - }, - }, - ], - "location": 1381, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "new", - }, - }, - { - "String": { - "sval": "sl_unit", - }, - }, - ], - "location": 1404, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "event": "CMD_INSERT", - "instead": true, - "relation": { - "inh": true, - "location": 1233, - "relname": "shoelace", - "relpersistence": "p", - }, - "rulename": "shoelace_ins", - }, - }, - "stmt_len": 231, - "stmt_location": 1190, - }, - }, -] -`; - -exports[`kitchen sink select 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 389, - "relname": "orders", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "region", - }, - }, - ], - "location": 454, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "product", - }, - }, - ], - "location": 462, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 285, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "region", - }, - }, - ], - "location": 285, - }, - }, - }, - }, - { - "ResTarget": { - "location": 300, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "product", - }, - }, - ], - "location": 300, - }, - }, - }, - }, - { - "ResTarget": { - "location": 316, - "name": "product_units", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "quantity", - }, - }, - ], - "location": 320, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 316, - }, - }, - }, - }, - { - "ResTarget": { - "location": 355, - "name": "product_sales", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "amount", - }, - }, - ], - "location": 359, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 355, - }, - }, - }, - }, - ], - "whereClause": { - "SubLink": { - "location": 409, - "subLinkType": "ANY_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 432, - "relname": "top_regions", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 420, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "region", - }, - }, - ], - "location": 420, - }, - }, - }, - }, - ], - }, - }, - "testexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "region", - }, - }, - ], - "location": 402, - }, - }, - }, - }, - "withClause": { - "ctes": [ - { - "CommonTableExpr": { - "ctematerialized": "CTEMaterializeDefault", - "ctename": "regional_sales", - "ctequery": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 88, - "relname": "orders", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "region", - }, - }, - ], - "location": 112, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 40, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "region", - }, - }, - ], - "location": 40, - }, - }, - }, - }, - { - "ResTarget": { - "location": 48, - "name": "total_sales", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "amount", - }, - }, - ], - "location": 52, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 48, - }, - }, - }, - }, - ], - }, - }, - "location": 5, - }, - }, - { - "CommonTableExpr": { - "ctematerialized": "CTEMaterializeDefault", - "ctename": "top_regions", - "ctequery": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 179, - "relname": "regional_sales", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 159, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "region", - }, - }, - ], - "location": 159, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "total_sales", - }, - }, - ], - "location": 208, - }, - }, - "location": 220, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "SubLink": { - "location": 222, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 255, - "relname": "regional_sales", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 230, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "total_sales", - }, - }, - ], - "location": 234, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 230, - }, - }, - "location": 246, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 247, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - }, - }, - "location": 127, - }, - }, - ], - }, - }, - }, - "stmt_len": 469, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeFunction": { - "alias": { - "aliasname": "s", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 759, - "sval": { - "sval": "abcde", - }, - }, - }, - { - "A_Const": { - "location": 768, - "sval": { - "sval": "", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "regexp_split_to_table", - }, - }, - ], - "location": 737, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "s", - }, - }, - ], - "location": 802, - }, - }, - "location": 804, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "character", - }, - }, - ], - "location": 806, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "c", - }, - "inh": true, - "location": 785, - "relname": "chars2bits", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 708, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "index", - }, - }, - ], - "location": 719, - }, - }, - { - "A_Const": { - "location": 728, - "sval": { - "sval": "", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "string_agg", - }, - }, - ], - "location": 708, - }, - }, - }, - }, - ], - "withClause": { - "ctes": [ - { - "CommonTableExpr": { - "ctematerialized": "CTEMaterializeDefault", - "ctename": "chars2bits", - "ctequery": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "t", - "colnames": [ - { - "String": { - "sval": "character", - }, - }, - { - "String": { - "sval": "index", - }, - }, - ], - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 582, - "sval": { - "sval": "{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,2,3,4,5,6,7}", - }, - }, - }, - "location": 649, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 651, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "unnest", - }, - }, - ], - "location": 575, - }, - }, - {}, - ], - }, - }, - ], - "ordinality": true, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 512, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "character", - }, - }, - ], - "location": 512, - }, - }, - }, - }, - { - "ResTarget": { - "location": 531, - "name": "index", - "val": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "index", - }, - }, - ], - "location": 532, - }, - }, - "location": 538, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 540, - }, - }, - }, - }, - "location": 542, - "typeName": { - "location": 544, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 548, - }, - }, - ], - }, - }, - }, - "location": 550, - "typeName": { - "location": 552, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "location": 477, - }, - }, - ], - "location": 472, - }, - }, - }, - "stmt_len": 348, - "stmt_location": 470, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "t", - "colnames": [ - { - "String": { - "sval": "character", - }, - }, - { - "String": { - "sval": "index", - }, - }, - ], - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 906, - "sval": { - "sval": "{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,2,3,4,5,6,7}", - }, - }, - }, - "location": 973, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 975, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "unnest", - }, - }, - ], - "location": 899, - }, - }, - {}, - ], - }, - }, - ], - "ordinality": true, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 836, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "character", - }, - }, - ], - "location": 836, - }, - }, - }, - }, - { - "ResTarget": { - "location": 855, - "name": "index", - "val": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "index", - }, - }, - ], - "location": 856, - }, - }, - "location": 862, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 864, - }, - }, - }, - }, - "location": 866, - "typeName": { - "location": 868, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 872, - }, - }, - ], - }, - }, - }, - "location": 874, - "typeName": { - "location": 876, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 203, - "stmt_location": 819, - }, - }, -] -`; - -exports[`kitchen sink sequences 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateSeqStmt": { - "sequence": { - "inh": true, - "location": 16, - "relname": "bar", - "relpersistence": "p", - "schemaname": "foo", - }, - }, - }, - "stmt_len": 23, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateSeqStmt": { - "options": [ - { - "DefElem": { - "arg": { - "Integer": { - "ival": 5, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "increment", - "location": 53, - }, - }, - { - "DefElem": { - "arg": { - "Integer": { - "ival": 100, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "start", - "location": 65, - }, - }, - ], - "sequence": { - "inh": true, - "location": 42, - "relname": "mysequence", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 50, - "stmt_location": 24, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateSeqStmt": { - "options": [ - { - "DefElem": { - "arg": { - "Integer": { - "ival": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "increment", - "location": 99, - }, - }, - { - "DefElem": { - "arg": { - "Integer": { - "ival": 1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "minvalue", - "location": 112, - }, - }, - { - "DefElem": { - "arg": { - "Integer": { - "ival": 3, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "maxvalue", - "location": 124, - }, - }, - { - "DefElem": { - "arg": { - "Integer": { - "ival": 3, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "start", - "location": 135, - }, - }, - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "cycle", - "location": 143, - }, - }, - ], - "sequence": { - "inh": true, - "location": 93, - "relname": "three", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 73, - "stmt_location": 75, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateSeqStmt": { - "options": [ - { - "DefElem": { - "arg": { - "Integer": { - "ival": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "increment", - "location": 174, - }, - }, - { - "DefElem": { - "arg": { - "Integer": { - "ival": 1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "minvalue", - "location": 187, - }, - }, - { - "DefElem": { - "arg": { - "Integer": { - "ival": 3, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "maxvalue", - "location": 199, - }, - }, - { - "DefElem": { - "arg": { - "Integer": { - "ival": 3, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "start", - "location": 210, - }, - }, - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": false, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "cycle", - "location": 218, - }, - }, - ], - "sequence": { - "inh": true, - "location": 167, - "relname": "three3", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 77, - "stmt_location": 149, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateSeqStmt": { - "options": [ - { - "DefElem": { - "arg": { - "Integer": { - "ival": 1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "start", - "location": 266, - }, - }, - { - "DefElem": { - "arg": { - "Integer": { - "ival": 1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "increment", - "location": 279, - }, - }, - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "minvalue", - "location": 294, - }, - }, - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "maxvalue", - "location": 306, - }, - }, - { - "DefElem": { - "arg": { - "Integer": { - "ival": 1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "cache", - "location": 318, - }, - }, - ], - "sequence": { - "inh": true, - "location": 245, - "relname": "jobs_id_seq", - "relpersistence": "p", - "schemaname": "app_jobs", - }, - }, - }, - "stmt_len": 98, - "stmt_location": 227, - }, - }, -] -`; - -exports[`kitchen sink sequences 2`] = ` -[ - { - "RawStmt": { - "stmt": { - "AlterSeqStmt": { - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "public", - }, - }, - { - "String": { - "sval": "User", - }, - }, - { - "String": { - "sval": "id", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "owned_by", - "location": 36, - }, - }, - ], - "sequence": { - "inh": true, - "location": 15, - "relname": "User_id_seq", - "relpersistence": "p", - "schemaname": "public", - }, - }, - }, - "stmt_len": 61, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterSeqStmt": { - "options": [ - { - "DefElem": { - "arg": { - "Integer": { - "ival": 105, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "restart", - "location": 85, - }, - }, - ], - "sequence": { - "inh": true, - "location": 78, - "relname": "serial", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 39, - "stmt_location": 62, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterSeqStmt": { - "options": [ - { - "DefElem": { - "arg": { - "Integer": { - "ival": 22, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "restart", - "location": 134, - }, - }, - ], - "sequence": { - "inh": true, - "location": 118, - "relname": "payments_id_seq", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 47, - "stmt_location": 102, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterSeqStmt": { - "options": [ - { - "DefElem": { - "arg": { - "Integer": { - "ival": 22, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "start", - "location": 182, - }, - }, - ], - "sequence": { - "inh": true, - "location": 166, - "relname": "payments_id_seq", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 45, - "stmt_location": 150, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterSeqStmt": { - "options": [ - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "restart", - "location": 228, - }, - }, - ], - "sequence": { - "inh": true, - "location": 212, - "relname": "payments_id_seq", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 39, - "stmt_location": 196, - }, - }, -] -`; - -exports[`kitchen sink set 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_SET_CURRENT", - "name": "var", - }, - }, - "stmt_len": 20, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "client_min_messages", - }, - }, - "stmt_len": 27, - "stmt_location": 21, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 69, - "sval": { - "sval": "alt_nsp1", - }, - }, - }, - { - "A_Const": { - "location": 79, - "sval": { - "sval": "public", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "search_path", - }, - }, - "stmt_len": 36, - "stmt_location": 49, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 114, - "sval": { - "sval": "regtest_alter_user1", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "session_authorization", - }, - }, - "stmt_len": 47, - "stmt_location": 86, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 156, - "sval": { - "sval": "UNICODE", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "client_encoding", - }, - }, - "stmt_len": 31, - "stmt_location": 134, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 191, - "sval": { - "sval": "UNICODE", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "client_encoding", - }, - }, - "stmt_len": 34, - "stmt_location": 166, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 227, - "sval": { - "sval": "notice", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "client_min_messages", - }, - }, - "stmt_len": 32, - "stmt_location": 201, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "session_authorization", - }, - }, - "stmt_len": 29, - "stmt_location": 234, - }, - }, -] -`; - -exports[`kitchen sink tables check 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 13, - "relname": "products", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "product_no", - "is_local": true, - "location": 28, - "typeName": { - "location": 39, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "name", - "is_local": true, - "location": 52, - "typeName": { - "location": 57, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "price", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 81, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "price", - }, - }, - ], - "location": 88, - }, - }, - "location": 94, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 96, - }, - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 67, - "typeName": { - "location": 73, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 100, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 115, - "relname": "products", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "product_no", - "is_local": true, - "location": 130, - "typeName": { - "location": 141, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "name", - "is_local": true, - "location": 154, - "typeName": { - "location": 159, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "price", - "constraints": [ - { - "Constraint": { - "conname": "positive_price", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 183, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "price", - }, - }, - ], - "location": 216, - }, - }, - "location": 222, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 224, - }, - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 169, - "typeName": { - "location": 175, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 127, - "stmt_location": 101, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 243, - "relname": "products", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "product_no", - "is_local": true, - "location": 258, - "typeName": { - "location": 269, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "name", - "is_local": true, - "location": 282, - "typeName": { - "location": 287, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "price", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 311, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "price", - }, - }, - ], - "location": 318, - }, - }, - "location": 324, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 326, - }, - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 297, - "typeName": { - "location": 303, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "discounted_price", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 359, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "discounted_price", - }, - }, - ], - "location": 366, - }, - }, - "location": 383, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 385, - }, - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 334, - "typeName": { - "location": 351, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 393, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "price", - }, - }, - ], - "location": 400, - }, - }, - "location": 406, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "discounted_price", - }, - }, - ], - "location": 408, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 198, - "stmt_location": 229, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 442, - "relname": "products", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "product_no", - "is_local": true, - "location": 457, - "typeName": { - "location": 468, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "name", - "is_local": true, - "location": 481, - "typeName": { - "location": 486, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "price", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 510, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "price", - }, - }, - ], - "location": 517, - }, - }, - "location": 523, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 525, - }, - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 496, - "typeName": { - "location": 502, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "discounted_price", - "constraints": [ - { - "Constraint": { - "conname": "check_price", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 558, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "discounted_price", - }, - }, - ], - "location": 588, - }, - }, - "location": 605, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 607, - }, - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 533, - "typeName": { - "location": 550, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 615, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "price", - }, - }, - ], - "location": 622, - }, - }, - "location": 628, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "discounted_price", - }, - }, - ], - "location": 630, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 221, - "stmt_location": 428, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 665, - "relname": "boomin", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "d", - "is_local": true, - "location": 673, - "typeName": { - "location": 675, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_CHECK", - "is_no_inherit": true, - "location": 681, - "raw_expr": { - "A_Const": { - "boolval": {}, - "location": 688, - }, - }, - "skip_validation": true, - }, - }, - ], - }, - }, - "stmt_len": 66, - "stmt_location": 650, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 731, - "relname": "boomin", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "d", - "is_local": true, - "location": 739, - "typeName": { - "location": 741, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_CHECK", - "is_no_inherit": true, - "location": 747, - "raw_expr": { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 754, - }, - }, - "skip_validation": true, - }, - }, - ], - }, - }, - "stmt_len": 64, - "stmt_location": 717, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "contype": "CONSTR_CHECK", - "location": 813, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_BETWEEN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - ], - "location": 820, - }, - }, - "location": 822, - "name": [ - { - "String": { - "sval": "BETWEEN", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 830, - "sval": { - "sval": "2010-01-01", - }, - }, - }, - "location": 842, - "typeName": { - "location": 844, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 853, - "sval": { - "sval": "2010-12-31", - }, - }, - }, - "location": 865, - "typeName": { - "location": 867, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - }, - }, - "skip_validation": true, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 796, - "relname": "checkitout", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 100, - "stmt_location": 782, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "contype": "CONSTR_CHECK", - "location": 915, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_NOT_BETWEEN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - ], - "location": 922, - }, - }, - "location": 924, - "name": [ - { - "String": { - "sval": "NOT BETWEEN", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 936, - "sval": { - "sval": "2010-01-01", - }, - }, - }, - "location": 948, - "typeName": { - "location": 950, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 959, - "sval": { - "sval": "2010-12-31", - }, - }, - }, - "location": 971, - "typeName": { - "location": 973, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - }, - }, - "skip_validation": true, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 897, - "relname": "checkitout2", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 105, - "stmt_location": 883, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 1033, - "relname": "atacc1", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 1041, - "relname": "atacc2", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1004, - "relname": "atacc3", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "test3", - "is_local": true, - "location": 1012, - "typeName": { - "location": 1018, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 989, - }, - }, -] -`; - -exports[`kitchen sink tables custom 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "fk_myschema_role_actor_id", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "actor_id", - }, - }, - ], - "fk_del_action": "c", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 34, - "pk_attrs": [ - { - "String": { - "sval": "id", - }, - }, - ], - "pktable": { - "inh": true, - "location": 113, - "relname": "actor", - "relpersistence": "p", - "schemaname": "actors", - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 12, - "relname": "role", - "relpersistence": "p", - "schemaname": "myschema", - }, - }, - }, - "stmt_len": 152, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 168, - "relname": "circles", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "c", - "is_local": true, - "location": 182, - "typeName": { - "location": 184, - "names": [ - { - "String": { - "sval": "circle", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "access_method": "gist", - "contype": "CONSTR_EXCLUSION", - "exclusions": [ - { - "List": { - "items": [ - { - "IndexElem": { - "name": "c", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "&&", - }, - }, - ], - }, - }, - ], - }, - }, - ], - "location": 196, - }, - }, - ], - }, - }, - "stmt_len": 75, - "stmt_location": 153, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 244, - "relname": "actor_info", - "relpersistence": "p", - "schemaname": "actors_private", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "actor_id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 290, - }, - }, - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "c", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 302, - "pk_attrs": [ - { - "String": { - "sval": "id", - }, - }, - ], - "pktable": { - "inh": true, - "location": 313, - "relname": "actor", - "relpersistence": "p", - "schemaname": "actors", - }, - }, - }, - ], - "is_local": true, - "location": 276, - "typeName": { - "location": 285, - "names": [ - { - "String": { - "sval": "uuid", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "email", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 365, - }, - }, - { - "Constraint": { - "contype": "CONSTR_UNIQUE", - "location": 374, - }, - }, - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 381, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "email", - }, - }, - ], - "location": 388, - }, - }, - "location": 394, - "name": [ - { - "String": { - "sval": "~*", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 397, - "sval": { - "sval": "^.+@.+\\..+$", - }, - }, - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 354, - "typeName": { - "location": 360, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "password_hash", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 436, - }, - }, - ], - "is_local": true, - "location": 417, - "typeName": { - "location": 431, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 217, - "stmt_location": 229, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 485, - "relname": "foo", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 491, - "typeName": { - "location": 493, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 498, - "typeName": { - "location": 500, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 507, - }, - }, - ], - }, - }, - "stmt_len": 79, - "stmt_location": 447, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 585, - "relname": "t_full", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 594, - "typeName": { - "location": 596, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 601, - "typeName": { - "location": 603, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "f", - "fk_upd_action": "a", - "initially_valid": true, - "location": 610, - "pktable": { - "inh": true, - "location": 639, - "relname": "foo", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 128, - "stmt_location": 527, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 671, - "relname": "t_simple", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 682, - "typeName": { - "location": 684, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 689, - "typeName": { - "location": 691, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 698, - "pktable": { - "inh": true, - "location": 727, - "relname": "foo", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 89, - "stmt_location": 656, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 762, - "relname": "people", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "color_id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_IDENTITY", - "generated_when": "a", - "location": 787, - "options": [ - { - "DefElem": { - "arg": { - "Integer": { - "ival": 17, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "start", - "location": 817, - }, - }, - { - "DefElem": { - "arg": { - "Integer": { - "ival": 21, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "increment", - "location": 831, - }, - }, - ], - }, - }, - ], - "is_local": true, - "location": 774, - "typeName": { - "location": 783, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "height_cm", - "is_local": true, - "location": 853, - "typeName": { - "location": 863, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "height_in", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_GENERATED", - "generated_when": "a", - "location": 894, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "height_cm", - }, - }, - ], - "location": 915, - }, - }, - "location": 925, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "fval": { - "fval": "2.54", - }, - "location": 927, - }, - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 876, - "typeName": { - "location": 886, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "gen_def_identity", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_IDENTITY", - "generated_when": "d", - "location": 970, - }, - }, - ], - "is_local": true, - "location": 945, - "typeName": { - "location": 962, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "gen_alw_identity", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_IDENTITY", - "generated_when": "a", - "location": 1033, - }, - }, - ], - "is_local": true, - "location": 1008, - "typeName": { - "location": 1025, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 317, - "stmt_location": 746, - }, - }, -] -`; - -exports[`kitchen sink tables defaults 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 13, - "relname": "customer_product_categories", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 57, - }, - }, - ], - "is_local": true, - "location": 47, - "typeName": { - "location": 50, - "names": [ - { - "String": { - "sval": "serial", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "name", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 82, - }, - }, - ], - "is_local": true, - "location": 72, - "typeName": { - "location": 77, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "effective", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 114, - "raw_expr": { - "A_Const": { - "location": 122, - "sval": { - "sval": "[-infinity,infinity]", - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 94, - "typeName": { - "location": 104, - "names": [ - { - "String": { - "sval": "tstzrange", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": undefined, - "stmt_location": 0, - }, - }, -] -`; - -exports[`kitchen sink tables exclude 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 13, - "relname": "circles", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "c", - "is_local": true, - "location": 27, - "typeName": { - "location": 29, - "names": [ - { - "String": { - "sval": "circle", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "access_method": "gist", - "contype": "CONSTR_EXCLUSION", - "exclusions": [ - { - "List": { - "items": [ - { - "IndexElem": { - "name": "c", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "&&", - }, - }, - ], - }, - }, - ], - }, - }, - ], - "location": 41, - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 88, - "relname": "customer_product_categories", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 134, - }, - }, - ], - "is_local": true, - "location": 122, - "typeName": { - "location": 127, - "names": [ - { - "String": { - "sval": "serial", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "name", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 161, - }, - }, - ], - "is_local": true, - "location": 149, - "typeName": { - "location": 156, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "effective", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 195, - "raw_expr": { - "A_Const": { - "location": 203, - "sval": { - "sval": "[-infinity,infinity]", - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 173, - "typeName": { - "location": 185, - "names": [ - { - "String": { - "sval": "tstzrange", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "access_method": "gist", - "contype": "CONSTR_EXCLUSION", - "exclusions": [ - { - "List": { - "items": [ - { - "IndexElem": { - "expr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "name", - }, - }, - ], - "location": 255, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 249, - }, - }, - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "=", - }, - }, - ], - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "IndexElem": { - "name": "effective", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "&&", - }, - }, - ], - }, - }, - ], - }, - }, - ], - "location": 229, - }, - }, - ], - }, - }, - "stmt_len": undefined, - "stmt_location": 74, - }, - }, -] -`; - -exports[`kitchen sink tables foreign 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 13, - "relname": "orders", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "order_id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 43, - }, - }, - ], - "is_local": true, - "location": 26, - "typeName": { - "location": 35, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "product_no", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 79, - "pk_attrs": [ - { - "String": { - "sval": "product_no", - }, - }, - ], - "pktable": { - "inh": true, - "location": 90, - "relname": "products", - "relpersistence": "p", - }, - }, - }, - ], - "is_local": true, - "location": 60, - "typeName": { - "location": 71, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "quantity", - "is_local": true, - "location": 117, - "typeName": { - "location": 126, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 135, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 150, - "relname": "orders", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "order_id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 180, - }, - }, - ], - "is_local": true, - "location": 163, - "typeName": { - "location": 172, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "product_no", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 216, - "pktable": { - "inh": true, - "location": 227, - "relname": "products", - "relpersistence": "p", - }, - }, - }, - ], - "is_local": true, - "location": 197, - "typeName": { - "location": 208, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "quantity", - "is_local": true, - "location": 241, - "typeName": { - "location": 250, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 123, - "stmt_location": 136, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 274, - "relname": "t1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 291, - }, - }, - ], - "is_local": true, - "location": 281, - "typeName": { - "location": 283, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 306, - "typeName": { - "location": 308, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c", - "is_local": true, - "location": 319, - "typeName": { - "location": 321, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 332, - "pk_attrs": [ - { - "String": { - "sval": "c1", - }, - }, - { - "String": { - "sval": "c2", - }, - }, - ], - "pktable": { - "inh": true, - "location": 362, - "relname": "other_table", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 124, - "stmt_location": 260, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 399, - "relname": "products", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "product_no", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 433, - }, - }, - ], - "is_local": true, - "location": 414, - "typeName": { - "location": 425, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "name", - "is_local": true, - "location": 450, - "typeName": { - "location": 455, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "price", - "is_local": true, - "location": 465, - "typeName": { - "location": 471, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 95, - "stmt_location": 385, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 495, - "relname": "orders", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "order_id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 525, - }, - }, - ], - "is_local": true, - "location": 508, - "typeName": { - "location": 517, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "shipping_address", - "is_local": true, - "location": 542, - "typeName": { - "location": 559, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 84, - "stmt_location": 481, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 580, - "relname": "order_items", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "product_no", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 617, - "pktable": { - "inh": true, - "location": 628, - "relname": "products", - "relpersistence": "p", - }, - }, - }, - ], - "is_local": true, - "location": 598, - "typeName": { - "location": 609, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "order_id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 659, - "pktable": { - "inh": true, - "location": 670, - "relname": "orders", - "relpersistence": "p", - }, - }, - }, - ], - "is_local": true, - "location": 642, - "typeName": { - "location": 651, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "quantity", - "is_local": true, - "location": 682, - "typeName": { - "location": 691, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "product_no", - }, - }, - { - "String": { - "sval": "order_id", - }, - }, - ], - "location": 704, - }, - }, - ], - }, - }, - "stmt_len": 174, - "stmt_location": 566, - }, - }, -] -`; - -exports[`kitchen sink tables match 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "users", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 111, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 126, - "relname": "users", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 147, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 156, - }, - }, - ], - "is_local": true, - "location": 136, - "typeName": { - "location": 139, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 112, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "post_type", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 40, - "stmt_location": 170, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 225, - "relname": "post_type", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 250, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 259, - }, - }, - ], - "is_local": true, - "location": 239, - "typeName": { - "location": 242, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 211, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "assembly_seat", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 44, - "stmt_location": 273, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 332, - "relname": "assembly_seat", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 361, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 370, - }, - }, - ], - "is_local": true, - "location": 350, - "typeName": { - "location": 353, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 65, - "stmt_location": 318, - }, - }, -] -`; - -exports[`kitchen sink tables nulls 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 13, - "relname": "products", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "product_no", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 47, - }, - }, - ], - "is_local": true, - "location": 28, - "typeName": { - "location": 39, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "name", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 71, - }, - }, - ], - "is_local": true, - "location": 61, - "typeName": { - "location": 66, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "price", - "is_local": true, - "location": 85, - "typeName": { - "location": 91, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 100, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 115, - "relname": "products", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "product_no", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NULL", - "location": 149, - }, - }, - ], - "is_local": true, - "location": 130, - "typeName": { - "location": 141, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "name", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NULL", - "location": 169, - }, - }, - ], - "is_local": true, - "location": 159, - "typeName": { - "location": 164, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "price", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NULL", - "location": 193, - }, - }, - ], - "is_local": true, - "location": 179, - "typeName": { - "location": 185, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 98, - "stmt_location": 101, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 214, - "relname": "products", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "product_no", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 248, - }, - }, - ], - "is_local": true, - "location": 229, - "typeName": { - "location": 240, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "name", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 272, - }, - }, - ], - "is_local": true, - "location": 262, - "typeName": { - "location": 267, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "price", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 300, - }, - }, - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 309, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "price", - }, - }, - ], - "location": 316, - }, - }, - "location": 322, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 324, - }, - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 286, - "typeName": { - "location": 292, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 128, - "stmt_location": 200, - }, - }, -] -`; - -exports[`kitchen sink tables on_delete 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 13, - "relname": "order_items", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "product_no", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "r", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 50, - "pktable": { - "inh": true, - "location": 61, - "relname": "products", - "relpersistence": "p", - }, - }, - }, - ], - "is_local": true, - "location": 31, - "typeName": { - "location": 42, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "order_id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "c", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 111, - "pktable": { - "inh": true, - "location": 122, - "relname": "orders", - "relpersistence": "p", - }, - }, - }, - ], - "is_local": true, - "location": 94, - "typeName": { - "location": 103, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "quantity", - "is_local": true, - "location": 152, - "typeName": { - "location": 161, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "product_no", - }, - }, - { - "String": { - "sval": "order_id", - }, - }, - ], - "location": 174, - }, - }, - ], - }, - }, - "stmt_len": 210, - "stmt_location": 0, - }, - }, -] -`; - -exports[`kitchen sink tables on_update 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 13, - "relname": "order_items", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "product_no", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "r", - "initially_valid": true, - "location": 50, - "pktable": { - "inh": true, - "location": 61, - "relname": "products", - "relpersistence": "p", - }, - }, - }, - ], - "is_local": true, - "location": 31, - "typeName": { - "location": 42, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "order_id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "c", - "initially_valid": true, - "location": 111, - "pktable": { - "inh": true, - "location": 122, - "relname": "orders", - "relpersistence": "p", - }, - }, - }, - ], - "is_local": true, - "location": 94, - "typeName": { - "location": 103, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "quantity", - "is_local": true, - "location": 152, - "typeName": { - "location": 161, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "product_no", - }, - }, - { - "String": { - "sval": "order_id", - }, - }, - ], - "location": 174, - }, - }, - ], - }, - }, - "stmt_len": 210, - "stmt_location": 0, - }, - }, -] -`; - -exports[`kitchen sink tables temp 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "users", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 35, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 55, - "relname": "users", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 76, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 85, - }, - }, - ], - "is_local": true, - "location": 65, - "typeName": { - "location": 68, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 36, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "post_type", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 40, - "stmt_location": 99, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 159, - "relname": "post_type", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 184, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 193, - }, - }, - ], - "is_local": true, - "location": 173, - "typeName": { - "location": 176, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 66, - "stmt_location": 140, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "assembly_seat", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 44, - "stmt_location": 207, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 271, - "relname": "assembly_seat", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 300, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 309, - }, - }, - ], - "is_local": true, - "location": 289, - "typeName": { - "location": 292, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 70, - "stmt_location": 252, - }, - }, -] -`; - -exports[`kitchen sink tables unique 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 13, - "relname": "products", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "product_no", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_UNIQUE", - "location": 47, - }, - }, - ], - "is_local": true, - "location": 28, - "typeName": { - "location": 39, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "name", - "is_local": true, - "location": 59, - "typeName": { - "location": 64, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "price", - "is_local": true, - "location": 74, - "typeName": { - "location": 80, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 89, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 104, - "relname": "products", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "product_no", - "is_local": true, - "location": 119, - "typeName": { - "location": 130, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "name", - "is_local": true, - "location": 143, - "typeName": { - "location": 148, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "price", - "is_local": true, - "location": 158, - "typeName": { - "location": 164, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_UNIQUE", - "keys": [ - { - "String": { - "sval": "product_no", - }, - }, - ], - "location": 177, - }, - }, - ], - }, - }, - "stmt_len": 108, - "stmt_location": 90, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 213, - "relname": "example", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 227, - "typeName": { - "location": 229, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 242, - "typeName": { - "location": 244, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c", - "is_local": true, - "location": 257, - "typeName": { - "location": 259, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_UNIQUE", - "keys": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - "location": 272, - }, - }, - ], - }, - }, - "stmt_len": 88, - "stmt_location": 199, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 302, - "relname": "products", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "product_no", - "constraints": [ - { - "Constraint": { - "conname": "must_be_different", - "contype": "CONSTR_UNIQUE", - "location": 336, - }, - }, - ], - "is_local": true, - "location": 317, - "typeName": { - "location": 328, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "name", - "is_local": true, - "location": 377, - "typeName": { - "location": 382, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "price", - "is_local": true, - "location": 392, - "typeName": { - "location": 398, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 119, - "stmt_location": 288, - }, - }, -] -`; - -exports[`kitchen sink transactions begin_commit 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 5, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 20, - "relname": "products", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "product_no", - "is_local": true, - "location": 35, - "typeName": { - "location": 46, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "name", - "is_local": true, - "location": 59, - "typeName": { - "location": 64, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 64, - "stmt_location": 6, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 7, - "stmt_location": 71, - }, - }, -] -`; - -exports[`kitchen sink triggers create 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateTrigStmt": { - "events": 20, - "funcname": [ - { - "String": { - "sval": "app_jobs", - }, - }, - { - "String": { - "sval": "update_timestamps", - }, - }, - ], - "relation": { - "inh": true, - "location": 58, - "relname": "jobs", - "relpersistence": "p", - "schemaname": "app_jobs", - }, - "row": true, - "timing": 2, - "trigname": "_100_timestamps", - }, - }, - "stmt_len": 131, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateTrigStmt": { - "events": 4, - "funcname": [ - { - "String": { - "sval": "app_jobs", - }, - }, - { - "String": { - "sval": "jobs__increase_job_queue_count", - }, - }, - ], - "relation": { - "inh": true, - "location": 195, - "relname": "jobs", - "relpersistence": "p", - "schemaname": "app_jobs", - }, - "row": true, - "trigname": "_500_increase_job_queue_count", - }, - }, - "stmt_len": 149, - "stmt_location": 132, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateTrigStmt": { - "events": 8, - "funcname": [ - { - "String": { - "sval": "app_jobs", - }, - }, - { - "String": { - "sval": "jobs__decrease_job_queue_count", - }, - }, - ], - "relation": { - "inh": true, - "location": 346, - "relname": "jobs", - "relpersistence": "p", - "schemaname": "app_jobs", - }, - "row": true, - "timing": 2, - "trigname": "_500_decrease_job_queue_count", - }, - }, - "stmt_len": 150, - "stmt_location": 282, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateTrigStmt": { - "args": [ - { - "String": { - "sval": "jobs:insert", - }, - }, - ], - "events": 4, - "funcname": [ - { - "String": { - "sval": "app_jobs", - }, - }, - { - "String": { - "sval": "do_notify", - }, - }, - ], - "relation": { - "inh": true, - "location": 485, - "relname": "jobs", - "relpersistence": "p", - "schemaname": "app_jobs", - }, - "trigname": "_900_notify_worker", - }, - }, - "stmt_len": 136, - "stmt_location": 433, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateTrigStmt": { - "columns": [ - { - "String": { - "sval": "balance", - }, - }, - ], - "events": 16, - "funcname": [ - { - "String": { - "sval": "check_account_update", - }, - }, - ], - "relation": { - "inh": true, - "location": 632, - "relname": "accounts", - "relpersistence": "p", - }, - "row": true, - "timing": 2, - "trigname": "check_update", - }, - }, - "stmt_len": 132, - "stmt_location": 570, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateTrigStmt": { - "events": 16, - "funcname": [ - { - "String": { - "sval": "check_account_update", - }, - }, - ], - "relation": { - "inh": true, - "location": 754, - "relname": "accounts", - "relpersistence": "p", - }, - "row": true, - "timing": 2, - "trigname": "check_update", - }, - }, - "stmt_len": 121, - "stmt_location": 703, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateTrigStmt": { - "events": 16, - "funcname": [ - { - "String": { - "sval": "check_account_update", - }, - }, - ], - "relation": { - "inh": true, - "location": 876, - "relname": "accounts", - "relpersistence": "p", - }, - "row": true, - "timing": 2, - "trigname": "check_update", - "whenClause": { - "A_Expr": { - "kind": "AEXPR_DISTINCT", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "old", - }, - }, - { - "String": { - "sval": "balance", - }, - }, - ], - "location": 912, - }, - }, - "location": 924, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "new", - }, - }, - { - "String": { - "sval": "balance", - }, - }, - ], - "location": 941, - }, - }, - }, - }, - }, - }, - "stmt_len": 173, - "stmt_location": 825, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateTrigStmt": { - "events": 16, - "funcname": [ - { - "String": { - "sval": "log_account_update", - }, - }, - ], - "relation": { - "inh": true, - "location": 1047, - "relname": "accounts", - "relpersistence": "p", - }, - "row": true, - "trigname": "log_update", - "whenClause": { - "A_Expr": { - "kind": "AEXPR_DISTINCT", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "old", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1083, - }, - }, - "location": 1089, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "new", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1106, - }, - }, - }, - }, - }, - }, - "stmt_len": 156, - "stmt_location": 999, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateTrigStmt": { - "events": 4, - "funcname": [ - { - "String": { - "sval": "view_insert_row", - }, - }, - ], - "relation": { - "inh": true, - "location": 1210, - "relname": "my_view", - "relpersistence": "p", - }, - "row": true, - "timing": 64, - "trigname": "view_insert", - }, - }, - "stmt_len": 118, - "stmt_location": 1156, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateTrigStmt": { - "events": 4, - "funcname": [ - { - "String": { - "sval": "check_transfer_balances_to_zero", - }, - }, - ], - "relation": { - "inh": true, - "location": 1328, - "relname": "transfer", - "relpersistence": "p", - }, - "transitionRels": [ - { - "TriggerTransition": { - "isNew": true, - "isTable": true, - "name": "inserted", - }, - }, - ], - "trigname": "transfer_insert", - }, - }, - "stmt_len": 178, - "stmt_location": 1275, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateTrigStmt": { - "events": 16, - "funcname": [ - { - "String": { - "sval": "check_matching_pairs", - }, - }, - ], - "relation": { - "inh": true, - "location": 1511, - "relname": "paired_items", - "relpersistence": "p", - }, - "row": true, - "transitionRels": [ - { - "TriggerTransition": { - "isNew": true, - "isTable": true, - "name": "newtab", - }, - }, - { - "TriggerTransition": { - "isTable": true, - "name": "oldtab", - }, - }, - ], - "trigname": "paired_items_update", - }, - }, - "stmt_len": 187, - "stmt_location": 1454, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateTrigStmt": { - "events": 16, - "funcname": [ - { - "String": { - "sval": "check_matching_pairs", - }, - }, - ], - "relation": { - "inh": true, - "location": 1699, - "relname": "paired_items", - "relpersistence": "p", - }, - "row": true, - "transitionRels": [ - { - "TriggerTransition": { - "isTable": true, - "name": "oldtab", - }, - }, - { - "TriggerTransition": { - "isNew": true, - "isTable": true, - "name": "newtab", - }, - }, - ], - "trigname": "paired_items_update", - }, - }, - "stmt_len": 187, - "stmt_location": 1642, - }, - }, -] -`; - -exports[`kitchen sink triggers custom 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "String": { - "sval": "fb", - }, - }, - ], - "removeType": "OBJECT_SCHEMA", - }, - }, - "stmt_len": 24, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "missing_ok": true, - "objects": [ - { - "String": { - "sval": "fb", - }, - }, - ], - "removeType": "OBJECT_SCHEMA", - }, - }, - "stmt_len": 33, - "stmt_location": 25, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateSchemaStmt": { - "schemaname": "fb", - }, - }, - "stmt_len": 17, - "stmt_location": 59, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 97, - "sval": { - "sval": "fb", - }, - }, - }, - { - "A_Const": { - "location": 100, - "sval": { - "sval": "$user", - }, - }, - }, - { - "A_Const": { - "location": 108, - "sval": { - "sval": "public", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "search_path", - }, - }, - "stmt_len": 37, - "stmt_location": 77, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateExtensionStmt": { - "extname": "uuid-ossp", - }, - }, - "stmt_len": 29, - "stmt_location": 115, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 160, - "relname": "user", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 190, - }, - }, - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 202, - "raw_expr": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "uuid_generate_v4", - }, - }, - ], - "location": 210, - }, - }, - }, - }, - ], - "is_local": true, - "location": 171, - "typeName": { - "location": 185, - "names": [ - { - "String": { - "sval": "uuid", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "created", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 258, - }, - }, - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 267, - "raw_expr": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "now", - }, - }, - ], - "location": 275, - }, - }, - }, - }, - ], - "is_local": true, - "location": 232, - "typeName": { - "location": 246, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "full_name", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 303, - }, - }, - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 312, - "raw_expr": { - "A_Const": { - "location": 320, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 284, - "typeName": { - "location": 298, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 179, - "stmt_location": 145, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 341, - "relname": "post", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 369, - }, - }, - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 381, - "raw_expr": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "uuid_generate_v4", - }, - }, - ], - "location": 389, - }, - }, - }, - }, - ], - "is_local": true, - "location": 350, - "typeName": { - "location": 364, - "names": [ - { - "String": { - "sval": "uuid", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "created", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 437, - }, - }, - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 446, - "raw_expr": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "now", - }, - }, - ], - "location": 454, - }, - }, - }, - }, - ], - "is_local": true, - "location": 411, - "typeName": { - "location": 425, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "content", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 482, - }, - }, - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 491, - "raw_expr": { - "A_Const": { - "location": 499, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 463, - "typeName": { - "location": 477, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "user", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 524, - "pktable": { - "inh": true, - "location": 535, - "relname": "user", - "relpersistence": "p", - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 542, - }, - }, - ], - "is_local": true, - "location": 505, - "typeName": { - "location": 519, - "names": [ - { - "String": { - "sval": "uuid", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 227, - "stmt_location": 325, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 569, - "relname": "friendship", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "first", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 603, - "pktable": { - "inh": true, - "location": 614, - "relname": "user", - "relpersistence": "p", - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 621, - }, - }, - ], - "is_local": true, - "location": 584, - "typeName": { - "location": 598, - "names": [ - { - "String": { - "sval": "uuid", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "second", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 652, - "pktable": { - "inh": true, - "location": 663, - "relname": "user", - "relpersistence": "p", - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 670, - }, - }, - ], - "is_local": true, - "location": 633, - "typeName": { - "location": 647, - "names": [ - { - "String": { - "sval": "uuid", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "created", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 708, - }, - }, - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 717, - "raw_expr": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "now", - }, - }, - ], - "location": 725, - }, - }, - }, - }, - ], - "is_local": true, - "location": 682, - "typeName": { - "location": 696, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_UNIQUE", - "keys": [ - { - "String": { - "sval": "first", - }, - }, - { - "String": { - "sval": "second", - }, - }, - ], - "location": 734, - }, - }, - ], - }, - }, - "stmt_len": 205, - "stmt_location": 553, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "check_friendship_symmetry", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -DECLARE - link friendship; -BEGIN - SELECT * INTO link FROM friendship - WHERE second = NEW.first AND first = NEW.second; - IF NOT FOUND THEN - RAISE EXCEPTION 'Friendships must be INSERTed as pairs.'; - END IF; - RETURN NEW; -END -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 821, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 1062, - }, - }, - { - "DefElem": { - "arg": { - "VariableSetStmt": { - "kind": "VAR_SET_CURRENT", - "name": "search_path", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "set", - "location": 1082, - }, - }, - ], - "returnType": { - "location": 813, - "names": [ - { - "String": { - "sval": "trigger", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 351, - "stmt_location": 759, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateTrigStmt": { - "deferrable": true, - "events": 4, - "funcname": [ - { - "String": { - "sval": "check_friendship_symmetry", - }, - }, - ], - "initdeferred": true, - "isconstraint": true, - "relation": { - "inh": true, - "location": 1175, - "relname": "friendship", - "relpersistence": "p", - }, - "row": true, - "trigname": "friendship_symmetry", - }, - }, - "stmt_len": 163, - "stmt_location": 1111, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateTrigStmt": { - "columns": [ - { - "String": { - "sval": "queue_name", - }, - }, - ], - "events": 16, - "funcname": [ - { - "String": { - "sval": "app", - }, - }, - { - "String": { - "sval": "jobs__increase_job_queue_count", - }, - }, - ], - "relation": { - "inh": true, - "location": 1359, - "relname": "jobs", - "relpersistence": "p", - "schemaname": "app", - }, - "row": true, - "trigname": "_500_increase_job_queue_count_update", - }, - }, - "stmt_len": 160, - "stmt_location": 1275, - }, - }, -] -`; - -exports[`kitchen sink types 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CompositeTypeStmt": { - "coldeflist": [ - { - "ColumnDef": { - "colname": "id", - "is_local": true, - "location": 41, - "typeName": { - "location": 44, - "names": [ - { - "String": { - "sval": "uuid", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "verify_code", - "is_local": true, - "location": 52, - "typeName": { - "location": 64, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "verify_code_expires_on", - "is_local": true, - "location": 72, - "typeName": { - "location": 95, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "actor_id", - "is_local": true, - "location": 110, - "typeName": { - "location": 119, - "names": [ - { - "String": { - "sval": "uuid", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "typevar": { - "location": 12, - "relname": "mycustomtype", - "relpersistence": "p", - "schemaname": "myschema", - }, - }, - }, - "stmt_len": 125, - "stmt_location": 0, - }, - }, -] -`; - -exports[`kitchen sink update 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 7, - "relname": "update_test", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 23, - "name": "c", - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 34, - "sval": { - "sval": "x", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10000, - }, - "location": 39, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "repeat", - }, - }, - ], - "location": 27, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 52, - }, - }, - "location": 54, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 56, - "sval": { - "sval": "car", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 61, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 71, - "relname": "update_test", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 88, - "name": "b", - "val": { - "MultiAssignRef": { - "colno": 1, - "ncolumns": 2, - "source": { - "SubLink": { - "location": 95, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 114, - "relname": "update_test", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 103, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 103, - }, - }, - "location": 104, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 105, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 107, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 107, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 132, - }, - }, - "location": 134, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1000, - }, - "location": 136, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 90, - "name": "a", - "val": { - "MultiAssignRef": { - "colno": 2, - "ncolumns": 2, - "source": { - "SubLink": { - "location": 95, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 114, - "relname": "update_test", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 103, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 103, - }, - }, - "location": 104, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 105, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 107, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 107, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 132, - }, - }, - "location": 134, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1000, - }, - "location": 136, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 150, - }, - }, - "location": 152, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 11, - }, - "location": 154, - }, - }, - }, - }, - }, - }, - "stmt_len": 94, - "stmt_location": 62, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 166, - "relname": "something", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 181, - "name": "b", - "val": { - "MultiAssignRef": { - "colno": 1, - "ncolumns": 2, - "source": { - "RowExpr": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 189, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 191, - }, - }, - ], - "location": 188, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 183, - "name": "a", - "val": { - "MultiAssignRef": { - "colno": 2, - "ncolumns": 2, - "source": { - "RowExpr": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 189, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 191, - }, - }, - ], - "location": 188, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 202, - }, - }, - "location": 204, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 11, - }, - "location": 206, - }, - }, - }, - }, - }, - }, - "stmt_len": 51, - "stmt_location": 157, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 219, - "relname": "update_test", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 236, - "name": "c", - "val": { - "MultiAssignRef": { - "colno": 1, - "ncolumns": 3, - "source": { - "RowExpr": { - "args": [ - { - "A_Const": { - "location": 246, - "sval": { - "sval": "bugle", - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 255, - }, - }, - "location": 256, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 11, - }, - "location": 257, - }, - }, - }, - }, - { - "SetToDefault": { - "location": 261, - }, - }, - ], - "location": 245, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 238, - "name": "b", - "val": { - "MultiAssignRef": { - "colno": 2, - "ncolumns": 3, - "source": { - "RowExpr": { - "args": [ - { - "A_Const": { - "location": 246, - "sval": { - "sval": "bugle", - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 255, - }, - }, - "location": 256, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 11, - }, - "location": 257, - }, - }, - }, - }, - { - "SetToDefault": { - "location": 261, - }, - }, - ], - "location": 245, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 240, - "name": "a", - "val": { - "MultiAssignRef": { - "colno": 3, - "ncolumns": 3, - "source": { - "RowExpr": { - "args": [ - { - "A_Const": { - "location": 246, - "sval": { - "sval": "bugle", - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 255, - }, - }, - "location": 256, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 11, - }, - "location": 257, - }, - }, - }, - }, - { - "SetToDefault": { - "location": 261, - }, - }, - ], - "location": 245, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 276, - }, - }, - "location": 278, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 280, - "sval": { - "sval": "foo", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 76, - "stmt_location": 209, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 295, - "relname": "shoelace_data", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 320, - "name": "sl_name", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "new", - }, - }, - { - "String": { - "sval": "sl_name", - }, - }, - ], - "location": 330, - }, - }, - }, - }, - { - "ResTarget": { - "location": 354, - "name": "sl_avail", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "new", - }, - }, - { - "String": { - "sval": "sl_avail", - }, - }, - ], - "location": 365, - }, - }, - }, - }, - { - "ResTarget": { - "location": 390, - "name": "sl_color", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "new", - }, - }, - { - "String": { - "sval": "sl_color", - }, - }, - ], - "location": 401, - }, - }, - }, - }, - { - "ResTarget": { - "location": 426, - "name": "sl_len", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "new", - }, - }, - { - "String": { - "sval": "sl_len", - }, - }, - ], - "location": 435, - }, - }, - }, - }, - { - "ResTarget": { - "location": 458, - "name": "sl_unit", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "new", - }, - }, - { - "String": { - "sval": "sl_unit", - }, - }, - ], - "location": 468, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "sl_name", - }, - }, - ], - "location": 491, - }, - }, - "location": 499, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "old", - }, - }, - { - "String": { - "sval": "sl_name", - }, - }, - ], - "location": 501, - }, - }, - }, - }, - }, - }, - "stmt_len": 226, - "stmt_location": 286, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 522, - "relname": "something", - "relpersistence": "p", - }, - "returningList": [ - { - "ResTarget": { - "location": 552, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 552, - }, - }, - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 536, - "name": "a", - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 540, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 513, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 563, - "relname": "something", - "relpersistence": "p", - }, - "returningList": [ - { - "ResTarget": { - "location": 593, - "name": "b", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 593, - }, - }, - }, - }, - { - "ResTarget": { - "location": 601, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 601, - }, - }, - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 577, - "name": "a", - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 581, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 48, - "stmt_location": 554, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 637, - "relname": "b", - "relpersistence": "p", - }, - }, - ], - "relation": { - "inh": true, - "location": 612, - "relname": "something", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 626, - "name": "a", - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 630, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 603, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "inh": true, - "location": 682, - "relname": "c", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 695, - }, - }, - "location": 697, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - { - "String": { - "sval": "y", - }, - }, - ], - "location": 699, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 689, - "relname": "d", - "relpersistence": "p", - }, - }, - }, - }, - { - "RangeSubselect": { - "alias": { - "aliasname": "f", - }, - "subquery": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 720, - "relname": "e", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 713, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 713, - }, - }, - }, - }, - ], - }, - }, - }, - }, - ], - "relation": { - "inh": true, - "location": 648, - "relname": "something", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 662, - "name": "a", - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 666, - }, - }, - }, - }, - { - "ResTarget": { - "location": 669, - "name": "b", - "val": { - "A_Const": { - "location": 673, - "sval": { - "sval": "b", - }, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "something", - }, - }, - { - "String": { - "sval": "x", - }, - }, - ], - "location": 731, - }, - }, - "location": 743, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - { - "String": { - "sval": "x", - }, - }, - ], - "location": 745, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "MinMaxExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "something", - }, - }, - { - "String": { - "sval": "y", - }, - }, - ], - "location": 759, - }, - }, - { - "A_Const": { - "ival": {}, - "location": 772, - }, - }, - ], - "location": 753, - "op": "IS_LEAST", - }, - }, - "location": 775, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "z", - }, - }, - ], - "location": 777, - }, - }, - "location": 781, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 783, - }, - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 749, - }, - }, - }, - }, - "stmt_len": 145, - "stmt_location": 639, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 794, - "relname": "something", - "relpersistence": "p", - }, - "returningList": [ - { - "ResTarget": { - "location": 824, - "name": "b#1", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 824, - }, - }, - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 808, - "name": "a", - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 812, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 49, - "stmt_location": 785, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 869, - "relname": "b", - "relpersistence": "p", - }, - }, - ], - "relation": { - "inh": true, - "location": 844, - "relname": "something", - "relpersistence": "p", - }, - "returningList": [ - { - "ResTarget": { - "location": 889, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 889, - }, - }, - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 858, - "name": "a", - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 862, - }, - }, - }, - }, - ], - "whereClause": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 877, - }, - }, - }, - }, - "stmt_len": 55, - "stmt_location": 835, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 900, - "relname": "foo", - "relpersistence": "p", - }, - "returningList": [ - { - "ResTarget": { - "location": 947, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "foo", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 947, - }, - }, - }, - }, - { - "ResTarget": { - "location": 954, - "name": "sum13", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 954, - }, - }, - "location": 956, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f3", - }, - }, - ], - "location": 957, - }, - }, - }, - }, - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 908, - "name": "f2", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f2", - }, - }, - ], - "location": 919, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 913, - }, - }, - }, - }, - { - "ResTarget": { - "location": 924, - "name": "f3", - "val": { - "SetToDefault": { - "location": 929, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 77, - "stmt_location": 891, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/abstime.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 314, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 327, - "typeName": { - "location": 330, - "names": [ - { - "String": { - "sval": "abstime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 338, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 7, - "stmt_location": 339, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 373, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 360, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 393, - "sval": { - "sval": "now", - }, - }, - }, - "location": -1, - "typeName": { - "location": 385, - "names": [ - { - "String": { - "sval": "abstime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 52, - "stmt_location": 347, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 426, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 413, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 446, - "sval": { - "sval": "now", - }, - }, - }, - "location": -1, - "typeName": { - "location": 438, - "names": [ - { - "String": { - "sval": "abstime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 52, - "stmt_location": 400, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 482, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 461, - "name": "two", - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 461, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 500, - }, - }, - "location": 503, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 505, - "sval": { - "sval": "now", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 58, - "stmt_location": 453, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 4, - "stmt_location": 512, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 531, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 25, - "stmt_location": 517, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 570, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 557, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 582, - "sval": { - "sval": "Jan 14, 1973 03:14:21", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 63, - "stmt_location": 543, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 633, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 620, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 653, - "sval": { - "sval": "Mon May 1 00:30:30 1995", - }, - }, - }, - "location": -1, - "typeName": { - "location": 645, - "names": [ - { - "String": { - "sval": "abstime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 73, - "stmt_location": 607, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 707, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 694, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 727, - "sval": { - "sval": "epoch", - }, - }, - }, - "location": -1, - "typeName": { - "location": 719, - "names": [ - { - "String": { - "sval": "abstime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 681, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 762, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 749, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 782, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 774, - "names": [ - { - "String": { - "sval": "abstime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 57, - "stmt_location": 736, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 820, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 807, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 840, - "sval": { - "sval": "-infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 832, - "names": [ - { - "String": { - "sval": "abstime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 58, - "stmt_location": 794, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 879, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 866, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 899, - "sval": { - "sval": "May 10, 1947 23:59:12", - }, - }, - }, - "location": -1, - "typeName": { - "location": 891, - "names": [ - { - "String": { - "sval": "abstime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 70, - "stmt_location": 853, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1012, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 999, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1024, - "sval": { - "sval": "Feb 35, 1946 10:00:00", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 124, - "stmt_location": 924, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1075, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1062, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1087, - "sval": { - "sval": "Feb 28, 1984 25:08:10", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 62, - "stmt_location": 1049, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1209, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1196, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1221, - "sval": { - "sval": "bad date format", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 127, - "stmt_location": 1112, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1266, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1253, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1278, - "sval": { - "sval": "Jun 10, 1843", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 53, - "stmt_location": 1240, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1350, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1330, - "name": "eight", - "val": { - "A_Const": { - "location": 1330, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1343, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1343, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 67, - "stmt_location": 1294, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1389, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1371, - "name": "six", - "val": { - "A_Const": { - "location": 1371, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1382, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1382, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "abstime_tbl", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1410, - }, - }, - "location": 1425, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1435, - "sval": { - "sval": "Jun 30, 2001", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1427, - "names": [ - { - "String": { - "sval": "abstime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 87, - "stmt_location": 1362, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1477, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1459, - "name": "six", - "val": { - "A_Const": { - "location": 1459, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1470, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1470, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "abstime_tbl", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1498, - }, - }, - "location": 1513, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1523, - "sval": { - "sval": "-infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1515, - "names": [ - { - "String": { - "sval": "abstime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 84, - "stmt_location": 1450, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1562, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1544, - "name": "six", - "val": { - "A_Const": { - "location": 1544, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1555, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1555, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1591, - "sval": { - "sval": "May 10, 1947 23:59:12", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1583, - "names": [ - { - "String": { - "sval": "abstime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1615, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "abstime_tbl", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1618, - }, - }, - }, - }, - }, - }, - "stmt_len": 97, - "stmt_location": 1535, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1662, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1642, - "name": "three", - "val": { - "A_Const": { - "location": 1642, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1655, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1655, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1691, - "sval": { - "sval": "epoch", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1683, - "names": [ - { - "String": { - "sval": "abstime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1699, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "abstime_tbl", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1702, - }, - }, - }, - }, - }, - }, - "stmt_len": 83, - "stmt_location": 1633, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1745, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1726, - "name": "four", - "val": { - "A_Const": { - "location": 1726, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1738, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1738, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "abstime_tbl", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1766, - }, - }, - "location": 1781, - "name": [ - { - "String": { - "sval": "<=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1792, - "sval": { - "sval": "Jan 14, 1973 03:14:21", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1784, - "names": [ - { - "String": { - "sval": "abstime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 98, - "stmt_location": 1717, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2193, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "abstime", - }, - }, - ], - "location": 2237, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1961, - "name": "four", - "val": { - "A_Const": { - "location": 1961, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1973, - "name": "abstime", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1973, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1990, - "name": "year", - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2000, - "sval": { - "sval": "year", - }, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2008, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "date_part", - }, - }, - ], - "location": 1990, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2021, - "name": "month", - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2031, - "sval": { - "sval": "month", - }, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2040, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "date_part", - }, - }, - ], - "location": 2021, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2056, - "name": "day", - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2066, - "sval": { - "sval": "day", - }, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2072, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "date_part", - }, - }, - ], - "location": 2056, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2084, - "name": "hour", - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2094, - "sval": { - "sval": "hour", - }, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2102, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "date_part", - }, - }, - ], - "location": 2084, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2117, - "name": "minute", - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2127, - "sval": { - "sval": "minute", - }, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2137, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "date_part", - }, - }, - ], - "location": 2117, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2152, - "name": "second", - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2162, - "sval": { - "sval": "second", - }, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2172, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "date_part", - }, - }, - ], - "location": 2152, - }, - }, - }, - }, - ], - "whereClause": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2222, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "isfinite", - }, - }, - ], - "location": 2213, - }, - }, - }, - }, - "stmt_len": 428, - "stmt_location": 1816, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/advisory_lock.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 30, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 41, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 63, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_xact_lock", - }, - }, - ], - "location": 41, - }, - }, - }, - }, - { - "ResTarget": { - "location": 67, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 96, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_xact_lock_shared", - }, - }, - ], - "location": 67, - }, - }, - }, - }, - { - "ResTarget": { - "location": 101, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 123, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 126, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_xact_lock", - }, - }, - ], - "location": 101, - }, - }, - }, - }, - { - "ResTarget": { - "location": 130, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 159, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 162, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_xact_lock_shared", - }, - }, - ], - "location": 130, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 133, - "stmt_location": 31, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 230, - "relname": "pg_locks", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "classid", - }, - }, - ], - "location": 277, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objid", - }, - }, - ], - "location": 286, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objsubid", - }, - }, - ], - "location": 293, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 174, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "locktype", - }, - }, - ], - "location": 174, - }, - }, - }, - }, - { - "ResTarget": { - "location": 184, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "classid", - }, - }, - ], - "location": 184, - }, - }, - }, - }, - { - "ResTarget": { - "location": 193, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objid", - }, - }, - ], - "location": 193, - }, - }, - }, - }, - { - "ResTarget": { - "location": 200, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objsubid", - }, - }, - ], - "location": 200, - }, - }, - }, - }, - { - "ResTarget": { - "location": 210, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "mode", - }, - }, - ], - "location": 210, - }, - }, - }, - }, - { - "ResTarget": { - "location": 216, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "granted", - }, - }, - ], - "location": 216, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "locktype", - }, - }, - ], - "location": 245, - }, - }, - "location": 254, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 256, - "sval": { - "sval": "advisory", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 136, - "stmt_location": 165, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 369, - "val": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_unlock_all", - }, - }, - ], - "location": 369, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 91, - "stmt_location": 302, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 417, - "relname": "pg_locks", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 403, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 403, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "locktype", - }, - }, - ], - "location": 432, - }, - }, - "location": 441, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 443, - "sval": { - "sval": "advisory", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 394, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 492, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 511, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_unlock", - }, - }, - ], - "location": 492, - }, - }, - }, - }, - { - "ResTarget": { - "location": 515, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 541, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_unlock_shared", - }, - }, - ], - "location": 515, - }, - }, - }, - }, - { - "ResTarget": { - "location": 546, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 565, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 568, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_unlock", - }, - }, - ], - "location": 546, - }, - }, - }, - }, - { - "ResTarget": { - "location": 572, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 598, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 601, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_unlock_shared", - }, - }, - ], - "location": 572, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 149, - "stmt_location": 454, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 55, - "stmt_location": 604, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 683, - "relname": "pg_locks", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 669, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 669, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "locktype", - }, - }, - ], - "location": 698, - }, - }, - "location": 707, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 709, - "sval": { - "sval": "advisory", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 660, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 8, - "stmt_location": 720, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 810, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 832, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_xact_lock", - }, - }, - ], - "location": 810, - }, - }, - }, - }, - { - "ResTarget": { - "location": 836, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 865, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_xact_lock_shared", - }, - }, - ], - "location": 836, - }, - }, - }, - }, - { - "ResTarget": { - "location": 870, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 892, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 895, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_xact_lock", - }, - }, - ], - "location": 870, - }, - }, - }, - }, - { - "ResTarget": { - "location": 899, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 928, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 931, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_xact_lock_shared", - }, - }, - ], - "location": 899, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 204, - "stmt_location": 729, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 999, - "relname": "pg_locks", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "classid", - }, - }, - ], - "location": 1046, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objid", - }, - }, - ], - "location": 1055, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objsubid", - }, - }, - ], - "location": 1062, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 943, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "locktype", - }, - }, - ], - "location": 943, - }, - }, - }, - }, - { - "ResTarget": { - "location": 953, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "classid", - }, - }, - ], - "location": 953, - }, - }, - }, - }, - { - "ResTarget": { - "location": 962, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objid", - }, - }, - ], - "location": 962, - }, - }, - }, - }, - { - "ResTarget": { - "location": 969, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objsubid", - }, - }, - ], - "location": 969, - }, - }, - }, - }, - { - "ResTarget": { - "location": 979, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "mode", - }, - }, - ], - "location": 979, - }, - }, - }, - }, - { - "ResTarget": { - "location": 985, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "granted", - }, - }, - ], - "location": 985, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "locktype", - }, - }, - ], - "location": 1014, - }, - }, - "location": 1023, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1025, - "sval": { - "sval": "advisory", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 136, - "stmt_location": 934, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1081, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1098, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_lock", - }, - }, - ], - "location": 1081, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1102, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1126, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_lock_shared", - }, - }, - ], - "location": 1102, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1131, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1148, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1151, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_lock", - }, - }, - ], - "location": 1131, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1155, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1179, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1182, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_lock_shared", - }, - }, - ], - "location": 1155, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 113, - "stmt_location": 1071, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 10, - "stmt_location": 1185, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1261, - "relname": "pg_locks", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "classid", - }, - }, - ], - "location": 1308, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objid", - }, - }, - ], - "location": 1317, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objsubid", - }, - }, - ], - "location": 1324, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1205, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "locktype", - }, - }, - ], - "location": 1205, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1215, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "classid", - }, - }, - ], - "location": 1215, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1224, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objid", - }, - }, - ], - "location": 1224, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1231, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objsubid", - }, - }, - ], - "location": 1231, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1241, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "mode", - }, - }, - ], - "location": 1241, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1247, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "granted", - }, - }, - ], - "location": 1247, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "locktype", - }, - }, - ], - "location": 1276, - }, - }, - "location": 1285, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1287, - "sval": { - "sval": "advisory", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 136, - "stmt_location": 1196, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1371, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1390, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_unlock", - }, - }, - ], - "location": 1371, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1394, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1413, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_unlock", - }, - }, - ], - "location": 1394, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1418, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1444, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_unlock_shared", - }, - }, - ], - "location": 1418, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1448, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1474, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_unlock_shared", - }, - }, - ], - "location": 1448, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1479, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1498, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1501, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_unlock", - }, - }, - ], - "location": 1479, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1505, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1524, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1527, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_unlock", - }, - }, - ], - "location": 1505, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1532, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1558, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1561, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_unlock_shared", - }, - }, - ], - "location": 1532, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1565, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1591, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1594, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_unlock_shared", - }, - }, - ], - "location": 1565, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 263, - "stmt_location": 1333, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1620, - "relname": "pg_locks", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1606, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 1606, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "locktype", - }, - }, - ], - "location": 1635, - }, - }, - "location": 1644, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1646, - "sval": { - "sval": "advisory", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 1597, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 8, - "stmt_location": 1657, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1750, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1767, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_lock", - }, - }, - ], - "location": 1750, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1771, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1795, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_lock_shared", - }, - }, - ], - "location": 1771, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1800, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1817, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1820, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_lock", - }, - }, - ], - "location": 1800, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1824, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1848, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1851, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_lock_shared", - }, - }, - ], - "location": 1824, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 187, - "stmt_location": 1666, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1919, - "relname": "pg_locks", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "classid", - }, - }, - ], - "location": 1966, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objid", - }, - }, - ], - "location": 1975, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objsubid", - }, - }, - ], - "location": 1982, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1863, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "locktype", - }, - }, - ], - "location": 1863, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1873, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "classid", - }, - }, - ], - "location": 1873, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1882, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objid", - }, - }, - ], - "location": 1882, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1889, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objsubid", - }, - }, - ], - "location": 1889, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1899, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "mode", - }, - }, - ], - "location": 1899, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1905, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "granted", - }, - }, - ], - "location": 1905, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "locktype", - }, - }, - ], - "location": 1934, - }, - }, - "location": 1943, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1945, - "sval": { - "sval": "advisory", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 136, - "stmt_location": 1854, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2001, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2023, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_xact_lock", - }, - }, - ], - "location": 2001, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2027, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2056, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_xact_lock_shared", - }, - }, - ], - "location": 2027, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2061, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2083, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2086, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_xact_lock", - }, - }, - ], - "location": 2061, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2090, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2119, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2122, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_xact_lock_shared", - }, - }, - ], - "location": 2090, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 133, - "stmt_location": 1991, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 10, - "stmt_location": 2125, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2201, - "relname": "pg_locks", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "classid", - }, - }, - ], - "location": 2248, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objid", - }, - }, - ], - "location": 2257, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objsubid", - }, - }, - ], - "location": 2264, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2145, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "locktype", - }, - }, - ], - "location": 2145, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2155, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "classid", - }, - }, - ], - "location": 2155, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2164, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objid", - }, - }, - ], - "location": 2164, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2171, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objsubid", - }, - }, - ], - "location": 2171, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2181, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "mode", - }, - }, - ], - "location": 2181, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2187, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "granted", - }, - }, - ], - "location": 2187, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "locktype", - }, - }, - ], - "location": 2216, - }, - }, - "location": 2225, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2227, - "sval": { - "sval": "advisory", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 136, - "stmt_location": 2136, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2314, - "val": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_unlock_all", - }, - }, - ], - "location": 2314, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 65, - "stmt_location": 2273, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2362, - "relname": "pg_locks", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2348, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 2348, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "locktype", - }, - }, - ], - "location": 2377, - }, - }, - "location": 2386, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2388, - "sval": { - "sval": "advisory", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 2339, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 8, - "stmt_location": 2399, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2456, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2478, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_xact_lock", - }, - }, - ], - "location": 2456, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2482, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2504, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_xact_lock", - }, - }, - ], - "location": 2482, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2509, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2538, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_xact_lock_shared", - }, - }, - ], - "location": 2509, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2542, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2571, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_xact_lock_shared", - }, - }, - ], - "location": 2542, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2576, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2598, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2601, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_xact_lock", - }, - }, - ], - "location": 2576, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2605, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2627, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2630, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_xact_lock", - }, - }, - ], - "location": 2605, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2635, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2664, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2667, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_xact_lock_shared", - }, - }, - ], - "location": 2635, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2671, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2700, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2703, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_xact_lock_shared", - }, - }, - ], - "location": 2671, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 297, - "stmt_location": 2408, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2771, - "relname": "pg_locks", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "classid", - }, - }, - ], - "location": 2818, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objid", - }, - }, - ], - "location": 2827, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objsubid", - }, - }, - ], - "location": 2834, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2715, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "locktype", - }, - }, - ], - "location": 2715, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2725, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "classid", - }, - }, - ], - "location": 2725, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2734, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objid", - }, - }, - ], - "location": 2734, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2741, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objsubid", - }, - }, - ], - "location": 2741, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2751, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "mode", - }, - }, - ], - "location": 2751, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2757, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "granted", - }, - }, - ], - "location": 2757, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "locktype", - }, - }, - ], - "location": 2786, - }, - }, - "location": 2795, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2797, - "sval": { - "sval": "advisory", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 136, - "stmt_location": 2706, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 8, - "stmt_location": 2843, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2875, - "relname": "pg_locks", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2861, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 2861, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "locktype", - }, - }, - ], - "location": 2890, - }, - }, - "location": 2899, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2901, - "sval": { - "sval": "advisory", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 2852, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2964, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2981, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_lock", - }, - }, - ], - "location": 2964, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2985, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3002, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_lock", - }, - }, - ], - "location": 2985, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3007, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3031, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_lock_shared", - }, - }, - ], - "location": 3007, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3035, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3059, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_lock_shared", - }, - }, - ], - "location": 3035, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3064, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3081, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3084, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_lock", - }, - }, - ], - "location": 3064, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3088, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3105, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3108, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_lock", - }, - }, - ], - "location": 3088, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3113, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3137, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3140, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_lock_shared", - }, - }, - ], - "location": 3113, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3144, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3168, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3171, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_lock_shared", - }, - }, - ], - "location": 3144, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 261, - "stmt_location": 2912, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3239, - "relname": "pg_locks", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "classid", - }, - }, - ], - "location": 3286, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objid", - }, - }, - ], - "location": 3295, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objsubid", - }, - }, - ], - "location": 3302, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3183, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "locktype", - }, - }, - ], - "location": 3183, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3193, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "classid", - }, - }, - ], - "location": 3193, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3202, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objid", - }, - }, - ], - "location": 3202, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3209, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objsubid", - }, - }, - ], - "location": 3209, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3219, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "mode", - }, - }, - ], - "location": 3219, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3225, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "granted", - }, - }, - ], - "location": 3225, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "locktype", - }, - }, - ], - "location": 3254, - }, - }, - "location": 3263, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3265, - "sval": { - "sval": "advisory", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 136, - "stmt_location": 3174, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3321, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3340, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_unlock", - }, - }, - ], - "location": 3321, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3344, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3363, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_unlock", - }, - }, - ], - "location": 3344, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3368, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3394, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_unlock_shared", - }, - }, - ], - "location": 3368, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3398, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3424, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_unlock_shared", - }, - }, - ], - "location": 3398, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3429, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3448, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3451, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_unlock", - }, - }, - ], - "location": 3429, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3455, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3474, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3477, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_unlock", - }, - }, - ], - "location": 3455, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3482, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3508, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3511, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_unlock_shared", - }, - }, - ], - "location": 3482, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3515, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3541, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3544, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_unlock_shared", - }, - }, - ], - "location": 3515, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 235, - "stmt_location": 3311, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3570, - "relname": "pg_locks", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3556, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 3556, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "locktype", - }, - }, - ], - "location": 3585, - }, - }, - "location": 3594, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3596, - "sval": { - "sval": "advisory", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 3547, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3655, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3672, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_lock", - }, - }, - ], - "location": 3655, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3676, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3693, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_lock", - }, - }, - ], - "location": 3676, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3698, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3722, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_lock_shared", - }, - }, - ], - "location": 3698, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3726, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3750, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_lock_shared", - }, - }, - ], - "location": 3726, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3755, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3772, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3775, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_lock", - }, - }, - ], - "location": 3755, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3779, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3796, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3799, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_lock", - }, - }, - ], - "location": 3779, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3804, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3828, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3831, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_lock_shared", - }, - }, - ], - "location": 3804, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3835, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3859, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3862, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_lock_shared", - }, - }, - ], - "location": 3835, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 257, - "stmt_location": 3607, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3930, - "relname": "pg_locks", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "classid", - }, - }, - ], - "location": 3977, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objid", - }, - }, - ], - "location": 3986, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objsubid", - }, - }, - ], - "location": 3993, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3874, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "locktype", - }, - }, - ], - "location": 3874, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3884, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "classid", - }, - }, - ], - "location": 3884, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3893, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objid", - }, - }, - ], - "location": 3893, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3900, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objsubid", - }, - }, - ], - "location": 3900, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3910, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "mode", - }, - }, - ], - "location": 3910, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3916, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "granted", - }, - }, - ], - "location": 3916, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "locktype", - }, - }, - ], - "location": 3945, - }, - }, - "location": 3954, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3956, - "sval": { - "sval": "advisory", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 136, - "stmt_location": 3865, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4011, - "val": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_advisory_unlock_all", - }, - }, - ], - "location": 4011, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 4002, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4059, - "relname": "pg_locks", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4045, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 4045, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "locktype", - }, - }, - ], - "location": 4074, - }, - }, - "location": 4083, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4085, - "sval": { - "sval": "advisory", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 4036, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/aggregates.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 52, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 28, - "name": "avg_1", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 32, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "avg", - }, - }, - ], - "location": 28, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 88, - "relname": "aggtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 66, - "name": "avg_32", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 70, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "avg", - }, - }, - ], - "location": 66, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 102, - }, - }, - "location": 104, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 100, - }, - "location": 106, - }, - }, - }, - }, - }, - }, - "stmt_len": 52, - "stmt_location": 57, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 290, - "relname": "aggtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 248, - "name": "avg_107_943", - "val": { - "TypeCast": { - "arg": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 252, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "avg", - }, - }, - ], - "location": 248, - }, - }, - "location": 254, - "typeName": { - "location": 256, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 264, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 267, - }, - }, - ], - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 187, - "stmt_location": 110, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "location": 337, - "relname": "student", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 307, - "name": "avg_3_4", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "gpa", - }, - }, - ], - "location": 311, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "avg", - }, - }, - ], - "location": 307, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 298, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 382, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 355, - "name": "sum_1500", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 359, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 355, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 41, - "stmt_location": 345, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 418, - "relname": "aggtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 395, - "name": "sum_198", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 399, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 395, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 387, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 461, - "relname": "aggtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 434, - "name": "avg_431_773", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 438, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 434, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 426, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "location": 507, - "relname": "student", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 477, - "name": "avg_6_8", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "gpa", - }, - }, - ], - "location": 481, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 477, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 469, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 548, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 524, - "name": "max_3", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 528, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 524, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 515, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 584, - "relname": "aggtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 561, - "name": "max_100", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 565, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 561, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 553, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 634, - "relname": "aggtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 600, - "name": "max_324_78", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aggtest", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 604, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 600, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 49, - "stmt_location": 592, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 683, - "relname": "student", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 650, - "name": "max_3_7", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "student", - }, - }, - { - "String": { - "sval": "gpa", - }, - }, - ], - "location": 654, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 650, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 48, - "stmt_location": 642, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 719, - "relname": "aggtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 700, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 711, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "stddev_pop", - }, - }, - ], - "location": 700, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 691, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 755, - "relname": "aggtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 735, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 747, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "stddev_samp", - }, - }, - ], - "location": 735, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 727, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 787, - "relname": "aggtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 771, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 779, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "var_pop", - }, - }, - ], - "location": 771, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 763, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 820, - "relname": "aggtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 803, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 812, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "var_samp", - }, - }, - ], - "location": 803, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 795, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 865, - "relname": "aggtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 837, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 848, - }, - }, - "location": 849, - "typeName": { - "location": 851, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "stddev_pop", - }, - }, - ], - "location": 837, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 828, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 910, - "relname": "aggtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 881, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 893, - }, - }, - "location": 894, - "typeName": { - "location": 896, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "stddev_samp", - }, - }, - ], - "location": 881, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 873, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 951, - "relname": "aggtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 926, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 934, - }, - }, - "location": 935, - "typeName": { - "location": 937, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "var_pop", - }, - }, - ], - "location": 926, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 918, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 993, - "relname": "aggtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 967, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 976, - }, - }, - "location": 977, - "typeName": { - "location": 979, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "var_samp", - }, - }, - ], - "location": 967, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 41, - "stmt_location": 959, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1090, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "fval": { - "fval": "1.0", - }, - "location": 1098, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "var_pop", - }, - }, - ], - "location": 1090, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1104, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "fval": { - "fval": "2.0", - }, - "location": 1113, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "var_samp", - }, - }, - ], - "location": 1104, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 116, - "stmt_location": 1001, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1126, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "3.0", - }, - "location": 1137, - }, - }, - "location": 1140, - "typeName": { - "location": 1142, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "stddev_pop", - }, - }, - ], - "location": 1126, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1152, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "4.0", - }, - "location": 1164, - }, - }, - "location": 1167, - "typeName": { - "location": 1169, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "stddev_samp", - }, - }, - ], - "location": 1152, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 1118, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1274, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 1276, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 1258, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1237, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "isnull": true, - "location": 1241, - }, - }, - "location": 1245, - "typeName": { - "location": 1247, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 1237, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 100, - "stmt_location": 1178, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1324, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 1326, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 1308, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1287, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "isnull": true, - "location": 1291, - }, - }, - "location": 1295, - "typeName": { - "location": 1297, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 1287, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 49, - "stmt_location": 1279, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1377, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 1379, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 1361, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1337, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "isnull": true, - "location": 1341, - }, - }, - "location": 1345, - "typeName": { - "location": 1347, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 1337, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 1329, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1429, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 1431, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 1413, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1390, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "isnull": true, - "location": 1394, - }, - }, - "location": 1398, - "typeName": { - "location": 1400, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 1390, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 1382, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1479, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 1481, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 1463, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1442, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "isnull": true, - "location": 1446, - }, - }, - "location": 1450, - "typeName": { - "location": 1452, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "avg", - }, - }, - ], - "location": 1442, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 49, - "stmt_location": 1434, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1529, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 1531, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 1513, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1492, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "isnull": true, - "location": 1496, - }, - }, - "location": 1500, - "typeName": { - "location": 1502, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "avg", - }, - }, - ], - "location": 1492, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 49, - "stmt_location": 1484, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1582, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 1584, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 1566, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1542, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "isnull": true, - "location": 1546, - }, - }, - "location": 1550, - "typeName": { - "location": 1552, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "avg", - }, - }, - ], - "location": 1542, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 1534, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1634, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 1636, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 1618, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1595, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "isnull": true, - "location": 1599, - }, - }, - "location": 1603, - "typeName": { - "location": 1605, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "avg", - }, - }, - ], - "location": 1595, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 1587, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1688, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 1690, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 1672, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1647, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1651, - "sval": { - "sval": "NaN", - }, - }, - }, - "location": 1656, - "typeName": { - "location": 1658, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 1647, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 1639, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1742, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 1744, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 1726, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1701, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1705, - "sval": { - "sval": "NaN", - }, - }, - }, - "location": 1710, - "typeName": { - "location": 1712, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "avg", - }, - }, - ], - "location": 1701, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 1693, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1807, - "relname": "aggtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1785, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1796, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1799, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "regr_count", - }, - }, - ], - "location": 1785, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 67, - "stmt_location": 1747, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1843, - "relname": "aggtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1823, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1832, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1835, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "regr_sxx", - }, - }, - ], - "location": 1823, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 1815, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1879, - "relname": "aggtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1859, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1868, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1871, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "regr_syy", - }, - }, - ], - "location": 1859, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 1851, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1915, - "relname": "aggtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1895, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1904, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1907, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "regr_sxy", - }, - }, - ], - "location": 1895, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 1887, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1969, - "relname": "aggtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1931, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1941, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1944, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "regr_avgx", - }, - }, - ], - "location": 1931, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1948, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1958, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1961, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "regr_avgy", - }, - }, - ], - "location": 1948, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 1923, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2004, - "relname": "aggtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1985, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1993, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1996, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "regr_r2", - }, - }, - ], - "location": 1985, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 1977, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2064, - "relname": "aggtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2020, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2031, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2034, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "regr_slope", - }, - }, - ], - "location": 2020, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2038, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2053, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2056, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "regr_intercept", - }, - }, - ], - "location": 2038, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 2012, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2119, - "relname": "aggtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2080, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2090, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2093, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "covar_pop", - }, - }, - ], - "location": 2080, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2097, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2108, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2111, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "covar_samp", - }, - }, - ], - "location": 2097, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 2072, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2151, - "relname": "aggtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2135, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2140, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2143, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "corr", - }, - }, - ], - "location": 2135, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 2127, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2197, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2168, - "name": "cnt_1000", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 2174, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 2168, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 2159, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2245, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2210, - "name": "cnt_4", - "val": { - "FuncCall": { - "agg_distinct": true, - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 2225, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 2210, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 2202, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2289, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 2303, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 2316, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2259, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 2259, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2264, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 2264, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2274, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 2278, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 2274, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 69, - "stmt_location": 2250, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2371, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 2385, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 2398, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2329, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 2329, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2334, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 2340, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 2334, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2347, - "val": { - "FuncCall": { - "agg_distinct": true, - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 2360, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 2347, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 81, - "stmt_location": 2320, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2465, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2438, - "name": "avg_1", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 2445, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "newavg", - }, - }, - ], - "location": 2438, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 67, - "stmt_location": 2402, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2508, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2478, - "name": "sum_1500", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 2485, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "newsum", - }, - }, - ], - "location": 2478, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 2470, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2551, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2521, - "name": "cnt_1000", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 2528, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "newcnt", - }, - }, - ], - "location": 2521, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 2513, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2591, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2564, - "name": "cnt_1000", - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "newcnt", - }, - }, - ], - "location": 2564, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 2556, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2631, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2604, - "name": "cnt_1000", - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "oldcnt", - }, - }, - ], - "location": 2604, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 2596, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2661, - "relname": "int8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2644, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "q1", - }, - }, - ], - "location": 2649, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "q2", - }, - }, - ], - "location": 2652, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum2", - }, - }, - ], - "location": 2644, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 2636, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 2764, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 2780, - }, - }, - ], - "havingClause": { - "SubLink": { - "location": 2791, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 2813, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2806, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2806, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "agg_distinct": true, - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "four", - }, - }, - ], - "location": 2839, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 2826, - }, - }, - "location": 2847, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "four", - }, - }, - ], - "location": 2849, - }, - }, - }, - }, - }, - }, - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2735, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 2735, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2740, - "val": { - "FuncCall": { - "agg_distinct": true, - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 2753, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 2740, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 186, - "stmt_location": 2670, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 2963, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 2979, - }, - }, - ], - "havingClause": { - "SubLink": { - "location": 2990, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 3012, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3005, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3005, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "agg_distinct": true, - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "four", - }, - }, - ], - "location": 3053, - }, - }, - "location": 3060, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "four", - }, - }, - ], - "location": 3062, - }, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 3040, - }, - }, - "location": 3070, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "four", - }, - }, - ], - "location": 3072, - }, - }, - }, - }, - }, - }, - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2934, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 2934, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2939, - "val": { - "FuncCall": { - "agg_distinct": true, - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 2952, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 2939, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 222, - "stmt_location": 2857, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "o", - }, - "inh": true, - "location": 3267, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3188, - "val": { - "SubLink": { - "location": 3188, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3196, - "val": { - "FuncCall": { - "args": [ - { - "SubLink": { - "location": 3200, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 3223, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3208, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "unique2", - }, - }, - ], - "location": 3208, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 3237, - }, - }, - "location": 3247, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "o", - }, - }, - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 3249, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 3196, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 194, - "stmt_location": 3080, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 3345, - "relname": "bitwise_test", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "i2", - "is_local": true, - "location": 3361, - "typeName": { - "location": 3364, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "i4", - "is_local": true, - "location": 3372, - "typeName": { - "location": 3375, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "i8", - "is_local": true, - "location": 3383, - "typeName": { - "location": 3386, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "i", - "is_local": true, - "location": 3394, - "typeName": { - "location": 3396, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "x", - "is_local": true, - "location": 3407, - "typeName": { - "location": 3409, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "y", - "is_local": true, - "location": 3417, - "typeName": { - "location": 3419, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 3423, - }, - }, - ], - }, - }, - }, - ], - }, - }, - "stmt_len": 152, - "stmt_location": 3275, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3499, - "relname": "bitwise_test", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3453, - "name": "?", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i2", - }, - }, - ], - "location": 3461, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "bit_and", - }, - }, - ], - "location": 3453, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3475, - "name": "?", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i4", - }, - }, - ], - "location": 3482, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "bit_or", - }, - }, - ], - "location": 3475, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 83, - "stmt_location": 3428, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3908, - "relname": "bitwise_test", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3635, - "name": "1", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i2", - }, - }, - ], - "location": 3643, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "bit_and", - }, - }, - ], - "location": 3635, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3657, - "name": "1", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i4", - }, - }, - ], - "location": 3665, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "bit_and", - }, - }, - ], - "location": 3657, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3679, - "name": "1", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i8", - }, - }, - ], - "location": 3687, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "bit_and", - }, - }, - ], - "location": 3679, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3701, - "name": "?", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3709, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "bit_and", - }, - }, - ], - "location": 3701, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3723, - "name": "0", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 3731, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "bit_and", - }, - }, - ], - "location": 3723, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3745, - "name": "0100", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 3753, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "bit_and", - }, - }, - ], - "location": 3745, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3771, - "name": "7", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i2", - }, - }, - ], - "location": 3778, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "bit_or", - }, - }, - ], - "location": 3771, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3793, - "name": "7", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i4", - }, - }, - ], - "location": 3800, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "bit_or", - }, - }, - ], - "location": 3793, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3815, - "name": "7", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i8", - }, - }, - ], - "location": 3822, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "bit_or", - }, - }, - ], - "location": 3815, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3837, - "name": "?", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3844, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "bit_or", - }, - }, - ], - "location": 3837, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3859, - "name": "7", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 3866, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "bit_or", - }, - }, - ], - "location": 3859, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3881, - "name": "1101", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 3888, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "bit_or", - }, - }, - ], - "location": 3881, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 408, - "stmt_location": 3512, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4075, - "name": "t", - "val": { - "NullTest": { - "arg": { - "FuncCall": { - "args": [ - { - "A_Const": { - "isnull": true, - "location": 4093, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 4099, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "booland_statefunc", - }, - }, - ], - "location": 4075, - }, - }, - "location": 4106, - "nulltesttype": "IS_NULL", - }, - }, - }, - }, - { - "ResTarget": { - "location": 4124, - "name": "t", - "val": { - "NullTest": { - "arg": { - "FuncCall": { - "args": [ - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 4142, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 4148, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "booland_statefunc", - }, - }, - ], - "location": 4124, - }, - }, - "location": 4155, - "nulltesttype": "IS_NULL", - }, - }, - }, - }, - { - "ResTarget": { - "location": 4173, - "name": "t", - "val": { - "NullTest": { - "arg": { - "FuncCall": { - "args": [ - { - "A_Const": { - "boolval": {}, - "location": 4191, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 4198, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "booland_statefunc", - }, - }, - ], - "location": 4173, - }, - }, - "location": 4204, - "nulltesttype": "IS_NULL", - }, - }, - }, - }, - { - "ResTarget": { - "location": 4222, - "name": "t", - "val": { - "NullTest": { - "arg": { - "FuncCall": { - "args": [ - { - "A_Const": { - "isnull": true, - "location": 4240, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 4246, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "booland_statefunc", - }, - }, - ], - "location": 4222, - }, - }, - "location": 4253, - "nulltesttype": "IS_NULL", - }, - }, - }, - }, - { - "ResTarget": { - "location": 4271, - "name": "t", - "val": { - "NullTest": { - "arg": { - "FuncCall": { - "args": [ - { - "A_Const": { - "isnull": true, - "location": 4289, - }, - }, - { - "A_Const": { - "boolval": {}, - "location": 4295, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "booland_statefunc", - }, - }, - ], - "location": 4271, - }, - }, - "location": 4302, - "nulltesttype": "IS_NULL", - }, - }, - }, - }, - { - "ResTarget": { - "location": 4349, - "name": "t", - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 4367, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 4373, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "booland_statefunc", - }, - }, - ], - "location": 4349, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4389, - "name": "t", - "val": { - "BoolExpr": { - "args": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 4411, - }, - }, - { - "A_Const": { - "boolval": {}, - "location": 4417, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "booland_statefunc", - }, - }, - ], - "location": 4393, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 4389, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4434, - "name": "t", - "val": { - "BoolExpr": { - "args": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "boolval": {}, - "location": 4456, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 4463, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "booland_statefunc", - }, - }, - ], - "location": 4438, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 4434, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4479, - "name": "t", - "val": { - "BoolExpr": { - "args": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "boolval": {}, - "location": 4501, - }, - }, - { - "A_Const": { - "boolval": {}, - "location": 4508, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "booland_statefunc", - }, - }, - ], - "location": 4483, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 4479, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 600, - "stmt_location": 3921, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4586, - "name": "t", - "val": { - "NullTest": { - "arg": { - "FuncCall": { - "args": [ - { - "A_Const": { - "isnull": true, - "location": 4603, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 4609, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "boolor_statefunc", - }, - }, - ], - "location": 4586, - }, - }, - "location": 4616, - "nulltesttype": "IS_NULL", - }, - }, - }, - }, - { - "ResTarget": { - "location": 4634, - "name": "t", - "val": { - "NullTest": { - "arg": { - "FuncCall": { - "args": [ - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 4651, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 4657, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "boolor_statefunc", - }, - }, - ], - "location": 4634, - }, - }, - "location": 4664, - "nulltesttype": "IS_NULL", - }, - }, - }, - }, - { - "ResTarget": { - "location": 4682, - "name": "t", - "val": { - "NullTest": { - "arg": { - "FuncCall": { - "args": [ - { - "A_Const": { - "boolval": {}, - "location": 4699, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 4706, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "boolor_statefunc", - }, - }, - ], - "location": 4682, - }, - }, - "location": 4712, - "nulltesttype": "IS_NULL", - }, - }, - }, - }, - { - "ResTarget": { - "location": 4730, - "name": "t", - "val": { - "NullTest": { - "arg": { - "FuncCall": { - "args": [ - { - "A_Const": { - "isnull": true, - "location": 4747, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 4753, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "boolor_statefunc", - }, - }, - ], - "location": 4730, - }, - }, - "location": 4760, - "nulltesttype": "IS_NULL", - }, - }, - }, - }, - { - "ResTarget": { - "location": 4778, - "name": "t", - "val": { - "NullTest": { - "arg": { - "FuncCall": { - "args": [ - { - "A_Const": { - "isnull": true, - "location": 4795, - }, - }, - { - "A_Const": { - "boolval": {}, - "location": 4801, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "boolor_statefunc", - }, - }, - ], - "location": 4778, - }, - }, - "location": 4808, - "nulltesttype": "IS_NULL", - }, - }, - }, - }, - { - "ResTarget": { - "location": 4851, - "name": "t", - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 4868, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 4874, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "boolor_statefunc", - }, - }, - ], - "location": 4851, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4890, - "name": "t", - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 4907, - }, - }, - { - "A_Const": { - "boolval": {}, - "location": 4913, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "boolor_statefunc", - }, - }, - ], - "location": 4890, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4930, - "name": "t", - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "boolval": {}, - "location": 4947, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 4954, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "boolor_statefunc", - }, - }, - ], - "location": 4930, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4970, - "name": "t", - "val": { - "BoolExpr": { - "args": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "boolval": {}, - "location": 4991, - }, - }, - { - "A_Const": { - "boolval": {}, - "location": 4998, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "boolor_statefunc", - }, - }, - ], - "location": 4974, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 4970, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 489, - "stmt_location": 4522, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 5037, - "relname": "bool_test", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "b1", - "is_local": true, - "location": 5050, - "typeName": { - "location": 5053, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b2", - "is_local": true, - "location": 5061, - "typeName": { - "location": 5064, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b3", - "is_local": true, - "location": 5072, - "typeName": { - "location": 5075, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b4", - "is_local": true, - "location": 5083, - "typeName": { - "location": 5086, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 79, - "stmt_location": 5012, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5169, - "relname": "bool_test", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5117, - "name": "n", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b1", - }, - }, - ], - "location": 5126, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "bool_and", - }, - }, - ], - "location": 5117, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5142, - "name": "n", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b3", - }, - }, - ], - "location": 5150, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "bool_or", - }, - }, - ], - "location": 5142, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 86, - "stmt_location": 5092, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5475, - "relname": "bool_test", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5311, - "name": "f", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b1", - }, - }, - ], - "location": 5320, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "bool_and", - }, - }, - ], - "location": 5311, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5338, - "name": "t", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b2", - }, - }, - ], - "location": 5347, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "bool_and", - }, - }, - ], - "location": 5338, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5365, - "name": "f", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b3", - }, - }, - ], - "location": 5374, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "bool_and", - }, - }, - ], - "location": 5365, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5392, - "name": "n", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b4", - }, - }, - ], - "location": 5401, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "bool_and", - }, - }, - ], - "location": 5392, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5419, - "name": "f", - "val": { - "FuncCall": { - "args": [ - { - "BoolExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b2", - }, - }, - ], - "location": 5432, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 5428, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "bool_and", - }, - }, - ], - "location": 5419, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5446, - "name": "t", - "val": { - "FuncCall": { - "args": [ - { - "BoolExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b3", - }, - }, - ], - "location": 5459, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 5455, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "bool_and", - }, - }, - ], - "location": 5446, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 305, - "stmt_location": 5179, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5642, - "relname": "bool_test", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5496, - "name": "f", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b1", - }, - }, - ], - "location": 5502, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "every", - }, - }, - ], - "location": 5496, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5520, - "name": "t", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b2", - }, - }, - ], - "location": 5526, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "every", - }, - }, - ], - "location": 5520, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5544, - "name": "f", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b3", - }, - }, - ], - "location": 5550, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "every", - }, - }, - ], - "location": 5544, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5568, - "name": "n", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b4", - }, - }, - ], - "location": 5574, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "every", - }, - }, - ], - "location": 5568, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5592, - "name": "f", - "val": { - "FuncCall": { - "args": [ - { - "BoolExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b2", - }, - }, - ], - "location": 5602, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 5598, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "every", - }, - }, - ], - "location": 5592, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5616, - "name": "t", - "val": { - "FuncCall": { - "args": [ - { - "BoolExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b3", - }, - }, - ], - "location": 5626, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 5622, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "every", - }, - }, - ], - "location": 5616, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 166, - "stmt_location": 5485, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5827, - "relname": "bool_test", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5663, - "name": "t", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b1", - }, - }, - ], - "location": 5671, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "bool_or", - }, - }, - ], - "location": 5663, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5690, - "name": "t", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b2", - }, - }, - ], - "location": 5698, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "bool_or", - }, - }, - ], - "location": 5690, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5717, - "name": "f", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b3", - }, - }, - ], - "location": 5725, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "bool_or", - }, - }, - ], - "location": 5717, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5744, - "name": "n", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b4", - }, - }, - ], - "location": 5752, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "bool_or", - }, - }, - ], - "location": 5744, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5771, - "name": "f", - "val": { - "FuncCall": { - "args": [ - { - "BoolExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b2", - }, - }, - ], - "location": 5783, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 5779, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "bool_or", - }, - }, - ], - "location": 5771, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5798, - "name": "t", - "val": { - "FuncCall": { - "args": [ - { - "BoolExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b3", - }, - }, - ], - "location": 5810, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 5806, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "bool_or", - }, - }, - ], - "location": 5798, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 184, - "stmt_location": 5652, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 5977, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6015, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5997, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 6001, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 5997, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 183, - "stmt_location": 5837, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6047, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6029, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 6033, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 6029, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 6021, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 6063, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6101, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6083, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 6087, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 6083, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 53, - "stmt_location": 6053, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6133, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6115, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 6119, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 6115, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 6107, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 6149, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6187, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6169, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 6173, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 6169, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 6199, - }, - }, - "location": 6207, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 42, - }, - "location": 6209, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 72, - "stmt_location": 6139, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6238, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6220, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 6224, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 6220, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 6250, - }, - }, - "location": 6258, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 42, - }, - "location": 6260, - }, - }, - }, - }, - }, - }, - "stmt_len": 50, - "stmt_location": 6212, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 6273, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6311, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6293, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 6297, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 6293, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 6323, - }, - }, - "location": 6331, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 42, - }, - "location": 6333, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 72, - "stmt_location": 6263, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6362, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6344, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 6348, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 6344, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 6374, - }, - }, - "location": 6382, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 42, - }, - "location": 6384, - }, - }, - }, - }, - }, - }, - "stmt_len": 50, - "stmt_location": 6336, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 6397, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6435, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6417, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 6421, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 6417, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 6447, - }, - }, - "location": 6455, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 42000, - }, - "location": 6457, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 75, - "stmt_location": 6387, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6489, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6471, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 6475, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 6471, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 6501, - }, - }, - "location": 6509, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 42000, - }, - "location": 6511, - }, - }, - }, - }, - }, - }, - "stmt_len": 53, - "stmt_location": 6463, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 6578, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6617, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6598, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 6602, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 6598, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 6629, - }, - }, - "location": 6638, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 33, - }, - "location": 6640, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 125, - "stmt_location": 6517, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6670, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6651, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 6655, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 6651, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 6682, - }, - }, - "location": 6691, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 33, - }, - "location": 6693, - }, - }, - }, - }, - }, - }, - "stmt_len": 52, - "stmt_location": 6643, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 6706, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6745, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6726, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 6730, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 6726, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 6757, - }, - }, - "location": 6766, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 33, - }, - "location": 6768, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 6696, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6798, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6779, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 6783, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 6779, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 6810, - }, - }, - "location": 6819, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 33, - }, - "location": 6821, - }, - }, - }, - }, - }, - }, - "stmt_len": 52, - "stmt_location": 6771, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 6893, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6984, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6913, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 6913, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6917, - "name": "gt", - "val": { - "SubLink": { - "location": 6917, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6943, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6925, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 6929, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 6925, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 6955, - }, - }, - "location": 6963, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 6965, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 168, - "stmt_location": 6824, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7070, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7001, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 7001, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7005, - "name": "gt", - "val": { - "SubLink": { - "location": 7005, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7031, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7013, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 7017, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 7013, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 7043, - }, - }, - "location": 7051, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 7053, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 85, - "stmt_location": 6993, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 7149, - }, - }, - ], - "query": { - "SelectStmt": { - "distinctClause": [ - {}, - ], - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7196, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7178, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique2", - }, - }, - ], - "location": 7182, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 7178, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 122, - "stmt_location": 7079, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "distinctClause": [ - {}, - ], - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7237, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7219, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique2", - }, - }, - ], - "location": 7223, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 7219, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 7202, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 7253, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7291, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 7306, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 7273, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique2", - }, - }, - ], - "location": 7277, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 7273, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 64, - "stmt_location": 7243, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7334, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 7349, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 7316, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique2", - }, - }, - ], - "location": 7320, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 7316, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 7308, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 7361, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7399, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique2", - }, - }, - ], - "location": 7418, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 7414, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 7381, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique2", - }, - }, - ], - "location": 7385, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 7381, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 75, - "stmt_location": 7351, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7453, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique2", - }, - }, - ], - "location": 7472, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 7468, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 7435, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique2", - }, - }, - ], - "location": 7439, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 7435, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 7427, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 7491, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7529, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique2", - }, - }, - ], - "location": 7548, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 7544, - }, - }, - "location": 7556, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 7557, - }, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 7511, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique2", - }, - }, - ], - "location": 7515, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 7511, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 77, - "stmt_location": 7481, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7585, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique2", - }, - }, - ], - "location": 7604, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 7600, - }, - }, - "location": 7612, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 7613, - }, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 7567, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique2", - }, - }, - ], - "location": 7571, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 7567, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 55, - "stmt_location": 7559, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 7625, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7690, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "g", - }, - }, - ], - "location": 7705, - }, - }, - "sortby_dir": "SORTBY_DESC", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 7645, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique2", - }, - }, - ], - "location": 7649, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 7645, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7659, - "name": "g", - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 7675, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 7677, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 7659, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 96, - "stmt_location": 7615, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7765, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "g", - }, - }, - ], - "location": 7780, - }, - }, - "sortby_dir": "SORTBY_DESC", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 7720, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique2", - }, - }, - ], - "location": 7724, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 7720, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7734, - "name": "g", - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 7750, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 7752, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 7734, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 74, - "stmt_location": 7712, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 7835, - "relname": "minmaxtest", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 7846, - "typeName": { - "location": 7849, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 66, - "stmt_location": 7787, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 7892, - "relname": "minmaxtest", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 7868, - "relname": "minmaxtest1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 49, - "stmt_location": 7854, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 7942, - "relname": "minmaxtest", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 7918, - "relname": "minmaxtest2", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 49, - "stmt_location": 7904, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 7992, - "relname": "minmaxtest", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 7968, - "relname": "minmaxtest3", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 49, - "stmt_location": 7954, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "minmaxtesti", - "indexParams": [ - { - "IndexElem": { - "name": "f1", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 8033, - "relname": "minmaxtest", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 43, - "stmt_location": 8004, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "minmaxtest1i", - "indexParams": [ - { - "IndexElem": { - "name": "f1", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 8078, - "relname": "minmaxtest1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 45, - "stmt_location": 8048, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "minmaxtest2i", - "indexParams": [ - { - "IndexElem": { - "name": "f1", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DESC", - }, - }, - ], - "relation": { - "inh": true, - "location": 8124, - "relname": "minmaxtest2", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 50, - "stmt_location": 8094, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "minmaxtest3i", - "indexParams": [ - { - "IndexElem": { - "name": "f1", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 8175, - "relname": "minmaxtest3", - "relpersistence": "p", - }, - "whereClause": { - "NullTest": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 8197, - }, - }, - "location": 8200, - "nulltesttype": "IS_NOT_NULL", - }, - }, - }, - }, - "stmt_len": 66, - "stmt_location": 8145, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 8226, - "relname": "minmaxtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 11, - }, - "location": 8244, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 12, - }, - "location": 8250, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 41, - "stmt_location": 8212, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 8267, - "relname": "minmaxtest1", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 13, - }, - "location": 8286, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 14, - }, - "location": 8292, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 41, - "stmt_location": 8254, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 8309, - "relname": "minmaxtest2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 15, - }, - "location": 8328, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 16, - }, - "location": 8334, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 41, - "stmt_location": 8296, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 8351, - "relname": "minmaxtest3", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 17, - }, - "location": 8370, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 18, - }, - "location": 8376, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 41, - "stmt_location": 8338, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 8391, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8433, - "relname": "minmaxtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8411, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 8415, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 8411, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8420, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 8424, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 8420, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 63, - "stmt_location": 8380, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8474, - "relname": "minmaxtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8452, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 8456, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 8452, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8461, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 8465, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 8461, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 8444, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 8563, - }, - }, - ], - "query": { - "SelectStmt": { - "distinctClause": [ - {}, - ], - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8614, - "relname": "minmaxtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8592, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 8596, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 8592, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8601, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 8605, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 8601, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 139, - "stmt_location": 8485, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "distinctClause": [ - {}, - ], - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8664, - "relname": "minmaxtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8642, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 8646, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 8642, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8651, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 8655, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 8651, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 49, - "stmt_location": 8625, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "minmaxtest", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 31, - "stmt_location": 8675, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8797, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8774, - "val": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 8782, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 8778, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 8774, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 95, - "stmt_location": 8707, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8857, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8811, - "val": { - "SubLink": { - "location": 8811, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8842, - "relname": "int8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8819, - "val": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 8827, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 8823, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 8819, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 8803, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 8936, - "relname": "t1", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 8940, - "typeName": { - "location": 8942, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 8947, - "typeName": { - "location": 8949, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c", - "is_local": true, - "location": 8954, - "typeName": { - "location": 8956, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "d", - "is_local": true, - "location": 8961, - "typeName": { - "location": 8963, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 8968, - }, - }, - ], - }, - }, - "stmt_len": 124, - "stmt_location": 8863, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 9007, - "relname": "t2", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "x", - "is_local": true, - "location": 9011, - "typeName": { - "location": 9013, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "y", - "is_local": true, - "location": 9018, - "typeName": { - "location": 9020, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "z", - "is_local": true, - "location": 9025, - "typeName": { - "location": 9027, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "x", - }, - }, - { - "String": { - "sval": "y", - }, - }, - ], - "location": 9032, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 8988, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 9071, - "relname": "t3", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 9075, - "typeName": { - "location": 9077, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 9082, - "typeName": { - "location": 9084, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c", - "is_local": true, - "location": 9089, - "typeName": { - "location": 9091, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "deferrable": true, - "keys": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 9096, - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 9052, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 9193, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 9218, - "relname": "t1", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 9230, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 9232, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 9234, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - ], - "location": 9236, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9211, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 9211, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 111, - "stmt_location": 9126, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 9320, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 9347, - "relname": "t1", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 9359, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 9361, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - ], - "location": 9363, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9338, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 9338, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9340, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 9340, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 126, - "stmt_location": 9238, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 9418, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "inh": true, - "location": 9443, - "relname": "t1", - "relpersistence": "p", - }, - }, - "quals": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 9463, - }, - }, - "location": 9468, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "x", - }, - }, - ], - "location": 9470, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 9479, - }, - }, - "location": 9484, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "y", - }, - }, - ], - "location": 9486, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 9475, - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 9457, - "relname": "t2", - "relpersistence": "p", - }, - }, - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 9500, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 9505, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - "location": 9510, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "d", - }, - }, - ], - "location": 9515, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "x", - }, - }, - ], - "location": 9520, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "y", - }, - }, - ], - "location": 9525, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "z", - }, - }, - ], - "location": 9530, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9436, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 9436, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 169, - "stmt_location": 9365, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 9596, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "inh": true, - "location": 9634, - "relname": "t1", - "relpersistence": "p", - }, - }, - "quals": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 9654, - }, - }, - "location": 9659, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "x", - }, - }, - ], - "location": 9661, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 9670, - }, - }, - "location": 9675, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "y", - }, - }, - ], - "location": 9677, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 9666, - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 9648, - "relname": "t2", - "relpersistence": "p", - }, - }, - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 9691, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 9696, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - "location": 9701, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "d", - }, - }, - ], - "location": 9706, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "x", - }, - }, - ], - "location": 9711, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "z", - }, - }, - ], - "location": 9716, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9614, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 9614, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9619, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "x", - }, - }, - ], - "location": 9619, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9624, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "z", - }, - }, - ], - "location": 9624, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 185, - "stmt_location": 9535, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 9773, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 9798, - "relname": "t3", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 9810, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 9812, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 9814, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9791, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 9791, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 94, - "stmt_location": 9721, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "t1", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 15, - "stmt_location": 9816, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "t2", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 14, - "stmt_location": 9832, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "t3", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 14, - "stmt_location": 9847, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 9967, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 9969, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 9973, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 9975, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 9979, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 9981, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 9985, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 9987, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9927, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 9948, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 9937, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_agg", - }, - }, - ], - "location": 9927, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 135, - "stmt_location": 9862, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10046, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 10048, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 10052, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 10054, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 10058, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10060, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 10064, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 10066, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10006, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 10027, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 10016, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_agg", - }, - }, - ], - "location": 10006, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 78, - "stmt_location": 9998, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10130, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 10132, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 10136, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 10138, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 10142, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10144, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 10148, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 10150, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10085, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 10106, - }, - }, - "sortby_dir": "SORTBY_DESC", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 10095, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_agg", - }, - }, - ], - "location": 10085, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 83, - "stmt_location": 10077, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10214, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 10216, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 10220, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 10222, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 10226, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10228, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 10232, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 10234, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10169, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 10190, - }, - }, - "sortby_dir": "SORTBY_DESC", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 10179, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_agg", - }, - }, - ], - "location": 10169, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 83, - "stmt_location": 10161, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10292, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 10296, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10300, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 10304, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 10308, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 10315, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10254, - "val": { - "FuncCall": { - "agg_distinct": true, - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 10273, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_agg", - }, - }, - ], - "location": 10254, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 78, - "stmt_location": 10245, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10381, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 10385, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10389, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 10393, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 10397, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 10404, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10332, - "val": { - "FuncCall": { - "agg_distinct": true, - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 10362, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 10351, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_agg", - }, - }, - ], - "location": 10332, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 88, - "stmt_location": 10324, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10475, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 10479, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10483, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 10487, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 10491, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 10498, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10421, - "val": { - "FuncCall": { - "agg_distinct": true, - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 10451, - }, - }, - "sortby_dir": "SORTBY_DESC", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 10440, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_agg", - }, - }, - ], - "location": 10421, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 93, - "stmt_location": 10413, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10580, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 10584, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10588, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 10592, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 10596, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 10603, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10515, - "val": { - "FuncCall": { - "agg_distinct": true, - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 10545, - }, - }, - "sortby_dir": "SORTBY_DESC", - "sortby_nulls": "SORTBY_NULLS_LAST", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 10534, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_agg", - }, - }, - ], - "location": 10515, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 104, - "stmt_location": 10507, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10708, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 10710, - }, - }, - { - "A_Const": { - "location": 10712, - "sval": { - "sval": "foo", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 10720, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 10722, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 10727, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 10734, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 10736, - }, - }, - { - "A_Const": { - "location": 10738, - "sval": { - "sval": "bar", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 10746, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10748, - }, - }, - { - "A_Const": { - "location": 10750, - "sval": { - "sval": "baz", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10677, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 10685, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 10687, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 10689, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "aggfstr", - }, - }, - ], - "location": 10677, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 154, - "stmt_location": 10612, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10805, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 10807, - }, - }, - { - "A_Const": { - "location": 10809, - "sval": { - "sval": "foo", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 10817, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 10819, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 10824, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 10831, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 10833, - }, - }, - { - "A_Const": { - "location": 10835, - "sval": { - "sval": "bar", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 10843, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10845, - }, - }, - { - "A_Const": { - "location": 10847, - "sval": { - "sval": "baz", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10775, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 10782, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 10784, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 10786, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "aggfns", - }, - }, - ], - "location": 10775, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 96, - "stmt_location": 10767, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10913, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 10915, - }, - }, - { - "A_Const": { - "location": 10917, - "sval": { - "sval": "foo", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 10925, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 10927, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 10932, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 10939, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 10941, - }, - }, - { - "A_Const": { - "location": 10943, - "sval": { - "sval": "bar", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 10951, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10953, - }, - }, - { - "A_Const": { - "location": 10955, - "sval": { - "sval": "baz", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - { - "RangeFunction": { - "alias": { - "aliasname": "i", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10996, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 10998, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 10980, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10873, - "val": { - "FuncCall": { - "agg_distinct": true, - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 10890, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 10892, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 10894, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "aggfstr", - }, - }, - ], - "location": 10873, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 138, - "stmt_location": 10864, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11050, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 11052, - }, - }, - { - "A_Const": { - "location": 11054, - "sval": { - "sval": "foo", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 11062, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 11064, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 11069, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11076, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11078, - }, - }, - { - "A_Const": { - "location": 11080, - "sval": { - "sval": "bar", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 11088, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11090, - }, - }, - { - "A_Const": { - "location": 11092, - "sval": { - "sval": "baz", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - { - "RangeFunction": { - "alias": { - "aliasname": "i", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11133, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 11135, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 11117, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11011, - "val": { - "FuncCall": { - "agg_distinct": true, - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 11027, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 11029, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 11031, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "aggfns", - }, - }, - ], - "location": 11011, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 136, - "stmt_location": 11003, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11200, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 11202, - }, - }, - { - "A_Const": { - "location": 11204, - "sval": { - "sval": "foo", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 11212, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 11214, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 11219, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11226, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11228, - }, - }, - { - "A_Const": { - "location": 11230, - "sval": { - "sval": "bar", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 11238, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11240, - }, - }, - { - "A_Const": { - "location": 11242, - "sval": { - "sval": "baz", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - { - "RangeFunction": { - "alias": { - "aliasname": "i", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11283, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 11285, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 11267, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11149, - "val": { - "FuncCall": { - "agg_distinct": true, - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 11181, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 11166, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 11168, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 11170, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "aggfstr", - }, - }, - ], - "location": 11149, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 149, - "stmt_location": 11140, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11348, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 11350, - }, - }, - { - "A_Const": { - "location": 11352, - "sval": { - "sval": "foo", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 11360, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 11362, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 11367, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11374, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11376, - }, - }, - { - "A_Const": { - "location": 11378, - "sval": { - "sval": "bar", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 11386, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11388, - }, - }, - { - "A_Const": { - "location": 11390, - "sval": { - "sval": "baz", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - { - "RangeFunction": { - "alias": { - "aliasname": "i", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11431, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 11433, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 11415, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11298, - "val": { - "FuncCall": { - "agg_distinct": true, - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 11329, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 11314, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 11316, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 11318, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "aggfns", - }, - }, - ], - "location": 11298, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 147, - "stmt_location": 11290, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11538, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 11540, - }, - }, - { - "A_Const": { - "location": 11542, - "sval": { - "sval": "foo", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 11550, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 11552, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 11557, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11564, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11566, - }, - }, - { - "A_Const": { - "location": 11568, - "sval": { - "sval": "bar", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 11576, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11578, - }, - }, - { - "A_Const": { - "location": 11580, - "sval": { - "sval": "baz", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - { - "RangeFunction": { - "alias": { - "aliasname": "i", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11621, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11623, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 11605, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11476, - "val": { - "FuncCall": { - "agg_distinct": true, - "agg_order": [ - { - "SortBy": { - "location": 11515, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 11507, - }, - }, - "sortby_dir": "SORTBY_USING", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - "useOp": [ - { - "String": { - "sval": "~<~", - }, - }, - ], - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 11519, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 11492, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 11494, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 11496, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "aggfns", - }, - }, - ], - "location": 11476, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 189, - "stmt_location": 11438, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11696, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 11698, - }, - }, - { - "A_Const": { - "location": 11700, - "sval": { - "sval": "foo", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 11708, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 11710, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 11715, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11722, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11724, - }, - }, - { - "A_Const": { - "location": 11726, - "sval": { - "sval": "bar", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 11734, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11736, - }, - }, - { - "A_Const": { - "location": 11738, - "sval": { - "sval": "baz", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - { - "RangeFunction": { - "alias": { - "aliasname": "i", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11779, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11781, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 11763, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11636, - "val": { - "FuncCall": { - "agg_distinct": true, - "agg_order": [ - { - "SortBy": { - "location": 11675, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 11667, - }, - }, - "sortby_dir": "SORTBY_USING", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - "useOp": [ - { - "String": { - "sval": "~<~", - }, - }, - ], - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 11652, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 11654, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 11656, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "aggfns", - }, - }, - ], - "location": 11636, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 157, - "stmt_location": 11628, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11844, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 11846, - }, - }, - { - "A_Const": { - "location": 11848, - "sval": { - "sval": "foo", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 11856, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 11858, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 11863, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11870, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11872, - }, - }, - { - "A_Const": { - "location": 11874, - "sval": { - "sval": "bar", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 11882, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11884, - }, - }, - { - "A_Const": { - "location": 11886, - "sval": { - "sval": "baz", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - { - "RangeFunction": { - "alias": { - "aliasname": "i", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11927, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11929, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 11911, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11794, - "val": { - "FuncCall": { - "agg_distinct": true, - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 11825, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 11810, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 11812, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 11814, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "aggfns", - }, - }, - ], - "location": 11794, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 147, - "stmt_location": 11786, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 12006, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 12008, - }, - }, - { - "A_Const": { - "location": 12010, - "sval": { - "sval": "foo", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 12018, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 12020, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 12025, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 12032, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 12034, - }, - }, - { - "A_Const": { - "location": 12036, - "sval": { - "sval": "bar", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 12044, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 12046, - }, - }, - { - "A_Const": { - "location": 12048, - "sval": { - "sval": "baz", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - { - "RangeFunction": { - "alias": { - "aliasname": "i", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 12089, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 12091, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 12073, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11942, - "val": { - "FuncCall": { - "agg_distinct": true, - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 11973, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": 11983, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 11975, - }, - }, - "sortby_dir": "SORTBY_USING", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - "useOp": [ - { - "String": { - "sval": "~<~", - }, - }, - ], - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 11987, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 11958, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 11960, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 11962, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "aggfns", - }, - }, - ], - "location": 11942, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 161, - "stmt_location": 11934, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 12233, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 12235, - }, - }, - { - "A_Const": { - "location": 12237, - "sval": { - "sval": "foo", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 12245, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 12247, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 12252, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 12259, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 12261, - }, - }, - { - "A_Const": { - "location": 12263, - "sval": { - "sval": "bar", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 12271, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 12273, - }, - }, - { - "A_Const": { - "location": 12275, - "sval": { - "sval": "baz", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12201, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 12208, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 12210, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 12212, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "aggfns", - }, - }, - ], - "location": 12201, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 12179, - "relname": "agg_view1", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 195, - "stmt_location": 12096, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 12308, - "relname": "agg_view1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12301, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 12301, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 12292, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12326, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 12341, - "sval": { - "sval": "agg_view1", - }, - }, - }, - "location": 12352, - "typeName": { - "location": 12354, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 12326, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 12318, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 12452, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 12454, - }, - }, - { - "A_Const": { - "location": 12456, - "sval": { - "sval": "foo", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 12464, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 12466, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 12471, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 12478, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 12480, - }, - }, - { - "A_Const": { - "location": 12482, - "sval": { - "sval": "bar", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 12490, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 12492, - }, - }, - { - "A_Const": { - "location": 12494, - "sval": { - "sval": "baz", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - { - "RangeFunction": { - "alias": { - "aliasname": "i", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 12537, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 12539, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 12521, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12411, - "val": { - "FuncCall": { - "agg_distinct": true, - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 12427, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 12429, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 12431, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "aggfns", - }, - }, - ], - "location": 12411, - }, - }, - }, - }, - ], - }, - }, - "replace": true, - "view": { - "inh": true, - "location": 12389, - "relname": "agg_view1", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 179, - "stmt_location": 12364, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 12560, - "relname": "agg_view1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12553, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 12553, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 12544, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12578, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 12593, - "sval": { - "sval": "agg_view1", - }, - }, - }, - "location": 12604, - "typeName": { - "location": 12606, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 12578, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 12570, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 12715, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 12717, - }, - }, - { - "A_Const": { - "location": 12719, - "sval": { - "sval": "foo", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 12727, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 12729, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 12734, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 12741, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 12743, - }, - }, - { - "A_Const": { - "location": 12745, - "sval": { - "sval": "bar", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 12753, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 12755, - }, - }, - { - "A_Const": { - "location": 12757, - "sval": { - "sval": "baz", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - { - "RangeFunction": { - "alias": { - "aliasname": "i", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 12800, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 12802, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 12784, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12663, - "val": { - "FuncCall": { - "agg_distinct": true, - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 12694, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 12679, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 12681, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 12683, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "aggfns", - }, - }, - ], - "location": 12663, - }, - }, - }, - }, - ], - }, - }, - "replace": true, - "view": { - "inh": true, - "location": 12641, - "relname": "agg_view1", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 190, - "stmt_location": 12616, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 12823, - "relname": "agg_view1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12816, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 12816, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 12807, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12841, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 12856, - "sval": { - "sval": "agg_view1", - }, - }, - }, - "location": 12867, - "typeName": { - "location": 12869, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 12841, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 12833, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 12971, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 12973, - }, - }, - { - "A_Const": { - "location": 12975, - "sval": { - "sval": "foo", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 12983, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 12985, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 12990, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 12997, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 12999, - }, - }, - { - "A_Const": { - "location": 13001, - "sval": { - "sval": "bar", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 13009, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 13011, - }, - }, - { - "A_Const": { - "location": 13013, - "sval": { - "sval": "baz", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12926, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 12948, - }, - }, - "location": 12949, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 12950, - }, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 12933, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 12935, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 12937, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "aggfns", - }, - }, - ], - "location": 12926, - }, - }, - }, - }, - ], - }, - }, - "replace": true, - "view": { - "inh": true, - "location": 12904, - "relname": "agg_view1", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 150, - "stmt_location": 12879, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 13046, - "relname": "agg_view1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13039, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 13039, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 13030, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13064, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 13079, - "sval": { - "sval": "agg_view1", - }, - }, - }, - "location": 13090, - "typeName": { - "location": 13092, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 13064, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 13056, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 13192, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 13194, - }, - }, - { - "A_Const": { - "location": 13196, - "sval": { - "sval": "foo", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 13204, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 13206, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 13211, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 13218, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 13220, - }, - }, - { - "A_Const": { - "location": 13222, - "sval": { - "sval": "bar", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 13230, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 13232, - }, - }, - { - "A_Const": { - "location": 13234, - "sval": { - "sval": "baz", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13149, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 13171, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 13156, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 13158, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 13160, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "aggfns", - }, - }, - ], - "location": 13149, - }, - }, - }, - }, - ], - }, - }, - "replace": true, - "view": { - "inh": true, - "location": 13127, - "relname": "agg_view1", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 148, - "stmt_location": 13102, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 13267, - "relname": "agg_view1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13260, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 13260, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 13251, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13285, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 13300, - "sval": { - "sval": "agg_view1", - }, - }, - }, - "location": 13311, - "typeName": { - "location": 13313, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 13285, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 13277, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 13423, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 13425, - }, - }, - { - "A_Const": { - "location": 13427, - "sval": { - "sval": "foo", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 13435, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 13437, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 13442, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 13449, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 13451, - }, - }, - { - "A_Const": { - "location": 13453, - "sval": { - "sval": "bar", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 13461, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 13463, - }, - }, - { - "A_Const": { - "location": 13465, - "sval": { - "sval": "baz", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13370, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": 13400, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 13392, - }, - }, - "sortby_dir": "SORTBY_USING", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - "useOp": [ - { - "String": { - "sval": "~<~", - }, - }, - ], - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 13377, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 13379, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 13381, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "aggfns", - }, - }, - ], - "location": 13370, - }, - }, - }, - }, - ], - }, - }, - "replace": true, - "view": { - "inh": true, - "location": 13348, - "relname": "agg_view1", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 158, - "stmt_location": 13323, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 13498, - "relname": "agg_view1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13491, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 13491, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 13482, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13516, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 13531, - "sval": { - "sval": "agg_view1", - }, - }, - }, - "location": 13542, - "typeName": { - "location": 13544, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 13516, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 13508, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 13667, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 13669, - }, - }, - { - "A_Const": { - "location": 13671, - "sval": { - "sval": "foo", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 13679, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 13681, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 13686, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 13693, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 13695, - }, - }, - { - "A_Const": { - "location": 13697, - "sval": { - "sval": "bar", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 13705, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 13707, - }, - }, - { - "A_Const": { - "location": 13709, - "sval": { - "sval": "baz", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - { - "RangeFunction": { - "alias": { - "aliasname": "i", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 13752, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 13754, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 13736, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13601, - "val": { - "FuncCall": { - "agg_distinct": true, - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 13632, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": 13642, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 13634, - }, - }, - "sortby_dir": "SORTBY_USING", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - "useOp": [ - { - "String": { - "sval": "~<~", - }, - }, - ], - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 13646, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 13617, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 13619, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 13621, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "aggfns", - }, - }, - ], - "location": 13601, - }, - }, - }, - }, - ], - }, - }, - "replace": true, - "view": { - "inh": true, - "location": 13579, - "relname": "agg_view1", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 204, - "stmt_location": 13554, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 13775, - "relname": "agg_view1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13768, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 13768, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 13759, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13793, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 13808, - "sval": { - "sval": "agg_view1", - }, - }, - }, - "location": 13819, - "typeName": { - "location": 13821, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 13793, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 13785, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "agg_view1", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_VIEW", - }, - }, - "stmt_len": 21, - "stmt_location": 13831, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 13948, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 13950, - }, - }, - { - "A_Const": { - "location": 13952, - "sval": { - "sval": "foo", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - { - "RangeFunction": { - "alias": { - "aliasname": "i", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 13986, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 13988, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 13970, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13898, - "val": { - "FuncCall": { - "agg_distinct": true, - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 13929, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 13914, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 13916, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 13918, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "aggfns", - }, - }, - ], - "location": 13898, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 139, - "stmt_location": 13853, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 14055, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 14057, - }, - }, - { - "A_Const": { - "location": 14059, - "sval": { - "sval": "foo", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - { - "RangeFunction": { - "alias": { - "aliasname": "i", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 14093, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 14095, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 14077, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14001, - "val": { - "FuncCall": { - "agg_distinct": true, - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 14032, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 14034, - }, - }, - "location": 14035, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 14036, - }, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 14017, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 14019, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 14021, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "aggfns", - }, - }, - ], - "location": 14001, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 106, - "stmt_location": 13993, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 14164, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 14166, - }, - }, - { - "A_Const": { - "location": 14168, - "sval": { - "sval": "foo", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - { - "RangeFunction": { - "alias": { - "aliasname": "i", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 14202, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 14204, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 14186, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14108, - "val": { - "FuncCall": { - "agg_distinct": true, - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 14139, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 14141, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 14143, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 14145, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 14124, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 14126, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 14128, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "aggfns", - }, - }, - ], - "location": 14108, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 108, - "stmt_location": 14100, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 14269, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 14271, - }, - }, - { - "A_Const": { - "location": 14273, - "sval": { - "sval": "foo", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - { - "RangeFunction": { - "alias": { - "aliasname": "i", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 14307, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 14309, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 14291, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14217, - "val": { - "FuncCall": { - "agg_distinct": true, - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 14248, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 14250, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 14233, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 14235, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 14237, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "aggfns", - }, - }, - ], - "location": 14217, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 104, - "stmt_location": 14209, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "g", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 14374, - "sval": { - "sval": "aaaa", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 14383, - "sval": { - "sval": "bbbb", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 14392, - "sval": { - "sval": "cccc", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14343, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 14354, - }, - }, - { - "A_Const": { - "location": 14356, - "sval": { - "sval": ",", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "string_agg", - }, - }, - ], - "location": 14343, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 91, - "stmt_location": 14314, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "g", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 14445, - "sval": { - "sval": "aaaa", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 14454, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 14461, - "sval": { - "sval": "bbbb", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 14470, - "sval": { - "sval": "cccc", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14414, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 14425, - }, - }, - { - "A_Const": { - "location": 14427, - "sval": { - "sval": ",", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "string_agg", - }, - }, - ], - "location": 14414, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 77, - "stmt_location": 14406, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "g", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 14524, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 14531, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 14538, - "sval": { - "sval": "bbbb", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 14547, - "sval": { - "sval": "cccc", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14492, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 14503, - }, - }, - { - "A_Const": { - "location": 14505, - "sval": { - "sval": "AB", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "string_agg", - }, - }, - ], - "location": 14492, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 76, - "stmt_location": 14484, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "g", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 14600, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 14607, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14569, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 14580, - }, - }, - { - "A_Const": { - "location": 14582, - "sval": { - "sval": ",", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "string_agg", - }, - }, - ], - "location": 14569, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 14561, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 14729, - "relname": "varchar_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14683, - "val": { - "FuncCall": { - "agg_distinct": true, - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 14720, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 14703, - }, - }, - { - "A_Const": { - "location": 14707, - "sval": { - "sval": ",", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "string_agg", - }, - }, - ], - "location": 14683, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 121, - "stmt_location": 14619, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 14808, - "relname": "varchar_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14756, - "val": { - "FuncCall": { - "agg_distinct": true, - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 14799, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 14776, - }, - }, - "location": 14778, - "typeName": { - "location": 14780, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 14786, - "sval": { - "sval": ",", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "string_agg", - }, - }, - ], - "location": 14756, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 78, - "stmt_location": 14741, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 14891, - "relname": "varchar_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14839, - "val": { - "FuncCall": { - "agg_distinct": true, - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 14876, - }, - }, - "location": 14878, - "typeName": { - "location": 14880, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 14859, - }, - }, - { - "A_Const": { - "location": 14863, - "sval": { - "sval": ",", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "string_agg", - }, - }, - ], - "location": 14839, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 82, - "stmt_location": 14820, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 14980, - "relname": "varchar_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14922, - "val": { - "FuncCall": { - "agg_distinct": true, - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 14965, - }, - }, - "location": 14967, - "typeName": { - "location": 14969, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 14942, - }, - }, - "location": 14944, - "typeName": { - "location": 14946, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 14952, - "sval": { - "sval": ",", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "string_agg", - }, - }, - ], - "location": 14922, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 88, - "stmt_location": 14903, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 15040, - "relname": "bytea_test_table", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "v", - "is_local": true, - "location": 15057, - "typeName": { - "location": 15059, - "names": [ - { - "String": { - "sval": "bytea", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 14992, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 15098, - "relname": "bytea_test_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15075, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 15086, - }, - }, - { - "A_Const": { - "location": 15089, - "sval": { - "sval": "", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "string_agg", - }, - }, - ], - "location": 15075, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 48, - "stmt_location": 15066, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 15129, - "relname": "bytea_test_table", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 15160, - "sval": { - "sval": "ff", - }, - }, - }, - { - "A_Const": { - "location": 15165, - "sval": { - "sval": "hex", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "decode", - }, - }, - ], - "location": 15153, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 57, - "stmt_location": 15115, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 15205, - "relname": "bytea_test_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15182, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 15193, - }, - }, - { - "A_Const": { - "location": 15196, - "sval": { - "sval": "", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "string_agg", - }, - }, - ], - "location": 15182, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 48, - "stmt_location": 15173, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 15236, - "relname": "bytea_test_table", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 15267, - "sval": { - "sval": "aa", - }, - }, - }, - { - "A_Const": { - "location": 15272, - "sval": { - "sval": "hex", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "decode", - }, - }, - ], - "location": 15260, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 57, - "stmt_location": 15222, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 15312, - "relname": "bytea_test_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15289, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 15300, - }, - }, - { - "A_Const": { - "location": 15303, - "sval": { - "sval": "", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "string_agg", - }, - }, - ], - "location": 15289, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 48, - "stmt_location": 15280, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 15362, - "relname": "bytea_test_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15337, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 15348, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 15351, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "string_agg", - }, - }, - ], - "location": 15337, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 49, - "stmt_location": 15329, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 15427, - "relname": "bytea_test_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15387, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 15398, - }, - }, - { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 15408, - "sval": { - "sval": "ee", - }, - }, - }, - { - "A_Const": { - "location": 15414, - "sval": { - "sval": "hex", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "decode", - }, - }, - ], - "location": 15401, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "string_agg", - }, - }, - ], - "location": 15387, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 64, - "stmt_location": 15379, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "bytea_test_table", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 29, - "stmt_location": 15444, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 15547, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15500, - "val": { - "FuncCall": { - "agg_filter": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 15527, - }, - }, - "location": 15535, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 100, - }, - "location": 15537, - }, - }, - }, - }, - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 15504, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 15500, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 78, - "stmt_location": 15474, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 15625, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 15641, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15562, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 15562, - }, - }, - }, - }, - { - "ResTarget": { - "location": 15567, - "val": { - "FuncCall": { - "agg_distinct": true, - "agg_filter": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 15600, - }, - }, - "location": 15604, - "typeName": { - "location": 15606, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 15611, - "name": [ - { - "String": { - "sval": "~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 15613, - "sval": { - "sval": "123", - }, - }, - }, - }, - }, - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 15580, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 15567, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 91, - "stmt_location": 15553, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 15708, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 15724, - }, - }, - ], - "havingClause": { - "SubLink": { - "location": 15735, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 15757, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15750, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 15750, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "agg_distinct": true, - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "four", - }, - }, - ], - "location": 15783, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 15770, - }, - }, - "location": 15791, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "four", - }, - }, - ], - "location": 15793, - }, - }, - }, - }, - }, - }, - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15654, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 15654, - }, - }, - }, - }, - { - "ResTarget": { - "location": 15659, - "val": { - "FuncCall": { - "agg_distinct": true, - "agg_filter": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 15692, - }, - }, - "location": 15697, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 15699, - }, - }, - }, - }, - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 15672, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 15659, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 155, - "stmt_location": 15645, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "foo", - }, - }, - { - "String": { - "sval": "bar", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 15888, - "sval": { - "sval": "a", - }, - }, - }, - { - "A_Const": { - "location": 15893, - "sval": { - "sval": "b", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15810, - "val": { - "FuncCall": { - "agg_filter": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "bar", - }, - }, - ], - "location": 15846, - }, - }, - "collname": [ - { - "String": { - "sval": "POSIX", - }, - }, - ], - "location": 15850, - }, - }, - "location": 15867, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 15869, - "sval": { - "sval": "0", - }, - }, - }, - }, - }, - "args": [ - { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "foo", - }, - }, - ], - "location": 15814, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 15818, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 15810, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 111, - "stmt_location": 15801, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "t1", - "colnames": [ - { - "String": { - "sval": "outer_c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 16044, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 16048, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15974, - "val": { - "SubLink": { - "location": 15974, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "t0", - "colnames": [ - { - "String": { - "sval": "inner_c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 16013, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15982, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 15982, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 150, - "stmt_location": 15913, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "t1", - "colnames": [ - { - "String": { - "sval": "outer_c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 16206, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 16210, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16108, - "val": { - "SubLink": { - "location": 16108, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "t0", - "colnames": [ - { - "String": { - "sval": "inner_c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 16175, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16116, - "val": { - "FuncCall": { - "agg_filter": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "outer_c", - }, - }, - ], - "location": 16139, - }, - }, - "location": 16147, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 16150, - }, - }, - }, - }, - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 16116, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 161, - "stmt_location": 16064, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "t1", - "colnames": [ - { - "String": { - "sval": "outer_c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 16374, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 16378, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16270, - "val": { - "SubLink": { - "location": 16270, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "t0", - "colnames": [ - { - "String": { - "sval": "inner_c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 16343, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16278, - "val": { - "FuncCall": { - "agg_filter": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "outer_c", - }, - }, - ], - "location": 16307, - }, - }, - "location": 16315, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 16318, - }, - }, - }, - }, - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "inner_c", - }, - }, - ], - "location": 16284, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 16278, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 167, - "stmt_location": 16226, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "o", - }, - "inh": true, - "location": 16554, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16440, - "val": { - "SubLink": { - "location": 16440, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16448, - "val": { - "FuncCall": { - "agg_filter": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "o", - }, - }, - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 16532, - }, - }, - "location": 16542, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 16544, - }, - }, - }, - }, - "args": [ - { - "SubLink": { - "location": 16452, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 16475, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16460, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "unique2", - }, - }, - ], - "location": 16460, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 16489, - }, - }, - "location": 16499, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "o", - }, - }, - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 16501, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 16448, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 167, - "stmt_location": 16394, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 16756, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16663, - "val": { - "FuncCall": { - "agg_filter": { - "SubLink": { - "location": 16700, - "subLinkType": "ANY_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 16724, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16711, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 16711, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 16735, - }, - }, - "location": 16743, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 100, - }, - "location": 16745, - }, - }, - }, - }, - }, - }, - "testexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 16692, - }, - }, - }, - }, - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 16667, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 16663, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 199, - "stmt_location": 16562, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 16906, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 16908, - }, - }, - { - "A_Const": { - "location": 16910, - "sval": { - "sval": "foo", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 16918, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 16920, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 16925, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 16932, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 16934, - }, - }, - { - "A_Const": { - "location": 16936, - "sval": { - "sval": "bar", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 16944, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 16946, - }, - }, - { - "A_Const": { - "location": 16948, - "sval": { - "sval": "baz", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - { - "RangeFunction": { - "alias": { - "aliasname": "i", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 16986, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 16988, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 16970, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16819, - "val": { - "FuncCall": { - "agg_distinct": true, - "agg_filter": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 16881, - }, - }, - "location": 16883, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 16885, - }, - }, - }, - }, - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 16850, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": 16860, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 16852, - }, - }, - "sortby_dir": "SORTBY_USING", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - "useOp": [ - { - "String": { - "sval": "~<~", - }, - }, - ], - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 16864, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 16835, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 16837, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 16839, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "aggfns", - }, - }, - ], - "location": 16819, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 230, - "stmt_location": 16762, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 17897, - "relname": "aggtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17845, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 17889, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 17861, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "percentile_cont", - }, - }, - ], - "location": 17845, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 911, - "stmt_location": 16993, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 17973, - "relname": "aggtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17913, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 17957, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 17929, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "percentile_cont", - }, - }, - ], - "location": 17913, - }, - }, - }, - }, - { - "ResTarget": { - "location": 17961, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 17965, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 17961, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 75, - "stmt_location": 17905, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 18048, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17989, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 18033, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 18005, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "percentile_cont", - }, - }, - ], - "location": 17989, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 72, - "stmt_location": 17981, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 18121, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18062, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 18106, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 18078, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "percentile_disc", - }, - }, - ], - "location": 18062, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 72, - "stmt_location": 18054, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18183, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18187, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 18191, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 18195, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 18199, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 18203, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 18207, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18135, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 18166, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 18140, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "rank", - }, - }, - ], - "location": 18135, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 88, - "stmt_location": 18127, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18277, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18281, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 18285, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 18289, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 18293, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 18297, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 18301, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18224, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 18260, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 18234, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "cume_dist", - }, - }, - ], - "location": 18224, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 93, - "stmt_location": 18216, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18374, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18378, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 18382, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 18386, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 18390, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 18394, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 18398, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 18402, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18318, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 18357, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 18331, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "percent_rank", - }, - }, - ], - "location": 18318, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 100, - "stmt_location": 18310, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18473, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18477, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 18481, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 18485, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 18489, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 18493, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 18497, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18419, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 18456, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 18430, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "dense_rank", - }, - }, - ], - "location": 18419, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 94, - "stmt_location": 18411, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 18603, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18515, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 18588, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "ival": {}, - "location": 18537, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.1", - }, - "location": 18539, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.25", - }, - "location": 18543, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 18548, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.75", - }, - "location": 18552, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.9", - }, - "location": 18557, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18561, - }, - }, - ], - "location": 18531, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "percentile_disc", - }, - }, - ], - "location": 18515, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 102, - "stmt_location": 18506, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 18697, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18617, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 18682, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "ival": {}, - "location": 18639, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.25", - }, - "location": 18641, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 18646, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.75", - }, - "location": 18650, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18655, - }, - }, - ], - "location": 18633, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "percentile_cont", - }, - }, - ], - "location": 18617, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 93, - "stmt_location": 18609, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 18803, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18711, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 18788, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "A_ArrayExpr": { - "elements": [ - { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "isnull": true, - "location": 18734, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18739, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 18741, - }, - }, - ], - "location": 18733, - }, - }, - { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "fval": { - "fval": "0.75", - }, - "location": 18747, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.25", - }, - "location": 18752, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 18757, - }, - }, - ], - "location": 18746, - }, - }, - ], - "location": 18727, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "percentile_disc", - }, - }, - ], - "location": 18711, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 105, - "stmt_location": 18703, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "x", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18931, - }, - }, - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 18933, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 18915, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18817, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 18907, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "ival": {}, - "location": 18839, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18841, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.25", - }, - "location": 18843, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.75", - }, - "location": 18848, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 18853, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18857, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.3", - }, - "location": 18859, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.32", - }, - "location": 18863, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.35", - }, - "location": 18868, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.38", - }, - "location": 18873, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.4", - }, - "location": 18878, - }, - }, - ], - "location": 18833, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "percentile_cont", - }, - }, - ], - "location": 18817, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 128, - "stmt_location": 18809, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 18996, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 19011, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18947, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 18947, - }, - }, - }, - }, - { - "ResTarget": { - "location": 18952, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "string4", - }, - }, - ], - "location": 18982, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "mode", - }, - }, - ], - "location": 18952, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 76, - "stmt_location": 18938, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "u", - "colnames": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 19100, - "sval": { - "sval": "{fred,jim,fred,jack,jill,fred,jill,jim,jim,sheila,jim,sheila}", - }, - }, - }, - "location": 19163, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 19165, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "unnest", - }, - }, - ], - "location": 19093, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 19024, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 19085, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "fval": { - "fval": "0.25", - }, - "location": 19046, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 19051, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.75", - }, - "location": 19055, - }, - }, - ], - "location": 19040, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "percentile_disc", - }, - }, - ], - "location": 19024, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 162, - "stmt_location": 19015, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 19334, - "sval": { - "sval": "fred", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 19343, - "sval": { - "sval": "jim", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 19239, - "val": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 19298, - }, - }, - "collname": [ - { - "String": { - "sval": "POSIX", - }, - }, - ], - "location": 19300, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 19272, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "percentile_disc", - }, - }, - ], - "location": 19256, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_collation_for", - }, - }, - ], - "location": 19239, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 177, - "stmt_location": 19178, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 19468, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 19472, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 19476, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 19480, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 19484, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 19488, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 19492, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 19415, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 19451, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 19425, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "test_rank", - }, - }, - ], - "location": 19415, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 144, - "stmt_location": 19356, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 19573, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 19509, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 19558, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 19530, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "test_percentile_disc", - }, - }, - ], - "location": 19509, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 77, - "stmt_location": 19501, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "x", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 19704, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 19706, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 19688, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 19649, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 19680, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 19654, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "rank", - }, - }, - ], - "location": 19649, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 131, - "stmt_location": 19579, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "g", - "colnames": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 19928, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 19930, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 19912, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 19789, - "val": { - "SubLink": { - "location": 19789, - "subLinkType": "ARRAY_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "fval": { - "fval": "0.3", - }, - "location": 19876, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "fval": { - "fval": "0.7", - }, - "location": 19882, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 19902, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 19802, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 19844, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 19818, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "percentile_disc", - }, - }, - ], - "location": 19802, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 226, - "stmt_location": 19711, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "x", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 20063, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 20065, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 20047, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 20003, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 20039, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 20012, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 20008, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "rank", - }, - }, - ], - "location": 20003, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 131, - "stmt_location": 19938, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 20193, - "sval": { - "sval": "fred", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 20202, - "sval": { - "sval": "jim", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 20145, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 20176, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 20150, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "rank", - }, - }, - ], - "location": 20145, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 144, - "stmt_location": 20070, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 20278, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 20223, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "stringu1", - }, - }, - ], - "location": 20254, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "stringu2", - }, - }, - ], - "location": 20263, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 20228, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "rank", - }, - }, - ], - "location": 20223, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 68, - "stmt_location": 20215, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "x", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 20352, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 20354, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 20336, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 20292, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 20328, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "A_Const": { - "location": 20297, - "sval": { - "sval": "fred", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "rank", - }, - }, - ], - "location": 20292, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 74, - "stmt_location": 20284, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 20456, - "sval": { - "sval": "fred", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 20465, - "sval": { - "sval": "jim", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 20367, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 20421, - }, - }, - "collname": [ - { - "String": { - "sval": "POSIX", - }, - }, - ], - "location": 20423, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "CollateClause": { - "arg": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 20372, - "sval": { - "sval": "adam", - }, - }, - }, - "location": 20378, - "typeName": { - "location": 20380, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 20385, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "rank", - }, - }, - ], - "location": 20367, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 118, - "stmt_location": 20359, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 20596, - "sval": { - "sval": "fred", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 20605, - "sval": { - "sval": "jim", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 20534, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 20579, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 20539, - "sval": { - "sval": "adam", - }, - }, - }, - "location": 20545, - "typeName": { - "location": 20547, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "rank", - }, - }, - ], - "location": 20534, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 139, - "stmt_location": 20478, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "x", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 20683, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 20685, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 20667, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 20626, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 20659, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "A_Const": { - "location": 20631, - "sval": { - "sval": "3", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "rank", - }, - }, - ], - "location": 20626, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 71, - "stmt_location": 20618, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "x", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 20786, - }, - }, - { - "A_Const": { - "ival": {}, - "location": 20788, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 20770, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 20723, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 20762, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "A_Const": { - "ival": {}, - "location": 20736, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "percent_rank", - }, - }, - ], - "location": 20723, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 102, - "stmt_location": 20690, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 21118, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 21134, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 21147, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 20863, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 20863, - }, - }, - }, - }, - { - "ResTarget": { - "location": 20875, - "name": "p50", - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 20919, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 20891, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "percentile_disc", - }, - }, - ], - "location": 20875, - }, - }, - }, - }, - { - "ResTarget": { - "location": 20944, - "name": "px", - "val": { - "FuncCall": { - "agg_filter": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "hundred", - }, - }, - ], - "location": 21012, - }, - }, - "location": 21019, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 21020, - }, - }, - }, - }, - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 20988, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 20960, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "percentile_disc", - }, - }, - ], - "location": 20944, - }, - }, - }, - }, - { - "ResTarget": { - "location": 21037, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "hundred", - }, - }, - ], - "location": 21079, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "string4", - }, - }, - ], - "location": 21088, - }, - }, - "sortby_dir": "SORTBY_DESC", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "hundred", - }, - }, - ], - "location": 21102, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 21042, - }, - }, - { - "A_Const": { - "location": 21044, - "sval": { - "sval": "AZZZZ", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 50, - }, - "location": 21052, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "rank", - }, - }, - ], - "location": 21037, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 20841, - "relname": "aggordview1", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 357, - "stmt_location": 20793, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 21160, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 21175, - "sval": { - "sval": "aggordview1", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 21160, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 21151, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 21205, - "relname": "aggordview1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 21226, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 21198, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 21198, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 21190, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "aggordview1", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_VIEW", - }, - }, - "stmt_len": 22, - "stmt_location": 21230, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 21307, - "relname": "int8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 21285, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "q1", - }, - }, - ], - "location": 21295, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "q2", - }, - }, - ], - "location": 21298, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "least_agg", - }, - }, - ], - "location": 21285, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 21253, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 21362, - "relname": "int8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 21324, - "val": { - "FuncCall": { - "args": [ - { - "A_ArrayExpr": { - "elements": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "q1", - }, - }, - ], - "location": 21349, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "q2", - }, - }, - ], - "location": 21352, - }, - }, - ], - "location": 21343, - }, - }, - ], - "func_variadic": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "least_agg", - }, - }, - ], - "location": 21324, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 21316, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 87, - "stmt_location": 21371, - }, - }, - { - "RawStmt": { - "stmt": { - "CompositeTypeStmt": { - "coldeflist": [ - { - "ColumnDef": { - "colname": "total", - "is_local": true, - "location": 21487, - "typeName": { - "location": 21493, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "count", - "is_local": true, - "location": 21501, - "typeName": { - "location": 21507, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "typevar": { - "location": 21473, - "relname": "avg_state", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 55, - "stmt_location": 21459, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "avg_transfn", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -declare new_state avg_state; -begin - raise notice 'avg_transfn called with %', n; - if state is null then - if n is not null then - new_state.total := n; - new_state.count := 1; - return new_state; - end if; - return null; - elsif n is not null then - state.total := state.total + n; - state.count := state.count + 1; - return state; - end if; - - return null; -end -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 21598, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 21969, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 21562, - "names": [ - { - "String": { - "sval": "avg_state", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "state", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 21575, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "n", - }, - }, - ], - "replace": true, - "returnType": { - "location": 21588, - "names": [ - { - "String": { - "sval": "avg_state", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 470, - "stmt_location": 21515, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "avg_finalfn", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -begin - if state is null then - return NULL; - else - return state.total / state.count; - end if; -end -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 22046, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 22154, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 22022, - "names": [ - { - "String": { - "sval": "avg_state", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "state", - }, - }, - ], - "returnType": { - "location": 22041, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 184, - "stmt_location": 21986, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "sum_finalfn", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -begin - if state is null then - return NULL; - else - return state.total; - end if; -end -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 22231, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 22325, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 22207, - "names": [ - { - "String": { - "sval": "avg_state", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "state", - }, - }, - ], - "returnType": { - "location": 22226, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 170, - "stmt_location": 22171, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "args": [ - { - "List": { - "items": [ - { - "FunctionParameter": { - "argType": { - "location": 22368, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - }, - }, - { - "Integer": { - "ival": -1, - }, - }, - ], - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 22387, - "names": [ - { - "String": { - "sval": "avg_state", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 22379, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 22409, - "names": [ - { - "String": { - "sval": "avg_transfn", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 22401, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 22437, - "names": [ - { - "String": { - "sval": "avg_finalfn", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "finalfunc", - "location": 22425, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "my_avg", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 108, - "stmt_location": 22342, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "args": [ - { - "List": { - "items": [ - { - "FunctionParameter": { - "argType": { - "location": 22477, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - }, - }, - { - "Integer": { - "ival": -1, - }, - }, - ], - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 22496, - "names": [ - { - "String": { - "sval": "avg_state", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 22488, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 22518, - "names": [ - { - "String": { - "sval": "avg_transfn", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 22510, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 22546, - "names": [ - { - "String": { - "sval": "sum_finalfn", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "finalfunc", - "location": 22534, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "my_sum", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 108, - "stmt_location": 22451, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "t", - "colnames": [ - { - "String": { - "sval": "one", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 22664, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 22668, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 22627, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "one", - }, - }, - ], - "location": 22634, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "my_avg", - }, - }, - ], - "location": 22627, - }, - }, - }, - }, - { - "ResTarget": { - "location": 22639, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "one", - }, - }, - ], - "location": 22646, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "my_avg", - }, - }, - ], - "location": 22639, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 118, - "stmt_location": 22560, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "t", - "colnames": [ - { - "String": { - "sval": "one", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 22799, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 22803, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 22762, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "one", - }, - }, - ], - "location": 22769, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "my_avg", - }, - }, - ], - "location": 22762, - }, - }, - }, - }, - { - "ResTarget": { - "location": 22774, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "one", - }, - }, - ], - "location": 22781, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "my_sum", - }, - }, - ], - "location": 22774, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 134, - "stmt_location": 22679, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "t", - "colnames": [ - { - "String": { - "sval": "one", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 22933, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 22937, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 22887, - "val": { - "FuncCall": { - "agg_distinct": true, - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "one", - }, - }, - ], - "location": 22903, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "my_avg", - }, - }, - ], - "location": 22887, - }, - }, - }, - }, - { - "ResTarget": { - "location": 22908, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "one", - }, - }, - ], - "location": 22915, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "my_sum", - }, - }, - ], - "location": 22908, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 133, - "stmt_location": 22814, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "t", - "colnames": [ - { - "String": { - "sval": "one", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 23082, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 23086, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 23022, - "val": { - "FuncCall": { - "agg_filter": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "one", - }, - }, - ], - "location": 23048, - }, - }, - "location": 23052, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 23054, - }, - }, - }, - }, - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "one", - }, - }, - ], - "location": 23029, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "my_avg", - }, - }, - ], - "location": 23022, - }, - }, - }, - }, - { - "ResTarget": { - "location": 23057, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "one", - }, - }, - ], - "location": 23064, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "my_sum", - }, - }, - ], - "location": 23057, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 148, - "stmt_location": 22948, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "t", - "colnames": [ - { - "String": { - "sval": "one", - }, - }, - { - "String": { - "sval": "two", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 23210, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 23212, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 23216, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 23218, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 23173, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "one", - }, - }, - ], - "location": 23180, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "my_avg", - }, - }, - ], - "location": 23173, - }, - }, - }, - }, - { - "ResTarget": { - "location": 23185, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "two", - }, - }, - ], - "location": 23192, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "my_sum", - }, - }, - ], - "location": 23185, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 135, - "stmt_location": 23097, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "args": [ - { - "List": { - "items": [ - { - "FunctionParameter": { - "argType": { - "location": 23340, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - }, - }, - { - "Integer": { - "ival": -1, - }, - }, - ], - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 23359, - "names": [ - { - "String": { - "sval": "avg_state", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 23351, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 23381, - "names": [ - { - "String": { - "sval": "avg_transfn", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 23373, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 23409, - "names": [ - { - "String": { - "sval": "sum_finalfn", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "finalfunc", - "location": 23397, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "(10,0)", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "initcond", - "location": 23425, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "my_sum_init", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 213, - "stmt_location": 23233, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "args": [ - { - "List": { - "items": [ - { - "FunctionParameter": { - "argType": { - "location": 23478, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - }, - }, - { - "Integer": { - "ival": -1, - }, - }, - ], - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 23497, - "names": [ - { - "String": { - "sval": "avg_state", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 23489, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 23519, - "names": [ - { - "String": { - "sval": "avg_transfn", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 23511, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 23547, - "names": [ - { - "String": { - "sval": "avg_finalfn", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "finalfunc", - "location": 23535, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "(10,0)", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "initcond", - "location": 23563, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "my_avg_init", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 137, - "stmt_location": 23447, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "args": [ - { - "List": { - "items": [ - { - "FunctionParameter": { - "argType": { - "location": 23617, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - }, - }, - { - "Integer": { - "ival": -1, - }, - }, - ], - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 23636, - "names": [ - { - "String": { - "sval": "avg_state", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 23628, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 23658, - "names": [ - { - "String": { - "sval": "avg_transfn", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 23650, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 23686, - "names": [ - { - "String": { - "sval": "avg_finalfn", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "finalfunc", - "location": 23674, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "(4,0)", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "initcond", - "location": 23702, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "my_avg_init2", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 137, - "stmt_location": 23585, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "t", - "colnames": [ - { - "String": { - "sval": "one", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 23831, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 23835, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 23784, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "one", - }, - }, - ], - "location": 23796, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "my_sum_init", - }, - }, - ], - "location": 23784, - }, - }, - }, - }, - { - "ResTarget": { - "location": 23801, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "one", - }, - }, - ], - "location": 23813, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "my_avg_init", - }, - }, - ], - "location": 23801, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 122, - "stmt_location": 23723, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "t", - "colnames": [ - { - "String": { - "sval": "one", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 23966, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 23970, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 23918, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "one", - }, - }, - ], - "location": 23930, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "my_sum_init", - }, - }, - ], - "location": 23918, - }, - }, - }, - }, - { - "ResTarget": { - "location": 23935, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "one", - }, - }, - ], - "location": 23948, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "my_avg_init2", - }, - }, - ], - "location": 23935, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 134, - "stmt_location": 23846, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 10, - "stmt_location": 23981, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 125, - "stmt_location": 23992, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "sum_transfn", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -declare new_state int4; -begin - raise notice 'sum_transfn called with %', n; - if state is null then - if n is not null then - new_state := n; - return new_state; - end if; - return null; - elsif n is not null then - state := state + n; - return state; - end if; - - return null; -end -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 24192, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 24481, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 24165, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "state", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 24173, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "n", - }, - }, - ], - "replace": true, - "returnType": { - "location": 24187, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 379, - "stmt_location": 24118, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "halfsum_finalfn", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -begin - if state is null then - return NULL; - else - return state / 2; - end if; -end -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 24557, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 24649, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 24538, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "state", - }, - }, - ], - "returnType": { - "location": 24552, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 167, - "stmt_location": 24498, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "args": [ - { - "List": { - "items": [ - { - "FunctionParameter": { - "argType": { - "location": 24692, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - }, - }, - { - "Integer": { - "ival": -1, - }, - }, - ], - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 24711, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 24703, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 24728, - "names": [ - { - "String": { - "sval": "sum_transfn", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 24720, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "my_sum", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 75, - "stmt_location": 24666, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "args": [ - { - "List": { - "items": [ - { - "FunctionParameter": { - "argType": { - "location": 24773, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - }, - }, - { - "Integer": { - "ival": -1, - }, - }, - ], - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 24792, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 24784, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 24809, - "names": [ - { - "String": { - "sval": "sum_transfn", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 24801, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 24837, - "names": [ - { - "String": { - "sval": "halfsum_finalfn", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "finalfunc", - "location": 24825, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "my_half_sum", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 112, - "stmt_location": 24742, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "t", - "colnames": [ - { - "String": { - "sval": "one", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 24970, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 24974, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 24978, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 24982, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 24928, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "one", - }, - }, - ], - "location": 24935, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "my_sum", - }, - }, - ], - "location": 24928, - }, - }, - }, - }, - { - "ResTarget": { - "location": 24940, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "one", - }, - }, - ], - "location": 24952, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "my_half_sum", - }, - }, - ], - "location": 24940, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 137, - "stmt_location": 24855, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 10, - "stmt_location": 24993, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/alter_generic.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 148, - "sval": { - "sval": "warning", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "client_min_messages", - }, - }, - "stmt_len": 157, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "missing_ok": true, - "roles": [ - { - "RoleSpec": { - "location": 180, - "rolename": "regtest_alter_user1", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 41, - "stmt_location": 158, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "missing_ok": true, - "roles": [ - { - "RoleSpec": { - "location": 221, - "rolename": "regtest_alter_user2", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 200, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "missing_ok": true, - "roles": [ - { - "RoleSpec": { - "location": 262, - "rolename": "regtest_alter_user3", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 241, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "client_min_messages", - }, - }, - "stmt_len": 27, - "stmt_location": 282, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "role": "regtest_alter_user3", - "stmt_type": "ROLESTMT_USER", - }, - }, - "stmt_len": 33, - "stmt_location": 310, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "role": "regtest_alter_user2", - "stmt_type": "ROLESTMT_USER", - }, - }, - "stmt_len": 32, - "stmt_location": 344, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "RoleSpec": { - "location": 418, - "rolename": "regtest_alter_user3", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "addroleto", - "location": 410, - }, - }, - ], - "role": "regtest_alter_user1", - "stmt_type": "ROLESTMT_USER", - }, - }, - "stmt_len": 60, - "stmt_location": 377, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateSchemaStmt": { - "schemaname": "alt_nsp1", - }, - }, - "stmt_len": 24, - "stmt_location": 438, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateSchemaStmt": { - "schemaname": "alt_nsp2", - }, - }, - "stmt_len": 23, - "stmt_location": 463, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 531, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "String": { - "sval": "alt_nsp1", - }, - }, - { - "String": { - "sval": "alt_nsp2", - }, - }, - ], - "objtype": "OBJECT_SCHEMA", - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 50, - "stmt_location": 487, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 558, - "sval": { - "sval": "alt_nsp1", - }, - }, - }, - { - "A_Const": { - "location": 568, - "sval": { - "sval": "public", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "search_path", - }, - }, - "stmt_len": 36, - "stmt_location": 538, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 635, - "sval": { - "sval": "regtest_alter_user1", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "session_authorization", - }, - }, - "stmt_len": 79, - "stmt_location": 575, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "alt_func1", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 699, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "SELECT $1 + 1", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 714, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 682, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 695, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 77, - "stmt_location": 655, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "alt_func2", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 777, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "SELECT $1 - 1", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 792, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 760, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 773, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 77, - "stmt_location": 733, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 851, - "names": [ - { - "String": { - "sval": "int4pl", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc1", - "location": 842, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 870, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "basetype", - "location": 859, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 885, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype1", - "location": 876, - }, - }, - { - "DefElem": { - "arg": { - "Integer": {}, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "initcond", - "location": 891, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "alt_agg1", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - "oldstyle": true, - }, - }, - "stmt_len": 94, - "stmt_location": 811, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 946, - "names": [ - { - "String": { - "sval": "int4mi", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc1", - "location": 937, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 965, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "basetype", - "location": 954, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 980, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype1", - "location": 971, - }, - }, - { - "DefElem": { - "arg": { - "Integer": {}, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "initcond", - "location": 986, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "alt_agg2", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - "oldstyle": true, - }, - }, - "stmt_len": 94, - "stmt_location": 906, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_func3", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 1028, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 1028, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_func1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 51, - "stmt_location": 1001, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 1121, - "rolename": "regtest_alter_user3", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 1107, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 1107, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_func1", - }, - }, - ], - }, - }, - "objectType": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 87, - "stmt_location": 1053, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "alt_nsp2", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 1195, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 1195, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_func1", - }, - }, - ], - }, - }, - "objectType": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 78, - "stmt_location": 1141, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_func2", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 1274, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 1274, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_func1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 78, - "stmt_location": 1220, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_func3", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 1352, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 1352, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_func1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 77, - "stmt_location": 1299, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 1424, - "rolename": "regtest_alter_user2", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 1410, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 1410, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_func2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 66, - "stmt_location": 1377, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 1516, - "rolename": "regtest_alter_user3", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 1502, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 1502, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_func2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 91, - "stmt_location": 1444, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "alt_nsp1", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 1569, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 1569, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_func2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 57, - "stmt_location": 1536, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "alt_nsp2", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 1642, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 1642, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_func2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 72, - "stmt_location": 1594, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_agg2", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 1701, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 1701, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_agg1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 57, - "stmt_location": 1667, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_agg3", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 1779, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 1779, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_agg1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 77, - "stmt_location": 1725, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 1851, - "rolename": "regtest_alter_user2", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 1837, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 1837, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_agg2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 67, - "stmt_location": 1803, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 1943, - "rolename": "regtest_alter_user3", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 1929, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 1929, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_agg2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 91, - "stmt_location": 1871, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "alt_nsp2", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 1996, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 1996, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_agg2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 57, - "stmt_location": 1963, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 2056, - "sval": { - "sval": "regtest_alter_user2", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "session_authorization", - }, - }, - "stmt_len": 54, - "stmt_location": 2021, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "alt_func1", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 2120, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "SELECT $1 + 2", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 2135, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 2103, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 2116, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 77, - "stmt_location": 2076, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "alt_func2", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 2198, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "SELECT $1 - 2", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 2213, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 2181, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 2194, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 77, - "stmt_location": 2154, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2272, - "names": [ - { - "String": { - "sval": "int4pl", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc1", - "location": 2263, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2291, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "basetype", - "location": 2280, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2306, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype1", - "location": 2297, - }, - }, - { - "DefElem": { - "arg": { - "Integer": { - "ival": 100, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "initcond", - "location": 2312, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "alt_agg1", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - "oldstyle": true, - }, - }, - "stmt_len": 96, - "stmt_location": 2232, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2369, - "names": [ - { - "String": { - "sval": "int4mi", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc1", - "location": 2360, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2388, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "basetype", - "location": 2377, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2403, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype1", - "location": 2394, - }, - }, - { - "DefElem": { - "arg": { - "Integer": { - "ival": -100, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "initcond", - "location": 2409, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "alt_agg2", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - "oldstyle": true, - }, - }, - "stmt_len": 97, - "stmt_location": 2329, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_func4", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 2454, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 2454, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_func3", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 51, - "stmt_location": 2427, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_func4", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 2527, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 2527, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_func1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 72, - "stmt_location": 2479, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 2598, - "rolename": "regtest_alter_user2", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 2584, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 2584, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_func3", - }, - }, - ], - }, - }, - "objectType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 65, - "stmt_location": 2552, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 2680, - "rolename": "regtest_alter_user3", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 2666, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 2666, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_func2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 81, - "stmt_location": 2618, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "alt_nsp2", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 2757, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 2757, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_func3", - }, - }, - ], - }, - }, - "objectType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 81, - "stmt_location": 2700, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "alt_nsp2", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 2835, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 2835, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_func2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 77, - "stmt_location": 2782, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_agg4", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 2914, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 2914, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_agg3", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 77, - "stmt_location": 2860, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_agg4", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 2988, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 2988, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_agg1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 73, - "stmt_location": 2938, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 3060, - "rolename": "regtest_alter_user2", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 3046, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 3046, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_agg3", - }, - }, - ], - }, - }, - "objectType": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 67, - "stmt_location": 3012, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 3143, - "rolename": "regtest_alter_user3", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 3129, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 3129, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_agg2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 82, - "stmt_location": 3080, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "alt_nsp2", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 3221, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 3221, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_agg3", - }, - }, - ], - }, - }, - "objectType": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 82, - "stmt_location": 3163, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "alt_nsp2", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 3295, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 3295, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alt_agg2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 73, - "stmt_location": 3246, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "session_authorization", - }, - }, - "stmt_len": 56, - "stmt_location": 3320, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "p", - }, - "inh": true, - "location": 3454, - "relname": "pg_proc", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "n", - }, - "inh": true, - "location": 3465, - "relname": "pg_namespace", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 3481, - "relname": "pg_authid", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 3604, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proname", - }, - }, - ], - "location": 3613, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3386, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 3386, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3397, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proname", - }, - }, - ], - "location": 3397, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3406, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "prorettype", - }, - }, - ], - "location": 3406, - }, - }, - "location": 3416, - "typeName": { - "location": 3418, - "names": [ - { - "String": { - "sval": "regtype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3427, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proisagg", - }, - }, - ], - "location": 3427, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3437, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "rolname", - }, - }, - ], - "location": 3437, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "pronamespace", - }, - }, - ], - "location": 3501, - }, - }, - "location": 3516, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3518, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "proowner", - }, - }, - ], - "location": 3528, - }, - }, - "location": 3539, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3541, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 3555, - }, - }, - "location": 3565, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 3569, - "sval": { - "sval": "alt_nsp1", - }, - }, - }, - { - "A_Const": { - "location": 3581, - "sval": { - "sval": "alt_nsp2", - }, - }, - }, - ], - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 3524, - }, - }, - }, - }, - "stmt_len": 243, - "stmt_location": 3377, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 3786, - "sval": { - "sval": "regtest_alter_user1", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "session_authorization", - }, - }, - "stmt_len": 184, - "stmt_location": 3621, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateConversionStmt": { - "conversion_name": [ - { - "String": { - "sval": "alt_conv1", - }, - }, - ], - "for_encoding_name": "LATIN1", - "func_name": [ - { - "String": { - "sval": "iso8859_1_to_utf8", - }, - }, - ], - "to_encoding_name": "UTF8", - }, - }, - "stmt_len": 74, - "stmt_location": 3806, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateConversionStmt": { - "conversion_name": [ - { - "String": { - "sval": "alt_conv2", - }, - }, - ], - "for_encoding_name": "LATIN1", - "func_name": [ - { - "String": { - "sval": "iso8859_1_to_utf8", - }, - }, - ], - "to_encoding_name": "UTF8", - }, - }, - "stmt_len": 74, - "stmt_location": 3881, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_conv2", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_conv1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_CONVERSION", - }, - }, - "stmt_len": 48, - "stmt_location": 3956, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_conv3", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_conv1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_CONVERSION", - }, - }, - "stmt_len": 74, - "stmt_location": 4005, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 4124, - "rolename": "regtest_alter_user2", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_conv2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_CONVERSION", - }, - }, - "stmt_len": 63, - "stmt_location": 4080, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 4213, - "rolename": "regtest_alter_user3", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_conv2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_CONVERSION", - }, - }, - "stmt_len": 88, - "stmt_location": 4144, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "alt_nsp2", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_conv2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_CONVERSION", - }, - }, - "stmt_len": 54, - "stmt_location": 4233, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 4323, - "sval": { - "sval": "regtest_alter_user2", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "session_authorization", - }, - }, - "stmt_len": 54, - "stmt_location": 4288, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateConversionStmt": { - "conversion_name": [ - { - "String": { - "sval": "alt_conv1", - }, - }, - ], - "for_encoding_name": "LATIN1", - "func_name": [ - { - "String": { - "sval": "iso8859_1_to_utf8", - }, - }, - ], - "to_encoding_name": "UTF8", - }, - }, - "stmt_len": 74, - "stmt_location": 4343, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateConversionStmt": { - "conversion_name": [ - { - "String": { - "sval": "alt_conv2", - }, - }, - ], - "for_encoding_name": "LATIN1", - "func_name": [ - { - "String": { - "sval": "iso8859_1_to_utf8", - }, - }, - ], - "to_encoding_name": "UTF8", - }, - }, - "stmt_len": 74, - "stmt_location": 4418, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_conv4", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_conv3", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_CONVERSION", - }, - }, - "stmt_len": 48, - "stmt_location": 4493, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_conv4", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_conv1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_CONVERSION", - }, - }, - "stmt_len": 70, - "stmt_location": 4542, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 4657, - "rolename": "regtest_alter_user2", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_conv3", - }, - }, - ], - }, - }, - "objectType": "OBJECT_CONVERSION", - }, - }, - "stmt_len": 63, - "stmt_location": 4613, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 4737, - "rolename": "regtest_alter_user3", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_conv2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_CONVERSION", - }, - }, - "stmt_len": 79, - "stmt_location": 4677, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "alt_nsp2", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_conv3", - }, - }, - ], - }, - }, - "objectType": "OBJECT_CONVERSION", - }, - }, - "stmt_len": 79, - "stmt_location": 4757, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "alt_nsp2", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_conv2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_CONVERSION", - }, - }, - "stmt_len": 70, - "stmt_location": 4837, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "session_authorization", - }, - }, - "stmt_len": 56, - "stmt_location": 4908, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "c", - }, - "inh": true, - "location": 5013, - "relname": "pg_conversion", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "n", - }, - "inh": true, - "location": 5030, - "relname": "pg_namespace", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 5046, - "relname": "pg_authid", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 5169, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "conname", - }, - }, - ], - "location": 5178, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 4974, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 4974, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4985, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "conname", - }, - }, - ], - "location": 4985, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4996, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "rolname", - }, - }, - ], - "location": 4996, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "connamespace", - }, - }, - ], - "location": 5066, - }, - }, - "location": 5081, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 5083, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "conowner", - }, - }, - ], - "location": 5093, - }, - }, - "location": 5104, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 5106, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 5120, - }, - }, - "location": 5130, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 5134, - "sval": { - "sval": "alt_nsp1", - }, - }, - }, - { - "A_Const": { - "location": 5146, - "sval": { - "sval": "alt_nsp2", - }, - }, - }, - ], - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 5089, - }, - }, - }, - }, - "stmt_len": 220, - "stmt_location": 4965, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFdwStmt": { - "fdwname": "alt_fdw1", - }, - }, - "stmt_len": 87, - "stmt_location": 5186, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFdwStmt": { - "fdwname": "alt_fdw2", - }, - }, - "stmt_len": 37, - "stmt_location": 5274, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateForeignServerStmt": { - "fdwname": "alt_fdw1", - "servername": "alt_fserv1", - }, - }, - "stmt_len": 56, - "stmt_location": 5312, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateForeignServerStmt": { - "fdwname": "alt_fdw2", - "servername": "alt_fserv2", - }, - }, - "stmt_len": 55, - "stmt_location": 5369, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_fdw2", - "object": { - "String": { - "sval": "alt_fdw1", - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_FDW", - }, - }, - "stmt_len": 56, - "stmt_location": 5425, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_fdw3", - "object": { - "String": { - "sval": "alt_fdw1", - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_FDW", - }, - }, - "stmt_len": 82, - "stmt_location": 5482, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_fserv2", - "object": { - "String": { - "sval": "alt_fserv1", - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 53, - "stmt_location": 5565, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_fserv3", - "object": { - "String": { - "sval": "alt_fserv1", - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 73, - "stmt_location": 5619, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5723, - "relname": "pg_foreign_data_wrapper", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5710, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fdwname", - }, - }, - ], - "location": 5710, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fdwname", - }, - }, - ], - "location": 5753, - }, - }, - "location": 5761, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 5766, - "sval": { - "sval": "alt_fdw%", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 83, - "stmt_location": 5693, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5798, - "relname": "pg_foreign_server", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5785, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "srvname", - }, - }, - ], - "location": 5785, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "srvname", - }, - }, - ], - "location": 5822, - }, - }, - "location": 5830, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 5835, - "sval": { - "sval": "alt_fserv%", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 70, - "stmt_location": 5777, - }, - }, - { - "RawStmt": { - "stmt": { - "CreatePLangStmt": { - "plhandler": [ - { - "String": { - "sval": "plpgsql_call_handler", - }, - }, - ], - "plname": "alt_lang1", - }, - }, - "stmt_len": 85, - "stmt_location": 5848, - }, - }, - { - "RawStmt": { - "stmt": { - "CreatePLangStmt": { - "plhandler": [ - { - "String": { - "sval": "plpgsql_call_handler", - }, - }, - ], - "plname": "alt_lang2", - }, - }, - "stmt_len": 55, - "stmt_location": 5934, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 6026, - "rolename": "regtest_alter_user1", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "String": { - "sval": "alt_lang1", - }, - }, - "objectType": "OBJECT_LANGUAGE", - }, - }, - "stmt_len": 55, - "stmt_location": 5990, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 6088, - "rolename": "regtest_alter_user2", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "String": { - "sval": "alt_lang2", - }, - }, - "objectType": "OBJECT_LANGUAGE", - }, - }, - "stmt_len": 61, - "stmt_location": 6046, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 6143, - "sval": { - "sval": "regtest_alter_user1", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "session_authorization", - }, - }, - "stmt_len": 54, - "stmt_location": 6108, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_lang2", - "object": { - "String": { - "sval": "alt_lang1", - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_LANGUAGE", - }, - }, - "stmt_len": 45, - "stmt_location": 6163, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_lang3", - "object": { - "String": { - "sval": "alt_lang2", - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_LANGUAGE", - }, - }, - "stmt_len": 73, - "stmt_location": 6209, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_lang3", - "object": { - "String": { - "sval": "alt_lang1", - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_LANGUAGE", - }, - }, - "stmt_len": 69, - "stmt_location": 6283, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 6397, - "rolename": "regtest_alter_user3", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "String": { - "sval": "alt_lang2", - }, - }, - "objectType": "OBJECT_LANGUAGE", - }, - }, - "stmt_len": 63, - "stmt_location": 6353, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 6475, - "rolename": "regtest_alter_user2", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "String": { - "sval": "alt_lang3", - }, - }, - "objectType": "OBJECT_LANGUAGE", - }, - }, - "stmt_len": 77, - "stmt_location": 6417, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 6562, - "rolename": "regtest_alter_user3", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "String": { - "sval": "alt_lang3", - }, - }, - "objectType": "OBJECT_LANGUAGE", - }, - }, - "stmt_len": 86, - "stmt_location": 6495, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "session_authorization", - }, - }, - "stmt_len": 36, - "stmt_location": 6582, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "l", - }, - "inh": true, - "location": 6653, - "relname": "pg_language", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 6668, - "relname": "pg_authid", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "lanname", - }, - }, - ], - "location": 6749, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 6627, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "lanname", - }, - }, - ], - "location": 6627, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6636, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "rolname", - }, - }, - ], - "location": 6636, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "l", - }, - }, - { - "String": { - "sval": "lanowner", - }, - }, - ], - "location": 6688, - }, - }, - "location": 6699, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 6701, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "l", - }, - }, - { - "String": { - "sval": "lanname", - }, - }, - ], - "location": 6711, - }, - }, - "location": 6721, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 6726, - "sval": { - "sval": "alt_lang%", - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 6707, - }, - }, - }, - }, - "stmt_len": 137, - "stmt_location": 6619, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 6803, - "sval": { - "sval": "regtest_alter_user1", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "session_authorization", - }, - }, - "stmt_len": 65, - "stmt_location": 6757, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 6857, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leftarg", - "location": 6847, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 6874, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "rightarg", - "location": 6863, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 6892, - "names": [ - { - "String": { - "sval": "int4mi", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "procedure", - "location": 6880, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "@-@", - }, - }, - ], - "kind": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 77, - "stmt_location": 6823, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 6934, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leftarg", - "location": 6924, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 6951, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "rightarg", - "location": 6940, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 6969, - "names": [ - { - "String": { - "sval": "int4pl", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "procedure", - "location": 6957, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "@+@", - }, - }, - ], - "kind": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 76, - "stmt_location": 6901, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 7020, - "rolename": "regtest_alter_user2", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 6999, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 7005, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "@+@", - }, - }, - ], - }, - }, - "objectType": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 61, - "stmt_location": 6978, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 7113, - "rolename": "regtest_alter_user3", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 7092, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 7098, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "@+@", - }, - }, - ], - }, - }, - "objectType": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 92, - "stmt_location": 7040, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "alt_nsp2", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 7160, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 7166, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "@-@", - }, - }, - ], - }, - }, - "objectType": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 58, - "stmt_location": 7133, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 7236, - "sval": { - "sval": "regtest_alter_user2", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "session_authorization", - }, - }, - "stmt_len": 63, - "stmt_location": 7192, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 7290, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leftarg", - "location": 7280, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 7307, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "rightarg", - "location": 7296, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 7325, - "names": [ - { - "String": { - "sval": "int4mi", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "procedure", - "location": 7313, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "@-@", - }, - }, - ], - "kind": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 77, - "stmt_location": 7256, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 7376, - "rolename": "regtest_alter_user2", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 7355, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 7361, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "@+@", - }, - }, - ], - }, - }, - "objectType": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 61, - "stmt_location": 7334, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 7460, - "rolename": "regtest_alter_user3", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 7439, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 7445, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "@-@", - }, - }, - ], - }, - }, - "objectType": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 83, - "stmt_location": 7396, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "alt_nsp2", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 7532, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 7538, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "@+@", - }, - }, - ], - }, - }, - "objectType": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 83, - "stmt_location": 7480, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "session_authorization", - }, - }, - "stmt_len": 208, - "stmt_location": 7564, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "o", - }, - "inh": true, - "location": 7878, - "relname": "pg_operator", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "n", - }, - "inh": true, - "location": 7893, - "relname": "pg_namespace", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 7909, - "relname": "pg_authid", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 8032, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprname", - }, - }, - ], - "location": 8041, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 7782, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 7782, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7793, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprname", - }, - }, - ], - "location": 7793, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7802, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "rolname", - }, - }, - ], - "location": 7802, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7817, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprleft", - }, - }, - ], - "location": 7817, - }, - }, - "location": 7824, - "typeName": { - "location": 7826, - "names": [ - { - "String": { - "sval": "regtype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7835, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprright", - }, - }, - ], - "location": 7835, - }, - }, - "location": 7843, - "typeName": { - "location": 7845, - "names": [ - { - "String": { - "sval": "regtype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7854, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprcode", - }, - }, - ], - "location": 7854, - }, - }, - "location": 7861, - "typeName": { - "location": 7863, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "o", - }, - }, - { - "String": { - "sval": "oprnamespace", - }, - }, - ], - "location": 7929, - }, - }, - "location": 7944, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 7946, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "o", - }, - }, - { - "String": { - "sval": "oprowner", - }, - }, - ], - "location": 7956, - }, - }, - "location": 7967, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 7969, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 7983, - }, - }, - "location": 7993, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 7997, - "sval": { - "sval": "alt_nsp1", - }, - }, - }, - { - "A_Const": { - "location": 8009, - "sval": { - "sval": "alt_nsp2", - }, - }, - }, - ], - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 7952, - }, - }, - }, - }, - "stmt_len": 275, - "stmt_location": 7773, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateOpFamilyStmt": { - "amname": "hash", - "opfamilyname": [ - { - "String": { - "sval": "alt_opf1", - }, - }, - ], - }, - }, - "stmt_len": 74, - "stmt_location": 8049, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateOpFamilyStmt": { - "amname": "hash", - "opfamilyname": [ - { - "String": { - "sval": "alt_opf2", - }, - }, - ], - }, - }, - "stmt_len": 43, - "stmt_location": 8124, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 8220, - "rolename": "regtest_alter_user1", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opf1", - }, - }, - ], - }, - }, - "objectType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 71, - "stmt_location": 8168, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 8292, - "rolename": "regtest_alter_user1", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opf2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 71, - "stmt_location": 8240, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateOpClassStmt": { - "amname": "hash", - "datatype": { - "location": 8354, - "names": [ - { - "String": { - "sval": "uuid", - }, - }, - ], - "typemod": -1, - }, - "items": [ - { - "CreateOpClassItem": { - "itemtype": 3, - "storedtype": { - "location": 8381, - "names": [ - { - "String": { - "sval": "uuid", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "opclassname": [ - { - "String": { - "sval": "alt_opc1", - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 8312, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateOpClassStmt": { - "amname": "hash", - "datatype": { - "location": 8427, - "names": [ - { - "String": { - "sval": "uuid", - }, - }, - ], - "typemod": -1, - }, - "items": [ - { - "CreateOpClassItem": { - "itemtype": 3, - "storedtype": { - "location": 8454, - "names": [ - { - "String": { - "sval": "uuid", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "opclassname": [ - { - "String": { - "sval": "alt_opc2", - }, - }, - ], - }, - }, - "stmt_len": 72, - "stmt_location": 8386, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 8510, - "rolename": "regtest_alter_user1", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opc1", - }, - }, - ], - }, - }, - "objectType": "OBJECT_OPCLASS", - }, - }, - "stmt_len": 70, - "stmt_location": 8459, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 8581, - "rolename": "regtest_alter_user1", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opc2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_OPCLASS", - }, - }, - "stmt_len": 70, - "stmt_location": 8530, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 8629, - "sval": { - "sval": "regtest_alter_user1", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "session_authorization", - }, - }, - "stmt_len": 47, - "stmt_location": 8601, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_opf2", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opf1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 62, - "stmt_location": 8649, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_opf3", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opf1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 88, - "stmt_location": 8712, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 8860, - "rolename": "regtest_alter_user2", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opf2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 78, - "stmt_location": 8801, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 8964, - "rolename": "regtest_alter_user3", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opf2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 103, - "stmt_location": 8880, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "alt_nsp2", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opf2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 69, - "stmt_location": 8984, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_opc2", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opc1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_OPCLASS", - }, - }, - "stmt_len": 68, - "stmt_location": 9054, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_opc3", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opc1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_OPCLASS", - }, - }, - "stmt_len": 87, - "stmt_location": 9123, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 9269, - "rolename": "regtest_alter_user2", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opc2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_OPCLASS", - }, - }, - "stmt_len": 77, - "stmt_location": 9211, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 9372, - "rolename": "regtest_alter_user3", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opc2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_OPCLASS", - }, - }, - "stmt_len": 102, - "stmt_location": 9289, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "alt_nsp2", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opc2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_OPCLASS", - }, - }, - "stmt_len": 68, - "stmt_location": 9392, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "session_authorization", - }, - }, - "stmt_len": 36, - "stmt_location": 9461, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateOpFamilyStmt": { - "amname": "hash", - "opfamilyname": [ - { - "String": { - "sval": "alt_opf1", - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 9498, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateOpFamilyStmt": { - "amname": "hash", - "opfamilyname": [ - { - "String": { - "sval": "alt_opf2", - }, - }, - ], - }, - }, - "stmt_len": 43, - "stmt_location": 9543, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 9639, - "rolename": "regtest_alter_user2", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opf1", - }, - }, - ], - }, - }, - "objectType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 71, - "stmt_location": 9587, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 9711, - "rolename": "regtest_alter_user2", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opf2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 71, - "stmt_location": 9659, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateOpClassStmt": { - "amname": "hash", - "datatype": { - "location": 9773, - "names": [ - { - "String": { - "sval": "macaddr", - }, - }, - ], - "typemod": -1, - }, - "items": [ - { - "CreateOpClassItem": { - "itemtype": 3, - "storedtype": { - "location": 9803, - "names": [ - { - "String": { - "sval": "macaddr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "opclassname": [ - { - "String": { - "sval": "alt_opc1", - }, - }, - ], - }, - }, - "stmt_len": 79, - "stmt_location": 9731, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateOpClassStmt": { - "amname": "hash", - "datatype": { - "location": 9852, - "names": [ - { - "String": { - "sval": "macaddr", - }, - }, - ], - "typemod": -1, - }, - "items": [ - { - "CreateOpClassItem": { - "itemtype": 3, - "storedtype": { - "location": 9882, - "names": [ - { - "String": { - "sval": "macaddr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "opclassname": [ - { - "String": { - "sval": "alt_opc2", - }, - }, - ], - }, - }, - "stmt_len": 78, - "stmt_location": 9811, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 9941, - "rolename": "regtest_alter_user2", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opc1", - }, - }, - ], - }, - }, - "objectType": "OBJECT_OPCLASS", - }, - }, - "stmt_len": 70, - "stmt_location": 9890, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 10012, - "rolename": "regtest_alter_user2", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opc2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_OPCLASS", - }, - }, - "stmt_len": 70, - "stmt_location": 9961, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 10060, - "sval": { - "sval": "regtest_alter_user2", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "session_authorization", - }, - }, - "stmt_len": 47, - "stmt_location": 10032, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_opf4", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opf3", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 62, - "stmt_location": 10080, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_opf4", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opf1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 83, - "stmt_location": 10143, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 10286, - "rolename": "regtest_alter_user2", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opf3", - }, - }, - ], - }, - }, - "objectType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 78, - "stmt_location": 10227, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 10381, - "rolename": "regtest_alter_user3", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opf2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 94, - "stmt_location": 10306, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "alt_nsp2", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opf3", - }, - }, - ], - }, - }, - "objectType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 94, - "stmt_location": 10401, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "alt_nsp2", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opf2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 85, - "stmt_location": 10496, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_opc4", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opc3", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_OPCLASS", - }, - }, - "stmt_len": 88, - "stmt_location": 10582, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_opc4", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opc1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_OPCLASS", - }, - }, - "stmt_len": 82, - "stmt_location": 10671, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 10812, - "rolename": "regtest_alter_user2", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opc3", - }, - }, - ], - }, - }, - "objectType": "OBJECT_OPCLASS", - }, - }, - "stmt_len": 77, - "stmt_location": 10754, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 10906, - "rolename": "regtest_alter_user3", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opc2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_OPCLASS", - }, - }, - "stmt_len": 93, - "stmt_location": 10832, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "alt_nsp2", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opc3", - }, - }, - ], - }, - }, - "objectType": "OBJECT_OPCLASS", - }, - }, - "stmt_len": 93, - "stmt_location": 10926, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "alt_nsp2", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opc2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_OPCLASS", - }, - }, - "stmt_len": 84, - "stmt_location": 11020, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "session_authorization", - }, - }, - "stmt_len": 56, - "stmt_location": 11105, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "o", - }, - "inh": true, - "location": 11212, - "relname": "pg_opfamily", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "m", - }, - "inh": true, - "location": 11227, - "relname": "pg_am", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "n", - }, - "inh": true, - "location": 11236, - "relname": "pg_namespace", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 11252, - "relname": "pg_authid", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 11432, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "opfname", - }, - }, - ], - "location": 11441, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 11171, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 11171, - }, - }, - }, - }, - { - "ResTarget": { - "location": 11180, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "opfname", - }, - }, - ], - "location": 11180, - }, - }, - }, - }, - { - "ResTarget": { - "location": 11189, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "amname", - }, - }, - ], - "location": 11189, - }, - }, - }, - }, - { - "ResTarget": { - "location": 11197, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "rolname", - }, - }, - ], - "location": 11197, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "o", - }, - }, - { - "String": { - "sval": "opfmethod", - }, - }, - ], - "location": 11272, - }, - }, - "location": 11284, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "m", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 11286, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "o", - }, - }, - { - "String": { - "sval": "opfnamespace", - }, - }, - ], - "location": 11296, - }, - }, - "location": 11311, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 11313, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "o", - }, - }, - { - "String": { - "sval": "opfowner", - }, - }, - ], - "location": 11323, - }, - }, - "location": 11334, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 11336, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 11350, - }, - }, - "location": 11360, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 11364, - "sval": { - "sval": "alt_nsp1", - }, - }, - }, - { - "A_Const": { - "location": 11376, - "sval": { - "sval": "alt_nsp2", - }, - }, - }, - ], - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "opfname", - }, - }, - ], - "location": 11397, - }, - }, - "location": 11405, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 11410, - "sval": { - "sval": "alt_opc%", - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 11393, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 11292, - }, - }, - }, - }, - "stmt_len": 286, - "stmt_location": 11162, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "o", - }, - "inh": true, - "location": 11499, - "relname": "pg_opclass", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "m", - }, - "inh": true, - "location": 11513, - "relname": "pg_am", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "n", - }, - "inh": true, - "location": 11522, - "relname": "pg_namespace", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 11538, - "relname": "pg_authid", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 11685, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "opcname", - }, - }, - ], - "location": 11694, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 11458, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 11458, - }, - }, - }, - }, - { - "ResTarget": { - "location": 11467, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "opcname", - }, - }, - ], - "location": 11467, - }, - }, - }, - }, - { - "ResTarget": { - "location": 11476, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "amname", - }, - }, - ], - "location": 11476, - }, - }, - }, - }, - { - "ResTarget": { - "location": 11484, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "rolname", - }, - }, - ], - "location": 11484, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "o", - }, - }, - { - "String": { - "sval": "opcmethod", - }, - }, - ], - "location": 11558, - }, - }, - "location": 11570, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "m", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 11572, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "o", - }, - }, - { - "String": { - "sval": "opcnamespace", - }, - }, - ], - "location": 11582, - }, - }, - "location": 11597, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 11599, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "o", - }, - }, - { - "String": { - "sval": "opcowner", - }, - }, - ], - "location": 11609, - }, - }, - "location": 11620, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 11622, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 11636, - }, - }, - "location": 11646, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 11650, - "sval": { - "sval": "alt_nsp1", - }, - }, - }, - { - "A_Const": { - "location": 11662, - "sval": { - "sval": "alt_nsp2", - }, - }, - }, - ], - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 11578, - }, - }, - }, - }, - "stmt_len": 252, - "stmt_location": 11449, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 130, - "stmt_location": 11702, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateOpFamilyStmt": { - "amname": "btree", - "opfamilyname": [ - { - "String": { - "sval": "alt_opf4", - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 11833, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "btree", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 11960, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 11966, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "<", - }, - }, - ], - }, - "number": 1, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 11991, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 11997, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "<=", - }, - }, - ], - }, - "number": 2, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 12021, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 12027, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "=", - }, - }, - ], - }, - "number": 3, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 12052, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 12058, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": ">=", - }, - }, - ], - }, - "number": 4, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 12082, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 12088, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": ">", - }, - }, - ], - }, - "number": 5, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 2, - "name": { - "objargs": [ - { - "TypeName": { - "location": 12120, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 12126, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 12120, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 12126, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "btint42cmp", - }, - }, - ], - }, - "number": 1, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_opf4", - }, - }, - ], - }, - }, - "stmt_len": 253, - "stmt_location": 11878, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "btree", - "isDrop": true, - "items": [ - { - "CreateOpClassItem": { - "class_args": [ - { - "TypeName": { - "location": 12214, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 12220, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "itemtype": 1, - "number": 1, - }, - }, - { - "CreateOpClassItem": { - "class_args": [ - { - "TypeName": { - "location": 12242, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 12248, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "itemtype": 1, - "number": 2, - }, - }, - { - "CreateOpClassItem": { - "class_args": [ - { - "TypeName": { - "location": 12270, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 12276, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "itemtype": 1, - "number": 3, - }, - }, - { - "CreateOpClassItem": { - "class_args": [ - { - "TypeName": { - "location": 12298, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 12304, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "itemtype": 1, - "number": 4, - }, - }, - { - "CreateOpClassItem": { - "class_args": [ - { - "TypeName": { - "location": 12326, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 12332, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "itemtype": 1, - "number": 5, - }, - }, - { - "CreateOpClassItem": { - "class_args": [ - { - "TypeName": { - "location": 12354, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 12360, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "itemtype": 2, - "number": 1, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_opf4", - }, - }, - ], - }, - }, - "stmt_len": 234, - "stmt_location": 12132, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "btree", - }, - }, - { - "String": { - "sval": "alt_opf4", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 42, - "stmt_location": 12367, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 12410, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateOpFamilyStmt": { - "amname": "btree", - "opfamilyname": [ - { - "String": { - "sval": "alt_opf4", - }, - }, - ], - }, - }, - "stmt_len": 116, - "stmt_location": 12420, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "invalid_index_method", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 12615, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 12621, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "<", - }, - }, - ], - }, - "number": 1, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_opf4", - }, - }, - ], - }, - }, - "stmt_len": 89, - "stmt_location": 12537, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "btree", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 12716, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 12722, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "<", - }, - }, - ], - }, - "number": 6, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_opf4", - }, - }, - ], - }, - }, - "stmt_len": 100, - "stmt_location": 12627, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "btree", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 12835, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 12841, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "<", - }, - }, - ], - }, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_opf4", - }, - }, - ], - }, - }, - "stmt_len": 118, - "stmt_location": 12728, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "btree", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objname": [ - { - "String": { - "sval": "<", - }, - }, - ], - }, - "number": 1, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_opf4", - }, - }, - ], - }, - }, - "stmt_len": 106, - "stmt_location": 12847, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "btree", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 2, - "name": { - "objargs": [ - { - "TypeName": { - "location": 13059, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 13065, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 13059, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 13065, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "btint42cmp", - }, - }, - ], - }, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_opf4", - }, - }, - ], - }, - }, - "stmt_len": 116, - "stmt_location": 12954, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "btree", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 2, - "name": { - "objargs": [ - { - "TypeName": { - "location": 13186, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 13192, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 13186, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 13192, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "btint42cmp", - }, - }, - ], - }, - "number": 6, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_opf4", - }, - }, - ], - }, - }, - "stmt_len": 126, - "stmt_location": 13071, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "btree", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 3, - "storedtype": { - "location": 13299, - "names": [ - { - "String": { - "sval": "invalid_storage", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_opf4", - }, - }, - ], - }, - }, - "stmt_len": 116, - "stmt_location": 13198, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "btree", - }, - }, - { - "String": { - "sval": "alt_opf4", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 99, - "stmt_location": 13315, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 98, - "stmt_location": 13415, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "options": [ - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": false, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "superuser", - "location": 13547, - }, - }, - ], - "role": "regtest_alter_user5", - "stmt_type": "ROLESTMT_ROLE", - }, - }, - "stmt_len": 44, - "stmt_location": 13514, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateOpFamilyStmt": { - "amname": "btree", - "opfamilyname": [ - { - "String": { - "sval": "alt_opf5", - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 13559, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 13614, - "sval": { - "sval": "regtest_alter_user5", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 29, - "stmt_location": 13604, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "btree", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 13696, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 13702, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "<", - }, - }, - ], - }, - "number": 1, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 2, - "name": { - "objargs": [ - { - "TypeName": { - "location": 13731, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 13737, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 13731, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 13737, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "btint42cmp", - }, - }, - ], - }, - "number": 1, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_opf5", - }, - }, - ], - }, - }, - "stmt_len": 108, - "stmt_location": 13634, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "role", - }, - }, - "stmt_len": 11, - "stmt_location": 13743, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "btree", - }, - }, - { - "String": { - "sval": "alt_opf5", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 42, - "stmt_location": 13755, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 13798, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 100, - "stmt_location": 13808, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "role": "regtest_alter_user6", - "stmt_type": "ROLESTMT_ROLE", - }, - }, - "stmt_len": 32, - "stmt_location": 13909, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateSchemaStmt": { - "schemaname": "alt_nsp6", - }, - }, - "stmt_len": 23, - "stmt_location": 13942, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 14002, - "rolename": "regtest_alter_user6", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "objects": [ - { - "String": { - "sval": "alt_nsp6", - }, - }, - ], - "objtype": "OBJECT_SCHEMA", - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 55, - "stmt_location": 13966, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateOpFamilyStmt": { - "amname": "btree", - "opfamilyname": [ - { - "String": { - "sval": "alt_nsp6", - }, - }, - { - "String": { - "sval": "alt_opf6", - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 14022, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 14086, - "sval": { - "sval": "regtest_alter_user6", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 29, - "stmt_location": 14076, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "btree", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 14177, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 14183, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "<", - }, - }, - ], - }, - "number": 1, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_nsp6", - }, - }, - { - "String": { - "sval": "alt_opf6", - }, - }, - ], - }, - }, - "stmt_len": 82, - "stmt_location": 14106, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 14189, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateOpFamilyStmt": { - "amname": "btree", - "opfamilyname": [ - { - "String": { - "sval": "alt_opf7", - }, - }, - ], - }, - }, - "stmt_len": 133, - "stmt_location": 14199, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "btree", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 14395, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 14401, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "<", - }, - }, - ], - }, - "number": 1, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_opf7", - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 14333, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "btree", - "isDrop": true, - "items": [ - { - "CreateOpClassItem": { - "class_args": [ - { - "TypeName": { - "location": 14468, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 14474, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 14480, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "itemtype": 1, - "number": 1, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_opf7", - }, - }, - ], - }, - }, - "stmt_len": 78, - "stmt_location": 14407, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "btree", - }, - }, - { - "String": { - "sval": "alt_opf7", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 42, - "stmt_location": 14486, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateOpFamilyStmt": { - "amname": "btree", - "opfamilyname": [ - { - "String": { - "sval": "alt_opf8", - }, - }, - ], - }, - }, - "stmt_len": 200, - "stmt_location": 14529, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "btree", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 14792, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 14798, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "<", - }, - }, - ], - }, - "number": 1, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_opf8", - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 14730, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "btree", - }, - }, - { - "String": { - "sval": "alt_opf8", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 42, - "stmt_location": 14804, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateOpFamilyStmt": { - "amname": "gist", - "opfamilyname": [ - { - "String": { - "sval": "alt_opf9", - }, - }, - ], - }, - }, - "stmt_len": 134, - "stmt_location": 14847, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "gist", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 15043, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 15049, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "<", - }, - }, - ], - }, - "number": 1, - "order_family": [ - { - "String": { - "sval": "float_ops", - }, - }, - ], - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_opf9", - }, - }, - ], - }, - }, - "stmt_len": 95, - "stmt_location": 14982, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "gist", - }, - }, - { - "String": { - "sval": "alt_opf9", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 41, - "stmt_location": 15078, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateOpFamilyStmt": { - "amname": "btree", - "opfamilyname": [ - { - "String": { - "sval": "alt_opf10", - }, - }, - ], - }, - }, - "stmt_len": 152, - "stmt_location": 15120, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "btree", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 15336, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 15342, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "<", - }, - }, - ], - }, - "number": 1, - "order_family": [ - { - "String": { - "sval": "float_ops", - }, - }, - ], - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_opf10", - }, - }, - ], - }, - }, - "stmt_len": 97, - "stmt_location": 15273, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "btree", - }, - }, - { - "String": { - "sval": "alt_opf10", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 43, - "stmt_location": 15371, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateOpFamilyStmt": { - "amname": "gist", - "opfamilyname": [ - { - "String": { - "sval": "alt_opf11", - }, - }, - ], - }, - }, - "stmt_len": 135, - "stmt_location": 15415, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "gist", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 15613, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 15619, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "<", - }, - }, - ], - }, - "number": 1, - "order_family": [ - { - "String": { - "sval": "float_ops", - }, - }, - ], - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_opf11", - }, - }, - ], - }, - }, - "stmt_len": 96, - "stmt_location": 15551, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "gist", - "isDrop": true, - "items": [ - { - "CreateOpClassItem": { - "class_args": [ - { - "TypeName": { - "location": 15709, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 15715, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "itemtype": 1, - "number": 1, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_opf11", - }, - }, - ], - }, - }, - "stmt_len": 72, - "stmt_location": 15648, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "gist", - }, - }, - { - "String": { - "sval": "alt_opf11", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 42, - "stmt_location": 15721, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 126, - "stmt_location": 15764, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateOpFamilyStmt": { - "amname": "btree", - "opfamilyname": [ - { - "String": { - "sval": "alt_opf12", - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 15891, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "fn_opf12", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "SELECT NULL::BIGINT;", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 15992, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 16018, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 15965, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 15971, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 15985, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 93, - "stmt_location": 15937, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "btree", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 2, - "name": { - "objargs": [ - { - "TypeName": { - "location": 16100, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 16106, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 16100, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 16106, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "fn_opf12", - }, - }, - ], - }, - "number": 1, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_opf12", - }, - }, - ], - }, - }, - "stmt_len": 80, - "stmt_location": 16031, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "btree", - }, - }, - { - "String": { - "sval": "alt_opf12", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 43, - "stmt_location": 16112, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 16156, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 125, - "stmt_location": 16166, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateOpFamilyStmt": { - "amname": "hash", - "opfamilyname": [ - { - "String": { - "sval": "alt_opf13", - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 16292, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "fn_opf13", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "SELECT NULL::BIGINT;", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 16386, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 16412, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 16365, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 16379, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 87, - "stmt_location": 16337, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "hash", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 2, - "name": { - "objargs": [ - { - "TypeName": { - "location": 16493, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 16493, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "fn_opf13", - }, - }, - ], - }, - "number": 1, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_opf13", - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 16425, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opf13", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 42, - "stmt_location": 16499, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 16542, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 130, - "stmt_location": 16552, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateOpFamilyStmt": { - "amname": "btree", - "opfamilyname": [ - { - "String": { - "sval": "alt_opf14", - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 16683, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "fn_opf14", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "SELECT NULL::BIGINT;", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 16777, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 16803, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 16756, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 16770, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 86, - "stmt_location": 16729, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "btree", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 2, - "name": { - "objargs": [ - { - "TypeName": { - "location": 16885, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 16885, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "fn_opf14", - }, - }, - ], - }, - "number": 1, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_opf14", - }, - }, - ], - }, - }, - "stmt_len": 74, - "stmt_location": 16816, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "btree", - }, - }, - { - "String": { - "sval": "alt_opf14", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 43, - "stmt_location": 16891, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 16935, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 128, - "stmt_location": 16945, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateOpFamilyStmt": { - "amname": "hash", - "opfamilyname": [ - { - "String": { - "sval": "alt_opf15", - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 17074, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "fn_opf15", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "SELECT NULL::BIGINT;", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 17173, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 17199, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 17146, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 17152, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 17166, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 92, - "stmt_location": 17119, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "hash", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 2, - "name": { - "objargs": [ - { - "TypeName": { - "location": 17280, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 17286, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 17280, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 17286, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "fn_opf15", - }, - }, - ], - }, - "number": 1, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_opf15", - }, - }, - ], - }, - }, - "stmt_len": 79, - "stmt_location": 17212, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "hash", - }, - }, - { - "String": { - "sval": "alt_opf15", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 42, - "stmt_location": 17292, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 17335, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateOpFamilyStmt": { - "amname": "gist", - "opfamilyname": [ - { - "String": { - "sval": "alt_opf16", - }, - }, - ], - }, - }, - "stmt_len": 219, - "stmt_location": 17345, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "gist", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 2, - "name": { - "objargs": [ - { - "TypeName": { - "location": 17635, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 17641, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 17635, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 17641, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "btint42cmp", - }, - }, - ], - }, - "number": 1, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_opf16", - }, - }, - ], - }, - }, - "stmt_len": 81, - "stmt_location": 17565, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "gist", - }, - }, - { - "String": { - "sval": "alt_opf16", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 42, - "stmt_location": 17647, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateOpFamilyStmt": { - "amname": "btree", - "opfamilyname": [ - { - "String": { - "sval": "alt_opf17", - }, - }, - ], - }, - }, - "stmt_len": 148, - "stmt_location": 17690, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "btree", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 17902, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 17908, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "<", - }, - }, - ], - }, - "number": 1, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 17929, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 17935, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "<", - }, - }, - ], - }, - "number": 1, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_opf17", - }, - }, - ], - }, - }, - "stmt_len": 101, - "stmt_location": 17839, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "btree", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 18050, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 18056, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "<", - }, - }, - ], - }, - "number": 1, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_opf17", - }, - }, - ], - }, - }, - "stmt_len": 120, - "stmt_location": 17941, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "btree", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 18160, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 18166, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "<", - }, - }, - ], - }, - "number": 1, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_opf17", - }, - }, - ], - }, - }, - "stmt_len": 109, - "stmt_location": 18062, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "btree", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 18289, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 18295, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "<", - }, - }, - ], - }, - "number": 1, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 18320, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 18326, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "<=", - }, - }, - ], - }, - "number": 2, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 18350, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 18356, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "=", - }, - }, - ], - }, - "number": 3, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 18381, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 18387, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": ">=", - }, - }, - ], - }, - "number": 4, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 18411, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 18417, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": ">", - }, - }, - ], - }, - "number": 5, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 2, - "name": { - "objargs": [ - { - "TypeName": { - "location": 18449, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 18455, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 18449, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 18455, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "btint42cmp", - }, - }, - ], - }, - "number": 1, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 2, - "name": { - "objargs": [ - { - "TypeName": { - "location": 18487, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 18493, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 18487, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 18493, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "btint42cmp", - }, - }, - ], - }, - "number": 1, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_opf17", - }, - }, - ], - }, - }, - "stmt_len": 326, - "stmt_location": 18172, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "btree", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 18614, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 18620, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "<", - }, - }, - ], - }, - "number": 1, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 18645, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 18651, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "<=", - }, - }, - ], - }, - "number": 2, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 18675, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 18681, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "=", - }, - }, - ], - }, - "number": 3, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 18706, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 18712, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": ">=", - }, - }, - ], - }, - "number": 4, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 18736, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 18742, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": ">", - }, - }, - ], - }, - "number": 5, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 2, - "name": { - "objargs": [ - { - "TypeName": { - "location": 18774, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 18780, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 18774, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 18780, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "btint42cmp", - }, - }, - ], - }, - "number": 1, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_opf17", - }, - }, - ], - }, - }, - "stmt_len": 286, - "stmt_location": 18499, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "btree", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 18888, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 18894, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "<", - }, - }, - ], - }, - "number": 1, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 18919, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 18925, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "<=", - }, - }, - ], - }, - "number": 2, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 18949, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 18955, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "=", - }, - }, - ], - }, - "number": 3, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 18980, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 18986, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": ">=", - }, - }, - ], - }, - "number": 4, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 19010, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 19016, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": ">", - }, - }, - ], - }, - "number": 5, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 2, - "name": { - "objargs": [ - { - "TypeName": { - "location": 19048, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 19054, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 19048, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 19054, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "btint42cmp", - }, - }, - ], - }, - "number": 1, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_opf17", - }, - }, - ], - }, - }, - "stmt_len": 273, - "stmt_location": 18786, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "btree", - }, - }, - { - "String": { - "sval": "alt_opf17", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 99, - "stmt_location": 19060, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateOpFamilyStmt": { - "amname": "btree", - "opfamilyname": [ - { - "String": { - "sval": "alt_opf18", - }, - }, - ], - }, - }, - "stmt_len": 206, - "stmt_location": 19160, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "btree", - "isDrop": true, - "items": [ - { - "CreateOpClassItem": { - "class_args": [ - { - "TypeName": { - "location": 19429, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 19435, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "itemtype": 1, - "number": 1, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_opf18", - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 19367, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "btree", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 19506, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 19512, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "<", - }, - }, - ], - }, - "number": 1, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 19537, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 19543, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "<=", - }, - }, - ], - }, - "number": 2, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 19567, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 19573, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "=", - }, - }, - ], - }, - "number": 3, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 19598, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 19604, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": ">=", - }, - }, - ], - }, - "number": 4, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 19628, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 19634, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": ">", - }, - }, - ], - }, - "number": 5, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 2, - "name": { - "objargs": [ - { - "TypeName": { - "location": 19666, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 19672, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 19666, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 19672, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "btint42cmp", - }, - }, - ], - }, - "number": 1, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_opf18", - }, - }, - ], - }, - }, - "stmt_len": 236, - "stmt_location": 19441, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "btree", - "isDrop": true, - "items": [ - { - "CreateOpClassItem": { - "class_args": [ - { - "TypeName": { - "location": 19740, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 19746, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "itemtype": 2, - "number": 2, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "alt_opf18", - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 19678, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "btree", - }, - }, - { - "String": { - "sval": "alt_opf18", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 43, - "stmt_location": 19752, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 19857, - "sval": { - "sval": "regtest_alter_user1", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "session_authorization", - }, - }, - "stmt_len": 80, - "stmt_location": 19796, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 19931, - "names": [ - { - "String": { - "sval": "simple", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "template", - "location": 19922, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "alt_ts_dict1", - }, - }, - ], - "kind": "OBJECT_TSDICTIONARY", - }, - }, - "stmt_len": 61, - "stmt_location": 19877, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 19993, - "names": [ - { - "String": { - "sval": "simple", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "template", - "location": 19984, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "alt_ts_dict2", - }, - }, - ], - "kind": "OBJECT_TSDICTIONARY", - }, - }, - "stmt_len": 61, - "stmt_location": 19939, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_ts_dict2", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_ts_dict1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_TSDICTIONARY", - }, - }, - "stmt_len": 66, - "stmt_location": 20001, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_ts_dict3", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_ts_dict1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_TSDICTIONARY", - }, - }, - "stmt_len": 92, - "stmt_location": 20068, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 20220, - "rolename": "regtest_alter_user2", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_ts_dict2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_TSDICTIONARY", - }, - }, - "stmt_len": 78, - "stmt_location": 20161, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 20324, - "rolename": "regtest_alter_user3", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_ts_dict2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_TSDICTIONARY", - }, - }, - "stmt_len": 103, - "stmt_location": 20240, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "alt_nsp2", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_ts_dict2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_TSDICTIONARY", - }, - }, - "stmt_len": 69, - "stmt_location": 20344, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 20449, - "sval": { - "sval": "regtest_alter_user2", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "session_authorization", - }, - }, - "stmt_len": 54, - "stmt_location": 20414, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 20523, - "names": [ - { - "String": { - "sval": "simple", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "template", - "location": 20514, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "alt_ts_dict1", - }, - }, - ], - "kind": "OBJECT_TSDICTIONARY", - }, - }, - "stmt_len": 61, - "stmt_location": 20469, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 20585, - "names": [ - { - "String": { - "sval": "simple", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "template", - "location": 20576, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "alt_ts_dict2", - }, - }, - ], - "kind": "OBJECT_TSDICTIONARY", - }, - }, - "stmt_len": 61, - "stmt_location": 20531, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_ts_dict4", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_ts_dict3", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_TSDICTIONARY", - }, - }, - "stmt_len": 66, - "stmt_location": 20593, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_ts_dict4", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_ts_dict1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_TSDICTIONARY", - }, - }, - "stmt_len": 88, - "stmt_location": 20660, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 20808, - "rolename": "regtest_alter_user2", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_ts_dict3", - }, - }, - ], - }, - }, - "objectType": "OBJECT_TSDICTIONARY", - }, - }, - "stmt_len": 78, - "stmt_location": 20749, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 20903, - "rolename": "regtest_alter_user3", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_ts_dict2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_TSDICTIONARY", - }, - }, - "stmt_len": 94, - "stmt_location": 20828, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "alt_nsp2", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_ts_dict3", - }, - }, - ], - }, - }, - "objectType": "OBJECT_TSDICTIONARY", - }, - }, - "stmt_len": 94, - "stmt_location": 20923, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "alt_nsp2", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_ts_dict2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_TSDICTIONARY", - }, - }, - "stmt_len": 85, - "stmt_location": 21018, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "session_authorization", - }, - }, - "stmt_len": 56, - "stmt_location": 21104, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "t", - }, - "inh": true, - "location": 21204, - "relname": "pg_ts_dict", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "n", - }, - "inh": true, - "location": 21218, - "relname": "pg_namespace", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 21234, - "relname": "pg_authid", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 21359, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "dictname", - }, - }, - ], - "location": 21368, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 21170, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 21170, - }, - }, - }, - }, - { - "ResTarget": { - "location": 21179, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "dictname", - }, - }, - ], - "location": 21179, - }, - }, - }, - }, - { - "ResTarget": { - "location": 21189, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "rolname", - }, - }, - ], - "location": 21189, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "String": { - "sval": "dictnamespace", - }, - }, - ], - "location": 21254, - }, - }, - "location": 21270, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 21272, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "String": { - "sval": "dictowner", - }, - }, - ], - "location": 21282, - }, - }, - "location": 21294, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 21296, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 21310, - }, - }, - "location": 21320, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 21324, - "sval": { - "sval": "alt_nsp1", - }, - }, - }, - { - "A_Const": { - "location": 21336, - "sval": { - "sval": "alt_nsp2", - }, - }, - }, - ], - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 21278, - }, - }, - }, - }, - "stmt_len": 215, - "stmt_location": 21161, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 21440, - "sval": { - "sval": "regtest_alter_user1", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "session_authorization", - }, - }, - "stmt_len": 82, - "stmt_location": 21377, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 21513, - "names": [ - { - "String": { - "sval": "english", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "copy", - "location": 21508, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "alt_ts_conf1", - }, - }, - ], - "kind": "OBJECT_TSCONFIGURATION", - }, - }, - "stmt_len": 61, - "stmt_location": 21460, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 21575, - "names": [ - { - "String": { - "sval": "english", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "copy", - "location": 21570, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "alt_ts_conf2", - }, - }, - ], - "kind": "OBJECT_TSCONFIGURATION", - }, - }, - "stmt_len": 61, - "stmt_location": 21522, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_ts_conf2", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_ts_conf1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_TSCONFIGURATION", - }, - }, - "stmt_len": 69, - "stmt_location": 21584, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_ts_conf3", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_ts_conf1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_TSCONFIGURATION", - }, - }, - "stmt_len": 95, - "stmt_location": 21654, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 21812, - "rolename": "regtest_alter_user2", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_ts_conf2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_TSCONFIGURATION", - }, - }, - "stmt_len": 81, - "stmt_location": 21750, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 21919, - "rolename": "regtest_alter_user3", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_ts_conf2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_TSCONFIGURATION", - }, - }, - "stmt_len": 106, - "stmt_location": 21832, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "alt_nsp2", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_ts_conf2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_TSCONFIGURATION", - }, - }, - "stmt_len": 72, - "stmt_location": 21939, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 22047, - "sval": { - "sval": "regtest_alter_user2", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "session_authorization", - }, - }, - "stmt_len": 54, - "stmt_location": 22012, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 22120, - "names": [ - { - "String": { - "sval": "english", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "copy", - "location": 22115, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "alt_ts_conf1", - }, - }, - ], - "kind": "OBJECT_TSCONFIGURATION", - }, - }, - "stmt_len": 61, - "stmt_location": 22067, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 22182, - "names": [ - { - "String": { - "sval": "english", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "copy", - "location": 22177, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "alt_ts_conf2", - }, - }, - ], - "kind": "OBJECT_TSCONFIGURATION", - }, - }, - "stmt_len": 61, - "stmt_location": 22129, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_ts_conf4", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_ts_conf3", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_TSCONFIGURATION", - }, - }, - "stmt_len": 69, - "stmt_location": 22191, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_ts_conf4", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_ts_conf1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_TSCONFIGURATION", - }, - }, - "stmt_len": 91, - "stmt_location": 22261, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 22415, - "rolename": "regtest_alter_user2", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_ts_conf3", - }, - }, - ], - }, - }, - "objectType": "OBJECT_TSCONFIGURATION", - }, - }, - "stmt_len": 81, - "stmt_location": 22353, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 22513, - "rolename": "regtest_alter_user3", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_ts_conf2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_TSCONFIGURATION", - }, - }, - "stmt_len": 97, - "stmt_location": 22435, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "alt_nsp2", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_ts_conf3", - }, - }, - ], - }, - }, - "objectType": "OBJECT_TSCONFIGURATION", - }, - }, - "stmt_len": 97, - "stmt_location": 22533, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "alt_nsp2", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_ts_conf2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_TSCONFIGURATION", - }, - }, - "stmt_len": 88, - "stmt_location": 22631, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "session_authorization", - }, - }, - "stmt_len": 56, - "stmt_location": 22720, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "t", - }, - "inh": true, - "location": 22819, - "relname": "pg_ts_config", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "n", - }, - "inh": true, - "location": 22835, - "relname": "pg_namespace", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 22851, - "relname": "pg_authid", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 22974, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "cfgname", - }, - }, - ], - "location": 22983, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 22786, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 22786, - }, - }, - }, - }, - { - "ResTarget": { - "location": 22795, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "cfgname", - }, - }, - ], - "location": 22795, - }, - }, - }, - }, - { - "ResTarget": { - "location": 22804, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "rolname", - }, - }, - ], - "location": 22804, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "String": { - "sval": "cfgnamespace", - }, - }, - ], - "location": 22871, - }, - }, - "location": 22886, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 22888, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "String": { - "sval": "cfgowner", - }, - }, - ], - "location": 22898, - }, - }, - "location": 22909, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 22911, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 22925, - }, - }, - "location": 22935, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 22939, - "sval": { - "sval": "alt_nsp1", - }, - }, - }, - { - "A_Const": { - "location": 22951, - "sval": { - "sval": "alt_nsp2", - }, - }, - }, - ], - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 22894, - }, - }, - }, - }, - "stmt_len": 213, - "stmt_location": 22777, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 23072, - "names": [ - { - "String": { - "sval": "dsimple_lexize", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "lexize", - "location": 23065, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "alt_ts_temp1", - }, - }, - ], - "kind": "OBJECT_TSTEMPLATE", - }, - }, - "stmt_len": 96, - "stmt_location": 22991, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 23138, - "names": [ - { - "String": { - "sval": "dsimple_lexize", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "lexize", - "location": 23131, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "alt_ts_temp2", - }, - }, - ], - "kind": "OBJECT_TSTEMPLATE", - }, - }, - "stmt_len": 65, - "stmt_location": 23088, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_ts_temp2", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_ts_temp1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_TSTEMPLATE", - }, - }, - "stmt_len": 64, - "stmt_location": 23154, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_ts_temp3", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_ts_temp1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_TSTEMPLATE", - }, - }, - "stmt_len": 89, - "stmt_location": 23219, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "alt_nsp2", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_ts_temp2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_TSTEMPLATE", - }, - }, - "stmt_len": 66, - "stmt_location": 23309, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 23436, - "names": [ - { - "String": { - "sval": "dsimple_lexize", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "lexize", - "location": 23429, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "alt_ts_temp2", - }, - }, - ], - "kind": "OBJECT_TSTEMPLATE", - }, - }, - "stmt_len": 75, - "stmt_location": 23376, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "alt_nsp2", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_ts_temp2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_TSTEMPLATE", - }, - }, - "stmt_len": 60, - "stmt_location": 23452, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "t", - }, - "inh": true, - "location": 23576, - "relname": "pg_ts_template", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "n", - }, - "inh": true, - "location": 23594, - "relname": "pg_namespace", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 23680, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tmplname", - }, - }, - ], - "location": 23689, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 23551, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 23551, - }, - }, - }, - }, - { - "ResTarget": { - "location": 23560, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tmplname", - }, - }, - ], - "location": 23560, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "String": { - "sval": "tmplnamespace", - }, - }, - ], - "location": 23617, - }, - }, - "location": 23633, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 23635, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 23645, - }, - }, - "location": 23653, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 23658, - "sval": { - "sval": "alt_nsp%", - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 23641, - }, - }, - }, - }, - "stmt_len": 184, - "stmt_location": 23513, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 23780, - "names": [ - { - "String": { - "sval": "prsd_start", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "start", - "location": 23772, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 23803, - "names": [ - { - "String": { - "sval": "prsd_nexttoken", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "gettoken", - "location": 23792, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 23825, - "names": [ - { - "String": { - "sval": "prsd_end", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "end", - "location": 23819, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 23846, - "names": [ - { - "String": { - "sval": "prsd_lextype", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "lextypes", - "location": 23835, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "alt_ts_prs1", - }, - }, - ], - "kind": "OBJECT_TSPARSER", - }, - }, - "stmt_len": 161, - "stmt_location": 23698, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 23912, - "names": [ - { - "String": { - "sval": "prsd_start", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "start", - "location": 23904, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 23935, - "names": [ - { - "String": { - "sval": "prsd_nexttoken", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "gettoken", - "location": 23924, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 23957, - "names": [ - { - "String": { - "sval": "prsd_end", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "end", - "location": 23951, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 23978, - "names": [ - { - "String": { - "sval": "prsd_lextype", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "lextypes", - "location": 23967, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "alt_ts_prs2", - }, - }, - ], - "kind": "OBJECT_TSPARSER", - }, - }, - "stmt_len": 131, - "stmt_location": 23860, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_ts_prs2", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_ts_prs1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_TSPARSER", - }, - }, - "stmt_len": 60, - "stmt_location": 23992, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "alt_ts_prs3", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_ts_prs1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_TSPARSER", - }, - }, - "stmt_len": 85, - "stmt_location": 24053, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "alt_nsp2", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_ts_prs2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_TSPARSER", - }, - }, - "stmt_len": 63, - "stmt_location": 24139, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 24264, - "names": [ - { - "String": { - "sval": "prsd_start", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "start", - "location": 24256, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 24287, - "names": [ - { - "String": { - "sval": "prsd_nexttoken", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "gettoken", - "location": 24276, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 24309, - "names": [ - { - "String": { - "sval": "prsd_end", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "end", - "location": 24303, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 24330, - "names": [ - { - "String": { - "sval": "prsd_lextype", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "lextypes", - "location": 24319, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "alt_ts_prs2", - }, - }, - ], - "kind": "OBJECT_TSPARSER", - }, - }, - "stmt_len": 140, - "stmt_location": 24203, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "alt_nsp2", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "alt_ts_prs2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_TSPARSER", - }, - }, - "stmt_len": 57, - "stmt_location": 24344, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "t", - }, - "inh": true, - "location": 24463, - "relname": "pg_ts_parser", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "n", - }, - "inh": true, - "location": 24479, - "relname": "pg_namespace", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 24564, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "prsname", - }, - }, - ], - "location": 24573, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 24439, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 24439, - }, - }, - }, - }, - { - "ResTarget": { - "location": 24448, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "prsname", - }, - }, - ], - "location": 24448, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "String": { - "sval": "prsnamespace", - }, - }, - ], - "location": 24502, - }, - }, - "location": 24517, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 24519, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 24529, - }, - }, - "location": 24537, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 24542, - "sval": { - "sval": "alt_nsp%", - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 24525, - }, - }, - }, - }, - "stmt_len": 178, - "stmt_location": 24402, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "String": { - "sval": "alt_fdw2", - }, - }, - ], - "removeType": "OBJECT_FDW", - }, - }, - "stmt_len": 74, - "stmt_location": 24581, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "String": { - "sval": "alt_fdw3", - }, - }, - ], - "removeType": "OBJECT_FDW", - }, - }, - "stmt_len": 43, - "stmt_location": 24656, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "String": { - "sval": "alt_lang2", - }, - }, - ], - "removeType": "OBJECT_LANGUAGE", - }, - }, - "stmt_len": 33, - "stmt_location": 24700, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "String": { - "sval": "alt_lang3", - }, - }, - ], - "removeType": "OBJECT_LANGUAGE", - }, - }, - "stmt_len": 32, - "stmt_location": 24734, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "String": { - "sval": "alt_lang4", - }, - }, - ], - "removeType": "OBJECT_LANGUAGE", - }, - }, - "stmt_len": 32, - "stmt_location": 24767, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "String": { - "sval": "alt_nsp1", - }, - }, - ], - "removeType": "OBJECT_SCHEMA", - }, - }, - "stmt_len": 30, - "stmt_location": 24800, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "String": { - "sval": "alt_nsp2", - }, - }, - ], - "removeType": "OBJECT_SCHEMA", - }, - }, - "stmt_len": 29, - "stmt_location": 24831, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 24873, - "rolename": "regtest_alter_user1", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 24861, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 24904, - "rolename": "regtest_alter_user2", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 24893, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 24935, - "rolename": "regtest_alter_user3", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 24924, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/alter_operator.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "alter_op_test_fn", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " SELECT NULL::BOOLEAN; ", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 67, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 98, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "immutable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 111, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 33, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 42, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 59, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 120, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "customcontsel", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "contsel", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 202, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "internal", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 215, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "stable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 233, - }, - }, - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "strict", - "location": 240, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 153, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 163, - "names": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 168, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 178, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 195, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 125, - "stmt_location": 121, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 285, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leftarg", - "location": 275, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 309, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "rightarg", - "location": 298, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 334, - "names": [ - { - "String": { - "sval": "alter_op_test_fn", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "procedure", - "location": 322, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "===", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "commutator", - "location": 356, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "!==", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "negator", - "location": 378, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 408, - "names": [ - { - "String": { - "sval": "customcontsel", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "restrict", - "location": 397, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 434, - "names": [ - { - "String": { - "sval": "contjoinsel", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "join", - "location": 427, - }, - }, - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "hashes", - "location": 451, - }, - }, - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "merges", - "location": 459, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "===", - }, - }, - ], - "kind": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 220, - "stmt_location": 247, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 550, - "relname": "pg_depend", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 657, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 477, - "name": "ref", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "refclassid", - }, - }, - ], - "location": 496, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "refobjid", - }, - }, - ], - "location": 507, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "refobjsubid", - }, - }, - ], - "location": 516, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_describe_object", - }, - }, - ], - "location": 477, - }, - }, - }, - }, - { - "ResTarget": { - "location": 537, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "deptype", - }, - }, - ], - "location": 537, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "classid", - }, - }, - ], - "location": 566, - }, - }, - "location": 574, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 576, - "sval": { - "sval": "pg_operator", - }, - }, - }, - "location": 589, - "typeName": { - "location": 591, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objid", - }, - }, - ], - "location": 610, - }, - }, - "location": 616, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 618, - "sval": { - "sval": "===(bool,bool)", - }, - }, - }, - "location": 634, - "typeName": { - "location": 636, - "names": [ - { - "String": { - "sval": "regoperator", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 600, - }, - }, - }, - }, - "stmt_len": 190, - "stmt_location": 468, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOperatorStmt": { - "opername": { - "objargs": [ - { - "TypeName": { - "location": 712, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 721, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "===", - }, - }, - ], - }, - "options": [ - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "restrict", - "location": 735, - }, - }, - ], - }, - }, - "stmt_len": 92, - "stmt_location": 659, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOperatorStmt": { - "opername": { - "objargs": [ - { - "TypeName": { - "location": 773, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 782, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "===", - }, - }, - ], - }, - "options": [ - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "join", - "location": 796, - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 752, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 840, - "relname": "pg_operator", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 818, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprrest", - }, - }, - ], - "location": 818, - }, - }, - }, - }, - { - "ResTarget": { - "location": 827, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprjoin", - }, - }, - ], - "location": 827, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprname", - }, - }, - ], - "location": 858, - }, - }, - "location": 866, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 868, - "sval": { - "sval": "===", - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprleft", - }, - }, - ], - "location": 880, - }, - }, - "location": 888, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 890, - "sval": { - "sval": "boolean", - }, - }, - }, - "location": 899, - "typeName": { - "location": 901, - "names": [ - { - "String": { - "sval": "regtype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprright", - }, - }, - ], - "location": 913, - }, - }, - "location": 922, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 924, - "sval": { - "sval": "boolean", - }, - }, - }, - "location": 933, - "typeName": { - "location": 935, - "names": [ - { - "String": { - "sval": "regtype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 876, - }, - }, - }, - }, - "stmt_len": 133, - "stmt_location": 809, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1025, - "relname": "pg_depend", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1132, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 952, - "name": "ref", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "refclassid", - }, - }, - ], - "location": 971, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "refobjid", - }, - }, - ], - "location": 982, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "refobjsubid", - }, - }, - ], - "location": 991, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_describe_object", - }, - }, - ], - "location": 952, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1012, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "deptype", - }, - }, - ], - "location": 1012, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "classid", - }, - }, - ], - "location": 1041, - }, - }, - "location": 1049, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1051, - "sval": { - "sval": "pg_operator", - }, - }, - }, - "location": 1064, - "typeName": { - "location": 1066, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objid", - }, - }, - ], - "location": 1085, - }, - }, - "location": 1091, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1093, - "sval": { - "sval": "===(bool,bool)", - }, - }, - }, - "location": 1109, - "typeName": { - "location": 1111, - "names": [ - { - "String": { - "sval": "regoperator", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 1075, - }, - }, - }, - }, - "stmt_len": 190, - "stmt_location": 943, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOperatorStmt": { - "opername": { - "objargs": [ - { - "TypeName": { - "location": 1156, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 1165, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "===", - }, - }, - ], - }, - "options": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1190, - "names": [ - { - "String": { - "sval": "contsel", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "restrict", - "location": 1179, - }, - }, - ], - }, - }, - "stmt_len": 64, - "stmt_location": 1134, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOperatorStmt": { - "opername": { - "objargs": [ - { - "TypeName": { - "location": 1220, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 1229, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "===", - }, - }, - ], - }, - "options": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1250, - "names": [ - { - "String": { - "sval": "contjoinsel", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "join", - "location": 1243, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 1199, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1294, - "relname": "pg_operator", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1272, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprrest", - }, - }, - ], - "location": 1272, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1281, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprjoin", - }, - }, - ], - "location": 1281, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprname", - }, - }, - ], - "location": 1312, - }, - }, - "location": 1320, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1322, - "sval": { - "sval": "===", - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprleft", - }, - }, - ], - "location": 1334, - }, - }, - "location": 1342, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1344, - "sval": { - "sval": "boolean", - }, - }, - }, - "location": 1353, - "typeName": { - "location": 1355, - "names": [ - { - "String": { - "sval": "regtype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprright", - }, - }, - ], - "location": 1367, - }, - }, - "location": 1376, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1378, - "sval": { - "sval": "boolean", - }, - }, - }, - "location": 1387, - "typeName": { - "location": 1389, - "names": [ - { - "String": { - "sval": "regtype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 1330, - }, - }, - }, - }, - "stmt_len": 133, - "stmt_location": 1263, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1479, - "relname": "pg_depend", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1586, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1406, - "name": "ref", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "refclassid", - }, - }, - ], - "location": 1425, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "refobjid", - }, - }, - ], - "location": 1436, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "refobjsubid", - }, - }, - ], - "location": 1445, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_describe_object", - }, - }, - ], - "location": 1406, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1466, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "deptype", - }, - }, - ], - "location": 1466, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "classid", - }, - }, - ], - "location": 1495, - }, - }, - "location": 1503, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1505, - "sval": { - "sval": "pg_operator", - }, - }, - }, - "location": 1518, - "typeName": { - "location": 1520, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objid", - }, - }, - ], - "location": 1539, - }, - }, - "location": 1545, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1547, - "sval": { - "sval": "===(bool,bool)", - }, - }, - }, - "location": 1563, - "typeName": { - "location": 1565, - "names": [ - { - "String": { - "sval": "regoperator", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 1529, - }, - }, - }, - }, - "stmt_len": 190, - "stmt_location": 1397, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOperatorStmt": { - "opername": { - "objargs": [ - { - "TypeName": { - "location": 1610, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 1619, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "===", - }, - }, - ], - }, - "options": [ - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "restrict", - "location": 1633, - }, - }, - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "join", - "location": 1650, - }, - }, - ], - }, - }, - "stmt_len": 74, - "stmt_location": 1588, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1694, - "relname": "pg_operator", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1672, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprrest", - }, - }, - ], - "location": 1672, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1681, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprjoin", - }, - }, - ], - "location": 1681, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprname", - }, - }, - ], - "location": 1712, - }, - }, - "location": 1720, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1722, - "sval": { - "sval": "===", - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprleft", - }, - }, - ], - "location": 1734, - }, - }, - "location": 1742, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1744, - "sval": { - "sval": "boolean", - }, - }, - }, - "location": 1753, - "typeName": { - "location": 1755, - "names": [ - { - "String": { - "sval": "regtype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprright", - }, - }, - ], - "location": 1767, - }, - }, - "location": 1776, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1778, - "sval": { - "sval": "boolean", - }, - }, - }, - "location": 1787, - "typeName": { - "location": 1789, - "names": [ - { - "String": { - "sval": "regtype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 1730, - }, - }, - }, - }, - "stmt_len": 133, - "stmt_location": 1663, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1879, - "relname": "pg_depend", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1986, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1806, - "name": "ref", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "refclassid", - }, - }, - ], - "location": 1825, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "refobjid", - }, - }, - ], - "location": 1836, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "refobjsubid", - }, - }, - ], - "location": 1845, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_describe_object", - }, - }, - ], - "location": 1806, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1866, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "deptype", - }, - }, - ], - "location": 1866, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "classid", - }, - }, - ], - "location": 1895, - }, - }, - "location": 1903, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1905, - "sval": { - "sval": "pg_operator", - }, - }, - }, - "location": 1918, - "typeName": { - "location": 1920, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objid", - }, - }, - ], - "location": 1939, - }, - }, - "location": 1945, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1947, - "sval": { - "sval": "===(bool,bool)", - }, - }, - }, - "location": 1963, - "typeName": { - "location": 1965, - "names": [ - { - "String": { - "sval": "regoperator", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 1929, - }, - }, - }, - }, - "stmt_len": 190, - "stmt_location": 1797, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOperatorStmt": { - "opername": { - "objargs": [ - { - "TypeName": { - "location": 2010, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 2019, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "===", - }, - }, - ], - }, - "options": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2044, - "names": [ - { - "String": { - "sval": "customcontsel", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "restrict", - "location": 2033, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2066, - "names": [ - { - "String": { - "sval": "contjoinsel", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "join", - "location": 2059, - }, - }, - ], - }, - }, - "stmt_len": 90, - "stmt_location": 1988, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2110, - "relname": "pg_operator", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2088, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprrest", - }, - }, - ], - "location": 2088, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2097, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprjoin", - }, - }, - ], - "location": 2097, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprname", - }, - }, - ], - "location": 2128, - }, - }, - "location": 2136, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2138, - "sval": { - "sval": "===", - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprleft", - }, - }, - ], - "location": 2150, - }, - }, - "location": 2158, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2160, - "sval": { - "sval": "boolean", - }, - }, - }, - "location": 2169, - "typeName": { - "location": 2171, - "names": [ - { - "String": { - "sval": "regtype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprright", - }, - }, - ], - "location": 2183, - }, - }, - "location": 2192, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2194, - "sval": { - "sval": "boolean", - }, - }, - }, - "location": 2203, - "typeName": { - "location": 2205, - "names": [ - { - "String": { - "sval": "regtype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 2146, - }, - }, - }, - }, - "stmt_len": 133, - "stmt_location": 2079, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2295, - "relname": "pg_depend", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2402, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2222, - "name": "ref", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "refclassid", - }, - }, - ], - "location": 2241, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "refobjid", - }, - }, - ], - "location": 2252, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "refobjsubid", - }, - }, - ], - "location": 2261, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_describe_object", - }, - }, - ], - "location": 2222, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2282, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "deptype", - }, - }, - ], - "location": 2282, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "classid", - }, - }, - ], - "location": 2311, - }, - }, - "location": 2319, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2321, - "sval": { - "sval": "pg_operator", - }, - }, - }, - "location": 2334, - "typeName": { - "location": 2336, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objid", - }, - }, - ], - "location": 2355, - }, - }, - "location": 2361, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2363, - "sval": { - "sval": "===(bool,bool)", - }, - }, - }, - "location": 2379, - "typeName": { - "location": 2381, - "names": [ - { - "String": { - "sval": "regoperator", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 2345, - }, - }, - }, - }, - "stmt_len": 190, - "stmt_location": 2213, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOperatorStmt": { - "opername": { - "objargs": [ - { - "TypeName": { - "location": 2457, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 2466, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "===", - }, - }, - ], - }, - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "====", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "commutator", - "location": 2480, - }, - }, - ], - }, - }, - "stmt_len": 94, - "stmt_location": 2404, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOperatorStmt": { - "opername": { - "objargs": [ - { - "TypeName": { - "location": 2520, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 2529, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "===", - }, - }, - ], - }, - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "====", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "negator", - "location": 2543, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 2499, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOperatorStmt": { - "opername": { - "objargs": [ - { - "TypeName": { - "location": 2580, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 2589, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "===", - }, - }, - ], - }, - "options": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2614, - "names": [ - { - "String": { - "sval": "non_existent_func", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "restrict", - "location": 2603, - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 2559, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOperatorStmt": { - "opername": { - "objargs": [ - { - "TypeName": { - "location": 2654, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 2663, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "===", - }, - }, - ], - }, - "options": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2684, - "names": [ - { - "String": { - "sval": "non_existent_func", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "join", - "location": 2677, - }, - }, - ], - }, - }, - "stmt_len": 69, - "stmt_location": 2633, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOperatorStmt": { - "opername": { - "objargs": [ - { - "TypeName": { - "location": 2724, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 2733, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "===", - }, - }, - ], - }, - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "!==", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "commutator", - "location": 2747, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 2703, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOperatorStmt": { - "opername": { - "objargs": [ - { - "TypeName": { - "location": 2786, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 2795, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "===", - }, - }, - ], - }, - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "!==", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "negator", - "location": 2809, - }, - }, - ], - }, - }, - "stmt_len": 58, - "stmt_location": 2765, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "role": "regtest_alter_user", - "stmt_type": "ROLESTMT_USER", - }, - }, - "stmt_len": 97, - "stmt_location": 2824, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 2949, - "sval": { - "sval": "regtest_alter_user", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "session_authorization", - }, - }, - "stmt_len": 45, - "stmt_location": 2922, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOperatorStmt": { - "opername": { - "objargs": [ - { - "TypeName": { - "location": 2990, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 2999, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "===", - }, - }, - ], - }, - "options": [ - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "restrict", - "location": 3013, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 2968, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "session_authorization", - }, - }, - "stmt_len": 41, - "stmt_location": 3030, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 3083, - "rolename": "regtest_alter_user", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 29, - "stmt_location": 3072, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 3122, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 3131, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "===", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 37, - "stmt_location": 3102, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 3169, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 3179, - "names": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 3184, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 3194, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 3169, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 3179, - "names": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 3184, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 3194, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "customcontsel", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 62, - "stmt_location": 3140, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 3235, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 3244, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 3235, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 3244, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "alter_op_test_fn", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 49, - "stmt_location": 3203, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/async.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 84, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 94, - "sval": { - "sval": "notify_async1", - }, - }, - }, - { - "A_Const": { - "location": 110, - "sval": { - "sval": "sample message1", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_notify", - }, - }, - ], - "location": 84, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 128, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 137, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 147, - "sval": { - "sval": "notify_async1", - }, - }, - }, - { - "A_Const": { - "location": 163, - "sval": { - "sval": "", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_notify", - }, - }, - ], - "location": 137, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 129, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 175, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 185, - "sval": { - "sval": "notify_async1", - }, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 201, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_notify", - }, - }, - ], - "location": 175, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 167, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 281, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 291, - "sval": { - "sval": "", - }, - }, - }, - { - "A_Const": { - "location": 294, - "sval": { - "sval": "sample message1", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_notify", - }, - }, - ], - "location": 281, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 105, - "stmt_location": 207, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 321, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "isnull": true, - "location": 331, - }, - }, - { - "A_Const": { - "location": 336, - "sval": { - "sval": "sample message1", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_notify", - }, - }, - ], - "location": 321, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 41, - "stmt_location": 313, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 363, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 373, - "sval": { - "sval": "notify_async_channel_name_too_long______________________________", - }, - }, - }, - { - "A_Const": { - "location": 440, - "sval": { - "sval": "sample_message1", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_notify", - }, - }, - ], - "location": 363, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 103, - "stmt_location": 355, - }, - }, - { - "RawStmt": { - "stmt": { - "NotifyStmt": { - "conditionname": "notify_async2", - }, - }, - "stmt_len": 75, - "stmt_location": 459, - }, - }, - { - "RawStmt": { - "stmt": { - "ListenStmt": { - "conditionname": "notify_async2", - }, - }, - "stmt_len": 21, - "stmt_location": 535, - }, - }, - { - "RawStmt": { - "stmt": { - "UnlistenStmt": { - "conditionname": "notify_async2", - }, - }, - "stmt_len": 23, - "stmt_location": 557, - }, - }, - { - "RawStmt": { - "stmt": { - "UnlistenStmt": {}, - }, - "stmt_len": 11, - "stmt_location": 581, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 736, - "val": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_notification_queue_usage", - }, - }, - ], - "location": 736, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 172, - "stmt_location": 593, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/bit.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 68, - "relname": "bit_table", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 78, - "typeName": { - "location": 80, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 11, - }, - "location": 84, - }, - }, - ], - }, - }, - }, - ], - }, - }, - "stmt_len": 88, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 103, - "relname": "bit_table", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "bsval": { - "bsval": "b10", - }, - "location": 121, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 38, - "stmt_location": 89, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 154, - "relname": "bit_table", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "bsval": { - "bsval": "b00000000000", - }, - "location": 172, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 128, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 201, - "relname": "bit_table", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "bsval": { - "bsval": "b11011000000", - }, - "location": 219, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 188, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 248, - "relname": "bit_table", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "bsval": { - "bsval": "b01010101010", - }, - "location": 266, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 235, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 295, - "relname": "bit_table", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "bsval": { - "bsval": "b101011111010", - }, - "location": 313, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 47, - "stmt_location": 282, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 440, - "relname": "bit_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 433, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 433, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 119, - "stmt_location": 330, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 465, - "relname": "varbit_table", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "v", - "is_local": true, - "location": 478, - "typeName": { - "location": 480, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varbit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 11, - }, - "location": 492, - }, - }, - ], - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 450, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 511, - "relname": "varbit_table", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "bsval": { - "bsval": "b", - }, - "location": 532, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 39, - "stmt_location": 497, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 550, - "relname": "varbit_table", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "bsval": { - "bsval": "b0", - }, - "location": 571, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 39, - "stmt_location": 537, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 590, - "relname": "varbit_table", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "bsval": { - "bsval": "b010101", - }, - "location": 611, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 44, - "stmt_location": 577, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 635, - "relname": "varbit_table", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "bsval": { - "bsval": "b01010101010", - }, - "location": 656, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 49, - "stmt_location": 622, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 685, - "relname": "varbit_table", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "bsval": { - "bsval": "b101011111010", - }, - "location": 706, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 50, - "stmt_location": 672, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 838, - "relname": "varbit_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 831, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 831, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 127, - "stmt_location": 723, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 915, - "relname": "bit_table", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 926, - "relname": "varbit_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 955, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 878, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 878, - }, - }, - }, - }, - { - "ResTarget": { - "location": 881, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 881, - }, - }, - }, - }, - { - "ResTarget": { - "location": 884, - "name": "concat", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 885, - }, - }, - "location": 887, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 890, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 105, - "stmt_location": 851, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1007, - "relname": "bit_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 976, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 976, - }, - }, - }, - }, - { - "ResTarget": { - "location": 979, - "name": "lb", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 986, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "length", - }, - }, - ], - "location": 979, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 957, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1056, - "relname": "varbit_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1025, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 1025, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1028, - "name": "lv", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 1035, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "length", - }, - }, - ], - "location": 1028, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 1017, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1234, - "relname": "bit_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1091, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1091, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1101, - "name": "sub_2_4", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1111, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1118, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 1124, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "substring", - }, - }, - ], - "location": 1101, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1146, - "name": "sub_7_13", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1156, - }, - }, - { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 1163, - }, - }, - { - "A_Const": { - "ival": { - "ival": 13, - }, - "location": 1169, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "substring", - }, - }, - ], - "location": 1146, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1193, - "name": "sub_6", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1203, - }, - }, - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 1210, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "substring", - }, - }, - ], - "location": 1193, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 174, - "stmt_location": 1069, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1395, - "relname": "varbit_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1252, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 1252, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1262, - "name": "sub_2_4", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 1272, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1279, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 1285, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "substring", - }, - }, - ], - "location": 1262, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1307, - "name": "sub_7_13", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 1317, - }, - }, - { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 1324, - }, - }, - { - "A_Const": { - "ival": { - "ival": 13, - }, - "location": 1330, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "substring", - }, - }, - ], - "location": 1307, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1354, - "name": "sub_6", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 1364, - }, - }, - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 1371, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "substring", - }, - }, - ], - "location": 1354, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 163, - "stmt_location": 1244, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "varbit_table", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 44, - "stmt_location": 1408, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1467, - "relname": "varbit_table", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 1481, - "typeName": { - "location": 1483, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varbit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 16, - }, - "location": 1495, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 1500, - "typeName": { - "location": 1502, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varbit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 16, - }, - "location": 1514, - }, - }, - ], - }, - }, - }, - ], - }, - }, - "stmt_len": 65, - "stmt_location": 1453, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1636, - "relname": "varbit_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1552, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1552, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1555, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1555, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1558, - "name": "~ a", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 1558, - "name": [ - { - "String": { - "sval": "~", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1559, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1571, - "name": "a & b", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1571, - }, - }, - "location": 1573, - "name": [ - { - "String": { - "sval": "&", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1575, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1596, - "name": "a | b", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1596, - }, - }, - "location": 1598, - "name": [ - { - "String": { - "sval": "|", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1600, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1614, - "name": "a # b", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1614, - }, - }, - "location": 1616, - "name": [ - { - "String": { - "sval": "#", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1618, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 129, - "stmt_location": 1519, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1759, - "relname": "varbit_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1657, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1657, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1659, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1659, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1661, - "name": "a=b", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1711, - }, - }, - "location": 1712, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1714, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1726, - "name": "a>b", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1726, - }, - }, - "location": 1727, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1728, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1739, - "name": "a<>b", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1739, - }, - }, - "location": 1740, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1742, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 122, - "stmt_location": 1649, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1819, - "relname": "varbit_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1780, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1780, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1782, - "name": "a<<4", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1782, - }, - }, - "location": 1783, - "name": [ - { - "String": { - "sval": "<<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 1785, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1797, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1797, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1799, - "name": "b>>2", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1799, - }, - }, - "location": 1800, - "name": [ - { - "String": { - "sval": ">>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1802, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 1772, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "varbit_table", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 25, - "stmt_location": 1832, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "bit_table", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 41, - "stmt_location": 1858, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1914, - "relname": "bit_table", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 1925, - "typeName": { - "location": 1927, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 16, - }, - "location": 1931, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 1936, - "typeName": { - "location": 1938, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 16, - }, - "location": 1942, - }, - }, - ], - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 1900, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2053, - "relname": "bit_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1980, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1980, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1982, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1982, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1984, - "name": "~ a", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 1984, - "name": [ - { - "String": { - "sval": "~", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1985, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1996, - "name": "a & b", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1996, - }, - }, - "location": 1998, - "name": [ - { - "String": { - "sval": "&", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2000, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2015, - "name": "a | b", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2015, - }, - }, - "location": 2016, - "name": [ - { - "String": { - "sval": "|", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2017, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2031, - "name": "a # b", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2031, - }, - }, - "location": 2033, - "name": [ - { - "String": { - "sval": "#", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2035, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 115, - "stmt_location": 1947, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2173, - "relname": "bit_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2071, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2071, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2073, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2073, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2075, - "name": "a=b", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2125, - }, - }, - "location": 2126, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2128, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2140, - "name": "a>b", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2140, - }, - }, - "location": 2141, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2142, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2153, - "name": "a<>b", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2153, - }, - }, - "location": 2154, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2156, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 119, - "stmt_location": 2063, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2230, - "relname": "bit_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2191, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2191, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2193, - "name": "a<<4", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2193, - }, - }, - "location": 2194, - "name": [ - { - "String": { - "sval": "<<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 2196, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2208, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2208, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2210, - "name": "b>>2", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2210, - }, - }, - "location": 2211, - "name": [ - { - "String": { - "sval": ">>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2213, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 2183, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "bit_table", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 22, - "stmt_location": 2240, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2302, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "bsval": { - "bsval": "b001", - }, - "location": 2302, - }, - }, - "location": 2309, - "name": [ - { - "String": { - "sval": "&", - }, - }, - ], - "rexpr": { - "A_Const": { - "bsval": { - "bsval": "b10", - }, - "location": 2311, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 2263, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2325, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "bsval": { - "bsval": "b0111", - }, - "location": 2325, - }, - }, - "location": 2333, - "name": [ - { - "String": { - "sval": "|", - }, - }, - ], - "rexpr": { - "A_Const": { - "bsval": { - "bsval": "b011", - }, - "location": 2335, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 2317, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2350, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "bsval": { - "bsval": "b0010", - }, - "location": 2350, - }, - }, - "location": 2358, - "name": [ - { - "String": { - "sval": "#", - }, - }, - ], - "rexpr": { - "A_Const": { - "bsval": { - "bsval": "b011101", - }, - "location": 2360, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 2342, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2435, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b0000101", - }, - "location": 2455, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b1010", - }, - "location": 2444, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 2435, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 96, - "stmt_location": 2370, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2482, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b00001010", - }, - "location": 2502, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b1010", - }, - "location": 2491, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 2482, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 2467, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2529, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b00000101", - }, - "location": 2549, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b1010", - }, - "location": 2538, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 2529, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 2515, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2576, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b000001010", - }, - "location": 2596, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b1010", - }, - "location": 2585, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 2576, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 2562, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2625, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b00001010", - }, - "location": 2641, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b", - }, - "location": 2634, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 2625, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 43, - "stmt_location": 2610, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2668, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b", - }, - "location": 2685, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b0", - }, - "location": 2677, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 2668, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 2654, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2704, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b", - }, - "location": 2720, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b", - }, - "location": 2713, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 2704, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 2690, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2739, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b001011011011011000", - }, - "location": 2761, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b101101", - }, - "location": 2748, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 2739, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 58, - "stmt_location": 2725, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2798, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b001011011011010", - }, - "location": 2822, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b10110110", - }, - "location": 2807, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 2798, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 2784, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2856, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b001011011011011", - }, - "location": 2885, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b1011011011011", - }, - "location": 2865, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 2856, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 2842, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2919, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b00001011011011011", - }, - "location": 2948, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b1011011011011", - }, - "location": 2928, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 2919, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 64, - "stmt_location": 2905, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2985, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b11101011", - }, - "location": 3009, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b11101011", - }, - "location": 2994, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 2985, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 2970, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3035, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b011101011", - }, - "location": 3059, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b11101011", - }, - "location": 3044, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 3035, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 50, - "stmt_location": 3022, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3086, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b00011101011", - }, - "location": 3110, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b11101011", - }, - "location": 3095, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 3086, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 3073, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3139, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b0000011101011", - }, - "location": 3163, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b11101011", - }, - "location": 3148, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 3139, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 3126, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3195, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b111010110", - }, - "location": 3220, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b111010110", - }, - "location": 3204, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 3195, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 3181, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3247, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b0111010110", - }, - "location": 3272, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b111010110", - }, - "location": 3256, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 3247, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 3234, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3300, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b000111010110", - }, - "location": 3325, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b111010110", - }, - "location": 3309, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 3300, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 3287, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3355, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b00000111010110", - }, - "location": 3380, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b111010110", - }, - "location": 3364, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 3355, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 3342, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3413, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b11101011", - }, - "location": 3438, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b111010110", - }, - "location": 3422, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 3413, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 3399, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3464, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b011101011", - }, - "location": 3489, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b111010110", - }, - "location": 3473, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 3464, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 3451, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3516, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b00011101011", - }, - "location": 3541, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b111010110", - }, - "location": 3525, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 3516, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 3503, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3570, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b0000011101011", - }, - "location": 3595, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b111010110", - }, - "location": 3579, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 3570, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 55, - "stmt_location": 3557, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3627, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b111010110", - }, - "location": 3652, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b111010110", - }, - "location": 3636, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 3627, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 3613, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3679, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b0111010110", - }, - "location": 3704, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b111010110", - }, - "location": 3688, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 3679, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 3666, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3732, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b000111010110", - }, - "location": 3757, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b111010110", - }, - "location": 3741, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 3732, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 3719, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3787, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b00000111010110", - }, - "location": 3812, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b111010110", - }, - "location": 3796, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 3787, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 3774, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3845, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b000001110101111101011", - }, - "location": 3870, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b111010110", - }, - "location": 3854, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 3845, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 64, - "stmt_location": 3831, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3909, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b0000001110101111101011", - }, - "location": 3934, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b111010110", - }, - "location": 3918, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 3909, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 64, - "stmt_location": 3896, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3974, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b000000001110101111101011", - }, - "location": 3999, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b111010110", - }, - "location": 3983, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 3974, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 66, - "stmt_location": 3961, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4041, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b00000000001110101111101011", - }, - "location": 4066, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b111010110", - }, - "location": 4050, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 4041, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 68, - "stmt_location": 4028, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4111, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b0000011101011111010110", - }, - "location": 4136, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b111010110", - }, - "location": 4120, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 4111, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 65, - "stmt_location": 4097, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4177, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b00000011101011111010110", - }, - "location": 4202, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b111010110", - }, - "location": 4186, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 4177, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 66, - "stmt_location": 4163, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4244, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b0000000011101011111010110", - }, - "location": 4269, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b111010110", - }, - "location": 4253, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 4244, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 68, - "stmt_location": 4230, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4313, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b000000000011101011111010110", - }, - "location": 4338, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b111010110", - }, - "location": 4322, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 4313, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 70, - "stmt_location": 4299, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4385, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b000000000011101011111010110", - }, - "location": 4428, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b000000000011101011111010110", - }, - "location": 4394, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 4385, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 89, - "stmt_location": 4370, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4473, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b000000000011101011111010110", - }, - "location": 4515, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b00000000011101011111010110", - }, - "location": 4482, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 4473, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 86, - "stmt_location": 4460, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4560, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b000000000011101011111010110", - }, - "location": 4604, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b0000000000011101011111010110", - }, - "location": 4569, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 4560, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 88, - "stmt_location": 4547, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 4670, - "relname": "bit_shift_table", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 4686, - "typeName": { - "location": 4688, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 16, - }, - "location": 4692, - }, - }, - ], - }, - }, - }, - ], - }, - }, - "stmt_len": 60, - "stmt_location": 4636, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4710, - "relname": "bit_shift_table", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "bsval": { - "bsval": "b1101100000000000", - }, - "location": 4734, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 57, - "stmt_location": 4697, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4768, - "relname": "bit_shift_table", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4801, - "relname": "bit_shift_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4791, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4791, - }, - }, - "location": 4792, - "name": [ - { - "String": { - "sval": ">>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4794, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 61, - "stmt_location": 4755, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4830, - "relname": "bit_shift_table", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4863, - "relname": "bit_shift_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4853, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4853, - }, - }, - "location": 4854, - "name": [ - { - "String": { - "sval": ">>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4856, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 61, - "stmt_location": 4817, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4892, - "relname": "bit_shift_table", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4925, - "relname": "bit_shift_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4915, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4915, - }, - }, - "location": 4916, - "name": [ - { - "String": { - "sval": ">>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 4918, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 61, - "stmt_location": 4879, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4954, - "relname": "bit_shift_table", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4987, - "relname": "bit_shift_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4977, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4977, - }, - }, - "location": 4978, - "name": [ - { - "String": { - "sval": ">>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 8, - }, - "location": 4980, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 61, - "stmt_location": 4941, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5088, - "relname": "bit_shift_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5011, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5031, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b1101", - }, - "location": 5020, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 5011, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5042, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5063, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b11011", - }, - "location": 5051, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 5042, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5074, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5074, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 101, - "stmt_location": 5003, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 5121, - "relname": "varbit_shift_table", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "v", - "is_local": true, - "location": 5140, - "typeName": { - "location": 5142, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varbit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 20, - }, - "location": 5154, - }, - }, - ], - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 5105, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5172, - "relname": "varbit_shift_table", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "bsval": { - "bsval": "b11011", - }, - "location": 5199, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 49, - "stmt_location": 5159, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5222, - "relname": "varbit_shift_table", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5291, - "relname": "varbit_shift_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5248, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 5253, - }, - }, - "location": 5255, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "A_Const": { - "bsval": { - "bsval": "b0", - }, - "location": 5258, - }, - }, - }, - }, - "location": 5248, - "typeName": { - "location": 5266, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varbit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 5278, - }, - }, - ], - }, - }, - }, - "location": 5282, - "name": [ - { - "String": { - "sval": ">>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5284, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 100, - "stmt_location": 5209, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5323, - "relname": "varbit_shift_table", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5393, - "relname": "varbit_shift_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5349, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 5354, - }, - }, - "location": 5356, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "A_Const": { - "bsval": { - "bsval": "b00", - }, - "location": 5359, - }, - }, - }, - }, - "location": 5349, - "typeName": { - "location": 5368, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varbit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 8, - }, - "location": 5380, - }, - }, - ], - }, - }, - }, - "location": 5384, - "name": [ - { - "String": { - "sval": ">>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5386, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 101, - "stmt_location": 5310, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5425, - "relname": "varbit_shift_table", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5498, - "relname": "varbit_shift_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5451, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 5456, - }, - }, - "location": 5458, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "A_Const": { - "bsval": { - "bsval": "b0000", - }, - "location": 5461, - }, - }, - }, - }, - "location": 5451, - "typeName": { - "location": 5472, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varbit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 12, - }, - "location": 5484, - }, - }, - ], - }, - }, - }, - "location": 5489, - "name": [ - { - "String": { - "sval": ">>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 5491, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 104, - "stmt_location": 5412, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5530, - "relname": "varbit_shift_table", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5607, - "relname": "varbit_shift_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5556, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 5561, - }, - }, - "location": 5563, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "A_Const": { - "bsval": { - "bsval": "b00000000", - }, - "location": 5566, - }, - }, - }, - }, - "location": 5556, - "typeName": { - "location": 5581, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varbit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 20, - }, - "location": 5593, - }, - }, - ], - }, - }, - }, - "location": 5598, - "name": [ - { - "String": { - "sval": ">>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 8, - }, - "location": 5600, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 108, - "stmt_location": 5517, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5711, - "relname": "varbit_shift_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5634, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 5654, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b1101", - }, - "location": 5643, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 5634, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5665, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 5686, - }, - }, - { - "A_Const": { - "bsval": { - "bsval": "b11011", - }, - "location": 5674, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "position", - }, - }, - ], - "location": 5665, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5697, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 5697, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 104, - "stmt_location": 5626, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "bit_shift_table", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 29, - "stmt_location": 5731, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "varbit_shift_table", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 30, - "stmt_location": 5761, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5816, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b0101011000100", - }, - "location": 5824, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 5842, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "get_bit", - }, - }, - ], - "location": 5816, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 5792, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5854, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b0101011000100100", - }, - "location": 5862, - }, - }, - { - "A_Const": { - "ival": { - "ival": 15, - }, - "location": 5883, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5887, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "set_bit", - }, - }, - ], - "location": 5854, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 43, - "stmt_location": 5846, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5898, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b0101011000100100", - }, - "location": 5906, - }, - }, - { - "A_Const": { - "ival": { - "ival": 16, - }, - "location": 5927, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5931, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "set_bit", - }, - }, - ], - "location": 5898, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 43, - "stmt_location": 5890, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5962, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b0101011100", - }, - "location": 5970, - }, - }, - { - "A_Const": { - "location": 5992, - "sval": { - "sval": "001", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6003, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 6009, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "overlay", - }, - }, - ], - "location": 5962, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 77, - "stmt_location": 5934, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6020, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b0101011100", - }, - "location": 6028, - }, - }, - { - "A_Const": { - "location": 6050, - "sval": { - "sval": "101", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 6061, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "overlay", - }, - }, - ], - "location": 6020, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 6012, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6072, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b0101011100", - }, - "location": 6080, - }, - }, - { - "A_Const": { - "location": 6102, - "sval": { - "sval": "001", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 11, - }, - "location": 6113, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "overlay", - }, - }, - ], - "location": 6072, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 6064, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6125, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "bsval": { - "bsval": "b0101011100", - }, - "location": 6133, - }, - }, - { - "A_Const": { - "location": 6155, - "sval": { - "sval": "001", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 20, - }, - "location": 6166, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "overlay", - }, - }, - ], - "location": 6125, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 6117, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/bitmapops.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 586, - "relname": "bmscantest", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 598, - "typeName": { - "location": 600, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 605, - "typeName": { - "location": 607, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "t", - "is_local": true, - "location": 612, - "typeName": { - "location": 614, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 619, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 634, - "relname": "bmscantest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "r", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 803, - }, - }, - { - "A_Const": { - "ival": { - "ival": 70000, - }, - "location": 805, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 787, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 654, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "r", - }, - }, - ], - "location": 655, - }, - }, - "location": 656, - "name": [ - { - "String": { - "sval": "%", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 53, - }, - "location": 657, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 662, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "r", - }, - }, - ], - "location": 663, - }, - }, - "location": 664, - "name": [ - { - "String": { - "sval": "%", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 59, - }, - "location": 665, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 670, - "val": { - "A_Const": { - "location": 670, - "sval": { - "sval": "foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo", - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 193, - "stmt_location": 620, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "i_bmtest_a", - "indexParams": [ - { - "IndexElem": { - "name": "a", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 843, - "relname": "bmscantest", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 42, - "stmt_location": 814, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "i_bmtest_b", - "indexParams": [ - { - "IndexElem": { - "name": "b", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 885, - "relname": "bmscantest", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 41, - "stmt_location": 857, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 1074, - "sval": { - "sval": "false", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_indexscan", - }, - }, - "stmt_len": 180, - "stmt_location": 899, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 1100, - "sval": { - "sval": "false", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_seqscan", - }, - }, - "stmt_len": 25, - "stmt_location": 1080, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 64, - }, - "location": 1173, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "work_mem", - }, - }, - "stmt_len": 69, - "stmt_location": 1106, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1220, - "relname": "bmscantest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1206, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 1206, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1237, - }, - }, - "location": 1239, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1241, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1247, - }, - }, - "location": 1249, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1251, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 1243, - }, - }, - }, - }, - "stmt_len": 76, - "stmt_location": 1176, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1295, - "relname": "bmscantest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1281, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 1281, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1312, - }, - }, - "location": 1314, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1316, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1321, - }, - }, - "location": 1323, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1325, - }, - }, - }, - }, - ], - "boolop": "OR_EXPR", - "location": 1318, - }, - }, - }, - }, - "stmt_len": 73, - "stmt_location": 1253, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "bmscantest", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 36, - "stmt_location": 1327, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/boolean.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 74, - "name": "one", - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 74, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 82, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 190, - "name": "true", - "val": { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 190, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 119, - "stmt_location": 83, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 212, - "name": "false", - "val": { - "A_Const": { - "boolval": {}, - "location": 212, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 203, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 236, - "name": "true", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 241, - "sval": { - "sval": "t", - }, - }, - }, - "location": -1, - "typeName": { - "location": 236, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 227, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 262, - "name": "false", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 267, - "sval": { - "sval": " f ", - }, - }, - }, - "location": -1, - "typeName": { - "location": 262, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 253, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 303, - "name": "true", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 308, - "sval": { - "sval": "true", - }, - }, - }, - "location": -1, - "typeName": { - "location": 303, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 294, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 332, - "name": "error", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 337, - "sval": { - "sval": "test", - }, - }, - }, - "location": -1, - "typeName": { - "location": 332, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 29, - "stmt_location": 323, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 362, - "name": "false", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 367, - "sval": { - "sval": "false", - }, - }, - }, - "location": -1, - "typeName": { - "location": 362, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 353, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 393, - "name": "error", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 398, - "sval": { - "sval": "foo", - }, - }, - }, - "location": -1, - "typeName": { - "location": 393, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 384, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 422, - "name": "true", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 427, - "sval": { - "sval": "y", - }, - }, - }, - "location": -1, - "typeName": { - "location": 422, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 413, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 448, - "name": "true", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 453, - "sval": { - "sval": "yes", - }, - }, - }, - "location": -1, - "typeName": { - "location": 448, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 439, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 476, - "name": "error", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 481, - "sval": { - "sval": "yeah", - }, - }, - }, - "location": -1, - "typeName": { - "location": 476, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 29, - "stmt_location": 467, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 506, - "name": "false", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 511, - "sval": { - "sval": "n", - }, - }, - }, - "location": -1, - "typeName": { - "location": 506, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 497, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 533, - "name": "false", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 538, - "sval": { - "sval": "no", - }, - }, - }, - "location": -1, - "typeName": { - "location": 533, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 524, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 561, - "name": "error", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 566, - "sval": { - "sval": "nay", - }, - }, - }, - "location": -1, - "typeName": { - "location": 561, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 552, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 590, - "name": "true", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 595, - "sval": { - "sval": "on", - }, - }, - }, - "location": -1, - "typeName": { - "location": 590, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 581, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 617, - "name": "false", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 622, - "sval": { - "sval": "off", - }, - }, - }, - "location": -1, - "typeName": { - "location": 617, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 608, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 646, - "name": "false", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 651, - "sval": { - "sval": "of", - }, - }, - }, - "location": -1, - "typeName": { - "location": 646, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 637, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 674, - "name": "error", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 679, - "sval": { - "sval": "o", - }, - }, - }, - "location": -1, - "typeName": { - "location": 674, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 665, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 701, - "name": "error", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 706, - "sval": { - "sval": "on_", - }, - }, - }, - "location": -1, - "typeName": { - "location": 701, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 692, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 730, - "name": "error", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 735, - "sval": { - "sval": "off_", - }, - }, - }, - "location": -1, - "typeName": { - "location": 730, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 29, - "stmt_location": 721, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 760, - "name": "true", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 765, - "sval": { - "sval": "1", - }, - }, - }, - "location": -1, - "typeName": { - "location": 760, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 751, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 786, - "name": "error", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 791, - "sval": { - "sval": "11", - }, - }, - }, - "location": -1, - "typeName": { - "location": 786, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 777, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 814, - "name": "false", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 819, - "sval": { - "sval": "0", - }, - }, - }, - "location": -1, - "typeName": { - "location": 814, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 805, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 841, - "name": "error", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 846, - "sval": { - "sval": "000", - }, - }, - }, - "location": -1, - "typeName": { - "location": 841, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 832, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 870, - "name": "error", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 875, - "sval": { - "sval": "", - }, - }, - }, - "location": -1, - "typeName": { - "location": 870, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 861, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 931, - "name": "true", - "val": { - "BoolExpr": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 936, - "sval": { - "sval": "t", - }, - }, - }, - "location": -1, - "typeName": { - "location": 931, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 948, - "sval": { - "sval": "f", - }, - }, - }, - "location": -1, - "typeName": { - "location": 943, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "boolop": "OR_EXPR", - "location": 940, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 72, - "stmt_location": 887, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 969, - "name": "false", - "val": { - "BoolExpr": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 974, - "sval": { - "sval": "t", - }, - }, - }, - "location": -1, - "typeName": { - "location": 969, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 987, - "sval": { - "sval": "f", - }, - }, - }, - "location": -1, - "typeName": { - "location": 982, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 978, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 960, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1009, - "name": "true", - "val": { - "BoolExpr": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1018, - "sval": { - "sval": "f", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1013, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 1009, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 29, - "stmt_location": 1000, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1039, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1044, - "sval": { - "sval": "t", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1039, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1048, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1055, - "sval": { - "sval": "f", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1050, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 1030, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1077, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1082, - "sval": { - "sval": "t", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1077, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1086, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1094, - "sval": { - "sval": "f", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1089, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 1068, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1115, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1120, - "sval": { - "sval": "t", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1115, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1124, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1131, - "sval": { - "sval": "f", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1126, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 1106, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1152, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1157, - "sval": { - "sval": "t", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1152, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1161, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1169, - "sval": { - "sval": "f", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1164, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 1143, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1190, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1195, - "sval": { - "sval": "f", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1190, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1199, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1206, - "sval": { - "sval": "t", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1201, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 1181, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1227, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1232, - "sval": { - "sval": "f", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1227, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1236, - "name": [ - { - "String": { - "sval": "<=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1244, - "sval": { - "sval": "t", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1239, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 1218, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1296, - "name": "true", - "val": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1296, - "sval": { - "sval": "TrUe", - }, - }, - }, - "location": 1302, - "typeName": { - "location": 1304, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1308, - "typeName": { - "location": 1310, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1327, - "name": "false", - "val": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1327, - "sval": { - "sval": "fAlse", - }, - }, - }, - "location": 1334, - "typeName": { - "location": 1336, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1340, - "typeName": { - "location": 1342, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 102, - "stmt_location": 1256, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1367, - "name": "true", - "val": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1367, - "sval": { - "sval": " true ", - }, - }, - }, - "location": 1380, - "typeName": { - "location": 1382, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1386, - "typeName": { - "location": 1388, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1412, - "name": "false", - "val": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1412, - "sval": { - "sval": " FALSE", - }, - }, - }, - "location": 1424, - "typeName": { - "location": 1426, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1430, - "typeName": { - "location": 1432, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 89, - "stmt_location": 1359, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1457, - "name": "true", - "val": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 1457, - }, - }, - "location": 1461, - "typeName": { - "location": 1463, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1470, - "typeName": { - "location": 1472, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1486, - "name": "false", - "val": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "A_Const": { - "boolval": {}, - "location": 1486, - }, - }, - "location": 1491, - "typeName": { - "location": 1493, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1500, - "typeName": { - "location": 1502, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 66, - "stmt_location": 1449, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1525, - "name": "invalid", - "val": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1525, - "sval": { - "sval": " tru e ", - }, - }, - }, - "location": 1535, - "typeName": { - "location": 1537, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1541, - "typeName": { - "location": 1543, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 1516, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1582, - "name": "invalid", - "val": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1582, - "sval": { - "sval": "", - }, - }, - }, - "location": 1584, - "typeName": { - "location": 1586, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1590, - "typeName": { - "location": 1592, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 48, - "stmt_location": 1562, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1646, - "relname": "booltbl1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 1656, - "typeName": { - "location": 1659, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 1611, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1689, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1679, - "relname": "booltbl1", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1706, - "sval": { - "sval": "t", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1701, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 45, - "stmt_location": 1665, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1735, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1725, - "relname": "booltbl1", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1752, - "sval": { - "sval": "True", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1747, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 48, - "stmt_location": 1711, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1784, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1774, - "relname": "booltbl1", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1801, - "sval": { - "sval": "true", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1796, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 48, - "stmt_location": 1760, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1897, - "relname": "booltbl1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1870, - "name": "t_3", - "val": { - "A_Const": { - "location": 1870, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1881, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "booltbl1", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1881, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 96, - "stmt_location": 1809, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1946, - "relname": "booltbl1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1916, - "name": "t_3", - "val": { - "A_Const": { - "location": 1916, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1927, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "booltbl1", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1927, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1964, - }, - }, - "location": 1967, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1974, - "sval": { - "sval": "true", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1969, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 1906, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2021, - "relname": "booltbl1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1991, - "name": "t_3", - "val": { - "A_Const": { - "location": 1991, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2002, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "booltbl1", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 2002, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2039, - }, - }, - "location": 2042, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2050, - "sval": { - "sval": "false", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2045, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 76, - "stmt_location": 1981, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2098, - "relname": "booltbl1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2067, - "name": "zero", - "val": { - "A_Const": { - "location": 2067, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2079, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "booltbl1", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 2079, - }, - }, - }, - }, - ], - "whereClause": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2128, - "sval": { - "sval": "false", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2123, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2137, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "booleq", - }, - }, - ], - "location": 2116, - }, - }, - }, - }, - "stmt_len": 82, - "stmt_location": 2058, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2165, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2155, - "relname": "booltbl1", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2182, - "sval": { - "sval": "f", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2177, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 45, - "stmt_location": 2141, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2226, - "relname": "booltbl1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2196, - "name": "f_1", - "val": { - "A_Const": { - "location": 2196, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2207, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "booltbl1", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 2207, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2244, - }, - }, - "location": 2247, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2254, - "sval": { - "sval": "false", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2249, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 2187, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 2278, - "relname": "booltbl2", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 2288, - "typeName": { - "location": 2291, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 2262, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2321, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2311, - "relname": "booltbl2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2338, - "sval": { - "sval": "f", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2333, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 45, - "stmt_location": 2297, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2367, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2357, - "relname": "booltbl2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2384, - "sval": { - "sval": "false", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2379, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 49, - "stmt_location": 2343, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2417, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2407, - "relname": "booltbl2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2434, - "sval": { - "sval": "False", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2429, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 49, - "stmt_location": 2393, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2467, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2457, - "relname": "booltbl2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2484, - "sval": { - "sval": "FALSE", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2479, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 49, - "stmt_location": 2443, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2614, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2604, - "relname": "booltbl2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2634, - "sval": { - "sval": "XXX", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2629, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 147, - "stmt_location": 2493, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2729, - "relname": "booltbl2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2702, - "name": "f_4", - "val": { - "A_Const": { - "location": 2702, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2713, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "booltbl2", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 2713, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 96, - "stmt_location": 2641, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2792, - "relname": "booltbl1", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 2802, - "relname": "booltbl2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2748, - "name": "tf_12", - "val": { - "A_Const": { - "location": 2748, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2761, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "booltbl1", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 2761, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2773, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "booltbl2", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 2773, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "booltbl2", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2820, - }, - }, - "location": 2832, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "booltbl1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2835, - }, - }, - }, - }, - }, - }, - "stmt_len": 108, - "stmt_location": 2738, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2901, - "relname": "booltbl1", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 2911, - "relname": "booltbl2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2857, - "name": "tf_12", - "val": { - "A_Const": { - "location": 2857, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2870, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "booltbl1", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 2870, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2882, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "booltbl2", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 2882, - }, - }, - }, - }, - ], - "whereClause": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "booltbl2", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2936, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "booltbl1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2948, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "boolne", - }, - }, - ], - "location": 2929, - }, - }, - }, - }, - "stmt_len": 113, - "stmt_location": 2847, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3014, - "relname": "booltbl1", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 3024, - "relname": "booltbl2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2971, - "name": "ff_4", - "val": { - "A_Const": { - "location": 2971, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2983, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "booltbl1", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 2983, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2995, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "booltbl2", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 2995, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "booltbl2", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3042, - }, - }, - "location": 3054, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "booltbl1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3056, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "booltbl1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3072, - }, - }, - "location": 3084, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3091, - "sval": { - "sval": "false", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3086, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 3068, - }, - }, - }, - }, - "stmt_len": 137, - "stmt_location": 2961, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3158, - "relname": "booltbl1", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 3168, - "relname": "booltbl2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "booltbl1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3253, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "booltbl2", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3266, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3109, - "name": "tf_12_ff_4", - "val": { - "A_Const": { - "location": 3109, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3127, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "booltbl1", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 3127, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3139, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "booltbl2", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 3139, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "booltbl2", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3186, - }, - }, - "location": 3198, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "booltbl1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3200, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "booltbl1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3215, - }, - }, - "location": 3227, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3234, - "sval": { - "sval": "true", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3229, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "boolop": "OR_EXPR", - "location": 3212, - }, - }, - }, - }, - "stmt_len": 178, - "stmt_location": 3099, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3433, - "relname": "booltbl1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3408, - "name": "True", - "val": { - "A_Const": { - "location": 3408, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3422, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3422, - }, - }, - }, - }, - ], - "whereClause": { - "BooleanTest": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3451, - }, - }, - "booltesttype": "IS_TRUE", - "location": 3454, - }, - }, - }, - }, - "stmt_len": 183, - "stmt_location": 3278, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3501, - "relname": "booltbl1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3471, - "name": "Not False", - "val": { - "A_Const": { - "location": 3471, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3490, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3490, - }, - }, - }, - }, - ], - "whereClause": { - "BooleanTest": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3519, - }, - }, - "booltesttype": "IS_NOT_FALSE", - "location": 3522, - }, - }, - }, - }, - "stmt_len": 72, - "stmt_location": 3462, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3570, - "relname": "booltbl1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3544, - "name": "False", - "val": { - "A_Const": { - "location": 3544, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3559, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3559, - }, - }, - }, - }, - ], - "whereClause": { - "BooleanTest": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3588, - }, - }, - "booltesttype": "IS_FALSE", - "location": 3591, - }, - }, - }, - }, - "stmt_len": 64, - "stmt_location": 3535, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3638, - "relname": "booltbl1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3609, - "name": "Not True", - "val": { - "A_Const": { - "location": 3609, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3627, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3627, - }, - }, - }, - }, - ], - "whereClause": { - "BooleanTest": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3656, - }, - }, - "booltesttype": "IS_NOT_TRUE", - "location": 3659, - }, - }, - }, - }, - "stmt_len": 70, - "stmt_location": 3600, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3705, - "relname": "booltbl2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3680, - "name": "True", - "val": { - "A_Const": { - "location": 3680, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3694, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3694, - }, - }, - }, - }, - ], - "whereClause": { - "BooleanTest": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3723, - }, - }, - "booltesttype": "IS_TRUE", - "location": 3726, - }, - }, - }, - }, - "stmt_len": 62, - "stmt_location": 3671, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3773, - "relname": "booltbl2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3743, - "name": "Not False", - "val": { - "A_Const": { - "location": 3743, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3762, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3762, - }, - }, - }, - }, - ], - "whereClause": { - "BooleanTest": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3791, - }, - }, - "booltesttype": "IS_NOT_FALSE", - "location": 3794, - }, - }, - }, - }, - "stmt_len": 72, - "stmt_location": 3734, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3842, - "relname": "booltbl2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3816, - "name": "False", - "val": { - "A_Const": { - "location": 3816, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3831, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3831, - }, - }, - }, - }, - ], - "whereClause": { - "BooleanTest": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3860, - }, - }, - "booltesttype": "IS_FALSE", - "location": 3863, - }, - }, - }, - }, - "stmt_len": 64, - "stmt_location": 3807, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3910, - "relname": "booltbl2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3881, - "name": "Not True", - "val": { - "A_Const": { - "location": 3881, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3899, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3899, - }, - }, - }, - }, - ], - "whereClause": { - "BooleanTest": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3928, - }, - }, - "booltesttype": "IS_NOT_TRUE", - "location": 3931, - }, - }, - }, - }, - "stmt_len": 70, - "stmt_location": 3872, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "booltbl1", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 196, - "stmt_location": 3943, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "booltbl2", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 22, - "stmt_location": 4140, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/box.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 225, - "relname": "box_tbl", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 234, - "typeName": { - "location": 237, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 241, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 265, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 256, - "relname": "box_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 277, - "sval": { - "sval": "(2.0,2.0,0.0,0.0)", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 55, - "stmt_location": 242, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 321, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 312, - "relname": "box_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 333, - "sval": { - "sval": "(1.0,1.0,3.0,3.0)", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 55, - "stmt_location": 298, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 487, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 478, - "relname": "box_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 499, - "sval": { - "sval": "(2.5, 2.5, 2.5,3.5)", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 167, - "stmt_location": 354, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 545, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 536, - "relname": "box_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 557, - "sval": { - "sval": "(3.0, 3.0,3.0,3.0)", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 56, - "stmt_location": 522, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 632, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 623, - "relname": "box_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 644, - "sval": { - "sval": "(2.3, 4.5)", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 78, - "stmt_location": 579, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 681, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 672, - "relname": "box_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 693, - "sval": { - "sval": "asdfasdf(ad", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 49, - "stmt_location": 658, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 737, - "relname": "box_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 718, - "name": "four", - "val": { - "A_Const": { - "location": 718, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 730, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 730, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 708, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 799, - "relname": "box_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 754, - "name": "four", - "val": { - "A_Const": { - "location": 754, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 766, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 766, - }, - }, - }, - }, - { - "ResTarget": { - "location": 771, - "name": "barea", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 776, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "area", - }, - }, - ], - "location": 771, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 745, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 855, - "relname": "box_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 829, - "name": "three", - "val": { - "A_Const": { - "location": 829, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 842, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 842, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 874, - }, - }, - "location": 879, - "name": [ - { - "String": { - "sval": "&&", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 886, - "sval": { - "sval": "(2.5,2.5,1.0,1.0)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 882, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 96, - "stmt_location": 809, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b1", - }, - "inh": true, - "location": 967, - "relname": "box_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 943, - "name": "two", - "val": { - "A_Const": { - "location": 943, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 954, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b1", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 954, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 987, - }, - }, - "location": 993, - "name": [ - { - "String": { - "sval": "&<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1000, - "sval": { - "sval": "(2.0,2.0,2.5,2.5)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 996, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 113, - "stmt_location": 906, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b1", - }, - "inh": true, - "location": 1082, - "relname": "box_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1058, - "name": "two", - "val": { - "A_Const": { - "location": 1058, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1069, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b1", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1069, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1102, - }, - }, - "location": 1108, - "name": [ - { - "String": { - "sval": "&>", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1115, - "sval": { - "sval": "(2.0,2.0,2.5,2.5)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1111, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 114, - "stmt_location": 1020, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 1179, - "relname": "box_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1155, - "name": "two", - "val": { - "A_Const": { - "location": 1155, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1166, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1166, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1198, - }, - }, - "location": 1203, - "name": [ - { - "String": { - "sval": "<<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1210, - "sval": { - "sval": "(3.0,3.0,5.0,5.0)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1206, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 94, - "stmt_location": 1135, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 1275, - "relname": "box_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1250, - "name": "four", - "val": { - "A_Const": { - "location": 1250, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1262, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1262, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1294, - }, - }, - "location": 1299, - "name": [ - { - "String": { - "sval": "<=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1306, - "sval": { - "sval": "(3.0,3.0,5.0,5.0)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1302, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 95, - "stmt_location": 1230, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 1369, - "relname": "box_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1345, - "name": "two", - "val": { - "A_Const": { - "location": 1345, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1356, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1356, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1388, - }, - }, - "location": 1393, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1399, - "sval": { - "sval": "(3.0,3.0,5.0,5.0)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1395, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 92, - "stmt_location": 1326, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 1462, - "relname": "box_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1438, - "name": "two", - "val": { - "A_Const": { - "location": 1438, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1449, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1449, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1481, - }, - }, - "location": 1486, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1492, - "sval": { - "sval": "(3.0,3.0,5.0,5.0)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1488, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 92, - "stmt_location": 1419, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 1555, - "relname": "box_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1531, - "name": "two", - "val": { - "A_Const": { - "location": 1531, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1542, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1542, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1590, - }, - }, - "location": 1595, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1601, - "sval": { - "sval": "(3.5,3.0,4.5,3.0)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1597, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 108, - "stmt_location": 1512, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 1666, - "relname": "box_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1641, - "name": "four", - "val": { - "A_Const": { - "location": 1641, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1653, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1653, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1701, - }, - }, - "location": 1706, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1713, - "sval": { - "sval": "(3.5,3.0,4.5,3.0)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1709, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 111, - "stmt_location": 1621, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 1778, - "relname": "box_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1754, - "name": "two", - "val": { - "A_Const": { - "location": 1754, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1765, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1765, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1801, - "sval": { - "sval": "(3.0,3.0,5.0,5.0)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1797, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1821, - "name": [ - { - "String": { - "sval": ">>", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1824, - }, - }, - }, - }, - }, - }, - "stmt_len": 95, - "stmt_location": 1733, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 1880, - "relname": "box_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1854, - "name": "three", - "val": { - "A_Const": { - "location": 1854, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1867, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1867, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1899, - }, - }, - "location": 1904, - "name": [ - { - "String": { - "sval": "<@", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1911, - "sval": { - "sval": "(0,0,3,3)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1907, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 93, - "stmt_location": 1829, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 1970, - "relname": "box_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1944, - "name": "three", - "val": { - "A_Const": { - "location": 1944, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1957, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1957, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1993, - "sval": { - "sval": "(0,0,3,3)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1989, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2005, - "name": [ - { - "String": { - "sval": "@>", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2008, - }, - }, - }, - }, - }, - }, - "stmt_len": 89, - "stmt_location": 1923, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 2062, - "relname": "box_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2038, - "name": "one", - "val": { - "A_Const": { - "location": 2038, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2049, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2049, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2085, - "sval": { - "sval": "(1,1,3,3)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2081, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2097, - "name": [ - { - "String": { - "sval": "~=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2100, - }, - }, - }, - }, - }, - }, - "stmt_len": 91, - "stmt_location": 2013, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b1", - }, - "inh": true, - "location": 2187, - "relname": "box_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2152, - "name": "four", - "val": { - "A_Const": { - "location": 2152, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2164, - "name": "p", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 2164, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2167, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 92, - "stmt_location": 2105, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b1", - }, - "inh": true, - "location": 2257, - "relname": "box_tbl", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "b2", - }, - "inh": true, - "location": 2269, - "relname": "box_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2227, - "name": "one", - "val": { - "A_Const": { - "location": 2227, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2238, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b1", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 2238, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2244, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b2", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 2244, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2289, - }, - }, - "location": 2295, - "name": [ - { - "String": { - "sval": "@>", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b2", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2298, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2312, - }, - }, - "location": 2318, - "name": [ - { - "String": { - "sval": "~=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b2", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2321, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 2308, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 2304, - }, - }, - }, - }, - "stmt_len": 128, - "stmt_location": 2198, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2375, - "relname": "box_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2336, - "name": "four", - "val": { - "A_Const": { - "location": 2336, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2348, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2355, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "height", - }, - }, - ], - "location": 2348, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2360, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2366, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "width", - }, - }, - ], - "location": 2360, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 55, - "stmt_location": 2327, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 2441, - "relname": "box_temp", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 2451, - "typeName": { - "location": 2454, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 75, - "stmt_location": 2383, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2473, - "relname": "box_temp", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "i", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2550, - }, - }, - { - "A_Const": { - "ival": { - "ival": 50, - }, - "location": 2553, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 2534, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2490, - "val": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2500, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2503, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 2494, - }, - }, - { - "FuncCall": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2513, - }, - }, - "location": 2515, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2517, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2520, - }, - }, - "location": 2522, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2524, - }, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 2507, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "box", - }, - }, - ], - "location": 2490, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 102, - "stmt_location": 2459, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "spgist", - "idxname": "box_spgist", - "indexParams": [ - { - "IndexElem": { - "name": "f1", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 2591, - "relname": "box_temp", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 55, - "stmt_location": 2562, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2632, - "relname": "box_temp", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 2650, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 2663, - "sval": { - "sval": "(0,0)(0,100)", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 2686, - "sval": { - "sval": "(-3,4.3333333333)(40,1)", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 2720, - "sval": { - "sval": "(0,100)(0,infinity)", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 2750, - "sval": { - "sval": "(-infinity,0)(0,infinity)", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 2786, - "sval": { - "sval": "(-infinity,-infinity)(infinity,infinity)", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 211, - "stmt_location": 2618, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 2853, - "sval": { - "sval": "false", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_seqscan", - }, - }, - "stmt_len": 28, - "stmt_location": 2830, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2875, - "relname": "box_temp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2868, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2868, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2890, - }, - }, - "location": 2893, - "name": [ - { - "String": { - "sval": "<<", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2896, - "sval": { - "sval": "(10,20),(30,40)", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 2859, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 2924, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2949, - "relname": "box_temp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2942, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2942, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2964, - }, - }, - "location": 2967, - "name": [ - { - "String": { - "sval": "<<", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2970, - "sval": { - "sval": "(10,20),(30,40)", - }, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 73, - "stmt_location": 2914, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3004, - "relname": "box_temp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2997, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2997, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3019, - }, - }, - "location": 3022, - "name": [ - { - "String": { - "sval": "&<", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3025, - "sval": { - "sval": "(10,4.333334),(5,100)", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 60, - "stmt_location": 2988, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 3059, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3084, - "relname": "box_temp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3077, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3077, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3099, - }, - }, - "location": 3102, - "name": [ - { - "String": { - "sval": "&<", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3105, - "sval": { - "sval": "(10,4.333334),(5,100)", - }, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 79, - "stmt_location": 3049, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3145, - "relname": "box_temp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3138, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3138, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3160, - }, - }, - "location": 3163, - "name": [ - { - "String": { - "sval": "&&", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3166, - "sval": { - "sval": "(15,20),(25,30)", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 3129, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 3194, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3219, - "relname": "box_temp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3212, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3212, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3234, - }, - }, - "location": 3237, - "name": [ - { - "String": { - "sval": "&&", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3240, - "sval": { - "sval": "(15,20),(25,30)", - }, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 73, - "stmt_location": 3184, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3274, - "relname": "box_temp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3267, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3267, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3289, - }, - }, - "location": 3292, - "name": [ - { - "String": { - "sval": "&>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3295, - "sval": { - "sval": "(40,30),(45,50)", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 3258, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 3323, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3348, - "relname": "box_temp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3341, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3341, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3363, - }, - }, - "location": 3366, - "name": [ - { - "String": { - "sval": "&>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3369, - "sval": { - "sval": "(40,30),(45,50)", - }, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 73, - "stmt_location": 3313, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3403, - "relname": "box_temp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3396, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3396, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3418, - }, - }, - "location": 3421, - "name": [ - { - "String": { - "sval": ">>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3424, - "sval": { - "sval": "(30,40),(40,30)", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 3387, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 3452, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3477, - "relname": "box_temp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3470, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3470, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3492, - }, - }, - "location": 3495, - "name": [ - { - "String": { - "sval": ">>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3498, - "sval": { - "sval": "(30,40),(40,30)", - }, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 73, - "stmt_location": 3442, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3532, - "relname": "box_temp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3525, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3525, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3547, - }, - }, - "location": 3550, - "name": [ - { - "String": { - "sval": "<<|", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3554, - "sval": { - "sval": "(10,4.33334),(5,100)", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 60, - "stmt_location": 3516, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 3587, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3612, - "relname": "box_temp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3605, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3605, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3627, - }, - }, - "location": 3630, - "name": [ - { - "String": { - "sval": "<<|", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3634, - "sval": { - "sval": "(10,4.33334),(5,100)", - }, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 79, - "stmt_location": 3577, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3673, - "relname": "box_temp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3666, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3666, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3688, - }, - }, - "location": 3691, - "name": [ - { - "String": { - "sval": "&<|", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3695, - "sval": { - "sval": "(10,4.3333334),(5,1)", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 60, - "stmt_location": 3657, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 3728, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3753, - "relname": "box_temp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3746, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3746, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3768, - }, - }, - "location": 3771, - "name": [ - { - "String": { - "sval": "&<|", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3775, - "sval": { - "sval": "(10,4.3333334),(5,1)", - }, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 79, - "stmt_location": 3718, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3814, - "relname": "box_temp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3807, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3807, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3829, - }, - }, - "location": 3832, - "name": [ - { - "String": { - "sval": "|&>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3836, - "sval": { - "sval": "(49.99,49.99),(49.99,49.99)", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 67, - "stmt_location": 3798, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 3876, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3901, - "relname": "box_temp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3894, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3894, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3916, - }, - }, - "location": 3919, - "name": [ - { - "String": { - "sval": "|&>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3923, - "sval": { - "sval": "(49.99,49.99),(49.99,49.99)", - }, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 86, - "stmt_location": 3866, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3969, - "relname": "box_temp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3962, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3962, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3984, - }, - }, - "location": 3987, - "name": [ - { - "String": { - "sval": "|>>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3991, - "sval": { - "sval": "(37,38),(39,40)", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 55, - "stmt_location": 3953, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 4019, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4044, - "relname": "box_temp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4037, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4037, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 4059, - }, - }, - "location": 4062, - "name": [ - { - "String": { - "sval": "|>>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4066, - "sval": { - "sval": "(37,38),(39,40)", - }, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 4009, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4100, - "relname": "box_temp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4093, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4093, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 4115, - }, - }, - "location": 4118, - "name": [ - { - "String": { - "sval": "@>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4121, - "sval": { - "sval": "(10,11),(15,16)", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 4084, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 4149, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4174, - "relname": "box_temp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4167, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4167, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 4189, - }, - }, - "location": 4192, - "name": [ - { - "String": { - "sval": "@>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4195, - "sval": { - "sval": "(10,11),(15,15)", - }, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 73, - "stmt_location": 4139, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4229, - "relname": "box_temp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4222, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4222, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 4244, - }, - }, - "location": 4247, - "name": [ - { - "String": { - "sval": "<@", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4250, - "sval": { - "sval": "(10,15),(30,35)", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 4213, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 4278, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4303, - "relname": "box_temp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4296, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4296, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 4318, - }, - }, - "location": 4321, - "name": [ - { - "String": { - "sval": "<@", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4324, - "sval": { - "sval": "(10,15),(30,35)", - }, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 73, - "stmt_location": 4268, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4358, - "relname": "box_temp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4351, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4351, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 4373, - }, - }, - "location": 4376, - "name": [ - { - "String": { - "sval": "~=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4379, - "sval": { - "sval": "(20,20),(40,40)", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 4342, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 4407, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4432, - "relname": "box_temp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4425, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4425, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 4447, - }, - }, - "location": 4450, - "name": [ - { - "String": { - "sval": "~=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4453, - "sval": { - "sval": "(20,20),(40,40)", - }, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 73, - "stmt_location": 4397, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "enable_seqscan", - }, - }, - "stmt_len": 22, - "stmt_location": 4471, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "box_spgist", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_INDEX", - }, - }, - "stmt_len": 23, - "stmt_location": 4494, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/brin.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "options": [ - { - "DefElem": { - "arg": { - "Integer": { - "ival": 10, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "fillfactor", - "location": 615, - }, - }, - ], - "relation": { - "inh": true, - "location": 13, - "relname": "brintest", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "byteacol", - "is_local": true, - "location": 23, - "typeName": { - "location": 32, - "names": [ - { - "String": { - "sval": "bytea", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "charcol", - "is_local": true, - "location": 40, - "typeName": { - "location": 48, - "names": [ - { - "String": { - "sval": "char", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "namecol", - "is_local": true, - "location": 57, - "typeName": { - "location": 65, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "int8col", - "is_local": true, - "location": 72, - "typeName": { - "location": 80, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "int2col", - "is_local": true, - "location": 89, - "typeName": { - "location": 97, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "int4col", - "is_local": true, - "location": 108, - "typeName": { - "location": 116, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "textcol", - "is_local": true, - "location": 126, - "typeName": { - "location": 134, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "oidcol", - "is_local": true, - "location": 141, - "typeName": { - "location": 148, - "names": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "tidcol", - "is_local": true, - "location": 154, - "typeName": { - "location": 161, - "names": [ - { - "String": { - "sval": "tid", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "float4col", - "is_local": true, - "location": 167, - "typeName": { - "location": 177, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "float8col", - "is_local": true, - "location": 184, - "typeName": { - "location": 194, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "macaddrcol", - "is_local": true, - "location": 213, - "typeName": { - "location": 224, - "names": [ - { - "String": { - "sval": "macaddr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "inetcol", - "is_local": true, - "location": 234, - "typeName": { - "location": 242, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "cidrcol", - "is_local": true, - "location": 249, - "typeName": { - "location": 257, - "names": [ - { - "String": { - "sval": "cidr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "bpcharcol", - "is_local": true, - "location": 264, - "typeName": { - "location": 274, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bpchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": -1, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "datecol", - "is_local": true, - "location": 286, - "typeName": { - "location": 294, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "timecol", - "is_local": true, - "location": 301, - "typeName": { - "location": 309, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "timestampcol", - "is_local": true, - "location": 334, - "typeName": { - "location": 347, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "timestamptzcol", - "is_local": true, - "location": 377, - "typeName": { - "location": 392, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "intervalcol", - "is_local": true, - "location": 419, - "typeName": { - "location": 431, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "timetzcol", - "is_local": true, - "location": 442, - "typeName": { - "location": 452, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timetz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "bitcol", - "is_local": true, - "location": 474, - "typeName": { - "location": 481, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 485, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "varbitcol", - "is_local": true, - "location": 491, - "typeName": { - "location": 501, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varbit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 16, - }, - "location": 513, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "numericcol", - "is_local": true, - "location": 519, - "typeName": { - "location": 530, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "uuidcol", - "is_local": true, - "location": 540, - "typeName": { - "location": 548, - "names": [ - { - "String": { - "sval": "uuid", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "int4rangecol", - "is_local": true, - "location": 555, - "typeName": { - "location": 568, - "names": [ - { - "String": { - "sval": "int4range", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "lsncol", - "is_local": true, - "location": 580, - "typeName": { - "location": 587, - "names": [ - { - "String": { - "sval": "pg_lsn", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "boxcol", - "is_local": true, - "location": 596, - "typeName": { - "location": 603, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 629, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 644, - "relname": "brintest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1962, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitCount": { - "A_Const": { - "ival": { - "ival": 100, - }, - "location": 1991, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique2", - }, - }, - ], - "location": 1977, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 661, - "val": { - "TypeCast": { - "arg": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "stringu1", - }, - }, - ], - "location": 668, - }, - }, - { - "A_Const": { - "ival": { - "ival": 8, - }, - "location": 678, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "repeat", - }, - }, - ], - "location": 661, - }, - }, - "location": 680, - "typeName": { - "location": 682, - "names": [ - { - "String": { - "sval": "bytea", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 690, - "val": { - "TypeCast": { - "arg": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "stringu1", - }, - }, - ], - "location": 697, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 707, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 710, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "substr", - }, - }, - ], - "location": 690, - }, - }, - "location": 712, - "typeName": { - "location": 714, - "names": [ - { - "String": { - "sval": "char", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 723, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "stringu1", - }, - }, - ], - "location": 723, - }, - }, - "location": 731, - "typeName": { - "location": 733, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 739, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 142857, - }, - "location": 739, - }, - }, - "location": 746, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 748, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 759, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 759, - }, - }, - }, - }, - { - "ResTarget": { - "location": 770, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "twothousand", - }, - }, - ], - "location": 770, - }, - }, - }, - }, - { - "ResTarget": { - "location": 784, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "stringu1", - }, - }, - ], - "location": 791, - }, - }, - { - "A_Const": { - "ival": { - "ival": 8, - }, - "location": 801, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "repeat", - }, - }, - ], - "location": 784, - }, - }, - }, - }, - { - "ResTarget": { - "location": 806, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 806, - }, - }, - "location": 813, - "typeName": { - "location": 815, - "names": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 821, - "val": { - "TypeCast": { - "arg": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 828, - "sval": { - "sval": "(%s,%s)", - }, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 839, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "twenty", - }, - }, - ], - "location": 849, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 821, - }, - }, - "location": 856, - "typeName": { - "location": 858, - "names": [ - { - "String": { - "sval": "tid", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 864, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 865, - }, - }, - "location": 870, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "fval": { - "fval": "1.0", - }, - "location": 872, - }, - }, - }, - }, - "location": 876, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "hundred", - }, - }, - ], - "location": 878, - }, - }, - "location": 885, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 886, - }, - }, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 891, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "odd", - }, - }, - ], - "location": 891, - }, - }, - "location": 894, - "typeName": { - "location": 896, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 903, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 906, - }, - }, - "location": 915, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 917, - }, - }, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 922, - "val": { - "TypeCast": { - "arg": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 929, - "sval": { - "sval": "%s:00:%s:00:%s:00", - }, - }, - }, - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "odd", - }, - }, - ], - "location": 957, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_hex", - }, - }, - ], - "location": 950, - }, - }, - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "even", - }, - }, - ], - "location": 970, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_hex", - }, - }, - ], - "location": 963, - }, - }, - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "hundred", - }, - }, - ], - "location": 984, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_hex", - }, - }, - ], - "location": 977, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 922, - }, - }, - "location": 993, - "typeName": { - "location": 995, - "names": [ - { - "String": { - "sval": "macaddr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1005, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1010, - "sval": { - "sval": "10.2.3.4/24", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1005, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1024, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 1026, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1037, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1042, - "sval": { - "sval": "10.2.3/24", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1037, - "names": [ - { - "String": { - "sval": "cidr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1054, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 1056, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1067, - "val": { - "TypeCast": { - "arg": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "stringu1", - }, - }, - ], - "location": 1074, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1084, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1087, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "substr", - }, - }, - ], - "location": 1067, - }, - }, - "location": 1089, - "typeName": { - "location": 1091, - "names": [ - { - "String": { - "sval": "bpchar", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1100, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1105, - "sval": { - "sval": "1995-08-15", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1100, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1118, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 1120, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1131, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1136, - "sval": { - "sval": "01:20:30", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1131, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1147, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 1149, - }, - }, - "location": 1158, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1169, - "sval": { - "sval": "18.5 second", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1160, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1185, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1195, - "sval": { - "sval": "1942-07-23 03:05:09", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1185, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1217, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 1219, - }, - }, - "location": 1228, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1239, - "sval": { - "sval": "36.38 hours", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1230, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1255, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1267, - "sval": { - "sval": "1972-10-10 03:00", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1255, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1286, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 1288, - }, - }, - "location": 1297, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1308, - "sval": { - "sval": "1 hour", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1299, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1319, - "val": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 1346, - }, - }, - "location": 1355, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1366, - "sval": { - "sval": "12 minutes", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1357, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "justify_hours", - }, - }, - ], - "location": 1332, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "justify_days", - }, - }, - ], - "location": 1319, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1383, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1390, - "sval": { - "sval": "01:30:20+02", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1383, - "names": [ - { - "String": { - "sval": "timetz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1404, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "hundred", - }, - }, - ], - "location": 1406, - }, - }, - "location": 1414, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1425, - "sval": { - "sval": "15 seconds", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1416, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1440, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 1440, - }, - }, - "location": 1448, - "typeName": { - "location": 1450, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 1454, - }, - }, - ], - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1460, - "val": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 1460, - }, - }, - "location": 1468, - "typeName": { - "location": 1470, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 16, - }, - "location": 1474, - }, - }, - ], - }, - }, - }, - "location": 1477, - "typeName": { - "location": 1479, - "names": [ - { - "String": { - "sval": "varbit", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1488, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 1488, - }, - }, - "location": 1496, - "typeName": { - "location": 1498, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 36, - }, - "location": 1506, - }, - }, - { - "A_Const": { - "ival": { - "ival": 30, - }, - "location": 1509, - }, - }, - ], - }, - }, - }, - "location": 1513, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fivethous", - }, - }, - ], - "location": 1515, - }, - }, - }, - }, - "location": 1525, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "even", - }, - }, - ], - "location": 1527, - }, - }, - }, - }, - "location": 1532, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "hundred", - }, - }, - ], - "location": 1535, - }, - }, - "location": 1543, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1545, - }, - }, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1550, - "val": { - "TypeCast": { - "arg": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1557, - "sval": { - "sval": "%s%s-%s-%s-%s-%s%s%s", - }, - }, - }, - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 1589, - }, - }, - { - "A_Const": { - "location": 1599, - "sval": { - "sval": "FM0000", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_char", - }, - }, - ], - "location": 1581, - }, - }, - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 1618, - }, - }, - { - "A_Const": { - "location": 1628, - "sval": { - "sval": "FM0000", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_char", - }, - }, - ], - "location": 1610, - }, - }, - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 1647, - }, - }, - { - "A_Const": { - "location": 1657, - "sval": { - "sval": "FM0000", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_char", - }, - }, - ], - "location": 1639, - }, - }, - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 1676, - }, - }, - { - "A_Const": { - "location": 1686, - "sval": { - "sval": "FM0000", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_char", - }, - }, - ], - "location": 1668, - }, - }, - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 1705, - }, - }, - { - "A_Const": { - "location": 1715, - "sval": { - "sval": "FM0000", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_char", - }, - }, - ], - "location": 1697, - }, - }, - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 1734, - }, - }, - { - "A_Const": { - "location": 1744, - "sval": { - "sval": "FM0000", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_char", - }, - }, - ], - "location": 1726, - }, - }, - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 1763, - }, - }, - { - "A_Const": { - "location": 1773, - "sval": { - "sval": "FM0000", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_char", - }, - }, - ], - "location": 1755, - }, - }, - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 1792, - }, - }, - { - "A_Const": { - "location": 1802, - "sval": { - "sval": "FM0000", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_char", - }, - }, - ], - "location": 1784, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 1550, - }, - }, - "location": 1812, - "typeName": { - "location": 1814, - "names": [ - { - "String": { - "sval": "uuid", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1821, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 1831, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "twothousand", - }, - }, - ], - "location": 1841, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "int4range", - }, - }, - ], - "location": 1821, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1856, - "val": { - "TypeCast": { - "arg": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1863, - "sval": { - "sval": "%s/%s%s", - }, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "odd", - }, - }, - ], - "location": 1874, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "even", - }, - }, - ], - "location": 1879, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 1885, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 1856, - }, - }, - "location": 1894, - "typeName": { - "location": 1896, - "names": [ - { - "String": { - "sval": "pg_lsn", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1905, - "val": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "odd", - }, - }, - ], - "location": 1915, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "even", - }, - }, - ], - "location": 1920, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 1909, - }, - }, - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 1933, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "twothousand", - }, - }, - ], - "location": 1943, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 1927, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "box", - }, - }, - ], - "location": 1905, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 1364, - "stmt_location": 630, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2064, - "name": "inetcol", - }, - }, - { - "ResTarget": { - "location": 2073, - "name": "cidrcol", - }, - }, - { - "ResTarget": { - "location": 2082, - "name": "int4rangecol", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2054, - "relname": "brintest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2218, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitCount": { - "A_Const": { - "ival": { - "ival": 25, - }, - "location": 2258, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 2233, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 2243, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2104, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2109, - "sval": { - "sval": "fe80::6e40:8ff:fea9:8c46", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2104, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2136, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 2138, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2149, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2154, - "sval": { - "sval": "fe80::6e40:8ff:fea9:8c46", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2149, - "names": [ - { - "String": { - "sval": "cidr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2181, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 2183, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2194, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2194, - "sval": { - "sval": "empty", - }, - }, - }, - "location": 2201, - "typeName": { - "location": 2203, - "names": [ - { - "String": { - "sval": "int4range", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 265, - "stmt_location": 1995, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "brin", - "idxname": "brinidx", - "indexParams": [ - { - "IndexElem": { - "name": "byteacol", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "charcol", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "namecol", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "int8col", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "int2col", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "int4col", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "textcol", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "oidcol", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "tidcol", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "float4col", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "float8col", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "macaddrcol", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "inetcol", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "opclass": [ - { - "String": { - "sval": "inet_inclusion_ops", - }, - }, - ], - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "inetcol", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "opclass": [ - { - "String": { - "sval": "inet_minmax_ops", - }, - }, - ], - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "cidrcol", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "opclass": [ - { - "String": { - "sval": "inet_inclusion_ops", - }, - }, - ], - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "cidrcol", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "opclass": [ - { - "String": { - "sval": "inet_minmax_ops", - }, - }, - ], - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "bpcharcol", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "datecol", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "timecol", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "timestampcol", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "timestamptzcol", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "intervalcol", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "timetzcol", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "bitcol", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "varbitcol", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "numericcol", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "uuidcol", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "int4rangecol", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "lsncol", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "boxcol", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "Integer": { - "ival": 1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "pages_per_range", - "location": 2719, - }, - }, - ], - "relation": { - "inh": true, - "location": 2287, - "relname": "brintest", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 478, - "stmt_location": 2261, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 2755, - "relname": "brinopers", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "colname", - "is_local": true, - "location": 2766, - "typeName": { - "location": 2774, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "typ", - "is_local": true, - "location": 2780, - "typeName": { - "location": 2784, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "op", - "is_local": true, - "location": 2791, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 2794, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "value", - "is_local": true, - "location": 2802, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 2808, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "matches", - "is_local": true, - "location": 2816, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 2824, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 2832, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "op", - }, - }, - ], - "location": 2851, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "cardinality", - }, - }, - ], - "location": 2839, - }, - }, - "location": 2855, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 2869, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "cardinality", - }, - }, - ], - "location": 2857, - }, - }, - }, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 2879, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "op", - }, - }, - ], - "location": 2898, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "cardinality", - }, - }, - ], - "location": 2886, - }, - }, - "location": 2902, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "matches", - }, - }, - ], - "location": 2916, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "cardinality", - }, - }, - ], - "location": 2904, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 186, - "stmt_location": 2740, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2941, - "relname": "brinopers", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 2960, - "sval": { - "sval": "byteacol", - }, - }, - }, - { - "A_Const": { - "location": 2972, - "sval": { - "sval": "bytea", - }, - }, - }, - { - "A_Const": { - "location": 2983, - "sval": { - "sval": "{>, >=, =, <=, <}", - }, - }, - }, - { - "A_Const": { - "location": 3006, - "sval": { - "sval": "{AAAAAA, AAAAAA, BNAAAABNAAAABNAAAABNAAAABNAAAABNAAAABNAAAABNAAAA, ZZZZZZ, ZZZZZZ}", - }, - }, - }, - { - "A_Const": { - "location": 3094, - "sval": { - "sval": "{100, 100, 1, 100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 3124, - "sval": { - "sval": "charcol", - }, - }, - }, - { - "A_Const": { - "location": 3135, - "sval": { - "sval": ""char"", - }, - }, - }, - { - "A_Const": { - "location": 3147, - "sval": { - "sval": "{>, >=, =, <=, <}", - }, - }, - }, - { - "A_Const": { - "location": 3170, - "sval": { - "sval": "{A, A, M, Z, Z}", - }, - }, - }, - { - "A_Const": { - "location": 3191, - "sval": { - "sval": "{97, 100, 6, 100, 98}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 3219, - "sval": { - "sval": "namecol", - }, - }, - }, - { - "A_Const": { - "location": 3230, - "sval": { - "sval": "name", - }, - }, - }, - { - "A_Const": { - "location": 3240, - "sval": { - "sval": "{>, >=, =, <=, <}", - }, - }, - }, - { - "A_Const": { - "location": 3263, - "sval": { - "sval": "{AAAAAA, AAAAAA, MAAAAA, ZZAAAA, ZZAAAA}", - }, - }, - }, - { - "A_Const": { - "location": 3309, - "sval": { - "sval": "{100, 100, 2, 100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 3339, - "sval": { - "sval": "int2col", - }, - }, - }, - { - "A_Const": { - "location": 3350, - "sval": { - "sval": "int2", - }, - }, - }, - { - "A_Const": { - "location": 3360, - "sval": { - "sval": "{>, >=, =, <=, <}", - }, - }, - }, - { - "A_Const": { - "location": 3383, - "sval": { - "sval": "{0, 0, 800, 999, 999}", - }, - }, - }, - { - "A_Const": { - "location": 3410, - "sval": { - "sval": "{100, 100, 1, 100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 3440, - "sval": { - "sval": "int2col", - }, - }, - }, - { - "A_Const": { - "location": 3451, - "sval": { - "sval": "int4", - }, - }, - }, - { - "A_Const": { - "location": 3461, - "sval": { - "sval": "{>, >=, =, <=, <}", - }, - }, - }, - { - "A_Const": { - "location": 3484, - "sval": { - "sval": "{0, 0, 800, 999, 1999}", - }, - }, - }, - { - "A_Const": { - "location": 3512, - "sval": { - "sval": "{100, 100, 1, 100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 3542, - "sval": { - "sval": "int2col", - }, - }, - }, - { - "A_Const": { - "location": 3553, - "sval": { - "sval": "int8", - }, - }, - }, - { - "A_Const": { - "location": 3563, - "sval": { - "sval": "{>, >=, =, <=, <}", - }, - }, - }, - { - "A_Const": { - "location": 3586, - "sval": { - "sval": "{0, 0, 800, 999, 1428427143}", - }, - }, - }, - { - "A_Const": { - "location": 3620, - "sval": { - "sval": "{100, 100, 1, 100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 3650, - "sval": { - "sval": "int4col", - }, - }, - }, - { - "A_Const": { - "location": 3661, - "sval": { - "sval": "int2", - }, - }, - }, - { - "A_Const": { - "location": 3671, - "sval": { - "sval": "{>, >=, =, <=, <}", - }, - }, - }, - { - "A_Const": { - "location": 3694, - "sval": { - "sval": "{0, 0, 800, 1999, 1999}", - }, - }, - }, - { - "A_Const": { - "location": 3723, - "sval": { - "sval": "{100, 100, 1, 100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 3753, - "sval": { - "sval": "int4col", - }, - }, - }, - { - "A_Const": { - "location": 3764, - "sval": { - "sval": "int4", - }, - }, - }, - { - "A_Const": { - "location": 3774, - "sval": { - "sval": "{>, >=, =, <=, <}", - }, - }, - }, - { - "A_Const": { - "location": 3797, - "sval": { - "sval": "{0, 0, 800, 1999, 1999}", - }, - }, - }, - { - "A_Const": { - "location": 3826, - "sval": { - "sval": "{100, 100, 1, 100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 3856, - "sval": { - "sval": "int4col", - }, - }, - }, - { - "A_Const": { - "location": 3867, - "sval": { - "sval": "int8", - }, - }, - }, - { - "A_Const": { - "location": 3877, - "sval": { - "sval": "{>, >=, =, <=, <}", - }, - }, - }, - { - "A_Const": { - "location": 3900, - "sval": { - "sval": "{0, 0, 800, 1999, 1428427143}", - }, - }, - }, - { - "A_Const": { - "location": 3935, - "sval": { - "sval": "{100, 100, 1, 100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 3965, - "sval": { - "sval": "int8col", - }, - }, - }, - { - "A_Const": { - "location": 3976, - "sval": { - "sval": "int2", - }, - }, - }, - { - "A_Const": { - "location": 3986, - "sval": { - "sval": "{>, >=}", - }, - }, - }, - { - "A_Const": { - "location": 3999, - "sval": { - "sval": "{0, 0}", - }, - }, - }, - { - "A_Const": { - "location": 4011, - "sval": { - "sval": "{100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 4028, - "sval": { - "sval": "int8col", - }, - }, - }, - { - "A_Const": { - "location": 4039, - "sval": { - "sval": "int4", - }, - }, - }, - { - "A_Const": { - "location": 4049, - "sval": { - "sval": "{>, >=}", - }, - }, - }, - { - "A_Const": { - "location": 4062, - "sval": { - "sval": "{0, 0}", - }, - }, - }, - { - "A_Const": { - "location": 4074, - "sval": { - "sval": "{100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 4091, - "sval": { - "sval": "int8col", - }, - }, - }, - { - "A_Const": { - "location": 4102, - "sval": { - "sval": "int8", - }, - }, - }, - { - "A_Const": { - "location": 4112, - "sval": { - "sval": "{>, >=, =, <=, <}", - }, - }, - }, - { - "A_Const": { - "location": 4135, - "sval": { - "sval": "{0, 0, 1257141600, 1428427143, 1428427143}", - }, - }, - }, - { - "A_Const": { - "location": 4183, - "sval": { - "sval": "{100, 100, 1, 100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 4213, - "sval": { - "sval": "textcol", - }, - }, - }, - { - "A_Const": { - "location": 4224, - "sval": { - "sval": "text", - }, - }, - }, - { - "A_Const": { - "location": 4234, - "sval": { - "sval": "{>, >=, =, <=, <}", - }, - }, - }, - { - "A_Const": { - "location": 4257, - "sval": { - "sval": "{AAAAAA, AAAAAA, BNAAAABNAAAABNAAAABNAAAABNAAAABNAAAABNAAAABNAAAA, ZZAAAA, ZZAAAA}", - }, - }, - }, - { - "A_Const": { - "location": 4345, - "sval": { - "sval": "{100, 100, 1, 100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 4375, - "sval": { - "sval": "oidcol", - }, - }, - }, - { - "A_Const": { - "location": 4385, - "sval": { - "sval": "oid", - }, - }, - }, - { - "A_Const": { - "location": 4394, - "sval": { - "sval": "{>, >=, =, <=, <}", - }, - }, - }, - { - "A_Const": { - "location": 4417, - "sval": { - "sval": "{0, 0, 8800, 9999, 9999}", - }, - }, - }, - { - "A_Const": { - "location": 4447, - "sval": { - "sval": "{100, 100, 1, 100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 4477, - "sval": { - "sval": "tidcol", - }, - }, - }, - { - "A_Const": { - "location": 4487, - "sval": { - "sval": "tid", - }, - }, - }, - { - "A_Const": { - "location": 4496, - "sval": { - "sval": "{>, >=, =, <=, <}", - }, - }, - }, - { - "A_Const": { - "location": 4519, - "sval": { - "sval": "{"(0,0)", "(0,0)", "(8800,0)", "(9999,19)", "(9999,19)"}", - }, - }, - }, - { - "A_Const": { - "location": 4581, - "sval": { - "sval": "{100, 100, 1, 100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 4611, - "sval": { - "sval": "float4col", - }, - }, - }, - { - "A_Const": { - "location": 4624, - "sval": { - "sval": "float4", - }, - }, - }, - { - "A_Const": { - "location": 4636, - "sval": { - "sval": "{>, >=, =, <=, <}", - }, - }, - }, - { - "A_Const": { - "location": 4659, - "sval": { - "sval": "{0.0103093, 0.0103093, 1, 1, 1}", - }, - }, - }, - { - "A_Const": { - "location": 4696, - "sval": { - "sval": "{100, 100, 4, 100, 96}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 4725, - "sval": { - "sval": "float4col", - }, - }, - }, - { - "A_Const": { - "location": 4738, - "sval": { - "sval": "float8", - }, - }, - }, - { - "A_Const": { - "location": 4750, - "sval": { - "sval": "{>, >=, =, <=, <}", - }, - }, - }, - { - "A_Const": { - "location": 4773, - "sval": { - "sval": "{0.0103093, 0.0103093, 1, 1, 1}", - }, - }, - }, - { - "A_Const": { - "location": 4810, - "sval": { - "sval": "{100, 100, 4, 100, 96}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 4839, - "sval": { - "sval": "float8col", - }, - }, - }, - { - "A_Const": { - "location": 4852, - "sval": { - "sval": "float4", - }, - }, - }, - { - "A_Const": { - "location": 4864, - "sval": { - "sval": "{>, >=, =, <=, <}", - }, - }, - }, - { - "A_Const": { - "location": 4887, - "sval": { - "sval": "{0, 0, 0, 1.98, 1.98}", - }, - }, - }, - { - "A_Const": { - "location": 4914, - "sval": { - "sval": "{99, 100, 1, 100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 4943, - "sval": { - "sval": "float8col", - }, - }, - }, - { - "A_Const": { - "location": 4956, - "sval": { - "sval": "float8", - }, - }, - }, - { - "A_Const": { - "location": 4968, - "sval": { - "sval": "{>, >=, =, <=, <}", - }, - }, - }, - { - "A_Const": { - "location": 4991, - "sval": { - "sval": "{0, 0, 0, 1.98, 1.98}", - }, - }, - }, - { - "A_Const": { - "location": 5018, - "sval": { - "sval": "{99, 100, 1, 100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 5047, - "sval": { - "sval": "macaddrcol", - }, - }, - }, - { - "A_Const": { - "location": 5061, - "sval": { - "sval": "macaddr", - }, - }, - }, - { - "A_Const": { - "location": 5074, - "sval": { - "sval": "{>, >=, =, <=, <}", - }, - }, - }, - { - "A_Const": { - "location": 5097, - "sval": { - "sval": "{00:00:01:00:00:00, 00:00:01:00:00:00, 2c:00:2d:00:16:00, ff:fe:00:00:00:00, ff:fe:00:00:00:00}", - }, - }, - }, - { - "A_Const": { - "location": 5198, - "sval": { - "sval": "{99, 100, 2, 100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 5227, - "sval": { - "sval": "inetcol", - }, - }, - }, - { - "A_Const": { - "location": 5238, - "sval": { - "sval": "inet", - }, - }, - }, - { - "A_Const": { - "location": 5248, - "sval": { - "sval": "{&&, =, <, <=, >, >=, >>=, >>, <<=, <<}", - }, - }, - }, - { - "A_Const": { - "location": 5293, - "sval": { - "sval": "{10/8, 10.2.14.231/24, 255.255.255.255, 255.255.255.255, 0.0.0.0, 0.0.0.0, 10.2.14.231/24, 10.2.14.231/25, 10.2.14.231/8, 0/0}", - }, - }, - }, - { - "A_Const": { - "location": 5425, - "sval": { - "sval": "{100, 1, 100, 100, 125, 125, 2, 2, 100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 5476, - "sval": { - "sval": "inetcol", - }, - }, - }, - { - "A_Const": { - "location": 5487, - "sval": { - "sval": "inet", - }, - }, - }, - { - "A_Const": { - "location": 5497, - "sval": { - "sval": "{&&, >>=, <<=, =}", - }, - }, - }, - { - "A_Const": { - "location": 5520, - "sval": { - "sval": "{fe80::6e40:8ff:fea9:a673/32, fe80::6e40:8ff:fea9:8c46, fe80::6e40:8ff:fea9:a673/32, fe80::6e40:8ff:fea9:8c46}", - }, - }, - }, - { - "A_Const": { - "location": 5636, - "sval": { - "sval": "{25, 1, 25, 1}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 5657, - "sval": { - "sval": "inetcol", - }, - }, - }, - { - "A_Const": { - "location": 5668, - "sval": { - "sval": "cidr", - }, - }, - }, - { - "A_Const": { - "location": 5678, - "sval": { - "sval": "{&&, <, <=, >, >=, >>=, >>, <<=, <<}", - }, - }, - }, - { - "A_Const": { - "location": 5720, - "sval": { - "sval": "{10/8, 255.255.255.255, 255.255.255.255, 0.0.0.0, 0.0.0.0, 10.2.14/24, 10.2.14/25, 10/8, 0/0}", - }, - }, - }, - { - "A_Const": { - "location": 5819, - "sval": { - "sval": "{100, 100, 100, 125, 125, 2, 2, 100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 5867, - "sval": { - "sval": "inetcol", - }, - }, - }, - { - "A_Const": { - "location": 5878, - "sval": { - "sval": "cidr", - }, - }, - }, - { - "A_Const": { - "location": 5888, - "sval": { - "sval": "{&&, >>=, <<=, =}", - }, - }, - }, - { - "A_Const": { - "location": 5911, - "sval": { - "sval": "{fe80::/32, fe80::6e40:8ff:fea9:8c46, fe80::/32, fe80::6e40:8ff:fea9:8c46}", - }, - }, - }, - { - "A_Const": { - "location": 5991, - "sval": { - "sval": "{25, 1, 25, 1}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 6012, - "sval": { - "sval": "cidrcol", - }, - }, - }, - { - "A_Const": { - "location": 6023, - "sval": { - "sval": "inet", - }, - }, - }, - { - "A_Const": { - "location": 6033, - "sval": { - "sval": "{&&, =, <, <=, >, >=, >>=, >>, <<=, <<}", - }, - }, - }, - { - "A_Const": { - "location": 6078, - "sval": { - "sval": "{10/8, 10.2.14/24, 255.255.255.255, 255.255.255.255, 0.0.0.0, 0.0.0.0, 10.2.14.231/24, 10.2.14.231/25, 10.2.14.231/8, 0/0}", - }, - }, - }, - { - "A_Const": { - "location": 6206, - "sval": { - "sval": "{100, 2, 100, 100, 125, 125, 2, 2, 100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 6257, - "sval": { - "sval": "cidrcol", - }, - }, - }, - { - "A_Const": { - "location": 6268, - "sval": { - "sval": "inet", - }, - }, - }, - { - "A_Const": { - "location": 6278, - "sval": { - "sval": "{&&, >>=, <<=, =}", - }, - }, - }, - { - "A_Const": { - "location": 6301, - "sval": { - "sval": "{fe80::6e40:8ff:fea9:a673/32, fe80::6e40:8ff:fea9:8c46, fe80::6e40:8ff:fea9:a673/32, fe80::6e40:8ff:fea9:8c46}", - }, - }, - }, - { - "A_Const": { - "location": 6417, - "sval": { - "sval": "{25, 1, 25, 1}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 6438, - "sval": { - "sval": "cidrcol", - }, - }, - }, - { - "A_Const": { - "location": 6449, - "sval": { - "sval": "cidr", - }, - }, - }, - { - "A_Const": { - "location": 6459, - "sval": { - "sval": "{&&, =, <, <=, >, >=, >>=, >>, <<=, <<}", - }, - }, - }, - { - "A_Const": { - "location": 6504, - "sval": { - "sval": "{10/8, 10.2.14/24, 255.255.255.255, 255.255.255.255, 0.0.0.0, 0.0.0.0, 10.2.14/24, 10.2.14/25, 10/8, 0/0}", - }, - }, - }, - { - "A_Const": { - "location": 6615, - "sval": { - "sval": "{100, 2, 100, 100, 125, 125, 2, 2, 100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 6666, - "sval": { - "sval": "cidrcol", - }, - }, - }, - { - "A_Const": { - "location": 6677, - "sval": { - "sval": "cidr", - }, - }, - }, - { - "A_Const": { - "location": 6687, - "sval": { - "sval": "{&&, >>=, <<=, =}", - }, - }, - }, - { - "A_Const": { - "location": 6710, - "sval": { - "sval": "{fe80::/32, fe80::6e40:8ff:fea9:8c46, fe80::/32, fe80::6e40:8ff:fea9:8c46}", - }, - }, - }, - { - "A_Const": { - "location": 6790, - "sval": { - "sval": "{25, 1, 25, 1}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 6811, - "sval": { - "sval": "bpcharcol", - }, - }, - }, - { - "A_Const": { - "location": 6824, - "sval": { - "sval": "bpchar", - }, - }, - }, - { - "A_Const": { - "location": 6836, - "sval": { - "sval": "{>, >=, =, <=, <}", - }, - }, - }, - { - "A_Const": { - "location": 6859, - "sval": { - "sval": "{A, A, W, Z, Z}", - }, - }, - }, - { - "A_Const": { - "location": 6880, - "sval": { - "sval": "{97, 100, 6, 100, 98}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 6908, - "sval": { - "sval": "datecol", - }, - }, - }, - { - "A_Const": { - "location": 6919, - "sval": { - "sval": "date", - }, - }, - }, - { - "A_Const": { - "location": 6929, - "sval": { - "sval": "{>, >=, =, <=, <}", - }, - }, - }, - { - "A_Const": { - "location": 6952, - "sval": { - "sval": "{1995-08-15, 1995-08-15, 2009-12-01, 2022-12-30, 2022-12-30}", - }, - }, - }, - { - "A_Const": { - "location": 7018, - "sval": { - "sval": "{100, 100, 1, 100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 7048, - "sval": { - "sval": "timecol", - }, - }, - }, - { - "A_Const": { - "location": 7059, - "sval": { - "sval": "time", - }, - }, - }, - { - "A_Const": { - "location": 7069, - "sval": { - "sval": "{>, >=, =, <=, <}", - }, - }, - }, - { - "A_Const": { - "location": 7092, - "sval": { - "sval": "{01:20:30, 01:20:30, 02:28:57, 06:28:31.5, 06:28:31.5}", - }, - }, - }, - { - "A_Const": { - "location": 7152, - "sval": { - "sval": "{100, 100, 1, 100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 7182, - "sval": { - "sval": "timestampcol", - }, - }, - }, - { - "A_Const": { - "location": 7198, - "sval": { - "sval": "timestamp", - }, - }, - }, - { - "A_Const": { - "location": 7213, - "sval": { - "sval": "{>, >=, =, <=, <}", - }, - }, - }, - { - "A_Const": { - "location": 7236, - "sval": { - "sval": "{1942-07-23 03:05:09, 1942-07-23 03:05:09, 1964-03-24 19:26:45, 1984-01-20 22:42:21, 1984-01-20 22:42:21}", - }, - }, - }, - { - "A_Const": { - "location": 7347, - "sval": { - "sval": "{100, 100, 1, 100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 7377, - "sval": { - "sval": "timestampcol", - }, - }, - }, - { - "A_Const": { - "location": 7393, - "sval": { - "sval": "timestamptz", - }, - }, - }, - { - "A_Const": { - "location": 7410, - "sval": { - "sval": "{>, >=, =, <=, <}", - }, - }, - }, - { - "A_Const": { - "location": 7433, - "sval": { - "sval": "{1942-07-23 03:05:09, 1942-07-23 03:05:09, 1964-03-24 19:26:45, 1984-01-20 22:42:21, 1984-01-20 22:42:21}", - }, - }, - }, - { - "A_Const": { - "location": 7544, - "sval": { - "sval": "{100, 100, 1, 100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 7574, - "sval": { - "sval": "timestamptzcol", - }, - }, - }, - { - "A_Const": { - "location": 7592, - "sval": { - "sval": "timestamptz", - }, - }, - }, - { - "A_Const": { - "location": 7609, - "sval": { - "sval": "{>, >=, =, <=, <}", - }, - }, - }, - { - "A_Const": { - "location": 7632, - "sval": { - "sval": "{1972-10-10 03:00:00-04, 1972-10-10 03:00:00-04, 1972-10-19 09:00:00-07, 1972-11-20 19:00:00-03, 1972-11-20 19:00:00-03}", - }, - }, - }, - { - "A_Const": { - "location": 7758, - "sval": { - "sval": "{100, 100, 1, 100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 7788, - "sval": { - "sval": "intervalcol", - }, - }, - }, - { - "A_Const": { - "location": 7803, - "sval": { - "sval": "interval", - }, - }, - }, - { - "A_Const": { - "location": 7817, - "sval": { - "sval": "{>, >=, =, <=, <}", - }, - }, - }, - { - "A_Const": { - "location": 7840, - "sval": { - "sval": "{00:00:00, 00:00:00, 1 mons 13 days 12:24, 2 mons 23 days 07:48:00, 1 year}", - }, - }, - }, - { - "A_Const": { - "location": 7921, - "sval": { - "sval": "{100, 100, 1, 100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 7951, - "sval": { - "sval": "timetzcol", - }, - }, - }, - { - "A_Const": { - "location": 7964, - "sval": { - "sval": "timetz", - }, - }, - }, - { - "A_Const": { - "location": 7976, - "sval": { - "sval": "{>, >=, =, <=, <}", - }, - }, - }, - { - "A_Const": { - "location": 7999, - "sval": { - "sval": "{01:30:20+02, 01:30:20+02, 01:35:50+02, 23:55:05+02, 23:55:05+02}", - }, - }, - }, - { - "A_Const": { - "location": 8070, - "sval": { - "sval": "{99, 100, 2, 100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 8099, - "sval": { - "sval": "bitcol", - }, - }, - }, - { - "A_Const": { - "location": 8109, - "sval": { - "sval": "bit(10)", - }, - }, - }, - { - "A_Const": { - "location": 8122, - "sval": { - "sval": "{>, >=, =, <=, <}", - }, - }, - }, - { - "A_Const": { - "location": 8145, - "sval": { - "sval": "{0000000010, 0000000010, 0011011110, 1111111000, 1111111000}", - }, - }, - }, - { - "A_Const": { - "location": 8211, - "sval": { - "sval": "{100, 100, 1, 100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 8241, - "sval": { - "sval": "varbitcol", - }, - }, - }, - { - "A_Const": { - "location": 8254, - "sval": { - "sval": "varbit(16)", - }, - }, - }, - { - "A_Const": { - "location": 8270, - "sval": { - "sval": "{>, >=, =, <=, <}", - }, - }, - }, - { - "A_Const": { - "location": 8293, - "sval": { - "sval": "{0000000000000100, 0000000000000100, 0001010001100110, 1111111111111000, 1111111111111000}", - }, - }, - }, - { - "A_Const": { - "location": 8389, - "sval": { - "sval": "{100, 100, 1, 100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 8419, - "sval": { - "sval": "numericcol", - }, - }, - }, - { - "A_Const": { - "location": 8433, - "sval": { - "sval": "numeric", - }, - }, - }, - { - "A_Const": { - "location": 8446, - "sval": { - "sval": "{>, >=, =, <=, <}", - }, - }, - }, - { - "A_Const": { - "location": 8469, - "sval": { - "sval": "{0.00, 0.01, 2268164.347826086956521739130434782609, 99470151.9, 99470151.9}", - }, - }, - }, - { - "A_Const": { - "location": 8551, - "sval": { - "sval": "{100, 100, 1, 100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 8581, - "sval": { - "sval": "uuidcol", - }, - }, - }, - { - "A_Const": { - "location": 8592, - "sval": { - "sval": "uuid", - }, - }, - }, - { - "A_Const": { - "location": 8602, - "sval": { - "sval": "{>, >=, =, <=, <}", - }, - }, - }, - { - "A_Const": { - "location": 8625, - "sval": { - "sval": "{00040004-0004-0004-0004-000400040004, 00040004-0004-0004-0004-000400040004, 52225222-5222-5222-5222-522252225222, 99989998-9998-9998-9998-999899989998, 99989998-9998-9998-9998-999899989998}", - }, - }, - }, - { - "A_Const": { - "location": 8821, - "sval": { - "sval": "{100, 100, 1, 100, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 8851, - "sval": { - "sval": "int4rangecol", - }, - }, - }, - { - "A_Const": { - "location": 8867, - "sval": { - "sval": "int4range", - }, - }, - }, - { - "A_Const": { - "location": 8882, - "sval": { - "sval": "{<<, &<, &&, &>, >>, @>, <@, =, <, <=, >, >=}", - }, - }, - }, - { - "A_Const": { - "location": 8933, - "sval": { - "sval": "{"[10000,)","[10000,)","(,]","[3,4)","[36,44)","(1500,1501]","[3,4)","[222,1222)","[36,44)","[43,1043)","[367,4466)","[519,)"}", - }, - }, - }, - { - "A_Const": { - "location": 9065, - "sval": { - "sval": "{53, 53, 53, 53, 50, 22, 72, 1, 74, 75, 34, 21}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 9119, - "sval": { - "sval": "int4rangecol", - }, - }, - }, - { - "A_Const": { - "location": 9135, - "sval": { - "sval": "int4range", - }, - }, - }, - { - "A_Const": { - "location": 9150, - "sval": { - "sval": "{@>, <@, =, <=, >, >=}", - }, - }, - }, - { - "A_Const": { - "location": 9178, - "sval": { - "sval": "{empty, empty, empty, empty, empty, empty}", - }, - }, - }, - { - "A_Const": { - "location": 9226, - "sval": { - "sval": "{125, 72, 72, 72, 53, 125}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 9259, - "sval": { - "sval": "int4rangecol", - }, - }, - }, - { - "A_Const": { - "location": 9275, - "sval": { - "sval": "int4", - }, - }, - }, - { - "A_Const": { - "location": 9285, - "sval": { - "sval": "{@>}", - }, - }, - }, - { - "A_Const": { - "location": 9295, - "sval": { - "sval": "{1500}", - }, - }, - }, - { - "A_Const": { - "location": 9307, - "sval": { - "sval": "{22}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 9318, - "sval": { - "sval": "lsncol", - }, - }, - }, - { - "A_Const": { - "location": 9328, - "sval": { - "sval": "pg_lsn", - }, - }, - }, - { - "A_Const": { - "location": 9340, - "sval": { - "sval": "{>, >=, =, <=, <, IS, IS NOT}", - }, - }, - }, - { - "A_Const": { - "location": 9375, - "sval": { - "sval": "{0/1200, 0/1200, 44/455222, 198/1999799, 198/1999799, NULL, NULL}", - }, - }, - }, - { - "A_Const": { - "location": 9446, - "sval": { - "sval": "{100, 100, 1, 100, 100, 25, 100}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 9485, - "sval": { - "sval": "boxcol", - }, - }, - }, - { - "A_Const": { - "location": 9495, - "sval": { - "sval": "point", - }, - }, - }, - { - "A_Const": { - "location": 9506, - "sval": { - "sval": "{@>}", - }, - }, - }, - { - "A_Const": { - "location": 9516, - "sval": { - "sval": "{"(500,43)"}", - }, - }, - }, - { - "A_Const": { - "location": 9534, - "sval": { - "sval": "{11}", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 9545, - "sval": { - "sval": "boxcol", - }, - }, - }, - { - "A_Const": { - "location": 9555, - "sval": { - "sval": "box", - }, - }, - }, - { - "A_Const": { - "location": 9564, - "sval": { - "sval": "{<<, &<, &&, &>, >>, <<|, &<|, |&>, |>>, @>, <@, ~=}", - }, - }, - }, - { - "A_Const": { - "location": 9622, - "sval": { - "sval": "{"((1000,2000),(3000,4000))","((1,2),(3000,4000))","((1,2),(3000,4000))","((1,2),(3000,4000))","((1,2),(3,4))","((1000,2000),(3000,4000))","((1,2000),(3,4000))","((1000,2),(3000,4))","((1,2),(3,4))","((1,2),(300,400))","((1,2),(3000,4000))","((222,1222),(44,45))"}", - }, - }, - }, - { - "A_Const": { - "location": 9892, - "sval": { - "sval": "{100, 100, 100, 99, 96, 100, 100, 99, 96, 1, 99, 1}", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 7019, - "stmt_location": 2927, - }, - }, - { - "RawStmt": { - "stmt": { - "DoStmt": { - "args": [ - { - "DefElem": { - "arg": { - "String": { - "sval": " -DECLARE - r record; - r2 record; - cond text; - count int; - mismatch bool; - plan_ok bool; - plan_line text; -BEGIN - FOR r IN SELECT colname, oper, typ, value[ordinality], matches[ordinality] FROM brinopers, unnest(op) WITH ORDINALITY AS oper LOOP - mismatch := false; - - -- prepare the condition - IF r.value IS NULL THEN - cond := format('%I %s %L', r.colname, r.oper, r.value); - ELSE - cond := format('%I %s %L::%s', r.colname, r.oper, r.value, r.typ); - END IF; - - -- run the query using the brin index - CREATE TEMP TABLE brin_result (cid tid); - SET enable_seqscan = 0; - SET enable_bitmapscan = 1; - - plan_ok := false; - FOR plan_line IN EXECUTE format($y$EXPLAIN SELECT ctid FROM brintest WHERE %s $y$, cond) LOOP - IF plan_line LIKE 'Bitmap Heap Scan on brintest%' THEN - plan_ok := true; - END IF; - END LOOP; - IF NOT plan_ok THEN - RAISE WARNING 'did not get bitmap indexscan plan for %', r; - END IF; - - EXECUTE format($y$INSERT INTO brin_result SELECT ctid FROM brintest WHERE %s $y$, cond); - - -- run the query using a seqscan - CREATE TEMP TABLE brin_result_ss (cid tid); - SET enable_seqscan = 1; - SET enable_bitmapscan = 0; - - plan_ok := false; - FOR plan_line IN EXECUTE format($y$EXPLAIN SELECT ctid FROM brintest WHERE %s $y$, cond) LOOP - IF plan_line LIKE 'Seq Scan on brintest%' THEN - plan_ok := true; - END IF; - END LOOP; - IF NOT plan_ok THEN - RAISE WARNING 'did not get seqscan plan for %', r; - END IF; - - EXECUTE format($y$INSERT INTO brin_result_ss SELECT ctid FROM brintest WHERE %s $y$, cond); - - -- make sure both return the same results - PERFORM * FROM brin_result EXCEPT ALL SELECT * FROM brin_result_ss; - GET DIAGNOSTICS count = ROW_COUNT; - IF count <> 0 THEN - mismatch = true; - END IF; - PERFORM * FROM brin_result_ss EXCEPT ALL SELECT * FROM brin_result; - GET DIAGNOSTICS count = ROW_COUNT; - IF count <> 0 THEN - mismatch = true; - END IF; - - -- report the results of each scan to make the differences obvious - IF mismatch THEN - RAISE WARNING 'something not right in %: count %', r, count; - SET enable_seqscan = 1; - SET enable_bitmapscan = 0; - FOR r2 IN EXECUTE 'SELECT ' || r.colname || ' FROM brintest WHERE ' || cond LOOP - RAISE NOTICE 'seqscan: %', r2; - END LOOP; - - SET enable_seqscan = 0; - SET enable_bitmapscan = 1; - FOR r2 IN EXECUTE 'SELECT ' || r.colname || ' FROM brintest WHERE ' || cond LOOP - RAISE NOTICE 'bitmapscan: %', r2; - END LOOP; - END IF; - - -- make sure we found expected number of matches - SELECT count(*) INTO count FROM brin_result; - IF count != r.matches THEN RAISE WARNING 'unexpected number of results % for %', count, r; END IF; - - -- drop the temporary tables - DROP TABLE brin_result; - DROP TABLE brin_result_ss; - END LOOP; -END; -", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 9952, - }, - }, - ], - }, - }, - "stmt_len": 2757, - "stmt_location": 9947, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 12719, - "relname": "brintest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 14033, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitCount": { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 14062, - }, - }, - "limitOffset": { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 14071, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique2", - }, - }, - ], - "location": 14048, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 12736, - "val": { - "TypeCast": { - "arg": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "stringu1", - }, - }, - ], - "location": 12743, - }, - }, - { - "A_Const": { - "ival": { - "ival": 42, - }, - "location": 12753, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "repeat", - }, - }, - ], - "location": 12736, - }, - }, - "location": 12756, - "typeName": { - "location": 12758, - "names": [ - { - "String": { - "sval": "bytea", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 12766, - "val": { - "TypeCast": { - "arg": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "stringu1", - }, - }, - ], - "location": 12773, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 12783, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 12786, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "substr", - }, - }, - ], - "location": 12766, - }, - }, - "location": 12788, - "typeName": { - "location": 12790, - "names": [ - { - "String": { - "sval": "char", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 12799, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "stringu1", - }, - }, - ], - "location": 12799, - }, - }, - "location": 12807, - "typeName": { - "location": 12809, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 12815, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 142857, - }, - "location": 12815, - }, - }, - "location": 12822, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 12824, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 12835, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 12835, - }, - }, - }, - }, - { - "ResTarget": { - "location": 12846, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "twothousand", - }, - }, - ], - "location": 12846, - }, - }, - }, - }, - { - "ResTarget": { - "location": 12860, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "stringu1", - }, - }, - ], - "location": 12867, - }, - }, - { - "A_Const": { - "ival": { - "ival": 42, - }, - "location": 12877, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "repeat", - }, - }, - ], - "location": 12860, - }, - }, - }, - }, - { - "ResTarget": { - "location": 12883, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 12883, - }, - }, - "location": 12890, - "typeName": { - "location": 12892, - "names": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 12898, - "val": { - "TypeCast": { - "arg": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 12905, - "sval": { - "sval": "(%s,%s)", - }, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 12916, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "twenty", - }, - }, - ], - "location": 12926, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 12898, - }, - }, - "location": 12933, - "typeName": { - "location": 12935, - "names": [ - { - "String": { - "sval": "tid", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 12941, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 12942, - }, - }, - "location": 12947, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "fval": { - "fval": "1.0", - }, - "location": 12949, - }, - }, - }, - }, - "location": 12953, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "hundred", - }, - }, - ], - "location": 12955, - }, - }, - "location": 12962, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 12963, - }, - }, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 12968, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "odd", - }, - }, - ], - "location": 12968, - }, - }, - "location": 12971, - "typeName": { - "location": 12973, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 12980, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 12983, - }, - }, - "location": 12992, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 12994, - }, - }, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 12999, - "val": { - "TypeCast": { - "arg": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 13006, - "sval": { - "sval": "%s:00:%s:00:%s:00", - }, - }, - }, - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "odd", - }, - }, - ], - "location": 13034, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_hex", - }, - }, - ], - "location": 13027, - }, - }, - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "even", - }, - }, - ], - "location": 13047, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_hex", - }, - }, - ], - "location": 13040, - }, - }, - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "hundred", - }, - }, - ], - "location": 13061, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_hex", - }, - }, - ], - "location": 13054, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 12999, - }, - }, - "location": 13070, - "typeName": { - "location": 13072, - "names": [ - { - "String": { - "sval": "macaddr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13082, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 13087, - "sval": { - "sval": "10.2.3.4", - }, - }, - }, - "location": -1, - "typeName": { - "location": 13082, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 13098, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 13100, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13111, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 13116, - "sval": { - "sval": "10.2.3/24", - }, - }, - }, - "location": -1, - "typeName": { - "location": 13111, - "names": [ - { - "String": { - "sval": "cidr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 13128, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 13130, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13141, - "val": { - "TypeCast": { - "arg": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "stringu1", - }, - }, - ], - "location": 13148, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 13158, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 13161, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "substr", - }, - }, - ], - "location": 13141, - }, - }, - "location": 13163, - "typeName": { - "location": 13165, - "names": [ - { - "String": { - "sval": "bpchar", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13174, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 13179, - "sval": { - "sval": "1995-08-15", - }, - }, - }, - "location": -1, - "typeName": { - "location": 13174, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 13192, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 13194, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13205, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 13210, - "sval": { - "sval": "01:20:30", - }, - }, - }, - "location": -1, - "typeName": { - "location": 13205, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 13221, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 13223, - }, - }, - "location": 13232, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 13243, - "sval": { - "sval": "18.5 second", - }, - }, - }, - "location": -1, - "typeName": { - "location": 13234, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13259, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 13269, - "sval": { - "sval": "1942-07-23 03:05:09", - }, - }, - }, - "location": -1, - "typeName": { - "location": 13259, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 13291, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 13293, - }, - }, - "location": 13302, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 13313, - "sval": { - "sval": "36.38 hours", - }, - }, - }, - "location": -1, - "typeName": { - "location": 13304, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13329, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 13341, - "sval": { - "sval": "1972-10-10 03:00", - }, - }, - }, - "location": -1, - "typeName": { - "location": 13329, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 13360, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 13362, - }, - }, - "location": 13371, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 13382, - "sval": { - "sval": "1 hour", - }, - }, - }, - "location": -1, - "typeName": { - "location": 13373, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13393, - "val": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 13420, - }, - }, - "location": 13429, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 13440, - "sval": { - "sval": "12 minutes", - }, - }, - }, - "location": -1, - "typeName": { - "location": 13431, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "justify_hours", - }, - }, - ], - "location": 13406, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "justify_days", - }, - }, - ], - "location": 13393, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13457, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 13464, - "sval": { - "sval": "01:30:20", - }, - }, - }, - "location": -1, - "typeName": { - "location": 13457, - "names": [ - { - "String": { - "sval": "timetz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 13475, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "hundred", - }, - }, - ], - "location": 13477, - }, - }, - "location": 13485, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 13496, - "sval": { - "sval": "15 seconds", - }, - }, - }, - "location": -1, - "typeName": { - "location": 13487, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13511, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 13511, - }, - }, - "location": 13519, - "typeName": { - "location": 13521, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 13525, - }, - }, - ], - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13531, - "val": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 13531, - }, - }, - "location": 13539, - "typeName": { - "location": 13541, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 16, - }, - "location": 13545, - }, - }, - ], - }, - }, - }, - "location": 13548, - "typeName": { - "location": 13550, - "names": [ - { - "String": { - "sval": "varbit", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13559, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 13559, - }, - }, - "location": 13567, - "typeName": { - "location": 13569, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 36, - }, - "location": 13577, - }, - }, - { - "A_Const": { - "ival": { - "ival": 30, - }, - "location": 13580, - }, - }, - ], - }, - }, - }, - "location": 13584, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fivethous", - }, - }, - ], - "location": 13586, - }, - }, - }, - }, - "location": 13596, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "even", - }, - }, - ], - "location": 13598, - }, - }, - }, - }, - "location": 13603, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "hundred", - }, - }, - ], - "location": 13606, - }, - }, - "location": 13614, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 13616, - }, - }, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13621, - "val": { - "TypeCast": { - "arg": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 13628, - "sval": { - "sval": "%s%s-%s-%s-%s-%s%s%s", - }, - }, - }, - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 13660, - }, - }, - { - "A_Const": { - "location": 13670, - "sval": { - "sval": "FM0000", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_char", - }, - }, - ], - "location": 13652, - }, - }, - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 13689, - }, - }, - { - "A_Const": { - "location": 13699, - "sval": { - "sval": "FM0000", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_char", - }, - }, - ], - "location": 13681, - }, - }, - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 13718, - }, - }, - { - "A_Const": { - "location": 13728, - "sval": { - "sval": "FM0000", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_char", - }, - }, - ], - "location": 13710, - }, - }, - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 13747, - }, - }, - { - "A_Const": { - "location": 13757, - "sval": { - "sval": "FM0000", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_char", - }, - }, - ], - "location": 13739, - }, - }, - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 13776, - }, - }, - { - "A_Const": { - "location": 13786, - "sval": { - "sval": "FM0000", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_char", - }, - }, - ], - "location": 13768, - }, - }, - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 13805, - }, - }, - { - "A_Const": { - "location": 13815, - "sval": { - "sval": "FM0000", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_char", - }, - }, - ], - "location": 13797, - }, - }, - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 13834, - }, - }, - { - "A_Const": { - "location": 13844, - "sval": { - "sval": "FM0000", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_char", - }, - }, - ], - "location": 13826, - }, - }, - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 13863, - }, - }, - { - "A_Const": { - "location": 13873, - "sval": { - "sval": "FM0000", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_char", - }, - }, - ], - "location": 13855, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 13621, - }, - }, - "location": 13883, - "typeName": { - "location": 13885, - "names": [ - { - "String": { - "sval": "uuid", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13892, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 13902, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "twothousand", - }, - }, - ], - "location": 13912, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "int4range", - }, - }, - ], - "location": 13892, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13927, - "val": { - "TypeCast": { - "arg": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 13934, - "sval": { - "sval": "%s/%s%s", - }, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "odd", - }, - }, - ], - "location": 13945, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "even", - }, - }, - ], - "location": 13950, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 13956, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 13927, - }, - }, - "location": 13965, - "typeName": { - "location": 13967, - "names": [ - { - "String": { - "sval": "pg_lsn", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13976, - "val": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "odd", - }, - }, - ], - "location": 13986, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "even", - }, - }, - ], - "location": 13991, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 13980, - }, - }, - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 14004, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "twothousand", - }, - }, - ], - "location": 14014, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 13998, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "box", - }, - }, - ], - "location": 13976, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 1367, - "stmt_location": 12705, - }, - }, - { - "RawStmt": { - "stmt": { - "VacuumStmt": { - "is_vacuumcmd": true, - "rels": [ - { - "VacuumRelation": { - "relation": { - "inh": true, - "location": 14082, - "relname": "brintest", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 17, - "stmt_location": 14073, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 14143, - "relname": "brintest", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 14156, - "name": "int8col", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "int8col", - }, - }, - ], - "location": 14166, - }, - }, - "location": 14174, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "int4col", - }, - }, - ], - "location": 14176, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 92, - "stmt_location": 14091, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 14192, - "relname": "brintest", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 14205, - "name": "textcol", - "val": { - "A_Const": { - "location": 14215, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - ], - "whereClause": { - "NullTest": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "textcol", - }, - }, - ], - "location": 14224, - }, - }, - "location": 14232, - "nulltesttype": "IS_NOT_NULL", - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 14184, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14292, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 14318, - "sval": { - "sval": "brintest", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "brin_summarize_new_values", - }, - }, - ], - "location": 14292, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 85, - "stmt_location": 14244, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14361, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 14387, - "sval": { - "sval": "tenk1_unique1", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "brin_summarize_new_values", - }, - }, - ], - "location": 14361, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 14330, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14439, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 14465, - "sval": { - "sval": "brinidx", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "brin_summarize_new_values", - }, - }, - ], - "location": 14439, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 71, - "stmt_location": 14404, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/btree_index.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 90, - "relname": "bt_i4_heap", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 78, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 78, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "seqno", - }, - }, - ], - "location": 112, - }, - }, - "location": 120, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 122, - }, - }, - }, - }, - }, - }, - "stmt_len": 123, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 145, - "relname": "bt_i4_heap", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 133, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 133, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "seqno", - }, - }, - ], - "location": 167, - }, - }, - "location": 175, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 9999, - }, - "location": 178, - }, - }, - }, - }, - }, - }, - "stmt_len": 58, - "stmt_location": 124, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 204, - "relname": "bt_i4_heap", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 192, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 192, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "seqno", - }, - }, - ], - "location": 226, - }, - }, - "location": 234, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 4500, - }, - "location": 236, - }, - }, - }, - }, - }, - }, - "stmt_len": 57, - "stmt_location": 183, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 262, - "relname": "bt_name_heap", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 250, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 250, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "seqno", - }, - }, - ], - "location": 286, - }, - }, - "location": 294, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 296, - "sval": { - "sval": "1", - }, - }, - }, - "location": 299, - "typeName": { - "location": 301, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 64, - "stmt_location": 241, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 327, - "relname": "bt_name_heap", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 315, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 315, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "seqno", - }, - }, - ], - "location": 351, - }, - }, - "location": 359, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 362, - "sval": { - "sval": "9999", - }, - }, - }, - "location": 368, - "typeName": { - "location": 370, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 68, - "stmt_location": 306, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 396, - "relname": "bt_name_heap", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 384, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 384, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "seqno", - }, - }, - ], - "location": 420, - }, - }, - "location": 428, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 430, - "sval": { - "sval": "4500", - }, - }, - }, - "location": 436, - "typeName": { - "location": 438, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 67, - "stmt_location": 375, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 464, - "relname": "bt_txt_heap", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 452, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 452, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "seqno", - }, - }, - ], - "location": 487, - }, - }, - "location": 495, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 497, - "sval": { - "sval": "1", - }, - }, - }, - "location": 500, - "typeName": { - "location": 502, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 63, - "stmt_location": 443, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 528, - "relname": "bt_txt_heap", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 516, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 516, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "seqno", - }, - }, - ], - "location": 551, - }, - }, - "location": 559, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 562, - "sval": { - "sval": "9999", - }, - }, - }, - "location": 568, - "typeName": { - "location": 570, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 67, - "stmt_location": 507, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 596, - "relname": "bt_txt_heap", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 584, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 584, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "seqno", - }, - }, - ], - "location": 619, - }, - }, - "location": 627, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 629, - "sval": { - "sval": "4500", - }, - }, - }, - "location": 635, - "typeName": { - "location": 637, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 66, - "stmt_location": 575, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 663, - "relname": "bt_f8_heap", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 651, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 651, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "seqno", - }, - }, - ], - "location": 685, - }, - }, - "location": 693, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 695, - "sval": { - "sval": "1", - }, - }, - }, - "location": 698, - "typeName": { - "location": 700, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 64, - "stmt_location": 642, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 728, - "relname": "bt_f8_heap", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 716, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 716, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "seqno", - }, - }, - ], - "location": 750, - }, - }, - "location": 758, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 761, - "sval": { - "sval": "9999", - }, - }, - }, - "location": 767, - "typeName": { - "location": 769, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 68, - "stmt_location": 707, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 797, - "relname": "bt_f8_heap", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 785, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 785, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "seqno", - }, - }, - ], - "location": 819, - }, - }, - "location": 827, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 829, - "sval": { - "sval": "4500", - }, - }, - }, - "location": 835, - "typeName": { - "location": 837, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 67, - "stmt_location": 776, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 989, - "sval": { - "sval": "false", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_seqscan", - }, - }, - "stmt_len": 150, - "stmt_location": 844, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 1020, - "sval": { - "sval": "true", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_indexscan", - }, - }, - "stmt_len": 29, - "stmt_location": 995, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 1051, - "sval": { - "sval": "false", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_bitmapscan", - }, - }, - "stmt_len": 31, - "stmt_location": 1025, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1078, - "relname": "pg_proc", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1131, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1065, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proname", - }, - }, - ], - "location": 1065, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proname", - }, - }, - ], - "location": 1092, - }, - }, - "location": 1100, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1105, - "sval": { - "sval": "RI\\_FKey%del", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 75, - "stmt_location": 1057, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 1159, - "sval": { - "sval": "false", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_indexscan", - }, - }, - "stmt_len": 31, - "stmt_location": 1133, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 1191, - "sval": { - "sval": "true", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_bitmapscan", - }, - }, - "stmt_len": 30, - "stmt_location": 1165, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1217, - "relname": "pg_proc", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1270, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1204, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proname", - }, - }, - ], - "location": 1204, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proname", - }, - }, - ], - "location": 1231, - }, - }, - "location": 1239, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1244, - "sval": { - "sval": "RI\\_FKey%del", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 75, - "stmt_location": 1196, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1579, - "relname": "btree_tall_tbl", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "is_local": true, - "location": 1594, - "typeName": { - "location": 1597, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "t", - "is_local": true, - "location": 1603, - "typeName": { - "location": 1605, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 338, - "stmt_location": 1272, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "btree_tall_idx", - "indexParams": [ - { - "IndexElem": { - "name": "id", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "t", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "Integer": { - "ival": 10, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "fillfactor", - "location": 1672, - }, - }, - ], - "relation": { - "inh": true, - "location": 1643, - "relname": "btree_tall_tbl", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 77, - "stmt_location": 1611, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1702, - "relname": "btree_tall_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "g", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1847, - }, - }, - { - "A_Const": { - "ival": { - "ival": 100, - }, - "location": 1850, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 1831, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1726, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "g", - }, - }, - ], - "location": 1726, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1729, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "g", - }, - }, - ], - "location": 1729, - }, - }, - "location": 1730, - "typeName": { - "location": 1732, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1737, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1740, - "sval": { - "sval": "_", - }, - }, - }, - }, - }, - "location": 1744, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "SubLink": { - "location": 1757, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "i", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1816, - }, - }, - { - "A_Const": { - "ival": { - "ival": 50, - }, - "location": 1819, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 1800, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1765, - "val": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1780, - }, - }, - "location": 1781, - "typeName": { - "location": 1783, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "md5", - }, - }, - ], - "location": 1776, - }, - }, - { - "A_Const": { - "location": 1790, - "sval": { - "sval": "_", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "string_agg", - }, - }, - ], - "location": 1765, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 167, - "stmt_location": 1689, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 1935, - "relname": "btree_tall_tbl", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 1956, - }, - }, - "location": 1959, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 950, - }, - "location": 1961, - }, - }, - }, - }, - }, - }, - "stmt_len": 107, - "stmt_location": 1857, - }, - }, - { - "RawStmt": { - "stmt": { - "VacuumStmt": { - "is_vacuumcmd": true, - "rels": [ - { - "VacuumRelation": { - "relation": { - "inh": true, - "location": 1973, - "relname": "btree_tall_tbl", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 1965, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2308, - "name": "id", - }, - }, - { - "ResTarget": { - "location": 2312, - "name": "t", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2292, - "relname": "btree_tall_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "g", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2365, - }, - }, - { - "A_Const": { - "ival": { - "ival": 500, - }, - "location": 2368, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 2349, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2324, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "g", - }, - }, - ], - "location": 2324, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2327, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2334, - "sval": { - "sval": "x", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 100, - }, - "location": 2339, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "repeat", - }, - }, - ], - "location": 2327, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 386, - "stmt_location": 1988, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/case.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 55, - "relname": "case_tbl", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "i", - "is_local": true, - "location": 68, - "typeName": { - "location": 70, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "f", - "is_local": true, - "location": 81, - "typeName": { - "location": 83, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 101, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 117, - "relname": "case2_tbl", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "i", - "is_local": true, - "location": 131, - "typeName": { - "location": 133, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "j", - "is_local": true, - "location": 144, - "typeName": { - "location": 146, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 102, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 170, - "relname": "case_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 187, - }, - }, - { - "A_Const": { - "fval": { - "fval": "10.1", - }, - "location": 190, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 39, - "stmt_location": 156, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 209, - "relname": "case_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 226, - }, - }, - { - "A_Const": { - "fval": { - "fval": "20.2", - }, - "location": 229, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 38, - "stmt_location": 196, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 248, - "relname": "case_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 265, - }, - }, - { - "A_Const": { - "fval": { - "fval": "-30.3", - }, - "location": 268, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 39, - "stmt_location": 235, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 288, - "relname": "case_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 305, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 308, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 38, - "stmt_location": 275, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 328, - "relname": "case2_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 346, - }, - }, - { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 349, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 38, - "stmt_location": 314, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 366, - "relname": "case2_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 384, - }, - }, - { - "A_Const": { - "ival": { - "ival": -2, - }, - "location": 387, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 37, - "stmt_location": 353, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 404, - "relname": "case2_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 422, - }, - }, - { - "A_Const": { - "ival": { - "ival": -3, - }, - "location": 425, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 37, - "stmt_location": 391, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 442, - "relname": "case2_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 460, - }, - }, - { - "A_Const": { - "ival": { - "ival": -4, - }, - "location": 463, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 37, - "stmt_location": 429, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 480, - "relname": "case2_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 498, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 501, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 39, - "stmt_location": 467, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 520, - "relname": "case2_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 538, - }, - }, - { - "A_Const": { - "ival": { - "ival": -6, - }, - "location": 544, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 40, - "stmt_location": 507, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 600, - "name": "One", - "val": { - "A_Const": { - "location": 600, - "sval": { - "sval": "3", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 616, - "name": "Simple WHEN", - "val": { - "CaseExpr": { - "args": [ - { - "CaseWhen": { - "expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 630, - }, - }, - "location": 632, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 634, - }, - }, - }, - }, - "location": 625, - "result": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 641, - }, - }, - }, - }, - ], - "location": 616, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 117, - "stmt_location": 548, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 675, - "name": "One", - "val": { - "A_Const": { - "location": 675, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 696, - "name": "Simple default", - "val": { - "CaseExpr": { - "args": [ - { - "CaseWhen": { - "expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 710, - }, - }, - "location": 712, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 714, - }, - }, - }, - }, - "location": 705, - "result": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 721, - }, - }, - }, - }, - ], - "location": 696, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 82, - "stmt_location": 666, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 758, - "name": "One", - "val": { - "A_Const": { - "location": 758, - "sval": { - "sval": "3", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 774, - "name": "Simple ELSE", - "val": { - "CaseExpr": { - "args": [ - { - "CaseWhen": { - "expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 788, - }, - }, - "location": 790, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 792, - }, - }, - }, - }, - "location": 783, - "result": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 799, - }, - }, - }, - }, - ], - "defresult": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 810, - }, - }, - "location": 774, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 85, - "stmt_location": 749, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 844, - "name": "One", - "val": { - "A_Const": { - "location": 844, - "sval": { - "sval": "4", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 860, - "name": "ELSE default", - "val": { - "CaseExpr": { - "args": [ - { - "CaseWhen": { - "expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 874, - }, - }, - "location": 876, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 878, - }, - }, - }, - }, - "location": 869, - "result": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 885, - }, - }, - }, - }, - ], - "defresult": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 896, - }, - }, - "location": 860, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 86, - "stmt_location": 835, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 931, - "name": "One", - "val": { - "A_Const": { - "location": 931, - "sval": { - "sval": "6", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 947, - "name": "Two WHEN with default", - "val": { - "CaseExpr": { - "args": [ - { - "CaseWhen": { - "expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 961, - }, - }, - "location": 963, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 965, - }, - }, - }, - }, - "location": 956, - "result": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 972, - }, - }, - }, - }, - { - "CaseWhen": { - "expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 983, - }, - }, - "location": 985, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 987, - }, - }, - }, - }, - "location": 978, - "result": { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 994, - }, - }, - }, - }, - ], - "defresult": { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 1005, - }, - }, - "location": 947, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 117, - "stmt_location": 922, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1126, - "val": { - "CaseExpr": { - "args": [ - { - "CaseWhen": { - "expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1136, - }, - }, - "location": 1137, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 1138, - }, - }, - }, - }, - "location": 1131, - "result": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1145, - }, - }, - "location": 1146, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 1147, - }, - }, - }, - }, - }, - }, - { - "CaseWhen": { - "expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1154, - }, - }, - "location": 1155, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1156, - }, - }, - }, - }, - "location": 1149, - "result": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1163, - }, - }, - }, - }, - ], - "defresult": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1170, - }, - }, - "location": 1171, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 1172, - }, - }, - }, - }, - "location": 1126, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 137, - "stmt_location": 1040, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1186, - "val": { - "CaseExpr": { - "arg": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1191, - }, - }, - "args": [ - { - "CaseWhen": { - "expr": { - "A_Const": { - "ival": {}, - "location": 1198, - }, - }, - "location": 1193, - "result": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1205, - }, - }, - "location": 1206, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 1207, - }, - }, - }, - }, - }, - }, - { - "CaseWhen": { - "expr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1214, - }, - }, - "location": 1209, - "result": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1221, - }, - }, - }, - }, - ], - "defresult": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1228, - }, - }, - "location": 1229, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 1230, - }, - }, - }, - }, - "location": 1186, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 1178, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1379, - "relname": "case_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1336, - "val": { - "CaseExpr": { - "args": [ - { - "CaseWhen": { - "expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1346, - }, - }, - "location": 1348, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 100, - }, - "location": 1350, - }, - }, - }, - }, - "location": 1341, - "result": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1359, - }, - }, - "location": 1360, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 1361, - }, - }, - }, - }, - }, - }, - ], - "defresult": { - "A_Const": { - "ival": {}, - "location": 1368, - }, - }, - "location": 1336, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 151, - "stmt_location": 1236, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1461, - "val": { - "CaseExpr": { - "arg": { - "A_Const": { - "location": 1466, - "sval": { - "sval": "a", - }, - }, - }, - "args": [ - { - "CaseWhen": { - "expr": { - "A_Const": { - "location": 1475, - "sval": { - "sval": "a", - }, - }, - }, - "location": 1470, - "result": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1484, - }, - }, - }, - }, - ], - "defresult": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1491, - }, - }, - "location": 1461, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 108, - "stmt_location": 1388, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1628, - "relname": "case_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1553, - "name": "Five", - "val": { - "A_Const": { - "location": 1553, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1569, - "name": ">= 3 or Null", - "val": { - "CaseExpr": { - "args": [ - { - "CaseWhen": { - "expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1583, - }, - }, - "location": 1585, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 1588, - }, - }, - }, - }, - "location": 1578, - "result": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1595, - }, - }, - }, - }, - ], - "location": 1569, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 139, - "stmt_location": 1497, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1738, - "relname": "case_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1646, - "name": "Five", - "val": { - "A_Const": { - "location": 1646, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1662, - "name": "Simplest Math", - "val": { - "CaseExpr": { - "args": [ - { - "CaseWhen": { - "expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1672, - }, - }, - "location": 1674, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 1677, - }, - }, - }, - }, - "location": 1667, - "result": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1685, - }, - }, - "location": 1687, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1689, - }, - }, - }, - }, - }, - }, - ], - "defresult": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1704, - }, - }, - "location": 1662, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 109, - "stmt_location": 1637, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1956, - "relname": "case_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1756, - "name": "Five", - "val": { - "A_Const": { - "location": 1756, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1770, - "name": "Value", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1770, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1786, - "name": "Category", - "val": { - "CaseExpr": { - "args": [ - { - "CaseWhen": { - "expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1797, - }, - }, - "location": 1799, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 1801, - }, - }, - }, - }, - "location": 1791, - "result": { - "A_Const": { - "location": 1809, - "sval": { - "sval": "small", - }, - }, - }, - }, - }, - { - "CaseWhen": { - "expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1830, - }, - }, - "location": 1832, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 1834, - }, - }, - }, - }, - "location": 1824, - "result": { - "A_Const": { - "location": 1842, - "sval": { - "sval": "zero", - }, - }, - }, - }, - }, - { - "CaseWhen": { - "expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1862, - }, - }, - "location": 1864, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1866, - }, - }, - }, - }, - "location": 1856, - "result": { - "A_Const": { - "location": 1874, - "sval": { - "sval": "one", - }, - }, - }, - }, - }, - { - "CaseWhen": { - "expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1893, - }, - }, - "location": 1895, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1897, - }, - }, - }, - }, - "location": 1887, - "result": { - "A_Const": { - "location": 1905, - "sval": { - "sval": "two", - }, - }, - }, - }, - }, - ], - "defresult": { - "A_Const": { - "location": 1923, - "sval": { - "sval": "big", - }, - }, - }, - "location": 1786, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 217, - "stmt_location": 1747, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2212, - "relname": "case_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1974, - "name": "Five", - "val": { - "A_Const": { - "location": 1974, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1990, - "name": "Category", - "val": { - "CaseExpr": { - "args": [ - { - "CaseWhen": { - "expr": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2002, - }, - }, - "location": 2004, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 2006, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2013, - }, - }, - "location": 2015, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 2017, - }, - }, - }, - }, - ], - "boolop": "OR_EXPR", - "location": 2009, - }, - }, - "location": 1995, - "result": { - "A_Const": { - "location": 2026, - "sval": { - "sval": "small", - }, - }, - }, - }, - }, - { - "CaseWhen": { - "expr": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2048, - }, - }, - "location": 2050, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 2052, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2059, - }, - }, - "location": 2061, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 2063, - }, - }, - }, - }, - ], - "boolop": "OR_EXPR", - "location": 2055, - }, - }, - "location": 2041, - "result": { - "A_Const": { - "location": 2072, - "sval": { - "sval": "zero", - }, - }, - }, - }, - }, - { - "CaseWhen": { - "expr": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2093, - }, - }, - "location": 2095, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2097, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2104, - }, - }, - "location": 2106, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2108, - }, - }, - }, - }, - ], - "boolop": "OR_EXPR", - "location": 2100, - }, - }, - "location": 2086, - "result": { - "A_Const": { - "location": 2117, - "sval": { - "sval": "one", - }, - }, - }, - }, - }, - { - "CaseWhen": { - "expr": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2137, - }, - }, - "location": 2139, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2141, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2148, - }, - }, - "location": 2150, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2152, - }, - }, - }, - }, - ], - "boolop": "OR_EXPR", - "location": 2144, - }, - }, - "location": 2130, - "result": { - "A_Const": { - "location": 2161, - "sval": { - "sval": "two", - }, - }, - }, - }, - }, - ], - "defresult": { - "A_Const": { - "location": 2179, - "sval": { - "sval": "big", - }, - }, - }, - "location": 1990, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 255, - "stmt_location": 1965, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2405, - "relname": "case_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2398, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2398, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "CoalesceExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - ], - "location": 2429, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2431, - }, - }, - ], - "location": 2420, - }, - }, - "location": 2434, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 2436, - }, - }, - }, - }, - }, - }, - "stmt_len": 216, - "stmt_location": 2221, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2454, - "relname": "case_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2447, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2447, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_NULLIF", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - ], - "location": 2476, - }, - }, - "location": 2469, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2478, - }, - }, - }, - }, - "location": 2481, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2483, - }, - }, - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 2438, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 2525, - "relname": "case_tbl", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 2537, - "relname": "case2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2494, - "val": { - "CoalesceExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "f", - }, - }, - ], - "location": 2503, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2508, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "j", - }, - }, - ], - "location": 2513, - }, - }, - ], - "location": 2494, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 2485, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 2567, - "relname": "case_tbl", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 2579, - "relname": "case2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2558, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2558, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "CoalesceExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "f", - }, - }, - ], - "location": 2608, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2613, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "j", - }, - }, - ], - "location": 2618, - }, - }, - ], - "location": 2599, - }, - }, - "location": 2623, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2625, - }, - }, - }, - }, - }, - }, - "stmt_len": 77, - "stmt_location": 2549, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 2729, - "relname": "case_tbl", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 2741, - "relname": "case2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2636, - "name": "five", - "val": { - "A_Const": { - "location": 2636, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2648, - "name": "NULLIF(a.i,b.i)", - "val": { - "A_Expr": { - "kind": "AEXPR_NULLIF", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2655, - }, - }, - "location": 2648, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2659, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2688, - "name": "NULLIF(b.i,4)", - "val": { - "A_Expr": { - "kind": "AEXPR_NULLIF", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2695, - }, - }, - "location": 2688, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 2700, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 125, - "stmt_location": 2627, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 2784, - "relname": "case_tbl", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 2796, - "relname": "case2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2762, - "name": "Two", - "val": { - "A_Const": { - "location": 2762, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2775, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2775, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "CoalesceExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - ], - "location": 2825, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2827, - }, - }, - ], - "location": 2816, - }, - }, - "location": 2832, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2834, - }, - }, - }, - }, - }, - }, - "stmt_len": 82, - "stmt_location": 2753, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 2892, - "relname": "case_tbl", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 2907, - "name": "i", - "val": { - "CaseExpr": { - "args": [ - { - "CaseWhen": { - "expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2921, - }, - }, - "location": 2923, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 2926, - }, - }, - }, - }, - "location": 2916, - "result": { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 2934, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2936, - }, - }, - }, - }, - }, - }, - ], - "defresult": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2961, - }, - }, - "location": 2963, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2965, - }, - }, - }, - }, - "location": 2911, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 135, - "stmt_location": 2836, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2988, - "relname": "case_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2981, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2981, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 2972, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 3006, - "relname": "case_tbl", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 3021, - "name": "i", - "val": { - "CaseExpr": { - "args": [ - { - "CaseWhen": { - "expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3035, - }, - }, - "location": 3037, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3040, - }, - }, - }, - }, - "location": 3030, - "result": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3048, - }, - }, - "location": 3050, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3052, - }, - }, - }, - }, - }, - }, - ], - "defresult": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 3077, - }, - }, - "location": 3079, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3081, - }, - }, - }, - }, - "location": 3025, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 90, - "stmt_location": 2997, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3104, - "relname": "case_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3097, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3097, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 3088, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 3213, - "relname": "case2_tbl", - "relpersistence": "p", - }, - }, - ], - "relation": { - "inh": true, - "location": 3122, - "relname": "case_tbl", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 3137, - "name": "i", - "val": { - "CaseExpr": { - "args": [ - { - "CaseWhen": { - "expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3151, - }, - }, - "location": 3155, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3158, - }, - }, - }, - }, - "location": 3146, - "result": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3166, - }, - }, - "location": 3168, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "j", - }, - }, - ], - "location": 3170, - }, - }, - }, - }, - }, - }, - ], - "defresult": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 3195, - }, - }, - "location": 3197, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "j", - }, - }, - ], - "location": 3199, - }, - }, - }, - }, - "location": 3141, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "j", - }, - }, - ], - "location": 3233, - }, - }, - "location": 3235, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 3237, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "case_tbl", - }, - }, - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3238, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 135, - "stmt_location": 3113, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3265, - "relname": "case_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3258, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3258, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 3249, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "case_tbl", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 40, - "stmt_location": 3274, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "case2_tbl", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 21, - "stmt_location": 3315, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/char.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 103, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 108, - "sval": { - "sval": "c", - }, - }, - }, - "location": -1, - "typeName": { - "location": 103, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bpchar", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 112, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 119, - "sval": { - "sval": "c", - }, - }, - }, - "location": -1, - "typeName": { - "location": 114, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bpchar", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 130, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 182, - "relname": "char_tbl", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 191, - "typeName": { - "location": 194, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bpchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": -1, - }, - }, - ], - }, - }, - }, - ], - }, - }, - "stmt_len": 68, - "stmt_location": 131, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 224, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 214, - "relname": "char_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 236, - "sval": { - "sval": "a", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 40, - "stmt_location": 200, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 265, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 255, - "relname": "char_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 277, - "sval": { - "sval": "A", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 40, - "stmt_location": 241, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 365, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 355, - "relname": "char_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 377, - "sval": { - "sval": "1", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 99, - "stmt_location": 282, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 406, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 396, - "relname": "char_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 418, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 38, - "stmt_location": 382, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 445, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 435, - "relname": "char_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 457, - "sval": { - "sval": "3", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 40, - "stmt_location": 421, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 506, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 496, - "relname": "char_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 518, - "sval": { - "sval": "", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 462, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 585, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 575, - "relname": "char_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 597, - "sval": { - "sval": "cd", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 80, - "stmt_location": 522, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 626, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 616, - "relname": "char_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 638, - "sval": { - "sval": "c ", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 44, - "stmt_location": 603, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 678, - "relname": "char_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 658, - "name": "seven", - "val": { - "A_Const": { - "location": 658, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 671, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 671, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 648, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "c", - }, - "inh": true, - "location": 719, - "relname": "char_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 696, - "name": "six", - "val": { - "A_Const": { - "location": 696, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 707, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 707, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 739, - }, - }, - "location": 744, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 747, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 63, - "stmt_location": 687, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "c", - }, - "inh": true, - "location": 783, - "relname": "char_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 760, - "name": "one", - "val": { - "A_Const": { - "location": 760, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 771, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 771, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 803, - }, - }, - "location": 808, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 810, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 62, - "stmt_location": 751, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "c", - }, - "inh": true, - "location": 847, - "relname": "char_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 823, - "name": "five", - "val": { - "A_Const": { - "location": 823, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 835, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 835, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 867, - }, - }, - "location": 872, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 874, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 63, - "stmt_location": 814, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "c", - }, - "inh": true, - "location": 910, - "relname": "char_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 887, - "name": "six", - "val": { - "A_Const": { - "location": 887, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 898, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 898, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 930, - }, - }, - "location": 935, - "name": [ - { - "String": { - "sval": "<=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 938, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 63, - "stmt_location": 878, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "c", - }, - "inh": true, - "location": 974, - "relname": "char_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 951, - "name": "one", - "val": { - "A_Const": { - "location": 951, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 962, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 962, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 994, - }, - }, - "location": 999, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1001, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 62, - "stmt_location": 942, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "c", - }, - "inh": true, - "location": 1037, - "relname": "char_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1014, - "name": "two", - "val": { - "A_Const": { - "location": 1014, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1025, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1025, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1057, - }, - }, - "location": 1062, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1065, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 63, - "stmt_location": 1005, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "char_tbl", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 21, - "stmt_location": 1069, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1147, - "relname": "char_tbl", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 1156, - "typeName": { - "location": 1159, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bpchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 1164, - }, - }, - ], - }, - }, - }, - ], - }, - }, - "stmt_len": 76, - "stmt_location": 1091, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1192, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1182, - "relname": "char_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1204, - "sval": { - "sval": "a", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 40, - "stmt_location": 1168, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1232, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1222, - "relname": "char_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1244, - "sval": { - "sval": "ab", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 40, - "stmt_location": 1209, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1273, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1263, - "relname": "char_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1285, - "sval": { - "sval": "abcd", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 1250, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1316, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1306, - "relname": "char_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1328, - "sval": { - "sval": "abcde", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 1293, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1360, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1350, - "relname": "char_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1372, - "sval": { - "sval": "abcd ", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 1337, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1412, - "relname": "char_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1393, - "name": "four", - "val": { - "A_Const": { - "location": 1393, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1405, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1405, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 1384, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/circle.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 30, - "relname": "circle_tbl", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 42, - "typeName": { - "location": 45, - "names": [ - { - "String": { - "sval": "circle", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 67, - "relname": "circle_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 86, - "sval": { - "sval": "<(5,1),3>", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 45, - "stmt_location": 53, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 113, - "relname": "circle_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 132, - "sval": { - "sval": "<(1,2),100>", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 47, - "stmt_location": 99, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 161, - "relname": "circle_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 180, - "sval": { - "sval": "1,3,5", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 41, - "stmt_location": 147, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 203, - "relname": "circle_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 222, - "sval": { - "sval": "((1,2),3)", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 45, - "stmt_location": 189, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 249, - "relname": "circle_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 268, - "sval": { - "sval": "<(100,200),10>", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 50, - "stmt_location": 235, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 300, - "relname": "circle_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 319, - "sval": { - "sval": "<(100,1),115>", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 49, - "stmt_location": 286, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 365, - "relname": "circle_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 384, - "sval": { - "sval": "<(-100,0),-100>", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 66, - "stmt_location": 336, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 417, - "relname": "circle_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 436, - "sval": { - "sval": "1abc,3,5", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 44, - "stmt_location": 403, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 462, - "relname": "circle_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 481, - "sval": { - "sval": "(3,(1,2),3)", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 47, - "stmt_location": 448, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 512, - "relname": "circle_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 505, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 505, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 496, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 571, - "relname": "circle_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 532, - "name": "six", - "val": { - "A_Const": { - "location": 532, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 543, - "name": "center", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 550, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "center", - }, - }, - ], - "location": 543, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 58, - "stmt_location": 523, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 630, - "relname": "circle_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 591, - "name": "six", - "val": { - "A_Const": { - "location": 591, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 602, - "name": "radius", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 609, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "radius", - }, - }, - ], - "location": 602, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 58, - "stmt_location": 582, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 693, - "relname": "circle_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 650, - "name": "six", - "val": { - "A_Const": { - "location": 650, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 661, - "name": "diameter", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 670, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "diameter", - }, - }, - ], - "location": 661, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 641, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 732, - "relname": "circle_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 713, - "name": "two", - "val": { - "A_Const": { - "location": 713, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 724, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 724, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 756, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "radius", - }, - }, - ], - "location": 749, - }, - }, - "location": 760, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 762, - }, - }, - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 704, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 793, - "relname": "circle_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 773, - "name": "four", - "val": { - "A_Const": { - "location": 773, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 785, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 785, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 819, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "diameter", - }, - }, - ], - "location": 810, - }, - }, - "location": 823, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 826, - }, - }, - }, - }, - }, - }, - "stmt_len": 64, - "stmt_location": 764, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "c1", - }, - "inh": true, - "location": 915, - "relname": "circle_tbl", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "c2", - }, - "inh": true, - "location": 930, - "relname": "circle_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "distance", - }, - }, - ], - "location": 1007, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1022, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "area", - }, - }, - ], - "location": 1017, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c2", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1035, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "area", - }, - }, - ], - "location": 1030, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 838, - "name": "five", - "val": { - "A_Const": { - "location": 838, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 850, - "name": "one", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 850, - }, - }, - }, - }, - { - "ResTarget": { - "location": 864, - "name": "two", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c2", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 864, - }, - }, - }, - }, - { - "ResTarget": { - "location": 878, - "name": "distance", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 879, - }, - }, - "location": 885, - "name": [ - { - "String": { - "sval": "<->", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c2", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 889, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 953, - }, - }, - "location": 959, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c2", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 961, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 974, - }, - }, - "location": 980, - "name": [ - { - "String": { - "sval": "<->", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c2", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 984, - }, - }, - }, - }, - "location": 991, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 993, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 968, - }, - }, - }, - }, - "stmt_len": 212, - "stmt_location": 829, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/cluster.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 32, - "relname": "clstr_tst_s", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "rf_a", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 57, - }, - }, - ], - "is_local": true, - "location": 45, - "typeName": { - "location": 50, - "names": [ - { - "String": { - "sval": "serial", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 71, - "typeName": { - "location": 73, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 77, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 93, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 113, - }, - }, - ], - "is_local": true, - "location": 104, - "typeName": { - "location": 106, - "names": [ - { - "String": { - "sval": "serial", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 127, - "typeName": { - "location": 129, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c", - "is_local": true, - "location": 135, - "typeName": { - "location": 137, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "d", - "is_local": true, - "location": 144, - "typeName": { - "location": 146, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "conname": "clstr_tst_con", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "b", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 153, - "pktable": { - "inh": true, - "location": 205, - "relname": "clstr_tst_s", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 139, - "stmt_location": 78, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "clstr_tst_b", - "indexParams": [ - { - "IndexElem": { - "name": "b", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 248, - "relname": "clstr_tst", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 43, - "stmt_location": 218, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "clstr_tst_c", - "indexParams": [ - { - "IndexElem": { - "name": "c", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 291, - "relname": "clstr_tst", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 42, - "stmt_location": 262, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "clstr_tst_c_b", - "indexParams": [ - { - "IndexElem": { - "name": "c", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "b", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 336, - "relname": "clstr_tst", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 46, - "stmt_location": 305, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "clstr_tst_b_c", - "indexParams": [ - { - "IndexElem": { - "name": "b", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "c", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 383, - "relname": "clstr_tst", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 46, - "stmt_location": 352, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 426, - "name": "b", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 413, - "relname": "clstr_tst_s", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 437, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 40, - "stmt_location": 399, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 466, - "name": "b", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 453, - "relname": "clstr_tst_s", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 483, - "relname": "clstr_tst_s", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 476, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 476, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 440, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 521, - "name": "b", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 508, - "relname": "clstr_tst_s", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 538, - "relname": "clstr_tst_s", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 531, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 531, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 495, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 576, - "name": "b", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 563, - "relname": "clstr_tst_s", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 593, - "relname": "clstr_tst_s", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 586, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 586, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 550, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 631, - "name": "b", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 618, - "relname": "clstr_tst_s", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 648, - "relname": "clstr_tst_s", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 641, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 641, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 605, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 686, - "name": "b", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 673, - "relname": "clstr_tst_s", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 703, - "relname": "clstr_tst_s", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 696, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 696, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 660, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 757, - "relname": "clstr_tst", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 730, - "relname": "clstr_tst_inh", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 52, - "stmt_location": 715, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 793, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 796, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 782, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 11, - }, - "location": 807, - }, - }, - { - "A_Const": { - "location": 811, - "sval": { - "sval": "once", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 50, - "stmt_location": 768, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 843, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 846, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 832, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 857, - }, - }, - { - "A_Const": { - "location": 861, - "sval": { - "sval": "diez", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 49, - "stmt_location": 819, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 893, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 896, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 882, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 31, - }, - "location": 907, - }, - }, - { - "A_Const": { - "location": 911, - "sval": { - "sval": "treinta y uno", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 58, - "stmt_location": 869, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 952, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 955, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 941, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 22, - }, - "location": 966, - }, - }, - { - "A_Const": { - "location": 970, - "sval": { - "sval": "veintidos", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 928, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1007, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 1010, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 996, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 1021, - }, - }, - { - "A_Const": { - "location": 1024, - "sval": { - "sval": "tres", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 48, - "stmt_location": 983, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1056, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 1059, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1045, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 20, - }, - "location": 1070, - }, - }, - { - "A_Const": { - "location": 1074, - "sval": { - "sval": "veinte", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 51, - "stmt_location": 1032, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1108, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 1111, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1097, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 23, - }, - "location": 1122, - }, - }, - { - "A_Const": { - "location": 1126, - "sval": { - "sval": "veintitres", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 55, - "stmt_location": 1084, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1164, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 1167, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1153, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 21, - }, - "location": 1178, - }, - }, - { - "A_Const": { - "location": 1182, - "sval": { - "sval": "veintiuno", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 1140, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1219, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 1222, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1208, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 1233, - }, - }, - { - "A_Const": { - "location": 1236, - "sval": { - "sval": "cuatro", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 50, - "stmt_location": 1195, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1270, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 1273, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1259, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 14, - }, - "location": 1284, - }, - }, - { - "A_Const": { - "location": 1288, - "sval": { - "sval": "catorce", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 52, - "stmt_location": 1246, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1323, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 1326, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1312, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1337, - }, - }, - { - "A_Const": { - "location": 1340, - "sval": { - "sval": "dos", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 47, - "stmt_location": 1299, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1371, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 1374, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1360, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 18, - }, - "location": 1385, - }, - }, - { - "A_Const": { - "location": 1389, - "sval": { - "sval": "dieciocho", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 1347, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1426, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 1429, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1415, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 27, - }, - "location": 1440, - }, - }, - { - "A_Const": { - "location": 1444, - "sval": { - "sval": "veintisiete", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 56, - "stmt_location": 1402, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1483, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 1486, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1472, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 25, - }, - "location": 1497, - }, - }, - { - "A_Const": { - "location": 1501, - "sval": { - "sval": "veinticinco", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 56, - "stmt_location": 1459, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1540, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 1543, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1529, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 13, - }, - "location": 1554, - }, - }, - { - "A_Const": { - "location": 1558, - "sval": { - "sval": "trece", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 50, - "stmt_location": 1516, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1591, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 1594, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1580, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 28, - }, - "location": 1605, - }, - }, - { - "A_Const": { - "location": 1609, - "sval": { - "sval": "veintiocho", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 55, - "stmt_location": 1567, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1647, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 1650, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1636, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 32, - }, - "location": 1661, - }, - }, - { - "A_Const": { - "location": 1665, - "sval": { - "sval": "treinta y dos", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 58, - "stmt_location": 1623, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1706, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 1709, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1695, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 1720, - }, - }, - { - "A_Const": { - "location": 1723, - "sval": { - "sval": "cinco", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 49, - "stmt_location": 1682, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1756, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 1759, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1745, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 29, - }, - "location": 1770, - }, - }, - { - "A_Const": { - "location": 1774, - "sval": { - "sval": "veintinueve", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 56, - "stmt_location": 1732, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1813, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 1816, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1802, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1827, - }, - }, - { - "A_Const": { - "location": 1830, - "sval": { - "sval": "uno", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 47, - "stmt_location": 1789, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1861, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 1864, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1850, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 24, - }, - "location": 1875, - }, - }, - { - "A_Const": { - "location": 1879, - "sval": { - "sval": "veinticuatro", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 57, - "stmt_location": 1837, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1919, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 1922, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1908, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 30, - }, - "location": 1933, - }, - }, - { - "A_Const": { - "location": 1937, - "sval": { - "sval": "treinta", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 52, - "stmt_location": 1895, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1972, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 1975, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1961, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 12, - }, - "location": 1986, - }, - }, - { - "A_Const": { - "location": 1990, - "sval": { - "sval": "doce", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 49, - "stmt_location": 1948, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2022, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 2025, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2011, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 17, - }, - "location": 2036, - }, - }, - { - "A_Const": { - "location": 2040, - "sval": { - "sval": "diecisiete", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 55, - "stmt_location": 1998, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2078, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 2081, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2067, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 9, - }, - "location": 2092, - }, - }, - { - "A_Const": { - "location": 2095, - "sval": { - "sval": "nueve", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 49, - "stmt_location": 2054, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2128, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 2131, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2117, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 19, - }, - "location": 2142, - }, - }, - { - "A_Const": { - "location": 2146, - "sval": { - "sval": "diecinueve", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 55, - "stmt_location": 2104, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2184, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 2187, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2173, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 26, - }, - "location": 2198, - }, - }, - { - "A_Const": { - "location": 2202, - "sval": { - "sval": "veintiseis", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 55, - "stmt_location": 2160, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2240, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 2243, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2229, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 15, - }, - "location": 2254, - }, - }, - { - "A_Const": { - "location": 2258, - "sval": { - "sval": "quince", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 51, - "stmt_location": 2216, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2292, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 2295, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2281, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 2306, - }, - }, - { - "A_Const": { - "location": 2309, - "sval": { - "sval": "siete", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 49, - "stmt_location": 2268, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2342, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 2345, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2331, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 16, - }, - "location": 2356, - }, - }, - { - "A_Const": { - "location": 2360, - "sval": { - "sval": "dieciseis", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 2318, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2397, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 2400, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2386, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 8, - }, - "location": 2411, - }, - }, - { - "A_Const": { - "location": 2414, - "sval": { - "sval": "ocho", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 48, - "stmt_location": 2373, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2520, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 2523, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 2526, - "name": "d", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2509, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 2537, - }, - }, - { - "A_Const": { - "location": 2540, - "sval": { - "sval": "seis", - }, - }, - }, - { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2555, - "sval": { - "sval": "xyzzy", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 100000, - }, - "location": 2564, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "repeat", - }, - }, - ], - "location": 2548, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 150, - "stmt_location": 2422, - }, - }, - { - "RawStmt": { - "stmt": { - "ClusterStmt": { - "indexname": "clstr_tst_c", - "relation": { - "inh": true, - "location": 2598, - "relname": "clstr_tst", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 34, - "stmt_location": 2573, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2659, - "relname": "clstr_tst", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2617, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2617, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2619, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2619, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2621, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2621, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2623, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - ], - "location": 2633, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": -1, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 30, - }, - "location": 2639, - }, - }, - "location": -1, - "typeName": { - "location": -1, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "substring", - }, - }, - ], - "location": 2623, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2644, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - ], - "location": 2651, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "length", - }, - }, - ], - "location": 2644, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 60, - "stmt_location": 2608, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2719, - "relname": "clstr_tst", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2738, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2677, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2677, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2679, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2679, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2681, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2681, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2683, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - ], - "location": 2693, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": -1, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 30, - }, - "location": 2699, - }, - }, - "location": -1, - "typeName": { - "location": -1, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "substring", - }, - }, - ], - "location": 2683, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2704, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - ], - "location": 2711, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "length", - }, - }, - ], - "location": 2704, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 70, - "stmt_location": 2669, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2790, - "relname": "clstr_tst", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2809, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2748, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2748, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2750, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2750, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2752, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2752, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2754, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - ], - "location": 2764, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": -1, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 30, - }, - "location": 2770, - }, - }, - "location": -1, - "typeName": { - "location": -1, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "substring", - }, - }, - ], - "location": 2754, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2775, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - ], - "location": 2782, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "length", - }, - }, - ], - "location": 2775, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 70, - "stmt_location": 2740, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2861, - "relname": "clstr_tst", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2880, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2819, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2819, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2821, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2821, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2823, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2823, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2825, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - ], - "location": 2835, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": -1, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 30, - }, - "location": 2841, - }, - }, - "location": -1, - "typeName": { - "location": -1, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "substring", - }, - }, - ], - "location": 2825, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2846, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - ], - "location": 2853, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "length", - }, - }, - ], - "location": 2846, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 70, - "stmt_location": 2811, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2940, - "relname": "clstr_tst_inh", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 2962, - }, - }, - { - "A_Const": { - "ival": { - "ival": 100, - }, - "location": 2965, - }, - }, - { - "A_Const": { - "location": 2970, - "sval": { - "sval": "in child table", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 105, - "stmt_location": 2882, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3038, - "relname": "clstr_tst", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2996, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2996, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2998, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2998, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3000, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 3000, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3002, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - ], - "location": 3012, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": -1, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 30, - }, - "location": 3018, - }, - }, - "location": -1, - "typeName": { - "location": -1, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "substring", - }, - }, - ], - "location": 3002, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3023, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - ], - "location": 3030, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "length", - }, - }, - ], - "location": 3023, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 2988, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 3117, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 3120, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3106, - "relname": "clstr_tst", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1111, - }, - "location": 3131, - }, - }, - { - "A_Const": { - "location": 3137, - "sval": { - "sval": "this should fail", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 108, - "stmt_location": 3048, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3179, - "relname": "pg_constraint", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3241, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3166, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "conname", - }, - }, - ], - "location": 3166, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "conrelid", - }, - }, - ], - "location": 3199, - }, - }, - "location": 3208, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3210, - "sval": { - "sval": "clstr_tst", - }, - }, - }, - "location": 3221, - "typeName": { - "location": 3223, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 85, - "stmt_location": 3157, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "c", - }, - "inh": true, - "location": 3351, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3403, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3253, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3253, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3262, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relkind", - }, - }, - ], - "location": 3262, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3275, - "name": "hastoast", - "val": { - "SubLink": { - "location": 3275, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3296, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3289, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3289, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3311, - }, - }, - "location": 3315, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "reltoastrelid", - }, - }, - ], - "location": 3317, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3368, - }, - }, - "location": 3376, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3381, - "sval": { - "sval": "clstr_tst%", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 167, - "stmt_location": 3243, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3489, - "relname": "pg_index", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 3499, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "pg_class_2", - }, - "inh": true, - "location": 3509, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3467, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3467, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3538, - }, - }, - "location": 3550, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "indexrelid", - }, - }, - ], - "location": 3551, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "indrelid", - }, - }, - ], - "location": 3567, - }, - }, - "location": 3575, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class_2", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3576, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class_2", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3596, - }, - }, - "location": 3615, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3617, - "sval": { - "sval": "clstr_tst", - }, - }, - }, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "indisclustered", - }, - }, - ], - "location": 3634, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 3563, - }, - }, - }, - }, - "stmt_len": 237, - "stmt_location": 3411, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "clstr_tst_b_c", - "subtype": "AT_ClusterOn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 3694, - "relname": "clstr_tst", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 79, - "stmt_location": 3649, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3759, - "relname": "pg_index", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 3769, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "pg_class_2", - }, - "inh": true, - "location": 3779, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3737, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3737, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3808, - }, - }, - "location": 3820, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "indexrelid", - }, - }, - ], - "location": 3821, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "indrelid", - }, - }, - ], - "location": 3837, - }, - }, - "location": 3845, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class_2", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3846, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class_2", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3866, - }, - }, - "location": 3885, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3887, - "sval": { - "sval": "clstr_tst", - }, - }, - }, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "indisclustered", - }, - }, - ], - "location": 3904, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 3833, - }, - }, - }, - }, - "stmt_len": 189, - "stmt_location": 3729, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "subtype": "AT_DropCluster", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 3967, - "relname": "clstr_tst", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 77, - "stmt_location": 3919, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4027, - "relname": "pg_index", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 4037, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "pg_class_2", - }, - "inh": true, - "location": 4047, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4005, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 4005, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 4076, - }, - }, - "location": 4088, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "indexrelid", - }, - }, - ], - "location": 4089, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "indrelid", - }, - }, - ], - "location": 4105, - }, - }, - "location": 4113, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class_2", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 4114, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class_2", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 4134, - }, - }, - "location": 4153, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4155, - "sval": { - "sval": "clstr_tst", - }, - }, - }, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "indisclustered", - }, - }, - ], - "location": 4172, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 4101, - }, - }, - }, - }, - "stmt_len": 189, - "stmt_location": 3997, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "role": "clstr_user", - "stmt_type": "ROLESTMT_USER", - }, - }, - "stmt_len": 97, - "stmt_location": 4187, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 4299, - "relname": "clstr_1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 4314, - }, - }, - ], - "is_local": true, - "location": 4308, - "typeName": { - "location": 4310, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 41, - "stmt_location": 4285, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 4341, - "relname": "clstr_2", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 4356, - }, - }, - ], - "is_local": true, - "location": 4350, - "typeName": { - "location": 4352, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 41, - "stmt_location": 4327, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 4383, - "relname": "clstr_3", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 4398, - }, - }, - ], - "is_local": true, - "location": 4392, - "typeName": { - "location": 4394, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 41, - "stmt_location": 4369, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "newowner": { - "location": 4441, - "rolename": "clstr_user", - "roletype": "ROLESPEC_CSTRING", - }, - "subtype": "AT_ChangeOwner", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 4424, - "relname": "clstr_1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 40, - "stmt_location": 4411, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "newowner": { - "location": 4482, - "rolename": "clstr_user", - "roletype": "ROLESPEC_CSTRING", - }, - "subtype": "AT_ChangeOwner", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 4465, - "relname": "clstr_3", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 40, - "stmt_location": 4452, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 4521, - "rolename": "clstr_user", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "RangeVar": { - "inh": true, - "location": 4510, - "relname": "clstr_2", - "relpersistence": "p", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "privileges": [ - { - "AccessPriv": { - "priv_name": "select", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 38, - "stmt_location": 4493, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4545, - "relname": "clstr_1", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4561, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 31, - "stmt_location": 4532, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4577, - "relname": "clstr_1", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4593, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 31, - "stmt_location": 4564, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4609, - "relname": "clstr_2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4625, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 31, - "stmt_location": 4596, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4641, - "relname": "clstr_2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4657, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 31, - "stmt_location": 4628, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4673, - "relname": "clstr_3", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4689, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 31, - "stmt_location": 4660, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4705, - "relname": "clstr_3", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4721, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 31, - "stmt_location": 4692, - }, - }, - { - "RawStmt": { - "stmt": { - "ClusterStmt": { - "relation": { - "inh": true, - "location": 4797, - "relname": "clstr_2", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 80, - "stmt_location": 4724, - }, - }, - { - "RawStmt": { - "stmt": { - "ClusterStmt": { - "indexname": "clstr_1_pkey", - "relation": { - "inh": true, - "location": 4831, - "relname": "clstr_1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 33, - "stmt_location": 4805, - }, - }, - { - "RawStmt": { - "stmt": { - "ClusterStmt": { - "indexname": "clstr_2_pkey", - "relation": { - "inh": true, - "location": 4848, - "relname": "clstr_2", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 35, - "stmt_location": 4839, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "all": true, - "larg": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4890, - "relname": "clstr_1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4883, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4883, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4924, - "relname": "clstr_2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4917, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4917, - }, - }, - }, - }, - ], - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4958, - "relname": "clstr_3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4951, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4951, - }, - }, - }, - }, - ], - }, - }, - }, - "stmt_len": 90, - "stmt_location": 4875, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 5012, - "relname": "clstr_1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 53, - "stmt_location": 4966, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 5033, - "relname": "clstr_2", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 20, - "stmt_location": 5020, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 5054, - "relname": "clstr_3", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 20, - "stmt_location": 5041, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5075, - "relname": "clstr_1", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5091, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 31, - "stmt_location": 5062, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5107, - "relname": "clstr_1", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5123, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 31, - "stmt_location": 5094, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5139, - "relname": "clstr_2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5155, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 31, - "stmt_location": 5126, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5171, - "relname": "clstr_2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5187, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 31, - "stmt_location": 5158, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5203, - "relname": "clstr_3", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5219, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 31, - "stmt_location": 5190, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5235, - "relname": "clstr_3", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5251, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 31, - "stmt_location": 5222, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 5374, - "sval": { - "sval": "clstr_user", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "session_authorization", - }, - }, - "stmt_len": 130, - "stmt_location": 5254, - }, - }, - { - "RawStmt": { - "stmt": { - "ClusterStmt": {}, - }, - "stmt_len": 8, - "stmt_location": 5385, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "all": true, - "larg": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5409, - "relname": "clstr_1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5402, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 5402, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5443, - "relname": "clstr_2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5436, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 5436, - }, - }, - }, - }, - ], - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5477, - "relname": "clstr_3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5470, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 5470, - }, - }, - }, - }, - ], - }, - }, - }, - "stmt_len": 90, - "stmt_location": 5394, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 5569, - "relname": "clstr_1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 91, - "stmt_location": 5485, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5590, - "relname": "clstr_1", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5606, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 31, - "stmt_location": 5577, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5622, - "relname": "clstr_1", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5638, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 31, - "stmt_location": 5609, - }, - }, - { - "RawStmt": { - "stmt": { - "ClusterStmt": { - "relation": { - "inh": true, - "location": 5650, - "relname": "clstr_1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 16, - "stmt_location": 5641, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5673, - "relname": "clstr_1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5666, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 5666, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 5658, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 5806, - "relname": "clustertest", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "key", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 5827, - }, - }, - ], - "is_local": true, - "location": 5819, - "typeName": { - "location": 5823, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 158, - "stmt_location": 5681, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5854, - "relname": "clustertest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 5874, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 37, - "stmt_location": 5840, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5891, - "relname": "clustertest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 20, - }, - "location": 5911, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 36, - "stmt_location": 5878, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5928, - "relname": "clustertest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 30, - }, - "location": 5948, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 36, - "stmt_location": 5915, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5965, - "relname": "clustertest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 40, - }, - "location": 5985, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 36, - "stmt_location": 5952, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 6002, - "relname": "clustertest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 50, - }, - "location": 6022, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 36, - "stmt_location": 5989, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 84, - "stmt_location": 6026, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 6188, - "relname": "clustertest", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 6204, - "name": "key", - "val": { - "A_Const": { - "ival": { - "ival": 100, - }, - "location": 6210, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "key", - }, - }, - ], - "location": 6220, - }, - }, - "location": 6224, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 6226, - }, - }, - }, - }, - }, - }, - "stmt_len": 117, - "stmt_location": 6111, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 6306, - "relname": "clustertest", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 6322, - "name": "key", - "val": { - "A_Const": { - "ival": { - "ival": 35, - }, - "location": 6328, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "key", - }, - }, - ], - "location": 6337, - }, - }, - "location": 6341, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 40, - }, - "location": 6343, - }, - }, - }, - }, - }, - }, - "stmt_len": 116, - "stmt_location": 6229, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 6383, - "relname": "clustertest", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 6399, - "name": "key", - "val": { - "A_Const": { - "ival": { - "ival": 60, - }, - "location": 6405, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "key", - }, - }, - ], - "location": 6414, - }, - }, - "location": 6418, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 50, - }, - "location": 6420, - }, - }, - }, - }, - }, - }, - "stmt_len": 76, - "stmt_location": 6346, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 6431, - "relname": "clustertest", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 6447, - "name": "key", - "val": { - "A_Const": { - "ival": { - "ival": 70, - }, - "location": 6453, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "key", - }, - }, - ], - "location": 6462, - }, - }, - "location": 6466, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 60, - }, - "location": 6468, - }, - }, - }, - }, - }, - }, - "stmt_len": 47, - "stmt_location": 6423, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 6479, - "relname": "clustertest", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 6495, - "name": "key", - "val": { - "A_Const": { - "ival": { - "ival": 80, - }, - "location": 6501, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "key", - }, - }, - ], - "location": 6510, - }, - }, - "location": 6514, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 70, - }, - "location": 6516, - }, - }, - }, - }, - }, - }, - "stmt_len": 47, - "stmt_location": 6471, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6535, - "relname": "clustertest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6528, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 6528, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 6519, - }, - }, - { - "RawStmt": { - "stmt": { - "ClusterStmt": { - "indexname": "clustertest_pkey", - "relation": { - "inh": true, - "location": 6576, - "relname": "clustertest", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 40, - "stmt_location": 6547, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6603, - "relname": "clustertest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6596, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 6596, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 6588, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 8, - "stmt_location": 6615, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6640, - "relname": "clustertest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6633, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 6633, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 6624, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 6715, - "relname": "clstr_temp", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "col1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 6736, - }, - }, - ], - "is_local": true, - "location": 6727, - "typeName": { - "location": 6732, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "col2", - "is_local": true, - "location": 6749, - "typeName": { - "location": 6754, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 107, - "stmt_location": 6652, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 6773, - "relname": "clstr_temp", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6792, - }, - }, - { - "A_Const": { - "location": 6795, - "sval": { - "sval": "two", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6804, - }, - }, - { - "A_Const": { - "location": 6807, - "sval": { - "sval": "one", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 53, - "stmt_location": 6760, - }, - }, - { - "RawStmt": { - "stmt": { - "ClusterStmt": { - "indexname": "clstr_temp_pkey", - "relation": { - "inh": true, - "location": 6823, - "relname": "clstr_temp", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 41, - "stmt_location": 6814, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6871, - "relname": "clstr_temp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6864, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 6864, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 6856, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "clstr_temp", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 22, - "stmt_location": 6882, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "clustertest", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 38, - "stmt_location": 6905, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "clstr_1", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 19, - "stmt_location": 6944, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "clstr_2", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 19, - "stmt_location": 6964, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "clstr_3", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 19, - "stmt_location": 6984, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 7015, - "rolename": "clstr_user", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 21, - "stmt_location": 7004, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/collate.linux.utf8.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 244, - "sval": { - "sval": "utf8", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "client_encoding", - }, - }, - "stmt_len": 248, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 265, - "relname": "collate_test1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 285, - "typeName": { - "location": 287, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "collClause": { - "collname": [ - { - "String": { - "sval": "en_US", - }, - }, - ], - "location": 303, - }, - "colname": "b", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 319, - }, - }, - ], - "is_local": true, - "location": 296, - "typeName": { - "location": 298, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 80, - "stmt_location": 249, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 348, - "relname": "collate_test_fail", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 372, - "typeName": { - "location": 374, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "collClause": { - "collname": [ - { - "String": { - "sval": "ja_JP.eucjp", - }, - }, - ], - "location": 390, - }, - "colname": "b", - "is_local": true, - "location": 383, - "typeName": { - "location": 385, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 83, - "stmt_location": 330, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 429, - "relname": "collate_test_fail", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 453, - "typeName": { - "location": 455, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "collClause": { - "collname": [ - { - "String": { - "sval": "foo", - }, - }, - ], - "location": 471, - }, - "colname": "b", - "is_local": true, - "location": 464, - "typeName": { - "location": 466, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 72, - "stmt_location": 414, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 502, - "relname": "collate_test_fail", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "collClause": { - "collname": [ - { - "String": { - "sval": "en_US", - }, - }, - ], - "location": 532, - }, - "colname": "a", - "is_local": true, - "location": 526, - "typeName": { - "location": 528, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 553, - "typeName": { - "location": 555, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 74, - "stmt_location": 487, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 577, - "relname": "collate_test_like", - "relpersistence": "p", - }, - "tableElts": [ - { - "TableLikeClause": { - "relation": { - "inh": true, - "location": 606, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 562, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 640, - "relname": "collate_test2", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 660, - "typeName": { - "location": 662, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "collClause": { - "collname": [ - { - "String": { - "sval": "sv_SE", - }, - }, - ], - "location": 678, - }, - "colname": "b", - "is_local": true, - "location": 671, - "typeName": { - "location": 673, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 622, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 711, - "relname": "collate_test3", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 731, - "typeName": { - "location": 733, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "collClause": { - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 749, - }, - "colname": "b", - "is_local": true, - "location": 742, - "typeName": { - "location": 744, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 66, - "stmt_location": 696, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 777, - "relname": "collate_test1", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 799, - }, - }, - { - "A_Const": { - "location": 802, - "sval": { - "sval": "abc", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 811, - }, - }, - { - "A_Const": { - "location": 814, - "sval": { - "sval": "äbc", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 824, - }, - }, - { - "A_Const": { - "location": 827, - "sval": { - "sval": "bbc", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 836, - }, - }, - { - "A_Const": { - "location": 839, - "sval": { - "sval": "ABC", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 82, - "stmt_location": 763, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 859, - "relname": "collate_test2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 887, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 880, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 880, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 846, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 914, - "relname": "collate_test3", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 942, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 935, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 935, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 901, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 972, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 965, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 965, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 992, - }, - }, - "location": 994, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 997, - "sval": { - "sval": "bbc", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 956, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1018, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1011, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1011, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1038, - }, - }, - "location": 1040, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1043, - "sval": { - "sval": "bbc", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 45, - "stmt_location": 1003, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1064, - "relname": "collate_test3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1057, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1057, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1084, - }, - }, - "location": 1086, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1089, - "sval": { - "sval": "bbc", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 45, - "stmt_location": 1049, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1110, - "relname": "collate_test3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1103, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1103, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1130, - }, - }, - "location": 1132, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1135, - "sval": { - "sval": "BBC", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 45, - "stmt_location": 1095, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1157, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1150, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1150, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1177, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 1179, - }, - }, - "location": 1191, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1194, - "sval": { - "sval": "bbc", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 58, - "stmt_location": 1141, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1215, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1208, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1208, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1235, - }, - }, - "location": 1237, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "CollateClause": { - "arg": { - "A_Const": { - "location": 1240, - "sval": { - "sval": "bbc", - }, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 1246, - }, - }, - }, - }, - }, - }, - "stmt_len": 57, - "stmt_location": 1200, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1273, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1266, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1266, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1293, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 1295, - }, - }, - "location": 1307, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "CollateClause": { - "arg": { - "A_Const": { - "location": 1310, - "sval": { - "sval": "bbc", - }, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 1316, - }, - }, - }, - }, - }, - }, - "stmt_len": 69, - "stmt_location": 1258, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1343, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1336, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1336, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1363, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 1365, - }, - }, - "location": 1377, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "CollateClause": { - "arg": { - "A_Const": { - "location": 1380, - "sval": { - "sval": "bbc", - }, - }, - }, - "collname": [ - { - "String": { - "sval": "en_US", - }, - }, - ], - "location": 1386, - }, - }, - }, - }, - }, - }, - "stmt_len": 73, - "stmt_location": 1328, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "collClause": { - "collname": [ - { - "String": { - "sval": "sv_SE", - }, - }, - ], - "location": 1441, - }, - "domainname": [ - { - "String": { - "sval": "testdomain_sv", - }, - }, - ], - "typeName": { - "location": 1436, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 1402, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "collClause": { - "collname": [ - { - "String": { - "sval": "sv_SE", - }, - }, - ], - "location": 1492, - }, - "domainname": [ - { - "String": { - "sval": "testdomain_i", - }, - }, - ], - "typeName": { - "location": 1488, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 50, - "stmt_location": 1457, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1531, - "relname": "collate_test4", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 1551, - "typeName": { - "location": 1553, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 1562, - "typeName": { - "location": 1564, - "names": [ - { - "String": { - "sval": "testdomain_sv", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 71, - "stmt_location": 1508, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1593, - "relname": "collate_test4", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1621, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1614, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1614, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 1580, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1653, - "relname": "collate_test4", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1676, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1643, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1643, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1646, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1646, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 1635, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1693, - "relname": "collate_test5", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 1713, - "typeName": { - "location": 1715, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "collClause": { - "collname": [ - { - "String": { - "sval": "en_US", - }, - }, - ], - "location": 1740, - }, - "colname": "b", - "is_local": true, - "location": 1724, - "typeName": { - "location": 1726, - "names": [ - { - "String": { - "sval": "testdomain_sv", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 79, - "stmt_location": 1678, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1771, - "relname": "collate_test5", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1799, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1792, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1792, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 1758, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1831, - "relname": "collate_test5", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1854, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1821, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1821, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1824, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1824, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 1813, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1876, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1899, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1866, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1866, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1869, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1869, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 1856, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1919, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1942, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1909, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1909, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1912, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1912, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 1901, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1962, - "relname": "collate_test3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1985, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1952, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1952, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1955, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1955, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 1944, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2006, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2029, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 2031, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1996, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1996, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1999, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1999, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 55, - "stmt_location": 1987, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2077, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2100, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2070, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2070, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 58, - "stmt_location": 2043, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2117, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2140, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2110, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2110, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 2102, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2157, - "relname": "collate_test3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2180, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2150, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2150, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 2142, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2222, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "CollateClause": { - "arg": { - "A_Const": { - "location": 2222, - "sval": { - "sval": "bbc", - }, - }, - }, - "collname": [ - { - "String": { - "sval": "en_US", - }, - }, - ], - "location": 2228, - }, - }, - "location": 2244, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "CollateClause": { - "arg": { - "A_Const": { - "location": 2246, - "sval": { - "sval": "äbc", - }, - }, - }, - "collname": [ - { - "String": { - "sval": "en_US", - }, - }, - ], - "location": 2253, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 96, - "stmt_location": 2182, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2287, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "CollateClause": { - "arg": { - "A_Const": { - "location": 2287, - "sval": { - "sval": "bbc", - }, - }, - }, - "collname": [ - { - "String": { - "sval": "sv_SE", - }, - }, - ], - "location": 2293, - }, - }, - "location": 2309, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "CollateClause": { - "arg": { - "A_Const": { - "location": 2311, - "sval": { - "sval": "äbc", - }, - }, - }, - "collname": [ - { - "String": { - "sval": "sv_SE", - }, - }, - ], - "location": 2318, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 65, - "stmt_location": 2279, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 2376, - "relname": "collate_test10", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 2397, - "typeName": { - "location": 2399, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "collClause": { - "collname": [ - { - "String": { - "sval": "en_US", - }, - }, - ], - "location": 2415, - }, - "colname": "x", - "is_local": true, - "location": 2408, - "typeName": { - "location": 2410, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "collClause": { - "collname": [ - { - "String": { - "sval": "tr_TR", - }, - }, - ], - "location": 2443, - }, - "colname": "y", - "is_local": true, - "location": 2436, - "typeName": { - "location": 2438, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 115, - "stmt_location": 2345, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2475, - "relname": "collate_test10", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2498, - }, - }, - { - "A_Const": { - "location": 2501, - "sval": { - "sval": "hij", - }, - }, - }, - { - "A_Const": { - "location": 2508, - "sval": { - "sval": "hij", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2517, - }, - }, - { - "A_Const": { - "location": 2520, - "sval": { - "sval": "HIJ", - }, - }, - }, - { - "A_Const": { - "location": 2527, - "sval": { - "sval": "HIJ", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 72, - "stmt_location": 2461, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2614, - "relname": "collate_test10", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2543, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2543, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2546, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 2552, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 2546, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2556, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 2562, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 2556, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2566, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 2572, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "upper", - }, - }, - ], - "location": 2566, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2576, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 2582, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "upper", - }, - }, - ], - "location": 2576, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2586, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 2594, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "initcap", - }, - }, - ], - "location": 2586, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2598, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 2606, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "initcap", - }, - }, - ], - "location": 2598, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 94, - "stmt_location": 2534, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2688, - "relname": "collate_test10", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2637, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2637, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2640, - "val": { - "FuncCall": { - "args": [ - { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 2646, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 2648, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 2640, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2662, - "val": { - "FuncCall": { - "args": [ - { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 2668, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 2670, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 2662, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 2629, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2725, - "relname": "collate_test10", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 2755, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 2749, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2759, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2712, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2712, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2715, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 2715, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2718, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 2718, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 2703, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2792, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2785, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2785, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2812, - }, - }, - "location": 2814, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2819, - "sval": { - "sval": "abc", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 63, - "stmt_location": 2761, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2840, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2833, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2833, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2860, - }, - }, - "location": 2862, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2867, - "sval": { - "sval": "abc%", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 48, - "stmt_location": 2825, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2889, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2882, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2882, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2909, - }, - }, - "location": 2911, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2916, - "sval": { - "sval": "%bc%", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 48, - "stmt_location": 2874, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2938, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2931, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2931, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_ILIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2958, - }, - }, - "location": 2960, - "name": [ - { - "String": { - "sval": "~~*", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2966, - "sval": { - "sval": "abc", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 48, - "stmt_location": 2923, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2987, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2980, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2980, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_ILIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3007, - }, - }, - "location": 3009, - "name": [ - { - "String": { - "sval": "~~*", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3015, - "sval": { - "sval": "abc%", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 49, - "stmt_location": 2972, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3037, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3030, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3030, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_ILIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3057, - }, - }, - "location": 3059, - "name": [ - { - "String": { - "sval": "~~*", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3065, - "sval": { - "sval": "%bc%", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 49, - "stmt_location": 3022, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3081, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_ILIKE", - "lexpr": { - "CollateClause": { - "arg": { - "A_Const": { - "location": 3081, - "sval": { - "sval": "Türkiye", - }, - }, - }, - "collname": [ - { - "String": { - "sval": "en_US", - }, - }, - ], - "location": 3092, - }, - }, - "location": 3108, - "name": [ - { - "String": { - "sval": "~~*", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3114, - "sval": { - "sval": "%KI%", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 58, - "stmt_location": 3072, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3139, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_ILIKE", - "lexpr": { - "CollateClause": { - "arg": { - "A_Const": { - "location": 3139, - "sval": { - "sval": "Türkiye", - }, - }, - }, - "collname": [ - { - "String": { - "sval": "tr_TR", - }, - }, - ], - "location": 3150, - }, - }, - "location": 3166, - "name": [ - { - "String": { - "sval": "~~*", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3172, - "sval": { - "sval": "%KI%", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 58, - "stmt_location": 3131, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3199, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_ILIKE", - "lexpr": { - "A_Const": { - "location": 3199, - "sval": { - "sval": "bıt", - }, - }, - }, - "location": 3206, - "name": [ - { - "String": { - "sval": "~~*", - }, - }, - ], - "rexpr": { - "CollateClause": { - "arg": { - "A_Const": { - "location": 3212, - "sval": { - "sval": "BIT", - }, - }, - }, - "collname": [ - { - "String": { - "sval": "en_US", - }, - }, - ], - "location": 3218, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 3190, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3253, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_ILIKE", - "lexpr": { - "A_Const": { - "location": 3253, - "sval": { - "sval": "bıt", - }, - }, - }, - "location": 3260, - "name": [ - { - "String": { - "sval": "~~*", - }, - }, - ], - "rexpr": { - "CollateClause": { - "arg": { - "A_Const": { - "location": 3266, - "sval": { - "sval": "BIT", - }, - }, - }, - "collname": [ - { - "String": { - "sval": "tr_TR", - }, - }, - ], - "location": 3272, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 3245, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3394, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3381, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3381, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_ILIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3409, - }, - }, - "location": 3417, - "name": [ - { - "String": { - "sval": "~~*", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3423, - "sval": { - "sval": "abc%", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 131, - "stmt_location": 3298, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3470, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3463, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3463, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3490, - }, - }, - "location": 3492, - "name": [ - { - "String": { - "sval": "~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3494, - "sval": { - "sval": "^abc$", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 71, - "stmt_location": 3430, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3517, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3510, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3510, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3537, - }, - }, - "location": 3539, - "name": [ - { - "String": { - "sval": "~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3541, - "sval": { - "sval": "^abc", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 45, - "stmt_location": 3502, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3563, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3556, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3556, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3583, - }, - }, - "location": 3585, - "name": [ - { - "String": { - "sval": "~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3587, - "sval": { - "sval": "bc", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 3548, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3607, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3600, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3600, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3627, - }, - }, - "location": 3629, - "name": [ - { - "String": { - "sval": "~*", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3632, - "sval": { - "sval": "^abc$", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 47, - "stmt_location": 3592, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3655, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3648, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3648, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3675, - }, - }, - "location": 3677, - "name": [ - { - "String": { - "sval": "~*", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3680, - "sval": { - "sval": "^abc", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 3640, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3702, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3695, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3695, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3722, - }, - }, - "location": 3724, - "name": [ - { - "String": { - "sval": "~*", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3727, - "sval": { - "sval": "bc", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 44, - "stmt_location": 3687, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3741, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "CollateClause": { - "arg": { - "A_Const": { - "location": 3741, - "sval": { - "sval": "Türkiye", - }, - }, - }, - "collname": [ - { - "String": { - "sval": "en_US", - }, - }, - ], - "location": 3752, - }, - }, - "location": 3768, - "name": [ - { - "String": { - "sval": "~*", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3771, - "sval": { - "sval": "KI", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 3732, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3794, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "CollateClause": { - "arg": { - "A_Const": { - "location": 3794, - "sval": { - "sval": "Türkiye", - }, - }, - }, - "collname": [ - { - "String": { - "sval": "tr_TR", - }, - }, - ], - "location": 3805, - }, - }, - "location": 3821, - "name": [ - { - "String": { - "sval": "~*", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3824, - "sval": { - "sval": "KI", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 3786, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3849, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "location": 3849, - "sval": { - "sval": "bıt", - }, - }, - }, - "location": 3856, - "name": [ - { - "String": { - "sval": "~*", - }, - }, - ], - "rexpr": { - "CollateClause": { - "arg": { - "A_Const": { - "location": 3859, - "sval": { - "sval": "BIT", - }, - }, - }, - "collname": [ - { - "String": { - "sval": "en_US", - }, - }, - ], - "location": 3865, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 3840, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3900, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "location": 3900, - "sval": { - "sval": "bıt", - }, - }, - }, - "location": 3907, - "name": [ - { - "String": { - "sval": "~*", - }, - }, - ], - "rexpr": { - "CollateClause": { - "arg": { - "A_Const": { - "location": 3910, - "sval": { - "sval": "BIT", - }, - }, - }, - "collname": [ - { - "String": { - "sval": "tr_TR", - }, - }, - ], - "location": 3916, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 49, - "stmt_location": 3892, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4035, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4022, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 4022, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 4050, - }, - }, - "location": 4058, - "name": [ - { - "String": { - "sval": "~*", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4061, - "sval": { - "sval": "^abc", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 125, - "stmt_location": 3942, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 4098, - "sval": { - "sval": "tr_TR", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "lc_time", - }, - }, - "stmt_len": 37, - "stmt_location": 4068, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4114, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4127, - "sval": { - "sval": "2010-04-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4122, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 4141, - "sval": { - "sval": "DD TMMON YYYY", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_char", - }, - }, - ], - "location": 4114, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 4106, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4166, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4179, - "sval": { - "sval": "2010-04-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4174, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "CollateClause": { - "arg": { - "A_Const": { - "location": 4193, - "sval": { - "sval": "DD TMMON YYYY", - }, - }, - }, - "collname": [ - { - "String": { - "sval": "tr_TR", - }, - }, - ], - "location": 4209, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_char", - }, - }, - ], - "location": 4166, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 67, - "stmt_location": 4158, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4290, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4283, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4283, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4310, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 4312, - }, - }, - "location": 4324, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4327, - "sval": { - "sval": "bbc", - }, - }, - }, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 4263, - "relname": "collview1", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 106, - "stmt_location": 4226, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4376, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4399, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 4401, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 4366, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4366, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4369, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4369, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 4346, - "relname": "collview2", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 79, - "stmt_location": 4333, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4482, - "relname": "collate_test10", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4446, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4446, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4449, - "val": { - "FuncCall": { - "args": [ - { - "CollateClause": { - "arg": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 4456, - }, - }, - "location": 4458, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 4461, - }, - }, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 4464, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 4449, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 4426, - "relname": "collview3", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 83, - "stmt_location": 4413, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4539, - "relname": "views", - "relpersistence": "p", - "schemaname": "information_schema", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4609, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 4506, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "table_name", - }, - }, - ], - "location": 4506, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4518, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "view_definition", - }, - }, - ], - "location": 4518, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "table_name", - }, - }, - ], - "location": 4572, - }, - }, - "location": 4583, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4588, - "sval": { - "sval": "collview%", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 113, - "stmt_location": 4497, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4702, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4725, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 4675, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4675, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4678, - "val": { - "CoalesceExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4687, - }, - }, - { - "A_Const": { - "location": 4690, - "sval": { - "sval": "foo", - }, - }, - }, - ], - "location": 4678, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 115, - "stmt_location": 4611, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4762, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4785, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 4735, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4735, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4738, - "val": { - "CoalesceExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4747, - }, - }, - { - "A_Const": { - "location": 4750, - "sval": { - "sval": "foo", - }, - }, - }, - ], - "location": 4738, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 4727, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4822, - "relname": "collate_test3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4845, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 4795, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4795, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4798, - "val": { - "CoalesceExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4807, - }, - }, - { - "A_Const": { - "location": 4810, - "sval": { - "sval": "foo", - }, - }, - }, - ], - "location": 4798, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 4787, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4916, - "relname": "collate_test10", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4855, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4855, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4858, - "val": { - "FuncCall": { - "args": [ - { - "CoalesceExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 4873, - }, - }, - { - "A_Const": { - "location": 4876, - "sval": { - "sval": "foo", - }, - }, - }, - ], - "location": 4864, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 4858, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4885, - "val": { - "FuncCall": { - "args": [ - { - "CoalesceExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 4900, - }, - }, - { - "A_Const": { - "location": 4903, - "sval": { - "sval": "foo", - }, - }, - }, - ], - "location": 4891, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 4885, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 83, - "stmt_location": 4847, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4970, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 4993, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 4940, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4940, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4943, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4943, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4946, - "val": { - "MinMaxExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4955, - }, - }, - { - "A_Const": { - "location": 4958, - "sval": { - "sval": "CCC", - }, - }, - }, - ], - "location": 4946, - "op": "IS_GREATEST", - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 4931, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5033, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 5056, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 5003, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5003, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5006, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5006, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5009, - "val": { - "MinMaxExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5018, - }, - }, - { - "A_Const": { - "location": 5021, - "sval": { - "sval": "CCC", - }, - }, - }, - ], - "location": 5009, - "op": "IS_GREATEST", - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 4995, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5096, - "relname": "collate_test3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 5119, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 5066, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5066, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5069, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5069, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5072, - "val": { - "MinMaxExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5081, - }, - }, - { - "A_Const": { - "location": 5084, - "sval": { - "sval": "CCC", - }, - }, - }, - ], - "location": 5072, - "op": "IS_GREATEST", - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 5058, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5196, - "relname": "collate_test10", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5129, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5129, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5132, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 5132, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5135, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 5135, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5138, - "val": { - "FuncCall": { - "args": [ - { - "MinMaxExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 5153, - }, - }, - { - "A_Const": { - "location": 5156, - "sval": { - "sval": "foo", - }, - }, - }, - ], - "location": 5144, - "op": "IS_GREATEST", - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 5138, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5165, - "val": { - "FuncCall": { - "args": [ - { - "MinMaxExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 5180, - }, - }, - { - "A_Const": { - "location": 5183, - "sval": { - "sval": "foo", - }, - }, - }, - ], - "location": 5171, - "op": "IS_GREATEST", - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 5165, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 89, - "stmt_location": 5121, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5245, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5268, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 5220, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5220, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5223, - "val": { - "A_Expr": { - "kind": "AEXPR_NULLIF", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5230, - }, - }, - "location": 5223, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 5233, - "sval": { - "sval": "abc", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 58, - "stmt_location": 5211, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5303, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5326, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 5278, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5278, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5281, - "val": { - "A_Expr": { - "kind": "AEXPR_NULLIF", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5288, - }, - }, - "location": 5281, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 5291, - "sval": { - "sval": "abc", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 5270, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5361, - "relname": "collate_test3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5384, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 5336, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5336, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5339, - "val": { - "A_Expr": { - "kind": "AEXPR_NULLIF", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5346, - }, - }, - "location": 5339, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 5349, - "sval": { - "sval": "abc", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 5328, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5451, - "relname": "collate_test10", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5394, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5394, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5397, - "val": { - "FuncCall": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_NULLIF", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 5410, - }, - }, - "location": 5403, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 5413, - "sval": { - "sval": "foo", - }, - }, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 5397, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5422, - "val": { - "FuncCall": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_NULLIF", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 5435, - }, - }, - "location": 5428, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 5438, - "sval": { - "sval": "foo", - }, - }, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 5422, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 79, - "stmt_location": 5386, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5524, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5547, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 5475, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5475, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5478, - "val": { - "CaseExpr": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5483, - }, - }, - "args": [ - { - "CaseWhen": { - "expr": { - "A_Const": { - "location": 5490, - "sval": { - "sval": "abc", - }, - }, - }, - "location": 5485, - "result": { - "A_Const": { - "location": 5501, - "sval": { - "sval": "abcd", - }, - }, - }, - }, - }, - ], - "defresult": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5513, - }, - }, - "location": 5478, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 82, - "stmt_location": 5466, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5606, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5629, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 5557, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5557, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5560, - "val": { - "CaseExpr": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5565, - }, - }, - "args": [ - { - "CaseWhen": { - "expr": { - "A_Const": { - "location": 5572, - "sval": { - "sval": "abc", - }, - }, - }, - "location": 5567, - "result": { - "A_Const": { - "location": 5583, - "sval": { - "sval": "abcd", - }, - }, - }, - }, - }, - ], - "defresult": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5595, - }, - }, - "location": 5560, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 81, - "stmt_location": 5549, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5688, - "relname": "collate_test3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5711, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 5639, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5639, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5642, - "val": { - "CaseExpr": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5647, - }, - }, - "args": [ - { - "CaseWhen": { - "expr": { - "A_Const": { - "location": 5654, - "sval": { - "sval": "abc", - }, - }, - }, - "location": 5649, - "result": { - "A_Const": { - "location": 5665, - "sval": { - "sval": "abcd", - }, - }, - }, - }, - }, - ], - "defresult": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5677, - }, - }, - "location": 5642, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 81, - "stmt_location": 5631, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "domainname": [ - { - "String": { - "sval": "testdomain", - }, - }, - ], - "typeName": { - "location": 5743, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 34, - "stmt_location": 5713, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5778, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5801, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 5756, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5756, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5759, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5759, - }, - }, - "location": 5760, - "typeName": { - "location": 5762, - "names": [ - { - "String": { - "sval": "testdomain", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 5748, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5833, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5856, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 5811, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5811, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5814, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5814, - }, - }, - "location": 5815, - "typeName": { - "location": 5817, - "names": [ - { - "String": { - "sval": "testdomain", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 5803, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5888, - "relname": "collate_test3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5911, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 5866, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5866, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5869, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5869, - }, - }, - "location": 5870, - "typeName": { - "location": 5872, - "names": [ - { - "String": { - "sval": "testdomain", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 5858, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5946, - "relname": "collate_test3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5969, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 5921, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5921, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5924, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5924, - }, - }, - "location": 5925, - "typeName": { - "location": 5927, - "names": [ - { - "String": { - "sval": "testdomain_sv", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 5913, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6030, - "relname": "collate_test10", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5979, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5979, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5982, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 5988, - }, - }, - "location": 5989, - "typeName": { - "location": 5991, - "names": [ - { - "String": { - "sval": "testdomain", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 5982, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6004, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 6010, - }, - }, - "location": 6011, - "typeName": { - "location": 6013, - "names": [ - { - "String": { - "sval": "testdomain", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 6004, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 5971, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6074, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6054, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6058, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 6054, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6062, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6066, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 6062, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 6045, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6116, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6096, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6100, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 6096, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6104, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6108, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 6104, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 41, - "stmt_location": 6088, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6158, - "relname": "collate_test3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6138, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6142, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 6138, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6146, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6150, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 6146, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 41, - "stmt_location": 6130, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6210, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6181, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6202, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6191, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_agg", - }, - }, - ], - "location": 6181, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 6172, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6261, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6232, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6253, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6242, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_agg", - }, - }, - ], - "location": 6232, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 50, - "stmt_location": 6224, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6312, - "relname": "collate_test3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6283, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6304, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6293, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_agg", - }, - }, - ], - "location": 6283, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 50, - "stmt_location": 6275, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6345, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6335, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6335, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6338, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6338, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6386, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6376, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6376, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6379, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6379, - }, - }, - }, - }, - ], - }, - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6409, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - }, - }, - "stmt_len": 84, - "stmt_location": 6326, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6429, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6419, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6419, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6422, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6422, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6466, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6456, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6456, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6459, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6459, - }, - }, - }, - }, - ], - }, - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6489, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - }, - }, - "stmt_len": 79, - "stmt_location": 6411, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6509, - "relname": "collate_test3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6499, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6499, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6502, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6502, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6529, - }, - }, - "location": 6531, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 6533, - }, - }, - }, - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_INTERSECT", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6562, - "relname": "collate_test3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6552, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6552, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6555, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6555, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6582, - }, - }, - "location": 6584, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6586, - }, - }, - }, - }, - }, - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6597, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - }, - }, - "stmt_len": 107, - "stmt_location": 6491, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6617, - "relname": "collate_test3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6607, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6607, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6610, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6610, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_EXCEPT", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6655, - "relname": "collate_test3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6645, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6645, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6648, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6648, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6675, - }, - }, - "location": 6677, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6679, - }, - }, - }, - }, - }, - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6690, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - }, - }, - "stmt_len": 92, - "stmt_location": 6599, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6711, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6701, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6701, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6704, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6704, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6752, - "relname": "collate_test3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6742, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6742, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6745, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6745, - }, - }, - }, - }, - ], - }, - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6775, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - }, - }, - "stmt_len": 84, - "stmt_location": 6692, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6803, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6793, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6793, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6796, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6796, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6844, - "relname": "collate_test3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6834, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6834, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6837, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6837, - }, - }, - }, - }, - ], - }, - }, - }, - "stmt_len": 80, - "stmt_location": 6777, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6882, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6872, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6872, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6875, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6875, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6919, - "relname": "collate_test3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6909, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6909, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6912, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6912, - }, - }, - }, - }, - ], - }, - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6942, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - }, - }, - "stmt_len": 85, - "stmt_location": 6858, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6982, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6960, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6960, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6963, - "val": { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6963, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 6965, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7019, - "relname": "collate_test3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7009, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 7009, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7012, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 7012, - }, - }, - }, - }, - ], - }, - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 7042, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - }, - }, - "stmt_len": 99, - "stmt_location": 6944, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7068, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7058, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 7058, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7061, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 7061, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_INTERSECT", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7109, - "relname": "collate_test3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7099, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 7099, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7102, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 7102, - }, - }, - }, - }, - ], - }, - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 7132, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - }, - }, - "stmt_len": 89, - "stmt_location": 7044, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7160, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7150, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 7150, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7153, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 7153, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_EXCEPT", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7198, - "relname": "collate_test3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7188, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 7188, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7191, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 7191, - }, - }, - }, - }, - ], - }, - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 7221, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - }, - }, - "stmt_len": 88, - "stmt_location": 7134, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateTableAsStmt": { - "into": { - "onCommit": "ONCOMMIT_NOOP", - "rel": { - "inh": true, - "location": 7246, - "relname": "test_u", - "relpersistence": "p", - }, - }, - "objtype": "OBJECT_TABLE", - "query": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7273, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7263, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 7263, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7266, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 7266, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7314, - "relname": "collate_test3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7304, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 7304, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7307, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 7307, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - "stmt_len": 104, - "stmt_location": 7223, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7434, - "relname": "collate_test10", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7423, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 7423, - }, - }, - "location": 7425, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 7427, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 120, - "stmt_location": 7328, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7477, - "relname": "collate_test10", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7465, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 7465, - }, - }, - "location": 7467, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 7470, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 7449, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7551, - "relname": "collate_test10", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 7575, - }, - }, - "location": 7577, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 7580, - }, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 7541, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 7541, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7544, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 7544, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 89, - "stmt_location": 7492, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7839, - "relname": "foo", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7832, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 7832, - }, - }, - }, - }, - ], - "withClause": { - "ctes": [ - { - "CommonTableExpr": { - "aliascolnames": [ - { - "String": { - "sval": "x", - }, - }, - ], - "ctematerialized": "CTEMaterializeDefault", - "ctename": "foo", - "ctequery": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "t", - "colnames": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "CollateClause": { - "arg": { - "A_Const": { - "location": 7711, - "sval": { - "sval": "a", - }, - }, - }, - "collname": [ - { - "String": { - "sval": "en_US", - }, - }, - ], - "location": 7715, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 7733, - "sval": { - "sval": "b", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7696, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 7696, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7799, - "relname": "foo", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7767, - "val": { - "CollateClause": { - "arg": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 7768, - }, - }, - "location": 7770, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 7773, - "sval": { - "sval": "c", - }, - }, - }, - }, - }, - "collname": [ - { - "String": { - "sval": "de_DE", - }, - }, - ], - "location": 7778, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 7816, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "length", - }, - }, - ], - "location": 7809, - }, - }, - "location": 7819, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 7821, - }, - }, - }, - }, - }, - }, - }, - "location": 7675, - }, - }, - ], - "location": 7660, - "recursive": true, - }, - }, - }, - "stmt_len": 260, - "stmt_location": 7582, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7935, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 7958, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 7908, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 7908, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7911, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 7916, - }, - }, - "location": 7911, - "typeName": { - "location": 7921, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 116, - "stmt_location": 7843, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7995, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 8018, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 7968, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 7968, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7971, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 7976, - }, - }, - "location": 7971, - "typeName": { - "location": 7981, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 7960, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8055, - "relname": "collate_test3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 8078, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 8028, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 8028, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8031, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 8036, - }, - }, - "location": 8031, - "typeName": { - "location": 8041, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 8020, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "mylt", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 8240, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " select $1 < $2 ", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 8257, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 8212, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 8218, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 8232, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 200, - "stmt_location": 8080, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "mylt_noninline", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 8343, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " select $1 < $2 limit 1 ", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 8360, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 8315, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 8321, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 8335, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 110, - "stmt_location": 8281, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "mylt_plpgsql", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 8452, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " begin return $1 < $2; end ", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 8473, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 8424, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 8430, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 8444, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 115, - "stmt_location": 8392, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 8631, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 8648, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 8673, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 8678, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 8517, - "name": "a", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 8517, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8527, - "name": "b", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 8527, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8537, - "name": "lt", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 8537, - }, - }, - "location": 8541, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 8543, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8561, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 8566, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 8571, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "mylt", - }, - }, - ], - "location": 8561, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8577, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 8592, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 8597, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "mylt_noninline", - }, - }, - ], - "location": 8577, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8603, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 8616, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 8621, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "mylt_plpgsql", - }, - }, - ], - "location": 8603, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 173, - "stmt_location": 8508, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 8860, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 8877, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 8902, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 8907, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 8691, - "name": "a", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 8691, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8701, - "name": "b", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 8701, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8711, - "name": "lt", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 8711, - }, - }, - "location": 8715, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 8717, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 8721, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8747, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 8752, - }, - }, - { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 8757, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 8761, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "mylt", - }, - }, - ], - "location": 8747, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8775, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 8790, - }, - }, - { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 8795, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 8799, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "mylt_noninline", - }, - }, - ], - "location": 8775, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8820, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 8833, - }, - }, - { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 8838, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 8842, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "mylt_plpgsql", - }, - }, - ], - "location": 8820, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 228, - "stmt_location": 8682, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "mylt2", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 9003, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -declare - xx text := x; - yy text := y; -begin - return xx < yy; -end -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 9020, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 8973, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "x", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 8981, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "y", - }, - }, - ], - "returnType": { - "location": 8995, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 185, - "stmt_location": 8911, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9106, - "name": "t", - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 9112, - "sval": { - "sval": "a", - }, - }, - }, - { - "CollateClause": { - "arg": { - "A_Const": { - "location": 9117, - "sval": { - "sval": "B", - }, - }, - }, - "collname": [ - { - "String": { - "sval": "en_US", - }, - }, - ], - "location": 9121, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "mylt2", - }, - }, - ], - "location": 9106, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9144, - "name": "f", - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 9150, - "sval": { - "sval": "a", - }, - }, - }, - { - "CollateClause": { - "arg": { - "A_Const": { - "location": 9155, - "sval": { - "sval": "B", - }, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 9159, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "mylt2", - }, - }, - ], - "location": 9144, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 79, - "stmt_location": 9097, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "mylt2", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 9247, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -declare - xx text COLLATE "POSIX" := x; - yy text := y; -begin - return xx < yy; -end -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 9264, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 9217, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "x", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 9225, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "y", - }, - }, - ], - "replace": true, - "returnType": { - "location": 9239, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 179, - "stmt_location": 9177, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9366, - "name": "f", - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 9372, - "sval": { - "sval": "a", - }, - }, - }, - { - "A_Const": { - "location": 9377, - "sval": { - "sval": "B", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "mylt2", - }, - }, - ], - "location": 9366, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 29, - "stmt_location": 9357, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9395, - "name": "fail", - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 9401, - "sval": { - "sval": "a", - }, - }, - }, - { - "CollateClause": { - "arg": { - "A_Const": { - "location": 9406, - "sval": { - "sval": "B", - }, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 9410, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "mylt2", - }, - }, - ], - "location": 9395, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 43, - "stmt_location": 9387, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9465, - "name": "f", - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 9471, - "sval": { - "sval": "a", - }, - }, - }, - { - "CollateClause": { - "arg": { - "A_Const": { - "location": 9476, - "sval": { - "sval": "B", - }, - }, - }, - "collname": [ - { - "String": { - "sval": "POSIX", - }, - }, - ], - "location": 9480, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "mylt2", - }, - }, - ], - "location": 9465, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 70, - "stmt_location": 9431, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "SubLink": { - "location": 9543, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 9580, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9551, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 9572, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 9561, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_agg", - }, - }, - ], - "location": 9551, - }, - }, - }, - }, - ], - }, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "unnest", - }, - }, - ], - "location": 9536, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 9605, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 9529, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 9529, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 104, - "stmt_location": 9502, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "SubLink": { - "location": 9629, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 9666, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9637, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 9658, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 9647, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_agg", - }, - }, - ], - "location": 9637, - }, - }, - }, - }, - ], - }, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "unnest", - }, - }, - ], - "location": 9622, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 9691, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 9615, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 9615, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 85, - "stmt_location": 9607, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "SubLink": { - "location": 9715, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 9752, - "relname": "collate_test3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9723, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 9744, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 9733, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_agg", - }, - }, - ], - "location": 9723, - }, - }, - }, - }, - ], - }, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "unnest", - }, - }, - ], - "location": 9708, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 9777, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 9701, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 9701, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 85, - "stmt_location": 9693, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "dup", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "select $1", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 9837, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 9852, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 9802, - "names": [ - { - "String": { - "sval": "anyelement", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 9822, - "names": [ - { - "String": { - "sval": "anyelement", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 85, - "stmt_location": 9779, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 9889, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 9912, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 9874, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 9874, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9877, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 9881, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "dup", - }, - }, - ], - "location": 9877, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 48, - "stmt_location": 9865, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 9937, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 9960, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 9922, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 9922, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9925, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 9929, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "dup", - }, - }, - ], - "location": 9925, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 9914, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 9985, - "relname": "collate_test3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 10008, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 9970, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 9970, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9973, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 9977, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "dup", - }, - }, - ], - "location": 9973, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 9962, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "collate_test1_idx1", - "indexParams": [ - { - "IndexElem": { - "name": "b", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 10060, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 67, - "stmt_location": 10010, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "collate_test1_idx2", - "indexParams": [ - { - "IndexElem": { - "collation": [ - { - "String": { - "sval": "C", - }, - }, - ], - "name": "b", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 10114, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 65, - "stmt_location": 10078, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "collate_test1_idx3", - "indexParams": [ - { - "IndexElem": { - "expr": { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 10196, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 10198, - }, - }, - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 10180, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 67, - "stmt_location": 10144, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "collate_test1_idx4", - "indexParams": [ - { - "IndexElem": { - "expr": { - "CollateClause": { - "arg": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 10300, - }, - }, - "location": 10301, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 10303, - "sval": { - "sval": "foo", - }, - }, - }, - }, - }, - "collname": [ - { - "String": { - "sval": "POSIX", - }, - }, - ], - "location": 10310, - }, - }, - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 10283, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 115, - "stmt_location": 10212, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "collate_test1_idx5", - "indexParams": [ - { - "IndexElem": { - "collation": [ - { - "String": { - "sval": "C", - }, - }, - ], - "name": "a", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 10365, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 66, - "stmt_location": 10328, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "collate_test1_idx6", - "indexParams": [ - { - "IndexElem": { - "expr": { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 10455, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 10457, - }, - }, - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 10439, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 75, - "stmt_location": 10395, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 10523, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10581, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 10488, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 10488, - }, - }, - }, - }, - { - "ResTarget": { - "location": 10497, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 10513, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_indexdef", - }, - }, - ], - "location": 10497, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 10538, - }, - }, - "location": 10546, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 10551, - "sval": { - "sval": "collate_test%_idx%", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 111, - "stmt_location": 10471, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "role": "regress_test_role", - "stmt_type": "ROLESTMT_ROLE", - }, - }, - "stmt_len": 65, - "stmt_location": 10583, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateSchemaStmt": { - "schemaname": "test_schema", - }, - }, - "stmt_len": 26, - "stmt_location": 10649, - }, - }, - { - "RawStmt": { - "stmt": { - "DoStmt": { - "args": [ - { - "DefElem": { - "arg": { - "String": { - "sval": " -BEGIN - EXECUTE 'CREATE COLLATION test0 (locale = ' || - quote_literal(current_setting('lc_collate')) || ');'; -END -", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 10754, - }, - }, - ], - }, - }, - "stmt_len": 206, - "stmt_location": 10676, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "C", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "from", - "location": 10912, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "test0", - }, - }, - ], - "kind": "OBJECT_COLLATION", - }, - }, - "stmt_len": 32, - "stmt_location": 10883, - }, - }, - { - "RawStmt": { - "stmt": { - "DoStmt": { - "args": [ - { - "DefElem": { - "arg": { - "String": { - "sval": " -BEGIN - EXECUTE 'CREATE COLLATION test1 (lc_collate = ' || - quote_literal(current_setting('lc_collate')) || - ', lc_ctype = ' || - quote_literal(current_setting('lc_ctype')) || ');'; -END -", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 10944, - }, - }, - ], - }, - }, - "stmt_len": 245, - "stmt_location": 10916, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "en_US.utf8", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "lc_collate", - "location": 11187, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "test3", - }, - }, - ], - "kind": "OBJECT_COLLATION", - }, - }, - "stmt_len": 51, - "stmt_location": 11162, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "nonsense", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "locale", - "location": 11262, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "testx", - }, - }, - ], - "kind": "OBJECT_COLLATION", - }, - }, - "stmt_len": 68, - "stmt_location": 11214, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "nonsense", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "from", - "location": 11321, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "test4", - }, - }, - ], - "kind": "OBJECT_COLLATION", - }, - }, - "stmt_len": 46, - "stmt_location": 11283, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "test0", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "from", - "location": 11359, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "test5", - }, - }, - ], - "kind": "OBJECT_COLLATION", - }, - }, - "stmt_len": 34, - "stmt_location": 11330, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 11388, - "relname": "pg_collation", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11438, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 11374, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "collname", - }, - }, - ], - "location": 11374, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "collname", - }, - }, - ], - "location": 11407, - }, - }, - "location": 11416, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 11421, - "sval": { - "sval": "test%", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 11365, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "test11", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "test1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_COLLATION", - }, - }, - "stmt_len": 40, - "stmt_location": 11440, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "test11", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "test0", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_COLLATION", - }, - }, - "stmt_len": 39, - "stmt_location": 11481, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "test22", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "test1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_COLLATION", - }, - }, - "stmt_len": 47, - "stmt_location": 11521, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 11611, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "List": { - "items": [ - { - "String": { - "sval": "test11", - }, - }, - ], - }, - }, - "objectType": "OBJECT_COLLATION", - }, - }, - "stmt_len": 59, - "stmt_location": 11569, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 11662, - "rolename": "nonsense", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "List": { - "items": [ - { - "String": { - "sval": "test11", - }, - }, - ], - }, - }, - "objectType": "OBJECT_COLLATION", - }, - }, - "stmt_len": 41, - "stmt_location": 11629, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "test_schema", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "test11", - }, - }, - ], - }, - }, - "objectType": "OBJECT_COLLATION", - }, - }, - "stmt_len": 46, - "stmt_location": 11671, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "US English", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "test0", - }, - }, - ], - }, - }, - "objtype": "OBJECT_COLLATION", - }, - }, - "stmt_len": 44, - "stmt_location": 11718, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "inh": true, - "location": 11850, - "relname": "pg_collation", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "collnamespace", - }, - }, - ], - "location": 11885, - }, - }, - "location": 11899, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_namespace", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 11901, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 11868, - "relname": "pg_namespace", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11964, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 11772, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "collname", - }, - }, - ], - "location": 11772, - }, - }, - }, - }, - { - "ResTarget": { - "location": 11782, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 11782, - }, - }, - }, - }, - { - "ResTarget": { - "location": 11791, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_collation", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 11807, - }, - }, - { - "A_Const": { - "location": 11825, - "sval": { - "sval": "pg_collation", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "obj_description", - }, - }, - ], - "location": 11791, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "collname", - }, - }, - ], - "location": 11929, - }, - }, - "location": 11938, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 11943, - "sval": { - "sval": "test%", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 202, - "stmt_location": 11763, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test0", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "test_schema", - }, - }, - { - "String": { - "sval": "test11", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "test5", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_COLLATION", - }, - }, - "stmt_len": 49, - "stmt_location": 11966, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test0", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_COLLATION", - }, - }, - "stmt_len": 21, - "stmt_location": 12016, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test0", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_COLLATION", - }, - }, - "stmt_len": 39, - "stmt_location": 12038, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 12101, - "relname": "pg_collation", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12087, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "collname", - }, - }, - ], - "location": 12087, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "collname", - }, - }, - ], - "location": 12120, - }, - }, - "location": 12129, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 12134, - "sval": { - "sval": "test%", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 63, - "stmt_location": 12078, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "test_schema", - }, - }, - ], - "removeType": "OBJECT_SCHEMA", - }, - }, - "stmt_len": 25, - "stmt_location": 12142, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 12179, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 12168, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "C", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "from", - "location": 12245, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "test0", - }, - }, - ], - "kind": "OBJECT_COLLATION", - }, - }, - "stmt_len": 51, - "stmt_location": 12197, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 12264, - "relname": "collate_dep_test1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 12283, - "typeName": { - "location": 12285, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "collClause": { - "collname": [ - { - "String": { - "sval": "test0", - }, - }, - ], - "location": 12297, - }, - "colname": "b", - "is_local": true, - "location": 12290, - "typeName": { - "location": 12292, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 12249, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "collClause": { - "collname": [ - { - "String": { - "sval": "test0", - }, - }, - ], - "location": 12352, - }, - "domainname": [ - { - "String": { - "sval": "collate_dep_dom1", - }, - }, - ], - "typeName": { - "location": 12347, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 53, - "stmt_location": 12312, - }, - }, - { - "RawStmt": { - "stmt": { - "CompositeTypeStmt": { - "coldeflist": [ - { - "ColumnDef": { - "colname": "x", - "is_local": true, - "location": 12401, - "typeName": { - "location": 12403, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "collClause": { - "collname": [ - { - "String": { - "sval": "test0", - }, - }, - ], - "location": 12415, - }, - "colname": "y", - "is_local": true, - "location": 12408, - "typeName": { - "location": 12410, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "typevar": { - "location": 12379, - "relname": "collate_dep_test2", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 63, - "stmt_location": 12366, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12471, - "name": "foo", - "val": { - "CollateClause": { - "arg": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 12476, - "sval": { - "sval": "foo", - }, - }, - }, - "location": -1, - "typeName": { - "location": 12471, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "collname": [ - { - "String": { - "sval": "test0", - }, - }, - ], - "location": 12482, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 12443, - "relname": "collate_dep_test3", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 72, - "stmt_location": 12430, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 12517, - "relname": "collate_dep_test4t", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 12537, - "typeName": { - "location": 12539, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 12544, - "typeName": { - "location": 12546, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 48, - "stmt_location": 12503, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "collate_dep_test4i", - "indexParams": [ - { - "IndexElem": { - "collation": [ - { - "String": { - "sval": "test0", - }, - }, - ], - "name": "b", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 12588, - "relname": "collate_dep_test4t", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 72, - "stmt_location": 12552, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test0", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_COLLATION", - }, - }, - "stmt_len": 31, - "stmt_location": 12625, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test0", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_COLLATION", - }, - }, - "stmt_len": 37, - "stmt_location": 12657, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "collate_dep_test1", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "collate_dep_test4t", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 55, - "stmt_location": 12695, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 12762, - "names": [ - { - "String": { - "sval": "collate_dep_test2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_TYPE", - }, - }, - "stmt_len": 28, - "stmt_location": 12751, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRangeStmt": { - "params": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 12859, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "subtype", - "location": 12851, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 12875, - "names": [ - { - "String": { - "sval": "C", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "collation", - "location": 12865, - }, - }, - ], - "typeName": [ - { - "String": { - "sval": "textrange_c", - }, - }, - ], - }, - }, - "stmt_len": 99, - "stmt_location": 12780, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRangeStmt": { - "params": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 12926, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "subtype", - "location": 12918, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 12942, - "names": [ - { - "String": { - "sval": "en_US", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "collation", - "location": 12932, - }, - }, - ], - "typeName": [ - { - "String": { - "sval": "textrange_en_us", - }, - }, - ], - }, - }, - "stmt_len": 70, - "stmt_location": 12880, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12960, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 12972, - "sval": { - "sval": "A", - }, - }, - }, - { - "A_Const": { - "location": 12976, - "sval": { - "sval": "Z", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "textrange_c", - }, - }, - ], - "location": 12960, - }, - }, - "location": 12981, - "name": [ - { - "String": { - "sval": "@>", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 12984, - "sval": { - "sval": "b", - }, - }, - }, - "location": 12987, - "typeName": { - "location": 12989, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 12951, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13002, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 13018, - "sval": { - "sval": "A", - }, - }, - }, - { - "A_Const": { - "location": 13022, - "sval": { - "sval": "Z", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "textrange_en_us", - }, - }, - ], - "location": 13002, - }, - }, - "location": 13027, - "name": [ - { - "String": { - "sval": "@>", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 13030, - "sval": { - "sval": "b", - }, - }, - }, - "location": 13033, - "typeName": { - "location": 13035, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 12994, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 13052, - "names": [ - { - "String": { - "sval": "textrange_c", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_TYPE", - }, - }, - "stmt_len": 23, - "stmt_location": 13040, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 13075, - "names": [ - { - "String": { - "sval": "textrange_en_us", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_TYPE", - }, - }, - "stmt_len": 26, - "stmt_location": 13064, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/collate.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateSchemaStmt": { - "schemaname": "collate_tests", - }, - }, - "stmt_len": 681, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 701, - "sval": { - "sval": "collate_tests", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "search_path", - }, - }, - "stmt_len": 32, - "stmt_location": 682, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 730, - "relname": "collate_test1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 750, - "typeName": { - "location": 752, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "collClause": { - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 768, - }, - "colname": "b", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 780, - }, - }, - ], - "is_local": true, - "location": 761, - "typeName": { - "location": 763, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 75, - "stmt_location": 715, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 809, - "relname": "collate_test_fail", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "collClause": { - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 839, - }, - "colname": "a", - "is_local": true, - "location": 833, - "typeName": { - "location": 835, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 856, - "typeName": { - "location": 858, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 791, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 880, - "relname": "collate_test_like", - "relpersistence": "p", - }, - "tableElts": [ - { - "TableLikeClause": { - "relation": { - "inh": true, - "location": 909, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 865, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 943, - "relname": "collate_test2", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 963, - "typeName": { - "location": 965, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "collClause": { - "collname": [ - { - "String": { - "sval": "POSIX", - }, - }, - ], - "location": 981, - }, - "colname": "b", - "is_local": true, - "location": 974, - "typeName": { - "location": 976, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 925, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1013, - "relname": "collate_test1", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1035, - }, - }, - { - "A_Const": { - "location": 1038, - "sval": { - "sval": "abc", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1047, - }, - }, - { - "A_Const": { - "location": 1050, - "sval": { - "sval": "Abc", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 1059, - }, - }, - { - "A_Const": { - "location": 1062, - "sval": { - "sval": "bbc", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 1071, - }, - }, - { - "A_Const": { - "location": 1074, - "sval": { - "sval": "ABD", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 81, - "stmt_location": 999, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1094, - "relname": "collate_test2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1122, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1115, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1115, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 1081, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1152, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1145, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1145, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1172, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 1174, - }, - }, - "location": 1186, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1189, - "sval": { - "sval": "abc", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 58, - "stmt_location": 1136, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1210, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1203, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1203, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1230, - }, - }, - "location": 1232, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "CollateClause": { - "arg": { - "A_Const": { - "location": 1235, - "sval": { - "sval": "abc", - }, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 1241, - }, - }, - }, - }, - }, - }, - "stmt_len": 57, - "stmt_location": 1195, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1268, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1261, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1261, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1288, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 1290, - }, - }, - "location": 1302, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "CollateClause": { - "arg": { - "A_Const": { - "location": 1305, - "sval": { - "sval": "abc", - }, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 1311, - }, - }, - }, - }, - }, - }, - "stmt_len": 69, - "stmt_location": 1253, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1338, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1331, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1331, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1358, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 1360, - }, - }, - "location": 1372, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "CollateClause": { - "arg": { - "A_Const": { - "location": 1375, - "sval": { - "sval": "bbc", - }, - }, - }, - "collname": [ - { - "String": { - "sval": "POSIX", - }, - }, - ], - "location": 1381, - }, - }, - }, - }, - }, - }, - "stmt_len": 73, - "stmt_location": 1323, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "collClause": { - "collname": [ - { - "String": { - "sval": "POSIX", - }, - }, - ], - "location": 1442, - }, - "domainname": [ - { - "String": { - "sval": "testdomain_p", - }, - }, - ], - "typeName": { - "location": 1437, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 60, - "stmt_location": 1397, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "collClause": { - "collname": [ - { - "String": { - "sval": "POSIX", - }, - }, - ], - "location": 1493, - }, - "domainname": [ - { - "String": { - "sval": "testdomain_i", - }, - }, - ], - "typeName": { - "location": 1489, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 50, - "stmt_location": 1458, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1531, - "relname": "collate_test4", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 1551, - "typeName": { - "location": 1553, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 1562, - "typeName": { - "location": 1564, - "names": [ - { - "String": { - "sval": "testdomain_p", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 69, - "stmt_location": 1509, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1592, - "relname": "collate_test4", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1620, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1613, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1613, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 1579, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1652, - "relname": "collate_test4", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1675, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1642, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1642, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1645, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1645, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 1634, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1692, - "relname": "collate_test5", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 1712, - "typeName": { - "location": 1714, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "collClause": { - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 1738, - }, - "colname": "b", - "is_local": true, - "location": 1723, - "typeName": { - "location": 1725, - "names": [ - { - "String": { - "sval": "testdomain_p", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 74, - "stmt_location": 1677, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1765, - "relname": "collate_test5", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1793, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1786, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1786, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 1752, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1825, - "relname": "collate_test5", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1848, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1815, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1815, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1818, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1818, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 1807, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1870, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1893, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1860, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1860, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1863, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1863, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 1850, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1913, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1936, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1903, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1903, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1906, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1906, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 1895, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1957, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1980, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 1982, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1947, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1947, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1950, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1950, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 55, - "stmt_location": 1938, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2028, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2051, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2021, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2021, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 58, - "stmt_location": 1994, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2068, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2091, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2061, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2061, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 2053, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2133, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "CollateClause": { - "arg": { - "A_Const": { - "location": 2133, - "sval": { - "sval": "bbc", - }, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 2139, - }, - }, - "location": 2151, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "CollateClause": { - "arg": { - "A_Const": { - "location": 2153, - "sval": { - "sval": "Abc", - }, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 2159, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 87, - "stmt_location": 2093, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2189, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "CollateClause": { - "arg": { - "A_Const": { - "location": 2189, - "sval": { - "sval": "bbc", - }, - }, - }, - "collname": [ - { - "String": { - "sval": "POSIX", - }, - }, - ], - "location": 2195, - }, - }, - "location": 2211, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "CollateClause": { - "arg": { - "A_Const": { - "location": 2213, - "sval": { - "sval": "Abc", - }, - }, - }, - "collname": [ - { - "String": { - "sval": "POSIX", - }, - }, - ], - "location": 2219, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 64, - "stmt_location": 2181, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 2277, - "relname": "collate_test10", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 2298, - "typeName": { - "location": 2300, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "collClause": { - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 2316, - }, - "colname": "x", - "is_local": true, - "location": 2309, - "typeName": { - "location": 2311, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "collClause": { - "collname": [ - { - "String": { - "sval": "POSIX", - }, - }, - ], - "location": 2340, - }, - "colname": "y", - "is_local": true, - "location": 2333, - "typeName": { - "location": 2335, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 111, - "stmt_location": 2246, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2372, - "relname": "collate_test10", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2395, - }, - }, - { - "A_Const": { - "location": 2398, - "sval": { - "sval": "hij", - }, - }, - }, - { - "A_Const": { - "location": 2405, - "sval": { - "sval": "hij", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2414, - }, - }, - { - "A_Const": { - "location": 2417, - "sval": { - "sval": "HIJ", - }, - }, - }, - { - "A_Const": { - "location": 2424, - "sval": { - "sval": "HIJ", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 72, - "stmt_location": 2358, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2511, - "relname": "collate_test10", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2440, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2440, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2443, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 2449, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 2443, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2453, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 2459, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 2453, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2463, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 2469, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "upper", - }, - }, - ], - "location": 2463, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2473, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 2479, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "upper", - }, - }, - ], - "location": 2473, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2483, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 2491, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "initcap", - }, - }, - ], - "location": 2483, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2495, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 2503, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "initcap", - }, - }, - ], - "location": 2495, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 94, - "stmt_location": 2431, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2585, - "relname": "collate_test10", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2534, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2534, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2537, - "val": { - "FuncCall": { - "args": [ - { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 2543, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 2545, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 2537, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2559, - "val": { - "FuncCall": { - "args": [ - { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 2565, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 2567, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 2559, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 2526, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2622, - "relname": "collate_test10", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 2652, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 2646, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2656, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2609, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2609, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2612, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 2612, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2615, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 2615, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 2600, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2721, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2714, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2714, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2741, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 2743, - }, - }, - "location": 2755, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2758, - "sval": { - "sval": "bbc", - }, - }, - }, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 2694, - "relname": "collview1", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 105, - "stmt_location": 2658, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2807, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2830, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 2832, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2797, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2797, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2800, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2800, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 2777, - "relname": "collview2", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 79, - "stmt_location": 2764, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2917, - "relname": "collate_test10", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2877, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2877, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2880, - "val": { - "FuncCall": { - "args": [ - { - "CollateClause": { - "arg": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 2887, - }, - }, - "location": 2889, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 2892, - }, - }, - }, - }, - "collname": [ - { - "String": { - "sval": "POSIX", - }, - }, - ], - "location": 2895, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 2880, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 2857, - "relname": "collview3", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 87, - "stmt_location": 2844, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2974, - "relname": "views", - "relpersistence": "p", - "schemaname": "information_schema", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3044, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2941, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "table_name", - }, - }, - ], - "location": 2941, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2953, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "view_definition", - }, - }, - ], - "location": 2953, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "table_name", - }, - }, - ], - "location": 3007, - }, - }, - "location": 3018, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3023, - "sval": { - "sval": "collview%", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 113, - "stmt_location": 2932, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3137, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3160, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3110, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3110, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3113, - "val": { - "CoalesceExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3122, - }, - }, - { - "A_Const": { - "location": 3125, - "sval": { - "sval": "foo", - }, - }, - }, - ], - "location": 3113, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 115, - "stmt_location": 3046, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3197, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3220, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3170, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3170, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3173, - "val": { - "CoalesceExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3182, - }, - }, - { - "A_Const": { - "location": 3185, - "sval": { - "sval": "foo", - }, - }, - }, - ], - "location": 3173, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 3162, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3291, - "relname": "collate_test10", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3230, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3230, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3233, - "val": { - "FuncCall": { - "args": [ - { - "CoalesceExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 3248, - }, - }, - { - "A_Const": { - "location": 3251, - "sval": { - "sval": "foo", - }, - }, - }, - ], - "location": 3239, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 3233, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3260, - "val": { - "FuncCall": { - "args": [ - { - "CoalesceExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 3275, - }, - }, - { - "A_Const": { - "location": 3278, - "sval": { - "sval": "foo", - }, - }, - }, - ], - "location": 3266, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 3260, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 83, - "stmt_location": 3222, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3345, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 3368, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3315, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3315, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3318, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3318, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3321, - "val": { - "MinMaxExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3330, - }, - }, - { - "A_Const": { - "location": 3333, - "sval": { - "sval": "CCC", - }, - }, - }, - ], - "location": 3321, - "op": "IS_GREATEST", - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 3306, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3408, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 3431, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3378, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3378, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3381, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3381, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3384, - "val": { - "MinMaxExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3393, - }, - }, - { - "A_Const": { - "location": 3396, - "sval": { - "sval": "CCC", - }, - }, - }, - ], - "location": 3384, - "op": "IS_GREATEST", - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 3370, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3508, - "relname": "collate_test10", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3441, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3441, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3444, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 3444, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3447, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 3447, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3450, - "val": { - "FuncCall": { - "args": [ - { - "MinMaxExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 3465, - }, - }, - { - "A_Const": { - "location": 3468, - "sval": { - "sval": "foo", - }, - }, - }, - ], - "location": 3456, - "op": "IS_GREATEST", - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 3450, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3477, - "val": { - "FuncCall": { - "args": [ - { - "MinMaxExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 3492, - }, - }, - { - "A_Const": { - "location": 3495, - "sval": { - "sval": "foo", - }, - }, - }, - ], - "location": 3483, - "op": "IS_GREATEST", - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 3477, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 89, - "stmt_location": 3433, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3557, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3580, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3532, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3532, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3535, - "val": { - "A_Expr": { - "kind": "AEXPR_NULLIF", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3542, - }, - }, - "location": 3535, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3545, - "sval": { - "sval": "abc", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 58, - "stmt_location": 3523, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3615, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3638, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3590, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3590, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3593, - "val": { - "A_Expr": { - "kind": "AEXPR_NULLIF", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3600, - }, - }, - "location": 3593, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3603, - "sval": { - "sval": "abc", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 3582, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3705, - "relname": "collate_test10", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3648, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3648, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3651, - "val": { - "FuncCall": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_NULLIF", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 3664, - }, - }, - "location": 3657, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3667, - "sval": { - "sval": "foo", - }, - }, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 3651, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3676, - "val": { - "FuncCall": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_NULLIF", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 3689, - }, - }, - "location": 3682, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3692, - "sval": { - "sval": "foo", - }, - }, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 3676, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 79, - "stmt_location": 3640, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3778, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3801, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3729, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3729, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3732, - "val": { - "CaseExpr": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3737, - }, - }, - "args": [ - { - "CaseWhen": { - "expr": { - "A_Const": { - "location": 3744, - "sval": { - "sval": "abc", - }, - }, - }, - "location": 3739, - "result": { - "A_Const": { - "location": 3755, - "sval": { - "sval": "abcd", - }, - }, - }, - }, - }, - ], - "defresult": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3767, - }, - }, - "location": 3732, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 82, - "stmt_location": 3720, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3860, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3883, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3811, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3811, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3814, - "val": { - "CaseExpr": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3819, - }, - }, - "args": [ - { - "CaseWhen": { - "expr": { - "A_Const": { - "location": 3826, - "sval": { - "sval": "abc", - }, - }, - }, - "location": 3821, - "result": { - "A_Const": { - "location": 3837, - "sval": { - "sval": "abcd", - }, - }, - }, - }, - }, - ], - "defresult": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3849, - }, - }, - "location": 3814, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 81, - "stmt_location": 3803, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "domainname": [ - { - "String": { - "sval": "testdomain", - }, - }, - ], - "typeName": { - "location": 3915, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 34, - "stmt_location": 3885, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3950, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3973, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3928, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3928, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3931, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3931, - }, - }, - "location": 3932, - "typeName": { - "location": 3934, - "names": [ - { - "String": { - "sval": "testdomain", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 3920, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4005, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4028, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3983, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3983, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3986, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3986, - }, - }, - "location": 3987, - "typeName": { - "location": 3989, - "names": [ - { - "String": { - "sval": "testdomain", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 3975, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4062, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4085, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 4038, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4038, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4041, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4041, - }, - }, - "location": 4042, - "typeName": { - "location": 4044, - "names": [ - { - "String": { - "sval": "testdomain_p", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 4030, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4146, - "relname": "collate_test10", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4095, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4095, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4098, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 4104, - }, - }, - "location": 4105, - "typeName": { - "location": 4107, - "names": [ - { - "String": { - "sval": "testdomain", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 4098, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4120, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 4126, - }, - }, - "location": 4127, - "typeName": { - "location": 4129, - "names": [ - { - "String": { - "sval": "testdomain", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 4120, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 4087, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4190, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4170, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4174, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 4170, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4178, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4182, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 4178, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 4161, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4232, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4212, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4216, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 4212, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4220, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4224, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 4220, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 41, - "stmt_location": 4204, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4284, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4255, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4276, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4265, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_agg", - }, - }, - ], - "location": 4255, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 4246, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4335, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4306, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4327, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4316, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_agg", - }, - }, - ], - "location": 4306, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 50, - "stmt_location": 4298, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4482, - "relname": "collate_test10", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4432, - "val": { - "FuncCall": { - "args": [ - { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 4443, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 4445, - }, - }, - { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 4458, - }, - }, - "collname": [ - { - "String": { - "sval": "POSIX", - }, - }, - ], - "location": 4460, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "string_agg", - }, - }, - ], - "location": 4432, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 147, - "stmt_location": 4349, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4571, - "relname": "collate_test10", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4514, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 4547, - }, - }, - "collname": [ - { - "String": { - "sval": "POSIX", - }, - }, - ], - "location": 4549, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 4524, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 4526, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_agg", - }, - }, - ], - "location": 4514, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 88, - "stmt_location": 4497, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4654, - "relname": "collate_test10", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4594, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 4615, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 4617, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 4630, - }, - }, - "collname": [ - { - "String": { - "sval": "POSIX", - }, - }, - ], - "location": 4632, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4604, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_agg", - }, - }, - ], - "location": 4594, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 82, - "stmt_location": 4586, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4709, - "relname": "collate_test10", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4677, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 4698, - }, - }, - "location": 4699, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 4701, - }, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4687, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_agg", - }, - }, - ], - "location": 4677, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 4669, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4752, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4742, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4742, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4745, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4745, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4793, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4783, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4783, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4786, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4786, - }, - }, - }, - }, - ], - }, - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4816, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - }, - }, - "stmt_len": 93, - "stmt_location": 4724, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4836, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4826, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4826, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4829, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4829, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4873, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4863, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4863, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4866, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4866, - }, - }, - }, - }, - ], - }, - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4896, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - }, - }, - "stmt_len": 79, - "stmt_location": 4818, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4916, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4906, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4906, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4909, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4909, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4936, - }, - }, - "location": 4938, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 4940, - }, - }, - }, - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_INTERSECT", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4969, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4959, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4959, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4962, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4962, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4989, - }, - }, - "location": 4991, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4993, - }, - }, - }, - }, - }, - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5004, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - }, - }, - "stmt_len": 107, - "stmt_location": 4898, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5024, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5014, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5014, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5017, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5017, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_EXCEPT", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5062, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5052, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5052, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5055, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5055, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5082, - }, - }, - "location": 5084, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5086, - }, - }, - }, - }, - }, - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5097, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - }, - }, - "stmt_len": 92, - "stmt_location": 5006, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5118, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5108, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5108, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5111, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5111, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5159, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5149, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5149, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5152, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5152, - }, - }, - }, - }, - ], - }, - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5182, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - }, - }, - "stmt_len": 84, - "stmt_location": 5099, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5210, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5200, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5200, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5203, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5203, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5251, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5241, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5241, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5244, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5244, - }, - }, - }, - }, - ], - }, - }, - }, - "stmt_len": 80, - "stmt_location": 5184, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5289, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5279, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5279, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5282, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5282, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5326, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5316, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5316, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5319, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5319, - }, - }, - }, - }, - ], - }, - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5349, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - }, - }, - "stmt_len": 85, - "stmt_location": 5265, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5389, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5367, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5367, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5370, - "val": { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5370, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 5372, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5426, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5416, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5416, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5419, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5419, - }, - }, - }, - }, - ], - }, - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5449, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - }, - }, - "stmt_len": 99, - "stmt_location": 5351, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5475, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5465, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5465, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5468, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5468, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_INTERSECT", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5516, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5506, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5506, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5509, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5509, - }, - }, - }, - }, - ], - }, - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5539, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - }, - }, - "stmt_len": 89, - "stmt_location": 5451, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5567, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5557, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5557, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5560, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5560, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_EXCEPT", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5605, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5595, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5595, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5598, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5598, - }, - }, - }, - }, - ], - }, - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5628, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - }, - }, - "stmt_len": 88, - "stmt_location": 5541, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateTableAsStmt": { - "into": { - "onCommit": "ONCOMMIT_NOOP", - "rel": { - "inh": true, - "location": 5653, - "relname": "test_u", - "relpersistence": "p", - }, - }, - "objtype": "OBJECT_TABLE", - "query": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5680, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5670, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5670, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5673, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5673, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5721, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5711, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5711, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5714, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5714, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - "stmt_len": 104, - "stmt_location": 5630, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5841, - "relname": "collate_test10", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5830, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 5830, - }, - }, - "location": 5832, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 5834, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 120, - "stmt_location": 5735, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5884, - "relname": "collate_test10", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5872, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 5872, - }, - }, - "location": 5874, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 5877, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 5856, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5958, - "relname": "collate_test10", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 5982, - }, - }, - "location": 5984, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 5987, - }, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 5948, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 5948, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5951, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 5951, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 89, - "stmt_location": 5899, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6242, - "relname": "foo", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6235, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 6235, - }, - }, - }, - }, - ], - "withClause": { - "ctes": [ - { - "CommonTableExpr": { - "aliascolnames": [ - { - "String": { - "sval": "x", - }, - }, - ], - "ctematerialized": "CTEMaterializeDefault", - "ctename": "foo", - "ctequery": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "t", - "colnames": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "CollateClause": { - "arg": { - "A_Const": { - "location": 6118, - "sval": { - "sval": "a", - }, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 6122, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 6136, - "sval": { - "sval": "b", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6103, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 6103, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6202, - "relname": "foo", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6170, - "val": { - "CollateClause": { - "arg": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 6171, - }, - }, - "location": 6173, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 6176, - "sval": { - "sval": "c", - }, - }, - }, - }, - }, - "collname": [ - { - "String": { - "sval": "POSIX", - }, - }, - ], - "location": 6181, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 6219, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "length", - }, - }, - ], - "location": 6212, - }, - }, - "location": 6222, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 6224, - }, - }, - }, - }, - }, - }, - }, - "location": 6082, - }, - }, - ], - "location": 6067, - "recursive": true, - }, - }, - }, - "stmt_len": 256, - "stmt_location": 5989, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 6289, - "sval": { - "sval": "a", - }, - }, - }, - { - "A_Const": { - "location": 6294, - "sval": { - "sval": "B", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 6301, - "sval": { - "sval": "A", - }, - }, - }, - { - "CollateClause": { - "arg": { - "A_Const": { - "location": 6306, - "sval": { - "sval": "b", - }, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 6310, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6255, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6255, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6258, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6258, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6261, - "name": "lt", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6261, - }, - }, - "location": 6263, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6265, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 84, - "stmt_location": 6246, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6423, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6446, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 6396, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6396, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6399, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6404, - }, - }, - "location": 6399, - "typeName": { - "location": 6409, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 116, - "stmt_location": 6331, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6483, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6506, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 6456, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6456, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6459, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6464, - }, - }, - "location": 6459, - "typeName": { - "location": 6469, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 6448, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "SubLink": { - "location": 6549, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6586, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6557, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6578, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6567, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_agg", - }, - }, - ], - "location": 6557, - }, - }, - }, - }, - ], - }, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "unnest", - }, - }, - ], - "location": 6542, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6611, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 6535, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 6535, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 104, - "stmt_location": 6508, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "SubLink": { - "location": 6635, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6672, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6643, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6664, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6653, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_agg", - }, - }, - ], - "location": 6643, - }, - }, - }, - }, - ], - }, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "unnest", - }, - }, - ], - "location": 6628, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6697, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 6621, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 6621, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 85, - "stmt_location": 6613, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "dup", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "select $1", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 6757, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 6772, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 6722, - "names": [ - { - "String": { - "sval": "anyelement", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 6742, - "names": [ - { - "String": { - "sval": "anyelement", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 85, - "stmt_location": 6699, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6809, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6832, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 6794, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6794, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6797, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6801, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "dup", - }, - }, - ], - "location": 6797, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 48, - "stmt_location": 6785, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6857, - "relname": "collate_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6880, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 6842, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6842, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6845, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6849, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "dup", - }, - }, - ], - "location": 6845, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 6834, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "collate_test1_idx1", - "indexParams": [ - { - "IndexElem": { - "name": "b", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 6932, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 67, - "stmt_location": 6882, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "collate_test1_idx2", - "indexParams": [ - { - "IndexElem": { - "collation": [ - { - "String": { - "sval": "POSIX", - }, - }, - ], - "name": "b", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 6986, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 69, - "stmt_location": 6950, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "collate_test1_idx3", - "indexParams": [ - { - "IndexElem": { - "expr": { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 7072, - }, - }, - "collname": [ - { - "String": { - "sval": "POSIX", - }, - }, - ], - "location": 7074, - }, - }, - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 7056, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 71, - "stmt_location": 7020, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "collate_test1_idx4", - "indexParams": [ - { - "IndexElem": { - "expr": { - "CollateClause": { - "arg": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 7180, - }, - }, - "location": 7181, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 7183, - "sval": { - "sval": "foo", - }, - }, - }, - }, - }, - "collname": [ - { - "String": { - "sval": "POSIX", - }, - }, - ], - "location": 7190, - }, - }, - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 7163, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 115, - "stmt_location": 7092, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "collate_test1_idx5", - "indexParams": [ - { - "IndexElem": { - "collation": [ - { - "String": { - "sval": "POSIX", - }, - }, - ], - "name": "a", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 7245, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 70, - "stmt_location": 7208, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "collate_test1_idx6", - "indexParams": [ - { - "IndexElem": { - "expr": { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 7339, - }, - }, - "collname": [ - { - "String": { - "sval": "POSIX", - }, - }, - ], - "location": 7341, - }, - }, - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 7323, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 79, - "stmt_location": 7279, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7411, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 7469, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 7376, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 7376, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7385, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 7401, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_indexdef", - }, - }, - ], - "location": 7385, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 7426, - }, - }, - "location": 7434, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 7439, - "sval": { - "sval": "collate_test%_idx%", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 111, - "stmt_location": 7359, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "ival": {}, - "location": 7643, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_seqscan", - }, - }, - "stmt_len": 173, - "stmt_location": 7471, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "ival": {}, - "location": 7669, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_hashjoin", - }, - }, - "stmt_len": 25, - "stmt_location": 7645, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "ival": {}, - "location": 7695, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_nestloop", - }, - }, - "stmt_len": 25, - "stmt_location": 7671, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 7712, - "relname": "collate_test20", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "collClause": { - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 7736, - }, - "colname": "f1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 7748, - }, - }, - ], - "is_local": true, - "location": 7728, - "typeName": { - "location": 7731, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 7697, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 7774, - "relname": "collate_test20", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 7797, - "sval": { - "sval": "foo", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 7806, - "sval": { - "sval": "bar", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 51, - "stmt_location": 7761, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 7827, - "relname": "collate_test21", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "collClause": { - "collname": [ - { - "String": { - "sval": "POSIX", - }, - }, - ], - "location": 7851, - }, - "colname": "f2", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 7867, - "pktable": { - "inh": true, - "location": 7878, - "relname": "collate_test20", - "relpersistence": "p", - }, - }, - }, - ], - "is_local": true, - "location": 7843, - "typeName": { - "location": 7846, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 80, - "stmt_location": 7813, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 7907, - "relname": "collate_test21", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 7930, - "sval": { - "sval": "foo", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 7939, - "sval": { - "sval": "bar", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 51, - "stmt_location": 7894, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 7959, - "relname": "collate_test21", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 7982, - "sval": { - "sval": "baz", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 7946, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 8011, - "relname": "collate_test22", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "collClause": { - "collname": [ - { - "String": { - "sval": "POSIX", - }, - }, - ], - "location": 8035, - }, - "colname": "f2", - "is_local": true, - "location": 8027, - "typeName": { - "location": 8030, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 7989, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 8065, - "relname": "collate_test22", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 8088, - "sval": { - "sval": "foo", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 8097, - "sval": { - "sval": "bar", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 8106, - "sval": { - "sval": "baz", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 60, - "stmt_location": 8052, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "f2", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 8145, - "pktable": { - "inh": true, - "location": 8173, - "relname": "collate_test20", - "relpersistence": "p", - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 8126, - "relname": "collate_test22", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 74, - "stmt_location": 8113, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 8209, - "relname": "collate_test22", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f2", - }, - }, - ], - "location": 8230, - }, - }, - "location": 8233, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 8235, - "sval": { - "sval": "baz", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 52, - "stmt_location": 8188, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "f2", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 8273, - "pktable": { - "inh": true, - "location": 8301, - "relname": "collate_test20", - "relpersistence": "p", - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 8254, - "relname": "collate_test22", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 74, - "stmt_location": 8241, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "enable_seqscan", - }, - }, - "stmt_len": 22, - "stmt_location": 8316, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "enable_hashjoin", - }, - }, - "stmt_len": 22, - "stmt_location": 8339, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "enable_nestloop", - }, - }, - "stmt_len": 22, - "stmt_location": 8362, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 8409, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8436, - "relname": "collate_test10", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 8460, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 8463, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 8429, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 8429, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 79, - "stmt_location": 8385, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 8475, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8502, - "relname": "collate_test10", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 8526, - }, - }, - "sortby_dir": "SORTBY_DESC", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "CollateClause": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 8534, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 8536, - }, - }, - "sortby_dir": "SORTBY_ASC", - "sortby_nulls": "SORTBY_NULLS_FIRST", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 8495, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 8495, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 98, - "stmt_location": 8465, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 8662, - "relname": "vctable", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 8671, - "typeName": { - "location": 8674, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 25, - }, - "location": 8682, - }, - }, - ], - }, - }, - }, - ], - }, - }, - "stmt_len": 122, - "stmt_location": 8564, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 8700, - "relname": "vctable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "CollateClause": { - "arg": { - "A_Const": { - "location": 8716, - "sval": { - "sval": "foo", - }, - }, - }, - "collname": [ - { - "String": { - "sval": "C", - }, - }, - ], - "location": 8722, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 47, - "stmt_location": 8687, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8745, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 8760, - "sval": { - "sval": "foo", - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "pg_collation_for", - }, - }, - ], - "location": 8745, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 8735, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8798, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8813, - "sval": { - "sval": "foo", - }, - }, - }, - "location": 8818, - "typeName": { - "location": 8820, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "pg_collation_for", - }, - }, - ], - "location": 8798, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 58, - "stmt_location": 8767, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8834, - "val": { - "FuncCall": { - "args": [ - { - "SubLink": { - "location": 8849, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8864, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitCount": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 8884, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8857, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 8857, - }, - }, - }, - }, - ], - }, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "pg_collation_for", - }, - }, - ], - "location": 8834, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 8826, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8927, - "val": { - "FuncCall": { - "args": [ - { - "SubLink": { - "location": 8942, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8957, - "relname": "collate_test1", - "relpersistence": "p", - }, - }, - ], - "limitCount": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 8977, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8950, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 8950, - }, - }, - }, - }, - ], - }, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "pg_collation_for", - }, - }, - ], - "location": 8927, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 92, - "stmt_location": 8888, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "String": { - "sval": "collate_tests", - }, - }, - ], - "removeType": "OBJECT_SCHEMA", - }, - }, - "stmt_len": 206, - "stmt_location": 8981, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/combocid.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 94, - "relname": "combocidtest", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "foobar", - "is_local": true, - "location": 108, - "typeName": { - "location": 115, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 119, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 7, - "stmt_location": 120, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 194, - "relname": "combocidtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitCount": { - "A_Const": { - "ival": {}, - "location": 222, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 214, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 214, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 95, - "stmt_location": 128, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 237, - "relname": "combocidtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitCount": { - "A_Const": { - "ival": {}, - "location": 265, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 257, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 257, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 224, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 280, - "relname": "combocidtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitCount": { - "A_Const": { - "ival": {}, - "location": 308, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 300, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 300, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 267, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 323, - "relname": "combocidtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitCount": { - "A_Const": { - "ival": {}, - "location": 351, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 343, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 343, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 310, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 366, - "relname": "combocidtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitCount": { - "A_Const": { - "ival": {}, - "location": 394, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 386, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 386, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 353, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 409, - "relname": "combocidtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitCount": { - "A_Const": { - "ival": {}, - "location": 437, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 429, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 429, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 396, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 452, - "relname": "combocidtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitCount": { - "A_Const": { - "ival": {}, - "location": 480, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 472, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 472, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 439, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 495, - "relname": "combocidtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitCount": { - "A_Const": { - "ival": {}, - "location": 523, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 515, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 515, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 482, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 538, - "relname": "combocidtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitCount": { - "A_Const": { - "ival": {}, - "location": 566, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 558, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 558, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 525, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 581, - "relname": "combocidtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitCount": { - "A_Const": { - "ival": {}, - "location": 609, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 601, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 601, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 568, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 625, - "relname": "combocidtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 646, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 37, - "stmt_location": 611, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 662, - "relname": "combocidtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 683, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 36, - "stmt_location": 649, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 712, - "relname": "combocidtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 695, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 695, - }, - }, - }, - }, - { - "ResTarget": { - "location": 700, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "cmin", - }, - }, - ], - "location": 700, - }, - }, - }, - }, - { - "ResTarget": { - "location": 705, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 705, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 686, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_SAVEPOINT", - "location": 737, - "savepoint_name": "s1", - }, - }, - "stmt_len": 14, - "stmt_location": 725, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 749, - "relname": "combocidtest", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 766, - "name": "foobar", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "foobar", - }, - }, - ], - "location": 775, - }, - }, - "location": 782, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 784, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 740, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 855, - "relname": "combocidtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 838, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 838, - }, - }, - }, - }, - { - "ResTarget": { - "location": 843, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "cmin", - }, - }, - ], - "location": 843, - }, - }, - }, - }, - { - "ResTarget": { - "location": 848, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 848, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 80, - "stmt_location": 787, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK_TO", - "location": 882, - "savepoint_name": "s1", - }, - }, - "stmt_len": 16, - "stmt_location": 868, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 978, - "relname": "combocidtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 961, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 961, - }, - }, - }, - }, - { - "ResTarget": { - "location": 966, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "cmin", - }, - }, - ], - "location": 966, - }, - }, - }, - }, - { - "ResTarget": { - "location": 971, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 971, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 105, - "stmt_location": 885, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 8, - "stmt_location": 991, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1090, - "relname": "combocidtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1073, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 1073, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1078, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "cmin", - }, - }, - ], - "location": 1078, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1083, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1083, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 102, - "stmt_location": 1000, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 39, - "stmt_location": 1103, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1157, - "relname": "combocidtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 333, - }, - "location": 1178, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 39, - "stmt_location": 1143, - }, - }, - { - "RawStmt": { - "stmt": { - "DeclareCursorStmt": { - "options": 256, - "portalname": "c", - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1230, - "relname": "combocidtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1213, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 1213, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1218, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "cmin", - }, - }, - ], - "location": 1218, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1223, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1223, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 1183, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 1257, - "relname": "combocidtest", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 26, - "stmt_location": 1243, - }, - }, - { - "RawStmt": { - "stmt": { - "FetchStmt": { - "direction": "FETCH_FORWARD", - "howMany": 9223372036854776000, - "portalname": "c", - }, - }, - "stmt_len": 18, - "stmt_location": 1270, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 10, - "stmt_location": 1289, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1326, - "relname": "combocidtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1309, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 1309, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1314, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "cmin", - }, - }, - ], - "location": 1314, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1319, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1319, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 1300, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 44, - "stmt_location": 1339, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1450, - "relname": "combocidtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitCount": { - "A_Const": { - "ival": {}, - "location": 1478, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1470, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1470, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 95, - "stmt_location": 1384, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1493, - "relname": "combocidtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitCount": { - "A_Const": { - "ival": {}, - "location": 1521, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1513, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1513, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 1480, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1536, - "relname": "combocidtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitCount": { - "A_Const": { - "ival": {}, - "location": 1564, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1556, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1556, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 1523, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1579, - "relname": "combocidtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitCount": { - "A_Const": { - "ival": {}, - "location": 1607, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1599, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1599, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 1566, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1622, - "relname": "combocidtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitCount": { - "A_Const": { - "ival": {}, - "location": 1650, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1642, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1642, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 1609, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1665, - "relname": "combocidtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitCount": { - "A_Const": { - "ival": {}, - "location": 1693, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1685, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1685, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 1652, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1708, - "relname": "combocidtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitCount": { - "A_Const": { - "ival": {}, - "location": 1736, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1728, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1728, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 1695, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1751, - "relname": "combocidtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitCount": { - "A_Const": { - "ival": {}, - "location": 1779, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1771, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1771, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 1738, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1794, - "relname": "combocidtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitCount": { - "A_Const": { - "ival": {}, - "location": 1822, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1814, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1814, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 1781, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1837, - "relname": "combocidtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitCount": { - "A_Const": { - "ival": {}, - "location": 1865, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1857, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1857, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 1824, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1881, - "relname": "combocidtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 444, - }, - "location": 1902, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 39, - "stmt_location": 1867, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1933, - "relname": "combocidtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1916, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 1916, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1921, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "cmin", - }, - }, - ], - "location": 1921, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1926, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1926, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 1907, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_SAVEPOINT", - "location": 1958, - "savepoint_name": "s1", - }, - }, - "stmt_len": 14, - "stmt_location": 1946, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2015, - "relname": "combocidtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "lockingClause": [ - { - "LockingClause": { - "strength": "LCS_FORUPDATE", - "waitPolicy": "LockWaitBlock", - }, - }, - ], - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1998, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 1998, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2003, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "cmin", - }, - }, - ], - "location": 2003, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2008, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2008, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 77, - "stmt_location": 1961, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2064, - "relname": "combocidtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2047, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 2047, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2052, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "cmin", - }, - }, - ], - "location": 2052, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2057, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2057, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 2039, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 2103, - "relname": "combocidtest", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 2120, - "name": "foobar", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "foobar", - }, - }, - ], - "location": 2129, - }, - }, - "location": 2136, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 2138, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 2077, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2167, - "relname": "combocidtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2150, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 2150, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2155, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "cmin", - }, - }, - ], - "location": 2155, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2160, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2160, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 2141, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK_TO", - "location": 2194, - "savepoint_name": "s1", - }, - }, - "stmt_len": 16, - "stmt_location": 2180, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2223, - "relname": "combocidtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2206, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 2206, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2211, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "cmin", - }, - }, - ], - "location": 2211, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2216, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2216, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 2197, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 8, - "stmt_location": 2236, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2271, - "relname": "combocidtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2254, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 2254, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2259, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "cmin", - }, - }, - ], - "location": 2259, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2264, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2264, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 2245, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/comments.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 26, - "name": "first", - "val": { - "A_Const": { - "location": 26, - "sval": { - "sval": "trailing", - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 105, - "name": "second", - "val": { - "A_Const": { - "location": 105, - "sval": { - "sval": "embedded", - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 79, - "stmt_location": 46, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 179, - "name": "third", - "val": { - "A_Const": { - "location": 179, - "sval": { - "sval": "both", - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 68, - "stmt_location": 126, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 228, - "name": "fourth", - "val": { - "A_Const": { - "location": 228, - "sval": { - "sval": "before multi-line", - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 195, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 349, - "name": "fifth", - "val": { - "A_Const": { - "location": 349, - "sval": { - "sval": "after multi-line", - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 118, - "stmt_location": 258, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 968, - "name": "sixth", - "val": { - "A_Const": { - "location": 968, - "sval": { - "sval": "deeply nested example", - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 623, - "stmt_location": 377, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/conversion.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "options": [ - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": false, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "createdb", - "location": 78, - }, - }, - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": false, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "createrole", - "location": 89, - }, - }, - ], - "role": "conversion_test_user", - "stmt_type": "ROLESTMT_USER", - }, - }, - "stmt_len": 101, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 129, - "sval": { - "sval": "conversion_test_user", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "session_authorization", - }, - }, - "stmt_len": 47, - "stmt_location": 102, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateConversionStmt": { - "conversion_name": [ - { - "String": { - "sval": "myconv", - }, - }, - ], - "for_encoding_name": "LATIN1", - "func_name": [ - { - "String": { - "sval": "iso8859_1_to_utf8", - }, - }, - ], - "to_encoding_name": "UTF8", - }, - }, - "stmt_len": 71, - "stmt_location": 150, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateConversionStmt": { - "conversion_name": [ - { - "String": { - "sval": "myconv", - }, - }, - ], - "for_encoding_name": "LATIN1", - "func_name": [ - { - "String": { - "sval": "iso8859_1_to_utf8", - }, - }, - ], - "to_encoding_name": "UTF8", - }, - }, - "stmt_len": 128, - "stmt_location": 222, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateConversionStmt": { - "conversion_name": [ - { - "String": { - "sval": "public", - }, - }, - { - "String": { - "sval": "mydef", - }, - }, - ], - "def": true, - "for_encoding_name": "LATIN1", - "func_name": [ - { - "String": { - "sval": "iso8859_1_to_utf8", - }, - }, - ], - "to_encoding_name": "UTF8", - }, - }, - "stmt_len": 140, - "stmt_location": 351, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateConversionStmt": { - "conversion_name": [ - { - "String": { - "sval": "public", - }, - }, - { - "String": { - "sval": "mydef2", - }, - }, - ], - "def": true, - "for_encoding_name": "LATIN1", - "func_name": [ - { - "String": { - "sval": "iso8859_1_to_utf8", - }, - }, - ], - "to_encoding_name": "UTF8", - }, - }, - "stmt_len": 168, - "stmt_location": 492, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "foo", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "myconv_bad", - }, - }, - ], - }, - }, - "objtype": "OBJECT_CONVERSION", - }, - }, - "stmt_len": 59, - "stmt_location": 661, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "bar", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "myconv", - }, - }, - ], - }, - }, - "objtype": "OBJECT_CONVERSION", - }, - }, - "stmt_len": 38, - "stmt_location": 721, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "object": { - "List": { - "items": [ - { - "String": { - "sval": "myconv", - }, - }, - ], - }, - }, - "objtype": "OBJECT_CONVERSION", - }, - }, - "stmt_len": 37, - "stmt_location": 760, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "myconv", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_CONVERSION", - }, - }, - "stmt_len": 61, - "stmt_location": 798, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "mydef", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_CONVERSION", - }, - }, - "stmt_len": 22, - "stmt_location": 860, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "session_authorization", - }, - }, - "stmt_len": 174, - "stmt_location": 883, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 1069, - "rolename": "conversion_test_user", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 1058, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/copydml.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 68, - "relname": "copydml_test", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "is_local": true, - "location": 82, - "typeName": { - "location": 85, - "names": [ - { - "String": { - "sval": "serial", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "t", - "is_local": true, - "location": 93, - "typeName": { - "location": 95, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 100, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 128, - "name": "t", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 114, - "relname": "copydml_test", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 139, - "sval": { - "sval": "a", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 101, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 171, - "name": "t", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 157, - "relname": "copydml_test", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 182, - "sval": { - "sval": "b", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 144, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 214, - "name": "t", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 200, - "relname": "copydml_test", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 225, - "sval": { - "sval": "c", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 187, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 257, - "name": "t", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 243, - "relname": "copydml_test", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 268, - "sval": { - "sval": "d", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 230, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 300, - "name": "t", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 286, - "relname": "copydml_test", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 311, - "sval": { - "sval": "e", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 273, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "copydml_test", - }, - }, - { - "String": { - "sval": "qqq", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_RULE", - }, - }, - "stmt_len": 78, - "stmt_location": 316, - }, - }, - { - "RawStmt": { - "stmt": { - "RuleStmt": { - "actions": [ - { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 636, - "relname": "copydml_test", - "relpersistence": "p", - }, - }, - }, - ], - "event": "CMD_INSERT", - "instead": true, - "relation": { - "inh": true, - "location": 581, - "relname": "copydml_test", - "relpersistence": "p", - }, - "rulename": "qqq", - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "new", - }, - }, - { - "String": { - "sval": "t", - }, - }, - ], - "location": 600, - }, - }, - "location": 606, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 609, - "sval": { - "sval": "f", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 253, - "stmt_location": 395, - }, - }, - { - "RawStmt": { - "stmt": { - "RuleStmt": { - "event": "CMD_UPDATE", - "instead": true, - "relation": { - "inh": true, - "location": 683, - "relname": "copydml_test", - "relpersistence": "p", - }, - "rulename": "qqq", - }, - }, - "stmt_len": 65, - "stmt_location": 649, - }, - }, - { - "RawStmt": { - "stmt": { - "RuleStmt": { - "event": "CMD_DELETE", - "instead": true, - "relation": { - "inh": true, - "location": 749, - "relname": "copydml_test", - "relpersistence": "p", - }, - "rulename": "qqq", - }, - }, - "stmt_len": 65, - "stmt_location": 715, - }, - }, - { - "RawStmt": { - "stmt": { - "RuleStmt": { - "actions": [ - { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 869, - "relname": "copydml_test", - "relpersistence": "p", - }, - }, - }, - ], - "event": "CMD_DELETE", - "instead": true, - "relation": { - "inh": true, - "location": 814, - "relname": "copydml_test", - "relpersistence": "p", - }, - "rulename": "qqq", - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "old", - }, - }, - { - "String": { - "sval": "t", - }, - }, - ], - "location": 833, - }, - }, - "location": 839, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 842, - "sval": { - "sval": "f", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 115, - "stmt_location": 781, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "qqq_trig", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -begin -if tg_op in ('INSERT', 'UPDATE') then - raise notice '% %', tg_op, new.id; - return new; -else - raise notice '% %', tg_op, old.id; - return old; -end if; -end -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 954, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 1134, - }, - }, - ], - "returnType": { - "location": 946, - "names": [ - { - "String": { - "sval": "trigger", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 253, - "stmt_location": 897, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateTrigStmt": { - "events": 28, - "funcname": [ - { - "String": { - "sval": "qqq_trig", - }, - }, - ], - "relation": { - "inh": true, - "location": 1211, - "relname": "copydml_test", - "relpersistence": "p", - }, - "row": true, - "timing": 2, - "trigname": "qqqbef", - }, - }, - "stmt_len": 118, - "stmt_location": 1151, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateTrigStmt": { - "events": 28, - "funcname": [ - { - "String": { - "sval": "qqq_trig", - }, - }, - ], - "relation": { - "inh": true, - "location": 1328, - "relname": "copydml_test", - "relpersistence": "p", - }, - "row": true, - "trigname": "qqqaf", - }, - }, - "stmt_len": 116, - "stmt_location": 1270, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/copyselect.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 54, - "relname": "test1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "is_local": true, - "location": 61, - "typeName": { - "location": 64, - "names": [ - { - "String": { - "sval": "serial", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "t", - "is_local": true, - "location": 72, - "typeName": { - "location": 74, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 79, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 100, - "name": "t", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 93, - "relname": "test1", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 111, - "sval": { - "sval": "a", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 35, - "stmt_location": 80, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 136, - "name": "t", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 129, - "relname": "test1", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 147, - "sval": { - "sval": "b", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 35, - "stmt_location": 116, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 172, - "name": "t", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 165, - "relname": "test1", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 183, - "sval": { - "sval": "c", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 35, - "stmt_location": 152, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 208, - "name": "t", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 201, - "relname": "test1", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 219, - "sval": { - "sval": "d", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 35, - "stmt_location": 188, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 244, - "name": "t", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 237, - "relname": "test1", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 255, - "sval": { - "sval": "e", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 35, - "stmt_location": 224, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 275, - "relname": "test2", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "is_local": true, - "location": 282, - "typeName": { - "location": 285, - "names": [ - { - "String": { - "sval": "serial", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "t", - "is_local": true, - "location": 293, - "typeName": { - "location": 295, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 260, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 321, - "name": "t", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 314, - "relname": "test2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 332, - "sval": { - "sval": "A", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 35, - "stmt_location": 301, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 357, - "name": "t", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 350, - "relname": "test2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 368, - "sval": { - "sval": "B", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 35, - "stmt_location": 337, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 393, - "name": "t", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 386, - "relname": "test2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 404, - "sval": { - "sval": "C", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 35, - "stmt_location": 373, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 429, - "name": "t", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 422, - "relname": "test2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 440, - "sval": { - "sval": "D", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 35, - "stmt_location": 409, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 465, - "name": "t", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 458, - "relname": "test2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 476, - "sval": { - "sval": "E", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 35, - "stmt_location": 445, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 526, - "relname": "test1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 513, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "location": 513, - "sval": { - "sval": "v_", - }, - }, - }, - "location": 517, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - ], - "location": 519, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 495, - "relname": "v_test1", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 50, - "stmt_location": 481, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test2", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 46, - "stmt_location": 532, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "v_test1", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_VIEW", - }, - }, - "stmt_len": 18, - "stmt_location": 579, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test1", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 17, - "stmt_location": 598, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 770, - "relname": "test3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 763, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 763, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 159, - "stmt_location": 616, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test3", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 17, - "stmt_location": 776, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/create_aggregate.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 89, - "names": [ - { - "String": { - "sval": "int4_avg_accum", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 81, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 116, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "basetype", - "location": 105, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 130, - "names": [ - { - "String": { - "sval": "_int8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 122, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 152, - "names": [ - { - "String": { - "sval": "int8_avg", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "finalfunc", - "location": 140, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "{0,0}", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "initcond1", - "location": 165, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "newavg", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - "oldstyle": true, - }, - }, - "stmt_len": 186, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "an agg comment", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 241, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 241, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "newavg_wrong", - }, - }, - ], - }, - }, - "objtype": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 79, - "stmt_location": 187, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "an agg comment", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 297, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 297, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "newavg", - }, - }, - ], - }, - }, - "objtype": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 55, - "stmt_location": 267, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 353, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 353, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "newavg", - }, - }, - ], - }, - }, - "objtype": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 43, - "stmt_location": 323, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 466, - "names": [ - { - "String": { - "sval": "int4pl", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc1", - "location": 457, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 485, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "basetype", - "location": 474, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 500, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype1", - "location": 491, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "0", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "initcond1", - "location": 509, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "newsum", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - "oldstyle": true, - }, - }, - "stmt_len": 159, - "stmt_location": 367, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "args": [ - {}, - { - "Integer": { - "ival": -1, - }, - }, - ], - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 597, - "names": [ - { - "String": { - "sval": "int8inc", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 589, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 614, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 606, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "0", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "initcond", - "location": 623, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 650, - "names": [ - { - "String": { - "sval": "safe", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "parallel", - "location": 639, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "newcnt", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 129, - "stmt_location": 527, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 773, - "names": [ - { - "String": { - "sval": "int8inc", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 765, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "ANY", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "basetype", - "location": 782, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 808, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 800, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "0", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "initcond", - "location": 817, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "oldcnt", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - "oldstyle": true, - }, - }, - "stmt_len": 176, - "stmt_location": 657, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "args": [ - { - "List": { - "items": [ - { - "FunctionParameter": { - "argType": { - "location": 915, - "names": [ - { - "String": { - "sval": "any", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - }, - }, - { - "Integer": { - "ival": -1, - }, - }, - ], - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 935, - "names": [ - { - "String": { - "sval": "int8inc_any", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 927, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 956, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 948, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "0", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "initcond", - "location": 965, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "newcnt", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 147, - "stmt_location": 834, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "should fail", - "object": { - "ObjectWithArgs": { - "objname": [ - { - "String": { - "sval": "nosuchagg", - }, - }, - ], - }, - }, - "objtype": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 53, - "stmt_location": 982, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "an agg(*) comment", - "object": { - "ObjectWithArgs": { - "objname": [ - { - "String": { - "sval": "newcnt", - }, - }, - ], - }, - }, - "objtype": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 55, - "stmt_location": 1036, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "an agg(any) comment", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 1122, - "names": [ - { - "String": { - "sval": "any", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 1122, - "names": [ - { - "String": { - "sval": "any", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "newcnt", - }, - }, - ], - }, - }, - "objtype": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 61, - "stmt_location": 1092, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "sum3", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "select $1 + $2 + $3", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 1234, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 1259, - }, - }, - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "strict", - "location": 1272, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "immutable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 1279, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 1205, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 1210, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 1215, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 1229, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 134, - "stmt_location": 1154, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "args": [ - { - "List": { - "items": [ - { - "FunctionParameter": { - "argType": { - "location": 1313, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 1318, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - }, - }, - { - "Integer": { - "ival": -1, - }, - }, - ], - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1337, - "names": [ - { - "String": { - "sval": "sum3", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 1329, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1351, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 1343, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "0", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "initcond", - "location": 1360, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "sum2", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 87, - "stmt_location": 1289, - }, - }, - { - "RawStmt": { - "stmt": { - "CompositeTypeStmt": { - "coldeflist": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 1478, - "typeName": { - "location": 1480, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 1489, - "typeName": { - "location": 1491, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c", - "is_local": true, - "location": 1500, - "typeName": { - "location": 1502, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "typevar": { - "location": 1466, - "relname": "aggtype", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 130, - "stmt_location": 1377, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "aggf_trans", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "select array_append($1,ROW($2,$3,$4)::aggtype)", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 1587, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 1639, - }, - }, - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "strict", - "location": 1652, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "immutable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 1659, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 1537, - "names": [ - { - "String": { - "sval": "aggtype", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 1547, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 1555, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 1563, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 1577, - "names": [ - { - "String": { - "sval": "aggtype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 160, - "stmt_location": 1508, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "aggfns_trans", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "select array_append($1,ROW($2,$3,$4)::aggtype)", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 1750, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 1802, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "immutable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 1815, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 1700, - "names": [ - { - "String": { - "sval": "aggtype", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 1710, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 1718, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 1726, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 1740, - "names": [ - { - "String": { - "sval": "aggtype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 155, - "stmt_location": 1669, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "args": [ - { - "List": { - "items": [ - { - "FunctionParameter": { - "argType": { - "location": 1852, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 1860, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 1868, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - }, - }, - { - "Integer": { - "ival": -1, - }, - }, - ], - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1887, - "names": [ - { - "String": { - "sval": "aggf_trans", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 1879, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 1907, - "names": [ - { - "String": { - "sval": "aggtype", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 1899, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "{}", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "initcond", - "location": 1921, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "aggfstr", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 113, - "stmt_location": 1825, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "args": [ - { - "List": { - "items": [ - { - "FunctionParameter": { - "argType": { - "location": 1965, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 1973, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 1981, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - }, - }, - { - "Integer": { - "ival": -1, - }, - }, - ], - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2000, - "names": [ - { - "String": { - "sval": "aggfns_trans", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 1992, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 2022, - "names": [ - { - "String": { - "sval": "aggtype", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 2014, - }, - }, - { - "DefElem": { - "arg": { - "Integer": { - "ival": 10000, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sspace", - "location": 2033, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "{}", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "initcond", - "location": 2052, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "aggfns", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 130, - "stmt_location": 1939, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "least_accum", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 2172, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "select least($1, min($2[i])) from generate_subscripts($2,1) g(i)", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 2185, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 2122, - "names": [ - { - "String": { - "sval": "anyelement", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 2143, - "names": [ - { - "String": { - "sval": "anyarray", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_VARIADIC", - }, - }, - ], - "returnType": { - "location": 2161, - "names": [ - { - "String": { - "sval": "anyelement", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 186, - "stmt_location": 2070, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "args": [ - { - "List": { - "items": [ - { - "FunctionParameter": { - "argType": { - "location": 2301, - "names": [ - { - "String": { - "sval": "anyarray", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_VARIADIC", - "name": "items", - }, - }, - ], - }, - }, - { - "Integer": { - "ival": -1, - }, - }, - ], - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2323, - "names": [ - { - "String": { - "sval": "anyelement", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 2315, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2343, - "names": [ - { - "String": { - "sval": "least_accum", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 2335, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "least_agg", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 99, - "stmt_location": 2257, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "args": [ - { - "List": { - "items": [ - { - "FunctionParameter": { - "argType": { - "location": 2453, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 2469, - "names": [ - { - "String": { - "sval": "anyelement", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - }, - }, - { - "Integer": { - "ival": 1, - }, - }, - ], - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2493, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 2485, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2513, - "names": [ - { - "String": { - "sval": "ordered_set_transition", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 2505, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2551, - "names": [ - { - "String": { - "sval": "percentile_disc_final", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "finalfunc", - "location": 2539, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "true", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "finalfunc_extra", - "location": 2576, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "my_percentile_disc", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 243, - "stmt_location": 2357, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "args": [ - { - "List": { - "items": [ - { - "FunctionParameter": { - "argType": { - "location": 2637, - "names": [ - { - "String": { - "sval": "any", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_VARIADIC", - }, - }, - ], - }, - }, - { - "Integer": { - "ival": 1, - }, - }, - ], - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2680, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 2672, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2700, - "names": [ - { - "String": { - "sval": "ordered_set_transition_multi", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 2692, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2744, - "names": [ - { - "String": { - "sval": "rank_final", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "finalfunc", - "location": 2732, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "true", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "finalfunc_extra", - "location": 2758, - }, - }, - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "hypothetical", - "location": 2784, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "my_rank", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 197, - "stmt_location": 2601, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "test_percentile_disc", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 2836, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 2852, - "names": [ - { - "String": { - "sval": "anyelement", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 2836, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 2852, - "names": [ - { - "String": { - "sval": "anyelement", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "my_percentile_disc", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 97, - "stmt_location": 2799, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "test_rank", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 2931, - "names": [ - { - "String": { - "sval": "any", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 2931, - "names": [ - { - "String": { - "sval": "any", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_VARIADIC", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "my_rank", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 86, - "stmt_location": 2897, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "args": [ - { - "List": { - "items": [ - { - "FunctionParameter": { - "argType": { - "location": 3046, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - }, - }, - { - "Integer": { - "ival": -1, - }, - }, - ], - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 3068, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 3060, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 3088, - "names": [ - { - "String": { - "sval": "float8pl", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 3080, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 3111, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "mstype", - "location": 3102, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 3132, - "names": [ - { - "String": { - "sval": "float8pl", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "msfunc", - "location": 3123, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 3157, - "names": [ - { - "String": { - "sval": "float8mi", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "minvfunc", - "location": 3146, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "sumdouble", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 183, - "stmt_location": 2984, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "args": [ - { - "List": { - "items": [ - { - "FunctionParameter": { - "argType": { - "location": 3293, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - }, - }, - { - "Integer": { - "ival": -1, - }, - }, - ], - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 3313, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 3305, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 3332, - "names": [ - { - "String": { - "sval": "numeric_avg_accum", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 3324, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 3365, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "serialtype", - "location": 3352, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "myavg", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 207, - "stmt_location": 3168, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "args": [ - { - "List": { - "items": [ - { - "FunctionParameter": { - "argType": { - "location": 3470, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - }, - }, - { - "Integer": { - "ival": -1, - }, - }, - ], - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 3490, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 3482, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 3509, - "names": [ - { - "String": { - "sval": "numeric_avg_accum", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 3501, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 3542, - "names": [ - { - "String": { - "sval": "bytea", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "serialtype", - "location": 3529, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "myavg", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 173, - "stmt_location": 3376, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "args": [ - { - "List": { - "items": [ - { - "FunctionParameter": { - "argType": { - "location": 3576, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - }, - }, - { - "Integer": { - "ival": -1, - }, - }, - ], - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 3596, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 3588, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 3615, - "names": [ - { - "String": { - "sval": "numeric_avg_accum", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 3607, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 3648, - "names": [ - { - "String": { - "sval": "bytea", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "serialtype", - "location": 3635, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 3669, - "names": [ - { - "String": { - "sval": "numeric_avg_serialize", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "serialfunc", - "location": 3656, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "myavg", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 142, - "stmt_location": 3550, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "args": [ - { - "List": { - "items": [ - { - "FunctionParameter": { - "argType": { - "location": 3762, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - }, - }, - { - "Integer": { - "ival": -1, - }, - }, - ], - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 3782, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 3774, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 3801, - "names": [ - { - "String": { - "sval": "numeric_avg_accum", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 3793, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 3834, - "names": [ - { - "String": { - "sval": "bytea", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "serialtype", - "location": 3821, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 3855, - "names": [ - { - "String": { - "sval": "numeric_avg_deserialize", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "serialfunc", - "location": 3842, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 3896, - "names": [ - { - "String": { - "sval": "numeric_avg_deserialize", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "deserialfunc", - "location": 3881, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "myavg", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 228, - "stmt_location": 3693, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "args": [ - { - "List": { - "items": [ - { - "FunctionParameter": { - "argType": { - "location": 3993, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - }, - }, - { - "Integer": { - "ival": -1, - }, - }, - ], - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 4013, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 4005, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 4032, - "names": [ - { - "String": { - "sval": "numeric_avg_accum", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 4024, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 4065, - "names": [ - { - "String": { - "sval": "bytea", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "serialtype", - "location": 4052, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 4086, - "names": [ - { - "String": { - "sval": "numeric_avg_serialize", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "serialfunc", - "location": 4073, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 4125, - "names": [ - { - "String": { - "sval": "numeric_avg_serialize", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "deserialfunc", - "location": 4110, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "myavg", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 226, - "stmt_location": 3922, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "args": [ - { - "List": { - "items": [ - { - "FunctionParameter": { - "argType": { - "location": 4222, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - }, - }, - { - "Integer": { - "ival": -1, - }, - }, - ], - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 4242, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 4234, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 4261, - "names": [ - { - "String": { - "sval": "numeric_avg_accum", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 4253, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 4294, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "serialtype", - "location": 4281, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 4314, - "names": [ - { - "String": { - "sval": "numeric_avg_serialize", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "serialfunc", - "location": 4301, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 4353, - "names": [ - { - "String": { - "sval": "numeric_avg_deserialize", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "deserialfunc", - "location": 4338, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "myavg", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 229, - "stmt_location": 4149, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "args": [ - { - "List": { - "items": [ - { - "FunctionParameter": { - "argType": { - "location": 4455, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - }, - }, - { - "Integer": { - "ival": -1, - }, - }, - ], - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 4475, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 4467, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 4494, - "names": [ - { - "String": { - "sval": "numeric_avg_accum", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 4486, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 4527, - "names": [ - { - "String": { - "sval": "bytea", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "serialtype", - "location": 4514, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 4548, - "names": [ - { - "String": { - "sval": "numeric_avg_serialize", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "serialfunc", - "location": 4535, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 4587, - "names": [ - { - "String": { - "sval": "numeric_avg_deserialize", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "deserialfunc", - "location": 4572, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 4627, - "names": [ - { - "String": { - "sval": "int4larger", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "combinefunc", - "location": 4613, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "myavg", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 260, - "stmt_location": 4379, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "args": [ - { - "List": { - "items": [ - { - "FunctionParameter": { - "argType": { - "location": 4700, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - }, - }, - { - "Integer": { - "ival": -1, - }, - }, - ], - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 4720, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 4712, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 4739, - "names": [ - { - "String": { - "sval": "numeric_avg_accum", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 4731, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 4771, - "names": [ - { - "String": { - "sval": "numeric_avg", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "finalfunc", - "location": 4759, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 4798, - "names": [ - { - "String": { - "sval": "bytea", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "serialtype", - "location": 4785, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 4819, - "names": [ - { - "String": { - "sval": "numeric_avg_serialize", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "serialfunc", - "location": 4806, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 4858, - "names": [ - { - "String": { - "sval": "numeric_avg_deserialize", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "deserialfunc", - "location": 4843, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 4898, - "names": [ - { - "String": { - "sval": "numeric_avg_combine", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "combinefunc", - "location": 4884, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "myavg", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 279, - "stmt_location": 4640, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5075, - "relname": "pg_aggregate", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4984, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aggfnoid", - }, - }, - ], - "location": 4984, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4993, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aggtransfn", - }, - }, - ], - "location": 4993, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5004, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aggcombinefn", - }, - }, - ], - "location": 5004, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5017, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aggtranstype", - }, - }, - ], - "location": 5017, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5030, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aggserialfn", - }, - }, - ], - "location": 5030, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5042, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aggdeserialfn", - }, - }, - ], - "location": 5042, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5056, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aggserialtype", - }, - }, - ], - "location": 5056, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aggfnoid", - }, - }, - ], - "location": 5094, - }, - }, - "location": 5103, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5105, - "sval": { - "sval": "myavg", - }, - }, - }, - "location": 5112, - "typeName": { - "location": 5114, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 201, - "stmt_location": 4920, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 5146, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 5146, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "myavg", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 32, - "stmt_location": 5122, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "args": [ - { - "List": { - "items": [ - { - "FunctionParameter": { - "argType": { - "location": 5221, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - }, - }, - { - "Integer": { - "ival": -1, - }, - }, - ], - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 5237, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 5229, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 5251, - "names": [ - { - "String": { - "sval": "int4pl", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 5243, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 5271, - "names": [ - { - "String": { - "sval": "pear", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "parallel", - "location": 5260, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "mysum", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 122, - "stmt_location": 5155, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "float8mi_n", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " SELECT $1 - $2; ", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 5398, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 5423, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 5367, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 5375, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 5391, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 157, - "stmt_location": 5278, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "args": [ - { - "List": { - "items": [ - { - "FunctionParameter": { - "argType": { - "location": 5473, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - }, - }, - { - "Integer": { - "ival": -1, - }, - }, - ], - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 5495, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 5487, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 5515, - "names": [ - { - "String": { - "sval": "float8pl", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 5507, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 5538, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "mstype", - "location": 5529, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 5559, - "names": [ - { - "String": { - "sval": "float8pl", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "msfunc", - "location": 5550, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 5584, - "names": [ - { - "String": { - "sval": "float8mi_n", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "minvfunc", - "location": 5573, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "invalidsumdouble", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 160, - "stmt_location": 5436, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "float8mi_int", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " SELECT CAST($1 - $2 AS INT); ", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 5695, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 5733, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 5667, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 5675, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 5691, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 148, - "stmt_location": 5597, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "args": [ - { - "List": { - "items": [ - { - "FunctionParameter": { - "argType": { - "location": 5782, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - }, - }, - { - "Integer": { - "ival": -1, - }, - }, - ], - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 5804, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 5796, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 5824, - "names": [ - { - "String": { - "sval": "float8pl", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 5816, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 5847, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "mstype", - "location": 5838, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 5868, - "names": [ - { - "String": { - "sval": "float8pl", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "msfunc", - "location": 5859, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 5893, - "names": [ - { - "String": { - "sval": "float8mi_int", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "minvfunc", - "location": 5882, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "wrongreturntype", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 161, - "stmt_location": 5746, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/create_am.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateAmStmt": { - "amname": "gist2", - "amtype": "i", - "handler_name": [ - { - "String": { - "sval": "gisthandler", - }, - }, - ], - }, - }, - "stmt_len": 166, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "gist2", - "idxname": "grect2ind2", - "indexParams": [ - { - "IndexElem": { - "name": "home_base", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 277, - "relname": "fast_emp4000", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 146, - "stmt_location": 167, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateOpClassStmt": { - "amname": "gist2", - "datatype": { - "location": 409, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - "isDefault": true, - "items": [ - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objname": [ - { - "String": { - "sval": "<<", - }, - }, - ], - }, - "number": 1, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objname": [ - { - "String": { - "sval": "&<", - }, - }, - ], - }, - "number": 2, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objname": [ - { - "String": { - "sval": "&&", - }, - }, - ], - }, - "number": 3, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objname": [ - { - "String": { - "sval": "&>", - }, - }, - ], - }, - "number": 4, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objname": [ - { - "String": { - "sval": ">>", - }, - }, - ], - }, - "number": 5, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objname": [ - { - "String": { - "sval": "~=", - }, - }, - ], - }, - "number": 6, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objname": [ - { - "String": { - "sval": "@>", - }, - }, - ], - }, - "number": 7, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objname": [ - { - "String": { - "sval": "<@", - }, - }, - ], - }, - "number": 8, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objname": [ - { - "String": { - "sval": "&<|", - }, - }, - ], - }, - "number": 9, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objname": [ - { - "String": { - "sval": "<<|", - }, - }, - ], - }, - "number": 10, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objname": [ - { - "String": { - "sval": "|>>", - }, - }, - ], - }, - "number": 11, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objname": [ - { - "String": { - "sval": "|&>", - }, - }, - ], - }, - "number": 12, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objname": [ - { - "String": { - "sval": "~", - }, - }, - ], - }, - "number": 13, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objname": [ - { - "String": { - "sval": "@", - }, - }, - ], - }, - "number": 14, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 2, - "name": { - "objargs": [ - { - "TypeName": { - "location": 691, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 701, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 706, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 716, - "names": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 721, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 691, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 701, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 706, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 716, - "names": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 721, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "gist_box_consistent", - }, - }, - ], - }, - "number": 1, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 2, - "name": { - "objargs": [ - { - "TypeName": { - "location": 759, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 769, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 759, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 769, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "gist_box_union", - }, - }, - ], - }, - "number": 2, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 2, - "name": { - "objargs": [ - { - "TypeName": { - "location": 810, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 810, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "gist_box_compress", - }, - }, - ], - }, - "number": 3, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 2, - "name": { - "objargs": [ - { - "TypeName": { - "location": 853, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 853, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "gist_box_decompress", - }, - }, - ], - }, - "number": 4, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 2, - "name": { - "objargs": [ - { - "TypeName": { - "location": 893, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 903, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 913, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 893, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 903, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 913, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "gist_box_penalty", - }, - }, - ], - }, - "number": 5, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 2, - "name": { - "objargs": [ - { - "TypeName": { - "location": 955, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 965, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 955, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 965, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "gist_box_picksplit", - }, - }, - ], - }, - "number": 6, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 2, - "name": { - "objargs": [ - { - "TypeName": { - "location": 1002, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 1007, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 1012, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 1002, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 1007, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 1012, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "gist_box_same", - }, - }, - ], - }, - "number": 7, - }, - }, - { - "CreateOpClassItem": { - "itemtype": 2, - "name": { - "objargs": [ - { - "TypeName": { - "location": 1050, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 1050, - "names": [ - { - "String": { - "sval": "internal", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "gist_box_fetch", - }, - }, - ], - }, - "number": 9, - }, - }, - ], - "opclassname": [ - { - "String": { - "sval": "box_ops", - }, - }, - ], - }, - }, - "stmt_len": 745, - "stmt_location": 314, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "gist2", - "idxname": "grect2ind2", - "indexParams": [ - { - "IndexElem": { - "name": "home_base", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 1127, - "relname": "fast_emp4000", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 103, - "stmt_location": 1060, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 137, - "stmt_location": 1164, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "grect2ind", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_INDEX", - }, - }, - "stmt_len": 21, - "stmt_location": 1302, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 1346, - "sval": { - "sval": "off", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_seqscan", - }, - }, - "stmt_len": 25, - "stmt_location": 1324, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 1374, - "sval": { - "sval": "on", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_indexscan", - }, - }, - "stmt_len": 26, - "stmt_location": 1350, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 1402, - "sval": { - "sval": "off", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_bitmapscan", - }, - }, - "stmt_len": 28, - "stmt_location": 1377, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 1417, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1442, - "relname": "fast_emp4000", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Indirection": { - "arg": { - "A_Indirection": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "home_base", - }, - }, - ], - "location": 1520, - }, - }, - "indirection": [ - { - "A_Indices": { - "uidx": { - "A_Const": { - "ival": {}, - "location": 1530, - }, - }, - }, - }, - ], - }, - }, - "indirection": [ - { - "A_Indices": { - "uidx": { - "A_Const": { - "ival": {}, - "location": 1534, - }, - }, - }, - }, - ], - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1435, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1435, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "home_base", - }, - }, - ], - "location": 1465, - }, - }, - "location": 1475, - "name": [ - { - "String": { - "sval": "@", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1477, - "sval": { - "sval": "(200,200),(2000,1000)", - }, - }, - }, - "location": 1500, - "typeName": { - "location": 1502, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 130, - "stmt_location": 1406, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1552, - "relname": "fast_emp4000", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Indirection": { - "arg": { - "A_Indirection": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "home_base", - }, - }, - ], - "location": 1630, - }, - }, - "indirection": [ - { - "A_Indices": { - "uidx": { - "A_Const": { - "ival": {}, - "location": 1640, - }, - }, - }, - }, - ], - }, - }, - "indirection": [ - { - "A_Indices": { - "uidx": { - "A_Const": { - "ival": {}, - "location": 1644, - }, - }, - }, - }, - ], - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1545, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1545, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "home_base", - }, - }, - ], - "location": 1575, - }, - }, - "location": 1585, - "name": [ - { - "String": { - "sval": "@", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1587, - "sval": { - "sval": "(200,200),(2000,1000)", - }, - }, - }, - "location": 1610, - "typeName": { - "location": 1612, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 109, - "stmt_location": 1537, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 1658, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1690, - "relname": "fast_emp4000", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1676, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 1676, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "home_base", - }, - }, - ], - "location": 1709, - }, - }, - "location": 1719, - "name": [ - { - "String": { - "sval": "&&", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1722, - "sval": { - "sval": "(1000,1000,0,0)", - }, - }, - }, - "location": 1739, - "typeName": { - "location": 1741, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 97, - "stmt_location": 1647, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1767, - "relname": "fast_emp4000", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1753, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 1753, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "home_base", - }, - }, - ], - "location": 1786, - }, - }, - "location": 1796, - "name": [ - { - "String": { - "sval": "&&", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1799, - "sval": { - "sval": "(1000,1000,0,0)", - }, - }, - }, - "location": 1816, - "typeName": { - "location": 1818, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 76, - "stmt_location": 1745, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 1833, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1865, - "relname": "fast_emp4000", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1851, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 1851, - }, - }, - }, - }, - ], - "whereClause": { - "NullTest": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "home_base", - }, - }, - ], - "location": 1884, - }, - }, - "location": 1894, - "nulltesttype": "IS_NULL", - }, - }, - }, - }, - }, - }, - "stmt_len": 79, - "stmt_location": 1822, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1924, - "relname": "fast_emp4000", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1910, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 1910, - }, - }, - }, - }, - ], - "whereClause": { - "NullTest": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "home_base", - }, - }, - ], - "location": 1943, - }, - }, - "location": 1953, - "nulltesttype": "IS_NULL", - }, - }, - }, - }, - "stmt_len": 58, - "stmt_location": 1902, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 10, - "stmt_location": 1961, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "gist2", - }, - }, - ], - "removeType": "OBJECT_ACCESS_METHOD", - }, - }, - "stmt_len": 90, - "stmt_location": 1972, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "String": { - "sval": "gist2", - }, - }, - ], - "removeType": "OBJECT_ACCESS_METHOD", - }, - }, - "stmt_len": 64, - "stmt_location": 2063, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/create_cast.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "defnames": [ - { - "String": { - "sval": "casttesttype", - }, - }, - ], - "kind": "OBJECT_TYPE", - }, - }, - "stmt_len": 80, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "casttesttype_in", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "textin", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 151, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "internal", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 166, - }, - }, - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "strict", - "location": 184, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "immutable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 191, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 115, - "names": [ - { - "String": { - "sval": "cstring", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 135, - "names": [ - { - "String": { - "sval": "casttesttype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 119, - "stmt_location": 81, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "casttesttype_out", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "textout", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 271, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "internal", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 287, - }, - }, - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "strict", - "location": 305, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "immutable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 312, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 235, - "names": [ - { - "String": { - "sval": "casttesttype", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 260, - "names": [ - { - "String": { - "sval": "cstring", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 120, - "stmt_location": 201, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 371, - "names": [ - { - "String": { - "sval": "variable", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "internallength", - "location": 354, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 392, - "names": [ - { - "String": { - "sval": "casttesttype_in", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "input", - "location": 384, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 421, - "names": [ - { - "String": { - "sval": "casttesttype_out", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "output", - "location": 412, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 454, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "alignment", - "location": 442, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "casttesttype", - }, - }, - ], - "kind": "OBJECT_TYPE", - }, - }, - "stmt_len": 138, - "stmt_location": 322, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "casttestfunc", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 552, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " SELECT 1; ", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 565, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 525, - "names": [ - { - "String": { - "sval": "casttesttype", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 547, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 122, - "stmt_location": 461, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 593, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 606, - "sval": { - "sval": "foo", - }, - }, - }, - "location": 611, - "typeName": { - "location": 613, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "casttestfunc", - }, - }, - ], - "location": 593, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 584, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateCastStmt": { - "context": "COERCION_EXPLICIT", - "sourcetype": { - "location": 691, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - "targettype": { - "location": 699, - "names": [ - { - "String": { - "sval": "casttesttype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 110, - "stmt_location": 619, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 738, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 751, - "sval": { - "sval": "foo", - }, - }, - }, - "location": 756, - "typeName": { - "location": 758, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "casttestfunc", - }, - }, - ], - "location": 738, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 730, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 813, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 826, - "sval": { - "sval": "foo", - }, - }, - }, - "location": 831, - "typeName": { - "location": 833, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 837, - "typeName": { - "location": 839, - "names": [ - { - "String": { - "sval": "casttesttype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "casttestfunc", - }, - }, - ], - "location": 813, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 88, - "stmt_location": 764, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "TypeName": { - "location": 880, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 888, - "names": [ - { - "String": { - "sval": "casttesttype", - }, - }, - ], - "typemod": -1, - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_CAST", - }, - }, - "stmt_len": 48, - "stmt_location": 853, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateCastStmt": { - "context": "COERCION_IMPLICIT", - "sourcetype": { - "location": 965, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - "targettype": { - "location": 973, - "names": [ - { - "String": { - "sval": "casttesttype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 113, - "stmt_location": 902, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1024, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1037, - "sval": { - "sval": "foo", - }, - }, - }, - "location": 1042, - "typeName": { - "location": 1044, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "casttestfunc", - }, - }, - ], - "location": 1024, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 1016, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1106, - "val": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 1234, - }, - "location": 1106, - }, - }, - "location": 1110, - "typeName": { - "location": 1112, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1116, - "typeName": { - "location": 1118, - "names": [ - { - "String": { - "sval": "casttesttype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 80, - "stmt_location": 1050, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateCastStmt": { - "context": "COERCION_EXPLICIT", - "inout": true, - "sourcetype": { - "location": 1174, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "targettype": { - "location": 1182, - "names": [ - { - "String": { - "sval": "casttesttype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 75, - "stmt_location": 1131, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1215, - "val": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 1234, - }, - "location": 1215, - }, - }, - "location": 1219, - "typeName": { - "location": 1221, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1225, - "typeName": { - "location": 1227, - "names": [ - { - "String": { - "sval": "casttesttype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 1207, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "TypeName": { - "location": 1272, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 1280, - "names": [ - { - "String": { - "sval": "casttesttype", - }, - }, - ], - "typemod": -1, - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_CAST", - }, - }, - "stmt_len": 53, - "stmt_location": 1240, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "int4_casttesttype", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 1386, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " SELECT ('foo'::text || $1::text)::casttesttype; ", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 1399, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 1359, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 1373, - "names": [ - { - "String": { - "sval": "casttesttype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 161, - "stmt_location": 1294, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateCastStmt": { - "context": "COERCION_IMPLICIT", - "func": { - "objargs": [ - { - "TypeName": { - "location": 1525, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 1525, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "int4_casttesttype", - }, - }, - ], - }, - "sourcetype": { - "location": 1471, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "targettype": { - "location": 1479, - "names": [ - { - "String": { - "sval": "casttesttype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 86, - "stmt_location": 1456, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1551, - "val": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 1234, - }, - "location": 1551, - }, - }, - "location": 1555, - "typeName": { - "location": 1557, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1561, - "typeName": { - "location": 1563, - "names": [ - { - "String": { - "sval": "casttesttype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 1543, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/create_function_3.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "role": "regtest_unpriv_user", - "stmt_type": "ROLESTMT_USER", - }, - }, - "stmt_len": 118, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateSchemaStmt": { - "schemaname": "temp_func_test", - }, - }, - "stmt_len": 30, - "stmt_location": 119, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 189, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "String": { - "sval": "temp_func_test", - }, - }, - ], - "objtype": "OBJECT_SCHEMA", - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 45, - "stmt_location": 150, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 217, - "sval": { - "sval": "temp_func_test", - }, - }, - }, - { - "A_Const": { - "location": 233, - "sval": { - "sval": "public", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "search_path", - }, - }, - "stmt_len": 43, - "stmt_location": 196, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "functest_a_1", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 331, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "SELECT $1 = 'abcd' AND $2 > '2001-01-01'", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 353, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 306, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 312, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 326, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 162, - "stmt_location": 240, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "functest_a_2", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 453, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "SELECT $1[0]::int", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 475, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 433, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 449, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 94, - "stmt_location": 403, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "functest_a_3", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 543, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "SELECT false", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 565, - }, - }, - ], - "returnType": { - "location": 538, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 84, - "stmt_location": 498, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 649, - "relname": "pg_proc", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proname", - }, - }, - ], - "location": 804, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 591, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proname", - }, - }, - ], - "location": 591, - }, - }, - }, - }, - { - "ResTarget": { - "location": 600, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "prorettype", - }, - }, - ], - "location": 600, - }, - }, - "location": 610, - "typeName": { - "location": 612, - "names": [ - { - "String": { - "sval": "regtype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 621, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proargtypes", - }, - }, - ], - "location": 621, - }, - }, - "location": 632, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 634, - "names": [ - { - "String": { - "sval": "regtype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 670, - }, - }, - "location": 674, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 678, - "sval": { - "sval": "functest_A_1", - }, - }, - }, - "location": 692, - "typeName": { - "location": 694, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 724, - "sval": { - "sval": "functest_A_2", - }, - }, - }, - "location": 738, - "typeName": { - "location": 740, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 770, - "sval": { - "sval": "functest_A_3", - }, - }, - }, - "location": 784, - "typeName": { - "location": 786, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 228, - "stmt_location": 583, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "functest_b_1", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 900, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "SELECT $1 > 0", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 922, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 882, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 895, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 128, - "stmt_location": 812, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "functest_b_2", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 989, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "immutable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 1011, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "SELECT $1 > 0", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 1021, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 971, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 984, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 98, - "stmt_location": 941, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "functest_b_3", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 1088, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "stable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 1110, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "SELECT $1 = 0", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 1117, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 1070, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 1083, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 95, - "stmt_location": 1040, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "functest_b_4", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 1184, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "volatile", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 1206, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "SELECT $1 < 0", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 1215, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 1166, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 1179, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 97, - "stmt_location": 1136, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1268, - "relname": "pg_proc", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proname", - }, - }, - ], - "location": 1455, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1242, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proname", - }, - }, - ], - "location": 1242, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1251, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "provolatile", - }, - }, - ], - "location": 1251, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 1289, - }, - }, - "location": 1293, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1297, - "sval": { - "sval": "functest_B_1", - }, - }, - }, - "location": 1311, - "typeName": { - "location": 1313, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1343, - "sval": { - "sval": "functest_B_2", - }, - }, - }, - "location": 1357, - "typeName": { - "location": 1359, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1389, - "sval": { - "sval": "functest_B_3", - }, - }, - }, - "location": 1403, - "typeName": { - "location": 1405, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1421, - "sval": { - "sval": "functest_B_4", - }, - }, - }, - "location": 1435, - "typeName": { - "location": 1437, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 228, - "stmt_location": 1234, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterFunctionStmt": { - "actions": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "volatile", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 1498, - }, - }, - ], - "func": { - "objargs": [ - { - "TypeName": { - "location": 1493, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 1493, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "functest_b_2", - }, - }, - ], - }, - "objtype": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 43, - "stmt_location": 1463, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterFunctionStmt": { - "actions": [ - { - "DefElem": { - "arg": { - "Integer": { - "ival": 100, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "cost", - "location": 1541, - }, - }, - ], - "func": { - "objargs": [ - { - "TypeName": { - "location": 1536, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 1536, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "functest_b_3", - }, - }, - ], - }, - "objtype": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 42, - "stmt_location": 1507, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1615, - "relname": "pg_proc", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proname", - }, - }, - ], - "location": 1802, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1589, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proname", - }, - }, - ], - "location": 1589, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1598, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "provolatile", - }, - }, - ], - "location": 1598, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 1636, - }, - }, - "location": 1640, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1644, - "sval": { - "sval": "functest_B_1", - }, - }, - }, - "location": 1658, - "typeName": { - "location": 1660, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1690, - "sval": { - "sval": "functest_B_2", - }, - }, - }, - "location": 1704, - "typeName": { - "location": 1706, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1736, - "sval": { - "sval": "functest_B_3", - }, - }, - }, - "location": 1750, - "typeName": { - "location": 1752, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1768, - "sval": { - "sval": "functest_B_4", - }, - }, - }, - "location": 1782, - "typeName": { - "location": 1784, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 259, - "stmt_location": 1550, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "functext_c_1", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 1895, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "SELECT $1 > 0", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 1917, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 1877, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 1890, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 125, - "stmt_location": 1810, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "functext_c_2", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 1984, - }, - }, - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "security", - "location": 2006, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "SELECT $1 = 0", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 2023, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 1966, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 1979, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 105, - "stmt_location": 1936, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "functext_c_3", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 2090, - }, - }, - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": false, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "security", - "location": 2112, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "SELECT $1 < 0", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 2129, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 2072, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 2085, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 105, - "stmt_location": 2042, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2180, - "relname": "pg_proc", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proname", - }, - }, - ], - "location": 2335, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2156, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proname", - }, - }, - ], - "location": 2156, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2165, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "prosecdef", - }, - }, - ], - "location": 2165, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 2201, - }, - }, - "location": 2205, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2209, - "sval": { - "sval": "functext_C_1", - }, - }, - }, - "location": 2223, - "typeName": { - "location": 2225, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2255, - "sval": { - "sval": "functext_C_2", - }, - }, - }, - "location": 2269, - "typeName": { - "location": 2271, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2301, - "sval": { - "sval": "functext_C_3", - }, - }, - }, - "location": 2315, - "typeName": { - "location": 2317, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 194, - "stmt_location": 2148, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterFunctionStmt": { - "actions": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "immutable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 2378, - }, - }, - ], - "func": { - "objargs": [ - { - "TypeName": { - "location": 2373, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 2373, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "functext_c_1", - }, - }, - ], - }, - "objtype": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 44, - "stmt_location": 2343, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterFunctionStmt": { - "actions": [ - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": false, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "security", - "location": 2453, - }, - }, - ], - "func": { - "objargs": [ - { - "TypeName": { - "location": 2448, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 2448, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "functext_c_2", - }, - }, - ], - }, - "objtype": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 81, - "stmt_location": 2388, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterFunctionStmt": { - "actions": [ - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "security", - "location": 2504, - }, - }, - ], - "func": { - "objargs": [ - { - "TypeName": { - "location": 2499, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 2499, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "functext_c_3", - }, - }, - ], - }, - "objtype": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 50, - "stmt_location": 2470, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2553, - "relname": "pg_proc", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proname", - }, - }, - ], - "location": 2708, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2529, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proname", - }, - }, - ], - "location": 2529, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2538, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "prosecdef", - }, - }, - ], - "location": 2538, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 2574, - }, - }, - "location": 2578, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2582, - "sval": { - "sval": "functext_C_1", - }, - }, - }, - "location": 2596, - "typeName": { - "location": 2598, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2628, - "sval": { - "sval": "functext_C_2", - }, - }, - }, - "location": 2642, - "typeName": { - "location": 2644, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2674, - "sval": { - "sval": "functext_C_3", - }, - }, - }, - "location": 2688, - "typeName": { - "location": 2690, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 194, - "stmt_location": 2521, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "functext_e_1", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 2784, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "SELECT $1 > 100", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 2806, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 2766, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 2779, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 110, - "stmt_location": 2716, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "functext_e_2", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 2875, - }, - }, - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leakproof", - "location": 2897, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "SELECT $1 > 100", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 2907, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 2857, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 2870, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 100, - "stmt_location": 2827, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2963, - "relname": "pg_proc", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proname", - }, - }, - ], - "location": 3072, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2936, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proname", - }, - }, - ], - "location": 2936, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2945, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proleakproof", - }, - }, - ], - "location": 2945, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 2984, - }, - }, - "location": 2988, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2992, - "sval": { - "sval": "functext_E_1", - }, - }, - }, - "location": 3006, - "typeName": { - "location": 3008, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3038, - "sval": { - "sval": "functext_E_2", - }, - }, - }, - "location": 3052, - "typeName": { - "location": 3054, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 151, - "stmt_location": 2928, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterFunctionStmt": { - "actions": [ - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leakproof", - "location": 3115, - }, - }, - ], - "func": { - "objargs": [ - { - "TypeName": { - "location": 3110, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 3110, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "functext_e_1", - }, - }, - ], - }, - "objtype": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 44, - "stmt_location": 3080, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterFunctionStmt": { - "actions": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "stable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 3159, - }, - }, - ], - "func": { - "objargs": [ - { - "TypeName": { - "location": 3154, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 3154, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "functext_e_2", - }, - }, - ], - }, - "objtype": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 40, - "stmt_location": 3125, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3232, - "relname": "pg_proc", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proname", - }, - }, - ], - "location": 3341, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3205, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proname", - }, - }, - ], - "location": 3205, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3214, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proleakproof", - }, - }, - ], - "location": 3214, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3253, - }, - }, - "location": 3257, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3261, - "sval": { - "sval": "functext_E_1", - }, - }, - }, - "location": 3275, - "typeName": { - "location": 3277, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3307, - "sval": { - "sval": "functext_E_2", - }, - }, - }, - "location": 3321, - "typeName": { - "location": 3323, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 182, - "stmt_location": 3166, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterFunctionStmt": { - "actions": [ - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": false, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leakproof", - "location": 3384, - }, - }, - ], - "func": { - "objargs": [ - { - "TypeName": { - "location": 3379, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 3379, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "functext_e_2", - }, - }, - ], - }, - "objtype": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 48, - "stmt_location": 3349, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3463, - "relname": "pg_proc", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proname", - }, - }, - ], - "location": 3572, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3436, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proname", - }, - }, - ], - "location": 3436, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3445, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proleakproof", - }, - }, - ], - "location": 3445, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3484, - }, - }, - "location": 3488, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3492, - "sval": { - "sval": "functext_E_1", - }, - }, - }, - "location": 3506, - "typeName": { - "location": 3508, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3538, - "sval": { - "sval": "functext_E_2", - }, - }, - }, - "location": 3552, - "typeName": { - "location": 3554, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 181, - "stmt_location": 3398, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 3699, - "rolename": "regtest_unpriv_user", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 3685, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 3685, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "functext_e_1", - }, - }, - ], - }, - }, - "objectType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 138, - "stmt_location": 3580, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 3762, - "rolename": "regtest_unpriv_user", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 3748, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 3748, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "functext_e_2", - }, - }, - ], - }, - }, - "objectType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 62, - "stmt_location": 3719, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 3810, - "sval": { - "sval": "regtest_unpriv_user", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "session_authorization", - }, - }, - "stmt_len": 47, - "stmt_location": 3782, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 3850, - "sval": { - "sval": "temp_func_test", - }, - }, - }, - { - "A_Const": { - "location": 3866, - "sval": { - "sval": "public", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "search_path", - }, - }, - "stmt_len": 42, - "stmt_location": 3830, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterFunctionStmt": { - "actions": [ - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": false, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leakproof", - "location": 3907, - }, - }, - ], - "func": { - "objargs": [ - { - "TypeName": { - "location": 3902, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 3902, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "functext_e_1", - }, - }, - ], - }, - "objtype": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 47, - "stmt_location": 3873, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterFunctionStmt": { - "actions": [ - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leakproof", - "location": 3955, - }, - }, - ], - "func": { - "objargs": [ - { - "TypeName": { - "location": 3950, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 3950, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "functext_e_2", - }, - }, - ], - }, - "objtype": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 43, - "stmt_location": 3921, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "functext_e_3", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 4014, - }, - }, - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leakproof", - "location": 4036, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "SELECT $1 < 200", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 4046, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 3996, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 4009, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 101, - "stmt_location": 3965, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "session_authorization", - }, - }, - "stmt_len": 39, - "stmt_location": 4067, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "functext_f_1", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 4224, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "SELECT $1 > 50", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 4246, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 4206, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 4219, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 158, - "stmt_location": 4107, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "functext_f_2", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 4314, - }, - }, - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": false, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "strict", - "location": 4336, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "SELECT $1 = 50", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 4357, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 4296, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 4309, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 110, - "stmt_location": 4266, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "functext_f_3", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 4425, - }, - }, - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "strict", - "location": 4447, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "SELECT $1 < 50", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 4474, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 4407, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 4420, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 116, - "stmt_location": 4377, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "functext_f_4", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 4542, - }, - }, - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "strict", - "location": 4564, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "SELECT $1 = 50", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 4571, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 4524, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 4537, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 96, - "stmt_location": 4494, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4625, - "relname": "pg_proc", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proname", - }, - }, - ], - "location": 4826, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 4599, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proname", - }, - }, - ], - "location": 4599, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4608, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proisstrict", - }, - }, - ], - "location": 4608, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 4646, - }, - }, - "location": 4650, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4654, - "sval": { - "sval": "functext_F_1", - }, - }, - }, - "location": 4668, - "typeName": { - "location": 4670, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4700, - "sval": { - "sval": "functext_F_2", - }, - }, - }, - "location": 4714, - "typeName": { - "location": 4716, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4746, - "sval": { - "sval": "functext_F_3", - }, - }, - }, - "location": 4760, - "typeName": { - "location": 4762, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4792, - "sval": { - "sval": "functext_F_4", - }, - }, - }, - "location": 4806, - "typeName": { - "location": 4808, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 242, - "stmt_location": 4591, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterFunctionStmt": { - "actions": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "immutable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 4869, - }, - }, - ], - "func": { - "objargs": [ - { - "TypeName": { - "location": 4864, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 4864, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "functext_f_1", - }, - }, - ], - }, - "objtype": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 44, - "stmt_location": 4834, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterFunctionStmt": { - "actions": [ - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "strict", - "location": 4944, - }, - }, - ], - "func": { - "objargs": [ - { - "TypeName": { - "location": 4939, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 4939, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "functext_f_2", - }, - }, - ], - }, - "objtype": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 71, - "stmt_location": 4879, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterFunctionStmt": { - "actions": [ - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": false, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "strict", - "location": 4985, - }, - }, - ], - "func": { - "objargs": [ - { - "TypeName": { - "location": 4980, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 4980, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "functext_f_3", - }, - }, - ], - }, - "objtype": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 54, - "stmt_location": 4951, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5040, - "relname": "pg_proc", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proname", - }, - }, - ], - "location": 5241, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 5014, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proname", - }, - }, - ], - "location": 5014, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5023, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proisstrict", - }, - }, - ], - "location": 5023, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 5061, - }, - }, - "location": 5065, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5069, - "sval": { - "sval": "functext_F_1", - }, - }, - }, - "location": 5083, - "typeName": { - "location": 5085, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5115, - "sval": { - "sval": "functext_F_2", - }, - }, - }, - "location": 5129, - "typeName": { - "location": 5131, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5161, - "sval": { - "sval": "functext_F_3", - }, - }, - }, - "location": 5175, - "typeName": { - "location": 5177, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5207, - "sval": { - "sval": "functext_F_4", - }, - }, - }, - "location": 5221, - "typeName": { - "location": 5223, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 242, - "stmt_location": 5006, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "functest_is_1", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 5377, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "SELECT $1 + $2", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 5394, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 5313, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "a", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 5320, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "defexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5332, - }, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "b", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 5337, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - "defexpr": { - "A_Const": { - "location": 5350, - "sval": { - "sval": "foo", - }, - }, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "c", - }, - }, - ], - "returnType": { - "location": 5369, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 164, - "stmt_location": 5249, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "functest_is_2", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 5494, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "SELECT $1", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 5511, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 5452, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_OUT", - "name": "a", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 5459, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "defexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5471, - }, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "b", - }, - }, - ], - "returnType": { - "location": 5486, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 111, - "stmt_location": 5414, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "functest_is_3", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 5606, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "SELECT $1", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 5623, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 5560, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "defexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5572, - }, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "a", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 5581, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_OUT", - "name": "b", - }, - }, - ], - "returnType": { - "location": 5598, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 111, - "stmt_location": 5526, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "inh": true, - "location": 5722, - "relname": "parameters", - "relpersistence": "p", - "schemaname": "information_schema", - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 5757, - "relname": "routines", - "relpersistence": "p", - "schemaname": "information_schema", - }, - }, - "usingClause": [ - { - "String": { - "sval": "specific_schema", - }, - }, - { - "String": { - "sval": "specific_name", - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5916, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5919, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 5647, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "routine_name", - }, - }, - ], - "location": 5647, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5661, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ordinal_position", - }, - }, - ], - "location": 5661, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5679, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "parameter_name", - }, - }, - ], - "location": 5679, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5695, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "parameter_default", - }, - }, - ], - "location": 5695, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "routine_schema", - }, - }, - ], - "location": 5834, - }, - }, - "location": 5849, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 5851, - "sval": { - "sval": "temp_func_test", - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "routine_name", - }, - }, - ], - "location": 5872, - }, - }, - "location": 5885, - "name": [ - { - "String": { - "sval": "~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 5887, - "sval": { - "sval": "^functest_is_", - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 5868, - }, - }, - }, - }, - "stmt_len": 282, - "stmt_location": 5638, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "String": { - "sval": "temp_func_test", - }, - }, - ], - "removeType": "OBJECT_SCHEMA", - }, - }, - "stmt_len": 49, - "stmt_location": 5921, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 5982, - "rolename": "regtest_unpriv_user", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 5971, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "search_path", - }, - }, - "stmt_len": 18, - "stmt_location": 6002, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/create_misc.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 115, - "relname": "tenk2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 135, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 128, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 128, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 140, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 174, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "intoClause": { - "onCommit": "ONCOMMIT_NOOP", - "rel": { - "inh": true, - "location": 163, - "relname": "onek2", - "relpersistence": "p", - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 150, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 150, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 141, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 193, - "relname": "fast_emp4000", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 220, - "relname": "slow_emp4000", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 213, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 213, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 53, - "stmt_location": 179, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 273, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "intoClause": { - "onCommit": "ONCOMMIT_NOOP", - "rel": { - "inh": true, - "location": 258, - "relname": "bprime", - "relpersistence": "p", - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 242, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 242, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique2", - }, - }, - ], - "location": 288, - }, - }, - "location": 296, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1000, - }, - "location": 298, - }, - }, - }, - }, - }, - }, - "stmt_len": 69, - "stmt_location": 233, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 328, - "name": "name", - }, - }, - { - "ResTarget": { - "location": 334, - "name": "person", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 317, - "relname": "hobbies_r", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "p", - }, - "inh": true, - "location": 382, - "relname": "person", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 352, - "val": { - "A_Const": { - "location": 352, - "sval": { - "sval": "posthacking", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 367, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "name", - }, - }, - ], - "location": 367, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "name", - }, - }, - ], - "location": 401, - }, - }, - "location": 408, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 410, - "sval": { - "sval": "mike", - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "name", - }, - }, - ], - "location": 420, - }, - }, - "location": 427, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 429, - "sval": { - "sval": "jeff", - }, - }, - }, - }, - }, - ], - "boolop": "OR_EXPR", - "location": 417, - }, - }, - }, - }, - }, - }, - "stmt_len": 132, - "stmt_location": 303, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 461, - "name": "name", - }, - }, - { - "ResTarget": { - "location": 467, - "name": "person", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 450, - "relname": "hobbies_r", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "p", - }, - "inh": true, - "location": 514, - "relname": "person", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 485, - "val": { - "A_Const": { - "location": 485, - "sval": { - "sval": "basketball", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 499, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "name", - }, - }, - ], - "location": 499, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "name", - }, - }, - ], - "location": 532, - }, - }, - "location": 539, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 541, - "sval": { - "sval": "joe", - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "name", - }, - }, - ], - "location": 550, - }, - }, - "location": 557, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 559, - "sval": { - "sval": "sally", - }, - }, - }, - }, - }, - ], - "boolop": "OR_EXPR", - "location": 547, - }, - }, - }, - }, - }, - }, - "stmt_len": 130, - "stmt_location": 436, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 592, - "name": "name", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 581, - "relname": "hobbies_r", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 606, - "sval": { - "sval": "skywalking", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 52, - "stmt_location": 567, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 647, - "name": "name", - }, - }, - { - "ResTarget": { - "location": 653, - "name": "hobby", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 634, - "relname": "equipment_r", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 668, - "sval": { - "sval": "advil", - }, - }, - }, - { - "A_Const": { - "location": 677, - "sval": { - "sval": "posthacking", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 71, - "stmt_location": 620, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 719, - "name": "name", - }, - }, - { - "ResTarget": { - "location": 725, - "name": "hobby", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 706, - "relname": "equipment_r", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 740, - "sval": { - "sval": "peet's coffee", - }, - }, - }, - { - "A_Const": { - "location": 758, - "sval": { - "sval": "posthacking", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 80, - "stmt_location": 692, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 800, - "name": "name", - }, - }, - { - "ResTarget": { - "location": 806, - "name": "hobby", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 787, - "relname": "equipment_r", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 821, - "sval": { - "sval": "hightops", - }, - }, - }, - { - "A_Const": { - "location": 833, - "sval": { - "sval": "basketball", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 73, - "stmt_location": 773, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 874, - "name": "name", - }, - }, - { - "ResTarget": { - "location": 880, - "name": "hobby", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 861, - "relname": "equipment_r", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 895, - "sval": { - "sval": "guts", - }, - }, - }, - { - "A_Const": { - "location": 903, - "sval": { - "sval": "skywalking", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 69, - "stmt_location": 847, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 955, - "relname": "road", - "relpersistence": "p", - }, - }, - ], - "intoClause": { - "onCommit": "ONCOMMIT_NOOP", - "rel": { - "inh": true, - "location": 942, - "relname": "ramp", - "relpersistence": "p", - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 926, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 926, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "name", - }, - }, - ], - "location": 969, - }, - }, - "location": 974, - "name": [ - { - "String": { - "sval": "~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 976, - "sval": { - "sval": ".*Ramp", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 67, - "stmt_location": 917, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 999, - "relname": "ihighway", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1028, - "relname": "road", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1018, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1018, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "name", - }, - }, - ], - "location": 1042, - }, - }, - "location": 1047, - "name": [ - { - "String": { - "sval": "~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1049, - "sval": { - "sval": "I- .*", - }, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 71, - "stmt_location": 985, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1071, - "relname": "shighway", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1100, - "relname": "road", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1090, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1090, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "name", - }, - }, - ], - "location": 1114, - }, - }, - "location": 1119, - "name": [ - { - "String": { - "sval": "~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1121, - "sval": { - "sval": "State Hwy.*", - }, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 77, - "stmt_location": 1057, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 1144, - "relname": "shighway", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 1160, - "name": "surface", - "val": { - "A_Const": { - "location": 1170, - "sval": { - "sval": "asphalt", - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 1135, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1202, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 1209, - "name": "a", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1194, - "relname": "a_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1220, - "sval": { - "sval": "a", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1225, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 47, - "stmt_location": 1180, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1250, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 1257, - "name": "a", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1242, - "relname": "a_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1268, - "sval": { - "sval": "a", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1273, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 47, - "stmt_location": 1228, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1298, - "name": "class", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1290, - "relname": "a_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1313, - "sval": { - "sval": "a", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 41, - "stmt_location": 1276, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1340, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 1347, - "name": "a", - }, - }, - { - "ResTarget": { - "location": 1350, - "name": "b", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1332, - "relname": "b_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1361, - "sval": { - "sval": "b", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 1366, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1369, - "sval": { - "sval": "mumble", - }, - }, - }, - "location": 1377, - "typeName": { - "location": 1379, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 66, - "stmt_location": 1318, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1407, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 1414, - "name": "a", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1399, - "relname": "b_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1425, - "sval": { - "sval": "b", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 1430, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 47, - "stmt_location": 1385, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1455, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 1462, - "name": "b", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1447, - "relname": "b_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1473, - "sval": { - "sval": "b", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1478, - "sval": { - "sval": "bumble", - }, - }, - }, - "location": 1486, - "typeName": { - "location": 1488, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 60, - "stmt_location": 1433, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1516, - "name": "class", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1508, - "relname": "b_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1531, - "sval": { - "sval": "b", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 41, - "stmt_location": 1494, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1558, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 1565, - "name": "a", - }, - }, - { - "ResTarget": { - "location": 1568, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1550, - "relname": "c_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1579, - "sval": { - "sval": "c", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 1584, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1587, - "sval": { - "sval": "hi mom", - }, - }, - }, - "location": 1595, - "typeName": { - "location": 1597, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 66, - "stmt_location": 1536, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1625, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 1632, - "name": "a", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1617, - "relname": "c_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1643, - "sval": { - "sval": "c", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 1648, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 47, - "stmt_location": 1603, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1673, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 1680, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1665, - "relname": "c_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1691, - "sval": { - "sval": "c", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1696, - "sval": { - "sval": "hi paul", - }, - }, - }, - "location": 1705, - "typeName": { - "location": 1707, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 61, - "stmt_location": 1651, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1735, - "name": "class", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1727, - "relname": "c_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1750, - "sval": { - "sval": "c", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 41, - "stmt_location": 1713, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1777, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 1784, - "name": "a", - }, - }, - { - "ResTarget": { - "location": 1787, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 1790, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 1793, - "name": "d", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1769, - "relname": "d_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1807, - "sval": { - "sval": "d", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 1812, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1815, - "sval": { - "sval": "grumble", - }, - }, - }, - "location": 1824, - "typeName": { - "location": 1826, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1832, - "sval": { - "sval": "hi sunita", - }, - }, - }, - "location": 1843, - "typeName": { - "location": 1845, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1851, - "sval": { - "sval": "0.0", - }, - }, - }, - "location": 1856, - "typeName": { - "location": 1858, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 110, - "stmt_location": 1755, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1888, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 1895, - "name": "a", - }, - }, - { - "ResTarget": { - "location": 1898, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 1901, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1880, - "relname": "d_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1915, - "sval": { - "sval": "d", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 8, - }, - "location": 1920, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1923, - "sval": { - "sval": "stumble", - }, - }, - }, - "location": 1932, - "typeName": { - "location": 1934, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1940, - "sval": { - "sval": "hi koko", - }, - }, - }, - "location": 1949, - "typeName": { - "location": 1951, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 90, - "stmt_location": 1866, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1979, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 1986, - "name": "a", - }, - }, - { - "ResTarget": { - "location": 1989, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 1992, - "name": "d", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1971, - "relname": "d_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 2006, - "sval": { - "sval": "d", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 9, - }, - "location": 2011, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2014, - "sval": { - "sval": "rumble", - }, - }, - }, - "location": 2022, - "typeName": { - "location": 2024, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2030, - "sval": { - "sval": "1.1", - }, - }, - }, - "location": 2035, - "typeName": { - "location": 2037, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 87, - "stmt_location": 1957, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2067, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 2074, - "name": "a", - }, - }, - { - "ResTarget": { - "location": 2077, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 2080, - "name": "d", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2059, - "relname": "d_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 2094, - "sval": { - "sval": "d", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 2099, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2103, - "sval": { - "sval": "hi kristin", - }, - }, - }, - "location": 2115, - "typeName": { - "location": 2117, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2123, - "sval": { - "sval": "10.01", - }, - }, - }, - "location": 2130, - "typeName": { - "location": 2132, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 94, - "stmt_location": 2045, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2162, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 2169, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 2172, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 2175, - "name": "d", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2154, - "relname": "d_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 2189, - "sval": { - "sval": "d", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2194, - "sval": { - "sval": "crumble", - }, - }, - }, - "location": 2203, - "typeName": { - "location": 2205, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2211, - "sval": { - "sval": "hi boris", - }, - }, - }, - "location": 2221, - "typeName": { - "location": 2223, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2229, - "sval": { - "sval": "100.001", - }, - }, - }, - "location": 2238, - "typeName": { - "location": 2240, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 107, - "stmt_location": 2140, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2270, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 2277, - "name": "a", - }, - }, - { - "ResTarget": { - "location": 2280, - "name": "b", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2262, - "relname": "d_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 2294, - "sval": { - "sval": "d", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 11, - }, - "location": 2299, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2303, - "sval": { - "sval": "fumble", - }, - }, - }, - "location": 2311, - "typeName": { - "location": 2313, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 70, - "stmt_location": 2248, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2341, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 2348, - "name": "a", - }, - }, - { - "ResTarget": { - "location": 2351, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2333, - "relname": "d_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 2365, - "sval": { - "sval": "d", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 12, - }, - "location": 2370, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2374, - "sval": { - "sval": "hi avi", - }, - }, - }, - "location": 2382, - "typeName": { - "location": 2384, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 70, - "stmt_location": 2319, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2412, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 2419, - "name": "a", - }, - }, - { - "ResTarget": { - "location": 2422, - "name": "d", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2404, - "relname": "d_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 2436, - "sval": { - "sval": "d", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 13, - }, - "location": 2441, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2445, - "sval": { - "sval": "1000.0001", - }, - }, - }, - "location": 2456, - "typeName": { - "location": 2458, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 75, - "stmt_location": 2390, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2488, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 2495, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 2498, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2480, - "relname": "d_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 2512, - "sval": { - "sval": "d", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2517, - "sval": { - "sval": "tumble", - }, - }, - }, - "location": 2525, - "typeName": { - "location": 2527, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2533, - "sval": { - "sval": "hi andrew", - }, - }, - }, - "location": 2544, - "typeName": { - "location": 2546, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 85, - "stmt_location": 2466, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2574, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 2581, - "name": "b", - }, - }, - { - "ResTarget": { - "location": 2584, - "name": "d", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2566, - "relname": "d_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 2598, - "sval": { - "sval": "d", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2603, - "sval": { - "sval": "humble", - }, - }, - }, - "location": 2611, - "typeName": { - "location": 2613, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2619, - "sval": { - "sval": "10000.00001", - }, - }, - }, - "location": 2632, - "typeName": { - "location": 2634, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 89, - "stmt_location": 2552, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2664, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 2671, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 2674, - "name": "d", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2656, - "relname": "d_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 2688, - "sval": { - "sval": "d", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2693, - "sval": { - "sval": "hi ginger", - }, - }, - }, - "location": 2704, - "typeName": { - "location": 2706, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2712, - "sval": { - "sval": "100000.000001", - }, - }, - }, - "location": 2727, - "typeName": { - "location": 2729, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 94, - "stmt_location": 2642, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2759, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 2766, - "name": "a", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2751, - "relname": "d_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 2777, - "sval": { - "sval": "d", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 14, - }, - "location": 2782, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 48, - "stmt_location": 2737, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2808, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 2815, - "name": "b", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2800, - "relname": "d_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 2826, - "sval": { - "sval": "d", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2831, - "sval": { - "sval": "jumble", - }, - }, - }, - "location": 2839, - "typeName": { - "location": 2841, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 60, - "stmt_location": 2786, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2869, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 2876, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2861, - "relname": "d_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 2887, - "sval": { - "sval": "d", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2892, - "sval": { - "sval": "hi jolly", - }, - }, - }, - "location": 2902, - "typeName": { - "location": 2904, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 62, - "stmt_location": 2847, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2932, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 2939, - "name": "d", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2924, - "relname": "d_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 2950, - "sval": { - "sval": "d", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2955, - "sval": { - "sval": "1000000.0000001", - }, - }, - }, - "location": 2972, - "typeName": { - "location": 2974, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 71, - "stmt_location": 2910, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 3004, - "name": "class", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2996, - "relname": "d_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 3019, - "sval": { - "sval": "d", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 41, - "stmt_location": 2982, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 3046, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 3053, - "name": "a", - }, - }, - { - "ResTarget": { - "location": 3056, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 3059, - "name": "e", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3038, - "relname": "e_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 3073, - "sval": { - "sval": "e", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 15, - }, - "location": 3078, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3082, - "sval": { - "sval": "hi carol", - }, - }, - }, - "location": 3092, - "typeName": { - "location": 3094, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3100, - "sval": { - "sval": "-1", - }, - }, - }, - "location": 3104, - "typeName": { - "location": 3106, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 87, - "stmt_location": 3024, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 3134, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 3141, - "name": "a", - }, - }, - { - "ResTarget": { - "location": 3144, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3126, - "relname": "e_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 3158, - "sval": { - "sval": "e", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 16, - }, - "location": 3163, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3167, - "sval": { - "sval": "hi bob", - }, - }, - }, - "location": 3175, - "typeName": { - "location": 3177, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 70, - "stmt_location": 3112, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 3205, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 3212, - "name": "a", - }, - }, - { - "ResTarget": { - "location": 3215, - "name": "e", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3197, - "relname": "e_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 3229, - "sval": { - "sval": "e", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 17, - }, - "location": 3234, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3238, - "sval": { - "sval": "-2", - }, - }, - }, - "location": 3242, - "typeName": { - "location": 3244, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 66, - "stmt_location": 3183, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 3272, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 3279, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 3282, - "name": "e", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3264, - "relname": "e_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 3296, - "sval": { - "sval": "e", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3301, - "sval": { - "sval": "hi michelle", - }, - }, - }, - "location": 3314, - "typeName": { - "location": 3316, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3322, - "sval": { - "sval": "-3", - }, - }, - }, - "location": 3326, - "typeName": { - "location": 3328, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 83, - "stmt_location": 3250, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 3356, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 3363, - "name": "a", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3348, - "relname": "e_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 3377, - "sval": { - "sval": "e", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 18, - }, - "location": 3382, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 51, - "stmt_location": 3334, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 3408, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 3415, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3400, - "relname": "e_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 3429, - "sval": { - "sval": "e", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3434, - "sval": { - "sval": "hi elisa", - }, - }, - }, - "location": 3444, - "typeName": { - "location": 3446, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 65, - "stmt_location": 3386, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 3474, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 3481, - "name": "e", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3466, - "relname": "e_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 3495, - "sval": { - "sval": "e", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3500, - "sval": { - "sval": "-4", - }, - }, - }, - "location": 3504, - "typeName": { - "location": 3506, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 3452, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 3534, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 3541, - "name": "a", - }, - }, - { - "ResTarget": { - "location": 3544, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 3547, - "name": "e", - }, - }, - { - "ResTarget": { - "location": 3550, - "name": "f", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3526, - "relname": "f_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 3564, - "sval": { - "sval": "f", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 19, - }, - "location": 3569, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3573, - "sval": { - "sval": "hi claire", - }, - }, - }, - "location": 3584, - "typeName": { - "location": 3586, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3592, - "sval": { - "sval": "-5", - }, - }, - }, - "location": 3596, - "typeName": { - "location": 3598, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3604, - "sval": { - "sval": "(1,3),(2,4)", - }, - }, - }, - "location": 3617, - "typeName": { - "location": 3619, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 115, - "stmt_location": 3512, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 3650, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 3657, - "name": "a", - }, - }, - { - "ResTarget": { - "location": 3660, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 3663, - "name": "e", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3642, - "relname": "f_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 3677, - "sval": { - "sval": "f", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 20, - }, - "location": 3682, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3686, - "sval": { - "sval": "hi mike", - }, - }, - }, - "location": 3695, - "typeName": { - "location": 3697, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3703, - "sval": { - "sval": "-6", - }, - }, - }, - "location": 3707, - "typeName": { - "location": 3709, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 86, - "stmt_location": 3628, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 3737, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 3744, - "name": "a", - }, - }, - { - "ResTarget": { - "location": 3747, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 3750, - "name": "f", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3729, - "relname": "f_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 3764, - "sval": { - "sval": "f", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 21, - }, - "location": 3769, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3773, - "sval": { - "sval": "hi marcel", - }, - }, - }, - "location": 3784, - "typeName": { - "location": 3786, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3792, - "sval": { - "sval": "(11,44),(22,55),(33,66)", - }, - }, - }, - "location": 3817, - "typeName": { - "location": 3819, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 112, - "stmt_location": 3715, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 3850, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 3857, - "name": "a", - }, - }, - { - "ResTarget": { - "location": 3860, - "name": "e", - }, - }, - { - "ResTarget": { - "location": 3863, - "name": "f", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3842, - "relname": "f_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 3877, - "sval": { - "sval": "f", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 22, - }, - "location": 3882, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3886, - "sval": { - "sval": "-7", - }, - }, - }, - "location": 3890, - "typeName": { - "location": 3892, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3898, - "sval": { - "sval": "(111,555),(222,666),(333,777),(444,888)", - }, - }, - }, - "location": 3939, - "typeName": { - "location": 3941, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 121, - "stmt_location": 3828, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 3972, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 3979, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 3982, - "name": "e", - }, - }, - { - "ResTarget": { - "location": 3985, - "name": "f", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3964, - "relname": "f_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 3999, - "sval": { - "sval": "f", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4004, - "sval": { - "sval": "hi keith", - }, - }, - }, - "location": 4014, - "typeName": { - "location": 4016, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4022, - "sval": { - "sval": "-8", - }, - }, - }, - "location": 4026, - "typeName": { - "location": 4028, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4038, - "sval": { - "sval": "(1111,3333),(2222,4444)", - }, - }, - }, - "location": 4063, - "typeName": { - "location": 4065, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 123, - "stmt_location": 3950, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 4096, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 4103, - "name": "a", - }, - }, - { - "ResTarget": { - "location": 4106, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4088, - "relname": "f_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 4120, - "sval": { - "sval": "f", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 24, - }, - "location": 4125, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4129, - "sval": { - "sval": "hi marc", - }, - }, - }, - "location": 4138, - "typeName": { - "location": 4140, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 71, - "stmt_location": 4074, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 4168, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 4175, - "name": "a", - }, - }, - { - "ResTarget": { - "location": 4178, - "name": "e", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4160, - "relname": "f_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 4192, - "sval": { - "sval": "f", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 25, - }, - "location": 4197, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4201, - "sval": { - "sval": "-9", - }, - }, - }, - "location": 4205, - "typeName": { - "location": 4207, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 66, - "stmt_location": 4146, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 4235, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 4242, - "name": "a", - }, - }, - { - "ResTarget": { - "location": 4245, - "name": "f", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4227, - "relname": "f_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 4259, - "sval": { - "sval": "f", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 26, - }, - "location": 4264, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4268, - "sval": { - "sval": "(11111,33333),(22222,44444)", - }, - }, - }, - "location": 4297, - "typeName": { - "location": 4299, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 94, - "stmt_location": 4213, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 4330, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 4337, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 4340, - "name": "e", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4322, - "relname": "f_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 4354, - "sval": { - "sval": "f", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4359, - "sval": { - "sval": "hi allison", - }, - }, - }, - "location": 4371, - "typeName": { - "location": 4373, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4379, - "sval": { - "sval": "-10", - }, - }, - }, - "location": 4384, - "typeName": { - "location": 4386, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 83, - "stmt_location": 4308, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 4414, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 4421, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 4424, - "name": "f", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4406, - "relname": "f_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 4438, - "sval": { - "sval": "f", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4443, - "sval": { - "sval": "hi jeff", - }, - }, - }, - "location": 4452, - "typeName": { - "location": 4454, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4471, - "sval": { - "sval": "(111111,333333),(222222,444444)", - }, - }, - }, - "location": 4504, - "typeName": { - "location": 4506, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 122, - "stmt_location": 4392, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 4537, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 4544, - "name": "e", - }, - }, - { - "ResTarget": { - "location": 4547, - "name": "f", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4529, - "relname": "f_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 4561, - "sval": { - "sval": "f", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4566, - "sval": { - "sval": "-11", - }, - }, - }, - "location": 4571, - "typeName": { - "location": 4573, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4579, - "sval": { - "sval": "(1111111,3333333),(2222222,4444444)", - }, - }, - }, - "location": 4616, - "typeName": { - "location": 4618, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 111, - "stmt_location": 4515, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 4649, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 4656, - "name": "a", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4641, - "relname": "f_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 4667, - "sval": { - "sval": "f", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 27, - }, - "location": 4672, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 48, - "stmt_location": 4627, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 4698, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 4705, - "name": "c", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4690, - "relname": "f_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 4716, - "sval": { - "sval": "f", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4721, - "sval": { - "sval": "hi carl", - }, - }, - }, - "location": 4730, - "typeName": { - "location": 4732, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 61, - "stmt_location": 4676, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 4760, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 4767, - "name": "e", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4752, - "relname": "f_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 4778, - "sval": { - "sval": "f", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4783, - "sval": { - "sval": "-12", - }, - }, - }, - "location": 4788, - "typeName": { - "location": 4790, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 57, - "stmt_location": 4738, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 4818, - "name": "class", - }, - }, - { - "ResTarget": { - "location": 4825, - "name": "f", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4810, - "relname": "f_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 4839, - "sval": { - "sval": "f", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4844, - "sval": { - "sval": "(11111111,33333333),(22222222,44444444)", - }, - }, - }, - "location": 4885, - "typeName": { - "location": 4887, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 99, - "stmt_location": 4796, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 4918, - "name": "class", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4910, - "relname": "f_star", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 4933, - "sval": { - "sval": "f", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 41, - "stmt_location": 4896, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 4998, - "relname": "iportaltest", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "i", - "is_local": true, - "location": 5013, - "typeName": { - "location": 5016, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "d", - "is_local": true, - "location": 5023, - "typeName": { - "location": 5026, - "names": [ - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "p", - "is_local": true, - "location": 5035, - "typeName": { - "location": 5038, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 109, - "stmt_location": 4938, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 5075, - "name": "i", - }, - }, - { - "ResTarget": { - "location": 5078, - "name": "d", - }, - }, - { - "ResTarget": { - "location": 5081, - "name": "p", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5062, - "relname": "iportaltest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5095, - }, - }, - { - "A_Const": { - "fval": { - "fval": "3.567", - }, - "location": 5098, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5105, - "sval": { - "sval": "(3.0,1.0),(4.0,2.0)", - }, - }, - }, - "location": 5126, - "typeName": { - "location": 5128, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 88, - "stmt_location": 5048, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 5164, - "name": "i", - }, - }, - { - "ResTarget": { - "location": 5167, - "name": "d", - }, - }, - { - "ResTarget": { - "location": 5170, - "name": "p", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5151, - "relname": "iportaltest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5184, - }, - }, - { - "A_Const": { - "fval": { - "fval": "89.05", - }, - "location": 5187, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5194, - "sval": { - "sval": "(4.0,2.0),(3.0,1.0)", - }, - }, - }, - "location": 5215, - "typeName": { - "location": 5217, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 88, - "stmt_location": 5137, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/create_operator.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 60, - "names": [ - { - "String": { - "sval": "path", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leftarg", - "location": 50, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 80, - "names": [ - { - "String": { - "sval": "path", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "rightarg", - "location": 69, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 101, - "names": [ - { - "String": { - "sval": "path_inter", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "procedure", - "location": 89, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "##", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "commutator", - "location": 116, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "##", - }, - }, - ], - "kind": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 133, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 170, - "names": [ - { - "String": { - "sval": "point", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leftarg", - "location": 160, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 191, - "names": [ - { - "String": { - "sval": "widget", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "rightarg", - "location": 180, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 214, - "names": [ - { - "String": { - "sval": "pt_in_widget", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "procedure", - "location": 202, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": ">%", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "commutator", - "location": 231, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": ">=%", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "negator", - "location": 252, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "<%", - }, - }, - ], - "kind": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 133, - "stmt_location": 134, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 306, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "rightarg", - "location": 295, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 342, - "names": [ - { - "String": { - "sval": "numeric_fac", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "procedure", - "location": 330, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "@#@", - }, - }, - ], - "kind": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 87, - "stmt_location": 268, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 393, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leftarg", - "location": 383, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 430, - "names": [ - { - "String": { - "sval": "numeric_fac", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "procedure", - "location": 418, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "#@#", - }, - }, - ], - "kind": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 87, - "stmt_location": 356, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 481, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leftarg", - "location": 471, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 518, - "names": [ - { - "String": { - "sval": "numeric_fac", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "procedure", - "location": 506, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "#%#", - }, - }, - ], - "kind": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 87, - "stmt_location": 444, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "bad right unary", - "object": { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 579, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - {}, - ], - "objname": [ - { - "String": { - "sval": "######", - }, - }, - ], - }, - }, - "objtype": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 79, - "stmt_location": 532, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 199, - "stmt_location": 612, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "role": "regress_rol_op1", - "stmt_type": "ROLESTMT_ROLE", - }, - }, - "stmt_len": 28, - "stmt_location": 812, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateSchemaStmt": { - "schemaname": "schema_op1", - }, - }, - "stmt_len": 25, - "stmt_location": 841, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 904, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "String": { - "sval": "schema_op1", - }, - }, - ], - "objtype": "OBJECT_SCHEMA", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 43, - "stmt_location": 867, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 951, - "rolename": "regress_rol_op1", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "objects": [ - { - "String": { - "sval": "schema_op1", - }, - }, - ], - "objtype": "OBJECT_SCHEMA", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 55, - "stmt_location": 911, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 977, - "sval": { - "sval": "regress_rol_op1", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 25, - "stmt_location": 967, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1040, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leftarg", - "location": 1030, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1077, - "names": [ - { - "String": { - "sval": "numeric_fac", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "procedure", - "location": 1065, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "schema_op1", - }, - }, - { - "String": { - "sval": "#*#", - }, - }, - ], - "kind": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 97, - "stmt_location": 993, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 1091, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 99, - "stmt_location": 1101, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1243, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "setof": true, - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leftarg", - "location": 1227, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1264, - "names": [ - { - "String": { - "sval": "numeric_fac", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "procedure", - "location": 1252, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "#*#", - }, - }, - ], - "kind": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 76, - "stmt_location": 1201, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 1278, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 100, - "stmt_location": 1288, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1432, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "setof": true, - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "rightarg", - "location": 1415, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1453, - "names": [ - { - "String": { - "sval": "numeric_fac", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "procedure", - "location": 1441, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "#*#", - }, - }, - ], - "kind": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 77, - "stmt_location": 1389, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 1467, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 58, - "stmt_location": 1477, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "fn_op2", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " - SELECT NULL::BOOLEAN; -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 1605, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 1640, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "immutable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 1653, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 1571, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 1580, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "replace": true, - "returnType": { - "location": 1597, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 126, - "stmt_location": 1536, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1700, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leftarg", - "location": 1690, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1724, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "rightarg", - "location": 1713, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1749, - "names": [ - { - "String": { - "sval": "fn_op2", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "procedure", - "location": 1737, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "===", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "commutator", - "location": 1761, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "!==", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "negator", - "location": 1783, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1813, - "names": [ - { - "String": { - "sval": "contsel", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "restrict", - "location": 1802, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1833, - "names": [ - { - "String": { - "sval": "contjoinsel", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "join", - "location": 1826, - }, - }, - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "sort1", - "location": 1850, - }, - }, - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "sort2", - "location": 1857, - }, - }, - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "ltcmp", - "location": 1864, - }, - }, - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "gtcmp", - "location": 1871, - }, - }, - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "hashes", - "location": 1878, - }, - }, - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "merges", - "location": 1886, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "===", - }, - }, - ], - "kind": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 231, - "stmt_location": 1663, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 1895, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1977, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leftarg", - "location": 1967, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2014, - "names": [ - { - "String": { - "sval": "numeric_fac", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "procedure", - "location": 2002, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2044, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "invalid_att", - "location": 2030, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "#@%#", - }, - }, - ], - "kind": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 145, - "stmt_location": 1905, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2168, - "names": [ - { - "String": { - "sval": "numeric_fac", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "procedure", - "location": 2156, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "#@%#", - }, - }, - ], - "kind": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 130, - "stmt_location": 2051, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2278, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leftarg", - "location": 2268, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "#@%#", - }, - }, - ], - "kind": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 102, - "stmt_location": 2182, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 74, - "stmt_location": 2285, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "role": "regress_rol_op3", - "stmt_type": "ROLESTMT_ROLE", - }, - }, - "stmt_len": 28, - "stmt_location": 2360, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateEnumStmt": { - "typeName": [ - { - "String": { - "sval": "type_op3", - }, - }, - ], - "vals": [ - { - "String": { - "sval": "new", - }, - }, - { - "String": { - "sval": "open", - }, - }, - { - "String": { - "sval": "closed", - }, - }, - ], - }, - }, - "stmt_len": 55, - "stmt_location": 2389, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "fn_op3", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " - SELECT NULL::int8; -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 2498, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 2530, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "immutable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 2543, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 2469, - "names": [ - { - "String": { - "sval": "type_op3", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 2479, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 2493, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 107, - "stmt_location": 2445, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 2589, - "rolename": "regress_rol_op3", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "type_op3", - }, - }, - ], - }, - }, - ], - "objtype": "OBJECT_TYPE", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 51, - "stmt_location": 2553, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 2641, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - ], - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "type_op3", - }, - }, - ], - }, - }, - ], - "objtype": "OBJECT_TYPE", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 42, - "stmt_location": 2605, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 2734, - "sval": { - "sval": "regress_rol_op3", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 101, - "stmt_location": 2648, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2786, - "names": [ - { - "String": { - "sval": "type_op3", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leftarg", - "location": 2776, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2810, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "rightarg", - "location": 2799, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2831, - "names": [ - { - "String": { - "sval": "fn_op3", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "procedure", - "location": 2819, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "#*#", - }, - }, - ], - "kind": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 89, - "stmt_location": 2750, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 2840, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 114, - "stmt_location": 2850, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "role": "regress_rol_op4", - "stmt_type": "ROLESTMT_ROLE", - }, - }, - "stmt_len": 28, - "stmt_location": 2965, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateEnumStmt": { - "typeName": [ - { - "String": { - "sval": "type_op4", - }, - }, - ], - "vals": [ - { - "String": { - "sval": "new", - }, - }, - { - "String": { - "sval": "open", - }, - }, - { - "String": { - "sval": "closed", - }, - }, - ], - }, - }, - "stmt_len": 55, - "stmt_location": 2994, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "fn_op4", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " - SELECT NULL::int8; -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 3103, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 3135, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "immutable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 3148, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 3074, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 3080, - "names": [ - { - "String": { - "sval": "type_op4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 3098, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 107, - "stmt_location": 3050, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 3194, - "rolename": "regress_rol_op4", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "type_op4", - }, - }, - ], - }, - }, - ], - "objtype": "OBJECT_TYPE", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 51, - "stmt_location": 3158, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 3246, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - ], - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "type_op4", - }, - }, - ], - }, - }, - ], - "objtype": "OBJECT_TYPE", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 42, - "stmt_location": 3210, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 3339, - "sval": { - "sval": "regress_rol_op4", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 101, - "stmt_location": 3253, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 3391, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leftarg", - "location": 3381, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 3411, - "names": [ - { - "String": { - "sval": "type_op4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "rightarg", - "location": 3400, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 3436, - "names": [ - { - "String": { - "sval": "fn_op4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "procedure", - "location": 3424, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "#*#", - }, - }, - ], - "kind": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 89, - "stmt_location": 3355, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 3445, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 80, - "stmt_location": 3455, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "role": "regress_rol_op5", - "stmt_type": "ROLESTMT_ROLE", - }, - }, - "stmt_len": 28, - "stmt_location": 3536, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateEnumStmt": { - "typeName": [ - { - "String": { - "sval": "type_op5", - }, - }, - ], - "vals": [ - { - "String": { - "sval": "new", - }, - }, - { - "String": { - "sval": "open", - }, - }, - { - "String": { - "sval": "closed", - }, - }, - ], - }, - }, - "stmt_len": 55, - "stmt_location": 3565, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "fn_op5", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " - SELECT NULL::int8; -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 3670, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 3702, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "immutable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 3715, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 3645, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 3651, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 3665, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 103, - "stmt_location": 3621, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 3777, - "rolename": "regress_rol_op5", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 3760, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 3766, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 3760, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 3766, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "fn_op5", - }, - }, - ], - }, - }, - ], - "objtype": "OBJECT_FUNCTION", - "privileges": [ - { - "AccessPriv": { - "priv_name": "execute", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 67, - "stmt_location": 3725, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 3845, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - ], - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 3828, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 3834, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 3828, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 3834, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "fn_op5", - }, - }, - ], - }, - }, - ], - "objtype": "OBJECT_FUNCTION", - "privileges": [ - { - "AccessPriv": { - "priv_name": "execute", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 58, - "stmt_location": 3793, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 3938, - "sval": { - "sval": "regress_rol_op5", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 101, - "stmt_location": 3852, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 3990, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leftarg", - "location": 3980, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 4010, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "rightarg", - "location": 3999, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 4031, - "names": [ - { - "String": { - "sval": "fn_op5", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "procedure", - "location": 4019, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "#*#", - }, - }, - ], - "kind": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 85, - "stmt_location": 3954, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 4040, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 81, - "stmt_location": 4050, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "role": "regress_rol_op6", - "stmt_type": "ROLESTMT_ROLE", - }, - }, - "stmt_len": 28, - "stmt_location": 4132, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateEnumStmt": { - "typeName": [ - { - "String": { - "sval": "type_op6", - }, - }, - ], - "vals": [ - { - "String": { - "sval": "new", - }, - }, - { - "String": { - "sval": "open", - }, - }, - { - "String": { - "sval": "closed", - }, - }, - ], - }, - }, - "stmt_len": 55, - "stmt_location": 4161, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "fn_op6", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " - SELECT NULL::type_op6; -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 4270, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 4306, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "immutable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 4319, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 4241, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 4247, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 4261, - "names": [ - { - "String": { - "sval": "type_op6", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 111, - "stmt_location": 4217, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 4365, - "rolename": "regress_rol_op6", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "type_op6", - }, - }, - ], - }, - }, - ], - "objtype": "OBJECT_TYPE", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 51, - "stmt_location": 4329, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 4417, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - ], - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "type_op6", - }, - }, - ], - }, - }, - ], - "objtype": "OBJECT_TYPE", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 42, - "stmt_location": 4381, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 4510, - "sval": { - "sval": "regress_rol_op6", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 101, - "stmt_location": 4424, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 4562, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leftarg", - "location": 4552, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 4582, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "rightarg", - "location": 4571, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 4603, - "names": [ - { - "String": { - "sval": "fn_op6", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "procedure", - "location": 4591, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "#*#", - }, - }, - ], - "kind": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 85, - "stmt_location": 4526, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 4612, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/create_table.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 63, - "relname": "hobbies_r", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "name", - "is_local": true, - "location": 76, - "typeName": { - "location": 82, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "person", - "is_local": true, - "location": 89, - "typeName": { - "location": 98, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 104, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 120, - "relname": "equipment_r", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "name", - "is_local": true, - "location": 135, - "typeName": { - "location": 142, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "hobby", - "is_local": true, - "location": 149, - "typeName": { - "location": 156, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 105, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 178, - "relname": "onek", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "unique1", - "is_local": true, - "location": 186, - "typeName": { - "location": 195, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "unique2", - "is_local": true, - "location": 202, - "typeName": { - "location": 211, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "two", - "is_local": true, - "location": 218, - "typeName": { - "location": 224, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "four", - "is_local": true, - "location": 231, - "typeName": { - "location": 237, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ten", - "is_local": true, - "location": 244, - "typeName": { - "location": 250, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "twenty", - "is_local": true, - "location": 257, - "typeName": { - "location": 265, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "hundred", - "is_local": true, - "location": 272, - "typeName": { - "location": 281, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "thousand", - "is_local": true, - "location": 288, - "typeName": { - "location": 297, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "twothousand", - "is_local": true, - "location": 304, - "typeName": { - "location": 316, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "fivethous", - "is_local": true, - "location": 323, - "typeName": { - "location": 333, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "tenthous", - "is_local": true, - "location": 340, - "typeName": { - "location": 349, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "odd", - "is_local": true, - "location": 356, - "typeName": { - "location": 362, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "even", - "is_local": true, - "location": 369, - "typeName": { - "location": 375, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "stringu1", - "is_local": true, - "location": 382, - "typeName": { - "location": 391, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "stringu2", - "is_local": true, - "location": 398, - "typeName": { - "location": 407, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "string4", - "is_local": true, - "location": 414, - "typeName": { - "location": 423, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 266, - "stmt_location": 163, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 445, - "relname": "tenk1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "unique1", - "is_local": true, - "location": 454, - "typeName": { - "location": 463, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "unique2", - "is_local": true, - "location": 470, - "typeName": { - "location": 479, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "two", - "is_local": true, - "location": 486, - "typeName": { - "location": 492, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "four", - "is_local": true, - "location": 499, - "typeName": { - "location": 505, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ten", - "is_local": true, - "location": 512, - "typeName": { - "location": 518, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "twenty", - "is_local": true, - "location": 525, - "typeName": { - "location": 533, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "hundred", - "is_local": true, - "location": 540, - "typeName": { - "location": 549, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "thousand", - "is_local": true, - "location": 556, - "typeName": { - "location": 565, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "twothousand", - "is_local": true, - "location": 572, - "typeName": { - "location": 584, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "fivethous", - "is_local": true, - "location": 591, - "typeName": { - "location": 601, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "tenthous", - "is_local": true, - "location": 608, - "typeName": { - "location": 617, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "odd", - "is_local": true, - "location": 624, - "typeName": { - "location": 630, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "even", - "is_local": true, - "location": 637, - "typeName": { - "location": 643, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "stringu1", - "is_local": true, - "location": 650, - "typeName": { - "location": 659, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "stringu2", - "is_local": true, - "location": 666, - "typeName": { - "location": 675, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "string4", - "is_local": true, - "location": 682, - "typeName": { - "location": 691, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 267, - "stmt_location": 430, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 713, - "relname": "tenk2", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "unique1", - "is_local": true, - "location": 722, - "typeName": { - "location": 731, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "unique2", - "is_local": true, - "location": 738, - "typeName": { - "location": 747, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "two", - "is_local": true, - "location": 754, - "typeName": { - "location": 761, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "four", - "is_local": true, - "location": 768, - "typeName": { - "location": 775, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ten", - "is_local": true, - "location": 782, - "typeName": { - "location": 788, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "twenty", - "is_local": true, - "location": 795, - "typeName": { - "location": 804, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "hundred", - "is_local": true, - "location": 811, - "typeName": { - "location": 820, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "thousand", - "is_local": true, - "location": 827, - "typeName": { - "location": 837, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "twothousand", - "is_local": true, - "location": 844, - "typeName": { - "location": 856, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "fivethous", - "is_local": true, - "location": 863, - "typeName": { - "location": 874, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "tenthous", - "is_local": true, - "location": 881, - "typeName": { - "location": 890, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "odd", - "is_local": true, - "location": 897, - "typeName": { - "location": 903, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "even", - "is_local": true, - "location": 910, - "typeName": { - "location": 916, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "stringu1", - "is_local": true, - "location": 923, - "typeName": { - "location": 932, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "stringu2", - "is_local": true, - "location": 939, - "typeName": { - "location": 948, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "string4", - "is_local": true, - "location": 955, - "typeName": { - "location": 964, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 272, - "stmt_location": 698, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 987, - "relname": "person", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "name", - "is_local": true, - "location": 997, - "typeName": { - "location": 1004, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "age", - "is_local": true, - "location": 1011, - "typeName": { - "location": 1017, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "location", - "is_local": true, - "location": 1024, - "typeName": { - "location": 1034, - "names": [ - { - "String": { - "sval": "point", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 70, - "stmt_location": 971, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 1107, - "relname": "person", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1058, - "relname": "emp", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "salary", - "is_local": true, - "location": 1065, - "typeName": { - "location": 1074, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "manager", - "is_local": true, - "location": 1081, - "typeName": { - "location": 1090, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 72, - "stmt_location": 1042, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 1167, - "relname": "person", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1131, - "relname": "student", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "gpa", - "is_local": true, - "location": 1142, - "typeName": { - "location": 1148, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 1115, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 1229, - "relname": "emp", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 1234, - "relname": "student", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1191, - "relname": "stud_emp", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "percent", - "is_local": true, - "location": 1203, - "typeName": { - "location": 1212, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 67, - "stmt_location": 1175, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1259, - "relname": "city", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "name", - "is_local": true, - "location": 1267, - "typeName": { - "location": 1273, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "location", - "is_local": true, - "location": 1280, - "typeName": { - "location": 1290, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "budget", - "is_local": true, - "location": 1296, - "typeName": { - "location": 1305, - "names": [ - { - "String": { - "sval": "city_budget", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 75, - "stmt_location": 1243, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1334, - "relname": "dept", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "dname", - "is_local": true, - "location": 1342, - "typeName": { - "location": 1349, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "mgrname", - "is_local": true, - "location": 1356, - "typeName": { - "location": 1365, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 1319, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1387, - "relname": "slow_emp4000", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "home_base", - "is_local": true, - "location": 1403, - "typeName": { - "location": 1414, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 1372, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1435, - "relname": "fast_emp4000", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "home_base", - "is_local": true, - "location": 1451, - "typeName": { - "location": 1462, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 1420, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1483, - "relname": "road", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "name", - "is_local": true, - "location": 1491, - "typeName": { - "location": 1497, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "thepath", - "is_local": true, - "location": 1504, - "typeName": { - "location": 1513, - "names": [ - { - "String": { - "sval": "path", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 1468, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 1557, - "relname": "road", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1535, - "relname": "ihighway", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 42, - "stmt_location": 1520, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 1616, - "relname": "road", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1578, - "relname": "shighway", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "surface", - "is_local": true, - "location": 1590, - "typeName": { - "location": 1599, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 58, - "stmt_location": 1563, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1637, - "relname": "real_city", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "pop", - "is_local": true, - "location": 1650, - "typeName": { - "location": 1656, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "cname", - "is_local": true, - "location": 1663, - "typeName": { - "location": 1670, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "outline", - "is_local": true, - "location": 1677, - "typeName": { - "location": 1686, - "names": [ - { - "String": { - "sval": "path", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 70, - "stmt_location": 1622, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 2062, - "relname": "a_star", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "class", - "is_local": true, - "location": 2072, - "typeName": { - "location": 2079, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bpchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": -1, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 2086, - "typeName": { - "location": 2091, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 404, - "stmt_location": 1693, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 2145, - "relname": "a_star", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 2113, - "relname": "b_star", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 2123, - "typeName": { - "location": 2128, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 2098, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 2200, - "relname": "a_star", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 2168, - "relname": "c_star", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "c", - "is_local": true, - "location": 2178, - "typeName": { - "location": 2183, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 2153, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 2257, - "relname": "b_star", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 2265, - "relname": "c_star", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 2223, - "relname": "d_star", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "d", - "is_local": true, - "location": 2233, - "typeName": { - "location": 2238, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 64, - "stmt_location": 2208, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 2320, - "relname": "c_star", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 2288, - "relname": "e_star", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "e", - "is_local": true, - "location": 2298, - "typeName": { - "location": 2303, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 2273, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 2378, - "relname": "e_star", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 2343, - "relname": "f_star", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f", - "is_local": true, - "location": 2353, - "typeName": { - "location": 2358, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 2328, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 2401, - "relname": "aggtest", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 2412, - "typeName": { - "location": 2417, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 2424, - "typeName": { - "location": 2428, - "names": [ - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 50, - "stmt_location": 2386, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 2452, - "relname": "hash_i4_heap", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "seqno", - "is_local": true, - "location": 2468, - "typeName": { - "location": 2476, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "random", - "is_local": true, - "location": 2483, - "typeName": { - "location": 2492, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 2437, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 2514, - "relname": "hash_name_heap", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "seqno", - "is_local": true, - "location": 2532, - "typeName": { - "location": 2540, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "random", - "is_local": true, - "location": 2547, - "typeName": { - "location": 2556, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 2499, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 2578, - "relname": "hash_txt_heap", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "seqno", - "is_local": true, - "location": 2595, - "typeName": { - "location": 2603, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "random", - "is_local": true, - "location": 2610, - "typeName": { - "location": 2619, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 2563, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 2641, - "relname": "hash_f8_heap", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "seqno", - "is_local": true, - "location": 2657, - "typeName": { - "location": 2664, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "random", - "is_local": true, - "location": 2671, - "typeName": { - "location": 2680, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 2626, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 2883, - "relname": "bt_i4_heap", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "seqno", - "is_local": true, - "location": 2897, - "typeName": { - "location": 2905, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "random", - "is_local": true, - "location": 2912, - "typeName": { - "location": 2921, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 238, - "stmt_location": 2689, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 2943, - "relname": "bt_name_heap", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "seqno", - "is_local": true, - "location": 2959, - "typeName": { - "location": 2967, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "random", - "is_local": true, - "location": 2974, - "typeName": { - "location": 2983, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 2928, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 3005, - "relname": "bt_txt_heap", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "seqno", - "is_local": true, - "location": 3020, - "typeName": { - "location": 3028, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "random", - "is_local": true, - "location": 3035, - "typeName": { - "location": 3044, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 60, - "stmt_location": 2990, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 3066, - "relname": "bt_f8_heap", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "seqno", - "is_local": true, - "location": 3080, - "typeName": { - "location": 3088, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "random", - "is_local": true, - "location": 3097, - "typeName": { - "location": 3106, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 3051, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 3128, - "relname": "array_op_test", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "seqno", - "is_local": true, - "location": 3145, - "typeName": { - "location": 3152, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "i", - "is_local": true, - "location": 3159, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 3163, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "t", - "is_local": true, - "location": 3172, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 3176, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 71, - "stmt_location": 3113, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 3200, - "relname": "array_index_op_test", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "seqno", - "is_local": true, - "location": 3223, - "typeName": { - "location": 3230, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "i", - "is_local": true, - "location": 3237, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 3241, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "t", - "is_local": true, - "location": 3250, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 3254, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 77, - "stmt_location": 3185, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 3278, - "relname": "testjsonb", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "j", - "is_local": true, - "location": 3297, - "typeName": { - "location": 3299, - "names": [ - { - "String": { - "sval": "jsonb", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 43, - "stmt_location": 3263, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "if_not_exists": true, - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 3336, - "relname": "test_tsvector", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "t", - "is_local": true, - "location": 3352, - "typeName": { - "location": 3354, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 3361, - "typeName": { - "location": 3363, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 66, - "stmt_location": 3307, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "if_not_exists": true, - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 3403, - "relname": "test_tsvector", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "t", - "is_local": true, - "location": 3419, - "typeName": { - "location": 3421, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 3374, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 3452, - "relname": "unlogged1", - "relpersistence": "u", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 3469, - }, - }, - ], - "is_local": true, - "location": 3463, - "typeName": { - "location": 3465, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 3428, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 3514, - "relname": "unlogged2", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 3531, - }, - }, - ], - "is_local": true, - "location": 3525, - "typeName": { - "location": 3527, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 3482, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3598, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3646, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3560, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3560, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3569, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relkind", - }, - }, - ], - "location": 3569, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3578, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relpersistence", - }, - }, - ], - "location": 3578, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3613, - }, - }, - "location": 3621, - "name": [ - { - "String": { - "sval": "~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3623, - "sval": { - "sval": "^unlogged\\d", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 109, - "stmt_location": 3544, - }, - }, - { - "RawStmt": { - "stmt": { - "ReindexStmt": { - "kind": "REINDEX_OBJECT_INDEX", - "relation": { - "inh": true, - "location": 3669, - "relname": "unlogged1_pkey", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 29, - "stmt_location": 3654, - }, - }, - { - "RawStmt": { - "stmt": { - "ReindexStmt": { - "kind": "REINDEX_OBJECT_INDEX", - "relation": { - "inh": true, - "location": 3699, - "relname": "unlogged2_pkey", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 29, - "stmt_location": 3684, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3760, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3808, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3722, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3722, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3731, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relkind", - }, - }, - ], - "location": 3731, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3740, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relpersistence", - }, - }, - ], - "location": 3740, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3775, - }, - }, - "location": 3783, - "name": [ - { - "String": { - "sval": "~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3785, - "sval": { - "sval": "^unlogged\\d", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 101, - "stmt_location": 3714, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "unlogged2", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 21, - "stmt_location": 3816, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3851, - "relname": "unlogged1", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 42, - }, - "location": 3869, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 34, - "stmt_location": 3838, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 3896, - "relname": "unlogged2", - "relpersistence": "u", - "schemaname": "public", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 3920, - }, - }, - ], - "is_local": true, - "location": 3914, - "typeName": { - "location": 3916, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 3873, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 3968, - "relname": "unlogged3", - "relpersistence": "u", - "schemaname": "pg_temp", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 3993, - }, - }, - ], - "is_local": true, - "location": 3987, - "typeName": { - "location": 3989, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 72, - "stmt_location": 3933, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 4030, - "relname": "implicitly_temp", - "relpersistence": "p", - "schemaname": "pg_temp", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 4061, - }, - }, - ], - "is_local": true, - "location": 4055, - "typeName": { - "location": 4057, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 67, - "stmt_location": 4006, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 4100, - "relname": "explicitly_temp", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 4123, - }, - }, - ], - "is_local": true, - "location": 4117, - "typeName": { - "location": 4119, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 4074, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 4168, - "relname": "doubly_temp", - "relpersistence": "t", - "schemaname": "pg_temp", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 4195, - }, - }, - ], - "is_local": true, - "location": 4189, - "typeName": { - "location": 4191, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 71, - "stmt_location": 4136, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 4239, - "relname": "temp_to_perm", - "relpersistence": "t", - "schemaname": "public", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 4266, - }, - }, - ], - "is_local": true, - "location": 4260, - "typeName": { - "location": 4262, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 70, - "stmt_location": 4208, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "unlogged1", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "public", - }, - }, - { - "String": { - "sval": "unlogged2", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 50, - "stmt_location": 4279, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateTableAsStmt": { - "into": { - "onCommit": "ONCOMMIT_NOOP", - "rel": { - "inh": true, - "location": 4345, - "relname": "as_select1", - "relpersistence": "p", - }, - }, - "objtype": "OBJECT_TABLE", - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4373, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4366, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4366, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relkind", - }, - }, - ], - "location": 4388, - }, - }, - "location": 4396, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4398, - "sval": { - "sval": "r", - }, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 71, - "stmt_location": 4330, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateTableAsStmt": { - "into": { - "onCommit": "ONCOMMIT_NOOP", - "rel": { - "inh": true, - "location": 4416, - "relname": "as_select1", - "relpersistence": "p", - }, - }, - "objtype": "OBJECT_TABLE", - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4444, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4437, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4437, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relkind", - }, - }, - ], - "location": 4459, - }, - }, - "location": 4467, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4469, - "sval": { - "sval": "r", - }, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 70, - "stmt_location": 4402, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateTableAsStmt": { - "if_not_exists": true, - "into": { - "onCommit": "ONCOMMIT_NOOP", - "rel": { - "inh": true, - "location": 4501, - "relname": "as_select1", - "relpersistence": "p", - }, - }, - "objtype": "OBJECT_TABLE", - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4529, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4522, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4522, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relkind", - }, - }, - ], - "location": 4544, - }, - }, - "location": 4552, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4554, - "sval": { - "sval": "r", - }, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 84, - "stmt_location": 4473, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "as_select1", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 22, - "stmt_location": 4558, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/create_table_like.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 56, - "relname": "inhx", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "xx", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 70, - "raw_expr": { - "A_Const": { - "location": 78, - "sval": { - "sval": "text", - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 62, - "typeName": { - "location": 65, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 85, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 221, - "relname": "ctla", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "aa", - "is_local": true, - "location": 227, - "typeName": { - "location": 230, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 149, - "stmt_location": 86, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 275, - "relname": "ctla", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 250, - "relname": "ctlb", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "bb", - "is_local": true, - "location": 256, - "typeName": { - "location": 259, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 236, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 296, - "relname": "foo", - "relpersistence": "p", - }, - "tableElts": [ - { - "TableLikeClause": { - "relation": { - "inh": true, - "location": 306, - "relname": "nonexistent", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 281, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 370, - "relname": "ctlb", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 334, - "relname": "inhe", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ee", - "is_local": true, - "location": 340, - "typeName": { - "location": 343, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TableLikeClause": { - "relation": { - "inh": true, - "location": 354, - "relname": "inhx", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 319, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 389, - "relname": "inhe", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 402, - "sval": { - "sval": "ee-col1", - }, - }, - }, - { - "A_Const": { - "location": 413, - "sval": { - "sval": "ee-col2", - }, - }, - }, - { - "SetToDefault": { - "location": 424, - }, - }, - { - "A_Const": { - "location": 433, - "sval": { - "sval": "ee-col4", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 67, - "stmt_location": 376, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 459, - "relname": "inhe", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 452, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 452, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 19, - "stmt_location": 444, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 519, - "relname": "inhx", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 512, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 512, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 464, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 590, - "relname": "ctlb", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 583, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 583, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 70, - "stmt_location": 524, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 629, - "relname": "ctla", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 622, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 622, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 595, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 668, - "relname": "inhf", - "relpersistence": "p", - }, - "tableElts": [ - { - "TableLikeClause": { - "relation": { - "inh": true, - "location": 679, - "relname": "inhx", - "relpersistence": "p", - }, - }, - }, - { - "TableLikeClause": { - "relation": { - "inh": true, - "location": 690, - "relname": "inhx", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 634, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 729, - "relname": "inhf", - "relpersistence": "p", - }, - "tableElts": [ - { - "TableLikeClause": { - "options": 12, - "relation": { - "inh": true, - "location": 740, - "relname": "inhx", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 90, - "stmt_location": 696, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 800, - "relname": "inhf", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 32, - "stmt_location": 787, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 835, - "relname": "inhf", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 828, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 828, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 19, - "stmt_location": 820, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "foo", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 900, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "xx", - }, - }, - ], - "location": 922, - }, - }, - "location": 925, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 927, - "sval": { - "sval": "text", - }, - }, - }, - }, - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 891, - "relname": "inhx", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 94, - "stmt_location": 840, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "xx", - }, - }, - ], - "location": 957, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 948, - "relname": "inhx", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 38, - "stmt_location": 935, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 988, - "relname": "inhg", - "relpersistence": "p", - }, - "tableElts": [ - { - "TableLikeClause": { - "relation": { - "inh": true, - "location": 999, - "relname": "inhx", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 974, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1048, - "relname": "inhg", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1061, - "sval": { - "sval": "foo", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 62, - "stmt_location": 1005, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "inhg", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 16, - "stmt_location": 1068, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1099, - "relname": "inhg", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "x", - "is_local": true, - "location": 1105, - "typeName": { - "location": 1107, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TableLikeClause": { - "options": 4, - "relation": { - "inh": true, - "location": 1118, - "relname": "inhx", - "relpersistence": "p", - }, - }, - }, - { - "ColumnDef": { - "colname": "y", - "is_local": true, - "location": 1146, - "typeName": { - "location": 1148, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 68, - "stmt_location": 1085, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1192, - "relname": "inhg", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1205, - "sval": { - "sval": "x", - }, - }, - }, - { - "A_Const": { - "location": 1210, - "sval": { - "sval": "text", - }, - }, - }, - { - "A_Const": { - "location": 1218, - "sval": { - "sval": "y", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 68, - "stmt_location": 1154, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1251, - "relname": "inhg", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1264, - "sval": { - "sval": "x", - }, - }, - }, - { - "A_Const": { - "location": 1269, - "sval": { - "sval": "text", - }, - }, - }, - { - "A_Const": { - "location": 1277, - "sval": { - "sval": "y", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 58, - "stmt_location": 1223, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1343, - "relname": "inhg", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1356, - "sval": { - "sval": "x", - }, - }, - }, - { - "A_Const": { - "location": 1361, - "sval": { - "sval": "foo", - }, - }, - }, - { - "A_Const": { - "location": 1369, - "sval": { - "sval": "y", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 91, - "stmt_location": 1282, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1420, - "relname": "inhg", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1413, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1413, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 50, - "stmt_location": 1374, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "inhg", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 80, - "stmt_location": 1425, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1521, - "relname": "inhg", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "x", - "is_local": true, - "location": 1527, - "typeName": { - "location": 1529, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TableLikeClause": { - "options": 64, - "relation": { - "inh": true, - "location": 1540, - "relname": "inhx", - "relpersistence": "p", - }, - }, - }, - { - "ColumnDef": { - "colname": "y", - "is_local": true, - "location": 1564, - "typeName": { - "location": 1566, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 65, - "stmt_location": 1506, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1606, - "relname": "inhg", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 1619, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 1622, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 53, - "stmt_location": 1572, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1639, - "relname": "inhg", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 20, - }, - "location": 1652, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 1656, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 33, - "stmt_location": 1626, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "inhg", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 31, - "stmt_location": 1660, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1755, - "relname": "inhg", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "x", - "is_local": true, - "location": 1761, - "typeName": { - "location": 1763, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TableLikeClause": { - "options": 64, - "relation": { - "inh": true, - "location": 1774, - "relname": "inhx", - "relpersistence": "p", - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 1798, - }, - }, - ], - }, - }, - "stmt_len": 121, - "stmt_location": 1692, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1840, - "relname": "inhz", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "xx", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 1854, - "raw_expr": { - "A_Const": { - "location": 1862, - "sval": { - "sval": "text", - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 1846, - "typeName": { - "location": 1849, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "yy", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_UNIQUE", - "location": 1877, - }, - }, - ], - "is_local": true, - "location": 1870, - "typeName": { - "location": 1873, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 70, - "stmt_location": 1814, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "inhz_xx_idx", - "indexParams": [ - { - "IndexElem": { - "name": "xx", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 1921, - "relname": "inhz", - "relpersistence": "p", - }, - "unique": true, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "xx", - }, - }, - ], - "location": 1937, - }, - }, - "location": 1940, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1943, - "sval": { - "sval": "test", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 64, - "stmt_location": 1885, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 2007, - "relname": "inhg", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "x", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_UNIQUE", - "location": 2020, - }, - }, - ], - "is_local": true, - "location": 2013, - "typeName": { - "location": 2015, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TableLikeClause": { - "options": 64, - "relation": { - "inh": true, - "location": 2033, - "relname": "inhz", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 106, - "stmt_location": 1950, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2076, - "name": "xx", - }, - }, - { - "ResTarget": { - "location": 2080, - "name": "yy", - }, - }, - { - "ResTarget": { - "location": 2084, - "name": "x", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2070, - "relname": "inhg", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 2095, - "sval": { - "sval": "test", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 2103, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 2106, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 52, - "stmt_location": 2057, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2129, - "name": "xx", - }, - }, - { - "ResTarget": { - "location": 2133, - "name": "yy", - }, - }, - { - "ResTarget": { - "location": 2137, - "name": "x", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2123, - "relname": "inhg", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 2148, - "sval": { - "sval": "test", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 2156, - }, - }, - { - "A_Const": { - "ival": { - "ival": 15, - }, - "location": 2160, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 53, - "stmt_location": 2110, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2183, - "name": "xx", - }, - }, - { - "ResTarget": { - "location": 2187, - "name": "yy", - }, - }, - { - "ResTarget": { - "location": 2191, - "name": "x", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2177, - "relname": "inhg", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 2202, - "sval": { - "sval": "foo", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 2209, - }, - }, - { - "A_Const": { - "ival": { - "ival": 15, - }, - "location": 2213, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 52, - "stmt_location": 2164, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "inhg", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 31, - "stmt_location": 2217, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "inhz", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 16, - "stmt_location": 2249, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 2315, - "relname": "ctlt1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 2329, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2343, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "length", - }, - }, - ], - "location": 2336, - }, - }, - "location": 2346, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2348, - }, - }, - }, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 2351, - }, - }, - ], - "is_local": true, - "location": 2322, - "typeName": { - "location": 2324, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 2364, - "typeName": { - "location": 2366, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 105, - "stmt_location": 2266, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "ctlt1_b_key", - "indexParams": [ - { - "IndexElem": { - "name": "b", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 2401, - "relname": "ctlt1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 38, - "stmt_location": 2372, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "ctlt1_fnidx", - "indexParams": [ - { - "IndexElem": { - "expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2448, - }, - }, - "location": 2450, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2453, - }, - }, - }, - }, - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 2440, - "relname": "ctlt1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 45, - "stmt_location": 2411, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "A", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "ctlt1", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - }, - }, - "objtype": "OBJECT_COLUMN", - }, - }, - "stmt_len": 33, - "stmt_location": 2457, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "B", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "ctlt1", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - }, - }, - "objtype": "OBJECT_COLUMN", - }, - }, - "stmt_len": 33, - "stmt_location": 2491, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "t1_a_check", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "ctlt1", - }, - }, - { - "String": { - "sval": "ctlt1_a_check", - }, - }, - ], - }, - }, - "objtype": "OBJECT_TABCONSTRAINT", - }, - }, - "stmt_len": 61, - "stmt_location": 2525, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "index pkey", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "ctlt1_pkey", - }, - }, - ], - }, - }, - "objtype": "OBJECT_INDEX", - }, - }, - "stmt_len": 44, - "stmt_location": 2587, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "index b_key", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "ctlt1_b_key", - }, - }, - ], - }, - }, - "objtype": "OBJECT_INDEX", - }, - }, - "stmt_len": 46, - "stmt_location": 2632, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "String": { - "sval": "main", - }, - }, - "name": "a", - "subtype": "AT_SetStorage", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 2692, - "relname": "ctlt1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 50, - "stmt_location": 2679, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 2745, - "relname": "ctlt2", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "c", - "is_local": true, - "location": 2752, - "typeName": { - "location": 2754, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 29, - "stmt_location": 2730, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "String": { - "sval": "external", - }, - }, - "name": "c", - "subtype": "AT_SetStorage", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 2773, - "relname": "ctlt2", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 54, - "stmt_location": 2760, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "C", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "ctlt2", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - }, - }, - "objtype": "OBJECT_COLUMN", - }, - }, - "stmt_len": 33, - "stmt_location": 2815, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 2864, - "relname": "ctlt3", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 2878, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2892, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "length", - }, - }, - ], - "location": 2885, - }, - }, - "location": 2895, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 2897, - }, - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 2871, - "typeName": { - "location": 2873, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c", - "is_local": true, - "location": 2901, - "typeName": { - "location": 2903, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 2849, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "String": { - "sval": "external", - }, - }, - "name": "c", - "subtype": "AT_SetStorage", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 2922, - "relname": "ctlt3", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 54, - "stmt_location": 2909, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "String": { - "sval": "main", - }, - }, - "name": "a", - "subtype": "AT_SetStorage", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 2977, - "relname": "ctlt3", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 50, - "stmt_location": 2964, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "A3", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "ctlt3", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - }, - }, - "objtype": "OBJECT_COLUMN", - }, - }, - "stmt_len": 34, - "stmt_location": 3015, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "C", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "ctlt3", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - }, - }, - "objtype": "OBJECT_COLUMN", - }, - }, - "stmt_len": 33, - "stmt_location": 3050, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "t3_a_check", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "ctlt3", - }, - }, - { - "String": { - "sval": "ctlt3_a_check", - }, - }, - ], - }, - }, - "objtype": "OBJECT_TABCONSTRAINT", - }, - }, - "stmt_len": 61, - "stmt_location": 3084, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 3161, - "relname": "ctlt4", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 3168, - "typeName": { - "location": 3170, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c", - "is_local": true, - "location": 3176, - "typeName": { - "location": 3178, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 3146, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "String": { - "sval": "external", - }, - }, - "name": "c", - "subtype": "AT_SetStorage", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 3197, - "relname": "ctlt4", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 54, - "stmt_location": 3184, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 3254, - "relname": "ctlt12_storage", - "relpersistence": "p", - }, - "tableElts": [ - { - "TableLikeClause": { - "options": 256, - "relation": { - "inh": true, - "location": 3275, - "relname": "ctlt1", - "relpersistence": "p", - }, - }, - }, - { - "TableLikeClause": { - "options": 256, - "relation": { - "inh": true, - "location": 3305, - "relname": "ctlt2", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 90, - "stmt_location": 3239, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 3346, - "relname": "ctlt12_comments", - "relpersistence": "p", - }, - "tableElts": [ - { - "TableLikeClause": { - "options": 1, - "relation": { - "inh": true, - "location": 3368, - "relname": "ctlt1", - "relpersistence": "p", - }, - }, - }, - { - "TableLikeClause": { - "options": 1, - "relation": { - "inh": true, - "location": 3399, - "relname": "ctlt2", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 94, - "stmt_location": 3330, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 3515, - "relname": "ctlt1", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 3441, - "relname": "ctlt1_inh", - "relpersistence": "p", - }, - "tableElts": [ - { - "TableLikeClause": { - "options": 5, - "relation": { - "inh": true, - "location": 3457, - "relname": "ctlt1", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 96, - "stmt_location": 3425, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3549, - "relname": "pg_description", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "c", - }, - "inh": true, - "location": 3565, - "relname": "pg_constraint", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3532, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "description", - }, - }, - ], - "location": 3532, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "classoid", - }, - }, - ], - "location": 3587, - }, - }, - "location": 3596, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3598, - "sval": { - "sval": "pg_constraint", - }, - }, - }, - "location": 3613, - "typeName": { - "location": 3615, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objoid", - }, - }, - ], - "location": 3628, - }, - }, - "location": 3635, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3637, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "conrelid", - }, - }, - ], - "location": 3647, - }, - }, - "location": 3658, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3660, - "sval": { - "sval": "ctlt1_inh", - }, - }, - }, - "location": 3671, - "typeName": { - "location": 3673, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 3624, - }, - }, - }, - }, - "stmt_len": 159, - "stmt_location": 3522, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 3720, - "relname": "ctlt1", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 3727, - "relname": "ctlt3", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 3696, - "relname": "ctlt13_inh", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 51, - "stmt_location": 3682, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 3844, - "relname": "ctlt1", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 3750, - "relname": "ctlt13_like", - "relpersistence": "p", - }, - "tableElts": [ - { - "TableLikeClause": { - "options": 261, - "relation": { - "inh": true, - "location": 3768, - "relname": "ctlt3", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 116, - "stmt_location": 3734, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3878, - "relname": "pg_description", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "c", - }, - "inh": true, - "location": 3894, - "relname": "pg_constraint", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3861, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "description", - }, - }, - ], - "location": 3861, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "classoid", - }, - }, - ], - "location": 3916, - }, - }, - "location": 3925, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3927, - "sval": { - "sval": "pg_constraint", - }, - }, - }, - "location": 3942, - "typeName": { - "location": 3944, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objoid", - }, - }, - ], - "location": 3957, - }, - }, - "location": 3964, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3966, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "conrelid", - }, - }, - ], - "location": 3976, - }, - }, - "location": 3987, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3989, - "sval": { - "sval": "ctlt13_like", - }, - }, - }, - "location": 4002, - "typeName": { - "location": 4004, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 3953, - }, - }, - }, - }, - "stmt_len": 161, - "stmt_location": 3851, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 4028, - "relname": "ctlt_all", - "relpersistence": "p", - }, - "tableElts": [ - { - "TableLikeClause": { - "options": 2147483647, - "relation": { - "inh": true, - "location": 4043, - "relname": "ctlt1", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 50, - "stmt_location": 4013, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4112, - "relname": "pg_description", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 4128, - "relname": "pg_index", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "c", - }, - "inh": true, - "location": 4140, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 4287, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objsubid", - }, - }, - ], - "location": 4298, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 4074, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 4074, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4085, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objsubid", - }, - }, - ], - "location": 4085, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4095, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "description", - }, - }, - ], - "location": 4095, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "classoid", - }, - }, - ], - "location": 4157, - }, - }, - "location": 4166, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4168, - "sval": { - "sval": "pg_class", - }, - }, - }, - "location": 4178, - "typeName": { - "location": 4180, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "objoid", - }, - }, - ], - "location": 4193, - }, - }, - "location": 4200, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "indexrelid", - }, - }, - ], - "location": 4202, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 4219, - }, - }, - "location": 4225, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "indexrelid", - }, - }, - ], - "location": 4227, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "indrelid", - }, - }, - ], - "location": 4244, - }, - }, - "location": 4255, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4257, - "sval": { - "sval": "ctlt_all", - }, - }, - }, - "location": 4267, - "typeName": { - "location": 4269, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 4189, - }, - }, - }, - }, - "stmt_len": 242, - "stmt_location": 4064, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 4346, - "relname": "ctlt1", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 4353, - "relname": "ctlt4", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 4322, - "relname": "inh_error1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 52, - "stmt_location": 4307, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 4426, - "relname": "ctlt1", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 4374, - "relname": "inh_error2", - "relpersistence": "p", - }, - "tableElts": [ - { - "TableLikeClause": { - "options": 256, - "relation": { - "inh": true, - "location": 4391, - "relname": "ctlt4", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 72, - "stmt_location": 4360, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "ctlt1", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "ctlt2", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "ctlt3", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "ctlt4", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "ctlt12_storage", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "ctlt12_comments", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "ctlt1_inh", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "ctlt13_inh", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "ctlt13_like", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "ctlt_all", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "ctla", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "ctlb", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 138, - "stmt_location": 4433, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 4626, - "relname": "ctlt4", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 4633, - "typeName": { - "location": 4635, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 4640, - "typeName": { - "location": 4642, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 75, - "stmt_location": 4572, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateSeqStmt": { - "sequence": { - "inh": true, - "location": 4666, - "relname": "ctlseq1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 25, - "stmt_location": 4648, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 4688, - "relname": "ctlt10", - "relpersistence": "p", - }, - "tableElts": [ - { - "TableLikeClause": { - "relation": { - "inh": true, - "location": 4701, - "relname": "ctlseq1", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 4674, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4756, - "relname": "ctlt4", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4749, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4749, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 4733, - "relname": "ctlv1", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 51, - "stmt_location": 4710, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 4776, - "relname": "ctlt11", - "relpersistence": "p", - }, - "tableElts": [ - { - "TableLikeClause": { - "relation": { - "inh": true, - "location": 4789, - "relname": "ctlv1", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 4762, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 4810, - "relname": "ctlt11a", - "relpersistence": "p", - }, - "tableElts": [ - { - "TableLikeClause": { - "options": 2147483647, - "relation": { - "inh": true, - "location": 4824, - "relname": "ctlv1", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 48, - "stmt_location": 4796, - }, - }, - { - "RawStmt": { - "stmt": { - "CompositeTypeStmt": { - "coldeflist": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 4870, - "typeName": { - "location": 4872, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 4877, - "typeName": { - "location": 4879, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "typevar": { - "location": 4859, - "relname": "ctlty1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 39, - "stmt_location": 4845, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 4899, - "relname": "ctlt12", - "relpersistence": "p", - }, - "tableElts": [ - { - "TableLikeClause": { - "relation": { - "inh": true, - "location": 4912, - "relname": "ctlty1", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 4885, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "ctlseq1", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_SEQUENCE", - }, - }, - "stmt_len": 23, - "stmt_location": 4920, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 4955, - "names": [ - { - "String": { - "sval": "ctlty1", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_TYPE", - }, - }, - "stmt_len": 17, - "stmt_location": 4944, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "ctlv1", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_VIEW", - }, - }, - "stmt_len": 16, - "stmt_location": 4962, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "ctlt4", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "ctlt10", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "ctlt11", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "ctlt11a", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "ctlt12", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 60, - "stmt_location": 4979, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 5076, - "relname": "no_oid", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "y", - "is_local": true, - "location": 5084, - "typeName": { - "location": 5086, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 5040, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 5109, - "relname": "like_test", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "z", - "is_local": true, - "location": 5120, - "typeName": { - "location": 5122, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TableLikeClause": { - "relation": { - "inh": true, - "location": 5136, - "relname": "has_oid", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 49, - "stmt_location": 5095, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5162, - "relname": "like_test", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5153, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 5153, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 5145, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 5186, - "relname": "like_test2", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "z", - "is_local": true, - "location": 5198, - "typeName": { - "location": 5200, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TableLikeClause": { - "relation": { - "inh": true, - "location": 5214, - "relname": "no_oid", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 49, - "stmt_location": 5172, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5239, - "relname": "like_test2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5230, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 5230, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 5222, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 5272, - "relname": "like_test3", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "z", - "is_local": true, - "location": 5284, - "typeName": { - "location": 5286, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TableLikeClause": { - "relation": { - "inh": true, - "location": 5300, - "relname": "has_oid", - "relpersistence": "p", - }, - }, - }, - { - "TableLikeClause": { - "relation": { - "inh": true, - "location": 5314, - "relname": "no_oid", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 71, - "stmt_location": 5250, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5339, - "relname": "like_test3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5330, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 5330, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 5322, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 5364, - "relname": "like_test4", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "z", - "is_local": true, - "location": 5376, - "typeName": { - "location": 5378, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 5387, - }, - }, - { - "TableLikeClause": { - "relation": { - "inh": true, - "location": 5410, - "relname": "has_oid", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 68, - "stmt_location": 5350, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5436, - "relname": "like_test4", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5427, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 5427, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 5419, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "has_oid", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "no_oid", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "like_test", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "like_test2", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "like_test3", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "like_test4", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 74, - "stmt_location": 5447, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/create_type.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "Integer": { - "ival": 24, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "internallength", - "location": 256, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 288, - "names": [ - { - "String": { - "sval": "widget_in", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "input", - "location": 280, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 311, - "names": [ - { - "String": { - "sval": "widget_out", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "output", - "location": 302, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 338, - "names": [ - { - "String": { - "sval": "numerictypmodin", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "typmod_in", - "location": 326, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 371, - "names": [ - { - "String": { - "sval": "numerictypmodout", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "typmod_out", - "location": 358, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 404, - "names": [ - { - "String": { - "sval": "double", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "alignment", - "location": 392, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "widget", - }, - }, - ], - "kind": "OBJECT_TYPE", - }, - }, - "stmt_len": 412, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "Integer": { - "ival": 16, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "internallength", - "location": 444, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 476, - "names": [ - { - "String": { - "sval": "int44in", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "input", - "location": 468, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 497, - "names": [ - { - "String": { - "sval": "int44out", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "output", - "location": 488, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 520, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "element", - "location": 510, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "x", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "category", - "location": 529, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "true", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "preferred", - "location": 592, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "city_budget", - }, - }, - ], - "kind": "OBJECT_TYPE", - }, - }, - "stmt_len": 207, - "stmt_location": 413, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "defnames": [ - { - "String": { - "sval": "shell", - }, - }, - ], - "kind": "OBJECT_TYPE", - }, - }, - "stmt_len": 67, - "stmt_location": 621, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "defnames": [ - { - "String": { - "sval": "shell", - }, - }, - ], - "kind": "OBJECT_TYPE", - }, - }, - "stmt_len": 18, - "stmt_location": 689, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 751, - "names": [ - { - "String": { - "sval": "shell", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_TYPE", - }, - }, - "stmt_len": 48, - "stmt_location": 708, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 768, - "names": [ - { - "String": { - "sval": "shell", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_TYPE", - }, - }, - "stmt_len": 16, - "stmt_location": 757, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "defnames": [ - { - "String": { - "sval": "myshell", - }, - }, - ], - "kind": "OBJECT_TYPE", - }, - }, - "stmt_len": 113, - "stmt_location": 774, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "defnames": [ - { - "String": { - "sval": "int42", - }, - }, - ], - "kind": "OBJECT_TYPE", - }, - }, - "stmt_len": 214, - "stmt_location": 888, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "defnames": [ - { - "String": { - "sval": "text_w_default", - }, - }, - ], - "kind": "OBJECT_TYPE", - }, - }, - "stmt_len": 27, - "stmt_location": 1103, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "int42_in", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "int4in", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 1265, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "internal", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 1280, - }, - }, - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "strict", - "location": 1298, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "immutable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 1305, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 1236, - "names": [ - { - "String": { - "sval": "cstring", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 1256, - "names": [ - { - "String": { - "sval": "int42", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 183, - "stmt_location": 1131, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "int42_out", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "int4out", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 1371, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "internal", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 1387, - }, - }, - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "strict", - "location": 1405, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "immutable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 1412, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 1342, - "names": [ - { - "String": { - "sval": "int42", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 1360, - "names": [ - { - "String": { - "sval": "cstring", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 106, - "stmt_location": 1315, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "text_w_default_in", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "textin", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 1495, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "internal", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 1510, - }, - }, - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "strict", - "location": 1528, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "immutable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 1535, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 1457, - "names": [ - { - "String": { - "sval": "cstring", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 1477, - "names": [ - { - "String": { - "sval": "text_w_default", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 122, - "stmt_location": 1422, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "text_w_default_out", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "textout", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 1619, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "internal", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 1635, - }, - }, - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "strict", - "location": 1653, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "immutable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 1660, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 1581, - "names": [ - { - "String": { - "sval": "text_w_default", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 1608, - "names": [ - { - "String": { - "sval": "cstring", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 124, - "stmt_location": 1545, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "Integer": { - "ival": 4, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "internallength", - "location": 1695, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1726, - "names": [ - { - "String": { - "sval": "int42_in", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "input", - "location": 1718, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1748, - "names": [ - { - "String": { - "sval": "int42_out", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "output", - "location": 1739, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1774, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "alignment", - "location": 1762, - }, - }, - { - "DefElem": { - "arg": { - "Integer": { - "ival": 42, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "default", - "location": 1783, - }, - }, - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "passedbyvalue", - "location": 1800, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "int42", - }, - }, - ], - "kind": "OBJECT_TYPE", - }, - }, - "stmt_len": 145, - "stmt_location": 1670, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1867, - "names": [ - { - "String": { - "sval": "variable", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "internallength", - "location": 1850, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1888, - "names": [ - { - "String": { - "sval": "text_w_default_in", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "input", - "location": 1880, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1919, - "names": [ - { - "String": { - "sval": "text_w_default_out", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "output", - "location": 1910, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1954, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "alignment", - "location": 1942, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "zippo", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "default", - "location": 1963, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "text_w_default", - }, - }, - ], - "kind": "OBJECT_TYPE", - }, - }, - "stmt_len": 166, - "stmt_location": 1816, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1998, - "relname": "default_test", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 2012, - "typeName": { - "location": 2015, - "names": [ - { - "String": { - "sval": "text_w_default", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "f2", - "is_local": true, - "location": 2031, - "typeName": { - "location": 2034, - "names": [ - { - "String": { - "sval": "int42", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 1983, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2055, - "relname": "default_test", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 41, - "stmt_location": 2041, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2099, - "relname": "default_test", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2092, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2092, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 2083, - }, - }, - { - "RawStmt": { - "stmt": { - "CompositeTypeStmt": { - "coldeflist": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 2183, - "typeName": { - "location": 2186, - "names": [ - { - "String": { - "sval": "text_w_default", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "f2", - "is_local": true, - "location": 2202, - "typeName": { - "location": 2205, - "names": [ - { - "String": { - "sval": "int42", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "typevar": { - "location": 2162, - "relname": "default_test_row", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 99, - "stmt_location": 2112, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "get_default_test", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " - SELECT * FROM default_test; -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 2280, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 2317, - }, - }, - ], - "returnType": { - "location": 2263, - "names": [ - { - "String": { - "sval": "default_test_row", - }, - }, - ], - "setof": true, - "typemod": -1, - }, - }, - }, - "stmt_len": 117, - "stmt_location": 2212, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "get_default_test", - }, - }, - ], - "location": 2346, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2339, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2339, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 2330, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "bad comment", - "object": { - "TypeName": { - "location": 2400, - "names": [ - { - "String": { - "sval": "bad", - }, - }, - ], - "typemod": -1, - }, - }, - "objtype": "OBJECT_TYPE", - }, - }, - "stmt_len": 55, - "stmt_location": 2365, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "good comment", - "object": { - "TypeName": { - "location": 2438, - "names": [ - { - "String": { - "sval": "default_test_row", - }, - }, - ], - "typemod": -1, - }, - }, - "objtype": "OBJECT_TYPE", - }, - }, - "stmt_len": 51, - "stmt_location": 2421, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "object": { - "TypeName": { - "location": 2490, - "names": [ - { - "String": { - "sval": "default_test_row", - }, - }, - ], - "typemod": -1, - }, - }, - "objtype": "OBJECT_TYPE", - }, - }, - "stmt_len": 41, - "stmt_location": 2473, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "bad comment", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "default_test_row", - }, - }, - { - "String": { - "sval": "nope", - }, - }, - ], - }, - }, - "objtype": "OBJECT_COLUMN", - }, - }, - "stmt_len": 57, - "stmt_location": 2515, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "good comment", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "default_test_row", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - }, - }, - "objtype": "OBJECT_COLUMN", - }, - }, - "stmt_len": 56, - "stmt_location": 2573, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "object": { - "List": { - "items": [ - { - "String": { - "sval": "default_test_row", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - }, - }, - "objtype": "OBJECT_COLUMN", - }, - }, - "stmt_len": 46, - "stmt_location": 2630, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "defnames": [ - { - "String": { - "sval": "text_w_default", - }, - }, - ], - "kind": "OBJECT_TYPE", - }, - }, - "stmt_len": 74, - "stmt_location": 2677, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "TypeName": { - "location": 2780, - "names": [ - { - "String": { - "sval": "default_test_row", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_TYPE", - }, - }, - "stmt_len": 52, - "stmt_location": 2752, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "default_test", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 25, - "stmt_location": 2805, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2927, - "names": [ - { - "String": { - "sval": "array_in", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "input", - "location": 2919, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2950, - "names": [ - { - "String": { - "sval": "array_out", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "output", - "location": 2941, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2975, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "element", - "location": 2965, - }, - }, - { - "DefElem": { - "arg": { - "Integer": { - "ival": 32, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "internallength", - "location": 2984, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "not_existing_type", - }, - }, - ], - "kind": "OBJECT_TYPE", - }, - }, - "stmt_len": 173, - "stmt_location": 2831, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 3125, - "relname": "mytab", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "foo", - "is_local": true, - "location": 3132, - "typeName": { - "location": 3136, - "names": [ - { - "String": { - "sval": "widget", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 42, - }, - "location": 3143, - }, - }, - { - "A_Const": { - "ival": { - "ival": 13, - }, - "location": 3146, - }, - }, - { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 3149, - }, - }, - ], - }, - }, - }, - ], - }, - }, - "stmt_len": 147, - "stmt_location": 3005, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 3191, - "relname": "mytab", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "foo", - "is_local": true, - "location": 3198, - "typeName": { - "location": 3202, - "names": [ - { - "String": { - "sval": "widget", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 42, - }, - "location": 3209, - }, - }, - { - "A_Const": { - "ival": { - "ival": 13, - }, - "location": 3212, - }, - }, - ], - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 3153, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3263, - "relname": "pg_attribute", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3226, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "atttypid", - }, - }, - ], - "location": 3238, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "atttypmod", - }, - }, - ], - "location": 3247, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format_type", - }, - }, - ], - "location": 3226, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "attrelid", - }, - }, - ], - "location": 3282, - }, - }, - "location": 3291, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3293, - "sval": { - "sval": "mytab", - }, - }, - }, - "location": 3300, - "typeName": { - "location": 3302, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "attnum", - }, - }, - ], - "location": 3315, - }, - }, - "location": 3322, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 3324, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 3311, - }, - }, - }, - }, - "stmt_len": 108, - "stmt_location": 3217, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/create_view.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "r", - }, - "location": 178, - "relname": "road", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "c", - }, - "inh": true, - "location": 186, - "relname": "real_city", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 129, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "r", - }, - }, - { - "String": { - "sval": "name", - }, - }, - ], - "location": 129, - }, - }, - }, - }, - { - "ResTarget": { - "location": 137, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "r", - }, - }, - { - "String": { - "sval": "thepath", - }, - }, - ], - "location": 137, - }, - }, - }, - }, - { - "ResTarget": { - "location": 148, - "name": "cname", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "cname", - }, - }, - ], - "location": 148, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "outline", - }, - }, - ], - "location": 207, - }, - }, - "location": 217, - "name": [ - { - "String": { - "sval": "##", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "r", - }, - }, - { - "String": { - "sval": "thepath", - }, - }, - ], - "location": 220, - }, - }, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 109, - "relname": "street", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 229, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "ih", - }, - "inh": true, - "location": 335, - "relname": "ihighway", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "r", - }, - "inh": true, - "location": 348, - "relname": "ramp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 263, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ih", - }, - }, - { - "String": { - "sval": "name", - }, - }, - ], - "location": 263, - }, - }, - }, - }, - { - "ResTarget": { - "location": 272, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ih", - }, - }, - { - "String": { - "sval": "thepath", - }, - }, - ], - "location": 272, - }, - }, - }, - }, - { - "ResTarget": { - "location": 285, - "name": "exit", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ih", - }, - }, - { - "String": { - "sval": "thepath", - }, - }, - ], - "location": 296, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "r", - }, - }, - { - "String": { - "sval": "thepath", - }, - }, - ], - "location": 308, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "interpt_pp", - }, - }, - ], - "location": 285, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ih", - }, - }, - { - "String": { - "sval": "thepath", - }, - }, - ], - "location": 364, - }, - }, - "location": 375, - "name": [ - { - "String": { - "sval": "##", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "r", - }, - }, - { - "String": { - "sval": "thepath", - }, - }, - ], - "location": 378, - }, - }, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 244, - "relname": "iexit", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 157, - "stmt_location": 230, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 474, - "relname": "emp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 422, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "name", - }, - }, - ], - "location": 422, - }, - }, - }, - }, - { - "ResTarget": { - "location": 428, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "age", - }, - }, - ], - "location": 428, - }, - }, - }, - }, - { - "ResTarget": { - "location": 433, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "location", - }, - }, - ], - "location": 433, - }, - }, - }, - }, - { - "ResTarget": { - "location": 443, - "name": "annualsal", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 12, - }, - "location": 443, - }, - }, - "location": 445, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "salary", - }, - }, - ], - "location": 446, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 402, - "relname": "toyemp", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 89, - "stmt_location": 388, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "no view", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "noview", - }, - }, - ], - }, - }, - "objtype": "OBJECT_VIEW", - }, - }, - "stmt_len": 54, - "stmt_location": 478, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "is a view", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "toyemp", - }, - }, - ], - }, - }, - "objtype": "OBJECT_VIEW", - }, - }, - "stmt_len": 38, - "stmt_location": 533, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "object": { - "List": { - "items": [ - { - "String": { - "sval": "toyemp", - }, - }, - ], - }, - }, - "objtype": "OBJECT_VIEW", - }, - }, - "stmt_len": 31, - "stmt_location": 572, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 652, - "relname": "viewtest_tbl", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 666, - "typeName": { - "location": 668, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 673, - "typeName": { - "location": 675, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 75, - "stmt_location": 604, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 744, - "relname": "viewtest_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 737, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 737, - }, - }, - }, - }, - ], - }, - }, - "replace": true, - "view": { - "inh": true, - "location": 717, - "relname": "viewtest", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 76, - "stmt_location": 680, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 809, - "relname": "viewtest_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 802, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 802, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 828, - }, - }, - "location": 830, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 832, - }, - }, - }, - }, - }, - }, - "replace": true, - "view": { - "inh": true, - "location": 782, - "relname": "viewtest", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 77, - "stmt_location": 757, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 851, - "relname": "viewtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 844, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 844, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 835, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 915, - "relname": "viewtest_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 949, - }, - }, - "sortby_dir": "SORTBY_DESC", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 905, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 905, - }, - }, - }, - }, - { - "ResTarget": { - "location": 908, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 908, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 934, - }, - }, - "location": 936, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 938, - }, - }, - }, - }, - }, - }, - "replace": true, - "view": { - "inh": true, - "location": 885, - "relname": "viewtest", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 95, - "stmt_location": 860, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 972, - "relname": "viewtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 965, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 965, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 956, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1048, - "relname": "viewtest_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1041, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1041, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1067, - }, - }, - "location": 1069, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 20, - }, - "location": 1072, - }, - }, - }, - }, - }, - }, - "replace": true, - "view": { - "inh": true, - "location": 1021, - "relname": "viewtest", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 93, - "stmt_location": 981, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1145, - "relname": "viewtest_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1135, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1135, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1138, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1138, - }, - }, - }, - }, - ], - }, - }, - "replace": true, - "view": { - "inh": true, - "location": 1115, - "relname": "viewtest", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 82, - "stmt_location": 1075, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1237, - "relname": "viewtest_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1218, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1218, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1221, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1221, - }, - }, - "location": 1222, - "typeName": { - "location": 1224, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "replace": true, - "view": { - "inh": true, - "location": 1198, - "relname": "viewtest", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 91, - "stmt_location": 1158, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1328, - "relname": "viewtest_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1310, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1310, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1313, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1313, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1316, - "name": "c", - "val": { - "A_Const": { - "ival": {}, - "location": 1316, - }, - }, - }, - }, - ], - }, - }, - "replace": true, - "view": { - "inh": true, - "location": 1290, - "relname": "viewtest", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 90, - "stmt_location": 1250, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "viewtest", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_VIEW", - }, - }, - "stmt_len": 20, - "stmt_location": 1341, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "viewtest_tbl", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 24, - "stmt_location": 1362, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateSchemaStmt": { - "schemaElts": [ - { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1465, - "relname": "base_table", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 1477, - "typeName": { - "location": 1479, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "id", - "is_local": true, - "location": 1484, - "typeName": { - "location": 1487, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1509, - "relname": "base_table2", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 1522, - "typeName": { - "location": 1524, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "id", - "is_local": true, - "location": 1529, - "typeName": { - "location": 1532, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - "schemaname": "temp_view_test", - }, - }, - "stmt_len": 149, - "stmt_location": 1387, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 1558, - "sval": { - "sval": "temp_view_test", - }, - }, - }, - { - "A_Const": { - "location": 1574, - "sval": { - "sval": "public", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "search_path", - }, - }, - "stmt_len": 43, - "stmt_location": 1537, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1606, - "relname": "temp_table", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 1618, - "typeName": { - "location": 1620, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "id", - "is_local": true, - "location": 1625, - "typeName": { - "location": 1628, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 1581, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1713, - "relname": "base_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1706, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1706, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 1693, - "relname": "v1", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 90, - "stmt_location": 1633, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1805, - "relname": "temp_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1798, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1798, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 1780, - "relname": "v1_temp", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 91, - "stmt_location": 1724, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1902, - "relname": "base_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1895, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1895, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 1877, - "relname": "v2_temp", - "relpersistence": "t", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 96, - "stmt_location": 1816, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2003, - "relname": "base_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1996, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1996, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 1968, - "relname": "v2", - "relpersistence": "p", - "schemaname": "temp_view_test", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 100, - "stmt_location": 1913, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2082, - "relname": "temp_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2075, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2075, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 2042, - "relname": "v3_temp", - "relpersistence": "p", - "schemaname": "temp_view_test", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 78, - "stmt_location": 2014, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateSchemaStmt": { - "schemaElts": [ - { - "ViewStmt": { - "query": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2175, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2175, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 2156, - "relname": "testview", - "relpersistence": "t", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - ], - "schemaname": "test_schema", - }, - }, - "stmt_len": 83, - "stmt_location": 2093, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "t1", - }, - "inh": true, - "location": 2358, - "relname": "base_table", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "t2", - }, - "inh": true, - "location": 2373, - "relname": "base_table2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2322, - "name": "t1_a", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2322, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2336, - "name": "t2_a", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2336, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "id", - }, - }, - ], - "location": 2398, - }, - }, - "location": 2404, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "id", - }, - }, - ], - "location": 2406, - }, - }, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 2305, - "relname": "v3", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 234, - "stmt_location": 2177, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "t1", - }, - "inh": true, - "location": 2524, - "relname": "base_table", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "t2", - }, - "inh": true, - "location": 2539, - "relname": "temp_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2488, - "name": "t1_a", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2488, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2502, - "name": "t2_a", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2502, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "id", - }, - }, - ], - "location": 2563, - }, - }, - "location": 2569, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "id", - }, - }, - ], - "location": 2571, - }, - }, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 2466, - "relname": "v4_temp", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 164, - "stmt_location": 2412, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "t1", - }, - "inh": true, - "location": 2680, - "relname": "base_table", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "t2", - }, - "inh": true, - "location": 2695, - "relname": "base_table2", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "t3", - }, - "inh": true, - "location": 2711, - "relname": "temp_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2630, - "name": "t1_a", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2630, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2644, - "name": "t2_a", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2644, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2658, - "name": "t3_a", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t3", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2658, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "id", - }, - }, - ], - "location": 2735, - }, - }, - "location": 2741, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "id", - }, - }, - ], - "location": 2743, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "id", - }, - }, - ], - "location": 2753, - }, - }, - "location": 2759, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t3", - }, - }, - { - "String": { - "sval": "id", - }, - }, - ], - "location": 2761, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 2749, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 2608, - "relname": "v5_temp", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 189, - "stmt_location": 2577, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2815, - "relname": "base_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2808, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2808, - }, - }, - }, - }, - ], - "whereClause": { - "SubLink": { - "location": 2835, - "subLinkType": "ANY_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2854, - "relname": "base_table2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2846, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 2846, - }, - }, - }, - }, - ], - }, - }, - "testexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 2832, - }, - }, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 2795, - "relname": "v4", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 99, - "stmt_location": 2767, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "t1", - }, - "inh": true, - "location": 2910, - "relname": "base_table", - "relpersistence": "p", - }, - }, - { - "RangeSubselect": { - "alias": { - "aliasname": "t2", - }, - "subquery": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2940, - "relname": "base_table2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2933, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2933, - }, - }, - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2893, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "id", - }, - }, - ], - "location": 2893, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2900, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2900, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 2880, - "relname": "v5", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 88, - "stmt_location": 2867, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2989, - "relname": "base_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2982, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2982, - }, - }, - }, - }, - ], - "whereClause": { - "SubLink": { - "location": 3006, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3028, - "relname": "base_table2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3021, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3021, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 2969, - "relname": "v6", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 84, - "stmt_location": 2956, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3074, - "relname": "base_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3067, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3067, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 3095, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3117, - "relname": "base_table2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3110, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3110, - }, - }, - }, - }, - ], - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 3091, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 3054, - "relname": "v7", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 88, - "stmt_location": 3041, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3163, - "relname": "base_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3156, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3156, - }, - }, - }, - }, - ], - "whereClause": { - "SubLink": { - "location": 3180, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3195, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3195, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 3143, - "relname": "v8", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 67, - "stmt_location": 3130, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3237, - "relname": "base_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3230, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3230, - }, - }, - }, - }, - ], - "whereClause": { - "SubLink": { - "location": 3257, - "subLinkType": "ANY_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3276, - "relname": "temp_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3268, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 3268, - }, - }, - }, - }, - ], - }, - }, - "testexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 3254, - }, - }, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 3212, - "relname": "v6_temp", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 89, - "stmt_location": 3198, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "t1", - }, - "inh": true, - "location": 3336, - "relname": "base_table", - "relpersistence": "p", - }, - }, - { - "RangeSubselect": { - "alias": { - "aliasname": "t2", - }, - "subquery": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3366, - "relname": "temp_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3359, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3359, - }, - }, - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3319, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "id", - }, - }, - ], - "location": 3319, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3326, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3326, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 3301, - "relname": "v7_temp", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 92, - "stmt_location": 3288, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3419, - "relname": "base_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3412, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3412, - }, - }, - }, - }, - ], - "whereClause": { - "SubLink": { - "location": 3436, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3458, - "relname": "temp_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3451, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3451, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 3394, - "relname": "v8_temp", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 88, - "stmt_location": 3381, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3508, - "relname": "base_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3501, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3501, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 3529, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3551, - "relname": "temp_table", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3544, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3544, - }, - }, - }, - }, - ], - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 3525, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 3483, - "relname": "v9_temp", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 92, - "stmt_location": 3470, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3672, - "relname": "v7_temp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3665, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3665, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 3646, - "relname": "v10_temp", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 116, - "stmt_location": 3563, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "t1", - }, - "inh": true, - "location": 3729, - "relname": "base_table", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "t2", - }, - "inh": true, - "location": 3744, - "relname": "v10_temp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3712, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "id", - }, - }, - ], - "location": 3712, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3719, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3719, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 3693, - "relname": "v11_temp", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 75, - "stmt_location": 3680, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3798, - "relname": "v11_temp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3788, - "val": { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 3788, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 3769, - "relname": "v12_temp", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 50, - "stmt_location": 3756, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateSeqStmt": { - "sequence": { - "inh": true, - "location": 3898, - "relname": "seq1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 95, - "stmt_location": 3807, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateSeqStmt": { - "sequence": { - "inh": true, - "location": 3930, - "relname": "seq1_temp", - "relpersistence": "t", - }, - }, - }, - "stmt_len": 36, - "stmt_location": 3903, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3986, - "relname": "seq1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3966, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "seq1", - }, - }, - { - "String": { - "sval": "is_called", - }, - }, - ], - "location": 3966, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 3953, - "relname": "v9", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 50, - "stmt_location": 3940, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4048, - "relname": "seq1_temp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4023, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "seq1_temp", - }, - }, - { - "String": { - "sval": "is_called", - }, - }, - ], - "location": 4023, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 4004, - "relname": "v13_temp", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 66, - "stmt_location": 3991, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4080, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 4217, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 4067, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 4067, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 4099, - }, - }, - "location": 4107, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4112, - "sval": { - "sval": "v_", - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relnamespace", - }, - }, - ], - "location": 4125, - }, - }, - "location": 4138, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "SubLink": { - "location": 4140, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4157, - "relname": "pg_namespace", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4148, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 4148, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 4176, - }, - }, - "location": 4184, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4186, - "sval": { - "sval": "temp_view_test", - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 4121, - }, - }, - }, - }, - "stmt_len": 166, - "stmt_location": 4058, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4246, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 4381, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 4233, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 4233, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 4265, - }, - }, - "location": 4273, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4278, - "sval": { - "sval": "v%", - }, - }, - }, - }, - }, - { - "SubLink": { - "location": 4304, - "subLinkType": "ANY_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4324, - "relname": "pg_namespace", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4315, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 4315, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 4343, - }, - }, - "location": 4351, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4356, - "sval": { - "sval": "pg_temp%", - }, - }, - }, - }, - }, - }, - }, - "testexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relnamespace", - }, - }, - ], - "location": 4291, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 4287, - }, - }, - }, - }, - "stmt_len": 163, - "stmt_location": 4225, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateSchemaStmt": { - "schemaname": "testviewschm2", - }, - }, - "stmt_len": 29, - "stmt_location": 4389, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 4439, - "sval": { - "sval": "testviewschm2", - }, - }, - }, - { - "A_Const": { - "location": 4454, - "sval": { - "sval": "public", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "search_path", - }, - }, - "stmt_len": 41, - "stmt_location": 4419, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 4476, - "relname": "t1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "num", - "is_local": true, - "location": 4480, - "typeName": { - "location": 4484, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "name", - "is_local": true, - "location": 4489, - "typeName": { - "location": 4494, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 4461, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 4514, - "relname": "t2", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "num2", - "is_local": true, - "location": 4518, - "typeName": { - "location": 4523, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "value", - "is_local": true, - "location": 4528, - "typeName": { - "location": 4534, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 4500, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 4559, - "relname": "tt", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "num2", - "is_local": true, - "location": 4563, - "typeName": { - "location": 4568, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "value", - "is_local": true, - "location": 4573, - "typeName": { - "location": 4579, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 4540, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "inh": true, - "location": 4625, - "relname": "t1", - "relpersistence": "p", - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 4639, - "relname": "t2", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4618, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4618, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 4599, - "relname": "nontemp1", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 56, - "stmt_location": 4585, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "inh": true, - "location": 4682, - "relname": "t1", - "relpersistence": "p", - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 4696, - "relname": "tt", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4675, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4675, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 4655, - "relname": "temporal1", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 56, - "stmt_location": 4642, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "inh": true, - "location": 4738, - "relname": "t1", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "num", - }, - }, - ], - "location": 4758, - }, - }, - "location": 4765, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "num2", - }, - }, - ], - "location": 4767, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 4752, - "relname": "t2", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4731, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4731, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 4712, - "relname": "nontemp2", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 75, - "stmt_location": 4699, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "inh": true, - "location": 4815, - "relname": "t1", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "num", - }, - }, - ], - "location": 4835, - }, - }, - "location": 4842, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tt", - }, - }, - { - "String": { - "sval": "num2", - }, - }, - ], - "location": 4844, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 4829, - "relname": "tt", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4808, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4808, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 4788, - "relname": "temporal2", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 76, - "stmt_location": 4775, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_LEFT", - "larg": { - "RangeVar": { - "inh": true, - "location": 4891, - "relname": "t1", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "num", - }, - }, - ], - "location": 4910, - }, - }, - "location": 4917, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "num2", - }, - }, - ], - "location": 4919, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 4904, - "relname": "t2", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4884, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4884, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 4865, - "relname": "nontemp3", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 74, - "stmt_location": 4852, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_LEFT", - "larg": { - "RangeVar": { - "inh": true, - "location": 4967, - "relname": "t1", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "num", - }, - }, - ], - "location": 4986, - }, - }, - "location": 4993, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tt", - }, - }, - { - "String": { - "sval": "num2", - }, - }, - ], - "location": 4995, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 4980, - "relname": "tt", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4960, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4960, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 4940, - "relname": "temporal3", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 75, - "stmt_location": 4927, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_LEFT", - "larg": { - "RangeVar": { - "inh": true, - "location": 5042, - "relname": "t1", - "relpersistence": "p", - }, - }, - "quals": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "num", - }, - }, - ], - "location": 5061, - }, - }, - "location": 5068, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "num2", - }, - }, - ], - "location": 5070, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "value", - }, - }, - ], - "location": 5082, - }, - }, - "location": 5091, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 5093, - "sval": { - "sval": "xxx", - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 5078, - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 5055, - "relname": "t2", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5035, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 5035, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 5016, - "relname": "nontemp4", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 95, - "stmt_location": 5003, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_LEFT", - "larg": { - "RangeVar": { - "inh": true, - "location": 5139, - "relname": "t1", - "relpersistence": "p", - }, - }, - "quals": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "num", - }, - }, - ], - "location": 5158, - }, - }, - "location": 5165, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tt", - }, - }, - { - "String": { - "sval": "num2", - }, - }, - ], - "location": 5167, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tt", - }, - }, - { - "String": { - "sval": "value", - }, - }, - ], - "location": 5179, - }, - }, - "location": 5188, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 5190, - "sval": { - "sval": "xxx", - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 5175, - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 5152, - "relname": "tt", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5132, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 5132, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 5112, - "relname": "temporal4", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 96, - "stmt_location": 5099, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5218, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 5360, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 5205, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 5205, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 5237, - }, - }, - "location": 5245, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 5250, - "sval": { - "sval": "nontemp%", - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relnamespace", - }, - }, - ], - "location": 5269, - }, - }, - "location": 5282, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "SubLink": { - "location": 5284, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5301, - "relname": "pg_namespace", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5292, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 5292, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 5320, - }, - }, - "location": 5328, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 5330, - "sval": { - "sval": "testviewschm2", - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 5265, - }, - }, - }, - }, - "stmt_len": 171, - "stmt_location": 5196, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5389, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 5531, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 5376, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 5376, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 5408, - }, - }, - "location": 5416, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 5421, - "sval": { - "sval": "temporal%", - }, - }, - }, - }, - }, - { - "SubLink": { - "location": 5454, - "subLinkType": "ANY_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5474, - "relname": "pg_namespace", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5465, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 5465, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 5493, - }, - }, - "location": 5501, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 5506, - "sval": { - "sval": "pg_temp%", - }, - }, - }, - }, - }, - }, - }, - "testexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relnamespace", - }, - }, - ], - "location": 5441, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 5437, - }, - }, - }, - }, - "stmt_len": 170, - "stmt_location": 5368, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 5554, - "relname": "tbl1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 5561, - "typeName": { - "location": 5563, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 5568, - "typeName": { - "location": 5570, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 5539, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 5589, - "relname": "tbl2", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "c", - "is_local": true, - "location": 5595, - "typeName": { - "location": 5597, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "d", - "is_local": true, - "location": 5602, - "typeName": { - "location": 5604, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 5575, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 5623, - "relname": "tbl3", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "e", - "is_local": true, - "location": 5629, - "typeName": { - "location": 5631, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "f", - "is_local": true, - "location": 5636, - "typeName": { - "location": 5638, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 5609, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 5657, - "relname": "tbl4", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "g", - "is_local": true, - "location": 5663, - "typeName": { - "location": 5665, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "h", - "is_local": true, - "location": 5670, - "typeName": { - "location": 5672, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 5643, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 5696, - "relname": "tmptbl", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "i", - "is_local": true, - "location": 5704, - "typeName": { - "location": 5706, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "j", - "is_local": true, - "location": 5711, - "typeName": { - "location": 5713, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 5677, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5789, - "relname": "tbl1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5782, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 5782, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_BETWEEN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tbl1", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5800, - }, - }, - "location": 5807, - "name": [ - { - "String": { - "sval": "BETWEEN", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "SubLink": { - "location": 5815, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5830, - "relname": "tbl2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5823, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - ], - "location": 5823, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 5841, - }, - }, - "location": 5843, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5845, - }, - }, - }, - }, - }, - }, - }, - }, - { - "SubLink": { - "location": 5852, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5867, - "relname": "tbl3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5860, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "e", - }, - }, - ], - "location": 5860, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - ], - "location": 5878, - }, - }, - "location": 5880, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5882, - }, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - { - "SubLink": { - "location": 5889, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_LEFT", - "larg": { - "RangeVar": { - "inh": true, - "location": 5911, - "relname": "tbl4", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tbl4", - }, - }, - { - "String": { - "sval": "h", - }, - }, - ], - "location": 5934, - }, - }, - "location": 5941, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tbl3", - }, - }, - { - "String": { - "sval": "f", - }, - }, - ], - "location": 5943, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 5926, - "relname": "tbl3", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5904, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "g", - }, - }, - ], - "location": 5904, - }, - }, - }, - }, - ], - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 5885, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 5764, - "relname": "pubview", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 232, - "stmt_location": 5718, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5974, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5960, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 5960, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 5989, - }, - }, - "location": 5997, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 5999, - "sval": { - "sval": "pubview", - }, - }, - }, - }, - }, - { - "SubLink": { - "location": 6026, - "subLinkType": "ANY_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6046, - "relname": "pg_namespace", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6037, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 6037, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 6065, - }, - }, - "location": 6073, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 6075, - "sval": { - "sval": "testviewschm2", - }, - }, - }, - }, - }, - }, - }, - "testexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relnamespace", - }, - }, - ], - "location": 6013, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 6009, - }, - }, - }, - }, - "stmt_len": 140, - "stmt_location": 5951, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6171, - "relname": "tbl1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6164, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 6164, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_BETWEEN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tbl1", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6182, - }, - }, - "location": 6189, - "name": [ - { - "String": { - "sval": "BETWEEN", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "SubLink": { - "location": 6197, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6212, - "relname": "tbl2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6205, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - ], - "location": 6205, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 6223, - }, - }, - "location": 6225, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6227, - }, - }, - }, - }, - }, - }, - }, - }, - { - "SubLink": { - "location": 6234, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6249, - "relname": "tbl3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6242, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "e", - }, - }, - ], - "location": 6242, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - ], - "location": 6260, - }, - }, - "location": 6262, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6264, - }, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - { - "SubLink": { - "location": 6271, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_LEFT", - "larg": { - "RangeVar": { - "inh": true, - "location": 6293, - "relname": "tbl4", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tbl4", - }, - }, - { - "String": { - "sval": "h", - }, - }, - ], - "location": 6316, - }, - }, - "location": 6323, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tbl3", - }, - }, - { - "String": { - "sval": "f", - }, - }, - ], - "location": 6325, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 6308, - "relname": "tbl3", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6286, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "g", - }, - }, - ], - "location": 6286, - }, - }, - }, - }, - ], - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 6341, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_LEFT", - "larg": { - "RangeVar": { - "inh": true, - "location": 6363, - "relname": "tbl4", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tbl4", - }, - }, - { - "String": { - "sval": "h", - }, - }, - ], - "location": 6388, - }, - }, - "location": 6395, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tmptbl", - }, - }, - { - "String": { - "sval": "j", - }, - }, - ], - "location": 6397, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 6378, - "relname": "tmptbl", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6356, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "g", - }, - }, - ], - "location": 6356, - }, - }, - }, - }, - ], - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 6337, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 6267, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 6143, - "relname": "mytempview", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 314, - "stmt_location": 6092, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6430, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6416, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 6416, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 6445, - }, - }, - "location": 6453, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 6458, - "sval": { - "sval": "mytempview", - }, - }, - }, - }, - }, - { - "SubLink": { - "location": 6488, - "subLinkType": "ANY_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6508, - "relname": "pg_namespace", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6499, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 6499, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 6527, - }, - }, - "location": 6535, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 6540, - "sval": { - "sval": "pg_temp%", - }, - }, - }, - }, - }, - }, - }, - "testexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relnamespace", - }, - }, - ], - "location": 6475, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 6471, - }, - }, - }, - }, - "stmt_len": 144, - "stmt_location": 6407, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6643, - "relname": "tbl1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6636, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 6636, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6654, - }, - }, - "location": 6656, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 6658, - }, - }, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 6608, - "relname": "mysecview1", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 107, - "stmt_location": 6552, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "true", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "security_barrier", - "location": 6690, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6737, - "relname": "tbl1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6730, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 6730, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6748, - }, - }, - "location": 6750, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 6752, - }, - }, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 6673, - "relname": "mysecview2", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 93, - "stmt_location": 6660, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "false", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "security_barrier", - "location": 6784, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6832, - "relname": "tbl1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6825, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 6825, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6843, - }, - }, - "location": 6845, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 6847, - }, - }, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 6767, - "relname": "mysecview3", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 94, - "stmt_location": 6754, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "options": [ - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "security_barrier", - "location": 6879, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6921, - "relname": "tbl1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6914, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 6914, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6932, - }, - }, - "location": 6934, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 6937, - }, - }, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 6862, - "relname": "mysecview4", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 89, - "stmt_location": 6849, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "options": [ - { - "DefElem": { - "arg": { - "Integer": { - "ival": 100, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "security_barrier", - "location": 6969, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7024, - "relname": "tbl1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7017, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 7017, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 7035, - }, - }, - "location": 7037, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 100, - }, - "location": 7039, - }, - }, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 6952, - "relname": "mysecview5", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 103, - "stmt_location": 6939, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "options": [ - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "invalid_option", - "location": 7073, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7123, - "relname": "tbl1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7116, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 7116, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 7134, - }, - }, - "location": 7136, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 100, - }, - "location": 7138, - }, - }, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 7056, - "relname": "mysecview6", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 98, - "stmt_location": 7043, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7184, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 7347, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 7150, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 7150, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7159, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relkind", - }, - }, - ], - "location": 7159, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7168, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "reloptions", - }, - }, - ], - "location": 7168, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 7206, - }, - }, - "location": 7210, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7214, - "sval": { - "sval": "mysecview1", - }, - }, - }, - "location": 7226, - "typeName": { - "location": 7228, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7238, - "sval": { - "sval": "mysecview2", - }, - }, - }, - "location": 7250, - "typeName": { - "location": 7252, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7283, - "sval": { - "sval": "mysecview3", - }, - }, - }, - "location": 7295, - "typeName": { - "location": 7297, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7307, - "sval": { - "sval": "mysecview4", - }, - }, - }, - "location": 7319, - "typeName": { - "location": 7321, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 212, - "stmt_location": 7142, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7415, - "relname": "tbl1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7408, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 7408, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 7426, - }, - }, - "location": 7428, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 256, - }, - "location": 7430, - }, - }, - }, - }, - }, - }, - "replace": true, - "view": { - "inh": true, - "location": 7380, - "relname": "mysecview1", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 78, - "stmt_location": 7355, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7493, - "relname": "tbl1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7486, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 7486, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 7504, - }, - }, - "location": 7506, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 256, - }, - "location": 7508, - }, - }, - }, - }, - }, - }, - "replace": true, - "view": { - "inh": true, - "location": 7458, - "relname": "mysecview2", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 77, - "stmt_location": 7434, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "true", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "security_barrier", - "location": 7553, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7600, - "relname": "tbl1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7593, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 7593, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 7611, - }, - }, - "location": 7613, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 256, - }, - "location": 7615, - }, - }, - }, - }, - }, - }, - "replace": true, - "view": { - "inh": true, - "location": 7536, - "relname": "mysecview3", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 106, - "stmt_location": 7512, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "false", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "security_barrier", - "location": 7660, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7708, - "relname": "tbl1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7701, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 7701, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 7719, - }, - }, - "location": 7721, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 256, - }, - "location": 7724, - }, - }, - }, - }, - }, - }, - "replace": true, - "view": { - "inh": true, - "location": 7643, - "relname": "mysecview4", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 108, - "stmt_location": 7619, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7770, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 7933, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 7736, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 7736, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7745, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relkind", - }, - }, - ], - "location": 7745, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7754, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "reloptions", - }, - }, - ], - "location": 7754, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 7792, - }, - }, - "location": 7796, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7800, - "sval": { - "sval": "mysecview1", - }, - }, - }, - "location": 7812, - "typeName": { - "location": 7814, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7824, - "sval": { - "sval": "mysecview2", - }, - }, - }, - "location": 7836, - "typeName": { - "location": 7838, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7869, - "sval": { - "sval": "mysecview3", - }, - }, - }, - "location": 7881, - "typeName": { - "location": 7883, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7893, - "sval": { - "sval": "mysecview4", - }, - }, - }, - "location": 7905, - "typeName": { - "location": 7907, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 212, - "stmt_location": 7728, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 8027, - "relname": "tt1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 8032, - "typeName": { - "location": 8035, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "f2", - "is_local": true, - "location": 8040, - "typeName": { - "location": 8043, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "f3", - "is_local": true, - "location": 8048, - "typeName": { - "location": 8051, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 115, - "stmt_location": 7941, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 8071, - "relname": "tx1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "x1", - "is_local": true, - "location": 8076, - "typeName": { - "location": 8079, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "x2", - "is_local": true, - "location": 8084, - "typeName": { - "location": 8087, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "x3", - "is_local": true, - "location": 8092, - "typeName": { - "location": 8095, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 43, - "stmt_location": 8057, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 8115, - "relname": "tt1", - "relpersistence": "p", - "schemaname": "temp_view_test", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "y1", - "is_local": true, - "location": 8135, - "typeName": { - "location": 8138, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "f2", - "is_local": true, - "location": 8143, - "typeName": { - "location": 8146, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "f3", - "is_local": true, - "location": 8151, - "typeName": { - "location": 8154, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 58, - "stmt_location": 8101, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8208, - "relname": "tt1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8201, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 8201, - }, - }, - }, - }, - ], - "whereClause": { - "SubLink": { - "location": 8222, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8244, - "relname": "tx1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8237, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 8237, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tt1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 8254, - }, - }, - "location": 8261, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tx1", - }, - }, - { - "String": { - "sval": "x1", - }, - }, - ], - "location": 8263, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 8174, - "relname": "aliased_view_1", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 110, - "stmt_location": 8160, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "a1", - }, - "inh": true, - "location": 8318, - "relname": "tt1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8311, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 8311, - }, - }, - }, - }, - ], - "whereClause": { - "SubLink": { - "location": 8335, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8357, - "relname": "tx1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8350, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 8350, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 8367, - }, - }, - "location": 8373, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tx1", - }, - }, - { - "String": { - "sval": "x1", - }, - }, - ], - "location": 8375, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 8284, - "relname": "aliased_view_2", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 111, - "stmt_location": 8271, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8430, - "relname": "tt1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8423, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 8423, - }, - }, - }, - }, - ], - "whereClause": { - "SubLink": { - "location": 8444, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "a2", - }, - "inh": true, - "location": 8466, - "relname": "tx1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8459, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 8459, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tt1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 8479, - }, - }, - "location": 8486, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a2", - }, - }, - { - "String": { - "sval": "x1", - }, - }, - ], - "location": 8488, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 8396, - "relname": "aliased_view_3", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 111, - "stmt_location": 8383, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8542, - "relname": "tt1", - "relpersistence": "p", - "schemaname": "temp_view_test", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8535, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 8535, - }, - }, - }, - }, - ], - "whereClause": { - "SubLink": { - "location": 8571, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8593, - "relname": "tt1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8586, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 8586, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "temp_view_test", - }, - }, - { - "String": { - "sval": "tt1", - }, - }, - { - "String": { - "sval": "y1", - }, - }, - ], - "location": 8603, - }, - }, - "location": 8625, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tt1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 8627, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 8508, - "relname": "aliased_view_4", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 139, - "stmt_location": 8495, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "a1", - "relation": { - "inh": true, - "location": 8658, - "relname": "tx1", - "relpersistence": "p", - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_TABLE", - }, - }, - "stmt_len": 39, - "stmt_location": 8635, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "a2", - "relation": { - "inh": true, - "location": 8698, - "relname": "tt1", - "relpersistence": "p", - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_TABLE", - }, - }, - "stmt_len": 39, - "stmt_location": 8675, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "tt1", - "relation": { - "inh": true, - "location": 8738, - "relname": "a1", - "relpersistence": "p", - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_TABLE", - }, - }, - "stmt_len": 39, - "stmt_location": 8715, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "tx1", - "relation": { - "inh": true, - "location": 8778, - "relname": "a2", - "relpersistence": "p", - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_TABLE", - }, - }, - "stmt_len": 39, - "stmt_location": 8755, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "temp_view_test", - "objectType": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 8808, - "relname": "tx1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 42, - "stmt_location": 8795, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "tmp1", - "relation": { - "inh": true, - "location": 8861, - "relname": "tt1", - "relpersistence": "p", - "schemaname": "temp_view_test", - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_TABLE", - }, - }, - "stmt_len": 56, - "stmt_location": 8838, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "testviewschm2", - "objectType": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 8908, - "relname": "tmp1", - "relpersistence": "p", - "schemaname": "temp_view_test", - }, - }, - }, - "stmt_len": 57, - "stmt_location": 8895, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "tx1", - "relation": { - "inh": true, - "location": 8966, - "relname": "tmp1", - "relpersistence": "p", - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_TABLE", - }, - }, - "stmt_len": 31, - "stmt_location": 8953, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 9086, - "relname": "tt2", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 9091, - "typeName": { - "location": 9093, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 9098, - "typeName": { - "location": 9100, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c", - "is_local": true, - "location": 9105, - "typeName": { - "location": 9107, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 126, - "stmt_location": 8985, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 9126, - "relname": "tt3", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ax", - "is_local": true, - "location": 9131, - "typeName": { - "location": 9134, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 9140, - "typeName": { - "location": 9142, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c", - "is_local": true, - "location": 9148, - "typeName": { - "location": 9150, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 9112, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 9173, - "relname": "tt4", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ay", - "is_local": true, - "location": 9178, - "typeName": { - "location": 9181, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 9186, - "typeName": { - "location": 9188, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "q", - "is_local": true, - "location": 9193, - "typeName": { - "location": 9195, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 9159, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "isNatural": true, - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "inh": true, - "location": 9234, - "relname": "tt2", - "relpersistence": "p", - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 9251, - "relname": "tt3", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9227, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 9227, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 9214, - "relname": "v1", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 54, - "stmt_location": 9200, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "alias": { - "aliasname": "j", - }, - "isNatural": true, - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "inh": true, - "location": 9290, - "relname": "tt2", - "relpersistence": "p", - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 9307, - "relname": "tt3", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9282, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 9282, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 9268, - "relname": "v1a", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 58, - "stmt_location": 9255, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "inh": true, - "location": 9347, - "relname": "tt2", - "relpersistence": "p", - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 9356, - "relname": "tt3", - "relpersistence": "p", - }, - }, - "usingClause": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 9377, - "relname": "tt4", - "relpersistence": "p", - }, - }, - "usingClause": [ - { - "String": { - "sval": "b", - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9340, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 9340, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 9327, - "relname": "v2", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 76, - "stmt_location": 9314, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "alias": { - "aliasname": "j", - }, - "jointype": "JOIN_INNER", - "larg": { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "inh": true, - "location": 9426, - "relname": "tt2", - "relpersistence": "p", - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 9435, - "relname": "tt3", - "relpersistence": "p", - }, - }, - "usingClause": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 9456, - "relname": "tt4", - "relpersistence": "p", - }, - }, - "usingClause": [ - { - "String": { - "sval": "b", - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9418, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 9418, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 9404, - "relname": "v2a", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 81, - "stmt_location": 9391, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_FULL", - "larg": { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "inh": true, - "location": 9506, - "relname": "tt2", - "relpersistence": "p", - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 9515, - "relname": "tt3", - "relpersistence": "p", - }, - }, - "usingClause": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 9541, - "relname": "tt4", - "relpersistence": "p", - }, - }, - "usingClause": [ - { - "String": { - "sval": "b", - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9499, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 9499, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 9486, - "relname": "v3", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 81, - "stmt_location": 9473, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9564, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 9579, - "sval": { - "sval": "v1", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 9585, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 9564, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 9555, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9599, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 9614, - "sval": { - "sval": "v1a", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 9621, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 9599, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 9591, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9635, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 9650, - "sval": { - "sval": "v2", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 9656, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 9635, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 9627, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9670, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 9685, - "sval": { - "sval": "v2a", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 9692, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 9670, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 9662, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9706, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 9721, - "sval": { - "sval": "v3", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 9727, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 9706, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 9698, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "d", - "is_local": true, - "location": 9762, - "typeName": { - "location": 9764, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 9747, - "relname": "tt2", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 34, - "stmt_location": 9733, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "e", - "is_local": true, - "location": 9796, - "typeName": { - "location": 9798, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 9781, - "relname": "tt2", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 33, - "stmt_location": 9768, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9811, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 9826, - "sval": { - "sval": "v1", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 9832, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 9811, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 9802, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9846, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 9861, - "sval": { - "sval": "v1a", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 9868, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 9846, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 9838, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9882, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 9897, - "sval": { - "sval": "v2", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 9903, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 9882, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 9874, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9917, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 9932, - "sval": { - "sval": "v2a", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 9939, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 9917, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 9909, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9953, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 9968, - "sval": { - "sval": "v3", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 9974, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 9953, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 9945, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "d", - "relation": { - "inh": true, - "location": 9994, - "relname": "tt3", - "relpersistence": "p", - }, - "relationType": "OBJECT_TABLE", - "renameType": "OBJECT_COLUMN", - "subname": "c", - }, - }, - "stmt_len": 31, - "stmt_location": 9980, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10021, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 10036, - "sval": { - "sval": "v1", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 10042, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 10021, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 10012, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10056, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 10071, - "sval": { - "sval": "v1a", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 10078, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 10056, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 10048, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10092, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 10107, - "sval": { - "sval": "v2", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 10113, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 10092, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 10084, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10127, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 10142, - "sval": { - "sval": "v2a", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 10149, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 10127, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 10119, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10163, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 10178, - "sval": { - "sval": "v3", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 10184, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 10163, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 10155, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "c", - "is_local": true, - "location": 10219, - "typeName": { - "location": 10221, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 10204, - "relname": "tt3", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 34, - "stmt_location": 10190, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "e", - "is_local": true, - "location": 10253, - "typeName": { - "location": 10255, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 10238, - "relname": "tt3", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 33, - "stmt_location": 10225, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10268, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 10283, - "sval": { - "sval": "v1", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 10289, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 10268, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 10259, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10303, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 10318, - "sval": { - "sval": "v1a", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 10325, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 10303, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 10295, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10339, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 10354, - "sval": { - "sval": "v2", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 10360, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 10339, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 10331, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10374, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 10389, - "sval": { - "sval": "v2a", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 10396, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 10374, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 10366, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10410, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 10425, - "sval": { - "sval": "v3", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 10431, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 10410, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 10402, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "d", - "subtype": "AT_DropColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 10451, - "relname": "tt2", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 31, - "stmt_location": 10437, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10478, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 10493, - "sval": { - "sval": "v1", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 10499, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 10478, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 10469, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10513, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 10528, - "sval": { - "sval": "v1a", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 10535, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 10513, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 10505, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10549, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 10564, - "sval": { - "sval": "v2", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 10570, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 10549, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 10541, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10584, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 10599, - "sval": { - "sval": "v2a", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 10606, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 10584, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 10576, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10620, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 10635, - "sval": { - "sval": "v3", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 10641, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 10620, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 10612, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 10662, - "relname": "tt5", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 10667, - "typeName": { - "location": 10669, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 10674, - "typeName": { - "location": 10676, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 10647, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 10695, - "relname": "tt6", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "c", - "is_local": true, - "location": 10700, - "typeName": { - "location": 10702, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "d", - "is_local": true, - "location": 10707, - "typeName": { - "location": 10709, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 10681, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "alias": { - "aliasname": "j", - "colnames": [ - { - "String": { - "sval": "aa", - }, - }, - { - "String": { - "sval": "bb", - }, - }, - { - "String": { - "sval": "cc", - }, - }, - { - "String": { - "sval": "dd", - }, - }, - ], - }, - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "inh": true, - "location": 10749, - "relname": "tt5", - "relpersistence": "p", - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 10764, - "relname": "tt6", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10741, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 10741, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 10727, - "relname": "vv1", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 69, - "stmt_location": 10714, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10792, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 10807, - "sval": { - "sval": "vv1", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 10814, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 10792, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 10784, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "c", - "is_local": true, - "location": 10848, - "typeName": { - "location": 10850, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 10833, - "relname": "tt5", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 33, - "stmt_location": 10820, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10862, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 10877, - "sval": { - "sval": "vv1", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 10884, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 10862, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 10854, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "cc", - "is_local": true, - "location": 10918, - "typeName": { - "location": 10921, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 10903, - "relname": "tt5", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 34, - "stmt_location": 10890, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10933, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 10948, - "sval": { - "sval": "vv1", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 10955, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 10933, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 10925, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "c", - "subtype": "AT_DropColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 10974, - "relname": "tt5", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 30, - "stmt_location": 10961, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11000, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 11015, - "sval": { - "sval": "vv1", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 11022, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 11000, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 10992, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 11090, - "relname": "tt7", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "x", - "is_local": true, - "location": 11095, - "typeName": { - "location": 11097, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "xx", - "is_local": true, - "location": 11102, - "typeName": { - "location": 11105, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "y", - "is_local": true, - "location": 11110, - "typeName": { - "location": 11112, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 88, - "stmt_location": 11028, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "xx", - "subtype": "AT_DropColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 11130, - "relname": "tt7", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 31, - "stmt_location": 11117, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 11163, - "relname": "tt8", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "x", - "is_local": true, - "location": 11168, - "typeName": { - "location": 11170, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "z", - "is_local": true, - "location": 11175, - "typeName": { - "location": 11177, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 11149, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "d", - }, - }, - { - "String": { - "sval": "e", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11225, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11227, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 11229, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 11231, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 11233, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11210, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 11210, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_FULL", - "larg": { - "RangeVar": { - "inh": true, - "location": 11274, - "relname": "tt7", - "relpersistence": "p", - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 11288, - "relname": "tt8", - "relpersistence": "p", - }, - }, - "usingClause": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "tt8x", - }, - "inh": true, - "location": 11303, - "relname": "tt8", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11267, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 11267, - }, - }, - }, - }, - ], - }, - }, - }, - "view": { - "inh": true, - "location": 11196, - "relname": "vv2", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 129, - "stmt_location": 11182, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11321, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 11336, - "sval": { - "sval": "vv2", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 11343, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 11321, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 11312, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "x", - }, - }, - { - "String": { - "sval": "e", - }, - }, - { - "String": { - "sval": "f", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11392, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11394, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 11396, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 11398, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 11400, - }, - }, - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 11402, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11377, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 11377, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_FULL", - "larg": { - "RangeVar": { - "inh": true, - "location": 11447, - "relname": "tt7", - "relpersistence": "p", - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 11461, - "relname": "tt8", - "relpersistence": "p", - }, - }, - "usingClause": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - }, - { - "JoinExpr": { - "jointype": "JOIN_FULL", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "tt7x", - }, - "inh": true, - "location": 11478, - "relname": "tt7", - "relpersistence": "p", - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "tt8x", - }, - "inh": true, - "location": 11497, - "relname": "tt8", - "relpersistence": "p", - }, - }, - "usingClause": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11438, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 11438, - }, - }, - }, - }, - ], - }, - }, - }, - "view": { - "inh": true, - "location": 11363, - "relname": "vv3", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 166, - "stmt_location": 11349, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11525, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 11540, - "sval": { - "sval": "vv3", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 11547, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 11525, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 11516, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "x", - }, - }, - { - "String": { - "sval": "e", - }, - }, - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "g", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11596, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11598, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 11600, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 11602, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 11604, - }, - }, - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 11606, - }, - }, - { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 11608, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11581, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 11581, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_FULL", - "larg": { - "RangeVar": { - "inh": true, - "location": 11655, - "relname": "tt7", - "relpersistence": "p", - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 11669, - "relname": "tt8", - "relpersistence": "p", - }, - }, - "usingClause": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - }, - { - "JoinExpr": { - "jointype": "JOIN_FULL", - "larg": { - "JoinExpr": { - "jointype": "JOIN_FULL", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "tt7x", - }, - "inh": true, - "location": 11686, - "relname": "tt7", - "relpersistence": "p", - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "tt8x", - }, - "inh": true, - "location": 11705, - "relname": "tt8", - "relpersistence": "p", - }, - }, - "usingClause": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "tt8y", - }, - "inh": true, - "location": 11734, - "relname": "tt8", - "relpersistence": "p", - }, - }, - "usingClause": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11646, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 11646, - }, - }, - }, - }, - ], - }, - }, - }, - "view": { - "inh": true, - "location": 11567, - "relname": "vv4", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 199, - "stmt_location": 11553, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11762, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 11777, - "sval": { - "sval": "vv4", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 11784, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 11762, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 11753, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "zz", - "is_local": true, - "location": 11819, - "typeName": { - "location": 11822, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 11804, - "relname": "tt7", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 35, - "stmt_location": 11790, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "z", - "is_local": true, - "location": 11854, - "typeName": { - "location": 11856, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 11839, - "relname": "tt7", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 33, - "stmt_location": 11826, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "zz", - "subtype": "AT_DropColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 11873, - "relname": "tt7", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 31, - "stmt_location": 11860, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "z2", - "is_local": true, - "location": 11920, - "typeName": { - "location": 11923, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 11905, - "relname": "tt8", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 34, - "stmt_location": 11892, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11936, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 11951, - "sval": { - "sval": "vv2", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 11958, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 11936, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 11927, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11972, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 11987, - "sval": { - "sval": "vv3", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 11994, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 11972, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 11964, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12008, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 12023, - "sval": { - "sval": "vv4", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 12030, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 12008, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 12000, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 12125, - "relname": "tt7a", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "x", - "is_local": true, - "location": 12131, - "typeName": { - "location": 12133, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "xx", - "is_local": true, - "location": 12139, - "typeName": { - "location": 12142, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "y", - "is_local": true, - "location": 12147, - "typeName": { - "location": 12149, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 117, - "stmt_location": 12036, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "xx", - "subtype": "AT_DropColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 12167, - "relname": "tt7a", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 32, - "stmt_location": 12154, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 12201, - "relname": "tt8a", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "x", - "is_local": true, - "location": 12207, - "typeName": { - "location": 12209, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "z", - "is_local": true, - "location": 12222, - "typeName": { - "location": 12224, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 41, - "stmt_location": 12187, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "d", - }, - }, - { - "String": { - "sval": "e", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "now", - }, - }, - ], - "location": 12273, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 12279, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 12281, - }, - }, - { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "now", - }, - }, - ], - "location": 12283, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 12289, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12258, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 12258, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_LEFT", - "larg": { - "RangeVar": { - "inh": true, - "location": 12330, - "relname": "tt7a", - "relpersistence": "p", - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 12345, - "relname": "tt8a", - "relpersistence": "p", - }, - }, - "usingClause": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "tt8ax", - }, - "inh": true, - "location": 12361, - "relname": "tt8a", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12323, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 12323, - }, - }, - }, - }, - ], - }, - }, - }, - "view": { - "inh": true, - "location": 12243, - "relname": "vv2a", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 142, - "stmt_location": 12229, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12381, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 12396, - "sval": { - "sval": "vv2a", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 12404, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 12381, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 12372, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 12500, - "relname": "tt9", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "x", - "is_local": true, - "location": 12505, - "typeName": { - "location": 12507, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "xx", - "is_local": true, - "location": 12512, - "typeName": { - "location": 12515, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "y", - "is_local": true, - "location": 12520, - "typeName": { - "location": 12522, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 116, - "stmt_location": 12410, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 12541, - "relname": "tt10", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "x", - "is_local": true, - "location": 12547, - "typeName": { - "location": 12549, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "z", - "is_local": true, - "location": 12554, - "typeName": { - "location": 12556, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 12527, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "inh": true, - "location": 12600, - "relname": "tt9", - "relpersistence": "p", - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 12609, - "relname": "tt10", - "relpersistence": "p", - }, - }, - "usingClause": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12589, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 12589, - }, - }, - }, - }, - { - "ResTarget": { - "location": 12591, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 12591, - }, - }, - }, - }, - { - "ResTarget": { - "location": 12593, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "z", - }, - }, - ], - "location": 12593, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 12575, - "relname": "vv5", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 61, - "stmt_location": 12561, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12632, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 12647, - "sval": { - "sval": "vv5", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 12654, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 12632, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 12623, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "xx", - "subtype": "AT_DropColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 12674, - "relname": "tt9", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 32, - "stmt_location": 12660, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12702, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 12717, - "sval": { - "sval": "vv5", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 12724, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 12702, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 12693, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 12888, - "relname": "tt11", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "x", - "is_local": true, - "location": 12894, - "typeName": { - "location": 12896, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "y", - "is_local": true, - "location": 12901, - "typeName": { - "location": 12903, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 177, - "stmt_location": 12730, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 12922, - "relname": "tt12", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "x", - "is_local": true, - "location": 12928, - "typeName": { - "location": 12930, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "z", - "is_local": true, - "location": 12935, - "typeName": { - "location": 12937, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 12908, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 12956, - "relname": "tt13", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "z", - "is_local": true, - "location": 12962, - "typeName": { - "location": 12964, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "q", - "is_local": true, - "location": 12969, - "typeName": { - "location": 12971, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 12942, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "inh": true, - "location": 13020, - "relname": "tt11", - "relpersistence": "p", - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 13030, - "relname": "tt12", - "relpersistence": "p", - }, - }, - "usingClause": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - }, - "rarg": { - "RangeVar": { - "inh": true, - "location": 13050, - "relname": "tt13", - "relpersistence": "p", - }, - }, - "usingClause": [ - { - "String": { - "sval": "z", - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13004, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 13004, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13006, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 13006, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13008, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "z", - }, - }, - ], - "location": 13008, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13010, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "q", - }, - }, - ], - "location": 13010, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 12990, - "relname": "vv6", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 87, - "stmt_location": 12976, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13073, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 13088, - "sval": { - "sval": "vv6", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 13095, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 13073, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 13064, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "z", - "is_local": true, - "location": 13131, - "typeName": { - "location": 13133, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 13115, - "relname": "tt11", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 35, - "stmt_location": 13101, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13146, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 13161, - "sval": { - "sval": "vv6", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 13168, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 13146, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 13137, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 13273, - "relname": "tt14t", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 13280, - "typeName": { - "location": 13283, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "f2", - "is_local": true, - "location": 13289, - "typeName": { - "location": 13292, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "f3", - "is_local": true, - "location": 13298, - "typeName": { - "location": 13301, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "f4", - "is_local": true, - "location": 13307, - "typeName": { - "location": 13310, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 141, - "stmt_location": 13174, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 13329, - "relname": "tt14t", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 13342, - "sval": { - "sval": "foo", - }, - }, - }, - { - "A_Const": { - "location": 13349, - "sval": { - "sval": "bar", - }, - }, - }, - { - "A_Const": { - "location": 13356, - "sval": { - "sval": "baz", - }, - }, - }, - { - "A_Const": { - "location": 13363, - "sval": { - "sval": "quux", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 13316, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "f2", - "subtype": "AT_DropColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 13385, - "relname": "tt14t", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 34, - "stmt_location": 13371, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "tt14f", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -declare - rec1 record; -begin - for rec1 in select * from tt14t - loop - return next rec1; - end loop; -end; -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 13452, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 13582, - }, - }, - ], - "returnType": { - "location": 13446, - "names": [ - { - "String": { - "sval": "tt14t", - }, - }, - ], - "setof": true, - "typemod": -1, - }, - }, - }, - "stmt_len": 192, - "stmt_location": 13406, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "t", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "tt14f", - }, - }, - ], - "location": 13638, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13629, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 13629, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 13613, - "relname": "tt14v", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 48, - "stmt_location": 13599, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13657, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 13672, - "sval": { - "sval": "tt14v", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 13681, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 13657, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 13648, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 13702, - "relname": "tt14v", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13695, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 13695, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 20, - "stmt_location": 13687, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "f3", - "subtype": "AT_DropColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 13772, - "relname": "tt14t", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 84, - "stmt_location": 13708, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13852, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 13867, - "sval": { - "sval": "tt14v", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 13876, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 13852, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 88, - "stmt_location": 13793, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 13897, - "relname": "tt14v", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13890, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 13890, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 20, - "stmt_location": 13882, - }, - }, - { - "RawStmt": { - "stmt": { - "CompositeTypeStmt": { - "coldeflist": [ - { - "ColumnDef": { - "colname": "x", - "is_local": true, - "location": 13999, - "typeName": { - "location": 14001, - "names": [ - { - "String": { - "sval": "int8_tbl", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "typevar": { - "location": 13979, - "relname": "nestedcomposite", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 107, - "stmt_location": 13903, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 14069, - "relname": "int8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14040, - "val": { - "TypeCast": { - "arg": { - "RowExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 14044, - }, - }, - ], - "location": 14040, - "row_format": "COERCE_EXPLICIT_CALL", - }, - }, - "location": 14046, - "typeName": { - "location": 14048, - "names": [ - { - "String": { - "sval": "nestedcomposite", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 14024, - "relname": "tt15v", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 68, - "stmt_location": 14011, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 14095, - "relname": "tt15v", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14088, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 14088, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 20, - "stmt_location": 14080, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14109, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 14124, - "sval": { - "sval": "tt15v", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 14133, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 14109, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 14101, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 14188, - "relname": "int8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14147, - "val": { - "TypeCast": { - "arg": { - "RowExpr": { - "args": [ - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 14151, - }, - }, - "location": 14154, - "typeName": { - "location": 14156, - "names": [ - { - "String": { - "sval": "int8_tbl", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "location": 14147, - "row_format": "COERCE_EXPLICIT_CALL", - }, - }, - "location": 14165, - "typeName": { - "location": 14167, - "names": [ - { - "String": { - "sval": "nestedcomposite", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 14139, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 14236, - "relname": "int8_tbl", - "relpersistence": "p", - }, - }, - { - "RangeSubselect": { - "alias": { - "aliasname": "ss", - }, - "lateral": true, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 14263, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14229, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 14229, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 14213, - "relname": "tt16v", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 70, - "stmt_location": 14199, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 14285, - "relname": "tt16v", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14278, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 14278, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 20, - "stmt_location": 14270, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14299, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 14314, - "sval": { - "sval": "tt16v", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 14323, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 14299, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 14291, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 14344, - "relname": "int8_tbl", - "relpersistence": "p", - }, - }, - { - "RangeSubselect": { - "alias": { - "aliasname": "ss", - }, - "lateral": true, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 14371, - }, - }, - "location": 14374, - "typeName": { - "location": 14376, - "names": [ - { - "String": { - "sval": "int8_tbl", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14337, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 14337, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 60, - "stmt_location": 14329, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 14427, - "relname": "int8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14420, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 14420, - }, - }, - }, - }, - ], - "whereClause": { - "SubLink": { - "location": 14446, - "subLinkType": "ANY_SUBLINK", - "subselect": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 14457, - }, - }, - ], - }, - }, - ], - }, - }, - "testexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 14444, - }, - }, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 14404, - "relname": "tt17v", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 70, - "stmt_location": 14390, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 14476, - "relname": "tt17v", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14469, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 14469, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 20, - "stmt_location": 14461, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14490, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 14505, - "sval": { - "sval": "tt17v", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 14514, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 14490, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 14482, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 14535, - "relname": "int8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14528, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 14528, - }, - }, - }, - }, - ], - "whereClause": { - "SubLink": { - "location": 14556, - "subLinkType": "ANY_SUBLINK", - "subselect": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 14567, - }, - }, - "location": 14570, - "typeName": { - "location": 14572, - "names": [ - { - "String": { - "sval": "int8_tbl", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - "testexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 14552, - }, - }, - }, - }, - }, - }, - "stmt_len": 62, - "stmt_location": 14520, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", - }, - "inh": true, - "location": 14669, - "relname": "int8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14662, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 14662, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", - }, - "inh": true, - "location": 14771, - "relname": "int8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14764, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 14764, - }, - }, - }, - }, - ], - }, - }, - }, - "view": { - "inh": true, - "location": 14644, - "relname": "tt18v", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 261, - "stmt_location": 14583, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14853, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 14868, - "sval": { - "sval": "tt18v", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 14877, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 14853, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 14845, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 14893, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 14918, - "relname": "tt18v", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14911, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 14911, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 40, - "stmt_location": 14883, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14986, - "val": { - "A_Expr": { - "kind": "AEXPR_OP_ANY", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 14986, - "sval": { - "sval": "foo", - }, - }, - }, - "location": 14991, - "typeName": { - "location": 14993, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 14998, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "location": 15010, - "sval": { - "sval": "abc", - }, - }, - }, - { - "A_Const": { - "location": 15016, - "sval": { - "sval": "def", - }, - }, - }, - { - "A_Const": { - "location": 15022, - "sval": { - "sval": "foo", - }, - }, - }, - ], - "location": 15004, - }, - }, - "location": 15028, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 15030, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 113, - "stmt_location": 14924, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15046, - "val": { - "SubLink": { - "location": 15058, - "operName": [ - { - "String": { - "sval": "=", - }, - }, - ], - "subLinkType": "ANY_SUBLINK", - "subselect": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15072, - "val": { - "TypeCast": { - "arg": { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "location": 15078, - "sval": { - "sval": "abc", - }, - }, - }, - { - "A_Const": { - "location": 15084, - "sval": { - "sval": "def", - }, - }, - }, - { - "A_Const": { - "location": 15090, - "sval": { - "sval": "foo", - }, - }, - }, - ], - "location": 15072, - }, - }, - "location": 15096, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 15098, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "testexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 15046, - "sval": { - "sval": "foo", - }, - }, - }, - "location": 15051, - "typeName": { - "location": 15053, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 68, - "stmt_location": 15038, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15124, - "val": { - "A_Expr": { - "kind": "AEXPR_OP_ANY", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 15124, - "sval": { - "sval": "foo", - }, - }, - }, - "location": 15129, - "typeName": { - "location": 15131, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 15136, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "SubLink": { - "location": 15142, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15150, - "val": { - "TypeCast": { - "arg": { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "location": 15156, - "sval": { - "sval": "abc", - }, - }, - }, - { - "A_Const": { - "location": 15162, - "sval": { - "sval": "def", - }, - }, - }, - { - "A_Const": { - "location": 15168, - "sval": { - "sval": "foo", - }, - }, - }, - ], - "location": 15150, - }, - }, - "location": 15174, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 15176, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "location": 15183, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 15185, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 85, - "stmt_location": 15107, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15223, - "name": "c1", - "val": { - "A_Expr": { - "kind": "AEXPR_OP_ANY", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 15223, - "sval": { - "sval": "foo", - }, - }, - }, - "location": 15228, - "typeName": { - "location": 15230, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 15235, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "location": 15247, - "sval": { - "sval": "abc", - }, - }, - }, - { - "A_Const": { - "location": 15253, - "sval": { - "sval": "def", - }, - }, - }, - { - "A_Const": { - "location": 15259, - "sval": { - "sval": "foo", - }, - }, - }, - ], - "location": 15241, - }, - }, - "location": 15265, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 15267, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 15286, - "name": "c2", - "val": { - "A_Expr": { - "kind": "AEXPR_OP_ANY", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 15286, - "sval": { - "sval": "foo", - }, - }, - }, - "location": 15291, - "typeName": { - "location": 15293, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 15298, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "SubLink": { - "location": 15304, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15312, - "val": { - "TypeCast": { - "arg": { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "location": 15318, - "sval": { - "sval": "abc", - }, - }, - }, - { - "A_Const": { - "location": 15324, - "sval": { - "sval": "def", - }, - }, - }, - { - "A_Const": { - "location": 15330, - "sval": { - "sval": "foo", - }, - }, - }, - ], - "location": 15312, - }, - }, - "location": 15336, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 15338, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "location": 15345, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 15347, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 15207, - "relname": "tt19v", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 164, - "stmt_location": 15193, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15366, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 15381, - "sval": { - "sval": "tt19v", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 15390, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 15366, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 15358, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 15473, - "sval": { - "sval": "warning", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "client_min_messages", - }, - }, - "stmt_len": 84, - "stmt_location": 15396, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "String": { - "sval": "temp_view_test", - }, - }, - ], - "removeType": "OBJECT_SCHEMA", - }, - }, - "stmt_len": 35, - "stmt_location": 15481, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "String": { - "sval": "testviewschm2", - }, - }, - ], - "removeType": "OBJECT_SCHEMA", - }, - }, - "stmt_len": 34, - "stmt_location": 15517, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/date.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 28, - "relname": "date_tbl", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 38, - "typeName": { - "location": 41, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 61, - "relname": "date_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 78, - "sval": { - "sval": "1957-04-09", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 44, - "stmt_location": 47, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 105, - "relname": "date_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 122, - "sval": { - "sval": "1957-06-13", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 92, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 149, - "relname": "date_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 166, - "sval": { - "sval": "1996-02-28", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 136, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 193, - "relname": "date_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 210, - "sval": { - "sval": "1996-02-29", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 180, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 237, - "relname": "date_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 254, - "sval": { - "sval": "1996-03-01", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 224, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 281, - "relname": "date_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 298, - "sval": { - "sval": "1996-03-02", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 268, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 325, - "relname": "date_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 342, - "sval": { - "sval": "1997-02-28", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 312, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 369, - "relname": "date_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 386, - "sval": { - "sval": "1997-02-29", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 356, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 413, - "relname": "date_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 430, - "sval": { - "sval": "1997-03-01", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 400, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 457, - "relname": "date_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 474, - "sval": { - "sval": "1997-03-02", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 444, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 501, - "relname": "date_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 518, - "sval": { - "sval": "2000-04-01", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 488, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 545, - "relname": "date_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 562, - "sval": { - "sval": "2000-04-02", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 532, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 589, - "relname": "date_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 606, - "sval": { - "sval": "2000-04-03", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 576, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 633, - "relname": "date_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 650, - "sval": { - "sval": "2038-04-08", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 620, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 677, - "relname": "date_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 694, - "sval": { - "sval": "2039-04-09", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 664, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 721, - "relname": "date_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 738, - "sval": { - "sval": "2040-04-10", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 708, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 782, - "relname": "date_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 761, - "name": "Fifteen", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 761, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 752, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 818, - "relname": "date_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 800, - "name": "Nine", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 800, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 833, - }, - }, - "location": 836, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 838, - "sval": { - "sval": "2000-01-01", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 791, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 879, - "relname": "date_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 860, - "name": "Three", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 860, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_BETWEEN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 896, - }, - }, - "location": 899, - "name": [ - { - "String": { - "sval": "BETWEEN", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 907, - "sval": { - "sval": "2000-01-01", - }, - }, - }, - { - "A_Const": { - "location": 924, - "sval": { - "sval": "2001-01-01", - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 85, - "stmt_location": 851, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 1004, - "sval": { - "sval": "iso", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "datestyle", - }, - }, - "stmt_len": 70, - "stmt_location": 937, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 1054, - "sval": { - "sval": "ymd", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "datestyle", - }, - }, - "stmt_len": 49, - "stmt_location": 1008, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1067, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1072, - "sval": { - "sval": "January 8, 1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1067, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 1058, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1098, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1103, - "sval": { - "sval": "1999-01-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1098, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 1090, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1124, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1129, - "sval": { - "sval": "1999-01-18", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1124, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 1116, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1150, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1155, - "sval": { - "sval": "1/8/1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1150, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 1142, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1174, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1179, - "sval": { - "sval": "1/18/1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1174, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 1166, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1199, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1204, - "sval": { - "sval": "18/1/1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1199, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 1191, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1224, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1229, - "sval": { - "sval": "01/02/03", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1224, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 1216, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1248, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1253, - "sval": { - "sval": "19990108", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1248, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 1240, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1272, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1277, - "sval": { - "sval": "990108", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1272, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 21, - "stmt_location": 1264, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1294, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1299, - "sval": { - "sval": "1999.008", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1294, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 1286, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1318, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1323, - "sval": { - "sval": "J2451187", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1318, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 1310, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1342, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1347, - "sval": { - "sval": "January 8, 99 BC", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1342, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 1334, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1375, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1380, - "sval": { - "sval": "99-Jan-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1375, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 1366, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1400, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1405, - "sval": { - "sval": "1999-Jan-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1400, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 1392, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1427, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1432, - "sval": { - "sval": "08-Jan-99", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1427, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 1419, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1452, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1457, - "sval": { - "sval": "08-Jan-1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1452, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 1444, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1479, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1484, - "sval": { - "sval": "Jan-08-99", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1479, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 1471, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1504, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1509, - "sval": { - "sval": "Jan-08-1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1504, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 1496, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1531, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1536, - "sval": { - "sval": "99-08-Jan", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1531, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 1523, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1556, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1561, - "sval": { - "sval": "1999-08-Jan", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1556, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 1548, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1584, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1589, - "sval": { - "sval": "99 Jan 08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1584, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 1575, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1609, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1614, - "sval": { - "sval": "1999 Jan 08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1609, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 1601, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1636, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1641, - "sval": { - "sval": "08 Jan 99", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1636, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 1628, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1661, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1666, - "sval": { - "sval": "08 Jan 1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1661, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 1653, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1688, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1693, - "sval": { - "sval": "Jan 08 99", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1688, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 1680, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1713, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1718, - "sval": { - "sval": "Jan 08 1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1713, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 1705, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1740, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1745, - "sval": { - "sval": "99 08 Jan", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1740, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 1732, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1765, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1770, - "sval": { - "sval": "1999 08 Jan", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1765, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 1757, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1793, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1798, - "sval": { - "sval": "99-01-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1793, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 1784, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1817, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1822, - "sval": { - "sval": "1999-01-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1817, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 1809, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1843, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1848, - "sval": { - "sval": "08-01-99", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1843, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 1835, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1867, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1872, - "sval": { - "sval": "08-01-1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1867, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 1859, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1893, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1898, - "sval": { - "sval": "01-08-99", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1893, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 1885, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1917, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1922, - "sval": { - "sval": "01-08-1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1917, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 1909, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1943, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1948, - "sval": { - "sval": "99-08-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1943, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 1935, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1967, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1972, - "sval": { - "sval": "1999-08-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1967, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 1959, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1994, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1999, - "sval": { - "sval": "99 01 08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1994, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 1985, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2018, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2023, - "sval": { - "sval": "1999 01 08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2018, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 2010, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2044, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2049, - "sval": { - "sval": "08 01 99", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2044, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 2036, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2068, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2073, - "sval": { - "sval": "08 01 1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2068, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 2060, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2094, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2099, - "sval": { - "sval": "01 08 99", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2094, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 2086, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2118, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2123, - "sval": { - "sval": "01 08 1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2118, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 2110, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2144, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2149, - "sval": { - "sval": "99 08 01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2144, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 2136, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2168, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2173, - "sval": { - "sval": "1999 08 01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2168, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 2160, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 2205, - "sval": { - "sval": "dmy", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "datestyle", - }, - }, - "stmt_len": 22, - "stmt_location": 2186, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2218, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2223, - "sval": { - "sval": "January 8, 1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2218, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 2209, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2249, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2254, - "sval": { - "sval": "1999-01-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2249, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 2241, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2275, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2280, - "sval": { - "sval": "1999-01-18", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2275, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 2267, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2301, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2306, - "sval": { - "sval": "1/8/1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2301, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 2293, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2325, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2330, - "sval": { - "sval": "1/18/1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2325, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 2317, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2350, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2355, - "sval": { - "sval": "18/1/1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2350, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 2342, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2375, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2380, - "sval": { - "sval": "01/02/03", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2375, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 2367, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2399, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2404, - "sval": { - "sval": "19990108", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2399, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 2391, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2423, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2428, - "sval": { - "sval": "990108", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2423, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 21, - "stmt_location": 2415, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2445, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2450, - "sval": { - "sval": "1999.008", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2445, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 2437, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2469, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2474, - "sval": { - "sval": "J2451187", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2469, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 2461, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2493, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2498, - "sval": { - "sval": "January 8, 99 BC", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2493, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 2485, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2526, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2531, - "sval": { - "sval": "99-Jan-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2526, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 2517, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2551, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2556, - "sval": { - "sval": "1999-Jan-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2551, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 2543, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2578, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2583, - "sval": { - "sval": "08-Jan-99", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2578, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 2570, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2603, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2608, - "sval": { - "sval": "08-Jan-1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2603, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 2595, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2630, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2635, - "sval": { - "sval": "Jan-08-99", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2630, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 2622, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2655, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2660, - "sval": { - "sval": "Jan-08-1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2655, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 2647, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2682, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2687, - "sval": { - "sval": "99-08-Jan", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2682, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 2674, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2707, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2712, - "sval": { - "sval": "1999-08-Jan", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2707, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 2699, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2735, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2740, - "sval": { - "sval": "99 Jan 08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2735, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 2726, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2760, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2765, - "sval": { - "sval": "1999 Jan 08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2760, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 2752, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2787, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2792, - "sval": { - "sval": "08 Jan 99", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2787, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 2779, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2812, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2817, - "sval": { - "sval": "08 Jan 1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2812, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 2804, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2839, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2844, - "sval": { - "sval": "Jan 08 99", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2839, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 2831, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2864, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2869, - "sval": { - "sval": "Jan 08 1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2864, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 2856, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2891, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2896, - "sval": { - "sval": "99 08 Jan", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2891, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 2883, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2916, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2921, - "sval": { - "sval": "1999 08 Jan", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2916, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 2908, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2944, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2949, - "sval": { - "sval": "99-01-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2944, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 2935, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2968, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2973, - "sval": { - "sval": "1999-01-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2968, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 2960, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2994, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2999, - "sval": { - "sval": "08-01-99", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2994, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 2986, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3018, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3023, - "sval": { - "sval": "08-01-1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3018, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 3010, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3044, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3049, - "sval": { - "sval": "01-08-99", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3044, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 3036, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3068, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3073, - "sval": { - "sval": "01-08-1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3068, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 3060, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3094, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3099, - "sval": { - "sval": "99-08-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3094, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 3086, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3118, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3123, - "sval": { - "sval": "1999-08-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3118, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 3110, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3145, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3150, - "sval": { - "sval": "99 01 08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3145, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 3136, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3169, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3174, - "sval": { - "sval": "1999 01 08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3169, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 3161, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3195, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3200, - "sval": { - "sval": "08 01 99", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3195, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 3187, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3219, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3224, - "sval": { - "sval": "08 01 1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3219, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 3211, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3245, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3250, - "sval": { - "sval": "01 08 99", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3245, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 3237, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3269, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3274, - "sval": { - "sval": "01 08 1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3269, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 3261, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3295, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3300, - "sval": { - "sval": "99 08 01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3295, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 3287, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3319, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3324, - "sval": { - "sval": "1999 08 01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3319, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 3311, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 3356, - "sval": { - "sval": "mdy", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "datestyle", - }, - }, - "stmt_len": 22, - "stmt_location": 3337, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3369, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3374, - "sval": { - "sval": "January 8, 1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3369, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 3360, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3400, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3405, - "sval": { - "sval": "1999-01-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3400, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 3392, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3426, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3431, - "sval": { - "sval": "1999-01-18", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3426, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 3418, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3452, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3457, - "sval": { - "sval": "1/8/1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3452, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 3444, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3476, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3481, - "sval": { - "sval": "1/18/1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3476, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 3468, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3501, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3506, - "sval": { - "sval": "18/1/1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3501, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 3493, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3526, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3531, - "sval": { - "sval": "01/02/03", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3526, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 3518, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3550, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3555, - "sval": { - "sval": "19990108", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3550, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 3542, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3574, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3579, - "sval": { - "sval": "990108", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3574, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 21, - "stmt_location": 3566, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3596, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3601, - "sval": { - "sval": "1999.008", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3596, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 3588, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3620, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3625, - "sval": { - "sval": "J2451187", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3620, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 3612, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3644, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3649, - "sval": { - "sval": "January 8, 99 BC", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3644, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 3636, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3677, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3682, - "sval": { - "sval": "99-Jan-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3677, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 3668, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3702, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3707, - "sval": { - "sval": "1999-Jan-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3702, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 3694, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3729, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3734, - "sval": { - "sval": "08-Jan-99", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3729, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 3721, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3754, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3759, - "sval": { - "sval": "08-Jan-1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3754, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 3746, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3781, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3786, - "sval": { - "sval": "Jan-08-99", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3781, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 3773, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3806, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3811, - "sval": { - "sval": "Jan-08-1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3806, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 3798, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3833, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3838, - "sval": { - "sval": "99-08-Jan", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3833, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 3825, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3858, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3863, - "sval": { - "sval": "1999-08-Jan", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3858, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 3850, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3886, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3891, - "sval": { - "sval": "99 Jan 08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3886, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 3877, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3911, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3916, - "sval": { - "sval": "1999 Jan 08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3911, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 3903, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3938, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3943, - "sval": { - "sval": "08 Jan 99", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3938, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 3930, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3963, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3968, - "sval": { - "sval": "08 Jan 1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3963, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 3955, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3990, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3995, - "sval": { - "sval": "Jan 08 99", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3990, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 3982, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4015, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4020, - "sval": { - "sval": "Jan 08 1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4015, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 4007, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4042, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4047, - "sval": { - "sval": "99 08 Jan", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4042, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 4034, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4067, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4072, - "sval": { - "sval": "1999 08 Jan", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4067, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 4059, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4095, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4100, - "sval": { - "sval": "99-01-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4095, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 4086, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4119, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4124, - "sval": { - "sval": "1999-01-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4119, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 4111, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4145, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4150, - "sval": { - "sval": "08-01-99", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4145, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 4137, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4169, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4174, - "sval": { - "sval": "08-01-1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4169, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 4161, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4195, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4200, - "sval": { - "sval": "01-08-99", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4195, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 4187, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4219, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4224, - "sval": { - "sval": "01-08-1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4219, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 4211, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4245, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4250, - "sval": { - "sval": "99-08-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4245, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 4237, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4269, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4274, - "sval": { - "sval": "1999-08-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4269, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 4261, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4296, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4301, - "sval": { - "sval": "99 01 08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4296, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 4287, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4320, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4325, - "sval": { - "sval": "1999 01 08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4320, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 4312, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4346, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4351, - "sval": { - "sval": "08 01 99", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4346, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 4338, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4370, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4375, - "sval": { - "sval": "08 01 1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4370, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 4362, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4396, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4401, - "sval": { - "sval": "01 08 99", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4396, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 4388, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4420, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4425, - "sval": { - "sval": "01 08 1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4420, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 4412, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4446, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4451, - "sval": { - "sval": "99 08 01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4446, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 4438, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4470, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4475, - "sval": { - "sval": "1999 08 01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4470, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 4462, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4543, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4548, - "sval": { - "sval": "4714-11-24 BC", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4543, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 75, - "stmt_location": 4488, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4572, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4577, - "sval": { - "sval": "4714-11-23 BC", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4572, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 4564, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4618, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4623, - "sval": { - "sval": "5874897-12-31", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4618, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 4593, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4647, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4652, - "sval": { - "sval": "5874898-01-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4647, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 4639, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "datestyle", - }, - }, - "stmt_len": 34, - "stmt_location": 4668, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4823, - "relname": "date_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4777, - "name": "Days From 2K", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 4777, - }, - }, - "location": 4780, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4787, - "sval": { - "sval": "2000-01-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4782, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 128, - "stmt_location": 4703, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4885, - "relname": "date_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4841, - "name": "Days From Epoch", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 4841, - }, - }, - "location": 4844, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4851, - "sval": { - "sval": "epoch", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4846, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 4832, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4903, - "name": "One day", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4908, - "sval": { - "sval": "yesterday", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4903, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4920, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4927, - "sval": { - "sval": "today", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4922, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 4894, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4957, - "name": "One day", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4962, - "sval": { - "sval": "today", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4957, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4970, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4977, - "sval": { - "sval": "tomorrow", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4972, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 4948, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5010, - "name": "Two days", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5015, - "sval": { - "sval": "yesterday", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5010, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 5027, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5034, - "sval": { - "sval": "tomorrow", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5029, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 5001, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5068, - "name": "One day", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5073, - "sval": { - "sval": "tomorrow", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5068, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 5084, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5091, - "sval": { - "sval": "today", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5086, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 5059, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5121, - "name": "One day", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5126, - "sval": { - "sval": "today", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5121, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 5134, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5141, - "sval": { - "sval": "yesterday", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5136, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 5112, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5175, - "name": "Two days", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5180, - "sval": { - "sval": "tomorrow", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5175, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 5191, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5198, - "sval": { - "sval": "yesterday", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5193, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 5166, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5268, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 5276, - "sval": { - "sval": "epoch", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5299, - "sval": { - "sval": "1970-01-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5287, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 5268, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 88, - "stmt_location": 5224, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5331, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 5339, - "sval": { - "sval": "epoch", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5362, - "sval": { - "sval": "1970-01-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5350, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 5331, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 5313, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5394, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 5402, - "sval": { - "sval": "epoch", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5425, - "sval": { - "sval": "1970-01-01+00", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5413, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 5394, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 65, - "stmt_location": 5376, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5474, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 5482, - "sval": { - "sval": "century", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5500, - "sval": { - "sval": "0101-12-31 BC", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5495, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 5474, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 74, - "stmt_location": 5442, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5531, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 5539, - "sval": { - "sval": "century", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5557, - "sval": { - "sval": "0100-12-31 BC", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5552, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 5531, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 5517, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5588, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 5596, - "sval": { - "sval": "century", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5614, - "sval": { - "sval": "0001-12-31 BC", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5609, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 5588, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 5574, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5645, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 5653, - "sval": { - "sval": "century", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5671, - "sval": { - "sval": "0001-01-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5666, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 5645, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 5631, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5702, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 5710, - "sval": { - "sval": "century", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5728, - "sval": { - "sval": "0001-01-01 AD", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5723, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 5702, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 5685, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5759, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 5767, - "sval": { - "sval": "century", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5785, - "sval": { - "sval": "1900-12-31", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5780, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 5759, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 5745, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5816, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 5824, - "sval": { - "sval": "century", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5842, - "sval": { - "sval": "1901-01-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5837, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 5816, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 5799, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5873, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 5881, - "sval": { - "sval": "century", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5899, - "sval": { - "sval": "2000-12-31", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5894, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 5873, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 5856, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5930, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 5938, - "sval": { - "sval": "century", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5956, - "sval": { - "sval": "2001-01-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5951, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 5930, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 5913, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5987, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 5995, - "sval": { - "sval": "century", - }, - }, - }, - { - "SQLValueFunction": { - "location": 6008, - "op": "SVFOP_CURRENT_DATE", - "typmod": -1, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 5987, - }, - }, - "location": 6021, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 21, - }, - "location": 6023, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 5970, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6074, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 6082, - "sval": { - "sval": "millennium", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6103, - "sval": { - "sval": "0001-12-31 BC", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6098, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 6074, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 85, - "stmt_location": 6034, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6134, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 6142, - "sval": { - "sval": "millennium", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6163, - "sval": { - "sval": "0001-01-01 AD", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6158, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 6134, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 6120, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6194, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 6202, - "sval": { - "sval": "millennium", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6223, - "sval": { - "sval": "1000-12-31", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6218, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 6194, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 6180, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6254, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 6262, - "sval": { - "sval": "millennium", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6283, - "sval": { - "sval": "1001-01-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6278, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 6254, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 6237, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6314, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 6322, - "sval": { - "sval": "millennium", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6343, - "sval": { - "sval": "2000-12-31", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6338, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 6314, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 6297, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6374, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 6382, - "sval": { - "sval": "millennium", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6403, - "sval": { - "sval": "2001-01-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6398, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 6374, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 6357, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6497, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 6505, - "sval": { - "sval": "millennium", - }, - }, - }, - { - "SQLValueFunction": { - "location": 6521, - "op": "SVFOP_CURRENT_DATE", - "typmod": -1, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 6497, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 117, - "stmt_location": 6417, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6573, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 6581, - "sval": { - "sval": "decade", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6598, - "sval": { - "sval": "1994-12-25", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6593, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 6573, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 76, - "stmt_location": 6535, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6630, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 6638, - "sval": { - "sval": "decade", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6655, - "sval": { - "sval": "0010-01-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6650, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 6630, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 6612, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6687, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 6695, - "sval": { - "sval": "decade", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6712, - "sval": { - "sval": "0009-12-31", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6707, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 6687, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 6669, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6744, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 6752, - "sval": { - "sval": "decade", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6769, - "sval": { - "sval": "0001-01-01 BC", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6764, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 6744, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 6726, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6801, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 6809, - "sval": { - "sval": "decade", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6826, - "sval": { - "sval": "0002-12-31 BC", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6821, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 6801, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 6786, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6858, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 6866, - "sval": { - "sval": "decade", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6883, - "sval": { - "sval": "0011-01-01 BC", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6878, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 6858, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 6843, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6915, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 6923, - "sval": { - "sval": "decade", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6940, - "sval": { - "sval": "0012-12-31 BC", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6935, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 6915, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 6900, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7018, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 7026, - "sval": { - "sval": "century", - }, - }, - }, - { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "now", - }, - }, - ], - "location": 7039, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 7018, - }, - }, - "location": 7045, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 21, - }, - "location": 7047, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 100, - "stmt_location": 6957, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7080, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 7088, - "sval": { - "sval": "century", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7111, - "sval": { - "sval": "1970-03-20 04:30:00.00000", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7101, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 7080, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 81, - "stmt_location": 7058, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7172, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 7180, - "sval": { - "sval": "century", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7202, - "sval": { - "sval": "100 y", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7193, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 7172, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 70, - "stmt_location": 7140, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7225, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 7233, - "sval": { - "sval": "century", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7255, - "sval": { - "sval": "99 y", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7246, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 7225, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 7211, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7278, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 7286, - "sval": { - "sval": "century", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7308, - "sval": { - "sval": "-99 y", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7299, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 7278, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 7263, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7331, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 7339, - "sval": { - "sval": "century", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7361, - "sval": { - "sval": "-100 y", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7352, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 7331, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 7317, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7415, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 7426, - "sval": { - "sval": "MILLENNIUM", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7450, - "sval": { - "sval": "1970-03-20 04:30:00.00000", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7440, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "date_trunc", - }, - }, - ], - "location": 7415, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 107, - "stmt_location": 7371, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7495, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 7506, - "sval": { - "sval": "MILLENNIUM", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7525, - "sval": { - "sval": "1970-03-20", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7520, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "date_trunc", - }, - }, - ], - "location": 7495, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 7479, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7561, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 7572, - "sval": { - "sval": "CENTURY", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7593, - "sval": { - "sval": "1970-03-20 04:30:00.00000", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7583, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "date_trunc", - }, - }, - ], - "location": 7561, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 82, - "stmt_location": 7539, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7638, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 7649, - "sval": { - "sval": "CENTURY", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7665, - "sval": { - "sval": "1970-03-20", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7660, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "date_trunc", - }, - }, - ], - "location": 7638, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 7622, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7695, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 7706, - "sval": { - "sval": "CENTURY", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7722, - "sval": { - "sval": "2004-08-10", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7717, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "date_trunc", - }, - }, - ], - "location": 7695, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 7679, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7758, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 7769, - "sval": { - "sval": "CENTURY", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7785, - "sval": { - "sval": "0002-02-04", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7780, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "date_trunc", - }, - }, - ], - "location": 7758, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 7736, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7821, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 7832, - "sval": { - "sval": "CENTURY", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7848, - "sval": { - "sval": "0055-08-10 BC", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7843, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "date_trunc", - }, - }, - ], - "location": 7821, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 65, - "stmt_location": 7799, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7890, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 7901, - "sval": { - "sval": "DECADE", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7916, - "sval": { - "sval": "1993-12-25", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7911, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "date_trunc", - }, - }, - ], - "location": 7890, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 64, - "stmt_location": 7865, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7952, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 7963, - "sval": { - "sval": "DECADE", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7978, - "sval": { - "sval": "0004-12-25", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7973, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "date_trunc", - }, - }, - ], - "location": 7952, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 7930, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8017, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 8028, - "sval": { - "sval": "DECADE", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8043, - "sval": { - "sval": "0002-12-31 BC", - }, - }, - }, - "location": -1, - "typeName": { - "location": 8038, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "date_trunc", - }, - }, - ], - "location": 8017, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 67, - "stmt_location": 7992, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8108, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8108, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": 8118, - "typeName": { - "location": 8120, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8126, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8126, - "sval": { - "sval": "-infinity", - }, - }, - }, - "location": 8137, - "typeName": { - "location": 8139, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 83, - "stmt_location": 8060, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8152, - "name": "t", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8152, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": 8162, - "typeName": { - "location": 8164, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 8169, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8171, - "sval": { - "sval": "today", - }, - }, - }, - "location": 8178, - "typeName": { - "location": 8180, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 8144, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8198, - "name": "t", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8198, - "sval": { - "sval": "-infinity", - }, - }, - }, - "location": 8209, - "typeName": { - "location": 8211, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 8216, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8218, - "sval": { - "sval": "today", - }, - }, - }, - "location": 8225, - "typeName": { - "location": 8227, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 8190, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8245, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8254, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": 8264, - "typeName": { - "location": 8266, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "isfinite", - }, - }, - ], - "location": 8245, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8273, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8282, - "sval": { - "sval": "-infinity", - }, - }, - }, - "location": 8293, - "typeName": { - "location": 8295, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "isfinite", - }, - }, - ], - "location": 8273, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8302, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8311, - "sval": { - "sval": "today", - }, - }, - }, - "location": 8318, - "typeName": { - "location": 8320, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "isfinite", - }, - }, - ], - "location": 8302, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 88, - "stmt_location": 8237, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8396, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 8404, - "sval": { - "sval": "hour", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8419, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 8414, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 8396, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 104, - "stmt_location": 8326, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8452, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 8460, - "sval": { - "sval": "hour", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8475, - "sval": { - "sval": "-infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 8470, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 8452, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 8431, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8508, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 8516, - "sval": { - "sval": "hour", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8538, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 8526, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 8508, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 8488, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8571, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 8579, - "sval": { - "sval": "hour", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8601, - "sval": { - "sval": "-infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 8589, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 8571, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 8550, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8634, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 8642, - "sval": { - "sval": "hour", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8664, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 8652, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 8634, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 8614, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8697, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 8705, - "sval": { - "sval": "hour", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8727, - "sval": { - "sval": "-infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 8715, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 8697, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 8676, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8783, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 8791, - "sval": { - "sval": "microseconds", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8815, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 8810, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 8783, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 86, - "stmt_location": 8740, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8846, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 8854, - "sval": { - "sval": "milliseconds", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8878, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 8873, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 8846, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 8827, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8909, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 8917, - "sval": { - "sval": "second", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8941, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 8936, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 8909, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 8890, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8972, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 8980, - "sval": { - "sval": "minute", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9004, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 8999, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 8972, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 8953, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9035, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 9043, - "sval": { - "sval": "hour", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9067, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 9062, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 9035, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 9016, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9098, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 9106, - "sval": { - "sval": "day", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9130, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 9125, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 9098, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 9079, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9161, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 9169, - "sval": { - "sval": "month", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9193, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 9188, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 9161, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 9142, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9224, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 9232, - "sval": { - "sval": "quarter", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9256, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 9251, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 9224, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 9205, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9287, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 9295, - "sval": { - "sval": "week", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9319, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 9314, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 9287, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 9268, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9350, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 9358, - "sval": { - "sval": "dow", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9382, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 9377, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 9350, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 9331, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9413, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 9421, - "sval": { - "sval": "isodow", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9445, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 9440, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 9413, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 9394, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9476, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 9484, - "sval": { - "sval": "doy", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9508, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 9503, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 9476, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 9457, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9539, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 9547, - "sval": { - "sval": "timezone", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9571, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 9566, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 9539, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 9520, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9602, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 9610, - "sval": { - "sval": "timezone_m", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9634, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 9629, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 9602, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 9583, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9665, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 9673, - "sval": { - "sval": "timezone_h", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9697, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 9692, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 9665, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 9646, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9788, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 9796, - "sval": { - "sval": "epoch", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9812, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 9807, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 9788, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 114, - "stmt_location": 9709, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9853, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 9861, - "sval": { - "sval": "epoch", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9877, - "sval": { - "sval": "-infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 9872, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 9853, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 65, - "stmt_location": 9824, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9918, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 9926, - "sval": { - "sval": "epoch", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9949, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 9937, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 9918, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 70, - "stmt_location": 9890, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9983, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 9991, - "sval": { - "sval": "epoch", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10014, - "sval": { - "sval": "-infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10002, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 9983, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 65, - "stmt_location": 9961, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10048, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 10056, - "sval": { - "sval": "epoch", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10079, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10067, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 10048, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 10027, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10113, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 10121, - "sval": { - "sval": "epoch", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10144, - "sval": { - "sval": "-infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10132, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 10113, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 65, - "stmt_location": 10091, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10201, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 10209, - "sval": { - "sval": "year", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10230, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10225, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 10201, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 84, - "stmt_location": 10157, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10266, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 10274, - "sval": { - "sval": "decade", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10295, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10290, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 10266, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 64, - "stmt_location": 10242, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10331, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 10339, - "sval": { - "sval": "century", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10360, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10355, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 10331, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 64, - "stmt_location": 10307, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10396, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 10404, - "sval": { - "sval": "millennium", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10425, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10420, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 10396, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 64, - "stmt_location": 10372, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10461, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 10469, - "sval": { - "sval": "julian", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10490, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10485, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 10461, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 64, - "stmt_location": 10437, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10526, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 10534, - "sval": { - "sval": "isoyear", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10555, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10550, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 10526, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 64, - "stmt_location": 10502, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10591, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 10599, - "sval": { - "sval": "epoch", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10620, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10615, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 10591, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 64, - "stmt_location": 10567, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10700, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 10708, - "sval": { - "sval": "microsec", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10728, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10723, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 10700, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 107, - "stmt_location": 10632, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10805, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 10813, - "sval": { - "sval": "undefined", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10833, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10828, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "extract", - }, - }, - ], - "location": 10805, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 104, - "stmt_location": 10740, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10932, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2013, - }, - "location": 10942, - }, - }, - { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 10948, - }, - }, - { - "A_Const": { - "ival": { - "ival": 15, - }, - "location": 10951, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "make_date", - }, - }, - ], - "location": 10932, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 109, - "stmt_location": 10845, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10963, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 8, - }, - "location": 10973, - }, - }, - { - "A_Const": { - "ival": { - "ival": 20, - }, - "location": 10976, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.0", - }, - "location": 10980, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "make_time", - }, - }, - ], - "location": 10963, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 29, - "stmt_location": 10955, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11008, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2013, - }, - "location": 11018, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11024, - }, - }, - { - "A_Const": { - "ival": { - "ival": 30, - }, - "location": 11027, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "make_date", - }, - }, - ], - "location": 11008, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 10985, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11039, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2013, - }, - "location": 11049, - }, - }, - { - "A_Const": { - "ival": { - "ival": 13, - }, - "location": 11055, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11059, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "make_date", - }, - }, - ], - "location": 11039, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 11031, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11070, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2013, - }, - "location": 11080, - }, - }, - { - "A_Const": { - "ival": { - "ival": 11, - }, - "location": 11086, - }, - }, - { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 11090, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "make_date", - }, - }, - ], - "location": 11070, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 11062, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11102, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": -44, - }, - "location": 11112, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 11117, - }, - }, - { - "A_Const": { - "ival": { - "ival": 15, - }, - "location": 11120, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "make_date", - }, - }, - ], - "location": 11102, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 29, - "stmt_location": 11094, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11175, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 11185, - }, - }, - { - "A_Const": { - "ival": { - "ival": 55, - }, - "location": 11189, - }, - }, - { - "A_Const": { - "fval": { - "fval": "100.1", - }, - "location": 11193, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "make_time", - }, - }, - ], - "location": 11175, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 75, - "stmt_location": 11124, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11208, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 24, - }, - "location": 11218, - }, - }, - { - "A_Const": { - "ival": {}, - "location": 11222, - }, - }, - { - "A_Const": { - "fval": { - "fval": "2.1", - }, - "location": 11225, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "make_time", - }, - }, - ], - "location": 11208, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 29, - "stmt_location": 11200, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/dbsize.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "x", - "colnames": [ - { - "String": { - "sval": "size", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 79, - }, - }, - "location": 81, - "typeName": { - "location": 83, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 1000, - }, - "location": 93, - }, - }, - "location": 97, - "typeName": { - "location": 99, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 1000000, - }, - "location": 109, - }, - }, - "location": 116, - "typeName": { - "location": 118, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 1000000000, - }, - "location": 140, - }, - }, - "location": 150, - "typeName": { - "location": 152, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "1000000000000", - }, - "location": 162, - }, - }, - "location": 175, - "typeName": { - "location": 177, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "1000000000000000", - }, - "location": 199, - }, - }, - "location": 215, - "typeName": { - "location": 217, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "size", - }, - }, - ], - "location": 7, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "size", - }, - }, - ], - "location": 28, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_size_pretty", - }, - }, - ], - "location": 13, - }, - }, - }, - }, - { - "ResTarget": { - "location": 35, - "val": { - "FuncCall": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 50, - }, - }, - "location": 53, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "size", - }, - }, - ], - "location": 55, - }, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_size_pretty", - }, - }, - ], - "location": 35, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 233, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "x", - "colnames": [ - { - "String": { - "sval": "size", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 315, - }, - }, - "location": 317, - "typeName": { - "location": 319, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 1000, - }, - "location": 330, - }, - }, - "location": 334, - "typeName": { - "location": 336, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 1000000, - }, - "location": 347, - }, - }, - "location": 354, - "typeName": { - "location": 356, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 1000000000, - }, - "location": 379, - }, - }, - "location": 389, - "typeName": { - "location": 391, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "1000000000000", - }, - "location": 402, - }, - }, - "location": 415, - "typeName": { - "location": 417, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "1000000000000000", - }, - "location": 440, - }, - }, - "location": 456, - "typeName": { - "location": 458, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "10.5", - }, - "location": 481, - }, - }, - "location": 485, - "typeName": { - "location": 487, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "1000.5", - }, - "location": 498, - }, - }, - "location": 504, - "typeName": { - "location": 506, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "1000000.5", - }, - "location": 517, - }, - }, - "location": 526, - "typeName": { - "location": 528, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "1000000000.5", - }, - "location": 551, - }, - }, - "location": 563, - "typeName": { - "location": 565, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "1000000000000.5", - }, - "location": 576, - }, - }, - "location": 591, - "typeName": { - "location": 593, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "1000000000000000.5", - }, - "location": 616, - }, - }, - "location": 634, - "typeName": { - "location": 636, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 243, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "size", - }, - }, - ], - "location": 243, - }, - }, - }, - }, - { - "ResTarget": { - "location": 249, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "size", - }, - }, - ], - "location": 264, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_size_pretty", - }, - }, - ], - "location": 249, - }, - }, - }, - }, - { - "ResTarget": { - "location": 271, - "val": { - "FuncCall": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 286, - }, - }, - "location": 289, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "size", - }, - }, - ], - "location": 291, - }, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_size_pretty", - }, - }, - ], - "location": 271, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 419, - "stmt_location": 234, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "x", - "colnames": [ - { - "String": { - "sval": "size", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 707, - "sval": { - "sval": "1", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 714, - "sval": { - "sval": "123bytes", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 728, - "sval": { - "sval": "1kB", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 737, - "sval": { - "sval": "1MB", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 746, - "sval": { - "sval": " 1 GB", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 757, - "sval": { - "sval": "1.5 GB ", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 782, - "sval": { - "sval": "1TB", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 791, - "sval": { - "sval": "3000 TB", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 804, - "sval": { - "sval": "1e6 MB", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 663, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "size", - }, - }, - ], - "location": 663, - }, - }, - }, - }, - { - "ResTarget": { - "location": 669, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "size", - }, - }, - ], - "location": 683, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_size_bytes", - }, - }, - ], - "location": 669, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 168, - "stmt_location": 654, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "x", - "colnames": [ - { - "String": { - "sval": "size", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 916, - "sval": { - "sval": "1", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 923, - "sval": { - "sval": "123bYteS", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 937, - "sval": { - "sval": "1kb", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 946, - "sval": { - "sval": "1mb", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 955, - "sval": { - "sval": " 1 Gb", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 966, - "sval": { - "sval": "1.5 gB ", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 991, - "sval": { - "sval": "1tb", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 1000, - "sval": { - "sval": "3000 tb", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 1013, - "sval": { - "sval": "1e6 mb", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 872, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "size", - }, - }, - ], - "location": 872, - }, - }, - }, - }, - { - "ResTarget": { - "location": 878, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "size", - }, - }, - ], - "location": 892, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_size_bytes", - }, - }, - ], - "location": 878, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 208, - "stmt_location": 823, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "x", - "colnames": [ - { - "String": { - "sval": "size", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1119, - "sval": { - "sval": "-1", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 1127, - "sval": { - "sval": "-123bytes", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 1142, - "sval": { - "sval": "-1kb", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 1152, - "sval": { - "sval": "-1mb", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 1162, - "sval": { - "sval": " -1 Gb", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 1174, - "sval": { - "sval": "-1.5 gB ", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 1200, - "sval": { - "sval": "-1tb", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 1210, - "sval": { - "sval": "-3000 TB", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 1224, - "sval": { - "sval": "-10e-1 MB", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1075, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "size", - }, - }, - ], - "location": 1075, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1081, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "size", - }, - }, - ], - "location": 1095, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_size_bytes", - }, - }, - ], - "location": 1081, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 213, - "stmt_location": 1032, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "x", - "colnames": [ - { - "String": { - "sval": "size", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1339, - "sval": { - "sval": "-1.", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 1348, - "sval": { - "sval": "-1.kb", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 1359, - "sval": { - "sval": "-1. kb", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 1371, - "sval": { - "sval": "-0. gb", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 1396, - "sval": { - "sval": "-.1", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 1405, - "sval": { - "sval": "-.1kb", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 1416, - "sval": { - "sval": "-.1 kb", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 1428, - "sval": { - "sval": "-.0 gb", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1294, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "size", - }, - }, - ], - "location": 1294, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1300, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "size", - }, - }, - ], - "location": 1314, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_size_bytes", - }, - }, - ], - "location": 1300, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 200, - "stmt_location": 1246, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1474, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1488, - "sval": { - "sval": "1 AB", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_size_bytes", - }, - }, - ], - "location": 1474, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 48, - "stmt_location": 1447, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1504, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1518, - "sval": { - "sval": "1 AB A", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_size_bytes", - }, - }, - ], - "location": 1504, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 1496, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1536, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1550, - "sval": { - "sval": "1 AB A ", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_size_bytes", - }, - }, - ], - "location": 1536, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 1528, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1572, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1586, - "sval": { - "sval": "9223372036854775807.9", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_size_bytes", - }, - }, - ], - "location": 1572, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 1564, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1619, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1633, - "sval": { - "sval": "1e100", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_size_bytes", - }, - }, - ], - "location": 1619, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 1611, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1650, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1664, - "sval": { - "sval": "1e1000000000000000000", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_size_bytes", - }, - }, - ], - "location": 1650, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 1642, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1697, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1711, - "sval": { - "sval": "1 byte", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_size_bytes", - }, - }, - ], - "location": 1697, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 1689, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1770, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1784, - "sval": { - "sval": "", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_size_bytes", - }, - }, - ], - "location": 1770, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 66, - "stmt_location": 1721, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1797, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1811, - "sval": { - "sval": "kb", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_size_bytes", - }, - }, - ], - "location": 1797, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 1788, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1825, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1839, - "sval": { - "sval": "..", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_size_bytes", - }, - }, - ], - "location": 1825, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 1817, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1853, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1867, - "sval": { - "sval": "-.", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_size_bytes", - }, - }, - ], - "location": 1853, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 1845, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1881, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1895, - "sval": { - "sval": "-.kb", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_size_bytes", - }, - }, - ], - "location": 1881, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 29, - "stmt_location": 1873, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1911, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1925, - "sval": { - "sval": "-. kb", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_size_bytes", - }, - }, - ], - "location": 1911, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 1903, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1943, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1957, - "sval": { - "sval": ".+912", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_size_bytes", - }, - }, - ], - "location": 1943, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 1934, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1974, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1988, - "sval": { - "sval": "+912+ kB", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_size_bytes", - }, - }, - ], - "location": 1974, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 1966, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2008, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2022, - "sval": { - "sval": "++123 kB", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_size_bytes", - }, - }, - ], - "location": 2008, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 2000, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/delete.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 13, - "relname": "delete_test", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 41, - }, - }, - ], - "is_local": true, - "location": 31, - "typeName": { - "location": 34, - "names": [ - { - "String": { - "sval": "serial", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 58, - "typeName": { - "location": 60, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 69, - "typeName": { - "location": 71, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 77, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 105, - "name": "a", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 92, - "relname": "delete_test", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 116, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 41, - "stmt_location": 78, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 146, - "name": "a", - }, - }, - { - "ResTarget": { - "location": 149, - "name": "b", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 133, - "relname": "delete_test", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 50, - }, - "location": 160, - }, - }, - { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 171, - "sval": { - "sval": "x", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10000, - }, - "location": 176, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "repeat", - }, - }, - ], - "location": 164, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 63, - "stmt_location": 120, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 210, - "name": "a", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 197, - "relname": "delete_test", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 100, - }, - "location": 221, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 41, - "stmt_location": 184, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "alias": { - "aliasname": "dt", - }, - "inh": true, - "location": 300, - "relname": "delete_test", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "dt", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 324, - }, - }, - "location": 329, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 75, - }, - "location": 331, - }, - }, - }, - }, - }, - }, - "stmt_len": 107, - "stmt_location": 226, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "alias": { - "aliasname": "dt", - }, - "inh": true, - "location": 433, - "relname": "delete_test", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "delete_test", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 454, - }, - }, - "location": 468, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 25, - }, - "location": 470, - }, - }, - }, - }, - }, - }, - "stmt_len": 138, - "stmt_location": 334, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 509, - "relname": "delete_test", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 482, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 482, - }, - }, - }, - }, - { - "ResTarget": { - "location": 486, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 486, - }, - }, - }, - }, - { - "ResTarget": { - "location": 489, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 501, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "char_length", - }, - }, - ], - "location": 489, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 473, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 572, - "relname": "delete_test", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 590, - }, - }, - "location": 592, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 25, - }, - "location": 594, - }, - }, - }, - }, - }, - }, - "stmt_len": 75, - "stmt_location": 521, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 633, - "relname": "delete_test", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 606, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 606, - }, - }, - }, - }, - { - "ResTarget": { - "location": 610, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 610, - }, - }, - }, - }, - { - "ResTarget": { - "location": 613, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 625, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "char_length", - }, - }, - ], - "location": 613, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 597, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "delete_test", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 24, - "stmt_location": 645, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/dependency.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "role": "regression_user", - "stmt_type": "ROLESTMT_USER", - }, - }, - "stmt_len": 50, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "role": "regression_user2", - "stmt_type": "ROLESTMT_USER", - }, - }, - "stmt_len": 29, - "stmt_location": 51, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "role": "regression_user3", - "stmt_type": "ROLESTMT_USER", - }, - }, - "stmt_len": 29, - "stmt_location": 81, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "role": "regression_group", - "stmt_type": "ROLESTMT_GROUP", - }, - }, - "stmt_len": 30, - "stmt_location": 111, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 157, - "relname": "deptest", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 176, - }, - }, - ], - "is_local": true, - "location": 166, - "typeName": { - "location": 169, - "names": [ - { - "String": { - "sval": "serial", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "f2", - "is_local": true, - "location": 189, - "typeName": { - "location": 192, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 55, - "stmt_location": 142, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 239, - "rolename": "regression_group", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "RangeVar": { - "inh": true, - "location": 222, - "relname": "deptest", - "relpersistence": "p", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "privileges": [ - { - "AccessPriv": { - "priv_name": "select", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 57, - "stmt_location": 198, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 287, - "rolename": "regression_user", - "roletype": "ROLESPEC_CSTRING", - }, - }, - { - "RoleSpec": { - "location": 304, - "rolename": "regression_user2", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "RangeVar": { - "inh": true, - "location": 276, - "relname": "deptest", - "relpersistence": "p", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 64, - "stmt_location": 256, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 394, - "rolename": "regression_user", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 88, - "stmt_location": 321, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 422, - "rolename": "regression_group", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 410, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 530, - "rolename": "regression_group", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "objects": [ - { - "RangeVar": { - "inh": true, - "location": 511, - "relname": "deptest", - "relpersistence": "p", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "privileges": [ - { - "AccessPriv": { - "priv_name": "select", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 107, - "stmt_location": 439, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 559, - "rolename": "regression_group", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 547, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 715, - "rolename": "regression_user", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "objects": [ - { - "RangeVar": { - "inh": true, - "location": 702, - "relname": "deptest", - "relpersistence": "p", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "privileges": [ - { - "AccessPriv": { - "priv_name": "select", - }, - }, - { - "AccessPriv": { - "priv_name": "insert", - }, - }, - { - "AccessPriv": { - "priv_name": "update", - }, - }, - { - "AccessPriv": { - "priv_name": "delete", - }, - }, - { - "AccessPriv": { - "priv_name": "truncate", - }, - }, - { - "AccessPriv": { - "priv_name": "references", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 154, - "stmt_location": 576, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 742, - "rolename": "regression_user", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 731, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 820, - "rolename": "regression_user", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "objects": [ - { - "RangeVar": { - "inh": true, - "location": 807, - "relname": "deptest", - "relpersistence": "p", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "privileges": [ - { - "AccessPriv": { - "priv_name": "trigger", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 77, - "stmt_location": 758, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 847, - "rolename": "regression_user", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 836, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 947, - "rolename": "regression_user2", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "objects": [ - { - "RangeVar": { - "inh": true, - "location": 934, - "relname": "deptest", - "relpersistence": "p", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 100, - "stmt_location": 863, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 975, - "rolename": "regression_user2", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 964, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "newowner": { - "location": 1169, - "rolename": "regression_user3", - "roletype": "ROLESPEC_CSTRING", - }, - "subtype": "AT_ChangeOwner", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 1152, - "relname": "deptest", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 193, - "stmt_location": 992, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 1197, - "rolename": "regression_user3", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 1186, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "deptest", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 73, - "stmt_location": 1214, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 1299, - "rolename": "regression_user3", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 1288, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "role": "regression_user0", - "stmt_type": "ROLESTMT_USER", - }, - }, - "stmt_len": 49, - "stmt_location": 1316, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "role": "regression_user1", - "stmt_type": "ROLESTMT_USER", - }, - }, - "stmt_len": 29, - "stmt_location": 1366, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "role": "regression_user2", - "stmt_type": "ROLESTMT_USER", - }, - }, - "stmt_len": 29, - "stmt_location": 1396, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 1453, - "sval": { - "sval": "regression_user0", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "session_authorization", - }, - }, - "stmt_len": 43, - "stmt_location": 1426, - }, - }, - { - "RawStmt": { - "stmt": { - "DropOwnedStmt": { - "behavior": "DROP_RESTRICT", - "roles": [ - { - "RoleSpec": { - "location": 1506, - "rolename": "regression_user1", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 1470, - }, - }, - { - "RawStmt": { - "stmt": { - "DropOwnedStmt": { - "behavior": "DROP_RESTRICT", - "roles": [ - { - "RoleSpec": { - "location": 1538, - "rolename": "regression_user0", - "roletype": "ROLESPEC_CSTRING", - }, - }, - { - "RoleSpec": { - "location": 1556, - "rolename": "regression_user2", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 49, - "stmt_location": 1523, - }, - }, - { - "RawStmt": { - "stmt": { - "ReassignOwnedStmt": { - "newrole": { - "location": 1612, - "rolename": "regression_user1", - "roletype": "ROLESPEC_CSTRING", - }, - "roles": [ - { - "RoleSpec": { - "location": 1592, - "rolename": "regression_user0", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 55, - "stmt_location": 1573, - }, - }, - { - "RawStmt": { - "stmt": { - "ReassignOwnedStmt": { - "newrole": { - "location": 1668, - "rolename": "regression_user0", - "roletype": "ROLESPEC_CSTRING", - }, - "roles": [ - { - "RoleSpec": { - "location": 1648, - "rolename": "regression_user1", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 55, - "stmt_location": 1629, - }, - }, - { - "RawStmt": { - "stmt": { - "DropOwnedStmt": { - "behavior": "DROP_RESTRICT", - "roles": [ - { - "RoleSpec": { - "location": 1723, - "rolename": "regression_user0", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 1685, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1755, - "relname": "deptest1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_UNIQUE", - "location": 1772, - }, - }, - ], - "is_local": true, - "location": 1765, - "typeName": { - "location": 1768, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 1740, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grant_option": true, - "grantees": [ - { - "RoleSpec": { - "location": 1806, - "rolename": "regression_user1", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "RangeVar": { - "inh": true, - "location": 1794, - "relname": "deptest1", - "relpersistence": "p", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 60, - "stmt_location": 1780, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 1869, - "sval": { - "sval": "regression_user1", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "session_authorization", - }, - }, - "stmt_len": 44, - "stmt_location": 1841, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1900, - "relname": "deptest", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 1918, - }, - }, - ], - "is_local": true, - "location": 1909, - "typeName": { - "location": 1911, - "names": [ - { - "String": { - "sval": "serial", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 1931, - "typeName": { - "location": 1933, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 1886, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 1965, - "rolename": "regression_user2", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "RangeVar": { - "inh": true, - "location": 1953, - "relname": "deptest1", - "relpersistence": "p", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 42, - "stmt_location": 1939, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "session_authorization", - }, - }, - "stmt_len": 28, - "stmt_location": 1982, - }, - }, - { - "RawStmt": { - "stmt": { - "DropOwnedStmt": { - "behavior": "DROP_RESTRICT", - "roles": [ - { - "RoleSpec": { - "location": 2029, - "rolename": "regression_user1", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 2011, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 2143, - "rolename": "regression_user1", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "RangeVar": { - "inh": true, - "location": 2131, - "relname": "deptest1", - "relpersistence": "p", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 113, - "stmt_location": 2046, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 2200, - "rolename": "regression_user1", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "String": { - "sval": "regression", - }, - }, - ], - "objtype": "OBJECT_DATABASE", - "privileges": [ - { - "AccessPriv": { - "priv_name": "create", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 56, - "stmt_location": 2160, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 2245, - "sval": { - "sval": "regression_user1", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "session_authorization", - }, - }, - "stmt_len": 44, - "stmt_location": 2217, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateSchemaStmt": { - "schemaname": "deptest", - }, - }, - "stmt_len": 22, - "stmt_location": 2262, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 2299, - "relname": "deptest", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 2317, - }, - }, - ], - "is_local": true, - "location": 2308, - "typeName": { - "location": 2310, - "names": [ - { - "String": { - "sval": "serial", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 2330, - "typeName": { - "location": 2332, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 2285, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDefaultPrivilegesStmt": { - "action": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 2433, - "rolename": "regression_user2", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objtype": "OBJECT_TABLE", - "targtype": "ACL_TARGET_DEFAULTS", - }, - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "RoleSpec": { - "location": 2373, - "rolename": "regression_user1", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "roles", - "location": 2364, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "deptest", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "schemas", - "location": 2390, - }, - }, - ], - }, - }, - "stmt_len": 111, - "stmt_location": 2338, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "deptest_func", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 2495, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " BEGIN END; ", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 2514, - }, - }, - ], - "returnType": { - "location": 2490, - "names": [ - { - "String": { - "sval": "void", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 83, - "stmt_location": 2450, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateEnumStmt": { - "typeName": [ - { - "String": { - "sval": "deptest_enum", - }, - }, - ], - "vals": [ - { - "String": { - "sval": "red", - }, - }, - ], - }, - }, - "stmt_len": 41, - "stmt_location": 2534, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRangeStmt": { - "params": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2623, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "subtype", - "location": 2613, - }, - }, - ], - "typeName": [ - { - "String": { - "sval": "deptest_range", - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 2576, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 2644, - "relname": "deptest2", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 2654, - "typeName": { - "location": 2657, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 2629, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateSeqStmt": { - "sequence": { - "inh": true, - "location": 2716, - "relname": "ss1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 57, - "stmt_location": 2662, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2771, - "sval": { - "sval": "ss1", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "nextval", - }, - }, - ], - "location": 2763, - }, - }, - "name": "f1", - "subtype": "AT_ColumnDefault", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 2733, - "relname": "deptest2", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 57, - "stmt_location": 2720, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterSeqStmt": { - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "deptest2", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "owned_by", - "location": 2798, - }, - }, - ], - "sequence": { - "inh": true, - "location": 2794, - "relname": "ss1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 40, - "stmt_location": 2778, - }, - }, - { - "RawStmt": { - "stmt": { - "CompositeTypeStmt": { - "coldeflist": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 2933, - "typeName": { - "location": 2935, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "typevar": { - "location": 2919, - "relname": "deptest_t", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 120, - "stmt_location": 2819, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "inh": true, - "location": 2973, - "relname": "pg_type", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typrelid", - }, - }, - ], - "location": 3000, - }, - }, - "location": 3009, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3011, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "c", - }, - "inh": true, - "location": 2986, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2948, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typowner", - }, - }, - ], - "location": 2948, - }, - }, - "location": 2957, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relowner", - }, - }, - ], - "location": 2959, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typname", - }, - }, - ], - "location": 3023, - }, - }, - "location": 3031, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3033, - "sval": { - "sval": "deptest_t", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 104, - "stmt_location": 2940, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "session_authorization", - }, - }, - "stmt_len": 29, - "stmt_location": 3045, - }, - }, - { - "RawStmt": { - "stmt": { - "ReassignOwnedStmt": { - "newrole": { - "location": 3114, - "rolename": "regression_user2", - "roletype": "ROLESPEC_CSTRING", - }, - "roles": [ - { - "RoleSpec": { - "location": 3094, - "rolename": "regression_user1", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 55, - "stmt_location": 3075, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "inh": true, - "location": 3167, - "relname": "pg_type", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typrelid", - }, - }, - ], - "location": 3194, - }, - }, - "location": 3203, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3205, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "c", - }, - "inh": true, - "location": 3180, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3142, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typowner", - }, - }, - ], - "location": 3142, - }, - }, - "location": 3151, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relowner", - }, - }, - ], - "location": 3153, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typname", - }, - }, - ], - "location": 3217, - }, - }, - "location": 3225, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3227, - "sval": { - "sval": "deptest_t", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 107, - "stmt_location": 3131, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 3287, - "rolename": "regression_user1", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 64, - "stmt_location": 3239, - }, - }, - { - "RawStmt": { - "stmt": { - "DropOwnedStmt": { - "behavior": "DROP_RESTRICT", - "roles": [ - { - "RoleSpec": { - "location": 3319, - "rolename": "regression_user1", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 3304, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 3347, - "rolename": "regression_user1", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 3336, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 3378, - "rolename": "regression_user2", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 3364, - }, - }, - { - "RawStmt": { - "stmt": { - "DropOwnedStmt": { - "behavior": "DROP_RESTRICT", - "roles": [ - { - "RoleSpec": { - "location": 3410, - "rolename": "regression_user2", - "roletype": "ROLESPEC_CSTRING", - }, - }, - { - "RoleSpec": { - "location": 3428, - "rolename": "regression_user0", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 49, - "stmt_location": 3395, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 3456, - "rolename": "regression_user2", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 3445, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 3484, - "rolename": "regression_user0", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 3473, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/domain.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "domainname": [ - { - "String": { - "sval": "domaindroptest", - }, - }, - ], - "typeName": { - "location": 76, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 80, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "About to drop this..", - "object": { - "TypeName": { - "location": 100, - "names": [ - { - "String": { - "sval": "domaindroptest", - }, - }, - ], - "typemod": -1, - }, - }, - "objtype": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 59, - "stmt_location": 81, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "domainname": [ - { - "String": { - "sval": "dependenttypetest", - }, - }, - ], - "typeName": { - "location": 175, - "names": [ - { - "String": { - "sval": "domaindroptest", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 48, - "stmt_location": 141, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 238, - "names": [ - { - "String": { - "sval": "domaindroptest", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 62, - "stmt_location": 190, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "TypeName": { - "location": 267, - "names": [ - { - "String": { - "sval": "domaindroptest", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 36, - "stmt_location": 253, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "TypeName": { - "location": 345, - "names": [ - { - "String": { - "sval": "domaindroptest", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 77, - "stmt_location": 290, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "domainname": [ - { - "String": { - "sval": "domainvarchar", - }, - }, - ], - "typeName": { - "location": 555, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 563, - }, - }, - ], - }, - }, - }, - "stmt_len": 197, - "stmt_location": 368, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "domainname": [ - { - "String": { - "sval": "domainnumeric", - }, - }, - ], - "typeName": { - "location": 595, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 8, - }, - "location": 603, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 605, - }, - }, - ], - }, - }, - }, - "stmt_len": 41, - "stmt_location": 566, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "domainname": [ - { - "String": { - "sval": "domainint4", - }, - }, - ], - "typeName": { - "location": 634, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 30, - "stmt_location": 608, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "domainname": [ - { - "String": { - "sval": "domaintext", - }, - }, - ], - "typeName": { - "location": 665, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 30, - "stmt_location": 639, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 746, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 751, - "sval": { - "sval": "123456", - }, - }, - }, - "location": 746, - "typeName": { - "location": 763, - "names": [ - { - "String": { - "sval": "domainvarchar", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 107, - "stmt_location": 670, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 786, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 791, - "sval": { - "sval": "12345", - }, - }, - }, - "location": 786, - "typeName": { - "location": 802, - "names": [ - { - "String": { - "sval": "domainvarchar", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 778, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 861, - "relname": "basictest", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "testint4", - "is_local": true, - "location": 884, - "typeName": { - "location": 893, - "names": [ - { - "String": { - "sval": "domainint4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "testtext", - "is_local": true, - "location": 917, - "typeName": { - "location": 926, - "names": [ - { - "String": { - "sval": "domaintext", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "testvarchar", - "is_local": true, - "location": 950, - "typeName": { - "location": 962, - "names": [ - { - "String": { - "sval": "domainvarchar", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "testnumeric", - "is_local": true, - "location": 989, - "typeName": { - "location": 1001, - "names": [ - { - "String": { - "sval": "domainnumeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 210, - "stmt_location": 817, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1042, - "relname": "basictest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1060, - "sval": { - "sval": "88", - }, - }, - }, - { - "A_Const": { - "location": 1066, - "sval": { - "sval": "haha", - }, - }, - }, - { - "A_Const": { - "location": 1074, - "sval": { - "sval": "short", - }, - }, - }, - { - "A_Const": { - "location": 1083, - "sval": { - "sval": "123.12", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 64, - "stmt_location": 1028, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1119, - "relname": "basictest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1137, - "sval": { - "sval": "88", - }, - }, - }, - { - "A_Const": { - "location": 1143, - "sval": { - "sval": "haha", - }, - }, - }, - { - "A_Const": { - "location": 1151, - "sval": { - "sval": "short text", - }, - }, - }, - { - "A_Const": { - "location": 1165, - "sval": { - "sval": "123.12", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 81, - "stmt_location": 1093, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1203, - "relname": "basictest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1221, - "sval": { - "sval": "88", - }, - }, - }, - { - "A_Const": { - "location": 1227, - "sval": { - "sval": "haha", - }, - }, - }, - { - "A_Const": { - "location": 1235, - "sval": { - "sval": "short", - }, - }, - }, - { - "A_Const": { - "location": 1244, - "sval": { - "sval": "123.1212", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 80, - "stmt_location": 1175, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1322, - "relname": "basictest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1315, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1315, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 75, - "stmt_location": 1256, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1462, - "relname": "basictest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1398, - "name": "concat", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "testtext", - }, - }, - ], - "location": 1398, - }, - }, - "location": 1407, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "testvarchar", - }, - }, - ], - "location": 1410, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1433, - "name": "sum", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "testnumeric", - }, - }, - ], - "location": 1433, - }, - }, - "location": 1445, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 42, - }, - "location": 1447, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 139, - "stmt_location": 1332, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "basictest", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 290, - "stmt_location": 1472, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 1776, - "names": [ - { - "String": { - "sval": "domainvarchar", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 35, - "stmt_location": 1763, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 1812, - "names": [ - { - "String": { - "sval": "domainnumeric", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 35, - "stmt_location": 1799, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 1848, - "names": [ - { - "String": { - "sval": "domainint4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 32, - "stmt_location": 1835, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 1881, - "names": [ - { - "String": { - "sval": "domaintext", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 23, - "stmt_location": 1868, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "domainname": [ - { - "String": { - "sval": "domainint4arr", - }, - }, - ], - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": 1, - }, - }, - ], - "location": 1957, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 72, - "stmt_location": 1892, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "domainname": [ - { - "String": { - "sval": "domainchar4arr", - }, - }, - ], - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": 2, - }, - }, - { - "Integer": { - "ival": 3, - }, - }, - ], - "location": 1995, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 2003, - }, - }, - ], - }, - }, - }, - "stmt_len": 46, - "stmt_location": 1965, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 2027, - "relname": "domarrtest", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "testint4arr", - "is_local": true, - "location": 2051, - "typeName": { - "location": 2063, - "names": [ - { - "String": { - "sval": "domainint4arr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "testchar4arr", - "is_local": true, - "location": 2090, - "typeName": { - "location": 2103, - "names": [ - { - "String": { - "sval": "domainchar4arr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 119, - "stmt_location": 2012, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2145, - "relname": "domarrtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 2164, - "sval": { - "sval": "{2,2}", - }, - }, - }, - { - "A_Const": { - "location": 2173, - "sval": { - "sval": "{{"a","b"},{"c","d"}}", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 65, - "stmt_location": 2132, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2211, - "relname": "domarrtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 2230, - "sval": { - "sval": "{{2,2},{2,2}}", - }, - }, - }, - { - "A_Const": { - "location": 2247, - "sval": { - "sval": "{{"a","b"}}", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 63, - "stmt_location": 2198, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2275, - "relname": "domarrtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 2294, - "sval": { - "sval": "{2,2}", - }, - }, - }, - { - "A_Const": { - "location": 2303, - "sval": { - "sval": "{{"a","b"},{"c","d"},{"e","f"}}", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 75, - "stmt_location": 2262, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2351, - "relname": "domarrtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 2370, - "sval": { - "sval": "{2,2}", - }, - }, - }, - { - "A_Const": { - "location": 2379, - "sval": { - "sval": "{{"a"},{"c"}}", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 57, - "stmt_location": 2338, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2409, - "relname": "domarrtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 2428, - }, - }, - { - "A_Const": { - "location": 2434, - "sval": { - "sval": "{{"a","b","c"},{"d","e","f"}}", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 70, - "stmt_location": 2396, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2480, - "relname": "domarrtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 2499, - }, - }, - { - "A_Const": { - "location": 2505, - "sval": { - "sval": "{{"toolong","b","c"},{"d","e","f"}}", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 76, - "stmt_location": 2467, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2559, - "relname": "domarrtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2552, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2552, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 2544, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2617, - "relname": "domarrtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2578, - "val": { - "A_Indirection": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "testint4arr", - }, - }, - ], - "location": 2578, - }, - }, - "indirection": [ - { - "A_Indices": { - "uidx": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2590, - }, - }, - }, - }, - ], - }, - }, - }, - }, - { - "ResTarget": { - "location": 2594, - "val": { - "A_Indirection": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "testchar4arr", - }, - }, - ], - "location": 2594, - }, - }, - "indirection": [ - { - "A_Indices": { - "is_slice": true, - "lidx": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2607, - }, - }, - "uidx": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2609, - }, - }, - }, - }, - ], - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 2570, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2691, - "relname": "domarrtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2636, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "testint4arr", - }, - }, - ], - "location": 2647, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_dims", - }, - }, - ], - "location": 2636, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2661, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "testchar4arr", - }, - }, - ], - "location": 2672, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_dims", - }, - }, - ], - "location": 2661, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 2628, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2734, - "relname": "domarrtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2727, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2727, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 2702, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "domarrtest", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 23, - "stmt_location": 2745, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 2782, - "names": [ - { - "String": { - "sval": "domainint4arr", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 35, - "stmt_location": 2769, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 2818, - "names": [ - { - "String": { - "sval": "domainchar4arr", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 36, - "stmt_location": 2805, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "domainname": [ - { - "String": { - "sval": "dia", - }, - }, - ], - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 2865, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 28, - "stmt_location": 2842, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2879, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2879, - "sval": { - "sval": "{1,2,3}", - }, - }, - }, - "location": 2888, - "typeName": { - "location": 2890, - "names": [ - { - "String": { - "sval": "dia", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 2871, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2902, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2913, - "sval": { - "sval": "{1,2,3}", - }, - }, - }, - "location": 2922, - "typeName": { - "location": 2924, - "names": [ - { - "String": { - "sval": "dia", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_dims", - }, - }, - ], - "location": 2902, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 2894, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2937, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2947, - "sval": { - "sval": "{1,2,3}", - }, - }, - }, - "location": 2956, - "typeName": { - "location": 2958, - "names": [ - { - "String": { - "sval": "dia", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_typeof", - }, - }, - ], - "location": 2937, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 2929, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2971, - "val": { - "FuncCall": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2981, - "sval": { - "sval": "{1,2,3}", - }, - }, - }, - "location": 2990, - "typeName": { - "location": 2992, - "names": [ - { - "String": { - "sval": "dia", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2996, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 42, - }, - "location": 2999, - }, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_typeof", - }, - }, - ], - "location": 2971, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 2963, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 3043, - "names": [ - { - "String": { - "sval": "dia", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 43, - "stmt_location": 3003, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 3084, - }, - }, - ], - "domainname": [ - { - "String": { - "sval": "dnotnull", - }, - }, - ], - "typeName": { - "location": 3072, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 15, - }, - "location": 3080, - }, - }, - ], - }, - }, - }, - "stmt_len": 45, - "stmt_location": 3047, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "domainname": [ - { - "String": { - "sval": "dnull", - }, - }, - ], - "typeName": { - "location": 3117, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 15, - }, - "location": 3125, - }, - }, - ], - }, - }, - }, - "stmt_len": 35, - "stmt_location": 3093, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 3165, - }, - }, - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 3174, - "raw_expr": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 3181, - }, - }, - "location": 3187, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3189, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 3196, - }, - }, - "location": 3202, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3204, - "sval": { - "sval": "c", - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 3211, - }, - }, - "location": 3217, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3219, - "sval": { - "sval": "d", - }, - }, - }, - }, - }, - ], - "boolop": "OR_EXPR", - "location": 3193, - }, - }, - }, - }, - ], - "domainname": [ - { - "String": { - "sval": "dcheck", - }, - }, - ], - "typeName": { - "location": 3153, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 15, - }, - "location": 3161, - }, - }, - ], - }, - }, - }, - "stmt_len": 94, - "stmt_location": 3129, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 3239, - "relname": "nulltest", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "col1", - "is_local": true, - "location": 3261, - "typeName": { - "location": 3266, - "names": [ - { - "String": { - "sval": "dnotnull", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "col2", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NULL", - "location": 3302, - }, - }, - ], - "is_local": true, - "location": 3288, - "typeName": { - "location": 3293, - "names": [ - { - "String": { - "sval": "dnotnull", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "col3", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 3382, - }, - }, - ], - "is_local": true, - "location": 3368, - "typeName": { - "location": 3373, - "names": [ - { - "String": { - "sval": "dnull", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "col4", - "is_local": true, - "location": 3404, - "typeName": { - "location": 3409, - "names": [ - { - "String": { - "sval": "dnull", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "col5", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 3440, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col5", - }, - }, - ], - "location": 3447, - }, - }, - "location": 3452, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 3456, - "sval": { - "sval": "c", - }, - }, - }, - { - "A_Const": { - "location": 3461, - "sval": { - "sval": "d", - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 3428, - "typeName": { - "location": 3433, - "names": [ - { - "String": { - "sval": "dcheck", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 255, - "stmt_location": 3224, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3493, - "relname": "nulltest", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 36, - "stmt_location": 3480, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3530, - "relname": "nulltest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 3547, - "sval": { - "sval": "a", - }, - }, - }, - { - "A_Const": { - "location": 3552, - "sval": { - "sval": "b", - }, - }, - }, - { - "A_Const": { - "location": 3557, - "sval": { - "sval": "c", - }, - }, - }, - { - "A_Const": { - "location": 3562, - "sval": { - "sval": "d", - }, - }, - }, - { - "A_Const": { - "location": 3567, - "sval": { - "sval": "c", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 3517, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3594, - "relname": "nulltest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 3611, - "sval": { - "sval": "a", - }, - }, - }, - { - "A_Const": { - "location": 3616, - "sval": { - "sval": "b", - }, - }, - }, - { - "A_Const": { - "location": 3621, - "sval": { - "sval": "c", - }, - }, - }, - { - "A_Const": { - "location": 3626, - "sval": { - "sval": "d", - }, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 3631, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 64, - "stmt_location": 3572, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3650, - "relname": "nulltest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 3667, - "sval": { - "sval": "a", - }, - }, - }, - { - "A_Const": { - "location": 3672, - "sval": { - "sval": "b", - }, - }, - }, - { - "A_Const": { - "location": 3677, - "sval": { - "sval": "c", - }, - }, - }, - { - "A_Const": { - "location": 3682, - "sval": { - "sval": "d", - }, - }, - }, - { - "A_Const": { - "location": 3687, - "sval": { - "sval": "a", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 3637, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3705, - "relname": "nulltest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 3722, - }, - }, - { - "A_Const": { - "location": 3728, - "sval": { - "sval": "b", - }, - }, - }, - { - "A_Const": { - "location": 3733, - "sval": { - "sval": "c", - }, - }, - }, - { - "A_Const": { - "location": 3738, - "sval": { - "sval": "d", - }, - }, - }, - { - "A_Const": { - "location": 3743, - "sval": { - "sval": "d", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 55, - "stmt_location": 3692, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3761, - "relname": "nulltest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 3778, - "sval": { - "sval": "a", - }, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 3783, - }, - }, - { - "A_Const": { - "location": 3789, - "sval": { - "sval": "c", - }, - }, - }, - { - "A_Const": { - "location": 3794, - "sval": { - "sval": "d", - }, - }, - }, - { - "A_Const": { - "location": 3799, - "sval": { - "sval": "c", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 55, - "stmt_location": 3748, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3817, - "relname": "nulltest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 3834, - "sval": { - "sval": "a", - }, - }, - }, - { - "A_Const": { - "location": 3839, - "sval": { - "sval": "b", - }, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 3844, - }, - }, - { - "A_Const": { - "location": 3850, - "sval": { - "sval": "d", - }, - }, - }, - { - "A_Const": { - "location": 3855, - "sval": { - "sval": "c", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 55, - "stmt_location": 3804, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3873, - "relname": "nulltest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 3890, - "sval": { - "sval": "a", - }, - }, - }, - { - "A_Const": { - "location": 3895, - "sval": { - "sval": "b", - }, - }, - }, - { - "A_Const": { - "location": 3900, - "sval": { - "sval": "c", - }, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 3905, - }, - }, - { - "A_Const": { - "location": 3911, - "sval": { - "sval": "d", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 55, - "stmt_location": 3860, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3997, - "relname": "nulltest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3990, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3990, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 89, - "stmt_location": 3916, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4056, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4061, - "sval": { - "sval": "1", - }, - }, - }, - "location": 4056, - "typeName": { - "location": 4068, - "names": [ - { - "String": { - "sval": "dnotnull", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 71, - "stmt_location": 4006, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4086, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "isnull": true, - "location": 4091, - }, - }, - "location": 4086, - "typeName": { - "location": 4099, - "names": [ - { - "String": { - "sval": "dnotnull", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 4078, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4125, - "val": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "A_Const": { - "isnull": true, - "location": 4135, - }, - }, - "location": 4130, - "typeName": { - "location": 4143, - "names": [ - { - "String": { - "sval": "dnull", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4125, - "typeName": { - "location": 4153, - "names": [ - { - "String": { - "sval": "dnotnull", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 4109, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4207, - "relname": "nulltest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4179, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col4", - }, - }, - ], - "location": 4184, - }, - }, - "location": 4179, - "typeName": { - "location": 4192, - "names": [ - { - "String": { - "sval": "dnotnull", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 4163, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "nulltest", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 40, - "stmt_location": 4216, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 4270, - "names": [ - { - "String": { - "sval": "dnotnull", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 30, - "stmt_location": 4257, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 4301, - "names": [ - { - "String": { - "sval": "dnull", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 27, - "stmt_location": 4288, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 4329, - "names": [ - { - "String": { - "sval": "dcheck", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 28, - "stmt_location": 4316, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 4373, - "raw_expr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 4381, - }, - }, - }, - }, - ], - "domainname": [ - { - "String": { - "sval": "ddef1", - }, - }, - ], - "typeName": { - "location": 4368, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 37, - "stmt_location": 4345, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 4408, - "raw_expr": { - "A_Const": { - "location": 4416, - "sval": { - "sval": "12", - }, - }, - }, - }, - }, - ], - "domainname": [ - { - "String": { - "sval": "ddef2", - }, - }, - ], - "typeName": { - "location": 4404, - "names": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 37, - "stmt_location": 4383, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 4485, - "raw_expr": { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 4493, - }, - }, - }, - }, - ], - "domainname": [ - { - "String": { - "sval": "ddef3", - }, - }, - ], - "typeName": { - "location": 4480, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 73, - "stmt_location": 4421, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateSeqStmt": { - "sequence": { - "inh": true, - "location": 4512, - "relname": "ddef4_seq", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 26, - "stmt_location": 4495, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 4548, - "raw_expr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 4564, - "sval": { - "sval": "ddef4_seq", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "nextval", - }, - }, - ], - "location": 4556, - }, - }, - }, - }, - ], - "domainname": [ - { - "String": { - "sval": "ddef4", - }, - }, - ], - "typeName": { - "location": 4543, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 4522, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 4611, - }, - }, - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 4620, - "raw_expr": { - "A_Const": { - "location": 4628, - "sval": { - "sval": "12.12", - }, - }, - }, - }, - }, - ], - "domainname": [ - { - "String": { - "sval": "ddef5", - }, - }, - ], - "typeName": { - "location": 4598, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 8, - }, - "location": 4606, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4608, - }, - }, - ], - }, - }, - }, - "stmt_len": 58, - "stmt_location": 4577, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 4651, - "relname": "defaulttest", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "col1", - "is_local": true, - "location": 4677, - "typeName": { - "location": 4682, - "names": [ - { - "String": { - "sval": "ddef1", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "col2", - "is_local": true, - "location": 4702, - "typeName": { - "location": 4707, - "names": [ - { - "String": { - "sval": "ddef2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "col3", - "is_local": true, - "location": 4727, - "typeName": { - "location": 4732, - "names": [ - { - "String": { - "sval": "ddef3", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "col4", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 4763, - }, - }, - ], - "is_local": true, - "location": 4752, - "typeName": { - "location": 4757, - "names": [ - { - "String": { - "sval": "ddef4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "col5", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 4800, - }, - }, - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 4809, - "raw_expr": { - "A_Const": { - "isnull": true, - "location": 4817, - }, - }, - }, - }, - ], - "is_local": true, - "location": 4789, - "typeName": { - "location": 4794, - "names": [ - { - "String": { - "sval": "ddef1", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "col6", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 4847, - "raw_expr": { - "A_Const": { - "location": 4855, - "sval": { - "sval": "88", - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 4836, - "typeName": { - "location": 4841, - "names": [ - { - "String": { - "sval": "ddef2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "col7", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 4885, - "raw_expr": { - "A_Const": { - "ival": { - "ival": 8000, - }, - "location": 4893, - }, - }, - }, - }, - ], - "is_local": true, - "location": 4874, - "typeName": { - "location": 4879, - "names": [ - { - "String": { - "sval": "ddef4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "col8", - "is_local": true, - "location": 4912, - "typeName": { - "location": 4917, - "names": [ - { - "String": { - "sval": "ddef5", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 300, - "stmt_location": 4636, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 4962, - "name": "col4", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4950, - "relname": "defaulttest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 4975, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 40, - "stmt_location": 4937, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "col5", - "subtype": "AT_ColumnDefault", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 5023, - "relname": "defaulttest", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 87, - "stmt_location": 4978, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5079, - "relname": "defaulttest", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 39, - "stmt_location": 5066, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "A_Const": { - "isnull": true, - "location": 5271, - }, - }, - "name": "col5", - "subtype": "AT_ColumnDefault", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 5229, - "relname": "defaulttest", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 169, - "stmt_location": 5106, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 5301, - "name": "col4", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5289, - "relname": "defaulttest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 5314, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 40, - "stmt_location": 5276, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "col5", - "subtype": "AT_ColumnDefault", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 5339, - "relname": "defaulttest", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 64, - "stmt_location": 5317, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5395, - "relname": "defaulttest", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 39, - "stmt_location": 5382, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5435, - "relname": "defaulttest", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 39, - "stmt_location": 5422, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5512, - "relname": "defaulttest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5505, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 5505, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 5462, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "defaulttest", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 32, - "stmt_location": 5524, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "domainname": [ - { - "String": { - "sval": "dnotnulltest", - }, - }, - ], - "typeName": { - "location": 5619, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 69, - "stmt_location": 5557, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 5641, - "relname": "domnotnull", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "col1", - "is_local": true, - "location": 5654, - "typeName": { - "location": 5659, - "names": [ - { - "String": { - "sval": "dnotnulltest", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "col2", - "is_local": true, - "location": 5674, - "typeName": { - "location": 5679, - "names": [ - { - "String": { - "sval": "dnotnulltest", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 66, - "stmt_location": 5627, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5708, - "relname": "domnotnull", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 39, - "stmt_location": 5694, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "subtype": "O", - "typeName": [ - { - "String": { - "sval": "dnotnulltest", - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 5734, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 5792, - "relname": "domnotnull", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 5807, - "name": "col1", - "val": { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 5814, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 41, - "stmt_location": 5774, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "subtype": "O", - "typeName": [ - { - "String": { - "sval": "dnotnulltest", - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 5816, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 5874, - "relname": "domnotnull", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 5889, - "name": "col2", - "val": { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 5896, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 41, - "stmt_location": 5856, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "subtype": "O", - "typeName": [ - { - "String": { - "sval": "dnotnulltest", - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 5898, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 5948, - "relname": "domnotnull", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 5963, - "name": "col1", - "val": { - "A_Const": { - "isnull": true, - "location": 5970, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 5939, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "subtype": "N", - "typeName": [ - { - "String": { - "sval": "dnotnulltest", - }, - }, - ], - }, - }, - "stmt_len": 50, - "stmt_location": 5975, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 6035, - "relname": "domnotnull", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 6050, - "name": "col1", - "val": { - "A_Const": { - "isnull": true, - "location": 6057, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 6026, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "TypeName": { - "location": 6076, - "names": [ - { - "String": { - "sval": "dnotnulltest", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 34, - "stmt_location": 6062, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 6147, - "relname": "domdeftest", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "col1", - "is_local": true, - "location": 6159, - "typeName": { - "location": 6164, - "names": [ - { - "String": { - "sval": "ddef1", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 6097, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 6185, - "relname": "domdeftest", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 39, - "stmt_location": 6171, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6226, - "relname": "domdeftest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6219, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 6219, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 6211, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "def": { - "A_Const": { - "location": 6270, - "sval": { - "sval": "42", - }, - }, - }, - "subtype": "T", - "typeName": [ - { - "String": { - "sval": "ddef1", - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 6237, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 6288, - "relname": "domdeftest", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 38, - "stmt_location": 6275, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6329, - "relname": "domdeftest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6322, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 6322, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 6314, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "subtype": "T", - "typeName": [ - { - "String": { - "sval": "ddef1", - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 6340, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 6387, - "relname": "domdeftest", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 38, - "stmt_location": 6374, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6428, - "relname": "domdeftest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6421, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 6421, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 6413, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "domdeftest", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 23, - "stmt_location": 6439, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "domainname": [ - { - "String": { - "sval": "con", - }, - }, - ], - "typeName": { - "location": 6524, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 68, - "stmt_location": 6463, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 6546, - "relname": "domcontest", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "col1", - "is_local": true, - "location": 6558, - "typeName": { - "location": 6563, - "names": [ - { - "String": { - "sval": "con", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 6532, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 6582, - "relname": "domcontest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6601, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 35, - "stmt_location": 6568, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 6617, - "relname": "domcontest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6636, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 34, - "stmt_location": 6604, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "t", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 6661, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 6681, - }, - }, - "location": 6687, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6689, - }, - }, - }, - }, - }, - }, - "subtype": "C", - "typeName": [ - { - "String": { - "sval": "con", - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 6639, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "t", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 6724, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 6744, - }, - }, - "location": 6750, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 34, - }, - "location": 6752, - }, - }, - }, - }, - }, - }, - "subtype": "C", - "typeName": [ - { - "String": { - "sval": "con", - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 6692, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 6778, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 6785, - }, - }, - "location": 6791, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 6793, - }, - }, - }, - }, - }, - }, - "subtype": "C", - "typeName": [ - { - "String": { - "sval": "con", - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 6756, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 6810, - "relname": "domcontest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": -5, - }, - "location": 6829, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 36, - "stmt_location": 6796, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 6855, - "relname": "domcontest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 42, - }, - "location": 6874, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 44, - "stmt_location": 6833, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 6900, - "relname": "domcontest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 6919, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 6878, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "name": "t", - "subtype": "X", - "typeName": [ - { - "String": { - "sval": "con", - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 6922, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 6972, - "relname": "domcontest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": -5, - }, - "location": 6991, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 35, - "stmt_location": 6959, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 7016, - "relname": "domcontest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 42, - }, - "location": 7035, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 6995, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "name": "nonexistent", - "subtype": "X", - "typeName": [ - { - "String": { - "sval": "con", - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 7039, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "name": "nonexistent", - "subtype": "X", - "typeName": [ - { - "String": { - "sval": "con", - }, - }, - ], - }, - }, - "stmt_len": 55, - "stmt_location": 7086, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "domainname": [ - { - "String": { - "sval": "things", - }, - }, - ], - "typeName": { - "location": 7216, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 77, - "stmt_location": 7142, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 7234, - "relname": "thethings", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "stuff", - "is_local": true, - "location": 7245, - "typeName": { - "location": 7251, - "names": [ - { - "String": { - "sval": "things", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 7220, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 7283, - "name": "stuff", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 7272, - "relname": "thethings", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 55, - }, - "location": 7298, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 7259, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "meow", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 7327, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 7350, - }, - }, - "location": 7356, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 11, - }, - "location": 7358, - }, - }, - }, - }, - }, - }, - "subtype": "C", - "typeName": [ - { - "String": { - "sval": "things", - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 7302, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "meow", - "contype": "CONSTR_CHECK", - "location": 7387, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 7410, - }, - }, - "location": 7416, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 11, - }, - "location": 7418, - }, - }, - }, - }, - "skip_validation": true, - }, - }, - "subtype": "C", - "typeName": [ - { - "String": { - "sval": "things", - }, - }, - ], - }, - }, - "stmt_len": 69, - "stmt_location": 7362, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "name": "meow", - "subtype": "V", - "typeName": [ - { - "String": { - "sval": "things", - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 7432, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 7486, - "relname": "thethings", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 7500, - "name": "stuff", - "val": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 7508, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 7478, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "name": "meow", - "subtype": "V", - "typeName": [ - { - "String": { - "sval": "things", - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 7511, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 7608, - "relname": "domtab", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "col1", - "is_local": true, - "location": 7616, - "typeName": { - "location": 7621, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 72, - "stmt_location": 7557, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "domainname": [ - { - "String": { - "sval": "dom", - }, - }, - ], - "typeName": { - "location": 7652, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 29, - "stmt_location": 7630, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7714, - "relname": "domtab", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7691, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col1", - }, - }, - ], - "location": 7696, - }, - }, - "location": 7691, - "typeName": { - "location": 7704, - "names": [ - { - "String": { - "sval": "dom", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 7673, - "relname": "domview", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 60, - "stmt_location": 7660, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 7742, - "name": "col1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 7734, - "relname": "domtab", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 7756, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 40, - "stmt_location": 7721, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 7783, - "name": "col1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 7775, - "relname": "domtab", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 7797, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 37, - "stmt_location": 7762, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7815, - "relname": "domview", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7808, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 7808, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 7800, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "subtype": "O", - "typeName": [ - { - "String": { - "sval": "dom", - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 7823, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7870, - "relname": "domview", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7863, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 7863, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 7855, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "subtype": "N", - "typeName": [ - { - "String": { - "sval": "dom", - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 7878, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7934, - "relname": "domview", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7927, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 7927, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 7919, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "domchkgt6", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 7965, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 7992, - }, - }, - "location": 7998, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 8000, - }, - }, - }, - }, - }, - }, - "subtype": "C", - "typeName": [ - { - "String": { - "sval": "dom", - }, - }, - ], - }, - }, - "stmt_len": 60, - "stmt_location": 7942, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8018, - "relname": "domview", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8011, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 8011, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 8003, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "name": "domchkgt6", - "subtype": "X", - "typeName": [ - { - "String": { - "sval": "dom", - }, - }, - ], - }, - }, - "stmt_len": 60, - "stmt_location": 8026, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8102, - "relname": "domview", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8095, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 8095, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 8087, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 8135, - "names": [ - { - "String": { - "sval": "ddef1", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 39, - "stmt_location": 8110, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 8163, - "names": [ - { - "String": { - "sval": "ddef2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 27, - "stmt_location": 8150, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 8191, - "names": [ - { - "String": { - "sval": "ddef3", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 27, - "stmt_location": 8178, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 8219, - "names": [ - { - "String": { - "sval": "ddef4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 27, - "stmt_location": 8206, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 8247, - "names": [ - { - "String": { - "sval": "ddef5", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 27, - "stmt_location": 8234, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "ddef4_seq", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_SEQUENCE", - }, - }, - "stmt_len": 24, - "stmt_location": 8262, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "domainname": [ - { - "String": { - "sval": "vchar4", - }, - }, - ], - "typeName": { - "location": 8339, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 8347, - }, - }, - ], - }, - }, - }, - "stmt_len": 62, - "stmt_location": 8287, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 8379, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 8396, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 8403, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 8406, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "substring", - }, - }, - ], - "location": 8386, - }, - }, - "location": 8409, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 8411, - "sval": { - "sval": "x", - }, - }, - }, - }, - }, - }, - }, - ], - "domainname": [ - { - "String": { - "sval": "dinter", - }, - }, - ], - "typeName": { - "location": 8372, - "names": [ - { - "String": { - "sval": "vchar4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 65, - "stmt_location": 8350, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 8443, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 8460, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 8467, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 8470, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "substring", - }, - }, - ], - "location": 8450, - }, - }, - "location": 8473, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 8475, - "sval": { - "sval": "1", - }, - }, - }, - }, - }, - }, - }, - ], - "domainname": [ - { - "String": { - "sval": "dtop", - }, - }, - ], - "typeName": { - "location": 8436, - "names": [ - { - "String": { - "sval": "dinter", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 63, - "stmt_location": 8416, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8489, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8489, - "sval": { - "sval": "x123", - }, - }, - }, - "location": 8495, - "typeName": { - "location": 8497, - "names": [ - { - "String": { - "sval": "dtop", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 21, - "stmt_location": 8480, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8510, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8510, - "sval": { - "sval": "x1234", - }, - }, - }, - "location": 8517, - "typeName": { - "location": 8519, - "names": [ - { - "String": { - "sval": "dtop", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 21, - "stmt_location": 8502, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8569, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8569, - "sval": { - "sval": "y1234", - }, - }, - }, - "location": 8576, - "typeName": { - "location": 8578, - "names": [ - { - "String": { - "sval": "dtop", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 58, - "stmt_location": 8524, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8599, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8599, - "sval": { - "sval": "y123", - }, - }, - }, - "location": 8605, - "typeName": { - "location": 8607, - "names": [ - { - "String": { - "sval": "dtop", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 8583, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8628, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8628, - "sval": { - "sval": "yz23", - }, - }, - }, - "location": 8634, - "typeName": { - "location": 8636, - "names": [ - { - "String": { - "sval": "dtop", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 8612, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8657, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8657, - "sval": { - "sval": "xz23", - }, - }, - }, - "location": 8663, - "typeName": { - "location": 8665, - "names": [ - { - "String": { - "sval": "dtop", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 8641, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 8698, - "relname": "dtest", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 8704, - "typeName": { - "location": 8707, - "names": [ - { - "String": { - "sval": "dtop", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 8670, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 8727, - "relname": "dtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 8740, - "sval": { - "sval": "x123", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 34, - "stmt_location": 8713, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 8761, - "relname": "dtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 8774, - "sval": { - "sval": "x1234", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 34, - "stmt_location": 8748, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 8823, - "relname": "dtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 8836, - "sval": { - "sval": "y1234", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 61, - "stmt_location": 8783, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 8885, - "relname": "dtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 8898, - "sval": { - "sval": "y123", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 60, - "stmt_location": 8845, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 8927, - "relname": "dtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 8940, - "sval": { - "sval": "yz23", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 41, - "stmt_location": 8906, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 8969, - "relname": "dtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 8982, - "sval": { - "sval": "xz23", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 41, - "stmt_location": 8948, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "dtest", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 26, - "stmt_location": 8990, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "TypeName": { - "location": 9030, - "names": [ - { - "String": { - "sval": "vchar4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 27, - "stmt_location": 9017, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 9237, - }, - }, - ], - "domainname": [ - { - "String": { - "sval": "str_domain", - }, - }, - ], - "typeName": { - "location": 9232, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 200, - "stmt_location": 9045, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 9261, - "relname": "domain_test", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 9274, - "typeName": { - "location": 9276, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 9281, - "typeName": { - "location": 9283, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 41, - "stmt_location": 9246, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 9302, - "relname": "domain_test", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 9322, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 9325, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 39, - "stmt_location": 9288, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 9341, - "relname": "domain_test", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 9361, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 9364, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 38, - "stmt_location": 9328, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "c", - "is_local": true, - "location": 9419, - "typeName": { - "location": 9421, - "names": [ - { - "String": { - "sval": "str_domain", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 9396, - "relname": "domain_test", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 64, - "stmt_location": 9367, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 9468, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 9475, - }, - }, - "location": 9481, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 9484, - "sval": { - "sval": "foo", - }, - }, - }, - }, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 9491, - "raw_expr": { - "A_Const": { - "location": 9499, - "sval": { - "sval": "foo", - }, - }, - }, - }, - }, - ], - "domainname": [ - { - "String": { - "sval": "str_domain2", - }, - }, - ], - "typeName": { - "location": 9463, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 72, - "stmt_location": 9432, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "d", - "is_local": true, - "location": 9557, - "typeName": { - "location": 9559, - "names": [ - { - "String": { - "sval": "str_domain2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 9534, - "relname": "domain_test", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 65, - "stmt_location": 9505, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 9712, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 9719, - }, - }, - "location": 9725, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 9727, - }, - }, - }, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 9730, - }, - }, - ], - "domainname": [ - { - "String": { - "sval": "pos_int", - }, - }, - ], - "typeName": { - "location": 9707, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 167, - "stmt_location": 9571, - }, - }, - { - "RawStmt": { - "stmt": { - "PrepareStmt": { - "name": "s1", - "query": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9761, - "name": "is_ten", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "ParamRef": { - "location": 9761, - "number": 1, - }, - }, - "location": 9763, - "typeName": { - "location": 9765, - "names": [ - { - "String": { - "sval": "pos_int", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 9773, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 9775, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 50, - "stmt_location": 9739, - }, - }, - { - "RawStmt": { - "stmt": { - "ExecuteStmt": { - "name": "s1", - "params": [ - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 9803, - }, - }, - ], - }, - }, - "stmt_len": 16, - "stmt_location": 9790, - }, - }, - { - "RawStmt": { - "stmt": { - "ExecuteStmt": { - "name": "s1", - "params": [ - { - "A_Const": { - "ival": {}, - "location": 9819, - }, - }, - ], - }, - }, - "stmt_len": 14, - "stmt_location": 9807, - }, - }, - { - "RawStmt": { - "stmt": { - "ExecuteStmt": { - "name": "s1", - "params": [ - { - "A_Const": { - "isnull": true, - "location": 9849, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 9822, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "doubledecrement", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -declare v pos_int; -begin - return p1; -end", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 10054, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 10106, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 10029, - "names": [ - { - "String": { - "sval": "pos_int", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "p1", - }, - }, - ], - "returnType": { - "location": 10046, - "names": [ - { - "String": { - "sval": "pos_int", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 267, - "stmt_location": 9855, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10132, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 10148, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "doubledecrement", - }, - }, - ], - "location": 10132, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 10123, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "doubledecrement", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -declare v pos_int := 0; -begin - return p1; -end", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 10268, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 10325, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 10243, - "names": [ - { - "String": { - "sval": "pos_int", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "p1", - }, - }, - ], - "replace": true, - "returnType": { - "location": 10260, - "names": [ - { - "String": { - "sval": "pos_int", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 190, - "stmt_location": 10151, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10351, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 10367, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "doubledecrement", - }, - }, - ], - "location": 10351, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 10342, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "doubledecrement", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -declare v pos_int := 1; -begin - v := p1 - 1; - return v - 1; -end", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 10480, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 10557, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 10455, - "names": [ - { - "String": { - "sval": "pos_int", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "p1", - }, - }, - ], - "replace": true, - "returnType": { - "location": 10472, - "names": [ - { - "String": { - "sval": "pos_int", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 203, - "stmt_location": 10370, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10583, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "isnull": true, - "location": 10599, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "doubledecrement", - }, - }, - ], - "location": 10583, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 10574, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10633, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": {}, - "location": 10649, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "doubledecrement", - }, - }, - ], - "location": 10633, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 10605, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10680, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10696, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "doubledecrement", - }, - }, - ], - "location": 10680, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 10652, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10734, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 10750, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "doubledecrement", - }, - }, - ], - "location": 10734, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 10699, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10779, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 10795, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "doubledecrement", - }, - }, - ], - "location": 10779, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 10753, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "domainname": [ - { - "String": { - "sval": "posint", - }, - }, - ], - "typeName": { - "location": 10891, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 97, - "stmt_location": 10798, - }, - }, - { - "RawStmt": { - "stmt": { - "CompositeTypeStmt": { - "coldeflist": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 10999, - "typeName": { - "location": 11002, - "names": [ - { - "String": { - "sval": "posint", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "typevar": { - "location": 10987, - "relname": "ddtest1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 113, - "stmt_location": 10896, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 11024, - "relname": "ddtest2", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 11032, - "typeName": { - "location": 11035, - "names": [ - { - "String": { - "sval": "ddtest1", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 11010, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 11057, - "relname": "ddtest2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "RowExpr": { - "args": [ - { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 11076, - }, - }, - ], - "location": 11072, - "row_format": "COERCE_EXPLICIT_CALL", - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 36, - "stmt_location": 11044, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "c1", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 11106, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 11126, - }, - }, - "location": 11132, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 11135, - }, - }, - }, - }, - }, - }, - "subtype": "C", - "typeName": [ - { - "String": { - "sval": "posint", - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 11081, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "ddtest2", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 19, - "stmt_location": 11138, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 11173, - "relname": "ddtest2", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 11181, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 11184, - "names": [ - { - "String": { - "sval": "ddtest1", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 11158, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 11208, - "relname": "ddtest2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 11223, - "sval": { - "sval": "{(-1)}", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 37, - "stmt_location": 11195, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "c1", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 11258, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 11278, - }, - }, - "location": 11284, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 11287, - }, - }, - }, - }, - }, - }, - "subtype": "C", - "typeName": [ - { - "String": { - "sval": "posint", - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 11233, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "ddtest2", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 19, - "stmt_location": 11290, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "c1", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 11336, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 11356, - }, - }, - "location": 11362, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 11365, - }, - }, - }, - }, - }, - }, - "subtype": "C", - "typeName": [ - { - "String": { - "sval": "posint", - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 11310, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 11402, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 11409, - }, - }, - "location": 11415, - "name": [ - { - "String": { - "sval": "%", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11417, - }, - }, - }, - }, - "location": 11419, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 11421, - }, - }, - }, - }, - }, - }, - ], - "domainname": [ - { - "String": { - "sval": "posint2", - }, - }, - ], - "typeName": { - "location": 11395, - "names": [ - { - "String": { - "sval": "posint", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 55, - "stmt_location": 11368, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 11438, - "relname": "ddtest2", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 11446, - "typeName": { - "location": 11449, - "names": [ - { - "String": { - "sval": "posint2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 11424, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 11471, - "relname": "ddtest2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 11, - }, - "location": 11486, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 31, - "stmt_location": 11458, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 11511, - "relname": "ddtest2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": -2, - }, - "location": 11526, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 39, - "stmt_location": 11490, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 11551, - "relname": "ddtest2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11566, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 38, - "stmt_location": 11530, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "c2", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 11595, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 11615, - }, - }, - "location": 11621, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 11624, - }, - }, - }, - }, - }, - }, - "subtype": "C", - "typeName": [ - { - "String": { - "sval": "posint", - }, - }, - ], - }, - }, - "stmt_len": 58, - "stmt_location": 11569, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "c2", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 11661, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 11681, - }, - }, - "location": 11687, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 11689, - }, - }, - }, - }, - }, - }, - "subtype": "C", - "typeName": [ - { - "String": { - "sval": "posint", - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 11628, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "ddtest2", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 26, - "stmt_location": 11692, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 11730, - "names": [ - { - "String": { - "sval": "ddtest1", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_TYPE", - }, - }, - "stmt_len": 18, - "stmt_location": 11719, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "TypeName": { - "location": 11751, - "names": [ - { - "String": { - "sval": "posint", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 27, - "stmt_location": 11738, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "array_elem_check", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -declare - x numeric(4,2)[1]; -begin - x[1] := $1; - return x[1]; -end", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 11913, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 11989, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 11888, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "replace": true, - "returnType": { - "location": 11905, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 239, - "stmt_location": 11766, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12015, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "fval": { - "fval": "121.00", - }, - "location": 12032, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_elem_check", - }, - }, - ], - "location": 12015, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 12006, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12048, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "fval": { - "fval": "1.23456", - }, - "location": 12065, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_elem_check", - }, - }, - ], - "location": 12048, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 12040, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "domainname": [ - { - "String": { - "sval": "mynums", - }, - }, - ], - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": 1, - }, - }, - ], - "location": 12100, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 12108, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 12110, - }, - }, - ], - }, - }, - }, - "stmt_len": 41, - "stmt_location": 12074, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "array_elem_check", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -declare - x mynums; -begin - x[1] := $1; - return x[1]; -end", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 12187, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 12254, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 12162, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "replace": true, - "returnType": { - "location": 12179, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 154, - "stmt_location": 12116, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12280, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "fval": { - "fval": "121.00", - }, - "location": 12297, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_elem_check", - }, - }, - ], - "location": 12280, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 12271, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12313, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "fval": { - "fval": "1.23456", - }, - "location": 12330, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_elem_check", - }, - }, - ], - "location": 12313, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 12305, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "domainname": [ - { - "String": { - "sval": "mynums2", - }, - }, - ], - "typeName": { - "location": 12366, - "names": [ - { - "String": { - "sval": "mynums", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 33, - "stmt_location": 12339, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "array_elem_check", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -declare - x mynums2; -begin - x[1] := $1; - return x[1]; -end", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 12444, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 12512, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 12419, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "replace": true, - "returnType": { - "location": 12436, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 155, - "stmt_location": 12373, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12538, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "fval": { - "fval": "121.00", - }, - "location": 12555, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_elem_check", - }, - }, - ], - "location": 12538, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 12529, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12571, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "fval": { - "fval": "1.23456", - }, - "location": 12588, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_elem_check", - }, - }, - ], - "location": 12571, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 12563, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 12630, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 12630, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "array_elem_check", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 41, - "stmt_location": 12597, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 12739, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Indirection": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 12746, - }, - }, - "indirection": [ - { - "A_Indices": { - "uidx": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 12752, - }, - }, - }, - }, - ], - }, - }, - "location": 12755, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Indirection": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 12757, - }, - }, - "indirection": [ - { - "A_Indices": { - "uidx": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 12763, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - "domainname": [ - { - "String": { - "sval": "orderedpair", - }, - }, - ], - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": 2, - }, - }, - ], - "location": 12732, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 127, - "stmt_location": 12639, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12776, - "val": { - "TypeCast": { - "arg": { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 12782, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 12784, - }, - }, - ], - "location": 12776, - }, - }, - "location": 12786, - "typeName": { - "location": 12788, - "names": [ - { - "String": { - "sval": "orderedpair", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 12767, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12808, - "val": { - "TypeCast": { - "arg": { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 12814, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 12816, - }, - }, - ], - "location": 12808, - }, - }, - "location": 12818, - "typeName": { - "location": 12820, - "names": [ - { - "String": { - "sval": "orderedpair", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 12800, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 12861, - "relname": "op", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 12865, - "typeName": { - "location": 12868, - "names": [ - { - "String": { - "sval": "orderedpair", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 48, - "stmt_location": 12832, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 12894, - "relname": "op", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 12911, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 12913, - }, - }, - ], - "location": 12905, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 35, - "stmt_location": 12881, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 12930, - "relname": "op", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 12947, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 12949, - }, - }, - ], - "location": 12941, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 35, - "stmt_location": 12917, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 12971, - "relname": "op", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "indirection": [ - { - "A_Indices": { - "uidx": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 12981, - }, - }, - }, - }, - ], - "location": 12978, - "name": "f1", - "val": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 12986, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 12953, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 12996, - "relname": "op", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "indirection": [ - { - "A_Indices": { - "uidx": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 13006, - }, - }, - }, - }, - ], - "location": 13003, - "name": "f1", - "val": { - "A_Const": { - "ival": {}, - "location": 13011, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 12988, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 13037, - "relname": "op", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13030, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 13030, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 13013, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "array_elem_check", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -declare - x orderedpair := '{1,2}'; -begin - x[2] := $1; - return x[2]; -end", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 13103, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 13186, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 13086, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "replace": true, - "returnType": { - "location": 13099, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 162, - "stmt_location": 13040, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13212, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 13229, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_elem_check", - }, - }, - ], - "location": 13212, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 13203, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13240, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 13257, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_elem_check", - }, - }, - ], - "location": 13240, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 13232, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 13294, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 13294, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "array_elem_check", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 37, - "stmt_location": 13261, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "domainname": [ - { - "String": { - "sval": "di", - }, - }, - ], - "typeName": { - "location": 13384, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 88, - "stmt_location": 13299, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "dom_check", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -declare d di; -begin - d := $1; - return d; -end -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 13432, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 13488, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "immutable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 13505, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 13416, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 13429, - "names": [ - { - "String": { - "sval": "di", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 126, - "stmt_location": 13388, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13524, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": {}, - "location": 13534, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "dom_check", - }, - }, - ], - "location": 13524, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 21, - "stmt_location": 13515, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "pos", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 13559, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 13581, - }, - }, - "location": 13587, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 13589, - }, - }, - }, - }, - }, - }, - "subtype": "C", - "typeName": [ - { - "String": { - "sval": "di", - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 13537, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13601, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": {}, - "location": 13611, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "dom_check", - }, - }, - ], - "location": 13601, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 21, - "stmt_location": 13592, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "name": "pos", - "subtype": "X", - "typeName": [ - { - "String": { - "sval": "di", - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 13614, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13669, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": {}, - "location": 13679, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "dom_check", - }, - }, - ], - "location": 13669, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 21, - "stmt_location": 13660, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 13708, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 13708, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "dom_check", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 30, - "stmt_location": 13682, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 13727, - "names": [ - { - "String": { - "sval": "di", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 16, - "stmt_location": 13713, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "sql_is_distinct_from", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 13927, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "select $1 is distinct from $2 limit 1", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 13940, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 13887, - "names": [ - { - "String": { - "sval": "anyelement", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 13899, - "names": [ - { - "String": { - "sval": "anyelement", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 13919, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 252, - "stmt_location": 13730, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 14014, - "raw_expr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 14042, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 14049, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sql_is_distinct_from", - }, - }, - ], - "location": 14021, - }, - }, - }, - }, - ], - "domainname": [ - { - "String": { - "sval": "inotnull", - }, - }, - ], - "typeName": { - "location": 14008, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 72, - "stmt_location": 13983, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14065, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 14065, - }, - }, - "location": 14066, - "typeName": { - "location": 14068, - "names": [ - { - "String": { - "sval": "inotnull", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 20, - "stmt_location": 14056, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14085, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "isnull": true, - "location": 14085, - }, - }, - "location": 14089, - "typeName": { - "location": 14091, - "names": [ - { - "String": { - "sval": "inotnull", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 14077, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 14115, - "relname": "dom_table", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "x", - "is_local": true, - "location": 14126, - "typeName": { - "location": 14128, - "names": [ - { - "String": { - "sval": "inotnull", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 14100, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 14151, - "relname": "dom_table", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 14169, - "sval": { - "sval": "1", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 35, - "stmt_location": 14138, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 14187, - "relname": "dom_table", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 14205, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 33, - "stmt_location": 14174, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 14221, - "relname": "dom_table", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 14239, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 36, - "stmt_location": 14208, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "dom_table", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 22, - "stmt_location": 14245, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 14281, - "names": [ - { - "String": { - "sval": "inotnull", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 21, - "stmt_location": 14268, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 14326, - "names": [ - { - "String": { - "sval": "anyelement", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 14338, - "names": [ - { - "String": { - "sval": "anyelement", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 14326, - "names": [ - { - "String": { - "sval": "anyelement", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 14338, - "names": [ - { - "String": { - "sval": "anyelement", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "sql_is_distinct_from", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 59, - "stmt_location": 14290, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "domainname": [ - { - "String": { - "sval": "testdomain1", - }, - }, - ], - "typeName": { - "location": 14400, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 53, - "stmt_location": 14350, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "testdomain2", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "testdomain1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 47, - "stmt_location": 14404, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "testdomain3", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "testdomain2", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_TYPE", - }, - }, - "stmt_len": 45, - "stmt_location": 14452, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 14537, - "names": [ - { - "String": { - "sval": "testdomain3", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 50, - "stmt_location": 14498, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "constraints": [ - { - "Constraint": { - "conname": "unsigned", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 14623, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 14650, - }, - }, - "location": 14656, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 14658, - }, - }, - }, - }, - }, - }, - ], - "domainname": [ - { - "String": { - "sval": "testdomain1", - }, - }, - ], - "typeName": { - "location": 14619, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 111, - "stmt_location": 14549, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "unsigned_foo", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "testdomain1", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_DOMCONSTRAINT", - "subname": "unsigned", - }, - }, - "stmt_len": 68, - "stmt_location": 14661, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDomainStmt": { - "behavior": "DROP_RESTRICT", - "name": "unsigned_foo", - "subtype": "X", - "typeName": [ - { - "String": { - "sval": "testdomain1", - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 14730, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 14798, - "names": [ - { - "String": { - "sval": "testdomain1", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 24, - "stmt_location": 14785, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/drop_if_exists.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 94, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 34, - "stmt_location": 95, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 145, - "relname": "test_exists", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 158, - "typeName": { - "location": 160, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 165, - "typeName": { - "location": 167, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 130, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_view_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_VIEW", - }, - }, - "stmt_len": 37, - "stmt_location": 173, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_view_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_VIEW", - }, - }, - "stmt_len": 38, - "stmt_location": 211, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 298, - "relname": "test_exists", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 291, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 291, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 264, - "relname": "test_view_exists", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 59, - "stmt_location": 250, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_view_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_VIEW", - }, - }, - "stmt_len": 38, - "stmt_location": 310, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_view_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_VIEW", - }, - }, - "stmt_len": 28, - "stmt_location": 349, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_index_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_INDEX", - }, - }, - "stmt_len": 40, - "stmt_location": 378, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_index_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_INDEX", - }, - }, - "stmt_len": 40, - "stmt_location": 419, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "test_index_exists", - "indexParams": [ - { - "IndexElem": { - "name": "a", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 496, - "relname": "test_exists", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 50, - "stmt_location": 460, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_index_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_INDEX", - }, - }, - "stmt_len": 40, - "stmt_location": 511, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_index_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_INDEX", - }, - }, - "stmt_len": 30, - "stmt_location": 552, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_sequence_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_SEQUENCE", - }, - }, - "stmt_len": 49, - "stmt_location": 583, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_sequence_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_SEQUENCE", - }, - }, - "stmt_len": 46, - "stmt_location": 633, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateSeqStmt": { - "sequence": { - "inh": true, - "location": 698, - "relname": "test_sequence_exists", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 38, - "stmt_location": 680, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_sequence_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_SEQUENCE", - }, - }, - "stmt_len": 46, - "stmt_location": 719, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_sequence_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_SEQUENCE", - }, - }, - "stmt_len": 36, - "stmt_location": 766, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "test_schema_exists", - }, - }, - ], - "removeType": "OBJECT_SCHEMA", - }, - }, - "stmt_len": 43, - "stmt_location": 803, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "String": { - "sval": "test_schema_exists", - }, - }, - ], - "removeType": "OBJECT_SCHEMA", - }, - }, - "stmt_len": 42, - "stmt_location": 847, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateSchemaStmt": { - "schemaname": "test_schema_exists", - }, - }, - "stmt_len": 34, - "stmt_location": 890, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "String": { - "sval": "test_schema_exists", - }, - }, - ], - "removeType": "OBJECT_SCHEMA", - }, - }, - "stmt_len": 42, - "stmt_location": 925, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "test_schema_exists", - }, - }, - ], - "removeType": "OBJECT_SCHEMA", - }, - }, - "stmt_len": 32, - "stmt_location": 968, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 1022, - "names": [ - { - "String": { - "sval": "test_type_exists", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_TYPE", - }, - }, - "stmt_len": 37, - "stmt_location": 1001, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "TypeName": { - "location": 1061, - "names": [ - { - "String": { - "sval": "test_type_exists", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_TYPE", - }, - }, - "stmt_len": 38, - "stmt_location": 1039, - }, - }, - { - "RawStmt": { - "stmt": { - "CompositeTypeStmt": { - "coldeflist": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 1113, - "typeName": { - "location": 1115, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 1120, - "typeName": { - "location": 1122, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "typevar": { - "location": 1092, - "relname": "test_type_exists", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 49, - "stmt_location": 1078, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "TypeName": { - "location": 1150, - "names": [ - { - "String": { - "sval": "test_type_exists", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_TYPE", - }, - }, - "stmt_len": 38, - "stmt_location": 1128, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 1179, - "names": [ - { - "String": { - "sval": "test_type_exists", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_TYPE", - }, - }, - "stmt_len": 28, - "stmt_location": 1167, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 1221, - "names": [ - { - "String": { - "sval": "test_domain_exists", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 43, - "stmt_location": 1196, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "TypeName": { - "location": 1264, - "names": [ - { - "String": { - "sval": "test_domain_exists", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 42, - "stmt_location": 1240, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 1325, - }, - }, - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 1334, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 1341, - }, - }, - "location": 1347, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 1349, - }, - }, - }, - }, - }, - }, - ], - "domainname": [ - { - "String": { - "sval": "test_domain_exists", - }, - }, - ], - "typeName": { - "location": 1321, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 68, - "stmt_location": 1283, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "TypeName": { - "location": 1376, - "names": [ - { - "String": { - "sval": "test_domain_exists", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 42, - "stmt_location": 1352, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 1409, - "names": [ - { - "String": { - "sval": "test_domain_exists", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 32, - "stmt_location": 1395, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "role": "tu1", - "stmt_type": "ROLESTMT_USER", - }, - }, - "stmt_len": 46, - "stmt_location": 1428, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "role": "tr1", - "stmt_type": "ROLESTMT_ROLE", - }, - }, - "stmt_len": 16, - "stmt_location": 1475, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "role": "tg1", - "stmt_type": "ROLESTMT_GROUP", - }, - }, - "stmt_len": 17, - "stmt_location": 1492, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 1522, - "rolename": "tu2", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 15, - "stmt_location": 1510, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "missing_ok": true, - "roles": [ - { - "RoleSpec": { - "location": 1548, - "rolename": "tu1", - "roletype": "ROLESPEC_CSTRING", - }, - }, - { - "RoleSpec": { - "location": 1553, - "rolename": "tu2", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 1526, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 1569, - "rolename": "tu1", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 15, - "stmt_location": 1557, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 1585, - "rolename": "tr2", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 15, - "stmt_location": 1573, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "missing_ok": true, - "roles": [ - { - "RoleSpec": { - "location": 1611, - "rolename": "tr1", - "roletype": "ROLESPEC_CSTRING", - }, - }, - { - "RoleSpec": { - "location": 1616, - "rolename": "tr2", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 1589, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 1632, - "rolename": "tr1", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 15, - "stmt_location": 1620, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 1649, - "rolename": "tg2", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 16, - "stmt_location": 1636, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "missing_ok": true, - "roles": [ - { - "RoleSpec": { - "location": 1676, - "rolename": "tg1", - "roletype": "ROLESPEC_CSTRING", - }, - }, - { - "RoleSpec": { - "location": 1681, - "rolename": "tg2", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 1653, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 1698, - "rolename": "tg1", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 16, - "stmt_location": 1685, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_collation_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_COLLATION", - }, - }, - "stmt_len": 61, - "stmt_location": 1702, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_conversion_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_CONVERSION", - }, - }, - "stmt_len": 54, - "stmt_location": 1764, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_conversion_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_CONVERSION", - }, - }, - "stmt_len": 49, - "stmt_location": 1819, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateConversionStmt": { - "conversion_name": [ - { - "String": { - "sval": "test_conversion_exists", - }, - }, - ], - "for_encoding_name": "LATIN1", - "func_name": [ - { - "String": { - "sval": "iso8859_1_to_utf8", - }, - }, - ], - "to_encoding_name": "UTF8", - }, - }, - "stmt_len": 91, - "stmt_location": 1869, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_conversion_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_CONVERSION", - }, - }, - "stmt_len": 39, - "stmt_location": 1961, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_tsparser_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TSPARSER", - }, - }, - "stmt_len": 68, - "stmt_location": 2001, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_tsparser_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TSPARSER", - }, - }, - "stmt_len": 55, - "stmt_location": 2070, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_tsdict_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TSDICTIONARY", - }, - }, - "stmt_len": 74, - "stmt_location": 2126, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_tsdict_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TSDICTIONARY", - }, - }, - "stmt_len": 57, - "stmt_location": 2201, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2328, - "names": [ - { - "String": { - "sval": "ispell", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "template", - "location": 2319, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2353, - "names": [ - { - "String": { - "sval": "ispell_sample", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "dictfile", - "location": 2344, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2384, - "names": [ - { - "String": { - "sval": "ispell_sample", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "afffile", - "location": 2376, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "test_tsdict_exists", - }, - }, - ], - "kind": "OBJECT_TSDICTIONARY", - }, - }, - "stmt_len": 140, - "stmt_location": 2259, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_tsdict_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TSDICTIONARY", - }, - }, - "stmt_len": 47, - "stmt_location": 2400, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_tstemplate_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TSTEMPLATE", - }, - }, - "stmt_len": 74, - "stmt_location": 2448, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_tstemplate_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TSTEMPLATE", - }, - }, - "stmt_len": 59, - "stmt_location": 2523, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_tsconfig_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TSCONFIGURATION", - }, - }, - "stmt_len": 82, - "stmt_location": 2583, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_tsconfig_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TSCONFIGURATION", - }, - }, - "stmt_len": 62, - "stmt_location": 2666, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2790, - "names": [ - { - "String": { - "sval": "english", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "copy", - "location": 2785, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "test_tsconfig_exists", - }, - }, - ], - "kind": "OBJECT_TSCONFIGURATION", - }, - }, - "stmt_len": 69, - "stmt_location": 2729, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_tsconfig_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TSCONFIGURATION", - }, - }, - "stmt_len": 52, - "stmt_location": 2799, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "test_extension_exists", - }, - }, - ], - "removeType": "OBJECT_EXTENSION", - }, - }, - "stmt_len": 51, - "stmt_location": 2852, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "String": { - "sval": "test_extension_exists", - }, - }, - ], - "removeType": "OBJECT_EXTENSION", - }, - }, - "stmt_len": 47, - "stmt_location": 2904, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "ObjectWithArgs": { - "objname": [ - { - "String": { - "sval": "test_function_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 51, - "stmt_location": 2952, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "ObjectWithArgs": { - "objname": [ - { - "String": { - "sval": "test_function_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 47, - "stmt_location": 3004, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 3089, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 3094, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 3100, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 3089, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 3094, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 3100, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "test_function_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 54, - "stmt_location": 3052, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 3153, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 3158, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 3164, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 3153, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 3158, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 3164, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "test_function_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 63, - "stmt_location": 3107, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "ObjectWithArgs": { - "objname": [ - { - "String": { - "sval": "test_aggregate_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 54, - "stmt_location": 3171, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "ObjectWithArgs": { - "objname": [ - { - "String": { - "sval": "test_aggregate_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 50, - "stmt_location": 3226, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 3316, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 3316, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "test_aggregate_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 43, - "stmt_location": 3277, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 3369, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 3369, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "test_aggregate_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 52, - "stmt_location": 3321, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 3407, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 3412, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "@#@", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 42, - "stmt_location": 3374, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 3447, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 3452, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "@#@", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 39, - "stmt_location": 3417, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 3497, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leftarg", - "location": 3487, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 3514, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "rightarg", - "location": 3503, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 3532, - "names": [ - { - "String": { - "sval": "int8xor", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "procedure", - "location": 3520, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "@#@", - }, - }, - ], - "kind": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 83, - "stmt_location": 3457, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 3561, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 3567, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "@#@", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 31, - "stmt_location": 3541, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "test_language_exists", - }, - }, - ], - "removeType": "OBJECT_LANGUAGE", - }, - }, - "stmt_len": 48, - "stmt_location": 3573, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "String": { - "sval": "test_language_exists", - }, - }, - ], - "removeType": "OBJECT_LANGUAGE", - }, - }, - "stmt_len": 45, - "stmt_location": 3622, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "TypeName": { - "location": 3689, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 3697, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_CAST", - }, - }, - "stmt_len": 34, - "stmt_location": 3668, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "TypeName": { - "location": 3725, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 3733, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_CAST", - }, - }, - "stmt_len": 35, - "stmt_location": 3703, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_exists", - }, - }, - { - "String": { - "sval": "test_trigger_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TRIGGER", - }, - }, - "stmt_len": 60, - "stmt_location": 3739, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_exists", - }, - }, - { - "String": { - "sval": "test_trigger_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TRIGGER", - }, - }, - "stmt_len": 58, - "stmt_location": 3800, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_such_table", - }, - }, - { - "String": { - "sval": "test_trigger_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TRIGGER", - }, - }, - "stmt_len": 51, - "stmt_location": 3859, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_such_table", - }, - }, - { - "String": { - "sval": "test_trigger_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TRIGGER", - }, - }, - "stmt_len": 60, - "stmt_location": 3911, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "no_such_table", - }, - }, - { - "String": { - "sval": "test_trigger_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TRIGGER", - }, - }, - "stmt_len": 66, - "stmt_location": 3972, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "no_such_table", - }, - }, - { - "String": { - "sval": "test_trigger_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TRIGGER", - }, - }, - "stmt_len": 75, - "stmt_location": 4039, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateTrigStmt": { - "events": 16, - "funcname": [ - { - "String": { - "sval": "suppress_redundant_updates_trigger", - }, - }, - ], - "relation": { - "inh": true, - "location": 4173, - "relname": "test_exists", - "relpersistence": "p", - }, - "row": true, - "timing": 2, - "trigname": "test_trigger_exists", - }, - }, - "stmt_len": 141, - "stmt_location": 4115, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_exists", - }, - }, - { - "String": { - "sval": "test_trigger_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TRIGGER", - }, - }, - "stmt_len": 48, - "stmt_location": 4257, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_exists", - }, - }, - { - "String": { - "sval": "test_rule_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_RULE", - }, - }, - "stmt_len": 51, - "stmt_location": 4306, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_exists", - }, - }, - { - "String": { - "sval": "test_rule_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_RULE", - }, - }, - "stmt_len": 52, - "stmt_location": 4358, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_such_table", - }, - }, - { - "String": { - "sval": "test_rule_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_RULE", - }, - }, - "stmt_len": 45, - "stmt_location": 4411, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_such_table", - }, - }, - { - "String": { - "sval": "test_rule_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_RULE", - }, - }, - "stmt_len": 54, - "stmt_location": 4457, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "no_such_table", - }, - }, - { - "String": { - "sval": "test_rule_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_RULE", - }, - }, - "stmt_len": 60, - "stmt_location": 4512, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "no_such_table", - }, - }, - { - "String": { - "sval": "test_rule_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_RULE", - }, - }, - "stmt_len": 69, - "stmt_location": 4573, - }, - }, - { - "RawStmt": { - "stmt": { - "RuleStmt": { - "actions": [ - { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4733, - "relname": "test_exists", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "new", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4753, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "new", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4760, - }, - }, - "location": 4766, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "new", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4769, - }, - }, - "location": 4774, - "typeName": { - "location": 4776, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "event": "CMD_INSERT", - "instead": true, - "relation": { - "inh": true, - "location": 4690, - "relname": "test_exists", - "relpersistence": "p", - }, - "rulename": "test_rule_exists", - }, - }, - "stmt_len": 138, - "stmt_location": 4643, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_exists", - }, - }, - { - "String": { - "sval": "test_rule_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_RULE", - }, - }, - "stmt_len": 42, - "stmt_location": 4782, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "test_fdw_exists", - }, - }, - ], - "removeType": "OBJECT_FDW", - }, - }, - "stmt_len": 67, - "stmt_location": 4825, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "String": { - "sval": "test_fdw_exists", - }, - }, - ], - "removeType": "OBJECT_FDW", - }, - }, - "stmt_len": 52, - "stmt_location": 4893, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "test_server_exists", - }, - }, - ], - "removeType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 50, - "stmt_location": 4946, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "String": { - "sval": "test_server_exists", - }, - }, - ], - "removeType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 41, - "stmt_location": 4997, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "btree", - }, - }, - { - "String": { - "sval": "test_operator_class", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPCLASS", - }, - }, - "stmt_len": 71, - "stmt_location": 5039, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "btree", - }, - }, - { - "String": { - "sval": "test_operator_class", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPCLASS", - }, - }, - "stmt_len": 62, - "stmt_location": 5111, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_such_am", - }, - }, - { - "String": { - "sval": "test_operator_class", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPCLASS", - }, - }, - "stmt_len": 58, - "stmt_location": 5174, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_such_am", - }, - }, - { - "String": { - "sval": "test_operator_class", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPCLASS", - }, - }, - "stmt_len": 67, - "stmt_location": 5233, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "btree", - }, - }, - { - "String": { - "sval": "test_operator_family", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 74, - "stmt_location": 5301, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "btree", - }, - }, - { - "String": { - "sval": "test_operator_family", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 64, - "stmt_location": 5376, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_such_am", - }, - }, - { - "String": { - "sval": "test_operator_family", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 60, - "stmt_location": 5441, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_such_am", - }, - }, - { - "String": { - "sval": "test_operator_family", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 69, - "stmt_location": 5502, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 53, - "stmt_location": 5572, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_exists", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 24, - "stmt_location": 5626, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 5746, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 5746, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "foo", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 99, - "stmt_location": 5651, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 5781, - "names": [ - { - "String": { - "sval": "no_such_type", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 5781, - "names": [ - { - "String": { - "sval": "no_such_type", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "foo", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 43, - "stmt_location": 5751, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 5825, - "names": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "no_such_type", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 5825, - "names": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "no_such_type", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "foo", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_AGGREGATE", - }, - }, - "stmt_len": 58, - "stmt_location": 5795, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "TypeName": { - "location": 5876, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 5887, - "names": [ - { - "String": { - "sval": "no_such_type2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_CAST", - }, - }, - "stmt_len": 47, - "stmt_location": 5854, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "TypeName": { - "location": 5924, - "names": [ - { - "String": { - "sval": "no_such_type1", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 5941, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_CAST", - }, - }, - "stmt_len": 47, - "stmt_location": 5902, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "TypeName": { - "location": 5972, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 5983, - "names": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "bar", - }, - }, - ], - "typemod": -1, - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_CAST", - }, - }, - "stmt_len": 52, - "stmt_location": 5950, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "TypeName": { - "location": 6025, - "names": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "foo", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 6047, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_CAST", - }, - }, - "stmt_len": 52, - "stmt_location": 6003, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "foo", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_COLLATION", - }, - }, - "stmt_len": 44, - "stmt_location": 6056, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "foo", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_CONVERSION", - }, - }, - "stmt_len": 45, - "stmt_location": 6101, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "TypeName": { - "location": 6170, - "names": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "foo", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 41, - "stmt_location": 6147, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "foo", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FOREIGN_TABLE", - }, - }, - "stmt_len": 48, - "stmt_location": 6189, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "ObjectWithArgs": { - "objname": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "foo", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 45, - "stmt_location": 6238, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 6313, - "names": [ - { - "String": { - "sval": "no_such_type", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 6313, - "names": [ - { - "String": { - "sval": "no_such_type", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "foo", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 42, - "stmt_location": 6284, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 6356, - "names": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "no_such_type", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 6356, - "names": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "no_such_type", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "foo", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 57, - "stmt_location": 6327, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "foo", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_INDEX", - }, - }, - "stmt_len": 40, - "stmt_location": 6385, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "foo", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_MATVIEW", - }, - }, - "stmt_len": 52, - "stmt_location": 6426, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 6522, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 6527, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "+", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 52, - "stmt_location": 6479, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 6560, - "names": [ - { - "String": { - "sval": "no_such_type", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 6574, - "names": [ - { - "String": { - "sval": "no_such_type", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "+", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 55, - "stmt_location": 6532, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 6616, - "names": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "no_such_type", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 6645, - "names": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "no_such_type", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "+", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 85, - "stmt_location": 6588, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - {}, - { - "TypeName": { - "location": 6708, - "names": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "no_such_type", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "#", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 62, - "stmt_location": 6674, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "btree", - }, - }, - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "widget_ops", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPCLASS", - }, - }, - "stmt_len": 68, - "stmt_location": 6737, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "btree", - }, - }, - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "float_ops", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPFAMILY", - }, - }, - "stmt_len": 68, - "stmt_location": 6806, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "bar", - }, - }, - { - "String": { - "sval": "foo", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_RULE", - }, - }, - "stmt_len": 46, - "stmt_location": 6875, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "foo", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_SEQUENCE", - }, - }, - "stmt_len": 43, - "stmt_location": 6922, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "foo", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 40, - "stmt_location": 6966, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "foo", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TSCONFIGURATION", - }, - }, - "stmt_len": 60, - "stmt_location": 7007, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "foo", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TSDICTIONARY", - }, - }, - "stmt_len": 57, - "stmt_location": 7068, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "foo", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TSPARSER", - }, - }, - "stmt_len": 53, - "stmt_location": 7126, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "foo", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TSTEMPLATE", - }, - }, - "stmt_len": 55, - "stmt_location": 7180, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "bar", - }, - }, - { - "String": { - "sval": "foo", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TRIGGER", - }, - }, - "stmt_len": 49, - "stmt_location": 7236, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "TypeName": { - "location": 7307, - "names": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "foo", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_TYPE", - }, - }, - "stmt_len": 39, - "stmt_location": 7286, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_such_schema", - }, - }, - { - "String": { - "sval": "foo", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_VIEW", - }, - }, - "stmt_len": 39, - "stmt_location": 7326, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/drop_operator.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 42, - "names": [ - { - "String": { - "sval": "int8eq", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "procedure", - "location": 30, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 68, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leftarg", - "location": 58, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 95, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "rightarg", - "location": 84, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "===", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "commutator", - "location": 111, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "===", - }, - }, - ], - "kind": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 129, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 174, - "names": [ - { - "String": { - "sval": "int8ne", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "procedure", - "location": 162, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 200, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leftarg", - "location": 190, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 227, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "rightarg", - "location": 216, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "===", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "negator", - "location": 243, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "!==", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "commutator", - "location": 266, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "!==", - }, - }, - ], - "kind": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 154, - "stmt_location": 130, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 305, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 313, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "!==", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 35, - "stmt_location": 285, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 352, - "relname": "pg_operator", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 331, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 331, - }, - }, - }, - }, - { - "ResTarget": { - "location": 337, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprcom", - }, - }, - ], - "location": 337, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprcom", - }, - }, - ], - "location": 386, - }, - }, - "location": 393, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 396, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 414, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 435, - "relname": "pg_operator", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 428, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 428, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 467, - }, - }, - "location": 474, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "oprcom", - }, - }, - ], - "location": 476, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 410, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 398, - }, - }, - }, - }, - "stmt_len": 165, - "stmt_location": 321, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 521, - "relname": "pg_operator", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 497, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 497, - }, - }, - }, - }, - { - "ResTarget": { - "location": 503, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprnegate", - }, - }, - ], - "location": 503, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprnegate", - }, - }, - ], - "location": 555, - }, - }, - "location": 565, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 568, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 586, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 607, - "relname": "pg_operator", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 600, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 600, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 639, - }, - }, - "location": 646, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "oprnegate", - }, - }, - ], - "location": 648, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 582, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 570, - }, - }, - }, - }, - "stmt_len": 174, - "stmt_location": 487, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 682, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 690, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "===", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 35, - "stmt_location": 662, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 741, - "names": [ - { - "String": { - "sval": "int8lt", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "procedure", - "location": 729, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 767, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leftarg", - "location": 757, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 794, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "rightarg", - "location": 783, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "<|", - }, - }, - ], - "kind": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 104, - "stmt_location": 698, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 846, - "names": [ - { - "String": { - "sval": "int8gt", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "procedure", - "location": 834, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 872, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leftarg", - "location": 862, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 899, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "rightarg", - "location": 888, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "<|", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "negator", - "location": 915, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "<|", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "commutator", - "location": 937, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "|>", - }, - }, - ], - "kind": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 151, - "stmt_location": 803, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 974, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 982, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "|>", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 34, - "stmt_location": 955, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 1021, - "relname": "pg_operator", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1000, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 1000, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1006, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprcom", - }, - }, - ], - "location": 1006, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprcom", - }, - }, - ], - "location": 1055, - }, - }, - "location": 1062, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 1065, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 1083, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 1104, - "relname": "pg_operator", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1097, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1097, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 1136, - }, - }, - "location": 1143, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "oprcom", - }, - }, - ], - "location": 1145, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 1079, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 1067, - }, - }, - }, - }, - "stmt_len": 165, - "stmt_location": 990, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 1190, - "relname": "pg_operator", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1166, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 1166, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1172, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprnegate", - }, - }, - ], - "location": 1172, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprnegate", - }, - }, - ], - "location": 1224, - }, - }, - "location": 1234, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 1237, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 1255, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 1276, - "relname": "pg_operator", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1269, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1269, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 1308, - }, - }, - "location": 1315, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "oprnegate", - }, - }, - ], - "location": 1317, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 1251, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 1239, - }, - }, - }, - }, - "stmt_len": 174, - "stmt_location": 1156, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 1350, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 1358, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "<|", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 34, - "stmt_location": 1331, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/enum.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateEnumStmt": { - "typeName": [ - { - "String": { - "sval": "rainbow", - }, - }, - ], - "vals": [ - { - "String": { - "sval": "red", - }, - }, - { - "String": { - "sval": "orange", - }, - }, - { - "String": { - "sval": "yellow", - }, - }, - { - "String": { - "sval": "green", - }, - }, - { - "String": { - "sval": "blue", - }, - }, - { - "String": { - "sval": "purple", - }, - }, - ], - }, - }, - "stmt_len": 103, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 176, - "relname": "pg_enum", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 162, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 162, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "enumtypid", - }, - }, - ], - "location": 190, - }, - }, - "location": 200, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 202, - "sval": { - "sval": "rainbow", - }, - }, - }, - "location": 211, - "typeName": { - "location": 213, - "names": [ - { - "String": { - "sval": "regtype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 116, - "stmt_location": 104, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 253, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 253, - "sval": { - "sval": "red", - }, - }, - }, - "location": 258, - "typeName": { - "location": 260, - "names": [ - { - "String": { - "sval": "rainbow", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 221, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 276, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 276, - "sval": { - "sval": "mauve", - }, - }, - }, - "location": 283, - "typeName": { - "location": 285, - "names": [ - { - "String": { - "sval": "rainbow", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 268, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateEnumStmt": { - "typeName": [ - { - "String": { - "sval": "planets", - }, - }, - ], - "vals": [ - { - "String": { - "sval": "venus", - }, - }, - { - "String": { - "sval": "earth", - }, - }, - { - "String": { - "sval": "mars", - }, - }, - ], - }, - }, - "stmt_len": 86, - "stmt_location": 293, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 419, - "relname": "pg_enum", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 473, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 389, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "enumlabel", - }, - }, - ], - "location": 389, - }, - }, - }, - }, - { - "ResTarget": { - "location": 400, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "enumsortorder", - }, - }, - ], - "location": 400, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "enumtypid", - }, - }, - ], - "location": 433, - }, - }, - "location": 443, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 445, - "sval": { - "sval": "planets", - }, - }, - }, - "location": 454, - "typeName": { - "location": 456, - "names": [ - { - "String": { - "sval": "regtype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 94, - "stmt_location": 380, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "uranus", - "newValIsAfter": true, - "typeName": [ - { - "String": { - "sval": "planets", - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 475, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 554, - "relname": "pg_enum", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 608, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 524, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "enumlabel", - }, - }, - ], - "location": 524, - }, - }, - }, - }, - { - "ResTarget": { - "location": 535, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "enumsortorder", - }, - }, - ], - "location": 535, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "enumtypid", - }, - }, - ], - "location": 568, - }, - }, - "location": 578, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 580, - "sval": { - "sval": "planets", - }, - }, - }, - "location": 589, - "typeName": { - "location": 591, - "names": [ - { - "String": { - "sval": "regtype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 94, - "stmt_location": 515, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "mercury", - "newValNeighbor": "venus", - "typeName": [ - { - "String": { - "sval": "planets", - }, - }, - ], - }, - }, - "stmt_len": 55, - "stmt_location": 610, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "saturn", - "newValNeighbor": "uranus", - "typeName": [ - { - "String": { - "sval": "planets", - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 666, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "jupiter", - "newValIsAfter": true, - "newValNeighbor": "mars", - "typeName": [ - { - "String": { - "sval": "planets", - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 721, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "neptune", - "newValIsAfter": true, - "newValNeighbor": "uranus", - "typeName": [ - { - "String": { - "sval": "planets", - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 774, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 868, - "relname": "pg_enum", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 922, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 838, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "enumlabel", - }, - }, - ], - "location": 838, - }, - }, - }, - }, - { - "ResTarget": { - "location": 849, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "enumsortorder", - }, - }, - ], - "location": 849, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "enumtypid", - }, - }, - ], - "location": 882, - }, - }, - "location": 892, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 894, - "sval": { - "sval": "planets", - }, - }, - }, - "location": 903, - "typeName": { - "location": 905, - "names": [ - { - "String": { - "sval": "regtype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 94, - "stmt_location": 829, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 963, - "relname": "pg_enum", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "enumlabel", - }, - }, - ], - "location": 1017, - }, - }, - "location": 1026, - "typeName": { - "location": 1028, - "names": [ - { - "String": { - "sval": "planets", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 933, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "enumlabel", - }, - }, - ], - "location": 933, - }, - }, - }, - }, - { - "ResTarget": { - "location": 944, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "enumsortorder", - }, - }, - ], - "location": 944, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "enumtypid", - }, - }, - ], - "location": 977, - }, - }, - "location": 987, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 989, - "sval": { - "sval": "planets", - }, - }, - }, - "location": 998, - "typeName": { - "location": 1000, - "names": [ - { - "String": { - "sval": "regtype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 111, - "stmt_location": 924, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "plutoplutoplutoplutoplutoplutoplutoplutoplutoplutoplutoplutoplutopluto", - "newValIsAfter": true, - "typeName": [ - { - "String": { - "sval": "planets", - }, - }, - ], - }, - }, - "stmt_len": 133, - "stmt_location": 1036, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "pluto", - "newValIsAfter": true, - "newValNeighbor": "zeus", - "typeName": [ - { - "String": { - "sval": "planets", - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 1170, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "mercury", - "newValIsAfter": true, - "typeName": [ - { - "String": { - "sval": "planets", - }, - }, - ], - }, - }, - "stmt_len": 95, - "stmt_location": 1222, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "mercury", - "newValIsAfter": true, - "skipIfNewValExists": true, - "typeName": [ - { - "String": { - "sval": "planets", - }, - }, - ], - }, - }, - "stmt_len": 91, - "stmt_location": 1318, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1453, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "isnull": true, - "location": 1463, - }, - }, - "location": 1467, - "typeName": { - "location": 1469, - "names": [ - { - "String": { - "sval": "planets", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "enum_last", - }, - }, - ], - "location": 1453, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 67, - "stmt_location": 1410, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "pluto", - "newValIsAfter": true, - "skipIfNewValExists": true, - "typeName": [ - { - "String": { - "sval": "planets", - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 1478, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1579, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "isnull": true, - "location": 1589, - }, - }, - "location": 1593, - "typeName": { - "location": 1595, - "names": [ - { - "String": { - "sval": "planets", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "enum_last", - }, - }, - ], - "location": 1579, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 72, - "stmt_location": 1531, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateEnumStmt": { - "typeName": [ - { - "String": { - "sval": "insenum", - }, - }, - ], - "vals": [ - { - "String": { - "sval": "L1", - }, - }, - { - "String": { - "sval": "L2", - }, - }, - ], - }, - }, - "stmt_len": 107, - "stmt_location": 1604, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "i1", - "newValNeighbor": "L2", - "typeName": [ - { - "String": { - "sval": "insenum", - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 1712, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "i2", - "newValNeighbor": "L2", - "typeName": [ - { - "String": { - "sval": "insenum", - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 1760, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "i3", - "newValNeighbor": "L2", - "typeName": [ - { - "String": { - "sval": "insenum", - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 1807, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "i4", - "newValNeighbor": "L2", - "typeName": [ - { - "String": { - "sval": "insenum", - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 1854, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "i5", - "newValNeighbor": "L2", - "typeName": [ - { - "String": { - "sval": "insenum", - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 1901, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "i6", - "newValNeighbor": "L2", - "typeName": [ - { - "String": { - "sval": "insenum", - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 1948, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "i7", - "newValNeighbor": "L2", - "typeName": [ - { - "String": { - "sval": "insenum", - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 1995, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "i8", - "newValNeighbor": "L2", - "typeName": [ - { - "String": { - "sval": "insenum", - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 2042, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "i9", - "newValNeighbor": "L2", - "typeName": [ - { - "String": { - "sval": "insenum", - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 2089, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "i10", - "newValNeighbor": "L2", - "typeName": [ - { - "String": { - "sval": "insenum", - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 2136, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "i11", - "newValNeighbor": "L2", - "typeName": [ - { - "String": { - "sval": "insenum", - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 2184, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "i12", - "newValNeighbor": "L2", - "typeName": [ - { - "String": { - "sval": "insenum", - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 2232, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "i13", - "newValNeighbor": "L2", - "typeName": [ - { - "String": { - "sval": "insenum", - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 2280, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "i14", - "newValNeighbor": "L2", - "typeName": [ - { - "String": { - "sval": "insenum", - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 2328, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "i15", - "newValNeighbor": "L2", - "typeName": [ - { - "String": { - "sval": "insenum", - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 2376, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "i16", - "newValNeighbor": "L2", - "typeName": [ - { - "String": { - "sval": "insenum", - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 2424, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "i17", - "newValNeighbor": "L2", - "typeName": [ - { - "String": { - "sval": "insenum", - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 2472, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "i18", - "newValNeighbor": "L2", - "typeName": [ - { - "String": { - "sval": "insenum", - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 2520, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "i19", - "newValNeighbor": "L2", - "typeName": [ - { - "String": { - "sval": "insenum", - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 2568, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "i20", - "newValNeighbor": "L2", - "typeName": [ - { - "String": { - "sval": "insenum", - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 2616, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "i21", - "newValNeighbor": "L2", - "typeName": [ - { - "String": { - "sval": "insenum", - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 2664, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "i22", - "newValNeighbor": "L2", - "typeName": [ - { - "String": { - "sval": "insenum", - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 2712, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "i23", - "newValNeighbor": "L2", - "typeName": [ - { - "String": { - "sval": "insenum", - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 2760, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "i24", - "newValNeighbor": "L2", - "typeName": [ - { - "String": { - "sval": "insenum", - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 2808, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "i25", - "newValNeighbor": "L2", - "typeName": [ - { - "String": { - "sval": "insenum", - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 2856, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "i26", - "newValNeighbor": "L2", - "typeName": [ - { - "String": { - "sval": "insenum", - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 2904, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "i27", - "newValNeighbor": "L2", - "typeName": [ - { - "String": { - "sval": "insenum", - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 2952, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "i28", - "newValNeighbor": "L2", - "typeName": [ - { - "String": { - "sval": "insenum", - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 3000, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "i29", - "newValNeighbor": "L2", - "typeName": [ - { - "String": { - "sval": "insenum", - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 3048, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "i30", - "newValNeighbor": "L2", - "typeName": [ - { - "String": { - "sval": "insenum", - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 3096, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3462, - "relname": "pg_enum", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "enumsortorder", - }, - }, - ], - "location": 3516, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3371, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "enumlabel", - }, - }, - ], - "location": 3371, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3389, - "name": "so", - "val": { - "CaseExpr": { - "args": [ - { - "CaseWhen": { - "expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "enumsortorder", - }, - }, - ], - "location": 3399, - }, - }, - "location": 3413, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 20, - }, - "location": 3415, - }, - }, - }, - }, - "location": 3394, - "result": { - "A_Const": { - "isnull": true, - "location": 3423, - }, - }, - }, - }, - ], - "defresult": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "enumsortorder", - }, - }, - ], - "location": 3433, - }, - }, - "location": 3389, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "enumtypid", - }, - }, - ], - "location": 3476, - }, - }, - "location": 3486, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3488, - "sval": { - "sval": "insenum", - }, - }, - }, - "location": 3497, - "typeName": { - "location": 3499, - "names": [ - { - "String": { - "sval": "regtype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 385, - "stmt_location": 3144, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 3590, - "relname": "enumtest", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "col", - "is_local": true, - "location": 3600, - "typeName": { - "location": 3604, - "names": [ - { - "String": { - "sval": "rainbow", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 82, - "stmt_location": 3530, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3626, - "relname": "enumtest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 3643, - "sval": { - "sval": "red", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 3652, - "sval": { - "sval": "orange", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 3664, - "sval": { - "sval": "yellow", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 3676, - "sval": { - "sval": "green", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 71, - "stmt_location": 3613, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3708, - "relname": "enumtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3701, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3701, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 3685, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3762, - "relname": "enumtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3755, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3755, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 3777, - }, - }, - "location": 3781, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3783, - "sval": { - "sval": "orange", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 3717, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3807, - "relname": "enumtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 3847, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3800, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3800, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 3822, - }, - }, - "location": 3826, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3829, - "sval": { - "sval": "orange", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 58, - "stmt_location": 3792, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3866, - "relname": "enumtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 3905, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3859, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3859, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 3881, - }, - }, - "location": 3885, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3887, - "sval": { - "sval": "yellow", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 57, - "stmt_location": 3851, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3924, - "relname": "enumtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 3964, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3917, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3917, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 3939, - }, - }, - "location": 3943, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3946, - "sval": { - "sval": "yellow", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 58, - "stmt_location": 3909, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3983, - "relname": "enumtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 4021, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3976, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3976, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 3998, - }, - }, - "location": 4002, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4004, - "sval": { - "sval": "green", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 56, - "stmt_location": 3968, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4040, - "relname": "enumtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 4079, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 4033, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4033, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 4055, - }, - }, - "location": 4059, - "name": [ - { - "String": { - "sval": "<=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4062, - "sval": { - "sval": "green", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 57, - "stmt_location": 4025, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4119, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4119, - "sval": { - "sval": "red", - }, - }, - }, - "location": 4124, - "typeName": { - "location": 4126, - "names": [ - { - "String": { - "sval": "rainbow", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4133, - "typeName": { - "location": 4135, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4140, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4143, - "sval": { - "sval": "hithere", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 69, - "stmt_location": 4083, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4161, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4161, - "sval": { - "sval": "red", - }, - }, - }, - "location": 4166, - "typeName": { - "location": 4168, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4172, - "typeName": { - "location": 4174, - "names": [ - { - "String": { - "sval": "rainbow", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4182, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4184, - "sval": { - "sval": "red", - }, - }, - }, - "location": 4189, - "typeName": { - "location": 4191, - "names": [ - { - "String": { - "sval": "rainbow", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 4153, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4242, - "relname": "enumtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4228, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 4232, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 4228, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 4199, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4273, - "relname": "enumtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4259, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 4263, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 4259, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 4251, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4304, - "relname": "enumtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4290, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 4294, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 4290, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 4319, - }, - }, - "location": 4323, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4325, - "sval": { - "sval": "green", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 50, - "stmt_location": 4282, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 4397, - "sval": { - "sval": "off", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_seqscan", - }, - }, - "stmt_len": 67, - "stmt_location": 4333, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 4426, - "sval": { - "sval": "off", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_bitmapscan", - }, - }, - "stmt_len": 28, - "stmt_location": 4401, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "enumtest_btree", - "indexParams": [ - { - "IndexElem": { - "name": "col", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 4528, - "relname": "enumtest", - "relpersistence": "p", - }, - "unique": true, - }, - }, - "stmt_len": 124, - "stmt_location": 4430, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4570, - "relname": "enumtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4563, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4563, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 4585, - }, - }, - "location": 4589, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4591, - "sval": { - "sval": "orange", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 44, - "stmt_location": 4555, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4615, - "relname": "enumtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 4655, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 4608, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4608, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 4630, - }, - }, - "location": 4634, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4637, - "sval": { - "sval": "orange", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 58, - "stmt_location": 4600, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4674, - "relname": "enumtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 4713, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 4667, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4667, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 4689, - }, - }, - "location": 4693, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4695, - "sval": { - "sval": "yellow", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 57, - "stmt_location": 4659, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4732, - "relname": "enumtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 4772, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 4725, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4725, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 4747, - }, - }, - "location": 4751, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4754, - "sval": { - "sval": "yellow", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 58, - "stmt_location": 4717, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4791, - "relname": "enumtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 4829, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 4784, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4784, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 4806, - }, - }, - "location": 4810, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4812, - "sval": { - "sval": "green", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 56, - "stmt_location": 4776, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4848, - "relname": "enumtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 4887, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 4841, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4841, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 4863, - }, - }, - "location": 4867, - "name": [ - { - "String": { - "sval": "<=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4870, - "sval": { - "sval": "green", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 57, - "stmt_location": 4833, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4913, - "relname": "enumtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4899, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 4903, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 4899, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 4891, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4944, - "relname": "enumtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4930, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 4934, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 4930, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 4922, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4975, - "relname": "enumtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4961, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 4965, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 4961, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 4990, - }, - }, - "location": 4994, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4996, - "sval": { - "sval": "green", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 50, - "stmt_location": 4953, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "enumtest_btree", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_INDEX", - }, - }, - "stmt_len": 26, - "stmt_location": 5004, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "hash", - "idxname": "enumtest_hash", - "indexParams": [ - { - "IndexElem": { - "name": "col", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 5113, - "relname": "enumtest", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 107, - "stmt_location": 5031, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5154, - "relname": "enumtest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5147, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 5147, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col", - }, - }, - ], - "location": 5169, - }, - }, - "location": 5173, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 5175, - "sval": { - "sval": "orange", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 44, - "stmt_location": 5139, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "enumtest_hash", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_INDEX", - }, - }, - "stmt_len": 25, - "stmt_location": 5184, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "enable_seqscan", - }, - }, - "stmt_len": 47, - "stmt_location": 5210, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "enable_bitmapscan", - }, - }, - "stmt_len": 24, - "stmt_location": 5258, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateDomainStmt": { - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 5342, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "value", - }, - }, - ], - "location": 5349, - }, - }, - "location": 5355, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 5359, - "sval": { - "sval": "red", - }, - }, - }, - { - "A_Const": { - "location": 5366, - "sval": { - "sval": "green", - }, - }, - }, - { - "A_Const": { - "location": 5375, - "sval": { - "sval": "blue", - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - "domainname": [ - { - "String": { - "sval": "rgb", - }, - }, - ], - "typeName": { - "location": 5334, - "names": [ - { - "String": { - "sval": "rainbow", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 100, - "stmt_location": 5283, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5392, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5392, - "sval": { - "sval": "red", - }, - }, - }, - "location": 5397, - "typeName": { - "location": 5399, - "names": [ - { - "String": { - "sval": "rgb", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 18, - "stmt_location": 5384, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5411, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5411, - "sval": { - "sval": "purple", - }, - }, - }, - "location": 5419, - "typeName": { - "location": 5421, - "names": [ - { - "String": { - "sval": "rgb", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 21, - "stmt_location": 5403, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5433, - "val": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5433, - "sval": { - "sval": "purple", - }, - }, - }, - "location": 5441, - "typeName": { - "location": 5443, - "names": [ - { - "String": { - "sval": "rainbow", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 5450, - "typeName": { - "location": 5452, - "names": [ - { - "String": { - "sval": "rgb", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 5425, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 5469, - "names": [ - { - "String": { - "sval": "rgb", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_DOMAIN", - }, - }, - "stmt_len": 16, - "stmt_location": 5456, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5498, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5498, - "sval": { - "sval": "{red,green,blue}", - }, - }, - }, - "location": 5516, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 5518, - "names": [ - { - "String": { - "sval": "rainbow", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 5473, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5536, - "val": { - "A_Indirection": { - "arg": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5537, - "sval": { - "sval": "{red,green,blue}", - }, - }, - }, - "location": 5555, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 5557, - "names": [ - { - "String": { - "sval": "rainbow", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "indirection": [ - { - "A_Indices": { - "uidx": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5568, - }, - }, - }, - }, - ], - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 5528, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5579, - "val": { - "A_Expr": { - "kind": "AEXPR_OP_ANY", - "lexpr": { - "A_Const": { - "location": 5579, - "sval": { - "sval": "red", - }, - }, - }, - "location": 5585, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5592, - "sval": { - "sval": "{red,green,blue}", - }, - }, - }, - "location": 5610, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 5612, - "names": [ - { - "String": { - "sval": "rainbow", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 5571, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5631, - "val": { - "A_Expr": { - "kind": "AEXPR_OP_ANY", - "lexpr": { - "A_Const": { - "location": 5631, - "sval": { - "sval": "yellow", - }, - }, - }, - "location": 5640, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5647, - "sval": { - "sval": "{red,green,blue}", - }, - }, - }, - "location": 5665, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 5667, - "names": [ - { - "String": { - "sval": "rainbow", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 5623, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5686, - "val": { - "A_Expr": { - "kind": "AEXPR_OP_ALL", - "lexpr": { - "A_Const": { - "location": 5686, - "sval": { - "sval": "red", - }, - }, - }, - "location": 5692, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5699, - "sval": { - "sval": "{red,green,blue}", - }, - }, - }, - "location": 5717, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 5719, - "names": [ - { - "String": { - "sval": "rainbow", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 5678, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5738, - "val": { - "A_Expr": { - "kind": "AEXPR_OP_ALL", - "lexpr": { - "A_Const": { - "location": 5738, - "sval": { - "sval": "red", - }, - }, - }, - "location": 5744, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5751, - "sval": { - "sval": "{red,red}", - }, - }, - }, - "location": 5762, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 5764, - "names": [ - { - "String": { - "sval": "rainbow", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 5730, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5811, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "isnull": true, - "location": 5822, - }, - }, - "location": 5826, - "typeName": { - "location": 5828, - "names": [ - { - "String": { - "sval": "rainbow", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "enum_first", - }, - }, - ], - "location": 5811, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 5775, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5845, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5855, - "sval": { - "sval": "green", - }, - }, - }, - "location": 5862, - "typeName": { - "location": 5864, - "names": [ - { - "String": { - "sval": "rainbow", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "enum_last", - }, - }, - ], - "location": 5845, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 5837, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5881, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "isnull": true, - "location": 5892, - }, - }, - "location": 5896, - "typeName": { - "location": 5898, - "names": [ - { - "String": { - "sval": "rainbow", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "enum_range", - }, - }, - ], - "location": 5881, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 5873, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5915, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5926, - "sval": { - "sval": "orange", - }, - }, - }, - "location": 5934, - "typeName": { - "location": 5936, - "names": [ - { - "String": { - "sval": "rainbow", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5945, - "sval": { - "sval": "green", - }, - }, - }, - "location": 5952, - "typeName": { - "location": 5954, - "names": [ - { - "String": { - "sval": "rainbow", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "enum_range", - }, - }, - ], - "location": 5915, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 55, - "stmt_location": 5907, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5971, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "isnull": true, - "location": 5982, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5988, - "sval": { - "sval": "green", - }, - }, - }, - "location": 5995, - "typeName": { - "location": 5997, - "names": [ - { - "String": { - "sval": "rainbow", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "enum_range", - }, - }, - ], - "location": 5971, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 5963, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6014, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6025, - "sval": { - "sval": "orange", - }, - }, - }, - "location": 6033, - "typeName": { - "location": 6035, - "names": [ - { - "String": { - "sval": "rainbow", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 6044, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "enum_range", - }, - }, - ], - "location": 6014, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 43, - "stmt_location": 6006, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6058, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "isnull": true, - "location": 6069, - }, - }, - "location": 6073, - "typeName": { - "location": 6075, - "names": [ - { - "String": { - "sval": "rainbow", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 6084, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "enum_range", - }, - }, - ], - "location": 6058, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 6050, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "echo_me", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -BEGIN -RETURN $1::text || 'omg'; -END -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 6222, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 6267, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 6200, - "names": [ - { - "String": { - "sval": "anyenum", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 6217, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 193, - "stmt_location": 6090, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6292, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6300, - "sval": { - "sval": "red", - }, - }, - }, - "location": 6305, - "typeName": { - "location": 6307, - "names": [ - { - "String": { - "sval": "rainbow", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "echo_me", - }, - }, - ], - "location": 6292, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 6284, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "echo_me", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -BEGIN -RETURN $1::text || 'wtf'; -END -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 6418, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 6463, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 6396, - "names": [ - { - "String": { - "sval": "rainbow", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 6413, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 163, - "stmt_location": 6316, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6488, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6496, - "sval": { - "sval": "red", - }, - }, - }, - "location": 6501, - "typeName": { - "location": 6503, - "names": [ - { - "String": { - "sval": "rainbow", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "echo_me", - }, - }, - ], - "location": 6488, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 6480, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 6656, - "names": [ - { - "String": { - "sval": "anyenum", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 6656, - "names": [ - { - "String": { - "sval": "anyenum", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "echo_me", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 152, - "stmt_location": 6512, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6673, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 6681, - "sval": { - "sval": "red", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "echo_me", - }, - }, - ], - "location": 6673, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 6665, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 6711, - "names": [ - { - "String": { - "sval": "rainbow", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 6711, - "names": [ - { - "String": { - "sval": "rainbow", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "echo_me", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 31, - "stmt_location": 6688, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 6770, - "relname": "enumtest_parent", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 6798, - }, - }, - ], - "is_local": true, - "location": 6787, - "typeName": { - "location": 6790, - "names": [ - { - "String": { - "sval": "rainbow", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 90, - "stmt_location": 6720, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 6825, - "relname": "enumtest_child", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "parent", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 6856, - "pktable": { - "inh": true, - "location": 6867, - "relname": "enumtest_parent", - "relpersistence": "p", - }, - }, - }, - ], - "is_local": true, - "location": 6841, - "typeName": { - "location": 6848, - "names": [ - { - "String": { - "sval": "rainbow", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 72, - "stmt_location": 6811, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 6897, - "relname": "enumtest_parent", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 6921, - "sval": { - "sval": "red", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 6884, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 6941, - "relname": "enumtest_child", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 6964, - "sval": { - "sval": "red", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 6928, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 6984, - "relname": "enumtest_child", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 7007, - "sval": { - "sval": "blue", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 6971, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 7037, - "relname": "enumtest_parent", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 37, - "stmt_location": 7015, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateEnumStmt": { - "typeName": [ - { - "String": { - "sval": "bogus", - }, - }, - ], - "vals": [ - { - "String": { - "sval": "good", - }, - }, - { - "String": { - "sval": "bad", - }, - }, - { - "String": { - "sval": "ugly", - }, - }, - ], - }, - }, - "stmt_len": 93, - "stmt_location": 7053, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 7161, - "relname": "enumtest_bogus_child", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "parent", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 7195, - "pktable": { - "inh": true, - "location": 7206, - "relname": "enumtest_parent", - "relpersistence": "p", - }, - }, - }, - ], - "is_local": true, - "location": 7182, - "typeName": { - "location": 7189, - "names": [ - { - "String": { - "sval": "bogus", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 75, - "stmt_location": 7147, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 7234, - "names": [ - { - "String": { - "sval": "bogus", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_TYPE", - }, - }, - "stmt_len": 16, - "stmt_location": 7223, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateEnumStmt": { - "typeName": [ - { - "String": { - "sval": "bogus", - }, - }, - ], - "vals": [ - { - "String": { - "sval": "good", - }, - }, - ], - }, - }, - "stmt_len": 102, - "stmt_location": 7240, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 80, - "stmt_location": 7343, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "bad", - "newValIsAfter": true, - "typeName": [ - { - "String": { - "sval": "bogus", - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 7424, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 7, - "stmt_location": 7458, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 113, - "stmt_location": 7466, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "bogon", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "bogus", - }, - }, - ], - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_TYPE", - }, - }, - "stmt_len": 33, - "stmt_location": 7580, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "bad", - "newValIsAfter": true, - "typeName": [ - { - "String": { - "sval": "bogon", - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 7614, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 7648, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 7670, - "names": [ - { - "String": { - "sval": "bogus", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_TYPE", - }, - }, - "stmt_len": 17, - "stmt_location": 7658, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 111, - "stmt_location": 7676, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateEnumStmt": { - "typeName": [ - { - "String": { - "sval": "bogus", - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 7788, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "good", - "newValIsAfter": true, - "typeName": [ - { - "String": { - "sval": "bogus", - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 7817, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEnumStmt": { - "newVal": "ugly", - "newValIsAfter": true, - "typeName": [ - { - "String": { - "sval": "bogus", - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 7852, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 7887, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "enumtest_child", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 44, - "stmt_location": 7897, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "enumtest_parent", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 27, - "stmt_location": 7942, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "enumtest", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 20, - "stmt_location": 7970, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "TypeName": { - "location": 8002, - "names": [ - { - "String": { - "sval": "rainbow", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "removeType": "OBJECT_TYPE", - }, - }, - "stmt_len": 18, - "stmt_location": 7991, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8069, - "relname": "pg_type", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8055, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 8055, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typname", - }, - }, - ], - "location": 8083, - }, - }, - "location": 8091, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 8093, - "sval": { - "sval": "rainbow", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 92, - "stmt_location": 8010, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8118, - "relname": "pg_enum", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8111, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 8111, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 8136, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8160, - "relname": "pg_type", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8153, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 8153, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_type", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 8174, - }, - }, - "location": 8186, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "enumtypid", - }, - }, - ], - "location": 8188, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 8132, - }, - }, - }, - }, - "stmt_len": 95, - "stmt_location": 8103, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/equivclass.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "defnames": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "kind": "OBJECT_TYPE", - }, - }, - "stmt_len": 642, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "int8alias1in", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "strict", - "location": 703, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "immutable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 710, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "internal", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 720, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "int8in", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 738, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 673, - "names": [ - { - "String": { - "sval": "cstring", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 690, - "names": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 106, - "stmt_location": 643, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "int8alias1out", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "strict", - "location": 811, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "immutable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 818, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "internal", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 828, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "int8out", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 846, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 781, - "names": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 801, - "names": [ - { - "String": { - "sval": "cstring", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 108, - "stmt_location": 750, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 897, - "names": [ - { - "String": { - "sval": "int8alias1in", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "input", - "location": 889, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 924, - "names": [ - { - "String": { - "sval": "int8alias1out", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "output", - "location": 915, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 950, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "like", - "location": 943, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "kind": "OBJECT_TYPE", - }, - }, - "stmt_len": 97, - "stmt_location": 859, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "defnames": [ - { - "String": { - "sval": "int8alias2", - }, - }, - ], - "kind": "OBJECT_TYPE", - }, - }, - "stmt_len": 24, - "stmt_location": 957, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "int8alias2in", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "strict", - "location": 1042, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "immutable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 1049, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "internal", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 1059, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "int8in", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 1077, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 1012, - "names": [ - { - "String": { - "sval": "cstring", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 1029, - "names": [ - { - "String": { - "sval": "int8alias2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 106, - "stmt_location": 982, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "int8alias2out", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "strict", - "location": 1150, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "immutable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 1157, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "internal", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 1167, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "int8out", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 1185, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 1120, - "names": [ - { - "String": { - "sval": "int8alias2", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 1140, - "names": [ - { - "String": { - "sval": "cstring", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 108, - "stmt_location": 1089, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1236, - "names": [ - { - "String": { - "sval": "int8alias2in", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "input", - "location": 1228, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1263, - "names": [ - { - "String": { - "sval": "int8alias2out", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "output", - "location": 1254, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1289, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "like", - "location": 1282, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "int8alias2", - }, - }, - ], - "kind": "OBJECT_TYPE", - }, - }, - "stmt_len": 97, - "stmt_location": 1198, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateCastStmt": { - "context": "COERCION_EXPLICIT", - "sourcetype": { - "location": 1311, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - "targettype": { - "location": 1319, - "names": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 51, - "stmt_location": 1296, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateCastStmt": { - "context": "COERCION_EXPLICIT", - "sourcetype": { - "location": 1362, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - "targettype": { - "location": 1370, - "names": [ - { - "String": { - "sval": "int8alias2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 50, - "stmt_location": 1348, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateCastStmt": { - "context": "COERCION_EXPLICIT", - "sourcetype": { - "location": 1413, - "names": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "typemod": -1, - }, - "targettype": { - "location": 1427, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 50, - "stmt_location": 1399, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateCastStmt": { - "context": "COERCION_EXPLICIT", - "sourcetype": { - "location": 1464, - "names": [ - { - "String": { - "sval": "int8alias2", - }, - }, - ], - "typemod": -1, - }, - "targettype": { - "location": 1478, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 50, - "stmt_location": 1450, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "int8alias1eq", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "strict", - "location": 1571, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "immutable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 1578, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "internal", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 1588, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "int8eq", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 1606, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 1532, - "names": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 1544, - "names": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 1564, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 116, - "stmt_location": 1501, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1655, - "names": [ - { - "String": { - "sval": "int8alias1eq", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "procedure", - "location": 1643, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1683, - "names": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leftarg", - "location": 1673, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1706, - "names": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "rightarg", - "location": 1695, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "=", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "commutator", - "location": 1722, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1753, - "names": [ - { - "String": { - "sval": "eqsel", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "restrict", - "location": 1742, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1767, - "names": [ - { - "String": { - "sval": "eqjoinsel", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "join", - "location": 1760, - }, - }, - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "merges", - "location": 1782, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "=", - }, - }, - ], - "kind": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 172, - "stmt_location": 1618, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "btree", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 1858, - "names": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 1870, - "names": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "=", - }, - }, - ], - }, - "number": 3, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "integer_ops", - }, - }, - ], - }, - }, - "stmt_len": 90, - "stmt_location": 1791, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "int8alias2eq", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "strict", - "location": 1952, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "immutable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 1959, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "internal", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 1969, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "int8eq", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 1987, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 1913, - "names": [ - { - "String": { - "sval": "int8alias2", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 1925, - "names": [ - { - "String": { - "sval": "int8alias2", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 1945, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 116, - "stmt_location": 1882, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2036, - "names": [ - { - "String": { - "sval": "int8alias2eq", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "procedure", - "location": 2024, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2064, - "names": [ - { - "String": { - "sval": "int8alias2", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leftarg", - "location": 2054, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2087, - "names": [ - { - "String": { - "sval": "int8alias2", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "rightarg", - "location": 2076, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "=", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "commutator", - "location": 2103, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2134, - "names": [ - { - "String": { - "sval": "eqsel", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "restrict", - "location": 2123, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2148, - "names": [ - { - "String": { - "sval": "eqjoinsel", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "join", - "location": 2141, - }, - }, - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "merges", - "location": 2163, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "=", - }, - }, - ], - "kind": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 172, - "stmt_location": 1999, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "btree", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 2239, - "names": [ - { - "String": { - "sval": "int8alias2", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 2251, - "names": [ - { - "String": { - "sval": "int8alias2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "=", - }, - }, - ], - }, - "number": 3, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "integer_ops", - }, - }, - ], - }, - }, - "stmt_len": 90, - "stmt_location": 2172, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "int8alias1eq", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "strict", - "location": 2327, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "immutable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 2334, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "internal", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 2344, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "int8eq", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 2362, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 2294, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 2300, - "names": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 2320, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 110, - "stmt_location": 2263, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2411, - "names": [ - { - "String": { - "sval": "int8alias1eq", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "procedure", - "location": 2399, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2439, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leftarg", - "location": 2429, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2456, - "names": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "rightarg", - "location": 2445, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2483, - "names": [ - { - "String": { - "sval": "eqsel", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "restrict", - "location": 2472, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2497, - "names": [ - { - "String": { - "sval": "eqjoinsel", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "join", - "location": 2490, - }, - }, - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "merges", - "location": 2512, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "=", - }, - }, - ], - "kind": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 146, - "stmt_location": 2374, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "btree", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 2588, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 2594, - "names": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "=", - }, - }, - ], - }, - "number": 3, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "integer_ops", - }, - }, - ], - }, - }, - "stmt_len": 84, - "stmt_location": 2521, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "int8alias1eq", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "strict", - "location": 2676, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "immutable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 2683, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "internal", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 2693, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "int8eq", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 2711, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 2637, - "names": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 2649, - "names": [ - { - "String": { - "sval": "int8alias2", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 2669, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 116, - "stmt_location": 2606, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2760, - "names": [ - { - "String": { - "sval": "int8alias1eq", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "procedure", - "location": 2748, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2788, - "names": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leftarg", - "location": 2778, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2811, - "names": [ - { - "String": { - "sval": "int8alias2", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "rightarg", - "location": 2800, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2838, - "names": [ - { - "String": { - "sval": "eqsel", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "restrict", - "location": 2827, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 2852, - "names": [ - { - "String": { - "sval": "eqjoinsel", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "join", - "location": 2845, - }, - }, - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "merges", - "location": 2867, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "=", - }, - }, - ], - "kind": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 152, - "stmt_location": 2723, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "btree", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 2943, - "names": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 2955, - "names": [ - { - "String": { - "sval": "int8alias2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "=", - }, - }, - ], - }, - "number": 3, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "integer_ops", - }, - }, - ], - }, - }, - "stmt_len": 90, - "stmt_location": 2876, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "int8alias1lt", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "strict", - "location": 3037, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "immutable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 3044, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "internal", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 3054, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "int8lt", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 3072, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 2998, - "names": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 3010, - "names": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 3030, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 116, - "stmt_location": 2967, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 3121, - "names": [ - { - "String": { - "sval": "int8alias1lt", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "procedure", - "location": 3109, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 3149, - "names": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "leftarg", - "location": 3139, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 3172, - "names": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "rightarg", - "location": 3161, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "<", - }, - }, - ], - "kind": "OBJECT_OPERATOR", - }, - }, - "stmt_len": 100, - "stmt_location": 3084, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "btree", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 1, - "name": { - "objargs": [ - { - "TypeName": { - "location": 3252, - "names": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 3264, - "names": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objname": [ - { - "String": { - "sval": "<", - }, - }, - ], - }, - "number": 1, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "integer_ops", - }, - }, - ], - }, - }, - "stmt_len": 90, - "stmt_location": 3185, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "int8alias1cmp", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "strict", - "location": 3340, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "immutable", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 3347, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "internal", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 3357, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "btint8cmp", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 3375, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 3308, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 3314, - "names": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 3334, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 113, - "stmt_location": 3276, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOpFamilyStmt": { - "amname": "btree", - "items": [ - { - "CreateOpClassItem": { - "itemtype": 2, - "name": { - "objargs": [ - { - "TypeName": { - "location": 3469, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - { - "TypeName": { - "location": 3475, - "names": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 3469, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 3475, - "names": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "int8alias1cmp", - }, - }, - ], - }, - "number": 1, - }, - }, - ], - "opfamilyname": [ - { - "String": { - "sval": "integer_ops", - }, - }, - ], - }, - }, - "stmt_len": 96, - "stmt_location": 3390, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 3502, - "relname": "ec0", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ff", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 3515, - }, - }, - ], - "is_local": true, - "location": 3507, - "typeName": { - "location": 3510, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 3528, - "typeName": { - "location": 3531, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "f2", - "is_local": true, - "location": 3537, - "typeName": { - "location": 3540, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 58, - "stmt_location": 3487, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 3560, - "relname": "ec1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ff", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 3573, - }, - }, - ], - "is_local": true, - "location": 3565, - "typeName": { - "location": 3568, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 3586, - "typeName": { - "location": 3589, - "names": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "f2", - "is_local": true, - "location": 3601, - "typeName": { - "location": 3604, - "names": [ - { - "String": { - "sval": "int8alias2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 69, - "stmt_location": 3546, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 3630, - "relname": "ec2", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "xf", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 3643, - }, - }, - ], - "is_local": true, - "location": 3635, - "typeName": { - "location": 3638, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "x1", - "is_local": true, - "location": 3656, - "typeName": { - "location": 3659, - "names": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "x2", - "is_local": true, - "location": 3671, - "typeName": { - "location": 3674, - "names": [ - { - "String": { - "sval": "int8alias2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 69, - "stmt_location": 3616, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 3767, - "sval": { - "sval": "off", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_hashjoin", - }, - }, - "stmt_len": 84, - "stmt_location": 3686, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 3795, - "sval": { - "sval": "off", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_mergejoin", - }, - }, - "stmt_len": 27, - "stmt_location": 3771, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 3990, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4017, - "relname": "ec0", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4010, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4010, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 4027, - }, - }, - "location": 4030, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 4032, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 4039, - }, - }, - "location": 4042, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4044, - "sval": { - "sval": "42", - }, - }, - }, - "location": 4048, - "typeName": { - "location": 4050, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 4035, - }, - }, - }, - }, - }, - }, - "stmt_len": 255, - "stmt_location": 3799, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 4065, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4092, - "relname": "ec0", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4085, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4085, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 4102, - }, - }, - "location": 4105, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 4107, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 4114, - }, - }, - "location": 4117, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4119, - "sval": { - "sval": "42", - }, - }, - }, - "location": 4123, - "typeName": { - "location": 4125, - "names": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 4110, - }, - }, - }, - }, - }, - }, - "stmt_len": 80, - "stmt_location": 4055, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 4146, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4173, - "relname": "ec1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4166, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4166, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 4183, - }, - }, - "location": 4186, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 4188, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 4195, - }, - }, - "location": 4198, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4200, - "sval": { - "sval": "42", - }, - }, - }, - "location": 4204, - "typeName": { - "location": 4206, - "names": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 4191, - }, - }, - }, - }, - }, - }, - "stmt_len": 80, - "stmt_location": 4136, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 4227, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4254, - "relname": "ec1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4247, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4247, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 4264, - }, - }, - "location": 4267, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 4269, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 4276, - }, - }, - "location": 4279, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4281, - "sval": { - "sval": "42", - }, - }, - }, - "location": 4285, - "typeName": { - "location": 4287, - "names": [ - { - "String": { - "sval": "int8alias2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 4272, - }, - }, - }, - }, - }, - }, - "stmt_len": 80, - "stmt_location": 4217, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 4309, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4336, - "relname": "ec1", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 4341, - "relname": "ec2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4329, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4329, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 4351, - }, - }, - "location": 4354, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x1", - }, - }, - ], - "location": 4356, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 4363, - }, - }, - "location": 4366, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4368, - "sval": { - "sval": "42", - }, - }, - }, - "location": 4372, - "typeName": { - "location": 4374, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 4359, - }, - }, - }, - }, - }, - }, - "stmt_len": 80, - "stmt_location": 4298, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 4389, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4416, - "relname": "ec1", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 4421, - "relname": "ec2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4409, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4409, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 4431, - }, - }, - "location": 4434, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x1", - }, - }, - ], - "location": 4436, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 4443, - }, - }, - "location": 4446, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4448, - "sval": { - "sval": "42", - }, - }, - }, - "location": 4452, - "typeName": { - "location": 4454, - "names": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 4439, - }, - }, - }, - }, - }, - }, - "stmt_len": 85, - "stmt_location": 4379, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 4475, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4502, - "relname": "ec1", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 4507, - "relname": "ec2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4495, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4495, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 4517, - }, - }, - "location": 4520, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x1", - }, - }, - ], - "location": 4522, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4529, - "sval": { - "sval": "42", - }, - }, - }, - "location": 4533, - "typeName": { - "location": 4535, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4540, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x1", - }, - }, - ], - "location": 4542, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 4525, - }, - }, - }, - }, - }, - }, - "stmt_len": 79, - "stmt_location": 4465, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 4555, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4582, - "relname": "ec1", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 4587, - "relname": "ec2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4575, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4575, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 4597, - }, - }, - "location": 4600, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x1", - }, - }, - ], - "location": 4602, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x1", - }, - }, - ], - "location": 4609, - }, - }, - "location": 4612, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4614, - "sval": { - "sval": "42", - }, - }, - }, - "location": 4618, - "typeName": { - "location": 4620, - "names": [ - { - "String": { - "sval": "int8alias1", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 4605, - }, - }, - }, - }, - }, - }, - "stmt_len": 85, - "stmt_location": 4545, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 4641, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4668, - "relname": "ec1", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 4673, - "relname": "ec2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4661, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4661, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 4683, - }, - }, - "location": 4686, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x1", - }, - }, - ], - "location": 4688, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x1", - }, - }, - ], - "location": 4695, - }, - }, - "location": 4698, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4700, - "sval": { - "sval": "42", - }, - }, - }, - "location": 4704, - "typeName": { - "location": 4706, - "names": [ - { - "String": { - "sval": "int8alias2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 4691, - }, - }, - }, - }, - }, - }, - "stmt_len": 85, - "stmt_location": 4631, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "ec1_expr1", - "indexParams": [ - { - "IndexElem": { - "expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 4757, - }, - }, - "location": 4760, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4762, - }, - }, - }, - }, - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 4752, - "relname": "ec1", - "relpersistence": "p", - }, - "unique": true, - }, - }, - "stmt_len": 48, - "stmt_location": 4717, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "ec1_expr2", - "indexParams": [ - { - "IndexElem": { - "expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 4805, - }, - }, - "location": 4808, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4810, - }, - }, - }, - }, - "location": 4812, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4814, - }, - }, - }, - }, - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 4800, - "relname": "ec1", - "relpersistence": "p", - }, - "unique": true, - }, - }, - "stmt_len": 51, - "stmt_location": 4766, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "ec1_expr3", - "indexParams": [ - { - "IndexElem": { - "expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 4857, - }, - }, - "location": 4860, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 4862, - }, - }, - }, - }, - "location": 4864, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4866, - }, - }, - }, - }, - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 4852, - "relname": "ec1", - "relpersistence": "p", - }, - "unique": true, - }, - }, - "stmt_len": 51, - "stmt_location": 4818, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "ec1_expr4", - "indexParams": [ - { - "IndexElem": { - "expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 4909, - }, - }, - "location": 4912, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 4914, - }, - }, - }, - }, - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 4904, - "relname": "ec1", - "relpersistence": "p", - }, - "unique": true, - }, - }, - "stmt_len": 47, - "stmt_location": 4870, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 4929, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4956, - "relname": "ec1", - "relpersistence": "p", - }, - }, - { - "RangeSubselect": { - "alias": { - "aliasname": "ss1", - }, - "subquery": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "ss0", - }, - "subquery": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5023, - "relname": "ec1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5005, - "name": "ff", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 5005, - }, - }, - "location": 5008, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5010, - }, - }, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5078, - "relname": "ec1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5060, - "name": "ff", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 5060, - }, - }, - "location": 5063, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 5065, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4973, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 4973, - }, - }, - "location": 4976, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4978, - }, - }, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5131, - "relname": "ec1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5114, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 5114, - }, - }, - "location": 5117, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 5119, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4949, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4949, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ss1", - }, - }, - { - "String": { - "sval": "x", - }, - }, - ], - "location": 5151, - }, - }, - "location": 5157, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ec1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 5159, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ec1", - }, - }, - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 5170, - }, - }, - "location": 5177, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 42, - }, - "location": 5179, - }, - }, - "location": 5181, - "typeName": { - "location": 5183, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 5166, - }, - }, - }, - }, - }, - }, - "stmt_len": 269, - "stmt_location": 4918, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 5199, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5226, - "relname": "ec1", - "relpersistence": "p", - }, - }, - { - "RangeSubselect": { - "alias": { - "aliasname": "ss1", - }, - "subquery": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "ss0", - }, - "subquery": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5293, - "relname": "ec1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5275, - "name": "ff", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 5275, - }, - }, - "location": 5278, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5280, - }, - }, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5348, - "relname": "ec1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5330, - "name": "ff", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 5330, - }, - }, - "location": 5333, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 5335, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5243, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 5243, - }, - }, - "location": 5246, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5248, - }, - }, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5401, - "relname": "ec1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5384, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 5384, - }, - }, - "location": 5387, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 5389, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5219, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 5219, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ss1", - }, - }, - { - "String": { - "sval": "x", - }, - }, - ], - "location": 5421, - }, - }, - "location": 5427, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ec1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 5429, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ec1", - }, - }, - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 5440, - }, - }, - "location": 5447, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 42, - }, - "location": 5449, - }, - }, - "location": 5451, - "typeName": { - "location": 5453, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ec1", - }, - }, - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 5462, - }, - }, - "location": 5469, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ec1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 5471, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 5436, - }, - }, - }, - }, - }, - }, - "stmt_len": 289, - "stmt_location": 5188, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 5489, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5516, - "relname": "ec1", - "relpersistence": "p", - }, - }, - { - "RangeSubselect": { - "alias": { - "aliasname": "ss1", - }, - "subquery": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "ss0", - }, - "subquery": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5583, - "relname": "ec1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5565, - "name": "ff", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 5565, - }, - }, - "location": 5568, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5570, - }, - }, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5638, - "relname": "ec1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5620, - "name": "ff", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 5620, - }, - }, - "location": 5623, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 5625, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5533, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 5533, - }, - }, - "location": 5536, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5538, - }, - }, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5691, - "relname": "ec1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5674, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 5674, - }, - }, - "location": 5677, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 5679, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - { - "RangeSubselect": { - "alias": { - "aliasname": "ss2", - }, - "subquery": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "ss0", - }, - "subquery": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5766, - "relname": "ec1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5748, - "name": "ff", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 5748, - }, - }, - "location": 5751, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5753, - }, - }, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5821, - "relname": "ec1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5803, - "name": "ff", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 5803, - }, - }, - "location": 5806, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 5808, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5716, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 5716, - }, - }, - "location": 5719, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5721, - }, - }, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5874, - "relname": "ec1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5857, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 5857, - }, - }, - "location": 5860, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 5862, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5509, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 5509, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ss1", - }, - }, - { - "String": { - "sval": "x", - }, - }, - ], - "location": 5894, - }, - }, - "location": 5900, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ec1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 5902, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ss1", - }, - }, - { - "String": { - "sval": "x", - }, - }, - ], - "location": 5913, - }, - }, - "location": 5919, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ss2", - }, - }, - { - "String": { - "sval": "x", - }, - }, - ], - "location": 5921, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ec1", - }, - }, - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 5931, - }, - }, - "location": 5938, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 42, - }, - "location": 5940, - }, - }, - "location": 5942, - "typeName": { - "location": 5944, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 5909, - }, - }, - }, - }, - }, - }, - "stmt_len": 470, - "stmt_location": 5478, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 6007, - "sval": { - "sval": "on", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_mergejoin", - }, - }, - "stmt_len": 60, - "stmt_location": 5949, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 6033, - "sval": { - "sval": "off", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_nestloop", - }, - }, - "stmt_len": 26, - "stmt_location": 6010, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 6048, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6075, - "relname": "ec1", - "relpersistence": "p", - }, - }, - { - "RangeSubselect": { - "alias": { - "aliasname": "ss1", - }, - "subquery": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "ss0", - }, - "subquery": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6142, - "relname": "ec1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6124, - "name": "ff", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 6124, - }, - }, - "location": 6127, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6129, - }, - }, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6197, - "relname": "ec1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6179, - "name": "ff", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 6179, - }, - }, - "location": 6182, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 6184, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6092, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 6092, - }, - }, - "location": 6095, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6097, - }, - }, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6250, - "relname": "ec1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6233, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 6233, - }, - }, - "location": 6236, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 6238, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - { - "RangeSubselect": { - "alias": { - "aliasname": "ss2", - }, - "subquery": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "ss0", - }, - "subquery": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6325, - "relname": "ec1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6307, - "name": "ff", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 6307, - }, - }, - "location": 6310, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6312, - }, - }, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6380, - "relname": "ec1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6362, - "name": "ff", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 6362, - }, - }, - "location": 6365, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 6367, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6275, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 6275, - }, - }, - "location": 6278, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6280, - }, - }, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6433, - "relname": "ec1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6416, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 6416, - }, - }, - "location": 6419, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 6421, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6068, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 6068, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ss1", - }, - }, - { - "String": { - "sval": "x", - }, - }, - ], - "location": 6453, - }, - }, - "location": 6459, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ec1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 6461, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ss1", - }, - }, - { - "String": { - "sval": "x", - }, - }, - ], - "location": 6472, - }, - }, - "location": 6478, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ss2", - }, - }, - { - "String": { - "sval": "x", - }, - }, - ], - "location": 6480, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ec1", - }, - }, - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 6490, - }, - }, - "location": 6497, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 42, - }, - "location": 6499, - }, - }, - "location": 6501, - "typeName": { - "location": 6503, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 6468, - }, - }, - }, - }, - }, - }, - "stmt_len": 470, - "stmt_location": 6037, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 6564, - "sval": { - "sval": "on", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_nestloop", - }, - }, - "stmt_len": 58, - "stmt_location": 6508, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 6591, - "sval": { - "sval": "off", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_mergejoin", - }, - }, - "stmt_len": 27, - "stmt_location": 6567, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "ec1_expr3", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_INDEX", - }, - }, - "stmt_len": 22, - "stmt_location": 6595, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 6629, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6656, - "relname": "ec1", - "relpersistence": "p", - }, - }, - { - "RangeSubselect": { - "alias": { - "aliasname": "ss1", - }, - "subquery": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "ss0", - }, - "subquery": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6723, - "relname": "ec1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6705, - "name": "ff", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 6705, - }, - }, - "location": 6708, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6710, - }, - }, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6778, - "relname": "ec1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6760, - "name": "ff", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 6760, - }, - }, - "location": 6763, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 6765, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6673, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 6673, - }, - }, - "location": 6676, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6678, - }, - }, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6831, - "relname": "ec1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6814, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 6814, - }, - }, - "location": 6817, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 6819, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6649, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 6649, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ss1", - }, - }, - { - "String": { - "sval": "x", - }, - }, - ], - "location": 6851, - }, - }, - "location": 6857, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ec1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 6859, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ec1", - }, - }, - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 6870, - }, - }, - "location": 6877, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 42, - }, - "location": 6879, - }, - }, - "location": 6881, - "typeName": { - "location": 6883, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 6866, - }, - }, - }, - }, - }, - }, - "stmt_len": 269, - "stmt_location": 6618, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 6946, - "sval": { - "sval": "on", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_mergejoin", - }, - }, - "stmt_len": 60, - "stmt_location": 6888, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 6972, - "sval": { - "sval": "off", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_nestloop", - }, - }, - "stmt_len": 26, - "stmt_location": 6949, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 6987, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7014, - "relname": "ec1", - "relpersistence": "p", - }, - }, - { - "RangeSubselect": { - "alias": { - "aliasname": "ss1", - }, - "subquery": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "ss0", - }, - "subquery": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7081, - "relname": "ec1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7063, - "name": "ff", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 7063, - }, - }, - "location": 7066, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 7068, - }, - }, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7136, - "relname": "ec1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7118, - "name": "ff", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 7118, - }, - }, - "location": 7121, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 7123, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7031, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 7031, - }, - }, - "location": 7034, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 7036, - }, - }, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7189, - "relname": "ec1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7172, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 7172, - }, - }, - "location": 7175, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 7177, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7007, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 7007, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ss1", - }, - }, - { - "String": { - "sval": "x", - }, - }, - ], - "location": 7209, - }, - }, - "location": 7215, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ec1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 7217, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ec1", - }, - }, - { - "String": { - "sval": "ff", - }, - }, - ], - "location": 7228, - }, - }, - "location": 7235, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 42, - }, - "location": 7237, - }, - }, - "location": 7239, - "typeName": { - "location": 7241, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 7224, - }, - }, - }, - }, - }, - }, - "stmt_len": 269, - "stmt_location": 6976, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/errors.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 62, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 62, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - }, - }, - "stmt_len": 160, - "stmt_location": 64, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 261, - "relname": "nonesuch", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 254, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 254, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 225, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 320, - "relname": "pg_database", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 306, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nonesuch", - }, - }, - ], - "location": 306, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 270, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 459, - "relname": "pg_database", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 452, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 452, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nonesuch", - }, - }, - ], - "location": 477, - }, - }, - "location": 486, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_database", - }, - }, - { - "String": { - "sval": "datname", - }, - }, - ], - "location": 488, - }, - }, - }, - }, - }, - }, - "stmt_len": 175, - "stmt_location": 332, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 565, - "relname": "pg_database", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 558, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 558, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_database", - }, - }, - { - "String": { - "sval": "datname", - }, - }, - ], - "location": 583, - }, - }, - "location": 603, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nonesuch", - }, - }, - ], - "location": 605, - }, - }, - }, - }, - }, - }, - "stmt_len": 105, - "stmt_location": 508, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "distinctClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "foobar", - }, - }, - ], - "location": 680, - }, - }, - ], - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 695, - "relname": "pg_database", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 688, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 688, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 92, - "stmt_location": 614, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 830, - "relname": "nonesuch", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 131, - "stmt_location": 707, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "nonesuch", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 127, - "stmt_location": 839, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "newnonesuch", - "relation": { - "inh": true, - "location": 1092, - "relname": "nonesuch", - "relpersistence": "p", - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_TABLE", - }, - }, - "stmt_len": 155, - "stmt_location": 967, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "stud_emp", - "relation": { - "inh": true, - "location": 1157, - "relname": "nonesuch", - "relpersistence": "p", - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_TABLE", - }, - }, - "stmt_len": 61, - "stmt_location": 1123, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "aggtest", - "relation": { - "inh": true, - "location": 1211, - "relname": "stud_emp", - "relpersistence": "p", - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_TABLE", - }, - }, - "stmt_len": 52, - "stmt_location": 1185, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "stud_emp", - "relation": { - "inh": true, - "location": 1269, - "relname": "stud_emp", - "relpersistence": "p", - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_TABLE", - }, - }, - "stmt_len": 58, - "stmt_location": 1238, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "newnonesuchatt", - "relation": { - "inh": true, - "location": 1355, - "relname": "nonesuchrel", - "relpersistence": "p", - }, - "relationType": "OBJECT_TABLE", - "renameType": "OBJECT_COLUMN", - "subname": "nonesuchatt", - }, - }, - "stmt_len": 113, - "stmt_location": 1297, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "newnonesuchatt", - "relation": { - "inh": true, - "location": 1446, - "relname": "emp", - "relpersistence": "p", - }, - "relationType": "OBJECT_TABLE", - "renameType": "OBJECT_COLUMN", - "subname": "nonesuchatt", - }, - }, - "stmt_len": 82, - "stmt_location": 1411, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "manager", - "relation": { - "inh": true, - "location": 1520, - "relname": "emp", - "relpersistence": "p", - }, - "relationType": "OBJECT_TABLE", - "renameType": "OBJECT_COLUMN", - "subname": "salary", - }, - }, - "stmt_len": 61, - "stmt_location": 1494, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "oid", - "relation": { - "inh": true, - "location": 1582, - "relname": "emp", - "relpersistence": "p", - }, - "relationType": "OBJECT_TABLE", - "renameType": "OBJECT_COLUMN", - "subname": "salary", - }, - }, - "stmt_len": 57, - "stmt_location": 1556, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 50, - "stmt_location": 1614, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 22, - "stmt_location": 1665, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1786, - "names": [ - { - "String": { - "sval": "int4pl", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 1778, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1810, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "basetype", - "location": 1799, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1829, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 1821, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1852, - "names": [ - { - "String": { - "sval": "int2um", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "finalfunc", - "location": 1840, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "0", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "initcond", - "location": 1865, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "newavg2", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - "oldstyle": true, - }, - }, - "stmt_len": 192, - "stmt_location": 1688, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1938, - "names": [ - { - "String": { - "sval": "int4inc", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 1930, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1960, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 1952, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "0", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "initcond", - "location": 1971, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "newcnt1", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - "oldstyle": true, - }, - }, - "stmt_len": 105, - "stmt_location": 1881, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3923, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3923, - }, - }, - "location": 3924, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 3925, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 1939, - "stmt_location": 1987, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3936, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3936, - }, - }, - "location": 3937, - "typeName": { - "location": 3939, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3943, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 3944, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 18, - "stmt_location": 3927, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3955, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3955, - }, - }, - "location": 3956, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": {}, - "location": 3957, - }, - }, - "location": 3958, - "typeName": { - "location": 3960, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 18, - "stmt_location": 3946, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3974, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3974, - }, - }, - "location": 3975, - "typeName": { - "location": 3977, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3981, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 3982, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 18, - "stmt_location": 3965, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3993, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3993, - }, - }, - "location": 3994, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": {}, - "location": 3995, - }, - }, - "location": 3996, - "typeName": { - "location": 3998, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 18, - "stmt_location": 3984, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4012, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4012, - }, - }, - "location": 4013, - "typeName": { - "location": 4015, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4022, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 4023, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 21, - "stmt_location": 4003, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4034, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4034, - }, - }, - "location": 4035, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": {}, - "location": 4036, - }, - }, - "location": 4037, - "typeName": { - "location": 4039, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 21, - "stmt_location": 4025, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4056, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4056, - }, - }, - "location": 4057, - "typeName": { - "location": 4059, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4065, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 4066, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 20, - "stmt_location": 4047, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4077, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4077, - }, - }, - "location": 4078, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": {}, - "location": 4079, - }, - }, - "location": 4080, - "typeName": { - "location": 4082, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 20, - "stmt_location": 4068, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4098, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4098, - }, - }, - "location": 4099, - "typeName": { - "location": 4101, - "names": [ - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4107, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 4108, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 20, - "stmt_location": 4089, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4119, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4119, - }, - }, - "location": 4120, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": {}, - "location": 4121, - }, - }, - "location": 4122, - "typeName": { - "location": 4124, - "names": [ - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 20, - "stmt_location": 4110, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/event_trigger.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateEventTrigStmt": { - "eventname": "ddl_command_start", - "funcname": [ - { - "String": { - "sval": "pg_backend_pid", - }, - }, - ], - "trigname": "regress_event_trigger", - }, - }, - "stmt_len": 141, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "test_event_trigger", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -BEGIN - RAISE NOTICE 'test_event_trigger: % %', tg_event, tg_tag; -END -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 209, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 290, - }, - }, - ], - "returnType": { - "location": 195, - "names": [ - { - "String": { - "sval": "event_trigger", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 164, - "stmt_location": 142, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "test_event_trigger_arg", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " BEGIN RETURN 1; END ", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 443, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 472, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 415, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "name", - }, - }, - ], - "returnType": { - "location": 429, - "names": [ - { - "String": { - "sval": "event_trigger", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 181, - "stmt_location": 307, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "test_event_trigger_sql", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -SELECT 1 ", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 609, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 627, - }, - }, - ], - "returnType": { - "location": 595, - "names": [ - { - "String": { - "sval": "event_trigger", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 150, - "stmt_location": 489, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateEventTrigStmt": { - "eventname": "elephant_bootstrap", - "funcname": [ - { - "String": { - "sval": "test_event_trigger", - }, - }, - ], - "trigname": "regress_event_trigger", - }, - }, - "stmt_len": 158, - "stmt_location": 640, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateEventTrigStmt": { - "eventname": "ddl_command_start", - "funcname": [ - { - "String": { - "sval": "test_event_trigger", - }, - }, - ], - "trigname": "regress_event_trigger", - }, - }, - "stmt_len": 113, - "stmt_location": 799, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateEventTrigStmt": { - "eventname": "ddl_command_end", - "funcname": [ - { - "String": { - "sval": "test_event_trigger", - }, - }, - ], - "trigname": "regress_event_trigger_end", - }, - }, - "stmt_len": 115, - "stmt_location": 913, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateEventTrigStmt": { - "eventname": "ddl_command_start", - "funcname": [ - { - "String": { - "sval": "test_event_trigger", - }, - }, - ], - "trigname": "regress_event_trigger2", - "whenclause": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "sandwhich", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "food", - "location": 1156, - }, - }, - ], - }, - }, - "stmt_len": 190, - "stmt_location": 1029, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateEventTrigStmt": { - "eventname": "ddl_command_start", - "funcname": [ - { - "String": { - "sval": "test_event_trigger", - }, - }, - ], - "trigname": "regress_event_trigger2", - "whenclause": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "sandwhich", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "tag", - "location": 1348, - }, - }, - ], - }, - }, - "stmt_len": 190, - "stmt_location": 1220, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateEventTrigStmt": { - "eventname": "ddl_command_start", - "funcname": [ - { - "String": { - "sval": "test_event_trigger", - }, - }, - ], - "trigname": "regress_event_trigger2", - "whenclause": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "create table", - }, - }, - { - "String": { - "sval": "create skunkcabbage", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "tag", - "location": 1549, - }, - }, - ], - }, - }, - "stmt_len": 226, - "stmt_location": 1411, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateEventTrigStmt": { - "eventname": "ddl_command_start", - "funcname": [ - { - "String": { - "sval": "test_event_trigger", - }, - }, - ], - "trigname": "regress_event_trigger2", - "whenclause": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "DROP EVENT TRIGGER", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "tag", - "location": 1773, - }, - }, - ], - }, - }, - "stmt_len": 206, - "stmt_location": 1638, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateEventTrigStmt": { - "eventname": "ddl_command_start", - "funcname": [ - { - "String": { - "sval": "test_event_trigger", - }, - }, - ], - "trigname": "regress_event_trigger2", - "whenclause": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "CREATE ROLE", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "tag", - "location": 1980, - }, - }, - ], - }, - }, - "stmt_len": 199, - "stmt_location": 1845, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateEventTrigStmt": { - "eventname": "ddl_command_start", - "funcname": [ - { - "String": { - "sval": "test_event_trigger", - }, - }, - ], - "trigname": "regress_event_trigger2", - "whenclause": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "CREATE DATABASE", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "tag", - "location": 2180, - }, - }, - ], - }, - }, - "stmt_len": 203, - "stmt_location": 2045, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateEventTrigStmt": { - "eventname": "ddl_command_start", - "funcname": [ - { - "String": { - "sval": "test_event_trigger", - }, - }, - ], - "trigname": "regress_event_trigger2", - "whenclause": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "CREATE TABLESPACE", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "tag", - "location": 2384, - }, - }, - ], - }, - }, - "stmt_len": 205, - "stmt_location": 2249, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateEventTrigStmt": { - "eventname": "ddl_command_start", - "funcname": [ - { - "String": { - "sval": "test_event_trigger", - }, - }, - ], - "trigname": "regress_event_trigger2", - "whenclause": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "create table", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "tag", - "location": 2584, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "CREATE FUNCTION", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "tag", - "location": 2612, - }, - }, - ], - }, - }, - "stmt_len": 225, - "stmt_location": 2455, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateEventTrigStmt": { - "eventname": "ddl_command_start", - "funcname": [ - { - "String": { - "sval": "test_event_trigger", - }, - }, - ], - "trigname": "regress_event_trigger2", - "whenclause": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "create table", - }, - }, - { - "String": { - "sval": "CREATE FUNCTION", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "tag", - "location": 2936, - }, - }, - ], - }, - }, - "stmt_len": 339, - "stmt_location": 2681, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "test comment", - "object": { - "String": { - "sval": "regress_event_trigger", - }, - }, - "objtype": "OBJECT_EVENT_TRIGGER", - }, - }, - "stmt_len": 72, - "stmt_location": 3021, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "role": "regression_bob", - "stmt_type": "ROLESTMT_ROLE", - }, - }, - "stmt_len": 195, - "stmt_location": 3094, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 3300, - "sval": { - "sval": "regression_bob", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 24, - "stmt_location": 3290, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateEventTrigStmt": { - "eventname": "ddl_command_start", - "funcname": [ - { - "String": { - "sval": "test_event_trigger", - }, - }, - ], - "trigname": "regress_event_trigger_noperms", - }, - }, - "stmt_len": 114, - "stmt_location": 3315, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "role", - }, - }, - "stmt_len": 11, - "stmt_location": 3430, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEventTrigStmt": { - "tgenabled": "R", - "trigname": "regress_event_trigger", - }, - }, - "stmt_len": 68, - "stmt_location": 3442, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEventTrigStmt": { - "tgenabled": "A", - "trigname": "regress_event_trigger", - }, - }, - "stmt_len": 56, - "stmt_location": 3511, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEventTrigStmt": { - "tgenabled": "O", - "trigname": "regress_event_trigger", - }, - }, - "stmt_len": 49, - "stmt_location": 3568, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterEventTrigStmt": { - "tgenabled": "D", - "trigname": "regress_event_trigger", - }, - }, - "stmt_len": 50, - "stmt_location": 3618, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 3786, - "relname": "event_trigger_fire1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 3807, - "typeName": { - "location": 3809, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 144, - "stmt_location": 3669, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 3917, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "RangeVar": { - "inh": true, - "location": 3894, - "relname": "event_trigger_fire1", - "relpersistence": "p", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 109, - "stmt_location": 3814, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "here is a comment", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "event_trigger_fire1", - }, - }, - ], - }, - }, - "objtype": "OBJECT_TABLE", - }, - }, - "stmt_len": 60, - "stmt_location": 3924, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 4031, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - ], - "objects": [ - { - "RangeVar": { - "inh": true, - "location": 4006, - "relname": "event_trigger_fire1", - "relpersistence": "p", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 52, - "stmt_location": 3985, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "event_trigger_fire1", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 31, - "stmt_location": 4038, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFdwStmt": { - "fdwname": "useless", - }, - }, - "stmt_len": 36, - "stmt_location": 4070, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateForeignServerStmt": { - "fdwname": "useless", - "servername": "useless_server", - }, - }, - "stmt_len": 58, - "stmt_location": 4107, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateUserMappingStmt": { - "servername": "useless_server", - "user": { - "location": 4191, - "rolename": "regression_bob", - "roletype": "ROLESPEC_CSTRING", - }, - }, - }, - "stmt_len": 61, - "stmt_location": 4166, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterDefaultPrivilegesStmt": { - "action": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 4308, - "rolename": "regression_bob", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "privileges": [ - { - "AccessPriv": { - "priv_name": "delete", - }, - }, - ], - "targtype": "ACL_TARGET_DEFAULTS", - }, - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "RoleSpec": { - "location": 4263, - "rolename": "regression_bob", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "roles", - "location": 4254, - }, - }, - ], - }, - }, - "stmt_len": 94, - "stmt_location": 4228, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 4420, - "rolename": "regression_bob", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "String": { - "sval": "regress_event_trigger", - }, - }, - "objectType": "OBJECT_EVENT_TRIGGER", - }, - }, - "stmt_len": 111, - "stmt_location": 4323, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterRoleStmt": { - "action": 1, - "options": [ - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "superuser", - "location": 4503, - }, - }, - ], - "role": { - "location": 4488, - "rolename": "regression_bob", - "roletype": "ROLESPEC_CSTRING", - }, - }, - }, - "stmt_len": 77, - "stmt_location": 4435, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 4565, - "rolename": "regression_bob", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "String": { - "sval": "regress_event_trigger", - }, - }, - "objectType": "OBJECT_EVENT_TRIGGER", - }, - }, - "stmt_len": 66, - "stmt_location": 4513, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "regress_event_trigger2", - "object": { - "String": { - "sval": "regress_event_trigger", - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_EVENT_TRIGGER", - }, - }, - "stmt_len": 107, - "stmt_location": 4580, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "regress_event_trigger3", - "object": { - "String": { - "sval": "regress_event_trigger", - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_EVENT_TRIGGER", - }, - }, - "stmt_len": 82, - "stmt_location": 4688, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "regress_event_trigger", - }, - }, - ], - "removeType": "OBJECT_EVENT_TRIGGER", - }, - }, - "stmt_len": 81, - "stmt_location": 4771, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 4914, - "rolename": "regression_bob", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 75, - "stmt_location": 4853, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "String": { - "sval": "regress_event_trigger2", - }, - }, - ], - "removeType": "OBJECT_EVENT_TRIGGER", - }, - }, - "stmt_len": 138, - "stmt_location": 4929, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "String": { - "sval": "regress_event_trigger2", - }, - }, - ], - "removeType": "OBJECT_EVENT_TRIGGER", - }, - }, - "stmt_len": 52, - "stmt_location": 5068, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "regress_event_trigger3", - }, - }, - ], - "removeType": "OBJECT_EVENT_TRIGGER", - }, - }, - "stmt_len": 42, - "stmt_location": 5121, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "regress_event_trigger_end", - }, - }, - ], - "removeType": "OBJECT_EVENT_TRIGGER", - }, - }, - "stmt_len": 45, - "stmt_location": 5164, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateSchemaStmt": { - "authrole": { - "location": 5287, - "rolename": "regression_bob", - "roletype": "ROLESPEC_CSTRING", - }, - "schemaname": "schema_one", - }, - }, - "stmt_len": 91, - "stmt_location": 5210, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateSchemaStmt": { - "authrole": { - "location": 5342, - "rolename": "regression_bob", - "roletype": "ROLESPEC_CSTRING", - }, - "schemaname": "schema_two", - }, - }, - "stmt_len": 54, - "stmt_location": 5302, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateSchemaStmt": { - "authrole": { - "location": 5397, - "rolename": "regression_bob", - "roletype": "ROLESPEC_CSTRING", - }, - "schemaname": "audit_tbls", - }, - }, - "stmt_len": 54, - "stmt_location": 5357, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 5431, - "relname": "a_temp_tbl", - "relpersistence": "t", - }, - }, - }, - "stmt_len": 32, - "stmt_location": 5412, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 5472, - "sval": { - "sval": "regression_bob", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "session_authorization", - }, - }, - "stmt_len": 41, - "stmt_location": 5445, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 5502, - "relname": "table_one", - "relpersistence": "p", - "schemaname": "schema_one", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 5523, - "typeName": { - "location": 5525, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 5487, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 5544, - "relname": "table two", - "relpersistence": "p", - "schemaname": "schema_one", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 5567, - "typeName": { - "location": 5569, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 43, - "stmt_location": 5530, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 5588, - "relname": "table_three", - "relpersistence": "p", - "schemaname": "schema_one", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 5611, - "typeName": { - "location": 5613, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 43, - "stmt_location": 5574, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 5632, - "relname": "schema_one_table_two", - "relpersistence": "p", - "schemaname": "audit_tbls", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "the_value", - "is_local": true, - "location": 5664, - "typeName": { - "location": 5674, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 5618, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 5695, - "relname": "table_two", - "relpersistence": "p", - "schemaname": "schema_two", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 5716, - "typeName": { - "location": 5718, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 5680, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 5737, - "relname": "table_three", - "relpersistence": "p", - "schemaname": "schema_two", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 5760, - "typeName": { - "location": 5762, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 5767, - "typeName": { - "location": 5769, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 5723, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 5789, - "relname": "schema_two_table_three", - "relpersistence": "p", - "schemaname": "audit_tbls", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "the_value", - "is_local": true, - "location": 5823, - "typeName": { - "location": 5833, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 5775, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "schema_two", - }, - }, - { - "String": { - "sval": "add", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 5905, - }, - }, - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": false, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "strict", - "location": 5924, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " BEGIN RETURN coalesce($1,0) + coalesce($2,0); END; ", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 5947, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 5883, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 5888, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "replace": true, - "returnType": { - "location": 5901, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 167, - "stmt_location": 5839, - }, - }, - { - "RawStmt": { - "stmt": { - "DefineStmt": { - "definition": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 6057, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "basetype", - "location": 6046, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 6070, - "names": [ - { - "String": { - "sval": "schema_two", - }, - }, - { - "String": { - "sval": "add", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "sfunc", - "location": 6062, - }, - }, - { - "DefElem": { - "arg": { - "TypeName": { - "location": 6094, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "stype", - "location": 6086, - }, - }, - ], - "defnames": [ - { - "String": { - "sval": "schema_two", - }, - }, - { - "String": { - "sval": "newton", - }, - }, - ], - "kind": "OBJECT_AGGREGATE", - "oldstyle": true, - }, - }, - "stmt_len": 91, - "stmt_location": 6007, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "session_authorization", - }, - }, - "stmt_len": 29, - "stmt_location": 6099, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 6144, - "relname": "undroppable_objs", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "object_type", - "is_local": true, - "location": 6164, - "typeName": { - "location": 6176, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "object_identity", - "is_local": true, - "location": 6183, - "typeName": { - "location": 6199, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 76, - "stmt_location": 6129, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 6219, - "relname": "undroppable_objs", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 6244, - "sval": { - "sval": "table", - }, - }, - }, - { - "A_Const": { - "location": 6253, - "sval": { - "sval": "schema_one.table_three", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "location": 6281, - "sval": { - "sval": "table", - }, - }, - }, - { - "A_Const": { - "location": 6290, - "sval": { - "sval": "audit_tbls.schema_two_table_three", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 120, - "stmt_location": 6206, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 6342, - "relname": "dropped_objects", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "type", - "is_local": true, - "location": 6361, - "typeName": { - "location": 6366, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "schema", - "is_local": true, - "location": 6373, - "typeName": { - "location": 6380, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "object", - "is_local": true, - "location": 6387, - "typeName": { - "location": 6394, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 6327, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "undroppable", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 6613, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -DECLARE - obj record; -BEGIN - PERFORM 1 FROM pg_tables WHERE tablename = 'undroppable_objs'; - IF NOT FOUND THEN - RAISE NOTICE 'table undroppable_objs not found, skipping'; - RETURN; - END IF; - FOR obj IN - SELECT * FROM pg_event_trigger_dropped_objects() JOIN - undroppable_objs USING (object_type, object_identity) - LOOP - RAISE EXCEPTION 'object % of type % cannot be dropped', - obj.object_identity, obj.object_type; - END LOOP; -END; -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 6630, - }, - }, - ], - "replace": true, - "returnType": { - "location": 6599, - "names": [ - { - "String": { - "sval": "event_trigger", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 673, - "stmt_location": 6401, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateEventTrigStmt": { - "eventname": "sql_drop", - "funcname": [ - { - "String": { - "sval": "undroppable", - }, - }, - ], - "trigname": "undroppable", - }, - }, - "stmt_len": 79, - "stmt_location": 7075, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "test_evtrig_dropped_objects", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 7236, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -DECLARE - obj record; -BEGIN - FOR obj IN SELECT * FROM pg_event_trigger_dropped_objects() - LOOP - IF obj.object_type = 'table' THEN - EXECUTE format('DROP TABLE IF EXISTS audit_tbls.%I', - format('%s_%s', obj.schema_name, obj.object_name)); - END IF; - - INSERT INTO dropped_objects - (type, schema, object) VALUES - (obj.object_type, obj.schema_name, obj.object_identity); - END LOOP; -END -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 7253, - }, - }, - ], - "replace": true, - "returnType": { - "location": 7222, - "names": [ - { - "String": { - "sval": "event_trigger", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 532, - "stmt_location": 7155, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateEventTrigStmt": { - "eventname": "sql_drop", - "funcname": [ - { - "String": { - "sval": "test_evtrig_dropped_objects", - }, - }, - ], - "trigname": "regress_event_trigger_drop_objects", - "whenclause": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "drop table", - }, - }, - { - "String": { - "sval": "drop function", - }, - }, - { - "String": { - "sval": "drop view", - }, - }, - { - "String": { - "sval": "drop owned", - }, - }, - { - "String": { - "sval": "drop schema", - }, - }, - { - "String": { - "sval": "alter table", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "tag", - "location": 7764, - }, - }, - ], - }, - }, - "stmt_len": 222, - "stmt_location": 7688, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "a", - "subtype": "AT_DropColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 7925, - "relname": "table_one", - "relpersistence": "p", - "schemaname": "schema_one", - }, - }, - }, - "stmt_len": 48, - "stmt_location": 7911, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "String": { - "sval": "schema_one", - }, - }, - { - "String": { - "sval": "schema_two", - }, - }, - ], - "removeType": "OBJECT_SCHEMA", - }, - }, - "stmt_len": 43, - "stmt_location": 7960, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 8017, - "relname": "undroppable_objs", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "object_identity", - }, - }, - ], - "location": 8040, - }, - }, - "location": 8056, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 8058, - "sval": { - "sval": "audit_tbls.schema_two_table_three", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 89, - "stmt_location": 8004, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "String": { - "sval": "schema_one", - }, - }, - { - "String": { - "sval": "schema_two", - }, - }, - ], - "removeType": "OBJECT_SCHEMA", - }, - }, - "stmt_len": 43, - "stmt_location": 8094, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 8151, - "relname": "undroppable_objs", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "object_identity", - }, - }, - ], - "location": 8174, - }, - }, - "location": 8190, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 8192, - "sval": { - "sval": "schema_one.table_three", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 78, - "stmt_location": 8138, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "String": { - "sval": "schema_one", - }, - }, - { - "String": { - "sval": "schema_two", - }, - }, - ], - "removeType": "OBJECT_SCHEMA", - }, - }, - "stmt_len": 43, - "stmt_location": 8217, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8277, - "relname": "dropped_objects", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8270, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 8270, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "NullTest": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "schema", - }, - }, - ], - "location": 8299, - }, - }, - "location": 8306, - "nulltesttype": "IS_NULL", - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "schema", - }, - }, - ], - "location": 8317, - }, - }, - "location": 8324, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 8327, - "sval": { - "sval": "pg_toast", - }, - }, - }, - }, - }, - ], - "boolop": "OR_EXPR", - "location": 8314, - }, - }, - }, - }, - "stmt_len": 76, - "stmt_location": 8261, - }, - }, - { - "RawStmt": { - "stmt": { - "DropOwnedStmt": { - "behavior": "DROP_RESTRICT", - "roles": [ - { - "RoleSpec": { - "location": 8354, - "rolename": "regression_bob", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 8338, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8384, - "relname": "dropped_objects", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8377, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 8377, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "type", - }, - }, - ], - "location": 8406, - }, - }, - "location": 8411, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 8413, - "sval": { - "sval": "schema", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 52, - "stmt_location": 8369, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 8434, - "rolename": "regression_bob", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 8422, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "regress_event_trigger_drop_objects", - }, - }, - ], - "removeType": "OBJECT_EVENT_TRIGGER", - }, - }, - "stmt_len": 55, - "stmt_location": 8449, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "undroppable", - }, - }, - ], - "removeType": "OBJECT_EVENT_TRIGGER", - }, - }, - "stmt_len": 31, - "stmt_location": 8505, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "event_trigger_report_dropped", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 8621, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -DECLARE r record; -BEGIN - FOR r IN SELECT * from pg_event_trigger_dropped_objects() - LOOP - IF NOT r.normal AND NOT r.original THEN - CONTINUE; - END IF; - RAISE NOTICE 'NORMAL: orig=% normal=% istemp=% type=% identity=% name=% args=%', - r.original, r.normal, r.is_temporary, r.object_type, - r.object_identity, r.address_names, r.address_args; - END LOOP; -END; ", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 8638, - }, - }, - ], - "replace": true, - "returnType": { - "location": 8606, - "names": [ - { - "String": { - "sval": "event_trigger", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 503, - "stmt_location": 8537, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateEventTrigStmt": { - "eventname": "sql_drop", - "funcname": [ - { - "String": { - "sval": "event_trigger_report_dropped", - }, - }, - ], - "trigname": "regress_event_trigger_report_dropped", - }, - }, - "stmt_len": 123, - "stmt_location": 9041, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateSchemaStmt": { - "schemaElts": [ - { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 9202, - "relname": "one", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "col_a", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 9220, - }, - }, - ], - "is_local": true, - "location": 9207, - "typeName": { - "location": 9213, - "names": [ - { - "String": { - "sval": "serial", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "col_b", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 9244, - "raw_expr": { - "A_Const": { - "location": 9252, - "sval": { - "sval": "forty two", - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 9233, - "typeName": { - "location": 9239, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "one_idx", - "indexParams": [ - { - "IndexElem": { - "name": "col_b", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 9290, - "relname": "one", - "relpersistence": "p", - }, - }, - }, - { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 9316, - "relname": "two", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "col_c", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 9335, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col_c", - }, - }, - ], - "location": 9342, - }, - }, - "location": 9348, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 9350, - }, - }, - }, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 9353, - "pktable": { - "inh": true, - "location": 9364, - "relname": "one", - "relpersistence": "p", - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 9368, - "raw_expr": { - "A_Const": { - "ival": { - "ival": 42, - }, - "location": 9376, - }, - }, - }, - }, - ], - "is_local": true, - "location": 9321, - "typeName": { - "location": 9327, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - "schemaname": "evttrig", - }, - }, - "stmt_len": 214, - "stmt_location": 9165, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "col_c", - "subtype": "AT_DropColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 9394, - "relname": "two", - "relpersistence": "p", - "schemaname": "evttrig", - }, - }, - }, - "stmt_len": 43, - "stmt_location": 9380, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "col_b", - "subtype": "AT_ColumnDefault", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 9437, - "relname": "one", - "relpersistence": "p", - "schemaname": "evttrig", - }, - }, - }, - "stmt_len": 56, - "stmt_location": 9424, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "one_pkey", - "subtype": "AT_DropConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 9494, - "relname": "one", - "relpersistence": "p", - "schemaname": "evttrig", - }, - }, - }, - "stmt_len": 49, - "stmt_location": 9481, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "evttrig", - }, - }, - { - "String": { - "sval": "one_idx", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_INDEX", - }, - }, - "stmt_len": 27, - "stmt_location": 9531, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "String": { - "sval": "evttrig", - }, - }, - ], - "removeType": "OBJECT_SCHEMA", - }, - }, - "stmt_len": 28, - "stmt_location": 9559, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "a_temp_tbl", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 22, - "stmt_location": 9588, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "regress_event_trigger_report_dropped", - }, - }, - ], - "removeType": "OBJECT_EVENT_TRIGGER", - }, - }, - "stmt_len": 57, - "stmt_location": 9611, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9745, - "val": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_event_trigger_table_rewrite_oid", - }, - }, - ], - "location": 9745, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 112, - "stmt_location": 9669, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "test_evtrig_no_rewrite", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 9894, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -BEGIN - RAISE EXCEPTION 'rewrites not allowed'; -END; -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 9911, - }, - }, - ], - "replace": true, - "returnType": { - "location": 9880, - "names": [ - { - "String": { - "sval": "event_trigger", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 190, - "stmt_location": 9782, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateEventTrigStmt": { - "eventname": "table_rewrite", - "funcname": [ - { - "String": { - "sval": "test_evtrig_no_rewrite", - }, - }, - ], - "trigname": "no_rewrite_allowed", - }, - }, - "stmt_len": 103, - "stmt_location": 9973, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 10092, - "relname": "rewriteme", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 10113, - }, - }, - ], - "is_local": true, - "location": 10103, - "typeName": { - "location": 10106, - "names": [ - { - "String": { - "sval": "serial", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "foo", - "is_local": true, - "location": 10126, - "typeName": { - "location": 10130, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 10077, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 10150, - "relname": "rewriteme", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "t", - "colnames": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10203, - }, - }, - { - "A_Const": { - "ival": { - "ival": 500, - }, - "location": 10206, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 10187, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10172, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 10172, - }, - }, - "location": 10174, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "A_Const": { - "fval": { - "fval": "1.001", - }, - "location": 10176, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 81, - "stmt_location": 10137, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "location": 10255, - "typeName": { - "location": 10264, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "name": "foo", - "subtype": "AT_AlterColumnType", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 10232, - "relname": "rewriteme", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 52, - "stmt_location": 10219, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "baz", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 10314, - "raw_expr": { - "A_Const": { - "ival": {}, - "location": 10322, - }, - }, - }, - }, - ], - "is_local": true, - "location": 10306, - "typeName": { - "location": 10310, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 10285, - "relname": "rewriteme", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 51, - "stmt_location": 10272, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "test_evtrig_no_rewrite", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 10460, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -BEGIN - RAISE NOTICE 'Table ''%'' is being rewritten (reason = %)', - pg_event_trigger_table_rewrite_oid()::regclass, - pg_event_trigger_table_rewrite_reason(); -END; -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 10477, - }, - }, - ], - "replace": true, - "returnType": { - "location": 10446, - "names": [ - { - "String": { - "sval": "event_trigger", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 353, - "stmt_location": 10324, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "onemore", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 10726, - "raw_expr": { - "A_Const": { - "ival": {}, - "location": 10734, - }, - }, - }, - }, - ], - "is_local": true, - "location": 10714, - "typeName": { - "location": 10722, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "another", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 10761, - "raw_expr": { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 10769, - }, - }, - }, - }, - ], - "is_local": true, - "location": 10749, - "typeName": { - "location": 10757, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "location": 10787, - "typeName": { - "location": 10796, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 10804, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 10807, - }, - }, - ], - }, - }, - }, - "name": "foo", - "subtype": "AT_AlterColumnType", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 10692, - "relname": "rewriteme", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 131, - "stmt_location": 10678, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "location": 10890, - "typeName": { - "location": 10899, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 12, - }, - "location": 10907, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 10910, - }, - }, - ], - }, - }, - }, - "name": "foo", - "subtype": "AT_AlterColumnType", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 10867, - "relname": "rewriteme", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 102, - "stmt_location": 10810, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "test_evtrig_no_rewrite", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 11107, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -BEGIN - RAISE NOTICE 'Table is being rewritten (reason = %)', - pg_event_trigger_table_rewrite_reason(); -END; -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 11124, - }, - }, - ], - "replace": true, - "returnType": { - "location": 11093, - "names": [ - { - "String": { - "sval": "event_trigger", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 342, - "stmt_location": 10913, - }, - }, - { - "RawStmt": { - "stmt": { - "CompositeTypeStmt": { - "coldeflist": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 11286, - "typeName": { - "location": 11288, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "typevar": { - "location": 11270, - "relname": "rewritetype", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 36, - "stmt_location": 11256, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "ofTypename": { - "location": 11324, - "names": [ - { - "String": { - "sval": "rewritetype", - }, - }, - ], - "typemod": -1, - }, - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 11307, - "relname": "rewritemetoo1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 42, - "stmt_location": 11293, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "ofTypename": { - "location": 11367, - "names": [ - { - "String": { - "sval": "rewritetype", - }, - }, - ], - "typemod": -1, - }, - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 11350, - "relname": "rewritemetoo2", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 42, - "stmt_location": 11336, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_CASCADE", - "def": { - "ColumnDef": { - "location": 11419, - "typeName": { - "location": 11426, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "name": "a", - "subtype": "AT_AlterColumnType", - }, - }, - ], - "objtype": "OBJECT_TYPE", - "relation": { - "location": 11391, - "relname": "rewritetype", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 59, - "stmt_location": 11379, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 11479, - "relname": "rewritemetoo3", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 11494, - "typeName": { - "location": 11496, - "names": [ - { - "String": { - "sval": "rewritetype", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 69, - "stmt_location": 11439, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_CASCADE", - "def": { - "ColumnDef": { - "location": 11549, - "typeName": { - "location": 11556, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "name": "a", - "subtype": "AT_AlterColumnType", - }, - }, - ], - "objtype": "OBJECT_TYPE", - "relation": { - "location": 11521, - "relname": "rewritetype", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 62, - "stmt_location": 11509, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "rewriteme", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 22, - "stmt_location": 11572, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "no_rewrite_allowed", - }, - }, - ], - "removeType": "OBJECT_EVENT_TRIGGER", - }, - }, - "stmt_len": 38, - "stmt_location": 11595, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "ObjectWithArgs": { - "objname": [ - { - "String": { - "sval": "test_evtrig_no_rewrite", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 39, - "stmt_location": 11634, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "session_authorization", - }, - }, - "stmt_len": 64, - "stmt_location": 11674, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 11753, - "relname": "event_trigger_test", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 11773, - "typeName": { - "location": 11775, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 11784, - "typeName": { - "location": 11786, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 11739, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "start_command", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -BEGIN -RAISE NOTICE '% - ddl_command_start', tg_tag; -END; -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 11859, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 11925, - }, - }, - ], - "replace": true, - "returnType": { - "location": 11845, - "names": [ - { - "String": { - "sval": "event_trigger", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 149, - "stmt_location": 11792, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "end_command", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -BEGIN -RAISE NOTICE '% - ddl_command_end', tg_tag; -END; -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 12007, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 12071, - }, - }, - ], - "replace": true, - "returnType": { - "location": 11993, - "names": [ - { - "String": { - "sval": "event_trigger", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 145, - "stmt_location": 11942, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "drop_sql_command", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -BEGIN -RAISE NOTICE '% - sql_drop', tg_tag; -END; -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 12158, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 12215, - }, - }, - ], - "replace": true, - "returnType": { - "location": 12144, - "names": [ - { - "String": { - "sval": "event_trigger", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 143, - "stmt_location": 12088, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateEventTrigStmt": { - "eventname": "ddl_command_start", - "funcname": [ - { - "String": { - "sval": "start_command", - }, - }, - ], - "trigname": "start_rls_command", - "whenclause": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "CREATE POLICY", - }, - }, - { - "String": { - "sval": "ALTER POLICY", - }, - }, - { - "String": { - "sval": "DROP POLICY", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "tag", - "location": 12303, - }, - }, - ], - }, - }, - "stmt_len": 160, - "stmt_location": 12232, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateEventTrigStmt": { - "eventname": "ddl_command_end", - "funcname": [ - { - "String": { - "sval": "end_command", - }, - }, - ], - "trigname": "end_rls_command", - "whenclause": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "CREATE POLICY", - }, - }, - { - "String": { - "sval": "ALTER POLICY", - }, - }, - { - "String": { - "sval": "DROP POLICY", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "tag", - "location": 12460, - }, - }, - ], - }, - }, - "stmt_len": 154, - "stmt_location": 12393, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateEventTrigStmt": { - "eventname": "sql_drop", - "funcname": [ - { - "String": { - "sval": "drop_sql_command", - }, - }, - ], - "trigname": "sql_drop_command", - "whenclause": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "DROP POLICY", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "tag", - "location": 12609, - }, - }, - ], - }, - }, - "stmt_len": 120, - "stmt_location": 12548, - }, - }, - { - "RawStmt": { - "stmt": { - "CreatePolicyStmt": { - "cmd_name": "all", - "permissive": true, - "policy_name": "p1", - "qual": { - "A_Const": { - "boolval": {}, - "location": 12717, - }, - }, - "roles": [ - { - "RoleSpec": { - "location": -1, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - ], - "table": { - "inh": true, - "location": 12691, - "relname": "event_trigger_test", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 54, - "stmt_location": 12669, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterPolicyStmt": { - "policy_name": "p1", - "qual": { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 12770, - }, - }, - "table": { - "inh": true, - "location": 12744, - "relname": "event_trigger_test", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 51, - "stmt_location": 12724, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "p2", - "relation": { - "inh": true, - "location": 12796, - "relname": "event_trigger_test", - "relpersistence": "p", - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_POLICY", - "subname": "p1", - }, - }, - "stmt_len": 51, - "stmt_location": 12776, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "event_trigger_test", - }, - }, - { - "String": { - "sval": "p2", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_POLICY", - }, - }, - "stmt_len": 37, - "stmt_location": 12828, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "start_rls_command", - }, - }, - ], - "removeType": "OBJECT_EVENT_TRIGGER", - }, - }, - "stmt_len": 38, - "stmt_location": 12866, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "end_rls_command", - }, - }, - ], - "removeType": "OBJECT_EVENT_TRIGGER", - }, - }, - "stmt_len": 35, - "stmt_location": 12905, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "sql_drop_command", - }, - }, - ], - "removeType": "OBJECT_EVENT_TRIGGER", - }, - }, - "stmt_len": 36, - "stmt_location": 12941, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/float4.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 30, - "relname": "float4_tbl", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 42, - "typeName": { - "location": 46, - "names": [ - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 79, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 68, - "relname": "float4_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 91, - "sval": { - "sval": " 0.0", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 47, - "stmt_location": 54, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 126, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 115, - "relname": "float4_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 138, - "sval": { - "sval": "1004.30 ", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 49, - "stmt_location": 102, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 176, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 165, - "relname": "float4_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 188, - "sval": { - "sval": " -34.84 ", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 152, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 231, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 220, - "relname": "float4_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 243, - "sval": { - "sval": "1.2345678901234e+20", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 58, - "stmt_location": 207, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 290, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 279, - "relname": "float4_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 302, - "sval": { - "sval": "1.2345678901234e-20", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 58, - "stmt_location": 266, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 382, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 371, - "relname": "float4_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 394, - "sval": { - "sval": "10e70", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 77, - "stmt_location": 325, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 427, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 416, - "relname": "float4_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 439, - "sval": { - "sval": "-10e70", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 45, - "stmt_location": 403, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 473, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 462, - "relname": "float4_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 485, - "sval": { - "sval": "10e-70", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 45, - "stmt_location": 449, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 519, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 508, - "relname": "float4_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 531, - "sval": { - "sval": "-10e-70", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 495, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 580, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 569, - "relname": "float4_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 592, - "sval": { - "sval": "", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 53, - "stmt_location": 542, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 620, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 609, - "relname": "float4_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 632, - "sval": { - "sval": " ", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 596, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 667, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 656, - "relname": "float4_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 679, - "sval": { - "sval": "xyz", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 643, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 710, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 699, - "relname": "float4_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 722, - "sval": { - "sval": "5.0.0", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 44, - "stmt_location": 686, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 755, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 744, - "relname": "float4_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 767, - "sval": { - "sval": "5 . 0", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 44, - "stmt_location": 731, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 800, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 789, - "relname": "float4_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 812, - "sval": { - "sval": "5. 0", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 45, - "stmt_location": 776, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 846, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 835, - "relname": "float4_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 858, - "sval": { - "sval": " - 3.0", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 49, - "stmt_location": 822, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 896, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 885, - "relname": "float4_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 908, - "sval": { - "sval": "123 5", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 55, - "stmt_location": 872, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 955, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 955, - "sval": { - "sval": "NaN", - }, - }, - }, - "location": 960, - "typeName": { - "location": 962, - "names": [ - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 928, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 977, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 977, - "sval": { - "sval": "nan", - }, - }, - }, - "location": 982, - "typeName": { - "location": 984, - "names": [ - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 21, - "stmt_location": 969, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 999, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 999, - "sval": { - "sval": " NAN ", - }, - }, - }, - "location": 1009, - "typeName": { - "location": 1011, - "names": [ - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 991, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1026, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1026, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": 1036, - "typeName": { - "location": 1038, - "names": [ - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 1018, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1053, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1053, - "sval": { - "sval": " -INFINiTY ", - }, - }, - }, - "location": 1077, - "typeName": { - "location": 1079, - "names": [ - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 1045, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1116, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1116, - "sval": { - "sval": "N A N", - }, - }, - }, - "location": 1123, - "typeName": { - "location": 1125, - "names": [ - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 1086, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1140, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1140, - "sval": { - "sval": "NaN x", - }, - }, - }, - "location": 1147, - "typeName": { - "location": 1149, - "names": [ - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 1132, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1164, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1164, - "sval": { - "sval": " INFINITY x", - }, - }, - }, - "location": 1180, - "typeName": { - "location": 1182, - "names": [ - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 1156, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1198, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1198, - "sval": { - "sval": "Infinity", - }, - }, - }, - "location": 1208, - "typeName": { - "location": 1210, - "names": [ - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1217, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "fval": { - "fval": "100.0", - }, - "location": 1219, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 1189, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1233, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1233, - "sval": { - "sval": "Infinity", - }, - }, - }, - "location": 1243, - "typeName": { - "location": 1245, - "names": [ - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1252, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1254, - "sval": { - "sval": "Infinity", - }, - }, - }, - "location": 1264, - "typeName": { - "location": 1266, - "names": [ - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 1225, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1281, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1281, - "sval": { - "sval": "nan", - }, - }, - }, - "location": 1286, - "typeName": { - "location": 1288, - "names": [ - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1295, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1297, - "sval": { - "sval": "nan", - }, - }, - }, - "location": 1302, - "typeName": { - "location": 1304, - "names": [ - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 1273, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1319, - "val": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1319, - "sval": { - "sval": "nan", - }, - }, - }, - "location": 1324, - "typeName": { - "location": 1326, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1333, - "typeName": { - "location": 1335, - "names": [ - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 1311, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1370, - "relname": "float4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1351, - "name": "five", - "val": { - "A_Const": { - "location": 1351, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1363, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1363, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 1342, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 1411, - "relname": "float4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1390, - "name": "four", - "val": { - "A_Const": { - "location": 1390, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1402, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1402, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1430, - }, - }, - "location": 1435, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1438, - "sval": { - "sval": "1004.3", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 65, - "stmt_location": 1381, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 1476, - "relname": "float4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1456, - "name": "one", - "val": { - "A_Const": { - "location": 1456, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1467, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1467, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1495, - }, - }, - "location": 1500, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1502, - "sval": { - "sval": "1004.3", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 63, - "stmt_location": 1447, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 1542, - "relname": "float4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1520, - "name": "three", - "val": { - "A_Const": { - "location": 1520, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1533, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1533, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "location": 1561, - "sval": { - "sval": "1004.3", - }, - }, - }, - "location": 1570, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1572, - }, - }, - }, - }, - }, - }, - "stmt_len": 65, - "stmt_location": 1511, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 1608, - "relname": "float4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1586, - "name": "three", - "val": { - "A_Const": { - "location": 1586, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1599, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1599, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1628, - }, - }, - "location": 1633, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1635, - "sval": { - "sval": "1004.3", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 66, - "stmt_location": 1577, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 1674, - "relname": "float4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1653, - "name": "four", - "val": { - "A_Const": { - "location": 1653, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1665, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1665, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "location": 1693, - "sval": { - "sval": "1004.3", - }, - }, - }, - "location": 1702, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1705, - }, - }, - }, - }, - }, - }, - "stmt_len": 65, - "stmt_location": 1644, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 1740, - "relname": "float4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1719, - "name": "four", - "val": { - "A_Const": { - "location": 1719, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1731, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1731, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1760, - }, - }, - "location": 1765, - "name": [ - { - "String": { - "sval": "<=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1768, - "sval": { - "sval": "1004.3", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 66, - "stmt_location": 1710, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 1828, - "relname": "float4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1786, - "name": "three", - "val": { - "A_Const": { - "location": 1786, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1799, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1799, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1805, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1805, - }, - }, - "location": 1810, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1812, - "sval": { - "sval": "-10", - }, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1850, - }, - }, - "location": 1855, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1857, - "sval": { - "sval": "0.0", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 85, - "stmt_location": 1777, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 1914, - "relname": "float4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1872, - "name": "three", - "val": { - "A_Const": { - "location": 1872, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1885, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1885, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1891, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1891, - }, - }, - "location": 1896, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1898, - "sval": { - "sval": "-10", - }, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1936, - }, - }, - "location": 1941, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1943, - "sval": { - "sval": "0.0", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 85, - "stmt_location": 1863, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 2000, - "relname": "float4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1958, - "name": "three", - "val": { - "A_Const": { - "location": 1958, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1971, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1971, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1977, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1977, - }, - }, - "location": 1982, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1984, - "sval": { - "sval": "-10", - }, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2022, - }, - }, - "location": 2027, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2029, - "sval": { - "sval": "0.0", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 85, - "stmt_location": 1949, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 2086, - "relname": "float4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2044, - "name": "three", - "val": { - "A_Const": { - "location": 2044, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2057, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2057, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2063, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2063, - }, - }, - "location": 2068, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2070, - "sval": { - "sval": "-10", - }, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2108, - }, - }, - "location": 2113, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2115, - "sval": { - "sval": "0.0", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 85, - "stmt_location": 2035, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 2182, - "relname": "float4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2153, - "name": "bad", - "val": { - "A_Const": { - "location": 2153, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2164, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2164, - }, - }, - "location": 2169, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2171, - "sval": { - "sval": "0.0", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 2121, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2223, - "relname": "float4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2204, - "name": "five", - "val": { - "A_Const": { - "location": 2204, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2216, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2216, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 2195, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 2319, - "relname": "float4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2280, - "name": "five", - "val": { - "A_Const": { - "location": 2280, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2292, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2292, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2298, - "name": "abs_f1", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 2298, - "name": [ - { - "String": { - "sval": "@", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2299, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 97, - "stmt_location": 2234, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 2341, - "relname": "float4_tbl", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 2359, - "name": "f1", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "float4_tbl", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2364, - }, - }, - "location": 2378, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2380, - "sval": { - "sval": "-1", - }, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "float4_tbl", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2394, - }, - }, - "location": 2408, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2410, - "sval": { - "sval": "0.0", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 83, - "stmt_location": 2332, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2444, - "relname": "float4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2425, - "name": "five", - "val": { - "A_Const": { - "location": 2425, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2437, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2437, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 2416, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/float8.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 30, - "relname": "float8_tbl", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 41, - "typeName": { - "location": 44, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 77, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 66, - "relname": "float8_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 89, - "sval": { - "sval": " 0.0 ", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 50, - "stmt_location": 52, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 127, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 116, - "relname": "float8_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 139, - "sval": { - "sval": "1004.30 ", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 48, - "stmt_location": 103, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 176, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 165, - "relname": "float8_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 188, - "sval": { - "sval": " -34.84", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 48, - "stmt_location": 152, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 225, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 214, - "relname": "float8_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 237, - "sval": { - "sval": "1.2345678901234e+200", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 201, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 285, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 274, - "relname": "float8_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 297, - "sval": { - "sval": "1.2345678901234e-200", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 261, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 374, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 374, - "sval": { - "sval": "10e400", - }, - }, - }, - "location": 382, - "typeName": { - "location": 384, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 69, - "stmt_location": 321, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 399, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 399, - "sval": { - "sval": "-10e400", - }, - }, - }, - "location": 408, - "typeName": { - "location": 410, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 391, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 425, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 425, - "sval": { - "sval": "10e-400", - }, - }, - }, - "location": 434, - "typeName": { - "location": 436, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 417, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 451, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 451, - "sval": { - "sval": "-10e-400", - }, - }, - }, - "location": 461, - "typeName": { - "location": 463, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 443, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 508, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 497, - "relname": "float8_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 520, - "sval": { - "sval": "", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 53, - "stmt_location": 470, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 548, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 537, - "relname": "float8_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 560, - "sval": { - "sval": " ", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 44, - "stmt_location": 524, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 593, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 582, - "relname": "float8_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 605, - "sval": { - "sval": "xyz", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 569, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 636, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 625, - "relname": "float8_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 648, - "sval": { - "sval": "5.0.0", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 44, - "stmt_location": 612, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 681, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 670, - "relname": "float8_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 693, - "sval": { - "sval": "5 . 0", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 44, - "stmt_location": 657, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 726, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 715, - "relname": "float8_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 738, - "sval": { - "sval": "5. 0", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 45, - "stmt_location": 702, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 772, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 761, - "relname": "float8_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 784, - "sval": { - "sval": " - 3", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 748, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 819, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 808, - "relname": "float8_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 831, - "sval": { - "sval": "123 5", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 795, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 877, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 877, - "sval": { - "sval": "NaN", - }, - }, - }, - "location": 882, - "typeName": { - "location": 884, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 850, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 899, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 899, - "sval": { - "sval": "nan", - }, - }, - }, - "location": 904, - "typeName": { - "location": 906, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 21, - "stmt_location": 891, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 921, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 921, - "sval": { - "sval": " NAN ", - }, - }, - }, - "location": 931, - "typeName": { - "location": 933, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 913, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 948, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 948, - "sval": { - "sval": "infinity", - }, - }, - }, - "location": 958, - "typeName": { - "location": 960, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 940, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 975, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 975, - "sval": { - "sval": " -INFINiTY ", - }, - }, - }, - "location": 999, - "typeName": { - "location": 1001, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 967, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1038, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1038, - "sval": { - "sval": "N A N", - }, - }, - }, - "location": 1045, - "typeName": { - "location": 1047, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 1008, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1062, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1062, - "sval": { - "sval": "NaN x", - }, - }, - }, - "location": 1069, - "typeName": { - "location": 1071, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 1054, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1086, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1086, - "sval": { - "sval": " INFINITY x", - }, - }, - }, - "location": 1102, - "typeName": { - "location": 1104, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 1078, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1120, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1120, - "sval": { - "sval": "Infinity", - }, - }, - }, - "location": 1130, - "typeName": { - "location": 1132, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1139, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "fval": { - "fval": "100.0", - }, - "location": 1141, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 1111, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1155, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1155, - "sval": { - "sval": "Infinity", - }, - }, - }, - "location": 1165, - "typeName": { - "location": 1167, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1174, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1176, - "sval": { - "sval": "Infinity", - }, - }, - }, - "location": 1186, - "typeName": { - "location": 1188, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 1147, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1203, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1203, - "sval": { - "sval": "nan", - }, - }, - }, - "location": 1208, - "typeName": { - "location": 1210, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1217, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1219, - "sval": { - "sval": "nan", - }, - }, - }, - "location": 1224, - "typeName": { - "location": 1226, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 1195, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1241, - "val": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1241, - "sval": { - "sval": "nan", - }, - }, - }, - "location": 1246, - "typeName": { - "location": 1248, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1255, - "typeName": { - "location": 1257, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 1233, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1292, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1273, - "name": "five", - "val": { - "A_Const": { - "location": 1273, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1285, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1285, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 1264, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 1333, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1312, - "name": "four", - "val": { - "A_Const": { - "location": 1312, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1324, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1324, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1352, - }, - }, - "location": 1357, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1360, - "sval": { - "sval": "1004.3", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 65, - "stmt_location": 1303, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 1398, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1378, - "name": "one", - "val": { - "A_Const": { - "location": 1378, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1389, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1389, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1417, - }, - }, - "location": 1422, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1424, - "sval": { - "sval": "1004.3", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 63, - "stmt_location": 1369, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 1464, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1442, - "name": "three", - "val": { - "A_Const": { - "location": 1442, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1455, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1455, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "location": 1483, - "sval": { - "sval": "1004.3", - }, - }, - }, - "location": 1492, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1494, - }, - }, - }, - }, - }, - }, - "stmt_len": 65, - "stmt_location": 1433, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 1530, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1508, - "name": "three", - "val": { - "A_Const": { - "location": 1508, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1521, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1521, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1550, - }, - }, - "location": 1555, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1557, - "sval": { - "sval": "1004.3", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 66, - "stmt_location": 1499, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 1596, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1575, - "name": "four", - "val": { - "A_Const": { - "location": 1575, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1587, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1587, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "location": 1615, - "sval": { - "sval": "1004.3", - }, - }, - }, - "location": 1624, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1627, - }, - }, - }, - }, - }, - }, - "stmt_len": 65, - "stmt_location": 1566, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 1662, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1641, - "name": "four", - "val": { - "A_Const": { - "location": 1641, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1653, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1653, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1682, - }, - }, - "location": 1687, - "name": [ - { - "String": { - "sval": "<=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1690, - "sval": { - "sval": "1004.3", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 66, - "stmt_location": 1632, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 1753, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1708, - "name": "three", - "val": { - "A_Const": { - "location": 1708, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1721, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1721, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1727, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1727, - }, - }, - "location": 1732, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1734, - "sval": { - "sval": "-10", - }, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1775, - }, - }, - "location": 1780, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1782, - "sval": { - "sval": "0.0", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 88, - "stmt_location": 1699, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 1842, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1797, - "name": "three", - "val": { - "A_Const": { - "location": 1797, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1810, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1810, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1816, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1816, - }, - }, - "location": 1821, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1823, - "sval": { - "sval": "-10", - }, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1864, - }, - }, - "location": 1869, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1871, - "sval": { - "sval": "0.0", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 88, - "stmt_location": 1788, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 1931, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1886, - "name": "three", - "val": { - "A_Const": { - "location": 1886, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1899, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1899, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1905, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1905, - }, - }, - "location": 1910, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1912, - "sval": { - "sval": "-10", - }, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1953, - }, - }, - "location": 1958, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1960, - "sval": { - "sval": "0.0", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 88, - "stmt_location": 1877, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 2020, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1975, - "name": "three", - "val": { - "A_Const": { - "location": 1975, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1988, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1988, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1994, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1994, - }, - }, - "location": 1999, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2001, - "sval": { - "sval": "-10", - }, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2042, - }, - }, - "location": 2047, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2049, - "sval": { - "sval": "0.0", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 88, - "stmt_location": 1966, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 2109, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2064, - "name": "one", - "val": { - "A_Const": { - "location": 2064, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2075, - "name": "square_f1", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2075, - }, - }, - "location": 2080, - "name": [ - { - "String": { - "sval": "^", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2082, - "sval": { - "sval": "2.0", - }, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2128, - }, - }, - "location": 2133, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2135, - "sval": { - "sval": "1004.3", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 88, - "stmt_location": 2055, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 2213, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2171, - "name": "five", - "val": { - "A_Const": { - "location": 2171, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2183, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2183, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2189, - "name": "abs_f1", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 2189, - "name": [ - { - "String": { - "sval": "@", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2190, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 81, - "stmt_location": 2144, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 2297, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2247, - "name": "five", - "val": { - "A_Const": { - "location": 2247, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2259, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2259, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2265, - "name": "trunc_f1", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2271, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "trunc", - }, - }, - ], - "location": 2265, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 83, - "stmt_location": 2226, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 2378, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2328, - "name": "five", - "val": { - "A_Const": { - "location": 2328, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2340, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2340, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2346, - "name": "round_f1", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2352, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "round", - }, - }, - ], - "location": 2346, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 80, - "stmt_location": 2310, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 2443, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2418, - "name": "ceil_f1", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2423, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ceil", - }, - }, - ], - "location": 2418, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 64, - "stmt_location": 2391, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 2495, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2464, - "name": "ceiling_f1", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2472, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ceiling", - }, - }, - ], - "location": 2464, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 2456, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 2553, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2526, - "name": "floor_f1", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2532, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "floor", - }, - }, - ], - "location": 2526, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 2508, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 2608, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2583, - "name": "sign_f1", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2588, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sign", - }, - }, - ], - "location": 2583, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 2566, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2645, - "name": "eight", - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2657, - "sval": { - "sval": "64", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2650, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sqrt", - }, - }, - ], - "location": 2645, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 50, - "stmt_location": 2621, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2681, - "name": "eight", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 2681, - "name": [ - { - "String": { - "sval": "|/", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2691, - "sval": { - "sval": "64", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2684, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 2672, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 2759, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2714, - "name": "three", - "val": { - "A_Const": { - "location": 2714, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2727, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2727, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2733, - "name": "sqrt_f1", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 2733, - "name": [ - { - "String": { - "sval": "|/", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2735, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2781, - }, - }, - "location": 2786, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2788, - "sval": { - "sval": "0.0", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 88, - "stmt_location": 2705, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2812, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2825, - "sval": { - "sval": "144", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2818, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2839, - "sval": { - "sval": "0.5", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2832, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "power", - }, - }, - ], - "location": 2812, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 2794, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 2933, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2879, - "name": "three", - "val": { - "A_Const": { - "location": 2879, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2892, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2892, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2898, - "name": "exp_ln_f1", - "val": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2905, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ln", - }, - }, - ], - "location": 2902, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "exp", - }, - }, - ], - "location": 2898, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2955, - }, - }, - "location": 2960, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2962, - "sval": { - "sval": "0.0", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 121, - "stmt_location": 2846, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2990, - "name": "three", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 2990, - "name": [ - { - "String": { - "sval": "||/", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3001, - "sval": { - "sval": "27", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2994, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 2968, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 3066, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3024, - "name": "five", - "val": { - "A_Const": { - "location": 3024, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3036, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3036, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3042, - "name": "cbrt_f1", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 3042, - "name": [ - { - "String": { - "sval": "||/", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3045, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 3015, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3108, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3089, - "name": "five", - "val": { - "A_Const": { - "location": 3089, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3101, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3101, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 3079, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 3128, - "relname": "float8_tbl", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 3146, - "name": "f1", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "float8_tbl", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3151, - }, - }, - "location": 3165, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3167, - "sval": { - "sval": "-1", - }, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "float8_tbl", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3181, - }, - }, - "location": 3195, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3197, - "sval": { - "sval": "0.0", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 83, - "stmt_location": 3119, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 3243, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3212, - "name": "bad", - "val": { - "A_Const": { - "location": 3212, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3223, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3223, - }, - }, - "location": 3228, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3230, - "sval": { - "sval": "1e200", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 3203, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 3296, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3265, - "name": "bad", - "val": { - "A_Const": { - "location": 3265, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3276, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3276, - }, - }, - "location": 3281, - "name": [ - { - "String": { - "sval": "^", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3283, - "sval": { - "sval": "1e200", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 3256, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3318, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": {}, - "location": 3318, - }, - }, - "location": 3320, - "name": [ - { - "String": { - "sval": "^", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 3322, - }, - }, - }, - }, - "location": 3324, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": {}, - "location": 3326, - }, - }, - "location": 3328, - "name": [ - { - "String": { - "sval": "^", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3330, - }, - }, - }, - }, - }, - }, - "location": 3332, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": {}, - "location": 3334, - }, - }, - "location": 3336, - "name": [ - { - "String": { - "sval": "^", - }, - }, - ], - "rexpr": { - "A_Const": { - "fval": { - "fval": "0.0", - }, - "location": 3338, - }, - }, - }, - }, - }, - }, - "location": 3342, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": {}, - "location": 3344, - }, - }, - "location": 3346, - "name": [ - { - "String": { - "sval": "^", - }, - }, - ], - "rexpr": { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 3348, - }, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 3309, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 3386, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3361, - "name": "bad", - "val": { - "A_Const": { - "location": 3361, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3372, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3375, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ln", - }, - }, - ], - "location": 3372, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3405, - }, - }, - "location": 3410, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3412, - "sval": { - "sval": "0.0", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 66, - "stmt_location": 3352, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 3453, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3428, - "name": "bad", - "val": { - "A_Const": { - "location": 3428, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3439, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3442, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ln", - }, - }, - ], - "location": 3439, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3472, - }, - }, - "location": 3477, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3479, - "sval": { - "sval": "0.0", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 66, - "stmt_location": 3419, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 3521, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3495, - "name": "bad", - "val": { - "A_Const": { - "location": 3495, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3506, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3510, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "exp", - }, - }, - ], - "location": 3506, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 3486, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 3572, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3543, - "name": "bad", - "val": { - "A_Const": { - "location": 3543, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3554, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3554, - }, - }, - "location": 3559, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3561, - "sval": { - "sval": "0.0", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 50, - "stmt_location": 3534, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3613, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3594, - "name": "five", - "val": { - "A_Const": { - "location": 3594, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3606, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3606, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 3585, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 3681, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3670, - "relname": "float8_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 3693, - "sval": { - "sval": "10e400", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 78, - "stmt_location": 3624, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 3728, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3717, - "relname": "float8_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 3740, - "sval": { - "sval": "-10e400", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 47, - "stmt_location": 3703, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 3776, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3765, - "relname": "float8_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 3788, - "sval": { - "sval": "10e-400", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 47, - "stmt_location": 3751, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 3824, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3813, - "relname": "float8_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 3836, - "sval": { - "sval": "-10e-400", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 48, - "stmt_location": 3799, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 3971, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 133, - "stmt_location": 3848, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 4007, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3996, - "relname": "float8_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 4019, - "sval": { - "sval": "0.0", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 3982, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 4051, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4040, - "relname": "float8_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 4063, - "sval": { - "sval": "-34.84", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 4026, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 4098, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4087, - "relname": "float8_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 4110, - "sval": { - "sval": "-1004.30", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 48, - "stmt_location": 4073, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 4147, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4136, - "relname": "float8_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 4159, - "sval": { - "sval": "-1.2345678901234e+200", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 61, - "stmt_location": 4122, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 4209, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4198, - "relname": "float8_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 4221, - "sval": { - "sval": "-1.2345678901234e-200", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 61, - "stmt_location": 4184, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4274, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4255, - "name": "five", - "val": { - "A_Const": { - "location": 4255, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4267, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4267, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 4246, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 4371, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "extra_float_digits", - }, - }, - "stmt_len": 87, - "stmt_location": 4285, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "t", - "colnames": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 4465, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 30, - }, - "location": 4470, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 90, - }, - "location": 4476, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 150, - }, - "location": 4482, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 180, - }, - "location": 4489, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 210, - }, - "location": 4502, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 270, - }, - "location": 4509, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 330, - }, - "location": 4516, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 360, - }, - "location": 4523, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4382, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 4382, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4392, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 4397, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sind", - }, - }, - ], - "location": 4392, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4408, - "name": "sind_exact", - "val": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 4413, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sind", - }, - }, - ], - "location": 4408, - }, - }, - "location": 4416, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 4420, - }, - }, - { - "A_Const": { - "fval": { - "fval": "-0.5", - }, - "location": 4423, - }, - }, - { - "A_Const": { - "ival": {}, - "location": 4428, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 4430, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4434, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 163, - "stmt_location": 4373, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "t", - "colnames": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 4629, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 60, - }, - "location": 4634, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 90, - }, - "location": 4640, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 120, - }, - "location": 4646, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 180, - }, - "location": 4653, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 240, - }, - "location": 4666, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 270, - }, - "location": 4673, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 300, - }, - "location": 4680, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 360, - }, - "location": 4687, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4546, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 4546, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4556, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 4561, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "cosd", - }, - }, - ], - "location": 4556, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4572, - "name": "cosd_exact", - "val": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 4577, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "cosd", - }, - }, - ], - "location": 4572, - }, - }, - "location": 4580, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 4584, - }, - }, - { - "A_Const": { - "fval": { - "fval": "-0.5", - }, - "location": 4587, - }, - }, - { - "A_Const": { - "ival": {}, - "location": 4592, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 4594, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4598, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 163, - "stmt_location": 4537, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "t", - "colnames": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 4960, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 45, - }, - "location": 4965, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 90, - }, - "location": 4971, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 135, - }, - "location": 4977, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 180, - }, - "location": 4984, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 225, - }, - "location": 4997, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 270, - }, - "location": 5004, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 315, - }, - "location": 5011, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 360, - }, - "location": 5018, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4710, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 4710, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4720, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 4725, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "tand", - }, - }, - ], - "location": 4720, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4736, - "name": "tand_exact", - "val": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 4741, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "tand", - }, - }, - ], - "location": 4736, - }, - }, - "location": 4744, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4748, - "sval": { - "sval": "-Infinity", - }, - }, - }, - "location": 4759, - "typeName": { - "location": 4761, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 4768, - }, - }, - { - "A_Const": { - "ival": {}, - "location": 4771, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4793, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4795, - "sval": { - "sval": "Infinity", - }, - }, - }, - "location": 4805, - "typeName": { - "location": 4807, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4837, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 4842, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "cotd", - }, - }, - ], - "location": 4837, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4853, - "name": "cotd_exact", - "val": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 4858, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "cotd", - }, - }, - ], - "location": 4853, - }, - }, - "location": 4861, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4865, - "sval": { - "sval": "-Infinity", - }, - }, - }, - "location": 4876, - "typeName": { - "location": 4878, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 4885, - }, - }, - { - "A_Const": { - "ival": {}, - "location": 4888, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4910, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4912, - "sval": { - "sval": "Infinity", - }, - }, - }, - "location": 4922, - "typeName": { - "location": 4924, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 330, - "stmt_location": 4701, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "t", - "colnames": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 5197, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "fval": { - "fval": "-0.5", - }, - "location": 5203, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 5211, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 5216, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5223, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5041, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 5041, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5051, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 5057, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "asind", - }, - }, - ], - "location": 5051, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5068, - "name": "asind_exact", - "val": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 5074, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "asind", - }, - }, - ], - "location": 5068, - }, - }, - "location": 5077, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": -90, - }, - "location": 5081, - }, - }, - { - "A_Const": { - "ival": { - "ival": -30, - }, - "location": 5085, - }, - }, - { - "A_Const": { - "ival": {}, - "location": 5089, - }, - }, - { - "A_Const": { - "ival": { - "ival": 30, - }, - "location": 5091, - }, - }, - { - "A_Const": { - "ival": { - "ival": 90, - }, - "location": 5094, - }, - }, - ], - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5121, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 5127, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "acosd", - }, - }, - ], - "location": 5121, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5138, - "name": "acosd_exact", - "val": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 5144, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "acosd", - }, - }, - ], - "location": 5138, - }, - }, - "location": 5147, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 5151, - }, - }, - { - "A_Const": { - "ival": { - "ival": 60, - }, - "location": 5153, - }, - }, - { - "A_Const": { - "ival": { - "ival": 90, - }, - "location": 5156, - }, - }, - { - "A_Const": { - "ival": { - "ival": 120, - }, - "location": 5159, - }, - }, - { - "A_Const": { - "ival": { - "ival": 180, - }, - "location": 5163, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 202, - "stmt_location": 5032, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "t", - "colnames": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5330, - "sval": { - "sval": "-Infinity", - }, - }, - }, - "location": 5341, - "typeName": { - "location": 5343, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 5353, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 5359, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5364, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5375, - "sval": { - "sval": "Infinity", - }, - }, - }, - "location": 5385, - "typeName": { - "location": 5387, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5244, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 5244, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5254, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 5260, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "atand", - }, - }, - ], - "location": 5254, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5271, - "name": "atand_exact", - "val": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 5277, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "atand", - }, - }, - ], - "location": 5271, - }, - }, - "location": 5280, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": -90, - }, - "location": 5284, - }, - }, - { - "A_Const": { - "ival": { - "ival": -45, - }, - "location": 5288, - }, - }, - { - "A_Const": { - "ival": {}, - "location": 5292, - }, - }, - { - "A_Const": { - "ival": { - "ival": 45, - }, - "location": 5294, - }, - }, - { - "A_Const": { - "ival": { - "ival": 90, - }, - "location": 5297, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 168, - "stmt_location": 5235, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "t", - "colnames": [ - { - "String": { - "sval": "x", - }, - }, - { - "String": { - "sval": "y", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "t", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - ], - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": {}, - "location": 5557, - }, - }, - { - "A_Const": { - "ival": { - "ival": 360, - }, - "location": 5560, - }, - }, - { - "A_Const": { - "ival": { - "ival": 90, - }, - "location": 5565, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 5541, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5507, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 5507, - }, - }, - "location": 5509, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5515, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "cosd", - }, - }, - ], - "location": 5510, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5519, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 5519, - }, - }, - "location": 5521, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5527, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sind", - }, - }, - ], - "location": 5522, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5413, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 5413, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5416, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 5416, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5426, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 5433, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 5436, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "atan2d", - }, - }, - ], - "location": 5426, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5447, - "name": "atan2d_exact", - "val": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 5454, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 5457, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "atan2d", - }, - }, - ], - "location": 5447, - }, - }, - "location": 5460, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": -90, - }, - "location": 5464, - }, - }, - { - "A_Const": { - "ival": {}, - "location": 5468, - }, - }, - { - "A_Const": { - "ival": { - "ival": 90, - }, - "location": 5470, - }, - }, - { - "A_Const": { - "ival": { - "ival": 180, - }, - "location": 5473, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 183, - "stmt_location": 5404, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "extra_float_digits", - }, - }, - "stmt_len": 26, - "stmt_location": 5588, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/foreign_data.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 188, - "sval": { - "sval": "error", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "client_min_messages", - }, - }, - "stmt_len": 195, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "missing_ok": true, - "roles": [ - { - "RoleSpec": { - "location": 218, - "rolename": "foreign_data_user", - "roletype": "ROLESPEC_CSTRING", - }, - }, - { - "RoleSpec": { - "location": 237, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - { - "RoleSpec": { - "location": 256, - "rolename": "regress_test_role2", - "roletype": "ROLESPEC_CSTRING", - }, - }, - { - "RoleSpec": { - "location": 276, - "rolename": "regress_test_role_super", - "roletype": "ROLESPEC_CSTRING", - }, - }, - { - "RoleSpec": { - "location": 301, - "rolename": "regress_test_indirect", - "roletype": "ROLESPEC_CSTRING", - }, - }, - { - "RoleSpec": { - "location": 324, - "rolename": "unpriviled_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 143, - "stmt_location": 196, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "client_min_messages", - }, - }, - "stmt_len": 27, - "stmt_location": 340, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "options": [ - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "canlogin", - "location": 400, - }, - }, - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "superuser", - "location": 406, - }, - }, - ], - "role": "foreign_data_user", - "stmt_type": "ROLESTMT_ROLE", - }, - }, - "stmt_len": 47, - "stmt_location": 368, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 443, - "sval": { - "sval": "foreign_data_user", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "session_authorization", - }, - }, - "stmt_len": 46, - "stmt_location": 416, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "role": "regress_test_role", - "stmt_type": "ROLESTMT_ROLE", - }, - }, - "stmt_len": 31, - "stmt_location": 463, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "role": "regress_test_role2", - "stmt_type": "ROLESTMT_ROLE", - }, - }, - "stmt_len": 31, - "stmt_location": 495, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "options": [ - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": true, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "superuser", - "location": 564, - }, - }, - ], - "role": "regress_test_role_super", - "stmt_type": "ROLESTMT_ROLE", - }, - }, - "stmt_len": 46, - "stmt_location": 527, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "role": "regress_test_indirect", - "stmt_type": "ROLESTMT_ROLE", - }, - }, - "stmt_len": 34, - "stmt_location": 574, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "role": "unprivileged_role", - "stmt_type": "ROLESTMT_ROLE", - }, - }, - "stmt_len": 30, - "stmt_location": 609, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFdwStmt": { - "fdwname": "dummy", - }, - }, - "stmt_len": 35, - "stmt_location": 640, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "useless", - "object": { - "String": { - "sval": "dummy", - }, - }, - "objtype": "OBJECT_FDW", - }, - }, - "stmt_len": 51, - "stmt_location": 676, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFdwStmt": { - "fdwname": "postgresql", - "func_options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "postgresql_fdw_validator", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "validator", - "location": 768, - }, - }, - ], - }, - }, - "stmt_len": 74, - "stmt_location": 728, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 949, - "relname": "pg_foreign_data_wrapper", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 982, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 985, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 988, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 880, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fdwname", - }, - }, - ], - "location": 880, - }, - }, - }, - }, - { - "ResTarget": { - "location": 889, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fdwhandler", - }, - }, - ], - "location": 889, - }, - }, - "location": 899, - "typeName": { - "location": 901, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 910, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fdwvalidator", - }, - }, - ], - "location": 910, - }, - }, - "location": 922, - "typeName": { - "location": 924, - "names": [ - { - "String": { - "sval": "regproc", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 933, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fdwoptions", - }, - }, - ], - "location": 933, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 186, - "stmt_location": 803, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1023, - "relname": "pg_foreign_server", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 998, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "srvname", - }, - }, - ], - "location": 998, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1007, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "srvoptions", - }, - }, - ], - "location": 1007, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 50, - "stmt_location": 990, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1056, - "relname": "pg_user_mapping", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1049, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1049, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 1041, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFdwStmt": { - "fdwname": "foo", - "func_options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "bar", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "validator", - "location": 1137, - }, - }, - ], - }, - }, - "stmt_len": 78, - "stmt_location": 1072, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFdwStmt": { - "fdwname": "foo", - }, - }, - "stmt_len": 52, - "stmt_location": 1151, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFdwStmt": { - "fdwname": "foo", - }, - }, - "stmt_len": 35, - "stmt_location": 1204, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "foo", - }, - }, - ], - "removeType": "OBJECT_FDW", - }, - }, - "stmt_len": 43, - "stmt_location": 1240, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFdwStmt": { - "fdwname": "foo", - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "1", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "testing", - "location": 1326, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 1284, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "foo", - }, - }, - ], - "removeType": "OBJECT_FDW", - }, - }, - "stmt_len": 33, - "stmt_location": 1339, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFdwStmt": { - "fdwname": "foo", - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "1", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "testing", - "location": 1415, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "2", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "testing", - "location": 1428, - }, - }, - ], - }, - }, - "stmt_len": 67, - "stmt_location": 1373, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFdwStmt": { - "fdwname": "foo", - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "1", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "testing", - "location": 1494, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "2", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "another", - "location": 1507, - }, - }, - ], - }, - }, - "stmt_len": 78, - "stmt_location": 1441, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "foo", - }, - }, - ], - "removeType": "OBJECT_FDW", - }, - }, - "stmt_len": 33, - "stmt_location": 1520, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 1564, - "sval": { - "sval": "regress_test_role", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 27, - "stmt_location": 1554, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFdwStmt": { - "fdwname": "foo", - }, - }, - "stmt_len": 32, - "stmt_location": 1582, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "role", - }, - }, - "stmt_len": 20, - "stmt_location": 1615, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFdwStmt": { - "fdwname": "foo", - "func_options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "postgresql_fdw_validator", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "validator", - "location": 1669, - }, - }, - ], - }, - }, - "stmt_len": 67, - "stmt_location": 1636, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterFdwStmt": { - "fdwname": "foo", - "func_options": [ - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "validator", - "location": 1769, - }, - }, - ], - }, - }, - "stmt_len": 77, - "stmt_location": 1704, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterFdwStmt": { - "fdwname": "foo", - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "1", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "a", - "location": 1826, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "2", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "b", - "location": 1833, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 1782, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterFdwStmt": { - "fdwname": "foo", - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "1", - }, - }, - "defaction": "DEFELEM_ADD", - "defname": "x", - "location": 2029, - }, - }, - { - "DefElem": { - "defaction": "DEFELEM_DROP", - "defname": "x", - "location": 2041, - }, - }, - ], - }, - }, - "stmt_len": 203, - "stmt_location": 1840, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterFdwStmt": { - "fdwname": "foo", - "options": [ - { - "DefElem": { - "defaction": "DEFELEM_DROP", - "defname": "a", - "location": 2093, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "3", - }, - }, - "defaction": "DEFELEM_SET", - "defname": "b", - "location": 2100, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "4", - }, - }, - "defaction": "DEFELEM_ADD", - "defname": "c", - "location": 2111, - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 2044, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterFdwStmt": { - "fdwname": "foo", - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "2", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "a", - "location": 2162, - }, - }, - ], - }, - }, - "stmt_len": 50, - "stmt_location": 2118, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 2254, - "sval": { - "sval": "regress_test_role", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 102, - "stmt_location": 2169, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 2354, - "sval": { - "sval": "regress_test_role_super", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 105, - "stmt_location": 2272, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterFdwStmt": { - "fdwname": "foo", - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "5", - }, - }, - "defaction": "DEFELEM_ADD", - "defname": "d", - "location": 2423, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 2378, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 2546, - "rolename": "regress_test_role_super", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "String": { - "sval": "foo", - }, - }, - "objectType": "OBJECT_FDW", - }, - }, - "stmt_len": 139, - "stmt_location": 2430, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterRoleStmt": { - "action": 1, - "options": [ - { - "DefElem": { - "arg": { - "Boolean": { - "boolval": false, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "superuser", - "location": 2606, - }, - }, - ], - "role": { - "location": 2582, - "rolename": "regress_test_role_super", - "roletype": "ROLESPEC_CSTRING", - }, - }, - }, - "stmt_len": 47, - "stmt_location": 2570, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 2628, - "sval": { - "sval": "regress_test_role_super", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 33, - "stmt_location": 2618, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "role", - }, - }, - "stmt_len": 83, - "stmt_location": 2652, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "foo1", - "object": { - "String": { - "sval": "foo", - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_FDW", - }, - }, - "stmt_len": 49, - "stmt_location": 2736, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "foo", - "object": { - "String": { - "sval": "foo1", - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_FDW", - }, - }, - "stmt_len": 48, - "stmt_location": 2786, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "String": { - "sval": "nonexistent", - }, - }, - ], - "removeType": "OBJECT_FDW", - }, - }, - "stmt_len": 150, - "stmt_location": 2835, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 3071, - "sval": { - "sval": "regress_test_role_super", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 108, - "stmt_location": 2986, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "foo", - }, - }, - ], - "removeType": "OBJECT_FDW", - }, - }, - "stmt_len": 30, - "stmt_location": 3095, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "role", - }, - }, - "stmt_len": 11, - "stmt_location": 3126, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 3149, - "rolename": "regress_test_role_super", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 3138, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFdwStmt": { - "fdwname": "foo", - }, - }, - "stmt_len": 35, - "stmt_location": 3173, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateForeignServerStmt": { - "fdwname": "foo", - "servername": "s1", - }, - }, - "stmt_len": 42, - "stmt_location": 3209, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "foreign server", - "object": { - "String": { - "sval": "s1", - }, - }, - "objtype": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 41, - "stmt_location": 3252, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateUserMappingStmt": { - "servername": "s1", - "user": { - "location": 3319, - "roletype": "ROLESPEC_CURRENT_USER", - }, - }, - }, - "stmt_len": 47, - "stmt_location": 3294, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 3430, - "sval": { - "sval": "regress_test_role", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 105, - "stmt_location": 3342, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "role", - }, - }, - "stmt_len": 83, - "stmt_location": 3448, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "String": { - "sval": "foo", - }, - }, - ], - "removeType": "OBJECT_FDW", - }, - }, - "stmt_len": 38, - "stmt_location": 3532, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFdwStmt": { - "fdwname": "foo", - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "true", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "test wrapper", - "location": 3718, - }, - }, - ], - }, - }, - "stmt_len": 169, - "stmt_location": 3571, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateForeignServerStmt": { - "fdwname": "foo", - "servername": "s1", - }, - }, - "stmt_len": 42, - "stmt_location": 3741, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateForeignServerStmt": { - "fdwname": "foo", - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "a", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "host", - "location": 3908, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "b", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "dbname", - "location": 3918, - }, - }, - ], - "servername": "s2", - }, - }, - "stmt_len": 145, - "stmt_location": 3784, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateForeignServerStmt": { - "fdwname": "foo", - "servername": "s3", - "servertype": "oracle", - }, - }, - "stmt_len": 56, - "stmt_location": 3930, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateForeignServerStmt": { - "fdwname": "foo", - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "a", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "host", - "location": 4053, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "b", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "dbname", - "location": 4063, - }, - }, - ], - "servername": "s4", - "servertype": "oracle", - }, - }, - "stmt_len": 87, - "stmt_location": 3987, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateForeignServerStmt": { - "fdwname": "foo", - "servername": "s5", - "version": "15.0", - }, - }, - "stmt_len": 57, - "stmt_location": 4075, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateForeignServerStmt": { - "fdwname": "foo", - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "a", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "host", - "location": 4200, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "b", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "dbname", - "location": 4210, - }, - }, - ], - "servername": "s6", - "version": "16.0", - }, - }, - "stmt_len": 88, - "stmt_location": 4133, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateForeignServerStmt": { - "fdwname": "foo", - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "a", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "host", - "location": 4303, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "b", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "dbname", - "location": 4313, - }, - }, - ], - "servername": "s7", - "servertype": "oracle", - "version": "17.0", - }, - }, - "stmt_len": 102, - "stmt_location": 4222, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateForeignServerStmt": { - "fdwname": "postgresql", - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "1", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "foo", - "location": 4384, - }, - }, - ], - "servername": "s8", - }, - }, - "stmt_len": 67, - "stmt_location": 4325, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateForeignServerStmt": { - "fdwname": "postgresql", - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "localhost", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "host", - "location": 4461, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "s8db", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "dbname", - "location": 4479, - }, - }, - ], - "servername": "s8", - }, - }, - "stmt_len": 100, - "stmt_location": 4393, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 4506, - "sval": { - "sval": "regress_test_role", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 29, - "stmt_location": 4494, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "role", - }, - }, - "stmt_len": 99, - "stmt_location": 4524, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 4668, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "String": { - "sval": "foo", - }, - }, - ], - "objtype": "OBJECT_FDW", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 61, - "stmt_location": 4624, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 4696, - "sval": { - "sval": "regress_test_role", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 27, - "stmt_location": 4686, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateForeignServerStmt": { - "fdwname": "foo", - "servername": "t1", - }, - }, - "stmt_len": 42, - "stmt_location": 4714, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "role", - }, - }, - "stmt_len": 11, - "stmt_location": 4757, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 4819, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "objects": [ - { - "String": { - "sval": "foo", - }, - }, - ], - "objtype": "OBJECT_FDW", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 67, - "stmt_location": 4769, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 4881, - "rolename": "regress_test_indirect", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "String": { - "sval": "foo", - }, - }, - ], - "objtype": "OBJECT_FDW", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 65, - "stmt_location": 4837, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 4913, - "sval": { - "sval": "regress_test_role", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 27, - "stmt_location": 4903, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "role", - }, - }, - "stmt_len": 82, - "stmt_location": 4931, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantRoleStmt": { - "behavior": "DROP_RESTRICT", - "granted_roles": [ - { - "AccessPriv": { - "priv_name": "regress_test_indirect", - }, - }, - ], - "grantee_roles": [ - { - "RoleSpec": { - "location": 5046, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - }, - }, - "stmt_len": 49, - "stmt_location": 5014, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 5074, - "sval": { - "sval": "regress_test_role", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 27, - "stmt_location": 5064, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateForeignServerStmt": { - "fdwname": "foo", - "servername": "t2", - }, - }, - "stmt_len": 42, - "stmt_location": 5092, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "role", - }, - }, - "stmt_len": 13, - "stmt_location": 5135, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantRoleStmt": { - "behavior": "DROP_RESTRICT", - "granted_roles": [ - { - "AccessPriv": { - "priv_name": "regress_test_indirect", - }, - }, - ], - "grantee_roles": [ - { - "RoleSpec": { - "location": 5184, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 5149, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterForeignServerStmt": { - "has_version": true, - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "s1", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "servername", - "location": 5403, - }, - }, - ], - "servername": "s1", - "version": "1.0", - }, - }, - "stmt_len": 217, - "stmt_location": 5202, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterForeignServerStmt": { - "has_version": true, - "servername": "s2", - "version": "1.1", - }, - }, - "stmt_len": 30, - "stmt_location": 5420, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterForeignServerStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "orcl", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "tns name", - "location": 5477, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "1521", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "port", - "location": 5496, - }, - }, - ], - "servername": "s3", - }, - }, - "stmt_len": 57, - "stmt_location": 5451, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 5546, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "String": { - "sval": "s1", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_SERVER", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 54, - "stmt_location": 5509, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grant_option": true, - "grantees": [ - { - "RoleSpec": { - "location": 5601, - "rolename": "regress_test_role2", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "String": { - "sval": "s6", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_SERVER", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 73, - "stmt_location": 5564, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 5650, - "sval": { - "sval": "regress_test_role", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 29, - "stmt_location": 5638, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 5766, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "String": { - "sval": "s1", - }, - }, - "objectType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 115, - "stmt_location": 5668, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "role", - }, - }, - "stmt_len": 36, - "stmt_location": 5784, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 5847, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "String": { - "sval": "s1", - }, - }, - "objectType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 43, - "stmt_location": 5821, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantRoleStmt": { - "behavior": "DROP_RESTRICT", - "granted_roles": [ - { - "AccessPriv": { - "priv_name": "regress_test_role2", - }, - }, - ], - "grantee_roles": [ - { - "RoleSpec": { - "location": 5894, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - }, - }, - "stmt_len": 46, - "stmt_location": 5865, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 5922, - "sval": { - "sval": "regress_test_role", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 27, - "stmt_location": 5912, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterForeignServerStmt": { - "has_version": true, - "servername": "s1", - "version": "1.1", - }, - }, - "stmt_len": 30, - "stmt_location": 5940, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 5997, - "rolename": "regress_test_role2", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "String": { - "sval": "s1", - }, - }, - "objectType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 44, - "stmt_location": 5971, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "role", - }, - }, - "stmt_len": 35, - "stmt_location": 6016, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterForeignServerStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "1", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "foo", - "location": 6078, - }, - }, - ], - "servername": "s8", - }, - }, - "stmt_len": 34, - "stmt_location": 6052, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterForeignServerStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "30", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "connect_timeout", - "location": 6165, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "db1", - }, - }, - "defaction": "DEFELEM_SET", - "defname": "dbname", - "location": 6191, - }, - }, - { - "DefElem": { - "defaction": "DEFELEM_DROP", - "defname": "host", - "location": 6210, - }, - }, - ], - "servername": "s8", - }, - }, - "stmt_len": 128, - "stmt_location": 6087, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 6226, - "sval": { - "sval": "regress_test_role", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 27, - "stmt_location": 6216, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 6270, - "rolename": "regress_test_indirect", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "String": { - "sval": "s1", - }, - }, - "objectType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 47, - "stmt_location": 6244, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "role", - }, - }, - "stmt_len": 32, - "stmt_location": 6292, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantRoleStmt": { - "behavior": "DROP_RESTRICT", - "granted_roles": [ - { - "AccessPriv": { - "priv_name": "regress_test_indirect", - }, - }, - ], - "grantee_roles": [ - { - "RoleSpec": { - "location": 6357, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - }, - }, - "stmt_len": 49, - "stmt_location": 6325, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 6385, - "sval": { - "sval": "regress_test_role", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 27, - "stmt_location": 6375, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 6429, - "rolename": "regress_test_indirect", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "String": { - "sval": "s1", - }, - }, - "objectType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 47, - "stmt_location": 6403, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "role", - }, - }, - "stmt_len": 11, - "stmt_location": 6451, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 6507, - "rolename": "regress_test_indirect", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "String": { - "sval": "foo", - }, - }, - ], - "objtype": "OBJECT_FDW", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 65, - "stmt_location": 6463, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 6539, - "sval": { - "sval": "regress_test_role", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 27, - "stmt_location": 6529, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 6583, - "rolename": "regress_test_indirect", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "String": { - "sval": "s1", - }, - }, - "objectType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 47, - "stmt_location": 6557, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "role", - }, - }, - "stmt_len": 11, - "stmt_location": 6605, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 6628, - "rolename": "regress_test_indirect", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 6617, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "s8new", - "object": { - "String": { - "sval": "s8", - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 71, - "stmt_location": 6650, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "s8", - "object": { - "String": { - "sval": "s8new", - }, - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 34, - "stmt_location": 6722, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "nonexistent", - }, - }, - ], - "removeType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 40, - "stmt_location": 6757, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "String": { - "sval": "nonexistent", - }, - }, - ], - "removeType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 78, - "stmt_location": 6798, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 6889, - "sval": { - "sval": "regress_test_role", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 29, - "stmt_location": 6877, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "s2", - }, - }, - ], - "removeType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 15, - "stmt_location": 6907, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "s1", - }, - }, - ], - "removeType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 68, - "stmt_location": 6923, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "role", - }, - }, - "stmt_len": 11, - "stmt_location": 6992, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 7032, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "String": { - "sval": "s2", - }, - }, - "objectType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 45, - "stmt_location": 7004, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 7060, - "sval": { - "sval": "regress_test_role", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 27, - "stmt_location": 7050, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "s2", - }, - }, - ], - "removeType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 15, - "stmt_location": 7078, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "role", - }, - }, - "stmt_len": 11, - "stmt_location": 7094, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateUserMappingStmt": { - "servername": "s3", - "user": { - "location": 7133, - "roletype": "ROLESPEC_CURRENT_USER", - }, - }, - }, - "stmt_len": 49, - "stmt_location": 7106, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "s3", - }, - }, - ], - "removeType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 17, - "stmt_location": 7156, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "String": { - "sval": "s3", - }, - }, - ], - "removeType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 76, - "stmt_location": 7174, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateUserMappingStmt": { - "servername": "s1", - "user": { - "location": 7304, - "rolename": "regress_test_missing_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - }, - "stmt_len": 88, - "stmt_location": 7251, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateUserMappingStmt": { - "servername": "s1", - "user": { - "location": 7375, - "roletype": "ROLESPEC_CURRENT_USER", - }, - }, - }, - "stmt_len": 57, - "stmt_location": 7340, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateUserMappingStmt": { - "servername": "s4", - "user": { - "location": 7444, - "roletype": "ROLESPEC_CURRENT_USER", - }, - }, - }, - "stmt_len": 68, - "stmt_location": 7398, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateUserMappingStmt": { - "servername": "s4", - "user": { - "location": 7492, - "roletype": "ROLESPEC_CURRENT_USER", - }, - }, - }, - "stmt_len": 39, - "stmt_location": 7467, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateUserMappingStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "is public", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "this mapping", - "location": 7597, - }, - }, - ], - "servername": "s4", - "user": { - "location": 7571, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - }, - "stmt_len": 117, - "stmt_location": 7507, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateUserMappingStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "test", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "username", - "location": 7674, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "secret", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "password", - "location": 7691, - }, - }, - ], - "servername": "s8", - "user": { - "location": 7650, - "roletype": "ROLESPEC_CURRENT_USER", - }, - }, - }, - "stmt_len": 84, - "stmt_location": 7625, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateUserMappingStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "test", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "user", - "location": 7771, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "secret", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "password", - "location": 7784, - }, - }, - ], - "servername": "s8", - "user": { - "location": 7747, - "roletype": "ROLESPEC_CURRENT_USER", - }, - }, - }, - "stmt_len": 92, - "stmt_location": 7710, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 7829, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "String": { - "sval": "s5", - }, - }, - "objectType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 43, - "stmt_location": 7803, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 7873, - "rolename": "regress_test_indirect", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "String": { - "sval": "s6", - }, - }, - "objectType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 47, - "stmt_location": 7847, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 7905, - "sval": { - "sval": "regress_test_role", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 27, - "stmt_location": 7895, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateUserMappingStmt": { - "servername": "s5", - "user": { - "location": 7948, - "roletype": "ROLESPEC_CURRENT_USER", - }, - }, - }, - "stmt_len": 47, - "stmt_location": 7923, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateUserMappingStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "test", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "username", - "location": 8028, - }, - }, - ], - "servername": "s6", - "user": { - "location": 7996, - "roletype": "ROLESPEC_CURRENT_USER", - }, - }, - }, - "stmt_len": 73, - "stmt_location": 7971, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateUserMappingStmt": { - "servername": "s7", - "user": { - "location": 8070, - "roletype": "ROLESPEC_CURRENT_USER", - }, - }, - }, - "stmt_len": 47, - "stmt_location": 8045, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateUserMappingStmt": { - "servername": "s8", - "user": { - "location": 8139, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - }, - "stmt_len": 62, - "stmt_location": 8093, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "role", - }, - }, - "stmt_len": 38, - "stmt_location": 8156, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 8222, - "rolename": "regress_test_indirect", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "String": { - "sval": "t1", - }, - }, - "objectType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 48, - "stmt_location": 8195, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 8254, - "sval": { - "sval": "regress_test_role", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 27, - "stmt_location": 8244, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateUserMappingStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "bob", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "username", - "location": 8329, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "boo", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "password", - "location": 8345, - }, - }, - ], - "servername": "t1", - "user": { - "location": 8297, - "roletype": "ROLESPEC_CURRENT_USER", - }, - }, - }, - "stmt_len": 88, - "stmt_location": 8272, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateUserMappingStmt": { - "servername": "t1", - "user": { - "location": 8386, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - }, - "stmt_len": 41, - "stmt_location": 8361, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "role", - }, - }, - "stmt_len": 11, - "stmt_location": 8403, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterUserMappingStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "true", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "gotcha", - "location": 8509, - }, - }, - ], - "servername": "s4", - "user": { - "location": 8464, - "rolename": "regress_test_missing_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - }, - "stmt_len": 108, - "stmt_location": 8415, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterUserMappingStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "true", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "gotcha", - "location": 8582, - }, - }, - ], - "servername": "ss4", - "user": { - "location": 8557, - "roletype": "ROLESPEC_CURRENT_USER", - }, - }, - }, - "stmt_len": 72, - "stmt_location": 8524, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterUserMappingStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "true", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "gotcha", - "location": 8656, - }, - }, - ], - "servername": "s5", - "user": { - "location": 8630, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - }, - "stmt_len": 73, - "stmt_location": 8597, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterUserMappingStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "test", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "username", - "location": 8747, - }, - }, - ], - "servername": "s8", - "user": { - "location": 8715, - "roletype": "ROLESPEC_CURRENT_USER", - }, - }, - }, - "stmt_len": 92, - "stmt_location": 8671, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterUserMappingStmt": { - "options": [ - { - "DefElem": { - "defaction": "DEFELEM_DROP", - "defname": "user", - "location": 8837, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "public", - }, - }, - "defaction": "DEFELEM_SET", - "defname": "password", - "location": 8847, - }, - }, - ], - "servername": "s8", - "user": { - "location": 8800, - "roletype": "ROLESPEC_CURRENT_USER", - }, - }, - }, - "stmt_len": 101, - "stmt_location": 8764, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 8876, - "sval": { - "sval": "regress_test_role", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 27, - "stmt_location": 8866, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterUserMappingStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "1", - }, - }, - "defaction": "DEFELEM_ADD", - "defname": "modified", - "location": 8954, - }, - }, - ], - "servername": "s5", - "user": { - "location": 8918, - "roletype": "ROLESPEC_CURRENT_USER", - }, - }, - }, - "stmt_len": 73, - "stmt_location": 8894, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterUserMappingStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "1", - }, - }, - "defaction": "DEFELEM_ADD", - "defname": "modified", - "location": 9022, - }, - }, - ], - "servername": "s4", - "user": { - "location": 8992, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - }, - "stmt_len": 67, - "stmt_location": 8968, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterUserMappingStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "1", - }, - }, - "defaction": "DEFELEM_ADD", - "defname": "modified", - "location": 9099, - }, - }, - ], - "servername": "t1", - "user": { - "location": 9069, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - }, - "stmt_len": 76, - "stmt_location": 9036, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "role", - }, - }, - "stmt_len": 11, - "stmt_location": 9113, - }, - }, - { - "RawStmt": { - "stmt": { - "DropUserMappingStmt": { - "servername": "s4", - "user": { - "location": 9172, - "rolename": "regress_test_missing_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - }, - "stmt_len": 82, - "stmt_location": 9125, - }, - }, - { - "RawStmt": { - "stmt": { - "DropUserMappingStmt": { - "servername": "ss4", - "user": { - "location": 9241, - "roletype": "ROLESPEC_CURRENT_USER", - }, - }, - }, - "stmt_len": 48, - "stmt_location": 9208, - }, - }, - { - "RawStmt": { - "stmt": { - "DropUserMappingStmt": { - "servername": "s7", - "user": { - "location": 9280, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - }, - "stmt_len": 39, - "stmt_location": 9257, - }, - }, - { - "RawStmt": { - "stmt": { - "DropUserMappingStmt": { - "missing_ok": true, - "servername": "s4", - "user": { - "location": 9359, - "rolename": "regress_test_missing_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - }, - "stmt_len": 97, - "stmt_location": 9297, - }, - }, - { - "RawStmt": { - "stmt": { - "DropUserMappingStmt": { - "missing_ok": true, - "servername": "ss4", - "user": { - "location": 9428, - "roletype": "ROLESPEC_CURRENT_USER", - }, - }, - }, - "stmt_len": 48, - "stmt_location": 9395, - }, - }, - { - "RawStmt": { - "stmt": { - "DropUserMappingStmt": { - "missing_ok": true, - "servername": "s7", - "user": { - "location": 9477, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - }, - "stmt_len": 49, - "stmt_location": 9444, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateUserMappingStmt": { - "servername": "s8", - "user": { - "location": 9519, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - }, - "stmt_len": 41, - "stmt_location": 9494, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 9546, - "sval": { - "sval": "regress_test_role", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 27, - "stmt_location": 9536, - }, - }, - { - "RawStmt": { - "stmt": { - "DropUserMappingStmt": { - "servername": "s8", - "user": { - "location": 9587, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - }, - "stmt_len": 39, - "stmt_location": 9564, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "role", - }, - }, - "stmt_len": 40, - "stmt_location": 9604, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "s7", - }, - }, - ], - "removeType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 15, - "stmt_location": 9645, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateSchemaStmt": { - "schemaname": "foreign_schema", - }, - }, - "stmt_len": 56, - "stmt_location": 9661, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateForeignServerStmt": { - "fdwname": "dummy", - "servername": "s0", - }, - }, - "stmt_len": 44, - "stmt_location": 9718, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateForeignTableStmt": { - "base": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 9861, - "relname": "ft1", - "relpersistence": "p", - }, - }, - "servername": "no_server", - }, - }, - "stmt_len": 121, - "stmt_location": 9763, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateForeignTableStmt": { - "base": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 10010, - "relname": "ft1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "c1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 10055, - }, - }, - ], - "fdwoptions": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "val1", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "param 1", - "location": 10037, - }, - }, - ], - "is_local": true, - "location": 10017, - "typeName": { - "location": 10020, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c2", - "fdwoptions": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "val2", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "param2", - "location": 10086, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "val3", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "param3", - "location": 10101, - }, - }, - ], - "is_local": true, - "location": 10069, - "typeName": { - "location": 10072, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c3", - "is_local": true, - "location": 10118, - "typeName": { - "location": 10121, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": ",", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "delimiter", - "location": 10147, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": """, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "quote", - "location": 10162, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "value", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "be quoted", - "location": 10173, - }, - }, - ], - "servername": "s0", - }, - }, - "stmt_len": 308, - "stmt_location": 9885, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 10217, - "relname": "ref_table", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 10239, - }, - }, - ], - "is_local": true, - "location": 10228, - "typeName": { - "location": 10231, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 10194, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateForeignTableStmt": { - "base": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 10274, - "relname": "ft1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "c1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 10319, - "pk_attrs": [ - { - "String": { - "sval": "id", - }, - }, - ], - "pktable": { - "inh": true, - "location": 10330, - "relname": "ref_table", - "relpersistence": "p", - }, - }, - }, - ], - "fdwoptions": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "val1", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "param 1", - "location": 10301, - }, - }, - ], - "is_local": true, - "location": 10281, - "typeName": { - "location": 10284, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c2", - "fdwoptions": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "val2", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "param2", - "location": 10364, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "val3", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "param3", - "location": 10379, - }, - }, - ], - "is_local": true, - "location": 10347, - "typeName": { - "location": 10350, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c3", - "is_local": true, - "location": 10396, - "typeName": { - "location": 10399, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": ",", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "delimiter", - "location": 10425, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": """, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "quote", - "location": 10440, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "value", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "be quoted", - "location": 10451, - }, - }, - ], - "servername": "s0", - }, - }, - "stmt_len": 219, - "stmt_location": 10252, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "ref_table", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 30, - "stmt_location": 10472, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateForeignTableStmt": { - "base": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 10525, - "relname": "ft1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "c1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 10570, - }, - }, - ], - "fdwoptions": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "val1", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "param 1", - "location": 10552, - }, - }, - ], - "is_local": true, - "location": 10532, - "typeName": { - "location": 10535, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c2", - "fdwoptions": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "val2", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "param2", - "location": 10598, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "val3", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "param3", - "location": 10613, - }, - }, - ], - "is_local": true, - "location": 10581, - "typeName": { - "location": 10584, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c3", - "is_local": true, - "location": 10630, - "typeName": { - "location": 10633, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_UNIQUE", - "keys": [ - { - "String": { - "sval": "c3", - }, - }, - ], - "location": 10640, - }, - }, - ], - }, - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": ",", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "delimiter", - "location": 10673, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": """, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "quote", - "location": 10688, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "value", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "be quoted", - "location": 10699, - }, - }, - ], - "servername": "s0", - }, - }, - "stmt_len": 216, - "stmt_location": 10503, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateForeignTableStmt": { - "base": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 10751, - "relname": "ft1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "c1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 10796, - }, - }, - ], - "fdwoptions": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "val1", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "param 1", - "location": 10778, - }, - }, - ], - "is_local": true, - "location": 10758, - "typeName": { - "location": 10761, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c2", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 10854, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c2", - }, - }, - ], - "location": 10861, - }, - }, - "location": 10864, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 10867, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - }, - }, - ], - "fdwoptions": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "val2", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "param2", - "location": 10824, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "val3", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "param3", - "location": 10839, - }, - }, - ], - "is_local": true, - "location": 10807, - "typeName": { - "location": 10810, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c3", - "is_local": true, - "location": 10873, - "typeName": { - "location": 10876, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 10883, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_BETWEEN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c3", - }, - }, - ], - "location": 10890, - }, - }, - "location": 10893, - "name": [ - { - "String": { - "sval": "BETWEEN", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10901, - "sval": { - "sval": "1994-01-01", - }, - }, - }, - "location": 10913, - "typeName": { - "location": 10915, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10924, - "sval": { - "sval": "1994-01-31", - }, - }, - }, - "location": 10936, - "typeName": { - "location": 10938, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - }, - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": ",", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "delimiter", - "location": 10965, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": """, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "quote", - "location": 10980, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "value", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "be quoted", - "location": 10991, - }, - }, - ], - "servername": "s0", - }, - }, - "stmt_len": 291, - "stmt_location": 10720, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "ft1", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "ft1", - }, - }, - ], - }, - }, - "objtype": "OBJECT_FOREIGN_TABLE", - }, - }, - "stmt_len": 38, - "stmt_location": 11012, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "ft1.c1", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "ft1", - }, - }, - { - "String": { - "sval": "c1", - }, - }, - ], - }, - }, - "objtype": "OBJECT_COLUMN", - }, - }, - "stmt_len": 37, - "stmt_location": 11051, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "id_ft1_c2", - "indexParams": [ - { - "IndexElem": { - "name": "c2", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 11120, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 39, - "stmt_location": 11089, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 11181, - "relname": "ft1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11174, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 11174, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 55, - "stmt_location": 11129, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 11262, - "relname": "ft1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11255, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 11255, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 80, - "stmt_location": 11185, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "foreign table", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "ft1", - }, - }, - ], - }, - }, - "objtype": "OBJECT_FOREIGN_TABLE", - }, - }, - "stmt_len": 118, - "stmt_location": 11266, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "object": { - "List": { - "items": [ - { - "String": { - "sval": "ft1", - }, - }, - ], - }, - }, - "objtype": "OBJECT_FOREIGN_TABLE", - }, - }, - "stmt_len": 37, - "stmt_location": 11385, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "foreign column", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "ft1", - }, - }, - { - "String": { - "sval": "c1", - }, - }, - ], - }, - }, - "objtype": "OBJECT_COLUMN", - }, - }, - "stmt_len": 45, - "stmt_location": 11423, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "object": { - "List": { - "items": [ - { - "String": { - "sval": "ft1", - }, - }, - { - "String": { - "sval": "c1", - }, - }, - ], - }, - }, - "objtype": "OBJECT_COLUMN", - }, - }, - "stmt_len": 33, - "stmt_location": 11469, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "c4", - "is_local": true, - "location": 11540, - "typeName": { - "location": 11543, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 11525, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 47, - "stmt_location": 11503, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "c5", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 11598, - "raw_expr": { - "A_Const": { - "ival": {}, - "location": 11606, - }, - }, - }, - }, - ], - "is_local": true, - "location": 11587, - "typeName": { - "location": 11590, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 11572, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 56, - "stmt_location": 11551, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "c6", - "is_local": true, - "location": 11644, - "typeName": { - "location": 11647, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 11629, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 46, - "stmt_location": 11608, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "c7", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 11702, - }, - }, - ], - "is_local": true, - "location": 11691, - "typeName": { - "location": 11694, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 11676, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 55, - "stmt_location": 11655, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "c8", - "is_local": true, - "location": 11747, - "typeName": { - "location": 11750, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 11732, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 46, - "stmt_location": 11711, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "c9", - "is_local": true, - "location": 11794, - "typeName": { - "location": 11797, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 11779, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 46, - "stmt_location": 11758, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "c10", - "fdwoptions": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "v1", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "p1", - "location": 11862, - }, - }, - ], - "is_local": true, - "location": 11841, - "typeName": { - "location": 11845, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 11826, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 65, - "stmt_location": 11805, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "A_Const": { - "ival": {}, - "location": 11925, - }, - }, - "name": "c4", - "subtype": "AT_ColumnDefault", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 11893, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 55, - "stmt_location": 11871, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "c5", - "subtype": "AT_ColumnDefault", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 11948, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 53, - "stmt_location": 11927, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "c6", - "subtype": "AT_SetNotNull", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 12002, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 53, - "stmt_location": 11981, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "c7", - "subtype": "AT_DropNotNull", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 12056, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 54, - "stmt_location": 12035, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "location": 12128, - "raw_default": { - "A_Const": { - "location": 12151, - "sval": { - "sval": "0", - }, - }, - }, - "typeName": { - "location": 12136, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bpchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 12141, - }, - }, - ], - }, - }, - }, - "name": "c8", - "subtype": "AT_AlterColumnType", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 12111, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 64, - "stmt_location": 12090, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "location": 12202, - "typeName": { - "location": 12210, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bpchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 12215, - }, - }, - ], - }, - }, - }, - "name": "c8", - "subtype": "AT_AlterColumnType", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 12185, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 63, - "stmt_location": 12155, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "location": 12257, - "typeName": { - "location": 12274, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "name": "c8", - "subtype": "AT_AlterColumnType", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 12240, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 59, - "stmt_location": 12219, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "List": { - "items": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "v1", - }, - }, - "defaction": "DEFELEM_ADD", - "defname": "p1", - "location": 12335, - }, - }, - ], - }, - }, - "name": "xmin", - "subtype": "AT_AlterColumnGenericOptions", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 12300, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 64, - "stmt_location": 12279, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "List": { - "items": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "v1", - }, - }, - "defaction": "DEFELEM_ADD", - "defname": "p1", - "location": 12407, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "v2", - }, - }, - "defaction": "DEFELEM_ADD", - "defname": "p2", - "location": 12420, - }, - }, - ], - }, - }, - "name": "c7", - "subtype": "AT_AlterColumnGenericOptions", - }, - }, - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "List": { - "items": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "v1", - }, - }, - "defaction": "DEFELEM_ADD", - "defname": "p1", - "location": 12483, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "v2", - }, - }, - "defaction": "DEFELEM_ADD", - "defname": "p2", - "location": 12496, - }, - }, - ], - }, - }, - "name": "c8", - "subtype": "AT_AlterColumnGenericOptions", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 12374, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 160, - "stmt_location": 12344, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "List": { - "items": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "V2", - }, - }, - "defaction": "DEFELEM_SET", - "defname": "p2", - "location": 12559, - }, - }, - { - "DefElem": { - "defaction": "DEFELEM_DROP", - "defname": "p1", - "location": 12573, - }, - }, - ], - }, - }, - "name": "c8", - "subtype": "AT_AlterColumnGenericOptions", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 12526, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 71, - "stmt_location": 12505, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Integer": { - "ival": 10000, - }, - }, - "name": "c1", - "subtype": "AT_SetStatistics", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 12598, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 61, - "stmt_location": 12577, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "List": { - "items": [ - { - "DefElem": { - "arg": { - "Integer": { - "ival": 100, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "n_distinct", - "location": 12685, - }, - }, - ], - }, - }, - "name": "c1", - "subtype": "AT_SetOptions", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 12660, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 63, - "stmt_location": 12639, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Integer": { - "ival": -1, - }, - }, - "name": "c8", - "subtype": "AT_SetStatistics", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 12724, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 58, - "stmt_location": 12703, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "String": { - "sval": "plain", - }, - }, - "name": "c8", - "subtype": "AT_SetStorage", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 12783, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 58, - "stmt_location": 12762, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 12892, - "relname": "use_ft1_column_type", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "x", - "is_local": true, - "location": 12913, - "typeName": { - "location": 12915, - "names": [ - { - "String": { - "sval": "ft1", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 98, - "stmt_location": 12821, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "location": 12958, - "typeName": { - "location": 12975, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "name": "c8", - "subtype": "AT_AlterColumnType", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 12941, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 62, - "stmt_location": 12920, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "use_ft1_column_type", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 40, - "stmt_location": 12983, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "c7", - }, - }, - ], - "location": 13053, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 13045, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 45, - "stmt_location": 13024, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "ft1_c9_check", - "contype": "CONSTR_CHECK", - "location": 13126, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c9", - }, - }, - ], - "location": 13157, - }, - }, - "location": 13160, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 13162, - }, - }, - }, - }, - "skip_validation": true, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 13118, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 104, - "stmt_location": 13070, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "ft1_c9_check", - "subtype": "AT_DropConstraint", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 13274, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 131, - "stmt_location": 13175, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "no_const", - "subtype": "AT_DropConstraint", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 13328, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 49, - "stmt_location": 13307, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "name": "no_const", - "subtype": "AT_DropConstraint", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 13401, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 82, - "stmt_location": 13357, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "newowner": { - "location": 13516, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - "subtype": "AT_ChangeOwner", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 13503, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 93, - "stmt_location": 13440, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "List": { - "items": [ - { - "DefElem": { - "defaction": "DEFELEM_DROP", - "defname": "delimiter", - "location": 13573, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "~", - }, - }, - "defaction": "DEFELEM_SET", - "defname": "quote", - "location": 13588, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "@", - }, - }, - "defaction": "DEFELEM_ADD", - "defname": "escape", - "location": 13603, - }, - }, - ], - }, - }, - "subtype": "AT_GenericOptions", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 13555, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 80, - "stmt_location": 13534, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "no_column", - "subtype": "AT_DropColumn", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 13636, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 46, - "stmt_location": 13615, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "name": "no_column", - "subtype": "AT_DropColumn", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 13709, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 82, - "stmt_location": 13662, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "c9", - "subtype": "AT_DropColumn", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 13766, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 39, - "stmt_location": 13745, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "newschema": "foreign_schema", - "objectType": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 13806, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 50, - "stmt_location": 13785, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "ts", - "subtype": "AT_SetTableSpace", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 13857, - "relname": "ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 42, - "stmt_location": 13836, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "foreign_column_1", - "relation": { - "inh": true, - "location": 13930, - "relname": "ft1", - "relpersistence": "p", - "schemaname": "foreign_schema", - }, - "relationType": "OBJECT_FOREIGN_TABLE", - "renameType": "OBJECT_COLUMN", - "subname": "c1", - }, - }, - "stmt_len": 99, - "stmt_location": 13879, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "foreign_table_1", - "relation": { - "inh": true, - "location": 14000, - "relname": "ft1", - "relpersistence": "p", - "schemaname": "foreign_schema", - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_FOREIGN_TABLE", - }, - }, - "stmt_len": 65, - "stmt_location": 13979, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "c4", - "is_local": true, - "location": 14133, - "typeName": { - "location": 14136, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "missing_ok": true, - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 14105, - "relname": "doesnt_exist_ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 98, - "stmt_location": 14045, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "c6", - "is_local": true, - "location": 14203, - "typeName": { - "location": 14206, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "missing_ok": true, - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 14175, - "relname": "doesnt_exist_ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 69, - "stmt_location": 14144, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "c7", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 14284, - }, - }, - ], - "is_local": true, - "location": 14273, - "typeName": { - "location": 14276, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "missing_ok": true, - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 14245, - "relname": "doesnt_exist_ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 78, - "stmt_location": 14214, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "c8", - "is_local": true, - "location": 14352, - "typeName": { - "location": 14355, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "missing_ok": true, - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 14324, - "relname": "doesnt_exist_ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 69, - "stmt_location": 14293, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "c9", - "is_local": true, - "location": 14422, - "typeName": { - "location": 14425, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "missing_ok": true, - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 14394, - "relname": "doesnt_exist_ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 69, - "stmt_location": 14363, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "c10", - "fdwoptions": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "v1", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "p1", - "location": 14513, - }, - }, - ], - "is_local": true, - "location": 14492, - "typeName": { - "location": 14496, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "missing_ok": true, - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 14464, - "relname": "doesnt_exist_ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 88, - "stmt_location": 14433, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "c6", - "subtype": "AT_SetNotNull", - }, - }, - ], - "missing_ok": true, - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 14554, - "relname": "doesnt_exist_ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 77, - "stmt_location": 14522, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "c7", - "subtype": "AT_DropNotNull", - }, - }, - ], - "missing_ok": true, - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 14631, - "relname": "doesnt_exist_ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 77, - "stmt_location": 14600, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "location": 14739, - "typeName": { - "location": 14747, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bpchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 14752, - }, - }, - ], - }, - }, - }, - "name": "c8", - "subtype": "AT_AlterColumnType", - }, - }, - ], - "missing_ok": true, - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 14709, - "relname": "doesnt_exist_ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 77, - "stmt_location": 14678, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "location": 14817, - "typeName": { - "location": 14834, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "name": "c8", - "subtype": "AT_AlterColumnType", - }, - }, - ], - "missing_ok": true, - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 14787, - "relname": "doesnt_exist_ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 82, - "stmt_location": 14756, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "List": { - "items": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "v1", - }, - }, - "defaction": "DEFELEM_ADD", - "defname": "p1", - "location": 14916, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "v2", - }, - }, - "defaction": "DEFELEM_ADD", - "defname": "p2", - "location": 14929, - }, - }, - ], - }, - }, - "name": "c7", - "subtype": "AT_AlterColumnGenericOptions", - }, - }, - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "List": { - "items": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "v1", - }, - }, - "defaction": "DEFELEM_ADD", - "defname": "p1", - "location": 14992, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "v2", - }, - }, - "defaction": "DEFELEM_ADD", - "defname": "p2", - "location": 15005, - }, - }, - ], - }, - }, - "name": "c8", - "subtype": "AT_AlterColumnGenericOptions", - }, - }, - ], - "missing_ok": true, - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 14870, - "relname": "doesnt_exist_ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 174, - "stmt_location": 14839, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "List": { - "items": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "V2", - }, - }, - "defaction": "DEFELEM_SET", - "defname": "p2", - "location": 15091, - }, - }, - { - "DefElem": { - "defaction": "DEFELEM_DROP", - "defname": "p1", - "location": 15105, - }, - }, - ], - }, - }, - "name": "c8", - "subtype": "AT_AlterColumnGenericOptions", - }, - }, - ], - "missing_ok": true, - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 15045, - "relname": "doesnt_exist_ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 94, - "stmt_location": 15014, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "name": "no_const", - "subtype": "AT_DropConstraint", - }, - }, - ], - "missing_ok": true, - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 15141, - "relname": "doesnt_exist_ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 83, - "stmt_location": 15109, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "ft1_c1_check", - "subtype": "AT_DropConstraint", - }, - }, - ], - "missing_ok": true, - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 15224, - "relname": "doesnt_exist_ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 76, - "stmt_location": 15193, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "newowner": { - "location": 15327, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - "subtype": "AT_ChangeOwner", - }, - }, - ], - "missing_ok": true, - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 15301, - "relname": "doesnt_exist_ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 74, - "stmt_location": 15270, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "List": { - "items": [ - { - "DefElem": { - "defaction": "DEFELEM_DROP", - "defname": "delimiter", - "location": 15407, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "~", - }, - }, - "defaction": "DEFELEM_SET", - "defname": "quote", - "location": 15422, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "@", - }, - }, - "defaction": "DEFELEM_ADD", - "defname": "escape", - "location": 15437, - }, - }, - ], - }, - }, - "subtype": "AT_GenericOptions", - }, - }, - ], - "missing_ok": true, - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 15376, - "relname": "doesnt_exist_ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 103, - "stmt_location": 15345, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "name": "no_column", - "subtype": "AT_DropColumn", - }, - }, - ], - "missing_ok": true, - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 15480, - "relname": "doesnt_exist_ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 79, - "stmt_location": 15449, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "c9", - "subtype": "AT_DropColumn", - }, - }, - ], - "missing_ok": true, - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 15560, - "relname": "doesnt_exist_ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 62, - "stmt_location": 15529, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterObjectSchemaStmt": { - "missing_ok": true, - "newschema": "foreign_schema", - "objectType": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 15623, - "relname": "doesnt_exist_ft1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 73, - "stmt_location": 15592, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "newname": "foreign_column_1", - "relation": { - "inh": true, - "location": 15697, - "relname": "doesnt_exist_ft1", - "relpersistence": "p", - }, - "relationType": "OBJECT_FOREIGN_TABLE", - "renameType": "OBJECT_COLUMN", - "subname": "c1", - }, - }, - "stmt_len": 77, - "stmt_location": 15666, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "newname": "foreign_table_1", - "relation": { - "inh": true, - "location": 15775, - "relname": "doesnt_exist_ft1", - "relpersistence": "p", - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_FOREIGN_TABLE", - }, - }, - "stmt_len": 73, - "stmt_location": 15744, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 15857, - "relname": "foreign_data_wrappers", - "relpersistence": "p", - "schemaname": "information_schema", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 15907, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 15910, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 15850, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 15850, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 93, - "stmt_location": 15818, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 15927, - "relname": "foreign_data_wrapper_options", - "relpersistence": "p", - "schemaname": "information_schema", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 15984, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 15987, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 15990, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 15920, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 15920, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 79, - "stmt_location": 15912, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 16007, - "relname": "foreign_servers", - "relpersistence": "p", - "schemaname": "information_schema", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 16051, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 16054, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 16000, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 16000, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 15992, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 16071, - "relname": "foreign_server_options", - "relpersistence": "p", - "schemaname": "information_schema", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 16122, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 16125, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 16128, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 16064, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 16064, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 16056, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 16145, - "relname": "user_mappings", - "relpersistence": "p", - "schemaname": "information_schema", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "authorization_identifier", - }, - }, - ], - "location": 16193, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 16187, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 16220, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 16223, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 16138, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 16138, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 94, - "stmt_location": 16130, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 16240, - "relname": "user_mapping_options", - "relpersistence": "p", - "schemaname": "information_schema", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "authorization_identifier", - }, - }, - ], - "location": 16295, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 16289, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 16322, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 16325, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 16328, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 16233, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 16233, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 104, - "stmt_location": 16225, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 16345, - "relname": "usage_privileges", - "relpersistence": "p", - "schemaname": "information_schema", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 16457, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 16460, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 16463, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 16466, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 16469, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 16338, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 16338, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "object_type", - }, - }, - ], - "location": 16387, - }, - }, - "location": 16399, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 16404, - "sval": { - "sval": "FOREIGN%", - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "object_name", - }, - }, - ], - "location": 16419, - }, - }, - "location": 16431, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 16435, - "sval": { - "sval": "s6", - }, - }, - }, - { - "A_Const": { - "location": 16441, - "sval": { - "sval": "foo", - }, - }, - }, - ], - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 16415, - }, - }, - }, - }, - "stmt_len": 140, - "stmt_location": 16330, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 16486, - "relname": "role_usage_grants", - "relpersistence": "p", - "schemaname": "information_schema", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 16599, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 16602, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 16605, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 16608, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 16611, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 16479, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 16479, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "object_type", - }, - }, - ], - "location": 16529, - }, - }, - "location": 16541, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 16546, - "sval": { - "sval": "FOREIGN%", - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "object_name", - }, - }, - ], - "location": 16561, - }, - }, - "location": 16573, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 16577, - "sval": { - "sval": "s6", - }, - }, - }, - { - "A_Const": { - "location": 16583, - "sval": { - "sval": "foo", - }, - }, - }, - ], - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 16557, - }, - }, - }, - }, - "stmt_len": 141, - "stmt_location": 16471, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 16628, - "relname": "foreign_tables", - "relpersistence": "p", - "schemaname": "information_schema", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 16671, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 16674, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 16677, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 16621, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 16621, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 65, - "stmt_location": 16613, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 16694, - "relname": "foreign_table_options", - "relpersistence": "p", - "schemaname": "information_schema", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 16744, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 16747, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 16750, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 16753, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 16687, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 16687, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 75, - "stmt_location": 16679, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 16765, - "sval": { - "sval": "regress_test_role", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 27, - "stmt_location": 16755, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 16798, - "relname": "user_mapping_options", - "relpersistence": "p", - "schemaname": "information_schema", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 16847, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 16850, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 16853, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 16856, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 16791, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 16791, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 74, - "stmt_location": 16783, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 16873, - "relname": "usage_privileges", - "relpersistence": "p", - "schemaname": "information_schema", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 16985, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 16988, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 16991, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 16994, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 16997, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 16866, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 16866, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "object_type", - }, - }, - ], - "location": 16915, - }, - }, - "location": 16927, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 16932, - "sval": { - "sval": "FOREIGN%", - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "object_name", - }, - }, - ], - "location": 16947, - }, - }, - "location": 16959, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 16963, - "sval": { - "sval": "s6", - }, - }, - }, - { - "A_Const": { - "location": 16969, - "sval": { - "sval": "foo", - }, - }, - }, - ], - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 16943, - }, - }, - }, - }, - "stmt_len": 140, - "stmt_location": 16858, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 17014, - "relname": "role_usage_grants", - "relpersistence": "p", - "schemaname": "information_schema", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 17127, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 17130, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 17133, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 17136, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 17139, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 17007, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 17007, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "object_type", - }, - }, - ], - "location": 17057, - }, - }, - "location": 17069, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 17074, - "sval": { - "sval": "FOREIGN%", - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "object_name", - }, - }, - ], - "location": 17089, - }, - }, - "location": 17101, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 17105, - "sval": { - "sval": "s6", - }, - }, - }, - { - "A_Const": { - "location": 17111, - "sval": { - "sval": "foo", - }, - }, - }, - ], - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 17085, - }, - }, - }, - }, - "stmt_len": 141, - "stmt_location": 16999, - }, - }, - { - "RawStmt": { - "stmt": { - "DropUserMappingStmt": { - "servername": "t1", - "user": { - "location": 17164, - "roletype": "ROLESPEC_CURRENT_USER", - }, - }, - }, - "stmt_len": 45, - "stmt_location": 17141, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 17197, - "sval": { - "sval": "regress_test_role2", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 28, - "stmt_location": 17187, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 17231, - "relname": "user_mapping_options", - "relpersistence": "p", - "schemaname": "information_schema", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 17280, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 17283, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 17286, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 17289, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 17224, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 17224, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 74, - "stmt_location": 17216, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "role", - }, - }, - "stmt_len": 11, - "stmt_location": 17291, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17351, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 17386, - "sval": { - "sval": "regress_test_role", - }, - }, - }, - { - "SubLink": { - "location": 17411, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 17428, - "relname": "pg_foreign_data_wrapper", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17419, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 17419, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fdwname", - }, - }, - ], - "location": 17458, - }, - }, - "location": 17465, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 17466, - "sval": { - "sval": "foo", - }, - }, - }, - }, - }, - }, - }, - }, - }, - { - "A_Const": { - "location": 17474, - "sval": { - "sval": "USAGE", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "has_foreign_data_wrapper_privilege", - }, - }, - ], - "location": 17351, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 179, - "stmt_location": 17303, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17491, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 17526, - "sval": { - "sval": "regress_test_role", - }, - }, - }, - { - "A_Const": { - "location": 17547, - "sval": { - "sval": "foo", - }, - }, - }, - { - "A_Const": { - "location": 17554, - "sval": { - "sval": "USAGE", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "has_foreign_data_wrapper_privilege", - }, - }, - ], - "location": 17491, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 79, - "stmt_location": 17483, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17571, - "val": { - "FuncCall": { - "args": [ - { - "SubLink": { - "location": 17611, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 17628, - "relname": "pg_roles", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17619, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 17619, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "rolname", - }, - }, - ], - "location": 17643, - }, - }, - "location": 17650, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 17651, - "sval": { - "sval": "regress_test_role", - }, - }, - }, - }, - }, - }, - }, - }, - }, - { - "SubLink": { - "location": 17677, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 17694, - "relname": "pg_foreign_data_wrapper", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17685, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 17685, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fdwname", - }, - }, - ], - "location": 17724, - }, - }, - "location": 17731, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 17732, - "sval": { - "sval": "foo", - }, - }, - }, - }, - }, - }, - }, - }, - }, - { - "A_Const": { - "location": 17740, - "sval": { - "sval": "USAGE", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "has_foreign_data_wrapper_privilege", - }, - }, - ], - "location": 17571, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 185, - "stmt_location": 17563, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17757, - "val": { - "FuncCall": { - "args": [ - { - "SubLink": { - "location": 17797, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 17814, - "relname": "pg_foreign_data_wrapper", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17805, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 17805, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fdwname", - }, - }, - ], - "location": 17844, - }, - }, - "location": 17851, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 17852, - "sval": { - "sval": "foo", - }, - }, - }, - }, - }, - }, - }, - }, - }, - { - "A_Const": { - "location": 17860, - "sval": { - "sval": "USAGE", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "has_foreign_data_wrapper_privilege", - }, - }, - ], - "location": 17757, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 119, - "stmt_location": 17749, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17877, - "val": { - "FuncCall": { - "args": [ - { - "SubLink": { - "location": 17917, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 17934, - "relname": "pg_roles", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17925, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 17925, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "rolname", - }, - }, - ], - "location": 17949, - }, - }, - "location": 17956, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 17957, - "sval": { - "sval": "regress_test_role", - }, - }, - }, - }, - }, - }, - }, - }, - }, - { - "A_Const": { - "location": 17979, - "sval": { - "sval": "foo", - }, - }, - }, - { - "A_Const": { - "location": 17986, - "sval": { - "sval": "USAGE", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "has_foreign_data_wrapper_privilege", - }, - }, - ], - "location": 17877, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 125, - "stmt_location": 17869, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18003, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 18038, - "sval": { - "sval": "foo", - }, - }, - }, - { - "A_Const": { - "location": 18045, - "sval": { - "sval": "USAGE", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "has_foreign_data_wrapper_privilege", - }, - }, - ], - "location": 18003, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 58, - "stmt_location": 17995, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 18098, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "String": { - "sval": "foo", - }, - }, - ], - "objtype": "OBJECT_FDW", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 61, - "stmt_location": 18054, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18124, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 18159, - "sval": { - "sval": "regress_test_role", - }, - }, - }, - { - "A_Const": { - "location": 18180, - "sval": { - "sval": "foo", - }, - }, - }, - { - "A_Const": { - "location": 18187, - "sval": { - "sval": "USAGE", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "has_foreign_data_wrapper_privilege", - }, - }, - ], - "location": 18124, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 79, - "stmt_location": 18116, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18229, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 18250, - "sval": { - "sval": "regress_test_role", - }, - }, - }, - { - "SubLink": { - "location": 18275, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 18292, - "relname": "pg_foreign_server", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18283, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 18283, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "srvname", - }, - }, - ], - "location": 18316, - }, - }, - "location": 18323, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 18324, - "sval": { - "sval": "s8", - }, - }, - }, - }, - }, - }, - }, - }, - }, - { - "A_Const": { - "location": 18331, - "sval": { - "sval": "USAGE", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "has_server_privilege", - }, - }, - ], - "location": 18229, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 143, - "stmt_location": 18196, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18348, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 18369, - "sval": { - "sval": "regress_test_role", - }, - }, - }, - { - "A_Const": { - "location": 18390, - "sval": { - "sval": "s8", - }, - }, - }, - { - "A_Const": { - "location": 18396, - "sval": { - "sval": "USAGE", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "has_server_privilege", - }, - }, - ], - "location": 18348, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 64, - "stmt_location": 18340, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18413, - "val": { - "FuncCall": { - "args": [ - { - "SubLink": { - "location": 18439, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 18456, - "relname": "pg_roles", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18447, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 18447, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "rolname", - }, - }, - ], - "location": 18471, - }, - }, - "location": 18478, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 18479, - "sval": { - "sval": "regress_test_role", - }, - }, - }, - }, - }, - }, - }, - }, - }, - { - "SubLink": { - "location": 18505, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 18522, - "relname": "pg_foreign_server", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18513, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 18513, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "srvname", - }, - }, - ], - "location": 18546, - }, - }, - "location": 18553, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 18554, - "sval": { - "sval": "s8", - }, - }, - }, - }, - }, - }, - }, - }, - }, - { - "A_Const": { - "location": 18561, - "sval": { - "sval": "USAGE", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "has_server_privilege", - }, - }, - ], - "location": 18413, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 164, - "stmt_location": 18405, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18578, - "val": { - "FuncCall": { - "args": [ - { - "SubLink": { - "location": 18604, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 18621, - "relname": "pg_foreign_server", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18612, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 18612, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "srvname", - }, - }, - ], - "location": 18645, - }, - }, - "location": 18652, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 18653, - "sval": { - "sval": "s8", - }, - }, - }, - }, - }, - }, - }, - }, - }, - { - "A_Const": { - "location": 18660, - "sval": { - "sval": "USAGE", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "has_server_privilege", - }, - }, - ], - "location": 18578, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 98, - "stmt_location": 18570, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18677, - "val": { - "FuncCall": { - "args": [ - { - "SubLink": { - "location": 18703, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 18720, - "relname": "pg_roles", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18711, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 18711, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "rolname", - }, - }, - ], - "location": 18735, - }, - }, - "location": 18742, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 18743, - "sval": { - "sval": "regress_test_role", - }, - }, - }, - }, - }, - }, - }, - }, - }, - { - "A_Const": { - "location": 18765, - "sval": { - "sval": "s8", - }, - }, - }, - { - "A_Const": { - "location": 18771, - "sval": { - "sval": "USAGE", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "has_server_privilege", - }, - }, - ], - "location": 18677, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 110, - "stmt_location": 18669, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18788, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 18809, - "sval": { - "sval": "s8", - }, - }, - }, - { - "A_Const": { - "location": 18815, - "sval": { - "sval": "USAGE", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "has_server_privilege", - }, - }, - ], - "location": 18788, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 43, - "stmt_location": 18780, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 18861, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "String": { - "sval": "s8", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_SERVER", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 54, - "stmt_location": 18824, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18887, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 18908, - "sval": { - "sval": "regress_test_role", - }, - }, - }, - { - "A_Const": { - "location": 18929, - "sval": { - "sval": "s8", - }, - }, - }, - { - "A_Const": { - "location": 18935, - "sval": { - "sval": "USAGE", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "has_server_privilege", - }, - }, - ], - "location": 18887, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 64, - "stmt_location": 18879, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 18984, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "objects": [ - { - "String": { - "sval": "s8", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_SERVER", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 57, - "stmt_location": 18944, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 19040, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "String": { - "sval": "s4", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_SERVER", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 55, - "stmt_location": 19002, - }, - }, - { - "RawStmt": { - "stmt": { - "DropUserMappingStmt": { - "servername": "s4", - "user": { - "location": 19081, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - }, - "stmt_len": 39, - "stmt_location": 19058, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterForeignServerStmt": { - "options": [ - { - "DefElem": { - "defaction": "DEFELEM_DROP", - "defname": "host", - "location": 19129, - }, - }, - { - "DefElem": { - "defaction": "DEFELEM_DROP", - "defname": "dbname", - "location": 19140, - }, - }, - ], - "servername": "s6", - }, - }, - "stmt_len": 49, - "stmt_location": 19098, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterUserMappingStmt": { - "options": [ - { - "DefElem": { - "defaction": "DEFELEM_DROP", - "defname": "username", - "location": 19214, - }, - }, - ], - "servername": "s6", - "user": { - "location": 19172, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - }, - "stmt_len": 75, - "stmt_location": 19148, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterFdwStmt": { - "fdwname": "foo", - "func_options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "postgresql_fdw_validator", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "validator", - "location": 19256, - }, - }, - ], - }, - }, - "stmt_len": 66, - "stmt_location": 19224, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 19316, - "sval": { - "sval": "unprivileged_role", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 42, - "stmt_location": 19291, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFdwStmt": { - "fdwname": "foobar", - }, - }, - "stmt_len": 35, - "stmt_location": 19334, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterFdwStmt": { - "fdwname": "foo", - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "true", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "gotcha", - "location": 19448, - }, - }, - ], - }, - }, - "stmt_len": 92, - "stmt_location": 19370, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 19521, - "rolename": "unprivileged_role", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "String": { - "sval": "foo", - }, - }, - "objectType": "OBJECT_FDW", - }, - }, - "stmt_len": 75, - "stmt_location": 19463, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "foo", - }, - }, - ], - "removeType": "OBJECT_FDW", - }, - }, - "stmt_len": 44, - "stmt_location": 19539, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 19670, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "String": { - "sval": "foo", - }, - }, - ], - "objtype": "OBJECT_FDW", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 103, - "stmt_location": 19584, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateForeignServerStmt": { - "fdwname": "foo", - "servername": "s9", - }, - }, - "stmt_len": 53, - "stmt_location": 19688, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterForeignServerStmt": { - "has_version": true, - "servername": "s4", - "version": "0.5", - }, - }, - "stmt_len": 60, - "stmt_location": 19742, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterOwnerStmt": { - "newowner": { - "location": 19871, - "rolename": "unprivileged_role", - "roletype": "ROLESPEC_CSTRING", - }, - "object": { - "String": { - "sval": "s4", - }, - }, - "objectType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 85, - "stmt_location": 19803, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "s4", - }, - }, - ], - "removeType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 44, - "stmt_location": 19889, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 20028, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "String": { - "sval": "s4", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_SERVER", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 111, - "stmt_location": 19934, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateUserMappingStmt": { - "servername": "s4", - "user": { - "location": 20089, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - }, - "stmt_len": 59, - "stmt_location": 20046, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterUserMappingStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "true", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "gotcha", - "location": 20198, - }, - }, - ], - "servername": "s6", - "user": { - "location": 20161, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - }, - "stmt_len": 106, - "stmt_location": 20106, - }, - }, - { - "RawStmt": { - "stmt": { - "DropUserMappingStmt": { - "servername": "s6", - "user": { - "location": 20245, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - }, - "stmt_len": 59, - "stmt_location": 20213, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "role", - }, - }, - "stmt_len": 33, - "stmt_location": 20273, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 20359, - "rolename": "unprivileged_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "String": { - "sval": "postgresql", - }, - }, - ], - "objtype": "OBJECT_FDW", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 69, - "stmt_location": 20307, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grant_option": true, - "grantees": [ - { - "RoleSpec": { - "location": 20421, - "rolename": "unprivileged_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "String": { - "sval": "foo", - }, - }, - ], - "objtype": "OBJECT_FDW", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 79, - "stmt_location": 20377, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 20467, - "sval": { - "sval": "unprivileged_role", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 27, - "stmt_location": 20457, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFdwStmt": { - "fdwname": "foobar", - }, - }, - "stmt_len": 35, - "stmt_location": 20485, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterFdwStmt": { - "fdwname": "foo", - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "true", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "gotcha", - "location": 20599, - }, - }, - ], - }, - }, - "stmt_len": 92, - "stmt_location": 20521, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "foo", - }, - }, - ], - "removeType": "OBJECT_FDW", - }, - }, - "stmt_len": 47, - "stmt_location": 20614, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 20755, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "String": { - "sval": "postgresql", - }, - }, - ], - "objtype": "OBJECT_FDW", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 110, - "stmt_location": 20662, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 20828, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "String": { - "sval": "foo", - }, - }, - ], - "objtype": "OBJECT_FDW", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 72, - "stmt_location": 20773, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateForeignServerStmt": { - "fdwname": "postgresql", - "servername": "s9", - }, - }, - "stmt_len": 49, - "stmt_location": 20846, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterForeignServerStmt": { - "has_version": true, - "servername": "s6", - "version": "0.5", - }, - }, - "stmt_len": 30, - "stmt_location": 20896, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "s6", - }, - }, - ], - "removeType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 57, - "stmt_location": 20927, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 21079, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "String": { - "sval": "s6", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_SERVER", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 111, - "stmt_location": 20985, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 21152, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "String": { - "sval": "s9", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_SERVER", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 72, - "stmt_location": 21097, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateUserMappingStmt": { - "servername": "s6", - "user": { - "location": 21195, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - }, - "stmt_len": 41, - "stmt_location": 21170, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateUserMappingStmt": { - "servername": "s9", - "user": { - "location": 21268, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - }, - "stmt_len": 72, - "stmt_location": 21212, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterUserMappingStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "true", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "gotcha", - "location": 21346, - }, - }, - ], - "servername": "s6", - "user": { - "location": 21309, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - }, - "stmt_len": 75, - "stmt_location": 21285, - }, - }, - { - "RawStmt": { - "stmt": { - "DropUserMappingStmt": { - "servername": "s6", - "user": { - "location": 21393, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - }, - "stmt_len": 59, - "stmt_location": 21361, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "role", - }, - }, - "stmt_len": 33, - "stmt_location": 21421, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 21503, - "rolename": "unprivileged_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "objects": [ - { - "String": { - "sval": "foo", - }, - }, - ], - "objtype": "OBJECT_FDW", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 65, - "stmt_location": 21455, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_CASCADE", - "grantees": [ - { - "RoleSpec": { - "location": 21577, - "rolename": "unprivileged_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "objects": [ - { - "String": { - "sval": "foo", - }, - }, - ], - "objtype": "OBJECT_FDW", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 81, - "stmt_location": 21521, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 21613, - "sval": { - "sval": "unprivileged_role", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 27, - "stmt_location": 21603, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 21675, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "String": { - "sval": "foo", - }, - }, - ], - "objtype": "OBJECT_FDW", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 61, - "stmt_location": 21631, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateForeignServerStmt": { - "fdwname": "foo", - "servername": "s10", - }, - }, - "stmt_len": 54, - "stmt_location": 21693, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterForeignServerStmt": { - "has_version": true, - "servername": "s9", - "version": "1.1", - }, - }, - "stmt_len": 59, - "stmt_location": 21748, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 21845, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "String": { - "sval": "s9", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_SERVER", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 54, - "stmt_location": 21808, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateUserMappingStmt": { - "servername": "s9", - "user": { - "location": 21888, - "roletype": "ROLESPEC_CURRENT_USER", - }, - }, - }, - "stmt_len": 47, - "stmt_location": 21863, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "String": { - "sval": "s9", - }, - }, - ], - "removeType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 23, - "stmt_location": 21911, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "role", - }, - }, - "stmt_len": 11, - "stmt_location": 21935, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateForeignServerStmt": { - "fdwname": "foo", - "servername": "s9", - }, - }, - "stmt_len": 42, - "stmt_location": 21947, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 22027, - "rolename": "unprivileged_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "String": { - "sval": "s9", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_SERVER", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 54, - "stmt_location": 21990, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 22055, - "sval": { - "sval": "unprivileged_role", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "role", - }, - }, - "stmt_len": 27, - "stmt_location": 22045, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterForeignServerStmt": { - "has_version": true, - "servername": "s9", - "version": "1.2", - }, - }, - "stmt_len": 30, - "stmt_location": 22073, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 22183, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "String": { - "sval": "s9", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_SERVER", - "privileges": [ - { - "AccessPriv": { - "priv_name": "usage", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 96, - "stmt_location": 22104, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateUserMappingStmt": { - "servername": "s9", - "user": { - "location": 22246, - "roletype": "ROLESPEC_CURRENT_USER", - }, - }, - }, - "stmt_len": 67, - "stmt_location": 22201, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "String": { - "sval": "s9", - }, - }, - ], - "removeType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 23, - "stmt_location": 22269, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "role", - }, - }, - "stmt_len": 60, - "stmt_location": 22293, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "dummy_trigger", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " - BEGIN - RETURN NULL; - END -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 22416, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 22456, - }, - }, - ], - "returnType": { - "location": 22408, - "names": [ - { - "String": { - "sval": "trigger", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 118, - "stmt_location": 22354, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateTrigStmt": { - "events": 28, - "funcname": [ - { - "String": { - "sval": "dummy_trigger", - }, - }, - ], - "relation": { - "inh": true, - "location": 22548, - "relname": "foreign_table_1", - "relpersistence": "p", - "schemaname": "foreign_schema", - }, - "timing": 2, - "trigname": "trigtest_before_stmt", - }, - }, - "stmt_len": 158, - "stmt_location": 22473, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateTrigStmt": { - "events": 28, - "funcname": [ - { - "String": { - "sval": "dummy_trigger", - }, - }, - ], - "relation": { - "inh": true, - "location": 22705, - "relname": "foreign_table_1", - "relpersistence": "p", - "schemaname": "foreign_schema", - }, - "trigname": "trigtest_after_stmt", - }, - }, - "stmt_len": 156, - "stmt_location": 22632, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateTrigStmt": { - "events": 28, - "funcname": [ - { - "String": { - "sval": "dummy_trigger", - }, - }, - ], - "relation": { - "inh": true, - "location": 22863, - "relname": "foreign_table_1", - "relpersistence": "p", - "schemaname": "foreign_schema", - }, - "row": true, - "timing": 2, - "trigname": "trigtest_before_row", - }, - }, - "stmt_len": 151, - "stmt_location": 22789, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateTrigStmt": { - "events": 28, - "funcname": [ - { - "String": { - "sval": "dummy_trigger", - }, - }, - ], - "relation": { - "inh": true, - "location": 23013, - "relname": "foreign_table_1", - "relpersistence": "p", - "schemaname": "foreign_schema", - }, - "row": true, - "trigname": "trigtest_after_row", - }, - }, - "stmt_len": 149, - "stmt_location": 22941, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateTrigStmt": { - "events": 28, - "funcname": [ - { - "String": { - "sval": "dummy_trigger", - }, - }, - ], - "isconstraint": true, - "relation": { - "inh": true, - "location": 23175, - "relname": "foreign_table_1", - "relpersistence": "p", - "schemaname": "foreign_schema", - }, - "row": true, - "trigname": "trigtest_constraint", - }, - }, - "stmt_len": 161, - "stmt_location": 23091, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "trigtest_before_stmt", - "subtype": "AT_DisableTrig", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 23275, - "relname": "foreign_table_1", - "relpersistence": "p", - "schemaname": "foreign_schema", - }, - }, - }, - "stmt_len": 90, - "stmt_location": 23253, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "trigtest_before_stmt", - "subtype": "AT_EnableTrig", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 23365, - "relname": "foreign_table_1", - "relpersistence": "p", - "schemaname": "foreign_schema", - }, - }, - }, - "stmt_len": 88, - "stmt_location": 23344, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "foreign_schema", - }, - }, - { - "String": { - "sval": "foreign_table_1", - }, - }, - { - "String": { - "sval": "trigtest_before_stmt", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TRIGGER", - }, - }, - "stmt_len": 69, - "stmt_location": 23433, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "foreign_schema", - }, - }, - { - "String": { - "sval": "foreign_table_1", - }, - }, - { - "String": { - "sval": "trigtest_before_row", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TRIGGER", - }, - }, - "stmt_len": 67, - "stmt_location": 23503, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "foreign_schema", - }, - }, - { - "String": { - "sval": "foreign_table_1", - }, - }, - { - "String": { - "sval": "trigtest_after_stmt", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TRIGGER", - }, - }, - "stmt_len": 67, - "stmt_location": 23571, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "foreign_schema", - }, - }, - { - "String": { - "sval": "foreign_table_1", - }, - }, - { - "String": { - "sval": "trigtest_after_row", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TRIGGER", - }, - }, - "stmt_len": 66, - "stmt_location": 23639, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "ObjectWithArgs": { - "objname": [ - { - "String": { - "sval": "dummy_trigger", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 31, - "stmt_location": 23706, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 23774, - "relname": "pt1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "c1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 23792, - }, - }, - ], - "is_local": true, - "location": 23781, - "typeName": { - "location": 23784, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c2", - "is_local": true, - "location": 23803, - "typeName": { - "location": 23806, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c3", - "is_local": true, - "location": 23813, - "typeName": { - "location": 23816, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 84, - "stmt_location": 23738, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateForeignTableStmt": { - "base": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 23862, - "relname": "pt1", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 23845, - "relname": "ft2", - "relpersistence": "p", - }, - }, - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": ",", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "delimiter", - "location": 23888, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": """, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "quote", - "location": 23903, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "value", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "be quoted", - "location": 23914, - }, - }, - ], - "servername": "s0", - }, - }, - "stmt_len": 111, - "stmt_location": 23823, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "ft2", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FOREIGN_TABLE", - }, - }, - "stmt_len": 27, - "stmt_location": 23935, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateForeignTableStmt": { - "base": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 23987, - "relname": "ft2", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "c1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 24005, - }, - }, - ], - "is_local": true, - "location": 23994, - "typeName": { - "location": 23997, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c2", - "is_local": true, - "location": 24016, - "typeName": { - "location": 24019, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c3", - "is_local": true, - "location": 24026, - "typeName": { - "location": 24029, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": ",", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "delimiter", - "location": 24055, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": """, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "quote", - "location": 24070, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "value", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "be quoted", - "location": 24081, - }, - }, - ], - "servername": "s0", - }, - }, - "stmt_len": 138, - "stmt_location": 23963, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "RangeVar": { - "inh": true, - "location": 24137, - "relname": "pt1", - "relpersistence": "p", - }, - }, - "subtype": "AT_AddInherit", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 24125, - "relname": "ft2", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 38, - "stmt_location": 24102, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 24174, - "relname": "ft2", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 24159, - "relname": "ct3", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 37, - "stmt_location": 24141, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateForeignTableStmt": { - "base": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 24259, - "relname": "ft2", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 24201, - "relname": "ft3", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "c1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 24219, - }, - }, - ], - "is_local": true, - "location": 24208, - "typeName": { - "location": 24211, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c2", - "is_local": true, - "location": 24230, - "typeName": { - "location": 24233, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c3", - "is_local": true, - "location": 24240, - "typeName": { - "location": 24243, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - "servername": "s0", - }, - }, - "stmt_len": 96, - "stmt_location": 24179, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "c4", - "is_local": true, - "location": 24341, - "typeName": { - "location": 24344, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 24326, - "relname": "pt1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 75, - "stmt_location": 24276, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "c5", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 24391, - "raw_expr": { - "A_Const": { - "ival": {}, - "location": 24399, - }, - }, - }, - }, - ], - "is_local": true, - "location": 24380, - "typeName": { - "location": 24383, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 24365, - "relname": "pt1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 48, - "stmt_location": 24352, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "c6", - "is_local": true, - "location": 24429, - "typeName": { - "location": 24432, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 24414, - "relname": "pt1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 38, - "stmt_location": 24401, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "c7", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 24479, - }, - }, - ], - "is_local": true, - "location": 24468, - "typeName": { - "location": 24471, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 24453, - "relname": "pt1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 47, - "stmt_location": 24440, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "c8", - "is_local": true, - "location": 24516, - "typeName": { - "location": 24519, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 24501, - "relname": "pt1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 38, - "stmt_location": 24488, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "A_Const": { - "ival": {}, - "location": 24613, - }, - }, - "name": "c4", - "subtype": "AT_ColumnDefault", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 24581, - "relname": "pt1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 87, - "stmt_location": 24527, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "c5", - "subtype": "AT_ColumnDefault", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 24628, - "relname": "pt1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 45, - "stmt_location": 24615, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "c6", - "subtype": "AT_SetNotNull", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 24674, - "relname": "pt1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 45, - "stmt_location": 24661, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "c7", - "subtype": "AT_DropNotNull", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 24720, - "relname": "pt1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 46, - "stmt_location": 24707, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "location": 24784, - "raw_default": { - "A_Const": { - "location": 24807, - "sval": { - "sval": "0", - }, - }, - }, - "typeName": { - "location": 24792, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bpchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 24797, - }, - }, - ], - }, - }, - }, - "name": "c8", - "subtype": "AT_AlterColumnType", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 24767, - "relname": "pt1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 56, - "stmt_location": 24754, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "location": 24857, - "typeName": { - "location": 24865, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bpchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 24870, - }, - }, - ], - }, - }, - }, - "name": "c8", - "subtype": "AT_AlterColumnType", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 24840, - "relname": "pt1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 62, - "stmt_location": 24811, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "location": 24904, - "typeName": { - "location": 24921, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "name": "c8", - "subtype": "AT_AlterColumnType", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 24887, - "relname": "pt1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 51, - "stmt_location": 24874, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Integer": { - "ival": 10000, - }, - }, - "name": "c1", - "subtype": "AT_SetStatistics", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 24939, - "relname": "pt1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 53, - "stmt_location": 24926, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "List": { - "items": [ - { - "DefElem": { - "arg": { - "Integer": { - "ival": 100, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "n_distinct", - "location": 25018, - }, - }, - ], - }, - }, - "name": "c1", - "subtype": "AT_SetOptions", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 24993, - "relname": "pt1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 55, - "stmt_location": 24980, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Integer": { - "ival": -1, - }, - }, - "name": "c8", - "subtype": "AT_SetStatistics", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 25049, - "relname": "pt1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 50, - "stmt_location": 25036, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "String": { - "sval": "external", - }, - }, - "name": "c8", - "subtype": "AT_SetStorage", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 25100, - "relname": "pt1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 53, - "stmt_location": 25087, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "c4", - "subtype": "AT_DropColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 25190, - "relname": "pt1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 67, - "stmt_location": 25141, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "c5", - "subtype": "AT_DropColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 25222, - "relname": "pt1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 31, - "stmt_location": 25209, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "c6", - "subtype": "AT_DropColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 25254, - "relname": "pt1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 31, - "stmt_location": 25241, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "c7", - "subtype": "AT_DropColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 25286, - "relname": "pt1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 31, - "stmt_location": 25273, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "c8", - "subtype": "AT_DropColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 25318, - "relname": "pt1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 31, - "stmt_location": 25305, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "pt1chk1", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "is_no_inherit": true, - "location": 25394, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c1", - }, - }, - ], - "location": 25420, - }, - }, - "location": 25423, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 25425, - }, - }, - }, - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 25386, - "relname": "pt1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 101, - "stmt_location": 25337, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "pt1chk2", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 25460, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c2", - }, - }, - ], - "location": 25486, - }, - }, - "location": 25489, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 25492, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 25452, - "relname": "pt1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 56, - "stmt_location": 25439, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "pc", - }, - "inh": true, - "location": 25633, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "conrelid", - }, - }, - ], - "location": 25678, - }, - }, - "location": 25687, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 25689, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "pgc", - }, - "inh": true, - "location": 25653, - "relname": "pg_constraint", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 25735, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 25737, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 25561, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 25561, - }, - }, - }, - }, - { - "ResTarget": { - "location": 25570, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "conname", - }, - }, - ], - "location": 25570, - }, - }, - }, - }, - { - "ResTarget": { - "location": 25579, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "contype", - }, - }, - ], - "location": 25579, - }, - }, - }, - }, - { - "ResTarget": { - "location": 25588, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "conislocal", - }, - }, - ], - "location": 25588, - }, - }, - }, - }, - { - "ResTarget": { - "location": 25600, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "coninhcount", - }, - }, - ], - "location": 25600, - }, - }, - }, - }, - { - "ResTarget": { - "location": 25613, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "connoinherit", - }, - }, - ], - "location": 25613, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 25705, - }, - }, - "location": 25716, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 25718, - "sval": { - "sval": "pt1", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 242, - "stmt_location": 25496, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "ft2", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FOREIGN_TABLE", - }, - }, - "stmt_len": 76, - "stmt_location": 25739, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "ft2", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FOREIGN_TABLE", - }, - }, - "stmt_len": 40, - "stmt_location": 25816, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateForeignTableStmt": { - "base": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 25879, - "relname": "ft2", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "c1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 25897, - }, - }, - ], - "is_local": true, - "location": 25886, - "typeName": { - "location": 25889, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c2", - "is_local": true, - "location": 25908, - "typeName": { - "location": 25911, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c3", - "is_local": true, - "location": 25918, - "typeName": { - "location": 25921, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": ",", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "delimiter", - "location": 25947, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": """, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "quote", - "location": 25962, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "value", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "be quoted", - "location": 25973, - }, - }, - ], - "servername": "s0", - }, - }, - "stmt_len": 136, - "stmt_location": 25857, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "RangeVar": { - "inh": true, - "location": 26075, - "relname": "pt1", - "relpersistence": "p", - }, - }, - "subtype": "AT_AddInherit", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 26063, - "relname": "ft2", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 84, - "stmt_location": 25994, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "pt1chk2", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 26144, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c2", - }, - }, - ], - "location": 26170, - }, - }, - "location": 26173, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 26176, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 26136, - "relname": "ft2", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 100, - "stmt_location": 26079, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "RangeVar": { - "inh": true, - "location": 26213, - "relname": "pt1", - "relpersistence": "p", - }, - }, - "subtype": "AT_AddInherit", - }, - }, - ], - "objtype": "OBJECT_FOREIGN_TABLE", - "relation": { - "inh": true, - "location": 26201, - "relname": "ft2", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 36, - "stmt_location": 26180, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_CASCADE", - "name": "pt1chk1", - "subtype": "AT_DropConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 26316, - "relname": "pt1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 134, - "stmt_location": 26217, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_CASCADE", - "name": "pt1chk2", - "subtype": "AT_DropConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 26365, - "relname": "pt1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 48, - "stmt_location": 26352, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 26433, - "relname": "pt1", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 26445, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 26448, - "sval": { - "sval": "pt1", - }, - }, - }, - "location": 26453, - "typeName": { - "location": 26455, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 26461, - "sval": { - "sval": "1994-01-01", - }, - }, - }, - "location": 26473, - "typeName": { - "location": 26475, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 79, - "stmt_location": 26401, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "pt1chk3", - "contype": "CONSTR_CHECK", - "location": 26502, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c2", - }, - }, - ], - "location": 26528, - }, - }, - "location": 26531, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 26534, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - "skip_validation": true, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 26494, - "relname": "pt1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 66, - "stmt_location": 26481, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "pt1chk3", - "subtype": "AT_ValidateConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 26622, - "relname": "pt1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 105, - "stmt_location": 26548, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "f1", - "relation": { - "inh": true, - "location": 26864, - "relname": "pt1", - "relpersistence": "p", - }, - "relationType": "OBJECT_TABLE", - "renameType": "OBJECT_COLUMN", - "subname": "c1", - }, - }, - "stmt_len": 236, - "stmt_location": 26654, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "f2", - "relation": { - "inh": true, - "location": 26904, - "relname": "pt1", - "relpersistence": "p", - }, - "relationType": "OBJECT_TABLE", - "renameType": "OBJECT_COLUMN", - "subname": "c2", - }, - }, - "stmt_len": 39, - "stmt_location": 26891, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "f3", - "relation": { - "inh": true, - "location": 26944, - "relname": "pt1", - "relpersistence": "p", - }, - "relationType": "OBJECT_TABLE", - "renameType": "OBJECT_COLUMN", - "subname": "c3", - }, - }, - "stmt_len": 39, - "stmt_location": 26931, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "f2_check", - "relation": { - "inh": true, - "location": 27028, - "relname": "pt1", - "relpersistence": "p", - }, - "relationType": "OBJECT_ACCESS_METHOD", - "renameType": "OBJECT_TABCONSTRAINT", - "subname": "pt1chk3", - }, - }, - "stmt_len": 98, - "stmt_location": 26971, - }, - }, - { - "RawStmt": { - "stmt": { - "TruncateStmt": { - "behavior": "DROP_RESTRICT", - "relations": [ - { - "RangeVar": { - "inh": true, - "location": 27160, - "relname": "ft2", - "relpersistence": "p", - }, - }, - ], - }, - }, - "stmt_len": 93, - "stmt_location": 27070, - }, - }, - { - "RawStmt": { - "stmt": { - "TruncateStmt": { - "behavior": "DROP_RESTRICT", - "relations": [ - { - "RangeVar": { - "inh": true, - "location": 27184, - "relname": "pt1", - "relpersistence": "p", - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 27164, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "pt1", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 34, - "stmt_location": 27188, - }, - }, - { - "RawStmt": { - "stmt": { - "ImportForeignSchemaStmt": { - "list_type": "FDW_IMPORT_SCHEMA_ALL", - "local_schema": "public", - "remote_schema": "s1", - "server_name": "s9", - }, - }, - "stmt_len": 78, - "stmt_location": 27223, - }, - }, - { - "RawStmt": { - "stmt": { - "ImportForeignSchemaStmt": { - "list_type": "FDW_IMPORT_SCHEMA_LIMIT_TO", - "local_schema": "public", - "remote_schema": "s1", - "server_name": "s9", - "table_list": [ - { - "RangeVar": { - "inh": true, - "location": 27347, - "relname": "t1", - "relpersistence": "p", - }, - }, - ], - }, - }, - "stmt_len": 75, - "stmt_location": 27302, - }, - }, - { - "RawStmt": { - "stmt": { - "ImportForeignSchemaStmt": { - "list_type": "FDW_IMPORT_SCHEMA_EXCEPT", - "local_schema": "public", - "remote_schema": "s1", - "server_name": "s9", - "table_list": [ - { - "RangeVar": { - "inh": true, - "location": 27420, - "relname": "t1", - "relpersistence": "p", - }, - }, - ], - }, - }, - "stmt_len": 72, - "stmt_location": 27378, - }, - }, - { - "RawStmt": { - "stmt": { - "ImportForeignSchemaStmt": { - "list_type": "FDW_IMPORT_SCHEMA_EXCEPT", - "local_schema": "public", - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "value1", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "option1", - "location": 27538, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "value2", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "option2", - "location": 27556, - }, - }, - ], - "remote_schema": "s1", - "server_name": "s9", - "table_list": [ - { - "RangeVar": { - "inh": true, - "location": 27494, - "relname": "t1", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 27498, - "relname": "t2", - "relpersistence": "p", - }, - }, - ], - }, - }, - "stmt_len": 122, - "stmt_location": 27451, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_table", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FOREIGN_TABLE", - }, - }, - "stmt_len": 60, - "stmt_location": 27574, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "no_table", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FOREIGN_TABLE", - }, - }, - "stmt_len": 82, - "stmt_location": 27635, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "foreign_schema", - }, - }, - { - "String": { - "sval": "foreign_table_1", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FOREIGN_TABLE", - }, - }, - "stmt_len": 50, - "stmt_location": 27718, - }, - }, - { - "RawStmt": { - "stmt": { - "ReassignOwnedStmt": { - "newrole": { - "location": 27858, - "rolename": "regress_test_role2", - "roletype": "ROLESPEC_CSTRING", - }, - "roles": [ - { - "RoleSpec": { - "location": 27837, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 107, - "stmt_location": 27769, - }, - }, - { - "RawStmt": { - "stmt": { - "DropOwnedStmt": { - "behavior": "DROP_RESTRICT", - "roles": [ - { - "RoleSpec": { - "location": 27892, - "rolename": "regress_test_role2", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 27877, - }, - }, - { - "RawStmt": { - "stmt": { - "DropOwnedStmt": { - "behavior": "DROP_CASCADE", - "roles": [ - { - "RoleSpec": { - "location": 27926, - "rolename": "regress_test_role2", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 41, - "stmt_location": 27911, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "String": { - "sval": "foreign_schema", - }, - }, - ], - "removeType": "OBJECT_SCHEMA", - }, - }, - "stmt_len": 47, - "stmt_location": 27953, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 28012, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 28001, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "String": { - "sval": "t1", - }, - }, - ], - "removeType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 63, - "stmt_location": 28030, - }, - }, - { - "RawStmt": { - "stmt": { - "DropUserMappingStmt": { - "servername": "s6", - "user": { - "location": 28117, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - }, - "stmt_len": 50, - "stmt_location": 28094, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "String": { - "sval": "foo", - }, - }, - ], - "removeType": "OBJECT_FDW", - }, - }, - "stmt_len": 139, - "stmt_location": 28145, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "String": { - "sval": "s8", - }, - }, - ], - "removeType": "OBJECT_FOREIGN_SERVER", - }, - }, - "stmt_len": 25, - "stmt_location": 28285, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 28322, - "rolename": "regress_test_indirect", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 28311, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 28355, - "rolename": "regress_test_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 28344, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 28384, - "rolename": "unprivileged_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 28373, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 28494, - "rolename": "unprivileged_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - "objects": [ - { - "String": { - "sval": "postgresql", - }, - }, - ], - "objtype": "OBJECT_FDW", - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 109, - "stmt_location": 28402, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 28523, - "rolename": "unprivileged_role", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 28512, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 28552, - "rolename": "regress_test_role2", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 29, - "stmt_location": 28541, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "String": { - "sval": "postgresql", - }, - }, - ], - "removeType": "OBJECT_FDW", - }, - }, - "stmt_len": 45, - "stmt_location": 28571, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "String": { - "sval": "dummy", - }, - }, - ], - "removeType": "OBJECT_FDW", - }, - }, - "stmt_len": 40, - "stmt_location": 28617, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 28671, - "rolename": "foreign_data_user", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 28658, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 28823, - "relname": "pg_foreign_data_wrapper", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 28772, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fdwname", - }, - }, - ], - "location": 28772, - }, - }, - }, - }, - { - "ResTarget": { - "location": 28781, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fdwhandler", - }, - }, - ], - "location": 28781, - }, - }, - }, - }, - { - "ResTarget": { - "location": 28793, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fdwvalidator", - }, - }, - ], - "location": 28793, - }, - }, - }, - }, - { - "ResTarget": { - "location": 28807, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fdwoptions", - }, - }, - ], - "location": 28807, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 157, - "stmt_location": 28689, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 28880, - "relname": "pg_foreign_server", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 28855, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "srvname", - }, - }, - ], - "location": 28855, - }, - }, - }, - }, - { - "ResTarget": { - "location": 28864, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "srvoptions", - }, - }, - ], - "location": 28864, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 50, - "stmt_location": 28847, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 28913, - "relname": "pg_user_mapping", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 28906, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 28906, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 28898, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/foreign_key.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 88, - "relname": "pktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ptest1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 109, - }, - }, - ], - "is_local": true, - "location": 98, - "typeName": { - "location": 105, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest2", - "is_local": true, - "location": 122, - "typeName": { - "location": 129, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 135, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 150, - "relname": "fktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ftest1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "c", - "fk_matchtype": "f", - "fk_upd_action": "c", - "initially_valid": true, - "location": 171, - "pktable": { - "inh": true, - "location": 182, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - "is_local": true, - "location": 160, - "typeName": { - "location": 167, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ftest2", - "is_local": true, - "location": 238, - "typeName": { - "location": 245, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 114, - "stmt_location": 136, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 298, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 314, - }, - }, - { - "A_Const": { - "location": 317, - "sval": { - "sval": "Test1", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 251, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 339, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 355, - }, - }, - { - "A_Const": { - "location": 358, - "sval": { - "sval": "Test2", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 40, - "stmt_location": 326, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 380, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 396, - }, - }, - { - "A_Const": { - "location": 399, - "sval": { - "sval": "Test3", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 40, - "stmt_location": 367, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 421, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 437, - }, - }, - { - "A_Const": { - "location": 440, - "sval": { - "sval": "Test4", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 40, - "stmt_location": 408, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 462, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 478, - }, - }, - { - "A_Const": { - "location": 481, - "sval": { - "sval": "Test5", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 40, - "stmt_location": 449, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 544, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 560, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 563, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 75, - "stmt_location": 490, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 579, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 595, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 598, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 34, - "stmt_location": 566, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 614, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 630, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 633, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 34, - "stmt_location": 601, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 649, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 665, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 671, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 37, - "stmt_location": 636, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 725, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 100, - }, - "location": 741, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 746, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 674, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 782, - "relname": "fktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 775, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 775, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 749, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 834, - "relname": "pktable", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest1", - }, - }, - ], - "location": 848, - }, - }, - "location": 854, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 855, - }, - }, - }, - }, - }, - }, - "stmt_len": 66, - "stmt_location": 790, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 917, - "relname": "fktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 910, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 910, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 67, - "stmt_location": 857, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 964, - "relname": "pktable", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 976, - "name": "ptest1", - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 983, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest1", - }, - }, - ], - "location": 991, - }, - }, - "location": 997, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 998, - }, - }, - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 925, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1059, - "relname": "fktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1052, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1052, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 66, - "stmt_location": 1000, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "fktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 20, - "stmt_location": 1067, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "pktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 19, - "stmt_location": 1088, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1188, - "relname": "pktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ptest1", - "is_local": true, - "location": 1198, - "typeName": { - "location": 1205, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest2", - "is_local": true, - "location": 1210, - "typeName": { - "location": 1217, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest3", - "is_local": true, - "location": 1222, - "typeName": { - "location": 1229, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "ptest1", - }, - }, - { - "String": { - "sval": "ptest2", - }, - }, - ], - "location": 1235, - }, - }, - ], - }, - }, - "stmt_len": 156, - "stmt_location": 1108, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1279, - "relname": "fktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ftest1", - "is_local": true, - "location": 1289, - "typeName": { - "location": 1296, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ftest2", - "is_local": true, - "location": 1301, - "typeName": { - "location": 1308, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ftest3", - "is_local": true, - "location": 1313, - "typeName": { - "location": 1320, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "conname": "constrname", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "ftest1", - }, - }, - { - "String": { - "sval": "ftest2", - }, - }, - ], - "fk_del_action": "n", - "fk_matchtype": "f", - "fk_upd_action": "n", - "initially_valid": true, - "location": 1325, - "pktable": { - "inh": true, - "location": 1409, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 201, - "stmt_location": 1265, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "fk constraint comment", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "fktable", - }, - }, - { - "String": { - "sval": "constrname_wrong", - }, - }, - ], - }, - }, - "objtype": "OBJECT_TABCONSTRAINT", - }, - }, - "stmt_len": 95, - "stmt_location": 1467, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "comment": "fk constraint comment", - "object": { - "List": { - "items": [ - { - "String": { - "sval": "fktable", - }, - }, - { - "String": { - "sval": "constrname", - }, - }, - ], - }, - }, - "objtype": "OBJECT_TABCONSTRAINT", - }, - }, - "stmt_len": 71, - "stmt_location": 1563, - }, - }, - { - "RawStmt": { - "stmt": { - "CommentStmt": { - "object": { - "List": { - "items": [ - { - "String": { - "sval": "fktable", - }, - }, - { - "String": { - "sval": "constrname", - }, - }, - ], - }, - }, - "objtype": "OBJECT_TABCONSTRAINT", - }, - }, - "stmt_len": 52, - "stmt_location": 1635, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1735, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1751, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1754, - }, - }, - { - "A_Const": { - "location": 1757, - "sval": { - "sval": "Test1", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 77, - "stmt_location": 1688, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1779, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1795, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 1798, - }, - }, - { - "A_Const": { - "location": 1801, - "sval": { - "sval": "Test1-2", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 45, - "stmt_location": 1766, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1825, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1841, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 1844, - }, - }, - { - "A_Const": { - "location": 1847, - "sval": { - "sval": "Test2", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 1812, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1869, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 1885, - }, - }, - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 1888, - }, - }, - { - "A_Const": { - "location": 1891, - "sval": { - "sval": "Test3", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 1856, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1913, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 1929, - }, - }, - { - "A_Const": { - "ival": { - "ival": 8, - }, - "location": 1932, - }, - }, - { - "A_Const": { - "location": 1935, - "sval": { - "sval": "Test4", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 1900, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1957, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 1973, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 1976, - }, - }, - { - "A_Const": { - "location": 1980, - "sval": { - "sval": "Test5", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 44, - "stmt_location": 1944, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2043, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2059, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2062, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 2065, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 78, - "stmt_location": 1989, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2081, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2097, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 2100, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 2103, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 37, - "stmt_location": 2068, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2119, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2135, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 2138, - }, - }, - { - "A_Const": { - "ival": { - "ival": 8, - }, - "location": 2141, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 37, - "stmt_location": 2106, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2157, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 2173, - }, - }, - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 2176, - }, - }, - { - "A_Const": { - "ival": { - "ival": 12, - }, - "location": 2179, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 38, - "stmt_location": 2144, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2196, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 2212, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 2218, - }, - }, - { - "A_Const": { - "ival": {}, - "location": 2224, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 2183, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2277, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 100, - }, - "location": 2293, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2298, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 2301, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 76, - "stmt_location": 2227, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2317, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2333, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2336, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 2339, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 37, - "stmt_location": 2304, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2355, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 2371, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2377, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 2380, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 40, - "stmt_location": 2342, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2396, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2412, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 2415, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 2421, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 40, - "stmt_location": 2383, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2457, - "relname": "fktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2450, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2450, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 2424, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 2509, - "relname": "pktable", - "relpersistence": "p", - }, - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest1", - }, - }, - ], - "location": 2523, - }, - }, - "location": 2529, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2530, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest2", - }, - }, - ], - "location": 2536, - }, - }, - "location": 2542, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2543, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 2532, - }, - }, - }, - }, - "stmt_len": 79, - "stmt_location": 2465, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2605, - "relname": "fktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2598, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2598, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 67, - "stmt_location": 2545, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 2663, - "relname": "pktable", - "relpersistence": "p", - }, - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest1", - }, - }, - ], - "location": 2677, - }, - }, - "location": 2683, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 2684, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest2", - }, - }, - ], - "location": 2690, - }, - }, - "location": 2696, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 2697, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 2686, - }, - }, - }, - }, - "stmt_len": 86, - "stmt_location": 2613, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2755, - "relname": "fktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2748, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2748, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 2700, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 2802, - "relname": "pktable", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 2814, - "name": "ptest1", - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2821, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest1", - }, - }, - ], - "location": 2829, - }, - }, - "location": 2835, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2836, - }, - }, - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 2763, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2897, - "relname": "fktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2890, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2890, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 66, - "stmt_location": 2838, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "location": 3004, - "typeName": { - "location": 3016, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "name": "ptest1", - "subtype": "AT_AlterColumnType", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 2983, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 117, - "stmt_location": 2905, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "location": 3057, - "typeName": { - "location": 3069, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "name": "ftest1", - "subtype": "AT_AlterColumnType", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 3036, - "relname": "fktable", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 52, - "stmt_location": 3023, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3091, - "relname": "pktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3084, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3084, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 3076, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3114, - "relname": "fktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3107, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3107, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 3099, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "pktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 28, - "stmt_location": 3122, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "fktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 19, - "stmt_location": 3151, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 3254, - "relname": "pktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ptest1", - "is_local": true, - "location": 3264, - "typeName": { - "location": 3271, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest2", - "is_local": true, - "location": 3276, - "typeName": { - "location": 3283, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest3", - "is_local": true, - "location": 3288, - "typeName": { - "location": 3295, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "ptest1", - }, - }, - { - "String": { - "sval": "ptest2", - }, - }, - ], - "location": 3301, - }, - }, - ], - }, - }, - "stmt_len": 159, - "stmt_location": 3171, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 3345, - "relname": "fktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ftest1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 3366, - "raw_expr": { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 3374, - }, - }, - }, - }, - ], - "is_local": true, - "location": 3355, - "typeName": { - "location": 3362, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ftest2", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 3389, - "raw_expr": { - "A_Const": { - "ival": { - "ival": -2, - }, - "location": 3397, - }, - }, - }, - }, - ], - "is_local": true, - "location": 3378, - "typeName": { - "location": 3385, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ftest3", - "is_local": true, - "location": 3401, - "typeName": { - "location": 3408, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "conname": "constrname2", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "ftest1", - }, - }, - { - "String": { - "sval": "ftest2", - }, - }, - ], - "fk_del_action": "d", - "fk_matchtype": "f", - "fk_upd_action": "d", - "initially_valid": true, - "location": 3413, - "pktable": { - "inh": true, - "location": 3498, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 230, - "stmt_location": 3331, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3617, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 3633, - }, - }, - { - "A_Const": { - "ival": { - "ival": -2, - }, - "location": 3637, - }, - }, - { - "A_Const": { - "location": 3641, - "sval": { - "sval": "The Default!", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 94, - "stmt_location": 3562, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3704, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3720, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3723, - }, - }, - { - "A_Const": { - "location": 3726, - "sval": { - "sval": "Test1", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 77, - "stmt_location": 3657, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3748, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3764, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 3767, - }, - }, - { - "A_Const": { - "location": 3770, - "sval": { - "sval": "Test1-2", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 45, - "stmt_location": 3735, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3794, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3810, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 3813, - }, - }, - { - "A_Const": { - "location": 3816, - "sval": { - "sval": "Test2", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 3781, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3838, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 3854, - }, - }, - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 3857, - }, - }, - { - "A_Const": { - "location": 3860, - "sval": { - "sval": "Test3", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 3825, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3882, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 3898, - }, - }, - { - "A_Const": { - "ival": { - "ival": 8, - }, - "location": 3901, - }, - }, - { - "A_Const": { - "location": 3904, - "sval": { - "sval": "Test4", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 3869, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 3926, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 3942, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 3945, - }, - }, - { - "A_Const": { - "location": 3949, - "sval": { - "sval": "Test5", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 44, - "stmt_location": 3913, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4012, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4028, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4031, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 4034, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 78, - "stmt_location": 3958, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4050, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4066, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 4069, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 4072, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 37, - "stmt_location": 4037, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4088, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4104, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 4107, - }, - }, - { - "A_Const": { - "ival": { - "ival": 8, - }, - "location": 4110, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 37, - "stmt_location": 4075, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4126, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 4142, - }, - }, - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 4145, - }, - }, - { - "A_Const": { - "ival": { - "ival": 12, - }, - "location": 4148, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 38, - "stmt_location": 4113, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4165, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 4181, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 4187, - }, - }, - { - "A_Const": { - "ival": {}, - "location": 4193, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 4152, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4246, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 100, - }, - "location": 4262, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4267, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 4270, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 76, - "stmt_location": 4196, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4286, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4302, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4305, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 4308, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 37, - "stmt_location": 4273, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4324, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 4340, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4346, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 4349, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 40, - "stmt_location": 4311, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4365, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4381, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 4384, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 4390, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 40, - "stmt_location": 4352, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4426, - "relname": "fktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4419, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4419, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 4393, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 4478, - "relname": "pktable", - "relpersistence": "p", - }, - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest1", - }, - }, - ], - "location": 4492, - }, - }, - "location": 4498, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4499, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest2", - }, - }, - ], - "location": 4505, - }, - }, - "location": 4511, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4512, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 4501, - }, - }, - }, - }, - "stmt_len": 79, - "stmt_location": 4434, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4568, - "relname": "fktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4561, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4561, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 4514, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 4626, - "relname": "pktable", - "relpersistence": "p", - }, - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest1", - }, - }, - ], - "location": 4640, - }, - }, - "location": 4646, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 4647, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest2", - }, - }, - ], - "location": 4653, - }, - }, - "location": 4659, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 4660, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 4649, - }, - }, - }, - }, - "stmt_len": 86, - "stmt_location": 4576, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4718, - "relname": "fktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4711, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4711, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 4663, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 4765, - "relname": "pktable", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 4777, - "name": "ptest1", - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4784, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest1", - }, - }, - ], - "location": 4792, - }, - }, - "location": 4798, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4799, - }, - }, - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 4726, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4860, - "relname": "fktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4853, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4853, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 66, - "stmt_location": 4801, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "pktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 60, - "stmt_location": 4868, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "pktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 27, - "stmt_location": 4929, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "fktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 19, - "stmt_location": 4957, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 5051, - "relname": "pktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ptest1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 5072, - }, - }, - ], - "is_local": true, - "location": 5061, - "typeName": { - "location": 5068, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest2", - "is_local": true, - "location": 5085, - "typeName": { - "location": 5092, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 121, - "stmt_location": 4977, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 5113, - "relname": "fktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ftest1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "f", - "fk_upd_action": "a", - "initially_valid": true, - "location": 5134, - "pktable": { - "inh": true, - "location": 5145, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - "is_local": true, - "location": 5123, - "typeName": { - "location": 5130, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ftest2", - "is_local": true, - "location": 5165, - "typeName": { - "location": 5172, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 78, - "stmt_location": 5099, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5225, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5241, - }, - }, - { - "A_Const": { - "location": 5244, - "sval": { - "sval": "Test1", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 5178, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5266, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5282, - }, - }, - { - "A_Const": { - "location": 5285, - "sval": { - "sval": "Test2", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 40, - "stmt_location": 5253, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5307, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 5323, - }, - }, - { - "A_Const": { - "location": 5326, - "sval": { - "sval": "Test3", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 40, - "stmt_location": 5294, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5348, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 5364, - }, - }, - { - "A_Const": { - "location": 5367, - "sval": { - "sval": "Test4", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 40, - "stmt_location": 5335, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5389, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 5405, - }, - }, - { - "A_Const": { - "location": 5408, - "sval": { - "sval": "Test5", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 40, - "stmt_location": 5376, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5471, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5487, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5490, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 75, - "stmt_location": 5417, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5506, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5522, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 5525, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 34, - "stmt_location": 5493, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5541, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 5557, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 5560, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 34, - "stmt_location": 5528, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5576, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 5592, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5598, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 37, - "stmt_location": 5563, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5652, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 100, - }, - "location": 5668, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5673, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 5601, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5709, - "relname": "fktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5702, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 5702, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 5676, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5750, - "relname": "pktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5743, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 5743, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 5717, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 5816, - "relname": "pktable", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest1", - }, - }, - ], - "location": 5830, - }, - }, - "location": 5836, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5837, - }, - }, - }, - }, - }, - }, - "stmt_len": 80, - "stmt_location": 5758, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 5900, - "relname": "pktable", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest1", - }, - }, - ], - "location": 5914, - }, - }, - "location": 5920, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 5921, - }, - }, - }, - }, - }, - }, - "stmt_len": 83, - "stmt_location": 5839, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5968, - "relname": "pktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5961, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 5961, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 5923, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 6029, - "relname": "pktable", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 6041, - "name": "ptest1", - "val": { - "A_Const": { - "ival": {}, - "location": 6048, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest1", - }, - }, - ], - "location": 6056, - }, - }, - "location": 6062, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6063, - }, - }, - }, - }, - }, - }, - "stmt_len": 88, - "stmt_location": 5976, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 6121, - "relname": "pktable", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 6133, - "name": "ptest1", - "val": { - "A_Const": { - "ival": {}, - "location": 6140, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest1", - }, - }, - ], - "location": 6148, - }, - }, - "location": 6154, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 6155, - }, - }, - }, - }, - }, - }, - "stmt_len": 91, - "stmt_location": 6065, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6202, - "relname": "pktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6195, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 6195, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 6157, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "fktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 20, - "stmt_location": 6210, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "pktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 19, - "stmt_location": 6231, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 6323, - "relname": "pktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ptest1", - "is_local": true, - "location": 6333, - "typeName": { - "location": 6340, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest2", - "is_local": true, - "location": 6345, - "typeName": { - "location": 6352, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest3", - "is_local": true, - "location": 6357, - "typeName": { - "location": 6364, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest4", - "is_local": true, - "location": 6369, - "typeName": { - "location": 6376, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "ptest1", - }, - }, - { - "String": { - "sval": "ptest2", - }, - }, - { - "String": { - "sval": "ptest3", - }, - }, - ], - "location": 6382, - }, - }, - ], - }, - }, - "stmt_len": 168, - "stmt_location": 6251, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 6434, - "relname": "fktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ftest1", - "is_local": true, - "location": 6444, - "typeName": { - "location": 6451, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ftest2", - "is_local": true, - "location": 6456, - "typeName": { - "location": 6463, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ftest3", - "is_local": true, - "location": 6468, - "typeName": { - "location": 6475, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ftest4", - "is_local": true, - "location": 6480, - "typeName": { - "location": 6487, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "conname": "constrname3", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "ftest1", - }, - }, - { - "String": { - "sval": "ftest2", - }, - }, - { - "String": { - "sval": "ftest3", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 6493, - "pktable": { - "inh": true, - "location": 6566, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 154, - "stmt_location": 6420, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 6618, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6634, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6637, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 6640, - }, - }, - { - "A_Const": { - "location": 6643, - "sval": { - "sval": "test1", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 76, - "stmt_location": 6575, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 6665, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6681, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 6684, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 6687, - }, - }, - { - "A_Const": { - "location": 6690, - "sval": { - "sval": "test2", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 6652, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 6712, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6728, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 6731, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 6734, - }, - }, - { - "A_Const": { - "location": 6737, - "sval": { - "sval": "test3", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 6699, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 6759, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6775, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 6778, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 6781, - }, - }, - { - "A_Const": { - "location": 6784, - "sval": { - "sval": "test4", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 6746, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 6836, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6852, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6855, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 6858, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6861, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 70, - "stmt_location": 6793, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 6877, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 6893, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6899, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 6902, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6905, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 6864, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 6921, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6937, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 6940, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 6946, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 6949, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 6908, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 6965, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 6981, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6987, - }, - }, - { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 6990, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 6993, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 6952, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 7009, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 7025, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 7031, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 7034, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 7037, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 6996, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 7080, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 7096, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 7099, - }, - }, - { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 7102, - }, - }, - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 7105, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 67, - "stmt_location": 7040, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7140, - "relname": "fktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7133, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 7133, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 7108, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 7201, - "relname": "pktable", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 7213, - "name": "ptest2", - "val": { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 7220, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest2", - }, - }, - ], - "location": 7228, - }, - }, - "location": 7234, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 7235, - }, - }, - }, - }, - }, - }, - "stmt_len": 88, - "stmt_location": 7148, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 7293, - "relname": "pktable", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 7305, - "name": "ptest1", - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 7312, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest2", - }, - }, - ], - "location": 7320, - }, - }, - "location": 7326, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 7327, - }, - }, - }, - }, - }, - }, - "stmt_len": 91, - "stmt_location": 7237, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 7387, - "relname": "pktable", - "relpersistence": "p", - }, - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest1", - }, - }, - ], - "location": 7401, - }, - }, - "location": 7407, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 7408, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest2", - }, - }, - ], - "location": 7414, - }, - }, - "location": 7420, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 7421, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest3", - }, - }, - ], - "location": 7427, - }, - }, - "location": 7433, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 7434, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 7410, - }, - }, - }, - }, - "stmt_len": 106, - "stmt_location": 7329, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 7494, - "relname": "pktable", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest1", - }, - }, - ], - "location": 7508, - }, - }, - "location": 7514, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 7515, - }, - }, - }, - }, - }, - }, - "stmt_len": 80, - "stmt_location": 7436, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7561, - "relname": "pktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7554, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 7554, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 7517, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7585, - "relname": "fktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7578, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 7578, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 7569, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "fktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 20, - "stmt_location": 7593, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "pktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 19, - "stmt_location": 7614, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 7674, - "relname": "pktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ptest1", - "is_local": true, - "location": 7684, - "typeName": { - "location": 7691, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest2", - "is_local": true, - "location": 7696, - "typeName": { - "location": 7703, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest3", - "is_local": true, - "location": 7708, - "typeName": { - "location": 7715, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest4", - "is_local": true, - "location": 7720, - "typeName": { - "location": 7727, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "ptest1", - }, - }, - { - "String": { - "sval": "ptest2", - }, - }, - { - "String": { - "sval": "ptest3", - }, - }, - ], - "location": 7733, - }, - }, - ], - }, - }, - "stmt_len": 136, - "stmt_location": 7634, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 7785, - "relname": "fktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ftest1", - "is_local": true, - "location": 7795, - "typeName": { - "location": 7802, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ftest2", - "is_local": true, - "location": 7807, - "typeName": { - "location": 7814, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ftest3", - "is_local": true, - "location": 7819, - "typeName": { - "location": 7826, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ftest4", - "is_local": true, - "location": 7831, - "typeName": { - "location": 7838, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "conname": "constrname3", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "ftest1", - }, - }, - { - "String": { - "sval": "ftest2", - }, - }, - { - "String": { - "sval": "ftest3", - }, - }, - ], - "fk_del_action": "c", - "fk_matchtype": "s", - "fk_upd_action": "c", - "initially_valid": true, - "location": 7844, - "pktable": { - "inh": true, - "location": 7917, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 193, - "stmt_location": 7771, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 8008, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 8024, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 8027, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 8030, - }, - }, - { - "A_Const": { - "location": 8033, - "sval": { - "sval": "test1", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 76, - "stmt_location": 7965, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 8055, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 8071, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 8074, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 8077, - }, - }, - { - "A_Const": { - "location": 8080, - "sval": { - "sval": "test2", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 8042, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 8102, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 8118, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 8121, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 8124, - }, - }, - { - "A_Const": { - "location": 8127, - "sval": { - "sval": "test3", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 8089, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 8149, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 8165, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 8168, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 8171, - }, - }, - { - "A_Const": { - "location": 8174, - "sval": { - "sval": "test4", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 8136, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 8226, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 8242, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 8245, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 8248, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 8251, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 70, - "stmt_location": 8183, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 8267, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 8283, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 8289, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 8292, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 8295, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 8254, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 8311, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 8327, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 8330, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 8336, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 8339, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 8298, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 8355, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 8371, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 8377, - }, - }, - { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 8380, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 8383, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 8342, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 8399, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 8415, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 8421, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 8424, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 8427, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 8386, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 8470, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 8486, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 8489, - }, - }, - { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 8492, - }, - }, - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 8495, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 67, - "stmt_location": 8430, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8530, - "relname": "fktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8523, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 8523, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 8498, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 8592, - "relname": "pktable", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 8604, - "name": "ptest2", - "val": { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 8611, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest2", - }, - }, - ], - "location": 8619, - }, - }, - "location": 8625, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 8626, - }, - }, - }, - }, - }, - }, - "stmt_len": 89, - "stmt_location": 8538, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 8688, - "relname": "pktable", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 8700, - "name": "ptest1", - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 8707, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest2", - }, - }, - ], - "location": 8715, - }, - }, - "location": 8721, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 8722, - }, - }, - }, - }, - }, - }, - "stmt_len": 95, - "stmt_location": 8628, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8768, - "relname": "pktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8761, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 8761, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 8724, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8791, - "relname": "fktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8784, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 8784, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 8776, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 8860, - "relname": "pktable", - "relpersistence": "p", - }, - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest1", - }, - }, - ], - "location": 8874, - }, - }, - "location": 8880, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 8881, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest2", - }, - }, - ], - "location": 8887, - }, - }, - "location": 8893, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 8894, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest3", - }, - }, - ], - "location": 8900, - }, - }, - "location": 8906, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 8907, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 8883, - }, - }, - }, - }, - "stmt_len": 109, - "stmt_location": 8799, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8953, - "relname": "pktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8946, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 8946, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 8909, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8976, - "relname": "fktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8969, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 8969, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 8961, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 9056, - "relname": "pktable", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest1", - }, - }, - ], - "location": 9070, - }, - }, - "location": 9076, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 9077, - }, - }, - }, - }, - }, - }, - "stmt_len": 94, - "stmt_location": 8984, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 9123, - "relname": "pktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9116, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 9116, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 9079, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 9146, - "relname": "fktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9139, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 9139, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 9131, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "fktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 20, - "stmt_location": 9154, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "pktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 19, - "stmt_location": 9175, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 9250, - "relname": "pktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ptest1", - "is_local": true, - "location": 9260, - "typeName": { - "location": 9267, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest2", - "is_local": true, - "location": 9272, - "typeName": { - "location": 9279, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest3", - "is_local": true, - "location": 9284, - "typeName": { - "location": 9291, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest4", - "is_local": true, - "location": 9296, - "typeName": { - "location": 9303, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "ptest1", - }, - }, - { - "String": { - "sval": "ptest2", - }, - }, - { - "String": { - "sval": "ptest3", - }, - }, - ], - "location": 9309, - }, - }, - ], - }, - }, - "stmt_len": 151, - "stmt_location": 9195, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 9361, - "relname": "fktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ftest1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 9382, - "raw_expr": { - "A_Const": { - "ival": {}, - "location": 9390, - }, - }, - }, - }, - ], - "is_local": true, - "location": 9371, - "typeName": { - "location": 9378, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ftest2", - "is_local": true, - "location": 9393, - "typeName": { - "location": 9400, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ftest3", - "is_local": true, - "location": 9405, - "typeName": { - "location": 9412, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ftest4", - "is_local": true, - "location": 9417, - "typeName": { - "location": 9424, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "conname": "constrname3", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "ftest1", - }, - }, - { - "String": { - "sval": "ftest2", - }, - }, - { - "String": { - "sval": "ftest3", - }, - }, - ], - "fk_del_action": "d", - "fk_matchtype": "s", - "fk_upd_action": "n", - "initially_valid": true, - "location": 9430, - "pktable": { - "inh": true, - "location": 9503, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 208, - "stmt_location": 9347, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 9599, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 9615, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 9618, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 9621, - }, - }, - { - "A_Const": { - "location": 9624, - "sval": { - "sval": "test1", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 76, - "stmt_location": 9556, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 9646, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 9662, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 9665, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 9668, - }, - }, - { - "A_Const": { - "location": 9671, - "sval": { - "sval": "test2", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 9633, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 9693, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 9709, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 9712, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 9715, - }, - }, - { - "A_Const": { - "location": 9718, - "sval": { - "sval": "test3", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 9680, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 9740, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 9756, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 9759, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 9762, - }, - }, - { - "A_Const": { - "location": 9765, - "sval": { - "sval": "test4", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 9727, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 9817, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 9833, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 9836, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 9839, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 9842, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 70, - "stmt_location": 9774, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 9858, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 9874, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 9877, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 9880, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 9883, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 40, - "stmt_location": 9845, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 9899, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 9915, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 9921, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 9924, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 9927, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 9886, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 9943, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 9959, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 9962, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 9968, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 9971, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 9930, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 9987, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 10003, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 10009, - }, - }, - { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 10012, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 10015, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 9974, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 10031, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 10047, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 10053, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 10056, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 10059, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 10018, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 10102, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10118, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 10121, - }, - }, - { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 10124, - }, - }, - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 10127, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 67, - "stmt_location": 10062, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 10162, - "relname": "fktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10155, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 10155, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 10130, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 10225, - "relname": "pktable", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 10237, - "name": "ptest2", - "val": { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 10244, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest2", - }, - }, - ], - "location": 10252, - }, - }, - "location": 10258, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 10259, - }, - }, - }, - }, - }, - }, - "stmt_len": 90, - "stmt_location": 10170, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 10322, - "relname": "pktable", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 10334, - "name": "ptest2", - "val": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 10341, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest2", - }, - }, - ], - "location": 10349, - }, - }, - "location": 10355, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 10356, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest1", - }, - }, - ], - "location": 10362, - }, - }, - "location": 10368, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10369, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 10358, - }, - }, - }, - }, - "stmt_len": 109, - "stmt_location": 10261, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 10415, - "relname": "pktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10408, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 10408, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 10371, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 10438, - "relname": "fktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10431, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 10431, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 10423, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 10511, - "relname": "pktable", - "relpersistence": "p", - }, - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest1", - }, - }, - ], - "location": 10525, - }, - }, - "location": 10531, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 10532, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest2", - }, - }, - ], - "location": 10538, - }, - }, - "location": 10544, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 10545, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest3", - }, - }, - ], - "location": 10551, - }, - }, - "location": 10557, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 10558, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 10534, - }, - }, - }, - }, - "stmt_len": 113, - "stmt_location": 10446, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 10604, - "relname": "pktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10597, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 10597, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 10560, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 10627, - "relname": "fktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10620, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 10620, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 10612, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 10704, - "relname": "pktable", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest2", - }, - }, - ], - "location": 10718, - }, - }, - "location": 10724, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 10725, - }, - }, - }, - }, - }, - }, - "stmt_len": 91, - "stmt_location": 10635, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 10771, - "relname": "pktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10764, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 10764, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 10727, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 10794, - "relname": "fktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10787, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 10787, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 10779, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "fktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 20, - "stmt_location": 10802, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "pktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 19, - "stmt_location": 10823, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 10898, - "relname": "pktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ptest1", - "is_local": true, - "location": 10908, - "typeName": { - "location": 10915, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest2", - "is_local": true, - "location": 10920, - "typeName": { - "location": 10927, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest3", - "is_local": true, - "location": 10932, - "typeName": { - "location": 10939, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest4", - "is_local": true, - "location": 10944, - "typeName": { - "location": 10951, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "ptest1", - }, - }, - { - "String": { - "sval": "ptest2", - }, - }, - { - "String": { - "sval": "ptest3", - }, - }, - ], - "location": 10957, - }, - }, - ], - }, - }, - "stmt_len": 151, - "stmt_location": 10843, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 11009, - "relname": "fktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ftest1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 11030, - "raw_expr": { - "A_Const": { - "ival": {}, - "location": 11038, - }, - }, - }, - }, - ], - "is_local": true, - "location": 11019, - "typeName": { - "location": 11026, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ftest2", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 11052, - "raw_expr": { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 11060, - }, - }, - }, - }, - ], - "is_local": true, - "location": 11041, - "typeName": { - "location": 11048, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ftest3", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 11075, - "raw_expr": { - "A_Const": { - "ival": { - "ival": -2, - }, - "location": 11083, - }, - }, - }, - }, - ], - "is_local": true, - "location": 11064, - "typeName": { - "location": 11071, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ftest4", - "is_local": true, - "location": 11087, - "typeName": { - "location": 11094, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "conname": "constrname3", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "ftest1", - }, - }, - { - "String": { - "sval": "ftest2", - }, - }, - { - "String": { - "sval": "ftest3", - }, - }, - ], - "fk_del_action": "n", - "fk_matchtype": "s", - "fk_upd_action": "d", - "initially_valid": true, - "location": 11099, - "pktable": { - "inh": true, - "location": 11172, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 229, - "stmt_location": 10995, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 11268, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11284, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11287, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 11290, - }, - }, - { - "A_Const": { - "location": 11293, - "sval": { - "sval": "test1", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 76, - "stmt_location": 11225, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 11315, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11331, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 11334, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 11337, - }, - }, - { - "A_Const": { - "location": 11340, - "sval": { - "sval": "test2", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 11302, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 11362, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11378, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 11381, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 11384, - }, - }, - { - "A_Const": { - "location": 11387, - "sval": { - "sval": "test3", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 11349, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 11409, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11425, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 11428, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 11431, - }, - }, - { - "A_Const": { - "location": 11434, - "sval": { - "sval": "test4", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 11396, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 11456, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11472, - }, - }, - { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 11475, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 11479, - }, - }, - { - "A_Const": { - "location": 11482, - "sval": { - "sval": "test5", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 47, - "stmt_location": 11443, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 11534, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11550, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11553, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 11556, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11559, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 70, - "stmt_location": 11491, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 11575, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11591, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 11594, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 11597, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11600, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 40, - "stmt_location": 11562, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 11616, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11632, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 11635, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 11638, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11641, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 40, - "stmt_location": 11603, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 11657, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 11673, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11679, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 11682, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11685, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 11644, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 11701, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11717, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 11720, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 11726, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 11729, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 11688, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 11745, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 11761, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11767, - }, - }, - { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 11770, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 11773, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 11732, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 11789, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 11805, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 11811, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 11814, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 11817, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 11776, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 11860, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11876, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11879, - }, - }, - { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 11882, - }, - }, - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 11885, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 67, - "stmt_location": 11820, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 11920, - "relname": "fktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11913, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 11913, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 11888, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 11979, - "relname": "pktable", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 11991, - "name": "ptest2", - "val": { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 11998, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest2", - }, - }, - ], - "location": 12006, - }, - }, - "location": 12012, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 12013, - }, - }, - }, - }, - }, - }, - "stmt_len": 86, - "stmt_location": 11928, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 12073, - "relname": "pktable", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 12085, - "name": "ptest1", - "val": { - "A_Const": { - "ival": {}, - "location": 12092, - }, - }, - }, - }, - { - "ResTarget": { - "location": 12095, - "name": "ptest2", - "val": { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 12102, - }, - }, - }, - }, - { - "ResTarget": { - "location": 12106, - "name": "ptest3", - "val": { - "A_Const": { - "ival": { - "ival": -2, - }, - "location": 12113, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest2", - }, - }, - ], - "location": 12122, - }, - }, - "location": 12128, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 12129, - }, - }, - }, - }, - }, - }, - "stmt_len": 115, - "stmt_location": 12015, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 12139, - "relname": "pktable", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 12151, - "name": "ptest2", - "val": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 12158, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest2", - }, - }, - ], - "location": 12167, - }, - }, - "location": 12173, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 12174, - }, - }, - }, - }, - }, - }, - "stmt_len": 44, - "stmt_location": 12131, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 12240, - "relname": "pktable", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 12252, - "name": "ptest2", - "val": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 12259, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest2", - }, - }, - ], - "location": 12267, - }, - }, - "location": 12273, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 12274, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest1", - }, - }, - ], - "location": 12280, - }, - }, - "location": 12286, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 12287, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 12276, - }, - }, - }, - }, - "stmt_len": 112, - "stmt_location": 12176, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 12333, - "relname": "pktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12326, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 12326, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 12289, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 12356, - "relname": "fktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12349, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 12349, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 12341, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 12426, - "relname": "pktable", - "relpersistence": "p", - }, - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest1", - }, - }, - ], - "location": 12440, - }, - }, - "location": 12446, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 12447, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest2", - }, - }, - ], - "location": 12453, - }, - }, - "location": 12459, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 12460, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest3", - }, - }, - ], - "location": 12466, - }, - }, - "location": 12472, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 12473, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 12449, - }, - }, - }, - }, - "stmt_len": 110, - "stmt_location": 12364, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 12519, - "relname": "pktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12512, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 12512, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 12475, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 12542, - "relname": "fktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12535, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 12535, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 12527, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 12616, - "relname": "pktable", - "relpersistence": "p", - }, - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest2", - }, - }, - ], - "location": 12630, - }, - }, - "location": 12636, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 12637, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ptest3", - }, - }, - ], - "location": 12644, - }, - }, - "location": 12650, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 12651, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 12640, - }, - }, - }, - }, - "stmt_len": 102, - "stmt_location": 12550, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 12697, - "relname": "pktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12690, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 12690, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 12653, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 12720, - "relname": "fktable", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12713, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 12713, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 12705, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "fktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 20, - "stmt_location": 12728, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "pktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 19, - "stmt_location": 12749, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 12784, - "relname": "pktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ptest1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 12804, - }, - }, - ], - "is_local": true, - "location": 12793, - "typeName": { - "location": 12800, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 12769, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 12831, - "relname": "fktable_fail1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ftest1", - "is_local": true, - "location": 12847, - "typeName": { - "location": 12854, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "conname": "fkfail1", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "ftest2", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 12859, - "pktable": { - "inh": true, - "location": 12910, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 101, - "stmt_location": 12817, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 12933, - "relname": "fktable_fail2", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ftest1", - "is_local": true, - "location": 12949, - "typeName": { - "location": 12956, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "conname": "fkfail1", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "ftest1", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 12961, - "pk_attrs": [ - { - "String": { - "sval": "ptest2", - }, - }, - ], - "pktable": { - "inh": true, - "location": 13012, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 109, - "stmt_location": 12919, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "fktable_fail1", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 26, - "stmt_location": 13029, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "fktable_fail2", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 25, - "stmt_location": 13056, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "pktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 19, - "stmt_location": 13082, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 13190, - "relname": "pktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ptest1", - "is_local": true, - "location": 13199, - "typeName": { - "location": 13206, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest2", - "is_local": true, - "location": 13211, - "typeName": { - "location": 13218, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_UNIQUE", - "keys": [ - { - "String": { - "sval": "ptest1", - }, - }, - { - "String": { - "sval": "ptest2", - }, - }, - ], - "location": 13223, - }, - }, - ], - }, - }, - "stmt_len": 144, - "stmt_location": 13102, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 13261, - "relname": "fktable_fail1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ftest1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 13287, - "pk_attrs": [ - { - "String": { - "sval": "ptest1", - }, - }, - ], - "pktable": { - "inh": true, - "location": 13298, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - "is_local": true, - "location": 13276, - "typeName": { - "location": 13283, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 67, - "stmt_location": 13247, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "fktable_fail1", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 26, - "stmt_location": 13315, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "pktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 19, - "stmt_location": 13342, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 13450, - "relname": "pktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ptest1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 13470, - }, - }, - ], - "is_local": true, - "location": 13459, - "typeName": { - "location": 13466, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 120, - "stmt_location": 13362, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 13496, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 42, - }, - "location": 13511, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 31, - "stmt_location": 13483, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 13587, - "relname": "fktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ftest1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 13608, - "pktable": { - "inh": true, - "location": 13619, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - "is_local": true, - "location": 13596, - "typeName": { - "location": 13603, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 112, - "stmt_location": 13515, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 13724, - "relname": "fktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ftest1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 13745, - "pk_attrs": [ - { - "String": { - "sval": "ptest1", - }, - }, - ], - "pktable": { - "inh": true, - "location": 13756, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - "is_local": true, - "location": 13733, - "typeName": { - "location": 13740, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 144, - "stmt_location": 13628, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 13916, - "relname": "fktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ftest1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 13937, - "pktable": { - "inh": true, - "location": 13948, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - "is_local": true, - "location": 13925, - "typeName": { - "location": 13932, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 183, - "stmt_location": 13773, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 13997, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 42, - }, - "location": 14012, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 58, - "stmt_location": 13957, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 14048, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 43, - }, - "location": 14063, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 50, - "stmt_location": 14016, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 14091, - "relname": "fktable", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 14103, - "name": "ftest1", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ftest1", - }, - }, - ], - "location": 14112, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 14067, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 14145, - "relname": "fktable", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 14157, - "name": "ftest1", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ftest1", - }, - }, - ], - "location": 14166, - }, - }, - "location": 14173, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 14175, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 14119, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "fktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 34, - "stmt_location": 14177, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 14398, - "relname": "fktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ftest1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 14422, - "pktable": { - "inh": true, - "location": 14433, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - "is_local": true, - "location": 14407, - "typeName": { - "location": 14414, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 229, - "stmt_location": 14212, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "pktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 19, - "stmt_location": 14442, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 14600, - "relname": "pktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ptest1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 14624, - }, - }, - ], - "is_local": true, - "location": 14609, - "typeName": { - "location": 14616, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 174, - "stmt_location": 14462, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 14650, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 42, - }, - "location": 14665, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 31, - "stmt_location": 14637, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 14683, - "relname": "fktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ftest1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 14703, - "pktable": { - "inh": true, - "location": 14714, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - "is_local": true, - "location": 14692, - "typeName": { - "location": 14699, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 14669, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 14763, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 42, - }, - "location": 14778, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 58, - "stmt_location": 14723, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 14814, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 43, - }, - "location": 14829, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 50, - "stmt_location": 14782, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 14857, - "relname": "fktable", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 14869, - "name": "ftest1", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ftest1", - }, - }, - ], - "location": 14878, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 14833, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 14911, - "relname": "fktable", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 14923, - "name": "ftest1", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ftest1", - }, - }, - ], - "location": 14932, - }, - }, - "location": 14939, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 14941, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 14885, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "fktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 34, - "stmt_location": 14943, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "pktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 19, - "stmt_location": 14978, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 15040, - "relname": "pktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ptest1", - "is_local": true, - "location": 15049, - "typeName": { - "location": 15056, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest2", - "is_local": true, - "location": 15061, - "typeName": { - "location": 15068, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "ptest1", - }, - }, - { - "String": { - "sval": "ptest2", - }, - }, - ], - "location": 15074, - }, - }, - ], - }, - }, - "stmt_len": 104, - "stmt_location": 14998, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 15177, - "relname": "fktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ftest1", - "is_local": true, - "location": 15186, - "typeName": { - "location": 15193, - "names": [ - { - "String": { - "sval": "cidr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ftest2", - "is_local": true, - "location": 15199, - "typeName": { - "location": 15206, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "ftest1", - }, - }, - { - "String": { - "sval": "ftest2", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 15217, - "pktable": { - "inh": true, - "location": 15256, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 161, - "stmt_location": 15103, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 15307, - "relname": "fktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ftest1", - "is_local": true, - "location": 15316, - "typeName": { - "location": 15323, - "names": [ - { - "String": { - "sval": "cidr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ftest2", - "is_local": true, - "location": 15329, - "typeName": { - "location": 15336, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "ftest1", - }, - }, - { - "String": { - "sval": "ftest2", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 15347, - "pk_attrs": [ - { - "String": { - "sval": "ptest1", - }, - }, - { - "String": { - "sval": "ptest2", - }, - }, - ], - "pktable": { - "inh": true, - "location": 15386, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 145, - "stmt_location": 15265, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 15479, - "relname": "fktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ftest1", - "is_local": true, - "location": 15488, - "typeName": { - "location": 15495, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ftest2", - "is_local": true, - "location": 15500, - "typeName": { - "location": 15507, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "ftest2", - }, - }, - { - "String": { - "sval": "ftest1", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 15513, - "pktable": { - "inh": true, - "location": 15552, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 149, - "stmt_location": 15411, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 15594, - "relname": "fktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ftest1", - "is_local": true, - "location": 15603, - "typeName": { - "location": 15610, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ftest2", - "is_local": true, - "location": 15615, - "typeName": { - "location": 15622, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "ftest2", - }, - }, - { - "String": { - "sval": "ftest1", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 15628, - "pk_attrs": [ - { - "String": { - "sval": "ptest1", - }, - }, - { - "String": { - "sval": "ptest2", - }, - }, - ], - "pktable": { - "inh": true, - "location": 15667, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 130, - "stmt_location": 15561, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 15721, - "relname": "fktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ftest1", - "is_local": true, - "location": 15730, - "typeName": { - "location": 15737, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ftest2", - "is_local": true, - "location": 15742, - "typeName": { - "location": 15749, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "ftest1", - }, - }, - { - "String": { - "sval": "ftest2", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 15755, - "pk_attrs": [ - { - "String": { - "sval": "ptest2", - }, - }, - { - "String": { - "sval": "ptest1", - }, - }, - ], - "pktable": { - "inh": true, - "location": 15794, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 126, - "stmt_location": 15692, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 15850, - "relname": "fktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ftest1", - "is_local": true, - "location": 15859, - "typeName": { - "location": 15866, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ftest2", - "is_local": true, - "location": 15871, - "typeName": { - "location": 15878, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "ftest2", - }, - }, - { - "String": { - "sval": "ftest1", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 15884, - "pk_attrs": [ - { - "String": { - "sval": "ptest2", - }, - }, - { - "String": { - "sval": "ptest1", - }, - }, - ], - "pktable": { - "inh": true, - "location": 15923, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 128, - "stmt_location": 15819, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "fktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 19, - "stmt_location": 15948, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 15998, - "relname": "fktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ftest1", - "is_local": true, - "location": 16007, - "typeName": { - "location": 16014, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ftest2", - "is_local": true, - "location": 16019, - "typeName": { - "location": 16026, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "ftest1", - }, - }, - { - "String": { - "sval": "ftest2", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 16032, - "pk_attrs": [ - { - "String": { - "sval": "ptest1", - }, - }, - { - "String": { - "sval": "ptest2", - }, - }, - ], - "pktable": { - "inh": true, - "location": 16071, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 127, - "stmt_location": 15968, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "fktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 19, - "stmt_location": 16096, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "pktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 19, - "stmt_location": 16116, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 16211, - "relname": "pktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ptest1", - "is_local": true, - "location": 16220, - "typeName": { - "location": 16227, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest2", - "is_local": true, - "location": 16232, - "typeName": { - "location": 16239, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest3", - "is_local": true, - "location": 16245, - "typeName": { - "location": 16252, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest4", - "is_local": true, - "location": 16257, - "typeName": { - "location": 16264, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "ptest1", - }, - }, - { - "String": { - "sval": "ptest2", - }, - }, - ], - "location": 16270, - }, - }, - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "ptest3", - }, - }, - { - "String": { - "sval": "ptest4", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 16299, - "pk_attrs": [ - { - "String": { - "sval": "ptest1", - }, - }, - { - "String": { - "sval": "ptest2", - }, - }, - ], - "pktable": { - "inh": true, - "location": 16338, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 226, - "stmt_location": 16136, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "pktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 19, - "stmt_location": 16363, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 16410, - "relname": "pktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ptest1", - "is_local": true, - "location": 16419, - "typeName": { - "location": 16426, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest2", - "is_local": true, - "location": 16431, - "typeName": { - "location": 16438, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest3", - "is_local": true, - "location": 16444, - "typeName": { - "location": 16451, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest4", - "is_local": true, - "location": 16456, - "typeName": { - "location": 16463, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "ptest1", - }, - }, - { - "String": { - "sval": "ptest2", - }, - }, - ], - "location": 16469, - }, - }, - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "ptest3", - }, - }, - { - "String": { - "sval": "ptest4", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 16498, - "pktable": { - "inh": true, - "location": 16537, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 162, - "stmt_location": 16383, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "pktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 19, - "stmt_location": 16546, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 16617, - "relname": "pktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ptest1", - "is_local": true, - "location": 16626, - "typeName": { - "location": 16633, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest2", - "is_local": true, - "location": 16638, - "typeName": { - "location": 16645, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest3", - "is_local": true, - "location": 16651, - "typeName": { - "location": 16658, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest4", - "is_local": true, - "location": 16663, - "typeName": { - "location": 16670, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "ptest1", - }, - }, - { - "String": { - "sval": "ptest2", - }, - }, - ], - "location": 16676, - }, - }, - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "ptest3", - }, - }, - { - "String": { - "sval": "ptest4", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 16705, - "pk_attrs": [ - { - "String": { - "sval": "ptest2", - }, - }, - { - "String": { - "sval": "ptest1", - }, - }, - ], - "pktable": { - "inh": true, - "location": 16744, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 202, - "stmt_location": 16566, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 16870, - "relname": "pktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ptest1", - "is_local": true, - "location": 16879, - "typeName": { - "location": 16886, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest2", - "is_local": true, - "location": 16891, - "typeName": { - "location": 16898, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest3", - "is_local": true, - "location": 16904, - "typeName": { - "location": 16911, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest4", - "is_local": true, - "location": 16916, - "typeName": { - "location": 16923, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "ptest1", - }, - }, - { - "String": { - "sval": "ptest2", - }, - }, - ], - "location": 16929, - }, - }, - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "ptest4", - }, - }, - { - "String": { - "sval": "ptest3", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 16958, - "pk_attrs": [ - { - "String": { - "sval": "ptest1", - }, - }, - { - "String": { - "sval": "ptest2", - }, - }, - ], - "pktable": { - "inh": true, - "location": 16997, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 252, - "stmt_location": 16769, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 17138, - "relname": "pktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ptest1", - "is_local": true, - "location": 17147, - "typeName": { - "location": 17154, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest2", - "is_local": true, - "location": 17159, - "typeName": { - "location": 17166, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest3", - "is_local": true, - "location": 17172, - "typeName": { - "location": 17179, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest4", - "is_local": true, - "location": 17184, - "typeName": { - "location": 17191, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "ptest1", - }, - }, - { - "String": { - "sval": "ptest2", - }, - }, - ], - "location": 17197, - }, - }, - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "ptest4", - }, - }, - { - "String": { - "sval": "ptest3", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 17226, - "pktable": { - "inh": true, - "location": 17265, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 251, - "stmt_location": 17022, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 17378, - "relname": "pktable_base", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "base1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 17402, - }, - }, - ], - "is_local": true, - "location": 17392, - "typeName": { - "location": 17398, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 137, - "stmt_location": 17274, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 17500, - "relname": "pktable_base", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 17426, - "relname": "pktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ptest1", - "is_local": true, - "location": 17435, - "typeName": { - "location": 17442, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "base1", - }, - }, - ], - "location": 17447, - }, - }, - { - "Constraint": { - "contype": "CONSTR_UNIQUE", - "keys": [ - { - "String": { - "sval": "base1", - }, - }, - { - "String": { - "sval": "ptest1", - }, - }, - ], - "location": 17467, - }, - }, - ], - }, - }, - "stmt_len": 101, - "stmt_location": 17412, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 17528, - "relname": "fktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ftest1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 17548, - "pk_attrs": [ - { - "String": { - "sval": "base1", - }, - }, - ], - "pktable": { - "inh": true, - "location": 17559, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - "is_local": true, - "location": 17537, - "typeName": { - "location": 17544, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 60, - "stmt_location": 17514, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 17622, - "name": "base1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 17614, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 17637, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 64, - "stmt_location": 17575, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 17661, - "name": "base1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 17653, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 17676, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 38, - "stmt_location": 17640, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 17746, - "name": "ftest1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 17738, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 17762, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 85, - "stmt_location": 17679, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 17822, - "name": "base1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 17814, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 17837, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 17765, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 17861, - "name": "ftest1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 17853, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 17877, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 39, - "stmt_location": 17840, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 17951, - "relname": "pktable", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "base1", - }, - }, - ], - "location": 17965, - }, - }, - "location": 17970, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 17971, - }, - }, - }, - }, - }, - }, - "stmt_len": 92, - "stmt_location": 17880, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 18061, - "relname": "pktable", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 18073, - "name": "base1", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "base1", - }, - }, - ], - "location": 18079, - }, - }, - "location": 18084, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 18085, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 113, - "stmt_location": 17973, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 18142, - "relname": "pktable", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 18154, - "name": "base1", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "base1", - }, - }, - ], - "location": 18160, - }, - }, - "location": 18165, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 18166, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "base1", - }, - }, - ], - "location": 18174, - }, - }, - "location": 18179, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 18180, - }, - }, - }, - }, - }, - }, - "stmt_len": 94, - "stmt_location": 18087, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 18228, - "relname": "pktable", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "base1", - }, - }, - ], - "location": 18242, - }, - }, - "location": 18247, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 18248, - }, - }, - }, - }, - }, - }, - "stmt_len": 67, - "stmt_location": 18182, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "fktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 30, - "stmt_location": 18250, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 18294, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 20, - "stmt_location": 18281, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 18359, - "relname": "fktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ftest1", - "is_local": true, - "location": 18368, - "typeName": { - "location": 18375, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ftest2", - "is_local": true, - "location": 18380, - "typeName": { - "location": 18387, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "ftest1", - }, - }, - { - "String": { - "sval": "ftest2", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 18392, - "pk_attrs": [ - { - "String": { - "sval": "base1", - }, - }, - { - "String": { - "sval": "ptest1", - }, - }, - ], - "pktable": { - "inh": true, - "location": 18431, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 152, - "stmt_location": 18302, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 18502, - "name": "base1", - }, - }, - { - "ResTarget": { - "location": 18509, - "name": "ptest1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 18494, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18525, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18528, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 75, - "stmt_location": 18455, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 18552, - "name": "base1", - }, - }, - { - "ResTarget": { - "location": 18559, - "name": "ptest1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 18544, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 18575, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 18578, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 49, - "stmt_location": 18531, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 18648, - "name": "ftest1", - }, - }, - { - "ResTarget": { - "location": 18656, - "name": "ftest2", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 18640, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 18672, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18675, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 96, - "stmt_location": 18581, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 18735, - "name": "base1", - }, - }, - { - "ResTarget": { - "location": 18741, - "name": "ptest1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 18727, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 18757, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18760, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 84, - "stmt_location": 18678, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 18784, - "name": "ftest1", - }, - }, - { - "ResTarget": { - "location": 18792, - "name": "ftest2", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 18776, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 18808, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18811, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 50, - "stmt_location": 18763, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 18885, - "relname": "pktable", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "base1", - }, - }, - ], - "location": 18899, - }, - }, - "location": 18904, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 18905, - }, - }, - }, - }, - }, - }, - "stmt_len": 92, - "stmt_location": 18814, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 18995, - "relname": "pktable", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 19007, - "name": "base1", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "base1", - }, - }, - ], - "location": 19013, - }, - }, - "location": 19018, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 19019, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 113, - "stmt_location": 18907, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 19076, - "relname": "pktable", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 19088, - "name": "base1", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "base1", - }, - }, - ], - "location": 19094, - }, - }, - "location": 19099, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 19100, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "base1", - }, - }, - ], - "location": 19108, - }, - }, - "location": 19113, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 19114, - }, - }, - }, - }, - }, - }, - "stmt_len": 94, - "stmt_location": 19021, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 19162, - "relname": "pktable", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "base1", - }, - }, - ], - "location": 19176, - }, - }, - "location": 19181, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 19182, - }, - }, - }, - }, - }, - }, - "stmt_len": 67, - "stmt_location": 19116, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "fktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 30, - "stmt_location": 19184, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "pktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 19, - "stmt_location": 19215, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "pktable_base", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 24, - "stmt_location": 19235, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 19343, - "relname": "pktable_base", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "base1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 19366, - }, - }, - ], - "is_local": true, - "location": 19356, - "typeName": { - "location": 19362, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "base2", - "is_local": true, - "location": 19376, - "typeName": { - "location": 19382, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 126, - "stmt_location": 19260, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 19578, - "relname": "pktable_base", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 19401, - "relname": "pktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ptest1", - "is_local": true, - "location": 19409, - "typeName": { - "location": 19416, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest2", - "is_local": true, - "location": 19421, - "typeName": { - "location": 19428, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "base1", - }, - }, - { - "String": { - "sval": "ptest1", - }, - }, - ], - "location": 19433, - }, - }, - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "base2", - }, - }, - { - "String": { - "sval": "ptest2", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 19461, - "pk_attrs": [ - { - "String": { - "sval": "base1", - }, - }, - { - "String": { - "sval": "ptest1", - }, - }, - ], - "pktable": { - "inh": true, - "location": 19544, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 204, - "stmt_location": 19387, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 19614, - "name": "base1", - }, - }, - { - "ResTarget": { - "location": 19621, - "name": "ptest1", - }, - }, - { - "ResTarget": { - "location": 19629, - "name": "base2", - }, - }, - { - "ResTarget": { - "location": 19636, - "name": "ptest2", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 19605, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 19652, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 19655, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 19658, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 19661, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 71, - "stmt_location": 19592, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 19686, - "name": "base1", - }, - }, - { - "ResTarget": { - "location": 19693, - "name": "ptest1", - }, - }, - { - "ResTarget": { - "location": 19701, - "name": "base2", - }, - }, - { - "ResTarget": { - "location": 19708, - "name": "ptest2", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 19677, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 19724, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 19727, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 19730, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 19733, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 71, - "stmt_location": 19664, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 19758, - "name": "base1", - }, - }, - { - "ResTarget": { - "location": 19765, - "name": "ptest1", - }, - }, - { - "ResTarget": { - "location": 19773, - "name": "base2", - }, - }, - { - "ResTarget": { - "location": 19780, - "name": "ptest2", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 19749, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 19796, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 19799, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 19802, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 19805, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 71, - "stmt_location": 19736, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 19830, - "name": "base1", - }, - }, - { - "ResTarget": { - "location": 19837, - "name": "ptest1", - }, - }, - { - "ResTarget": { - "location": 19845, - "name": "base2", - }, - }, - { - "ResTarget": { - "location": 19852, - "name": "ptest2", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 19821, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 19868, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 19871, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 19874, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 19877, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 71, - "stmt_location": 19808, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 19940, - "name": "base1", - }, - }, - { - "ResTarget": { - "location": 19947, - "name": "ptest1", - }, - }, - { - "ResTarget": { - "location": 19955, - "name": "base2", - }, - }, - { - "ResTarget": { - "location": 19962, - "name": "ptest2", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 19931, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 19978, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 19981, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 19984, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 19987, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 109, - "stmt_location": 19880, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 20038, - "relname": "pktable", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "base1", - }, - }, - ], - "location": 20052, - }, - }, - "location": 20057, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 20058, - }, - }, - }, - }, - }, - }, - "stmt_len": 69, - "stmt_location": 19990, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 20111, - "relname": "pktable", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 20123, - "name": "base1", - "val": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 20129, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "base1", - }, - }, - ], - "location": 20137, - }, - }, - "location": 20142, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 20143, - }, - }, - }, - }, - }, - }, - "stmt_len": 84, - "stmt_location": 20060, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 20257, - "relname": "pktable", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "base2", - }, - }, - ], - "location": 20271, - }, - }, - "location": 20276, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 20277, - }, - }, - }, - }, - }, - }, - "stmt_len": 133, - "stmt_location": 20145, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 20292, - "relname": "pktable", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "base1", - }, - }, - ], - "location": 20306, - }, - }, - "location": 20311, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 20312, - }, - }, - }, - }, - }, - }, - "stmt_len": 34, - "stmt_location": 20279, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "pktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 19, - "stmt_location": 20314, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "pktable_base", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 24, - "stmt_location": 20334, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 20416, - "relname": "pktable_base", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "base1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 20439, - }, - }, - ], - "is_local": true, - "location": 20429, - "typeName": { - "location": 20435, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 89, - "stmt_location": 20359, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 20522, - "relname": "pktable_base", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 20463, - "relname": "pktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ptest1", - "is_local": true, - "location": 20471, - "typeName": { - "location": 20478, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "base1", - }, - }, - { - "String": { - "sval": "ptest1", - }, - }, - ], - "location": 20484, - }, - }, - ], - }, - }, - "stmt_len": 86, - "stmt_location": 20449, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 20639, - "relname": "fktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ftest1", - "is_local": true, - "location": 20647, - "typeName": { - "location": 20654, - "names": [ - { - "String": { - "sval": "cidr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ftest2", - "is_local": true, - "location": 20660, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 20667, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "ftest1", - }, - }, - { - "String": { - "sval": "ftest2", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 20674, - "pktable": { - "inh": true, - "location": 20714, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 186, - "stmt_location": 20536, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 20737, - "relname": "fktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ftest1", - "is_local": true, - "location": 20745, - "typeName": { - "location": 20752, - "names": [ - { - "String": { - "sval": "cidr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ftest2", - "is_local": true, - "location": 20758, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 20765, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "ftest1", - }, - }, - { - "String": { - "sval": "ftest2", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 20772, - "pk_attrs": [ - { - "String": { - "sval": "base1", - }, - }, - { - "String": { - "sval": "ptest1", - }, - }, - ], - "pktable": { - "inh": true, - "location": 20812, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 112, - "stmt_location": 20723, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 20896, - "relname": "fktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ftest1", - "is_local": true, - "location": 20904, - "typeName": { - "location": 20911, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ftest2", - "is_local": true, - "location": 20916, - "typeName": { - "location": 20923, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "ftest2", - }, - }, - { - "String": { - "sval": "ftest1", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 20929, - "pktable": { - "inh": true, - "location": 20968, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 140, - "stmt_location": 20836, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 20991, - "relname": "fktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ftest1", - "is_local": true, - "location": 20999, - "typeName": { - "location": 21006, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ftest2", - "is_local": true, - "location": 21011, - "typeName": { - "location": 21018, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "ftest2", - }, - }, - { - "String": { - "sval": "ftest1", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 21024, - "pk_attrs": [ - { - "String": { - "sval": "base1", - }, - }, - { - "String": { - "sval": "ptest1", - }, - }, - ], - "pktable": { - "inh": true, - "location": 21063, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 109, - "stmt_location": 20977, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 21101, - "relname": "fktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ftest1", - "is_local": true, - "location": 21109, - "typeName": { - "location": 21116, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ftest2", - "is_local": true, - "location": 21121, - "typeName": { - "location": 21128, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "ftest1", - }, - }, - { - "String": { - "sval": "ftest2", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 21134, - "pk_attrs": [ - { - "String": { - "sval": "ptest1", - }, - }, - { - "String": { - "sval": "base1", - }, - }, - ], - "pktable": { - "inh": true, - "location": 21173, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 109, - "stmt_location": 21087, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "pktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 19, - "stmt_location": 21197, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "pktable_base", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 24, - "stmt_location": 21217, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 21298, - "relname": "pktable_base", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "base1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 21321, - }, - }, - ], - "is_local": true, - "location": 21311, - "typeName": { - "location": 21317, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "base2", - "is_local": true, - "location": 21331, - "typeName": { - "location": 21337, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 99, - "stmt_location": 21242, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 21537, - "relname": "pktable_base", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 21356, - "relname": "pktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ptest1", - "is_local": true, - "location": 21364, - "typeName": { - "location": 21371, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest2", - "is_local": true, - "location": 21377, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 21384, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "base1", - }, - }, - { - "String": { - "sval": "ptest1", - }, - }, - ], - "location": 21392, - }, - }, - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "base2", - }, - }, - { - "String": { - "sval": "ptest2", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 21420, - "pk_attrs": [ - { - "String": { - "sval": "base1", - }, - }, - { - "String": { - "sval": "ptest1", - }, - }, - ], - "pktable": { - "inh": true, - "location": 21503, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 208, - "stmt_location": 21342, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 21744, - "relname": "pktable_base", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 21565, - "relname": "pktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ptest1", - "is_local": true, - "location": 21573, - "typeName": { - "location": 21580, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest2", - "is_local": true, - "location": 21586, - "typeName": { - "location": 21593, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "base1", - }, - }, - { - "String": { - "sval": "ptest1", - }, - }, - ], - "location": 21599, - }, - }, - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "base2", - }, - }, - { - "String": { - "sval": "ptest2", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 21627, - "pk_attrs": [ - { - "String": { - "sval": "ptest1", - }, - }, - { - "String": { - "sval": "base1", - }, - }, - ], - "pktable": { - "inh": true, - "location": 21710, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 206, - "stmt_location": 21551, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 21951, - "relname": "pktable_base", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 21772, - "relname": "pktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ptest1", - "is_local": true, - "location": 21780, - "typeName": { - "location": 21787, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest2", - "is_local": true, - "location": 21793, - "typeName": { - "location": 21800, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "base1", - }, - }, - { - "String": { - "sval": "ptest1", - }, - }, - ], - "location": 21806, - }, - }, - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "ptest2", - }, - }, - { - "String": { - "sval": "base2", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 21834, - "pk_attrs": [ - { - "String": { - "sval": "base1", - }, - }, - { - "String": { - "sval": "ptest1", - }, - }, - ], - "pktable": { - "inh": true, - "location": 21917, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 206, - "stmt_location": 21758, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 22158, - "relname": "pktable_base", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 21979, - "relname": "pktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ptest1", - "is_local": true, - "location": 21987, - "typeName": { - "location": 21994, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "ptest2", - "is_local": true, - "location": 22000, - "typeName": { - "location": 22007, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "base1", - }, - }, - { - "String": { - "sval": "ptest1", - }, - }, - ], - "location": 22013, - }, - }, - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "ptest2", - }, - }, - { - "String": { - "sval": "base2", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 22041, - "pk_attrs": [ - { - "String": { - "sval": "base1", - }, - }, - { - "String": { - "sval": "ptest1", - }, - }, - ], - "pktable": { - "inh": true, - "location": 22124, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 206, - "stmt_location": 21965, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "pktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 19, - "stmt_location": 22172, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "pktable_base", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 24, - "stmt_location": 22192, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 22362, - "relname": "pktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 22382, - }, - }, - ], - "is_local": true, - "location": 22373, - "typeName": { - "location": 22377, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "other", - "is_local": true, - "location": 22396, - "typeName": { - "location": 22402, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 191, - "stmt_location": 22217, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 22424, - "relname": "fktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 22444, - }, - }, - ], - "is_local": true, - "location": 22435, - "typeName": { - "location": 22439, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "fk", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 22467, - "pktable": { - "inh": true, - "location": 22478, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_ATTR_DEFERRABLE", - "location": 22486, - }, - }, - ], - "is_local": true, - "location": 22458, - "typeName": { - "location": 22462, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 89, - "stmt_location": 22409, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 22550, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 22566, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 22569, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 73, - "stmt_location": 22499, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 42, - "stmt_location": 22573, - }, - }, - { - "RawStmt": { - "stmt": { - "ConstraintsSetStmt": { - "deferred": true, - }, - }, - "stmt_len": 30, - "stmt_location": 22616, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 22661, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 22677, - }, - }, - { - "A_Const": { - "ival": { - "ival": 15, - }, - "location": 22681, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 37, - "stmt_location": 22647, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 22698, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 15, - }, - "location": 22714, - }, - }, - { - "A_Const": { - "ival": {}, - "location": 22718, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 35, - "stmt_location": 22685, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 36, - "stmt_location": 22721, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "fktable", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "pktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 29, - "stmt_location": 22758, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 22837, - "relname": "pktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 22857, - }, - }, - ], - "is_local": true, - "location": 22848, - "typeName": { - "location": 22852, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "other", - "is_local": true, - "location": 22871, - "typeName": { - "location": 22877, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 95, - "stmt_location": 22788, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 22899, - "relname": "fktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 22919, - }, - }, - ], - "is_local": true, - "location": 22910, - "typeName": { - "location": 22914, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "fk", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 22942, - "pktable": { - "inh": true, - "location": 22953, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_ATTR_DEFERRABLE", - "location": 22961, - }, - }, - { - "Constraint": { - "contype": "CONSTR_ATTR_DEFERRED", - "location": 22972, - }, - }, - ], - "is_local": true, - "location": 22933, - "typeName": { - "location": 22937, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 108, - "stmt_location": 22884, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 46, - "stmt_location": 22993, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 23054, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 100, - }, - "location": 23070, - }, - }, - { - "A_Const": { - "ival": { - "ival": 200, - }, - "location": 23075, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 39, - "stmt_location": 23040, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 23093, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 200, - }, - "location": 23109, - }, - }, - { - "A_Const": { - "ival": { - "ival": 500, - }, - "location": 23114, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 38, - "stmt_location": 23080, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 36, - "stmt_location": 23119, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 57, - "stmt_location": 23156, - }, - }, - { - "RawStmt": { - "stmt": { - "ConstraintsSetStmt": {}, - }, - "stmt_len": 31, - "stmt_location": 23214, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 23275, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 500, - }, - "location": 23291, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1000, - }, - "location": 23296, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 55, - "stmt_location": 23246, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 8, - "stmt_location": 23302, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "fktable", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "pktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 29, - "stmt_location": 23311, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 23593, - "relname": "pktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 23613, - }, - }, - ], - "is_local": true, - "location": 23604, - "typeName": { - "location": 23608, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "other", - "is_local": true, - "location": 23627, - "typeName": { - "location": 23633, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 298, - "stmt_location": 23341, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 23655, - "relname": "fktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 23675, - }, - }, - ], - "is_local": true, - "location": 23666, - "typeName": { - "location": 23670, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "fk", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 23698, - "pktable": { - "inh": true, - "location": 23709, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_ATTR_DEFERRABLE", - "location": 23717, - }, - }, - ], - "is_local": true, - "location": 23689, - "typeName": { - "location": 23693, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 89, - "stmt_location": 23640, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 7, - "stmt_location": 23730, - }, - }, - { - "RawStmt": { - "stmt": { - "ConstraintsSetStmt": { - "deferred": true, - }, - }, - "stmt_len": 30, - "stmt_location": 23738, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 23810, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1000, - }, - "location": 23826, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2000, - }, - "location": 23832, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 68, - "stmt_location": 23769, - }, - }, - { - "RawStmt": { - "stmt": { - "ConstraintsSetStmt": {}, - }, - "stmt_len": 89, - "stmt_location": 23838, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 23942, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2000, - }, - "location": 23958, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 23964, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 38, - "stmt_location": 23928, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 20, - "stmt_location": 23967, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "fktable", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "pktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 29, - "stmt_location": 23988, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 24067, - "relname": "pktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 24087, - }, - }, - ], - "is_local": true, - "location": 24078, - "typeName": { - "location": 24082, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "other", - "is_local": true, - "location": 24101, - "typeName": { - "location": 24107, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 95, - "stmt_location": 24018, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 24129, - "relname": "fktable", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 24149, - }, - }, - ], - "is_local": true, - "location": 24140, - "typeName": { - "location": 24144, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "fk", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 24172, - "pktable": { - "inh": true, - "location": 24183, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_ATTR_DEFERRABLE", - "location": 24191, - }, - }, - { - "Constraint": { - "contype": "CONSTR_ATTR_DEFERRED", - "location": 24202, - }, - }, - ], - "is_local": true, - "location": 24163, - "typeName": { - "location": 24167, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 108, - "stmt_location": 24114, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 7, - "stmt_location": 24223, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 24262, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 100, - }, - "location": 24278, - }, - }, - { - "A_Const": { - "ival": { - "ival": 200, - }, - "location": 24283, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 56, - "stmt_location": 24231, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 32, - "stmt_location": 24288, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "pktable", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "fktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 29, - "stmt_location": 24321, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 24502, - "relname": "pktable", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 24533, - }, - }, - ], - "is_local": true, - "location": 24520, - "typeName": { - "location": 24528, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "id2", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_UNIQUE", - "location": 24573, - }, - }, - ], - "is_local": true, - "location": 24554, - "typeName": { - "location": 24562, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 24570, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "id3", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_UNIQUE", - "location": 24602, - }, - }, - ], - "is_local": true, - "location": 24589, - "typeName": { - "location": 24597, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_UNIQUE", - "keys": [ - { - "String": { - "sval": "id1", - }, - }, - { - "String": { - "sval": "id2", - }, - }, - { - "String": { - "sval": "id3", - }, - }, - ], - "location": 24618, - }, - }, - ], - }, - }, - "stmt_len": 290, - "stmt_location": 24351, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 24662, - "relname": "fktable", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "x1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 24693, - "pk_attrs": [ - { - "String": { - "sval": "id1", - }, - }, - ], - "pktable": { - "inh": true, - "location": 24704, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - "is_local": true, - "location": 24680, - "typeName": { - "location": 24688, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "x2", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 24745, - "pk_attrs": [ - { - "String": { - "sval": "id2", - }, - }, - ], - "pktable": { - "inh": true, - "location": 24756, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - "is_local": true, - "location": 24726, - "typeName": { - "location": 24734, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 24742, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "x3", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 24791, - "pk_attrs": [ - { - "String": { - "sval": "id3", - }, - }, - ], - "pktable": { - "inh": true, - "location": 24802, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - ], - "is_local": true, - "location": 24778, - "typeName": { - "location": 24786, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "x4", - "is_local": true, - "location": 24824, - "typeName": { - "location": 24832, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "x5", - "is_local": true, - "location": 24846, - "typeName": { - "location": 24854, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 218, - "stmt_location": 24642, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "fk_2_3", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "x2", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 24990, - "pk_attrs": [ - { - "String": { - "sval": "id3", - }, - }, - ], - "pktable": { - "inh": true, - "location": 25036, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 24978, - "relname": "fktable", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 187, - "stmt_location": 24861, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "fk_2_1", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "x2", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 25090, - "pk_attrs": [ - { - "String": { - "sval": "id1", - }, - }, - ], - "pktable": { - "inh": true, - "location": 25136, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 25078, - "relname": "fktable", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 99, - "stmt_location": 25049, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "fk_3_1", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "x3", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 25208, - "pk_attrs": [ - { - "String": { - "sval": "id1", - }, - }, - ], - "pktable": { - "inh": true, - "location": 25254, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 25196, - "relname": "fktable", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 117, - "stmt_location": 25149, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "fk_1_2", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "x1", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 25326, - "pk_attrs": [ - { - "String": { - "sval": "id2", - }, - }, - ], - "pktable": { - "inh": true, - "location": 25372, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 25314, - "relname": "fktable", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 117, - "stmt_location": 25267, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "fk_1_3", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "x1", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 25455, - "pk_attrs": [ - { - "String": { - "sval": "id3", - }, - }, - ], - "pktable": { - "inh": true, - "location": 25501, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 25443, - "relname": "fktable", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 128, - "stmt_location": 25385, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "fk_4_2", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "x4", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 25575, - "pk_attrs": [ - { - "String": { - "sval": "id2", - }, - }, - ], - "pktable": { - "inh": true, - "location": 25621, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 25563, - "relname": "fktable", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 119, - "stmt_location": 25514, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "fk_5_1", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "x5", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 25706, - "pk_attrs": [ - { - "String": { - "sval": "id1", - }, - }, - ], - "pktable": { - "inh": true, - "location": 25752, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 25694, - "relname": "fktable", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 130, - "stmt_location": 25634, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "fk_123_123", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "x1", - }, - }, - { - "String": { - "sval": "x2", - }, - }, - { - "String": { - "sval": "x3", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 25876, - "pk_attrs": [ - { - "String": { - "sval": "id1", - }, - }, - { - "String": { - "sval": "id2", - }, - }, - { - "String": { - "sval": "id3", - }, - }, - ], - "pktable": { - "inh": true, - "location": 25932, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 25864, - "relname": "fktable", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 187, - "stmt_location": 25765, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "fk_213_213", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "x2", - }, - }, - { - "String": { - "sval": "x1", - }, - }, - { - "String": { - "sval": "x3", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 25979, - "pk_attrs": [ - { - "String": { - "sval": "id2", - }, - }, - { - "String": { - "sval": "id1", - }, - }, - { - "String": { - "sval": "id3", - }, - }, - ], - "pktable": { - "inh": true, - "location": 26035, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 25967, - "relname": "fktable", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 102, - "stmt_location": 25953, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "fk_253_213", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "x2", - }, - }, - { - "String": { - "sval": "x5", - }, - }, - { - "String": { - "sval": "x3", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 26082, - "pk_attrs": [ - { - "String": { - "sval": "id2", - }, - }, - { - "String": { - "sval": "id1", - }, - }, - { - "String": { - "sval": "id3", - }, - }, - ], - "pktable": { - "inh": true, - "location": 26138, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 26070, - "relname": "fktable", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 102, - "stmt_location": 26056, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "fk_123_231", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "x1", - }, - }, - { - "String": { - "sval": "x2", - }, - }, - { - "String": { - "sval": "x3", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 26207, - "pk_attrs": [ - { - "String": { - "sval": "id2", - }, - }, - { - "String": { - "sval": "id3", - }, - }, - { - "String": { - "sval": "id1", - }, - }, - ], - "pktable": { - "inh": true, - "location": 26263, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 26195, - "relname": "fktable", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 124, - "stmt_location": 26159, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "fk_241_132", - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "x2", - }, - }, - { - "String": { - "sval": "x4", - }, - }, - { - "String": { - "sval": "x1", - }, - }, - ], - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 26310, - "pk_attrs": [ - { - "String": { - "sval": "id1", - }, - }, - { - "String": { - "sval": "id3", - }, - }, - { - "String": { - "sval": "id2", - }, - }, - ], - "pktable": { - "inh": true, - "location": 26366, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 26298, - "relname": "fktable", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 102, - "stmt_location": 26284, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "pktable", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "fktable", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 29, - "stmt_location": 26387, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 26837, - "relname": "pktable", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 26858, - }, - }, - ], - "is_local": true, - "location": 26851, - "typeName": { - "location": 26854, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "other", - "is_local": true, - "location": 26875, - "typeName": { - "location": 26881, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 469, - "stmt_location": 26417, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 26907, - "relname": "fktable", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 26928, - }, - }, - ], - "is_local": true, - "location": 26921, - "typeName": { - "location": 26924, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "fk", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 26952, - "pktable": { - "inh": true, - "location": 26963, - "relname": "pktable", - "relpersistence": "p", - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_ATTR_DEFERRABLE", - "location": 26971, - }, - }, - { - "Constraint": { - "contype": "CONSTR_ATTR_DEFERRED", - "location": 26982, - }, - }, - ], - "is_local": true, - "location": 26945, - "typeName": { - "location": 26948, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 115, - "stmt_location": 26887, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 27017, - "relname": "pktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 27033, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 27036, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 36, - "stmt_location": 27003, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 7, - "stmt_location": 27040, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 27100, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 27116, - }, - }, - { - "A_Const": { - "ival": { - "ival": 20, - }, - "location": 27119, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 27048, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 27151, - "relname": "fktable", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 27163, - "name": "id", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 27168, - }, - }, - "location": 27171, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 27173, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 27123, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 50, - "stmt_location": 27175, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 84, - "stmt_location": 27226, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 27363, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 27379, - }, - }, - { - "A_Const": { - "ival": { - "ival": 20, - }, - "location": 27382, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 27311, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_SAVEPOINT", - "location": 27429, - "savepoint_name": "savept1", - }, - }, - "stmt_len": 50, - "stmt_location": 27386, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 27465, - "relname": "fktable", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 27477, - "name": "id", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 27482, - }, - }, - "location": 27485, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 27487, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 27437, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 50, - "stmt_location": 27489, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 7, - "stmt_location": 27540, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_SAVEPOINT", - "location": 27591, - "savepoint_name": "savept1", - }, - }, - "stmt_len": 50, - "stmt_location": 27548, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 27651, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 27667, - }, - }, - { - "A_Const": { - "ival": { - "ival": 20, - }, - "location": 27670, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 27599, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_RELEASE", - "location": 27694, - "savepoint_name": "savept1", - }, - }, - "stmt_len": 27, - "stmt_location": 27674, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 27730, - "relname": "fktable", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 27742, - "name": "id", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 27747, - }, - }, - "location": 27750, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 27752, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 27702, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 50, - "stmt_location": 27754, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 7, - "stmt_location": 27805, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 27865, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 27881, - }, - }, - { - "A_Const": { - "ival": { - "ival": 20, - }, - "location": 27884, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 27813, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_SAVEPOINT", - "location": 27931, - "savepoint_name": "savept1", - }, - }, - "stmt_len": 50, - "stmt_location": 27888, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 27967, - "relname": "fktable", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 27979, - "name": "id", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 27984, - }, - }, - "location": 27987, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 27989, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 27939, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK_TO", - "location": 28029, - "savepoint_name": "savept1", - }, - }, - "stmt_len": 45, - "stmt_location": 27991, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 50, - "stmt_location": 28037, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 28135, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 28151, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 28154, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 68, - "stmt_location": 28088, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "fktable_fk_fkey", - "contype": "CONSTR_FOREIGN", - "deferrable": true, - }, - }, - "subtype": "AT_AlterConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 28171, - "relname": "fktable", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 85, - "stmt_location": 28157, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 7, - "stmt_location": 28243, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 28304, - "relname": "pktable", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 28316, - "name": "id", - "val": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 28321, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 28330, - }, - }, - "location": 28333, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 28335, - }, - }, - }, - }, - }, - }, - "stmt_len": 85, - "stmt_location": 28251, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 8, - "stmt_location": 28337, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 7, - "stmt_location": 28346, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 28412, - "relname": "fktable", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 28428, - }, - }, - { - "A_Const": { - "ival": { - "ival": 20, - }, - "location": 28431, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 80, - "stmt_location": 28354, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 8, - "stmt_location": 28435, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "fktable_fk_fkey", - "contype": "CONSTR_FOREIGN", - }, - }, - "subtype": "AT_AlterConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 28483, - "relname": "fktable", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 94, - "stmt_location": 28444, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 28838, - "relname": "users", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 28855, - }, - }, - ], - "is_local": true, - "location": 28848, - "typeName": { - "location": 28851, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "name", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 28883, - }, - }, - ], - "is_local": true, - "location": 28870, - "typeName": { - "location": 28875, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 354, - "stmt_location": 28539, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 28908, - "relname": "users", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 28922, - }, - }, - { - "A_Const": { - "location": 28925, - "sval": { - "sval": "Jozko", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 39, - "stmt_location": 28894, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 28947, - "relname": "users", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 28961, - }, - }, - { - "A_Const": { - "location": 28964, - "sval": { - "sval": "Ferko", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 38, - "stmt_location": 28934, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 28986, - "relname": "users", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 29000, - }, - }, - { - "A_Const": { - "location": 29003, - "sval": { - "sval": "Samko", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 38, - "stmt_location": 28973, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 29032, - "relname": "tasks", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 29049, - }, - }, - ], - "is_local": true, - "location": 29042, - "typeName": { - "location": 29045, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "owner", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "n", - "fk_matchtype": "s", - "fk_upd_action": "c", - "initially_valid": true, - "location": 29074, - "pktable": { - "inh": true, - "location": 29085, - "relname": "users", - "relpersistence": "p", - }, - }, - }, - ], - "is_local": true, - "location": 29064, - "typeName": { - "location": 29070, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "worker", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "n", - "fk_matchtype": "s", - "fk_upd_action": "c", - "initially_valid": true, - "location": 29142, - "pktable": { - "inh": true, - "location": 29153, - "relname": "users", - "relpersistence": "p", - }, - }, - }, - ], - "is_local": true, - "location": 29131, - "typeName": { - "location": 29138, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "checked_by", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "n", - "fk_matchtype": "s", - "fk_upd_action": "c", - "initially_valid": true, - "location": 29214, - "pktable": { - "inh": true, - "location": 29225, - "relname": "users", - "relpersistence": "p", - }, - }, - }, - ], - "is_local": true, - "location": 29199, - "typeName": { - "location": 29210, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 257, - "stmt_location": 29012, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 29284, - "relname": "tasks", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 29298, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 29300, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 29302, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 29307, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 29270, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 29326, - "relname": "tasks", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 29340, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 29342, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 29344, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 29346, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 38, - "stmt_location": 29313, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 29365, - "relname": "tasks", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 29379, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 29381, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 29383, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 29385, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 35, - "stmt_location": 29352, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 29404, - "relname": "tasks", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 29397, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 29397, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 21, - "stmt_location": 29388, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 29419, - "relname": "users", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 29429, - "name": "id", - "val": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 29434, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 29442, - }, - }, - "location": 29445, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 29447, - }, - }, - }, - }, - }, - }, - "stmt_len": 38, - "stmt_location": 29410, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 29465, - "relname": "tasks", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 29458, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 29458, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 21, - "stmt_location": 29449, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 29485, - "relname": "users", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 29497, - }, - }, - "location": 29500, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 29502, - }, - }, - }, - }, - }, - }, - "stmt_len": 32, - "stmt_location": 29471, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 29520, - "relname": "tasks", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 29513, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 29513, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 21, - "stmt_location": 29504, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 77, - "stmt_location": 29526, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 29612, - "relname": "tasks", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 29622, - "name": "id", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 29625, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 29634, - }, - }, - "location": 29636, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 29637, - }, - }, - }, - }, - }, - }, - "stmt_len": 34, - "stmt_location": 29604, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 29654, - "relname": "tasks", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 29647, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 29647, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 20, - "stmt_location": 29639, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 29673, - "relname": "users", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 29685, - }, - }, - "location": 29688, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 29690, - }, - }, - }, - }, - }, - }, - "stmt_len": 31, - "stmt_location": 29660, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 29707, - "relname": "tasks", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 29700, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 29700, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 20, - "stmt_location": 29692, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 7, - "stmt_location": 29713, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 29800, - "relname": "selfref", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 29820, - }, - }, - ], - "is_local": true, - "location": 29814, - "typeName": { - "location": 29816, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 29837, - "typeName": { - "location": 29839, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_attrs": [ - { - "String": { - "sval": "b", - }, - }, - ], - "fk_del_action": "c", - "fk_matchtype": "s", - "fk_upd_action": "c", - "initially_valid": true, - "location": 29848, - "pk_attrs": [ - { - "String": { - "sval": "a", - }, - }, - ], - "pktable": { - "inh": true, - "location": 29875, - "relname": "selfref", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 211, - "stmt_location": 29721, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 29956, - "name": "a", - }, - }, - { - "ResTarget": { - "location": 29959, - "name": "b", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 29947, - "relname": "selfref", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 29974, - }, - }, - { - "A_Const": { - "ival": {}, - "location": 29977, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 29986, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 29989, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 58, - "stmt_location": 29933, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 7, - "stmt_location": 29992, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 30012, - "relname": "selfref", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 30024, - "name": "a", - "val": { - "A_Const": { - "ival": { - "ival": 123, - }, - "location": 30028, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 30038, - }, - }, - "location": 30040, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 30042, - }, - }, - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 30000, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 30066, - "relname": "selfref", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 30056, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 30056, - }, - }, - }, - }, - { - "ResTarget": { - "location": 30059, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 30059, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 29, - "stmt_location": 30044, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 30086, - "relname": "selfref", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 30098, - "name": "a", - "val": { - "A_Const": { - "ival": { - "ival": 456, - }, - "location": 30102, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 30112, - }, - }, - "location": 30114, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 123, - }, - "location": 30116, - }, - }, - }, - }, - }, - }, - "stmt_len": 45, - "stmt_location": 30074, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 30142, - "relname": "selfref", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 30132, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 30132, - }, - }, - }, - }, - { - "ResTarget": { - "location": 30135, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 30135, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 29, - "stmt_location": 30120, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 7, - "stmt_location": 30150, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 30253, - "relname": "defp", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 30266, - }, - }, - ], - "is_local": true, - "location": 30259, - "typeName": { - "location": 30262, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 120, - "stmt_location": 30158, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 30298, - "relname": "defc", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 30311, - "raw_expr": { - "A_Const": { - "ival": {}, - "location": 30319, - }, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "d", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 30345, - "pktable": { - "inh": true, - "location": 30356, - "relname": "defp", - "relpersistence": "p", - }, - }, - }, - ], - "is_local": true, - "location": 30304, - "typeName": { - "location": 30307, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 104, - "stmt_location": 30279, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 30397, - "relname": "defp", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 30410, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 30415, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 30420, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 38, - "stmt_location": 30384, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 30436, - "relname": "defc", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 30449, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 28, - "stmt_location": 30423, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 30467, - "relname": "defc", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 30460, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 30460, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 19, - "stmt_location": 30452, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 30485, - "relname": "defp", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 30496, - }, - }, - "location": 30499, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 30501, - }, - }, - }, - }, - }, - }, - "stmt_len": 30, - "stmt_location": 30472, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 30518, - "relname": "defc", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 30511, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 30511, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 19, - "stmt_location": 30503, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 30536, - "relname": "defp", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 30547, - }, - }, - "location": 30550, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 30552, - }, - }, - }, - }, - }, - }, - "stmt_len": 30, - "stmt_location": 30523, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 30608, - }, - }, - "name": "f1", - "subtype": "AT_ColumnDefault", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 30575, - "relname": "defc", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 55, - "stmt_location": 30554, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 30623, - "relname": "defp", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 30634, - }, - }, - "location": 30637, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 30639, - }, - }, - }, - }, - }, - }, - "stmt_len": 30, - "stmt_location": 30610, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 30656, - "relname": "defc", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 30649, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 30649, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 19, - "stmt_location": 30641, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 30674, - "relname": "defp", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 30685, - }, - }, - "location": 30688, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 30690, - }, - }, - }, - }, - }, - }, - "stmt_len": 30, - "stmt_location": 30661, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 30780, - "relname": "pp", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 30791, - }, - }, - ], - "is_local": true, - "location": 30784, - "typeName": { - "location": 30787, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 111, - "stmt_location": 30692, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 30823, - "relname": "cc", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 30834, - "pktable": { - "inh": true, - "location": 30845, - "relname": "pp", - "relpersistence": "p", - }, - }, - }, - ], - "is_local": true, - "location": 30827, - "typeName": { - "location": 30830, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 64, - "stmt_location": 30804, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 30882, - "relname": "pp", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 12, - }, - "location": 30892, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 26, - "stmt_location": 30869, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 30909, - "relname": "pp", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 11, - }, - "location": 30919, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 26, - "stmt_location": 30896, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 30931, - "relname": "pp", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 30938, - "name": "f1", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 30941, - }, - }, - "location": 30943, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 30944, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 30923, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 30959, - "relname": "cc", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 13, - }, - "location": 30969, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 26, - "stmt_location": 30946, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 30981, - "relname": "pp", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 30988, - "name": "f1", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 30991, - }, - }, - "location": 30993, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 30994, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 30973, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 31004, - "relname": "pp", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 31011, - "name": "f1", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 31014, - }, - }, - "location": 31016, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 31017, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 30996, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "pp", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "cc", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 26, - "stmt_location": 31019, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 31066, - "relname": "pp", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 31077, - }, - }, - ], - "is_local": true, - "location": 31070, - "typeName": { - "location": 31073, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 43, - "stmt_location": 31046, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 31109, - "relname": "cc", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "r", - "initially_valid": true, - "location": 31120, - "pktable": { - "inh": true, - "location": 31131, - "relname": "pp", - "relpersistence": "p", - }, - }, - }, - ], - "is_local": true, - "location": 31113, - "typeName": { - "location": 31116, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 31090, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 31167, - "relname": "pp", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 12, - }, - "location": 31177, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 26, - "stmt_location": 31154, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 31194, - "relname": "pp", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 11, - }, - "location": 31204, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 26, - "stmt_location": 31181, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 31216, - "relname": "pp", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 31223, - "name": "f1", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 31226, - }, - }, - "location": 31228, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 31229, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 31208, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 31244, - "relname": "cc", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 13, - }, - "location": 31254, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 26, - "stmt_location": 31231, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 31266, - "relname": "pp", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 31273, - "name": "f1", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 31276, - }, - }, - "location": 31278, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 31279, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 31258, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "pp", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "cc", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 26, - "stmt_location": 31281, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/functional_deps.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 95, - "relname": "articles", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "conname": "articles_pkey", - "contype": "CONSTR_PRIMARY", - "location": 117, - }, - }, - ], - "is_local": true, - "location": 110, - "typeName": { - "location": 113, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "keywords", - "is_local": true, - "location": 159, - "typeName": { - "location": 168, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "title", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_UNIQUE", - "location": 189, - }, - }, - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 196, - }, - }, - ], - "is_local": true, - "location": 178, - "typeName": { - "location": 184, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "body", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_UNIQUE", - "location": 220, - }, - }, - ], - "is_local": true, - "location": 210, - "typeName": { - "location": 215, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "created", - "is_local": true, - "location": 232, - "typeName": { - "location": 240, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 246, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 267, - "relname": "articles_in_category", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "article_id", - "is_local": true, - "location": 294, - "typeName": { - "location": 305, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "category_id", - "is_local": true, - "location": 314, - "typeName": { - "location": 326, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "changed", - "is_local": true, - "location": 335, - "typeName": { - "location": 343, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "article_id", - }, - }, - { - "String": { - "sval": "category_id", - }, - }, - ], - "location": 353, - }, - }, - ], - }, - }, - "stmt_len": 145, - "stmt_location": 247, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 561, - "relname": "articles", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 579, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 521, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 521, - }, - }, - }, - }, - { - "ResTarget": { - "location": 525, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "keywords", - }, - }, - ], - "location": 525, - }, - }, - }, - }, - { - "ResTarget": { - "location": 535, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "title", - }, - }, - ], - "location": 535, - }, - }, - }, - }, - { - "ResTarget": { - "location": 542, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "body", - }, - }, - ], - "location": 542, - }, - }, - }, - }, - { - "ResTarget": { - "location": 548, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "created", - }, - }, - ], - "location": 548, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 188, - "stmt_location": 393, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 671, - "relname": "articles", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "title", - }, - }, - ], - "location": 689, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 631, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 631, - }, - }, - }, - }, - { - "ResTarget": { - "location": 635, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "keywords", - }, - }, - ], - "location": 635, - }, - }, - }, - }, - { - "ResTarget": { - "location": 645, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "title", - }, - }, - ], - "location": 645, - }, - }, - }, - }, - { - "ResTarget": { - "location": 652, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "body", - }, - }, - ], - "location": 652, - }, - }, - }, - }, - { - "ResTarget": { - "location": 658, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "created", - }, - }, - ], - "location": 658, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 112, - "stmt_location": 582, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 779, - "relname": "articles", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "body", - }, - }, - ], - "location": 797, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 739, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 739, - }, - }, - }, - }, - { - "ResTarget": { - "location": 743, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "keywords", - }, - }, - ], - "location": 743, - }, - }, - }, - }, - { - "ResTarget": { - "location": 753, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "title", - }, - }, - ], - "location": 753, - }, - }, - }, - }, - { - "ResTarget": { - "location": 760, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "body", - }, - }, - ], - "location": 760, - }, - }, - }, - }, - { - "ResTarget": { - "location": 766, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "created", - }, - }, - ], - "location": 766, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 106, - "stmt_location": 695, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 885, - "relname": "articles", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "keywords", - }, - }, - ], - "location": 903, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 845, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 845, - }, - }, - }, - }, - { - "ResTarget": { - "location": 849, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "keywords", - }, - }, - ], - "location": 849, - }, - }, - }, - }, - { - "ResTarget": { - "location": 859, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "title", - }, - }, - ], - "location": 859, - }, - }, - }, - }, - { - "ResTarget": { - "location": 866, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "body", - }, - }, - ], - "location": 866, - }, - }, - }, - }, - { - "ResTarget": { - "location": 872, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "created", - }, - }, - ], - "location": 872, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 109, - "stmt_location": 802, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 1020, - "relname": "articles", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "aic", - }, - "inh": true, - "location": 1035, - "relname": "articles_in_category", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "id", - }, - }, - ], - "location": 1141, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 970, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "id", - }, - }, - ], - "location": 970, - }, - }, - }, - }, - { - "ResTarget": { - "location": 976, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "keywords", - }, - }, - ], - "location": 976, - }, - }, - }, - }, - { - "ResTarget": { - "location": 988, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "title", - }, - }, - ], - "location": 988, - }, - }, - }, - }, - { - "ResTarget": { - "location": 997, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "body", - }, - }, - ], - "location": 997, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1005, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "created", - }, - }, - ], - "location": 1005, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "id", - }, - }, - ], - "location": 1069, - }, - }, - "location": 1074, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aic", - }, - }, - { - "String": { - "sval": "article_id", - }, - }, - ], - "location": 1076, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aic", - }, - }, - { - "String": { - "sval": "category_id", - }, - }, - ], - "location": 1095, - }, - }, - "location": 1111, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 14, - }, - "location": 1115, - }, - }, - { - "A_Const": { - "ival": { - "ival": 62, - }, - "location": 1118, - }, - }, - { - "A_Const": { - "ival": { - "ival": 70, - }, - "location": 1121, - }, - }, - { - "A_Const": { - "ival": { - "ival": 53, - }, - "location": 1124, - }, - }, - { - "A_Const": { - "ival": { - "ival": 138, - }, - "location": 1127, - }, - }, - ], - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 1091, - }, - }, - }, - }, - "stmt_len": 233, - "stmt_location": 912, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 1239, - "relname": "articles", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "aic", - }, - "inh": true, - "location": 1254, - "relname": "articles_in_category", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aic", - }, - }, - { - "String": { - "sval": "article_id", - }, - }, - ], - "location": 1360, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aic", - }, - }, - { - "String": { - "sval": "category_id", - }, - }, - ], - "location": 1376, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1189, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "id", - }, - }, - ], - "location": 1189, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1195, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "keywords", - }, - }, - ], - "location": 1195, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1207, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "title", - }, - }, - ], - "location": 1207, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1216, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "body", - }, - }, - ], - "location": 1216, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1224, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "created", - }, - }, - ], - "location": 1224, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "id", - }, - }, - ], - "location": 1288, - }, - }, - "location": 1293, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aic", - }, - }, - { - "String": { - "sval": "article_id", - }, - }, - ], - "location": 1295, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aic", - }, - }, - { - "String": { - "sval": "category_id", - }, - }, - ], - "location": 1314, - }, - }, - "location": 1330, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 14, - }, - "location": 1334, - }, - }, - { - "A_Const": { - "ival": { - "ival": 62, - }, - "location": 1337, - }, - }, - { - "A_Const": { - "ival": { - "ival": 70, - }, - "location": 1340, - }, - }, - { - "A_Const": { - "ival": { - "ival": 53, - }, - "location": 1343, - }, - }, - { - "A_Const": { - "ival": { - "ival": 138, - }, - "location": 1346, - }, - }, - ], - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 1310, - }, - }, - }, - }, - "stmt_len": 245, - "stmt_location": 1146, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 1509, - "relname": "articles", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "id", - }, - }, - ], - "location": 1559, - }, - }, - "location": 1564, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aic", - }, - }, - { - "String": { - "sval": "article_id", - }, - }, - ], - "location": 1566, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "aic", - }, - "inh": true, - "location": 1528, - "relname": "articles_in_category", - "relpersistence": "p", - }, - }, - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "id", - }, - }, - ], - "location": 1633, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1459, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "id", - }, - }, - ], - "location": 1459, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1465, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "keywords", - }, - }, - ], - "location": 1465, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1477, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "title", - }, - }, - ], - "location": 1477, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1486, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "body", - }, - }, - ], - "location": 1486, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1494, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "created", - }, - }, - ], - "location": 1494, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aic", - }, - }, - { - "String": { - "sval": "category_id", - }, - }, - ], - "location": 1587, - }, - }, - "location": 1603, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 14, - }, - "location": 1607, - }, - }, - { - "A_Const": { - "ival": { - "ival": 62, - }, - "location": 1610, - }, - }, - { - "A_Const": { - "ival": { - "ival": 70, - }, - "location": 1613, - }, - }, - { - "A_Const": { - "ival": { - "ival": 53, - }, - "location": 1616, - }, - }, - { - "A_Const": { - "ival": { - "ival": 138, - }, - "location": 1619, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 245, - "stmt_location": 1392, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 1731, - "relname": "articles", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "id", - }, - }, - ], - "location": 1781, - }, - }, - "location": 1786, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aic", - }, - }, - { - "String": { - "sval": "article_id", - }, - }, - ], - "location": 1788, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "aic", - }, - "inh": true, - "location": 1750, - "relname": "articles_in_category", - "relpersistence": "p", - }, - }, - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aic", - }, - }, - { - "String": { - "sval": "article_id", - }, - }, - ], - "location": 1855, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aic", - }, - }, - { - "String": { - "sval": "category_id", - }, - }, - ], - "location": 1871, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1681, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "id", - }, - }, - ], - "location": 1681, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1687, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "keywords", - }, - }, - ], - "location": 1687, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1699, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "title", - }, - }, - ], - "location": 1699, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1708, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "body", - }, - }, - ], - "location": 1708, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1716, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "created", - }, - }, - ], - "location": 1716, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aic", - }, - }, - { - "String": { - "sval": "category_id", - }, - }, - ], - "location": 1809, - }, - }, - "location": 1825, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 14, - }, - "location": 1829, - }, - }, - { - "A_Const": { - "ival": { - "ival": 62, - }, - "location": 1832, - }, - }, - { - "A_Const": { - "ival": { - "ival": 70, - }, - "location": 1835, - }, - }, - { - "A_Const": { - "ival": { - "ival": 53, - }, - "location": 1838, - }, - }, - { - "A_Const": { - "ival": { - "ival": 138, - }, - "location": 1841, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 248, - "stmt_location": 1638, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 1968, - "relname": "articles", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "id", - }, - }, - ], - "location": 2018, - }, - }, - "location": 2023, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aic", - }, - }, - { - "String": { - "sval": "article_id", - }, - }, - ], - "location": 2025, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "aic", - }, - "inh": true, - "location": 1987, - "relname": "articles_in_category", - "relpersistence": "p", - }, - }, - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aic", - }, - }, - { - "String": { - "sval": "category_id", - }, - }, - ], - "location": 2092, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aic", - }, - }, - { - "String": { - "sval": "article_id", - }, - }, - ], - "location": 2109, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1951, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aic", - }, - }, - { - "String": { - "sval": "changed", - }, - }, - ], - "location": 1951, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aic", - }, - }, - { - "String": { - "sval": "category_id", - }, - }, - ], - "location": 2046, - }, - }, - "location": 2062, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 14, - }, - "location": 2066, - }, - }, - { - "A_Const": { - "ival": { - "ival": 62, - }, - "location": 2069, - }, - }, - { - "A_Const": { - "ival": { - "ival": 70, - }, - "location": 2072, - }, - }, - { - "A_Const": { - "ival": { - "ival": 53, - }, - "location": 2075, - }, - }, - { - "A_Const": { - "ival": { - "ival": 138, - }, - "location": 2078, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 236, - "stmt_location": 1887, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 2203, - "relname": "articles", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "id", - }, - }, - ], - "location": 2253, - }, - }, - "location": 2258, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aic", - }, - }, - { - "String": { - "sval": "article_id", - }, - }, - ], - "location": 2260, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "aic", - }, - "inh": true, - "location": 2222, - "relname": "articles_in_category", - "relpersistence": "p", - }, - }, - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aic", - }, - }, - { - "String": { - "sval": "article_id", - }, - }, - ], - "location": 2327, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2186, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aic", - }, - }, - { - "String": { - "sval": "changed", - }, - }, - ], - "location": 2186, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aic", - }, - }, - { - "String": { - "sval": "category_id", - }, - }, - ], - "location": 2281, - }, - }, - "location": 2297, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 14, - }, - "location": 2301, - }, - }, - { - "A_Const": { - "ival": { - "ival": 62, - }, - "location": 2304, - }, - }, - { - "A_Const": { - "ival": { - "ival": 70, - }, - "location": 2307, - }, - }, - { - "A_Const": { - "ival": { - "ival": 53, - }, - "location": 2310, - }, - }, - { - "A_Const": { - "ival": { - "ival": 138, - }, - "location": 2313, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 217, - "stmt_location": 2124, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 2394, - "relname": "products", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "product_id", - "is_local": true, - "location": 2404, - "typeName": { - "location": 2415, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "name", - "is_local": true, - "location": 2420, - "typeName": { - "location": 2425, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "price", - "is_local": true, - "location": 2431, - "typeName": { - "location": 2437, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 103, - "stmt_location": 2342, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 2465, - "relname": "sales", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "product_id", - "is_local": true, - "location": 2472, - "typeName": { - "location": 2483, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "units", - "is_local": true, - "location": 2488, - "typeName": { - "location": 2494, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 2446, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_LEFT", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "p", - }, - "inh": true, - "location": 2577, - "relname": "products", - "relpersistence": "p", - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "s", - }, - "inh": true, - "location": 2598, - "relname": "sales", - "relpersistence": "p", - }, - }, - "usingClause": [ - { - "String": { - "sval": "product_id", - }, - }, - ], - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "product_id", - }, - }, - ], - "location": 2638, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "name", - }, - }, - ], - "location": 2650, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "price", - }, - }, - ], - "location": 2658, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2514, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "product_id", - }, - }, - ], - "location": 2514, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2526, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "name", - }, - }, - ], - "location": 2526, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2534, - "name": "sales", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "s", - }, - }, - { - "String": { - "sval": "units", - }, - }, - ], - "location": 2539, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 2535, - }, - }, - "location": 2548, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "price", - }, - }, - ], - "location": 2550, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 166, - "stmt_location": 2499, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_LEFT", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "p", - }, - "inh": true, - "location": 2746, - "relname": "products", - "relpersistence": "p", - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "s", - }, - "inh": true, - "location": 2767, - "relname": "sales", - "relpersistence": "p", - }, - }, - "usingClause": [ - { - "String": { - "sval": "product_id", - }, - }, - ], - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "product_id", - }, - }, - ], - "location": 2807, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2683, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "product_id", - }, - }, - ], - "location": 2683, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2695, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "name", - }, - }, - ], - "location": 2695, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2703, - "name": "sales", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "s", - }, - }, - { - "String": { - "sval": "units", - }, - }, - ], - "location": 2708, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 2704, - }, - }, - "location": 2717, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "price", - }, - }, - ], - "location": 2719, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 151, - "stmt_location": 2666, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "product_id", - }, - }, - ], - "location": 2845, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 2832, - "relname": "products", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 51, - "stmt_location": 2818, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_LEFT", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "p", - }, - "inh": true, - "location": 2952, - "relname": "products", - "relpersistence": "p", - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "s", - }, - "inh": true, - "location": 2973, - "relname": "sales", - "relpersistence": "p", - }, - }, - "usingClause": [ - { - "String": { - "sval": "product_id", - }, - }, - ], - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "product_id", - }, - }, - ], - "location": 3013, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2889, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "product_id", - }, - }, - ], - "location": 2889, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2901, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "name", - }, - }, - ], - "location": 2901, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2909, - "name": "sales", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "s", - }, - }, - { - "String": { - "sval": "units", - }, - }, - ], - "location": 2914, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 2910, - }, - }, - "location": 2923, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "price", - }, - }, - ], - "location": 2925, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 153, - "stmt_location": 2870, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 3095, - "relname": "node", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "nid", - "is_local": true, - "location": 3106, - "typeName": { - "location": 3110, - "names": [ - { - "String": { - "sval": "serial", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "vid", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 3134, - }, - }, - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 3143, - "raw_expr": { - "A_Const": { - "location": 3151, - "sval": { - "sval": "0", - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 3122, - "typeName": { - "location": 3126, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "type", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 3177, - }, - }, - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 3186, - "raw_expr": { - "A_Const": { - "location": 3194, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 3160, - "typeName": { - "location": 3165, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 32, - }, - "location": 3173, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "title", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 3221, - }, - }, - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 3230, - "raw_expr": { - "A_Const": { - "location": 3238, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 3202, - "typeName": { - "location": 3208, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 128, - }, - "location": 3216, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "uid", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 3258, - }, - }, - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 3267, - "raw_expr": { - "A_Const": { - "location": 3275, - "sval": { - "sval": "0", - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 3246, - "typeName": { - "location": 3250, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "status", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 3299, - }, - }, - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 3308, - "raw_expr": { - "A_Const": { - "location": 3316, - "sval": { - "sval": "1", - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 3284, - "typeName": { - "location": 3291, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "created", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 3341, - }, - }, - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 3350, - "raw_expr": { - "A_Const": { - "location": 3358, - "sval": { - "sval": "0", - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 3325, - "typeName": { - "location": 3333, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "nid", - }, - }, - { - "String": { - "sval": "vid", - }, - }, - ], - "location": 3379, - }, - }, - ], - }, - }, - "stmt_len": 379, - "stmt_location": 3024, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 3424, - "relname": "users", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "uid", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 3448, - }, - }, - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 3457, - "raw_expr": { - "A_Const": { - "location": 3465, - "sval": { - "sval": "0", - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 3436, - "typeName": { - "location": 3440, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "name", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 3491, - }, - }, - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 3500, - "raw_expr": { - "A_Const": { - "location": 3508, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 3474, - "typeName": { - "location": 3479, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 60, - }, - "location": 3487, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "pass", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 3533, - }, - }, - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 3542, - "raw_expr": { - "A_Const": { - "location": 3550, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 3516, - "typeName": { - "location": 3521, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 32, - }, - "location": 3529, - }, - }, - ], - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "uid", - }, - }, - ], - "location": 3570, - }, - }, - { - "Constraint": { - "contype": "CONSTR_UNIQUE", - "keys": [ - { - "String": { - "sval": "name", - }, - }, - ], - "location": 3593, - }, - }, - ], - }, - }, - "stmt_len": 204, - "stmt_location": 3404, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "n", - }, - "inh": true, - "location": 3643, - "relname": "node", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "u", - }, - }, - { - "String": { - "sval": "uid", - }, - }, - ], - "location": 3672, - }, - }, - "location": 3678, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "uid", - }, - }, - ], - "location": 3680, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "u", - }, - "inh": true, - "location": 3661, - "relname": "users", - "relpersistence": "p", - }, - }, - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "u", - }, - }, - { - "String": { - "sval": "uid", - }, - }, - ], - "location": 3734, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "u", - }, - }, - { - "String": { - "sval": "name", - }, - }, - ], - "location": 3741, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3624, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "u", - }, - }, - { - "String": { - "sval": "uid", - }, - }, - ], - "location": 3624, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3631, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "u", - }, - }, - { - "String": { - "sval": "name", - }, - }, - ], - "location": 3631, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "type", - }, - }, - ], - "location": 3692, - }, - }, - "location": 3699, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3701, - "sval": { - "sval": "blog", - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "status", - }, - }, - ], - "location": 3712, - }, - }, - "location": 3721, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3723, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 3708, - }, - }, - }, - }, - "stmt_len": 138, - "stmt_location": 3609, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "n", - }, - "inh": true, - "location": 3782, - "relname": "node", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "u", - }, - }, - { - "String": { - "sval": "uid", - }, - }, - ], - "location": 3811, - }, - }, - "location": 3817, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "uid", - }, - }, - ], - "location": 3819, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "u", - }, - "inh": true, - "location": 3800, - "relname": "users", - "relpersistence": "p", - }, - }, - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "u", - }, - }, - { - "String": { - "sval": "uid", - }, - }, - ], - "location": 3873, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3763, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "u", - }, - }, - { - "String": { - "sval": "uid", - }, - }, - ], - "location": 3763, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3770, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "u", - }, - }, - { - "String": { - "sval": "name", - }, - }, - ], - "location": 3770, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "type", - }, - }, - ], - "location": 3831, - }, - }, - "location": 3838, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3840, - "sval": { - "sval": "blog", - }, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "status", - }, - }, - ], - "location": 3851, - }, - }, - "location": 3860, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3862, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 3847, - }, - }, - }, - }, - "stmt_len": 130, - "stmt_location": 3748, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3995, - "relname": "articles", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "body", - }, - }, - ], - "location": 4013, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3955, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 3955, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3959, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "keywords", - }, - }, - ], - "location": 3959, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3969, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "title", - }, - }, - ], - "location": 3969, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3976, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "body", - }, - }, - ], - "location": 3976, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3982, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "created", - }, - }, - ], - "location": 3982, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 3940, - "relname": "fdv1", - "relpersistence": "t", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 138, - "stmt_location": 3879, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4098, - "relname": "articles", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 4116, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4058, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 4058, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4062, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "keywords", - }, - }, - ], - "location": 4062, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4072, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "title", - }, - }, - ], - "location": 4072, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4079, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "body", - }, - }, - ], - "location": 4079, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4085, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "created", - }, - }, - ], - "location": 4085, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 4043, - "relname": "fdv1", - "relpersistence": "t", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 100, - "stmt_location": 4018, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "articles_pkey", - "subtype": "AT_DropConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 4141, - "relname": "articles", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 69, - "stmt_location": 4119, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "fdv1", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_VIEW", - }, - }, - "stmt_len": 16, - "stmt_location": 4189, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 4327, - "relname": "articles", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "id", - }, - }, - ], - "location": 4377, - }, - }, - "location": 4382, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aic", - }, - }, - { - "String": { - "sval": "article_id", - }, - }, - ], - "location": 4384, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "aic", - }, - "inh": true, - "location": 4346, - "relname": "articles_in_category", - "relpersistence": "p", - }, - }, - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "id", - }, - }, - ], - "location": 4451, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aic", - }, - }, - { - "String": { - "sval": "category_id", - }, - }, - ], - "location": 4457, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aic", - }, - }, - { - "String": { - "sval": "article_id", - }, - }, - ], - "location": 4474, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4266, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "id", - }, - }, - ], - "location": 4266, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4272, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "keywords", - }, - }, - ], - "location": 4272, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4284, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "title", - }, - }, - ], - "location": 4284, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4293, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aic", - }, - }, - { - "String": { - "sval": "category_id", - }, - }, - ], - "location": 4293, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4310, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aic", - }, - }, - { - "String": { - "sval": "changed", - }, - }, - ], - "location": 4310, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aic", - }, - }, - { - "String": { - "sval": "category_id", - }, - }, - ], - "location": 4405, - }, - }, - "location": 4421, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 14, - }, - "location": 4425, - }, - }, - { - "A_Const": { - "ival": { - "ival": 62, - }, - "location": 4428, - }, - }, - { - "A_Const": { - "ival": { - "ival": 70, - }, - "location": 4431, - }, - }, - { - "A_Const": { - "ival": { - "ival": 53, - }, - "location": 4434, - }, - }, - { - "A_Const": { - "ival": { - "ival": 138, - }, - "location": 4437, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 4251, - "relname": "fdv2", - "relpersistence": "t", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 282, - "stmt_location": 4206, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "articles_pkey", - "subtype": "AT_DropConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 4503, - "relname": "articles", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 61, - "stmt_location": 4489, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "articles_in_category_pkey", - "subtype": "AT_DropConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 4572, - "relname": "articles_in_category", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 92, - "stmt_location": 4551, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "fdv2", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_VIEW", - }, - }, - "stmt_len": 23, - "stmt_location": 4644, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4762, - "relname": "articles", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 4780, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4722, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 4722, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4726, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "keywords", - }, - }, - ], - "location": 4726, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4736, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "title", - }, - }, - ], - "location": 4736, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4743, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "body", - }, - }, - ], - "location": 4743, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4749, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "created", - }, - }, - ], - "location": 4749, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4836, - "relname": "articles", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 4854, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4796, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 4796, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4800, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "keywords", - }, - }, - ], - "location": 4800, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4810, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "title", - }, - }, - ], - "location": 4810, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4817, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "body", - }, - }, - ], - "location": 4817, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4823, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "created", - }, - }, - ], - "location": 4823, - }, - }, - }, - }, - ], - }, - }, - }, - "view": { - "inh": true, - "location": 4707, - "relname": "fdv3", - "relpersistence": "t", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 188, - "stmt_location": 4668, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "articles_pkey", - "subtype": "AT_DropConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 4871, - "relname": "articles", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 61, - "stmt_location": 4857, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "fdv3", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_VIEW", - }, - }, - "stmt_len": 24, - "stmt_location": 4919, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4986, - "relname": "articles", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4979, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4979, - }, - }, - }, - }, - ], - "whereClause": { - "SubLink": { - "location": 5007, - "subLinkType": "ANY_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5029, - "relname": "articles", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 5047, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5018, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "title", - }, - }, - ], - "location": 5018, - }, - }, - }, - }, - ], - }, - }, - "testexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "title", - }, - }, - ], - "location": 5001, - }, - }, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 4964, - "relname": "fdv4", - "relpersistence": "t", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 106, - "stmt_location": 4944, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "articles_pkey", - "subtype": "AT_DropConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 5065, - "relname": "articles", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 61, - "stmt_location": 5051, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "fdv4", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_VIEW", - }, - }, - "stmt_len": 24, - "stmt_location": 5113, - }, - }, - { - "RawStmt": { - "stmt": { - "PrepareStmt": { - "name": "foo", - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5266, - "relname": "articles", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 5286, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5224, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 5224, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5228, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "keywords", - }, - }, - ], - "location": 5228, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5238, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "title", - }, - }, - ], - "location": 5238, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5245, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "body", - }, - }, - ], - "location": 5245, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5251, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "created", - }, - }, - ], - "location": 5251, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 150, - "stmt_location": 5138, - }, - }, - { - "RawStmt": { - "stmt": { - "ExecuteStmt": { - "name": "foo", - }, - }, - "stmt_len": 13, - "stmt_location": 5289, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "articles_pkey", - "subtype": "AT_DropConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 5317, - "relname": "articles", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 61, - "stmt_location": 5303, - }, - }, - { - "RawStmt": { - "stmt": { - "ExecuteStmt": { - "name": "foo", - }, - }, - "stmt_len": 13, - "stmt_location": 5365, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/geometry.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "ival": { - "ival": -3, - }, - "location": 146, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "extra_float_digits", - }, - }, - "stmt_len": 148, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 216, - "relname": "box_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 175, - "name": "four", - "val": { - "A_Const": { - "location": 175, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 187, - "name": "center", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 194, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "center", - }, - }, - ], - "location": 187, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 74, - "stmt_location": 149, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 271, - "relname": "box_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 233, - "name": "four", - "val": { - "A_Const": { - "location": 233, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 245, - "name": "center", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 246, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 249, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 224, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 327, - "relname": "circle_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 288, - "name": "six", - "val": { - "A_Const": { - "location": 288, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 299, - "name": "center", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 305, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 299, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 58, - "stmt_location": 279, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 384, - "relname": "circle_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 347, - "name": "six", - "val": { - "A_Const": { - "location": 347, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 358, - "name": "center", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 359, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 362, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 338, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 441, - "relname": "polygon_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 404, - "name": "two", - "val": { - "A_Const": { - "location": 404, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 415, - "name": "center", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 416, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 419, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 463, - "name": [ - { - "String": { - "sval": "#", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 465, - }, - }, - }, - }, - "location": 469, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 471, - }, - }, - }, - }, - }, - }, - "stmt_len": 77, - "stmt_location": 395, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "p1", - }, - "inh": true, - "location": 535, - "relname": "point_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 510, - "name": "two", - "val": { - "A_Const": { - "location": 510, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 521, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 521, - }, - }, - }, - }, - ], - "whereClause": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 570, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 583, - "sval": { - "sval": "(0,0)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 577, - "names": [ - { - "String": { - "sval": "point", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ishorizontal", - }, - }, - ], - "location": 557, - }, - }, - }, - }, - "stmt_len": 118, - "stmt_location": 473, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "p1", - }, - "inh": true, - "location": 654, - "relname": "point_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 629, - "name": "two", - "val": { - "A_Const": { - "location": 629, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 640, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 640, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 676, - }, - }, - "location": 682, - "name": [ - { - "String": { - "sval": "?-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 691, - "sval": { - "sval": "(0,0)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 685, - "names": [ - { - "String": { - "sval": "point", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 106, - "stmt_location": 592, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "p1", - }, - "inh": true, - "location": 759, - "relname": "point_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 734, - "name": "one", - "val": { - "A_Const": { - "location": 734, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 745, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 745, - }, - }, - }, - }, - ], - "whereClause": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 792, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 805, - "sval": { - "sval": "(5.1,34.5)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 799, - "names": [ - { - "String": { - "sval": "point", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "isvertical", - }, - }, - ], - "location": 781, - }, - }, - }, - }, - "stmt_len": 119, - "stmt_location": 699, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "p1", - }, - "inh": true, - "location": 879, - "relname": "point_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 854, - "name": "one", - "val": { - "A_Const": { - "location": 854, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 865, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 865, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 901, - }, - }, - "location": 907, - "name": [ - { - "String": { - "sval": "?|", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 916, - "sval": { - "sval": "(5.1,34.5)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 910, - "names": [ - { - "String": { - "sval": "point", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 109, - "stmt_location": 819, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "l", - }, - "inh": true, - "location": 1037, - "relname": "lseg_tbl", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "p", - }, - "inh": true, - "location": 1049, - "relname": "point_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 978, - "name": "count", - "val": { - "A_Const": { - "location": 978, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 991, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 991, - }, - }, - }, - }, - { - "ResTarget": { - "location": 997, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "l", - }, - }, - { - "String": { - "sval": "s", - }, - }, - ], - "location": 997, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1002, - "name": "intersection", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "l", - }, - }, - { - "String": { - "sval": "s", - }, - }, - ], - "location": 1002, - }, - }, - "location": 1006, - "name": [ - { - "String": { - "sval": "#", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1008, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 131, - "stmt_location": 929, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "l", - }, - "inh": true, - "location": 1143, - "relname": "lseg_tbl", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "p", - }, - "inh": true, - "location": 1155, - "relname": "point_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1087, - "name": "thirty", - "val": { - "A_Const": { - "location": 1087, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1101, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1101, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1107, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "l", - }, - }, - { - "String": { - "sval": "s", - }, - }, - ], - "location": 1107, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1112, - "name": "closest", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1112, - }, - }, - "location": 1117, - "name": [ - { - "String": { - "sval": "##", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "l", - }, - }, - { - "String": { - "sval": "s", - }, - }, - ], - "location": 1120, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 105, - "stmt_location": 1061, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1223, - "relname": "circle_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1192, - "name": "six", - "val": { - "A_Const": { - "location": 1192, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1203, - "name": "box", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1207, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "box", - }, - }, - ], - "location": 1203, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 66, - "stmt_location": 1167, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 1311, - "relname": "box_tbl", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "p", - }, - "inh": true, - "location": 1322, - "relname": "point_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1258, - "name": "twentyfour", - "val": { - "A_Const": { - "location": 1258, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1276, - "name": "translation", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1276, - }, - }, - "location": 1281, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1283, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 99, - "stmt_location": 1234, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 1396, - "relname": "box_tbl", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "p", - }, - "inh": true, - "location": 1407, - "relname": "point_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1343, - "name": "twentyfour", - "val": { - "A_Const": { - "location": 1343, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1361, - "name": "translation", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1361, - }, - }, - "location": 1366, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1368, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 84, - "stmt_location": 1334, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 1502, - "relname": "box_tbl", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "p", - }, - "inh": true, - "location": 1513, - "relname": "point_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1452, - "name": "twentyfour", - "val": { - "A_Const": { - "location": 1452, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1470, - "name": "rotation", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1470, - }, - }, - "location": 1475, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1477, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 105, - "stmt_location": 1419, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 1580, - "relname": "box_tbl", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "p", - }, - "inh": true, - "location": 1591, - "relname": "point_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1534, - "name": "twenty", - "val": { - "A_Const": { - "location": 1534, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1548, - "name": "rotation", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1548, - }, - }, - "location": 1553, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1555, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1613, - }, - }, - "location": 1618, - "name": [ - { - "String": { - "sval": "<->", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1628, - "sval": { - "sval": "(0,0)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1622, - "names": [ - { - "String": { - "sval": "point", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - "location": 1637, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1640, - }, - }, - }, - }, - }, - }, - "stmt_len": 116, - "stmt_location": 1525, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1665, - "relname": "point_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1651, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1651, - }, - }, - "location": 1653, - "typeName": { - "location": 1655, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 1642, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 1712, - "relname": "box_tbl", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 1723, - "relname": "box_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1684, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1694, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1700, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "bound_box", - }, - }, - ], - "location": 1684, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 1675, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1811, - "relname": "path_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1758, - "name": "eight", - "val": { - "A_Const": { - "location": 1758, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1771, - "name": "npoints", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1779, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "npoints", - }, - }, - ], - "location": 1771, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1795, - "name": "path", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1795, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 86, - "stmt_location": 1733, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1855, - "relname": "polygon_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1829, - "name": "four", - "val": { - "A_Const": { - "location": 1829, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1841, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1846, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "path", - }, - }, - ], - "location": 1841, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 1820, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "p1", - }, - "inh": true, - "location": 1948, - "relname": "path_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1891, - "name": "eight", - "val": { - "A_Const": { - "location": 1891, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1904, - "name": "dist_add", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1904, - }, - }, - "location": 1910, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1918, - "sval": { - "sval": "(10,10)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1912, - "names": [ - { - "String": { - "sval": "point", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 92, - "stmt_location": 1867, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "p1", - }, - "inh": true, - "location": 2049, - "relname": "path_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1993, - "name": "eight", - "val": { - "A_Const": { - "location": 1993, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2006, - "name": "dist_mul", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2006, - }, - }, - "location": 2012, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2020, - "sval": { - "sval": "(2,-1)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2014, - "names": [ - { - "String": { - "sval": "point", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 100, - "stmt_location": 1960, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "poly", - }, - "inh": true, - "location": 2173, - "relname": "polygon_tbl", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "p", - }, - "inh": true, - "location": 2191, - "relname": "point_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2104, - "name": "twentyfour", - "val": { - "A_Const": { - "location": 2104, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2122, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2122, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2128, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "poly", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2128, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2137, - "name": "contains", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "poly", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2137, - }, - }, - "location": 2145, - "name": [ - { - "String": { - "sval": "@>", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2148, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 141, - "stmt_location": 2061, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "poly", - }, - "inh": true, - "location": 2282, - "relname": "polygon_tbl", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "p", - }, - "inh": true, - "location": 2300, - "relname": "point_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2212, - "name": "twentyfour", - "val": { - "A_Const": { - "location": 2212, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2230, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2230, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2236, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "poly", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2236, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2245, - "name": "contained", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2245, - }, - }, - "location": 2250, - "name": [ - { - "String": { - "sval": "<@", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "poly", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2253, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 108, - "stmt_location": 2203, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2379, - "relname": "polygon_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2321, - "name": "four", - "val": { - "A_Const": { - "location": 2321, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2333, - "name": "npoints", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2341, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "npoints", - }, - }, - ], - "location": 2333, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2357, - "name": "polygon", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2357, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 78, - "stmt_location": 2312, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2432, - "relname": "box_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2400, - "name": "four", - "val": { - "A_Const": { - "location": 2400, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2412, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2420, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "location": 2412, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 48, - "stmt_location": 2391, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2481, - "relname": "path_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2449, - "name": "four", - "val": { - "A_Const": { - "location": 2449, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2461, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2469, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "location": 2461, - }, - }, - }, - }, - ], - "whereClause": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2505, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "isclosed", - }, - }, - ], - "location": 2496, - }, - }, - }, - }, - "stmt_len": 68, - "stmt_location": 2440, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2587, - "relname": "path_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2518, - "name": "four", - "val": { - "A_Const": { - "location": 2518, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2530, - "name": "open_path", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2530, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2547, - "name": "polygon", - "val": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2563, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pclose", - }, - }, - ], - "location": 2556, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "location": 2547, - }, - }, - }, - }, - ], - "whereClause": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2612, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "isopen", - }, - }, - ], - "location": 2605, - }, - }, - }, - }, - "stmt_len": 106, - "stmt_location": 2509, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2722, - "relname": "circle_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2691, - "name": "six", - "val": { - "A_Const": { - "location": 2691, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2702, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2710, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "location": 2702, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 116, - "stmt_location": 2616, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2820, - "relname": "circle_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2786, - "name": "six", - "val": { - "A_Const": { - "location": 2786, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2797, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 8, - }, - "location": 2805, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2808, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "location": 2797, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 97, - "stmt_location": 2733, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2894, - "relname": "point_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2858, - "name": "six", - "val": { - "A_Const": { - "location": 2858, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2869, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2876, - }, - }, - { - "A_Const": { - "fval": { - "fval": "50.0", - }, - "location": 2880, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "circle", - }, - }, - ], - "location": 2869, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 72, - "stmt_location": 2831, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2944, - "relname": "box_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2913, - "name": "four", - "val": { - "A_Const": { - "location": 2913, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2925, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2932, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "circle", - }, - }, - ], - "location": 2925, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 2904, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2991, - "relname": "polygon_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2961, - "name": "two", - "val": { - "A_Const": { - "location": 2961, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2972, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2979, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "circle", - }, - }, - ], - "location": 2972, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 3013, - "name": [ - { - "String": { - "sval": "#", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3015, - }, - }, - }, - }, - "location": 3019, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 3022, - }, - }, - }, - }, - }, - }, - "stmt_len": 71, - "stmt_location": 2952, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "c1", - }, - "inh": true, - "location": 3122, - "relname": "circle_tbl", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "p1", - }, - "inh": true, - "location": 3137, - "relname": "point_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "distance", - }, - }, - ], - "location": 3193, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3208, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "area", - }, - }, - ], - "location": 3203, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Indirection": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3216, - }, - }, - "indirection": [ - { - "A_Indices": { - "uidx": { - "A_Const": { - "ival": {}, - "location": 3222, - }, - }, - }, - }, - ], - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3033, - "name": "twentyfour", - "val": { - "A_Const": { - "location": 3033, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3051, - "name": "circle", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3051, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3068, - "name": "point", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3068, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3084, - "name": "distance", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3085, - }, - }, - "location": 3091, - "name": [ - { - "String": { - "sval": "<->", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3095, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3160, - }, - }, - "location": 3166, - "name": [ - { - "String": { - "sval": "<->", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 3170, - }, - }, - }, - }, - "location": 3177, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 3179, - }, - }, - }, - }, - }, - }, - "stmt_len": 200, - "stmt_location": 3024, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/gin.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "options": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 238, - "names": [ - { - "String": { - "sval": "off", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "autovacuum_enabled", - "location": 217, - }, - }, - ], - "relation": { - "inh": true, - "location": 188, - "relname": "gin_test_tbl", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "i", - "is_local": true, - "location": 201, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 203, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 242, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "gin", - "idxname": "gin_test_idx", - "indexParams": [ - { - "IndexElem": { - "name": "i", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "on", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "fastupdate", - "location": 308, - }, - }, - { - "DefElem": { - "arg": { - "Integer": { - "ival": 4096, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "gin_pending_list_limit", - "location": 325, - }, - }, - ], - "relation": { - "inh": true, - "location": 273, - "relname": "gin_test_tbl", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 112, - "stmt_location": 243, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 369, - "relname": "gin_test_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "g", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 425, - }, - }, - { - "A_Const": { - "ival": { - "ival": 20000, - }, - "location": 428, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 409, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 389, - "val": { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 395, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 398, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "g", - }, - }, - ], - "location": 401, - }, - }, - ], - "location": 389, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 80, - "stmt_location": 356, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 450, - "relname": "gin_test_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "g", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 506, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1000, - }, - "location": 509, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 490, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 470, - "val": { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 476, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 479, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "g", - }, - }, - ], - "location": 482, - }, - }, - ], - "location": 470, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 79, - "stmt_location": 437, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 526, - "name": "many", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 549, - "sval": { - "sval": "gin_test_idx", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "gin_clean_pending_list", - }, - }, - ], - "location": 526, - }, - }, - "location": 564, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 565, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 58, - "stmt_location": 517, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 622, - "relname": "gin_test_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "g", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 678, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1000, - }, - "location": 681, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 662, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 642, - "val": { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 648, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 651, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "g", - }, - }, - ], - "location": 654, - }, - }, - ], - "location": 642, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 112, - "stmt_location": 576, - }, - }, - { - "RawStmt": { - "stmt": { - "VacuumStmt": { - "is_vacuumcmd": true, - "rels": [ - { - "VacuumRelation": { - "relation": { - "inh": true, - "location": 698, - "relname": "gin_test_tbl", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 21, - "stmt_location": 689, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 752, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 775, - "sval": { - "sval": "gin_test_idx", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "gin_clean_pending_list", - }, - }, - ], - "location": 752, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 79, - "stmt_location": 711, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 843, - "relname": "gin_test_tbl", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 862, - }, - }, - "location": 864, - "name": [ - { - "String": { - "sval": "@>", - }, - }, - ], - "rexpr": { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 873, - }, - }, - ], - "location": 867, - }, - }, - }, - }, - }, - }, - "stmt_len": 84, - "stmt_location": 791, - }, - }, - { - "RawStmt": { - "stmt": { - "VacuumStmt": { - "is_vacuumcmd": true, - "rels": [ - { - "VacuumRelation": { - "relation": { - "inh": true, - "location": 884, - "relname": "gin_test_tbl", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 20, - "stmt_location": 876, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "List": { - "items": [ - { - "DefElem": { - "arg": { - "TypeName": { - "location": 1195, - "names": [ - { - "String": { - "sval": "off", - }, - }, - ], - "typemod": -1, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "fastupdate", - "location": 1182, - }, - }, - ], - }, - }, - "subtype": "AT_SetRelOptions", - }, - }, - ], - "objtype": "OBJECT_INDEX", - "relation": { - "inh": true, - "location": 1164, - "relname": "gin_test_idx", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 302, - "stmt_location": 897, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1214, - "relname": "gin_test_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "g", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1270, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1000, - }, - "location": 1273, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 1254, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1234, - "val": { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1240, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1243, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "g", - }, - }, - ], - "location": 1246, - }, - }, - ], - "location": 1234, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 80, - "stmt_location": 1200, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1294, - "relname": "gin_test_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "g", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1350, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1000, - }, - "location": 1353, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 1334, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1314, - "val": { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1320, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 1323, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "g", - }, - }, - ], - "location": 1326, - }, - }, - ], - "location": 1314, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 79, - "stmt_location": 1281, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 1375, - "relname": "gin_test_tbl", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1394, - }, - }, - "location": 1396, - "name": [ - { - "String": { - "sval": "@>", - }, - }, - ], - "rexpr": { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1405, - }, - }, - ], - "location": 1399, - }, - }, - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 1361, - }, - }, - { - "RawStmt": { - "stmt": { - "VacuumStmt": { - "is_vacuumcmd": true, - "rels": [ - { - "VacuumRelation": { - "relation": { - "inh": true, - "location": 1416, - "relname": "gin_test_tbl", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 20, - "stmt_location": 1408, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/gist.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 167, - "relname": "gist_point_tbl", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "is_local": true, - "location": 182, - "typeName": { - "location": 185, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "p", - "is_local": true, - "location": 191, - "typeName": { - "location": 193, - "names": [ - { - "String": { - "sval": "point", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 199, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "gist", - "idxname": "gist_pointidx", - "indexParams": [ - { - "IndexElem": { - "name": "p", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 231, - "relname": "gist_point_tbl", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 59, - "stmt_location": 200, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 361, - "name": "id", - }, - }, - { - "ResTarget": { - "location": 365, - "name": "p", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 345, - "relname": "gist_point_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "g", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 424, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10000, - }, - "location": 427, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 408, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 375, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "g", - }, - }, - ], - "location": 375, - }, - }, - }, - }, - { - "ResTarget": { - "location": 385, - "val": { - "FuncCall": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "g", - }, - }, - ], - "location": 391, - }, - }, - "location": 392, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 393, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "g", - }, - }, - ], - "location": 397, - }, - }, - "location": 398, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 399, - }, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 385, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 175, - "stmt_location": 260, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 466, - "name": "id", - }, - }, - { - "ResTarget": { - "location": 470, - "name": "p", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 450, - "relname": "gist_point_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "g", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 533, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10000, - }, - "location": 536, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 517, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 480, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "g", - }, - }, - ], - "location": 480, - }, - }, - "location": 481, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 100000, - }, - "location": 482, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 490, - "val": { - "FuncCall": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "g", - }, - }, - ], - "location": 496, - }, - }, - "location": 497, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 498, - }, - }, - }, - }, - "location": 500, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 501, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "g", - }, - }, - ], - "location": 504, - }, - }, - "location": 505, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 506, - }, - }, - }, - }, - "location": 508, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 509, - }, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 490, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 108, - "stmt_location": 436, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 623, - "relname": "gist_point_tbl", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 644, - }, - }, - "location": 647, - "name": [ - { - "String": { - "sval": "%", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 649, - }, - }, - }, - }, - "location": 651, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 653, - }, - }, - }, - }, - }, - }, - "stmt_len": 109, - "stmt_location": 545, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 840, - "relname": "gist_point_tbl", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 861, - }, - }, - "location": 864, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 10000, - }, - "location": 866, - }, - }, - }, - }, - }, - }, - "stmt_len": 216, - "stmt_location": 655, - }, - }, - { - "RawStmt": { - "stmt": { - "VacuumStmt": { - "is_vacuumcmd": true, - "options": [ - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "analyze", - "location": 881, - }, - }, - ], - "rels": [ - { - "VacuumRelation": { - "relation": { - "inh": true, - "location": 889, - "relname": "gist_point_tbl", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 872, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 968, - "relname": "gist_tbl", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 978, - "typeName": { - "location": 980, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "p", - "is_local": true, - "location": 985, - "typeName": { - "location": 987, - "names": [ - { - "String": { - "sval": "point", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c", - "is_local": true, - "location": 994, - "typeName": { - "location": 996, - "names": [ - { - "String": { - "sval": "circle", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 99, - "stmt_location": 904, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1018, - "relname": "gist_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "i", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": {}, - "location": 1178, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10000, - }, - "location": 1180, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 1162, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1034, - "val": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "fval": { - "fval": "0.05", - }, - "location": 1044, - }, - }, - "location": 1048, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1049, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "fval": { - "fval": "0.05", - }, - "location": 1052, - }, - }, - "location": 1056, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1057, - }, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 1038, - }, - }, - { - "FuncCall": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "fval": { - "fval": "0.05", - }, - "location": 1067, - }, - }, - "location": 1071, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1072, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "fval": { - "fval": "0.05", - }, - "location": 1075, - }, - }, - "location": 1079, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1080, - }, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 1061, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "box", - }, - }, - ], - "location": 1034, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1092, - "val": { - "FuncCall": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "fval": { - "fval": "0.05", - }, - "location": 1098, - }, - }, - "location": 1102, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1103, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "fval": { - "fval": "0.05", - }, - "location": 1106, - }, - }, - "location": 1110, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1111, - }, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 1092, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1122, - "val": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "fval": { - "fval": "0.05", - }, - "location": 1135, - }, - }, - "location": 1139, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1140, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "fval": { - "fval": "0.05", - }, - "location": 1143, - }, - }, - "location": 1147, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1148, - }, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 1129, - }, - }, - { - "A_Const": { - "fval": { - "fval": "1.0", - }, - "location": 1152, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "circle", - }, - }, - ], - "location": 1122, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 187, - "stmt_location": 1004, - }, - }, - { - "RawStmt": { - "stmt": { - "VacuumStmt": { - "is_vacuumcmd": true, - "options": [ - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "analyze", - "location": 1201, - }, - }, - ], - "rels": [ - { - "VacuumRelation": { - "relation": { - "inh": true, - "location": 1209, - "relname": "gist_tbl", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 1192, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 1239, - "sval": { - "sval": "off", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_seqscan", - }, - }, - "stmt_len": 24, - "stmt_location": 1218, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 1266, - "sval": { - "sval": "off", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_bitmapscan", - }, - }, - "stmt_len": 26, - "stmt_location": 1243, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 1296, - "sval": { - "sval": "on", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_indexonlyscan", - }, - }, - "stmt_len": 28, - "stmt_location": 1270, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "gist", - "idxname": "gist_tbl_point_index", - "indexParams": [ - { - "IndexElem": { - "name": "p", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 1381, - "relname": "gist_tbl", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 105, - "stmt_location": 1299, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 1469, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1494, - "relname": "gist_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1487, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - ], - "location": 1487, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - ], - "location": 1509, - }, - }, - "location": 1511, - "name": [ - { - "String": { - "sval": "<@", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": {}, - "location": 1524, - }, - }, - { - "A_Const": { - "ival": {}, - "location": 1526, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 1518, - }, - }, - { - "FuncCall": { - "args": [ - { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 1536, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 1541, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 1530, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "box", - }, - }, - ], - "location": 1514, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 141, - "stmt_location": 1405, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1583, - "relname": "gist_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1576, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - ], - "location": 1576, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - ], - "location": 1598, - }, - }, - "location": 1600, - "name": [ - { - "String": { - "sval": "<@", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": {}, - "location": 1613, - }, - }, - { - "A_Const": { - "ival": {}, - "location": 1615, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 1607, - }, - }, - { - "FuncCall": { - "args": [ - { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 1625, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 1630, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 1619, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "box", - }, - }, - ], - "location": 1603, - }, - }, - }, - }, - }, - }, - "stmt_len": 88, - "stmt_location": 1547, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 1685, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1710, - "relname": "gist_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - ], - "location": 1772, - }, - }, - "location": 1774, - "name": [ - { - "String": { - "sval": "<->", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "fval": { - "fval": "0.201", - }, - "location": 1784, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.201", - }, - "location": 1791, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 1778, - }, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1703, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - ], - "location": 1703, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - ], - "location": 1725, - }, - }, - "location": 1727, - "name": [ - { - "String": { - "sval": "<@", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": {}, - "location": 1740, - }, - }, - { - "A_Const": { - "ival": {}, - "location": 1742, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 1734, - }, - }, - { - "FuncCall": { - "args": [ - { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 1752, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 1757, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 1746, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "box", - }, - }, - ], - "location": 1730, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 161, - "stmt_location": 1636, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1814, - "relname": "gist_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - ], - "location": 1876, - }, - }, - "location": 1878, - "name": [ - { - "String": { - "sval": "<->", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "fval": { - "fval": "0.201", - }, - "location": 1888, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.201", - }, - "location": 1895, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 1882, - }, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1807, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - ], - "location": 1807, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - ], - "location": 1829, - }, - }, - "location": 1831, - "name": [ - { - "String": { - "sval": "<@", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": {}, - "location": 1844, - }, - }, - { - "A_Const": { - "ival": {}, - "location": 1846, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 1838, - }, - }, - { - "FuncCall": { - "args": [ - { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 1856, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 1861, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 1850, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "box", - }, - }, - ], - "location": 1834, - }, - }, - }, - }, - }, - }, - "stmt_len": 103, - "stmt_location": 1798, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 1944, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1969, - "relname": "gist_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "fval": { - "fval": "0.101", - }, - "location": 2037, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.101", - }, - "location": 2044, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 2031, - }, - }, - "location": 2051, - "name": [ - { - "String": { - "sval": "<->", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - ], - "location": 2055, - }, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1962, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - ], - "location": 1962, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - ], - "location": 1984, - }, - }, - "location": 1986, - "name": [ - { - "String": { - "sval": "<@", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": {}, - "location": 1999, - }, - }, - { - "A_Const": { - "ival": {}, - "location": 2001, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 1993, - }, - }, - { - "FuncCall": { - "args": [ - { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 2011, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 2016, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 2005, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "box", - }, - }, - ], - "location": 1989, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 154, - "stmt_location": 1902, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2073, - "relname": "gist_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "fval": { - "fval": "0.101", - }, - "location": 2141, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.101", - }, - "location": 2148, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 2135, - }, - }, - "location": 2155, - "name": [ - { - "String": { - "sval": "<->", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - ], - "location": 2159, - }, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2066, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - ], - "location": 2066, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - ], - "location": 2088, - }, - }, - "location": 2090, - "name": [ - { - "String": { - "sval": "<@", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": {}, - "location": 2103, - }, - }, - { - "A_Const": { - "ival": {}, - "location": 2105, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 2097, - }, - }, - { - "FuncCall": { - "args": [ - { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 2115, - }, - }, - { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 2120, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 2109, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "box", - }, - }, - ], - "location": 2093, - }, - }, - }, - }, - }, - }, - "stmt_len": 103, - "stmt_location": 2057, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "gist_tbl_point_index", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_INDEX", - }, - }, - "stmt_len": 33, - "stmt_location": 2161, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "gist", - "idxname": "gist_tbl_box_index", - "indexParams": [ - { - "IndexElem": { - "name": "b", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 2273, - "relname": "gist_tbl", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 101, - "stmt_location": 2195, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 2361, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2386, - "relname": "gist_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2379, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2379, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2401, - }, - }, - "location": 2403, - "name": [ - { - "String": { - "sval": "<@", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 2416, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 2418, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 2410, - }, - }, - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 2428, - }, - }, - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 2430, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 2422, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "box", - }, - }, - ], - "location": 2406, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 136, - "stmt_location": 2297, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2470, - "relname": "gist_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2463, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2463, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2485, - }, - }, - "location": 2487, - "name": [ - { - "String": { - "sval": "<@", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 2500, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 2502, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 2494, - }, - }, - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 2512, - }, - }, - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 2514, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 2506, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "box", - }, - }, - ], - "location": 2490, - }, - }, - }, - }, - }, - }, - "stmt_len": 83, - "stmt_location": 2434, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "gist_tbl_box_index", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_INDEX", - }, - }, - "stmt_len": 31, - "stmt_location": 2518, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "gist", - "idxname": "gist_tbl_multi_index", - "indexParams": [ - { - "IndexElem": { - "name": "p", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "c", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 2737, - "relname": "gist_tbl", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 213, - "stmt_location": 2550, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 2775, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2803, - "relname": "gist_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2793, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - ], - "location": 2793, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2796, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2796, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - ], - "location": 2818, - }, - }, - "location": 2820, - "name": [ - { - "String": { - "sval": "<@", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 2833, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 2835, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 2827, - }, - }, - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 2845, - }, - }, - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 2848, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 2839, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "box", - }, - }, - ], - "location": 2823, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 87, - "stmt_location": 2764, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2891, - "relname": "gist_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2881, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2881, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2884, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - ], - "location": 2884, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2906, - }, - }, - "location": 2908, - "name": [ - { - "String": { - "sval": "<@", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "fval": { - "fval": "4.5", - }, - "location": 2921, - }, - }, - { - "A_Const": { - "fval": { - "fval": "4.5", - }, - "location": 2926, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 2915, - }, - }, - { - "FuncCall": { - "args": [ - { - "A_Const": { - "fval": { - "fval": "5.5", - }, - "location": 2938, - }, - }, - { - "A_Const": { - "fval": { - "fval": "5.5", - }, - "location": 2943, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 2932, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "box", - }, - }, - ], - "location": 2911, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - ], - "location": 2953, - }, - }, - "location": 2955, - "name": [ - { - "String": { - "sval": "<@", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 2968, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 2970, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 2962, - }, - }, - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 2980, - }, - }, - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 2983, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "point", - }, - }, - ], - "location": 2974, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "box", - }, - }, - ], - "location": 2958, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 2949, - }, - }, - }, - }, - "stmt_len": 134, - "stmt_location": 2852, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "gist_tbl_multi_index", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_INDEX", - }, - }, - "stmt_len": 33, - "stmt_location": 2987, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "enable_seqscan", - }, - }, - "stmt_len": 34, - "stmt_location": 3021, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "enable_bitmapscan", - }, - }, - "stmt_len": 24, - "stmt_location": 3056, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "enable_indexonlyscan", - }, - }, - "stmt_len": 27, - "stmt_location": 3081, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "gist_tbl", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 21, - "stmt_location": 3109, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/groupingsets.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "aliases": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "v", - }, - }, - ], - "query": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 91, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 93, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 95, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 100, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 102, - }, - }, - { - "A_Const": { - "ival": { - "ival": 11, - }, - "location": 104, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 109, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 111, - }, - }, - { - "A_Const": { - "ival": { - "ival": 12, - }, - "location": 113, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 118, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 120, - }, - }, - { - "A_Const": { - "ival": { - "ival": 13, - }, - "location": 122, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 127, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 129, - }, - }, - { - "A_Const": { - "ival": { - "ival": 14, - }, - "location": 131, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 149, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 151, - }, - }, - { - "A_Const": { - "ival": { - "ival": 15, - }, - "location": 153, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 171, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 173, - }, - }, - { - "A_Const": { - "ival": { - "ival": 16, - }, - "location": 175, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 180, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 182, - }, - }, - { - "A_Const": { - "ival": { - "ival": 17, - }, - "location": 184, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 202, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 204, - }, - }, - { - "A_Const": { - "ival": { - "ival": 18, - }, - "location": 206, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 211, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 213, - }, - }, - { - "A_Const": { - "ival": { - "ival": 19, - }, - "location": 215, - }, - }, - ], - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 63, - "relname": "gstest1", - "relpersistence": "t", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 218, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 239, - "relname": "gstest2", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 248, - "typeName": { - "location": 250, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 259, - "typeName": { - "location": 261, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c", - "is_local": true, - "location": 270, - "typeName": { - "location": 272, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "d", - "is_local": true, - "location": 281, - "typeName": { - "location": 283, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "e", - "is_local": true, - "location": 319, - "typeName": { - "location": 321, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "f", - "is_local": true, - "location": 330, - "typeName": { - "location": 332, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "g", - "is_local": true, - "location": 341, - "typeName": { - "location": 343, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "h", - "is_local": true, - "location": 352, - "typeName": { - "location": 354, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 143, - "stmt_location": 219, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 405, - "relname": "gstest3", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 414, - "typeName": { - "location": 416, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 425, - "typeName": { - "location": 427, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c", - "is_local": true, - "location": 436, - "typeName": { - "location": 438, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "d", - "is_local": true, - "location": 447, - "typeName": { - "location": 449, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 94, - "stmt_location": 363, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 491, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 479, - "relname": "gstest3", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 48, - "stmt_location": 458, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 527, - "relname": "gstest_empty", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 541, - "typeName": { - "location": 543, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 552, - "typeName": { - "location": 554, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "v", - "is_local": true, - "location": 563, - "typeName": { - "location": 565, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 66, - "stmt_location": 507, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "gstest_data", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " - begin - return query select v, i from generate_series(1,3) i; - end; - ", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 670, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 762, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 606, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "v", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 621, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_OUT", - "name": "a", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 636, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_OUT", - "name": "b", - }, - }, - ], - "returnType": { - "location": 661, - "names": [ - { - "String": { - "sval": "record", - }, - }, - ], - "setof": true, - "typemod": -1, - }, - }, - }, - "stmt_len": 204, - "stmt_location": 574, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 987, - "relname": "gstest1", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1012, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1014, - }, - }, - ], - "kind": "GROUPING_SET_ROLLUP", - "location": 1004, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 934, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 934, - }, - }, - }, - }, - { - "ResTarget": { - "location": 937, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 937, - }, - }, - }, - }, - { - "ResTarget": { - "location": 940, - "val": { - "GroupingFunc": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 949, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 951, - }, - }, - ], - "location": 940, - }, - }, - }, - }, - { - "ResTarget": { - "location": 955, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 959, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 955, - }, - }, - }, - }, - { - "ResTarget": { - "location": 963, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 963, - }, - }, - }, - }, - { - "ResTarget": { - "location": 973, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 977, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 973, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 237, - "stmt_location": 779, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1078, - "relname": "gstest1", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1103, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1105, - }, - }, - ], - "kind": "GROUPING_SET_ROLLUP", - "location": 1095, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1117, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1119, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1025, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1025, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1028, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1028, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1031, - "val": { - "GroupingFunc": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1040, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1042, - }, - }, - ], - "location": 1031, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1046, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 1050, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 1046, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1054, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 1054, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1064, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 1068, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 1064, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 103, - "stmt_location": 1017, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1182, - "relname": "gstest1", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1207, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1209, - }, - }, - ], - "kind": "GROUPING_SET_ROLLUP", - "location": 1199, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1221, - }, - }, - "sortby_dir": "SORTBY_DESC", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1229, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1129, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1129, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1132, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1132, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1135, - "val": { - "GroupingFunc": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1144, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1146, - }, - }, - ], - "location": 1135, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1150, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 1154, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 1150, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1158, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 1158, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1168, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 1172, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 1168, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 109, - "stmt_location": 1121, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1292, - "relname": "gstest1", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1317, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1319, - }, - }, - ], - "kind": "GROUPING_SET_ROLLUP", - "location": 1309, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "CoalesceExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1340, - }, - }, - { - "A_Const": { - "ival": {}, - "location": 1342, - }, - }, - ], - "location": 1331, - }, - }, - "location": 1344, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "CoalesceExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1354, - }, - }, - { - "A_Const": { - "ival": {}, - "location": 1356, - }, - }, - ], - "location": 1345, - }, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1239, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1239, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1242, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1242, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1245, - "val": { - "GroupingFunc": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1254, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1256, - }, - }, - ], - "location": 1245, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1260, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 1264, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 1260, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1268, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 1268, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1278, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 1282, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 1278, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 127, - "stmt_location": 1231, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1615, - "relname": "gstest1", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1640, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1642, - }, - }, - ], - "kind": "GROUPING_SET_ROLLUP", - "location": 1632, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1654, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1656, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1401, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1401, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1404, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1404, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1407, - "val": { - "GroupingFunc": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1416, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1418, - }, - }, - ], - "location": 1407, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1429, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 1450, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 1439, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_agg", - }, - }, - ], - "location": 1429, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1461, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 1494, - }, - }, - "sortby_dir": "SORTBY_DESC", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "args": [ - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 1472, - }, - }, - "location": 1473, - "typeName": { - "location": 1475, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 1481, - "sval": { - "sval": ":", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "string_agg", - }, - }, - ], - "location": 1461, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1510, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 1554, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 1526, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "percentile_disc", - }, - }, - ], - "location": 1510, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1565, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1601, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1603, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 1605, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1570, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1572, - }, - }, - { - "A_Const": { - "ival": { - "ival": 12, - }, - "location": 1574, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "rank", - }, - }, - ], - "location": 1565, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 298, - "stmt_location": 1359, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1875, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1877, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1881, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 1883, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1887, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 1889, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 1893, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1895, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 1899, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1901, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1930, - }, - }, - ], - "kind": "GROUPING_SET_ROLLUP", - "location": 1922, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1942, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1723, - "val": { - "GroupingFunc": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1732, - }, - }, - ], - "location": 1723, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1736, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1736, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1739, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1749, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_agg", - }, - }, - ], - "location": 1739, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1760, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1791, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_FIRST", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1765, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "rank", - }, - }, - ], - "location": 1760, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1814, - "val": { - "FuncCall": { - "agg_order": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1845, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_LAST", - }, - }, - ], - "agg_within_group": true, - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1819, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "rank", - }, - }, - ], - "location": 1814, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 285, - "stmt_location": 1658, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2047, - "relname": "gstest2", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2072, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2074, - }, - }, - ], - "kind": "GROUPING_SET_ROLLUP", - "location": 2064, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "rsum", - }, - }, - ], - "location": 2086, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2092, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2095, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1986, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1986, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1989, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1989, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1992, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 1996, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 1992, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2000, - "name": "rsum", - "val": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2008, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 2004, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 2000, - "over": { - "frameOptions": 1058, - "location": 2017, - "orderClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2027, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2029, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 152, - "stmt_location": 1944, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2148, - "relname": "gstest2", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "GroupingSet": { - "kind": "GROUPING_SET_EMPTY", - "location": 2181, - }, - }, - { - "GroupingSet": { - "content": [ - { - "GroupingSet": { - "kind": "GROUPING_SET_EMPTY", - "location": 2199, - }, - }, - { - "GroupingSet": { - "content": [ - { - "GroupingSet": { - "kind": "GROUPING_SET_EMPTY", - "location": 2217, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 2203, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 2185, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 2167, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2234, - }, - }, - "sortby_dir": "SORTBY_DESC", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2136, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2140, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 2136, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 143, - "stmt_location": 2097, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2261, - "relname": "gstest2", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "GroupingSet": { - "kind": "GROUPING_SET_EMPTY", - "location": 2294, - }, - }, - { - "GroupingSet": { - "content": [ - { - "GroupingSet": { - "kind": "GROUPING_SET_EMPTY", - "location": 2312, - }, - }, - { - "GroupingSet": { - "content": [ - { - "RowExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2332, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2335, - }, - }, - ], - "location": 2331, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 2316, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 2298, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 2280, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2353, - }, - }, - "sortby_dir": "SORTBY_DESC", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2249, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2253, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 2249, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 118, - "stmt_location": 2241, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2380, - "relname": "gstest2", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "GroupingSet": { - "content": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2434, - }, - }, - ], - "kind": "GROUPING_SET_ROLLUP", - "location": 2427, - }, - }, - { - "GroupingSet": { - "content": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2457, - }, - }, - ], - "kind": "GROUPING_SET_CUBE", - "location": 2452, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 2438, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 2413, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 2399, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2474, - }, - }, - "sortby_dir": "SORTBY_DESC", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2368, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2372, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 2368, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 120, - "stmt_location": 2360, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2501, - "relname": "gstest2", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2534, - }, - }, - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2551, - }, - }, - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2559, - }, - }, - ], - "kind": "GROUPING_SET_CUBE", - "location": 2554, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 2537, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 2520, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2575, - }, - }, - "sortby_dir": "SORTBY_DESC", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2489, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2493, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 2489, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 100, - "stmt_location": 2481, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2602, - "relname": "gstest2", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "GroupingSet": { - "content": [ - { - "RowExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2650, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2654, - }, - }, - ], - "location": 2649, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 2635, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 2621, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2671, - }, - }, - "sortby_dir": "SORTBY_DESC", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2590, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2594, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 2590, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 95, - "stmt_location": 2582, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2698, - "relname": "gstest2", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "GroupingSet": { - "content": [ - { - "RowExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2746, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2749, - }, - }, - ], - "location": 2745, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 2731, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 2717, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2765, - }, - }, - "sortby_dir": "SORTBY_DESC", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2686, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2690, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 2686, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 93, - "stmt_location": 2678, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2792, - "relname": "gstest2", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2839, - }, - }, - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2856, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 2842, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2860, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 2825, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 2811, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2875, - }, - }, - "sortby_dir": "SORTBY_DESC", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2780, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2784, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 2780, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 109, - "stmt_location": 2772, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2902, - "relname": "gstest2", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2949, - }, - }, - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2966, - }, - }, - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2983, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 2969, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2989, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2994, - }, - }, - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3011, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 2997, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3016, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 2952, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3021, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 2935, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 2921, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3036, - }, - }, - "sortby_dir": "SORTBY_DESC", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2890, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2894, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 2890, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 160, - "stmt_location": 2882, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3063, - "relname": "gstest2", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "RowExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3097, - }, - }, - { - "RowExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3100, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3102, - }, - }, - ], - "location": 3099, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - ], - "location": 3096, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - { - "GroupingSet": { - "content": [ - { - "RowExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3122, - }, - }, - { - "RowExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3125, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3127, - }, - }, - ], - "location": 3124, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - ], - "location": 3121, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3131, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 3107, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 3082, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3146, - }, - }, - "sortby_dir": "SORTBY_DESC", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3051, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 3055, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 3051, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 109, - "stmt_location": 3043, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3246, - "relname": "gstest_empty", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "RowExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3284, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3286, - }, - }, - ], - "location": 3283, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3289, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 3268, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3218, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3218, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3221, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3221, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3224, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 3228, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 3224, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3232, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 3232, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 138, - "stmt_location": 3153, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3328, - "relname": "gstest_empty", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "RowExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3366, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3368, - }, - }, - ], - "location": 3365, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - { - "GroupingSet": { - "kind": "GROUPING_SET_EMPTY", - "location": 3371, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 3350, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3300, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3300, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3303, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3303, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3306, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 3310, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 3306, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3314, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 3314, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 82, - "stmt_location": 3292, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3411, - "relname": "gstest_empty", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "RowExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3449, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3451, - }, - }, - ], - "location": 3448, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - { - "GroupingSet": { - "kind": "GROUPING_SET_EMPTY", - "location": 3454, - }, - }, - { - "GroupingSet": { - "kind": "GROUPING_SET_EMPTY", - "location": 3457, - }, - }, - { - "GroupingSet": { - "kind": "GROUPING_SET_EMPTY", - "location": 3460, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 3433, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3383, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3383, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3386, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3386, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3389, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 3393, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 3389, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3397, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 3397, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 88, - "stmt_location": 3375, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3494, - "relname": "gstest_empty", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "GroupingSet": { - "kind": "GROUPING_SET_EMPTY", - "location": 3531, - }, - }, - { - "GroupingSet": { - "kind": "GROUPING_SET_EMPTY", - "location": 3534, - }, - }, - { - "GroupingSet": { - "kind": "GROUPING_SET_EMPTY", - "location": 3537, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 3516, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3472, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 3476, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 3472, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3480, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 3480, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 76, - "stmt_location": 3464, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "t1", - }, - "inh": true, - "location": 3645, - "relname": "gstest_empty", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "t2", - }, - "inh": true, - "location": 3662, - "relname": "gstest_empty", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "RowExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3704, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3709, - }, - }, - ], - "location": 3703, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - { - "GroupingSet": { - "kind": "GROUPING_SET_EMPTY", - "location": 3715, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 3688, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3608, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3608, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3614, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3614, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3620, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "v", - }, - }, - ], - "location": 3624, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 3620, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3631, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 3631, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 177, - "stmt_location": 3541, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "t1", - }, - "inh": true, - "location": 3845, - "relname": "gstest1", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "t2", - }, - "inh": true, - "location": 3857, - "relname": "gstest2", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "RowExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3894, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3900, - }, - }, - ], - "location": 3893, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - { - "GroupingSet": { - "kind": "GROUPING_SET_EMPTY", - "location": 3907, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 3878, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3783, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3783, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3789, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3789, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3795, - "val": { - "GroupingFunc": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3804, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3810, - }, - }, - ], - "location": 3795, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3817, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "v", - }, - }, - ], - "location": 3821, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 3817, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3828, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3832, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 3828, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 191, - "stmt_location": 3719, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "t1", - }, - "inh": true, - "location": 3982, - "relname": "gstest1", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4013, - }, - }, - "location": 4017, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4018, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "t2", - }, - "inh": true, - "location": 3998, - "relname": "gstest2", - "relpersistence": "p", - }, - }, - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "RowExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4050, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4056, - }, - }, - ], - "location": 4049, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - { - "GroupingSet": { - "kind": "GROUPING_SET_EMPTY", - "location": 4063, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 4034, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3920, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3920, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3926, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3926, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3932, - "val": { - "GroupingFunc": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3941, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3947, - }, - }, - ], - "location": 3932, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3954, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "v", - }, - }, - ], - "location": 3958, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 3954, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3965, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3969, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 3965, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 155, - "stmt_location": 3911, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "t1", - }, - "inh": true, - "location": 4126, - "relname": "gstest1", - "relpersistence": "p", - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "t2", - }, - "inh": true, - "location": 4142, - "relname": "gstest2", - "relpersistence": "p", - }, - }, - "usingClause": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "RowExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4191, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4194, - }, - }, - ], - "location": 4190, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - { - "GroupingSet": { - "kind": "GROUPING_SET_EMPTY", - "location": 4198, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 4175, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4076, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4076, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4079, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4079, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4082, - "val": { - "GroupingFunc": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4091, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4094, - }, - }, - ], - "location": 4082, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4098, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "v", - }, - }, - ], - "location": 4102, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 4098, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4109, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - "location": 4113, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 4109, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 134, - "stmt_location": 4067, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4297, - "relname": "gstest3", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "RowExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4331, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4333, - }, - }, - ], - "location": 4330, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - { - "RowExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4338, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 4340, - }, - }, - ], - "location": 4337, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 4315, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4268, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4268, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4271, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - ], - "location": 4271, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4274, - "val": { - "GroupingFunc": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4283, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4285, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 4287, - }, - }, - ], - "location": 4274, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 141, - "stmt_location": 4202, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4408, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4412, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - { - "RangeFunction": { - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - { - "String": { - "sval": "x", - }, - }, - ], - "location": 4434, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "gstest_data", - }, - }, - ], - "location": 4422, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4457, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4459, - }, - }, - ], - "kind": "GROUPING_SET_ROLLUP", - "location": 4449, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4377, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4377, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4380, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4380, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4383, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - { - "String": { - "sval": "x", - }, - }, - ], - "location": 4387, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 4383, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 117, - "stmt_location": 4344, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4489, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4493, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - { - "RangeSubselect": { - "alias": { - "aliasname": "s", - }, - "lateral": true, - "subquery": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - { - "String": { - "sval": "x", - }, - }, - ], - "location": 4558, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "gstest_data", - }, - }, - ], - "location": 4546, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4580, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4582, - }, - }, - ], - "kind": "GROUPING_SET_ROLLUP", - "location": 4572, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4526, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4526, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4529, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4529, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4532, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - { - "String": { - "sval": "x", - }, - }, - ], - "location": 4536, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 4532, - }, - }, - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4471, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 4471, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 125, - "stmt_location": 4462, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 4658, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4696, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "kind": "GROUPING_SET_EMPTY", - "location": 4711, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4678, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 4682, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 4678, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 125, - "stmt_location": 4588, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4838, - "relname": "gstest2", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "RowExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4864, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4866, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 4868, - }, - }, - ], - "location": 4863, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - { - "RowExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 4872, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - ], - "location": 4874, - }, - }, - ], - "location": 4871, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - ], - "kind": "GROUPING_SET_ROLLUP", - "location": 4855, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4785, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4785, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4788, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4788, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4791, - "val": { - "GroupingFunc": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4800, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4802, - }, - }, - ], - "location": 4791, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4806, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 4810, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 4806, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4814, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 4814, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4824, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 4828, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 4824, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 4763, - "relname": "gstest_view", - "relpersistence": "p", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 163, - "stmt_location": 4714, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4887, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4902, - "sval": { - "sval": "gstest_view", - }, - }, - }, - "location": 4915, - "typeName": { - "location": 4917, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 4927, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_get_viewdef", - }, - }, - ], - "location": 4887, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 4878, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v3", - "colnames": [ - { - "String": { - "sval": "e", - }, - }, - { - "String": { - "sval": "f", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 5104, - }, - }, - { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 5106, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "e", - }, - }, - ], - "location": 5134, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - ], - "location": 5136, - }, - }, - ], - "kind": "GROUPING_SET_ROLLUP", - "location": 5127, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4992, - "val": { - "SubLink": { - "location": 4992, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v1", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5061, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5063, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "groupClause": [ - { - "RowExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5085, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5087, - }, - }, - ], - "location": 5084, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5000, - "val": { - "SubLink": { - "location": 5000, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v2", - "colnames": [ - { - "String": { - "sval": "c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5036, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5008, - "val": { - "GroupingFunc": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5017, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5019, - }, - }, - ], - "location": 5008, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 205, - "stmt_location": 4933, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v3", - "colnames": [ - { - "String": { - "sval": "e", - }, - }, - { - "String": { - "sval": "f", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 5258, - }, - }, - { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 5260, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "e", - }, - }, - ], - "location": 5288, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - ], - "location": 5290, - }, - }, - ], - "kind": "GROUPING_SET_ROLLUP", - "location": 5281, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5146, - "val": { - "SubLink": { - "location": 5146, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v1", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5215, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5217, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "groupClause": [ - { - "RowExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5239, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5241, - }, - }, - ], - "location": 5238, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5154, - "val": { - "SubLink": { - "location": 5154, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v2", - "colnames": [ - { - "String": { - "sval": "c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5190, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5162, - "val": { - "GroupingFunc": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "e", - }, - }, - ], - "location": 5171, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - ], - "location": 5173, - }, - }, - ], - "location": 5162, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 153, - "stmt_location": 5139, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v3", - "colnames": [ - { - "String": { - "sval": "e", - }, - }, - { - "String": { - "sval": "f", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 5421, - }, - }, - { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 5423, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "e", - }, - }, - ], - "location": 5451, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - ], - "location": 5453, - }, - }, - ], - "kind": "GROUPING_SET_ROLLUP", - "location": 5444, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5300, - "val": { - "SubLink": { - "location": 5300, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v1", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5378, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5380, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "groupClause": [ - { - "RowExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5402, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5404, - }, - }, - ], - "location": 5401, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5308, - "val": { - "SubLink": { - "location": 5308, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v2", - "colnames": [ - { - "String": { - "sval": "c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5342, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 5361, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5316, - "val": { - "GroupingFunc": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 5325, - }, - }, - ], - "location": 5316, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 162, - "stmt_location": 5293, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5511, - "relname": "gstest2", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5535, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5537, - }, - }, - ], - "kind": "GROUPING_SET_ROLLUP", - "location": 5528, - }, - }, - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 5554, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - ], - "location": 5556, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 5540, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5495, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5495, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5498, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5498, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5501, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 5501, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5504, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - ], - "location": 5504, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 102, - "stmt_location": 5456, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5586, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5588, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5592, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 5594, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5614, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5616, - }, - }, - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5633, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 5619, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5567, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5567, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5570, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5570, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 76, - "stmt_location": 5559, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5730, - "relname": "gstest1", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "RowExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5763, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5765, - }, - }, - ], - "location": 5762, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - { - "RowExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5769, - }, - }, - "location": 5770, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5771, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5773, - }, - }, - "location": 5774, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5775, - }, - }, - }, - }, - ], - "location": 5768, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - { - "RowExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5779, - }, - }, - "location": 5780, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5781, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5783, - }, - }, - "location": 5784, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5785, - }, - }, - }, - }, - ], - "location": 5778, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 5747, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5677, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5677, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5680, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5680, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5683, - "val": { - "GroupingFunc": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5692, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5694, - }, - }, - ], - "location": 5683, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5698, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 5702, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 5698, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5706, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 5706, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5716, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - ], - "location": 5720, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 5716, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 152, - "stmt_location": 5636, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v3", - "colnames": [ - { - "String": { - "sval": "e", - }, - }, - { - "String": { - "sval": "f", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 5908, - }, - }, - { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 5910, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "e", - }, - }, - ], - "location": 5939, - }, - }, - "location": 5940, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5941, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - ], - "location": 5945, - }, - }, - "location": 5946, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5947, - }, - }, - }, - }, - ], - "kind": "GROUPING_SET_ROLLUP", - "location": 5931, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5796, - "val": { - "SubLink": { - "location": 5796, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v1", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5865, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5867, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "groupClause": [ - { - "RowExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5889, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5891, - }, - }, - ], - "location": 5888, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5804, - "val": { - "SubLink": { - "location": 5804, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v2", - "colnames": [ - { - "String": { - "sval": "c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5840, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5812, - "val": { - "GroupingFunc": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5821, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5823, - }, - }, - ], - "location": 5812, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 161, - "stmt_location": 5789, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v3", - "colnames": [ - { - "String": { - "sval": "e", - }, - }, - { - "String": { - "sval": "f", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 6070, - }, - }, - { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 6072, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "e", - }, - }, - ], - "location": 6099, - }, - }, - "location": 6100, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6101, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - ], - "location": 6105, - }, - }, - "location": 6106, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6107, - }, - }, - }, - }, - ], - "kind": "GROUPING_SET_CUBE", - "location": 6093, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "e", - }, - }, - ], - "location": 6121, - }, - }, - "location": 6122, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6123, - }, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - ], - "location": 6127, - }, - }, - "location": 6128, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6129, - }, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 5958, - "val": { - "SubLink": { - "location": 5958, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v1", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6027, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6029, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "groupClause": [ - { - "RowExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6051, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6053, - }, - }, - ], - "location": 6050, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5966, - "val": { - "SubLink": { - "location": 5966, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v2", - "colnames": [ - { - "String": { - "sval": "c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6002, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5974, - "val": { - "GroupingFunc": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5983, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5985, - }, - }, - ], - "location": 5974, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 180, - "stmt_location": 5951, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6201, - "relname": "gstest2", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6224, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6226, - }, - }, - ], - "kind": "GROUPING_SET_CUBE", - "location": 6218, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "rsum", - }, - }, - ], - "location": 6238, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6244, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6247, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 6140, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6140, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6143, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6143, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6146, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 6150, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 6146, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6154, - "name": "rsum", - "val": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 6162, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 6158, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 6154, - "over": { - "frameOptions": 1058, - "location": 6171, - "orderClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6181, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6183, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 116, - "stmt_location": 6132, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6284, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6286, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 6288, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6293, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6295, - }, - }, - { - "A_Const": { - "ival": { - "ival": 11, - }, - "location": 6297, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6302, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6304, - }, - }, - { - "A_Const": { - "ival": { - "ival": 12, - }, - "location": 6306, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6311, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6313, - }, - }, - { - "A_Const": { - "ival": { - "ival": 13, - }, - "location": 6315, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6320, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 6322, - }, - }, - { - "A_Const": { - "ival": { - "ival": 14, - }, - "location": 6324, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6329, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 6331, - }, - }, - { - "A_Const": { - "ival": { - "ival": 15, - }, - "location": 6333, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 6338, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 6340, - }, - }, - { - "A_Const": { - "ival": { - "ival": 16, - }, - "location": 6342, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 6347, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 6349, - }, - }, - { - "A_Const": { - "ival": { - "ival": 17, - }, - "location": 6351, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 6356, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6358, - }, - }, - { - "A_Const": { - "ival": { - "ival": 18, - }, - "location": 6360, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 6365, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6367, - }, - }, - { - "A_Const": { - "ival": { - "ival": 19, - }, - "location": 6369, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6400, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6402, - }, - }, - ], - "kind": "GROUPING_SET_ROLLUP", - "location": 6392, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6257, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6257, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6260, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6260, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6263, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 6267, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 6263, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 155, - "stmt_location": 6249, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6444, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6448, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - { - "RangeFunction": { - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - { - "String": { - "sval": "x", - }, - }, - ], - "location": 6470, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "gstest_data", - }, - }, - ], - "location": 6458, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6491, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6493, - }, - }, - ], - "kind": "GROUPING_SET_CUBE", - "location": 6485, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6505, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6507, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 6413, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6413, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6416, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6416, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6419, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - { - "String": { - "sval": "x", - }, - }, - ], - "location": 6423, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 6419, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 103, - "stmt_location": 6405, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6609, - "relname": "gstest2", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6626, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6628, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6568, - "val": { - "SubLink": { - "location": 6568, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6595, - "relname": "gstest2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6576, - "val": { - "GroupingFunc": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6585, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6587, - }, - }, - ], - "location": 6576, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 120, - "stmt_location": 6509, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6684, - "relname": "gstest2", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6723, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6725, - }, - }, - ], - "kind": "GROUPING_SET_ROLLUP", - "location": 6716, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6728, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 6701, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6656, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 6656, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6659, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 6659, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6662, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 6666, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 6662, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6670, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 6670, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 100, - "stmt_location": 6630, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 6787, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "RowExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 6818, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 6822, - }, - }, - ], - "location": 6817, - "row_format": "COERCE_IMPLICIT_CAST", - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 6829, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 6803, - }, - }, - ], - "havingClause": { - "SubLink": { - "location": 6842, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 6864, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6857, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6857, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "agg_distinct": true, - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "four", - }, - }, - ], - "location": 6890, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 6877, - }, - }, - "location": 6898, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "four", - }, - }, - ], - "location": 6900, - }, - }, - }, - }, - }, - }, - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6758, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 6758, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6763, - "val": { - "FuncCall": { - "agg_distinct": true, - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 6776, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 6763, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 176, - "stmt_location": 6731, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7017, - "relname": "gstest2", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 7041, - }, - }, - ], - "kind": "GROUPING_SET_ROLLUP", - "location": 7034, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 7053, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 7001, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 7001, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7003, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 7003, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 146, - "stmt_location": 6908, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7079, - "relname": "gstest2", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 7103, - }, - }, - ], - "kind": "GROUPING_SET_ROLLUP", - "location": 7096, - }, - }, - ], - "havingClause": { - "A_Expr": { - "kind": "AEXPR_DISTINCT", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 7113, - }, - }, - "location": 7115, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 7132, - }, - }, - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 7143, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 7063, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 7063, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7065, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 7065, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 89, - "stmt_location": 7055, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 7155, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7191, - "relname": "gstest2", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 7215, - }, - }, - ], - "kind": "GROUPING_SET_ROLLUP", - "location": 7208, - }, - }, - ], - "havingClause": { - "A_Expr": { - "kind": "AEXPR_DISTINCT", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 7225, - }, - }, - "location": 7227, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 7244, - }, - }, - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 7255, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 7175, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 7175, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7177, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 7177, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 111, - "stmt_location": 7145, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "boolval": {}, - "location": 7341, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 7349, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - "location": 7370, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 7266, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - "location": 7266, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7271, - "val": { - "SubLink": { - "location": 7271, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7293, - "relname": "gstest2", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "kind": "GROUPING_SET_EMPTY", - "location": 7310, - }, - }, - ], - "havingClause": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - "location": 7320, - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7279, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 7279, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 116, - "stmt_location": 7257, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 7384, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "c", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "boolval": {}, - "location": 7481, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 7489, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - "location": 7510, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 7404, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - "location": 7404, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7409, - "val": { - "SubLink": { - "location": 7409, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7431, - "relname": "gstest2", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "kind": "GROUPING_SET_EMPTY", - "location": 7448, - }, - }, - ], - "havingClause": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - "location": 7458, - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7417, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 7417, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 139, - "stmt_location": 7374, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7579, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 7607, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 7593, - }, - }, - ], - "havingClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "GroupingFunc": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 7628, - }, - }, - ], - "location": 7619, - }, - }, - "location": 7633, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 7636, - }, - }, - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 7647, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 7649, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 7555, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 7555, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7560, - "val": { - "GroupingFunc": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 7569, - }, - }, - ], - "location": 7560, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 136, - "stmt_location": 7514, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7683, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 7711, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 7716, - }, - }, - ], - "kind": "GROUPING_SET_SETS", - "location": 7697, - }, - }, - ], - "havingClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "GroupingFunc": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 7738, - }, - }, - ], - "location": 7729, - }, - }, - "location": 7743, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 7745, - }, - }, - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 7756, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 7758, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 7659, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 7659, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7664, - "val": { - "GroupingFunc": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 7673, - }, - }, - ], - "location": 7664, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 108, - "stmt_location": 7651, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7792, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 7813, - }, - }, - ], - "kind": "GROUPING_SET_ROLLUP", - "location": 7806, - }, - }, - ], - "havingClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "GroupingFunc": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 7834, - }, - }, - ], - "location": 7825, - }, - }, - "location": 7839, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 7841, - }, - }, - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 7852, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 7854, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 7768, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 7768, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7773, - "val": { - "GroupingFunc": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 7782, - }, - }, - ], - "location": 7773, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 95, - "stmt_location": 7760, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7888, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 7907, - }, - }, - ], - "kind": "GROUPING_SET_CUBE", - "location": 7902, - }, - }, - ], - "havingClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "GroupingFunc": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 7928, - }, - }, - ], - "location": 7919, - }, - }, - "location": 7933, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 7935, - }, - }, - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 7946, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 7948, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 7864, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 7864, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7869, - "val": { - "GroupingFunc": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 7878, - }, - }, - ], - "location": 7869, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 93, - "stmt_location": 7856, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7982, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 7997, - }, - }, - ], - "havingClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "GroupingFunc": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 8018, - }, - }, - ], - "location": 8009, - }, - }, - "location": 8023, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 8026, - }, - }, - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 8037, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 8039, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 7958, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 7958, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7963, - "val": { - "GroupingFunc": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 7972, - }, - }, - ], - "location": 7963, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 90, - "stmt_location": 7950, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 8131, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 8154, - }, - }, - ], - "kind": "GROUPING_SET_ROLLUP", - "location": 8147, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8068, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 8068, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8073, - "val": { - "FuncCall": { - "agg_distinct": true, - "agg_filter": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 8106, - }, - }, - "location": 8110, - "typeName": { - "location": 8112, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 8117, - "name": [ - { - "String": { - "sval": "~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 8119, - "sval": { - "sval": "123", - }, - }, - }, - }, - }, - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 8086, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 8073, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 117, - "stmt_location": 8041, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_LEFT", - "larg": { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 8205, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 8209, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "quals": { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 8309, - }, - }, - "rarg": { - "RangeSubselect": { - "alias": { - "aliasname": "s", - }, - "lateral": true, - "subquery": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8274, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 8293, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 8298, - }, - }, - ], - "kind": "GROUPING_SET_CUBE", - "location": 8288, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8244, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 8244, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8249, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 8249, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8255, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 8255, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8260, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 8260, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 8323, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 8327, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 8332, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 8189, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 8189, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 176, - "stmt_location": 8159, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "v", - "colnames": [ - { - "String": { - "sval": "a", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 8474, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 8478, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8344, - "val": { - "SubLink": { - "location": 8344, - "subLinkType": "ARRAY_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "s1", - }, - "subquery": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8408, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "two", - }, - }, - ], - "location": 8427, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 8431, - }, - }, - ], - "kind": "GROUPING_SET_CUBE", - "location": 8422, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "two", - }, - }, - ], - "location": 8446, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 8450, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 8384, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "two", - }, - }, - ], - "location": 8384, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8388, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 8388, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8394, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 8394, - }, - }, - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8357, - "val": { - "RowExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "v", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 8361, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "s1", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 8365, - }, - }, - ], - "location": 8357, - "row_format": "COERCE_EXPLICIT_CALL", - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 150, - "stmt_location": 8336, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8538, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "two", - }, - }, - ], - "location": 8552, - }, - }, - { - "GroupingSet": { - "content": [ - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 8564, - }, - }, - "location": 8568, - "typeName": { - "location": 8570, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "kind": "GROUPING_SET_ROLLUP", - "location": 8557, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 8585, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 8524, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 8528, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 8524, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 99, - "stmt_location": 8487, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8609, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "GroupingSet": { - "content": [ - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "four", - }, - }, - ], - "location": 8630, - }, - }, - "location": 8634, - "typeName": { - "location": 8636, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "kind": "GROUPING_SET_ROLLUP", - "location": 8623, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "two", - }, - }, - ], - "location": 8643, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 8656, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 8595, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 8599, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "sum", - }, - }, - ], - "location": 8595, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 70, - "stmt_location": 8587, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/guc.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 151, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 40, - }, - "location": 211, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 61, - "stmt_location": 152, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 231, - "sval": { - "sval": "ISO, YMD", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "datestyle", - }, - }, - "stmt_len": 27, - "stmt_location": 214, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 23, - "stmt_location": 242, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 15, - "stmt_location": 266, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 290, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 290, - "sval": { - "sval": "2006-08-13 12:34:56", - }, - }, - }, - "location": 311, - "typeName": { - "location": 313, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 282, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 50, - }, - "location": 410, - }, - }, - ], - "is_local": true, - "kind": "VAR_SET_VALUE", - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 87, - "stmt_location": 325, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 23, - "stmt_location": 413, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 460, - "sval": { - "sval": "SQL", - }, - }, - }, - ], - "is_local": true, - "kind": "VAR_SET_VALUE", - "name": "datestyle", - }, - }, - "stmt_len": 28, - "stmt_location": 437, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 15, - "stmt_location": 466, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 490, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 490, - "sval": { - "sval": "2006-08-13 12:34:56", - }, - }, - }, - "location": 511, - "typeName": { - "location": 513, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 482, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 54, - "stmt_location": 525, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 50, - }, - "location": 612, - }, - }, - ], - "is_local": true, - "kind": "VAR_SET_VALUE", - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 34, - "stmt_location": 580, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 23, - "stmt_location": 615, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 662, - "sval": { - "sval": "SQL", - }, - }, - }, - ], - "is_local": true, - "kind": "VAR_SET_VALUE", - "name": "datestyle", - }, - }, - "stmt_len": 28, - "stmt_location": 639, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 15, - "stmt_location": 668, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 692, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 692, - "sval": { - "sval": "2006-08-13 12:34:56", - }, - }, - }, - "location": 713, - "typeName": { - "location": 715, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 684, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 7, - "stmt_location": 727, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 23, - "stmt_location": 735, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 15, - "stmt_location": 759, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 783, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 783, - "sval": { - "sval": "2006-08-13 12:34:56", - }, - }, - }, - "location": 804, - "typeName": { - "location": 806, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 775, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 48, - "stmt_location": 818, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 60, - }, - "location": 893, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 28, - "stmt_location": 867, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 23, - "stmt_location": 896, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 937, - "sval": { - "sval": "German", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "datestyle", - }, - }, - "stmt_len": 25, - "stmt_location": 920, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 15, - "stmt_location": 946, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 970, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 970, - "sval": { - "sval": "2006-08-13 12:34:56", - }, - }, - }, - "location": 991, - "typeName": { - "location": 993, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 962, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 1005, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 23, - "stmt_location": 1015, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 15, - "stmt_location": 1039, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1063, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1063, - "sval": { - "sval": "2006-08-13 12:34:56", - }, - }, - }, - "location": 1084, - "typeName": { - "location": 1086, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 1055, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 42, - "stmt_location": 1098, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 70, - }, - "location": 1167, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 28, - "stmt_location": 1141, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 1187, - "sval": { - "sval": "MDY", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "datestyle", - }, - }, - "stmt_len": 22, - "stmt_location": 1170, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 15, - "stmt_location": 1193, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1217, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1217, - "sval": { - "sval": "2006-08-13 12:34:56", - }, - }, - }, - "location": 1238, - "typeName": { - "location": 1240, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 1209, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_SAVEPOINT", - "location": 1263, - "savepoint_name": "first_sp", - }, - }, - "stmt_len": 19, - "stmt_location": 1252, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 80, - }, - "location": 1298, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 28, - "stmt_location": 1272, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 23, - "stmt_location": 1301, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 1342, - "sval": { - "sval": "German, DMY", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "datestyle", - }, - }, - "stmt_len": 30, - "stmt_location": 1325, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 15, - "stmt_location": 1356, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1380, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1380, - "sval": { - "sval": "2006-08-13 12:34:56", - }, - }, - }, - "location": 1401, - "typeName": { - "location": 1403, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 1372, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK_TO", - "location": 1428, - "savepoint_name": "first_sp", - }, - }, - "stmt_len": 21, - "stmt_location": 1415, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 15, - "stmt_location": 1437, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1461, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1461, - "sval": { - "sval": "2006-08-13 12:34:56", - }, - }, - }, - "location": 1482, - "typeName": { - "location": 1484, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 1453, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_SAVEPOINT", - "location": 1507, - "savepoint_name": "second_sp", - }, - }, - "stmt_len": 20, - "stmt_location": 1496, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 90, - }, - "location": 1543, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 28, - "stmt_location": 1517, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 1563, - "sval": { - "sval": "SQL, YMD", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "datestyle", - }, - }, - "stmt_len": 27, - "stmt_location": 1546, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 15, - "stmt_location": 1574, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1598, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1598, - "sval": { - "sval": "2006-08-13 12:34:56", - }, - }, - }, - "location": 1619, - "typeName": { - "location": 1621, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 1590, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_SAVEPOINT", - "location": 1644, - "savepoint_name": "third_sp", - }, - }, - "stmt_len": 19, - "stmt_location": 1633, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 100, - }, - "location": 1679, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 29, - "stmt_location": 1653, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 23, - "stmt_location": 1683, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 1724, - "sval": { - "sval": "Postgres, MDY", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "datestyle", - }, - }, - "stmt_len": 32, - "stmt_location": 1707, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 15, - "stmt_location": 1740, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1764, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1764, - "sval": { - "sval": "2006-08-13 12:34:56", - }, - }, - }, - "location": 1785, - "typeName": { - "location": 1787, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 1756, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK_TO", - "location": 1812, - "savepoint_name": "third_sp", - }, - }, - "stmt_len": 21, - "stmt_location": 1799, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 23, - "stmt_location": 1821, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 15, - "stmt_location": 1845, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1869, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1869, - "sval": { - "sval": "2006-08-13 12:34:56", - }, - }, - }, - "location": 1890, - "typeName": { - "location": 1892, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 1861, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK_TO", - "location": 1917, - "savepoint_name": "second_sp", - }, - }, - "stmt_len": 22, - "stmt_location": 1904, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 23, - "stmt_location": 1927, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 15, - "stmt_location": 1951, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1975, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1975, - "sval": { - "sval": "2006-08-13 12:34:56", - }, - }, - }, - "location": 1996, - "typeName": { - "location": 1998, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 1967, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 2010, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 23, - "stmt_location": 2020, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 15, - "stmt_location": 2044, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2068, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2068, - "sval": { - "sval": "2006-08-13 12:34:56", - }, - }, - }, - "location": 2089, - "typeName": { - "location": 2091, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 2060, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 36, - "stmt_location": 2103, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 23, - "stmt_location": 2140, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 15, - "stmt_location": 2164, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2188, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2188, - "sval": { - "sval": "2006-08-13 12:34:56", - }, - }, - }, - "location": 2209, - "typeName": { - "location": 2211, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 2180, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_SAVEPOINT", - "location": 2234, - "savepoint_name": "sp", - }, - }, - "stmt_len": 13, - "stmt_location": 2223, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 30, - }, - "location": 2269, - }, - }, - ], - "is_local": true, - "kind": "VAR_SET_VALUE", - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 34, - "stmt_location": 2237, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 23, - "stmt_location": 2272, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 2319, - "sval": { - "sval": "Postgres, MDY", - }, - }, - }, - ], - "is_local": true, - "kind": "VAR_SET_VALUE", - "name": "datestyle", - }, - }, - "stmt_len": 38, - "stmt_location": 2296, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 15, - "stmt_location": 2335, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2359, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2359, - "sval": { - "sval": "2006-08-13 12:34:56", - }, - }, - }, - "location": 2380, - "typeName": { - "location": 2382, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 2351, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK_TO", - "location": 2407, - "savepoint_name": "sp", - }, - }, - "stmt_len": 15, - "stmt_location": 2394, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 23, - "stmt_location": 2410, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 15, - "stmt_location": 2434, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2458, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2458, - "sval": { - "sval": "2006-08-13 12:34:56", - }, - }, - }, - "location": 2479, - "typeName": { - "location": 2481, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 2450, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 2493, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 23, - "stmt_location": 2503, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 15, - "stmt_location": 2527, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2551, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2551, - "sval": { - "sval": "2006-08-13 12:34:56", - }, - }, - }, - "location": 2572, - "typeName": { - "location": 2574, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 2543, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 77, - "stmt_location": 2586, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 23, - "stmt_location": 2664, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 15, - "stmt_location": 2688, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2712, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2712, - "sval": { - "sval": "2006-08-13 12:34:56", - }, - }, - }, - "location": 2733, - "typeName": { - "location": 2735, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 2704, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_SAVEPOINT", - "location": 2758, - "savepoint_name": "sp", - }, - }, - "stmt_len": 13, - "stmt_location": 2747, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 30, - }, - "location": 2793, - }, - }, - ], - "is_local": true, - "kind": "VAR_SET_VALUE", - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 34, - "stmt_location": 2761, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 23, - "stmt_location": 2796, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 2843, - "sval": { - "sval": "Postgres, MDY", - }, - }, - }, - ], - "is_local": true, - "kind": "VAR_SET_VALUE", - "name": "datestyle", - }, - }, - "stmt_len": 38, - "stmt_location": 2820, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 15, - "stmt_location": 2859, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2883, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2883, - "sval": { - "sval": "2006-08-13 12:34:56", - }, - }, - }, - "location": 2904, - "typeName": { - "location": 2906, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 2875, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_RELEASE", - "location": 2937, - "savepoint_name": "sp", - }, - }, - "stmt_len": 21, - "stmt_location": 2918, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 23, - "stmt_location": 2940, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 15, - "stmt_location": 2964, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2988, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2988, - "sval": { - "sval": "2006-08-13 12:34:56", - }, - }, - }, - "location": 3009, - "typeName": { - "location": 3011, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 2980, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 3023, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 23, - "stmt_location": 3033, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 15, - "stmt_location": 3057, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3081, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3081, - "sval": { - "sval": "2006-08-13 12:34:56", - }, - }, - }, - "location": 3102, - "typeName": { - "location": 3104, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 3073, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 36, - "stmt_location": 3116, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 40, - }, - "location": 3179, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 28, - "stmt_location": 3153, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 50, - }, - "location": 3214, - }, - }, - ], - "is_local": true, - "kind": "VAR_SET_VALUE", - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 34, - "stmt_location": 3182, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 23, - "stmt_location": 3217, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 3258, - "sval": { - "sval": "ISO, DMY", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "datestyle", - }, - }, - "stmt_len": 27, - "stmt_location": 3241, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 3292, - "sval": { - "sval": "Postgres, MDY", - }, - }, - }, - ], - "is_local": true, - "kind": "VAR_SET_VALUE", - "name": "datestyle", - }, - }, - "stmt_len": 38, - "stmt_location": 3269, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 15, - "stmt_location": 3308, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3332, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3332, - "sval": { - "sval": "2006-08-13 12:34:56", - }, - }, - }, - "location": 3353, - "typeName": { - "location": 3355, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 3324, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 7, - "stmt_location": 3367, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 23, - "stmt_location": 3375, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 15, - "stmt_location": 3399, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3423, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3423, - "sval": { - "sval": "2006-08-13 12:34:56", - }, - }, - }, - "location": 3444, - "typeName": { - "location": 3446, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 3415, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 3625, - "sval": { - "sval": "iso", - }, - }, - }, - { - "A_Const": { - "location": 3630, - "sval": { - "sval": "ymd", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "datestyle", - }, - }, - "stmt_len": 175, - "stmt_location": 3458, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 15, - "stmt_location": 3634, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3658, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3658, - "sval": { - "sval": "2006-08-13 12:34:56", - }, - }, - }, - "location": 3679, - "typeName": { - "location": 3681, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 3650, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "datestyle", - }, - }, - "stmt_len": 16, - "stmt_location": 3693, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 15, - "stmt_location": 3710, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3734, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3734, - "sval": { - "sval": "2006-08-13 12:34:56", - }, - }, - }, - "location": 3755, - "typeName": { - "location": 3757, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 3726, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_DELETE_ROWS", - "relation": { - "inh": true, - "location": 3816, - "relname": "reset_test", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "data", - "is_local": true, - "location": 3829, - "typeName": { - "location": 3834, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 93, - "stmt_location": 3769, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3884, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3871, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3871, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3899, - }, - }, - "location": 3907, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3909, - "sval": { - "sval": "reset_test", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 58, - "stmt_location": 3863, - }, - }, - { - "RawStmt": { - "stmt": { - "DiscardStmt": { - "target": "DISCARD_TEMP", - }, - }, - "stmt_len": 13, - "stmt_location": 3922, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3957, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3944, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3944, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3972, - }, - }, - "location": 3980, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3982, - "sval": { - "sval": "reset_test", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 58, - "stmt_location": 3936, - }, - }, - { - "RawStmt": { - "stmt": { - "DeclareCursorStmt": { - "options": 288, - "portalname": "foo", - "query": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4078, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4078, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 84, - "stmt_location": 3995, - }, - }, - { - "RawStmt": { - "stmt": { - "PrepareStmt": { - "name": "foo", - "query": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4103, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4103, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 24, - "stmt_location": 4080, - }, - }, - { - "RawStmt": { - "stmt": { - "ListenStmt": { - "conditionname": "foo_event", - }, - }, - "stmt_len": 17, - "stmt_location": 4105, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 13, - }, - "location": 4148, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 27, - "stmt_location": 4123, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_DELETE_ROWS", - "relation": { - "inh": true, - "location": 4170, - "relname": "tmp_foo", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "data", - "is_local": true, - "location": 4179, - "typeName": { - "location": 4184, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 60, - "stmt_location": 4151, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateRoleStmt": { - "role": "temp_reset_user", - "stmt_type": "ROLESTMT_ROLE", - }, - }, - "stmt_len": 28, - "stmt_location": 4212, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 4268, - "sval": { - "sval": "temp_reset_user", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "session_authorization", - }, - }, - "stmt_len": 42, - "stmt_location": 4241, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4308, - "val": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_listening_channels", - }, - }, - ], - "location": 4308, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 4284, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4350, - "relname": "pg_prepared_statements", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4340, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "name", - }, - }, - ], - "location": 4340, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 4332, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4391, - "relname": "pg_cursors", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4381, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "name", - }, - }, - ], - "location": 4381, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 4373, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 23, - "stmt_location": 4402, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4447, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4434, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 4434, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 4462, - }, - }, - "location": 4470, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4472, - "sval": { - "sval": "tmp_foo", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 55, - "stmt_location": 4426, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4490, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "SQLValueFunction": { - "location": 4490, - "op": "SVFOP_CURRENT_USER", - "typmod": -1, - }, - }, - "location": 4503, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4505, - "sval": { - "sval": "temp_reset_user", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 4482, - }, - }, - { - "RawStmt": { - "stmt": { - "DiscardStmt": { - "target": "DISCARD_ALL", - }, - }, - "stmt_len": 34, - "stmt_location": 4523, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4580, - "val": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_listening_channels", - }, - }, - ], - "location": 4580, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 4558, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4622, - "relname": "pg_prepared_statements", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4612, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "name", - }, - }, - ], - "location": 4612, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 4604, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4663, - "relname": "pg_cursors", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4653, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "name", - }, - }, - ], - "location": 4653, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 4645, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "vacuum_cost_delay", - }, - }, - "stmt_len": 23, - "stmt_location": 4674, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4719, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4706, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 4706, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 4734, - }, - }, - "location": 4742, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4744, - "sval": { - "sval": "tmp_foo", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 55, - "stmt_location": 4698, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4762, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "SQLValueFunction": { - "location": 4762, - "op": "SVFOP_CURRENT_USER", - "typmod": -1, - }, - }, - "location": 4775, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4777, - "sval": { - "sval": "temp_reset_user", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 4754, - }, - }, - { - "RawStmt": { - "stmt": { - "DropRoleStmt": { - "roles": [ - { - "RoleSpec": { - "location": 4806, - "rolename": "temp_reset_user", - "roletype": "ROLESPEC_CSTRING", - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 4795, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 4904, - "sval": { - "sval": "foo", - }, - }, - }, - { - "A_Const": { - "location": 4909, - "sval": { - "sval": "public", - }, - }, - }, - { - "A_Const": { - "location": 4917, - "sval": { - "sval": "not_there_initially", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "search_path", - }, - }, - "stmt_len": 114, - "stmt_location": 4822, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4945, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "boolval": {}, - "location": 4961, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "current_schemas", - }, - }, - ], - "location": 4945, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 4937, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateSchemaStmt": { - "schemaname": "not_there_initially", - }, - }, - "stmt_len": 34, - "stmt_location": 4968, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5011, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "boolval": {}, - "location": 5027, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "current_schemas", - }, - }, - ], - "location": 5011, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 5003, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "String": { - "sval": "not_there_initially", - }, - }, - ], - "removeType": "OBJECT_SCHEMA", - }, - }, - "stmt_len": 32, - "stmt_location": 5034, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5075, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "boolval": {}, - "location": 5091, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "current_schemas", - }, - }, - ], - "location": 5075, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 5067, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "search_path", - }, - }, - "stmt_len": 18, - "stmt_location": 5098, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 5182, - "sval": { - "sval": "3MB", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "work_mem", - }, - }, - "stmt_len": 70, - "stmt_location": 5117, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "report_guc", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " select current_setting($1) ", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 5236, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 5272, - }, - }, - { - "DefElem": { - "arg": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 5300, - "sval": { - "sval": "1MB", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "work_mem", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "set", - "location": 5285, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 5217, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 5231, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 117, - "stmt_location": 5188, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5315, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 5326, - "sval": { - "sval": "work_mem", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "report_guc", - }, - }, - ], - "location": 5315, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5339, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 5355, - "sval": { - "sval": "work_mem", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "current_setting", - }, - }, - ], - "location": 5339, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 60, - "stmt_location": 5306, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterFunctionStmt": { - "actions": [ - { - "DefElem": { - "arg": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 5416, - "sval": { - "sval": "2MB", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "work_mem", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "set", - "location": 5401, - }, - }, - ], - "func": { - "objargs": [ - { - "TypeName": { - "location": 5395, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 5395, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "report_guc", - }, - }, - ], - }, - "objtype": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 54, - "stmt_location": 5367, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5431, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 5442, - "sval": { - "sval": "work_mem", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "report_guc", - }, - }, - ], - "location": 5431, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5455, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 5471, - "sval": { - "sval": "work_mem", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "current_setting", - }, - }, - ], - "location": 5455, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 60, - "stmt_location": 5422, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterFunctionStmt": { - "actions": [ - { - "DefElem": { - "arg": { - "VariableSetStmt": { - "kind": "VAR_RESET_ALL", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "set", - "location": 5517, - }, - }, - ], - "func": { - "objargs": [ - { - "TypeName": { - "location": 5511, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 5511, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "report_guc", - }, - }, - ], - }, - "objtype": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 43, - "stmt_location": 5483, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5536, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 5547, - "sval": { - "sval": "work_mem", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "report_guc", - }, - }, - ], - "location": 5536, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5560, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 5576, - "sval": { - "sval": "work_mem", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "current_setting", - }, - }, - ], - "location": 5560, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 60, - "stmt_location": 5527, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "myfunc", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -begin - set local work_mem = '2MB'; - return current_setting('work_mem'); -end ", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 5694, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 5781, - }, - }, - { - "DefElem": { - "arg": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 5813, - "sval": { - "sval": "1MB", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "work_mem", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "set", - "location": 5798, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 5676, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "replace": true, - "returnType": { - "location": 5689, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 230, - "stmt_location": 5588, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5828, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": {}, - "location": 5835, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "myfunc", - }, - }, - ], - "location": 5828, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5839, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 5855, - "sval": { - "sval": "work_mem", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "current_setting", - }, - }, - ], - "location": 5839, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 5819, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterFunctionStmt": { - "actions": [ - { - "DefElem": { - "arg": { - "VariableSetStmt": { - "kind": "VAR_RESET_ALL", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "set", - "location": 5896, - }, - }, - ], - "func": { - "objargs": [ - { - "TypeName": { - "location": 5891, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 5891, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "myfunc", - }, - }, - ], - }, - "objtype": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 38, - "stmt_location": 5867, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5915, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": {}, - "location": 5922, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "myfunc", - }, - }, - ], - "location": 5915, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5926, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 5942, - "sval": { - "sval": "work_mem", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "current_setting", - }, - }, - ], - "location": 5926, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 5906, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 5971, - "sval": { - "sval": "3MB", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "work_mem", - }, - }, - "stmt_len": 22, - "stmt_location": 5954, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "myfunc", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -begin - set work_mem = '2MB'; - return current_setting('work_mem'); -end ", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 6048, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 6129, - }, - }, - { - "DefElem": { - "arg": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 6161, - "sval": { - "sval": "1MB", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "work_mem", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "set", - "location": 6146, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 6030, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "replace": true, - "returnType": { - "location": 6043, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 189, - "stmt_location": 5977, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6176, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": {}, - "location": 6183, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "myfunc", - }, - }, - ], - "location": 6176, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6187, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 6203, - "sval": { - "sval": "work_mem", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "current_setting", - }, - }, - ], - "location": 6187, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 6167, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 6232, - "sval": { - "sval": "3MB", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "work_mem", - }, - }, - "stmt_len": 22, - "stmt_location": 6215, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "myfunc", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -begin - set work_mem = '2MB'; - perform 1/$1; - return current_setting('work_mem'); -end ", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 6332, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 6429, - }, - }, - { - "DefElem": { - "arg": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 6461, - "sval": { - "sval": "1MB", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "work_mem", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "set", - "location": 6446, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 6314, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "replace": true, - "returnType": { - "location": 6327, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 228, - "stmt_location": 6238, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6476, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": {}, - "location": 6483, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "myfunc", - }, - }, - ], - "location": 6476, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 18, - "stmt_location": 6467, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6494, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 6510, - "sval": { - "sval": "work_mem", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "current_setting", - }, - }, - ], - "location": 6494, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 6486, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6530, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6537, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "myfunc", - }, - }, - ], - "location": 6530, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6541, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 6557, - "sval": { - "sval": "work_mem", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "current_setting", - }, - }, - ], - "location": 6541, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 6522, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6643, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 6659, - "sval": { - "sval": "nosuch.setting", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "current_setting", - }, - }, - ], - "location": 6643, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 107, - "stmt_location": 6569, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6694, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 6710, - "sval": { - "sval": "nosuch.setting", - }, - }, - }, - { - "A_Const": { - "boolval": {}, - "location": 6728, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "current_setting", - }, - }, - ], - "location": 6694, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 6677, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6752, - "val": { - "NullTest": { - "arg": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 6768, - "sval": { - "sval": "nosuch.setting", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 6786, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "current_setting", - }, - }, - ], - "location": 6752, - }, - }, - "location": 6792, - "nulltesttype": "IS_NULL", - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 64, - "stmt_location": 6735, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 6874, - "sval": { - "sval": "nada", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "nosuch.setting", - }, - }, - "stmt_len": 80, - "stmt_location": 6800, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6890, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 6906, - "sval": { - "sval": "nosuch.setting", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "current_setting", - }, - }, - ], - "location": 6890, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 6881, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6932, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 6948, - "sval": { - "sval": "nosuch.setting", - }, - }, - }, - { - "A_Const": { - "boolval": {}, - "location": 6966, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "current_setting", - }, - }, - ], - "location": 6932, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 48, - "stmt_location": 6924, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6981, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 6997, - "sval": { - "sval": "nosuch.setting", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 7015, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "current_setting", - }, - }, - ], - "location": 6981, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 6973, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "func_with_bad_set", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " select 1 ", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 7260, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 7278, - }, - }, - { - "DefElem": { - "arg": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 7324, - "sval": { - "sval": "no_such_config", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "default_text_search_config", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "set", - "location": 7291, - }, - }, - ], - "returnType": { - "location": 7256, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 317, - "stmt_location": 7021, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 7369, - "sval": { - "sval": "off", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "check_function_bodies", - }, - }, - "stmt_len": 33, - "stmt_location": 7339, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "func_with_bad_set", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " select 1 ", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 7423, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 7441, - }, - }, - { - "DefElem": { - "arg": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 7487, - "sval": { - "sval": "no_such_config", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "default_text_search_config", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "set", - "location": 7454, - }, - }, - ], - "returnType": { - "location": 7419, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 128, - "stmt_location": 7373, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7511, - "val": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "func_with_bad_set", - }, - }, - ], - "location": 7511, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 7502, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "check_function_bodies", - }, - }, - "stmt_len": 29, - "stmt_location": 7531, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/hash_index.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 63, - "relname": "hash_i4_heap", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 56, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 56, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "hash_i4_heap", - }, - }, - { - "String": { - "sval": "random", - }, - }, - ], - "location": 85, - }, - }, - "location": 105, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 843938989, - }, - "location": 107, - }, - }, - }, - }, - }, - }, - "stmt_len": 116, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 180, - "relname": "hash_i4_heap", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 173, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 173, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "hash_i4_heap", - }, - }, - { - "String": { - "sval": "random", - }, - }, - ], - "location": 202, - }, - }, - "location": 222, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 66766766, - }, - "location": 224, - }, - }, - }, - }, - }, - }, - "stmt_len": 115, - "stmt_location": 117, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 298, - "relname": "hash_name_heap", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 291, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 291, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "hash_name_heap", - }, - }, - { - "String": { - "sval": "random", - }, - }, - ], - "location": 322, - }, - }, - "location": 344, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 346, - "sval": { - "sval": "1505703298", - }, - }, - }, - "location": 358, - "typeName": { - "location": 360, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 131, - "stmt_location": 233, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 427, - "relname": "hash_name_heap", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 420, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 420, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "hash_name_heap", - }, - }, - { - "String": { - "sval": "random", - }, - }, - ], - "location": 451, - }, - }, - "location": 473, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 475, - "sval": { - "sval": "7777777", - }, - }, - }, - "location": 484, - "typeName": { - "location": 486, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 125, - "stmt_location": 365, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 556, - "relname": "hash_txt_heap", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 549, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 549, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "hash_txt_heap", - }, - }, - { - "String": { - "sval": "random", - }, - }, - ], - "location": 579, - }, - }, - "location": 600, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 602, - "sval": { - "sval": "1351610853", - }, - }, - }, - "location": 614, - "typeName": { - "location": 616, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 129, - "stmt_location": 491, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 700, - "relname": "hash_txt_heap", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 693, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 693, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "hash_txt_heap", - }, - }, - { - "String": { - "sval": "random", - }, - }, - ], - "location": 723, - }, - }, - "location": 744, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 746, - "sval": { - "sval": "111111112222222233333333", - }, - }, - }, - "location": 772, - "typeName": { - "location": 774, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 157, - "stmt_location": 621, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 843, - "relname": "hash_f8_heap", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 836, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 836, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "hash_f8_heap", - }, - }, - { - "String": { - "sval": "random", - }, - }, - ], - "location": 865, - }, - }, - "location": 885, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 887, - "sval": { - "sval": "444705537", - }, - }, - }, - "location": 898, - "typeName": { - "location": 900, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 127, - "stmt_location": 779, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 970, - "relname": "hash_f8_heap", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 963, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 963, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "hash_f8_heap", - }, - }, - { - "String": { - "sval": "random", - }, - }, - ], - "location": 992, - }, - }, - "location": 1012, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1014, - "sval": { - "sval": "88888888", - }, - }, - }, - "location": 1024, - "typeName": { - "location": 1026, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 125, - "stmt_location": 907, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 1302, - "relname": "hash_i4_heap", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 1322, - "name": "random", - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1331, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "hash_i4_heap", - }, - }, - { - "String": { - "sval": "seqno", - }, - }, - ], - "location": 1342, - }, - }, - "location": 1361, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1492, - }, - "location": 1363, - }, - }, - }, - }, - }, - }, - "stmt_len": 334, - "stmt_location": 1033, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "h", - }, - "inh": true, - "location": 1418, - "relname": "hash_i4_heap", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1377, - "name": "i1492", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "h", - }, - }, - { - "String": { - "sval": "seqno", - }, - }, - ], - "location": 1377, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1395, - "name": "i1", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "h", - }, - }, - { - "String": { - "sval": "random", - }, - }, - ], - "location": 1395, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "h", - }, - }, - { - "String": { - "sval": "random", - }, - }, - ], - "location": 1442, - }, - }, - "location": 1451, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1453, - }, - }, - }, - }, - }, - }, - "stmt_len": 86, - "stmt_location": 1368, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 1464, - "relname": "hash_i4_heap", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 1484, - "name": "seqno", - "val": { - "A_Const": { - "ival": { - "ival": 20000, - }, - "location": 1492, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "hash_i4_heap", - }, - }, - { - "String": { - "sval": "random", - }, - }, - ], - "location": 1507, - }, - }, - "location": 1527, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1492795354, - }, - "location": 1529, - }, - }, - }, - }, - }, - }, - "stmt_len": 84, - "stmt_location": 1455, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "h", - }, - "inh": true, - "location": 1575, - "relname": "hash_i4_heap", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1549, - "name": "i20000", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "h", - }, - }, - { - "String": { - "sval": "seqno", - }, - }, - ], - "location": 1549, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "h", - }, - }, - { - "String": { - "sval": "random", - }, - }, - ], - "location": 1599, - }, - }, - "location": 1608, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1492795354, - }, - "location": 1610, - }, - }, - }, - }, - }, - }, - "stmt_len": 80, - "stmt_location": 1540, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 1630, - "relname": "hash_name_heap", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 1652, - "name": "random", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1661, - "sval": { - "sval": "0123456789abcdef", - }, - }, - }, - "location": 1679, - "typeName": { - "location": 1681, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "hash_name_heap", - }, - }, - { - "String": { - "sval": "seqno", - }, - }, - ], - "location": 1695, - }, - }, - "location": 1716, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 6543, - }, - "location": 1718, - }, - }, - }, - }, - }, - }, - "stmt_len": 101, - "stmt_location": 1621, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "h", - }, - "inh": true, - "location": 1778, - "relname": "hash_name_heap", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1732, - "name": "i6543", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "h", - }, - }, - { - "String": { - "sval": "seqno", - }, - }, - ], - "location": 1732, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1750, - "name": "c0_to_f", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "h", - }, - }, - { - "String": { - "sval": "random", - }, - }, - ], - "location": 1750, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "h", - }, - }, - { - "String": { - "sval": "random", - }, - }, - ], - "location": 1804, - }, - }, - "location": 1813, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1815, - "sval": { - "sval": "0123456789abcdef", - }, - }, - }, - "location": 1833, - "typeName": { - "location": 1835, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 116, - "stmt_location": 1723, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 1849, - "relname": "hash_name_heap", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 1871, - "name": "seqno", - "val": { - "A_Const": { - "ival": { - "ival": 20000, - }, - "location": 1879, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "hash_name_heap", - }, - }, - { - "String": { - "sval": "random", - }, - }, - ], - "location": 1894, - }, - }, - "location": 1916, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1918, - "sval": { - "sval": "76652222", - }, - }, - }, - "location": 1928, - "typeName": { - "location": 1930, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 94, - "stmt_location": 1840, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "h", - }, - "inh": true, - "location": 2050, - "relname": "hash_name_heap", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2022, - "name": "emptyset", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "h", - }, - }, - { - "String": { - "sval": "seqno", - }, - }, - ], - "location": 2022, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "h", - }, - }, - { - "String": { - "sval": "random", - }, - }, - ], - "location": 2076, - }, - }, - "location": 2085, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2087, - "sval": { - "sval": "76652222", - }, - }, - }, - "location": 2097, - "typeName": { - "location": 2099, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 168, - "stmt_location": 1935, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 2113, - "relname": "hash_txt_heap", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 2134, - "name": "random", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2143, - "sval": { - "sval": "0123456789abcdefghijklmnop", - }, - }, - }, - "location": 2171, - "typeName": { - "location": 2173, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "hash_txt_heap", - }, - }, - { - "String": { - "sval": "seqno", - }, - }, - ], - "location": 2187, - }, - }, - "location": 2207, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 4002, - }, - "location": 2209, - }, - }, - }, - }, - }, - }, - "stmt_len": 109, - "stmt_location": 2104, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "h", - }, - "inh": true, - "location": 2269, - "relname": "hash_txt_heap", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2223, - "name": "i4002", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "h", - }, - }, - { - "String": { - "sval": "seqno", - }, - }, - ], - "location": 2223, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2241, - "name": "c0_to_p", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "h", - }, - }, - { - "String": { - "sval": "random", - }, - }, - ], - "location": 2241, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "h", - }, - }, - { - "String": { - "sval": "random", - }, - }, - ], - "location": 2294, - }, - }, - "location": 2303, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2305, - "sval": { - "sval": "0123456789abcdefghijklmnop", - }, - }, - }, - "location": 2333, - "typeName": { - "location": 2335, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 125, - "stmt_location": 2214, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 2349, - "relname": "hash_txt_heap", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 2370, - "name": "seqno", - "val": { - "A_Const": { - "ival": { - "ival": 20000, - }, - "location": 2378, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "hash_txt_heap", - }, - }, - { - "String": { - "sval": "random", - }, - }, - ], - "location": 2393, - }, - }, - "location": 2414, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2416, - "sval": { - "sval": "959363399", - }, - }, - }, - "location": 2427, - "typeName": { - "location": 2429, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 93, - "stmt_location": 2340, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "h", - }, - "inh": true, - "location": 2469, - "relname": "hash_txt_heap", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2443, - "name": "t20000", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "h", - }, - }, - { - "String": { - "sval": "seqno", - }, - }, - ], - "location": 2443, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "h", - }, - }, - { - "String": { - "sval": "random", - }, - }, - ], - "location": 2494, - }, - }, - "location": 2503, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2505, - "sval": { - "sval": "959363399", - }, - }, - }, - "location": 2516, - "typeName": { - "location": 2518, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 88, - "stmt_location": 2434, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 2532, - "relname": "hash_f8_heap", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 2552, - "name": "random", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2561, - "sval": { - "sval": "-1234.1234", - }, - }, - }, - "location": 2573, - "typeName": { - "location": 2575, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "hash_f8_heap", - }, - }, - { - "String": { - "sval": "seqno", - }, - }, - ], - "location": 2591, - }, - }, - "location": 2610, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 8906, - }, - "location": 2612, - }, - }, - }, - }, - }, - }, - "stmt_len": 93, - "stmt_location": 2523, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "h", - }, - "inh": true, - "location": 2675, - "relname": "hash_f8_heap", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2626, - "name": "i8096", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "h", - }, - }, - { - "String": { - "sval": "seqno", - }, - }, - ], - "location": 2626, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2644, - "name": "f1234_1234", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "h", - }, - }, - { - "String": { - "sval": "random", - }, - }, - ], - "location": 2644, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "h", - }, - }, - { - "String": { - "sval": "random", - }, - }, - ], - "location": 2699, - }, - }, - "location": 2708, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2710, - "sval": { - "sval": "-1234.1234", - }, - }, - }, - "location": 2722, - "typeName": { - "location": 2724, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 113, - "stmt_location": 2617, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 2740, - "relname": "hash_f8_heap", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 2760, - "name": "seqno", - "val": { - "A_Const": { - "ival": { - "ival": 20000, - }, - "location": 2768, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "hash_f8_heap", - }, - }, - { - "String": { - "sval": "random", - }, - }, - ], - "location": 2783, - }, - }, - "location": 2803, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2805, - "sval": { - "sval": "488912369", - }, - }, - }, - "location": 2816, - "typeName": { - "location": 2818, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 93, - "stmt_location": 2731, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "h", - }, - "inh": true, - "location": 2860, - "relname": "hash_f8_heap", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2834, - "name": "f20000", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "h", - }, - }, - { - "String": { - "sval": "seqno", - }, - }, - ], - "location": 2834, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "h", - }, - }, - { - "String": { - "sval": "random", - }, - }, - ], - "location": 2884, - }, - }, - "location": 2893, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2895, - "sval": { - "sval": "488912369", - }, - }, - }, - "location": 2906, - "typeName": { - "location": 2908, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 89, - "stmt_location": 2825, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/horology.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 34, - "sval": { - "sval": "Postgres, MDY", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "datestyle", - }, - }, - "stmt_len": 49, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 95, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 120, - "sval": { - "sval": "20011227 040506+08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 95, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 90, - "stmt_location": 50, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 149, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 174, - "sval": { - "sval": "20011227 040506-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 149, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 141, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 203, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 228, - "sval": { - "sval": "20011227 040506.789+08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 203, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 195, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 261, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 286, - "sval": { - "sval": "20011227 040506.789-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 261, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 253, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 319, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 344, - "sval": { - "sval": "20011227T040506+08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 319, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 311, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 373, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 398, - "sval": { - "sval": "20011227T040506-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 373, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 365, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 427, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 452, - "sval": { - "sval": "20011227T040506.789+08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 427, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 419, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 485, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 510, - "sval": { - "sval": "20011227T040506.789-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 485, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 477, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 543, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 568, - "sval": { - "sval": "2001-12-27 04:05:06.789-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 543, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 535, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 605, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 630, - "sval": { - "sval": "2001.12.27 04:05:06.789-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 605, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 597, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 667, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 692, - "sval": { - "sval": "2001/12/27 04:05:06.789-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 667, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 659, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 729, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 754, - "sval": { - "sval": "12/27/2001 04:05:06.789-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 729, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 721, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 819, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 844, - "sval": { - "sval": "27/12/2001 04:05:06.789-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 819, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 89, - "stmt_location": 783, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 891, - "sval": { - "sval": "dmy", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "datestyle", - }, - }, - "stmt_len": 21, - "stmt_location": 873, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 903, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 928, - "sval": { - "sval": "27/12/2001 04:05:06.789-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 903, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 895, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "datestyle", - }, - }, - "stmt_len": 16, - "stmt_location": 957, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 982, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1007, - "sval": { - "sval": "Y2001M12D27H04M05S06.789+08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 982, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 974, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1045, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1070, - "sval": { - "sval": "Y2001M12D27H04M05S06.789-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1045, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 1037, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1108, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1133, - "sval": { - "sval": "Y2001M12D27H04MM05S06.789+08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1108, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 1100, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1172, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1197, - "sval": { - "sval": "Y2001M12D27H04MM05S06.789-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1172, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 1164, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1236, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1261, - "sval": { - "sval": "J2452271+08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1236, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 1228, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1283, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1308, - "sval": { - "sval": "J2452271-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1283, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 1275, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1330, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1355, - "sval": { - "sval": "J2452271.5+08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1330, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 48, - "stmt_location": 1322, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1379, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1404, - "sval": { - "sval": "J2452271.5-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1379, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 48, - "stmt_location": 1371, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1428, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1453, - "sval": { - "sval": "J2452271 04:05:06+08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1428, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 55, - "stmt_location": 1420, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1484, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1509, - "sval": { - "sval": "J2452271 04:05:06-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1484, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 55, - "stmt_location": 1476, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1540, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1565, - "sval": { - "sval": "J2452271T040506+08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1540, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 1532, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1594, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1619, - "sval": { - "sval": "J2452271T040506-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1594, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 1586, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1648, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1673, - "sval": { - "sval": "J2452271T040506.789+08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1648, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 1640, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1706, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1731, - "sval": { - "sval": "J2452271T040506.789-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1706, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 1698, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1822, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1847, - "sval": { - "sval": "12.27.2001 04:05:06.789+08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1822, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 119, - "stmt_location": 1756, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1884, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1909, - "sval": { - "sval": "12.27.2001 04:05:06.789-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1884, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 1876, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 1955, - "sval": { - "sval": "German", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "datestyle", - }, - }, - "stmt_len": 25, - "stmt_location": 1938, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1972, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1997, - "sval": { - "sval": "27.12.2001 04:05:06.789+08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1972, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 1964, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2034, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2059, - "sval": { - "sval": "27.12.2001 04:05:06.789-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2034, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 2026, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 2105, - "sval": { - "sval": "ISO", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "datestyle", - }, - }, - "stmt_len": 22, - "stmt_location": 2088, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2191, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2214, - "sval": { - "sval": "040506.789+08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2191, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 118, - "stmt_location": 2111, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2238, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2261, - "sval": { - "sval": "040506.789-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2238, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 2230, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2285, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2308, - "sval": { - "sval": "T040506.789+08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2285, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 2277, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2333, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2356, - "sval": { - "sval": "T040506.789-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2333, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 2325, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2381, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2401, - "sval": { - "sval": "040506.789+08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2381, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timetz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 43, - "stmt_location": 2373, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2425, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2445, - "sval": { - "sval": "040506.789-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2425, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timetz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 43, - "stmt_location": 2417, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2469, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2489, - "sval": { - "sval": "T040506.789+08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2469, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timetz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 2461, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2514, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2534, - "sval": { - "sval": "T040506.789-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2514, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timetz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 2506, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2559, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2579, - "sval": { - "sval": "T040506.789 +08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2559, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timetz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 2551, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2605, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2625, - "sval": { - "sval": "T040506.789 -08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2605, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timetz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 2597, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 2660, - "sval": { - "sval": "Postgres, MDY", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "datestyle", - }, - }, - "stmt_len": 32, - "stmt_location": 2643, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2709, - "name": "Confucius' Birthday", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2714, - "sval": { - "sval": "J1520447", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2709, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 2676, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2758, - "name": "Julian Epoch", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2763, - "sval": { - "sval": "J0", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2758, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 2750, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2827, - "name": "Date + Time", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2832, - "sval": { - "sval": "1981-02-03", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2827, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2845, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2852, - "sval": { - "sval": "04:05:06", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2847, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 93, - "stmt_location": 2786, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2888, - "name": "Date + Time PST", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2893, - "sval": { - "sval": "1991-02-03", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2888, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2906, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2928, - "sval": { - "sval": "04:05:06 PST", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2908, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timetz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 83, - "stmt_location": 2880, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2972, - "name": "Date + Time UTC", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2977, - "sval": { - "sval": "2001-02-03", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2972, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2990, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3012, - "sval": { - "sval": "04:05:06 UTC", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2992, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timetz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 83, - "stmt_location": 2964, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3056, - "name": "Add Two Years", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3061, - "sval": { - "sval": "1991-02-03", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3056, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3074, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3085, - "sval": { - "sval": "2 years", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3076, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 65, - "stmt_location": 3048, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3122, - "name": "Subtract Two Years", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3127, - "sval": { - "sval": "2001-12-13", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3122, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3140, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3151, - "sval": { - "sval": "2 years", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3142, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 70, - "stmt_location": 3114, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3264, - "name": "Subtract Time", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3269, - "sval": { - "sval": "1991-02-03", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3264, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3282, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3289, - "sval": { - "sval": "04:05:06", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3284, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 133, - "stmt_location": 3185, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3327, - "name": "Subtract Time UTC", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3332, - "sval": { - "sval": "1991-02-03", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3327, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3345, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3367, - "sval": { - "sval": "04:05:06 UTC", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3347, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timetz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 85, - "stmt_location": 3319, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3455, - "name": "Feb 29", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3483, - "sval": { - "sval": "1996-03-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3455, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3496, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3507, - "sval": { - "sval": "1 second", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3498, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 124, - "stmt_location": 3405, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3538, - "name": "Feb 28", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3566, - "sval": { - "sval": "1999-03-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3538, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3579, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3590, - "sval": { - "sval": "1 second", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3581, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 82, - "stmt_location": 3530, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3621, - "name": "Feb 29", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3649, - "sval": { - "sval": "2000-03-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3621, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3662, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3673, - "sval": { - "sval": "1 second", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3664, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 82, - "stmt_location": 3613, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3704, - "name": "Dec 31", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3732, - "sval": { - "sval": "1999-12-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3704, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3745, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3756, - "sval": { - "sval": "1 month - 1 second", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3747, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 92, - "stmt_location": 3696, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3797, - "name": "Feb 23, 285506", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3825, - "sval": { - "sval": "Jan 1, 4713 BC", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3797, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3842, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3853, - "sval": { - "sval": "106000000 days", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3844, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 100, - "stmt_location": 3789, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3898, - "name": "Jan 20, 288244", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3926, - "sval": { - "sval": "Jan 1, 4713 BC", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3898, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3943, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3954, - "sval": { - "sval": "107000000 days", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3945, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 100, - "stmt_location": 3890, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3999, - "name": "Dec 31, 294276", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4027, - "sval": { - "sval": "Jan 1, 4713 BC", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3999, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4044, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4055, - "sval": { - "sval": "109203489 days", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4046, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 100, - "stmt_location": 3991, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4100, - "name": "106751991 Days", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4128, - "sval": { - "sval": "12/31/294276", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4100, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4143, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4173, - "sval": { - "sval": "12/23/1999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4145, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 113, - "stmt_location": 4092, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4383, - "name": "True", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4412, - "sval": { - "sval": "today", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4384, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4420, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4451, - "sval": { - "sval": "yesterday", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4423, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4463, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4474, - "sval": { - "sval": "1 day", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4465, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 287, - "stmt_location": 4206, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4502, - "name": "True", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4531, - "sval": { - "sval": "today", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4503, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4539, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4570, - "sval": { - "sval": "tomorrow", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4542, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4581, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4592, - "sval": { - "sval": "1 day", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4583, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 117, - "stmt_location": 4494, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4620, - "name": "True", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4649, - "sval": { - "sval": "today 10:30", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4621, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4663, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4694, - "sval": { - "sval": "yesterday", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4666, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4706, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4717, - "sval": { - "sval": "1 day 10 hr 30 min", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4708, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 137, - "stmt_location": 4612, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4758, - "name": "True", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4787, - "sval": { - "sval": "10:30 today", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4759, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4801, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4832, - "sval": { - "sval": "yesterday", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4804, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4844, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4855, - "sval": { - "sval": "1 day 10 hr 30 min", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4846, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 137, - "stmt_location": 4750, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4896, - "name": "True", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4925, - "sval": { - "sval": "tomorrow", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4897, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4936, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4967, - "sval": { - "sval": "yesterday", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4939, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4979, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4990, - "sval": { - "sval": "2 days", - }, - }, - }, - "location": -1, - "typeName": { - "location": 4981, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 122, - "stmt_location": 4888, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5019, - "name": "True", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5048, - "sval": { - "sval": "tomorrow 16:00:00", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5020, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 5068, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5099, - "sval": { - "sval": "today", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5071, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 5107, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5118, - "sval": { - "sval": "1 day 16 hours", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5109, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 135, - "stmt_location": 5011, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5155, - "name": "True", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5184, - "sval": { - "sval": "16:00:00 tomorrow", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5156, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 5204, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5235, - "sval": { - "sval": "today", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5207, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 5243, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5254, - "sval": { - "sval": "1 day 16 hours", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5245, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 135, - "stmt_location": 5147, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5291, - "name": "True", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5320, - "sval": { - "sval": "yesterday 12:34:56", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5292, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 5341, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5372, - "sval": { - "sval": "tomorrow", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5344, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 5383, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5394, - "sval": { - "sval": "2 days - 12:34:56", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5385, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 142, - "stmt_location": 5283, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5434, - "name": "True", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5463, - "sval": { - "sval": "12:34:56 yesterday", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5435, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 5484, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5515, - "sval": { - "sval": "tomorrow", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5487, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 5526, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5537, - "sval": { - "sval": "2 days - 12:34:56", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5528, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 142, - "stmt_location": 5426, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5577, - "name": "True", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5606, - "sval": { - "sval": "tomorrow", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5578, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 5617, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 5619, - "sval": { - "sval": "now", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 66, - "stmt_location": 5569, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5820, - "name": "Jan_01_1994_11am", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5825, - "sval": { - "sval": "1994-01-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5820, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 5838, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5845, - "sval": { - "sval": "11:00", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5840, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 238, - "stmt_location": 5636, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5883, - "name": "Jan_01_1994_10am", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5888, - "sval": { - "sval": "1994-01-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5883, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 5901, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5908, - "sval": { - "sval": "10:00", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5903, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 5875, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5946, - "name": "Jan_01_1994_8am", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5951, - "sval": { - "sval": "1994-01-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5946, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 5964, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5973, - "sval": { - "sval": "11:00-5", - }, - }, - }, - "location": -1, - "typeName": { - "location": 5966, - "names": [ - { - "String": { - "sval": "timetz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 65, - "stmt_location": 5938, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6012, - "name": "Jan_01_1994_8am", - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6029, - "sval": { - "sval": "1994-01-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6024, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6063, - "sval": { - "sval": "11:00-5", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6043, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timetz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "location": 6012, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 90, - "stmt_location": 6004, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6156, - "relname": "timestamp_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6104, - "name": "64", - "val": { - "A_Const": { - "location": 6104, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6116, - "name": "one_year", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d1", - }, - }, - ], - "location": 6116, - }, - }, - "location": 6119, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6130, - "sval": { - "sval": "1 year", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6121, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 74, - "stmt_location": 6095, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6230, - "relname": "timestamp_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6178, - "name": "64", - "val": { - "A_Const": { - "location": 6178, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6190, - "name": "one_year", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d1", - }, - }, - ], - "location": 6190, - }, - }, - "location": 6193, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6204, - "sval": { - "sval": "1 year", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6195, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 6170, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6253, - "name": "Feb 29", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6278, - "sval": { - "sval": "1996-03-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6253, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 6291, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6302, - "sval": { - "sval": "1 second", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6293, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 80, - "stmt_location": 6244, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6333, - "name": "Feb 28", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6358, - "sval": { - "sval": "1999-03-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6333, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 6371, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6382, - "sval": { - "sval": "1 second", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6373, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 79, - "stmt_location": 6325, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6413, - "name": "Feb 29", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6438, - "sval": { - "sval": "2000-03-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6413, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 6451, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6462, - "sval": { - "sval": "1 second", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6453, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 79, - "stmt_location": 6405, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6493, - "name": "Dec 31", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6518, - "sval": { - "sval": "1999-12-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6493, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 6531, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6542, - "sval": { - "sval": "1 month - 1 second", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6533, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 89, - "stmt_location": 6485, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6584, - "name": "True", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6610, - "sval": { - "sval": "today", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6585, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 6618, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6646, - "sval": { - "sval": "yesterday", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6621, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 6658, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6669, - "sval": { - "sval": "1 day", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6660, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 113, - "stmt_location": 6575, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6697, - "name": "True", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6723, - "sval": { - "sval": "today", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6698, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 6731, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6759, - "sval": { - "sval": "tomorrow", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6734, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 6770, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6781, - "sval": { - "sval": "1 day", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6772, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 111, - "stmt_location": 6689, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6809, - "name": "True", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6835, - "sval": { - "sval": "tomorrow", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6810, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 6846, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6874, - "sval": { - "sval": "yesterday", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6849, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 6886, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6897, - "sval": { - "sval": "2 days", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6888, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 116, - "stmt_location": 6801, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6926, - "name": "True", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6952, - "sval": { - "sval": "tomorrow", - }, - }, - }, - "location": -1, - "typeName": { - "location": 6927, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 6963, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 6965, - "sval": { - "sval": "now", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 6918, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 7065, - "sval": { - "sval": "CST7CDT", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "timezone", - }, - }, - "stmt_len": 92, - "stmt_location": 6982, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7083, - "name": "Apr 3, 12:00", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7108, - "sval": { - "sval": "2005-04-02 12:00-07", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7083, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 7130, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7141, - "sval": { - "sval": "1 day", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7132, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 91, - "stmt_location": 7075, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7175, - "name": "Apr 3, 13:00", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7200, - "sval": { - "sval": "2005-04-02 12:00-07", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7175, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 7222, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7233, - "sval": { - "sval": "24 hours", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7224, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 94, - "stmt_location": 7167, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7270, - "name": "Apr 2, 12:00", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7295, - "sval": { - "sval": "2005-04-03 12:00-06", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7270, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 7317, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7328, - "sval": { - "sval": "1 day", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7319, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 91, - "stmt_location": 7262, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7362, - "name": "Apr 2, 11:00", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7387, - "sval": { - "sval": "2005-04-03 12:00-06", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7362, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 7409, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7420, - "sval": { - "sval": "24 hours", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7411, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 94, - "stmt_location": 7354, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "timezone", - }, - }, - "stmt_len": 16, - "stmt_location": 7449, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7476, - "name": "Jan_01_1994_10am", - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7493, - "sval": { - "sval": "1994-01-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7488, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7512, - "sval": { - "sval": "11:00", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7507, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "location": 7476, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 76, - "stmt_location": 7466, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7551, - "name": "Jan_01_1994_9am", - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7568, - "sval": { - "sval": "1994-01-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7563, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7587, - "sval": { - "sval": "10:00", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7582, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "location": 7551, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 7543, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7625, - "name": "Jan_01_1994_11am", - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7642, - "sval": { - "sval": "1994-01-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7637, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7676, - "sval": { - "sval": "11:00-8", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7656, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timetz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "location": 7625, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 91, - "stmt_location": 7617, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7717, - "name": "Jan_01_1994_10am", - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7734, - "sval": { - "sval": "1994-01-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7729, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7768, - "sval": { - "sval": "10:00-8", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7748, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timetz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "location": 7717, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 91, - "stmt_location": 7709, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7809, - "name": "Jan_01_1994_8am", - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7826, - "sval": { - "sval": "1994-01-01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7821, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7860, - "sval": { - "sval": "11:00-5", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7840, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timetz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "location": 7809, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 90, - "stmt_location": 7801, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7953, - "relname": "timestamptz_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7901, - "name": "64", - "val": { - "A_Const": { - "location": 7901, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7913, - "name": "one_year", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d1", - }, - }, - ], - "location": 7913, - }, - }, - "location": 7916, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7927, - "sval": { - "sval": "1 year", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7918, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 76, - "stmt_location": 7892, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 8029, - "relname": "timestamptz_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7977, - "name": "64", - "val": { - "A_Const": { - "location": 7977, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7989, - "name": "one_year", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d1", - }, - }, - ], - "location": 7989, - }, - }, - "location": 7992, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8003, - "sval": { - "sval": "1 year", - }, - }, - }, - "location": -1, - "typeName": { - "location": 7994, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 75, - "stmt_location": 7969, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8090, - "name": "+01:02", - "val": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8100, - "sval": { - "sval": "01:02", - }, - }, - }, - "location": -1, - "typeName": { - "location": 8095, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 8090, - "typeName": { - "location": 8111, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 87, - "stmt_location": 8045, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8141, - "name": "02:03:00", - "val": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8155, - "sval": { - "sval": "02:03", - }, - }, - }, - "location": -1, - "typeName": { - "location": 8146, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 8141, - "typeName": { - "location": 8166, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 8133, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8194, - "name": "03:31:00", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8199, - "sval": { - "sval": "01:30", - }, - }, - }, - "location": -1, - "typeName": { - "location": 8194, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 8207, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8218, - "sval": { - "sval": "02:01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 8209, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 8186, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8248, - "name": "23:29:00", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8253, - "sval": { - "sval": "01:30", - }, - }, - }, - "location": -1, - "typeName": { - "location": 8248, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 8261, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8272, - "sval": { - "sval": "02:01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 8263, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 8240, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8302, - "name": "14:31:00", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8307, - "sval": { - "sval": "02:30", - }, - }, - }, - "location": -1, - "typeName": { - "location": 8302, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 8315, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8326, - "sval": { - "sval": "36:01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 8317, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 8294, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8356, - "name": "07:31:00", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8361, - "sval": { - "sval": "03:30", - }, - }, - }, - "location": -1, - "typeName": { - "location": 8356, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 8369, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8380, - "sval": { - "sval": "1 month 04:01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 8371, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 8348, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8418, - "name": "+00:01", - "val": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8443, - "sval": { - "sval": "01:02-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 8423, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timetz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 8418, - "typeName": { - "location": 8457, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 68, - "stmt_location": 8410, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8487, - "name": "02:03:00-08", - "val": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8501, - "sval": { - "sval": "02:03", - }, - }, - }, - "location": -1, - "typeName": { - "location": 8492, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 8487, - "typeName": { - "location": 8512, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timetz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 70, - "stmt_location": 8479, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8558, - "name": "23:29:00-08", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8578, - "sval": { - "sval": "01:30-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 8558, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timetz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 8589, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8600, - "sval": { - "sval": "02:01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 8591, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 74, - "stmt_location": 8550, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8633, - "name": "14:31:00-08", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8653, - "sval": { - "sval": "02:30-08", - }, - }, - }, - "location": -1, - "typeName": { - "location": 8633, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timetz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 8664, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8675, - "sval": { - "sval": "36:01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 8666, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 74, - "stmt_location": 8625, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9070, - "name": "07:31:00", - "val": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9085, - "sval": { - "sval": "today", - }, - }, - }, - "location": -1, - "typeName": { - "location": 9080, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 9093, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9115, - "sval": { - "sval": "05:30", - }, - }, - }, - "location": -1, - "typeName": { - "location": 9095, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timetz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - "location": 9135, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9146, - "sval": { - "sval": "02:01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 9137, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - "location": 9075, - "typeName": { - "location": 9157, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timetz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 9070, - "typeName": { - "location": 9181, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 500, - "stmt_location": 8700, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9210, - "name": "07:31:00", - "val": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9225, - "sval": { - "sval": "today", - }, - }, - }, - "location": -1, - "typeName": { - "location": 9220, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 9233, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9255, - "sval": { - "sval": "03:30", - }, - }, - }, - "location": -1, - "typeName": { - "location": 9235, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timetz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - "location": 9265, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9276, - "sval": { - "sval": "1 month 04:01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 9267, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - "location": 9215, - "typeName": { - "location": 9295, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 9210, - "typeName": { - "location": 9327, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 145, - "stmt_location": 9201, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "t", - }, - "inh": true, - "location": 9433, - "relname": "timestamp_tbl", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 9450, - "relname": "interval_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 9568, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 9570, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 9356, - "name": "t", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "String": { - "sval": "d1", - }, - }, - ], - "location": 9356, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9367, - "name": "i", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 9367, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9378, - "name": "add", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "String": { - "sval": "d1", - }, - }, - ], - "location": 9378, - }, - }, - "location": 9383, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 9385, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9400, - "name": "subtract", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "String": { - "sval": "d1", - }, - }, - ], - "location": 9400, - }, - }, - "location": 9405, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 9407, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_BETWEEN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "String": { - "sval": "d1", - }, - }, - ], - "location": 9473, - }, - }, - "location": 9478, - "name": [ - { - "String": { - "sval": "BETWEEN", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 9486, - "sval": { - "sval": "1990-01-01", - }, - }, - }, - { - "A_Const": { - "location": 9503, - "sval": { - "sval": "2001-01-01", - }, - }, - }, - ], - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_BETWEEN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 9524, - }, - }, - "location": 9529, - "name": [ - { - "String": { - "sval": "BETWEEN", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 9537, - "sval": { - "sval": "00:00", - }, - }, - }, - { - "A_Const": { - "location": 9549, - "sval": { - "sval": "23:00", - }, - }, - }, - ], - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 9520, - }, - }, - }, - }, - "stmt_len": 224, - "stmt_location": 9347, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "t", - }, - "inh": true, - "location": 9658, - "relname": "time_tbl", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 9670, - "relname": "interval_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 9696, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 9698, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 9581, - "name": "t", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 9581, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9592, - "name": "i", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 9592, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9603, - "name": "add", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 9603, - }, - }, - "location": 9608, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 9610, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9625, - "name": "subtract", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 9625, - }, - }, - "location": 9630, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 9632, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 127, - "stmt_location": 9572, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "t", - }, - "inh": true, - "location": 9786, - "relname": "timetz_tbl", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 9800, - "relname": "interval_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 9826, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 9828, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 9709, - "name": "t", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 9709, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9720, - "name": "i", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 9720, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9731, - "name": "add", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 9731, - }, - }, - "location": 9736, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 9738, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9753, - "name": "subtract", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 9753, - }, - }, - "location": 9758, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 9760, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 129, - "stmt_location": 9700, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9889, - "name": "True", - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9915, - "sval": { - "sval": "2000-11-27", - }, - }, - }, - "location": -1, - "typeName": { - "location": 9890, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9954, - "sval": { - "sval": "2000-11-28", - }, - }, - }, - "location": -1, - "typeName": { - "location": 9929, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10005, - "sval": { - "sval": "2000-11-27 12:00", - }, - }, - }, - "location": -1, - "typeName": { - "location": 9980, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10050, - "sval": { - "sval": "2000-11-30", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10025, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "overlaps", - }, - }, - ], - "location": 9970, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 243, - "stmt_location": 9830, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10083, - "name": "False", - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10109, - "sval": { - "sval": "2000-11-26", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10084, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10148, - "sval": { - "sval": "2000-11-27", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10123, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10199, - "sval": { - "sval": "2000-11-27 12:00", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10174, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10244, - "sval": { - "sval": "2000-11-30", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10219, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "overlaps", - }, - }, - ], - "location": 10164, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 194, - "stmt_location": 10074, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10278, - "name": "True", - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10304, - "sval": { - "sval": "2000-11-27", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10279, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10343, - "sval": { - "sval": "2000-11-28", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10318, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10394, - "sval": { - "sval": "2000-11-27 12:00", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10369, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10423, - "sval": { - "sval": "1 day", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10414, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "overlaps", - }, - }, - ], - "location": 10359, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 172, - "stmt_location": 10269, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10451, - "name": "False", - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10477, - "sval": { - "sval": "2000-11-27", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10452, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10500, - "sval": { - "sval": "12 hours", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10491, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10549, - "sval": { - "sval": "2000-11-27 12:00", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10524, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10594, - "sval": { - "sval": "2000-11-30", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10569, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "overlaps", - }, - }, - ], - "location": 10514, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 176, - "stmt_location": 10442, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10628, - "name": "True", - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10654, - "sval": { - "sval": "2000-11-27", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10629, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10677, - "sval": { - "sval": "12 hours", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10668, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10726, - "sval": { - "sval": "2000-11-27", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10701, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10749, - "sval": { - "sval": "12 hours", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10740, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "overlaps", - }, - }, - ], - "location": 10691, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 151, - "stmt_location": 10619, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10780, - "name": "False", - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10806, - "sval": { - "sval": "2000-11-27", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10781, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10829, - "sval": { - "sval": "12 hours", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10820, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10878, - "sval": { - "sval": "2000-11-27 12:00", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10853, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10907, - "sval": { - "sval": "12 hours", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10898, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "overlaps", - }, - }, - ], - "location": 10843, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 158, - "stmt_location": 10771, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10965, - "name": "True", - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10994, - "sval": { - "sval": "2000-11-27", - }, - }, - }, - "location": -1, - "typeName": { - "location": 10966, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 11036, - "sval": { - "sval": "2000-11-28", - }, - }, - }, - "location": -1, - "typeName": { - "location": 11008, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 11090, - "sval": { - "sval": "2000-11-27 12:00", - }, - }, - }, - "location": -1, - "typeName": { - "location": 11062, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 11138, - "sval": { - "sval": "2000-11-30", - }, - }, - }, - "location": -1, - "typeName": { - "location": 11110, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "overlaps", - }, - }, - ], - "location": 11052, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 231, - "stmt_location": 10930, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11171, - "name": "False", - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 11200, - "sval": { - "sval": "2000-11-26", - }, - }, - }, - "location": -1, - "typeName": { - "location": 11172, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 11242, - "sval": { - "sval": "2000-11-27", - }, - }, - }, - "location": -1, - "typeName": { - "location": 11214, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 11296, - "sval": { - "sval": "2000-11-27 12:00", - }, - }, - }, - "location": -1, - "typeName": { - "location": 11268, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 11344, - "sval": { - "sval": "2000-11-30", - }, - }, - }, - "location": -1, - "typeName": { - "location": 11316, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "overlaps", - }, - }, - ], - "location": 11258, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 206, - "stmt_location": 11162, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11378, - "name": "True", - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 11407, - "sval": { - "sval": "2000-11-27", - }, - }, - }, - "location": -1, - "typeName": { - "location": 11379, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 11449, - "sval": { - "sval": "2000-11-28", - }, - }, - }, - "location": -1, - "typeName": { - "location": 11421, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 11503, - "sval": { - "sval": "2000-11-27 12:00", - }, - }, - }, - "location": -1, - "typeName": { - "location": 11475, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 11532, - "sval": { - "sval": "1 day", - }, - }, - }, - "location": -1, - "typeName": { - "location": 11523, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "overlaps", - }, - }, - ], - "location": 11465, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 181, - "stmt_location": 11369, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11560, - "name": "False", - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 11589, - "sval": { - "sval": "2000-11-27", - }, - }, - }, - "location": -1, - "typeName": { - "location": 11561, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 11612, - "sval": { - "sval": "12 hours", - }, - }, - }, - "location": -1, - "typeName": { - "location": 11603, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 11664, - "sval": { - "sval": "2000-11-27 12:00", - }, - }, - }, - "location": -1, - "typeName": { - "location": 11636, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 11712, - "sval": { - "sval": "2000-11-30", - }, - }, - }, - "location": -1, - "typeName": { - "location": 11684, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "overlaps", - }, - }, - ], - "location": 11626, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 185, - "stmt_location": 11551, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11746, - "name": "True", - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 11775, - "sval": { - "sval": "2000-11-27", - }, - }, - }, - "location": -1, - "typeName": { - "location": 11747, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 11798, - "sval": { - "sval": "12 hours", - }, - }, - }, - "location": -1, - "typeName": { - "location": 11789, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 11850, - "sval": { - "sval": "2000-11-27", - }, - }, - }, - "location": -1, - "typeName": { - "location": 11822, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 11873, - "sval": { - "sval": "12 hours", - }, - }, - }, - "location": -1, - "typeName": { - "location": 11864, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "overlaps", - }, - }, - ], - "location": 11812, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 157, - "stmt_location": 11737, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11904, - "name": "False", - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 11933, - "sval": { - "sval": "2000-11-27", - }, - }, - }, - "location": -1, - "typeName": { - "location": 11905, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 11956, - "sval": { - "sval": "12 hours", - }, - }, - }, - "location": -1, - "typeName": { - "location": 11947, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 12008, - "sval": { - "sval": "2000-11-27 12:00", - }, - }, - }, - "location": -1, - "typeName": { - "location": 11980, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 12037, - "sval": { - "sval": "12 hours", - }, - }, - }, - "location": -1, - "typeName": { - "location": 12028, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "overlaps", - }, - }, - ], - "location": 11970, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 164, - "stmt_location": 11895, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12095, - "name": "True", - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 12101, - "sval": { - "sval": "00:00", - }, - }, - }, - "location": -1, - "typeName": { - "location": 12096, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 12115, - "sval": { - "sval": "01:00", - }, - }, - }, - "location": -1, - "typeName": { - "location": 12110, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 12141, - "sval": { - "sval": "00:30", - }, - }, - }, - "location": -1, - "typeName": { - "location": 12136, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 12155, - "sval": { - "sval": "01:30", - }, - }, - }, - "location": -1, - "typeName": { - "location": 12150, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "overlaps", - }, - }, - ], - "location": 12126, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 113, - "stmt_location": 12060, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12183, - "name": "True", - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 12189, - "sval": { - "sval": "00:00", - }, - }, - }, - "location": -1, - "typeName": { - "location": 12184, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 12207, - "sval": { - "sval": "1 hour", - }, - }, - }, - "location": -1, - "typeName": { - "location": 12198, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 12234, - "sval": { - "sval": "00:30", - }, - }, - }, - "location": -1, - "typeName": { - "location": 12229, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 12252, - "sval": { - "sval": "1 hour", - }, - }, - }, - "location": -1, - "typeName": { - "location": 12243, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "overlaps", - }, - }, - ], - "location": 12219, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 97, - "stmt_location": 12174, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12281, - "name": "False", - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 12287, - "sval": { - "sval": "00:00", - }, - }, - }, - "location": -1, - "typeName": { - "location": 12282, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 12305, - "sval": { - "sval": "1 hour", - }, - }, - }, - "location": -1, - "typeName": { - "location": 12296, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 12332, - "sval": { - "sval": "01:30", - }, - }, - }, - "location": -1, - "typeName": { - "location": 12327, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 12350, - "sval": { - "sval": "1 hour", - }, - }, - }, - "location": -1, - "typeName": { - "location": 12341, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "overlaps", - }, - }, - ], - "location": 12317, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 98, - "stmt_location": 12272, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12580, - "name": "False", - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 12586, - "sval": { - "sval": "00:00", - }, - }, - }, - "location": -1, - "typeName": { - "location": 12581, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 12604, - "sval": { - "sval": "1 hour", - }, - }, - }, - "location": -1, - "typeName": { - "location": 12595, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 12631, - "sval": { - "sval": "01:30", - }, - }, - }, - "location": -1, - "typeName": { - "location": 12626, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 12649, - "sval": { - "sval": "1 day", - }, - }, - }, - "location": -1, - "typeName": { - "location": 12640, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_SQL_SYNTAX", - "funcname": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "overlaps", - }, - }, - ], - "location": 12616, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 297, - "stmt_location": 12371, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 12684, - "relname": "temp_timestamp", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 12700, - "typeName": { - "location": 12703, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 12669, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 12795, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 12779, - "relname": "temp_timestamp", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 12816, - "relname": "timestamp_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12808, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d1", - }, - }, - ], - "location": 12808, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_BETWEEN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d1", - }, - }, - ], - "location": 12838, - }, - }, - "location": 12841, - "name": [ - { - "String": { - "sval": "BETWEEN", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 12849, - "sval": { - "sval": "13-jun-1957", - }, - }, - }, - { - "A_Const": { - "location": 12867, - "sval": { - "sval": "1-jan-1997", - }, - }, - }, - ], - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_BETWEEN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d1", - }, - }, - ], - "location": 12886, - }, - }, - "location": 12889, - "name": [ - { - "String": { - "sval": "BETWEEN", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 12897, - "sval": { - "sval": "1-jan-1999", - }, - }, - }, - { - "A_Const": { - "location": 12914, - "sval": { - "sval": "1-jan-2010", - }, - }, - }, - ], - }, - }, - }, - }, - ], - "boolop": "OR_EXPR", - "location": 12883, - }, - }, - }, - }, - }, - }, - "stmt_len": 197, - "stmt_location": 12729, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 12973, - "relname": "temp_timestamp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "timestamp", - }, - }, - ], - "location": 12999, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 12936, - "name": "16", - "val": { - "A_Const": { - "location": 12936, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 12948, - "name": "timestamp", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 12948, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 83, - "stmt_location": 12927, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "d", - }, - "inh": true, - "location": 13101, - "relname": "temp_timestamp", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "t", - }, - "inh": true, - "location": 13119, - "relname": "interval_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "plus", - }, - }, - ], - "location": 13145, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "timestamp", - }, - }, - ], - "location": 13151, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "interval", - }, - }, - ], - "location": 13164, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 13020, - "name": "160", - "val": { - "A_Const": { - "location": 13020, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13033, - "name": "timestamp", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 13033, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13054, - "name": "interval", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 13054, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13074, - "name": "plus", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 13074, - }, - }, - "location": 13079, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 13081, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 163, - "stmt_location": 13011, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "d", - }, - "inh": true, - "location": 13266, - "relname": "temp_timestamp", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "t", - }, - "inh": true, - "location": 13284, - "relname": "interval_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "minus", - }, - }, - ], - "location": 13333, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "timestamp", - }, - }, - ], - "location": 13340, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "interval", - }, - }, - ], - "location": 13353, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 13184, - "name": "160", - "val": { - "A_Const": { - "location": 13184, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13197, - "name": "timestamp", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 13197, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13218, - "name": "interval", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 13218, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13238, - "name": "minus", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 13238, - }, - }, - "location": 13243, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 13245, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 13316, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "isfinite", - }, - }, - ], - "location": 13307, - }, - }, - }, - }, - "stmt_len": 188, - "stmt_location": 13175, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "d", - }, - "inh": true, - "location": 13553, - "relname": "temp_timestamp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "difference", - }, - }, - ], - "location": 13581, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 13373, - "name": "16", - "val": { - "A_Const": { - "location": 13373, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13385, - "name": "timestamp", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 13385, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13409, - "name": "gpstime_zero", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 13434, - "sval": { - "sval": "1980-01-06 00:00 GMT", - }, - }, - }, - "location": -1, - "typeName": { - "location": 13409, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13477, - "name": "difference", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 13477, - }, - }, - "location": 13482, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 13509, - "sval": { - "sval": "1980-01-06 00:00 GMT", - }, - }, - }, - "location": -1, - "typeName": { - "location": 13484, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 227, - "stmt_location": 13364, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "d1", - }, - "inh": true, - "location": 13691, - "relname": "temp_timestamp", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "d2", - }, - "inh": true, - "location": 13710, - "relname": "temp_timestamp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "timestamp1", - }, - }, - ], - "location": 13739, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "timestamp2", - }, - }, - ], - "location": 13751, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "difference", - }, - }, - ], - "location": 13763, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 13601, - "name": "226", - "val": { - "A_Const": { - "location": 13601, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13614, - "name": "timestamp1", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 13614, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13635, - "name": "timestamp2", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d2", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 13635, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13656, - "name": "difference", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 13656, - }, - }, - "location": 13662, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d2", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 13664, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 181, - "stmt_location": 13592, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 13894, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 13907, - "relname": "reltime_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "abstime", - }, - }, - ], - "location": 14007, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "reltime", - }, - }, - ], - "location": 14016, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 13821, - "name": "ten", - "val": { - "A_Const": { - "location": 13821, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13832, - "name": "abstime", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "abstime_tbl", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 13832, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13859, - "name": "reltime", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "reltime_tbl", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 13859, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "abstime_tbl", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 13929, - }, - }, - "location": 13944, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "reltime_tbl", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 13946, - }, - }, - }, - }, - "location": 13962, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 13972, - "sval": { - "sval": "Jan 14 14:00:00 1971", - }, - }, - }, - "location": -1, - "typeName": { - "location": 13964, - "names": [ - { - "String": { - "sval": "abstime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 249, - "stmt_location": 13774, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 14231, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14211, - "name": "three", - "val": { - "A_Const": { - "location": 14211, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 14224, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 14224, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "abstime_tbl", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 14253, - }, - }, - "location": 14268, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 14278, - "sval": { - "sval": "@ 3 year", - }, - }, - }, - "location": -1, - "typeName": { - "location": 14270, - "names": [ - { - "String": { - "sval": "reltime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - "location": 14314, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 14324, - "sval": { - "sval": "Jan 14 14:00:00 1977", - }, - }, - }, - "location": -1, - "typeName": { - "location": 14316, - "names": [ - { - "String": { - "sval": "abstime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 322, - "stmt_location": 14024, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 14376, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14356, - "name": "three", - "val": { - "A_Const": { - "location": 14356, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 14369, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 14369, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "abstime_tbl", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 14399, - }, - }, - "location": 14414, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 14424, - "sval": { - "sval": "@ 3 year ago", - }, - }, - }, - "location": -1, - "typeName": { - "location": 14416, - "names": [ - { - "String": { - "sval": "reltime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - "location": 14460, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 14470, - "sval": { - "sval": "Jan 14 14:00:00 1971", - }, - }, - }, - "location": -1, - "typeName": { - "location": 14462, - "names": [ - { - "String": { - "sval": "abstime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 145, - "stmt_location": 14347, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 14522, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14502, - "name": "three", - "val": { - "A_Const": { - "location": 14502, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 14515, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 14515, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "abstime_tbl", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 14545, - }, - }, - "location": 14560, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 14570, - "sval": { - "sval": "@ 3 year", - }, - }, - }, - "location": -1, - "typeName": { - "location": 14562, - "names": [ - { - "String": { - "sval": "reltime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - "location": 14608, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 14618, - "sval": { - "sval": "Jan 14 14:00:00 1971", - }, - }, - }, - "location": -1, - "typeName": { - "location": 14610, - "names": [ - { - "String": { - "sval": "abstime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 147, - "stmt_location": 14493, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 14670, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14650, - "name": "three", - "val": { - "A_Const": { - "location": 14650, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 14663, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 14663, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "abstime_tbl", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 14693, - }, - }, - "location": 14708, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 14718, - "sval": { - "sval": "@ 3 year ago", - }, - }, - }, - "location": -1, - "typeName": { - "location": 14710, - "names": [ - { - "String": { - "sval": "reltime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - "location": 14757, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 14767, - "sval": { - "sval": "Jan 14 14:00:00 1977", - }, - }, - }, - "location": -1, - "typeName": { - "location": 14759, - "names": [ - { - "String": { - "sval": "abstime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 148, - "stmt_location": 14641, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 14876, - "relname": "temp_timestamp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "date", - }, - }, - ], - "location": 14932, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "timestamp", - }, - }, - ], - "location": 14938, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 14821, - "name": "16", - "val": { - "A_Const": { - "location": 14821, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 14833, - "name": "timestamp", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 14833, - }, - }, - }, - }, - { - "ResTarget": { - "location": 14852, - "name": "date", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 14857, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "date", - }, - }, - ], - "location": 14852, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 14899, - }, - }, - "location": 14902, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 14915, - "sval": { - "sval": "now", - }, - }, - }, - "location": -1, - "typeName": { - "location": 14905, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 159, - "stmt_location": 14790, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 15020, - "relname": "temp_timestamp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "abstime", - }, - }, - ], - "location": 15046, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 14959, - "name": "16", - "val": { - "A_Const": { - "location": 14959, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 14971, - "name": "timestamp", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 14971, - }, - }, - }, - }, - { - "ResTarget": { - "location": 14990, - "name": "abstime", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 14998, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "abstime", - }, - }, - ], - "location": 14990, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 103, - "stmt_location": 14950, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 15114, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "date", - }, - }, - ], - "location": 15182, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "abstime", - }, - }, - ], - "location": 15188, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 15063, - "name": "four", - "val": { - "A_Const": { - "location": 15063, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 15075, - "name": "abstime", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 15075, - }, - }, - }, - }, - { - "ResTarget": { - "location": 15090, - "name": "date", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 15095, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "date", - }, - }, - ], - "location": 15090, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 15143, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "isfinite", - }, - }, - ], - "location": 15134, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 15151, - }, - }, - "location": 15154, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 15165, - "sval": { - "sval": "now", - }, - }, - }, - "location": -1, - "typeName": { - "location": 15157, - "names": [ - { - "String": { - "sval": "abstime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 15147, - }, - }, - }, - }, - "stmt_len": 141, - "stmt_location": 15054, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 15265, - "relname": "timestamp_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15205, - "name": "two", - "val": { - "A_Const": { - "location": 15205, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 15216, - "name": "timestamp", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d1", - }, - }, - ], - "location": 15216, - }, - }, - }, - }, - { - "ResTarget": { - "location": 15235, - "name": "abstime", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d1", - }, - }, - ], - "location": 15243, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "abstime", - }, - }, - ], - "location": 15235, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d1", - }, - }, - ], - "location": 15298, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "isfinite", - }, - }, - ], - "location": 15289, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 15285, - }, - }, - }, - }, - "stmt_len": 105, - "stmt_location": 15196, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 15383, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15311, - "name": "three", - "val": { - "A_Const": { - "location": 15311, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 15324, - "name": "abstime", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 15324, - }, - }, - }, - }, - { - "ResTarget": { - "location": 15339, - "name": "timestamp", - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 15344, - }, - }, - "location": 15339, - "typeName": { - "location": 15350, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 15414, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "isfinite", - }, - }, - ], - "location": 15405, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 15401, - }, - }, - }, - }, - "stmt_len": 115, - "stmt_location": 15302, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 15484, - "relname": "interval_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15427, - "name": "ten", - "val": { - "A_Const": { - "location": 15427, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 15438, - "name": "interval", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 15438, - }, - }, - }, - }, - { - "ResTarget": { - "location": 15454, - "name": "reltime", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 15462, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "reltime", - }, - }, - ], - "location": 15454, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 78, - "stmt_location": 15418, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 15572, - "relname": "reltime_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15506, - "name": "six", - "val": { - "A_Const": { - "location": 15506, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 15517, - "name": "reltime", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 15517, - }, - }, - }, - }, - { - "ResTarget": { - "location": 15532, - "name": "interval", - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 15537, - }, - }, - "location": 15532, - "typeName": { - "location": 15543, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 86, - "stmt_location": 15497, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "temp_timestamp", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 27, - "stmt_location": 15584, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 15649, - "sval": { - "sval": "US,Postgres", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "datestyle", - }, - }, - "stmt_len": 50, - "stmt_location": 15612, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 16, - "stmt_location": 15663, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 15724, - "relname": "timestamp_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15689, - "name": "64", - "val": { - "A_Const": { - "location": 15689, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 15701, - "name": "us_postgres", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d1", - }, - }, - ], - "location": 15701, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 15680, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 15783, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15747, - "name": "seven", - "val": { - "A_Const": { - "location": 15747, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 15760, - "name": "us_postgres", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 15760, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 15738, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 15814, - "sval": { - "sval": "US,ISO", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "datestyle", - }, - }, - "stmt_len": 27, - "stmt_location": 15795, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 15862, - "relname": "timestamp_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15832, - "name": "64", - "val": { - "A_Const": { - "location": 15832, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 15844, - "name": "us_iso", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d1", - }, - }, - ], - "location": 15844, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 15823, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 15916, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15885, - "name": "seven", - "val": { - "A_Const": { - "location": 15885, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 15898, - "name": "us_iso", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 15898, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 15876, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 15947, - "sval": { - "sval": "US,SQL", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "datestyle", - }, - }, - "stmt_len": 27, - "stmt_location": 15928, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 16, - "stmt_location": 15956, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 16012, - "relname": "timestamp_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15982, - "name": "64", - "val": { - "A_Const": { - "location": 15982, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 15994, - "name": "us_sql", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d1", - }, - }, - ], - "location": 15994, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 15973, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 16066, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16035, - "name": "seven", - "val": { - "A_Const": { - "location": 16035, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 16048, - "name": "us_sql", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 16048, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 16026, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 16097, - "sval": { - "sval": "European,Postgres", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "datestyle", - }, - }, - "stmt_len": 38, - "stmt_location": 16078, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 16, - "stmt_location": 16117, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 16148, - "relname": "timestamp_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 16169, - "sval": { - "sval": "13/06/1957", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 48, - "stmt_location": 16134, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 16213, - "relname": "timestamp_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16192, - "name": "one", - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 16192, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d1", - }, - }, - ], - "location": 16233, - }, - }, - "location": 16236, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 16238, - "sval": { - "sval": "Jun 13 1957", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 68, - "stmt_location": 16183, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 16302, - "relname": "timestamp_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16261, - "name": "65", - "val": { - "A_Const": { - "location": 16261, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 16273, - "name": "european_postgres", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d1", - }, - }, - ], - "location": 16273, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 16252, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 16367, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16325, - "name": "seven", - "val": { - "A_Const": { - "location": 16325, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 16338, - "name": "european_postgres", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 16338, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 16316, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 16398, - "sval": { - "sval": "European,ISO", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "datestyle", - }, - }, - "stmt_len": 33, - "stmt_location": 16379, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 16, - "stmt_location": 16413, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 16475, - "relname": "timestamp_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16439, - "name": "65", - "val": { - "A_Const": { - "location": 16439, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 16451, - "name": "european_iso", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d1", - }, - }, - ], - "location": 16451, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 58, - "stmt_location": 16430, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 16535, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16498, - "name": "seven", - "val": { - "A_Const": { - "location": 16498, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 16511, - "name": "european_iso", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 16511, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 16489, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 16566, - "sval": { - "sval": "European,SQL", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "datestyle", - }, - }, - "stmt_len": 33, - "stmt_location": 16547, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "datestyle", - }, - }, - "stmt_len": 16, - "stmt_location": 16581, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 16643, - "relname": "timestamp_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16607, - "name": "65", - "val": { - "A_Const": { - "location": 16607, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 16619, - "name": "european_sql", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d1", - }, - }, - ], - "location": 16619, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 58, - "stmt_location": 16598, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 16703, - "relname": "abstime_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16666, - "name": "seven", - "val": { - "A_Const": { - "location": 16666, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 16679, - "name": "european_sql", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 16679, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 16657, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "datestyle", - }, - }, - "stmt_len": 17, - "stmt_location": 16715, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16767, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 16780, - "sval": { - "sval": "0097/Feb/16 --> 08:14:30", - }, - }, - }, - { - "A_Const": { - "location": 16808, - "sval": { - "sval": "YYYY/Mon/DD --> HH:MI:SS", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 16767, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 102, - "stmt_location": 16733, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16845, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 16858, - "sval": { - "sval": "97/2/16 8:14:30", - }, - }, - }, - { - "A_Const": { - "location": 16877, - "sval": { - "sval": "FMYYYY/FMMM/FMDD FMHH:FMMI:FMSS", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 16845, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 75, - "stmt_location": 16836, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16921, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 16934, - "sval": { - "sval": "1985 January 12", - }, - }, - }, - { - "A_Const": { - "location": 16953, - "sval": { - "sval": "YYYY FMMonth DD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 16921, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 16912, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16981, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 16994, - "sval": { - "sval": "My birthday-> Year: 1976, Month: May, Day: 16", - }, - }, - }, - { - "A_Const": { - "location": 17063, - "sval": { - "sval": ""My birthday-> Year" YYYY, "Month:" FMMonth, "Day:" DD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 16981, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 148, - "stmt_location": 16972, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17130, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 17143, - "sval": { - "sval": "1,582nd VIII 21", - }, - }, - }, - { - "A_Const": { - "location": 17162, - "sval": { - "sval": "Y,YYYth FMRM DD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 17130, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 17121, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17190, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 17203, - "sval": { - "sval": "15 "text between quote marks" 98 54 45", - }, - }, - }, - { - "A_Const": { - "location": 17265, - "sval": { - "sval": "HH24 "\\text between quote marks\\"" YY MI SS", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 17190, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 133, - "stmt_location": 17181, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17324, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 17337, - "sval": { - "sval": "05121445482000", - }, - }, - }, - { - "A_Const": { - "location": 17355, - "sval": { - "sval": "MMDDHH24MISSYYYY", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 17324, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 17315, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17384, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 17397, - "sval": { - "sval": "2000January09Sunday", - }, - }, - }, - { - "A_Const": { - "location": 17420, - "sval": { - "sval": "YYYYFMMonthDDFMDay", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 17384, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 66, - "stmt_location": 17375, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17451, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 17464, - "sval": { - "sval": "97/Feb/16", - }, - }, - }, - { - "A_Const": { - "location": 17477, - "sval": { - "sval": "YYMonDD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 17451, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 17442, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17497, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 17510, - "sval": { - "sval": "19971116", - }, - }, - }, - { - "A_Const": { - "location": 17522, - "sval": { - "sval": "YYYYMMDD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 17497, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 17488, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17543, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 17556, - "sval": { - "sval": "20000-1116", - }, - }, - }, - { - "A_Const": { - "location": 17570, - "sval": { - "sval": "YYYY-MMDD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 17543, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 48, - "stmt_location": 17534, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17592, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 17605, - "sval": { - "sval": "9-1116", - }, - }, - }, - { - "A_Const": { - "location": 17615, - "sval": { - "sval": "Y-MMDD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 17592, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 41, - "stmt_location": 17583, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17634, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 17647, - "sval": { - "sval": "95-1116", - }, - }, - }, - { - "A_Const": { - "location": 17658, - "sval": { - "sval": "YY-MMDD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 17634, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 43, - "stmt_location": 17625, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17678, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 17691, - "sval": { - "sval": "995-1116", - }, - }, - }, - { - "A_Const": { - "location": 17703, - "sval": { - "sval": "YYY-MMDD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 17678, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 17669, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17724, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 17737, - "sval": { - "sval": "2005426", - }, - }, - }, - { - "A_Const": { - "location": 17748, - "sval": { - "sval": "YYYYWWD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 17724, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 43, - "stmt_location": 17715, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17768, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 17781, - "sval": { - "sval": "2005300", - }, - }, - }, - { - "A_Const": { - "location": 17792, - "sval": { - "sval": "YYYYDDD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 17768, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 43, - "stmt_location": 17759, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17812, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 17825, - "sval": { - "sval": "2005527", - }, - }, - }, - { - "A_Const": { - "location": 17836, - "sval": { - "sval": "IYYYIWID", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 17812, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 17803, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17857, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 17870, - "sval": { - "sval": "005527", - }, - }, - }, - { - "A_Const": { - "location": 17880, - "sval": { - "sval": "IYYIWID", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 17857, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 17848, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17900, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 17913, - "sval": { - "sval": "05527", - }, - }, - }, - { - "A_Const": { - "location": 17922, - "sval": { - "sval": "IYIWID", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 17900, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 17891, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17941, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 17954, - "sval": { - "sval": "5527", - }, - }, - }, - { - "A_Const": { - "location": 17962, - "sval": { - "sval": "IIWID", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 17941, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 17932, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17980, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 17993, - "sval": { - "sval": "2005364", - }, - }, - }, - { - "A_Const": { - "location": 18004, - "sval": { - "sval": "IYYYIDDD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 17980, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 17971, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18025, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 18038, - "sval": { - "sval": "20050302", - }, - }, - }, - { - "A_Const": { - "location": 18050, - "sval": { - "sval": "YYYYMMDD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 18025, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 18016, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18071, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 18084, - "sval": { - "sval": "2005 03 02", - }, - }, - }, - { - "A_Const": { - "location": 18098, - "sval": { - "sval": "YYYYMMDD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 18071, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 18062, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18119, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 18132, - "sval": { - "sval": " 2005 03 02", - }, - }, - }, - { - "A_Const": { - "location": 18147, - "sval": { - "sval": "YYYYMMDD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 18119, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 48, - "stmt_location": 18110, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18168, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 18181, - "sval": { - "sval": " 20050302", - }, - }, - }, - { - "A_Const": { - "location": 18195, - "sval": { - "sval": "YYYYMMDD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 18168, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 18159, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18283, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 18296, - "sval": { - "sval": "2011-12-18 23:38:15", - }, - }, - }, - { - "A_Const": { - "location": 18319, - "sval": { - "sval": "YYYY-MM-DD HH24:MI:SS", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 18283, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 137, - "stmt_location": 18207, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18353, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 18366, - "sval": { - "sval": "2011-12-18 23:38:15", - }, - }, - }, - { - "A_Const": { - "location": 18390, - "sval": { - "sval": "YYYY-MM-DD HH24:MI:SS", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 18353, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 70, - "stmt_location": 18345, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18424, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 18437, - "sval": { - "sval": "2011-12-18 23:38:15", - }, - }, - }, - { - "A_Const": { - "location": 18462, - "sval": { - "sval": "YYYY-MM-DD HH24:MI:SS", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 18424, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 71, - "stmt_location": 18416, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18497, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 18510, - "sval": { - "sval": "2011-12-18 23:38:15", - }, - }, - }, - { - "A_Const": { - "location": 18534, - "sval": { - "sval": "YYYY-MM-DD HH24:MI:SS", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 18497, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 70, - "stmt_location": 18488, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18567, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 18580, - "sval": { - "sval": "2011-12-18 23:38:15", - }, - }, - }, - { - "A_Const": { - "location": 18604, - "sval": { - "sval": "YYYY-MM-DD HH24:MI:SS", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 18567, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 70, - "stmt_location": 18559, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18638, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 18651, - "sval": { - "sval": "2011-12-18 23:38:15", - }, - }, - }, - { - "A_Const": { - "location": 18675, - "sval": { - "sval": "YYYY-MM-DD HH24:MI:SS", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 18638, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 71, - "stmt_location": 18630, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18711, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 18719, - "sval": { - "sval": "2011 12 18", - }, - }, - }, - { - "A_Const": { - "location": 18734, - "sval": { - "sval": "YYYY MM DD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_date", - }, - }, - ], - "location": 18711, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 18702, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18756, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 18764, - "sval": { - "sval": "2011 12 18", - }, - }, - }, - { - "A_Const": { - "location": 18779, - "sval": { - "sval": "YYYY MM DD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_date", - }, - }, - ], - "location": 18756, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 18748, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18802, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 18810, - "sval": { - "sval": "2011 12 18", - }, - }, - }, - { - "A_Const": { - "location": 18825, - "sval": { - "sval": "YYYY MM DD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_date", - }, - }, - ], - "location": 18802, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 18794, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18850, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 18858, - "sval": { - "sval": "2011 12 18", - }, - }, - }, - { - "A_Const": { - "location": 18872, - "sval": { - "sval": "YYYY MM DD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_date", - }, - }, - ], - "location": 18850, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 18841, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18895, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 18903, - "sval": { - "sval": "2011 12 18", - }, - }, - }, - { - "A_Const": { - "location": 18918, - "sval": { - "sval": "YYYY MM DD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_date", - }, - }, - ], - "location": 18895, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 18887, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18941, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 18949, - "sval": { - "sval": "2011 12 18", - }, - }, - }, - { - "A_Const": { - "location": 18965, - "sval": { - "sval": "YYYY MM DD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_date", - }, - }, - ], - "location": 18941, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 18933, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 19113, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 19126, - "sval": { - "sval": "2005527", - }, - }, - }, - { - "A_Const": { - "location": 19137, - "sval": { - "sval": "YYYYIWID", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 19113, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 168, - "stmt_location": 18980, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 19207, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 19220, - "sval": { - "sval": "19971", - }, - }, - }, - { - "A_Const": { - "location": 19229, - "sval": { - "sval": "YYYYMMDD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 19207, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 91, - "stmt_location": 19149, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 19302, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 19315, - "sval": { - "sval": "19971)24", - }, - }, - }, - { - "A_Const": { - "location": 19327, - "sval": { - "sval": "YYYYMMDD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 19302, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 97, - "stmt_location": 19241, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 19369, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 19382, - "sval": { - "sval": "1997-11-Jan-16", - }, - }, - }, - { - "A_Const": { - "location": 19400, - "sval": { - "sval": "YYYY-MM-Mon-DD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 19369, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 78, - "stmt_location": 19339, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 19449, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 19462, - "sval": { - "sval": "199711xy", - }, - }, - }, - { - "A_Const": { - "location": 19474, - "sval": { - "sval": "YYYYMMDD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 19449, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 67, - "stmt_location": 19418, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 19532, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 19545, - "sval": { - "sval": "10000000000", - }, - }, - }, - { - "A_Const": { - "location": 19560, - "sval": { - "sval": "FMYYYY", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_timestamp", - }, - }, - ], - "location": 19532, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 83, - "stmt_location": 19486, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 19668, - "sval": { - "sval": "America/New_York", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "timezone", - }, - }, - "stmt_len": 116, - "stmt_location": 19570, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 19702, - "sval": { - "sval": "-1.5", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "timezone", - }, - }, - "stmt_len": 21, - "stmt_location": 19687, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableShowStmt": { - "name": "timezone", - }, - }, - "stmt_len": 16, - "stmt_location": 19709, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 19735, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 19735, - "sval": { - "sval": "2012-12-12 12:00", - }, - }, - }, - "location": 19753, - "typeName": { - "location": 19755, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 19726, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 19775, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 19775, - "sval": { - "sval": "2012-12-12 12:00 America/New_York", - }, - }, - }, - "location": 19810, - "typeName": { - "location": 19812, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 19767, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 19833, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 19841, - "sval": { - "sval": "2012-12-12 12:00", - }, - }, - }, - "location": 19859, - "typeName": { - "location": 19861, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 19874, - "sval": { - "sval": "YYYY-MM-DD HH:MI:SS TZ", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_char", - }, - }, - ], - "location": 19833, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 75, - "stmt_location": 19824, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "timezone", - }, - }, - "stmt_len": 17, - "stmt_location": 19900, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/hs_primary_extremes.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "hs_extreme", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 89, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 104, - "relname": "hs_extreme", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "col1", - "is_local": true, - "location": 116, - "typeName": { - "location": 121, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 90, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "hs_subxids", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 195, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " - BEGIN - IF n <= 0 THEN RETURN; END IF; - INSERT INTO hs_extreme VALUES (n); - PERFORM hs_subxids(n - 1); - RETURN; - EXCEPTION WHEN raise_exception THEN NULL; END; -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 212, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 173, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "n", - }, - }, - ], - "replace": true, - "returnType": { - "location": 190, - "names": [ - { - "String": { - "sval": "void", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 276, - "stmt_location": 130, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 7, - "stmt_location": 407, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 423, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 257, - }, - "location": 434, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "hs_subxids", - }, - }, - ], - "location": 423, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 415, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 439, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 6, - "stmt_location": 449, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 464, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 257, - }, - "location": 475, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "hs_subxids", - }, - }, - ], - "location": 464, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 456, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 7, - "stmt_location": 480, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 516, - "sval": { - "sval": "warning", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "client_min_messages", - }, - }, - "stmt_len": 37, - "stmt_location": 488, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "hs_locks_create", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 596, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " - BEGIN - IF n <= 0 THEN - CHECKPOINT; - RETURN; - END IF; - EXECUTE 'CREATE TABLE hs_locks_' || n::text || ' ()'; - PERFORM hs_locks_create(n - 1); - RETURN; - EXCEPTION WHEN raise_exception THEN NULL; END; -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 613, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 574, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "n", - }, - }, - ], - "replace": true, - "returnType": { - "location": 591, - "names": [ - { - "String": { - "sval": "void", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 324, - "stmt_location": 526, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "hs_locks_drop", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 919, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " - BEGIN - IF n <= 0 THEN - CHECKPOINT; - RETURN; - END IF; - EXECUTE 'DROP TABLE IF EXISTS hs_locks_' || n::text; - PERFORM hs_locks_drop(n - 1); - RETURN; - EXCEPTION WHEN raise_exception THEN NULL; END; -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 936, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 897, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "n", - }, - }, - ], - "replace": true, - "returnType": { - "location": 914, - "names": [ - { - "String": { - "sval": "void", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 316, - "stmt_location": 851, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 7, - "stmt_location": 1168, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1184, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 257, - }, - "location": 1198, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "hs_locks_drop", - }, - }, - ], - "location": 1184, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 1176, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1211, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 257, - }, - "location": 1227, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "hs_locks_create", - }, - }, - ], - "location": 1211, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 1203, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1260, - "relname": "pg_locks", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1240, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 1240, - }, - }, - "location": 1249, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 257, - }, - "location": 1251, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 1232, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 1269, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 6, - "stmt_location": 1279, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1294, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 257, - }, - "location": 1308, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "hs_locks_drop", - }, - }, - ], - "location": 1294, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 1286, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1321, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 257, - }, - "location": 1337, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "hs_locks_create", - }, - }, - ], - "location": 1321, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 1313, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1370, - "relname": "pg_locks", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1350, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 1350, - }, - }, - "location": 1359, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 257, - }, - "location": 1361, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 1342, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 7, - "stmt_location": 1379, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1395, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 257, - }, - "location": 1409, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "hs_locks_drop", - }, - }, - ], - "location": 1395, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 1387, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1423, - "val": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_switch_xlog", - }, - }, - ], - "location": 1423, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 1414, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/hs_primary_setup.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "hs1", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 79, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 94, - "relname": "hs1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "col1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 112, - }, - }, - ], - "is_local": true, - "location": 99, - "typeName": { - "location": 104, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 80, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 138, - "relname": "hs1", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 150, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 27, - "stmt_location": 125, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "hs2", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 26, - "stmt_location": 153, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 194, - "relname": "hs2", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "col1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 212, - }, - }, - ], - "is_local": true, - "location": 199, - "typeName": { - "location": 204, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 180, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 238, - "relname": "hs2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 12, - }, - "location": 250, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 28, - "stmt_location": 225, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 267, - "relname": "hs2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 13, - }, - "location": 279, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 28, - "stmt_location": 254, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "hs3", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 26, - "stmt_location": 283, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 324, - "relname": "hs3", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "col1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 342, - }, - }, - ], - "is_local": true, - "location": 329, - "typeName": { - "location": 334, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 310, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 368, - "relname": "hs3", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 113, - }, - "location": 380, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 29, - "stmt_location": 355, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 398, - "relname": "hs3", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 114, - }, - "location": 410, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 29, - "stmt_location": 385, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 428, - "relname": "hs3", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 115, - }, - "location": 440, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 29, - "stmt_location": 415, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "missing_ok": true, - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "hsseq", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_SEQUENCE", - }, - }, - "stmt_len": 31, - "stmt_location": 445, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateSeqStmt": { - "sequence": { - "inh": true, - "location": 494, - "relname": "hsseq", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 22, - "stmt_location": 477, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 509, - "val": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_switch_xlog", - }, - }, - ], - "location": 509, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 500, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/hs_standby_allowed.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 104, - "relname": "hs1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 75, - "name": "should_be_1", - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 75, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 107, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 146, - "relname": "hs2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 117, - "name": "should_be_2", - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 117, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 41, - "stmt_location": 108, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 188, - "relname": "hs3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 159, - "name": "should_be_3", - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 159, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 41, - "stmt_location": 150, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/hs_standby_check.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 145, - "val": { - "CaseExpr": { - "arg": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_is_in_recovery", - }, - }, - ], - "location": 150, - }, - }, - "args": [ - { - "CaseWhen": { - "expr": { - "A_Const": { - "boolval": {}, - "location": 175, - }, - }, - "location": 170, - "result": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "location": 187, - "sval": { - "sval": "These tests are intended only for execution on a standby server that is reading ", - }, - }, - }, - "location": 270, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 274, - "sval": { - "sval": "WAL from a server upon which the regression database is already created and into ", - }, - }, - }, - }, - }, - "location": 358, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 362, - "sval": { - "sval": "which src/test/regress/sql/hs_primary_setup.sql has been run", - }, - }, - }, - }, - }, - }, - }, - ], - "defresult": { - "A_Const": { - "location": 431, - "sval": { - "sval": "Tests are running on a standby server during recovery", - }, - }, - }, - "location": 145, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 490, - "stmt_location": 0, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/hs_standby_disallowed.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 88, - "sval": { - "sval": "off", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "transaction_read_only", - }, - }, - "stmt_len": 91, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - "options": [ - { - "DefElem": { - "arg": { - "A_Const": { - "ival": {}, - "location": 112, - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "transaction_read_only", - "location": 112, - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 92, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 7, - "stmt_location": 123, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 158, - "relname": "hs1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "lockingClause": [ - { - "LockingClause": { - "strength": "LCS_FORSHARE", - "waitPolicy": "LockWaitBlock", - }, - }, - ], - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 151, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 151, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 131, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 187, - "relname": "hs1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "lockingClause": [ - { - "LockingClause": { - "strength": "LCS_FORUPDATE", - "waitPolicy": "LockWaitBlock", - }, - }, - ], - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 180, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 180, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 29, - "stmt_location": 172, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 14, - "stmt_location": 202, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 230, - "relname": "hs1", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 37, - }, - "location": 242, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 28, - "stmt_location": 217, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 246, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 6, - "stmt_location": 256, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 276, - "relname": "hs1", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col1", - }, - }, - ], - "location": 286, - }, - }, - "location": 291, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 293, - }, - }, - }, - }, - }, - }, - "stmt_len": 31, - "stmt_location": 263, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 295, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 6, - "stmt_location": 305, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 320, - "relname": "hs1", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 328, - "name": "col1", - "val": { - "A_Const": { - "isnull": true, - "location": 335, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col1", - }, - }, - ], - "location": 346, - }, - }, - "location": 351, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 353, - }, - }, - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 312, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 355, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 6, - "stmt_location": 365, - }, - }, - { - "RawStmt": { - "stmt": { - "TruncateStmt": { - "behavior": "DROP_RESTRICT", - "relations": [ - { - "RangeVar": { - "inh": true, - "location": 382, - "relname": "hs3", - "relpersistence": "p", - }, - }, - ], - }, - }, - "stmt_len": 13, - "stmt_location": 372, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 386, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 429, - "relname": "hstemp1", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "col1", - "is_local": true, - "location": 438, - "typeName": { - "location": 443, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 55, - "stmt_location": 396, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 6, - "stmt_location": 452, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "hs2", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 15, - "stmt_location": 459, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 475, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 6, - "stmt_location": 485, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 506, - "relname": "hs4", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "col1", - "is_local": true, - "location": 511, - "typeName": { - "location": 516, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 492, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 525, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 558, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 566, - "sval": { - "sval": "hsseq", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "nextval", - }, - }, - ], - "location": 558, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 535, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 46, - "stmt_location": 575, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 644, - "relname": "hs1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 630, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 630, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 622, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "gid": "foobar", - "kind": "TRANS_STMT_PREPARE", - "location": 669, - }, - }, - "stmt_len": 29, - "stmt_location": 648, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 678, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 6, - "stmt_location": 688, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 717, - "relname": "hs1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 703, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 703, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 695, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "gid": "foobar", - "kind": "TRANS_STMT_COMMIT_PREPARED", - "location": 738, - }, - }, - "stmt_len": 25, - "stmt_location": 721, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 747, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 7, - "stmt_location": 757, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 787, - "relname": "hs1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 773, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 773, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 765, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "gid": "foobar", - "kind": "TRANS_STMT_PREPARE", - "location": 812, - }, - }, - "stmt_len": 29, - "stmt_location": 791, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "gid": "foobar", - "kind": "TRANS_STMT_ROLLBACK_PREPARED", - "location": 840, - }, - }, - "stmt_len": 27, - "stmt_location": 821, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 849, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 7, - "stmt_location": 859, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 889, - "relname": "hs1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 875, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 875, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 867, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "gid": "foobar", - "kind": "TRANS_STMT_ROLLBACK_PREPARED", - "location": 912, - }, - }, - "stmt_len": 27, - "stmt_location": 893, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_ROLLBACK", - "location": -1, - }, - }, - "stmt_len": 9, - "stmt_location": 921, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 17, - "stmt_location": 931, - }, - }, - { - "RawStmt": { - "stmt": { - "LockStmt": { - "mode": 8, - "relations": [ - { - "RangeVar": { - "inh": true, - "location": 955, - "relname": "hs1", - "relpersistence": "p", - }, - }, - ], - }, - }, - "stmt_len": 9, - "stmt_location": 949, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 7, - "stmt_location": 959, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 6, - "stmt_location": 967, - }, - }, - { - "RawStmt": { - "stmt": { - "LockStmt": { - "mode": 4, - "relations": [ - { - "RangeVar": { - "inh": true, - "location": 980, - "relname": "hs1", - "relpersistence": "p", - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 974, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 7, - "stmt_location": 1015, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 6, - "stmt_location": 1023, - }, - }, - { - "RawStmt": { - "stmt": { - "LockStmt": { - "mode": 5, - "relations": [ - { - "RangeVar": { - "inh": true, - "location": 1036, - "relname": "hs1", - "relpersistence": "p", - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 1030, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 7, - "stmt_location": 1054, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 6, - "stmt_location": 1062, - }, - }, - { - "RawStmt": { - "stmt": { - "LockStmt": { - "mode": 6, - "relations": [ - { - "RangeVar": { - "inh": true, - "location": 1075, - "relname": "hs1", - "relpersistence": "p", - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 1069, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 7, - "stmt_location": 1107, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 6, - "stmt_location": 1115, - }, - }, - { - "RawStmt": { - "stmt": { - "LockStmt": { - "mode": 7, - "relations": [ - { - "RangeVar": { - "inh": true, - "location": 1128, - "relname": "hs1", - "relpersistence": "p", - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 1122, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 7, - "stmt_location": 1150, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_BEGIN", - "location": -1, - }, - }, - "stmt_len": 6, - "stmt_location": 1158, - }, - }, - { - "RawStmt": { - "stmt": { - "LockStmt": { - "mode": 8, - "relations": [ - { - "RangeVar": { - "inh": true, - "location": 1171, - "relname": "hs1", - "relpersistence": "p", - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 1165, - }, - }, - { - "RawStmt": { - "stmt": { - "TransactionStmt": { - "kind": "TRANS_STMT_COMMIT", - "location": -1, - }, - }, - "stmt_len": 7, - "stmt_location": 1200, - }, - }, - { - "RawStmt": { - "stmt": { - "ListenStmt": { - "conditionname": "a", - }, - }, - "stmt_len": 20, - "stmt_location": 1208, - }, - }, - { - "RawStmt": { - "stmt": { - "NotifyStmt": { - "conditionname": "a", - }, - }, - "stmt_len": 9, - "stmt_location": 1229, - }, - }, - { - "RawStmt": { - "stmt": { - "UnlistenStmt": { - "conditionname": "a", - }, - }, - "stmt_len": 11, - "stmt_location": 1239, - }, - }, - { - "RawStmt": { - "stmt": { - "UnlistenStmt": {}, - }, - "stmt_len": 11, - "stmt_location": 1251, - }, - }, - { - "RawStmt": { - "stmt": { - "VacuumStmt": { - "rels": [ - { - "VacuumRelation": { - "relation": { - "inh": true, - "location": 1297, - "relname": "hs1", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 1263, - }, - }, - { - "RawStmt": { - "stmt": { - "VacuumStmt": { - "is_vacuumcmd": true, - "rels": [ - { - "VacuumRelation": { - "relation": { - "inh": true, - "location": 1310, - "relname": "hs2", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 12, - "stmt_location": 1301, - }, - }, - { - "RawStmt": { - "stmt": { - "ClusterStmt": { - "indexname": "hs1_pkey", - "relation": { - "inh": true, - "location": 1324, - "relname": "hs2", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 28, - "stmt_location": 1314, - }, - }, - { - "RawStmt": { - "stmt": { - "ReindexStmt": { - "kind": "REINDEX_OBJECT_TABLE", - "relation": { - "inh": true, - "location": 1359, - "relname": "hs2", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 19, - "stmt_location": 1343, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 1391, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - ], - "objects": [ - { - "RangeVar": { - "inh": true, - "location": 1382, - "relname": "hs1", - "relpersistence": "p", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "privileges": [ - { - "AccessPriv": { - "priv_name": "select", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 34, - "stmt_location": 1363, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 1422, - "roletype": "ROLESPEC_PUBLIC", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "RangeVar": { - "inh": true, - "location": 1415, - "relname": "hs1", - "relpersistence": "p", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "privileges": [ - { - "AccessPriv": { - "priv_name": "select", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 30, - "stmt_location": 1398, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/hs_standby_functions.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 81, - "val": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "txid_current", - }, - }, - ], - "location": 81, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 95, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 105, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "txid_current_snapshot", - }, - }, - ], - "location": 112, - }, - }, - "location": 135, - "typeName": { - "location": 137, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "length", - }, - }, - ], - "location": 105, - }, - }, - "location": 143, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 146, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 96, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 157, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 173, - "sval": { - "sval": "should fail", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_start_backup", - }, - }, - ], - "location": 157, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 148, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 196, - "val": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_switch_xlog", - }, - }, - ], - "location": 196, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 188, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 221, - "val": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_stop_backup", - }, - }, - ], - "location": 221, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 213, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 279, - "relname": "pg_prepared_xacts", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 272, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 272, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 58, - "stmt_location": 238, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 395, - "relname": "pg_locks", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 334, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "locktype", - }, - }, - ], - "location": 334, - }, - }, - }, - }, - { - "ResTarget": { - "location": 344, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "virtualxid", - }, - }, - ], - "location": 344, - }, - }, - }, - }, - { - "ResTarget": { - "location": 356, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "virtualtransaction", - }, - }, - ], - "location": 356, - }, - }, - }, - }, - { - "ResTarget": { - "location": 376, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "mode", - }, - }, - ], - "location": 376, - }, - }, - }, - }, - { - "ResTarget": { - "location": 382, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "granted", - }, - }, - ], - "location": 382, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "virtualxid", - }, - }, - ], - "location": 410, - }, - }, - "location": 421, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 423, - "sval": { - "sval": "1/1", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 131, - "stmt_location": 297, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 461, - "val": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_backend_pid", - }, - }, - ], - "location": 479, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pg_cancel_backend", - }, - }, - ], - "location": 461, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 67, - "stmt_location": 429, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/indirect_toast.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 13, - "relname": "toasttest", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "descr", - "is_local": true, - "location": 23, - "typeName": { - "location": 29, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "cnt", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 43, - "raw_expr": { - "A_Const": { - "ival": {}, - "location": 51, - }, - }, - }, - }, - ], - "is_local": true, - "location": 35, - "typeName": { - "location": 39, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 54, - "typeName": { - "location": 57, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "f2", - "is_local": true, - "location": 63, - "typeName": { - "location": 66, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 71, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 96, - "name": "descr", - }, - }, - { - "ResTarget": { - "location": 103, - "name": "f1", - }, - }, - { - "ResTarget": { - "location": 107, - "name": "f2", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 86, - "relname": "toasttest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 118, - "sval": { - "sval": "two-compressed", - }, - }, - }, - { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 143, - "sval": { - "sval": "1234567890", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1000, - }, - "location": 156, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "repeat", - }, - }, - ], - "location": 136, - }, - }, - { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 170, - "sval": { - "sval": "1234567890", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1000, - }, - "location": 183, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "repeat", - }, - }, - ], - "location": 163, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 117, - "stmt_location": 72, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 213, - "name": "descr", - }, - }, - { - "ResTarget": { - "location": 220, - "name": "f1", - }, - }, - { - "ResTarget": { - "location": 224, - "name": "f2", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 203, - "relname": "toasttest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 235, - "sval": { - "sval": "two-toasted", - }, - }, - }, - { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 257, - "sval": { - "sval": "1234567890", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 30000, - }, - "location": 270, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "repeat", - }, - }, - ], - "location": 250, - }, - }, - { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 285, - "sval": { - "sval": "1234567890", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 50000, - }, - "location": 298, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "repeat", - }, - }, - ], - "location": 278, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 115, - "stmt_location": 190, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 329, - "name": "descr", - }, - }, - { - "ResTarget": { - "location": 336, - "name": "f1", - }, - }, - { - "ResTarget": { - "location": 340, - "name": "f2", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 319, - "relname": "toasttest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 351, - "sval": { - "sval": "one-compressed,one-null", - }, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 378, - }, - }, - { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 391, - "sval": { - "sval": "1234567890", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1000, - }, - "location": 404, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "repeat", - }, - }, - ], - "location": 384, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 104, - "stmt_location": 306, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 434, - "name": "descr", - }, - }, - { - "ResTarget": { - "location": 441, - "name": "f1", - }, - }, - { - "ResTarget": { - "location": 445, - "name": "f2", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 424, - "relname": "toasttest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 456, - "sval": { - "sval": "one-toasted,one-null", - }, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 480, - }, - }, - { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 493, - "sval": { - "sval": "1234567890", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 50000, - }, - "location": 506, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "repeat", - }, - }, - ], - "location": 486, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 102, - "stmt_location": 411, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 654, - "relname": "toasttest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 586, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "descr", - }, - }, - ], - "location": 586, - }, - }, - }, - }, - { - "ResTarget": { - "location": 593, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "toasttest", - }, - }, - ], - "location": 623, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "make_tuple_indirect", - }, - }, - ], - "location": 603, - }, - }, - "location": 633, - "typeName": { - "location": 635, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 641, - }, - }, - { - "A_Const": { - "ival": { - "ival": 200, - }, - "location": 644, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "substring", - }, - }, - ], - "location": 593, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 149, - "stmt_location": 514, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 715, - "relname": "toasttest", - "relpersistence": "p", - }, - "returningList": [ - { - "ResTarget": { - "location": 752, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "toasttest", - }, - }, - ], - "location": 762, - }, - }, - "location": 771, - "typeName": { - "location": 773, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 779, - }, - }, - { - "A_Const": { - "ival": { - "ival": 200, - }, - "location": 782, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "substring", - }, - }, - ], - "location": 752, - }, - }, - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 729, - "name": "cnt", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "cnt", - }, - }, - ], - "location": 735, - }, - }, - "location": 739, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 740, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 122, - "stmt_location": 664, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 844, - "relname": "toasttest", - "relpersistence": "p", - }, - "returningList": [ - { - "ResTarget": { - "location": 890, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "toasttest", - }, - }, - ], - "location": 900, - }, - }, - "location": 909, - "typeName": { - "location": 911, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 917, - }, - }, - { - "A_Const": { - "ival": { - "ival": 200, - }, - "location": 920, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "substring", - }, - }, - ], - "location": 890, - }, - }, - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 858, - "name": "cnt", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "cnt", - }, - }, - ], - "location": 864, - }, - }, - "location": 868, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 869, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 872, - "name": "f1", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 877, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 137, - "stmt_location": 787, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 990, - "relname": "toasttest", - "relpersistence": "p", - }, - "returningList": [ - { - "ResTarget": { - "location": 1040, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "toasttest", - }, - }, - ], - "location": 1050, - }, - }, - "location": 1059, - "typeName": { - "location": 1061, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1067, - }, - }, - { - "A_Const": { - "ival": { - "ival": 200, - }, - "location": 1070, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "substring", - }, - }, - ], - "location": 1040, - }, - }, - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1004, - "name": "cnt", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "cnt", - }, - }, - ], - "location": 1010, - }, - }, - "location": 1014, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1015, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1018, - "name": "f1", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1023, - }, - }, - "location": 1025, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1027, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 149, - "stmt_location": 925, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 1084, - "relname": "toasttest", - "relpersistence": "p", - }, - "returningList": [ - { - "ResTarget": { - "location": 1140, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "toasttest", - }, - }, - ], - "location": 1150, - }, - }, - "location": 1159, - "typeName": { - "location": 1161, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1167, - }, - }, - { - "A_Const": { - "ival": { - "ival": 200, - }, - "location": 1170, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "substring", - }, - }, - ], - "location": 1140, - }, - }, - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1098, - "name": "cnt", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "cnt", - }, - }, - ], - "location": 1104, - }, - }, - "location": 1108, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1109, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1112, - "name": "f1", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "location": 1117, - "sval": { - "sval": "-", - }, - }, - }, - "location": 1120, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1122, - }, - }, - }, - }, - "location": 1124, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1126, - "sval": { - "sval": "-", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 99, - "stmt_location": 1075, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1224, - "relname": "toasttest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1184, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "toasttest", - }, - }, - ], - "location": 1194, - }, - }, - "location": 1203, - "typeName": { - "location": 1205, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1211, - }, - }, - { - "A_Const": { - "ival": { - "ival": 200, - }, - "location": 1214, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "substring", - }, - }, - ], - "location": 1184, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 58, - "stmt_location": 1175, - }, - }, - { - "RawStmt": { - "stmt": { - "VacuumStmt": { - "is_vacuumcmd": true, - "options": [ - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "freeze", - "location": 1299, - }, - }, - ], - "rels": [ - { - "VacuumRelation": { - "relation": { - "inh": true, - "location": 1306, - "relname": "toasttest", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 81, - "stmt_location": 1234, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1364, - "relname": "toasttest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1324, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "toasttest", - }, - }, - ], - "location": 1334, - }, - }, - "location": 1343, - "typeName": { - "location": 1345, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1351, - }, - }, - { - "A_Const": { - "ival": { - "ival": 200, - }, - "location": 1354, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "substring", - }, - }, - ], - "location": 1324, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 1316, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "update_using_indirect", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 1515, - }, - }, - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -BEGIN - NEW := make_tuple_indirect(NEW); - RETURN NEW; -END", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 1532, - }, - }, - ], - "returnType": { - "location": 1499, - "names": [ - { - "String": { - "sval": "trigger", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 228, - "stmt_location": 1374, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateTrigStmt": { - "events": 20, - "funcname": [ - { - "String": { - "sval": "update_using_indirect", - }, - }, - ], - "relation": { - "inh": true, - "location": 1689, - "relname": "toasttest", - "relpersistence": "p", - }, - "row": true, - "timing": 2, - "trigname": "toasttest_update_indirect", - }, - }, - "stmt_len": 166, - "stmt_location": 1603, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 1821, - "relname": "toasttest", - "relpersistence": "p", - }, - "returningList": [ - { - "ResTarget": { - "location": 1858, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "toasttest", - }, - }, - ], - "location": 1868, - }, - }, - "location": 1877, - "typeName": { - "location": 1879, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1885, - }, - }, - { - "A_Const": { - "ival": { - "ival": 200, - }, - "location": 1888, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "substring", - }, - }, - ], - "location": 1858, - }, - }, - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1835, - "name": "cnt", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "cnt", - }, - }, - ], - "location": 1841, - }, - }, - "location": 1845, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1846, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 122, - "stmt_location": 1770, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 1950, - "relname": "toasttest", - "relpersistence": "p", - }, - "returningList": [ - { - "ResTarget": { - "location": 1996, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "toasttest", - }, - }, - ], - "location": 2006, - }, - }, - "location": 2015, - "typeName": { - "location": 2017, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2023, - }, - }, - { - "A_Const": { - "ival": { - "ival": 200, - }, - "location": 2026, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "substring", - }, - }, - ], - "location": 1996, - }, - }, - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1964, - "name": "cnt", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "cnt", - }, - }, - ], - "location": 1970, - }, - }, - "location": 1974, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1975, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1978, - "name": "f1", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1983, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 137, - "stmt_location": 1893, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 2096, - "relname": "toasttest", - "relpersistence": "p", - }, - "returningList": [ - { - "ResTarget": { - "location": 2146, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "toasttest", - }, - }, - ], - "location": 2156, - }, - }, - "location": 2165, - "typeName": { - "location": 2167, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2173, - }, - }, - { - "A_Const": { - "ival": { - "ival": 200, - }, - "location": 2176, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "substring", - }, - }, - ], - "location": 2146, - }, - }, - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2110, - "name": "cnt", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "cnt", - }, - }, - ], - "location": 2116, - }, - }, - "location": 2120, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2121, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2124, - "name": "f1", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2129, - }, - }, - "location": 2131, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2133, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 149, - "stmt_location": 2031, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 2190, - "relname": "toasttest", - "relpersistence": "p", - }, - "returningList": [ - { - "ResTarget": { - "location": 2246, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "toasttest", - }, - }, - ], - "location": 2256, - }, - }, - "location": 2265, - "typeName": { - "location": 2267, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2273, - }, - }, - { - "A_Const": { - "ival": { - "ival": 200, - }, - "location": 2276, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "substring", - }, - }, - ], - "location": 2246, - }, - }, - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2204, - "name": "cnt", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "cnt", - }, - }, - ], - "location": 2210, - }, - }, - "location": 2214, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2215, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2218, - "name": "f1", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "location": 2223, - "sval": { - "sval": "-", - }, - }, - }, - "location": 2226, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2228, - }, - }, - }, - }, - "location": 2230, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2232, - "sval": { - "sval": "-", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 99, - "stmt_location": 2181, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 2305, - "name": "descr", - }, - }, - { - "ResTarget": { - "location": 2312, - "name": "f1", - }, - }, - { - "ResTarget": { - "location": 2316, - "name": "f2", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 2295, - "relname": "toasttest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 2327, - "sval": { - "sval": "one-toasted,one-null, via indirect", - }, - }, - }, - { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2372, - "sval": { - "sval": "1234567890", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 30000, - }, - "location": 2385, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "repeat", - }, - }, - ], - "location": 2365, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 2393, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 117, - "stmt_location": 2281, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2448, - "relname": "toasttest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2408, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "toasttest", - }, - }, - ], - "location": 2418, - }, - }, - "location": 2427, - "typeName": { - "location": 2429, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2435, - }, - }, - { - "A_Const": { - "ival": { - "ival": 200, - }, - "location": 2438, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "substring", - }, - }, - ], - "location": 2408, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 58, - "stmt_location": 2399, - }, - }, - { - "RawStmt": { - "stmt": { - "VacuumStmt": { - "is_vacuumcmd": true, - "options": [ - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "freeze", - "location": 2523, - }, - }, - ], - "rels": [ - { - "VacuumRelation": { - "relation": { - "inh": true, - "location": 2530, - "relname": "toasttest", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 81, - "stmt_location": 2458, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2588, - "relname": "toasttest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2548, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "toasttest", - }, - }, - ], - "location": 2558, - }, - }, - "location": 2567, - "typeName": { - "location": 2569, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2575, - }, - }, - { - "A_Const": { - "ival": { - "ival": 200, - }, - "location": 2578, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "substring", - }, - }, - ], - "location": 2548, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 2540, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "toasttest", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 22, - "stmt_location": 2598, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "ObjectWithArgs": { - "objname": [ - { - "String": { - "sval": "update_using_indirect", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 38, - "stmt_location": 2621, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/inet.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "inet_tbl", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 59, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 74, - "relname": "inet_tbl", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "c", - "is_local": true, - "location": 84, - "typeName": { - "location": 86, - "names": [ - { - "String": { - "sval": "cidr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "i", - "is_local": true, - "location": 92, - "typeName": { - "location": 94, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 60, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 123, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 126, - "name": "i", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 113, - "relname": "inet_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 137, - "sval": { - "sval": "192.168.1", - }, - }, - }, - { - "A_Const": { - "location": 150, - "sval": { - "sval": "192.168.1.226/24", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 69, - "stmt_location": 100, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 193, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 196, - "name": "i", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 183, - "relname": "inet_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 207, - "sval": { - "sval": "192.168.1.0/26", - }, - }, - }, - { - "A_Const": { - "location": 225, - "sval": { - "sval": "192.168.1.226", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 71, - "stmt_location": 170, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 265, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 268, - "name": "i", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 255, - "relname": "inet_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 279, - "sval": { - "sval": "192.168.1", - }, - }, - }, - { - "A_Const": { - "location": 292, - "sval": { - "sval": "192.168.1.0/24", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 67, - "stmt_location": 242, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 333, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 336, - "name": "i", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 323, - "relname": "inet_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 347, - "sval": { - "sval": "192.168.1", - }, - }, - }, - { - "A_Const": { - "location": 360, - "sval": { - "sval": "192.168.1.0/25", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 67, - "stmt_location": 310, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 401, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 404, - "name": "i", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 391, - "relname": "inet_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 415, - "sval": { - "sval": "192.168.1", - }, - }, - }, - { - "A_Const": { - "location": 428, - "sval": { - "sval": "192.168.1.255/24", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 69, - "stmt_location": 378, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 471, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 474, - "name": "i", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 461, - "relname": "inet_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 485, - "sval": { - "sval": "192.168.1", - }, - }, - }, - { - "A_Const": { - "location": 498, - "sval": { - "sval": "192.168.1.255/25", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 69, - "stmt_location": 448, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 541, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 544, - "name": "i", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 531, - "relname": "inet_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 555, - "sval": { - "sval": "10", - }, - }, - }, - { - "A_Const": { - "location": 561, - "sval": { - "sval": "10.1.2.3/8", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 56, - "stmt_location": 518, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 598, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 601, - "name": "i", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 588, - "relname": "inet_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 612, - "sval": { - "sval": "10.0.0.0", - }, - }, - }, - { - "A_Const": { - "location": 624, - "sval": { - "sval": "10.1.2.3/8", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 62, - "stmt_location": 575, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 661, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 664, - "name": "i", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 651, - "relname": "inet_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 675, - "sval": { - "sval": "10.1.2.3", - }, - }, - }, - { - "A_Const": { - "location": 687, - "sval": { - "sval": "10.1.2.3/32", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 63, - "stmt_location": 638, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 725, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 728, - "name": "i", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 715, - "relname": "inet_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 739, - "sval": { - "sval": "10.1.2", - }, - }, - }, - { - "A_Const": { - "location": 749, - "sval": { - "sval": "10.1.2.3/24", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 61, - "stmt_location": 702, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 787, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 790, - "name": "i", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 777, - "relname": "inet_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 801, - "sval": { - "sval": "10.1", - }, - }, - }, - { - "A_Const": { - "location": 809, - "sval": { - "sval": "10.1.2.3/16", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 764, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 847, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 850, - "name": "i", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 837, - "relname": "inet_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 861, - "sval": { - "sval": "10", - }, - }, - }, - { - "A_Const": { - "location": 867, - "sval": { - "sval": "10.1.2.3/8", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 56, - "stmt_location": 824, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 904, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 907, - "name": "i", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 894, - "relname": "inet_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 918, - "sval": { - "sval": "10", - }, - }, - }, - { - "A_Const": { - "location": 924, - "sval": { - "sval": "11.1.2.3/8", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 56, - "stmt_location": 881, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 961, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 964, - "name": "i", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 951, - "relname": "inet_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 975, - "sval": { - "sval": "10", - }, - }, - }, - { - "A_Const": { - "location": 981, - "sval": { - "sval": "9.1.2.3/8", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 55, - "stmt_location": 938, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1017, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 1020, - "name": "i", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1007, - "relname": "inet_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1031, - "sval": { - "sval": "10:23::f1", - }, - }, - }, - { - "A_Const": { - "location": 1044, - "sval": { - "sval": "10:23::f1/64", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 65, - "stmt_location": 994, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1083, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 1086, - "name": "i", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1073, - "relname": "inet_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1097, - "sval": { - "sval": "10:23::8000/113", - }, - }, - }, - { - "A_Const": { - "location": 1116, - "sval": { - "sval": "10:23::ffff", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 70, - "stmt_location": 1060, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1154, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 1157, - "name": "i", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1144, - "relname": "inet_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1168, - "sval": { - "sval": "::ffff:1.2.3.4", - }, - }, - }, - { - "A_Const": { - "location": 1186, - "sval": { - "sval": "::4.3.2.1/24", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 70, - "stmt_location": 1131, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1267, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 1270, - "name": "i", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1257, - "relname": "inet_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1281, - "sval": { - "sval": "192.168.1.2/30", - }, - }, - }, - { - "A_Const": { - "location": 1299, - "sval": { - "sval": "192.168.1.226", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 113, - "stmt_location": 1202, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1339, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 1342, - "name": "i", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1329, - "relname": "inet_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1353, - "sval": { - "sval": "1234::1234::1234", - }, - }, - }, - { - "A_Const": { - "location": 1373, - "sval": { - "sval": "::1.2.3.4", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 69, - "stmt_location": 1316, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1477, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 1480, - "name": "i", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1467, - "relname": "inet_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1496, - "sval": { - "sval": "192.168.1.2/30", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "cidr", - }, - }, - ], - "location": 1491, - }, - }, - { - "A_Const": { - "location": 1515, - "sval": { - "sval": "192.168.1.226", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 145, - "stmt_location": 1386, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1555, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 1558, - "name": "i", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1545, - "relname": "inet_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1574, - "sval": { - "sval": "ffff:ffff:ffff:ffff::/24", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "cidr", - }, - }, - ], - "location": 1569, - }, - }, - { - "A_Const": { - "location": 1603, - "sval": { - "sval": "::192.168.1.226", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 89, - "stmt_location": 1532, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1667, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1630, - "name": "ten", - "val": { - "A_Const": { - "location": 1630, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1641, - "name": "cidr", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 1641, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1652, - "name": "inet", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1652, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 1622, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1776, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1721, - "name": "ten", - "val": { - "A_Const": { - "location": 1721, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1732, - "name": "inet", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1732, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1743, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1748, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "host", - }, - }, - ], - "location": 1743, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1752, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1757, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "text", - }, - }, - ], - "location": 1752, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1761, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1768, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "family", - }, - }, - ], - "location": 1761, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 108, - "stmt_location": 1676, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1860, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1793, - "name": "ten", - "val": { - "A_Const": { - "location": 1793, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1804, - "name": "cidr", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 1804, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1815, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 1825, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "broadcast", - }, - }, - ], - "location": 1815, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1831, - "name": "inet", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1831, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1842, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1852, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "broadcast", - }, - }, - ], - "location": 1842, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 83, - "stmt_location": 1785, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1978, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1877, - "name": "ten", - "val": { - "A_Const": { - "location": 1877, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1888, - "name": "cidr", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 1888, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1899, - "name": "network(cidr)", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 1907, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "network", - }, - }, - ], - "location": 1899, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1932, - "name": "inet", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1932, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1943, - "name": "network(inet)", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1951, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "network", - }, - }, - ], - "location": 1943, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 117, - "stmt_location": 1869, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2096, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1995, - "name": "ten", - "val": { - "A_Const": { - "location": 1995, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2006, - "name": "cidr", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2006, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2017, - "name": "masklen(cidr)", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2025, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "masklen", - }, - }, - ], - "location": 2017, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2050, - "name": "inet", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2050, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2061, - "name": "masklen(inet)", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2069, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "masklen", - }, - }, - ], - "location": 2061, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 117, - "stmt_location": 1987, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2216, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2114, - "name": "four", - "val": { - "A_Const": { - "location": 2114, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2126, - "name": "cidr", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2126, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2137, - "name": "masklen(cidr)", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2145, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "masklen", - }, - }, - ], - "location": 2137, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2170, - "name": "inet", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2170, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2181, - "name": "masklen(inet)", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2189, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "masklen", - }, - }, - ], - "location": 2181, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2241, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "masklen", - }, - }, - ], - "location": 2233, - }, - }, - "location": 2244, - "name": [ - { - "String": { - "sval": "<=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 8, - }, - "location": 2247, - }, - }, - }, - }, - }, - }, - "stmt_len": 143, - "stmt_location": 2105, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2295, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2258, - "name": "six", - "val": { - "A_Const": { - "location": 2258, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2269, - "name": "cidr", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2269, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2280, - "name": "inet", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2280, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2312, - }, - }, - "location": 2314, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2316, - }, - }, - }, - }, - }, - }, - "stmt_len": 68, - "stmt_location": 2249, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2517, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2327, - "name": "ten", - "val": { - "A_Const": { - "location": 2327, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2338, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2338, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2341, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2341, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2346, - "name": "lt", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2346, - }, - }, - "location": 2348, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2350, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2359, - "name": "le", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2359, - }, - }, - "location": 2361, - "name": [ - { - "String": { - "sval": "<=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2364, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2373, - "name": "eq", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2373, - }, - }, - "location": 2375, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2377, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2388, - "name": "ge", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2388, - }, - }, - "location": 2390, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2393, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2402, - "name": "gt", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2402, - }, - }, - "location": 2404, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2406, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2415, - "name": "ne", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2415, - }, - }, - "location": 2417, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2420, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2431, - "name": "sb", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2431, - }, - }, - "location": 2433, - "name": [ - { - "String": { - "sval": "<<", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2436, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2445, - "name": "sbe", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2445, - }, - }, - "location": 2447, - "name": [ - { - "String": { - "sval": "<<=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2451, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2463, - "name": "sup", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2463, - }, - }, - "location": 2465, - "name": [ - { - "String": { - "sval": ">>", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2468, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2478, - "name": "spe", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2478, - }, - }, - "location": 2480, - "name": [ - { - "String": { - "sval": ">>=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2484, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2496, - "name": "ovr", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2496, - }, - }, - "location": 2498, - "name": [ - { - "String": { - "sval": "&&", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2501, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 207, - "stmt_location": 2318, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2569, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2535, - "name": "max", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2539, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 2535, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2550, - "name": "min", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2554, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 2550, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 2526, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2620, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2586, - "name": "max", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2590, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 2586, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2601, - "name": "min", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2605, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 2601, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 50, - "stmt_location": 2578, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2738, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2691, - "name": "ten", - "val": { - "A_Const": { - "location": 2691, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2702, - "val": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2724, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "text", - }, - }, - ], - "location": 2719, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "location": 2714, - }, - }, - { - "A_Const": { - "ival": { - "ival": 24, - }, - "location": 2729, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "set_masklen", - }, - }, - ], - "location": 2702, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 117, - "stmt_location": 2629, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "inet_idx1", - "indexParams": [ - { - "IndexElem": { - "name": "i", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 2817, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 81, - "stmt_location": 2747, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 2852, - "sval": { - "sval": "off", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_seqscan", - }, - }, - "stmt_len": 26, - "stmt_location": 2829, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2871, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2864, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2864, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2886, - }, - }, - "location": 2887, - "name": [ - { - "String": { - "sval": "<<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2889, - "sval": { - "sval": "192.168.1.0/24", - }, - }, - }, - "location": 2905, - "typeName": { - "location": 2907, - "names": [ - { - "String": { - "sval": "cidr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 55, - "stmt_location": 2856, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2927, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2920, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 2920, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 2942, - }, - }, - "location": 2943, - "name": [ - { - "String": { - "sval": "<<=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2946, - "sval": { - "sval": "192.168.1.0/24", - }, - }, - }, - "location": 2962, - "typeName": { - "location": 2964, - "names": [ - { - "String": { - "sval": "cidr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 56, - "stmt_location": 2912, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 2992, - "sval": { - "sval": "on", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_seqscan", - }, - }, - "stmt_len": 25, - "stmt_location": 2969, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "inet_idx1", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_INDEX", - }, - }, - "stmt_len": 21, - "stmt_location": 2995, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "gist", - "idxname": "inet_idx2", - "indexParams": [ - { - "IndexElem": { - "name": "i", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "opclass": [ - { - "String": { - "sval": "inet_ops", - }, - }, - ], - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 3086, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 101, - "stmt_location": 3017, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 3142, - "sval": { - "sval": "off", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_seqscan", - }, - }, - "stmt_len": 26, - "stmt_location": 3119, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3161, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3213, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3154, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3154, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3176, - }, - }, - "location": 3178, - "name": [ - { - "String": { - "sval": "<<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3181, - "sval": { - "sval": "192.168.1.0/24", - }, - }, - }, - "location": 3197, - "typeName": { - "location": 3199, - "names": [ - { - "String": { - "sval": "cidr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 68, - "stmt_location": 3146, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3230, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3283, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3223, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3223, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3245, - }, - }, - "location": 3247, - "name": [ - { - "String": { - "sval": "<<=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3251, - "sval": { - "sval": "192.168.1.0/24", - }, - }, - }, - "location": 3267, - "typeName": { - "location": 3269, - "names": [ - { - "String": { - "sval": "cidr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 69, - "stmt_location": 3215, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3300, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3352, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3293, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3293, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3315, - }, - }, - "location": 3317, - "name": [ - { - "String": { - "sval": "&&", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3320, - "sval": { - "sval": "192.168.1.0/24", - }, - }, - }, - "location": 3336, - "typeName": { - "location": 3338, - "names": [ - { - "String": { - "sval": "cidr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 68, - "stmt_location": 3285, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3369, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3422, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3362, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3362, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3384, - }, - }, - "location": 3386, - "name": [ - { - "String": { - "sval": ">>=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3390, - "sval": { - "sval": "192.168.1.0/24", - }, - }, - }, - "location": 3406, - "typeName": { - "location": 3408, - "names": [ - { - "String": { - "sval": "cidr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 69, - "stmt_location": 3354, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3439, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3491, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3432, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3432, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3454, - }, - }, - "location": 3456, - "name": [ - { - "String": { - "sval": ">>", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3459, - "sval": { - "sval": "192.168.1.0/24", - }, - }, - }, - "location": 3475, - "typeName": { - "location": 3477, - "names": [ - { - "String": { - "sval": "cidr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 68, - "stmt_location": 3424, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3508, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3559, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3501, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3501, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3523, - }, - }, - "location": 3525, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3527, - "sval": { - "sval": "192.168.1.0/24", - }, - }, - }, - "location": 3543, - "typeName": { - "location": 3545, - "names": [ - { - "String": { - "sval": "cidr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 67, - "stmt_location": 3493, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3576, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3628, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3569, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3569, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3591, - }, - }, - "location": 3593, - "name": [ - { - "String": { - "sval": "<=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3596, - "sval": { - "sval": "192.168.1.0/24", - }, - }, - }, - "location": 3612, - "typeName": { - "location": 3614, - "names": [ - { - "String": { - "sval": "cidr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 68, - "stmt_location": 3561, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3645, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3696, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3638, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3638, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3660, - }, - }, - "location": 3662, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3664, - "sval": { - "sval": "192.168.1.0/24", - }, - }, - }, - "location": 3680, - "typeName": { - "location": 3682, - "names": [ - { - "String": { - "sval": "cidr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 67, - "stmt_location": 3630, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3713, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3765, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3706, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3706, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3728, - }, - }, - "location": 3730, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3733, - "sval": { - "sval": "192.168.1.0/24", - }, - }, - }, - "location": 3749, - "typeName": { - "location": 3751, - "names": [ - { - "String": { - "sval": "cidr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 68, - "stmt_location": 3698, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3782, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3833, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3775, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3775, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3797, - }, - }, - "location": 3799, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3801, - "sval": { - "sval": "192.168.1.0/24", - }, - }, - }, - "location": 3817, - "typeName": { - "location": 3819, - "names": [ - { - "String": { - "sval": "cidr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 67, - "stmt_location": 3767, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3850, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3902, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3843, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3843, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3865, - }, - }, - "location": 3867, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3870, - "sval": { - "sval": "192.168.1.0/24", - }, - }, - }, - "location": 3886, - "typeName": { - "location": 3888, - "names": [ - { - "String": { - "sval": "cidr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 68, - "stmt_location": 3835, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 3940, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3965, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 4017, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3958, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3958, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3980, - }, - }, - "location": 3982, - "name": [ - { - "String": { - "sval": "<<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3985, - "sval": { - "sval": "192.168.1.0/24", - }, - }, - }, - "location": 4001, - "typeName": { - "location": 4003, - "names": [ - { - "String": { - "sval": "cidr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 114, - "stmt_location": 3904, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4034, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 4086, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 4027, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 4027, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 4049, - }, - }, - "location": 4051, - "name": [ - { - "String": { - "sval": "<<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4054, - "sval": { - "sval": "192.168.1.0/24", - }, - }, - }, - "location": 4070, - "typeName": { - "location": 4072, - "names": [ - { - "String": { - "sval": "cidr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 68, - "stmt_location": 4019, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 4112, - "sval": { - "sval": "on", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_seqscan", - }, - }, - "stmt_len": 26, - "stmt_location": 4088, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "inet_idx2", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_INDEX", - }, - }, - "stmt_len": 21, - "stmt_location": 4115, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4222, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4203, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 4203, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4206, - "name": "~i", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 4206, - "name": [ - { - "String": { - "sval": "~", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 4207, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 93, - "stmt_location": 4137, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4265, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4239, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 4239, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4242, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 4242, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4245, - "name": "and", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 4245, - }, - }, - "location": 4247, - "name": [ - { - "String": { - "sval": "&", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 4249, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 4231, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4307, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4282, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 4282, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4285, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 4285, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4288, - "name": "or", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 4288, - }, - }, - "location": 4290, - "name": [ - { - "String": { - "sval": "|", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 4292, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 41, - "stmt_location": 4274, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4351, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4324, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 4324, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4327, - "name": "i+500", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 4327, - }, - }, - "location": 4329, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 500, - }, - "location": 4331, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 43, - "stmt_location": 4316, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4395, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4368, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 4368, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4371, - "name": "i-500", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 4371, - }, - }, - "location": 4373, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 500, - }, - "location": 4375, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 43, - "stmt_location": 4360, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4440, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4412, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 4412, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4415, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 4415, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4418, - "name": "minus", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 4418, - }, - }, - "location": 4420, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 4422, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 4404, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4457, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4457, - "sval": { - "sval": "127.0.0.1", - }, - }, - }, - "location": 4468, - "typeName": { - "location": 4470, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4475, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 257, - }, - "location": 4477, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 4449, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4489, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4490, - "sval": { - "sval": "127.0.0.1", - }, - }, - }, - "location": 4501, - "typeName": { - "location": 4503, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4508, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 257, - }, - "location": 4510, - }, - }, - }, - }, - "location": 4515, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 257, - }, - "location": 4517, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 4481, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4529, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4529, - "sval": { - "sval": "127::1", - }, - }, - }, - "location": 4537, - "typeName": { - "location": 4539, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4544, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 257, - }, - "location": 4546, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 4521, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4558, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4559, - "sval": { - "sval": "127::1", - }, - }, - }, - "location": 4567, - "typeName": { - "location": 4569, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4574, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 257, - }, - "location": 4576, - }, - }, - }, - }, - "location": 4581, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 257, - }, - "location": 4583, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 4550, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4595, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4595, - "sval": { - "sval": "127.0.0.2", - }, - }, - }, - "location": 4606, - "typeName": { - "location": 4608, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4614, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4617, - "sval": { - "sval": "127.0.0.2", - }, - }, - }, - "location": 4628, - "typeName": { - "location": 4630, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4635, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 500, - }, - "location": 4637, - }, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 4587, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4650, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4650, - "sval": { - "sval": "127.0.0.2", - }, - }, - }, - "location": 4661, - "typeName": { - "location": 4663, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4669, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4672, - "sval": { - "sval": "127.0.0.2", - }, - }, - }, - "location": 4683, - "typeName": { - "location": 4685, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4690, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 500, - }, - "location": 4692, - }, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 4642, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4705, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4705, - "sval": { - "sval": "127::2", - }, - }, - }, - "location": 4713, - "typeName": { - "location": 4715, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4721, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4724, - "sval": { - "sval": "127::2", - }, - }, - }, - "location": 4732, - "typeName": { - "location": 4734, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4739, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 500, - }, - "location": 4741, - }, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 48, - "stmt_location": 4697, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4754, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4754, - "sval": { - "sval": "127::2", - }, - }, - }, - "location": 4762, - "typeName": { - "location": 4764, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4770, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4773, - "sval": { - "sval": "127::2", - }, - }, - }, - "location": 4781, - "typeName": { - "location": 4783, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4788, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 500, - }, - "location": 4790, - }, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 48, - "stmt_location": 4746, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4841, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4841, - "sval": { - "sval": "127.0.0.1", - }, - }, - }, - "location": 4852, - "typeName": { - "location": 4854, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4859, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "fval": { - "fval": "10000000000", - }, - "location": 4861, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 77, - "stmt_location": 4795, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4881, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4881, - "sval": { - "sval": "127.0.0.1", - }, - }, - }, - "location": 4892, - "typeName": { - "location": 4894, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4899, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "A_Const": { - "fval": { - "fval": "10000000000", - }, - "location": 4901, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 4873, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4921, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4921, - "sval": { - "sval": "126::1", - }, - }, - }, - "location": 4929, - "typeName": { - "location": 4931, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4936, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4938, - "sval": { - "sval": "127::2", - }, - }, - }, - "location": 4946, - "typeName": { - "location": 4948, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 4913, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4961, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4961, - "sval": { - "sval": "127::1", - }, - }, - }, - "location": 4969, - "typeName": { - "location": 4971, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4976, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4978, - "sval": { - "sval": "126::2", - }, - }, - }, - "location": 4986, - "typeName": { - "location": 4988, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 4953, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5018, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5018, - "sval": { - "sval": "127::1", - }, - }, - }, - "location": 5026, - "typeName": { - "location": 5028, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 5033, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "fval": { - "fval": "10000000000", - }, - "location": 5035, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 4993, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5055, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5055, - "sval": { - "sval": "127::1", - }, - }, - }, - "location": 5063, - "typeName": { - "location": 5065, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 5070, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5072, - "sval": { - "sval": "127::2", - }, - }, - }, - "location": 5080, - "typeName": { - "location": 5082, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 5047, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 5173, - "name": "c", - }, - }, - { - "ResTarget": { - "location": 5176, - "name": "i", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5163, - "relname": "inet_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 5187, - "sval": { - "sval": "10", - }, - }, - }, - { - "A_Const": { - "location": 5193, - "sval": { - "sval": "10::/8", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 115, - "stmt_location": 5087, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5262, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5240, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 5251, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 5254, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "inet_merge", - }, - }, - ], - "location": 5240, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 67, - "stmt_location": 5203, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5343, - "relname": "inet_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5321, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 5332, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 5335, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "inet_merge", - }, - }, - ], - "location": 5321, - }, - }, - }, - }, - ], - "whereClause": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 5375, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 5378, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "inet_same_family", - }, - }, - ], - "location": 5358, - }, - }, - }, - }, - "stmt_len": 109, - "stmt_location": 5271, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/inherit.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 48, - "relname": "a", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "aa", - "is_local": true, - "location": 51, - "typeName": { - "location": 54, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 96, - "relname": "a", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 74, - "relname": "b", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "bb", - "is_local": true, - "location": 77, - "typeName": { - "location": 80, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 60, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 135, - "relname": "a", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 113, - "relname": "c", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "cc", - "is_local": true, - "location": 116, - "typeName": { - "location": 119, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 99, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 174, - "relname": "b", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 176, - "relname": "c", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 178, - "relname": "a", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 152, - "relname": "d", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "dd", - "is_local": true, - "location": 155, - "typeName": { - "location": 158, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 138, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 197, - "name": "aa", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 195, - "relname": "a", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 208, - "sval": { - "sval": "aaa", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 33, - "stmt_location": 181, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 230, - "name": "aa", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 228, - "relname": "a", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 241, - "sval": { - "sval": "aaaa", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 33, - "stmt_location": 215, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 264, - "name": "aa", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 262, - "relname": "a", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 275, - "sval": { - "sval": "aaaaa", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 34, - "stmt_location": 249, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 299, - "name": "aa", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 297, - "relname": "a", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 310, - "sval": { - "sval": "aaaaaa", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 35, - "stmt_location": 284, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 335, - "name": "aa", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 333, - "relname": "a", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 346, - "sval": { - "sval": "aaaaaaa", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 36, - "stmt_location": 320, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 372, - "name": "aa", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 370, - "relname": "a", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 383, - "sval": { - "sval": "aaaaaaaa", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 37, - "stmt_location": 357, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 411, - "name": "aa", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 409, - "relname": "b", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 422, - "sval": { - "sval": "bbb", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 33, - "stmt_location": 395, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 444, - "name": "aa", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 442, - "relname": "b", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 455, - "sval": { - "sval": "bbbb", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 33, - "stmt_location": 429, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 478, - "name": "aa", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 476, - "relname": "b", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 489, - "sval": { - "sval": "bbbbb", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 34, - "stmt_location": 463, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 513, - "name": "aa", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 511, - "relname": "b", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 524, - "sval": { - "sval": "bbbbbb", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 35, - "stmt_location": 498, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 549, - "name": "aa", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 547, - "relname": "b", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 560, - "sval": { - "sval": "bbbbbbb", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 36, - "stmt_location": 534, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 586, - "name": "aa", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 584, - "relname": "b", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 597, - "sval": { - "sval": "bbbbbbbb", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 37, - "stmt_location": 571, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 625, - "name": "aa", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 623, - "relname": "c", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 636, - "sval": { - "sval": "ccc", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 33, - "stmt_location": 609, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 658, - "name": "aa", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 656, - "relname": "c", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 669, - "sval": { - "sval": "cccc", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 33, - "stmt_location": 643, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 692, - "name": "aa", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 690, - "relname": "c", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 703, - "sval": { - "sval": "ccccc", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 34, - "stmt_location": 677, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 727, - "name": "aa", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 725, - "relname": "c", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 738, - "sval": { - "sval": "cccccc", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 35, - "stmt_location": 712, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 763, - "name": "aa", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 761, - "relname": "c", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 774, - "sval": { - "sval": "ccccccc", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 36, - "stmt_location": 748, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 800, - "name": "aa", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 798, - "relname": "c", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 811, - "sval": { - "sval": "cccccccc", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 37, - "stmt_location": 785, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 839, - "name": "aa", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 837, - "relname": "d", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 850, - "sval": { - "sval": "ddd", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 33, - "stmt_location": 823, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 872, - "name": "aa", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 870, - "relname": "d", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 883, - "sval": { - "sval": "dddd", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 33, - "stmt_location": 857, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 906, - "name": "aa", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 904, - "relname": "d", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 917, - "sval": { - "sval": "ddddd", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 34, - "stmt_location": 891, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 941, - "name": "aa", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 939, - "relname": "d", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 952, - "sval": { - "sval": "dddddd", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 35, - "stmt_location": 926, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 977, - "name": "aa", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 975, - "relname": "d", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 988, - "sval": { - "sval": "ddddddd", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 36, - "stmt_location": 962, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1014, - "name": "aa", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1012, - "relname": "d", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1025, - "sval": { - "sval": "dddddddd", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 37, - "stmt_location": 999, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1064, - "relname": "a", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 1067, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1046, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 1046, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1055, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1055, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 1082, - }, - }, - "location": 1093, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 1095, - }, - }, - }, - }, - }, - }, - "stmt_len": 70, - "stmt_location": 1037, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1134, - "relname": "b", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 1137, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1116, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 1116, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1125, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1125, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 1152, - }, - }, - "location": 1163, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 1165, - }, - }, - }, - }, - }, - }, - "stmt_len": 69, - "stmt_location": 1108, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1204, - "relname": "c", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 1207, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1186, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 1186, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1195, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1195, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 1222, - }, - }, - "location": 1233, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 1235, - }, - }, - }, - }, - }, - }, - "stmt_len": 69, - "stmt_location": 1178, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1274, - "relname": "d", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 1277, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1256, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 1256, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1265, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1265, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 1292, - }, - }, - "location": 1303, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 1305, - }, - }, - }, - }, - }, - }, - "stmt_len": 69, - "stmt_location": 1248, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "location": 1349, - "relname": "a", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 1352, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1326, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 1326, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1335, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1335, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 1367, - }, - }, - "location": 1378, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 1380, - }, - }, - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 1318, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "location": 1424, - "relname": "b", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 1427, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1401, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 1401, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1410, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1410, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 1442, - }, - }, - "location": 1453, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 1455, - }, - }, - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 1393, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "location": 1499, - "relname": "c", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 1502, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1476, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 1476, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1485, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1485, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 1517, - }, - }, - "location": 1528, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 1530, - }, - }, - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 1468, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "location": 1574, - "relname": "d", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 1577, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1551, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 1551, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1560, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1560, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 1592, - }, - }, - "location": 1603, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 1605, - }, - }, - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 1543, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 1627, - "relname": "a", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 1633, - "name": "aa", - "val": { - "A_Const": { - "location": 1636, - "sval": { - "sval": "zzzz", - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aa", - }, - }, - ], - "location": 1649, - }, - }, - "location": 1651, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1652, - "sval": { - "sval": "aaaa", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 40, - "stmt_location": 1618, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "location": 1672, - "relname": "a", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 1678, - "name": "aa", - "val": { - "A_Const": { - "location": 1681, - "sval": { - "sval": "zzzzz", - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aa", - }, - }, - ], - "location": 1695, - }, - }, - "location": 1697, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1698, - "sval": { - "sval": "aaaaa", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 1659, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 1714, - "relname": "b", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 1720, - "name": "aa", - "val": { - "A_Const": { - "location": 1723, - "sval": { - "sval": "zzz", - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aa", - }, - }, - ], - "location": 1735, - }, - }, - "location": 1737, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1738, - "sval": { - "sval": "aaa", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 37, - "stmt_location": 1706, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "location": 1757, - "relname": "b", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 1763, - "name": "aa", - "val": { - "A_Const": { - "location": 1766, - "sval": { - "sval": "zzz", - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aa", - }, - }, - ], - "location": 1778, - }, - }, - "location": 1780, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1781, - "sval": { - "sval": "aaa", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 1744, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 1795, - "relname": "a", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 1801, - "name": "aa", - "val": { - "A_Const": { - "location": 1804, - "sval": { - "sval": "zzzzzz", - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_LIKE", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aa", - }, - }, - ], - "location": 1819, - }, - }, - "location": 1822, - "name": [ - { - "String": { - "sval": "~~", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1827, - "sval": { - "sval": "aaa%", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 1787, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1861, - "relname": "a", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 1864, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1843, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 1843, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1852, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1852, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 1879, - }, - }, - "location": 1890, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 1892, - }, - }, - }, - }, - }, - }, - "stmt_len": 70, - "stmt_location": 1834, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1931, - "relname": "b", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 1934, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1913, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 1913, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1922, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1922, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 1949, - }, - }, - "location": 1960, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 1962, - }, - }, - }, - }, - }, - }, - "stmt_len": 69, - "stmt_location": 1905, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2001, - "relname": "c", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 2004, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1983, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 1983, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1992, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1992, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 2019, - }, - }, - "location": 2030, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 2032, - }, - }, - }, - }, - }, - }, - "stmt_len": 69, - "stmt_location": 1975, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2071, - "relname": "d", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 2074, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2053, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 2053, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2062, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 2062, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 2089, - }, - }, - "location": 2100, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 2102, - }, - }, - }, - }, - }, - }, - "stmt_len": 69, - "stmt_location": 2045, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "location": 2146, - "relname": "a", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 2149, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2123, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 2123, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2132, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 2132, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 2164, - }, - }, - "location": 2175, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 2177, - }, - }, - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 2115, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "location": 2221, - "relname": "b", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 2224, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2198, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 2198, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2207, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 2207, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 2239, - }, - }, - "location": 2250, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 2252, - }, - }, - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 2190, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "location": 2296, - "relname": "c", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 2299, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2273, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 2273, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2282, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 2282, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 2314, - }, - }, - "location": 2325, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 2327, - }, - }, - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 2265, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "location": 2371, - "relname": "d", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 2374, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2348, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 2348, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2357, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 2357, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 2389, - }, - }, - "location": 2400, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 2402, - }, - }, - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 2340, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 2424, - "relname": "b", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 2430, - "name": "aa", - "val": { - "A_Const": { - "location": 2433, - "sval": { - "sval": "new", - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 2415, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2466, - "relname": "a", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 2469, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2448, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 2448, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2457, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 2457, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 2484, - }, - }, - "location": 2495, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 2497, - }, - }, - }, - }, - }, - }, - "stmt_len": 70, - "stmt_location": 2439, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2536, - "relname": "b", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 2539, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2518, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 2518, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2527, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 2527, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 2554, - }, - }, - "location": 2565, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 2567, - }, - }, - }, - }, - }, - }, - "stmt_len": 69, - "stmt_location": 2510, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2606, - "relname": "c", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 2609, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2588, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 2588, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2597, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 2597, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 2624, - }, - }, - "location": 2635, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 2637, - }, - }, - }, - }, - }, - }, - "stmt_len": 69, - "stmt_location": 2580, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2676, - "relname": "d", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 2679, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2658, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 2658, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2667, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 2667, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 2694, - }, - }, - "location": 2705, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 2707, - }, - }, - }, - }, - }, - }, - "stmt_len": 69, - "stmt_location": 2650, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "location": 2751, - "relname": "a", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 2754, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2728, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 2728, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2737, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 2737, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 2769, - }, - }, - "location": 2780, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 2782, - }, - }, - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 2720, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "location": 2826, - "relname": "b", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 2829, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2803, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 2803, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2812, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 2812, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 2844, - }, - }, - "location": 2855, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 2857, - }, - }, - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 2795, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "location": 2901, - "relname": "c", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 2904, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2878, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 2878, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2887, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 2887, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 2919, - }, - }, - "location": 2930, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 2932, - }, - }, - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 2870, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "location": 2976, - "relname": "d", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 2979, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2953, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 2953, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2962, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 2962, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 2994, - }, - }, - "location": 3005, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3007, - }, - }, - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 2945, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 3029, - "relname": "a", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 3035, - "name": "aa", - "val": { - "A_Const": { - "location": 3038, - "sval": { - "sval": "new", - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 3020, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "location": 3063, - "relname": "c", - "relpersistence": "p", - }, - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aa", - }, - }, - ], - "location": 3071, - }, - }, - "location": 3073, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3074, - "sval": { - "sval": "new", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 35, - "stmt_location": 3044, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3107, - "relname": "a", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 3110, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3089, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3089, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3098, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 3098, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 3125, - }, - }, - "location": 3136, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3138, - }, - }, - }, - }, - }, - }, - "stmt_len": 70, - "stmt_location": 3080, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3177, - "relname": "b", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 3180, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3159, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3159, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3168, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 3168, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 3195, - }, - }, - "location": 3206, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3208, - }, - }, - }, - }, - }, - }, - "stmt_len": 69, - "stmt_location": 3151, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3247, - "relname": "c", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 3250, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3229, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3229, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3238, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 3238, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 3265, - }, - }, - "location": 3276, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3278, - }, - }, - }, - }, - }, - }, - "stmt_len": 69, - "stmt_location": 3221, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3317, - "relname": "d", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 3320, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3299, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3299, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3308, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 3308, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 3335, - }, - }, - "location": 3346, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3348, - }, - }, - }, - }, - }, - }, - "stmt_len": 69, - "stmt_location": 3291, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "location": 3392, - "relname": "a", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 3395, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3369, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3369, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3378, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 3378, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 3410, - }, - }, - "location": 3421, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3423, - }, - }, - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 3361, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "location": 3467, - "relname": "b", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 3470, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3444, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3444, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3453, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 3453, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 3485, - }, - }, - "location": 3496, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3498, - }, - }, - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 3436, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "location": 3542, - "relname": "c", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 3545, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3519, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3519, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3528, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 3528, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 3560, - }, - }, - "location": 3571, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3573, - }, - }, - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 3511, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "location": 3617, - "relname": "d", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 3620, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3594, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3594, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3603, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 3603, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 3635, - }, - }, - "location": 3646, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3648, - }, - }, - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 3586, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 3675, - "relname": "a", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 15, - "stmt_location": 3661, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3704, - "relname": "a", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 3707, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3686, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3686, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3695, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 3695, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 3722, - }, - }, - "location": 3733, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3735, - }, - }, - }, - }, - }, - }, - "stmt_len": 70, - "stmt_location": 3677, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3774, - "relname": "b", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 3777, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3756, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3756, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3765, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 3765, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 3792, - }, - }, - "location": 3803, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3805, - }, - }, - }, - }, - }, - }, - "stmt_len": 69, - "stmt_location": 3748, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3844, - "relname": "c", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 3847, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3826, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3826, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3835, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 3835, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 3862, - }, - }, - "location": 3873, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3875, - }, - }, - }, - }, - }, - }, - "stmt_len": 69, - "stmt_location": 3818, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3914, - "relname": "d", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 3917, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3896, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3896, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3905, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 3905, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 3932, - }, - }, - "location": 3943, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3945, - }, - }, - }, - }, - }, - }, - "stmt_len": 69, - "stmt_location": 3888, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "location": 3989, - "relname": "a", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 3992, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3966, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 3966, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3975, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 3975, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 4007, - }, - }, - "location": 4018, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 4020, - }, - }, - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 3958, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "location": 4064, - "relname": "b", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 4067, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4041, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 4041, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4050, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 4050, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 4082, - }, - }, - "location": 4093, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 4095, - }, - }, - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 4033, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "location": 4139, - "relname": "c", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 4142, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4116, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 4116, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4125, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 4125, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 4157, - }, - }, - "location": 4168, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 4170, - }, - }, - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 4108, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "location": 4214, - "relname": "d", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 4217, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4191, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 4191, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4200, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 4200, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 4232, - }, - }, - "location": 4243, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pg_class", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 4245, - }, - }, - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 4183, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 4382, - "relname": "a", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 4341, - "relname": "z", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 4344, - "typeName": { - "location": 4346, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "keys": [ - { - "String": { - "sval": "aa", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4352, - }, - }, - ], - }, - }, - "stmt_len": 126, - "stmt_location": 4258, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4398, - "relname": "z", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 4408, - }, - }, - { - "A_Const": { - "location": 4414, - "sval": { - "sval": "text", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 36, - "stmt_location": 4385, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 4525, - "relname": "foo", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 4529, - "typeName": { - "location": 4532, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "f2", - "is_local": true, - "location": 4537, - "typeName": { - "location": 4540, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 122, - "stmt_location": 4422, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 4587, - "relname": "foo", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 4564, - "relname": "foo2", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f3", - "is_local": true, - "location": 4569, - "typeName": { - "location": 4572, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 4545, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 4611, - "relname": "bar", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 4615, - "typeName": { - "location": 4618, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "f2", - "is_local": true, - "location": 4623, - "typeName": { - "location": 4626, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 4592, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 4673, - "relname": "bar", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 4650, - "relname": "bar2", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f3", - "is_local": true, - "location": 4655, - "typeName": { - "location": 4658, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 4631, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4692, - "relname": "foo", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4703, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4705, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 29, - "stmt_location": 4678, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4721, - "relname": "foo", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 4732, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 4734, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 28, - "stmt_location": 4708, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4750, - "relname": "foo2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4762, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4764, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4766, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 31, - "stmt_location": 4737, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4782, - "relname": "foo2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 4794, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 4796, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 4798, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 31, - "stmt_location": 4769, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4814, - "relname": "bar", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4825, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4827, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 28, - "stmt_location": 4801, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4843, - "relname": "bar", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4854, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4856, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 28, - "stmt_location": 4830, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4872, - "relname": "bar", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 4883, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 4885, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 28, - "stmt_location": 4859, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4901, - "relname": "bar", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 4912, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 4914, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 28, - "stmt_location": 4888, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4930, - "relname": "bar2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4942, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4944, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4946, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 31, - "stmt_location": 4917, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4962, - "relname": "bar2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4974, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4976, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4978, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 31, - "stmt_location": 4949, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 4994, - "relname": "bar2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 5006, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 5008, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 5010, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 31, - "stmt_location": 4981, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 5026, - "relname": "bar2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 5038, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 5040, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 5042, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 31, - "stmt_location": 5013, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "relation": { - "inh": true, - "location": 5054, - "relname": "bar", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 5062, - "name": "f2", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f2", - }, - }, - ], - "location": 5067, - }, - }, - "location": 5070, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 100, - }, - "location": 5072, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "SubLink": { - "location": 5085, - "subLinkType": "ANY_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5104, - "relname": "foo", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5096, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 5096, - }, - }, - }, - }, - ], - }, - }, - "testexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 5082, - }, - }, - }, - }, - }, - }, - "stmt_len": 63, - "stmt_location": 5045, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5166, - "relname": "bar", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5179, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5181, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 5118, - "name": "relname", - "val": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 5118, - }, - }, - "location": 5126, - "typeName": { - "location": 5128, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 5136, - "typeName": { - "location": 5138, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5155, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "bar", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 5155, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 5109, - }, - }, - { - "RawStmt": { - "stmt": { - "UpdateStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "ss", - }, - "subquery": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5302, - "relname": "foo", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5294, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 5294, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5333, - "relname": "foo", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5323, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 5323, - }, - }, - "location": 5325, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 5326, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - ], - "relation": { - "inh": true, - "location": 5256, - "relname": "bar", - "relpersistence": "p", - }, - "targetList": [ - { - "ResTarget": { - "location": 5264, - "name": "f2", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f2", - }, - }, - ], - "location": 5269, - }, - }, - "location": 5272, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 100, - }, - "location": 5274, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "bar", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 5348, - }, - }, - "location": 5355, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ss", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 5357, - }, - }, - }, - }, - }, - }, - "stmt_len": 179, - "stmt_location": 5183, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5420, - "relname": "bar", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5433, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5435, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 5372, - "name": "relname", - "val": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tableoid", - }, - }, - ], - "location": 5372, - }, - }, - "location": 5380, - "typeName": { - "location": 5382, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 5390, - "typeName": { - "location": 5392, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5409, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "bar", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 5409, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 5363, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 5504, - "relname": "firstparent", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "tomorrow", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 5531, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "now", - }, - }, - ], - "location": 5539, - }, - }, - "location": 5544, - "typeName": { - "location": 5546, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 5551, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5553, - }, - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 5517, - "typeName": { - "location": 5526, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 118, - "stmt_location": 5437, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 5570, - "relname": "secondparent", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "tomorrow", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 5598, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "now", - }, - }, - ], - "location": 5607, - }, - }, - "location": 5613, - "typeName": { - "location": 5616, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 5622, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5625, - }, - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 5584, - "typeName": { - "location": 5593, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 71, - "stmt_location": 5556, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 5666, - "relname": "firstparent", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 5679, - "relname": "secondparent", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 5642, - "relname": "jointchild", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 64, - "stmt_location": 5628, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 5714, - "relname": "thirdparent", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "tomorrow", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 5741, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "now", - }, - }, - ], - "location": 5749, - }, - }, - "location": 5754, - "typeName": { - "location": 5756, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 5761, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5763, - }, - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 5727, - "typeName": { - "location": 5736, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 72, - "stmt_location": 5693, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 5804, - "relname": "firstparent", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 5817, - "relname": "thirdparent", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 5780, - "relname": "otherchild", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 63, - "stmt_location": 5766, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 5908, - "relname": "firstparent", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 5921, - "relname": "thirdparent", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 5855, - "relname": "otherchild", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "tomorrow", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 5881, - "raw_expr": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "now", - }, - }, - ], - "location": 5889, - }, - }, - }, - }, - ], - "is_local": true, - "location": 5867, - "typeName": { - "location": 5876, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 103, - "stmt_location": 5830, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "firstparent", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "secondparent", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "jointchild", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "thirdparent", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "otherchild", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 116, - "stmt_location": 5934, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 6112, - "relname": "d", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 6121, - "sval": { - "sval": "test", - }, - }, - }, - { - "A_Const": { - "location": 6128, - "sval": { - "sval": "one", - }, - }, - }, - { - "A_Const": { - "location": 6134, - "sval": { - "sval": "two", - }, - }, - }, - { - "A_Const": { - "location": 6140, - "sval": { - "sval": "three", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 97, - "stmt_location": 6051, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "location": 6177, - "raw_default": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aa", - }, - }, - ], - "location": 6210, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "bit_length", - }, - }, - ], - "location": 6199, - }, - }, - "typeName": { - "location": 6185, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "name": "aa", - "subtype": "AT_AlterColumnType", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 6162, - "relname": "a", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 64, - "stmt_location": 6149, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 6229, - "relname": "d", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6222, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 6222, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 16, - "stmt_location": 6214, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 6289, - "relname": "p1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ff1", - "is_local": true, - "location": 6292, - "typeName": { - "location": 6296, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 69, - "stmt_location": 6231, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "p1chk", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "is_no_inherit": true, - "location": 6321, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff1", - }, - }, - ], - "location": 6345, - }, - }, - "location": 6349, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 6351, - }, - }, - }, - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 6314, - "relname": "p1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 63, - "stmt_location": 6301, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "p2chk", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 6385, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ff1", - }, - }, - ], - "location": 6409, - }, - }, - "location": 6413, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 6415, - }, - }, - }, - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 6378, - "relname": "p1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 53, - "stmt_location": 6365, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "pc", - }, - "inh": true, - "location": 6577, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conrelid", - }, - }, - ], - "location": 6628, - }, - }, - "location": 6641, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 6643, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "pgc", - }, - "inh": true, - "location": 6603, - "relname": "pg_constraint", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6684, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 6686, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 6484, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 6484, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6496, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conname", - }, - }, - ], - "location": 6496, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6509, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "contype", - }, - }, - ], - "location": 6509, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6522, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conislocal", - }, - }, - ], - "location": 6522, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6538, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "coninhcount", - }, - }, - ], - "location": 6538, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6555, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "connoinherit", - }, - }, - ], - "location": 6555, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 6657, - }, - }, - "location": 6668, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 6670, - "sval": { - "sval": "p1", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 268, - "stmt_location": 6419, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 6778, - "relname": "p1", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 6762, - "relname": "c1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 93, - "stmt_location": 6688, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "p1", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 27, - "stmt_location": 6782, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 6947, - "relname": "base", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "i", - "is_local": true, - "location": 6953, - "typeName": { - "location": 6955, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 153, - "stmt_location": 6810, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 6999, - "relname": "base", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 6978, - "relname": "derived", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 40, - "stmt_location": 6964, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 7027, - "name": "i", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 7018, - "relname": "derived", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 7038, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 35, - "stmt_location": 7005, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7068, - "relname": "derived", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7049, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "derived", - }, - }, - ], - "location": 7049, - }, - }, - "location": 7056, - "typeName": { - "location": 7058, - "names": [ - { - "String": { - "sval": "base", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 7041, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "derived", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 19, - "stmt_location": 7076, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "base", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 16, - "stmt_location": 7096, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 7128, - "relname": "p1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "ff1", - "is_local": true, - "location": 7131, - "typeName": { - "location": 7135, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 7113, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 7154, - "relname": "p2", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 7157, - "typeName": { - "location": 7160, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 7140, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "p2text", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": "select $1.f1", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 7207, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "sql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 7225, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 7190, - "names": [ - { - "String": { - "sval": "p2", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "returnType": { - "location": 7202, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 71, - "stmt_location": 7166, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 7272, - "relname": "p1", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 7275, - "relname": "p2", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 7252, - "relname": "c1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f3", - "is_local": true, - "location": 7255, - "typeName": { - "location": 7258, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 7238, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 7292, - "relname": "c1", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 123456789, - }, - "location": 7302, - }, - }, - { - "A_Const": { - "location": 7313, - "sval": { - "sval": "hi", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 42, - }, - "location": 7319, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 7279, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 7349, - "relname": "c1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7331, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c1", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 7338, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "p2text", - }, - }, - ], - "location": 7331, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 7323, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "ObjectWithArgs": { - "objargs": [ - { - "TypeName": { - "location": 7374, - "names": [ - { - "String": { - "sval": "p2", - }, - }, - ], - "typemod": -1, - }, - }, - ], - "objfuncargs": [ - { - "FunctionParameter": { - "argType": { - "location": 7374, - "names": [ - { - "String": { - "sval": "p2", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - }, - }, - ], - "objname": [ - { - "String": { - "sval": "p2text", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_FUNCTION", - }, - }, - "stmt_len": 25, - "stmt_location": 7352, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "c1", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 14, - "stmt_location": 7378, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "p2", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 14, - "stmt_location": 7393, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "p1", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 14, - "stmt_location": 7408, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 7438, - "relname": "ac", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "aa", - "is_local": true, - "location": 7442, - "typeName": { - "location": 7445, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 7423, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "ac_check", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 7471, - "raw_expr": { - "NullTest": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aa", - }, - }, - ], - "location": 7498, - }, - }, - "location": 7501, - "nulltesttype": "IS_NOT_NULL", - }, - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 7464, - "relname": "ac", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 62, - "stmt_location": 7451, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 7551, - "relname": "ac", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 7528, - "relname": "bc", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "bb", - "is_local": true, - "location": 7532, - "typeName": { - "location": 7535, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 7514, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "pc", - }, - "inh": true, - "location": 7650, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conrelid", - }, - }, - ], - "location": 7701, - }, - }, - "location": 7714, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 7716, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "pgc", - }, - "inh": true, - "location": 7676, - "relname": "pg_constraint", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 7766, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 7768, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 7563, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 7563, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7575, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conname", - }, - }, - ], - "location": 7575, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7588, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "contype", - }, - }, - ], - "location": 7588, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7601, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conislocal", - }, - }, - ], - "location": 7601, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7617, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "coninhcount", - }, - }, - ], - "location": 7617, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7634, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "consrc", - }, - }, - ], - "location": 7634, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 7730, - }, - }, - "location": 7741, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 7745, - "sval": { - "sval": "ac", - }, - }, - }, - { - "A_Const": { - "location": 7751, - "sval": { - "sval": "bc", - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 214, - "stmt_location": 7555, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 7788, - "name": "aa", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 7784, - "relname": "ac", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 7800, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 35, - "stmt_location": 7770, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 7823, - "name": "aa", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 7819, - "relname": "bc", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 7835, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 34, - "stmt_location": 7806, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "ac_check", - "subtype": "AT_DropConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 7855, - "relname": "bc", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 41, - "stmt_location": 7841, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "ac_check", - "subtype": "AT_DropConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 7917, - "relname": "ac", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 61, - "stmt_location": 7883, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "pc", - }, - "inh": true, - "location": 8040, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conrelid", - }, - }, - ], - "location": 8091, - }, - }, - "location": 8104, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 8106, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "pgc", - }, - "inh": true, - "location": 8066, - "relname": "pg_constraint", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 8156, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 8158, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 7953, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 7953, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7965, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conname", - }, - }, - ], - "location": 7965, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7978, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "contype", - }, - }, - ], - "location": 7978, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7991, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conislocal", - }, - }, - ], - "location": 7991, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8007, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "coninhcount", - }, - }, - ], - "location": 8007, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8024, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "consrc", - }, - }, - ], - "location": 8024, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 8120, - }, - }, - "location": 8131, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 8135, - "sval": { - "sval": "ac", - }, - }, - }, - { - "A_Const": { - "location": 8141, - "sval": { - "sval": "bc", - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 214, - "stmt_location": 7945, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 8216, - "raw_expr": { - "NullTest": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aa", - }, - }, - ], - "location": 8223, - }, - }, - "location": 8226, - "nulltesttype": "IS_NOT_NULL", - }, - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 8209, - "relname": "ac", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 78, - "stmt_location": 8160, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "pc", - }, - "inh": true, - "location": 8334, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conrelid", - }, - }, - ], - "location": 8385, - }, - }, - "location": 8398, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 8400, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "pgc", - }, - "inh": true, - "location": 8360, - "relname": "pg_constraint", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 8450, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 8452, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 8247, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 8247, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8259, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conname", - }, - }, - ], - "location": 8259, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8272, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "contype", - }, - }, - ], - "location": 8272, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8285, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conislocal", - }, - }, - ], - "location": 8285, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8301, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "coninhcount", - }, - }, - ], - "location": 8301, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8318, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "consrc", - }, - }, - ], - "location": 8318, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 8414, - }, - }, - "location": 8425, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 8429, - "sval": { - "sval": "ac", - }, - }, - }, - { - "A_Const": { - "location": 8435, - "sval": { - "sval": "bc", - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 214, - "stmt_location": 8239, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 8472, - "name": "aa", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 8468, - "relname": "ac", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 8484, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 35, - "stmt_location": 8454, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 8507, - "name": "aa", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 8503, - "relname": "bc", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "isnull": true, - "location": 8519, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 34, - "stmt_location": 8490, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "ac_aa_check", - "subtype": "AT_DropConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 8539, - "relname": "bc", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 44, - "stmt_location": 8525, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "ac_aa_check", - "subtype": "AT_DropConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 8604, - "relname": "ac", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 64, - "stmt_location": 8570, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "pc", - }, - "inh": true, - "location": 8730, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conrelid", - }, - }, - ], - "location": 8781, - }, - }, - "location": 8794, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 8796, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "pgc", - }, - "inh": true, - "location": 8756, - "relname": "pg_constraint", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 8846, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 8848, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 8643, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 8643, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8655, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conname", - }, - }, - ], - "location": 8655, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8668, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "contype", - }, - }, - ], - "location": 8668, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8681, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conislocal", - }, - }, - ], - "location": 8681, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8697, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "coninhcount", - }, - }, - ], - "location": 8697, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8714, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "consrc", - }, - }, - ], - "location": 8714, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 8810, - }, - }, - "location": 8821, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 8825, - "sval": { - "sval": "ac", - }, - }, - }, - { - "A_Const": { - "location": 8831, - "sval": { - "sval": "bc", - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 214, - "stmt_location": 8635, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "ac_check", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 8871, - "raw_expr": { - "NullTest": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aa", - }, - }, - ], - "location": 8898, - }, - }, - "location": 8901, - "nulltesttype": "IS_NOT_NULL", - }, - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 8864, - "relname": "ac", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 63, - "stmt_location": 8850, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "RangeVar": { - "inh": true, - "location": 8941, - "relname": "ac", - "relpersistence": "p", - }, - }, - "subtype": "AT_DropInherit", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 8927, - "relname": "bc", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 29, - "stmt_location": 8914, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "pc", - }, - "inh": true, - "location": 9039, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conrelid", - }, - }, - ], - "location": 9090, - }, - }, - "location": 9103, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 9105, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "pgc", - }, - "inh": true, - "location": 9065, - "relname": "pg_constraint", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 9155, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 9157, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 8952, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 8952, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8964, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conname", - }, - }, - ], - "location": 8964, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8977, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "contype", - }, - }, - ], - "location": 8977, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8990, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conislocal", - }, - }, - ], - "location": 8990, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9006, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "coninhcount", - }, - }, - ], - "location": 9006, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9023, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "consrc", - }, - }, - ], - "location": 9023, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 9119, - }, - }, - "location": 9130, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 9134, - "sval": { - "sval": "ac", - }, - }, - }, - { - "A_Const": { - "location": 9140, - "sval": { - "sval": "bc", - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 214, - "stmt_location": 8944, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "ac_check", - "subtype": "AT_DropConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 9172, - "relname": "bc", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 40, - "stmt_location": 9159, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "pc", - }, - "inh": true, - "location": 9295, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conrelid", - }, - }, - ], - "location": 9346, - }, - }, - "location": 9359, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 9361, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "pgc", - }, - "inh": true, - "location": 9321, - "relname": "pg_constraint", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 9411, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 9413, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 9208, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 9208, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9220, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conname", - }, - }, - ], - "location": 9220, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9233, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "contype", - }, - }, - ], - "location": 9233, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9246, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conislocal", - }, - }, - ], - "location": 9246, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9262, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "coninhcount", - }, - }, - ], - "location": 9262, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9279, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "consrc", - }, - }, - ], - "location": 9279, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 9375, - }, - }, - "location": 9386, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 9390, - "sval": { - "sval": "ac", - }, - }, - }, - { - "A_Const": { - "location": 9396, - "sval": { - "sval": "bc", - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 214, - "stmt_location": 9200, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "ac_check", - "subtype": "AT_DropConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 9428, - "relname": "ac", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 40, - "stmt_location": 9415, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "pc", - }, - "inh": true, - "location": 9551, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conrelid", - }, - }, - ], - "location": 9602, - }, - }, - "location": 9615, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 9617, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "pgc", - }, - "inh": true, - "location": 9577, - "relname": "pg_constraint", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 9667, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 9669, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 9464, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 9464, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9476, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conname", - }, - }, - ], - "location": 9476, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9489, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "contype", - }, - }, - ], - "location": 9489, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9502, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conislocal", - }, - }, - ], - "location": 9502, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9518, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "coninhcount", - }, - }, - ], - "location": 9518, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9535, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "consrc", - }, - }, - ], - "location": 9535, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 9631, - }, - }, - "location": 9642, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 9646, - "sval": { - "sval": "ac", - }, - }, - }, - { - "A_Const": { - "location": 9652, - "sval": { - "sval": "bc", - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 214, - "stmt_location": 9456, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "bc", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 15, - "stmt_location": 9671, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "ac", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 14, - "stmt_location": 9687, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 9717, - "relname": "ac", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "constraints": [ - { - "Constraint": { - "conname": "check_a", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 9727, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 9753, - }, - }, - "location": 9755, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 9758, - }, - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 9721, - "typeName": { - "location": 9723, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 9702, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 9872, - "relname": "ac", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 9776, - "relname": "bc", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "constraints": [ - { - "Constraint": { - "conname": "check_a", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 9786, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 9812, - }, - }, - "location": 9814, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 9817, - }, - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 9780, - "typeName": { - "location": 9782, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "constraints": [ - { - "Constraint": { - "conname": "check_b", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 9827, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 9853, - }, - }, - "location": 9855, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 9858, - }, - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 9821, - "typeName": { - "location": 9823, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 113, - "stmt_location": 9762, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "pc", - }, - "inh": true, - "location": 9971, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conrelid", - }, - }, - ], - "location": 10022, - }, - }, - "location": 10035, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 10037, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "pgc", - }, - "inh": true, - "location": 9997, - "relname": "pg_constraint", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10087, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 10089, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 9884, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 9884, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9896, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conname", - }, - }, - ], - "location": 9896, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9909, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "contype", - }, - }, - ], - "location": 9909, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9922, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conislocal", - }, - }, - ], - "location": 9922, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9938, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "coninhcount", - }, - }, - ], - "location": 9938, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9955, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "consrc", - }, - }, - ], - "location": 9955, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 10051, - }, - }, - "location": 10062, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 10066, - "sval": { - "sval": "ac", - }, - }, - }, - { - "A_Const": { - "location": 10072, - "sval": { - "sval": "bc", - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 214, - "stmt_location": 9876, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "bc", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 15, - "stmt_location": 10091, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "ac", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 14, - "stmt_location": 10107, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 10137, - "relname": "ac", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "constraints": [ - { - "Constraint": { - "conname": "check_a", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 10147, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 10173, - }, - }, - "location": 10175, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 10178, - }, - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 10141, - "typeName": { - "location": 10143, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 10122, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 10196, - "relname": "bc", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "b", - "constraints": [ - { - "Constraint": { - "conname": "check_b", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 10206, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 10232, - }, - }, - "location": 10234, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 10237, - }, - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 10200, - "typeName": { - "location": 10202, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 58, - "stmt_location": 10182, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 10310, - "relname": "ac", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 10314, - "relname": "bc", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 10255, - "relname": "cc", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "c", - "constraints": [ - { - "Constraint": { - "conname": "check_c", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 10265, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 10291, - }, - }, - "location": 10293, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 10296, - }, - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 10259, - "typeName": { - "location": 10261, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 76, - "stmt_location": 10241, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "pc", - }, - "inh": true, - "location": 10413, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conrelid", - }, - }, - ], - "location": 10464, - }, - }, - "location": 10477, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 10479, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "pgc", - }, - "inh": true, - "location": 10439, - "relname": "pg_constraint", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10535, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 10537, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 10326, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 10326, - }, - }, - }, - }, - { - "ResTarget": { - "location": 10338, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conname", - }, - }, - ], - "location": 10338, - }, - }, - }, - }, - { - "ResTarget": { - "location": 10351, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "contype", - }, - }, - ], - "location": 10351, - }, - }, - }, - }, - { - "ResTarget": { - "location": 10364, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conislocal", - }, - }, - ], - "location": 10364, - }, - }, - }, - }, - { - "ResTarget": { - "location": 10380, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "coninhcount", - }, - }, - ], - "location": 10380, - }, - }, - }, - }, - { - "ResTarget": { - "location": 10397, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "consrc", - }, - }, - ], - "location": 10397, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 10493, - }, - }, - "location": 10504, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 10508, - "sval": { - "sval": "ac", - }, - }, - }, - { - "A_Const": { - "location": 10514, - "sval": { - "sval": "bc", - }, - }, - }, - { - "A_Const": { - "location": 10520, - "sval": { - "sval": "cc", - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 220, - "stmt_location": 10318, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "RangeVar": { - "inh": true, - "location": 10567, - "relname": "bc", - "relpersistence": "p", - }, - }, - "subtype": "AT_DropInherit", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 10553, - "relname": "cc", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 30, - "stmt_location": 10539, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "pc", - }, - "inh": true, - "location": 10665, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conrelid", - }, - }, - ], - "location": 10716, - }, - }, - "location": 10729, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 10731, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "pgc", - }, - "inh": true, - "location": 10691, - "relname": "pg_constraint", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10787, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 10789, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 10578, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 10578, - }, - }, - }, - }, - { - "ResTarget": { - "location": 10590, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conname", - }, - }, - ], - "location": 10590, - }, - }, - }, - }, - { - "ResTarget": { - "location": 10603, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "contype", - }, - }, - ], - "location": 10603, - }, - }, - }, - }, - { - "ResTarget": { - "location": 10616, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "conislocal", - }, - }, - ], - "location": 10616, - }, - }, - }, - }, - { - "ResTarget": { - "location": 10632, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "coninhcount", - }, - }, - ], - "location": 10632, - }, - }, - }, - }, - { - "ResTarget": { - "location": 10649, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pgc", - }, - }, - { - "String": { - "sval": "consrc", - }, - }, - ], - "location": 10649, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pc", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 10745, - }, - }, - "location": 10756, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 10760, - "sval": { - "sval": "ac", - }, - }, - }, - { - "A_Const": { - "location": 10766, - "sval": { - "sval": "bc", - }, - }, - }, - { - "A_Const": { - "location": 10772, - "sval": { - "sval": "cc", - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - "stmt_len": 220, - "stmt_location": 10570, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "cc", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 15, - "stmt_location": 10791, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "bc", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 14, - "stmt_location": 10807, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "ac", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 14, - "stmt_location": 10822, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 10852, - "relname": "p1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 10855, - "typeName": { - "location": 10858, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 10837, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 10877, - "relname": "p2", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f2", - "is_local": true, - "location": 10880, - "typeName": { - "location": 10883, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 10863, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 10922, - "relname": "p1", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 10925, - "relname": "p2", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 10902, - "relname": "c1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f3", - "is_local": true, - "location": 10905, - "typeName": { - "location": 10908, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 10888, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 10942, - "relname": "c1", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10952, - }, - }, - { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 10954, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 10957, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 30, - "stmt_location": 10929, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "conname": "cc", - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 10980, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f2", - }, - }, - ], - "location": 11001, - }, - }, - "location": 11003, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 11004, - }, - }, - }, - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 10973, - "relname": "p2", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 46, - "stmt_location": 10960, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 11036, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f2", - }, - }, - ], - "location": 11043, - }, - }, - "location": 11045, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 11046, - }, - }, - }, - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 11029, - "relname": "p2", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 41, - "stmt_location": 11007, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 11095, - "relname": "c1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 48, - "stmt_location": 11049, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 11111, - "relname": "c1", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11121, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11123, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11125, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 29, - "stmt_location": 11098, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 11148, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f2", - }, - }, - ], - "location": 11155, - }, - }, - "location": 11157, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 11158, - }, - }, - }, - }, - }, - }, - "subtype": "AT_AddConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 11141, - "relname": "p2", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 32, - "stmt_location": 11128, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 11174, - "relname": "c1", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11184, - }, - }, - { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 11186, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 11189, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 30, - "stmt_location": 11161, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 11235, - "relname": "p1", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 11238, - "relname": "p2", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 11215, - "relname": "c2", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f3", - "is_local": true, - "location": 11218, - "typeName": { - "location": 11221, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 49, - "stmt_location": 11192, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 11279, - "relname": "c1", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 11282, - "relname": "c2", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 11258, - "relname": "c3", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f4", - "is_local": true, - "location": 11262, - "typeName": { - "location": 11265, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 43, - "stmt_location": 11242, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "p1", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 24, - "stmt_location": 11286, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "p2", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 22, - "stmt_location": 11311, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 11349, - "relname": "pp1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 11354, - "typeName": { - "location": 11357, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 11334, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 11408, - "relname": "pp1", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 11376, - "relname": "cc1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f2", - "is_local": true, - "location": 11381, - "typeName": { - "location": 11384, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "f3", - "is_local": true, - "location": 11390, - "typeName": { - "location": 11393, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 50, - "stmt_location": 11362, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "a1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 11448, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a1", - }, - }, - ], - "location": 11455, - }, - }, - "location": 11458, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 11460, - }, - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 11441, - "typeName": { - "location": 11444, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 11426, - "relname": "pp1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 49, - "stmt_location": 11413, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 11502, - "relname": "pp1", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 11506, - "relname": "cc1", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 11479, - "relname": "cc2", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f4", - "is_local": true, - "location": 11483, - "typeName": { - "location": 11486, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 11463, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "def": { - "ColumnDef": { - "colname": "a2", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_CHECK", - "initially_valid": true, - "location": 11548, - "raw_expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a2", - }, - }, - ], - "location": 11555, - }, - }, - "location": 11558, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 11560, - }, - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 11541, - "typeName": { - "location": 11544, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "subtype": "AT_AddColumn", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 11526, - "relname": "pp1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 51, - "stmt_location": 11511, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "pp1", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 25, - "stmt_location": 11563, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 11656, - "relname": "inht1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 11663, - "typeName": { - "location": 11665, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 11670, - "typeName": { - "location": 11672, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 87, - "stmt_location": 11589, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 11691, - "relname": "inhs1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 11698, - "typeName": { - "location": 11700, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c", - "is_local": true, - "location": 11705, - "typeName": { - "location": 11707, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 11677, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 11750, - "relname": "inht1", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 11757, - "relname": "inhs1", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 11726, - "relname": "inhts", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "d", - "is_local": true, - "location": 11733, - "typeName": { - "location": 11735, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 11712, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "aa", - "relation": { - "inh": true, - "location": 11778, - "relname": "inht1", - "relpersistence": "p", - }, - "relationType": "OBJECT_TABLE", - "renameType": "OBJECT_COLUMN", - "subname": "a", - }, - }, - "stmt_len": 34, - "stmt_location": 11764, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "bb", - "relation": { - "inh": true, - "location": 11812, - "relname": "inht1", - "relpersistence": "p", - }, - "relationType": "OBJECT_TABLE", - "renameType": "OBJECT_COLUMN", - "subname": "b", - }, - }, - "stmt_len": 33, - "stmt_location": 11799, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "aaa", - "relation": { - "inh": true, - "location": 11877, - "relname": "inhts", - "relpersistence": "p", - }, - "relationType": "OBJECT_TABLE", - "renameType": "OBJECT_COLUMN", - "subname": "aa", - }, - }, - "stmt_len": 66, - "stmt_location": 11833, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "dd", - "relation": { - "inh": true, - "location": 11934, - "relname": "inhts", - "relpersistence": "p", - }, - "relationType": "OBJECT_TABLE", - "renameType": "OBJECT_COLUMN", - "subname": "d", - }, - }, - "stmt_len": 54, - "stmt_location": 11900, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "inhts", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 20, - "stmt_location": 11955, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 12059, - "relname": "inht1", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 12035, - "relname": "inht2", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "x", - "is_local": true, - "location": 12042, - "typeName": { - "location": 12044, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 89, - "stmt_location": 11976, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 12104, - "relname": "inht1", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 12080, - "relname": "inht3", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "y", - "is_local": true, - "location": 12087, - "typeName": { - "location": 12089, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 12066, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 12149, - "relname": "inht2", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 12156, - "relname": "inht3", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 12125, - "relname": "inht4", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "z", - "is_local": true, - "location": 12132, - "typeName": { - "location": 12134, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 12111, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "aaa", - "relation": { - "inh": true, - "location": 12177, - "relname": "inht1", - "relpersistence": "p", - }, - "relationType": "OBJECT_TABLE", - "renameType": "OBJECT_COLUMN", - "subname": "aa", - }, - }, - "stmt_len": 36, - "stmt_location": 12163, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 12241, - "relname": "inht2", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 12248, - "relname": "inhs1", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 12217, - "relname": "inhts", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "d", - "is_local": true, - "location": 12224, - "typeName": { - "location": 12226, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 12200, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "aaaa", - "relation": { - "inh": true, - "location": 12268, - "relname": "inht1", - "relpersistence": "p", - }, - "relationType": "OBJECT_TABLE", - "renameType": "OBJECT_COLUMN", - "subname": "aaa", - }, - }, - "stmt_len": 37, - "stmt_location": 12255, - }, - }, - { - "RawStmt": { - "stmt": { - "RenameStmt": { - "behavior": "DROP_RESTRICT", - "newname": "bb", - "relation": { - "inh": true, - "location": 12306, - "relname": "inht1", - "relpersistence": "p", - }, - "relationType": "OBJECT_TABLE", - "renameType": "OBJECT_COLUMN", - "subname": "b", - }, - }, - "stmt_len": 33, - "stmt_location": 12293, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeSubselect": { - "alias": { - "aliasname": "e", - }, - "subquery": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 12625, - "relname": "pg_inherits", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "inhrelid", - }, - }, - ], - "location": 12698, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12589, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "inhrelid", - }, - }, - ], - "location": 12589, - }, - }, - }, - }, - { - "ResTarget": { - "location": 12599, - "name": "expected", - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 12599, - }, - }, - }, - }, - ], - "whereClause": { - "SubLink": { - "location": 12661, - "subLinkType": "ANY_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 12686, - "relname": "r", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12672, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "inhrelid", - }, - }, - ], - "location": 12672, - }, - }, - }, - }, - ], - }, - }, - "testexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "inhparent", - }, - }, - ], - "location": 12651, - }, - }, - }, - }, - }, - }, - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "e", - }, - }, - { - "String": { - "sval": "inhrelid", - }, - }, - ], - "location": 12735, - }, - }, - "location": 12746, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "attrelid", - }, - }, - ], - "location": 12748, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 12717, - "relname": "pg_attribute", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "attrelid", - }, - }, - ], - "location": 12791, - }, - }, - "location": 12801, - "typeName": { - "location": 12803, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 12811, - "typeName": { - "location": 12813, - "names": [ - { - "String": { - "sval": "name", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "attnum", - }, - }, - ], - "location": 12819, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 12515, - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "attrelid", - }, - }, - ], - "location": 12515, - }, - }, - "location": 12525, - "typeName": { - "location": 12527, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 12537, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "attname", - }, - }, - ], - "location": 12537, - }, - }, - }, - }, - { - "ResTarget": { - "location": 12548, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "attinhcount", - }, - }, - ], - "location": 12548, - }, - }, - }, - }, - { - "ResTarget": { - "location": 12563, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "e", - }, - }, - { - "String": { - "sval": "expected", - }, - }, - ], - "location": 12563, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "attislocal", - }, - }, - ], - "location": 12769, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 12765, - }, - }, - "withClause": { - "ctes": [ - { - "CommonTableExpr": { - "ctematerialized": "CTEMaterializeDefault", - "ctename": "r", - "ctequery": { - "SelectStmt": { - "all": true, - "larg": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12393, - "name": "inhrelid", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 12393, - "sval": { - "sval": "inht1", - }, - }, - }, - "location": 12400, - "typeName": { - "location": 12402, - "names": [ - { - "String": { - "sval": "regclass", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "c", - }, - "inh": true, - "location": 12458, - "relname": "pg_inherits", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "inh": true, - "location": 12473, - "relname": "r", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12442, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "inhrelid", - }, - }, - ], - "location": 12442, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "r", - }, - }, - { - "String": { - "sval": "inhrelid", - }, - }, - ], - "location": 12481, - }, - }, - "location": 12492, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "inhparent", - }, - }, - ], - "location": 12494, - }, - }, - }, - }, - }, - }, - }, - "location": 12377, - }, - }, - ], - "location": 12362, - "recursive": true, - }, - }, - }, - "stmt_len": 500, - "stmt_location": 12327, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "inht1", - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "inhs1", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 33, - "stmt_location": 12828, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 12940, - "relname": "test_constraints", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "is_local": true, - "location": 12958, - "typeName": { - "location": 12961, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "val1", - "is_local": true, - "location": 12966, - "typeName": { - "location": 12971, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "val2", - "is_local": true, - "location": 12980, - "typeName": { - "location": 12985, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "contype": "CONSTR_UNIQUE", - "keys": [ - { - "String": { - "sval": "val1", - }, - }, - { - "String": { - "sval": "val2", - }, - }, - ], - "location": 12990, - }, - }, - ], - }, - }, - "stmt_len": 147, - "stmt_location": 12862, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 13058, - "relname": "test_constraints", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 13024, - "relname": "test_constraints_inh", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 65, - "stmt_location": 13010, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "test_constraints_val1_val2_key", - "subtype": "AT_DropConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "location": 13096, - "relname": "test_constraints", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 83, - "stmt_location": 13076, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_constraints_inh", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 36, - "stmt_location": 13160, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_constraints", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 28, - "stmt_location": 13197, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 13241, - "relname": "test_ex_constraints", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "c", - "is_local": true, - "location": 13267, - "typeName": { - "location": 13269, - "names": [ - { - "String": { - "sval": "circle", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "Constraint": { - "access_method": "gist", - "contype": "CONSTR_EXCLUSION", - "exclusions": [ - { - "List": { - "items": [ - { - "IndexElem": { - "name": "c", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "List": { - "items": [ - { - "String": { - "sval": "&&", - }, - }, - ], - }, - }, - ], - }, - }, - ], - "location": 13281, - }, - }, - ], - }, - }, - "stmt_len": 87, - "stmt_location": 13226, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 13365, - "relname": "test_ex_constraints", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 13328, - "relname": "test_ex_constraints_inh", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 71, - "stmt_location": 13314, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "test_ex_constraints_c_excl", - "subtype": "AT_DropConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 13401, - "relname": "test_ex_constraints", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 77, - "stmt_location": 13386, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_ex_constraints_inh", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 39, - "stmt_location": 13464, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_ex_constraints", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 31, - "stmt_location": 13504, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 13599, - "relname": "test_primary_constraints", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 13631, - }, - }, - ], - "is_local": true, - "location": 13624, - "typeName": { - "location": 13627, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 107, - "stmt_location": 13536, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 13658, - "relname": "test_foreign_constraints", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id1", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_FOREIGN", - "fk_del_action": "a", - "fk_matchtype": "s", - "fk_upd_action": "a", - "initially_valid": true, - "location": 13691, - "pk_attrs": [ - { - "String": { - "sval": "id", - }, - }, - ], - "pktable": { - "inh": true, - "location": 13702, - "relname": "test_primary_constraints", - "relpersistence": "p", - }, - }, - }, - ], - "is_local": true, - "location": 13683, - "typeName": { - "location": 13687, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 87, - "stmt_location": 13644, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 13788, - "relname": "test_foreign_constraints", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 13746, - "relname": "test_foreign_constraints_inh", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 81, - "stmt_location": 13732, - }, - }, - { - "RawStmt": { - "stmt": { - "AlterTableStmt": { - "cmds": [ - { - "AlterTableCmd": { - "behavior": "DROP_RESTRICT", - "name": "test_foreign_constraints_id1_fkey", - "subtype": "AT_DropConstraint", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "relation": { - "inh": true, - "location": 13831, - "relname": "test_foreign_constraints", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 91, - "stmt_location": 13814, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_foreign_constraints_inh", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 44, - "stmt_location": 13906, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_foreign_constraints", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 36, - "stmt_location": 13951, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_primary_constraints", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 36, - "stmt_location": 13988, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateTableAsStmt": { - "into": { - "colNames": [ - { - "String": { - "sval": "id", - }, - }, - { - "String": { - "sval": "x", - }, - }, - ], - "onCommit": "ONCOMMIT_NOOP", - "rel": { - "inh": true, - "location": 14109, - "relname": "patest0", - "relpersistence": "t", - }, - }, - "objtype": "OBJECT_TABLE", - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "x", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": {}, - "location": 14163, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1000, - }, - "location": 14165, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 14147, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14137, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 14137, - }, - }, - }, - }, - { - "ResTarget": { - "location": 14140, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 14140, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 147, - "stmt_location": 14025, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 14212, - "relname": "patest0", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 14192, - "relname": "patest1", - "relpersistence": "t", - }, - }, - }, - "stmt_len": 47, - "stmt_location": 14173, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 14234, - "relname": "patest1", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "x", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": {}, - "location": 14277, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1000, - }, - "location": 14279, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 14261, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14251, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 14251, - }, - }, - }, - }, - { - "ResTarget": { - "location": 14254, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 14254, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 65, - "stmt_location": 14221, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 14326, - "relname": "patest0", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 14306, - "relname": "patest2", - "relpersistence": "t", - }, - }, - }, - "stmt_len": 47, - "stmt_location": 14287, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 14348, - "relname": "patest2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "x", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": {}, - "location": 14391, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1000, - }, - "location": 14393, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 14375, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14365, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 14365, - }, - }, - }, - }, - { - "ResTarget": { - "location": 14368, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 14368, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 65, - "stmt_location": 14335, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "patest0i", - "indexParams": [ - { - "IndexElem": { - "name": "id", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 14427, - "relname": "patest0", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 37, - "stmt_location": 14401, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "patest1i", - "indexParams": [ - { - "IndexElem": { - "name": "id", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 14465, - "relname": "patest1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 37, - "stmt_location": 14439, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "patest2i", - "indexParams": [ - { - "IndexElem": { - "name": "id", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 14503, - "relname": "patest2", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 37, - "stmt_location": 14477, - }, - }, - { - "RawStmt": { - "stmt": { - "VacuumStmt": { - "rels": [ - { - "VacuumRelation": { - "relation": { - "inh": true, - "location": 14524, - "relname": "patest0", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 16, - "stmt_location": 14515, - }, - }, - { - "RawStmt": { - "stmt": { - "VacuumStmt": { - "rels": [ - { - "VacuumRelation": { - "relation": { - "inh": true, - "location": 14541, - "relname": "patest1", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 16, - "stmt_location": 14532, - }, - }, - { - "RawStmt": { - "stmt": { - "VacuumStmt": { - "rels": [ - { - "VacuumRelation": { - "relation": { - "inh": true, - "location": 14558, - "relname": "patest2", - "relpersistence": "p", - }, - }, - }, - ], - }, - }, - "stmt_len": 16, - "stmt_location": 14549, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 14577, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "inh": true, - "location": 14602, - "relname": "patest0", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 14655, - }, - }, - "location": 14658, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 14660, - }, - }, - }, - }, - "rarg": { - "RangeSubselect": { - "alias": { - "aliasname": "ss", - }, - "subquery": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 14631, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitCount": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 14646, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14623, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 14623, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14595, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 14595, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 96, - "stmt_location": 14566, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "inh": true, - "location": 14678, - "relname": "patest0", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 14731, - }, - }, - "location": 14734, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 14736, - }, - }, - }, - }, - "rarg": { - "RangeSubselect": { - "alias": { - "aliasname": "ss", - }, - "subquery": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 14707, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitCount": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 14722, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14699, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 14699, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14671, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 14671, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 75, - "stmt_location": 14663, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "patest2i", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_INDEX", - }, - }, - "stmt_len": 21, - "stmt_location": 14739, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 14772, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "inh": true, - "location": 14797, - "relname": "patest0", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 14850, - }, - }, - "location": 14853, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 14855, - }, - }, - }, - }, - "rarg": { - "RangeSubselect": { - "alias": { - "aliasname": "ss", - }, - "subquery": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 14826, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitCount": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 14841, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14818, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 14818, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14790, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 14790, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 96, - "stmt_location": 14761, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "inh": true, - "location": 14873, - "relname": "patest0", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 14926, - }, - }, - "location": 14929, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 14931, - }, - }, - }, - }, - "rarg": { - "RangeSubselect": { - "alias": { - "aliasname": "ss", - }, - "subquery": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 14902, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitCount": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 14917, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14894, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 14894, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14866, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 14866, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 75, - "stmt_location": 14858, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "patest0", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 28, - "stmt_location": 14934, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 15034, - "relname": "matest0", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 15053, - }, - }, - ], - "is_local": true, - "location": 15043, - "typeName": { - "location": 15046, - "names": [ - { - "String": { - "sval": "serial", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "name", - "is_local": true, - "location": 15066, - "typeName": { - "location": 15071, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 113, - "stmt_location": 14963, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 15134, - "relname": "matest0", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 15091, - "relname": "matest1", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 15111, - }, - }, - ], - "is_local": true, - "location": 15100, - "typeName": { - "location": 15103, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 65, - "stmt_location": 15077, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 15200, - "relname": "matest0", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 15157, - "relname": "matest2", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 15177, - }, - }, - ], - "is_local": true, - "location": 15166, - "typeName": { - "location": 15169, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 65, - "stmt_location": 15143, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 15266, - "relname": "matest0", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 15223, - "relname": "matest3", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "id", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_PRIMARY", - "location": 15243, - }, - }, - ], - "is_local": true, - "location": 15232, - "typeName": { - "location": 15235, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 65, - "stmt_location": 15209, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "matest0i", - "indexParams": [ - { - "IndexElem": { - "expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 15312, - }, - }, - "location": 15313, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 15314, - }, - }, - }, - }, - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 15302, - "relname": "matest0", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 43, - "stmt_location": 15275, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "matest1i", - "indexParams": [ - { - "IndexElem": { - "expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 15355, - }, - }, - "location": 15356, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 15357, - }, - }, - }, - }, - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 15345, - "relname": "matest1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 42, - "stmt_location": 15319, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "matest3i", - "indexParams": [ - { - "IndexElem": { - "expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 15470, - }, - }, - "location": 15471, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 15472, - }, - }, - }, - }, - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 15460, - "relname": "matest3", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 114, - "stmt_location": 15362, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 15500, - "name": "name", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 15491, - "relname": "matest1", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 15514, - "sval": { - "sval": "Test 1", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 15477, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 15546, - "name": "name", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 15537, - "relname": "matest1", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 15560, - "sval": { - "sval": "Test 2", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 45, - "stmt_location": 15524, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 15592, - "name": "name", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 15583, - "relname": "matest2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 15606, - "sval": { - "sval": "Test 3", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 45, - "stmt_location": 15570, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 15638, - "name": "name", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 15629, - "relname": "matest2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 15652, - "sval": { - "sval": "Test 4", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 45, - "stmt_location": 15616, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 15684, - "name": "name", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 15675, - "relname": "matest3", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 15698, - "sval": { - "sval": "Test 5", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 45, - "stmt_location": 15662, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 15730, - "name": "name", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 15721, - "relname": "matest3", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 15744, - "sval": { - "sval": "Test 6", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 45, - "stmt_location": 15708, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 15779, - "sval": { - "sval": "off", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_indexscan", - }, - }, - "stmt_len": 28, - "stmt_location": 15754, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "verbose", - "location": 15836, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 15845, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 15870, - "relname": "matest0", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 15887, - }, - }, - "location": 15888, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 15889, - }, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 15863, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 15863, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 108, - "stmt_location": 15783, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 15907, - "relname": "matest0", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 15924, - }, - }, - "location": 15925, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 15926, - }, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 15900, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 15900, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 15892, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "verbose", - "location": 15939, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 15948, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 15981, - "relname": "matest0", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15966, - "val": { - "FuncCall": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 15970, - }, - }, - "location": 15971, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 15972, - }, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 15966, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 15929, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 16012, - "relname": "matest0", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15997, - "val": { - "FuncCall": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 16001, - }, - }, - "location": 16002, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 16003, - }, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 15997, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 15989, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "enable_indexscan", - }, - }, - "stmt_len": 23, - "stmt_location": 16020, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 16067, - "sval": { - "sval": "off", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_seqscan", - }, - }, - "stmt_len": 26, - "stmt_location": 16044, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "verbose", - "location": 16127, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 16136, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 16161, - "relname": "matest0", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 16178, - }, - }, - "location": 16179, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 16180, - }, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 16154, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 16154, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 111, - "stmt_location": 16071, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 16198, - "relname": "matest0", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 16215, - }, - }, - "location": 16216, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 16217, - }, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 16191, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 16191, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 16183, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "defaction": "DEFELEM_UNSPEC", - "defname": "verbose", - "location": 16230, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 16239, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 16272, - "relname": "matest0", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16257, - "val": { - "FuncCall": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 16261, - }, - }, - "location": 16262, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 16263, - }, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 16257, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 16220, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 16303, - "relname": "matest0", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16288, - "val": { - "FuncCall": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 16292, - }, - }, - "location": 16293, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 16294, - }, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 16288, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 16280, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "enable_seqscan", - }, - }, - "stmt_len": 21, - "stmt_location": 16311, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "matest0", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 28, - "stmt_location": 16333, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 16490, - "relname": "matest0", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 16499, - "typeName": { - "location": 16501, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 16506, - "typeName": { - "location": 16508, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c", - "is_local": true, - "location": 16513, - "typeName": { - "location": 16515, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "d", - "is_local": true, - "location": 16520, - "typeName": { - "location": 16522, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 164, - "stmt_location": 16362, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "inhRelations": [ - { - "RangeVar": { - "inh": true, - "location": 16561, - "relname": "matest0", - "relpersistence": "p", - }, - }, - ], - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 16541, - "relname": "matest1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 42, - "stmt_location": 16527, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "matest0i", - "indexParams": [ - { - "IndexElem": { - "name": "b", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "c", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 16596, - "relname": "matest0", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 40, - "stmt_location": 16570, - }, - }, - { - "RawStmt": { - "stmt": { - "IndexStmt": { - "accessMethod": "btree", - "idxname": "matest1i", - "indexParams": [ - { - "IndexElem": { - "name": "b", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - { - "IndexElem": { - "name": "c", - "nulls_ordering": "SORTBY_NULLS_DEFAULT", - "ordering": "SORTBY_DEFAULT", - }, - }, - ], - "relation": { - "inh": true, - "location": 16637, - "relname": "matest1", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 40, - "stmt_location": 16611, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 16676, - "sval": { - "sval": "off", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_nestloop", - }, - }, - "stmt_len": 27, - "stmt_location": 16652, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 16732, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "t1", - }, - "inh": true, - "location": 16760, - "relname": "matest0", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "t2", - }, - "inh": true, - "location": 16772, - "relname": "matest0", - "relpersistence": "p", - }, - }, - ], - "limitCount": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 16837, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 16826, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 16750, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 16750, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 16789, - }, - }, - "location": 16794, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 16796, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - "location": 16805, - }, - }, - "location": 16810, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "d", - }, - }, - ], - "location": 16812, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 16801, - }, - }, - }, - }, - }, - }, - "stmt_len": 159, - "stmt_location": 16680, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "enable_nestloop", - }, - }, - "stmt_len": 23, - "stmt_location": 16840, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_CASCADE", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "matest0", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 28, - "stmt_location": 16864, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 16975, - "sval": { - "sval": "off", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_seqscan", - }, - }, - "stmt_len": 85, - "stmt_location": 16893, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 17003, - "sval": { - "sval": "on", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_indexscan", - }, - }, - "stmt_len": 26, - "stmt_location": 16979, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "args": [ - { - "A_Const": { - "location": 17031, - "sval": { - "sval": "off", - }, - }, - }, - ], - "kind": "VAR_SET_VALUE", - "name": "enable_bitmapscan", - }, - }, - "stmt_len": 28, - "stmt_location": 17006, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 17118, - }, - }, - ], - "query": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 17160, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17136, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 17136, - }, - }, - }, - }, - { - "ResTarget": { - "location": 17146, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 17146, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 17207, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17183, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 17183, - }, - }, - }, - }, - { - "ResTarget": { - "location": 17193, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 17193, - }, - }, - }, - }, - ], - }, - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 17222, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 17232, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 205, - "stmt_location": 17035, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 17252, - }, - }, - ], - "query": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 17318, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17270, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 17270, - }, - }, - }, - }, - { - "ResTarget": { - "location": 17280, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 17280, - }, - }, - }, - }, - { - "ResTarget": { - "location": 17290, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 17290, - }, - }, - "location": 17298, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 17299, - }, - }, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 17362, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17341, - "val": { - "A_Const": { - "ival": { - "ival": 42, - }, - "location": 17341, - }, - }, - }, - }, - { - "ResTarget": { - "location": 17345, - "val": { - "A_Const": { - "ival": { - "ival": 42, - }, - "location": 17345, - }, - }, - }, - }, - { - "ResTarget": { - "location": 17349, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "hundred", - }, - }, - ], - "location": 17349, - }, - }, - }, - }, - ], - }, - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 17377, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 17387, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 154, - "stmt_location": 17241, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 17407, - }, - }, - ], - "query": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 17449, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17425, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 17425, - }, - }, - }, - }, - { - "ResTarget": { - "location": 17435, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 17435, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 17505, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17472, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 17472, - }, - }, - }, - }, - { - "ResTarget": { - "location": 17482, - "val": { - "TypeCast": { - "arg": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "random", - }, - }, - ], - "location": 17482, - }, - }, - "location": 17490, - "typeName": { - "location": 17492, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 17520, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 17530, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 142, - "stmt_location": 17396, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 17590, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "s", - }, - "subquery": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 17648, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17630, - "name": "x", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 17630, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 17697, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17679, - "name": "x", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique2", - }, - }, - ], - "location": 17679, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17608, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 17612, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 17608, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 168, - "stmt_location": 17539, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 17719, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "s", - }, - "subquery": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 17791, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17759, - "name": "x", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 17759, - }, - }, - }, - }, - { - "ResTarget": { - "location": 17773, - "name": "y", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 17773, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 17854, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17822, - "name": "x", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique2", - }, - }, - ], - "location": 17822, - }, - }, - }, - }, - { - "ResTarget": { - "location": 17836, - "name": "y", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique2", - }, - }, - ], - "location": 17836, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17737, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 17741, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 17737, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 156, - "stmt_location": 17708, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 17954, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "s", - }, - "subquery": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 18026, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17992, - "name": "x", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "thousand", - }, - }, - ], - "location": 17992, - }, - }, - }, - }, - { - "ResTarget": { - "location": 18007, - "name": "y", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tenthous", - }, - }, - ], - "location": 18007, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "b", - }, - "inh": true, - "location": 18089, - "relname": "tenk1", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18057, - "name": "x", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique2", - }, - }, - ], - "location": 18057, - }, - }, - }, - }, - { - "ResTarget": { - "location": 18071, - "name": "y", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique2", - }, - }, - ], - "location": 18071, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 18109, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 18112, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 17972, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 17972, - }, - }, - }, - }, - { - "ResTarget": { - "location": 17975, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - ], - "location": 17975, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 248, - "stmt_location": 17865, - }, - }, - { - "RawStmt": { - "stmt": { - "ExplainStmt": { - "options": [ - { - "DefElem": { - "arg": { - "String": { - "sval": "off", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "costs", - "location": 18190, - }, - }, - ], - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "g", - "colnames": [ - { - "String": { - "sval": "i", - }, - }, - ], - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18451, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 18454, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 18435, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18212, - "val": { - "SubLink": { - "location": 18212, - "subLinkType": "ARRAY_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "f", - "colnames": [ - { - "String": { - "sval": "i", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "d", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 18281, - }, - }, - { - "A_Const": { - "ival": { - "ival": 30, - }, - "location": 18284, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 18288, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 18265, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18302, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 18252, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - ], - "location": 18252, - }, - }, - "location": 18254, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "g", - }, - }, - { - "String": { - "sval": "i", - }, - }, - ], - "location": 18256, - }, - }, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "d", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": {}, - "location": 18368, - }, - }, - { - "A_Const": { - "ival": { - "ival": 30, - }, - "location": 18371, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 18375, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 18352, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18389, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 18339, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - ], - "location": 18339, - }, - }, - "location": 18341, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "g", - }, - }, - { - "String": { - "sval": "i", - }, - }, - ], - "location": 18343, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - ], - "limitCount": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 18426, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "i", - }, - }, - ], - "location": 18416, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 18225, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "i", - }, - }, - ], - "location": 18225, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 347, - "stmt_location": 18114, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "g", - "colnames": [ - { - "String": { - "sval": "i", - }, - }, - ], - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18714, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 18717, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 18698, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18475, - "val": { - "SubLink": { - "location": 18475, - "subLinkType": "ARRAY_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "f", - "colnames": [ - { - "String": { - "sval": "i", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "all": true, - "larg": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "d", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 18544, - }, - }, - { - "A_Const": { - "ival": { - "ival": 30, - }, - "location": 18547, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 18551, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 18528, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18565, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 18515, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - ], - "location": 18515, - }, - }, - "location": 18517, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "g", - }, - }, - { - "String": { - "sval": "i", - }, - }, - ], - "location": 18519, - }, - }, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_UNION", - "rarg": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "d", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": {}, - "location": 18631, - }, - }, - { - "A_Const": { - "ival": { - "ival": 30, - }, - "location": 18634, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 18638, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 18615, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18652, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 18602, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - ], - "location": 18602, - }, - }, - "location": 18604, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "g", - }, - }, - { - "String": { - "sval": "i", - }, - }, - ], - "location": 18606, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - ], - "limitCount": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 18689, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "i", - }, - }, - ], - "location": 18679, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 18488, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "i", - }, - }, - ], - "location": 18488, - }, - }, - }, - }, - ], - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 262, - "stmt_location": 18462, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "enable_seqscan", - }, - }, - "stmt_len": 22, - "stmt_location": 18725, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "enable_indexscan", - }, - }, - "stmt_len": 23, - "stmt_location": 18748, - }, - }, - { - "RawStmt": { - "stmt": { - "VariableSetStmt": { - "kind": "VAR_RESET", - "name": "enable_bitmapscan", - }, - }, - "stmt_len": 24, - "stmt_location": 18772, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/init_privs.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 121, - "relname": "pg_init_privs", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 103, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 103, - }, - }, - "location": 112, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 114, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 134, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 236, - "roletype": "ROLESPEC_CURRENT_USER", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "RangeVar": { - "inh": true, - "location": 225, - "relname": "pg_proc", - "relpersistence": "p", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "privileges": [ - { - "AccessPriv": { - "priv_name": "select", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 113, - "stmt_location": 135, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 286, - "roletype": "ROLESPEC_CURRENT_USER", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "RangeVar": { - "inh": true, - "location": 275, - "relname": "pg_proc", - "relpersistence": "p", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "privileges": [ - { - "AccessPriv": { - "cols": [ - { - "String": { - "sval": "prosrc", - }, - }, - ], - "priv_name": "select", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 49, - "stmt_location": 249, - }, - }, - { - "RawStmt": { - "stmt": { - "GrantStmt": { - "behavior": "DROP_RESTRICT", - "grantees": [ - { - "RoleSpec": { - "location": 350, - "roletype": "ROLESPEC_CURRENT_USER", - }, - }, - ], - "is_grant": true, - "objects": [ - { - "RangeVar": { - "inh": true, - "location": 337, - "relname": "pg_authid", - "relpersistence": "p", - }, - }, - ], - "objtype": "OBJECT_TABLE", - "privileges": [ - { - "AccessPriv": { - "cols": [ - { - "String": { - "sval": "rolname", - }, - }, - { - "String": { - "sval": "rolsuper", - }, - }, - ], - "priv_name": "select", - }, - }, - ], - "targtype": "ACL_TARGET_OBJECT", - }, - }, - "stmt_len": 63, - "stmt_location": 299, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/insert.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 61, - "relname": "inserttest", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "col1", - "is_local": true, - "location": 73, - "typeName": { - "location": 78, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "col2", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_NOTNULL", - "location": 94, - }, - }, - ], - "is_local": true, - "location": 84, - "typeName": { - "location": 89, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "col3", - "constraints": [ - { - "Constraint": { - "contype": "CONSTR_DEFAULT", - "location": 114, - "raw_expr": { - "A_Const": { - "location": 122, - "sval": { - "sval": "testing", - }, - }, - }, - }, - }, - ], - "is_local": true, - "location": 104, - "typeName": { - "location": 109, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 132, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 158, - "name": "col1", - }, - }, - { - "ResTarget": { - "location": 164, - "name": "col2", - }, - }, - { - "ResTarget": { - "location": 170, - "name": "col3", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 146, - "relname": "inserttest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "SetToDefault": { - "location": 184, - }, - }, - { - "SetToDefault": { - "location": 193, - }, - }, - { - "SetToDefault": { - "location": 202, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 77, - "stmt_location": 133, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 236, - "name": "col2", - }, - }, - { - "ResTarget": { - "location": 242, - "name": "col3", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 224, - "relname": "inserttest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 256, - }, - }, - { - "SetToDefault": { - "location": 259, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 56, - "stmt_location": 211, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 293, - "name": "col1", - }, - }, - { - "ResTarget": { - "location": 299, - "name": "col2", - }, - }, - { - "ResTarget": { - "location": 305, - "name": "col3", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 281, - "relname": "inserttest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "SetToDefault": { - "location": 319, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 328, - }, - }, - { - "SetToDefault": { - "location": 331, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 71, - "stmt_location": 268, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 353, - "relname": "inserttest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "SetToDefault": { - "location": 372, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 381, - }, - }, - { - "A_Const": { - "location": 384, - "sval": { - "sval": "test", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 51, - "stmt_location": 340, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 405, - "relname": "inserttest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "SetToDefault": { - "location": 424, - }, - }, - { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 433, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 392, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 452, - "relname": "inserttest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 445, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 445, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 436, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 561, - "name": "col1", - }, - }, - { - "ResTarget": { - "location": 567, - "name": "col2", - }, - }, - { - "ResTarget": { - "location": 573, - "name": "col3", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 549, - "relname": "inserttest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "SetToDefault": { - "location": 587, - }, - }, - { - "SetToDefault": { - "location": 596, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 141, - "stmt_location": 463, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 630, - "name": "col1", - }, - }, - { - "ResTarget": { - "location": 636, - "name": "col2", - }, - }, - { - "ResTarget": { - "location": 642, - "name": "col3", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 618, - "relname": "inserttest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 656, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 659, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 56, - "stmt_location": 605, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 687, - "name": "col1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 675, - "relname": "inserttest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 701, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 704, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 44, - "stmt_location": 662, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 732, - "name": "col1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 720, - "relname": "inserttest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "SetToDefault": { - "location": 746, - }, - }, - { - "SetToDefault": { - "location": 755, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 56, - "stmt_location": 707, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 780, - "relname": "inserttest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 773, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 773, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 764, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 826, - "relname": "inserttest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 844, - }, - }, - { - "A_Const": { - "ival": { - "ival": 20, - }, - "location": 848, - }, - }, - { - "A_Const": { - "location": 852, - "sval": { - "sval": "40", - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 860, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 864, - }, - }, - { - "SetToDefault": { - "location": 867, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "SubLink": { - "location": 882, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 890, - "val": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 890, - }, - }, - }, - }, - ], - }, - }, - }, - }, - { - "SubLink": { - "location": 894, - "subLinkType": "EXPR_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "foo", - "colnames": [ - { - "String": { - "sval": "i", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 917, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 902, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 902, - }, - }, - }, - }, - ], - }, - }, - }, - }, - { - "A_Const": { - "location": 934, - "sval": { - "sval": "values are fun!", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 161, - "stmt_location": 791, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 969, - "relname": "inserttest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 962, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 962, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 953, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1022, - "relname": "inserttest", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 30, - }, - "location": 1040, - }, - }, - { - "A_Const": { - "ival": { - "ival": 50, - }, - "location": 1044, - }, - }, - { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1055, - "sval": { - "sval": "x", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10000, - }, - "location": 1060, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "repeat", - }, - }, - ], - "location": 1048, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 87, - "stmt_location": 980, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1112, - "relname": "inserttest", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1077, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col1", - }, - }, - ], - "location": 1077, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1083, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col2", - }, - }, - ], - "location": 1083, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1089, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "col3", - }, - }, - ], - "location": 1101, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "char_length", - }, - }, - ], - "location": 1089, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 1068, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "inserttest", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 23, - "stmt_location": 1123, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/int2.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 28, - "relname": "int2_tbl", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 37, - "typeName": { - "location": 40, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 69, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 60, - "relname": "int2_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 81, - "sval": { - "sval": "0 ", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 46, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 112, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 103, - "relname": "int2_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 124, - "sval": { - "sval": " 1234 ", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 45, - "stmt_location": 89, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 158, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 149, - "relname": "int2_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 170, - "sval": { - "sval": " -1234", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 47, - "stmt_location": 135, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 206, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 197, - "relname": "int2_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 218, - "sval": { - "sval": "34.5", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 183, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 280, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 271, - "relname": "int2_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 292, - "sval": { - "sval": "32767", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 226, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 324, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 315, - "relname": "int2_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 336, - "sval": { - "sval": "-32767", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 44, - "stmt_location": 301, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 411, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 402, - "relname": "int2_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 423, - "sval": { - "sval": "100000", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 86, - "stmt_location": 346, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 455, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 446, - "relname": "int2_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 467, - "sval": { - "sval": "asdf", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 41, - "stmt_location": 433, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 497, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 488, - "relname": "int2_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 509, - "sval": { - "sval": " ", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 41, - "stmt_location": 475, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 539, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 530, - "relname": "int2_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 551, - "sval": { - "sval": "- 1234", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 517, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 583, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 574, - "relname": "int2_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 595, - "sval": { - "sval": "4 444", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 561, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 626, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 617, - "relname": "int2_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 638, - "sval": { - "sval": "123 dt", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 604, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 670, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 661, - "relname": "int2_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 682, - "sval": { - "sval": "", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 37, - "stmt_location": 648, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 715, - "relname": "int2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 696, - "name": "five", - "val": { - "A_Const": { - "location": 696, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 708, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 708, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 686, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 754, - "relname": "int2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 733, - "name": "four", - "val": { - "A_Const": { - "location": 733, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 745, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 745, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 771, - }, - }, - "location": 776, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 784, - "sval": { - "sval": "0", - }, - }, - }, - "location": -1, - "typeName": { - "location": 779, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 63, - "stmt_location": 724, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 818, - "relname": "int2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 797, - "name": "four", - "val": { - "A_Const": { - "location": 797, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 809, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 809, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 835, - }, - }, - "location": 840, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 848, - "sval": { - "sval": "0", - }, - }, - }, - "location": -1, - "typeName": { - "location": 843, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 63, - "stmt_location": 788, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 881, - "relname": "int2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 861, - "name": "one", - "val": { - "A_Const": { - "location": 861, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 872, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 872, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 898, - }, - }, - "location": 903, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 910, - "sval": { - "sval": "0", - }, - }, - }, - "location": -1, - "typeName": { - "location": 905, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 61, - "stmt_location": 852, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 943, - "relname": "int2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 923, - "name": "one", - "val": { - "A_Const": { - "location": 923, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 934, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 934, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 960, - }, - }, - "location": 965, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 972, - "sval": { - "sval": "0", - }, - }, - }, - "location": -1, - "typeName": { - "location": 967, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 61, - "stmt_location": 914, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 1005, - "relname": "int2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 985, - "name": "two", - "val": { - "A_Const": { - "location": 985, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 996, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 996, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1022, - }, - }, - "location": 1027, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1034, - "sval": { - "sval": "0", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1029, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 61, - "stmt_location": 976, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 1067, - "relname": "int2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1047, - "name": "two", - "val": { - "A_Const": { - "location": 1047, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1058, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1058, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1084, - }, - }, - "location": 1089, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1096, - "sval": { - "sval": "0", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1091, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 61, - "stmt_location": 1038, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 1131, - "relname": "int2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1109, - "name": "three", - "val": { - "A_Const": { - "location": 1109, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1122, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1122, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1148, - }, - }, - "location": 1153, - "name": [ - { - "String": { - "sval": "<=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1161, - "sval": { - "sval": "0", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1156, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 64, - "stmt_location": 1100, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 1196, - "relname": "int2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1174, - "name": "three", - "val": { - "A_Const": { - "location": 1174, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1187, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1187, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1213, - }, - }, - "location": 1218, - "name": [ - { - "String": { - "sval": "<=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1226, - "sval": { - "sval": "0", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1221, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 64, - "stmt_location": 1165, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 1259, - "relname": "int2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1239, - "name": "two", - "val": { - "A_Const": { - "location": 1239, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1250, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1250, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1276, - }, - }, - "location": 1281, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1288, - "sval": { - "sval": "0", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1283, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 61, - "stmt_location": 1230, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 1321, - "relname": "int2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1301, - "name": "two", - "val": { - "A_Const": { - "location": 1301, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1312, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1312, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1338, - }, - }, - "location": 1343, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1350, - "sval": { - "sval": "0", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1345, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 61, - "stmt_location": 1292, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 1385, - "relname": "int2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1363, - "name": "three", - "val": { - "A_Const": { - "location": 1363, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1376, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1376, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1402, - }, - }, - "location": 1407, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1415, - "sval": { - "sval": "0", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1410, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 64, - "stmt_location": 1354, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 1450, - "relname": "int2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1428, - "name": "three", - "val": { - "A_Const": { - "location": 1428, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1441, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1441, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1467, - }, - }, - "location": 1472, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1480, - "sval": { - "sval": "0", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1475, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 64, - "stmt_location": 1419, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 1530, - "relname": "int2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1510, - "name": "one", - "val": { - "A_Const": { - "location": 1510, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1521, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1521, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1548, - }, - }, - "location": 1553, - "name": [ - { - "String": { - "sval": "%", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1560, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1555, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - "location": 1565, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1572, - "sval": { - "sval": "1", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1567, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 91, - "stmt_location": 1484, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 1620, - "relname": "int2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1598, - "name": "three", - "val": { - "A_Const": { - "location": 1598, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1611, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1611, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1638, - }, - }, - "location": 1643, - "name": [ - { - "String": { - "sval": "%", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1650, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1645, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - "location": 1655, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1662, - "sval": { - "sval": "0", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1657, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 89, - "stmt_location": 1576, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 1719, - "relname": "int2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1675, - "name": "five", - "val": { - "A_Const": { - "location": 1675, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1687, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1687, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1693, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1693, - }, - }, - "location": 1698, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1705, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1700, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 1666, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 1783, - "relname": "int2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1739, - "name": "five", - "val": { - "A_Const": { - "location": 1739, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1751, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1751, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1757, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1757, - }, - }, - "location": 1762, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1769, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1764, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1804, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "abs", - }, - }, - ], - "location": 1800, - }, - }, - "location": 1808, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 16384, - }, - "location": 1810, - }, - }, - }, - }, - }, - }, - "stmt_len": 85, - "stmt_location": 1730, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 1869, - "relname": "int2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1825, - "name": "five", - "val": { - "A_Const": { - "location": 1825, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1837, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1837, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1843, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1843, - }, - }, - "location": 1848, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1855, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1850, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 1816, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 1933, - "relname": "int2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1889, - "name": "five", - "val": { - "A_Const": { - "location": 1889, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1901, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1901, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1907, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1907, - }, - }, - "location": 1912, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1919, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1914, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 1880, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 1997, - "relname": "int2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1953, - "name": "five", - "val": { - "A_Const": { - "location": 1953, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1965, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1965, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1971, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1971, - }, - }, - "location": 1976, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1983, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1978, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2014, - }, - }, - "location": 2017, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 32766, - }, - "location": 2019, - }, - }, - }, - }, - }, - }, - "stmt_len": 80, - "stmt_location": 1944, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 2078, - "relname": "int2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2034, - "name": "five", - "val": { - "A_Const": { - "location": 2034, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2046, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2046, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2052, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2052, - }, - }, - "location": 2057, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2064, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2059, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 2025, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 2142, - "relname": "int2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2098, - "name": "five", - "val": { - "A_Const": { - "location": 2098, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2110, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2110, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2116, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2116, - }, - }, - "location": 2121, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2128, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2123, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 2089, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 2206, - "relname": "int2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2162, - "name": "five", - "val": { - "A_Const": { - "location": 2162, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2174, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2174, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2180, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2180, - }, - }, - "location": 2185, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2192, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2187, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2223, - }, - }, - "location": 2226, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": -32767, - }, - "location": 2228, - }, - }, - }, - }, - }, - }, - "stmt_len": 81, - "stmt_location": 2153, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 2288, - "relname": "int2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2244, - "name": "five", - "val": { - "A_Const": { - "location": 2244, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2256, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2256, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2262, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2262, - }, - }, - "location": 2267, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2274, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2269, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 2235, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 2352, - "relname": "int2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2308, - "name": "five", - "val": { - "A_Const": { - "location": 2308, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2320, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2320, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2326, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2326, - }, - }, - "location": 2331, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2338, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2333, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 2299, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 2416, - "relname": "int2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2372, - "name": "five", - "val": { - "A_Const": { - "location": 2372, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2384, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2384, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2390, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2390, - }, - }, - "location": 2395, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2402, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2397, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 2363, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2452, - "val": { - "TypeCast": { - "arg": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 2453, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2454, - }, - }, - "location": 2455, - "typeName": { - "location": 2457, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - "location": 2461, - "name": [ - { - "String": { - "sval": "<<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 15, - }, - "location": 2463, - }, - }, - }, - }, - "location": 2466, - "typeName": { - "location": 2468, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 2427, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2481, - "val": { - "TypeCast": { - "arg": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 2483, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2484, - }, - }, - "location": 2485, - "typeName": { - "location": 2487, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - "location": 2491, - "name": [ - { - "String": { - "sval": "<<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 15, - }, - "location": 2493, - }, - }, - }, - }, - "location": 2496, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2497, - }, - }, - "location": 2498, - "typeName": { - "location": 2500, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - "location": 2505, - "typeName": { - "location": 2507, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 2473, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2572, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": -32768, - }, - "location": 2573, - }, - }, - "location": 2580, - "typeName": { - "location": 2582, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2587, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 2590, - }, - }, - "location": 2593, - "typeName": { - "location": 2595, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 87, - "stmt_location": 2512, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2608, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": -32768, - }, - "location": 2609, - }, - }, - "location": 2616, - "typeName": { - "location": 2618, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2623, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 2626, - }, - }, - "location": 2629, - "typeName": { - "location": 2631, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 2600, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2644, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": -32768, - }, - "location": 2645, - }, - }, - "location": 2652, - "typeName": { - "location": 2654, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2659, - "name": [ - { - "String": { - "sval": "%", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 2662, - }, - }, - "location": 2665, - "typeName": { - "location": 2667, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 2636, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "t", - "colnames": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 2762, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "2.5", - }, - "location": 2763, - }, - }, - "location": 2766, - "typeName": { - "location": 2768, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 2791, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "1.5", - }, - "location": 2792, - }, - }, - "location": 2795, - "typeName": { - "location": 2797, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 2820, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 2821, - }, - }, - "location": 2824, - "typeName": { - "location": 2826, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "0.0", - }, - "location": 2849, - }, - }, - "location": 2852, - "typeName": { - "location": 2854, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 2877, - }, - }, - "location": 2880, - "typeName": { - "location": 2882, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "1.5", - }, - "location": 2905, - }, - }, - "location": 2908, - "typeName": { - "location": 2910, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "2.5", - }, - "location": 2933, - }, - }, - "location": 2936, - "typeName": { - "location": 2938, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2723, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 2723, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2726, - "name": "int2_value", - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 2726, - }, - }, - "location": 2727, - "typeName": { - "location": 2729, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 279, - "stmt_location": 2672, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "t", - "colnames": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 3044, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "2.5", - }, - "location": 3045, - }, - }, - "location": 3048, - "typeName": { - "location": 3050, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 3074, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "1.5", - }, - "location": 3075, - }, - }, - "location": 3078, - "typeName": { - "location": 3080, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 3104, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 3105, - }, - }, - "location": 3108, - "typeName": { - "location": 3110, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "0.0", - }, - "location": 3134, - }, - }, - "location": 3137, - "typeName": { - "location": 3139, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 3163, - }, - }, - "location": 3166, - "typeName": { - "location": 3168, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "1.5", - }, - "location": 3192, - }, - }, - "location": 3195, - "typeName": { - "location": 3197, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "2.5", - }, - "location": 3221, - }, - }, - "location": 3224, - "typeName": { - "location": 3226, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3005, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 3005, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3008, - "name": "int2_value", - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 3008, - }, - }, - "location": 3009, - "typeName": { - "location": 3011, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 288, - "stmt_location": 2952, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/int4.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 28, - "relname": "int4_tbl", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 37, - "typeName": { - "location": 40, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 69, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 60, - "relname": "int4_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 81, - "sval": { - "sval": " 0 ", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 44, - "stmt_location": 46, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 114, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 105, - "relname": "int4_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 126, - "sval": { - "sval": "123456 ", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 49, - "stmt_location": 91, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 164, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 155, - "relname": "int4_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 176, - "sval": { - "sval": " -123456", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 49, - "stmt_location": 141, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 214, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 205, - "relname": "int4_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 226, - "sval": { - "sval": "34.5", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 191, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 288, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 279, - "relname": "int4_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 300, - "sval": { - "sval": "2147483647", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 79, - "stmt_location": 234, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 337, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 328, - "relname": "int4_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 349, - "sval": { - "sval": "-2147483647", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 49, - "stmt_location": 314, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 429, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 420, - "relname": "int4_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 441, - "sval": { - "sval": "1000000000000", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 93, - "stmt_location": 364, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 480, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 471, - "relname": "int4_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 492, - "sval": { - "sval": "asdf", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 41, - "stmt_location": 458, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 522, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 513, - "relname": "int4_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 534, - "sval": { - "sval": " ", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 500, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 565, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 556, - "relname": "int4_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 577, - "sval": { - "sval": " asdf ", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 47, - "stmt_location": 543, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 613, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 604, - "relname": "int4_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 625, - "sval": { - "sval": "- 1234", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 591, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 657, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 648, - "relname": "int4_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 669, - "sval": { - "sval": "123 5", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 48, - "stmt_location": 635, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 706, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 697, - "relname": "int4_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 718, - "sval": { - "sval": "", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 37, - "stmt_location": 684, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 751, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 732, - "name": "five", - "val": { - "A_Const": { - "location": 732, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 744, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 744, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 722, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 790, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 769, - "name": "four", - "val": { - "A_Const": { - "location": 769, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 781, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 781, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 807, - }, - }, - "location": 812, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 820, - "sval": { - "sval": "0", - }, - }, - }, - "location": -1, - "typeName": { - "location": 815, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 63, - "stmt_location": 760, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 854, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 833, - "name": "four", - "val": { - "A_Const": { - "location": 833, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 845, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 845, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 871, - }, - }, - "location": 876, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 884, - "sval": { - "sval": "0", - }, - }, - }, - "location": -1, - "typeName": { - "location": 879, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 63, - "stmt_location": 824, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 917, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 897, - "name": "one", - "val": { - "A_Const": { - "location": 897, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 908, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 908, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 934, - }, - }, - "location": 939, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 946, - "sval": { - "sval": "0", - }, - }, - }, - "location": -1, - "typeName": { - "location": 941, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 61, - "stmt_location": 888, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 979, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 959, - "name": "one", - "val": { - "A_Const": { - "location": 959, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 970, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 970, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 996, - }, - }, - "location": 1001, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1008, - "sval": { - "sval": "0", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1003, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 61, - "stmt_location": 950, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 1041, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1021, - "name": "two", - "val": { - "A_Const": { - "location": 1021, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1032, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1032, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1058, - }, - }, - "location": 1063, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1070, - "sval": { - "sval": "0", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1065, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 61, - "stmt_location": 1012, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 1103, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1083, - "name": "two", - "val": { - "A_Const": { - "location": 1083, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1094, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1094, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1120, - }, - }, - "location": 1125, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1132, - "sval": { - "sval": "0", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1127, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 61, - "stmt_location": 1074, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 1167, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1145, - "name": "three", - "val": { - "A_Const": { - "location": 1145, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1158, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1158, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1184, - }, - }, - "location": 1189, - "name": [ - { - "String": { - "sval": "<=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1197, - "sval": { - "sval": "0", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1192, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 64, - "stmt_location": 1136, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 1232, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1210, - "name": "three", - "val": { - "A_Const": { - "location": 1210, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1223, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1223, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1249, - }, - }, - "location": 1254, - "name": [ - { - "String": { - "sval": "<=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1262, - "sval": { - "sval": "0", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1257, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 64, - "stmt_location": 1201, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 1295, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1275, - "name": "two", - "val": { - "A_Const": { - "location": 1275, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1286, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1286, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1312, - }, - }, - "location": 1317, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1324, - "sval": { - "sval": "0", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1319, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 61, - "stmt_location": 1266, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 1357, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1337, - "name": "two", - "val": { - "A_Const": { - "location": 1337, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1348, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1348, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1374, - }, - }, - "location": 1379, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1386, - "sval": { - "sval": "0", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1381, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 61, - "stmt_location": 1328, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 1421, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1399, - "name": "three", - "val": { - "A_Const": { - "location": 1399, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1412, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1412, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1438, - }, - }, - "location": 1443, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1451, - "sval": { - "sval": "0", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1446, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 64, - "stmt_location": 1390, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 1486, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1464, - "name": "three", - "val": { - "A_Const": { - "location": 1464, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1477, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1477, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1503, - }, - }, - "location": 1508, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1516, - "sval": { - "sval": "0", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1511, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 64, - "stmt_location": 1455, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 1566, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1546, - "name": "one", - "val": { - "A_Const": { - "location": 1546, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1557, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1557, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1584, - }, - }, - "location": 1589, - "name": [ - { - "String": { - "sval": "%", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1596, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1591, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - "location": 1601, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1608, - "sval": { - "sval": "1", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1603, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 91, - "stmt_location": 1520, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 1656, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1634, - "name": "three", - "val": { - "A_Const": { - "location": 1634, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1647, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1647, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1674, - }, - }, - "location": 1679, - "name": [ - { - "String": { - "sval": "%", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1686, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1681, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - "location": 1691, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1698, - "sval": { - "sval": "0", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1693, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 89, - "stmt_location": 1612, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 1755, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1711, - "name": "five", - "val": { - "A_Const": { - "location": 1711, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1723, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1723, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1729, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1729, - }, - }, - "location": 1734, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1741, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1736, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 1702, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 1819, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1775, - "name": "five", - "val": { - "A_Const": { - "location": 1775, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1787, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1787, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1793, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1793, - }, - }, - "location": 1798, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1805, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1800, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1840, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "abs", - }, - }, - ], - "location": 1836, - }, - }, - "location": 1844, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1073741824, - }, - "location": 1846, - }, - }, - }, - }, - }, - }, - "stmt_len": 90, - "stmt_location": 1766, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 1910, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1866, - "name": "five", - "val": { - "A_Const": { - "location": 1866, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1878, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1878, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1884, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1884, - }, - }, - "location": 1889, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1896, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1891, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 1857, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 1974, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1930, - "name": "five", - "val": { - "A_Const": { - "location": 1930, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1942, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1942, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1948, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1948, - }, - }, - "location": 1953, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1960, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1955, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1995, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "abs", - }, - }, - ], - "location": 1991, - }, - }, - "location": 1999, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1073741824, - }, - "location": 2001, - }, - }, - }, - }, - }, - }, - "stmt_len": 90, - "stmt_location": 1921, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 2065, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2021, - "name": "five", - "val": { - "A_Const": { - "location": 2021, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2033, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2033, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2039, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2039, - }, - }, - "location": 2044, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2051, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2046, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 2012, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 2129, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2085, - "name": "five", - "val": { - "A_Const": { - "location": 2085, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2097, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2097, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2103, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2103, - }, - }, - "location": 2108, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2115, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2110, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2146, - }, - }, - "location": 2149, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2147483646, - }, - "location": 2151, - }, - }, - }, - }, - }, - }, - "stmt_len": 85, - "stmt_location": 2076, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 2215, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2171, - "name": "five", - "val": { - "A_Const": { - "location": 2171, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2183, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2183, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2189, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2189, - }, - }, - "location": 2194, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2201, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2196, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 2162, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 2279, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2235, - "name": "five", - "val": { - "A_Const": { - "location": 2235, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2247, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2247, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2253, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2253, - }, - }, - "location": 2258, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2265, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2260, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2296, - }, - }, - "location": 2299, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2147483646, - }, - "location": 2301, - }, - }, - }, - }, - }, - }, - "stmt_len": 85, - "stmt_location": 2226, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 2365, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2321, - "name": "five", - "val": { - "A_Const": { - "location": 2321, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2333, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2333, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2339, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2339, - }, - }, - "location": 2344, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2351, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2346, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 2312, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 2429, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2385, - "name": "five", - "val": { - "A_Const": { - "location": 2385, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2397, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2397, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2403, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2403, - }, - }, - "location": 2408, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2415, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2410, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2446, - }, - }, - "location": 2449, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": -2147483647, - }, - "location": 2451, - }, - }, - }, - }, - }, - }, - "stmt_len": 86, - "stmt_location": 2376, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 2516, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2472, - "name": "five", - "val": { - "A_Const": { - "location": 2472, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2484, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2484, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2490, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2490, - }, - }, - "location": 2495, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2502, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2497, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 2463, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 2580, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2536, - "name": "five", - "val": { - "A_Const": { - "location": 2536, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2548, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2548, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2554, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2554, - }, - }, - "location": 2559, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2566, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2561, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2597, - }, - }, - "location": 2600, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": -2147483647, - }, - "location": 2602, - }, - }, - }, - }, - }, - }, - "stmt_len": 86, - "stmt_location": 2527, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 2667, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2623, - "name": "five", - "val": { - "A_Const": { - "location": 2623, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2635, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2635, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2641, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2641, - }, - }, - "location": 2646, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2653, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2648, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 2614, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 2731, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2687, - "name": "five", - "val": { - "A_Const": { - "location": 2687, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2699, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2699, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2705, - "name": "x", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2705, - }, - }, - "location": 2710, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2717, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2712, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 2678, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2823, - "name": "one", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": -2, - }, - "location": 2823, - }, - }, - "location": 2825, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 2826, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 92, - "stmt_location": 2742, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2844, - "name": "two", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 2844, - }, - }, - "location": 2845, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2846, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 19, - "stmt_location": 2835, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2864, - "name": "three", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2864, - }, - }, - "location": 2865, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 2867, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 2855, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2888, - "name": "four", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2888, - }, - }, - "location": 2890, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": -2, - }, - "location": 2892, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 2879, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2912, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2917, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2912, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2921, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2928, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2923, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - "location": 2932, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2939, - "sval": { - "sval": "16", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2934, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2944, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2951, - "sval": { - "sval": "4", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2946, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 2903, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2972, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2977, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2972, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2981, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2988, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2983, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - "location": 2992, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2999, - "sval": { - "sval": "16", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2994, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3004, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3011, - "sval": { - "sval": "4", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3006, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 2963, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3032, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3037, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3032, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3041, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3048, - "sval": { - "sval": "2", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3043, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - "location": 3052, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3059, - "sval": { - "sval": "16", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3054, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3064, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3071, - "sval": { - "sval": "4", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3066, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 3023, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3092, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3097, - "sval": { - "sval": "1000", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3092, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3104, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3111, - "sval": { - "sval": "999", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3106, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 3083, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3165, - "name": "six", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 3165, - "name": [ - { - "String": { - "sval": "!!", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 3167, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 49, - "stmt_location": 3126, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3185, - "name": "ten", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3185, - }, - }, - "location": 3187, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3189, - }, - }, - }, - }, - "location": 3191, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3193, - }, - }, - }, - }, - "location": 3195, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3197, - }, - }, - }, - }, - "location": 3199, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3201, - }, - }, - }, - }, - "location": 3203, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3205, - }, - }, - }, - }, - "location": 3207, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3209, - }, - }, - }, - }, - "location": 3211, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3213, - }, - }, - }, - }, - "location": 3215, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3217, - }, - }, - }, - }, - "location": 3219, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3221, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 3176, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3239, - "name": "three", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3239, - }, - }, - "location": 3241, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3243, - }, - }, - "location": 3245, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3247, - }, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 3230, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3267, - "name": "two", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3268, - }, - }, - "location": 3270, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3272, - }, - }, - }, - }, - "location": 3275, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3277, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 3258, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3310, - "val": { - "TypeCast": { - "arg": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 3311, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3312, - }, - }, - "location": 3313, - "typeName": { - "location": 3315, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - "location": 3319, - "name": [ - { - "String": { - "sval": "<<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 31, - }, - "location": 3321, - }, - }, - }, - }, - "location": 3324, - "typeName": { - "location": 3326, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 3286, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3339, - "val": { - "TypeCast": { - "arg": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 3341, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3342, - }, - }, - "location": 3343, - "typeName": { - "location": 3345, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - "location": 3349, - "name": [ - { - "String": { - "sval": "<<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 31, - }, - "location": 3351, - }, - }, - }, - }, - "location": 3354, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3355, - }, - }, - }, - }, - "location": 3357, - "typeName": { - "location": 3359, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 3331, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3422, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "-2147483648", - }, - "location": 3423, - }, - }, - "location": 3435, - "typeName": { - "location": 3437, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3442, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 3445, - }, - }, - "location": 3448, - "typeName": { - "location": 3450, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 90, - "stmt_location": 3364, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3463, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "-2147483648", - }, - "location": 3464, - }, - }, - "location": 3476, - "typeName": { - "location": 3478, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3483, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 3486, - }, - }, - "location": 3489, - "typeName": { - "location": 3491, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 3455, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3504, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "-2147483648", - }, - "location": 3505, - }, - }, - "location": 3517, - "typeName": { - "location": 3519, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3524, - "name": [ - { - "String": { - "sval": "%", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 3527, - }, - }, - "location": 3530, - "typeName": { - "location": 3532, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 3496, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3545, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "-2147483648", - }, - "location": 3546, - }, - }, - "location": 3558, - "typeName": { - "location": 3560, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3565, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 3568, - }, - }, - "location": 3571, - "typeName": { - "location": 3573, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 3537, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3586, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "-2147483648", - }, - "location": 3587, - }, - }, - "location": 3599, - "typeName": { - "location": 3601, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3606, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 3609, - }, - }, - "location": 3612, - "typeName": { - "location": 3614, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 3578, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3627, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "-2147483648", - }, - "location": 3628, - }, - }, - "location": 3640, - "typeName": { - "location": 3642, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3647, - "name": [ - { - "String": { - "sval": "%", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": -1, - }, - "location": 3650, - }, - }, - "location": 3653, - "typeName": { - "location": 3655, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 3619, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "t", - "colnames": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 3750, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "2.5", - }, - "location": 3751, - }, - }, - "location": 3754, - "typeName": { - "location": 3756, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 3779, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "1.5", - }, - "location": 3780, - }, - }, - "location": 3783, - "typeName": { - "location": 3785, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 3808, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 3809, - }, - }, - "location": 3812, - "typeName": { - "location": 3814, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "0.0", - }, - "location": 3837, - }, - }, - "location": 3840, - "typeName": { - "location": 3842, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 3865, - }, - }, - "location": 3868, - "typeName": { - "location": 3870, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "1.5", - }, - "location": 3893, - }, - }, - "location": 3896, - "typeName": { - "location": 3898, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "2.5", - }, - "location": 3921, - }, - }, - "location": 3924, - "typeName": { - "location": 3926, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3711, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 3711, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3714, - "name": "int4_value", - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 3714, - }, - }, - "location": 3715, - "typeName": { - "location": 3717, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 279, - "stmt_location": 3660, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "t", - "colnames": [ - { - "String": { - "sval": "x", - }, - }, - ], - }, - "subquery": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 4032, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "2.5", - }, - "location": 4033, - }, - }, - "location": 4036, - "typeName": { - "location": 4038, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 4062, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "1.5", - }, - "location": 4063, - }, - }, - "location": 4066, - "typeName": { - "location": 4068, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 4092, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 4093, - }, - }, - "location": 4096, - "typeName": { - "location": 4098, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "0.0", - }, - "location": 4122, - }, - }, - "location": 4125, - "typeName": { - "location": 4127, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "0.5", - }, - "location": 4151, - }, - }, - "location": 4154, - "typeName": { - "location": 4156, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "1.5", - }, - "location": 4180, - }, - }, - "location": 4183, - "typeName": { - "location": 4185, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - { - "List": { - "items": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "2.5", - }, - "location": 4209, - }, - }, - "location": 4212, - "typeName": { - "location": 4214, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3993, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 3993, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3996, - "name": "int4_value", - "val": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - ], - "location": 3996, - }, - }, - "location": 3997, - "typeName": { - "location": 3999, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 288, - "stmt_location": 3940, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/json_encoding.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 94, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 94, - "sval": { - "sval": ""\\u"", - }, - }, - }, - "location": 100, - "typeName": { - "location": 102, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "json", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 106, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 145, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 145, - "sval": { - "sval": ""\\u00"", - }, - }, - }, - "location": 153, - "typeName": { - "location": 155, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "json", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 107, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 198, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 198, - "sval": { - "sval": ""\\u000g"", - }, - }, - }, - "location": 208, - "typeName": { - "location": 210, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "json", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 160, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 255, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 255, - "sval": { - "sval": ""\\u0000"", - }, - }, - }, - "location": 265, - "typeName": { - "location": 267, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "json", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 215, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 301, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 301, - "sval": { - "sval": ""\\uaBcD"", - }, - }, - }, - "location": 311, - "typeName": { - "location": 313, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "json", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 272, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 408, - "name": "correct_in_utf8", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 413, - "sval": { - "sval": "{ "a": "\\ud83d\\ude04\\ud83d\\udc36" }", - }, - }, - }, - "location": -1, - "typeName": { - "location": 408, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "json", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 452, - "name": [ - { - "String": { - "sval": "->", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 455, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 159, - "stmt_location": 318, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 486, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 491, - "sval": { - "sval": "{ "a": "\\ud83d\\ud83d" }", - }, - }, - }, - "location": -1, - "typeName": { - "location": 486, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "json", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 518, - "name": [ - { - "String": { - "sval": "->", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 521, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 478, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 563, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 568, - "sval": { - "sval": "{ "a": "\\ude04\\ud83d" }", - }, - }, - }, - "location": -1, - "typeName": { - "location": 563, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "json", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 595, - "name": [ - { - "String": { - "sval": "->", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 598, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 76, - "stmt_location": 525, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 639, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 644, - "sval": { - "sval": "{ "a": "\\ud83dX" }", - }, - }, - }, - "location": -1, - "typeName": { - "location": 639, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "json", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 666, - "name": [ - { - "String": { - "sval": "->", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 669, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 70, - "stmt_location": 602, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 706, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 711, - "sval": { - "sval": "{ "a": "\\ude04X" }", - }, - }, - }, - "location": -1, - "typeName": { - "location": 706, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "json", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 733, - "name": [ - { - "String": { - "sval": "->", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 736, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 66, - "stmt_location": 673, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 811, - "name": "correct_in_utf8", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 816, - "sval": { - "sval": "{ "a": "the Copyright \\u00a9 sign" }", - }, - }, - }, - "location": -1, - "typeName": { - "location": 811, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "json", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 134, - "stmt_location": 740, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 883, - "name": "correct_everywhere", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 888, - "sval": { - "sval": "{ "a": "dollar \\u0024 character" }", - }, - }, - }, - "location": -1, - "typeName": { - "location": 883, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "json", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 72, - "stmt_location": 875, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 956, - "name": "not_an_escape", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 961, - "sval": { - "sval": "{ "a": "dollar \\\\u0024 character" }", - }, - }, - }, - "location": -1, - "typeName": { - "location": 956, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "json", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 68, - "stmt_location": 948, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1025, - "name": "not_unescaped", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1030, - "sval": { - "sval": "{ "a": "null \\u0000 escape" }", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1025, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "json", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 1017, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1088, - "name": "not_an_escape", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1093, - "sval": { - "sval": "{ "a": "null \\\\u0000 escape" }", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1088, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "json", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 1080, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1153, - "name": "correct_in_utf8", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1158, - "sval": { - "sval": "{ "a": "the Copyright \\u00a9 sign" }", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1153, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "json", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1198, - "name": [ - { - "String": { - "sval": "->>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1202, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 80, - "stmt_location": 1144, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1233, - "name": "correct_everywhere", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1238, - "sval": { - "sval": "{ "a": "dollar \\u0024 character" }", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1233, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "json", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1276, - "name": [ - { - "String": { - "sval": "->>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1280, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 80, - "stmt_location": 1225, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1314, - "name": "not_an_escape", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1319, - "sval": { - "sval": "{ "a": "dollar \\\\u0024 character" }", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1314, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "json", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1358, - "name": [ - { - "String": { - "sval": "->>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1362, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 76, - "stmt_location": 1306, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1391, - "name": "fails", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1396, - "sval": { - "sval": "{ "a": "null \\u0000 escape" }", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1391, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "json", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1429, - "name": [ - { - "String": { - "sval": "->>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1433, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 1383, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1454, - "name": "not_an_escape", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1459, - "sval": { - "sval": "{ "a": "null \\\\u0000 escape" }", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1454, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "json", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1493, - "name": [ - { - "String": { - "sval": "->>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1497, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 71, - "stmt_location": 1446, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1565, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1565, - "sval": { - "sval": ""\\u"", - }, - }, - }, - "location": 1571, - "typeName": { - "location": 1573, - "names": [ - { - "String": { - "sval": "jsonb", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 60, - "stmt_location": 1518, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1617, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1617, - "sval": { - "sval": ""\\u00"", - }, - }, - }, - "location": 1625, - "typeName": { - "location": 1627, - "names": [ - { - "String": { - "sval": "jsonb", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 1579, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1671, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1671, - "sval": { - "sval": ""\\u000g"", - }, - }, - }, - "location": 1681, - "typeName": { - "location": 1683, - "names": [ - { - "String": { - "sval": "jsonb", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 55, - "stmt_location": 1633, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1729, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1729, - "sval": { - "sval": ""\\u0045"", - }, - }, - }, - "location": 1739, - "typeName": { - "location": 1741, - "names": [ - { - "String": { - "sval": "jsonb", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 1689, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1776, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1776, - "sval": { - "sval": ""\\u0000"", - }, - }, - }, - "location": 1786, - "typeName": { - "location": 1788, - "names": [ - { - "String": { - "sval": "jsonb", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 1747, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1915, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1928, - "sval": { - "sval": ""\\uaBcD"", - }, - }, - }, - "location": 1938, - "typeName": { - "location": 1940, - "names": [ - { - "String": { - "sval": "jsonb", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1945, - "typeName": { - "location": 1947, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "octet_length", - }, - }, - ], - "location": 1915, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 158, - "stmt_location": 1794, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2042, - "name": "correct_in_utf8", - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2062, - "sval": { - "sval": "{ "a": "\\ud83d\\ude04\\ud83d\\udc36" }", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2056, - "names": [ - { - "String": { - "sval": "jsonb", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2101, - "name": [ - { - "String": { - "sval": "->", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2104, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - "location": 2108, - "typeName": { - "location": 2110, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "octet_length", - }, - }, - ], - "location": 2042, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 181, - "stmt_location": 1953, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2143, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2149, - "sval": { - "sval": "{ "a": "\\ud83d\\ud83d" }", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2143, - "names": [ - { - "String": { - "sval": "jsonb", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2176, - "name": [ - { - "String": { - "sval": "->", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2179, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 2135, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2221, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2227, - "sval": { - "sval": "{ "a": "\\ude04\\ud83d" }", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2221, - "names": [ - { - "String": { - "sval": "jsonb", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2254, - "name": [ - { - "String": { - "sval": "->", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2257, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 77, - "stmt_location": 2183, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2298, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2304, - "sval": { - "sval": "{ "a": "\\ud83dX" }", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2298, - "names": [ - { - "String": { - "sval": "jsonb", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2326, - "name": [ - { - "String": { - "sval": "->", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2329, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 71, - "stmt_location": 2261, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2366, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2372, - "sval": { - "sval": "{ "a": "\\ude04X" }", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2366, - "names": [ - { - "String": { - "sval": "jsonb", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2394, - "name": [ - { - "String": { - "sval": "->", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2397, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 67, - "stmt_location": 2333, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2473, - "name": "correct_in_utf8", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2479, - "sval": { - "sval": "{ "a": "the Copyright \\u00a9 sign" }", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2473, - "names": [ - { - "String": { - "sval": "jsonb", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 136, - "stmt_location": 2401, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2546, - "name": "correct_everywhere", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2552, - "sval": { - "sval": "{ "a": "dollar \\u0024 character" }", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2546, - "names": [ - { - "String": { - "sval": "jsonb", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 2538, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2620, - "name": "not_an_escape", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2626, - "sval": { - "sval": "{ "a": "dollar \\\\u0024 character" }", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2620, - "names": [ - { - "String": { - "sval": "jsonb", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 69, - "stmt_location": 2612, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2690, - "name": "fails", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2696, - "sval": { - "sval": "{ "a": "null \\u0000 escape" }", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2690, - "names": [ - { - "String": { - "sval": "jsonb", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 55, - "stmt_location": 2682, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2746, - "name": "not_an_escape", - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2752, - "sval": { - "sval": "{ "a": "null \\\\u0000 escape" }", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2746, - "names": [ - { - "String": { - "sval": "jsonb", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 64, - "stmt_location": 2738, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2812, - "name": "correct_in_utf8", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2818, - "sval": { - "sval": "{ "a": "the Copyright \\u00a9 sign" }", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2812, - "names": [ - { - "String": { - "sval": "jsonb", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2858, - "name": [ - { - "String": { - "sval": "->>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2862, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 81, - "stmt_location": 2803, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2893, - "name": "correct_everywhere", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2899, - "sval": { - "sval": "{ "a": "dollar \\u0024 character" }", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2893, - "names": [ - { - "String": { - "sval": "jsonb", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2937, - "name": [ - { - "String": { - "sval": "->>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2941, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 81, - "stmt_location": 2885, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2975, - "name": "not_an_escape", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2981, - "sval": { - "sval": "{ "a": "dollar \\\\u0024 character" }", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2975, - "names": [ - { - "String": { - "sval": "jsonb", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3020, - "name": [ - { - "String": { - "sval": "->>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3024, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 77, - "stmt_location": 2967, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3053, - "name": "fails", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3059, - "sval": { - "sval": "{ "a": "null \\u0000 escape" }", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3053, - "names": [ - { - "String": { - "sval": "jsonb", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3092, - "name": [ - { - "String": { - "sval": "->>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3096, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 3045, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3117, - "name": "not_an_escape", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3123, - "sval": { - "sval": "{ "a": "null \\\\u0000 escape" }", - }, - }, - }, - "location": -1, - "typeName": { - "location": 3117, - "names": [ - { - "String": { - "sval": "jsonb", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3157, - "name": [ - { - "String": { - "sval": "->>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3161, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 72, - "stmt_location": 3109, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/line.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 69, - "relname": "line_tbl", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "s", - "is_local": true, - "location": 79, - "typeName": { - "location": 81, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 86, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 101, - "relname": "line_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 118, - "sval": { - "sval": "{1,-1,1}", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 87, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 143, - "relname": "line_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 160, - "sval": { - "sval": "(0,0),(6,6)", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 44, - "stmt_location": 130, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 188, - "relname": "line_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 205, - "sval": { - "sval": "10,-10 ,-5,-4", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 175, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 235, - "relname": "line_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 252, - "sval": { - "sval": "[-1e6,2e2,3e5, -4e1]", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 53, - "stmt_location": 222, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 289, - "relname": "line_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 306, - "sval": { - "sval": "(11,22,33,44)", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 276, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 337, - "relname": "line_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 354, - "sval": { - "sval": "[(1,0),(1,0)]", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 47, - "stmt_location": 323, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 399, - "relname": "line_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 416, - "sval": { - "sval": "[(1,3),(2,3)]", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 61, - "stmt_location": 371, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 458, - "relname": "line_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 475, - "sval": { - "sval": "[(3,1),(3,2)]", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 58, - "stmt_location": 433, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 539, - "relname": "line_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 556, - "sval": { - "sval": "{0,0,1}", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 74, - "stmt_location": 492, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 580, - "relname": "line_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 597, - "sval": { - "sval": "(3asdf,2 ,3,4r2)", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 49, - "stmt_location": 567, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 630, - "relname": "line_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 647, - "sval": { - "sval": "[1,2,3, 4", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 617, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 673, - "relname": "line_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 690, - "sval": { - "sval": "[(,2),(3,4)]", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 45, - "stmt_location": 660, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 719, - "relname": "line_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 736, - "sval": { - "sval": "[(1,2),(3,4)", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 45, - "stmt_location": 706, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 768, - "relname": "line_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 761, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 761, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 752, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 822, - "relname": "line_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 815, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 815, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "s", - }, - }, - ], - "location": 838, - }, - }, - "location": 840, - "name": [ - { - "String": { - "sval": "<->", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 849, - "sval": { - "sval": "[(1,2),(3,4)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 844, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - "location": 866, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 868, - }, - }, - }, - }, - }, - }, - "stmt_len": 93, - "stmt_location": 777, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 887, - "relname": "line_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 880, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 880, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 909, - "sval": { - "sval": "(0.1,0.1)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 903, - "names": [ - { - "String": { - "sval": "point", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 921, - "name": [ - { - "String": { - "sval": "<->", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "s", - }, - }, - ], - "location": 925, - }, - }, - }, - }, - "location": 928, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 930, - }, - }, - }, - }, - }, - }, - "stmt_len": 60, - "stmt_location": 871, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 948, - "relname": "line_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 941, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 941, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 969, - "sval": { - "sval": "[(0.1,0.1),(0.2,0.2)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 964, - "names": [ - { - "String": { - "sval": "lseg", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 993, - "name": [ - { - "String": { - "sval": "<->", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "s", - }, - }, - ], - "location": 997, - }, - }, - }, - }, - "location": 1000, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1002, - }, - }, - }, - }, - }, - }, - "stmt_len": 71, - "stmt_location": 932, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1013, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1018, - "sval": { - "sval": "[(1,1),(2,1)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1013, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1034, - "name": [ - { - "String": { - "sval": "<->", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1043, - "sval": { - "sval": "[(-1,-1),(-2,-1)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1038, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 58, - "stmt_location": 1004, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1071, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1076, - "sval": { - "sval": "[(1,1),(2,1)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1071, - "names": [ - { - "String": { - "sval": "lseg", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1092, - "name": [ - { - "String": { - "sval": "<->", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1101, - "sval": { - "sval": "[(-1,-1),(-2,-1)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1096, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 1063, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1129, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1135, - "sval": { - "sval": "(-1,1)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1129, - "names": [ - { - "String": { - "sval": "point", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1144, - "name": [ - { - "String": { - "sval": "<->", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1153, - "sval": { - "sval": "[(-3,0),(-4,0)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1148, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 49, - "stmt_location": 1121, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1180, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1185, - "sval": { - "sval": "[(1,1),(5,5)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1180, - "names": [ - { - "String": { - "sval": "lseg", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1201, - "name": [ - { - "String": { - "sval": "?#", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1209, - "sval": { - "sval": "[(2,0),(0,2)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1204, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 1171, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1242, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1247, - "sval": { - "sval": "[(1,1),(5,5)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1242, - "names": [ - { - "String": { - "sval": "lseg", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1263, - "name": [ - { - "String": { - "sval": "?#", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1271, - "sval": { - "sval": "[(0,0),(1,0)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1266, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 1225, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1306, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1311, - "sval": { - "sval": "[(0,0),(1,1)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1306, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1327, - "name": [ - { - "String": { - "sval": "?#", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1334, - "sval": { - "sval": "(0,0,2,2)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1330, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 58, - "stmt_location": 1287, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1363, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1368, - "sval": { - "sval": "[(3,0),(4,1)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1363, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1384, - "name": [ - { - "String": { - "sval": "?#", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1391, - "sval": { - "sval": "(0,0,2,2)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1387, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 1346, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1422, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1428, - "sval": { - "sval": "(1,1)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1422, - "names": [ - { - "String": { - "sval": "point", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1436, - "name": [ - { - "String": { - "sval": "<@", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1444, - "sval": { - "sval": "[(0,0),(2,2)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1439, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 1403, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1477, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1483, - "sval": { - "sval": "(1,1)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1477, - "names": [ - { - "String": { - "sval": "point", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1491, - "name": [ - { - "String": { - "sval": "<@", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1499, - "sval": { - "sval": "[(0,0),(1,0)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1494, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 1460, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1534, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1540, - "sval": { - "sval": "(1,1)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1534, - "names": [ - { - "String": { - "sval": "point", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1548, - "name": [ - { - "String": { - "sval": "@", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1555, - "sval": { - "sval": "[(0,0),(2,2)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1550, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 55, - "stmt_location": 1515, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1588, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1594, - "sval": { - "sval": "(1,1)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1588, - "names": [ - { - "String": { - "sval": "point", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1602, - "name": [ - { - "String": { - "sval": "@", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1609, - "sval": { - "sval": "[(0,0),(1,0)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1604, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 1571, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1644, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1649, - "sval": { - "sval": "[(1,1),(2,2)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1644, - "names": [ - { - "String": { - "sval": "lseg", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1665, - "name": [ - { - "String": { - "sval": "<@", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1673, - "sval": { - "sval": "[(0,0),(2,2)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1668, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 1625, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1706, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1711, - "sval": { - "sval": "[(1,1),(2,1)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1706, - "names": [ - { - "String": { - "sval": "lseg", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1727, - "name": [ - { - "String": { - "sval": "<@", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1735, - "sval": { - "sval": "[(0,0),(1,0)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1730, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 1689, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1770, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1775, - "sval": { - "sval": "[(1,1),(2,2)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1770, - "names": [ - { - "String": { - "sval": "lseg", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1791, - "name": [ - { - "String": { - "sval": "@", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1798, - "sval": { - "sval": "[(0,0),(2,2)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1793, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 1751, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1831, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1836, - "sval": { - "sval": "[(1,1),(2,1)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1831, - "names": [ - { - "String": { - "sval": "lseg", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1852, - "name": [ - { - "String": { - "sval": "@", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1859, - "sval": { - "sval": "[(0,0),(1,0)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1854, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 60, - "stmt_location": 1814, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1894, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1900, - "sval": { - "sval": "(0,1)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1894, - "names": [ - { - "String": { - "sval": "point", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1908, - "name": [ - { - "String": { - "sval": "##", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1916, - "sval": { - "sval": "[(0,0),(1,1)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1911, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 1875, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1941, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1946, - "sval": { - "sval": "[(0,0),(1,1)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1941, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1962, - "name": [ - { - "String": { - "sval": "##", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1970, - "sval": { - "sval": "[(1,0),(2,0)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1965, - "names": [ - { - "String": { - "sval": "lseg", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 1932, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1995, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2000, - "sval": { - "sval": "[(0,0),(1,1)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1995, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2016, - "name": [ - { - "String": { - "sval": "?#", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2024, - "sval": { - "sval": "[(1,0),(2,1)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2019, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 1986, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2058, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2063, - "sval": { - "sval": "[(0,0),(1,1)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2058, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2079, - "name": [ - { - "String": { - "sval": "?#", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2087, - "sval": { - "sval": "[(1,0),(1,1)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2082, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 2040, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2121, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2126, - "sval": { - "sval": "[(0,0),(1,1)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2121, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2142, - "name": [ - { - "String": { - "sval": "#", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2149, - "sval": { - "sval": "[(1,0),(2,1)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2144, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 2103, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2173, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2178, - "sval": { - "sval": "[(0,0),(1,1)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2173, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2194, - "name": [ - { - "String": { - "sval": "#", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2201, - "sval": { - "sval": "[(1,0),(1,1)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2196, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 2165, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2226, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2231, - "sval": { - "sval": "[(0,0),(1,1)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2226, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2247, - "name": [ - { - "String": { - "sval": "?||", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2256, - "sval": { - "sval": "[(1,0),(2,1)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2251, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 2217, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2289, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2294, - "sval": { - "sval": "[(0,0),(1,1)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2289, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2310, - "name": [ - { - "String": { - "sval": "?||", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2319, - "sval": { - "sval": "[(1,0),(1,1)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2314, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 2272, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2354, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2359, - "sval": { - "sval": "[(0,0),(1,0)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2354, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2375, - "name": [ - { - "String": { - "sval": "?-|", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2384, - "sval": { - "sval": "[(0,0),(0,1)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2379, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 64, - "stmt_location": 2335, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2417, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2422, - "sval": { - "sval": "[(0,0),(1,1)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2417, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2438, - "name": [ - { - "String": { - "sval": "?-|", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2447, - "sval": { - "sval": "[(1,0),(1,1)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2442, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 2400, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2482, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 2482, - "name": [ - { - "String": { - "sval": "?-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2490, - "sval": { - "sval": "[(0,0),(1,0)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2485, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 2463, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2523, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 2523, - "name": [ - { - "String": { - "sval": "?-", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2531, - "sval": { - "sval": "[(0,0),(1,1)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2526, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 2506, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2566, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 2566, - "name": [ - { - "String": { - "sval": "?|", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2574, - "sval": { - "sval": "[(0,0),(0,1)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2569, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 2547, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2607, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 2607, - "name": [ - { - "String": { - "sval": "?|", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2615, - "sval": { - "sval": "[(0,0),(1,1)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2610, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 2590, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2650, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2661, - "sval": { - "sval": "(1,2)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2655, - "names": [ - { - "String": { - "sval": "point", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2676, - "sval": { - "sval": "(3,4)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2670, - "names": [ - { - "String": { - "sval": "point", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "line", - }, - }, - ], - "location": 2650, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 2631, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2694, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2699, - "sval": { - "sval": "[(1,2),(3,4)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2694, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2715, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2722, - "sval": { - "sval": "[(3,4),(4,5)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2717, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 2685, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2755, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2760, - "sval": { - "sval": "[(1,2),(3,4)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2755, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2776, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2783, - "sval": { - "sval": "[(3,4),(4,4)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2778, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 60, - "stmt_location": 2738, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/lseg.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 68, - "relname": "lseg_tbl", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "s", - "is_local": true, - "location": 78, - "typeName": { - "location": 80, - "names": [ - { - "String": { - "sval": "lseg", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 85, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 100, - "relname": "lseg_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 117, - "sval": { - "sval": "[(1,2),(3,4)]", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 47, - "stmt_location": 86, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 147, - "relname": "lseg_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 164, - "sval": { - "sval": "(0,0),(6,6)", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 44, - "stmt_location": 134, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 192, - "relname": "lseg_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 209, - "sval": { - "sval": "10,-10 ,-3,-4", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 179, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 239, - "relname": "lseg_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 256, - "sval": { - "sval": "[-1e6,2e2,3e5, -4e1]", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 53, - "stmt_location": 226, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 293, - "relname": "lseg_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 310, - "sval": { - "sval": "(11,22,33,44)", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 280, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 374, - "relname": "lseg_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 391, - "sval": { - "sval": "(3asdf,2 ,3,4r2)", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 83, - "stmt_location": 327, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 424, - "relname": "lseg_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 441, - "sval": { - "sval": "[1,2,3, 4", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 411, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 467, - "relname": "lseg_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 484, - "sval": { - "sval": "[(,2),(3,4)]", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 45, - "stmt_location": 454, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 513, - "relname": "lseg_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 530, - "sval": { - "sval": "[(1,2),(3,4)", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 45, - "stmt_location": 500, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 562, - "relname": "lseg_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 555, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 555, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 546, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 587, - "relname": "lseg_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 580, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 580, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "s", - }, - }, - ], - "location": 602, - }, - }, - "location": 604, - "name": [ - { - "String": { - "sval": "<=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 612, - "sval": { - "sval": "[(1,2),(3,4)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 607, - "names": [ - { - "String": { - "sval": "lseg", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 56, - "stmt_location": 571, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 644, - "relname": "lseg_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 637, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 637, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "s", - }, - }, - ], - "location": 660, - }, - }, - "location": 662, - "name": [ - { - "String": { - "sval": "<->", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 671, - "sval": { - "sval": "[(1,2),(3,4)]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 666, - "names": [ - { - "String": { - "sval": "lseg", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - "location": 688, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 690, - }, - }, - }, - }, - }, - }, - "stmt_len": 64, - "stmt_location": 628, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/misc_functions.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 29, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "isnull": true, - "location": 42, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "num_nonnulls", - }, - }, - ], - "location": 29, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 56, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 69, - "sval": { - "sval": "1", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "num_nonnulls", - }, - }, - ], - "location": 56, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 48, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 82, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "isnull": true, - "location": 95, - }, - }, - "location": 99, - "typeName": { - "location": 101, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "num_nonnulls", - }, - }, - ], - "location": 82, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 74, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 115, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "isnull": true, - "location": 128, - }, - }, - "location": 132, - "typeName": { - "location": 134, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "isnull": true, - "location": 140, - }, - }, - "location": 144, - "typeName": { - "location": 146, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "num_nonnulls", - }, - }, - ], - "location": 115, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 43, - "stmt_location": 107, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 159, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 172, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 175, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "isnull": true, - "location": 178, - }, - }, - "location": 182, - "typeName": { - "location": 184, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "isnull": true, - "location": 190, - }, - }, - "location": 194, - "typeName": { - "location": 196, - "names": [ - { - "String": { - "sval": "point", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 203, - "sval": { - "sval": "", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 212, - "sval": { - "sval": "9", - }, - }, - }, - "location": -1, - "typeName": { - "location": 207, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "fval": { - "fval": "1.0", - }, - "location": 217, - }, - }, - "location": 221, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "isnull": true, - "location": 223, - }, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "num_nonnulls", - }, - }, - ], - "location": 159, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 77, - "stmt_location": 151, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 237, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 259, - "sval": { - "sval": "{1,2,NULL,3}", - }, - }, - }, - "location": 273, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 275, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "func_variadic": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "num_nonnulls", - }, - }, - ], - "location": 237, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 229, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 290, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 312, - "sval": { - "sval": "{"1","2","3","4"}", - }, - }, - }, - "location": 331, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 333, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "func_variadic": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "num_nonnulls", - }, - }, - ], - "location": 290, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 58, - "stmt_location": 282, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 349, - "val": { - "FuncCall": { - "args": [ - { - "SubLink": { - "location": 371, - "subLinkType": "ARRAY_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "i", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 434, - }, - }, - { - "A_Const": { - "ival": { - "ival": 100, - }, - "location": 437, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 418, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 384, - "val": { - "CaseExpr": { - "args": [ - { - "CaseWhen": { - "expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 394, - }, - }, - "location": 396, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 40, - }, - "location": 399, - }, - }, - }, - }, - "location": 389, - "result": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 407, - }, - }, - }, - }, - ], - "location": 384, - }, - }, - }, - }, - ], - }, - }, - }, - }, - ], - "func_variadic": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "num_nonnulls", - }, - }, - ], - "location": 349, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 104, - "stmt_location": 341, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 455, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "isnull": true, - "location": 465, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "num_nulls", - }, - }, - ], - "location": 455, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 446, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 479, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 489, - "sval": { - "sval": "1", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "num_nulls", - }, - }, - ], - "location": 479, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 471, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 502, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "isnull": true, - "location": 512, - }, - }, - "location": 516, - "typeName": { - "location": 518, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "num_nulls", - }, - }, - ], - "location": 502, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 29, - "stmt_location": 494, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 532, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "isnull": true, - "location": 542, - }, - }, - "location": 546, - "typeName": { - "location": 548, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "isnull": true, - "location": 554, - }, - }, - "location": 558, - "typeName": { - "location": 560, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "num_nulls", - }, - }, - ], - "location": 532, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 524, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 573, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 583, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 586, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "isnull": true, - "location": 589, - }, - }, - "location": 593, - "typeName": { - "location": 595, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "isnull": true, - "location": 601, - }, - }, - "location": 605, - "typeName": { - "location": 607, - "names": [ - { - "String": { - "sval": "point", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 614, - "sval": { - "sval": "", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 623, - "sval": { - "sval": "9", - }, - }, - }, - "location": -1, - "typeName": { - "location": 618, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "fval": { - "fval": "1.0", - }, - "location": 628, - }, - }, - "location": 632, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "isnull": true, - "location": 634, - }, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "num_nulls", - }, - }, - ], - "location": 573, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 74, - "stmt_location": 565, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 648, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 667, - "sval": { - "sval": "{1,2,NULL,3}", - }, - }, - }, - "location": 681, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 683, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "func_variadic": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "num_nulls", - }, - }, - ], - "location": 648, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 49, - "stmt_location": 640, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 698, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 717, - "sval": { - "sval": "{"1","2","3","4"}", - }, - }, - }, - "location": 736, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 738, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "func_variadic": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "num_nulls", - }, - }, - ], - "location": 698, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 55, - "stmt_location": 690, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 754, - "val": { - "FuncCall": { - "args": [ - { - "SubLink": { - "location": 773, - "subLinkType": "ARRAY_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "i", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 836, - }, - }, - { - "A_Const": { - "ival": { - "ival": 100, - }, - "location": 839, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 820, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 786, - "val": { - "CaseExpr": { - "args": [ - { - "CaseWhen": { - "expr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 796, - }, - }, - "location": 798, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 40, - }, - "location": 801, - }, - }, - }, - }, - "location": 791, - "result": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 809, - }, - }, - }, - }, - ], - "location": 786, - }, - }, - }, - }, - ], - }, - }, - }, - }, - ], - "func_variadic": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "num_nulls", - }, - }, - ], - "location": 754, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 101, - "stmt_location": 746, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 874, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "isnull": true, - "location": 896, - }, - }, - "location": 900, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 902, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "func_variadic": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "num_nonnulls", - }, - }, - ], - "location": 874, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 848, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 918, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 940, - "sval": { - "sval": "{}", - }, - }, - }, - "location": 944, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 946, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "func_variadic": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "num_nonnulls", - }, - }, - ], - "location": 918, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 910, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 961, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "isnull": true, - "location": 980, - }, - }, - "location": 984, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 986, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "func_variadic": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "num_nulls", - }, - }, - ], - "location": 961, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 953, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1002, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1021, - "sval": { - "sval": "{}", - }, - }, - }, - "location": 1025, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 1027, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "func_variadic": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "num_nulls", - }, - }, - ], - "location": 1002, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 994, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1093, - "val": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "num_nonnulls", - }, - }, - ], - "location": 1093, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 1034, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1116, - "val": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "num_nulls", - }, - }, - ], - "location": 1116, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 19, - "stmt_location": 1108, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/money.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 29, - "relname": "money_data", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "m", - "is_local": true, - "location": 41, - "typeName": { - "location": 43, - "names": [ - { - "String": { - "sval": "money", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 49, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 64, - "relname": "money_data", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 83, - "sval": { - "sval": "123", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 39, - "stmt_location": 50, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 105, - "relname": "money_data", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 98, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 98, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 90, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 139, - "relname": "money_data", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 124, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "m", - }, - }, - ], - "location": 124, - }, - }, - "location": 126, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 128, - "sval": { - "sval": "123", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 116, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 176, - "relname": "money_data", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 158, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "m", - }, - }, - ], - "location": 158, - }, - }, - "location": 160, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 162, - "sval": { - "sval": "123.45", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 150, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 213, - "relname": "money_data", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 195, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "m", - }, - }, - ], - "location": 195, - }, - }, - "location": 197, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 199, - "sval": { - "sval": "123.45", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 187, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 243, - "relname": "money_data", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 232, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "m", - }, - }, - ], - "location": 232, - }, - }, - "location": 234, - "name": [ - { - "String": { - "sval": "*", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 236, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 29, - "stmt_location": 224, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 273, - "relname": "money_data", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 262, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "m", - }, - }, - ], - "location": 262, - }, - }, - "location": 264, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 266, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 29, - "stmt_location": 254, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 324, - "relname": "money_data", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 305, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "m", - }, - }, - ], - "location": 305, - }, - }, - "location": 307, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 309, - "sval": { - "sval": "$123.00", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 50, - "stmt_location": 284, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 363, - "relname": "money_data", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 343, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "m", - }, - }, - ], - "location": 343, - }, - }, - "location": 345, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 348, - "sval": { - "sval": "$124.00", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 335, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 402, - "relname": "money_data", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 382, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "m", - }, - }, - ], - "location": 382, - }, - }, - "location": 384, - "name": [ - { - "String": { - "sval": "<=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 387, - "sval": { - "sval": "$123.00", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 374, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 441, - "relname": "money_data", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 421, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "m", - }, - }, - ], - "location": 421, - }, - }, - "location": 423, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 426, - "sval": { - "sval": "$123.00", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 413, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 479, - "relname": "money_data", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 460, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "m", - }, - }, - ], - "location": 460, - }, - }, - "location": 462, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 464, - "sval": { - "sval": "$124.00", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 452, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 517, - "relname": "money_data", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 498, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "m", - }, - }, - ], - "location": 498, - }, - }, - "location": 500, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 502, - "sval": { - "sval": "$122.00", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 490, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 569, - "relname": "money_data", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 550, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "m", - }, - }, - ], - "location": 550, - }, - }, - "location": 552, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 554, - "sval": { - "sval": "$123.01", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 528, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 608, - "relname": "money_data", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 588, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "m", - }, - }, - ], - "location": 588, - }, - }, - "location": 590, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 593, - "sval": { - "sval": "$123.00", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 580, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 647, - "relname": "money_data", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 627, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "m", - }, - }, - ], - "location": 627, - }, - }, - "location": 629, - "name": [ - { - "String": { - "sval": "<=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 632, - "sval": { - "sval": "$122.99", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 619, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 686, - "relname": "money_data", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 666, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "m", - }, - }, - ], - "location": 666, - }, - }, - "location": 668, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 671, - "sval": { - "sval": "$123.01", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 658, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 724, - "relname": "money_data", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 705, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "m", - }, - }, - ], - "location": 705, - }, - }, - "location": 707, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 709, - "sval": { - "sval": "$124.00", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 697, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 762, - "relname": "money_data", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 743, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "m", - }, - }, - ], - "location": 743, - }, - }, - "location": 745, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 747, - "sval": { - "sval": "$122.00", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 735, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 812, - "relname": "money_data", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 782, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "m", - }, - }, - ], - "location": 793, - }, - }, - { - "A_Const": { - "location": 796, - "sval": { - "sval": "$124.00", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "cashlarger", - }, - }, - ], - "location": 782, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 49, - "stmt_location": 773, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 862, - "relname": "money_data", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 831, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "m", - }, - }, - ], - "location": 843, - }, - }, - { - "A_Const": { - "location": 846, - "sval": { - "sval": "$124.00", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "cashsmaller", - }, - }, - ], - "location": 831, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 49, - "stmt_location": 823, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 900, - "relname": "money_data", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 881, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "m", - }, - }, - ], - "location": 892, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "cash_words", - }, - }, - ], - "location": 881, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 873, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 947, - "relname": "money_data", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 919, - "val": { - "FuncCall": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "m", - }, - }, - ], - "location": 930, - }, - }, - "location": 932, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 934, - "sval": { - "sval": "1.23", - }, - }, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "cash_words", - }, - }, - ], - "location": 919, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 911, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 972, - "relname": "money_data", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 24, - "stmt_location": 958, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 996, - "relname": "money_data", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1015, - "sval": { - "sval": "$123.45", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 983, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1041, - "relname": "money_data", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1034, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1034, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 1026, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 1066, - "relname": "money_data", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 24, - "stmt_location": 1052, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1090, - "relname": "money_data", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1109, - "sval": { - "sval": "$123.451", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 1077, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1136, - "relname": "money_data", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1129, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1129, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 1121, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 1161, - "relname": "money_data", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 24, - "stmt_location": 1147, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1185, - "relname": "money_data", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1204, - "sval": { - "sval": "$123.454", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 1172, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1231, - "relname": "money_data", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1224, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1224, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 1216, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 1256, - "relname": "money_data", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 24, - "stmt_location": 1242, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1280, - "relname": "money_data", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1299, - "sval": { - "sval": "$123.455", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 1267, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1326, - "relname": "money_data", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1319, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1319, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 1311, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 1351, - "relname": "money_data", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 24, - "stmt_location": 1337, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1375, - "relname": "money_data", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1394, - "sval": { - "sval": "$123.456", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 1362, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1421, - "relname": "money_data", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1414, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1414, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 1406, - }, - }, - { - "RawStmt": { - "stmt": { - "DeleteStmt": { - "relation": { - "inh": true, - "location": 1446, - "relname": "money_data", - "relpersistence": "p", - }, - }, - }, - "stmt_len": 24, - "stmt_location": 1432, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1470, - "relname": "money_data", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1489, - "sval": { - "sval": "$123.459", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 1457, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1516, - "relname": "money_data", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1509, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1509, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 1501, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1563, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 1234567890, - }, - "location": 1563, - }, - }, - "location": 1573, - "typeName": { - "location": 1575, - "names": [ - { - "String": { - "sval": "money", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 1527, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1589, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "12345678901234567", - }, - "location": 1589, - }, - }, - "location": 1606, - "typeName": { - "location": 1608, - "names": [ - { - "String": { - "sval": "money", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 1581, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1622, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "123456789012345678", - }, - "location": 1622, - }, - }, - "location": 1640, - "typeName": { - "location": 1642, - "names": [ - { - "String": { - "sval": "money", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 1614, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1656, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "9223372036854775807", - }, - "location": 1656, - }, - }, - "location": 1675, - "typeName": { - "location": 1677, - "names": [ - { - "String": { - "sval": "money", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 1648, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1691, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": -12345, - }, - "location": 1692, - }, - }, - "location": 1699, - "typeName": { - "location": 1701, - "names": [ - { - "String": { - "sval": "money", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 1683, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1715, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": -1234567890, - }, - "location": 1716, - }, - }, - "location": 1728, - "typeName": { - "location": 1730, - "names": [ - { - "String": { - "sval": "money", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 1707, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1744, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "-12345678901234567", - }, - "location": 1745, - }, - }, - "location": 1764, - "typeName": { - "location": 1766, - "names": [ - { - "String": { - "sval": "money", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 1736, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1780, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "-123456789012345678", - }, - "location": 1781, - }, - }, - "location": 1801, - "typeName": { - "location": 1803, - "names": [ - { - "String": { - "sval": "money", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 1772, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1817, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "-9223372036854775808", - }, - "location": 1818, - }, - }, - "location": 1839, - "typeName": { - "location": 1841, - "names": [ - { - "String": { - "sval": "money", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 1809, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1855, - "val": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": 1234567890, - }, - "location": 1855, - }, - }, - "location": 1865, - "typeName": { - "location": 1867, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1871, - "typeName": { - "location": 1873, - "names": [ - { - "String": { - "sval": "money", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 1847, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1887, - "val": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "12345678901234567", - }, - "location": 1887, - }, - }, - "location": 1904, - "typeName": { - "location": 1906, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1910, - "typeName": { - "location": 1912, - "names": [ - { - "String": { - "sval": "money", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 1879, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1926, - "val": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "A_Const": { - "ival": { - "ival": -1234567890, - }, - "location": 1927, - }, - }, - "location": 1939, - "typeName": { - "location": 1941, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1945, - "typeName": { - "location": 1947, - "names": [ - { - "String": { - "sval": "money", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 1918, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1961, - "val": { - "TypeCast": { - "arg": { - "TypeCast": { - "arg": { - "A_Const": { - "fval": { - "fval": "-12345678901234567", - }, - "location": 1962, - }, - }, - "location": 1981, - "typeName": { - "location": 1983, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1987, - "typeName": { - "location": 1989, - "names": [ - { - "String": { - "sval": "money", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 41, - "stmt_location": 1953, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/numerology.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 244, - "relname": "temp_float", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 256, - "typeName": { - "location": 259, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 266, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 293, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 281, - "relname": "temp_float", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 322, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 306, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 313, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "location": 306, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 63, - "stmt_location": 267, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 357, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 345, - "relname": "temp_float", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 386, - "relname": "int2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 370, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 377, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "location": 370, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 63, - "stmt_location": 331, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 423, - "relname": "temp_float", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 445, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 404, - "name": "ten", - "val": { - "A_Const": { - "location": 404, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 415, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 415, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 395, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 472, - "relname": "temp_int4", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 483, - "typeName": { - "location": 486, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 43, - "stmt_location": 448, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 517, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 506, - "relname": "temp_int4", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 544, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 530, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 535, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "location": 530, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 564, - }, - }, - "location": 567, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": -2147483647, - }, - "location": 569, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 587, - }, - }, - "location": 590, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2147483647, - }, - "location": 592, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 582, - }, - }, - }, - }, - }, - }, - "stmt_len": 111, - "stmt_location": 492, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 629, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 618, - "relname": "temp_int4", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 656, - "relname": "int2_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 642, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 647, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "location": 642, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 60, - "stmt_location": 604, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 694, - "relname": "temp_int4", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 715, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 674, - "name": "nine", - "val": { - "A_Const": { - "location": 674, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 686, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 686, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 665, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 742, - "relname": "temp_int2", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 753, - "typeName": { - "location": 756, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 43, - "stmt_location": 718, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 787, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 776, - "relname": "temp_int2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 814, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 800, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 805, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "location": 800, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 834, - }, - }, - "location": 837, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": -32767, - }, - "location": 840, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 853, - }, - }, - "location": 856, - "name": [ - { - "String": { - "sval": "<=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 32767, - }, - "location": 859, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 848, - }, - }, - }, - }, - }, - }, - "stmt_len": 103, - "stmt_location": 762, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 891, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 880, - "relname": "temp_int2", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 918, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 904, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 909, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "location": 904, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 936, - }, - }, - "location": 939, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": -32767, - }, - "location": 942, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 955, - }, - }, - "location": 958, - "name": [ - { - "String": { - "sval": "<=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 32767, - }, - "location": 961, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 950, - }, - }, - }, - }, - }, - }, - "stmt_len": 101, - "stmt_location": 866, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 997, - "relname": "temp_int2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1018, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 977, - "name": "five", - "val": { - "A_Const": { - "location": 977, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 989, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 989, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 968, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1068, - "relname": "temp_group", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 1080, - "typeName": { - "location": 1083, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "f2", - "is_local": true, - "location": 1089, - "typeName": { - "location": 1092, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "f3", - "is_local": true, - "location": 1098, - "typeName": { - "location": 1101, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 87, - "stmt_location": 1021, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1123, - "relname": "temp_group", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 1172, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 1184, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1143, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1143, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1146, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 1147, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1149, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1156, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 1157, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1159, - }, - }, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 87, - "stmt_location": 1109, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1211, - "relname": "temp_group", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "i", - }, - "inh": true, - "location": 1252, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "f", - }, - "inh": true, - "location": 1264, - "relname": "float8_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1231, - "val": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1231, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1234, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1234, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1240, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1240, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 79, - "stmt_location": 1197, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "distinctClause": [ - {}, - ], - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1310, - "relname": "temp_group", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1330, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1295, - "name": "two", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1295, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 1277, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1402, - "relname": "temp_group", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1424, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "two", - }, - }, - ], - "location": 1438, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "max_float", - }, - }, - ], - "location": 1443, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "min_float", - }, - }, - ], - "location": 1454, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1341, - "name": "two", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1341, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1352, - "name": "max_float", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f3", - }, - }, - ], - "location": 1356, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 1352, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1374, - "name": "min_float", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f3", - }, - }, - ], - "location": 1378, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 1374, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 131, - "stmt_location": 1332, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1679, - "relname": "temp_group", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "two", - }, - }, - ], - "location": 1701, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "two", - }, - }, - ], - "location": 1716, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "max_float", - }, - }, - ], - "location": 1721, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "min_float", - }, - }, - ], - "location": 1732, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1618, - "name": "two", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1618, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1629, - "name": "max_float", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f3", - }, - }, - ], - "location": 1633, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 1629, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1651, - "name": "min_float", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f3", - }, - }, - ], - "location": 1655, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 1651, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 277, - "stmt_location": 1464, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1827, - "relname": "temp_group", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1849, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "two", - }, - }, - ], - "location": 1863, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "min_minus_1", - }, - }, - ], - "location": 1868, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1751, - "name": "two", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1751, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1762, - "name": "max_plus_1", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f3", - }, - }, - ], - "location": 1767, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 1763, - }, - }, - "location": 1771, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1773, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1791, - "name": "min_minus_1", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f3", - }, - }, - ], - "location": 1796, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 1792, - }, - }, - "location": 1800, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1802, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 137, - "stmt_location": 1742, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1983, - "relname": "temp_group", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2005, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "two", - }, - }, - ], - "location": 2019, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "min_minus_1", - }, - }, - ], - "location": 2024, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1889, - "name": "two", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1889, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1907, - "name": "max_plus_min", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f2", - }, - }, - ], - "location": 1911, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 1907, - }, - }, - "location": 1915, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f2", - }, - }, - ], - "location": 1921, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 1917, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1949, - "name": "min_minus_1", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f3", - }, - }, - ], - "location": 1953, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 1949, - }, - }, - "location": 1957, - "name": [ - { - "String": { - "sval": "-", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1959, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 155, - "stmt_location": 1880, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "temp_int2", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 22, - "stmt_location": 2036, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "temp_int4", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 22, - "stmt_location": 2059, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "temp_float", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 23, - "stmt_location": 2082, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "temp_group", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 23, - "stmt_location": 2106, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/oid.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 27, - "relname": "oid_tbl", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 35, - "typeName": { - "location": 38, - "names": [ - { - "String": { - "sval": "oid", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 65, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 57, - "relname": "oid_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 77, - "sval": { - "sval": "1234", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 41, - "stmt_location": 43, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 106, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 98, - "relname": "oid_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 118, - "sval": { - "sval": "1235", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 40, - "stmt_location": 85, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 147, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 139, - "relname": "oid_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 159, - "sval": { - "sval": "987", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 39, - "stmt_location": 126, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 187, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 179, - "relname": "oid_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 199, - "sval": { - "sval": "-1040", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 41, - "stmt_location": 166, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 229, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 221, - "relname": "oid_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 241, - "sval": { - "sval": "99999999", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 44, - "stmt_location": 208, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 274, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 266, - "relname": "oid_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 286, - "sval": { - "sval": "5 ", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 253, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 317, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 309, - "relname": "oid_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 329, - "sval": { - "sval": " 10 ", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 296, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 406, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 398, - "relname": "oid_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 418, - "sval": { - "sval": " 15 ", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 90, - "stmt_location": 340, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 467, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 459, - "relname": "oid_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 479, - "sval": { - "sval": "", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 51, - "stmt_location": 431, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 504, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 496, - "relname": "oid_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 516, - "sval": { - "sval": " ", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 40, - "stmt_location": 483, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 545, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 537, - "relname": "oid_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 557, - "sval": { - "sval": "asdfasd", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 524, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 589, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 581, - "relname": "oid_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 601, - "sval": { - "sval": "99asdfasd", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 45, - "stmt_location": 568, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 635, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 627, - "relname": "oid_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 647, - "sval": { - "sval": "5 d", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 614, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 678, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 670, - "relname": "oid_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 690, - "sval": { - "sval": " 5d", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 657, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 721, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 713, - "relname": "oid_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 733, - "sval": { - "sval": "5 5", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 700, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 764, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 756, - "relname": "oid_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 776, - "sval": { - "sval": " - 500", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 743, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 807, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 799, - "relname": "oid_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 819, - "sval": { - "sval": "32958209582039852935", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 56, - "stmt_location": 786, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 864, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 856, - "relname": "oid_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 876, - "sval": { - "sval": "-23582358720398502385", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 57, - "stmt_location": 843, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 928, - "relname": "oid_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 910, - "name": "six", - "val": { - "A_Const": { - "location": 910, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 921, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 921, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 901, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "o", - }, - "inh": true, - "location": 965, - "relname": "oid_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 945, - "name": "one", - "val": { - "A_Const": { - "location": 945, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 956, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "o", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 956, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "o", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 981, - }, - }, - "location": 986, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1234, - }, - "location": 988, - }, - }, - }, - }, - }, - }, - "stmt_len": 56, - "stmt_location": 936, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "o", - }, - "inh": true, - "location": 1023, - "relname": "oid_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1002, - "name": "five", - "val": { - "A_Const": { - "location": 1002, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1014, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "o", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1014, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "o", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1039, - }, - }, - "location": 1044, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1047, - "sval": { - "sval": "1234", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 60, - "stmt_location": 993, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "o", - }, - "inh": true, - "location": 1085, - "relname": "oid_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1063, - "name": "three", - "val": { - "A_Const": { - "location": 1063, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1076, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "o", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1076, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "o", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1101, - }, - }, - "location": 1106, - "name": [ - { - "String": { - "sval": "<=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1109, - "sval": { - "sval": "1234", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 61, - "stmt_location": 1054, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "o", - }, - "inh": true, - "location": 1145, - "relname": "oid_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1125, - "name": "two", - "val": { - "A_Const": { - "location": 1125, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1136, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "o", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1136, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "o", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1161, - }, - }, - "location": 1166, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1168, - "sval": { - "sval": "1234", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 58, - "stmt_location": 1116, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "o", - }, - "inh": true, - "location": 1205, - "relname": "oid_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1184, - "name": "four", - "val": { - "A_Const": { - "location": 1184, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1196, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "o", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1196, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "o", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1221, - }, - }, - "location": 1226, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1229, - "sval": { - "sval": "1234", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 60, - "stmt_location": 1175, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "o", - }, - "inh": true, - "location": 1267, - "relname": "oid_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1245, - "name": "three", - "val": { - "A_Const": { - "location": 1245, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1258, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "o", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1258, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "o", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1283, - }, - }, - "location": 1288, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1290, - "sval": { - "sval": "1234", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 60, - "stmt_location": 1236, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "oid_tbl", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 20, - "stmt_location": 1297, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/oidjoins.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 104, - "relname": "pg_aggregate", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 84, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 84, - }, - }, - }, - }, - { - "ResTarget": { - "location": 90, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aggfnoid", - }, - }, - ], - "location": 90, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aggfnoid", - }, - }, - ], - "location": 137, - }, - }, - "location": 146, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 149, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 160, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 181, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 174, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 174, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 209, - }, - }, - "location": 216, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "aggfnoid", - }, - }, - ], - "location": 218, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 156, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 151, - }, - }, - }, - }, - "stmt_len": 230, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 261, - "relname": "pg_aggregate", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 239, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 239, - }, - }, - }, - }, - { - "ResTarget": { - "location": 245, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aggtransfn", - }, - }, - ], - "location": 245, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aggtransfn", - }, - }, - ], - "location": 294, - }, - }, - "location": 305, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 308, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 319, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 340, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 333, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 333, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 368, - }, - }, - "location": 375, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "aggtransfn", - }, - }, - ], - "location": 377, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 315, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 310, - }, - }, - }, - }, - "stmt_len": 160, - "stmt_location": 231, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 422, - "relname": "pg_aggregate", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 400, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 400, - }, - }, - }, - }, - { - "ResTarget": { - "location": 406, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aggfinalfn", - }, - }, - ], - "location": 406, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aggfinalfn", - }, - }, - ], - "location": 455, - }, - }, - "location": 466, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 469, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 480, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 501, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 494, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 494, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 529, - }, - }, - "location": 536, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "aggfinalfn", - }, - }, - ], - "location": 538, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 476, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 471, - }, - }, - }, - }, - "stmt_len": 160, - "stmt_location": 392, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 584, - "relname": "pg_aggregate", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 561, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 561, - }, - }, - }, - }, - { - "ResTarget": { - "location": 567, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aggmtransfn", - }, - }, - ], - "location": 567, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aggmtransfn", - }, - }, - ], - "location": 617, - }, - }, - "location": 629, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 632, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 643, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 664, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 657, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 657, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 692, - }, - }, - "location": 699, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "aggmtransfn", - }, - }, - ], - "location": 701, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 639, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 634, - }, - }, - }, - }, - "stmt_len": 163, - "stmt_location": 553, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 751, - "relname": "pg_aggregate", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 725, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 725, - }, - }, - }, - }, - { - "ResTarget": { - "location": 731, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aggminvtransfn", - }, - }, - ], - "location": 731, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aggminvtransfn", - }, - }, - ], - "location": 784, - }, - }, - "location": 799, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 802, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 813, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 834, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 827, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 827, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 862, - }, - }, - "location": 869, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "aggminvtransfn", - }, - }, - ], - "location": 871, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 809, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 804, - }, - }, - }, - }, - "stmt_len": 172, - "stmt_location": 717, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 921, - "relname": "pg_aggregate", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 898, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 898, - }, - }, - }, - }, - { - "ResTarget": { - "location": 904, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aggmfinalfn", - }, - }, - ], - "location": 904, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aggmfinalfn", - }, - }, - ], - "location": 954, - }, - }, - "location": 966, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 969, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 980, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 1001, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 994, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 994, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 1029, - }, - }, - "location": 1036, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "aggmfinalfn", - }, - }, - ], - "location": 1038, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 976, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 971, - }, - }, - }, - }, - "stmt_len": 163, - "stmt_location": 890, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 1083, - "relname": "pg_aggregate", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1062, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 1062, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1068, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aggsortop", - }, - }, - ], - "location": 1068, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aggsortop", - }, - }, - ], - "location": 1116, - }, - }, - "location": 1126, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 1129, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 1140, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 1161, - "relname": "pg_operator", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1154, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1154, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 1193, - }, - }, - "location": 1200, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "aggsortop", - }, - }, - ], - "location": 1202, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 1136, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 1131, - }, - }, - }, - }, - "stmt_len": 161, - "stmt_location": 1054, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 1248, - "relname": "pg_aggregate", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1224, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 1224, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1230, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aggtranstype", - }, - }, - ], - "location": 1230, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aggtranstype", - }, - }, - ], - "location": 1281, - }, - }, - "location": 1294, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 1297, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 1308, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 1329, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1322, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1322, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 1357, - }, - }, - "location": 1364, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "aggtranstype", - }, - }, - ], - "location": 1366, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 1304, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 1299, - }, - }, - }, - }, - "stmt_len": 166, - "stmt_location": 1216, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 1416, - "relname": "pg_aggregate", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1391, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 1391, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1397, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aggmtranstype", - }, - }, - ], - "location": 1397, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "aggmtranstype", - }, - }, - ], - "location": 1449, - }, - }, - "location": 1463, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 1466, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 1477, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 1498, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1491, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1491, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 1526, - }, - }, - "location": 1533, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "aggmtranstype", - }, - }, - ], - "location": 1535, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 1473, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 1468, - }, - }, - }, - }, - "stmt_len": 169, - "stmt_location": 1383, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 1582, - "relname": "pg_am", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1561, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 1561, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1567, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "amhandler", - }, - }, - ], - "location": 1567, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "amhandler", - }, - }, - ], - "location": 1608, - }, - }, - "location": 1618, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 1621, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 1632, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 1653, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1646, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1646, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 1681, - }, - }, - "location": 1688, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "amhandler", - }, - }, - ], - "location": 1690, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 1628, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 1623, - }, - }, - }, - }, - "stmt_len": 150, - "stmt_location": 1553, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 1734, - "relname": "pg_amop", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1712, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 1712, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1718, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "amopfamily", - }, - }, - ], - "location": 1718, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "amopfamily", - }, - }, - ], - "location": 1762, - }, - }, - "location": 1773, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 1776, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 1787, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 1808, - "relname": "pg_opfamily", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1801, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1801, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 1840, - }, - }, - "location": 1847, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "amopfamily", - }, - }, - ], - "location": 1849, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 1783, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 1778, - }, - }, - }, - }, - "stmt_len": 159, - "stmt_location": 1704, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 1896, - "relname": "pg_amop", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1872, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 1872, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1878, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "amoplefttype", - }, - }, - ], - "location": 1878, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "amoplefttype", - }, - }, - ], - "location": 1924, - }, - }, - "location": 1937, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 1940, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 1951, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 1972, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1965, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1965, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 2000, - }, - }, - "location": 2007, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "amoplefttype", - }, - }, - ], - "location": 2009, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 1947, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 1942, - }, - }, - }, - }, - "stmt_len": 161, - "stmt_location": 1864, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 2059, - "relname": "pg_amop", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2034, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 2034, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2040, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "amoprighttype", - }, - }, - ], - "location": 2040, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "amoprighttype", - }, - }, - ], - "location": 2087, - }, - }, - "location": 2101, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 2104, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 2115, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 2136, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2129, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2129, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 2164, - }, - }, - "location": 2171, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "amoprighttype", - }, - }, - ], - "location": 2173, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 2111, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 2106, - }, - }, - }, - }, - "stmt_len": 164, - "stmt_location": 2026, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 2218, - "relname": "pg_amop", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2199, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 2199, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2205, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "amopopr", - }, - }, - ], - "location": 2205, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "amopopr", - }, - }, - ], - "location": 2246, - }, - }, - "location": 2254, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 2257, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 2268, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 2289, - "relname": "pg_operator", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2282, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2282, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 2321, - }, - }, - "location": 2328, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "amopopr", - }, - }, - ], - "location": 2330, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 2264, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 2259, - }, - }, - }, - }, - "stmt_len": 150, - "stmt_location": 2191, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 2372, - "relname": "pg_amop", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2350, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 2350, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2356, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "amopmethod", - }, - }, - ], - "location": 2356, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "amopmethod", - }, - }, - ], - "location": 2400, - }, - }, - "location": 2411, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 2414, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 2425, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 2446, - "relname": "pg_am", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2439, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2439, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 2472, - }, - }, - "location": 2479, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "amopmethod", - }, - }, - ], - "location": 2481, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 2421, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 2416, - }, - }, - }, - }, - "stmt_len": 153, - "stmt_location": 2342, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 2530, - "relname": "pg_amop", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2504, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 2504, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2510, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "amopsortfamily", - }, - }, - ], - "location": 2510, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "amopsortfamily", - }, - }, - ], - "location": 2558, - }, - }, - "location": 2573, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 2576, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 2587, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 2608, - "relname": "pg_opfamily", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2601, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2601, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 2640, - }, - }, - "location": 2647, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "amopsortfamily", - }, - }, - ], - "location": 2649, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 2583, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 2578, - }, - }, - }, - }, - "stmt_len": 171, - "stmt_location": 2496, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 2700, - "relname": "pg_amproc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2676, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 2676, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2682, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "amprocfamily", - }, - }, - ], - "location": 2682, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "amprocfamily", - }, - }, - ], - "location": 2730, - }, - }, - "location": 2743, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 2746, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 2757, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 2778, - "relname": "pg_opfamily", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2771, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2771, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 2810, - }, - }, - "location": 2817, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "amprocfamily", - }, - }, - ], - "location": 2819, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 2753, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 2748, - }, - }, - }, - }, - "stmt_len": 167, - "stmt_location": 2668, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 2870, - "relname": "pg_amproc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2844, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 2844, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2850, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "amproclefttype", - }, - }, - ], - "location": 2850, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "amproclefttype", - }, - }, - ], - "location": 2900, - }, - }, - "location": 2915, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 2918, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 2929, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 2950, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2943, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2943, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 2978, - }, - }, - "location": 2985, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "amproclefttype", - }, - }, - ], - "location": 2987, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 2925, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 2920, - }, - }, - }, - }, - "stmt_len": 169, - "stmt_location": 2836, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 3041, - "relname": "pg_amproc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3014, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 3014, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3020, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "amprocrighttype", - }, - }, - ], - "location": 3020, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "amprocrighttype", - }, - }, - ], - "location": 3071, - }, - }, - "location": 3087, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 3090, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 3101, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 3122, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3115, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3115, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3150, - }, - }, - "location": 3157, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "amprocrighttype", - }, - }, - ], - "location": 3159, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 3097, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 3092, - }, - }, - }, - }, - "stmt_len": 172, - "stmt_location": 3006, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 3205, - "relname": "pg_amproc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3187, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 3187, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3193, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "amproc", - }, - }, - ], - "location": 3193, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "amproc", - }, - }, - ], - "location": 3235, - }, - }, - "location": 3242, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 3245, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 3256, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 3277, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3270, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3270, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3305, - }, - }, - "location": 3312, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "amproc", - }, - }, - ], - "location": 3314, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 3252, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 3247, - }, - }, - }, - }, - "stmt_len": 145, - "stmt_location": 3179, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 3352, - "relname": "pg_attrdef", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3333, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 3333, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3339, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "adrelid", - }, - }, - ], - "location": 3339, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "adrelid", - }, - }, - ], - "location": 3383, - }, - }, - "location": 3391, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 3394, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 3405, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 3426, - "relname": "pg_class", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3419, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3419, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3455, - }, - }, - "location": 3462, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "adrelid", - }, - }, - ], - "location": 3464, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 3401, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 3396, - }, - }, - }, - }, - "stmt_len": 150, - "stmt_location": 3325, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 3504, - "relname": "pg_attribute", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3484, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 3484, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3490, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "attrelid", - }, - }, - ], - "location": 3490, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "attrelid", - }, - }, - ], - "location": 3537, - }, - }, - "location": 3546, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 3549, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 3560, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 3581, - "relname": "pg_class", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3574, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3574, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3610, - }, - }, - "location": 3617, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "attrelid", - }, - }, - ], - "location": 3619, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 3556, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 3551, - }, - }, - }, - }, - "stmt_len": 155, - "stmt_location": 3476, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 3660, - "relname": "pg_attribute", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3640, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 3640, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3646, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "atttypid", - }, - }, - ], - "location": 3646, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "atttypid", - }, - }, - ], - "location": 3693, - }, - }, - "location": 3702, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 3705, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 3716, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 3737, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3730, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3730, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3765, - }, - }, - "location": 3772, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "atttypid", - }, - }, - ], - "location": 3774, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 3712, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 3707, - }, - }, - }, - }, - "stmt_len": 154, - "stmt_location": 3632, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 3819, - "relname": "pg_attribute", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3795, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 3795, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3801, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "attcollation", - }, - }, - ], - "location": 3801, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "attcollation", - }, - }, - ], - "location": 3852, - }, - }, - "location": 3865, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 3868, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 3879, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 3900, - "relname": "pg_collation", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3893, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3893, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 3933, - }, - }, - "location": 3940, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "attcollation", - }, - }, - ], - "location": 3942, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 3875, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 3870, - }, - }, - }, - }, - "stmt_len": 171, - "stmt_location": 3787, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 3989, - "relname": "pg_cast", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3967, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 3967, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3973, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "castsource", - }, - }, - ], - "location": 3973, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "castsource", - }, - }, - ], - "location": 4017, - }, - }, - "location": 4028, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 4031, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 4042, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 4063, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4056, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4056, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 4091, - }, - }, - "location": 4098, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "castsource", - }, - }, - ], - "location": 4100, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 4038, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 4033, - }, - }, - }, - }, - "stmt_len": 155, - "stmt_location": 3959, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 4145, - "relname": "pg_cast", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4123, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 4123, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4129, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "casttarget", - }, - }, - ], - "location": 4129, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "casttarget", - }, - }, - ], - "location": 4173, - }, - }, - "location": 4184, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 4187, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 4198, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 4219, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4212, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4212, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 4247, - }, - }, - "location": 4254, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "casttarget", - }, - }, - ], - "location": 4256, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 4194, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 4189, - }, - }, - }, - }, - "stmt_len": 155, - "stmt_location": 4115, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 4299, - "relname": "pg_cast", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4279, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 4279, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4285, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "castfunc", - }, - }, - ], - "location": 4285, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "castfunc", - }, - }, - ], - "location": 4327, - }, - }, - "location": 4336, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 4339, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 4350, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 4371, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4364, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4364, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 4399, - }, - }, - "location": 4406, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "castfunc", - }, - }, - ], - "location": 4408, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 4346, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 4341, - }, - }, - }, - }, - "stmt_len": 149, - "stmt_location": 4271, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 4453, - "relname": "pg_class", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4429, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 4429, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4435, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relnamespace", - }, - }, - ], - "location": 4435, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relnamespace", - }, - }, - ], - "location": 4482, - }, - }, - "location": 4495, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 4498, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 4509, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 4530, - "relname": "pg_namespace", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4523, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4523, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 4563, - }, - }, - "location": 4570, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "relnamespace", - }, - }, - ], - "location": 4572, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 4505, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 4500, - }, - }, - }, - }, - "stmt_len": 167, - "stmt_location": 4421, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 4616, - "relname": "pg_class", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4597, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 4597, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4603, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "reltype", - }, - }, - ], - "location": 4603, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "reltype", - }, - }, - ], - "location": 4645, - }, - }, - "location": 4653, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 4656, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 4667, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 4688, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4681, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4681, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 4716, - }, - }, - "location": 4723, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "reltype", - }, - }, - ], - "location": 4725, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 4663, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 4658, - }, - }, - }, - }, - "stmt_len": 147, - "stmt_location": 4589, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 4766, - "relname": "pg_class", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4745, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 4745, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4751, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "reloftype", - }, - }, - ], - "location": 4751, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "reloftype", - }, - }, - ], - "location": 4795, - }, - }, - "location": 4805, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 4808, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 4819, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 4840, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4833, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4833, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 4868, - }, - }, - "location": 4875, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "reloftype", - }, - }, - ], - "location": 4877, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 4815, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 4810, - }, - }, - }, - }, - "stmt_len": 153, - "stmt_location": 4737, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 4919, - "relname": "pg_class", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4899, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 4899, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4905, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relowner", - }, - }, - ], - "location": 4905, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relowner", - }, - }, - ], - "location": 4948, - }, - }, - "location": 4957, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 4960, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 4971, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 4992, - "relname": "pg_authid", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4985, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4985, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 5022, - }, - }, - "location": 5029, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "relowner", - }, - }, - ], - "location": 5031, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 4967, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 4962, - }, - }, - }, - }, - "stmt_len": 152, - "stmt_location": 4891, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 5069, - "relname": "pg_class", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5052, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 5052, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5058, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relam", - }, - }, - ], - "location": 5058, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "relam", - }, - }, - ], - "location": 5098, - }, - }, - "location": 5104, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 5107, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 5118, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 5139, - "relname": "pg_am", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5132, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5132, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 5165, - }, - }, - "location": 5172, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "relam", - }, - }, - ], - "location": 5174, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 5114, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 5109, - }, - }, - }, - }, - "stmt_len": 139, - "stmt_location": 5044, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 5217, - "relname": "pg_class", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5192, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 5192, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5198, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "reltablespace", - }, - }, - ], - "location": 5198, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "reltablespace", - }, - }, - ], - "location": 5246, - }, - }, - "location": 5260, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 5263, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 5274, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 5295, - "relname": "pg_tablespace", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5288, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5288, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 5329, - }, - }, - "location": 5336, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "reltablespace", - }, - }, - ], - "location": 5338, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 5270, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 5265, - }, - }, - }, - }, - "stmt_len": 171, - "stmt_location": 5184, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 5389, - "relname": "pg_class", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5364, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 5364, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5370, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "reltoastrelid", - }, - }, - ], - "location": 5370, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "reltoastrelid", - }, - }, - ], - "location": 5418, - }, - }, - "location": 5432, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 5435, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 5446, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 5467, - "relname": "pg_class", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5460, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5460, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 5496, - }, - }, - "location": 5503, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "reltoastrelid", - }, - }, - ], - "location": 5505, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 5442, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 5437, - }, - }, - }, - }, - "stmt_len": 166, - "stmt_location": 5356, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 5556, - "relname": "pg_collation", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5531, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 5531, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5537, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "collnamespace", - }, - }, - ], - "location": 5537, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "collnamespace", - }, - }, - ], - "location": 5589, - }, - }, - "location": 5603, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 5606, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 5617, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 5638, - "relname": "pg_namespace", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5631, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5631, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 5671, - }, - }, - "location": 5678, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "collnamespace", - }, - }, - ], - "location": 5680, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 5613, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 5608, - }, - }, - }, - }, - "stmt_len": 174, - "stmt_location": 5523, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 5727, - "relname": "pg_collation", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5706, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 5706, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5712, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "collowner", - }, - }, - ], - "location": 5712, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "collowner", - }, - }, - ], - "location": 5760, - }, - }, - "location": 5770, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 5773, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 5784, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 5805, - "relname": "pg_authid", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5798, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5798, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 5835, - }, - }, - "location": 5842, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "collowner", - }, - }, - ], - "location": 5844, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 5780, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 5775, - }, - }, - }, - }, - "stmt_len": 159, - "stmt_location": 5698, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 5890, - "relname": "pg_constraint", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5866, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 5866, - }, - }, - }, - }, - { - "ResTarget": { - "location": 5872, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "connamespace", - }, - }, - ], - "location": 5872, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "connamespace", - }, - }, - ], - "location": 5924, - }, - }, - "location": 5937, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 5940, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 5951, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 5972, - "relname": "pg_namespace", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5965, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5965, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 6005, - }, - }, - "location": 6012, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "connamespace", - }, - }, - ], - "location": 6014, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 5947, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 5942, - }, - }, - }, - }, - "stmt_len": 172, - "stmt_location": 5858, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 6059, - "relname": "pg_constraint", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6039, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 6039, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6045, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "conrelid", - }, - }, - ], - "location": 6045, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "conrelid", - }, - }, - ], - "location": 6093, - }, - }, - "location": 6102, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 6105, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 6116, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 6137, - "relname": "pg_class", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6130, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6130, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 6166, - }, - }, - "location": 6173, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "conrelid", - }, - }, - ], - "location": 6175, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 6112, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 6107, - }, - }, - }, - }, - "stmt_len": 156, - "stmt_location": 6031, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 6216, - "relname": "pg_constraint", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6196, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 6196, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6202, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "contypid", - }, - }, - ], - "location": 6202, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "contypid", - }, - }, - ], - "location": 6250, - }, - }, - "location": 6259, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 6262, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 6273, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 6294, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6287, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6287, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 6322, - }, - }, - "location": 6329, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "contypid", - }, - }, - ], - "location": 6331, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 6269, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 6264, - }, - }, - }, - }, - "stmt_len": 155, - "stmt_location": 6188, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 6372, - "relname": "pg_constraint", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6352, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 6352, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6358, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "conindid", - }, - }, - ], - "location": 6358, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "conindid", - }, - }, - ], - "location": 6406, - }, - }, - "location": 6415, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 6418, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 6429, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 6450, - "relname": "pg_class", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6443, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6443, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 6479, - }, - }, - "location": 6486, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "conindid", - }, - }, - ], - "location": 6488, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 6425, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 6420, - }, - }, - }, - }, - "stmt_len": 156, - "stmt_location": 6344, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 6530, - "relname": "pg_constraint", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6509, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 6509, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6515, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "confrelid", - }, - }, - ], - "location": 6515, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "confrelid", - }, - }, - ], - "location": 6564, - }, - }, - "location": 6574, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 6577, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 6588, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 6609, - "relname": "pg_class", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6602, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6602, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 6638, - }, - }, - "location": 6645, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "confrelid", - }, - }, - ], - "location": 6647, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 6584, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 6579, - }, - }, - }, - }, - "stmt_len": 159, - "stmt_location": 6501, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 6693, - "relname": "pg_conversion", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6669, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 6669, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6675, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "connamespace", - }, - }, - ], - "location": 6675, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "connamespace", - }, - }, - ], - "location": 6727, - }, - }, - "location": 6740, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 6743, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 6754, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 6775, - "relname": "pg_namespace", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6768, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6768, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 6808, - }, - }, - "location": 6815, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "connamespace", - }, - }, - ], - "location": 6817, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 6750, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 6745, - }, - }, - }, - }, - "stmt_len": 172, - "stmt_location": 6661, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 6862, - "relname": "pg_conversion", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6842, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 6842, - }, - }, - }, - }, - { - "ResTarget": { - "location": 6848, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "conowner", - }, - }, - ], - "location": 6848, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "conowner", - }, - }, - ], - "location": 6896, - }, - }, - "location": 6905, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 6908, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 6919, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 6940, - "relname": "pg_authid", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6933, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6933, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 6970, - }, - }, - "location": 6977, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "conowner", - }, - }, - ], - "location": 6979, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 6915, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 6910, - }, - }, - }, - }, - "stmt_len": 157, - "stmt_location": 6834, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 7019, - "relname": "pg_conversion", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7000, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 7000, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7006, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "conproc", - }, - }, - ], - "location": 7006, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "conproc", - }, - }, - ], - "location": 7053, - }, - }, - "location": 7061, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 7064, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 7075, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 7096, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7089, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 7089, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 7124, - }, - }, - "location": 7131, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "conproc", - }, - }, - ], - "location": 7133, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 7071, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 7066, - }, - }, - }, - }, - "stmt_len": 152, - "stmt_location": 6992, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 7171, - "relname": "pg_database", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7153, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 7153, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7159, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "datdba", - }, - }, - ], - "location": 7159, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "datdba", - }, - }, - ], - "location": 7203, - }, - }, - "location": 7210, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 7213, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 7224, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 7245, - "relname": "pg_authid", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7238, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 7238, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 7275, - }, - }, - "location": 7282, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "datdba", - }, - }, - ], - "location": 7284, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 7220, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 7215, - }, - }, - }, - }, - "stmt_len": 149, - "stmt_location": 7145, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 7328, - "relname": "pg_database", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7303, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 7303, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7309, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "dattablespace", - }, - }, - ], - "location": 7309, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "dattablespace", - }, - }, - ], - "location": 7360, - }, - }, - "location": 7374, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 7377, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 7388, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 7409, - "relname": "pg_tablespace", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7402, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 7402, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 7443, - }, - }, - "location": 7450, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "dattablespace", - }, - }, - ], - "location": 7452, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 7384, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 7379, - }, - }, - }, - }, - "stmt_len": 174, - "stmt_location": 7295, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 7501, - "relname": "pg_db_role_setting", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7478, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 7478, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7484, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "setdatabase", - }, - }, - ], - "location": 7484, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "setdatabase", - }, - }, - ], - "location": 7540, - }, - }, - "location": 7552, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 7555, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 7566, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 7587, - "relname": "pg_database", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7580, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 7580, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 7619, - }, - }, - "location": 7626, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "setdatabase", - }, - }, - ], - "location": 7628, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 7562, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 7557, - }, - }, - }, - }, - "stmt_len": 173, - "stmt_location": 7470, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 7671, - "relname": "pg_depend", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7652, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 7652, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7658, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "classid", - }, - }, - ], - "location": 7658, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "classid", - }, - }, - ], - "location": 7701, - }, - }, - "location": 7709, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 7712, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 7723, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 7744, - "relname": "pg_class", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7737, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 7737, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 7773, - }, - }, - "location": 7780, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "classid", - }, - }, - ], - "location": 7782, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 7719, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 7714, - }, - }, - }, - }, - "stmt_len": 149, - "stmt_location": 7644, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 7824, - "relname": "pg_depend", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7802, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 7802, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7808, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "refclassid", - }, - }, - ], - "location": 7808, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "refclassid", - }, - }, - ], - "location": 7854, - }, - }, - "location": 7865, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 7868, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 7879, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 7900, - "relname": "pg_class", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7893, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 7893, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 7929, - }, - }, - "location": 7936, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "refclassid", - }, - }, - ], - "location": 7938, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 7875, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 7870, - }, - }, - }, - }, - "stmt_len": 158, - "stmt_location": 7794, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 7981, - "relname": "pg_description", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7961, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 7961, - }, - }, - }, - }, - { - "ResTarget": { - "location": 7967, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "classoid", - }, - }, - ], - "location": 7967, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "classoid", - }, - }, - ], - "location": 8016, - }, - }, - "location": 8025, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 8028, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 8039, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 8060, - "relname": "pg_class", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8053, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 8053, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 8089, - }, - }, - "location": 8096, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "classoid", - }, - }, - ], - "location": 8098, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 8035, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 8030, - }, - }, - }, - }, - "stmt_len": 157, - "stmt_location": 7953, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 8140, - "relname": "pg_enum", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8119, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 8119, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8125, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "enumtypid", - }, - }, - ], - "location": 8125, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "enumtypid", - }, - }, - ], - "location": 8168, - }, - }, - "location": 8178, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 8181, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 8192, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 8213, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8206, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 8206, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 8241, - }, - }, - "location": 8248, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "enumtypid", - }, - }, - ], - "location": 8250, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 8188, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 8183, - }, - }, - }, - }, - "stmt_len": 152, - "stmt_location": 8111, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 8292, - "relname": "pg_extension", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8272, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 8272, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8278, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "extowner", - }, - }, - ], - "location": 8278, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "extowner", - }, - }, - ], - "location": 8325, - }, - }, - "location": 8334, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 8337, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 8348, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 8369, - "relname": "pg_authid", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8362, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 8362, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 8399, - }, - }, - "location": 8406, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "extowner", - }, - }, - ], - "location": 8408, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 8344, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 8339, - }, - }, - }, - }, - "stmt_len": 156, - "stmt_location": 8264, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 8453, - "relname": "pg_extension", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8429, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 8429, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8435, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "extnamespace", - }, - }, - ], - "location": 8435, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "extnamespace", - }, - }, - ], - "location": 8486, - }, - }, - "location": 8499, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 8502, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 8513, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 8534, - "relname": "pg_namespace", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8527, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 8527, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 8567, - }, - }, - "location": 8574, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "extnamespace", - }, - }, - ], - "location": 8576, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 8509, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 8504, - }, - }, - }, - }, - "stmt_len": 171, - "stmt_location": 8421, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 8621, - "relname": "pg_foreign_data_wrapper", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8601, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 8601, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8607, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fdwowner", - }, - }, - ], - "location": 8607, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fdwowner", - }, - }, - ], - "location": 8665, - }, - }, - "location": 8674, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 8677, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 8688, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 8709, - "relname": "pg_authid", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8702, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 8702, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 8739, - }, - }, - "location": 8746, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "fdwowner", - }, - }, - ], - "location": 8748, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 8684, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 8679, - }, - }, - }, - }, - "stmt_len": 167, - "stmt_location": 8593, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 8789, - "relname": "pg_foreign_server", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8769, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 8769, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8775, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "srvowner", - }, - }, - ], - "location": 8775, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "srvowner", - }, - }, - ], - "location": 8827, - }, - }, - "location": 8836, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 8839, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 8850, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 8871, - "relname": "pg_authid", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8864, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 8864, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 8901, - }, - }, - "location": 8908, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "srvowner", - }, - }, - ], - "location": 8910, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 8846, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 8841, - }, - }, - }, - }, - "stmt_len": 161, - "stmt_location": 8761, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 8949, - "relname": "pg_foreign_server", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8931, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 8931, - }, - }, - }, - }, - { - "ResTarget": { - "location": 8937, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "srvfdw", - }, - }, - ], - "location": 8937, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "srvfdw", - }, - }, - ], - "location": 8987, - }, - }, - "location": 8994, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 8997, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 9008, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 9029, - "relname": "pg_foreign_data_wrapper", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9022, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 9022, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 9073, - }, - }, - "location": 9080, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "srvfdw", - }, - }, - ], - "location": 9082, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 9004, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 8999, - }, - }, - }, - }, - "stmt_len": 169, - "stmt_location": 8923, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 9123, - "relname": "pg_index", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9101, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 9101, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9107, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "indexrelid", - }, - }, - ], - "location": 9107, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "indexrelid", - }, - }, - ], - "location": 9152, - }, - }, - "location": 9163, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 9166, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 9177, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 9198, - "relname": "pg_class", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9191, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 9191, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 9227, - }, - }, - "location": 9234, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "indexrelid", - }, - }, - ], - "location": 9236, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 9173, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 9168, - }, - }, - }, - }, - "stmt_len": 157, - "stmt_location": 9093, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 9279, - "relname": "pg_index", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9259, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 9259, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9265, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "indrelid", - }, - }, - ], - "location": 9265, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "indrelid", - }, - }, - ], - "location": 9308, - }, - }, - "location": 9317, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 9320, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 9331, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 9352, - "relname": "pg_class", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9345, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 9345, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 9381, - }, - }, - "location": 9388, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "indrelid", - }, - }, - ], - "location": 9390, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 9327, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 9322, - }, - }, - }, - }, - "stmt_len": 151, - "stmt_location": 9251, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 9431, - "relname": "pg_inherits", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9411, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 9411, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9417, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "inhrelid", - }, - }, - ], - "location": 9417, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "inhrelid", - }, - }, - ], - "location": 9463, - }, - }, - "location": 9472, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 9475, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 9486, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 9507, - "relname": "pg_class", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9500, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 9500, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 9536, - }, - }, - "location": 9543, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "inhrelid", - }, - }, - ], - "location": 9545, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 9482, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 9477, - }, - }, - }, - }, - "stmt_len": 154, - "stmt_location": 9403, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 9587, - "relname": "pg_inherits", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9566, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 9566, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9572, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "inhparent", - }, - }, - ], - "location": 9572, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "inhparent", - }, - }, - ], - "location": 9619, - }, - }, - "location": 9629, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 9632, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 9643, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 9664, - "relname": "pg_class", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9657, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 9657, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 9693, - }, - }, - "location": 9700, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "inhparent", - }, - }, - ], - "location": 9702, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 9639, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 9634, - }, - }, - }, - }, - "stmt_len": 157, - "stmt_location": 9558, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 9744, - "relname": "pg_language", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9724, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 9724, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9730, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "lanowner", - }, - }, - ], - "location": 9730, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "lanowner", - }, - }, - ], - "location": 9776, - }, - }, - "location": 9785, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 9788, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 9799, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 9820, - "relname": "pg_authid", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9813, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 9813, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 9850, - }, - }, - "location": 9857, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "lanowner", - }, - }, - ], - "location": 9859, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 9795, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 9790, - }, - }, - }, - }, - "stmt_len": 155, - "stmt_location": 9716, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 9905, - "relname": "pg_language", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9880, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 9880, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9886, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "lanplcallfoid", - }, - }, - ], - "location": 9886, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "lanplcallfoid", - }, - }, - ], - "location": 9937, - }, - }, - "location": 9951, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 9954, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 9965, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 9986, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9979, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 9979, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 10014, - }, - }, - "location": 10021, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "lanplcallfoid", - }, - }, - ], - "location": 10023, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 9961, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 9956, - }, - }, - }, - }, - "stmt_len": 168, - "stmt_location": 9872, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 10070, - "relname": "pg_language", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10049, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 10049, - }, - }, - }, - }, - { - "ResTarget": { - "location": 10055, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "laninline", - }, - }, - ], - "location": 10055, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "laninline", - }, - }, - ], - "location": 10102, - }, - }, - "location": 10112, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 10115, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 10126, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 10147, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10140, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10140, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 10175, - }, - }, - "location": 10182, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "laninline", - }, - }, - ], - "location": 10184, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 10122, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 10117, - }, - }, - }, - }, - "stmt_len": 156, - "stmt_location": 10041, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 10230, - "relname": "pg_language", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10206, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 10206, - }, - }, - }, - }, - { - "ResTarget": { - "location": 10212, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "lanvalidator", - }, - }, - ], - "location": 10212, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "lanvalidator", - }, - }, - ], - "location": 10262, - }, - }, - "location": 10275, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 10278, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 10289, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 10310, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10303, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10303, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 10338, - }, - }, - "location": 10345, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "lanvalidator", - }, - }, - ], - "location": 10347, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 10285, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 10280, - }, - }, - }, - }, - "stmt_len": 165, - "stmt_location": 10198, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 10388, - "relname": "pg_largeobject", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10372, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 10372, - }, - }, - }, - }, - { - "ResTarget": { - "location": 10378, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "loid", - }, - }, - ], - "location": 10378, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "loid", - }, - }, - ], - "location": 10423, - }, - }, - "location": 10428, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 10431, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 10442, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 10463, - "relname": "pg_largeobject_metadata", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10456, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10456, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 10507, - }, - }, - "location": 10514, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "loid", - }, - }, - ], - "location": 10516, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 10438, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 10433, - }, - }, - }, - }, - "stmt_len": 160, - "stmt_location": 10364, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 10553, - "relname": "pg_largeobject_metadata", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10533, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 10533, - }, - }, - }, - }, - { - "ResTarget": { - "location": 10539, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "lomowner", - }, - }, - ], - "location": 10539, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "lomowner", - }, - }, - ], - "location": 10597, - }, - }, - "location": 10606, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 10609, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 10620, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 10641, - "relname": "pg_authid", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10634, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10634, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 10671, - }, - }, - "location": 10678, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "lomowner", - }, - }, - ], - "location": 10680, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 10616, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 10611, - }, - }, - }, - }, - "stmt_len": 167, - "stmt_location": 10525, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 10721, - "relname": "pg_namespace", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10701, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 10701, - }, - }, - }, - }, - { - "ResTarget": { - "location": 10707, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nspowner", - }, - }, - ], - "location": 10707, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nspowner", - }, - }, - ], - "location": 10754, - }, - }, - "location": 10763, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 10766, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 10777, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 10798, - "relname": "pg_authid", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10791, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10791, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 10828, - }, - }, - "location": 10835, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "nspowner", - }, - }, - ], - "location": 10837, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 10773, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 10768, - }, - }, - }, - }, - "stmt_len": 156, - "stmt_location": 10693, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 10879, - "relname": "pg_opclass", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10858, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 10858, - }, - }, - }, - }, - { - "ResTarget": { - "location": 10864, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "opcmethod", - }, - }, - ], - "location": 10864, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "opcmethod", - }, - }, - ], - "location": 10910, - }, - }, - "location": 10920, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 10923, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 10934, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 10955, - "relname": "pg_am", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10948, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 10948, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 10981, - }, - }, - "location": 10988, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "opcmethod", - }, - }, - ], - "location": 10990, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 10930, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 10925, - }, - }, - }, - }, - "stmt_len": 153, - "stmt_location": 10850, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 11036, - "relname": "pg_opclass", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11012, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 11012, - }, - }, - }, - }, - { - "ResTarget": { - "location": 11018, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "opcnamespace", - }, - }, - ], - "location": 11018, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "opcnamespace", - }, - }, - ], - "location": 11067, - }, - }, - "location": 11080, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 11083, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 11094, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 11115, - "relname": "pg_namespace", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11108, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11108, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 11148, - }, - }, - "location": 11155, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "opcnamespace", - }, - }, - ], - "location": 11157, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 11090, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 11085, - }, - }, - }, - }, - "stmt_len": 169, - "stmt_location": 11004, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 11202, - "relname": "pg_opclass", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11182, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 11182, - }, - }, - }, - }, - { - "ResTarget": { - "location": 11188, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "opcowner", - }, - }, - ], - "location": 11188, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "opcowner", - }, - }, - ], - "location": 11233, - }, - }, - "location": 11242, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 11245, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 11256, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 11277, - "relname": "pg_authid", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11270, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11270, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 11307, - }, - }, - "location": 11314, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "opcowner", - }, - }, - ], - "location": 11316, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 11252, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 11247, - }, - }, - }, - }, - "stmt_len": 154, - "stmt_location": 11174, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 11358, - "relname": "pg_opclass", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11337, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 11337, - }, - }, - }, - }, - { - "ResTarget": { - "location": 11343, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "opcfamily", - }, - }, - ], - "location": 11343, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "opcfamily", - }, - }, - ], - "location": 11389, - }, - }, - "location": 11399, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 11402, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 11413, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 11434, - "relname": "pg_opfamily", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11427, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11427, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 11466, - }, - }, - "location": 11473, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "opcfamily", - }, - }, - ], - "location": 11475, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 11409, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 11404, - }, - }, - }, - }, - "stmt_len": 159, - "stmt_location": 11329, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 11518, - "relname": "pg_opclass", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11497, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 11497, - }, - }, - }, - }, - { - "ResTarget": { - "location": 11503, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "opcintype", - }, - }, - ], - "location": 11503, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "opcintype", - }, - }, - ], - "location": 11549, - }, - }, - "location": 11559, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 11562, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 11573, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 11594, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11587, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11587, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 11622, - }, - }, - "location": 11629, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "opcintype", - }, - }, - ], - "location": 11631, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 11569, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 11564, - }, - }, - }, - }, - "stmt_len": 155, - "stmt_location": 11489, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 11675, - "relname": "pg_opclass", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11653, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 11653, - }, - }, - }, - }, - { - "ResTarget": { - "location": 11659, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "opckeytype", - }, - }, - ], - "location": 11659, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "opckeytype", - }, - }, - ], - "location": 11706, - }, - }, - "location": 11717, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 11720, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 11731, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 11752, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11745, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11745, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 11780, - }, - }, - "location": 11787, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "opckeytype", - }, - }, - ], - "location": 11789, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 11727, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 11722, - }, - }, - }, - }, - "stmt_len": 158, - "stmt_location": 11645, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 11836, - "relname": "pg_operator", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11812, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 11812, - }, - }, - }, - }, - { - "ResTarget": { - "location": 11818, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprnamespace", - }, - }, - ], - "location": 11818, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprnamespace", - }, - }, - ], - "location": 11868, - }, - }, - "location": 11881, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 11884, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 11895, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 11916, - "relname": "pg_namespace", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11909, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 11909, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 11949, - }, - }, - "location": 11956, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "oprnamespace", - }, - }, - ], - "location": 11958, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 11891, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 11886, - }, - }, - }, - }, - "stmt_len": 170, - "stmt_location": 11804, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 12003, - "relname": "pg_operator", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 11983, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 11983, - }, - }, - }, - }, - { - "ResTarget": { - "location": 11989, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprowner", - }, - }, - ], - "location": 11989, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprowner", - }, - }, - ], - "location": 12035, - }, - }, - "location": 12044, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 12047, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 12058, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 12079, - "relname": "pg_authid", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12072, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 12072, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 12109, - }, - }, - "location": 12116, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "oprowner", - }, - }, - ], - "location": 12118, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 12054, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 12049, - }, - }, - }, - }, - "stmt_len": 155, - "stmt_location": 11975, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 12158, - "relname": "pg_operator", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12139, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 12139, - }, - }, - }, - }, - { - "ResTarget": { - "location": 12145, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprleft", - }, - }, - ], - "location": 12145, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprleft", - }, - }, - ], - "location": 12190, - }, - }, - "location": 12198, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 12201, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 12212, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 12233, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12226, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 12226, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 12261, - }, - }, - "location": 12268, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "oprleft", - }, - }, - ], - "location": 12270, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 12208, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 12203, - }, - }, - }, - }, - "stmt_len": 150, - "stmt_location": 12131, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 12310, - "relname": "pg_operator", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12290, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 12290, - }, - }, - }, - }, - { - "ResTarget": { - "location": 12296, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprright", - }, - }, - ], - "location": 12296, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprright", - }, - }, - ], - "location": 12342, - }, - }, - "location": 12351, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 12354, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 12365, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 12386, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12379, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 12379, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 12414, - }, - }, - "location": 12421, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "oprright", - }, - }, - ], - "location": 12423, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 12361, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 12356, - }, - }, - }, - }, - "stmt_len": 153, - "stmt_location": 12282, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 12465, - "relname": "pg_operator", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12444, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 12444, - }, - }, - }, - }, - { - "ResTarget": { - "location": 12450, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprresult", - }, - }, - ], - "location": 12450, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprresult", - }, - }, - ], - "location": 12497, - }, - }, - "location": 12507, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 12510, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 12521, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 12542, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12535, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 12535, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 12570, - }, - }, - "location": 12577, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "oprresult", - }, - }, - ], - "location": 12579, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 12517, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 12512, - }, - }, - }, - }, - "stmt_len": 156, - "stmt_location": 12436, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 12619, - "relname": "pg_operator", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12601, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 12601, - }, - }, - }, - }, - { - "ResTarget": { - "location": 12607, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprcom", - }, - }, - ], - "location": 12607, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprcom", - }, - }, - ], - "location": 12651, - }, - }, - "location": 12658, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 12661, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 12672, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 12693, - "relname": "pg_operator", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12686, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 12686, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 12725, - }, - }, - "location": 12732, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "oprcom", - }, - }, - ], - "location": 12734, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 12668, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 12663, - }, - }, - }, - }, - "stmt_len": 151, - "stmt_location": 12593, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 12774, - "relname": "pg_operator", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12753, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 12753, - }, - }, - }, - }, - { - "ResTarget": { - "location": 12759, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprnegate", - }, - }, - ], - "location": 12759, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprnegate", - }, - }, - ], - "location": 12806, - }, - }, - "location": 12816, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 12819, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 12830, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 12851, - "relname": "pg_operator", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12844, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 12844, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 12883, - }, - }, - "location": 12890, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "oprnegate", - }, - }, - ], - "location": 12892, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 12826, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 12821, - }, - }, - }, - }, - "stmt_len": 160, - "stmt_location": 12745, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 12933, - "relname": "pg_operator", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 12914, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 12914, - }, - }, - }, - }, - { - "ResTarget": { - "location": 12920, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprcode", - }, - }, - ], - "location": 12920, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprcode", - }, - }, - ], - "location": 12965, - }, - }, - "location": 12973, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 12976, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 12987, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 13008, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13001, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 13001, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 13036, - }, - }, - "location": 13043, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "oprcode", - }, - }, - ], - "location": 13045, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 12983, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 12978, - }, - }, - }, - }, - "stmt_len": 150, - "stmt_location": 12906, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 13084, - "relname": "pg_operator", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13065, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 13065, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13071, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprrest", - }, - }, - ], - "location": 13071, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprrest", - }, - }, - ], - "location": 13116, - }, - }, - "location": 13124, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 13127, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 13138, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 13159, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13152, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 13152, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 13187, - }, - }, - "location": 13194, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "oprrest", - }, - }, - ], - "location": 13196, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 13134, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 13129, - }, - }, - }, - }, - "stmt_len": 150, - "stmt_location": 13057, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 13235, - "relname": "pg_operator", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13216, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 13216, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13222, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprjoin", - }, - }, - ], - "location": 13222, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "oprjoin", - }, - }, - ], - "location": 13267, - }, - }, - "location": 13275, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 13278, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 13289, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 13310, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13303, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 13303, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 13338, - }, - }, - "location": 13345, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "oprjoin", - }, - }, - ], - "location": 13347, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 13285, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 13280, - }, - }, - }, - }, - "stmt_len": 150, - "stmt_location": 13208, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 13388, - "relname": "pg_opfamily", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13367, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 13367, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13373, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "opfmethod", - }, - }, - ], - "location": 13373, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "opfmethod", - }, - }, - ], - "location": 13420, - }, - }, - "location": 13430, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 13433, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 13444, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 13465, - "relname": "pg_am", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13458, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 13458, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 13491, - }, - }, - "location": 13498, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "opfmethod", - }, - }, - ], - "location": 13500, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 13440, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 13435, - }, - }, - }, - }, - "stmt_len": 154, - "stmt_location": 13359, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 13546, - "relname": "pg_opfamily", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13522, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 13522, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13528, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "opfnamespace", - }, - }, - ], - "location": 13528, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "opfnamespace", - }, - }, - ], - "location": 13578, - }, - }, - "location": 13591, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 13594, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 13605, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 13626, - "relname": "pg_namespace", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13619, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 13619, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 13659, - }, - }, - "location": 13666, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "opfnamespace", - }, - }, - ], - "location": 13668, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 13601, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 13596, - }, - }, - }, - }, - "stmt_len": 170, - "stmt_location": 13514, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 13713, - "relname": "pg_opfamily", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13693, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 13693, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13699, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "opfowner", - }, - }, - ], - "location": 13699, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "opfowner", - }, - }, - ], - "location": 13745, - }, - }, - "location": 13754, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 13757, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 13768, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 13789, - "relname": "pg_authid", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13782, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 13782, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 13819, - }, - }, - "location": 13826, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "opfowner", - }, - }, - ], - "location": 13828, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 13764, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 13759, - }, - }, - }, - }, - "stmt_len": 155, - "stmt_location": 13685, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 13869, - "relname": "pg_policy", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13849, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 13849, - }, - }, - }, - }, - { - "ResTarget": { - "location": 13855, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "polrelid", - }, - }, - ], - "location": 13855, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "polrelid", - }, - }, - ], - "location": 13899, - }, - }, - "location": 13908, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 13911, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 13922, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 13943, - "relname": "pg_class", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 13936, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 13936, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 13972, - }, - }, - "location": 13979, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "polrelid", - }, - }, - ], - "location": 13981, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 13918, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 13913, - }, - }, - }, - }, - "stmt_len": 152, - "stmt_location": 13841, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 14026, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14002, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 14002, - }, - }, - }, - }, - { - "ResTarget": { - "location": 14008, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pronamespace", - }, - }, - ], - "location": 14008, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pronamespace", - }, - }, - ], - "location": 14054, - }, - }, - "location": 14067, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 14070, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 14081, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 14102, - "relname": "pg_namespace", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14095, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 14095, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 14135, - }, - }, - "location": 14142, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "pronamespace", - }, - }, - ], - "location": 14144, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 14077, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 14072, - }, - }, - }, - }, - "stmt_len": 166, - "stmt_location": 13994, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 14189, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14169, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 14169, - }, - }, - }, - }, - { - "ResTarget": { - "location": 14175, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proowner", - }, - }, - ], - "location": 14175, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proowner", - }, - }, - ], - "location": 14217, - }, - }, - "location": 14226, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 14229, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 14240, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 14261, - "relname": "pg_authid", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14254, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 14254, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 14291, - }, - }, - "location": 14298, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "proowner", - }, - }, - ], - "location": 14300, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 14236, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 14231, - }, - }, - }, - }, - "stmt_len": 151, - "stmt_location": 14161, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 14340, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14321, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 14321, - }, - }, - }, - }, - { - "ResTarget": { - "location": 14327, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "prolang", - }, - }, - ], - "location": 14327, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "prolang", - }, - }, - ], - "location": 14368, - }, - }, - "location": 14376, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 14379, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 14390, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 14411, - "relname": "pg_language", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14404, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 14404, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 14443, - }, - }, - "location": 14450, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "prolang", - }, - }, - ], - "location": 14452, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 14386, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 14381, - }, - }, - }, - }, - "stmt_len": 150, - "stmt_location": 14313, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 14495, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14472, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 14472, - }, - }, - }, - }, - { - "ResTarget": { - "location": 14478, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "provariadic", - }, - }, - ], - "location": 14478, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "provariadic", - }, - }, - ], - "location": 14523, - }, - }, - "location": 14535, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 14538, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 14549, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 14570, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14563, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 14563, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 14598, - }, - }, - "location": 14605, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "provariadic", - }, - }, - ], - "location": 14607, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 14545, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 14540, - }, - }, - }, - }, - "stmt_len": 158, - "stmt_location": 14464, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 14655, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14631, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 14631, - }, - }, - }, - }, - { - "ResTarget": { - "location": 14637, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "protransform", - }, - }, - ], - "location": 14637, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "protransform", - }, - }, - ], - "location": 14683, - }, - }, - "location": 14696, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 14699, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 14710, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 14731, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14724, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 14724, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 14759, - }, - }, - "location": 14766, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "protransform", - }, - }, - ], - "location": 14768, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 14706, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 14701, - }, - }, - }, - }, - "stmt_len": 161, - "stmt_location": 14623, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 14815, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14793, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 14793, - }, - }, - }, - }, - { - "ResTarget": { - "location": 14799, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "prorettype", - }, - }, - ], - "location": 14799, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "prorettype", - }, - }, - ], - "location": 14843, - }, - }, - "location": 14854, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 14857, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 14868, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 14889, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14882, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 14882, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 14917, - }, - }, - "location": 14924, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "prorettype", - }, - }, - ], - "location": 14926, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 14864, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 14859, - }, - }, - }, - }, - "stmt_len": 155, - "stmt_location": 14785, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 14969, - "relname": "pg_range", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 14949, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 14949, - }, - }, - }, - }, - { - "ResTarget": { - "location": 14955, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "rngtypid", - }, - }, - ], - "location": 14955, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "rngtypid", - }, - }, - ], - "location": 14998, - }, - }, - "location": 15007, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 15010, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 15021, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 15042, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15035, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 15035, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 15070, - }, - }, - "location": 15077, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "rngtypid", - }, - }, - ], - "location": 15079, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 15017, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 15012, - }, - }, - }, - }, - "stmt_len": 150, - "stmt_location": 14941, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 15122, - "relname": "pg_range", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15100, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 15100, - }, - }, - }, - }, - { - "ResTarget": { - "location": 15106, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "rngsubtype", - }, - }, - ], - "location": 15106, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "rngsubtype", - }, - }, - ], - "location": 15151, - }, - }, - "location": 15162, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 15165, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 15176, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 15197, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15190, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 15190, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 15225, - }, - }, - "location": 15232, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "rngsubtype", - }, - }, - ], - "location": 15234, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 15172, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 15167, - }, - }, - }, - }, - "stmt_len": 156, - "stmt_location": 15092, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 15281, - "relname": "pg_range", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15257, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 15257, - }, - }, - }, - }, - { - "ResTarget": { - "location": 15263, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "rngcollation", - }, - }, - ], - "location": 15263, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "rngcollation", - }, - }, - ], - "location": 15310, - }, - }, - "location": 15323, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 15326, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 15337, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 15358, - "relname": "pg_collation", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15351, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 15351, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 15391, - }, - }, - "location": 15398, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "rngcollation", - }, - }, - ], - "location": 15400, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 15333, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 15328, - }, - }, - }, - }, - "stmt_len": 167, - "stmt_location": 15249, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 15446, - "relname": "pg_range", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15425, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 15425, - }, - }, - }, - }, - { - "ResTarget": { - "location": 15431, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "rngsubopc", - }, - }, - ], - "location": 15431, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "rngsubopc", - }, - }, - ], - "location": 15475, - }, - }, - "location": 15485, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 15488, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 15499, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 15520, - "relname": "pg_opclass", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15513, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 15513, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 15551, - }, - }, - "location": 15558, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "rngsubopc", - }, - }, - ], - "location": 15560, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 15495, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 15490, - }, - }, - }, - }, - "stmt_len": 156, - "stmt_location": 15417, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 15606, - "relname": "pg_range", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15582, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 15582, - }, - }, - }, - }, - { - "ResTarget": { - "location": 15588, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "rngcanonical", - }, - }, - ], - "location": 15588, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "rngcanonical", - }, - }, - ], - "location": 15635, - }, - }, - "location": 15648, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 15651, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 15662, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 15683, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15676, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 15676, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 15711, - }, - }, - "location": 15718, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "rngcanonical", - }, - }, - ], - "location": 15720, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 15658, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 15653, - }, - }, - }, - }, - "stmt_len": 162, - "stmt_location": 15574, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 15767, - "relname": "pg_range", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15745, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 15745, - }, - }, - }, - }, - { - "ResTarget": { - "location": 15751, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "rngsubdiff", - }, - }, - ], - "location": 15751, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "rngsubdiff", - }, - }, - ], - "location": 15796, - }, - }, - "location": 15807, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 15810, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 15821, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 15842, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15835, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 15835, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 15870, - }, - }, - "location": 15877, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "rngsubdiff", - }, - }, - ], - "location": 15879, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 15817, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 15812, - }, - }, - }, - }, - "stmt_len": 156, - "stmt_location": 15737, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 15922, - "relname": "pg_rewrite", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15902, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 15902, - }, - }, - }, - }, - { - "ResTarget": { - "location": 15908, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ev_class", - }, - }, - ], - "location": 15908, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ev_class", - }, - }, - ], - "location": 15953, - }, - }, - "location": 15962, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 15965, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 15976, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 15997, - "relname": "pg_class", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 15990, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 15990, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 16026, - }, - }, - "location": 16033, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "ev_class", - }, - }, - ], - "location": 16035, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 15972, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 15967, - }, - }, - }, - }, - "stmt_len": 153, - "stmt_location": 15894, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 16078, - "relname": "pg_shdepend", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16056, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 16056, - }, - }, - }, - }, - { - "ResTarget": { - "location": 16062, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "refclassid", - }, - }, - ], - "location": 16062, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "refclassid", - }, - }, - ], - "location": 16110, - }, - }, - "location": 16121, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 16124, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 16135, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 16156, - "relname": "pg_class", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16149, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 16149, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 16185, - }, - }, - "location": 16192, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "refclassid", - }, - }, - ], - "location": 16194, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 16131, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 16126, - }, - }, - }, - }, - "stmt_len": 160, - "stmt_location": 16048, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 16237, - "relname": "pg_shdescription", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16217, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 16217, - }, - }, - }, - }, - { - "ResTarget": { - "location": 16223, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "classoid", - }, - }, - ], - "location": 16223, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "classoid", - }, - }, - ], - "location": 16274, - }, - }, - "location": 16283, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 16286, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 16297, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 16318, - "relname": "pg_class", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16311, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 16311, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 16347, - }, - }, - "location": 16354, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "classoid", - }, - }, - ], - "location": 16356, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 16293, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 16288, - }, - }, - }, - }, - "stmt_len": 159, - "stmt_location": 16209, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 16397, - "relname": "pg_statistic", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16377, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 16377, - }, - }, - }, - }, - { - "ResTarget": { - "location": 16383, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "starelid", - }, - }, - ], - "location": 16383, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "starelid", - }, - }, - ], - "location": 16430, - }, - }, - "location": 16439, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 16442, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 16453, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 16474, - "relname": "pg_class", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16467, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 16467, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 16503, - }, - }, - "location": 16510, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "starelid", - }, - }, - ], - "location": 16512, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 16449, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 16444, - }, - }, - }, - }, - "stmt_len": 155, - "stmt_location": 16369, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 16551, - "relname": "pg_statistic", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16533, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 16533, - }, - }, - }, - }, - { - "ResTarget": { - "location": 16539, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "staop1", - }, - }, - ], - "location": 16539, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "staop1", - }, - }, - ], - "location": 16584, - }, - }, - "location": 16591, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 16594, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 16605, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 16626, - "relname": "pg_operator", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16619, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 16619, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 16658, - }, - }, - "location": 16665, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "staop1", - }, - }, - ], - "location": 16667, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 16601, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 16596, - }, - }, - }, - }, - "stmt_len": 152, - "stmt_location": 16525, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 16704, - "relname": "pg_statistic", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16686, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 16686, - }, - }, - }, - }, - { - "ResTarget": { - "location": 16692, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "staop2", - }, - }, - ], - "location": 16692, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "staop2", - }, - }, - ], - "location": 16737, - }, - }, - "location": 16744, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 16747, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 16758, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 16779, - "relname": "pg_operator", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16772, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 16772, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 16811, - }, - }, - "location": 16818, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "staop2", - }, - }, - ], - "location": 16820, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 16754, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 16749, - }, - }, - }, - }, - "stmt_len": 152, - "stmt_location": 16678, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 16857, - "relname": "pg_statistic", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16839, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 16839, - }, - }, - }, - }, - { - "ResTarget": { - "location": 16845, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "staop3", - }, - }, - ], - "location": 16845, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "staop3", - }, - }, - ], - "location": 16890, - }, - }, - "location": 16897, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 16900, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 16911, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 16932, - "relname": "pg_operator", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16925, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 16925, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 16964, - }, - }, - "location": 16971, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "staop3", - }, - }, - ], - "location": 16973, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 16907, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 16902, - }, - }, - }, - }, - "stmt_len": 152, - "stmt_location": 16831, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 17010, - "relname": "pg_statistic", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 16992, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 16992, - }, - }, - }, - }, - { - "ResTarget": { - "location": 16998, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "staop4", - }, - }, - ], - "location": 16998, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "staop4", - }, - }, - ], - "location": 17043, - }, - }, - "location": 17050, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 17053, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 17064, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 17085, - "relname": "pg_operator", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17078, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 17078, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 17117, - }, - }, - "location": 17124, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "staop4", - }, - }, - ], - "location": 17126, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 17060, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 17055, - }, - }, - }, - }, - "stmt_len": 152, - "stmt_location": 16984, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 17163, - "relname": "pg_statistic", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17145, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 17145, - }, - }, - }, - }, - { - "ResTarget": { - "location": 17151, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "staop5", - }, - }, - ], - "location": 17151, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "staop5", - }, - }, - ], - "location": 17196, - }, - }, - "location": 17203, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 17206, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 17217, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 17238, - "relname": "pg_operator", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17231, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 17231, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 17270, - }, - }, - "location": 17277, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "staop5", - }, - }, - ], - "location": 17279, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 17213, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 17208, - }, - }, - }, - }, - "stmt_len": 152, - "stmt_location": 17137, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 17318, - "relname": "pg_tablespace", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17298, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 17298, - }, - }, - }, - }, - { - "ResTarget": { - "location": 17304, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "spcowner", - }, - }, - ], - "location": 17304, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "spcowner", - }, - }, - ], - "location": 17352, - }, - }, - "location": 17361, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 17364, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 17375, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 17396, - "relname": "pg_authid", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17389, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 17389, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 17426, - }, - }, - "location": 17433, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "spcowner", - }, - }, - ], - "location": 17435, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 17371, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 17366, - }, - }, - }, - }, - "stmt_len": 157, - "stmt_location": 17290, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 17475, - "relname": "pg_transform", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17456, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 17456, - }, - }, - }, - }, - { - "ResTarget": { - "location": 17462, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "trftype", - }, - }, - ], - "location": 17462, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "trftype", - }, - }, - ], - "location": 17508, - }, - }, - "location": 17516, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 17519, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 17530, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 17551, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17544, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 17544, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 17579, - }, - }, - "location": 17586, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "trftype", - }, - }, - ], - "location": 17588, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 17526, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 17521, - }, - }, - }, - }, - "stmt_len": 151, - "stmt_location": 17448, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 17627, - "relname": "pg_transform", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17608, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 17608, - }, - }, - }, - }, - { - "ResTarget": { - "location": 17614, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "trflang", - }, - }, - ], - "location": 17614, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "trflang", - }, - }, - ], - "location": 17660, - }, - }, - "location": 17668, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 17671, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 17682, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 17703, - "relname": "pg_language", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17696, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 17696, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 17735, - }, - }, - "location": 17742, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "trflang", - }, - }, - ], - "location": 17744, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 17678, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 17673, - }, - }, - }, - }, - "stmt_len": 155, - "stmt_location": 17600, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 17786, - "relname": "pg_transform", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17764, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 17764, - }, - }, - }, - }, - { - "ResTarget": { - "location": 17770, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "trffromsql", - }, - }, - ], - "location": 17770, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "trffromsql", - }, - }, - ], - "location": 17819, - }, - }, - "location": 17830, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 17833, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 17844, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 17865, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17858, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 17858, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 17893, - }, - }, - "location": 17900, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "trffromsql", - }, - }, - ], - "location": 17902, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 17840, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 17835, - }, - }, - }, - }, - "stmt_len": 160, - "stmt_location": 17756, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 17945, - "relname": "pg_transform", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 17925, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 17925, - }, - }, - }, - }, - { - "ResTarget": { - "location": 17931, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "trftosql", - }, - }, - ], - "location": 17931, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "trftosql", - }, - }, - ], - "location": 17978, - }, - }, - "location": 17987, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 17990, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 18001, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 18022, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18015, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18015, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 18050, - }, - }, - "location": 18057, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "trftosql", - }, - }, - ], - "location": 18059, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 17997, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 17992, - }, - }, - }, - }, - "stmt_len": 154, - "stmt_location": 17917, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 18099, - "relname": "pg_trigger", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18080, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 18080, - }, - }, - }, - }, - { - "ResTarget": { - "location": 18086, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tgrelid", - }, - }, - ], - "location": 18086, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tgrelid", - }, - }, - ], - "location": 18130, - }, - }, - "location": 18138, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 18141, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 18152, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 18173, - "relname": "pg_class", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18166, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18166, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 18202, - }, - }, - "location": 18209, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "tgrelid", - }, - }, - ], - "location": 18211, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 18148, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 18143, - }, - }, - }, - }, - "stmt_len": 150, - "stmt_location": 18072, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 18249, - "relname": "pg_trigger", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18231, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 18231, - }, - }, - }, - }, - { - "ResTarget": { - "location": 18237, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tgfoid", - }, - }, - ], - "location": 18237, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tgfoid", - }, - }, - ], - "location": 18280, - }, - }, - "location": 18287, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 18290, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 18301, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 18322, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18315, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18315, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 18350, - }, - }, - "location": 18357, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "tgfoid", - }, - }, - ], - "location": 18359, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 18297, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 18292, - }, - }, - }, - }, - "stmt_len": 146, - "stmt_location": 18223, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 18403, - "relname": "pg_trigger", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18378, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 18378, - }, - }, - }, - }, - { - "ResTarget": { - "location": 18384, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tgconstrrelid", - }, - }, - ], - "location": 18384, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tgconstrrelid", - }, - }, - ], - "location": 18434, - }, - }, - "location": 18448, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 18451, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 18462, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 18483, - "relname": "pg_class", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18476, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18476, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 18512, - }, - }, - "location": 18519, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "tgconstrrelid", - }, - }, - ], - "location": 18521, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 18458, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 18453, - }, - }, - }, - }, - "stmt_len": 168, - "stmt_location": 18370, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 18572, - "relname": "pg_trigger", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18547, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 18547, - }, - }, - }, - }, - { - "ResTarget": { - "location": 18553, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tgconstrindid", - }, - }, - ], - "location": 18553, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tgconstrindid", - }, - }, - ], - "location": 18603, - }, - }, - "location": 18617, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 18620, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 18631, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 18652, - "relname": "pg_class", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18645, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18645, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 18681, - }, - }, - "location": 18688, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "tgconstrindid", - }, - }, - ], - "location": 18690, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 18627, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 18622, - }, - }, - }, - }, - "stmt_len": 168, - "stmt_location": 18539, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 18740, - "relname": "pg_trigger", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18716, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 18716, - }, - }, - }, - }, - { - "ResTarget": { - "location": 18722, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tgconstraint", - }, - }, - ], - "location": 18722, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tgconstraint", - }, - }, - ], - "location": 18771, - }, - }, - "location": 18784, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 18787, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 18798, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 18819, - "relname": "pg_constraint", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18812, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18812, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 18853, - }, - }, - "location": 18860, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "tgconstraint", - }, - }, - ], - "location": 18862, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 18794, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 18789, - }, - }, - }, - }, - "stmt_len": 170, - "stmt_location": 18708, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 18911, - "relname": "pg_ts_config", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18887, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 18887, - }, - }, - }, - }, - { - "ResTarget": { - "location": 18893, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "cfgnamespace", - }, - }, - ], - "location": 18893, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "cfgnamespace", - }, - }, - ], - "location": 18944, - }, - }, - "location": 18957, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 18960, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 18971, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 18992, - "relname": "pg_namespace", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 18985, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 18985, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 19025, - }, - }, - "location": 19032, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "cfgnamespace", - }, - }, - ], - "location": 19034, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 18967, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 18962, - }, - }, - }, - }, - "stmt_len": 171, - "stmt_location": 18879, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 19079, - "relname": "pg_ts_config", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 19059, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 19059, - }, - }, - }, - }, - { - "ResTarget": { - "location": 19065, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "cfgowner", - }, - }, - ], - "location": 19065, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "cfgowner", - }, - }, - ], - "location": 19112, - }, - }, - "location": 19121, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 19124, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 19135, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 19156, - "relname": "pg_authid", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 19149, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 19149, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 19186, - }, - }, - "location": 19193, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "cfgowner", - }, - }, - ], - "location": 19195, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 19131, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 19126, - }, - }, - }, - }, - "stmt_len": 156, - "stmt_location": 19051, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 19237, - "relname": "pg_ts_config", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 19216, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 19216, - }, - }, - }, - }, - { - "ResTarget": { - "location": 19222, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "cfgparser", - }, - }, - ], - "location": 19222, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "cfgparser", - }, - }, - ], - "location": 19270, - }, - }, - "location": 19280, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 19283, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 19294, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 19315, - "relname": "pg_ts_parser", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 19308, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 19308, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 19348, - }, - }, - "location": 19355, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "cfgparser", - }, - }, - ], - "location": 19357, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 19290, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 19285, - }, - }, - }, - }, - "stmt_len": 162, - "stmt_location": 19208, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 19397, - "relname": "pg_ts_config_map", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 19379, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 19379, - }, - }, - }, - }, - { - "ResTarget": { - "location": 19385, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "mapcfg", - }, - }, - ], - "location": 19385, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "mapcfg", - }, - }, - ], - "location": 19434, - }, - }, - "location": 19441, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 19444, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 19455, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 19476, - "relname": "pg_ts_config", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 19469, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 19469, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 19509, - }, - }, - "location": 19516, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "mapcfg", - }, - }, - ], - "location": 19518, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 19451, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 19446, - }, - }, - }, - }, - "stmt_len": 157, - "stmt_location": 19371, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 19556, - "relname": "pg_ts_config_map", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 19537, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 19537, - }, - }, - }, - }, - { - "ResTarget": { - "location": 19543, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "mapdict", - }, - }, - ], - "location": 19543, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "mapdict", - }, - }, - ], - "location": 19593, - }, - }, - "location": 19601, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 19604, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 19615, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 19636, - "relname": "pg_ts_dict", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 19629, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 19629, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 19667, - }, - }, - "location": 19674, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "mapdict", - }, - }, - ], - "location": 19676, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 19611, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 19606, - }, - }, - }, - }, - "stmt_len": 158, - "stmt_location": 19529, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 19721, - "relname": "pg_ts_dict", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 19696, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 19696, - }, - }, - }, - }, - { - "ResTarget": { - "location": 19702, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "dictnamespace", - }, - }, - ], - "location": 19702, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "dictnamespace", - }, - }, - ], - "location": 19752, - }, - }, - "location": 19766, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 19769, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 19780, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 19801, - "relname": "pg_namespace", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 19794, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 19794, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 19834, - }, - }, - "location": 19841, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "dictnamespace", - }, - }, - ], - "location": 19843, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 19776, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 19771, - }, - }, - }, - }, - "stmt_len": 172, - "stmt_location": 19688, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 19890, - "relname": "pg_ts_dict", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 19869, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 19869, - }, - }, - }, - }, - { - "ResTarget": { - "location": 19875, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "dictowner", - }, - }, - ], - "location": 19875, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "dictowner", - }, - }, - ], - "location": 19921, - }, - }, - "location": 19931, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 19934, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 19945, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 19966, - "relname": "pg_authid", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 19959, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 19959, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 19996, - }, - }, - "location": 20003, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "dictowner", - }, - }, - ], - "location": 20005, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 19941, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 19936, - }, - }, - }, - }, - "stmt_len": 157, - "stmt_location": 19861, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 20051, - "relname": "pg_ts_dict", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 20027, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 20027, - }, - }, - }, - }, - { - "ResTarget": { - "location": 20033, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "dicttemplate", - }, - }, - ], - "location": 20033, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "dicttemplate", - }, - }, - ], - "location": 20082, - }, - }, - "location": 20095, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 20098, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 20109, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 20130, - "relname": "pg_ts_template", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 20123, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 20123, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 20165, - }, - }, - "location": 20172, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "dicttemplate", - }, - }, - ], - "location": 20174, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 20105, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 20100, - }, - }, - }, - }, - "stmt_len": 171, - "stmt_location": 20019, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 20223, - "relname": "pg_ts_parser", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 20199, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 20199, - }, - }, - }, - }, - { - "ResTarget": { - "location": 20205, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "prsnamespace", - }, - }, - ], - "location": 20205, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "prsnamespace", - }, - }, - ], - "location": 20256, - }, - }, - "location": 20269, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 20272, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 20283, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 20304, - "relname": "pg_namespace", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 20297, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 20297, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 20337, - }, - }, - "location": 20344, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "prsnamespace", - }, - }, - ], - "location": 20346, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 20279, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 20274, - }, - }, - }, - }, - "stmt_len": 171, - "stmt_location": 20191, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 20391, - "relname": "pg_ts_parser", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 20371, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 20371, - }, - }, - }, - }, - { - "ResTarget": { - "location": 20377, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "prsstart", - }, - }, - ], - "location": 20377, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "prsstart", - }, - }, - ], - "location": 20424, - }, - }, - "location": 20433, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 20436, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 20447, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 20468, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 20461, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 20461, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 20496, - }, - }, - "location": 20503, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "prsstart", - }, - }, - ], - "location": 20505, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 20443, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 20438, - }, - }, - }, - }, - "stmt_len": 154, - "stmt_location": 20363, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 20546, - "relname": "pg_ts_parser", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 20526, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 20526, - }, - }, - }, - }, - { - "ResTarget": { - "location": 20532, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "prstoken", - }, - }, - ], - "location": 20532, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "prstoken", - }, - }, - ], - "location": 20579, - }, - }, - "location": 20588, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 20591, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 20602, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 20623, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 20616, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 20616, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 20651, - }, - }, - "location": 20658, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "prstoken", - }, - }, - ], - "location": 20660, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 20598, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 20593, - }, - }, - }, - }, - "stmt_len": 154, - "stmt_location": 20518, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 20699, - "relname": "pg_ts_parser", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 20681, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 20681, - }, - }, - }, - }, - { - "ResTarget": { - "location": 20687, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "prsend", - }, - }, - ], - "location": 20687, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "prsend", - }, - }, - ], - "location": 20732, - }, - }, - "location": 20739, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 20742, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 20753, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 20774, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 20767, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 20767, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 20802, - }, - }, - "location": 20809, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "prsend", - }, - }, - ], - "location": 20811, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 20749, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 20744, - }, - }, - }, - }, - "stmt_len": 148, - "stmt_location": 20673, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 20853, - "relname": "pg_ts_parser", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 20830, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 20830, - }, - }, - }, - }, - { - "ResTarget": { - "location": 20836, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "prsheadline", - }, - }, - ], - "location": 20836, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "prsheadline", - }, - }, - ], - "location": 20886, - }, - }, - "location": 20898, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 20901, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 20912, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 20933, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 20926, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 20926, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 20961, - }, - }, - "location": 20968, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "prsheadline", - }, - }, - ], - "location": 20970, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 20908, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 20903, - }, - }, - }, - }, - "stmt_len": 163, - "stmt_location": 20822, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 21016, - "relname": "pg_ts_parser", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 20994, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 20994, - }, - }, - }, - }, - { - "ResTarget": { - "location": 21000, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "prslextype", - }, - }, - ], - "location": 21000, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "prslextype", - }, - }, - ], - "location": 21049, - }, - }, - "location": 21060, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 21063, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 21074, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 21095, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 21088, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 21088, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 21123, - }, - }, - "location": 21130, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "prslextype", - }, - }, - ], - "location": 21132, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 21070, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 21065, - }, - }, - }, - }, - "stmt_len": 160, - "stmt_location": 20986, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 21180, - "relname": "pg_ts_template", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 21155, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 21155, - }, - }, - }, - }, - { - "ResTarget": { - "location": 21161, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tmplnamespace", - }, - }, - ], - "location": 21161, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tmplnamespace", - }, - }, - ], - "location": 21215, - }, - }, - "location": 21229, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 21232, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 21243, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 21264, - "relname": "pg_namespace", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 21257, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 21257, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 21297, - }, - }, - "location": 21304, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "tmplnamespace", - }, - }, - ], - "location": 21306, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 21239, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 21234, - }, - }, - }, - }, - "stmt_len": 176, - "stmt_location": 21147, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 21352, - "relname": "pg_ts_template", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 21332, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 21332, - }, - }, - }, - }, - { - "ResTarget": { - "location": 21338, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tmplinit", - }, - }, - ], - "location": 21338, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tmplinit", - }, - }, - ], - "location": 21387, - }, - }, - "location": 21396, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 21399, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 21410, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 21431, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 21424, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 21424, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 21459, - }, - }, - "location": 21466, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "tmplinit", - }, - }, - ], - "location": 21468, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 21406, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 21401, - }, - }, - }, - }, - "stmt_len": 156, - "stmt_location": 21324, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 21511, - "relname": "pg_ts_template", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 21489, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 21489, - }, - }, - }, - }, - { - "ResTarget": { - "location": 21495, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tmpllexize", - }, - }, - ], - "location": 21495, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "tmpllexize", - }, - }, - ], - "location": 21546, - }, - }, - "location": 21557, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 21560, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 21571, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 21592, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 21585, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 21585, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 21620, - }, - }, - "location": 21627, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "tmpllexize", - }, - }, - ], - "location": 21629, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 21567, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 21562, - }, - }, - }, - }, - "stmt_len": 162, - "stmt_location": 21481, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 21676, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 21652, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 21652, - }, - }, - }, - }, - { - "ResTarget": { - "location": 21658, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typnamespace", - }, - }, - ], - "location": 21658, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typnamespace", - }, - }, - ], - "location": 21704, - }, - }, - "location": 21717, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 21720, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 21731, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 21752, - "relname": "pg_namespace", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 21745, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 21745, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 21785, - }, - }, - "location": 21792, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "typnamespace", - }, - }, - ], - "location": 21794, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 21727, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 21722, - }, - }, - }, - }, - "stmt_len": 166, - "stmt_location": 21644, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 21839, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 21819, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 21819, - }, - }, - }, - }, - { - "ResTarget": { - "location": 21825, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typowner", - }, - }, - ], - "location": 21825, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typowner", - }, - }, - ], - "location": 21867, - }, - }, - "location": 21876, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 21879, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 21890, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 21911, - "relname": "pg_authid", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 21904, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 21904, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 21941, - }, - }, - "location": 21948, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "typowner", - }, - }, - ], - "location": 21950, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 21886, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 21881, - }, - }, - }, - }, - "stmt_len": 151, - "stmt_location": 21811, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 21991, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 21971, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 21971, - }, - }, - }, - }, - { - "ResTarget": { - "location": 21977, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typrelid", - }, - }, - ], - "location": 21977, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typrelid", - }, - }, - ], - "location": 22019, - }, - }, - "location": 22028, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 22031, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 22042, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 22063, - "relname": "pg_class", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 22056, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 22056, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 22092, - }, - }, - "location": 22099, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "typrelid", - }, - }, - ], - "location": 22101, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 22038, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 22033, - }, - }, - }, - }, - "stmt_len": 150, - "stmt_location": 21963, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 22141, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 22122, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 22122, - }, - }, - }, - }, - { - "ResTarget": { - "location": 22128, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typelem", - }, - }, - ], - "location": 22128, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typelem", - }, - }, - ], - "location": 22169, - }, - }, - "location": 22177, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 22180, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 22191, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 22212, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 22205, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 22205, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 22240, - }, - }, - "location": 22247, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "typelem", - }, - }, - ], - "location": 22249, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 22187, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 22182, - }, - }, - }, - }, - "stmt_len": 146, - "stmt_location": 22114, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 22289, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 22269, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 22269, - }, - }, - }, - }, - { - "ResTarget": { - "location": 22275, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typarray", - }, - }, - ], - "location": 22275, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typarray", - }, - }, - ], - "location": 22317, - }, - }, - "location": 22326, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 22329, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 22340, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 22361, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 22354, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 22354, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 22389, - }, - }, - "location": 22396, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "typarray", - }, - }, - ], - "location": 22398, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 22336, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 22331, - }, - }, - }, - }, - "stmt_len": 149, - "stmt_location": 22261, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 22439, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 22419, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 22419, - }, - }, - }, - }, - { - "ResTarget": { - "location": 22425, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typinput", - }, - }, - ], - "location": 22425, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typinput", - }, - }, - ], - "location": 22467, - }, - }, - "location": 22476, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 22479, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 22490, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 22511, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 22504, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 22504, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 22539, - }, - }, - "location": 22546, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "typinput", - }, - }, - ], - "location": 22548, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 22486, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 22481, - }, - }, - }, - }, - "stmt_len": 149, - "stmt_location": 22411, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 22590, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 22569, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 22569, - }, - }, - }, - }, - { - "ResTarget": { - "location": 22575, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typoutput", - }, - }, - ], - "location": 22575, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typoutput", - }, - }, - ], - "location": 22618, - }, - }, - "location": 22628, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 22631, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 22642, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 22663, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 22656, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 22656, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 22691, - }, - }, - "location": 22698, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "typoutput", - }, - }, - ], - "location": 22700, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 22638, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 22633, - }, - }, - }, - }, - "stmt_len": 152, - "stmt_location": 22561, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 22744, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 22722, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 22722, - }, - }, - }, - }, - { - "ResTarget": { - "location": 22728, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typreceive", - }, - }, - ], - "location": 22728, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typreceive", - }, - }, - ], - "location": 22772, - }, - }, - "location": 22783, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 22786, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 22797, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 22818, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 22811, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 22811, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 22846, - }, - }, - "location": 22853, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "typreceive", - }, - }, - ], - "location": 22855, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 22793, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 22788, - }, - }, - }, - }, - "stmt_len": 155, - "stmt_location": 22714, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 22897, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 22878, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 22878, - }, - }, - }, - }, - { - "ResTarget": { - "location": 22884, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typsend", - }, - }, - ], - "location": 22884, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typsend", - }, - }, - ], - "location": 22925, - }, - }, - "location": 22933, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 22936, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 22947, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 22968, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 22961, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 22961, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 22996, - }, - }, - "location": 23003, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "typsend", - }, - }, - ], - "location": 23005, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 22943, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 22938, - }, - }, - }, - }, - "stmt_len": 146, - "stmt_location": 22870, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 23045, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 23025, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 23025, - }, - }, - }, - }, - { - "ResTarget": { - "location": 23031, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typmodin", - }, - }, - ], - "location": 23031, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typmodin", - }, - }, - ], - "location": 23073, - }, - }, - "location": 23082, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 23085, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 23096, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 23117, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 23110, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 23110, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 23145, - }, - }, - "location": 23152, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "typmodin", - }, - }, - ], - "location": 23154, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 23092, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 23087, - }, - }, - }, - }, - "stmt_len": 149, - "stmt_location": 23017, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 23196, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 23175, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 23175, - }, - }, - }, - }, - { - "ResTarget": { - "location": 23181, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typmodout", - }, - }, - ], - "location": 23181, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typmodout", - }, - }, - ], - "location": 23224, - }, - }, - "location": 23234, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 23237, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 23248, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 23269, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 23262, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 23262, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 23297, - }, - }, - "location": 23304, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "typmodout", - }, - }, - ], - "location": 23306, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 23244, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 23239, - }, - }, - }, - }, - "stmt_len": 152, - "stmt_location": 23167, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 23350, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 23328, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 23328, - }, - }, - }, - }, - { - "ResTarget": { - "location": 23334, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typanalyze", - }, - }, - ], - "location": 23334, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typanalyze", - }, - }, - ], - "location": 23378, - }, - }, - "location": 23389, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 23392, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 23403, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 23424, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 23417, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 23417, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 23452, - }, - }, - "location": 23459, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "typanalyze", - }, - }, - ], - "location": 23461, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 23399, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 23394, - }, - }, - }, - }, - "stmt_len": 155, - "stmt_location": 23320, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 23507, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 23484, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 23484, - }, - }, - }, - }, - { - "ResTarget": { - "location": 23490, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typbasetype", - }, - }, - ], - "location": 23490, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typbasetype", - }, - }, - ], - "location": 23535, - }, - }, - "location": 23547, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 23550, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 23561, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 23582, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 23575, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 23575, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 23610, - }, - }, - "location": 23617, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "typbasetype", - }, - }, - ], - "location": 23619, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 23557, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 23552, - }, - }, - }, - }, - "stmt_len": 158, - "stmt_location": 23476, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "fk", - }, - "inh": true, - "location": 23667, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 23643, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 23643, - }, - }, - }, - }, - { - "ResTarget": { - "location": 23649, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typcollation", - }, - }, - ], - "location": 23649, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "typcollation", - }, - }, - ], - "location": 23695, - }, - }, - "location": 23708, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 23711, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 23722, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 23743, - "relname": "pg_collation", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 23736, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 23736, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 23776, - }, - }, - "location": 23783, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "typcollation", - }, - }, - ], - "location": 23785, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 23718, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 23713, - }, - }, - }, - }, - "stmt_len": 166, - "stmt_location": 23635, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "fk", - }, - "subquery": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 23881, - "relname": "pg_constraint", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 23839, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 23839, - }, - }, - }, - }, - { - "ResTarget": { - "location": 23845, - "name": "conpfeqop", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "conpfeqop", - }, - }, - ], - "location": 23852, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "unnest", - }, - }, - ], - "location": 23845, - }, - }, - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 23810, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 23810, - }, - }, - }, - }, - { - "ResTarget": { - "location": 23816, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "conpfeqop", - }, - }, - ], - "location": 23816, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "conpfeqop", - }, - }, - ], - "location": 23916, - }, - }, - "location": 23926, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 23929, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 23940, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 23961, - "relname": "pg_operator", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 23954, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 23954, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 23993, - }, - }, - "location": 24000, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "conpfeqop", - }, - }, - ], - "location": 24002, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 23936, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 23931, - }, - }, - }, - }, - "stmt_len": 213, - "stmt_location": 23802, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "fk", - }, - "subquery": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 24095, - "relname": "pg_constraint", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 24053, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 24053, - }, - }, - }, - }, - { - "ResTarget": { - "location": 24059, - "name": "conppeqop", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "conppeqop", - }, - }, - ], - "location": 24066, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "unnest", - }, - }, - ], - "location": 24059, - }, - }, - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 24024, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 24024, - }, - }, - }, - }, - { - "ResTarget": { - "location": 24030, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "conppeqop", - }, - }, - ], - "location": 24030, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "conppeqop", - }, - }, - ], - "location": 24130, - }, - }, - "location": 24140, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 24143, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 24154, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 24175, - "relname": "pg_operator", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 24168, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 24168, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 24207, - }, - }, - "location": 24214, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "conppeqop", - }, - }, - ], - "location": 24216, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 24150, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 24145, - }, - }, - }, - }, - "stmt_len": 213, - "stmt_location": 24016, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "fk", - }, - "subquery": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 24309, - "relname": "pg_constraint", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 24267, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 24267, - }, - }, - }, - }, - { - "ResTarget": { - "location": 24273, - "name": "conffeqop", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "conffeqop", - }, - }, - ], - "location": 24280, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "unnest", - }, - }, - ], - "location": 24273, - }, - }, - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 24238, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 24238, - }, - }, - }, - }, - { - "ResTarget": { - "location": 24244, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "conffeqop", - }, - }, - ], - "location": 24244, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "conffeqop", - }, - }, - ], - "location": 24344, - }, - }, - "location": 24354, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 24357, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 24368, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 24389, - "relname": "pg_operator", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 24382, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 24382, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 24421, - }, - }, - "location": 24428, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "conffeqop", - }, - }, - ], - "location": 24430, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 24364, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 24359, - }, - }, - }, - }, - "stmt_len": 213, - "stmt_location": 24230, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "fk", - }, - "subquery": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 24523, - "relname": "pg_constraint", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 24481, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 24481, - }, - }, - }, - }, - { - "ResTarget": { - "location": 24487, - "name": "conexclop", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "conexclop", - }, - }, - ], - "location": 24494, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "unnest", - }, - }, - ], - "location": 24487, - }, - }, - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 24452, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 24452, - }, - }, - }, - }, - { - "ResTarget": { - "location": 24458, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "conexclop", - }, - }, - ], - "location": 24458, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "conexclop", - }, - }, - ], - "location": 24558, - }, - }, - "location": 24568, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 24571, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 24582, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 24603, - "relname": "pg_operator", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 24596, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 24596, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 24635, - }, - }, - "location": 24642, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "conexclop", - }, - }, - ], - "location": 24644, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 24578, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 24573, - }, - }, - }, - }, - "stmt_len": 213, - "stmt_location": 24444, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeSubselect": { - "alias": { - "aliasname": "fk", - }, - "subquery": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 24752, - "relname": "pg_proc", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 24700, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 24700, - }, - }, - }, - }, - { - "ResTarget": { - "location": 24706, - "name": "proallargtypes", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proallargtypes", - }, - }, - ], - "location": 24713, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "unnest", - }, - }, - ], - "location": 24706, - }, - }, - }, - }, - ], - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 24666, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ctid", - }, - }, - ], - "location": 24666, - }, - }, - }, - }, - { - "ResTarget": { - "location": 24672, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proallargtypes", - }, - }, - ], - "location": 24672, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "proallargtypes", - }, - }, - ], - "location": 24781, - }, - }, - "location": 24796, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 24799, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "SubLink": { - "location": 24810, - "subLinkType": "EXISTS_SUBLINK", - "subselect": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "pk", - }, - "inh": true, - "location": 24831, - "relname": "pg_type", - "relpersistence": "p", - "schemaname": "pg_catalog", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 24824, - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 24824, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "pk", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 24859, - }, - }, - "location": 24866, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "fk", - }, - }, - { - "String": { - "sval": "proallargtypes", - }, - }, - ], - "location": 24868, - }, - }, - }, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 24806, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 24801, - }, - }, - }, - }, - "stmt_len": 228, - "stmt_location": 24658, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/path.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 52, - "relname": "path_tbl", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 62, - "typeName": { - "location": 65, - "names": [ - { - "String": { - "sval": "path", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 70, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 85, - "relname": "path_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 102, - "sval": { - "sval": "[(1,2),(3,4)]", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 47, - "stmt_location": 71, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 133, - "relname": "path_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 150, - "sval": { - "sval": "((1,2),(3,4))", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 47, - "stmt_location": 119, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 181, - "relname": "path_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 198, - "sval": { - "sval": "[(0,0),(3,0),(4,5),(1,6)]", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 167, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 241, - "relname": "path_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 258, - "sval": { - "sval": "((1,2),(3,4))", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 47, - "stmt_location": 227, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 289, - "relname": "path_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 306, - "sval": { - "sval": "1,2 ,3,4", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 275, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 332, - "relname": "path_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 349, - "sval": { - "sval": "[1,2,3, 4]", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 44, - "stmt_location": 318, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 377, - "relname": "path_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 394, - "sval": { - "sval": "[11,12,13,14]", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 47, - "stmt_location": 363, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 425, - "relname": "path_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 442, - "sval": { - "sval": "(11,12,13,14)", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 47, - "stmt_location": 411, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 506, - "relname": "path_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 523, - "sval": { - "sval": "[(,2),(3,4)]", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 79, - "stmt_location": 459, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 553, - "relname": "path_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 570, - "sval": { - "sval": "[(1,2),(3,4)", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 539, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 603, - "relname": "path_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 595, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 595, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 586, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 655, - "relname": "path_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 621, - "name": "count", - "val": { - "A_Const": { - "location": 621, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 634, - "name": "open_path", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 634, - }, - }, - }, - }, - ], - "whereClause": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 677, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "isopen", - }, - }, - ], - "location": 670, - }, - }, - }, - }, - "stmt_len": 68, - "stmt_location": 612, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 726, - "relname": "path_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 690, - "name": "count", - "val": { - "A_Const": { - "location": 690, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 703, - "name": "closed_path", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 703, - }, - }, - }, - }, - ], - "whereClause": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 750, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "isclosed", - }, - }, - ], - "location": 741, - }, - }, - }, - }, - "stmt_len": 72, - "stmt_location": 681, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 807, - "relname": "path_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 763, - "name": "count", - "val": { - "A_Const": { - "location": 763, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 776, - "name": "closed_path", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 783, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "pclose", - }, - }, - ], - "location": 776, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 754, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 866, - "relname": "path_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 825, - "name": "count", - "val": { - "A_Const": { - "location": 825, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 838, - "name": "open_path", - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 844, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "popen", - }, - }, - ], - "location": 838, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 58, - "stmt_location": 816, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/polygon.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 51, - "relname": "polygon_tbl", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 63, - "typeName": { - "location": 66, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 74, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 102, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 90, - "relname": "polygon_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 114, - "sval": { - "sval": "(2.0,0.0),(2.0,4.0),(0.0,0.0)", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 71, - "stmt_location": 75, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 173, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 161, - "relname": "polygon_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 185, - "sval": { - "sval": "(3.0,1.0),(3.0,3.0),(1.0,0.0)", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 70, - "stmt_location": 147, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 267, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 255, - "relname": "polygon_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 279, - "sval": { - "sval": "(0.0,0.0)", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 73, - "stmt_location": 218, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 318, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 306, - "relname": "polygon_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 330, - "sval": { - "sval": "(0.0,1.0),(0.0,1.0)", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 60, - "stmt_location": 292, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 408, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 396, - "relname": "polygon_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 420, - "sval": { - "sval": "0.0", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 73, - "stmt_location": 353, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 453, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 441, - "relname": "polygon_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 465, - "sval": { - "sval": "(0.0 0.0", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 49, - "stmt_location": 427, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 503, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 491, - "relname": "polygon_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 515, - "sval": { - "sval": "(0,1,2)", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 48, - "stmt_location": 477, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 552, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 540, - "relname": "polygon_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 564, - "sval": { - "sval": "(0,1,2,3", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 49, - "stmt_location": 526, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 602, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 590, - "relname": "polygon_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 614, - "sval": { - "sval": "asdf", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 45, - "stmt_location": 576, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 651, - "relname": "polygon_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 632, - "name": "four", - "val": { - "A_Const": { - "location": 632, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 644, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 644, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 622, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "p", - }, - "inh": true, - "location": 708, - "relname": "polygon_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 683, - "name": "three", - "val": { - "A_Const": { - "location": 683, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 696, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 696, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 731, - }, - }, - "location": 736, - "name": [ - { - "String": { - "sval": "&&", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 739, - "sval": { - "sval": "(3.0,1.0),(3.0,3.0),(1.0,0.0)", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 107, - "stmt_location": 663, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "p", - }, - "inh": true, - "location": 820, - "relname": "polygon_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 796, - "name": "four", - "val": { - "A_Const": { - "location": 796, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 808, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 808, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 843, - }, - }, - "location": 848, - "name": [ - { - "String": { - "sval": "&<", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 851, - "sval": { - "sval": "(3.0,1.0),(3.0,3.0),(1.0,0.0)", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 111, - "stmt_location": 771, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "p", - }, - "inh": true, - "location": 932, - "relname": "polygon_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 909, - "name": "two", - "val": { - "A_Const": { - "location": 909, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 920, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 920, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 955, - }, - }, - "location": 960, - "name": [ - { - "String": { - "sval": "&>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 963, - "sval": { - "sval": "(3.0,1.0),(3.0,3.0),(1.0,0.0)", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 111, - "stmt_location": 883, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "p", - }, - "inh": true, - "location": 1038, - "relname": "polygon_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1015, - "name": "one", - "val": { - "A_Const": { - "location": 1015, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1026, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1026, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1061, - }, - }, - "location": 1066, - "name": [ - { - "String": { - "sval": "<<", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1069, - "sval": { - "sval": "(3.0,1.0),(3.0,3.0),(1.0,0.0)", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 105, - "stmt_location": 995, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "p", - }, - "inh": true, - "location": 1146, - "relname": "polygon_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1122, - "name": "zero", - "val": { - "A_Const": { - "location": 1122, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1134, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1134, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1169, - }, - }, - "location": 1174, - "name": [ - { - "String": { - "sval": ">>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1177, - "sval": { - "sval": "(3.0,1.0),(3.0,3.0),(1.0,0.0)", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 107, - "stmt_location": 1101, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "p", - }, - "inh": true, - "location": 1254, - "relname": "polygon_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1231, - "name": "one", - "val": { - "A_Const": { - "location": 1231, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1242, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1242, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1277, - }, - }, - "location": 1282, - "name": [ - { - "String": { - "sval": "<@", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1293, - "sval": { - "sval": "(3.0,1.0),(3.0,3.0),(1.0,0.0)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1285, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 115, - "stmt_location": 1209, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "p", - }, - "inh": true, - "location": 1365, - "relname": "polygon_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1342, - "name": "one", - "val": { - "A_Const": { - "location": 1342, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1353, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1353, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1388, - }, - }, - "location": 1393, - "name": [ - { - "String": { - "sval": "~=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1404, - "sval": { - "sval": "(3.0,1.0),(3.0,3.0),(1.0,0.0)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1396, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 110, - "stmt_location": 1325, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "p", - }, - "inh": true, - "location": 1480, - "relname": "polygon_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1457, - "name": "one", - "val": { - "A_Const": { - "location": 1457, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1468, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1468, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "p", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1503, - }, - }, - "location": 1508, - "name": [ - { - "String": { - "sval": "@>", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1519, - "sval": { - "sval": "(3.0,1.0),(3.0,3.0),(1.0,0.0)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1511, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 114, - "stmt_location": 1436, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1594, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1602, - "sval": { - "sval": "(2.0,0.0),(2.0,4.0),(0.0,0.0)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1594, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1634, - "name": [ - { - "String": { - "sval": "<<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1645, - "sval": { - "sval": "(3.0,1.0),(3.0,3.0),(1.0,0.0)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1637, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 134, - "stmt_location": 1551, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1711, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1719, - "sval": { - "sval": "(2.0,0.0),(2.0,4.0),(0.0,0.0)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1711, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1751, - "name": [ - { - "String": { - "sval": "<<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1762, - "sval": { - "sval": "(3.0,1.0),(3.0,3.0),(1.0,0.0)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1754, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 115, - "stmt_location": 1686, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1828, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1836, - "sval": { - "sval": "(2.0,0.0),(2.0,4.0),(0.0,0.0)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1828, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1868, - "name": [ - { - "String": { - "sval": "&>", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1879, - "sval": { - "sval": "(3.0,1.0),(3.0,3.0),(1.0,0.0)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1871, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 117, - "stmt_location": 1802, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1941, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1949, - "sval": { - "sval": "(2.0,0.0),(2.0,4.0),(0.0,0.0)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1941, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 1981, - "name": [ - { - "String": { - "sval": ">>", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1992, - "sval": { - "sval": "(3.0,1.0),(3.0,3.0),(1.0,0.0)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1984, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 112, - "stmt_location": 1920, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2058, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2066, - "sval": { - "sval": "(2.0,0.0),(2.0,4.0),(0.0,0.0)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2058, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2098, - "name": [ - { - "String": { - "sval": "<@", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2109, - "sval": { - "sval": "(3.0,1.0),(3.0,3.0),(1.0,0.0)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2101, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 116, - "stmt_location": 2033, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2171, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2179, - "sval": { - "sval": "(2.0,0.0),(2.0,4.0),(0.0,0.0)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2171, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2211, - "name": [ - { - "String": { - "sval": "@>", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2222, - "sval": { - "sval": "(3.0,1.0),(3.0,3.0),(1.0,0.0)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2214, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 112, - "stmt_location": 2150, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2272, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2272, - "sval": { - "sval": "((0,4),(6,4),(1,2),(6,0),(0,0))", - }, - }, - }, - "location": 2305, - "typeName": { - "location": 2307, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2315, - "name": [ - { - "String": { - "sval": "@>", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2318, - "sval": { - "sval": "((2,1),(2,3),(3,3),(3,1))", - }, - }, - }, - "location": 2345, - "typeName": { - "location": 2347, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 102, - "stmt_location": 2263, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2375, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2375, - "sval": { - "sval": "((0,4),(6,4),(3,2),(6,0),(0,0))", - }, - }, - }, - "location": 2408, - "typeName": { - "location": 2410, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2418, - "name": [ - { - "String": { - "sval": "@>", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2421, - "sval": { - "sval": "((2,1),(2,3),(3,3),(3,1))", - }, - }, - }, - "location": 2448, - "typeName": { - "location": 2450, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 101, - "stmt_location": 2366, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2477, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2477, - "sval": { - "sval": "((1,1),(1,4),(5,4),(5,3),(2,3),(2,2),(5,2),(5,1))", - }, - }, - }, - "location": 2528, - "typeName": { - "location": 2530, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2538, - "name": [ - { - "String": { - "sval": "@>", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2541, - "sval": { - "sval": "((3,2),(3,3),(4,3),(4,2))", - }, - }, - }, - "location": 2568, - "typeName": { - "location": 2570, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 120, - "stmt_location": 2468, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2598, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2598, - "sval": { - "sval": "((0,0),(0,3),(3,3),(3,0))", - }, - }, - }, - "location": 2625, - "typeName": { - "location": 2627, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2635, - "name": [ - { - "String": { - "sval": "@>", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2638, - "sval": { - "sval": "((2,1),(2,2),(3,2),(3,1))", - }, - }, - }, - "location": 2665, - "typeName": { - "location": 2667, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 95, - "stmt_location": 2589, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2702, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2710, - "sval": { - "sval": "(2.0,0.0),(2.0,4.0),(0.0,0.0)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2702, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2742, - "name": [ - { - "String": { - "sval": "~=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2753, - "sval": { - "sval": "(3.0,1.0),(3.0,3.0),(1.0,0.0)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2745, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 108, - "stmt_location": 2685, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2814, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2822, - "sval": { - "sval": "(2.0,0.0),(2.0,4.0),(0.0,0.0)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2814, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2854, - "name": [ - { - "String": { - "sval": "&&", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2865, - "sval": { - "sval": "(3.0,1.0),(3.0,3.0),(1.0,0.0)", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2857, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 110, - "stmt_location": 2794, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2914, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2914, - "sval": { - "sval": "((0,4),(6,4),(1,2),(6,0),(0,0))", - }, - }, - }, - "location": 2947, - "typeName": { - "location": 2949, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2957, - "name": [ - { - "String": { - "sval": "&&", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2960, - "sval": { - "sval": "((2,1),(2,3),(3,3),(3,1))", - }, - }, - }, - "location": 2987, - "typeName": { - "location": 2989, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 101, - "stmt_location": 2905, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3016, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3016, - "sval": { - "sval": "((1,4),(1,1),(4,1),(4,2),(2,2),(2,4),(1,4))", - }, - }, - }, - "location": 3061, - "typeName": { - "location": 3063, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3071, - "name": [ - { - "String": { - "sval": "&&", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3074, - "sval": { - "sval": "((3,3),(4,3),(4,4),(3,4),(3,3))", - }, - }, - }, - "location": 3107, - "typeName": { - "location": 3109, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 120, - "stmt_location": 3007, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3136, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "location": 3136, - "sval": { - "sval": "((200,800),(800,800),(800,200),(200,200))", - }, - }, - }, - "location": 3180, - "name": [ - { - "String": { - "sval": "&&", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3184, - "sval": { - "sval": "(1000,1000,0,0)", - }, - }, - }, - "location": 3201, - "typeName": { - "location": 3203, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 92, - "stmt_location": 3128, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3255, - "name": "on_corner", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3255, - "sval": { - "sval": "(0,0)", - }, - }, - }, - "location": 3262, - "typeName": { - "location": 3264, - "names": [ - { - "String": { - "sval": "point", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3270, - "name": [ - { - "String": { - "sval": "<->", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3274, - "sval": { - "sval": "((0,0),(1,2),(2,1))", - }, - }, - }, - "location": 3295, - "typeName": { - "location": 3297, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3320, - "name": "on_segment", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3320, - "sval": { - "sval": "(1,1)", - }, - }, - }, - "location": 3327, - "typeName": { - "location": 3329, - "names": [ - { - "String": { - "sval": "point", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3335, - "name": [ - { - "String": { - "sval": "<->", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3339, - "sval": { - "sval": "((0,0),(2,2),(1,3))", - }, - }, - }, - "location": 3360, - "typeName": { - "location": 3362, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3386, - "name": "inside", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3386, - "sval": { - "sval": "(2,2)", - }, - }, - }, - "location": 3393, - "typeName": { - "location": 3395, - "names": [ - { - "String": { - "sval": "point", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3401, - "name": [ - { - "String": { - "sval": "<->", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3405, - "sval": { - "sval": "((0,0),(1,4),(3,1))", - }, - }, - }, - "location": 3426, - "typeName": { - "location": 3428, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3448, - "name": "near_corner", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3448, - "sval": { - "sval": "(3,3)", - }, - }, - }, - "location": 3455, - "typeName": { - "location": 3457, - "names": [ - { - "String": { - "sval": "point", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3463, - "name": [ - { - "String": { - "sval": "<->", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3467, - "sval": { - "sval": "((0,2),(2,0),(2,2))", - }, - }, - }, - "location": 3488, - "typeName": { - "location": 3490, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3515, - "name": "near_segment", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3515, - "sval": { - "sval": "(4,4)", - }, - }, - }, - "location": 3522, - "typeName": { - "location": 3524, - "names": [ - { - "String": { - "sval": "point", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3530, - "name": [ - { - "String": { - "sval": "<->", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3534, - "sval": { - "sval": "((0,0),(0,3),(4,0))", - }, - }, - }, - "location": 3555, - "typeName": { - "location": 3557, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 359, - "stmt_location": 3221, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/random.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 123, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 109, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 109, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 127, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "larg": { - "larg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 211, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "limitCount": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 240, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "random", - }, - }, - ], - "location": 225, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 186, - "name": "random", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 186, - }, - }, - }, - }, - ], - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_INTERSECT", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 286, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "limitCount": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 315, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "random", - }, - }, - ], - "location": 300, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 261, - "name": "random", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 261, - }, - }, - }, - }, - ], - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_INTERSECT", - "rarg": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 361, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "limitCount": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 390, - }, - }, - "limitOption": "LIMIT_OPTION_COUNT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "random", - }, - }, - ], - "location": 375, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 336, - "name": "random", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "unique1", - }, - }, - ], - "location": 336, - }, - }, - }, - }, - ], - }, - }, - }, - "stmt_len": 264, - "stmt_location": 128, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 480, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "intoClause": { - "onCommit": "ONCOMMIT_NOOP", - "rel": { - "inh": true, - "location": 462, - "relname": "random_tbl", - "relpersistence": "p", - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 438, - "name": "random", - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 438, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "random", - }, - }, - ], - "location": 491, - }, - }, - "location": 500, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "fval": { - "fval": "1.0", - }, - "location": 502, - }, - }, - "location": 505, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 506, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 115, - "stmt_location": 393, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 582, - "name": "random", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 570, - "relname": "random_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 615, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 599, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 599, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "random", - }, - }, - ], - "location": 626, - }, - }, - "location": 635, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "fval": { - "fval": "1.0", - }, - "location": 637, - }, - }, - "location": 640, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 641, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 134, - "stmt_location": 509, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 717, - "name": "random", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 705, - "relname": "random_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 750, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 734, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 734, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "random", - }, - }, - ], - "location": 761, - }, - }, - "location": 770, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "fval": { - "fval": "1.0", - }, - "location": 772, - }, - }, - "location": 775, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 776, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 134, - "stmt_location": 644, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 852, - "name": "random", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 840, - "relname": "random_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 885, - "relname": "onek", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 869, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 869, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "random", - }, - }, - ], - "location": 896, - }, - }, - "location": 905, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "fval": { - "fval": "1.0", - }, - "location": 907, - }, - }, - "location": 910, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 911, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 134, - "stmt_location": 779, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 993, - "relname": "random_tbl", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "random", - }, - }, - ], - "location": 1015, - }, - }, - ], - "havingClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "random", - }, - }, - ], - "location": 1035, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 1029, - }, - }, - "location": 1043, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 1045, - }, - }, - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 966, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "random", - }, - }, - ], - "location": 966, - }, - }, - }, - }, - { - "ResTarget": { - "location": 974, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "random", - }, - }, - ], - "location": 980, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 974, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 132, - "stmt_location": 914, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1073, - "relname": "random_tbl", - "relpersistence": "p", - }, - }, - ], - "havingClause": { - "A_Expr": { - "kind": "AEXPR_NOT_BETWEEN", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "random", - }, - }, - ], - "location": 1097, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "avg", - }, - }, - ], - "location": 1093, - }, - }, - "location": 1105, - "name": [ - { - "String": { - "sval": "NOT BETWEEN", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 80, - }, - "location": 1117, - }, - }, - { - "A_Const": { - "ival": { - "ival": 120, - }, - "location": 1124, - }, - }, - ], - }, - }, - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1056, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "random", - }, - }, - ], - "location": 1060, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "avg", - }, - }, - ], - "location": 1056, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 80, - "stmt_location": 1047, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/reltime.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 31, - "relname": "reltime_tbl", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 44, - "typeName": { - "location": 47, - "names": [ - { - "String": { - "sval": "reltime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 55, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 83, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 70, - "relname": "reltime_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 95, - "sval": { - "sval": "@ 1 minute", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 52, - "stmt_location": 56, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 136, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 123, - "relname": "reltime_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 148, - "sval": { - "sval": "@ 5 hour", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 50, - "stmt_location": 109, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 187, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 174, - "relname": "reltime_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 199, - "sval": { - "sval": "@ 10 day", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 50, - "stmt_location": 160, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 238, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 225, - "relname": "reltime_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 250, - "sval": { - "sval": "@ 34 year", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 51, - "stmt_location": 211, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 290, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 277, - "relname": "reltime_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 302, - "sval": { - "sval": "@ 3 months", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 52, - "stmt_location": 263, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 343, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 330, - "relname": "reltime_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 355, - "sval": { - "sval": "@ 14 seconds ago", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 58, - "stmt_location": 316, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 431, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 418, - "relname": "reltime_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 443, - "sval": { - "sval": "badly formatted reltime", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 94, - "stmt_location": 375, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 497, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 484, - "relname": "reltime_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 509, - "sval": { - "sval": "@ 30 eons ago", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 55, - "stmt_location": 470, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 580, - "relname": "reltime_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 562, - "name": "six", - "val": { - "A_Const": { - "location": 562, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 573, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 573, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 65, - "stmt_location": 526, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 620, - "relname": "reltime_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 601, - "name": "five", - "val": { - "A_Const": { - "location": 601, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 613, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 613, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "reltime_tbl", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 641, - }, - }, - "location": 656, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 667, - "sval": { - "sval": "@ 10 days", - }, - }, - }, - "location": -1, - "typeName": { - "location": 659, - "names": [ - { - "String": { - "sval": "reltime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 86, - "stmt_location": 592, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 708, - "relname": "reltime_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 688, - "name": "three", - "val": { - "A_Const": { - "location": 688, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 701, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 701, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "reltime_tbl", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 729, - }, - }, - "location": 744, - "name": [ - { - "String": { - "sval": "<=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 755, - "sval": { - "sval": "@ 5 hours", - }, - }, - }, - "location": -1, - "typeName": { - "location": 747, - "names": [ - { - "String": { - "sval": "reltime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 87, - "stmt_location": 679, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 796, - "relname": "reltime_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 776, - "name": "three", - "val": { - "A_Const": { - "location": 776, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 789, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 789, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "reltime_tbl", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 817, - }, - }, - "location": 832, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 842, - "sval": { - "sval": "@ 1 day", - }, - }, - }, - "location": -1, - "typeName": { - "location": 834, - "names": [ - { - "String": { - "sval": "reltime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 84, - "stmt_location": 767, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 879, - "relname": "reltime_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 861, - "name": "one", - "val": { - "A_Const": { - "location": 861, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 872, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 872, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "reltime_tbl", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 900, - }, - }, - "location": 915, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 925, - "sval": { - "sval": "@ 34 years", - }, - }, - }, - "location": -1, - "typeName": { - "location": 917, - "names": [ - { - "String": { - "sval": "reltime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 85, - "stmt_location": 852, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 965, - "relname": "reltime_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 947, - "name": "two", - "val": { - "A_Const": { - "location": 947, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 958, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 958, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "reltime_tbl", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 986, - }, - }, - "location": 1001, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1012, - "sval": { - "sval": "@ 1 month", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1004, - "names": [ - { - "String": { - "sval": "reltime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 85, - "stmt_location": 938, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1052, - "relname": "reltime_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1033, - "name": "five", - "val": { - "A_Const": { - "location": 1033, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1045, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1045, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "reltime_tbl", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1073, - }, - }, - "location": 1088, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1098, - "sval": { - "sval": "@ 3 seconds ago", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1090, - "names": [ - { - "String": { - "sval": "reltime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 91, - "stmt_location": 1024, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "r1", - }, - "inh": true, - "location": 1159, - "relname": "reltime_tbl", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "r2", - }, - "inh": true, - "location": 1175, - "relname": "reltime_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "r1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1225, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "r2", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1232, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1125, - "name": "fifteen", - "val": { - "A_Const": { - "location": 1125, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1140, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "r1", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1140, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1146, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "r2", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1146, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "r1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1199, - }, - }, - "location": 1205, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "r2", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1207, - }, - }, - }, - }, - }, - }, - "stmt_len": 121, - "stmt_location": 1116, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/select_distinct_on.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "distinctClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "string4", - }, - }, - ], - "location": 49, - }, - }, - ], - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 84, - "relname": "tmp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": 114, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "string4", - }, - }, - ], - "location": 100, - }, - }, - "sortby_dir": "SORTBY_USING", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - "useOp": [ - { - "String": { - "sval": "<", - }, - }, - ], - }, - }, - { - "SortBy": { - "location": 127, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "two", - }, - }, - ], - "location": 117, - }, - }, - "sortby_dir": "SORTBY_USING", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - "useOp": [ - { - "String": { - "sval": ">", - }, - }, - ], - }, - }, - { - "SortBy": { - "location": 140, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 130, - }, - }, - "sortby_dir": "SORTBY_USING", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - "useOp": [ - { - "String": { - "sval": "<", - }, - }, - ], - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 58, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "string4", - }, - }, - ], - "location": 58, - }, - }, - }, - }, - { - "ResTarget": { - "location": 67, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "two", - }, - }, - ], - "location": 67, - }, - }, - }, - }, - { - "ResTarget": { - "location": 72, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 72, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 141, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "distinctClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "string4", - }, - }, - ], - "location": 223, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 232, - }, - }, - ], - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 263, - "relname": "tmp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": 293, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "string4", - }, - }, - ], - "location": 279, - }, - }, - "sortby_dir": "SORTBY_USING", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - "useOp": [ - { - "String": { - "sval": "<", - }, - }, - ], - }, - }, - { - "SortBy": { - "location": 306, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "two", - }, - }, - ], - "location": 296, - }, - }, - "sortby_dir": "SORTBY_USING", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - "useOp": [ - { - "String": { - "sval": "<", - }, - }, - ], - }, - }, - { - "SortBy": { - "location": 319, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 309, - }, - }, - "sortby_dir": "SORTBY_USING", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - "useOp": [ - { - "String": { - "sval": "<", - }, - }, - ], - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 237, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "string4", - }, - }, - ], - "location": 237, - }, - }, - }, - }, - { - "ResTarget": { - "location": 246, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "two", - }, - }, - ], - "location": 246, - }, - }, - }, - }, - { - "ResTarget": { - "location": 251, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 251, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 178, - "stmt_location": 142, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "distinctClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "string4", - }, - }, - ], - "location": 343, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 352, - }, - }, - ], - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 383, - "relname": "tmp", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": 413, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "string4", - }, - }, - ], - "location": 399, - }, - }, - "sortby_dir": "SORTBY_USING", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - "useOp": [ - { - "String": { - "sval": "<", - }, - }, - ], - }, - }, - { - "SortBy": { - "location": 426, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 416, - }, - }, - "sortby_dir": "SORTBY_USING", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - "useOp": [ - { - "String": { - "sval": ">", - }, - }, - ], - }, - }, - { - "SortBy": { - "location": 439, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "two", - }, - }, - ], - "location": 429, - }, - }, - "sortby_dir": "SORTBY_USING", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - "useOp": [ - { - "String": { - "sval": "<", - }, - }, - ], - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 357, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "string4", - }, - }, - ], - "location": 357, - }, - }, - }, - }, - { - "ResTarget": { - "location": 366, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "ten", - }, - }, - ], - "location": 366, - }, - }, - }, - }, - { - "ResTarget": { - "location": 371, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "two", - }, - }, - ], - "location": 371, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 119, - "stmt_location": 321, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "distinctClause": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 528, - }, - }, - ], - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 561, - "relname": "int4_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 579, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 581, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 531, - "name": "r", - "val": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "random", - }, - }, - ], - "location": 537, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "floor", - }, - }, - ], - "location": 531, - }, - }, - }, - }, - { - "ResTarget": { - "location": 553, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 553, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 141, - "stmt_location": 441, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/select_having.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 55, - "relname": "test_having", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 68, - "typeName": { - "location": 70, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 75, - "typeName": { - "location": 77, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c", - "is_local": true, - "location": 82, - "typeName": { - "location": 84, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bpchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 8, - }, - "location": 89, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "d", - "is_local": true, - "location": 93, - "typeName": { - "location": 95, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bpchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": -1, - }, - }, - ], - }, - }, - }, - ], - }, - }, - "stmt_len": 100, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 114, - "relname": "test_having", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 134, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 137, - }, - }, - { - "A_Const": { - "location": 140, - "sval": { - "sval": "XXXX", - }, - }, - }, - { - "A_Const": { - "location": 148, - "sval": { - "sval": "A", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 51, - "stmt_location": 101, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 166, - "relname": "test_having", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 186, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 189, - }, - }, - { - "A_Const": { - "location": 192, - "sval": { - "sval": "AAAA", - }, - }, - }, - { - "A_Const": { - "location": 200, - "sval": { - "sval": "b", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 51, - "stmt_location": 153, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 218, - "relname": "test_having", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 238, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 241, - }, - }, - { - "A_Const": { - "location": 244, - "sval": { - "sval": "AAAA", - }, - }, - }, - { - "A_Const": { - "location": 252, - "sval": { - "sval": "c", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 51, - "stmt_location": 205, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 270, - "relname": "test_having", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 290, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 293, - }, - }, - { - "A_Const": { - "location": 296, - "sval": { - "sval": "BBBB", - }, - }, - }, - { - "A_Const": { - "location": 304, - "sval": { - "sval": "D", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 51, - "stmt_location": 257, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 322, - "relname": "test_having", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 342, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 345, - }, - }, - { - "A_Const": { - "location": 348, - "sval": { - "sval": "BBBB", - }, - }, - }, - { - "A_Const": { - "location": 356, - "sval": { - "sval": "e", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 51, - "stmt_location": 309, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 374, - "relname": "test_having", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 394, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 397, - }, - }, - { - "A_Const": { - "location": 400, - "sval": { - "sval": "bbbb", - }, - }, - }, - { - "A_Const": { - "location": 408, - "sval": { - "sval": "F", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 51, - "stmt_location": 361, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 426, - "relname": "test_having", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 446, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 449, - }, - }, - { - "A_Const": { - "location": 452, - "sval": { - "sval": "cccc", - }, - }, - }, - { - "A_Const": { - "location": 460, - "sval": { - "sval": "g", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 51, - "stmt_location": 413, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 478, - "relname": "test_having", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 498, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 501, - }, - }, - { - "A_Const": { - "location": 504, - "sval": { - "sval": "cccc", - }, - }, - }, - { - "A_Const": { - "location": 512, - "sval": { - "sval": "h", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 51, - "stmt_location": 465, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 530, - "relname": "test_having", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 8, - }, - "location": 550, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 553, - }, - }, - { - "A_Const": { - "location": 556, - "sval": { - "sval": "CCCC", - }, - }, - }, - { - "A_Const": { - "location": 564, - "sval": { - "sval": "I", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 51, - "stmt_location": 517, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 582, - "relname": "test_having", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 9, - }, - "location": 602, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 605, - }, - }, - { - "A_Const": { - "location": 608, - "sval": { - "sval": "CCCC", - }, - }, - }, - { - "A_Const": { - "location": 616, - "sval": { - "sval": "j", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 51, - "stmt_location": 569, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 640, - "relname": "test_having", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 662, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 665, - }, - }, - ], - "havingClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 674, - }, - }, - "location": 683, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 685, - }, - }, - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 696, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 699, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 630, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 630, - }, - }, - }, - }, - { - "ResTarget": { - "location": 633, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 633, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 79, - "stmt_location": 621, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 778, - "relname": "test_having", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 800, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 803, - }, - }, - ], - "havingClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 812, - }, - }, - "location": 814, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 816, - }, - }, - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 827, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 830, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 768, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 768, - }, - }, - }, - }, - { - "ResTarget": { - "location": 771, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 771, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 130, - "stmt_location": 701, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 865, - "relname": "test_having", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 893, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 887, - }, - }, - ], - "havingClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 903, - }, - }, - "location": 912, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 914, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 923, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 919, - }, - }, - "location": 926, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 932, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 928, - }, - }, - }, - }, - ], - "boolop": "OR_EXPR", - "location": 916, - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 951, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 945, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 841, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 847, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 841, - }, - }, - }, - }, - { - "ResTarget": { - "location": 851, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 857, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 851, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 121, - "stmt_location": 832, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 978, - "relname": "test_having", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 1000, - }, - }, - ], - "havingClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 1009, - }, - }, - "location": 1018, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1020, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1029, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 1025, - }, - }, - "location": 1032, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1038, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 1034, - }, - }, - }, - }, - ], - "boolop": "OR_EXPR", - "location": 1022, - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 1051, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 963, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 963, - }, - }, - }, - }, - { - "ResTarget": { - "location": 966, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 970, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 966, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 98, - "stmt_location": 954, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1217, - "relname": "test_having", - "relpersistence": "p", - }, - }, - ], - "havingClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1240, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 1236, - }, - }, - "location": 1243, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1249, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 1245, - }, - }, - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1197, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1201, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 1197, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1205, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1209, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 1205, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 198, - "stmt_location": 1053, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1280, - "relname": "test_having", - "relpersistence": "p", - }, - }, - ], - "havingClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1303, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 1299, - }, - }, - "location": 1306, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1312, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 1308, - }, - }, - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1260, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1264, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 1260, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1268, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1272, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 1268, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 1252, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1370, - "relname": "test_having", - "relpersistence": "p", - }, - }, - ], - "havingClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1393, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "min", - }, - }, - ], - "location": 1389, - }, - }, - "location": 1396, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1402, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "max", - }, - }, - ], - "location": 1398, - }, - }, - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1363, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1363, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 89, - "stmt_location": 1315, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1427, - "relname": "test_having", - "relpersistence": "p", - }, - }, - ], - "havingClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1446, - }, - }, - "location": 1448, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1450, - }, - }, - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1413, - "name": "one", - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1413, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 1405, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1533, - "relname": "test_having", - "relpersistence": "p", - }, - }, - ], - "havingClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1552, - }, - }, - "location": 1554, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1556, - }, - }, - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1519, - "name": "one", - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1519, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 105, - "stmt_location": 1452, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1580, - "relname": "test_having", - "relpersistence": "p", - }, - }, - ], - "havingClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1599, - }, - }, - "location": 1601, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1603, - }, - }, - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1566, - "name": "one", - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1566, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 1558, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1684, - "relname": "test_having", - "relpersistence": "p", - }, - }, - ], - "havingClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1717, - }, - }, - "location": 1719, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1721, - }, - }, - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1670, - "name": "one", - "val": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1670, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1702, - }, - }, - "location": 1703, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1704, - }, - }, - }, - }, - "location": 1706, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1708, - }, - }, - }, - }, - }, - }, - "stmt_len": 117, - "stmt_location": 1605, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_having", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 24, - "stmt_location": 1723, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/select_implicit.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 261, - "relname": "test_missing_target", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 282, - "typeName": { - "location": 284, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 289, - "typeName": { - "location": 291, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "c", - "is_local": true, - "location": 296, - "typeName": { - "location": 298, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bpchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 8, - }, - "location": 303, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "d", - "is_local": true, - "location": 307, - "typeName": { - "location": 309, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bpchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": -1, - }, - }, - ], - }, - }, - }, - ], - }, - }, - "stmt_len": 314, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 328, - "relname": "test_missing_target", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": {}, - "location": 356, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 359, - }, - }, - { - "A_Const": { - "location": 362, - "sval": { - "sval": "XXXX", - }, - }, - }, - { - "A_Const": { - "location": 370, - "sval": { - "sval": "A", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 315, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 388, - "relname": "test_missing_target", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 416, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 419, - }, - }, - { - "A_Const": { - "location": 422, - "sval": { - "sval": "ABAB", - }, - }, - }, - { - "A_Const": { - "location": 430, - "sval": { - "sval": "b", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 375, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 448, - "relname": "test_missing_target", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 476, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 479, - }, - }, - { - "A_Const": { - "location": 482, - "sval": { - "sval": "ABAB", - }, - }, - }, - { - "A_Const": { - "location": 490, - "sval": { - "sval": "c", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 435, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 508, - "relname": "test_missing_target", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 536, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 539, - }, - }, - { - "A_Const": { - "location": 542, - "sval": { - "sval": "BBBB", - }, - }, - }, - { - "A_Const": { - "location": 550, - "sval": { - "sval": "D", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 495, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 568, - "relname": "test_missing_target", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 596, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 599, - }, - }, - { - "A_Const": { - "location": 602, - "sval": { - "sval": "BBBB", - }, - }, - }, - { - "A_Const": { - "location": 610, - "sval": { - "sval": "e", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 555, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 628, - "relname": "test_missing_target", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 656, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 659, - }, - }, - { - "A_Const": { - "location": 662, - "sval": { - "sval": "bbbb", - }, - }, - }, - { - "A_Const": { - "location": 670, - "sval": { - "sval": "F", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 615, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 688, - "relname": "test_missing_target", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 716, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 719, - }, - }, - { - "A_Const": { - "location": 722, - "sval": { - "sval": "cccc", - }, - }, - }, - { - "A_Const": { - "location": 730, - "sval": { - "sval": "g", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 675, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 748, - "relname": "test_missing_target", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 776, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 779, - }, - }, - { - "A_Const": { - "location": 782, - "sval": { - "sval": "cccc", - }, - }, - }, - { - "A_Const": { - "location": 790, - "sval": { - "sval": "h", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 735, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 808, - "relname": "test_missing_target", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 8, - }, - "location": 836, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 839, - }, - }, - { - "A_Const": { - "location": 842, - "sval": { - "sval": "CCCC", - }, - }, - }, - { - "A_Const": { - "location": 850, - "sval": { - "sval": "I", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 795, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 868, - "relname": "test_missing_target", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 9, - }, - "location": 896, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 899, - }, - }, - { - "A_Const": { - "location": 902, - "sval": { - "sval": "CCCC", - }, - }, - }, - { - "A_Const": { - "location": 910, - "sval": { - "sval": "j", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 855, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 975, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "test_missing_target", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - "location": 1004, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 1035, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 958, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 958, - }, - }, - }, - }, - { - "ResTarget": { - "location": 961, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 961, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 121, - "stmt_location": 915, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1135, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "test_missing_target", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - "location": 1164, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 1195, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1121, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 1121, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 159, - "stmt_location": 1037, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1321, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1350, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1361, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1307, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 1307, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 165, - "stmt_location": 1197, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1458, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1487, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1498, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1444, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 1444, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 136, - "stmt_location": 1363, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1613, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1642, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1653, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1574, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "test_missing_target", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1574, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1597, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 1597, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 154, - "stmt_location": 1500, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1705, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 1734, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1698, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 1698, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 80, - "stmt_location": 1655, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1793, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1822, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 1833, - }, - }, - "sortby_dir": "SORTBY_DESC", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1779, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 1779, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 103, - "stmt_location": 1736, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1897, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1926, - }, - }, - "sortby_dir": "SORTBY_DESC", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1883, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 1883, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 92, - "stmt_location": 1840, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1993, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2022, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2033, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1976, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 1976, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1979, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 1979, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 101, - "stmt_location": 1933, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2130, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 2159, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2113, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 2113, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2116, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 2116, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 125, - "stmt_location": 2035, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "x", - }, - "inh": true, - "location": 2285, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "y", - }, - "inh": true, - "location": 2308, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2357, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2368, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2271, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 2271, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2337, - }, - }, - "location": 2341, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2343, - }, - }, - }, - }, - }, - }, - "stmt_len": 208, - "stmt_location": 2161, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2462, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2492, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2452, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2452, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2455, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2455, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 123, - "stmt_location": 2370, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2601, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2631, - }, - }, - "location": 2632, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2633, - }, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2587, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2587, - }, - }, - "location": 2588, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2589, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2592, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2592, - }, - }, - "location": 2593, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2594, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 140, - "stmt_location": 2494, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 2742, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2772, - }, - }, - "location": 2773, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2774, - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2785, - }, - }, - "location": 2786, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2787, - }, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2728, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2728, - }, - }, - "location": 2729, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2730, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2733, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2733, - }, - }, - "location": 2734, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2735, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 153, - "stmt_location": 2635, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "x", - }, - "inh": true, - "location": 2882, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "y", - }, - "inh": true, - "location": 2905, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2954, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2967, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2863, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 2863, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2868, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 2868, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2934, - }, - }, - "location": 2938, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 2940, - }, - }, - }, - }, - }, - }, - "stmt_len": 181, - "stmt_location": 2789, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "x", - }, - "inh": true, - "location": 3060, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "y", - }, - "inh": true, - "location": 3083, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3132, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3145, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3046, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 3046, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3112, - }, - }, - "location": 3116, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3118, - }, - }, - }, - }, - }, - }, - "stmt_len": 177, - "stmt_location": 2971, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "x", - }, - "inh": true, - "location": 3288, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "y", - }, - "inh": true, - "location": 3311, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3360, - }, - }, - ], - "intoClause": { - "onCommit": "ONCOMMIT_NOOP", - "rel": { - "inh": true, - "location": 3262, - "relname": "test_missing_target2", - "relpersistence": "p", - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3373, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3242, - "val": { - "FuncCall": { - "agg_star": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 3242, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3340, - }, - }, - "location": 3344, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3346, - }, - }, - }, - }, - }, - }, - "stmt_len": 227, - "stmt_location": 3149, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3392, - "relname": "test_missing_target2", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3385, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 3385, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 3377, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3506, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "test_missing_target", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3535, - }, - }, - "location": 3556, - "name": [ - { - "String": { - "sval": "%", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3557, - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "test_missing_target", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3568, - }, - }, - "location": 3589, - "name": [ - { - "String": { - "sval": "%", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3590, - }, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3487, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3487, - }, - }, - "location": 3488, - "name": [ - { - "String": { - "sval": "%", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3489, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 3492, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3498, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 3492, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 178, - "stmt_location": 3413, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3690, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "test_missing_target", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - "location": 3725, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 3719, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "test_missing_target", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - "location": 3763, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 3757, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3676, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 3682, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 3676, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 193, - "stmt_location": 3592, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 3910, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3939, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 3950, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 3896, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 3902, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 3896, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 165, - "stmt_location": 3786, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4047, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4076, - }, - }, - "location": 4077, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4078, - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4089, - }, - }, - "location": 4090, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4091, - }, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 4033, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4039, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 4033, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 140, - "stmt_location": 3952, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4213, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 4248, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 4242, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 4266, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 4260, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 4167, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "test_missing_target", - }, - }, - { - "String": { - "sval": "c", - }, - }, - ], - "location": 4173, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "lower", - }, - }, - ], - "location": 4167, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4197, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 4203, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 4197, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 175, - "stmt_location": 4093, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4319, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - ], - "location": 4354, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "upper", - }, - }, - ], - "location": 4348, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 4312, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4312, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 87, - "stmt_location": 4269, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 4414, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4445, - }, - }, - "location": 4447, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4449, - }, - }, - }, - }, - "location": 4452, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4454, - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4466, - }, - }, - "location": 4468, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 4470, - }, - }, - }, - }, - "location": 4473, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4475, - }, - }, - }, - }, - "sortby_dir": "SORTBY_DESC", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 4400, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4406, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 4400, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 124, - "stmt_location": 4357, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "x", - }, - "inh": true, - "location": 4608, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "y", - }, - "inh": true, - "location": 4631, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4680, - }, - }, - "location": 4681, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4682, - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4693, - }, - }, - "location": 4694, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4695, - }, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 4592, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4598, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 4592, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4660, - }, - }, - "location": 4664, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4666, - }, - }, - }, - }, - }, - }, - "stmt_len": 214, - "stmt_location": 4482, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "x", - }, - "inh": true, - "location": 4794, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "y", - }, - "inh": true, - "location": 4817, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4866, - }, - }, - "location": 4869, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4870, - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4881, - }, - }, - "location": 4884, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4885, - }, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 4771, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4771, - }, - }, - "location": 4774, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4775, - }, - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 4778, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 4784, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 4778, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4846, - }, - }, - "location": 4850, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 4852, - }, - }, - }, - }, - }, - }, - "stmt_len": 189, - "stmt_location": 4697, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "x", - }, - "inh": true, - "location": 5029, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "y", - }, - "inh": true, - "location": 5052, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5101, - }, - }, - "location": 5104, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5105, - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5015, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5021, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 5015, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5081, - }, - }, - "location": 5085, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5087, - }, - }, - }, - }, - }, - }, - "stmt_len": 219, - "stmt_location": 4887, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "x", - }, - "inh": true, - "location": 5248, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "y", - }, - "inh": true, - "location": 5271, - "relname": "test_missing_target", - "relpersistence": "p", - }, - }, - ], - "groupClause": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5320, - }, - }, - "location": 5323, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5324, - }, - }, - }, - }, - ], - "intoClause": { - "onCommit": "ONCOMMIT_NOOP", - "rel": { - "inh": true, - "location": 5222, - "relname": "test_missing_target3", - "relpersistence": "p", - }, - }, - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5335, - }, - }, - "location": 5338, - "name": [ - { - "String": { - "sval": "/", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5339, - }, - }, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 5200, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - { - "String": { - "sval": "b", - }, - }, - ], - "location": 5206, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "count", - }, - }, - ], - "location": 5200, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "x", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5300, - }, - }, - "location": 5304, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "y", - }, - }, - { - "String": { - "sval": "a", - }, - }, - ], - "location": 5306, - }, - }, - }, - }, - }, - }, - "stmt_len": 233, - "stmt_location": 5107, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 5356, - "relname": "test_missing_target3", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5349, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 5349, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 5341, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_missing_target", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 45, - "stmt_location": 5377, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_missing_target2", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 32, - "stmt_location": 5423, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "test_missing_target3", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 32, - "stmt_location": 5456, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/text.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 22, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 27, - "sval": { - "sval": "this is a text string", - }, - }, - }, - "location": -1, - "typeName": { - "location": 22, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 51, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 58, - "sval": { - "sval": "this is a text string", - }, - }, - }, - "location": -1, - "typeName": { - "location": 53, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 89, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 99, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 104, - "sval": { - "sval": "this is a text string", - }, - }, - }, - "location": -1, - "typeName": { - "location": 99, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 128, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 135, - "sval": { - "sval": "this is a text strin", - }, - }, - }, - "location": -1, - "typeName": { - "location": 130, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 76, - "stmt_location": 90, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 182, - "relname": "text_tbl", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 192, - "typeName": { - "location": 195, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 167, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 215, - "relname": "text_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 232, - "sval": { - "sval": "doh!", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 38, - "stmt_location": 201, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 253, - "relname": "text_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 270, - "sval": { - "sval": "hi de ho neighbor", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 50, - "stmt_location": 240, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 318, - "relname": "text_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 300, - "name": "two", - "val": { - "A_Const": { - "location": 300, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 311, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 311, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 291, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 440, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 42, - }, - "location": 447, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "length", - }, - }, - ], - "location": 440, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 123, - "stmt_location": 327, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 652, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 652, - "sval": { - "sval": "four: ", - }, - }, - }, - "location": 660, - "typeName": { - "location": 662, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 667, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 670, - }, - }, - "location": 671, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 672, - }, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 222, - "stmt_location": 451, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 682, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "location": 682, - "sval": { - "sval": "four: ", - }, - }, - }, - "location": 691, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 694, - }, - }, - "location": 695, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 696, - }, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 674, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 725, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 725, - }, - }, - "location": 727, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "A_Const": { - "fval": { - "fval": "4.0", - }, - "location": 730, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 698, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 778, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 785, - "sval": { - "sval": "one", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "concat", - }, - }, - ], - "location": 778, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 734, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 800, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 807, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 809, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 811, - }, - }, - { - "A_Const": { - "location": 813, - "sval": { - "sval": "hello", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 821, - }, - }, - { - "A_Const": { - "boolval": {}, - "location": 827, - }, - }, - { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 842, - "sval": { - "sval": "20100309", - }, - }, - }, - { - "A_Const": { - "location": 853, - "sval": { - "sval": "YYYYMMDD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_date", - }, - }, - ], - "location": 834, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "concat", - }, - }, - ], - "location": 800, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 792, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 874, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 884, - "sval": { - "sval": "#", - }, - }, - }, - { - "A_Const": { - "location": 888, - "sval": { - "sval": "one", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "concat_ws", - }, - }, - ], - "location": 874, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 866, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 903, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 913, - "sval": { - "sval": "#", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 917, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 919, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 921, - }, - }, - { - "A_Const": { - "location": 923, - "sval": { - "sval": "hello", - }, - }, - }, - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 931, - }, - }, - { - "A_Const": { - "boolval": {}, - "location": 937, - }, - }, - { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 952, - "sval": { - "sval": "20100309", - }, - }, - }, - { - "A_Const": { - "location": 963, - "sval": { - "sval": "YYYYMMDD", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_date", - }, - }, - ], - "location": 944, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "concat_ws", - }, - }, - ], - "location": 903, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 80, - "stmt_location": 895, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 984, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 994, - "sval": { - "sval": ",", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 998, - }, - }, - { - "A_Const": { - "ival": { - "ival": 20, - }, - "location": 1001, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 1004, - }, - }, - { - "A_Const": { - "ival": { - "ival": 30, - }, - "location": 1009, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "concat_ws", - }, - }, - ], - "location": 984, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 976, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1021, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1031, - "sval": { - "sval": "", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 1034, - }, - }, - { - "A_Const": { - "ival": { - "ival": 20, - }, - "location": 1037, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 1040, - }, - }, - { - "A_Const": { - "ival": { - "ival": 30, - }, - "location": 1045, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "concat_ws", - }, - }, - ], - "location": 1021, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 1013, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1057, - "val": { - "NullTest": { - "arg": { - "FuncCall": { - "args": [ - { - "A_Const": { - "isnull": true, - "location": 1067, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 1072, - }, - }, - { - "A_Const": { - "ival": { - "ival": 20, - }, - "location": 1075, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 1078, - }, - }, - { - "A_Const": { - "ival": { - "ival": 30, - }, - "location": 1083, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "concat_ws", - }, - }, - ], - "location": 1057, - }, - }, - "location": 1087, - "nulltesttype": "IS_NULL", - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 1049, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1103, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1111, - "sval": { - "sval": "abcde", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "reverse", - }, - }, - ], - "location": 1103, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 1095, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "t", - "colnames": [ - { - "String": { - "sval": "i", - }, - }, - ], - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": -5, - }, - "location": 1186, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 1190, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 1170, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1207, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1128, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1128, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1131, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1136, - "sval": { - "sval": "ahoj", - }, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1144, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "left", - }, - }, - ], - "location": 1131, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1148, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1154, - "sval": { - "sval": "ahoj", - }, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 1162, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "right", - }, - }, - ], - "location": 1148, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 88, - "stmt_location": 1120, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1217, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1231, - "sval": { - "sval": "", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "quote_literal", - }, - }, - ], - "location": 1217, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 1209, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1243, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1257, - "sval": { - "sval": "abc'", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "quote_literal", - }, - }, - ], - "location": 1243, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 1235, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1274, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1288, - "sval": { - "sval": "\\", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "quote_literal", - }, - }, - ], - "location": 1274, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 1266, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1338, - "val": { - "FuncCall": { - "args": [ - { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1360, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1362, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 1364, - }, - }, - ], - "location": 1354, - }, - }, - ], - "func_variadic": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "concat", - }, - }, - ], - "location": 1338, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 72, - "stmt_location": 1295, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1376, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1386, - "sval": { - "sval": ",", - }, - }, - }, - { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 1406, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1408, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 1410, - }, - }, - ], - "location": 1400, - }, - }, - ], - "func_variadic": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "concat_ws", - }, - }, - ], - "location": 1376, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 1368, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1422, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1432, - "sval": { - "sval": ",", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "isnull": true, - "location": 1446, - }, - }, - "location": 1450, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 1452, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "func_variadic": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "concat_ws", - }, - }, - ], - "location": 1422, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 1414, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1467, - "val": { - "NullTest": { - "arg": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "isnull": true, - "location": 1483, - }, - }, - "location": 1487, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 1489, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "func_variadic": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "concat", - }, - }, - ], - "location": 1467, - }, - }, - "location": 1496, - "nulltesttype": "IS_NULL", - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 1459, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1512, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1528, - "sval": { - "sval": "{}", - }, - }, - }, - "location": 1532, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 1534, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "func_variadic": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "concat", - }, - }, - ], - "location": 1512, - }, - }, - "location": 1541, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1543, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 41, - "stmt_location": 1504, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1568, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1578, - "sval": { - "sval": ",", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 1592, - }, - }, - ], - "func_variadic": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "concat_ws", - }, - }, - ], - "location": 1568, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 49, - "stmt_location": 1546, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1622, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "isnull": true, - "location": 1629, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 1622, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 1596, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1643, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1650, - "sval": { - "sval": "Hello", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 1643, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 1635, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1667, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1674, - "sval": { - "sval": "Hello %s", - }, - }, - }, - { - "A_Const": { - "location": 1686, - "sval": { - "sval": "World", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 1667, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 1659, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1703, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1710, - "sval": { - "sval": "Hello %%", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 1703, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 1695, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1730, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1737, - "sval": { - "sval": "Hello %%%%", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 1730, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 1722, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1774, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1781, - "sval": { - "sval": "Hello %s %s", - }, - }, - }, - { - "A_Const": { - "location": 1796, - "sval": { - "sval": "World", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 1774, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 1751, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1813, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1820, - "sval": { - "sval": "Hello %s", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 1813, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 1805, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1840, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1847, - "sval": { - "sval": "Hello %x", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 20, - }, - "location": 1859, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 1840, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 1832, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1908, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1915, - "sval": { - "sval": "INSERT INTO %I VALUES(%L,%L)", - }, - }, - }, - { - "A_Const": { - "location": 1947, - "sval": { - "sval": "mytab", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 1956, - }, - }, - { - "A_Const": { - "location": 1960, - "sval": { - "sval": "Hello", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 1908, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 105, - "stmt_location": 1863, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1977, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1984, - "sval": { - "sval": "%s%s%s", - }, - }, - }, - { - "A_Const": { - "location": 1993, - "sval": { - "sval": "Hello", - }, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 2002, - }, - }, - { - "A_Const": { - "location": 2007, - "sval": { - "sval": "World", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 1977, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 1969, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2024, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2031, - "sval": { - "sval": "INSERT INTO %I VALUES(%L,%L)", - }, - }, - }, - { - "A_Const": { - "location": 2063, - "sval": { - "sval": "mytab", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 2072, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 2076, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 2024, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 65, - "stmt_location": 2016, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2090, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2097, - "sval": { - "sval": "INSERT INTO %I VALUES(%L,%L)", - }, - }, - }, - { - "A_Const": { - "location": 2129, - "sval": { - "sval": "mytab", - }, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 2138, - }, - }, - { - "A_Const": { - "location": 2144, - "sval": { - "sval": "Hello", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 2090, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 70, - "stmt_location": 2082, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2207, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2214, - "sval": { - "sval": "INSERT INTO %I VALUES(%L,%L)", - }, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 2246, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 2252, - }, - }, - { - "A_Const": { - "location": 2256, - "sval": { - "sval": "Hello", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 2207, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 111, - "stmt_location": 2153, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2306, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2313, - "sval": { - "sval": "%1$s %3$s", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2326, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2329, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 2332, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 2306, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 69, - "stmt_location": 2265, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2343, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2350, - "sval": { - "sval": "%1$s %12$s", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2364, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2367, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 2370, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 2373, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 2376, - }, - }, - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 2379, - }, - }, - { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 2382, - }, - }, - { - "A_Const": { - "ival": { - "ival": 8, - }, - "location": 2385, - }, - }, - { - "A_Const": { - "ival": { - "ival": 9, - }, - "location": 2388, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 2391, - }, - }, - { - "A_Const": { - "ival": { - "ival": 11, - }, - "location": 2395, - }, - }, - { - "A_Const": { - "ival": { - "ival": 12, - }, - "location": 2399, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 2343, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 67, - "stmt_location": 2335, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2426, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2433, - "sval": { - "sval": "%1$s %4$s", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2446, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2449, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 2452, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 2426, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 2403, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2463, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2470, - "sval": { - "sval": "%1$s %13$s", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2484, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2487, - }, - }, - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 2490, - }, - }, - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 2493, - }, - }, - { - "A_Const": { - "ival": { - "ival": 5, - }, - "location": 2496, - }, - }, - { - "A_Const": { - "ival": { - "ival": 6, - }, - "location": 2499, - }, - }, - { - "A_Const": { - "ival": { - "ival": 7, - }, - "location": 2502, - }, - }, - { - "A_Const": { - "ival": { - "ival": 8, - }, - "location": 2505, - }, - }, - { - "A_Const": { - "ival": { - "ival": 9, - }, - "location": 2508, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 2511, - }, - }, - { - "A_Const": { - "ival": { - "ival": 11, - }, - "location": 2515, - }, - }, - { - "A_Const": { - "ival": { - "ival": 12, - }, - "location": 2519, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 2463, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 67, - "stmt_location": 2455, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2531, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2538, - "sval": { - "sval": "%0$s", - }, - }, - }, - { - "A_Const": { - "location": 2546, - "sval": { - "sval": "Hello", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 2531, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 2523, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2563, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2570, - "sval": { - "sval": "%*0$s", - }, - }, - }, - { - "A_Const": { - "location": 2579, - "sval": { - "sval": "Hello", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 2563, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 2555, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2596, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2603, - "sval": { - "sval": "%1$", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2610, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 2596, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 2588, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2621, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2628, - "sval": { - "sval": "%1$1", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2636, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 2621, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 2613, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2699, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2706, - "sval": { - "sval": "Hello %s %1$s %s", - }, - }, - }, - { - "A_Const": { - "location": 2726, - "sval": { - "sval": "World", - }, - }, - }, - { - "A_Const": { - "location": 2735, - "sval": { - "sval": "Hello again", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 2699, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 110, - "stmt_location": 2639, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2758, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2765, - "sval": { - "sval": "Hello %s %s, %2$s %2$s", - }, - }, - }, - { - "A_Const": { - "location": 2791, - "sval": { - "sval": "World", - }, - }, - }, - { - "A_Const": { - "location": 2800, - "sval": { - "sval": "Hello again", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 2758, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 64, - "stmt_location": 2750, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2859, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2866, - "sval": { - "sval": "%s, %s", - }, - }, - }, - { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "location": 2891, - "sval": { - "sval": "Hello", - }, - }, - }, - { - "A_Const": { - "location": 2899, - "sval": { - "sval": "World", - }, - }, - }, - ], - "location": 2885, - }, - }, - ], - "func_variadic": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 2859, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 93, - "stmt_location": 2815, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2917, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2924, - "sval": { - "sval": "%s, %s", - }, - }, - }, - { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2949, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2952, - }, - }, - ], - "location": 2943, - }, - }, - ], - "func_variadic": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 2917, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 2909, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2964, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 2971, - "sval": { - "sval": "%s, %s", - }, - }, - }, - { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 2996, - }, - }, - { - "A_Const": { - "boolval": {}, - "location": 3002, - }, - }, - ], - "location": 2990, - }, - }, - ], - "func_variadic": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 2964, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 2956, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3018, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 3025, - "sval": { - "sval": "%s, %s", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "boolval": { - "boolval": true, - }, - "location": 3050, - }, - }, - { - "A_Const": { - "boolval": {}, - "location": 3056, - }, - }, - ], - "location": 3044, - }, - }, - "location": 3062, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 3064, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "func_variadic": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 3018, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 3010, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3127, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 3134, - "sval": { - "sval": "%2$s, %1$s", - }, - }, - }, - { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "location": 3163, - "sval": { - "sval": "first", - }, - }, - }, - { - "A_Const": { - "location": 3172, - "sval": { - "sval": "second", - }, - }, - }, - ], - "location": 3157, - }, - }, - ], - "func_variadic": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 3127, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 110, - "stmt_location": 3072, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3191, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 3198, - "sval": { - "sval": "%2$s, %1$s", - }, - }, - }, - { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3227, - }, - }, - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3230, - }, - }, - ], - "location": 3221, - }, - }, - ], - "func_variadic": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 3191, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 50, - "stmt_location": 3183, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3316, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 3323, - "sval": { - "sval": "Hello", - }, - }, - }, - { - "TypeCast": { - "arg": { - "A_Const": { - "isnull": true, - "location": 3341, - }, - }, - "location": 3345, - "typeName": { - "arrayBounds": [ - { - "Integer": { - "ival": -1, - }, - }, - ], - "location": 3347, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "func_variadic": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 3316, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 119, - "stmt_location": 3234, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "alias": { - "aliasname": "g", - "colnames": [ - { - "String": { - "sval": "i", - }, - }, - ], - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3509, - }, - }, - { - "A_Const": { - "ival": { - "ival": 200, - }, - "location": 3511, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 3493, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3436, - "val": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 3454, - "sval": { - "sval": "%s", - }, - }, - }, - { - "A_Const": { - "location": 3459, - "sval": { - "sval": ",", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "string_agg", - }, - }, - ], - "location": 3443, - }, - }, - { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "i", - }, - }, - ], - "location": 3484, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_agg", - }, - }, - ], - "location": 3474, - }, - }, - ], - "func_variadic": true, - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 3436, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 166, - "stmt_location": 3354, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3577, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 3584, - "sval": { - "sval": ">>%10s<<", - }, - }, - }, - { - "A_Const": { - "location": 3596, - "sval": { - "sval": "Hello", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 3577, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 83, - "stmt_location": 3521, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3613, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 3620, - "sval": { - "sval": ">>%10s<<", - }, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 3632, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 3613, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 3605, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3646, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 3653, - "sval": { - "sval": ">>%10s<<", - }, - }, - }, - { - "A_Const": { - "location": 3665, - "sval": { - "sval": "", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 3646, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 3638, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3677, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 3684, - "sval": { - "sval": ">>%-10s<<", - }, - }, - }, - { - "A_Const": { - "location": 3697, - "sval": { - "sval": "", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 3677, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 3669, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3709, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 3716, - "sval": { - "sval": ">>%-10s<<", - }, - }, - }, - { - "A_Const": { - "location": 3729, - "sval": { - "sval": "Hello", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 3709, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 3701, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3746, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 3753, - "sval": { - "sval": ">>%-10s<<", - }, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 3766, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 3746, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 3738, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3780, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 3787, - "sval": { - "sval": ">>%1$10s<<", - }, - }, - }, - { - "A_Const": { - "location": 3801, - "sval": { - "sval": "Hello", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 3780, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 3772, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3818, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 3825, - "sval": { - "sval": ">>%1$-10I<<", - }, - }, - }, - { - "A_Const": { - "location": 3840, - "sval": { - "sval": "Hello", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 3818, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 3810, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3857, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 3864, - "sval": { - "sval": ">>%2$*1$L<<", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 3879, - }, - }, - { - "A_Const": { - "location": 3883, - "sval": { - "sval": "Hello", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 3857, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 3849, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3900, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 3907, - "sval": { - "sval": ">>%2$*1$L<<", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 3922, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 3926, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 3900, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 3892, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3940, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 3947, - "sval": { - "sval": ">>%2$*1$L<<", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": -10, - }, - "location": 3962, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 3967, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 3940, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 3932, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3981, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 3988, - "sval": { - "sval": ">>%*s<<", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 3999, - }, - }, - { - "A_Const": { - "location": 4003, - "sval": { - "sval": "Hello", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 3981, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 3973, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4020, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 4027, - "sval": { - "sval": ">>%*1$s<<", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 4040, - }, - }, - { - "A_Const": { - "location": 4044, - "sval": { - "sval": "Hello", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 4020, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 4012, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4061, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 4068, - "sval": { - "sval": ">>%-s<<", - }, - }, - }, - { - "A_Const": { - "location": 4079, - "sval": { - "sval": "Hello", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 4061, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 4053, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4096, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 4103, - "sval": { - "sval": ">>%10L<<", - }, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 4115, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 4096, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 4088, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4129, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 4136, - "sval": { - "sval": ">>%2$*1$L<<", - }, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 4151, - }, - }, - { - "A_Const": { - "location": 4157, - "sval": { - "sval": "Hello", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 4129, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 44, - "stmt_location": 4121, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4174, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 4181, - "sval": { - "sval": ">>%2$*1$L<<", - }, - }, - }, - { - "A_Const": { - "ival": {}, - "location": 4196, - }, - }, - { - "A_Const": { - "location": 4199, - "sval": { - "sval": "Hello", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "format", - }, - }, - ], - "location": 4174, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 41, - "stmt_location": 4166, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/time.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 28, - "relname": "time_tbl", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 38, - "typeName": { - "location": 41, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 46, - }, - }, - ], - }, - }, - }, - ], - }, - }, - "stmt_len": 49, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 64, - "relname": "time_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 81, - "sval": { - "sval": "00:00", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 39, - "stmt_location": 50, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 103, - "relname": "time_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 120, - "sval": { - "sval": "01:00", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 38, - "stmt_location": 90, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 201, - "relname": "time_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 218, - "sval": { - "sval": "02:03 PST", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 101, - "stmt_location": 129, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 244, - "relname": "time_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 261, - "sval": { - "sval": "11:59 EDT", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 42, - "stmt_location": 231, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 287, - "relname": "time_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 304, - "sval": { - "sval": "12:00", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 38, - "stmt_location": 274, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 326, - "relname": "time_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 343, - "sval": { - "sval": "12:01", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 38, - "stmt_location": 313, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 365, - "relname": "time_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 382, - "sval": { - "sval": "23:59", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 38, - "stmt_location": 352, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 404, - "relname": "time_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 421, - "sval": { - "sval": "11:59:59.99 PM", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 47, - "stmt_location": 391, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 453, - "relname": "time_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 470, - "sval": { - "sval": "2003-03-07 15:36:39 America/New_York", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 70, - "stmt_location": 439, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 523, - "relname": "time_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 540, - "sval": { - "sval": "2003-07-07 15:36:39 America/New_York", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 69, - "stmt_location": 510, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 648, - "relname": "time_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 665, - "sval": { - "sval": "15:36:39 America/New_York", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 113, - "stmt_location": 580, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 722, - "relname": "time_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 704, - "name": "Time", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 704, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 694, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 759, - "relname": "time_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 740, - "name": "Three", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 740, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 774, - }, - }, - "location": 777, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 779, - "sval": { - "sval": "05:06:07", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 58, - "stmt_location": 731, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 817, - "relname": "time_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 799, - "name": "Five", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 799, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 832, - }, - }, - "location": 835, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 837, - "sval": { - "sval": "05:06:07", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 57, - "stmt_location": 790, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 875, - "relname": "time_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 857, - "name": "None", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 857, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 890, - }, - }, - "location": 893, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 895, - "sval": { - "sval": "00:00", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 54, - "stmt_location": 848, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 931, - "relname": "time_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 912, - "name": "Eight", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 912, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 946, - }, - }, - "location": 949, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 952, - "sval": { - "sval": "00:00", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 56, - "stmt_location": 903, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1304, - "relname": "time_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1268, - "name": "Illegal", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1268, - }, - }, - "location": 1271, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1278, - "sval": { - "sval": "00:01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1273, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 352, - "stmt_location": 960, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/timetz.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 30, - "relname": "timetz_tbl", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 42, - "typeName": { - "location": 45, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timetz", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 50, - }, - }, - ], - }, - }, - }, - ], - }, - }, - "stmt_len": 68, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 83, - "relname": "timetz_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 102, - "sval": { - "sval": "00:01 PDT", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 45, - "stmt_location": 69, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 128, - "relname": "timetz_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 147, - "sval": { - "sval": "01:00 PDT", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 44, - "stmt_location": 115, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 173, - "relname": "timetz_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 192, - "sval": { - "sval": "02:03 PDT", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 44, - "stmt_location": 160, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 218, - "relname": "timetz_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 237, - "sval": { - "sval": "07:07 PST", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 44, - "stmt_location": 205, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 263, - "relname": "timetz_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 282, - "sval": { - "sval": "08:08 EDT", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 44, - "stmt_location": 250, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 308, - "relname": "timetz_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 327, - "sval": { - "sval": "11:59 PDT", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 44, - "stmt_location": 295, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 353, - "relname": "timetz_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 372, - "sval": { - "sval": "12:00 PDT", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 44, - "stmt_location": 340, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 398, - "relname": "timetz_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 417, - "sval": { - "sval": "12:01 PDT", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 44, - "stmt_location": 385, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 443, - "relname": "timetz_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 462, - "sval": { - "sval": "23:59 PDT", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 44, - "stmt_location": 430, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 488, - "relname": "timetz_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 507, - "sval": { - "sval": "11:59:59.99 PM PDT", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 53, - "stmt_location": 475, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 543, - "relname": "timetz_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 562, - "sval": { - "sval": "2003-03-07 15:36:39 America/New_York", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 72, - "stmt_location": 529, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 615, - "relname": "timetz_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 634, - "sval": { - "sval": "2003-07-07 15:36:39 America/New_York", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 71, - "stmt_location": 602, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 742, - "relname": "timetz_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 761, - "sval": { - "sval": "15:36:39 America/New_York", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 115, - "stmt_location": 674, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 820, - "relname": "timetz_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 799, - "name": "Time TZ", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 799, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 790, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 859, - "relname": "timetz_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 840, - "name": "Three", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 840, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 876, - }, - }, - "location": 879, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 881, - "sval": { - "sval": "05:06:07-07", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 63, - "stmt_location": 831, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 923, - "relname": "timetz_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 904, - "name": "Seven", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 904, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 940, - }, - }, - "location": 943, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 945, - "sval": { - "sval": "05:06:07-07", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 63, - "stmt_location": 895, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 986, - "relname": "timetz_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 968, - "name": "None", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 968, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1003, - }, - }, - "location": 1006, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1008, - "sval": { - "sval": "00:00-07", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 959, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1045, - "relname": "timetz_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1028, - "name": "Ten", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1028, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1062, - }, - }, - "location": 1065, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1068, - "sval": { - "sval": "00:00-07", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 59, - "stmt_location": 1019, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1438, - "relname": "timetz_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1387, - "name": "Illegal", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1387, - }, - }, - "location": 1390, - "name": [ - { - "String": { - "sval": "+", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1412, - "sval": { - "sval": "00:01", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1392, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timetz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 369, - "stmt_location": 1079, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/tinterval.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 33, - "relname": "tinterval_tbl", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 48, - "typeName": { - "location": 52, - "names": [ - { - "String": { - "sval": "tinterval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 176, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 161, - "relname": "tinterval_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 191, - "sval": { - "sval": "["-infinity" "infinity"]", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 155, - "stmt_location": 63, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 248, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 233, - "relname": "tinterval_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 263, - "sval": { - "sval": "["May 10, 1947 23:59:12" "Jan 14, 1973 03:14:21"]", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 96, - "stmt_location": 219, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 345, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 330, - "relname": "tinterval_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 360, - "sval": { - "sval": "["Sep 4, 1983 23:59:12" "Oct 4, 1983 23:59:12"]", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 94, - "stmt_location": 316, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 440, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 425, - "relname": "tinterval_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 455, - "sval": { - "sval": "["epoch" "Mon May 1 00:30:30 1995"]", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 83, - "stmt_location": 411, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 524, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 509, - "relname": "tinterval_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 539, - "sval": { - "sval": "["Feb 15 1990 12:15:03" "2001-09-23 11:12:13"]", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 93, - "stmt_location": 495, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 649, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 634, - "relname": "tinterval_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 664, - "sval": { - "sval": "["bad time specifications" ""]", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 108, - "stmt_location": 589, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 727, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 712, - "relname": "tinterval_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 742, - "sval": { - "sval": "["" "infinity"]", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 62, - "stmt_location": 698, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 818, - "relname": "tinterval_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 799, - "name": "five", - "val": { - "A_Const": { - "location": 799, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 811, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 811, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 70, - "stmt_location": 761, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "t", - }, - "inh": true, - "location": 877, - "relname": "tinterval_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 854, - "name": "one", - "val": { - "A_Const": { - "location": 854, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 865, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 865, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 902, - }, - }, - "location": 907, - "name": [ - { - "String": { - "sval": "#=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 910, - "sval": { - "sval": "@ 1 months", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 90, - "stmt_location": 832, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "t", - }, - "inh": true, - "location": 970, - "relname": "tinterval_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 945, - "name": "three", - "val": { - "A_Const": { - "location": 945, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 958, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 958, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 995, - }, - }, - "location": 1000, - "name": [ - { - "String": { - "sval": "#<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1004, - "sval": { - "sval": "@ 1 months", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 93, - "stmt_location": 923, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "t", - }, - "inh": true, - "location": 1062, - "relname": "tinterval_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1038, - "name": "zero", - "val": { - "A_Const": { - "location": 1038, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1050, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1050, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1087, - }, - }, - "location": 1092, - "name": [ - { - "String": { - "sval": "#<", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1095, - "sval": { - "sval": "@ 1 month", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 89, - "stmt_location": 1017, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "t", - }, - "inh": true, - "location": 1152, - "relname": "tinterval_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1129, - "name": "one", - "val": { - "A_Const": { - "location": 1129, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1140, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1140, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1177, - }, - }, - "location": 1182, - "name": [ - { - "String": { - "sval": "#<=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1186, - "sval": { - "sval": "@ 1 month", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 90, - "stmt_location": 1107, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "t", - }, - "inh": true, - "location": 1244, - "relname": "tinterval_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1219, - "name": "three", - "val": { - "A_Const": { - "location": 1219, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1232, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1232, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1269, - }, - }, - "location": 1274, - "name": [ - { - "String": { - "sval": "#>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1277, - "sval": { - "sval": "@ 1 year", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 89, - "stmt_location": 1198, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "t", - }, - "inh": true, - "location": 1335, - "relname": "tinterval_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1310, - "name": "three", - "val": { - "A_Const": { - "location": 1310, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1323, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1323, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1360, - }, - }, - "location": 1365, - "name": [ - { - "String": { - "sval": "#>=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 1369, - "sval": { - "sval": "@ 3 years", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 92, - "stmt_location": 1288, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "t1", - }, - "inh": true, - "location": 1428, - "relname": "tinterval_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1402, - "name": "three", - "val": { - "A_Const": { - "location": 1402, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1415, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 1415, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1454, - }, - }, - "location": 1460, - "name": [ - { - "String": { - "sval": "&&", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1481, - "sval": { - "sval": "["Aug 15 14:23:19 1983" "Sep 16 14:23:19 1983"]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1471, - "names": [ - { - "String": { - "sval": "tinterval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 149, - "stmt_location": 1381, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "t1", - }, - "inh": true, - "location": 1573, - "relname": "tinterval_tbl", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "t2", - }, - "inh": true, - "location": 1591, - "relname": "tinterval_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1671, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1678, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1540, - "name": "five", - "val": { - "A_Const": { - "location": 1540, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1552, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1552, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1559, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1559, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1617, - }, - }, - "location": 1623, - "name": [ - { - "String": { - "sval": "&&", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1626, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1645, - }, - }, - "location": 1651, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1653, - }, - }, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 1632, - }, - }, - }, - }, - "stmt_len": 152, - "stmt_location": 1531, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "t1", - }, - "inh": true, - "location": 1756, - "relname": "tinterval_tbl", - "relpersistence": "p", - }, - }, - { - "RangeVar": { - "alias": { - "aliasname": "t2", - }, - "inh": true, - "location": 1774, - "relname": "tinterval_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "interval1", - }, - }, - ], - "location": 1849, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "interval2", - }, - }, - ], - "location": 1860, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1693, - "name": "fourteen", - "val": { - "A_Const": { - "location": 1693, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1709, - "name": "interval1", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1709, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1729, - "name": "interval2", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1729, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1800, - }, - }, - "location": 1806, - "name": [ - { - "String": { - "sval": "&&", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1809, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1823, - }, - }, - "location": 1829, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t2", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1831, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 1819, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 1815, - }, - }, - }, - }, - "stmt_len": 185, - "stmt_location": 1684, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "t1", - }, - "inh": true, - "location": 1917, - "relname": "tinterval_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2036, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 1891, - "name": "five", - "val": { - "A_Const": { - "location": 1891, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1903, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1903, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 1947, - }, - }, - "location": 1953, - "name": [ - { - "String": { - "sval": "<<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1974, - "sval": { - "sval": "["Aug 15 14:23:19 1980" "Sep 16 14:23:19 1990"]", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1964, - "names": [ - { - "String": { - "sval": "tinterval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 1943, - }, - }, - }, - }, - "stmt_len": 171, - "stmt_location": 1870, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "t1", - }, - "inh": true, - "location": 2100, - "relname": "tinterval_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2232, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 2073, - "name": "three", - "val": { - "A_Const": { - "location": 2073, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 2086, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2086, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t1", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 2126, - }, - }, - "location": 2132, - "name": [ - { - "String": { - "sval": "&&", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2152, - "sval": { - "sval": "Aug 15 14:23:19 1983", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2144, - "names": [ - { - "String": { - "sval": "abstime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2175, - "name": [ - { - "String": { - "sval": "<#>", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2196, - "sval": { - "sval": "Sep 16 14:23:19 1983", - }, - }, - }, - "location": -1, - "typeName": { - "location": 2188, - "names": [ - { - "String": { - "sval": "abstime", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 195, - "stmt_location": 2042, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/tstypes.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 29, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 29, - "sval": { - "sval": "1", - }, - }, - }, - "location": 32, - "typeName": { - "location": 34, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 51, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 51, - "sval": { - "sval": "1 ", - }, - }, - }, - "location": 55, - "typeName": { - "location": 57, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 43, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 74, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 74, - "sval": { - "sval": " 1", - }, - }, - }, - "location": 78, - "typeName": { - "location": 80, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 66, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 97, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 97, - "sval": { - "sval": " 1 ", - }, - }, - }, - "location": 102, - "typeName": { - "location": 104, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 89, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 121, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 121, - "sval": { - "sval": "1 2", - }, - }, - }, - "location": 126, - "typeName": { - "location": 128, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 113, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 145, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 145, - "sval": { - "sval": "'1 2'", - }, - }, - }, - "location": 154, - "typeName": { - "location": 156, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 137, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 173, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 173, - "sval": { - "sval": "'1 \\'2'", - }, - }, - }, - "location": 187, - "typeName": { - "location": 189, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 165, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 206, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 206, - "sval": { - "sval": "'1 \\'2'3", - }, - }, - }, - "location": 221, - "typeName": { - "location": 223, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 198, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 240, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 240, - "sval": { - "sval": "'1 \\'2' 3", - }, - }, - }, - "location": 256, - "typeName": { - "location": 258, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 232, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 275, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 275, - "sval": { - "sval": "'1 \\'2' ' 3' 4 ", - }, - }, - }, - "location": 299, - "typeName": { - "location": 301, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 267, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 318, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 318, - "sval": { - "sval": "'\\\\as' ab\\c ab\\\\c AB\\\\\\c ab\\\\\\\\c", - }, - }, - }, - "location": 354, - "typeName": { - "location": 356, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 310, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 373, - "val": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 396, - "sval": { - "sval": "'\\\\as' ab\\c ab\\\\c AB\\\\\\c ab\\\\\\\\c", - }, - }, - }, - "location": 432, - "typeName": { - "location": 434, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "tsvectorout", - }, - }, - ], - "location": 384, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "tsvectorin", - }, - }, - ], - "location": 373, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 79, - "stmt_location": 365, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 453, - "val": { - "A_Const": { - "location": 453, - "sval": { - "sval": "'w':4A,3B,2C,1D,5 a:8", - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 445, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 487, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 487, - "sval": { - "sval": "a:3A b:2a", - }, - }, - }, - "location": 498, - "typeName": { - "location": 500, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 509, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 512, - "sval": { - "sval": "ba:1234 a:1B", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 479, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 556, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 556, - "sval": { - "sval": "1", - }, - }, - }, - "location": 559, - "typeName": { - "location": 561, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 41, - "stmt_location": 527, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 577, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 577, - "sval": { - "sval": "1 ", - }, - }, - }, - "location": 581, - "typeName": { - "location": 583, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 21, - "stmt_location": 569, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 599, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 599, - "sval": { - "sval": " 1", - }, - }, - }, - "location": 603, - "typeName": { - "location": 605, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 21, - "stmt_location": 591, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 621, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 621, - "sval": { - "sval": " 1 ", - }, - }, - }, - "location": 626, - "typeName": { - "location": 628, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 613, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 644, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 644, - "sval": { - "sval": "'1 2'", - }, - }, - }, - "location": 653, - "typeName": { - "location": 655, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 636, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 671, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 671, - "sval": { - "sval": "'1 \\'2'", - }, - }, - }, - "location": 685, - "typeName": { - "location": 687, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 663, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 703, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 703, - "sval": { - "sval": "!1", - }, - }, - }, - "location": 707, - "typeName": { - "location": 709, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 21, - "stmt_location": 695, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 725, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 725, - "sval": { - "sval": "1|2", - }, - }, - }, - "location": 730, - "typeName": { - "location": 732, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 717, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 748, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 748, - "sval": { - "sval": "1|!2", - }, - }, - }, - "location": 754, - "typeName": { - "location": 756, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 740, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 772, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 772, - "sval": { - "sval": "!1|2", - }, - }, - }, - "location": 778, - "typeName": { - "location": 780, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 764, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 796, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 796, - "sval": { - "sval": "!1|!2", - }, - }, - }, - "location": 803, - "typeName": { - "location": 805, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 788, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 821, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 821, - "sval": { - "sval": "!(!1|!2)", - }, - }, - }, - "location": 831, - "typeName": { - "location": 833, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 813, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 849, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 849, - "sval": { - "sval": "!(!1|2)", - }, - }, - }, - "location": 858, - "typeName": { - "location": 860, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 841, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 876, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 876, - "sval": { - "sval": "!(1|!2)", - }, - }, - }, - "location": 885, - "typeName": { - "location": 887, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 868, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 903, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 903, - "sval": { - "sval": "!(1|2)", - }, - }, - }, - "location": 911, - "typeName": { - "location": 913, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 895, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 929, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 929, - "sval": { - "sval": "1&2", - }, - }, - }, - "location": 934, - "typeName": { - "location": 936, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 22, - "stmt_location": 921, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 952, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 952, - "sval": { - "sval": "!1&2", - }, - }, - }, - "location": 958, - "typeName": { - "location": 960, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 944, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 976, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 976, - "sval": { - "sval": "1&!2", - }, - }, - }, - "location": 982, - "typeName": { - "location": 984, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 23, - "stmt_location": 968, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1000, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1000, - "sval": { - "sval": "!1&!2", - }, - }, - }, - "location": 1007, - "typeName": { - "location": 1009, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 992, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1025, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1025, - "sval": { - "sval": "(1&2)", - }, - }, - }, - "location": 1032, - "typeName": { - "location": 1034, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 1017, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1050, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1050, - "sval": { - "sval": "1&(2)", - }, - }, - }, - "location": 1057, - "typeName": { - "location": 1059, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 1042, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1075, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1075, - "sval": { - "sval": "!(1)&2", - }, - }, - }, - "location": 1083, - "typeName": { - "location": 1085, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 1067, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1101, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1101, - "sval": { - "sval": "!(1&2)", - }, - }, - }, - "location": 1109, - "typeName": { - "location": 1111, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 1093, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1127, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1127, - "sval": { - "sval": "1|2&3", - }, - }, - }, - "location": 1134, - "typeName": { - "location": 1136, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 24, - "stmt_location": 1119, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1152, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1152, - "sval": { - "sval": "1|(2&3)", - }, - }, - }, - "location": 1161, - "typeName": { - "location": 1163, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 1144, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1179, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1179, - "sval": { - "sval": "(1|2)&3", - }, - }, - }, - "location": 1188, - "typeName": { - "location": 1190, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 26, - "stmt_location": 1171, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1206, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1206, - "sval": { - "sval": "1|2&!3", - }, - }, - }, - "location": 1214, - "typeName": { - "location": 1216, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 1198, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1232, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1232, - "sval": { - "sval": "1|!2&3", - }, - }, - }, - "location": 1240, - "typeName": { - "location": 1242, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 1224, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1258, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1258, - "sval": { - "sval": "!1|2&3", - }, - }, - }, - "location": 1266, - "typeName": { - "location": 1268, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 25, - "stmt_location": 1250, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1284, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1284, - "sval": { - "sval": "!1|(2&3)", - }, - }, - }, - "location": 1294, - "typeName": { - "location": 1296, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 1276, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1312, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1312, - "sval": { - "sval": "!(1|2)&3", - }, - }, - }, - "location": 1322, - "typeName": { - "location": 1324, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 1304, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1340, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1340, - "sval": { - "sval": "(!1|2)&3", - }, - }, - }, - "location": 1350, - "typeName": { - "location": 1352, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 1332, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1368, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1368, - "sval": { - "sval": "1|(2|(4|(5|6)))", - }, - }, - }, - "location": 1385, - "typeName": { - "location": 1387, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 1360, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1403, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1403, - "sval": { - "sval": "1|2|4|5|6", - }, - }, - }, - "location": 1414, - "typeName": { - "location": 1416, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 1395, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1432, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1432, - "sval": { - "sval": "1&(2&(4&(5&6)))", - }, - }, - }, - "location": 1449, - "typeName": { - "location": 1451, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 1424, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1467, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1467, - "sval": { - "sval": "1&2&4&5&6", - }, - }, - }, - "location": 1478, - "typeName": { - "location": 1480, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 1459, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1496, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1496, - "sval": { - "sval": "1&(2&(4&(5|6)))", - }, - }, - }, - "location": 1513, - "typeName": { - "location": 1515, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 1488, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1531, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1531, - "sval": { - "sval": "1&(2&(4&(5|!6)))", - }, - }, - }, - "location": 1549, - "typeName": { - "location": 1551, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 1523, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1567, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1567, - "sval": { - "sval": "1&('2'&(' 4'&(\\|5 | '6 \\' !|&')))", - }, - }, - }, - "location": 1612, - "typeName": { - "location": 1614, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 1559, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1630, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1630, - "sval": { - "sval": "'\\\\as'", - }, - }, - }, - "location": 1640, - "typeName": { - "location": 1642, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 1622, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1658, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1658, - "sval": { - "sval": "a:* & nbb:*ac | doo:a* | goo", - }, - }, - }, - "location": 1688, - "typeName": { - "location": 1690, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 1650, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1732, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1732, - "sval": { - "sval": "a <-> (b|c)", - }, - }, - }, - "location": 1745, - "typeName": { - "location": 1747, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 1698, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1763, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1763, - "sval": { - "sval": "(a|b) <-> c", - }, - }, - }, - "location": 1776, - "typeName": { - "location": 1778, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 1755, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1794, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1794, - "sval": { - "sval": "(a|b) <-> (d|c)", - }, - }, - }, - "location": 1811, - "typeName": { - "location": 1813, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 1786, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1830, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1830, - "sval": { - "sval": "a <-> (b&c)", - }, - }, - }, - "location": 1843, - "typeName": { - "location": 1845, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 1821, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1861, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1861, - "sval": { - "sval": "(a&b) <-> c", - }, - }, - }, - "location": 1874, - "typeName": { - "location": 1876, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 30, - "stmt_location": 1853, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1892, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1892, - "sval": { - "sval": "(a&b) <-> (d&c)", - }, - }, - }, - "location": 1909, - "typeName": { - "location": 1911, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 34, - "stmt_location": 1884, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1928, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1928, - "sval": { - "sval": "a <-> !b", - }, - }, - }, - "location": 1938, - "typeName": { - "location": 1940, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 1919, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1956, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1956, - "sval": { - "sval": "!a <-> b", - }, - }, - }, - "location": 1966, - "typeName": { - "location": 1968, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 27, - "stmt_location": 1948, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1984, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1984, - "sval": { - "sval": "!a <-> !b", - }, - }, - }, - "location": 1995, - "typeName": { - "location": 1997, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 28, - "stmt_location": 1976, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2014, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2014, - "sval": { - "sval": "a <-> !(b&c)", - }, - }, - }, - "location": 2028, - "typeName": { - "location": 2030, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 2005, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2046, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2046, - "sval": { - "sval": "a <-> !(b|c)", - }, - }, - }, - "location": 2060, - "typeName": { - "location": 2062, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 31, - "stmt_location": 2038, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2079, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2079, - "sval": { - "sval": "!(a&b) <-> c", - }, - }, - }, - "location": 2093, - "typeName": { - "location": 2095, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 2070, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2112, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2112, - "sval": { - "sval": "!(a|b) <-> c", - }, - }, - }, - "location": 2126, - "typeName": { - "location": 2128, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 2103, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2146, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2146, - "sval": { - "sval": "(!a|b) <-> c", - }, - }, - }, - "location": 2160, - "typeName": { - "location": 2162, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 2136, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2179, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2179, - "sval": { - "sval": "(!a&b) <-> c", - }, - }, - }, - "location": 2193, - "typeName": { - "location": 2195, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 2170, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2212, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2212, - "sval": { - "sval": "c <-> (!a|b)", - }, - }, - }, - "location": 2226, - "typeName": { - "location": 2228, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 2203, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2245, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2245, - "sval": { - "sval": "c <-> (!a&b)", - }, - }, - }, - "location": 2259, - "typeName": { - "location": 2261, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 2236, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2279, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2279, - "sval": { - "sval": "(a|b) <-> !c", - }, - }, - }, - "location": 2293, - "typeName": { - "location": 2295, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 33, - "stmt_location": 2269, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2312, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2312, - "sval": { - "sval": "(a&b) <-> !c", - }, - }, - }, - "location": 2326, - "typeName": { - "location": 2328, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 2303, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2345, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2345, - "sval": { - "sval": "!c <-> (a|b)", - }, - }, - }, - "location": 2359, - "typeName": { - "location": 2361, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 2336, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2378, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2378, - "sval": { - "sval": "!c <-> (a&b)", - }, - }, - }, - "location": 2392, - "typeName": { - "location": 2394, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 2369, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2425, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "location": 2425, - "sval": { - "sval": "a", - }, - }, - }, - "location": 2429, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2431, - "sval": { - "sval": "b & c", - }, - }, - }, - "location": 2438, - "typeName": { - "location": 2440, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 55, - "stmt_location": 2402, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2466, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "location": 2466, - "sval": { - "sval": "a", - }, - }, - }, - "location": 2470, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2472, - "sval": { - "sval": "b & c", - }, - }, - }, - "location": 2479, - "typeName": { - "location": 2481, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 41, - "stmt_location": 2458, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2508, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "location": 2508, - "sval": { - "sval": "a | f", - }, - }, - }, - "location": 2516, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2518, - "sval": { - "sval": "b & c", - }, - }, - }, - "location": 2525, - "typeName": { - "location": 2527, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 2500, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2554, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "location": 2554, - "sval": { - "sval": "a | ff", - }, - }, - }, - "location": 2563, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2565, - "sval": { - "sval": "b & c", - }, - }, - }, - "location": 2572, - "typeName": { - "location": 2574, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 2546, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2601, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "location": 2601, - "sval": { - "sval": "a | f | g", - }, - }, - }, - "location": 2613, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2615, - "sval": { - "sval": "b & c", - }, - }, - }, - "location": 2622, - "typeName": { - "location": 2624, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 49, - "stmt_location": 2593, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2668, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2677, - "sval": { - "sval": "new", - }, - }, - }, - "location": 2682, - "typeName": { - "location": 2684, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "numnode", - }, - }, - ], - "location": 2668, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 50, - "stmt_location": 2643, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2702, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2711, - "sval": { - "sval": "new & york", - }, - }, - }, - "location": 2723, - "typeName": { - "location": 2725, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "numnode", - }, - }, - ], - "location": 2702, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 40, - "stmt_location": 2694, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2743, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2752, - "sval": { - "sval": "new & york | qwery", - }, - }, - }, - "location": 2772, - "typeName": { - "location": 2774, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "numnode", - }, - }, - ], - "location": 2743, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 48, - "stmt_location": 2735, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2793, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2793, - "sval": { - "sval": "foo & bar", - }, - }, - }, - "location": 2804, - "typeName": { - "location": 2806, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2814, - "name": [ - { - "String": { - "sval": "&&", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2817, - "sval": { - "sval": "asd", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 2784, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2831, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2831, - "sval": { - "sval": "foo & bar", - }, - }, - }, - "location": 2842, - "typeName": { - "location": 2844, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2852, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2855, - "sval": { - "sval": "asd & fg", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 2823, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2874, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2874, - "sval": { - "sval": "foo & bar", - }, - }, - }, - "location": 2885, - "typeName": { - "location": 2887, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2895, - "name": [ - { - "String": { - "sval": "||", - }, - }, - ], - "rexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "location": 2898, - "name": [ - { - "String": { - "sval": "!!", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2900, - "sval": { - "sval": "asd & fg", - }, - }, - }, - "location": 2910, - "typeName": { - "location": 2912, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 2866, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2928, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2928, - "sval": { - "sval": "foo & bar", - }, - }, - }, - "location": 2939, - "typeName": { - "location": 2941, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 2949, - "name": [ - { - "String": { - "sval": "&&", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 2952, - "sval": { - "sval": "asd | fg", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 2920, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 2971, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "location": 2971, - "sval": { - "sval": "a", - }, - }, - }, - "location": 2975, - "name": [ - { - "String": { - "sval": "<->", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 2979, - "sval": { - "sval": "b & d", - }, - }, - }, - "location": 2986, - "typeName": { - "location": 2988, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 2963, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3004, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "location": 3004, - "sval": { - "sval": "a & g", - }, - }, - }, - "location": 3012, - "name": [ - { - "String": { - "sval": "<->", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3016, - "sval": { - "sval": "b & d", - }, - }, - }, - "location": 3023, - "typeName": { - "location": 3025, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 2996, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3041, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "location": 3041, - "sval": { - "sval": "a & g", - }, - }, - }, - "location": 3049, - "name": [ - { - "String": { - "sval": "<->", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3053, - "sval": { - "sval": "b | d", - }, - }, - }, - "location": 3060, - "typeName": { - "location": 3062, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 3033, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3078, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Const": { - "location": 3078, - "sval": { - "sval": "a & g", - }, - }, - }, - "location": 3086, - "name": [ - { - "String": { - "sval": "<->", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3090, - "sval": { - "sval": "b <-> d", - }, - }, - }, - "location": 3099, - "typeName": { - "location": 3101, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 38, - "stmt_location": 3070, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3117, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 3132, - "sval": { - "sval": "a <3> g", - }, - }, - }, - { - "A_Const": { - "location": 3143, - "sval": { - "sval": "b & d", - }, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 3152, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "tsquery_phrase", - }, - }, - ], - "location": 3117, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 46, - "stmt_location": 3109, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3197, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3197, - "sval": { - "sval": "a b:89 ca:23A,64b d:34c", - }, - }, - }, - "location": 3223, - "typeName": { - "location": 3225, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3234, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3237, - "sval": { - "sval": "d:AC & ca", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 102, - "stmt_location": 3156, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3267, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3267, - "sval": { - "sval": "a b:89 ca:23A,64b d:34c", - }, - }, - }, - "location": 3293, - "typeName": { - "location": 3295, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3304, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3307, - "sval": { - "sval": "d:AC & ca:B", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 71, - "stmt_location": 3259, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3339, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3339, - "sval": { - "sval": "a b:89 ca:23A,64b d:34c", - }, - }, - }, - "location": 3365, - "typeName": { - "location": 3367, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3376, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3379, - "sval": { - "sval": "d:AC & ca:A", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 71, - "stmt_location": 3331, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3411, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3411, - "sval": { - "sval": "a b:89 ca:23A,64b d:34c", - }, - }, - }, - "location": 3437, - "typeName": { - "location": 3439, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3448, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3451, - "sval": { - "sval": "d:AC & ca:C", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 72, - "stmt_location": 3403, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3484, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3484, - "sval": { - "sval": "a b:89 ca:23A,64b d:34c", - }, - }, - }, - "location": 3510, - "typeName": { - "location": 3512, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3521, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3524, - "sval": { - "sval": "d:AC & ca:CB", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 72, - "stmt_location": 3476, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3557, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3557, - "sval": { - "sval": "a b:89 ca:23A,64b d:34c", - }, - }, - }, - "location": 3583, - "typeName": { - "location": 3585, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3594, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3597, - "sval": { - "sval": "d:AC & c:*C", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 72, - "stmt_location": 3549, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3630, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3630, - "sval": { - "sval": "a b:89 ca:23A,64b d:34c", - }, - }, - }, - "location": 3656, - "typeName": { - "location": 3658, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3667, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3670, - "sval": { - "sval": "d:AC & c:*CB", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 72, - "stmt_location": 3622, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3703, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3703, - "sval": { - "sval": "a b:89 ca:23A,64b cb:80c d:34c", - }, - }, - }, - "location": 3736, - "typeName": { - "location": 3738, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3747, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3750, - "sval": { - "sval": "d:AC & c:*C", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 78, - "stmt_location": 3695, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3782, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3782, - "sval": { - "sval": "a b:89 ca:23A,64c cb:80b d:34c", - }, - }, - }, - "location": 3815, - "typeName": { - "location": 3817, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3826, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3829, - "sval": { - "sval": "d:AC & c:*C", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 78, - "stmt_location": 3774, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3861, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3861, - "sval": { - "sval": "a b:89 ca:23A,64c cb:80b d:34c", - }, - }, - }, - "location": 3894, - "typeName": { - "location": 3896, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3905, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 3908, - "sval": { - "sval": "d:AC & c:*B", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 78, - "stmt_location": 3853, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 3941, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3941, - "sval": { - "sval": "supernova", - }, - }, - }, - "location": 3952, - "typeName": { - "location": 3954, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 3963, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 3966, - "sval": { - "sval": "super", - }, - }, - }, - "location": 3973, - "typeName": { - "location": 3975, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 3932, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4002, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4002, - "sval": { - "sval": "supeanova supernova", - }, - }, - }, - "location": 4023, - "typeName": { - "location": 4025, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4034, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4037, - "sval": { - "sval": "super", - }, - }, - }, - "location": 4044, - "typeName": { - "location": 4046, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 70, - "stmt_location": 3994, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4073, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4073, - "sval": { - "sval": "supeznova supernova", - }, - }, - }, - "location": 4094, - "typeName": { - "location": 4096, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4105, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4108, - "sval": { - "sval": "super", - }, - }, - }, - "location": 4115, - "typeName": { - "location": 4117, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 70, - "stmt_location": 4065, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4144, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4144, - "sval": { - "sval": "supernova", - }, - }, - }, - "location": 4155, - "typeName": { - "location": 4157, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4166, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4169, - "sval": { - "sval": "super:*", - }, - }, - }, - "location": 4178, - "typeName": { - "location": 4180, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 4136, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4206, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4206, - "sval": { - "sval": "supeanova supernova", - }, - }, - }, - "location": 4227, - "typeName": { - "location": 4229, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4238, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4241, - "sval": { - "sval": "super:*", - }, - }, - }, - "location": 4250, - "typeName": { - "location": 4252, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 71, - "stmt_location": 4198, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4278, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4278, - "sval": { - "sval": "supeznova supernova", - }, - }, - }, - "location": 4299, - "typeName": { - "location": 4301, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 4310, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 4313, - "sval": { - "sval": "super:*", - }, - }, - }, - "location": 4322, - "typeName": { - "location": 4324, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 71, - "stmt_location": 4270, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4367, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 4379, - "sval": { - "sval": "simple", - }, - }, - }, - { - "A_Const": { - "location": 4389, - "sval": { - "sval": "1 2 3 1", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_tsvector", - }, - }, - ], - "location": 4367, - }, - }, - "location": 4400, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4403, - "sval": { - "sval": "1 <-> 2", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 80, - "stmt_location": 4342, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4431, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 4443, - "sval": { - "sval": "simple", - }, - }, - }, - { - "A_Const": { - "location": 4453, - "sval": { - "sval": "1 2 3 1", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_tsvector", - }, - }, - ], - "location": 4431, - }, - }, - "location": 4464, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4467, - "sval": { - "sval": "1 <2> 2", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 4423, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4495, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 4507, - "sval": { - "sval": "simple", - }, - }, - }, - { - "A_Const": { - "location": 4517, - "sval": { - "sval": "1 2 3 1", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_tsvector", - }, - }, - ], - "location": 4495, - }, - }, - "location": 4528, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4531, - "sval": { - "sval": "1 <-> 3", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 64, - "stmt_location": 4487, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4560, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 4572, - "sval": { - "sval": "simple", - }, - }, - }, - { - "A_Const": { - "location": 4582, - "sval": { - "sval": "1 2 3 1", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_tsvector", - }, - }, - ], - "location": 4560, - }, - }, - "location": 4593, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4596, - "sval": { - "sval": "1 <2> 3", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 4552, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4625, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 4637, - "sval": { - "sval": "simple", - }, - }, - }, - { - "A_Const": { - "location": 4647, - "sval": { - "sval": "1 2 11 3", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_tsvector", - }, - }, - ], - "location": 4625, - }, - }, - "location": 4659, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4662, - "sval": { - "sval": "1 <-> 3", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 66, - "stmt_location": 4616, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4691, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 4703, - "sval": { - "sval": "simple", - }, - }, - }, - { - "A_Const": { - "location": 4713, - "sval": { - "sval": "1 2 11 3", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_tsvector", - }, - }, - ], - "location": 4691, - }, - }, - "location": 4725, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4728, - "sval": { - "sval": "1:* <-> 3", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 66, - "stmt_location": 4683, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4759, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 4771, - "sval": { - "sval": "simple", - }, - }, - }, - { - "A_Const": { - "location": 4781, - "sval": { - "sval": "1 2 3 4", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_tsvector", - }, - }, - ], - "location": 4759, - }, - }, - "location": 4792, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4795, - "sval": { - "sval": "1 <-> 2 <-> 3", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 70, - "stmt_location": 4750, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4829, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 4841, - "sval": { - "sval": "simple", - }, - }, - }, - { - "A_Const": { - "location": 4851, - "sval": { - "sval": "1 2 3 4", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_tsvector", - }, - }, - ], - "location": 4829, - }, - }, - "location": 4862, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4865, - "sval": { - "sval": "(1 <-> 2) <-> 3", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 71, - "stmt_location": 4821, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4901, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 4913, - "sval": { - "sval": "simple", - }, - }, - }, - { - "A_Const": { - "location": 4923, - "sval": { - "sval": "1 2 3 4", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_tsvector", - }, - }, - ], - "location": 4901, - }, - }, - "location": 4934, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 4937, - "sval": { - "sval": "1 <-> (2 <-> 3)", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 72, - "stmt_location": 4893, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 4974, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 4986, - "sval": { - "sval": "simple", - }, - }, - }, - { - "A_Const": { - "location": 4996, - "sval": { - "sval": "1 2 3 4", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_tsvector", - }, - }, - ], - "location": 4974, - }, - }, - "location": 5007, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 5010, - "sval": { - "sval": "1 <2> (2 <-> 3)", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 71, - "stmt_location": 4966, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5046, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 5058, - "sval": { - "sval": "simple", - }, - }, - }, - { - "A_Const": { - "location": 5068, - "sval": { - "sval": "1 2 1 2 3 4", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_tsvector", - }, - }, - ], - "location": 5046, - }, - }, - "location": 5083, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 5086, - "sval": { - "sval": "(1 <-> 2) <-> 3", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 75, - "stmt_location": 5038, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5122, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 5134, - "sval": { - "sval": "simple", - }, - }, - }, - { - "A_Const": { - "location": 5144, - "sval": { - "sval": "1 2 1 2 3 4", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_tsvector", - }, - }, - ], - "location": 5122, - }, - }, - "location": 5159, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 5162, - "sval": { - "sval": "1 <-> 2 <-> 3", - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 5114, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5207, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5215, - "sval": { - "sval": " a:1 s:2C d g", - }, - }, - }, - "location": 5230, - "typeName": { - "location": 5232, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 5242, - "sval": { - "sval": "a | s", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_rank", - }, - }, - ], - "location": 5207, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 5188, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5259, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5267, - "sval": { - "sval": " a:1 sa:2C d g", - }, - }, - }, - "location": 5283, - "typeName": { - "location": 5285, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 5295, - "sval": { - "sval": "a | s", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_rank", - }, - }, - ], - "location": 5259, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 52, - "stmt_location": 5251, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5312, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5320, - "sval": { - "sval": " a:1 sa:2C d g", - }, - }, - }, - "location": 5336, - "typeName": { - "location": 5338, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 5348, - "sval": { - "sval": "a | s:*", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_rank", - }, - }, - ], - "location": 5312, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 5304, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5367, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5375, - "sval": { - "sval": " a:1 sa:2C d g", - }, - }, - }, - "location": 5391, - "typeName": { - "location": 5393, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 5403, - "sval": { - "sval": "a | sa:*", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_rank", - }, - }, - ], - "location": 5367, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 55, - "stmt_location": 5359, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5423, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5431, - "sval": { - "sval": " a:1 s:2B d g", - }, - }, - }, - "location": 5446, - "typeName": { - "location": 5448, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 5458, - "sval": { - "sval": "a | s", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_rank", - }, - }, - ], - "location": 5423, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 5415, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5475, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5483, - "sval": { - "sval": " a:1 s:2 d g", - }, - }, - }, - "location": 5497, - "typeName": { - "location": 5499, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 5509, - "sval": { - "sval": "a | s", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_rank", - }, - }, - ], - "location": 5475, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 50, - "stmt_location": 5467, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5526, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5534, - "sval": { - "sval": " a:1 s:2C d g", - }, - }, - }, - "location": 5549, - "typeName": { - "location": 5551, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 5561, - "sval": { - "sval": "a & s", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_rank", - }, - }, - ], - "location": 5526, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 5518, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5578, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5586, - "sval": { - "sval": " a:1 s:2B d g", - }, - }, - }, - "location": 5601, - "typeName": { - "location": 5603, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 5613, - "sval": { - "sval": "a & s", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_rank", - }, - }, - ], - "location": 5578, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 51, - "stmt_location": 5570, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5630, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5638, - "sval": { - "sval": " a:1 s:2 d g", - }, - }, - }, - "location": 5652, - "typeName": { - "location": 5654, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 5664, - "sval": { - "sval": "a & s", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_rank", - }, - }, - ], - "location": 5630, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 50, - "stmt_location": 5622, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5682, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5693, - "sval": { - "sval": " a:1 s:2C d g", - }, - }, - }, - "location": 5708, - "typeName": { - "location": 5710, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 5720, - "sval": { - "sval": "a | s", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_rank_cd", - }, - }, - ], - "location": 5682, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 55, - "stmt_location": 5673, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5737, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5748, - "sval": { - "sval": " a:1 sa:2C d g", - }, - }, - }, - "location": 5764, - "typeName": { - "location": 5766, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 5776, - "sval": { - "sval": "a | s", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_rank_cd", - }, - }, - ], - "location": 5737, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 55, - "stmt_location": 5729, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5793, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5804, - "sval": { - "sval": " a:1 sa:2C d g", - }, - }, - }, - "location": 5820, - "typeName": { - "location": 5822, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 5832, - "sval": { - "sval": "a | s:*", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_rank_cd", - }, - }, - ], - "location": 5793, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 5785, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5851, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5862, - "sval": { - "sval": " a:1 sa:2C d g", - }, - }, - }, - "location": 5878, - "typeName": { - "location": 5880, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 5890, - "sval": { - "sval": "a | sa:*", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_rank_cd", - }, - }, - ], - "location": 5851, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 58, - "stmt_location": 5843, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5910, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5921, - "sval": { - "sval": " a:1 sa:3C sab:2c d g", - }, - }, - }, - "location": 5944, - "typeName": { - "location": 5946, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 5956, - "sval": { - "sval": "a | sa:*", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_rank_cd", - }, - }, - ], - "location": 5910, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 65, - "stmt_location": 5902, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 5976, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 5987, - "sval": { - "sval": " a:1 s:2B d g", - }, - }, - }, - "location": 6002, - "typeName": { - "location": 6004, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 6014, - "sval": { - "sval": "a | s", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_rank_cd", - }, - }, - ], - "location": 5976, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 5968, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6031, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6042, - "sval": { - "sval": " a:1 s:2 d g", - }, - }, - }, - "location": 6056, - "typeName": { - "location": 6058, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 6068, - "sval": { - "sval": "a | s", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_rank_cd", - }, - }, - ], - "location": 6031, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 6023, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6085, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6096, - "sval": { - "sval": " a:1 s:2C d g", - }, - }, - }, - "location": 6111, - "typeName": { - "location": 6113, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 6123, - "sval": { - "sval": "a & s", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_rank_cd", - }, - }, - ], - "location": 6085, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 6077, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6140, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6151, - "sval": { - "sval": " a:1 s:2B d g", - }, - }, - }, - "location": 6166, - "typeName": { - "location": 6168, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 6178, - "sval": { - "sval": "a & s", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_rank_cd", - }, - }, - ], - "location": 6140, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 6132, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6195, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6206, - "sval": { - "sval": " a:1 s:2 d g", - }, - }, - }, - "location": 6220, - "typeName": { - "location": 6222, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 6232, - "sval": { - "sval": "a & s", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_rank_cd", - }, - }, - ], - "location": 6195, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 53, - "stmt_location": 6187, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6250, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6261, - "sval": { - "sval": " a:1 s:2A d g", - }, - }, - }, - "location": 6276, - "typeName": { - "location": 6278, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 6288, - "sval": { - "sval": "a <-> s", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_rank_cd", - }, - }, - ], - "location": 6250, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 6241, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6307, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6318, - "sval": { - "sval": " a:1 s:2C d g", - }, - }, - }, - "location": 6333, - "typeName": { - "location": 6335, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 6345, - "sval": { - "sval": "a <-> s", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_rank_cd", - }, - }, - ], - "location": 6307, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 56, - "stmt_location": 6299, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6364, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6375, - "sval": { - "sval": " a:1 s:2 d g", - }, - }, - }, - "location": 6389, - "typeName": { - "location": 6391, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 6401, - "sval": { - "sval": "a <-> s", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_rank_cd", - }, - }, - ], - "location": 6364, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 55, - "stmt_location": 6356, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6420, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6431, - "sval": { - "sval": " a:1 s:2 d:2A g", - }, - }, - }, - "location": 6448, - "typeName": { - "location": 6450, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 6460, - "sval": { - "sval": "a <-> s", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_rank_cd", - }, - }, - ], - "location": 6420, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 58, - "stmt_location": 6412, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6479, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6490, - "sval": { - "sval": " a:1 s:2,3A d:2A g", - }, - }, - }, - "location": 6510, - "typeName": { - "location": 6512, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 6522, - "sval": { - "sval": "a <2> s:A", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_rank_cd", - }, - }, - ], - "location": 6479, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 6471, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6543, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6554, - "sval": { - "sval": " a:1 b:2 s:3A d:2A g", - }, - }, - }, - "location": 6576, - "typeName": { - "location": 6578, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 6588, - "sval": { - "sval": "a <2> s:A", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_rank_cd", - }, - }, - ], - "location": 6543, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 65, - "stmt_location": 6535, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6609, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6620, - "sval": { - "sval": " a:1 sa:2D sb:2A g", - }, - }, - }, - "location": 6640, - "typeName": { - "location": 6642, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 6652, - "sval": { - "sval": "a <-> s:*", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_rank_cd", - }, - }, - ], - "location": 6609, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 6601, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6673, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6684, - "sval": { - "sval": " a:1 sa:2A sb:2D g", - }, - }, - }, - "location": 6704, - "typeName": { - "location": 6706, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 6716, - "sval": { - "sval": "a <-> s:*", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_rank_cd", - }, - }, - ], - "location": 6673, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 63, - "stmt_location": 6665, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6737, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6748, - "sval": { - "sval": " a:1 sa:2A sb:2D g", - }, - }, - }, - "location": 6768, - "typeName": { - "location": 6770, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 6780, - "sval": { - "sval": "a <-> s:* <-> sa:A", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_rank_cd", - }, - }, - ], - "location": 6737, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 72, - "stmt_location": 6729, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6810, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6821, - "sval": { - "sval": " a:1 sa:2A sb:2D g", - }, - }, - }, - "location": 6841, - "typeName": { - "location": 6843, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 6853, - "sval": { - "sval": "a <-> s:* <-> sa:B", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_rank_cd", - }, - }, - ], - "location": 6810, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 72, - "stmt_location": 6802, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6884, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6884, - "sval": { - "sval": "a:1 b:2", - }, - }, - }, - "location": 6893, - "typeName": { - "location": 6895, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 6904, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6907, - "sval": { - "sval": "a <-> b", - }, - }, - }, - "location": 6916, - "typeName": { - "location": 6918, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 60, - "stmt_location": 6875, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 6944, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6944, - "sval": { - "sval": "a:1 b:2", - }, - }, - }, - "location": 6953, - "typeName": { - "location": 6955, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 6964, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 6967, - "sval": { - "sval": "a <0> b", - }, - }, - }, - "location": 6976, - "typeName": { - "location": 6978, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 60, - "stmt_location": 6936, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7005, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7005, - "sval": { - "sval": "a:1 b:2", - }, - }, - }, - "location": 7014, - "typeName": { - "location": 7016, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 7025, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7028, - "sval": { - "sval": "a <1> b", - }, - }, - }, - "location": 7037, - "typeName": { - "location": 7039, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 6997, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7065, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7065, - "sval": { - "sval": "a:1 b:2", - }, - }, - }, - "location": 7074, - "typeName": { - "location": 7076, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 7085, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7088, - "sval": { - "sval": "a <2> b", - }, - }, - }, - "location": 7097, - "typeName": { - "location": 7099, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 7057, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7125, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7125, - "sval": { - "sval": "a:1 b:3", - }, - }, - }, - "location": 7134, - "typeName": { - "location": 7136, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 7145, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7148, - "sval": { - "sval": "a <-> b", - }, - }, - }, - "location": 7157, - "typeName": { - "location": 7159, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 60, - "stmt_location": 7117, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7186, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7186, - "sval": { - "sval": "a:1 b:3", - }, - }, - }, - "location": 7195, - "typeName": { - "location": 7197, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 7206, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7209, - "sval": { - "sval": "a <0> b", - }, - }, - }, - "location": 7218, - "typeName": { - "location": 7220, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 60, - "stmt_location": 7178, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7247, - "name": "false", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7247, - "sval": { - "sval": "a:1 b:3", - }, - }, - }, - "location": 7256, - "typeName": { - "location": 7258, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 7267, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7270, - "sval": { - "sval": "a <1> b", - }, - }, - }, - "location": 7279, - "typeName": { - "location": 7281, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 60, - "stmt_location": 7239, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7308, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7308, - "sval": { - "sval": "a:1 b:3", - }, - }, - }, - "location": 7317, - "typeName": { - "location": 7319, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 7328, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7331, - "sval": { - "sval": "a <2> b", - }, - }, - }, - "location": 7340, - "typeName": { - "location": 7342, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 7300, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7368, - "name": "true", - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7368, - "sval": { - "sval": "a:1 b:3", - }, - }, - }, - "location": 7377, - "typeName": { - "location": 7379, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "location": 7388, - "name": [ - { - "String": { - "sval": "@@", - }, - }, - ], - "rexpr": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7391, - "sval": { - "sval": "a <3> b", - }, - }, - }, - "location": 7400, - "typeName": { - "location": 7402, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 59, - "stmt_location": 7360, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7461, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7467, - "sval": { - "sval": "w:12B w:13* w:12,5,6 a:1,3* a:3 w asd:1dc asd", - }, - }, - }, - "location": 7514, - "typeName": { - "location": 7516, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "strip", - }, - }, - ], - "location": 7461, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 105, - "stmt_location": 7420, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7534, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7540, - "sval": { - "sval": "base:7 hidden:6 rebel:1 spaceship:2,33A,34B,35C,36D strike:3", - }, - }, - }, - "location": 7602, - "typeName": { - "location": 7604, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "strip", - }, - }, - ], - "location": 7534, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 87, - "stmt_location": 7526, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7622, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7628, - "sval": { - "sval": "base hidden rebel spaceship strike", - }, - }, - }, - "location": 7664, - "typeName": { - "location": 7666, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "strip", - }, - }, - ], - "location": 7622, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 61, - "stmt_location": 7614, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7685, - "val": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 7707, - "sval": { - "sval": "english", - }, - }, - }, - { - "A_Const": { - "location": 7718, - "sval": { - "sval": "Rebel spaceships, striking from a hidden base", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "to_tsvector", - }, - }, - ], - "location": 7695, - }, - }, - { - "A_Const": { - "location": 7768, - "sval": { - "sval": "spaceship", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_delete", - }, - }, - ], - "location": 7685, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 104, - "stmt_location": 7676, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7789, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7799, - "sval": { - "sval": "base:7 hidden:6 rebel:1 spaceship:2,33A,34B,35C,36D strike:3", - }, - }, - }, - "location": 7861, - "typeName": { - "location": 7863, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 7873, - "sval": { - "sval": "base", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_delete", - }, - }, - ], - "location": 7789, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 99, - "stmt_location": 7781, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7889, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7899, - "sval": { - "sval": "base:7 hidden:6 rebel:1 spaceship:2,33A,34B,35C,36D strike:3", - }, - }, - }, - "location": 7961, - "typeName": { - "location": 7963, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 7973, - "sval": { - "sval": "bas", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_delete", - }, - }, - ], - "location": 7889, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 98, - "stmt_location": 7881, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7988, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 7998, - "sval": { - "sval": "base:7 hidden:6 rebel:1 spaceship:2,33A,34B,35C,36D strike:3", - }, - }, - }, - "location": 8060, - "typeName": { - "location": 8062, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 8072, - "sval": { - "sval": "bases", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_delete", - }, - }, - ], - "location": 7988, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 100, - "stmt_location": 7980, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8089, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8099, - "sval": { - "sval": "base:7 hidden:6 rebel:1 spaceship:2,33A,34B,35C,36D strike:3", - }, - }, - }, - "location": 8161, - "typeName": { - "location": 8163, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 8173, - "sval": { - "sval": "spaceship", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_delete", - }, - }, - ], - "location": 8089, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 104, - "stmt_location": 8081, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8194, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8204, - "sval": { - "sval": "base hidden rebel spaceship strike", - }, - }, - }, - "location": 8240, - "typeName": { - "location": 8242, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 8252, - "sval": { - "sval": "spaceship", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_delete", - }, - }, - ], - "location": 8194, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 78, - "stmt_location": 8186, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8274, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8284, - "sval": { - "sval": "base:7 hidden:6 rebel:1 spaceship:2,33A,34B,35C,36D strike:3", - }, - }, - }, - "location": 8346, - "typeName": { - "location": 8348, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "location": 8364, - "sval": { - "sval": "spaceship", - }, - }, - }, - { - "A_Const": { - "location": 8376, - "sval": { - "sval": "rebel", - }, - }, - }, - ], - "location": 8358, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_delete", - }, - }, - ], - "location": 8274, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 120, - "stmt_location": 8265, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8394, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8404, - "sval": { - "sval": "base:7 hidden:6 rebel:1 spaceship:2,33A,34B,35C,36D strike:3", - }, - }, - }, - "location": 8466, - "typeName": { - "location": 8468, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "location": 8484, - "sval": { - "sval": "spaceships", - }, - }, - }, - { - "A_Const": { - "location": 8497, - "sval": { - "sval": "rebel", - }, - }, - }, - ], - "location": 8478, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_delete", - }, - }, - ], - "location": 8394, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 120, - "stmt_location": 8386, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8515, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8525, - "sval": { - "sval": "base:7 hidden:6 rebel:1 spaceship:2,33A,34B,35C,36D strike:3", - }, - }, - }, - "location": 8587, - "typeName": { - "location": 8589, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "location": 8605, - "sval": { - "sval": "spaceshi", - }, - }, - }, - { - "A_Const": { - "location": 8616, - "sval": { - "sval": "rebel", - }, - }, - }, - ], - "location": 8599, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_delete", - }, - }, - ], - "location": 8515, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 118, - "stmt_location": 8507, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8634, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8644, - "sval": { - "sval": "base:7 hidden:6 rebel:1 spaceship:2,33A,34B,35C,36D strike:3", - }, - }, - }, - "location": 8706, - "typeName": { - "location": 8708, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "location": 8724, - "sval": { - "sval": "spaceship", - }, - }, - }, - { - "A_Const": { - "location": 8736, - "sval": { - "sval": "leya", - }, - }, - }, - { - "A_Const": { - "location": 8743, - "sval": { - "sval": "rebel", - }, - }, - }, - ], - "location": 8718, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_delete", - }, - }, - ], - "location": 8634, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 126, - "stmt_location": 8626, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8761, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8771, - "sval": { - "sval": "base hidden rebel spaceship strike", - }, - }, - }, - "location": 8807, - "typeName": { - "location": 8809, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "location": 8825, - "sval": { - "sval": "spaceship", - }, - }, - }, - { - "A_Const": { - "location": 8837, - "sval": { - "sval": "leya", - }, - }, - }, - { - "A_Const": { - "location": 8844, - "sval": { - "sval": "rebel", - }, - }, - }, - ], - "location": 8819, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_delete", - }, - }, - ], - "location": 8761, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 100, - "stmt_location": 8753, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8862, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8872, - "sval": { - "sval": "base hidden rebel spaceship strike", - }, - }, - }, - "location": 8908, - "typeName": { - "location": 8910, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "location": 8926, - "sval": { - "sval": "spaceship", - }, - }, - }, - { - "A_Const": { - "location": 8938, - "sval": { - "sval": "leya", - }, - }, - }, - { - "A_Const": { - "location": 8945, - "sval": { - "sval": "rebel", - }, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 8954, - }, - }, - ], - "location": 8920, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_delete", - }, - }, - ], - "location": 8862, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 106, - "stmt_location": 8854, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 8970, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 8977, - "sval": { - "sval": "base:7 hidden:6 rebel:1 spaceship:2,33A,34B,35C,36D strike:3", - }, - }, - }, - "location": 9039, - "typeName": { - "location": 9041, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "unnest", - }, - }, - ], - "location": 8970, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 89, - "stmt_location": 8961, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9059, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9066, - "sval": { - "sval": "base hidden rebel spaceship strike", - }, - }, - }, - "location": 9102, - "typeName": { - "location": 9104, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "unnest", - }, - }, - ], - "location": 9059, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 62, - "stmt_location": 9051, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9136, - "sval": { - "sval": "base:7 hidden:6 rebel:1 spaceship:2,33A,34B,35C,36D strike:3", - }, - }, - }, - "location": 9198, - "typeName": { - "location": 9200, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "unnest", - }, - }, - ], - "location": 9129, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9122, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 9122, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 95, - "stmt_location": 9114, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9232, - "sval": { - "sval": "base hidden rebel spaceship strike", - }, - }, - }, - "location": 9268, - "typeName": { - "location": 9270, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "unnest", - }, - }, - ], - "location": 9225, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9218, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 9218, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 69, - "stmt_location": 9210, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeFunction": { - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9321, - "sval": { - "sval": "base:7 hidden:6 rebel:1 spaceship:2,33A,34B,35C,36D strike:3", - }, - }, - }, - "location": 9383, - "typeName": { - "location": 9385, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "unnest", - }, - }, - ], - "location": 9314, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9288, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "lexeme", - }, - }, - ], - "location": 9288, - }, - }, - }, - }, - { - "ResTarget": { - "location": 9296, - "val": { - "A_Indirection": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "positions", - }, - }, - ], - "location": 9296, - }, - }, - "indirection": [ - { - "A_Indices": { - "uidx": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 9306, - }, - }, - }, - }, - ], - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 114, - "stmt_location": 9280, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9404, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9422, - "sval": { - "sval": "base:7 hidden:6 rebel:1 spaceship:2,33A,34B,35C,36D strike:3", - }, - }, - }, - "location": 9484, - "typeName": { - "location": 9486, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "tsvector_to_array", - }, - }, - ], - "location": 9404, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 100, - "stmt_location": 9395, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9504, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9522, - "sval": { - "sval": "base hidden rebel spaceship strike", - }, - }, - }, - "location": 9558, - "typeName": { - "location": 9560, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "tsvector_to_array", - }, - }, - ], - "location": 9504, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 73, - "stmt_location": 9496, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9579, - "val": { - "FuncCall": { - "args": [ - { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "location": 9603, - "sval": { - "sval": "base", - }, - }, - }, - { - "A_Const": { - "location": 9610, - "sval": { - "sval": "hidden", - }, - }, - }, - { - "A_Const": { - "location": 9619, - "sval": { - "sval": "rebel", - }, - }, - }, - { - "A_Const": { - "location": 9627, - "sval": { - "sval": "spaceship", - }, - }, - }, - { - "A_Const": { - "location": 9639, - "sval": { - "sval": "strike", - }, - }, - }, - ], - "location": 9597, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_to_tsvector", - }, - }, - ], - "location": 9579, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 79, - "stmt_location": 9570, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9658, - "val": { - "FuncCall": { - "args": [ - { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "location": 9682, - "sval": { - "sval": "base", - }, - }, - }, - { - "A_Const": { - "location": 9689, - "sval": { - "sval": "hidden", - }, - }, - }, - { - "A_Const": { - "location": 9698, - "sval": { - "sval": "rebel", - }, - }, - }, - { - "A_Const": { - "location": 9706, - "sval": { - "sval": "spaceship", - }, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 9719, - }, - }, - ], - "location": 9676, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "array_to_tsvector", - }, - }, - ], - "location": 9658, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 75, - "stmt_location": 9650, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9735, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9745, - "sval": { - "sval": "w:12B w:13* w:12,5,6 a:1,3* a:3 w asd:1dc asd zxc:81,567,222A", - }, - }, - }, - "location": 9808, - "typeName": { - "location": 9810, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 9820, - "sval": { - "sval": "c", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "setweight", - }, - }, - ], - "location": 9735, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 98, - "stmt_location": 9726, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9833, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9843, - "sval": { - "sval": "a:1,3A asd:1C w:5,6,12B,13A zxc:81,222A,567", - }, - }, - }, - "location": 9888, - "typeName": { - "location": 9890, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 9900, - "sval": { - "sval": "c", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "setweight", - }, - }, - ], - "location": 9833, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 79, - "stmt_location": 9825, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 9913, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 9923, - "sval": { - "sval": "a:1,3A asd:1C w:5,6,12B,13A zxc:81,222A,567", - }, - }, - }, - "location": 9968, - "typeName": { - "location": 9970, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 9980, - "sval": { - "sval": "c", - }, - }, - }, - { - "A_Const": { - "location": 9985, - "sval": { - "sval": "{a}", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "setweight", - }, - }, - ], - "location": 9913, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 86, - "stmt_location": 9905, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10000, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10010, - "sval": { - "sval": "a:1,3A asd:1C w:5,6,12B,13A zxc:81,222A,567", - }, - }, - }, - "location": 10055, - "typeName": { - "location": 10057, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 10067, - "sval": { - "sval": "c", - }, - }, - }, - { - "A_Const": { - "location": 10072, - "sval": { - "sval": "{a}", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "setweight", - }, - }, - ], - "location": 10000, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 86, - "stmt_location": 9992, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10087, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10097, - "sval": { - "sval": "a:1,3A asd:1C w:5,6,12B,13A zxc:81,222A,567", - }, - }, - }, - "location": 10142, - "typeName": { - "location": 10144, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 10154, - "sval": { - "sval": "c", - }, - }, - }, - { - "A_Const": { - "location": 10159, - "sval": { - "sval": "{a,zxc}", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "setweight", - }, - }, - ], - "location": 10087, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 90, - "stmt_location": 10079, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10178, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10188, - "sval": { - "sval": "a asd w:5,6,12B,13A zxc", - }, - }, - }, - "location": 10213, - "typeName": { - "location": 10215, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 10225, - "sval": { - "sval": "c", - }, - }, - }, - { - "A_Const": { - "location": 10230, - "sval": { - "sval": "{a,zxc}", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "setweight", - }, - }, - ], - "location": 10178, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 70, - "stmt_location": 10170, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10249, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10259, - "sval": { - "sval": "a asd w:5,6,12B,13A zxc", - }, - }, - }, - "location": 10284, - "typeName": { - "location": 10286, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 10296, - "sval": { - "sval": "c", - }, - }, - }, - { - "A_ArrayExpr": { - "elements": [ - { - "A_Const": { - "location": 10307, - "sval": { - "sval": "a", - }, - }, - }, - { - "A_Const": { - "location": 10312, - "sval": { - "sval": "zxc", - }, - }, - }, - { - "A_Const": { - "isnull": true, - "location": 10319, - }, - }, - ], - "location": 10301, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "setweight", - }, - }, - ], - "location": 10249, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 84, - "stmt_location": 10241, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10335, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10345, - "sval": { - "sval": "base:7A empir:17 evil:15 first:11 galact:16 hidden:6A rebel:1A spaceship:2A strike:3A victori:12 won:9", - }, - }, - }, - "location": 10449, - "typeName": { - "location": 10451, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 10461, - "sval": { - "sval": "{a}", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_filter", - }, - }, - ], - "location": 10335, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 141, - "stmt_location": 10326, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10476, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10486, - "sval": { - "sval": "base hidden rebel spaceship strike", - }, - }, - }, - "location": 10522, - "typeName": { - "location": 10524, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 10534, - "sval": { - "sval": "{a}", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_filter", - }, - }, - ], - "location": 10476, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 72, - "stmt_location": 10468, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 10549, - "val": { - "FuncCall": { - "args": [ - { - "TypeCast": { - "arg": { - "A_Const": { - "location": 10559, - "sval": { - "sval": "base hidden rebel spaceship strike", - }, - }, - }, - "location": 10595, - "typeName": { - "location": 10597, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "A_Const": { - "location": 10607, - "sval": { - "sval": "{a,b,NULL}", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "ts_filter", - }, - }, - ], - "location": 10549, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 79, - "stmt_location": 10541, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/txid.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 64, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 64, - "sval": { - "sval": "12:13:", - }, - }, - }, - "location": 72, - "typeName": { - "location": 74, - "names": [ - { - "String": { - "sval": "txid_snapshot", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 87, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 96, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 96, - "sval": { - "sval": "12:18:14,16", - }, - }, - }, - "location": 109, - "typeName": { - "location": 111, - "names": [ - { - "String": { - "sval": "txid_snapshot", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 88, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 133, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 133, - "sval": { - "sval": "12:16:14,14", - }, - }, - }, - "location": 146, - "typeName": { - "location": 148, - "names": [ - { - "String": { - "sval": "txid_snapshot", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 125, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 181, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 181, - "sval": { - "sval": "31:12:", - }, - }, - }, - "location": 189, - "typeName": { - "location": 191, - "names": [ - { - "String": { - "sval": "txid_snapshot", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 42, - "stmt_location": 162, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 213, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 213, - "sval": { - "sval": "0:1:", - }, - }, - }, - "location": 219, - "typeName": { - "location": 221, - "names": [ - { - "String": { - "sval": "txid_snapshot", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 29, - "stmt_location": 205, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 243, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 243, - "sval": { - "sval": "12:13:0", - }, - }, - }, - "location": 252, - "typeName": { - "location": 254, - "names": [ - { - "String": { - "sval": "txid_snapshot", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 32, - "stmt_location": 235, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 276, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 276, - "sval": { - "sval": "12:16:14,13", - }, - }, - }, - "location": 289, - "typeName": { - "location": 291, - "names": [ - { - "String": { - "sval": "txid_snapshot", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 268, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 325, - "relname": "snapshot_test", - "relpersistence": "t", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "nr", - "is_local": true, - "location": 342, - "typeName": { - "location": 345, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "snap", - "is_local": true, - "location": 355, - "typeName": { - "location": 360, - "names": [ - { - "String": { - "sval": "txid_snapshot", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 70, - "stmt_location": 305, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 390, - "relname": "snapshot_test", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 412, - }, - }, - { - "A_Const": { - "location": 415, - "sval": { - "sval": "12:13:", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 48, - "stmt_location": 376, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 438, - "relname": "snapshot_test", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 460, - }, - }, - { - "A_Const": { - "location": 463, - "sval": { - "sval": "12:20:13,15,18", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 55, - "stmt_location": 425, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 494, - "relname": "snapshot_test", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 3, - }, - "location": 516, - }, - }, - { - "A_Const": { - "location": 519, - "sval": { - "sval": "100001:100009:100005,100007,100008", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 75, - "stmt_location": 481, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 570, - "relname": "snapshot_test", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 592, - }, - }, - { - "A_Const": { - "location": 595, - "sval": { - "sval": "100:150:101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 172, - "stmt_location": 557, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 748, - "relname": "snapshot_test", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nr", - }, - }, - ], - "location": 771, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 738, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "snap", - }, - }, - ], - "location": 738, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 43, - "stmt_location": 730, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 867, - "relname": "snapshot_test", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nr", - }, - }, - ], - "location": 890, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 784, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "snap", - }, - }, - ], - "location": 803, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "txid_snapshot_xmin", - }, - }, - ], - "location": 784, - }, - }, - }, - }, - { - "ResTarget": { - "location": 811, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "snap", - }, - }, - ], - "location": 830, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "txid_snapshot_xmax", - }, - }, - ], - "location": 811, - }, - }, - }, - }, - { - "ResTarget": { - "location": 838, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "snap", - }, - }, - ], - "location": 856, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "txid_snapshot_xip", - }, - }, - ], - "location": 838, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 118, - "stmt_location": 774, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 946, - "relname": "snapshot_test", - "relpersistence": "p", - }, - }, - { - "RangeFunction": { - "alias": { - "aliasname": "id", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 11, - }, - "location": 977, - }, - }, - { - "A_Const": { - "ival": { - "ival": 21, - }, - "location": 981, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 961, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 902, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 902, - }, - }, - }, - }, - { - "ResTarget": { - "location": 906, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 931, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "snap", - }, - }, - ], - "location": 935, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "txid_visible_in_snapshot", - }, - }, - ], - "location": 906, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nr", - }, - }, - ], - "location": 994, - }, - }, - "location": 997, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 999, - }, - }, - }, - }, - }, - }, - "stmt_len": 107, - "stmt_location": 893, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1070, - "relname": "snapshot_test", - "relpersistence": "p", - }, - }, - { - "RangeFunction": { - "alias": { - "aliasname": "id", - }, - "functions": [ - { - "List": { - "items": [ - { - "FuncCall": { - "args": [ - { - "A_Const": { - "ival": { - "ival": 90, - }, - "location": 1101, - }, - }, - { - "A_Const": { - "ival": { - "ival": 160, - }, - "location": 1105, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "generate_series", - }, - }, - ], - "location": 1085, - }, - }, - {}, - ], - }, - }, - ], - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1026, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 1026, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1030, - "val": { - "FuncCall": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "id", - }, - }, - ], - "location": 1055, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "snap", - }, - }, - ], - "location": 1059, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "txid_visible_in_snapshot", - }, - }, - ], - "location": 1030, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "nr", - }, - }, - ], - "location": 1119, - }, - }, - "location": 1122, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 1124, - }, - }, - }, - }, - }, - }, - "stmt_len": 124, - "stmt_location": 1001, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1163, - "val": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "txid_current", - }, - }, - ], - "location": 1163, - }, - }, - "location": 1178, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "txid_current_snapshot", - }, - }, - ], - "location": 1200, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "txid_snapshot_xmin", - }, - }, - ], - "location": 1181, - }, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 98, - "stmt_location": 1126, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1296, - "val": { - "FuncCall": { - "args": [ - { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "txid_current", - }, - }, - ], - "location": 1321, - }, - }, - { - "FuncCall": { - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "txid_current_snapshot", - }, - }, - ], - "location": 1337, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "txid_visible_in_snapshot", - }, - }, - ], - "location": 1296, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 136, - "stmt_location": 1225, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1390, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1404, - "sval": { - "sval": "1000100010001000:1000100010001100:1000100010001012,1000100010001013", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1390, - "names": [ - { - "String": { - "sval": "txid_snapshot", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 111, - "stmt_location": 1362, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1482, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1507, - "sval": { - "sval": "1000100010001012", - }, - }, - }, - { - "A_Const": { - "location": 1527, - "sval": { - "sval": "1000100010001000:1000100010001100:1000100010001012,1000100010001013", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "txid_visible_in_snapshot", - }, - }, - ], - "location": 1482, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 123, - "stmt_location": 1474, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1606, - "val": { - "FuncCall": { - "args": [ - { - "A_Const": { - "location": 1631, - "sval": { - "sval": "1000100010001015", - }, - }, - }, - { - "A_Const": { - "location": 1651, - "sval": { - "sval": "1000100010001000:1000100010001100:1000100010001012,1000100010001013", - }, - }, - }, - ], - "funcformat": "COERCE_EXPLICIT_CALL", - "funcname": [ - { - "String": { - "sval": "txid_visible_in_snapshot", - }, - }, - ], - "location": 1606, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 123, - "stmt_location": 1598, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1754, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1768, - "sval": { - "sval": "1:9223372036854775807:3", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1754, - "names": [ - { - "String": { - "sval": "txid_snapshot", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 71, - "stmt_location": 1722, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1802, - "val": { - "TypeCast": { - "arg": { - "A_Const": { - "location": 1816, - "sval": { - "sval": "1:9223372036854775808:3", - }, - }, - }, - "location": -1, - "typeName": { - "location": 1802, - "names": [ - { - "String": { - "sval": "txid_snapshot", - }, - }, - ], - "typemod": -1, - }, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 47, - "stmt_location": 1794, - }, - }, -] -`; - -exports[`kitchen sink upstream upstream/varchar.sql 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 31, - "relname": "varchar_tbl", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 43, - "typeName": { - "location": 46, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 54, - }, - }, - ], - }, - }, - }, - ], - }, - }, - "stmt_len": 57, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 85, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 72, - "relname": "varchar_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 97, - "sval": { - "sval": "a", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 58, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 129, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 116, - "relname": "varchar_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 141, - "sval": { - "sval": "A", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 102, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 232, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 219, - "relname": "varchar_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 244, - "sval": { - "sval": "1", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 102, - "stmt_location": 146, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 276, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 263, - "relname": "varchar_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 288, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 41, - "stmt_location": 249, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 318, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 305, - "relname": "varchar_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 330, - "sval": { - "sval": "3", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 291, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 382, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 369, - "relname": "varchar_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 394, - "sval": { - "sval": "", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 62, - "stmt_location": 335, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 467, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 454, - "relname": "varchar_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 479, - "sval": { - "sval": "cd", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 86, - "stmt_location": 398, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 511, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 498, - "relname": "varchar_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 523, - "sval": { - "sval": "c ", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 47, - "stmt_location": 485, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 563, - "relname": "varchar_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 543, - "name": "seven", - "val": { - "A_Const": { - "location": 543, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 556, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 556, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 41, - "stmt_location": 533, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "c", - }, - "inh": true, - "location": 607, - "relname": "varchar_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 584, - "name": "six", - "val": { - "A_Const": { - "location": 584, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 595, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 595, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 630, - }, - }, - "location": 635, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 638, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 66, - "stmt_location": 575, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "c", - }, - "inh": true, - "location": 674, - "relname": "varchar_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 651, - "name": "one", - "val": { - "A_Const": { - "location": 651, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 662, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 662, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 697, - }, - }, - "location": 702, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 704, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 65, - "stmt_location": 642, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "c", - }, - "inh": true, - "location": 741, - "relname": "varchar_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 717, - "name": "five", - "val": { - "A_Const": { - "location": 717, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 729, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 729, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 764, - }, - }, - "location": 769, - "name": [ - { - "String": { - "sval": "<", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 771, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 66, - "stmt_location": 708, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "c", - }, - "inh": true, - "location": 807, - "relname": "varchar_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 784, - "name": "six", - "val": { - "A_Const": { - "location": 784, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 795, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 795, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 830, - }, - }, - "location": 835, - "name": [ - { - "String": { - "sval": "<=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 838, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 66, - "stmt_location": 775, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "c", - }, - "inh": true, - "location": 874, - "relname": "varchar_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 851, - "name": "one", - "val": { - "A_Const": { - "location": 851, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 862, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 862, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 897, - }, - }, - "location": 902, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 904, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 65, - "stmt_location": 842, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "alias": { - "aliasname": "c", - }, - "inh": true, - "location": 940, - "relname": "varchar_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 917, - "name": "two", - "val": { - "A_Const": { - "location": 917, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 928, - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "A_Star": {}, - }, - ], - "location": 928, - }, - }, - }, - }, - ], - "whereClause": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "f1", - }, - }, - ], - "location": 963, - }, - }, - "location": 968, - "name": [ - { - "String": { - "sval": ">=", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 971, - "sval": { - "sval": "a", - }, - }, - }, - }, - }, - }, - }, - "stmt_len": 66, - "stmt_location": 908, - }, - }, - { - "RawStmt": { - "stmt": { - "DropStmt": { - "behavior": "DROP_RESTRICT", - "objects": [ - { - "List": { - "items": [ - { - "String": { - "sval": "varchar_tbl", - }, - }, - ], - }, - }, - ], - "removeType": "OBJECT_TABLE", - }, - }, - "stmt_len": 24, - "stmt_location": 975, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 1056, - "relname": "varchar_tbl", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "f1", - "is_local": true, - "location": 1068, - "typeName": { - "location": 1071, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 1079, - }, - }, - ], - }, - }, - }, - ], - }, - }, - "stmt_len": 82, - "stmt_location": 1000, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1110, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1097, - "relname": "varchar_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1122, - "sval": { - "sval": "a", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 1083, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1153, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1140, - "relname": "varchar_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1165, - "sval": { - "sval": "ab", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 43, - "stmt_location": 1127, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1197, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1184, - "relname": "varchar_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1209, - "sval": { - "sval": "abcd", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 45, - "stmt_location": 1171, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1243, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1230, - "relname": "varchar_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1255, - "sval": { - "sval": "abcde", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 46, - "stmt_location": 1217, - }, - }, - { - "RawStmt": { - "stmt": { - "InsertStmt": { - "cols": [ - { - "ResTarget": { - "location": 1290, - "name": "f1", - }, - }, - ], - "override": "OVERRIDING_NOT_SET", - "relation": { - "inh": true, - "location": 1277, - "relname": "varchar_tbl", - "relpersistence": "p", - }, - "selectStmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "valuesLists": [ - { - "List": { - "items": [ - { - "A_Const": { - "location": 1302, - "sval": { - "sval": "abcd ", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 49, - "stmt_location": 1264, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 1342, - "relname": "varchar_tbl", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 1323, - "name": "four", - "val": { - "A_Const": { - "location": 1323, - "sval": { - "sval": "", - }, - }, - }, - }, - }, - { - "ResTarget": { - "location": 1335, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 1335, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 1314, - }, - }, -] -`; - -exports[`kitchen sink views create 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 73, - "relname": "permits", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 66, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 66, - }, - }, - }, - }, - ], - }, - }, - "view": { - "inh": true, - "location": 12, - "relname": "direct_project_permits", - "relpersistence": "p", - "schemaname": "collaboration_public", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 80, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateTableAsStmt": { - "into": { - "onCommit": "ONCOMMIT_NOOP", - "rel": { - "inh": true, - "location": 108, - "relname": "direct_project_permits", - "relpersistence": "p", - "schemaname": "collaboration_public", - }, - }, - "objtype": "OBJECT_MATVIEW", - "query": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 169, - "relname": "permits", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 162, - "val": { - "ColumnRef": { - "fields": [ - { - "A_Star": {}, - }, - ], - "location": 162, - }, - }, - }, - }, - ], - }, - }, - }, - }, - "stmt_len": 95, - "stmt_location": 81, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 336, - "relname": "pg_attribute", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 374, - }, - }, - "location": 380, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "atttypid", - }, - }, - ], - "location": 382, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "t", - }, - "inh": true, - "location": 360, - "relname": "pg_type", - "relpersistence": "p", - }, - }, - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 418, - }, - }, - "location": 424, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "attrelid", - }, - }, - ], - "location": 426, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "c", - }, - "inh": true, - "location": 403, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 466, - }, - }, - "location": 472, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "relnamespace", - }, - }, - ], - "location": 474, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "n", - }, - "inh": true, - "location": 447, - "relname": "pg_namespace", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "attnum", - }, - }, - ], - "location": 623, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 229, - "name": "name", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "attname", - }, - }, - ], - "location": 229, - }, - }, - }, - }, - { - "ResTarget": { - "location": 250, - "name": "type", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "String": { - "sval": "typname", - }, - }, - ], - "location": 250, - }, - }, - }, - }, - { - "ResTarget": { - "location": 273, - "name": "table_name", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 273, - }, - }, - }, - }, - { - "ResTarget": { - "location": 302, - "name": "schema_name", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 302, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 500, - }, - }, - "location": 510, - "name": [ - { - "String": { - "sval": "<>", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 518, - "sval": { - "sval": "pg_catalog", - }, - }, - }, - { - "A_Const": { - "location": 532, - "sval": { - "sval": "information_schema", - }, - }, - }, - { - "A_Const": { - "location": 554, - "sval": { - "sval": "pg_toast", - }, - }, - }, - ], - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "attnum", - }, - }, - ], - "location": 574, - }, - }, - "location": 581, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 583, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "attisdropped", - }, - }, - ], - "location": 597, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 593, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 570, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 191, - "relname": "app_columns", - "relpersistence": "p", - "schemaname": "superschema", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 452, - "stmt_location": 177, - }, - }, - { - "RawStmt": { - "stmt": { - "ViewStmt": { - "query": { - "SelectStmt": { - "fromClause": [ - { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "JoinExpr": { - "jointype": "JOIN_INNER", - "larg": { - "RangeVar": { - "alias": { - "aliasname": "a", - }, - "inh": true, - "location": 789, - "relname": "pg_attribute", - "relpersistence": "p", - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 827, - }, - }, - "location": 833, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "atttypid", - }, - }, - ], - "location": 835, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "t", - }, - "inh": true, - "location": 813, - "relname": "pg_type", - "relpersistence": "p", - }, - }, - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 871, - }, - }, - "location": 877, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - { - "String": { - "sval": "attrelid", - }, - }, - ], - "location": 879, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "c", - }, - "inh": true, - "location": 856, - "relname": "pg_class", - "relpersistence": "p", - }, - }, - }, - }, - "quals": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "oid", - }, - }, - ], - "location": 919, - }, - }, - "location": 925, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "relnamespace", - }, - }, - ], - "location": 927, - }, - }, - }, - }, - "rarg": { - "RangeVar": { - "alias": { - "aliasname": "n", - }, - "inh": true, - "location": 900, - "relname": "pg_namespace", - "relpersistence": "p", - }, - }, - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "sortClause": [ - { - "SortBy": { - "location": -1, - "node": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "attnum", - }, - }, - ], - "location": 1072, - }, - }, - "sortby_dir": "SORTBY_DEFAULT", - "sortby_nulls": "SORTBY_NULLS_DEFAULT", - }, - }, - ], - "targetList": [ - { - "ResTarget": { - "location": 682, - "name": "name", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "attname", - }, - }, - ], - "location": 682, - }, - }, - }, - }, - { - "ResTarget": { - "location": 703, - "name": "type", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "t", - }, - }, - { - "String": { - "sval": "typname", - }, - }, - ], - "location": 703, - }, - }, - }, - }, - { - "ResTarget": { - "location": 726, - "name": "table_name", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - { - "String": { - "sval": "relname", - }, - }, - ], - "location": 726, - }, - }, - }, - }, - { - "ResTarget": { - "location": 755, - "name": "schema_name", - "val": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 755, - }, - }, - }, - }, - ], - "whereClause": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_IN", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "n", - }, - }, - { - "String": { - "sval": "nspname", - }, - }, - ], - "location": 953, - }, - }, - "location": 963, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "List": { - "items": [ - { - "A_Const": { - "location": 967, - "sval": { - "sval": "pg_catalog", - }, - }, - }, - { - "A_Const": { - "location": 981, - "sval": { - "sval": "information_schema", - }, - }, - }, - { - "A_Const": { - "location": 1003, - "sval": { - "sval": "pg_toast", - }, - }, - }, - ], - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "attnum", - }, - }, - ], - "location": 1023, - }, - }, - "location": 1030, - "name": [ - { - "String": { - "sval": ">", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": {}, - "location": 1032, - }, - }, - }, - }, - { - "BoolExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "attisdropped", - }, - }, - ], - "location": 1046, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 1042, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 1019, - }, - }, - }, - }, - "view": { - "inh": true, - "location": 644, - "relname": "app_columns", - "relpersistence": "p", - "schemaname": "superschema", - }, - "withCheckOption": "NO_CHECK_OPTION", - }, - }, - "stmt_len": 448, - "stmt_location": 630, - }, - }, -] -`; - -exports[`parens 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 53, - "relname": "my_json_store", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 7, - "val": { - "NullTest": { - "arg": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "node", - }, - }, - ], - "location": 7, - }, - }, - "location": 11, - "name": [ - { - "String": { - "sval": "->", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 13, - "sval": { - "sval": "relation", - }, - }, - }, - }, - }, - "location": 23, - "name": [ - { - "String": { - "sval": "->", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 25, - "sval": { - "sval": "RangeVar", - }, - }, - }, - }, - }, - "location": 36, - "nulltesttype": "IS_NOT_NULL", - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 66, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 179, - "relname": "my_json_store", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 76, - "val": { - "BoolExpr": { - "args": [ - { - "NullTest": { - "arg": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "node", - }, - }, - ], - "location": 76, - }, - }, - "location": 80, - "name": [ - { - "String": { - "sval": "->", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 82, - "sval": { - "sval": "relation", - }, - }, - }, - }, - }, - "location": 92, - "name": [ - { - "String": { - "sval": "->", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 94, - "sval": { - "sval": "RangeVar", - }, - }, - }, - }, - }, - "location": 105, - "nulltesttype": "IS_NOT_NULL", - }, - }, - { - "NullTest": { - "arg": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "node", - }, - }, - ], - "location": 129, - }, - }, - "location": 133, - "name": [ - { - "String": { - "sval": "->", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 135, - "sval": { - "sval": "relation", - }, - }, - }, - }, - }, - "location": 145, - "name": [ - { - "String": { - "sval": "->", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 147, - "sval": { - "sval": "RangeVar", - }, - }, - }, - }, - }, - "location": 157, - "name": [ - { - "String": { - "sval": "->>", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 160, - "sval": { - "sval": "inh", - }, - }, - }, - }, - }, - "location": 166, - "nulltesttype": "IS_NULL", - }, - }, - ], - "boolop": "AND_EXPR", - "location": 117, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 125, - "stmt_location": 67, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 308, - "relname": "my_json_store", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 202, - "val": { - "BoolExpr": { - "args": [ - { - "BoolExpr": { - "args": [ - { - "NullTest": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 202, - }, - }, - "location": 204, - "nulltesttype": "IS_NOT_NULL", - }, - }, - { - "NullTest": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 228, - }, - }, - "location": 230, - "nulltesttype": "IS_NULL", - }, - }, - ], - "boolop": "AND_EXPR", - "location": 216, - }, - }, - { - "BoolExpr": { - "args": [ - { - "NullTest": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 250, - }, - }, - "location": 252, - "nulltesttype": "IS_NOT_NULL", - }, - }, - { - "BooleanTest": { - "arg": { - "TypeCast": { - "arg": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 277, - }, - }, - "location": 278, - "name": [ - { - "String": { - "sval": "->", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 280, - "sval": { - "sval": "inh", - }, - }, - }, - }, - }, - "location": 286, - "typeName": { - "location": 288, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "booltesttype": "IS_FALSE", - "location": 293, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 264, - }, - }, - ], - "boolop": "OR_EXPR", - "location": 238, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 128, - "stmt_location": 193, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 559, - "relname": "my_json_store", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 331, - "val": { - "BoolExpr": { - "args": [ - { - "BoolExpr": { - "args": [ - { - "NullTest": { - "arg": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "node", - }, - }, - ], - "location": 331, - }, - }, - "location": 335, - "name": [ - { - "String": { - "sval": "->", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 337, - "sval": { - "sval": "relation", - }, - }, - }, - }, - }, - "location": 347, - "name": [ - { - "String": { - "sval": "->", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 349, - "sval": { - "sval": "RangeVar", - }, - }, - }, - }, - }, - "location": 360, - "nulltesttype": "IS_NOT_NULL", - }, - }, - { - "NullTest": { - "arg": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "node", - }, - }, - ], - "location": 384, - }, - }, - "location": 388, - "name": [ - { - "String": { - "sval": "->", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 390, - "sval": { - "sval": "relation", - }, - }, - }, - }, - }, - "location": 400, - "name": [ - { - "String": { - "sval": "->", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 402, - "sval": { - "sval": "RangeVar", - }, - }, - }, - }, - }, - "location": 412, - "name": [ - { - "String": { - "sval": "->", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 414, - "sval": { - "sval": "inh", - }, - }, - }, - }, - }, - "location": 420, - "nulltesttype": "IS_NULL", - }, - }, - ], - "boolop": "AND_EXPR", - "location": 372, - }, - }, - { - "BoolExpr": { - "args": [ - { - "NullTest": { - "arg": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "node", - }, - }, - ], - "location": 440, - }, - }, - "location": 444, - "name": [ - { - "String": { - "sval": "->", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 446, - "sval": { - "sval": "relation", - }, - }, - }, - }, - }, - "location": 456, - "name": [ - { - "String": { - "sval": "->", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 458, - "sval": { - "sval": "RangeVar", - }, - }, - }, - }, - }, - "location": 468, - "name": [ - { - "String": { - "sval": "->", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 470, - "sval": { - "sval": "inh", - }, - }, - }, - }, - }, - "location": 476, - "nulltesttype": "IS_NOT_NULL", - }, - }, - { - "BooleanTest": { - "arg": { - "TypeCast": { - "arg": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "node", - }, - }, - ], - "location": 501, - }, - }, - "location": 505, - "name": [ - { - "String": { - "sval": "->", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 507, - "sval": { - "sval": "relation", - }, - }, - }, - }, - }, - "location": 517, - "name": [ - { - "String": { - "sval": "->", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 519, - "sval": { - "sval": "RangeVar", - }, - }, - }, - }, - }, - "location": 529, - "name": [ - { - "String": { - "sval": "->", - }, - }, - ], - "rexpr": { - "A_Const": { - "location": 531, - "sval": { - "sval": "inh", - }, - }, - }, - }, - }, - "location": 537, - "typeName": { - "location": 539, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "booltesttype": "IS_FALSE", - "location": 544, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 488, - }, - }, - ], - "boolop": "OR_EXPR", - "location": 428, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 250, - "stmt_location": 322, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 608, - "relname": "t", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 583, - "val": { - "BoolExpr": { - "args": [ - { - "BoolExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 583, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 589, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 596, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 585, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - ], - "location": 601, - }, - }, - ], - "boolop": "OR_EXPR", - "location": 598, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 573, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 663, - "relname": "t", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 620, - "val": { - "BoolExpr": { - "args": [ - { - "BoolExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 620, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 626, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 633, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 622, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - ], - "location": 638, - }, - }, - { - "BoolExpr": { - "args": [ - { - "BoolExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "e", - }, - }, - ], - "location": 644, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - ], - "location": 650, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 646, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "g", - }, - }, - ], - "location": 655, - }, - }, - ], - "boolop": "OR_EXPR", - "location": 652, - }, - }, - ], - "boolop": "OR_EXPR", - "location": 635, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 54, - "stmt_location": 610, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 734, - "relname": "t", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 675, - "val": { - "BoolExpr": { - "args": [ - { - "BoolExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 675, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 681, - }, - }, - { - "BooleanTest": { - "arg": { - "TypeCast": { - "arg": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 689, - }, - }, - "location": 691, - "typeName": { - "location": 693, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "booltesttype": "IS_TRUE", - "location": 698, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 677, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - ], - "location": 709, - }, - }, - { - "BoolExpr": { - "args": [ - { - "BoolExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "e", - }, - }, - ], - "location": 715, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "f", - }, - }, - ], - "location": 721, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 717, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "g", - }, - }, - ], - "location": 726, - }, - }, - ], - "boolop": "OR_EXPR", - "location": 723, - }, - }, - ], - "boolop": "OR_EXPR", - "location": 706, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 70, - "stmt_location": 665, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 780, - "relname": "t", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 746, - "val": { - "BoolExpr": { - "args": [ - { - "BoolExpr": { - "args": [ - { - "BoolExpr": { - "args": [ - { - "BoolExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 751, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 757, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 753, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 746, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 764, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 760, - }, - }, - { - "BoolExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "d", - }, - }, - ], - "location": 773, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 769, - }, - }, - ], - "boolop": "OR_EXPR", - "location": 766, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 45, - "stmt_location": 736, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 817, - "relname": "t", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 792, - "val": { - "BoolExpr": { - "args": [ - { - "BoolExpr": { - "args": [ - { - "BoolExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 797, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 803, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 799, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 792, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 810, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 806, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 36, - "stmt_location": 782, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "fromClause": [ - { - "RangeVar": { - "inh": true, - "location": 857, - "relname": "t", - "relpersistence": "p", - }, - }, - ], - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 828, - "val": { - "BoolExpr": { - "args": [ - { - "BoolExpr": { - "args": [ - { - "BoolExpr": { - "args": [ - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "a", - }, - }, - ], - "location": 835, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "b", - }, - }, - ], - "location": 841, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 837, - }, - }, - ], - "boolop": "NOT_EXPR", - "location": 829, - }, - }, - { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "c", - }, - }, - ], - "location": 849, - }, - }, - ], - "boolop": "AND_EXPR", - "location": 845, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 39, - "stmt_location": 819, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 868, - "val": { - "BooleanTest": { - "arg": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "field", - }, - }, - ], - "location": 869, - }, - }, - "location": 874, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 875, - }, - }, - }, - }, - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "field", - }, - }, - ], - "location": 880, - }, - }, - "location": 885, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 886, - }, - }, - }, - }, - ], - "boolop": "OR_EXPR", - "location": 877, - }, - }, - "booltesttype": "IS_TRUE", - "location": 889, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 37, - "stmt_location": 859, - }, - }, - { - "RawStmt": { - "stmt": { - "SelectStmt": { - "limitOption": "LIMIT_OPTION_DEFAULT", - "op": "SETOP_NONE", - "targetList": [ - { - "ResTarget": { - "location": 906, - "val": { - "BoolExpr": { - "args": [ - { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "field", - }, - }, - ], - "location": 906, - }, - }, - "location": 911, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 912, - }, - }, - }, - }, - { - "BooleanTest": { - "arg": { - "A_Expr": { - "kind": "AEXPR_OP", - "lexpr": { - "ColumnRef": { - "fields": [ - { - "String": { - "sval": "field", - }, - }, - ], - "location": 917, - }, - }, - "location": 922, - "name": [ - { - "String": { - "sval": "=", - }, - }, - ], - "rexpr": { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 923, - }, - }, - }, - }, - "booltesttype": "IS_TRUE", - "location": 925, - }, - }, - ], - "boolop": "OR_EXPR", - "location": 914, - }, - }, - }, - }, - ], - }, - }, - "stmt_len": 35, - "stmt_location": 897, - }, - }, -] -`; - -exports[`pg_catalog 1`] = ` -[ - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 16, - "relname": "table_without_pg_catalog", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "bigint_type", - "is_local": true, - "location": 51, - "typeName": { - "location": 63, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "bigserial_type", - "is_local": true, - "location": 79, - "typeName": { - "location": 94, - "names": [ - { - "String": { - "sval": "bigserial", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "bit_opt_1_type", - "is_local": true, - "location": 113, - "typeName": { - "location": 128, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 132, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "bit_opt_2_type", - "is_local": true, - "location": 144, - "typeName": { - "location": 159, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 163, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "bit_opt_16_type", - "is_local": true, - "location": 175, - "typeName": { - "location": 191, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 16, - }, - "location": 195, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "bit_varying_opt_1_type", - "is_local": true, - "location": 208, - "typeName": { - "location": 231, - "names": [ - { - "String": { - "sval": "varbit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 238, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "bit_varying_opt_2_type", - "is_local": true, - "location": 250, - "typeName": { - "location": 273, - "names": [ - { - "String": { - "sval": "varbit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 280, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "bool_type", - "is_local": true, - "location": 292, - "typeName": { - "location": 302, - "names": [ - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "boolean_type", - "is_local": true, - "location": 316, - "typeName": { - "location": 329, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "box_type", - "is_local": true, - "location": 346, - "typeName": { - "location": 355, - "names": [ - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "bytea_type", - "is_local": true, - "location": 368, - "typeName": { - "location": 379, - "names": [ - { - "String": { - "sval": "bytea", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "char_opt_1_type", - "is_local": true, - "location": 394, - "typeName": { - "location": 410, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bpchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 415, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "char_opt_140_type", - "is_local": true, - "location": 427, - "typeName": { - "location": 445, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bpchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 140, - }, - "location": 450, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "char_opt_1000_type", - "is_local": true, - "location": 464, - "typeName": { - "location": 483, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bpchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1000, - }, - "location": 488, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "char_type", - "is_local": true, - "location": 503, - "typeName": { - "location": 513, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bpchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 518, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "character_type", - "is_local": true, - "location": 530, - "typeName": { - "location": 545, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bpchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 550, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "character_varying_opt_1_type", - "is_local": true, - "location": 562, - "typeName": { - "location": 591, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 599, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "character_varying_opt_10_type", - "is_local": true, - "location": 611, - "typeName": { - "location": 641, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 649, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "character_varying_opt_140_type", - "is_local": true, - "location": 662, - "typeName": { - "location": 693, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 140, - }, - "location": 701, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "character_varying_opt_1000_type", - "is_local": true, - "location": 715, - "typeName": { - "location": 747, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1000, - }, - "location": 755, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "character_varying_type", - "is_local": true, - "location": 770, - "typeName": { - "location": 793, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "cidr_type", - "is_local": true, - "location": 810, - "typeName": { - "location": 820, - "names": [ - { - "String": { - "sval": "cidr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "circle_type", - "is_local": true, - "location": 834, - "typeName": { - "location": 846, - "names": [ - { - "String": { - "sval": "circle", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "date_type", - "is_local": true, - "location": 862, - "typeName": { - "location": 872, - "names": [ - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "double_precision_type", - "is_local": true, - "location": 886, - "typeName": { - "location": 908, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "float_4_type", - "is_local": true, - "location": 935, - "typeName": { - "location": 948, - "names": [ - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "float_8_type", - "is_local": true, - "location": 964, - "typeName": { - "location": 977, - "names": [ - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "float_type", - "is_local": true, - "location": 993, - "typeName": { - "location": 1004, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "float_opt_1_type", - "is_local": true, - "location": 1031, - "typeName": { - "location": 1048, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "float_opt_2_type", - "is_local": true, - "location": 1075, - "typeName": { - "location": 1092, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "float_opt_3_type", - "is_local": true, - "location": 1119, - "typeName": { - "location": 1136, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "float_opt_4_type", - "is_local": true, - "location": 1163, - "typeName": { - "location": 1180, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "float_opt_5_type", - "is_local": true, - "location": 1207, - "typeName": { - "location": 1224, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "float_opt_6_type", - "is_local": true, - "location": 1251, - "typeName": { - "location": 1268, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "float_opt_7_type", - "is_local": true, - "location": 1295, - "typeName": { - "location": 1312, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "float_opt_8_type", - "is_local": true, - "location": 1339, - "typeName": { - "location": 1356, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "inet_type", - "is_local": true, - "location": 1383, - "typeName": { - "location": 1393, - "names": [ - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "int_type", - "is_local": true, - "location": 1407, - "typeName": { - "location": 1416, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "int2_type", - "is_local": true, - "location": 1429, - "typeName": { - "location": 1439, - "names": [ - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "int4_type", - "is_local": true, - "location": 1453, - "typeName": { - "location": 1463, - "names": [ - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "int8_type", - "is_local": true, - "location": 1477, - "typeName": { - "location": 1487, - "names": [ - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "interval_year_type", - "is_local": true, - "location": 1501, - "typeName": { - "location": 1520, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 1529, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "interval_month_type", - "is_local": true, - "location": 1543, - "typeName": { - "location": 1563, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 1572, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "interval_day_type", - "is_local": true, - "location": 1587, - "typeName": { - "location": 1605, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 8, - }, - "location": 1614, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "interval_hour_type", - "is_local": true, - "location": 1627, - "typeName": { - "location": 1646, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1024, - }, - "location": 1655, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "interval_minute_type", - "is_local": true, - "location": 1669, - "typeName": { - "location": 1690, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 2048, - }, - "location": 1699, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "interval_type", - "is_local": true, - "location": 1715, - "typeName": { - "location": 1729, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "json_type", - "is_local": true, - "location": 1747, - "typeName": { - "location": 1757, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "json", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "jsonb_type", - "is_local": true, - "location": 1771, - "typeName": { - "location": 1782, - "names": [ - { - "String": { - "sval": "jsonb", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "line_type", - "is_local": true, - "location": 1797, - "typeName": { - "location": 1807, - "names": [ - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "lseg_type", - "is_local": true, - "location": 1821, - "typeName": { - "location": 1831, - "names": [ - { - "String": { - "sval": "lseg", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "macaddr_type", - "is_local": true, - "location": 1845, - "typeName": { - "location": 1858, - "names": [ - { - "String": { - "sval": "macaddr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "money_type", - "is_local": true, - "location": 1875, - "typeName": { - "location": 1886, - "names": [ - { - "String": { - "sval": "money", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "numeric_type", - "is_local": true, - "location": 1901, - "typeName": { - "location": 1914, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "numeric_opt_type", - "is_local": true, - "location": 1931, - "typeName": { - "location": 1948, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 1956, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 1960, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "path_type", - "is_local": true, - "location": 1973, - "typeName": { - "location": 1983, - "names": [ - { - "String": { - "sval": "path", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "pg_lsn_type", - "is_local": true, - "location": 1997, - "typeName": { - "location": 2009, - "names": [ - { - "String": { - "sval": "pg_lsn", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "point_type", - "is_local": true, - "location": 2025, - "typeName": { - "location": 2036, - "names": [ - { - "String": { - "sval": "point", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "polygon_type", - "is_local": true, - "location": 2051, - "typeName": { - "location": 2064, - "names": [ - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "real_type", - "is_local": true, - "location": 2081, - "typeName": { - "location": 2091, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "serial_type", - "is_local": true, - "location": 2118, - "typeName": { - "location": 2130, - "names": [ - { - "String": { - "sval": "serial", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "serial4_type", - "is_local": true, - "location": 2146, - "typeName": { - "location": 2159, - "names": [ - { - "String": { - "sval": "serial4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "serial8_type", - "is_local": true, - "location": 2176, - "typeName": { - "location": 2189, - "names": [ - { - "String": { - "sval": "serial8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "smallint_type", - "is_local": true, - "location": 2206, - "typeName": { - "location": 2220, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "text_type", - "is_local": true, - "location": 2238, - "typeName": { - "location": 2248, - "names": [ - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "time_opt_2_type", - "is_local": true, - "location": 2262, - "typeName": { - "location": 2278, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2283, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "time_type", - "is_local": true, - "location": 2295, - "typeName": { - "location": 2305, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "timestamp_type", - "is_local": true, - "location": 2319, - "typeName": { - "location": 2334, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "timestamptz_type", - "is_local": true, - "location": 2353, - "typeName": { - "location": 2370, - "names": [ - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "timetz_opt_2_type", - "is_local": true, - "location": 2391, - "typeName": { - "location": 2409, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timetz", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2427, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "timetz_type", - "is_local": true, - "location": 2439, - "typeName": { - "location": 2451, - "names": [ - { - "String": { - "sval": "timetz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "tsquery_type", - "is_local": true, - "location": 2467, - "typeName": { - "location": 2480, - "names": [ - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "tsvector_type", - "is_local": true, - "location": 2497, - "typeName": { - "location": 2511, - "names": [ - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "uuid_type", - "is_local": true, - "location": 2529, - "typeName": { - "location": 2539, - "names": [ - { - "String": { - "sval": "uuid", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "varbit_1_type", - "is_local": true, - "location": 2553, - "typeName": { - "location": 2567, - "names": [ - { - "String": { - "sval": "varbit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2574, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "varbit_2_type", - "is_local": true, - "location": 2586, - "typeName": { - "location": 2600, - "names": [ - { - "String": { - "sval": "varbit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 2607, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "varbit_16_type", - "is_local": true, - "location": 2619, - "typeName": { - "location": 2634, - "names": [ - { - "String": { - "sval": "varbit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 16, - }, - "location": 2641, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "varbit_type", - "is_local": true, - "location": 2654, - "typeName": { - "location": 2666, - "names": [ - { - "String": { - "sval": "varbit", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "varchar_opt_1_type", - "is_local": true, - "location": 2682, - "typeName": { - "location": 2701, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2709, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "varchar_opt_140_type", - "is_local": true, - "location": 2721, - "typeName": { - "location": 2742, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 140, - }, - "location": 2750, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "varchar_opt_1000_type", - "is_local": true, - "location": 2764, - "typeName": { - "location": 2786, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1000, - }, - "location": 2794, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "varchar_type", - "is_local": true, - "location": 2809, - "typeName": { - "location": 2822, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "xml_type", - "is_local": true, - "location": 2839, - "typeName": { - "location": 2848, - "names": [ - { - "String": { - "sval": "xml", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 2858, - "stmt_location": 0, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 2882, - "relname": "table_with_pg_catalog", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "bigint_type", - "is_local": true, - "location": 2914, - "typeName": { - "location": 2926, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "bigserial_type", - "is_local": true, - "location": 2942, - "typeName": { - "location": 2957, - "names": [ - { - "String": { - "sval": "bigserial", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "bit_opt_1_type", - "is_local": true, - "location": 2976, - "typeName": { - "location": 2991, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 2995, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "bit_opt_2_type", - "is_local": true, - "location": 3007, - "typeName": { - "location": 3022, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3026, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "bit_opt_16_type", - "is_local": true, - "location": 3038, - "typeName": { - "location": 3054, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 16, - }, - "location": 3058, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "bit_varying_opt_1_type", - "is_local": true, - "location": 3071, - "typeName": { - "location": 3094, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varbit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3112, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "bit_varying_opt_2_type", - "is_local": true, - "location": 3124, - "typeName": { - "location": 3147, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varbit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 3165, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "bool_type", - "is_local": true, - "location": 3177, - "typeName": { - "location": 3187, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "boolean_type", - "is_local": true, - "location": 3204, - "typeName": { - "location": 3217, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bool", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "box_type", - "is_local": true, - "location": 3247, - "typeName": { - "location": 3256, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "box", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "bytea_type", - "is_local": true, - "location": 3280, - "typeName": { - "location": 3291, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bytea", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "char_opt_1_type", - "is_local": true, - "location": 3317, - "typeName": { - "location": 3333, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bpchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3338, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "char_opt_140_type", - "is_local": true, - "location": 3350, - "typeName": { - "location": 3368, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bpchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 140, - }, - "location": 3373, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "char_opt_1000_type", - "is_local": true, - "location": 3387, - "typeName": { - "location": 3406, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bpchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1000, - }, - "location": 3411, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "char_type", - "is_local": true, - "location": 3426, - "typeName": { - "location": 3436, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "char", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "character_type", - "is_local": true, - "location": 3461, - "typeName": { - "location": 3476, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bpchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": -1, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "character_varying_opt_1_type", - "is_local": true, - "location": 3495, - "typeName": { - "location": 3524, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 3532, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "character_varying_opt_10_type", - "is_local": true, - "location": 3544, - "typeName": { - "location": 3574, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 3582, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "character_varying_opt_140_type", - "is_local": true, - "location": 3595, - "typeName": { - "location": 3626, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 140, - }, - "location": 3634, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "character_varying_opt_1000_type", - "is_local": true, - "location": 3648, - "typeName": { - "location": 3680, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1000, - }, - "location": 3688, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "character_varying_type", - "is_local": true, - "location": 3703, - "typeName": { - "location": 3726, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "cidr_type", - "is_local": true, - "location": 3743, - "typeName": { - "location": 3753, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "cidr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "circle_type", - "is_local": true, - "location": 3778, - "typeName": { - "location": 3790, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "circle", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "date_type", - "is_local": true, - "location": 3817, - "typeName": { - "location": 3827, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "date", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "float_4_type", - "is_local": true, - "location": 3852, - "typeName": { - "location": 3865, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "float_8_type", - "is_local": true, - "location": 3892, - "typeName": { - "location": 3905, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "float_type", - "is_local": true, - "location": 3932, - "typeName": { - "location": 3943, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "float8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "float_opt_1_type", - "is_local": true, - "location": 3958, - "typeName": { - "location": 3975, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "float_opt_2_type", - "is_local": true, - "location": 3993, - "typeName": { - "location": 4010, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "float_opt_3_type", - "is_local": true, - "location": 4028, - "typeName": { - "location": 4045, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "float_opt_4_type", - "is_local": true, - "location": 4063, - "typeName": { - "location": 4080, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "float_opt_5_type", - "is_local": true, - "location": 4098, - "typeName": { - "location": 4115, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "float_opt_6_type", - "is_local": true, - "location": 4133, - "typeName": { - "location": 4150, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "float_opt_7_type", - "is_local": true, - "location": 4168, - "typeName": { - "location": 4185, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "float_opt_8_type", - "is_local": true, - "location": 4203, - "typeName": { - "location": 4220, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "float4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "inet_type", - "is_local": true, - "location": 4238, - "typeName": { - "location": 4248, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "inet", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "int_type", - "is_local": true, - "location": 4273, - "typeName": { - "location": 4282, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "int2_type", - "is_local": true, - "location": 4295, - "typeName": { - "location": 4305, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "int4_type", - "is_local": true, - "location": 4323, - "typeName": { - "location": 4333, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "int8_type", - "is_local": true, - "location": 4346, - "typeName": { - "location": 4356, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "interval_year_type", - "is_local": true, - "location": 4372, - "typeName": { - "location": 4391, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 4, - }, - "location": 4400, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "interval_month_type", - "is_local": true, - "location": 4414, - "typeName": { - "location": 4434, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 4443, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "interval_day_type", - "is_local": true, - "location": 4458, - "typeName": { - "location": 4476, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 8, - }, - "location": 4485, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "interval_hour_type", - "is_local": true, - "location": 4498, - "typeName": { - "location": 4517, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1024, - }, - "location": 4526, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "interval_minute_type", - "is_local": true, - "location": 4540, - "typeName": { - "location": 4561, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 2048, - }, - "location": 4570, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "interval_type", - "is_local": true, - "location": 4586, - "typeName": { - "location": 4600, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "interval", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "json_type", - "is_local": true, - "location": 4618, - "typeName": { - "location": 4628, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "json", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "jsonb_type", - "is_local": true, - "location": 4653, - "typeName": { - "location": 4664, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "jsonb", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "line_type", - "is_local": true, - "location": 4690, - "typeName": { - "location": 4700, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "line", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "lseg_type", - "is_local": true, - "location": 4725, - "typeName": { - "location": 4735, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "lseg", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "macaddr_type", - "is_local": true, - "location": 4760, - "typeName": { - "location": 4773, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "macaddr", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "money_type", - "is_local": true, - "location": 4801, - "typeName": { - "location": 4812, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "money", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "numeric_type", - "is_local": true, - "location": 4838, - "typeName": { - "location": 4851, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "numeric_opt_type", - "is_local": true, - "location": 4868, - "typeName": { - "location": 4885, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "numeric", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 4893, - }, - }, - { - "A_Const": { - "ival": { - "ival": 10, - }, - "location": 4897, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "path_type", - "is_local": true, - "location": 4910, - "typeName": { - "location": 4920, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "path", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "pg_lsn_type", - "is_local": true, - "location": 4945, - "typeName": { - "location": 4957, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "pg_lsn", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "point_type", - "is_local": true, - "location": 4984, - "typeName": { - "location": 4995, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "point", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "polygon_type", - "is_local": true, - "location": 5021, - "typeName": { - "location": 5034, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "polygon", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "serial_type", - "is_local": true, - "location": 5062, - "typeName": { - "location": 5074, - "names": [ - { - "String": { - "sval": "serial", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "serial4_type", - "is_local": true, - "location": 5090, - "typeName": { - "location": 5103, - "names": [ - { - "String": { - "sval": "serial4", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "serial8_type", - "is_local": true, - "location": 5120, - "typeName": { - "location": 5133, - "names": [ - { - "String": { - "sval": "serial8", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "smallint_type", - "is_local": true, - "location": 5150, - "typeName": { - "location": 5164, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "int2", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "text_type", - "is_local": true, - "location": 5182, - "typeName": { - "location": 5192, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "text", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "time_opt_2_type", - "is_local": true, - "location": 5217, - "typeName": { - "location": 5233, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5238, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "time_type", - "is_local": true, - "location": 5250, - "typeName": { - "location": 5260, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "time_type_mod", - "is_local": true, - "location": 5274, - "typeName": { - "location": 5288, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "time", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5293, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "timestamp_type", - "is_local": true, - "location": 5305, - "typeName": { - "location": 5320, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamp", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "timestamptz_type", - "is_local": true, - "location": 5339, - "typeName": { - "location": 5356, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timestamptz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "timetz_opt_2_type", - "is_local": true, - "location": 5388, - "typeName": { - "location": 5406, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timetz", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5424, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "timetz_type", - "is_local": true, - "location": 5436, - "typeName": { - "location": 5448, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "timetz", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "tsquery_type", - "is_local": true, - "location": 5475, - "typeName": { - "location": 5488, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "tsquery", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "tsvector_type", - "is_local": true, - "location": 5516, - "typeName": { - "location": 5530, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "tsvector", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "uuid_type", - "is_local": true, - "location": 5559, - "typeName": { - "location": 5569, - "names": [ - { - "String": { - "sval": "uuid", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "varbit_1_type", - "is_local": true, - "location": 5583, - "typeName": { - "location": 5597, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varbit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5615, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "varbit_2_type", - "is_local": true, - "location": 5627, - "typeName": { - "location": 5641, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varbit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 2, - }, - "location": 5659, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "varbit_16_type", - "is_local": true, - "location": 5671, - "typeName": { - "location": 5686, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varbit", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 16, - }, - "location": 5704, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "varbit_type", - "is_local": true, - "location": 5717, - "typeName": { - "location": 5729, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varbit", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "varchar_opt_1_type", - "is_local": true, - "location": 5756, - "typeName": { - "location": 5775, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 5783, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "varchar_opt_140_type", - "is_local": true, - "location": 5795, - "typeName": { - "location": 5816, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 140, - }, - "location": 5824, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "varchar_opt_1000_type", - "is_local": true, - "location": 5838, - "typeName": { - "location": 5860, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1000, - }, - "location": 5868, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "varchar_type", - "is_local": true, - "location": 5883, - "typeName": { - "location": 5896, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "varchar", - }, - }, - ], - "typemod": -1, - }, - }, - }, - { - "ColumnDef": { - "colname": "xml_type", - "is_local": true, - "location": 5913, - "typeName": { - "location": 5922, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "xml", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 3084, - "stmt_location": 2859, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateStmt": { - "oncommit": "ONCOMMIT_NOOP", - "relation": { - "inh": true, - "location": 5967, - "relname": "table_with_pg_catalog_chars", - "relpersistence": "p", - }, - "tableElts": [ - { - "ColumnDef": { - "colname": "a", - "is_local": true, - "location": 6005, - "typeName": { - "location": 6007, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bpchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": 6012, - }, - }, - ], - }, - }, - }, - { - "ColumnDef": { - "colname": "b", - "is_local": true, - "location": 6024, - "typeName": { - "location": 6026, - "names": [ - { - "String": { - "sval": "bpchar", - }, - }, - ], - "typemod": -1, - }, - }, - }, - ], - }, - }, - "stmt_len": 95, - "stmt_location": 5944, - }, - }, - { - "RawStmt": { - "stmt": { - "CreateFunctionStmt": { - "funcname": [ - { - "String": { - "sval": "charfunc", - }, - }, - ], - "options": [ - { - "DefElem": { - "arg": { - "List": { - "items": [ - { - "String": { - "sval": " -BEGIN - - -END; -", - }, - }, - ], - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "as", - "location": 6129, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "plpgsql", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "language", - "location": 6152, - }, - }, - { - "DefElem": { - "arg": { - "String": { - "sval": "volatile", - }, - }, - "defaction": "DEFELEM_UNSPEC", - "defname": "volatility", - "location": 6171, - }, - }, - ], - "parameters": [ - { - "FunctionParameter": { - "argType": { - "location": 6074, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "char", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "a", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 6097, - "names": [ - { - "String": { - "sval": "char", - }, - }, - ], - "typemod": -1, - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "b", - }, - }, - { - "FunctionParameter": { - "argType": { - "location": 6109, - "names": [ - { - "String": { - "sval": "pg_catalog", - }, - }, - { - "String": { - "sval": "bpchar", - }, - }, - ], - "typemod": -1, - "typmods": [ - { - "A_Const": { - "ival": { - "ival": 1, - }, - "location": -1, - }, - }, - ], - }, - "mode": "FUNC_PARAM_DEFAULT", - "name": "c", - }, - }, - ], - "returnType": { - "location": 6124, - "names": [ - { - "String": { - "sval": "void", - }, - }, - ], - "typemod": -1, - }, - }, - }, - "stmt_len": 139, - "stmt_location": 6040, - }, - }, -] -`; diff --git a/packages/parser/__tests__/async.test.ts b/packages/parser/__tests__/async.test.ts deleted file mode 100644 index 0e4d67ef..00000000 --- a/packages/parser/__tests__/async.test.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { parseAsync } from '../src'; -import { cleanTree } from '../src/utils'; - -const testQuery = ` - SELECT * - FROM restaurants - WHERE health_grade = 'A' - AND average_rating >= 4.5; -`; - -it('works', async () => { - const results = await parseAsync(testQuery); - expect(cleanTree(results)).toMatchSnapshot(); -}); diff --git a/packages/parser/__tests__/funcs.test.ts b/packages/parser/__tests__/funcs.test.ts deleted file mode 100644 index b4cbf7d2..00000000 --- a/packages/parser/__tests__/funcs.test.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { parseFunction } from '../src'; -import { cleanTree } from '../src/utils'; - -const testFunction = ` -CREATE FUNCTION ast.index_elem ( - v_name text DEFAULT NULL, - v_ordering int DEFAULT NULL, - v_nulls_ordering int DEFAULT NULL, - v_expr jsonb DEFAULT NULL, - v_opclass jsonb DEFAULT NULL, - v_collation jsonb DEFAULT NULL -) RETURNS jsonb AS $EOFCODE$ -DECLARE - result jsonb = '{"IndexElem":{}}'::jsonb; -BEGIN - result = ast.jsonb_set(result, '{IndexElem, name}', to_jsonb(v_name)); - result = ast.jsonb_set(result, '{IndexElem, ordering}', to_jsonb(v_ordering)); - result = ast.jsonb_set(result, '{IndexElem, nulls_ordering}', to_jsonb(v_nulls_ordering)); - result = ast.jsonb_set(result, '{IndexElem, expr}', v_expr); - result = ast.jsonb_set(result, '{IndexElem, opclass}', v_opclass); - result = ast.jsonb_set(result, '{IndexElem, collation}', v_collation); - RETURN result; -END; -$EOFCODE$ LANGUAGE plpgsql IMMUTABLE; - `; - -it('works', async () => { - const results = parseFunction(testFunction); - expect(cleanTree(results)).toMatchSnapshot(); -}); diff --git a/packages/parser/__tests__/kitchen-sink.test.ts b/packages/parser/__tests__/kitchen-sink.test.ts deleted file mode 100644 index 8e15f8dc..00000000 --- a/packages/parser/__tests__/kitchen-sink.test.ts +++ /dev/null @@ -1,710 +0,0 @@ -import { parse } from '../src'; -import { deparse } from 'pgsql-deparser'; -import { cleanTree, cleanLines } from '../src/utils'; -import { readFileSync } from 'fs'; -import { sync as glob } from 'glob'; - -const FIXTURE_DIR = `${__dirname}/../../../__fixtures__`; - -export const check = (file: string) => { - const testsql = glob(`${FIXTURE_DIR}/${file}`).map((f) => - readFileSync(f).toString() - )[0]; - try { - const tree = parse(testsql); - expect(tree).toMatchSnapshot(); - // TODO implement deparser - // const sql = deparse(tree, {}); - // expect(cleanLines(sql)).toMatchSnapshot(); - // expect(cleanTree(parse(sql))).toEqual(cleanTree(tree)); - } catch (err) { - const message = err instanceof Error ? err.message : String(err); - console.error(`Error in fixture test "${file}": ${message}`); - console.error(`SQL:\n${testsql}`); - throw err; - } -}; - -it('parens', () => { - check('parens.sql'); -}); - -it('comment', () => { - check('comment.sql'); -}); - -it('drops', () => { - check('drops.sql'); -}); - -it('a_expr', () => { - check('a_expr.sql'); -}); - -it('pg_catalog', () => { - check('pg_catalog.sql'); -}); - -describe('kitchen sink', () => { - it('alter', () => { - check('alter/alter.sql'); - }); - it('default privs', () => { - check('alter/default-privs.sql'); - }); - it('set', () => { - check('set/custom.sql'); - }); - it('comments', () => { - check('comments/custom.sql'); - }); - it('sequences', () => { - check('sequences/sequences.sql'); - check('sequences/alter.sql'); - }); - it('policies', () => { - check('policies/custom.sql'); - }); - it('grants', () => { - check('grants/custom.sql'); - }); - it('types', () => { - check('types/composite.sql'); - }); - it('domains', () => { - check('domains/create.sql'); - }); - it('indexes', () => { - check('indexes/custom.sql'); - }); - it('enums', () => { - check('enums/create.sql'); - }); - it('do stmt', () => { - check('do/custom.sql'); - }); - it('insert', () => { - check('statements/insert.sql'); - }); - it('update', () => { - check('statements/update.sql'); - }); - it('select', () => { - check('statements/select.sql'); - }); - it('conflicts', () => { - check('statements/conflicts.sql'); - }); - it('delete', () => { - check('statements/delete.sql'); - }); - it('alias', () => { - check('statements/alias.sql'); - }); - it('domain', () => { - check('domains/create.sql'); - }); - describe('tables', () => { - it('match', () => { - check('tables/match.sql'); - }); - it('temp', () => { - check('tables/temp.sql'); - }); - it('custom', () => { - check('tables/custom.sql'); - }); - it('check', () => { - check('tables/check.sql'); - }); - it('defaults', () => { - check('tables/defaults.sql'); - }); - it('exclude', () => { - check('tables/exclude.sql'); - }); - it('foreign', () => { - check('tables/foreign.sql'); - }); - it('nulls', () => { - check('tables/nulls.sql'); - }); - it('on_delete', () => { - check('tables/on_delete.sql'); - }); - it('on_update', () => { - check('tables/on_update.sql'); - }); - it('unique', () => { - check('tables/unique.sql'); - }); - }); - describe('functions', () => { - it('basic', () => { - check('functions/basic.sql'); - }); - it('returns_table', () => { - check('functions/returns_table.sql'); - }); - it('returns_trigger', () => { - check('functions/returns_trigger.sql'); - }); - it('setof', () => { - check('functions/setof.sql'); - }); - }); - describe('roles', () => { - it('create', () => { - check('roles/create.sql'); - }); - it('grants', () => { - check('roles/grants.sql'); - }); - }); - describe('rules', () => { - it('create', () => { - check('rules/create.sql'); - }); - }); - describe('views', () => { - it('create', () => { - check('views/create.sql'); - }); - }); - describe('transactions', () => { - it('begin_commit', () => { - check('transactions/begin_commit.sql'); - }); - }); - describe('triggers', () => { - it('create', () => { - check('triggers/create.sql'); - }); - it('custom', () => { - check('triggers/custom.sql'); - }); - }); - describe('fixtures', () => { - it('complex.sql', () => { - check('complex.sql'); - }); - it('custom.sql', () => { - check('custom.sql'); - }); - it('param-ref.sql', () => { - check('param-ref.sql'); - }); - it('query-001.sql', () => { - check('query-001.sql'); - }); - it('query-002.sql', () => { - check('query-002.sql'); - }); - it('query-003.sql', () => { - check('query-003.sql'); - }); - it('simple.sql', () => { - check('simple.sql'); - }); - }); - describe('upstream', () => { - it('upstream/abstime.sql', () => { - check('upstream/abstime.sql'); - }); - it('upstream/advisory_lock.sql', () => { - check('upstream/advisory_lock.sql'); - }); - it('upstream/aggregates.sql', () => { - check('upstream/aggregates.sql'); - }); - it('upstream/alter_generic.sql', () => { - check('upstream/alter_generic.sql'); - }); - it('upstream/alter_operator.sql', () => { - check('upstream/alter_operator.sql'); - }); - xit('upstream/alter_table.sql', () => { - check('upstream/alter_table.sql'); - }); - xit('upstream/arrays.sql', () => { - check('upstream/arrays.sql'); - }); - it('upstream/async.sql', () => { - check('upstream/async.sql'); - }); - it('upstream/bit.sql', () => { - check('upstream/bit.sql'); - }); - it('upstream/bitmapops.sql', () => { - check('upstream/bitmapops.sql'); - }); - it('upstream/boolean.sql', () => { - check('upstream/boolean.sql'); - }); - it('upstream/box.sql', () => { - check('upstream/box.sql'); - }); - it('upstream/brin.sql', () => { - check('upstream/brin.sql'); - }); - it('upstream/btree_index.sql', () => { - check('upstream/btree_index.sql'); - }); - it('upstream/case.sql', () => { - check('upstream/case.sql'); - }); - it('upstream/char.sql', () => { - check('upstream/char.sql'); - }); - it('upstream/circle.sql', () => { - check('upstream/circle.sql'); - }); - it('upstream/cluster.sql', () => { - check('upstream/cluster.sql'); - }); - it('upstream/collate.linux.utf8.sql', () => { - check('upstream/collate.linux.utf8.sql'); - }); - it('upstream/collate.sql', () => { - check('upstream/collate.sql'); - }); - it('upstream/combocid.sql', () => { - check('upstream/combocid.sql'); - }); - it('upstream/comments.sql', () => { - check('upstream/comments.sql'); - }); - it('upstream/conversion.sql', () => { - check('upstream/conversion.sql'); - }); - xit('upstream/copy2.sql', () => { - check('upstream/copy2.sql'); - }); - it('upstream/copydml.sql', () => { - check('upstream/copydml.sql'); - }); - it('upstream/copyselect.sql', () => { - check('upstream/copyselect.sql'); - }); - it('upstream/create_aggregate.sql', () => { - check('upstream/create_aggregate.sql'); - }); - it('upstream/create_am.sql', () => { - check('upstream/create_am.sql'); - }); - it('upstream/create_cast.sql', () => { - check('upstream/create_cast.sql'); - }); - it('upstream/create_function_3.sql', () => { - check('upstream/create_function_3.sql'); - }); - xit('upstream/create_index.sql', () => { - check('upstream/create_index.sql'); - }); - it('upstream/create_misc.sql', () => { - check('upstream/create_misc.sql'); - }); - it('upstream/create_operator.sql', () => { - check('upstream/create_operator.sql'); - }); - it('upstream/create_table.sql', () => { - check('upstream/create_table.sql'); - }); - it('upstream/create_table_like.sql', () => { - check('upstream/create_table_like.sql'); - }); - it('upstream/create_type.sql', () => { - check('upstream/create_type.sql'); - }); - it('upstream/create_view.sql', () => { - check('upstream/create_view.sql'); - }); - it('upstream/date.sql', () => { - check('upstream/date.sql'); - }); - it('upstream/dbsize.sql', () => { - check('upstream/dbsize.sql'); - }); - it('upstream/delete.sql', () => { - check('upstream/delete.sql'); - }); - it('upstream/dependency.sql', () => { - check('upstream/dependency.sql'); - }); - it('upstream/domain.sql', () => { - check('upstream/domain.sql'); - }); - it('upstream/drop_if_exists.sql', () => { - check('upstream/drop_if_exists.sql'); - }); - it('upstream/drop_operator.sql', () => { - check('upstream/drop_operator.sql'); - }); - it('upstream/enum.sql', () => { - check('upstream/enum.sql'); - }); - it('upstream/equivclass.sql', () => { - check('upstream/equivclass.sql'); - }); - it('upstream/errors.sql', () => { - check('upstream/errors.sql'); - }); - it('upstream/event_trigger.sql', () => { - check('upstream/event_trigger.sql'); - }); - it('upstream/float4.sql', () => { - check('upstream/float4.sql'); - }); - it('upstream/float8.sql', () => { - check('upstream/float8.sql'); - }); - it('upstream/foreign_data.sql', () => { - check('upstream/foreign_data.sql'); - }); - it('upstream/foreign_key.sql', () => { - check('upstream/foreign_key.sql'); - }); - it('upstream/functional_deps.sql', () => { - check('upstream/functional_deps.sql'); - }); - it('upstream/geometry.sql', () => { - check('upstream/geometry.sql'); - }); - it('upstream/gin.sql', () => { - check('upstream/gin.sql'); - }); - it('upstream/gist.sql', () => { - check('upstream/gist.sql'); - }); - it('upstream/groupingsets.sql', () => { - check('upstream/groupingsets.sql'); - }); - it('upstream/guc.sql', () => { - check('upstream/guc.sql'); - }); - it('upstream/hash_index.sql', () => { - check('upstream/hash_index.sql'); - }); - it('upstream/horology.sql', () => { - check('upstream/horology.sql'); - }); - it('upstream/hs_primary_extremes.sql', () => { - check('upstream/hs_primary_extremes.sql'); - }); - it('upstream/hs_primary_setup.sql', () => { - check('upstream/hs_primary_setup.sql'); - }); - it('upstream/hs_standby_allowed.sql', () => { - check('upstream/hs_standby_allowed.sql'); - }); - it('upstream/hs_standby_check.sql', () => { - check('upstream/hs_standby_check.sql'); - }); - it('upstream/hs_standby_disallowed.sql', () => { - check('upstream/hs_standby_disallowed.sql'); - }); - it('upstream/hs_standby_functions.sql', () => { - check('upstream/hs_standby_functions.sql'); - }); - it('upstream/indirect_toast.sql', () => { - check('upstream/indirect_toast.sql'); - }); - it('upstream/inet.sql', () => { - check('upstream/inet.sql'); - }); - it('upstream/inherit.sql', () => { - check('upstream/inherit.sql'); - }); - it('upstream/init_privs.sql', () => { - check('upstream/init_privs.sql'); - }); - it('upstream/insert.sql', () => { - check('upstream/insert.sql'); - }); - xit('upstream/insert_conflict.sql', () => { - check('upstream/insert_conflict.sql'); - }); - it('upstream/int2.sql', () => { - check('upstream/int2.sql'); - }); - it('upstream/int4.sql', () => { - check('upstream/int4.sql'); - }); - xit('upstream/int8.sql', () => { - check('upstream/int8.sql'); - }); - xit('upstream/interval.sql', () => { - check('upstream/interval.sql'); - }); - xit('upstream/join.sql', () => { - check('upstream/join.sql'); - }); - xit('upstream/json.sql', () => { - check('upstream/json.sql'); - }); - it('upstream/json_encoding.sql', () => { - check('upstream/json_encoding.sql'); - }); - xit('upstream/jsonb.sql', () => { - check('upstream/jsonb.sql'); - }); - xit('upstream/limit.sql', () => { - check('upstream/limit.sql'); - }); - it('upstream/line.sql', () => { - check('upstream/line.sql'); - }); - xit('upstream/lock.sql', () => { - check('upstream/lock.sql'); - }); - it('upstream/lseg.sql', () => { - check('upstream/lseg.sql'); - }); - xit('upstream/macaddr.sql', () => { - check('upstream/macaddr.sql'); - }); - xit('upstream/matview.sql', () => { - check('upstream/matview.sql'); - }); - it('upstream/misc_functions.sql', () => { - check('upstream/misc_functions.sql'); - }); - it('upstream/money.sql', () => { - check('upstream/money.sql'); - }); - xit('upstream/name.sql', () => { - check('upstream/name.sql'); - }); - xit('upstream/namespace.sql', () => { - check('upstream/namespace.sql'); - }); - xit('upstream/numeric.sql', () => { - check('upstream/numeric.sql'); - }); - xit('upstream/numeric_big.sql', () => { - check('upstream/numeric_big.sql'); - }); - it('upstream/numerology.sql', () => { - check('upstream/numerology.sql'); - }); - xit('upstream/object_address.sql', () => { - check('upstream/object_address.sql'); - }); - it('upstream/oid.sql', () => { - check('upstream/oid.sql'); - }); - it('upstream/oidjoins.sql', () => { - check('upstream/oidjoins.sql'); - }); - xit('upstream/opr_sanity.sql', () => { - check('upstream/opr_sanity.sql'); - }); - it('upstream/path.sql', () => { - check('upstream/path.sql'); - }); - xit('upstream/pg_lsn.sql', () => { - check('upstream/pg_lsn.sql'); - }); - xit('upstream/plancache.sql', () => { - check('upstream/plancache.sql'); - }); - xit('upstream/plpgsql.sql', () => { - check('upstream/plpgsql.sql'); - }); - xit('upstream/point.sql', () => { - check('upstream/point.sql'); - }); - it('upstream/polygon.sql', () => { - check('upstream/polygon.sql'); - }); - xit('upstream/polymorphism.sql', () => { - check('upstream/polymorphism.sql'); - }); - xit('upstream/portals.sql', () => { - check('upstream/portals.sql'); - }); - xit('upstream/portals_p2.sql', () => { - check('upstream/portals_p2.sql'); - }); - xit('upstream/prepare.sql', () => { - check('upstream/prepare.sql'); - }); - xit('upstream/prepared_xacts.sql', () => { - check('upstream/prepared_xacts.sql'); - }); - xit('upstream/privileges.sql', () => { - check('upstream/privileges.sql'); - }); - xit('upstream/psql.sql', () => { - check('upstream/psql.sql'); - }); - xit('upstream/psql_crosstab.sql', () => { - check('upstream/psql_crosstab.sql'); - }); - it('upstream/random.sql', () => { - check('upstream/random.sql'); - }); - xit('upstream/rangefuncs.sql', () => { - check('upstream/rangefuncs.sql'); - }); - xit('upstream/rangetypes.sql', () => { - check('upstream/rangetypes.sql'); - }); - xit('upstream/regex.sql', () => { - check('upstream/regex.sql'); - }); - xit('upstream/regproc.sql', () => { - check('upstream/regproc.sql'); - }); - it('upstream/reltime.sql', () => { - check('upstream/reltime.sql'); - }); - xit('upstream/replica_identity.sql', () => { - check('upstream/replica_identity.sql'); - }); - xit('upstream/returning.sql', () => { - check('upstream/returning.sql'); - }); - xit('upstream/roleattributes.sql', () => { - check('upstream/roleattributes.sql'); - }); - xit('upstream/rolenames.sql', () => { - check('upstream/rolenames.sql'); - }); - xit('upstream/rowsecurity.sql', () => { - check('upstream/rowsecurity.sql'); - }); - xit('upstream/rowtypes.sql', () => { - check('upstream/rowtypes.sql'); - }); - xit('upstream/rules.sql', () => { - check('upstream/rules.sql'); - }); - xit('upstream/sanity_check.sql', () => { - check('upstream/sanity_check.sql'); - }); - xit('upstream/security_label.sql', () => { - check('upstream/security_label.sql'); - }); - xit('upstream/select.sql', () => { - check('upstream/select.sql'); - }); - xit('upstream/select_distinct.sql', () => { - check('upstream/select_distinct.sql'); - }); - it('upstream/select_distinct_on.sql', () => { - check('upstream/select_distinct_on.sql'); - }); - it('upstream/select_having.sql', () => { - check('upstream/select_having.sql'); - }); - it('upstream/select_implicit.sql', () => { - check('upstream/select_implicit.sql'); - }); - xit('upstream/select_into.sql', () => { - check('upstream/select_into.sql'); - }); - xit('upstream/select_views.sql', () => { - check('upstream/select_views.sql'); - }); - xit('upstream/sequence.sql', () => { - check('upstream/sequence.sql'); - }); - xit('upstream/spgist.sql', () => { - check('upstream/spgist.sql'); - }); - xit('upstream/stats.sql', () => { - check('upstream/stats.sql'); - }); - xit('upstream/strings.sql', () => { - check('upstream/strings.sql'); - }); - xit('upstream/subselect.sql', () => { - check('upstream/subselect.sql'); - }); - xit('upstream/tablesample.sql', () => { - check('upstream/tablesample.sql'); - }); - xit('upstream/temp.sql', () => { - check('upstream/temp.sql'); - }); - it('upstream/text.sql', () => { - check('upstream/text.sql'); - }); - it('upstream/time.sql', () => { - check('upstream/time.sql'); - }); - xit('upstream/timestamp.sql', () => { - check('upstream/timestamp.sql'); - }); - xit('upstream/timestamptz.sql', () => { - check('upstream/timestamptz.sql'); - }); - it('upstream/timetz.sql', () => { - check('upstream/timetz.sql'); - }); - it('upstream/tinterval.sql', () => { - check('upstream/tinterval.sql'); - }); - xit('upstream/transactions.sql', () => { - check('upstream/transactions.sql'); - }); - xit('upstream/triggers.sql', () => { - check('upstream/triggers.sql'); - }); - xit('upstream/truncate.sql', () => { - check('upstream/truncate.sql'); - }); - xit('upstream/tsdicts.sql', () => { - check('upstream/tsdicts.sql'); - }); - xit('upstream/tsearch.sql', () => { - check('upstream/tsearch.sql'); - }); - it('upstream/tstypes.sql', () => { - check('upstream/tstypes.sql'); - }); - it('upstream/txid.sql', () => { - check('upstream/txid.sql'); - }); - xit('upstream/type_sanity.sql', () => { - check('upstream/type_sanity.sql'); - }); - xit('upstream/typed_table.sql', () => { - check('upstream/typed_table.sql'); - }); - xit('upstream/union.sql', () => { - check('upstream/union.sql'); - }); - xit('upstream/updatable_views.sql', () => { - check('upstream/updatable_views.sql'); - }); - xit('upstream/update.sql', () => { - check('upstream/update.sql'); - }); - xit('upstream/uuid.sql', () => { - check('upstream/uuid.sql'); - }); - xit('upstream/vacuum.sql', () => { - check('upstream/vacuum.sql'); - }); - it('upstream/varchar.sql', () => { - check('upstream/varchar.sql'); - }); - xit('upstream/window.sql', () => { - check('upstream/window.sql'); - }); - xit('upstream/with.sql', () => { - check('upstream/with.sql'); - }); - xit('upstream/without_oid.sql', () => { - check('upstream/without_oid.sql'); - }); - xit('upstream/xml.sql', () => { - check('upstream/xml.sql'); - }); - xit('upstream/xmlmap.sql', () => { - check('upstream/xmlmap.sql'); - }); - }); -}); diff --git a/packages/parser/package.json b/packages/parser/package.json index f915e8ed..a8d3a680 100644 --- a/packages/parser/package.json +++ b/packages/parser/package.json @@ -1,5 +1,5 @@ { - "name": "@pgsql/parser", + "name": "pgsql-parser", "version": "17.0.0", "author": "Dan Lynch ", "description": "The real PostgreSQL query parser", @@ -43,7 +43,7 @@ ], "dependencies": { "@pgsql/types": "^17.0.0", - "libpg-query": "17.1.1", + "libpg-query": "17.3.3", "minimist": "^1.2.6" } } \ No newline at end of file diff --git a/packages/parser/src/index.ts b/packages/parser/src/index.ts index 5e5fba2d..ee38816f 100644 --- a/packages/parser/src/index.ts +++ b/packages/parser/src/index.ts @@ -1,7 +1,8 @@ export { - parseQuery as parseAsync, - parseQuerySync as parse, - parsePlPgSQLSync as parseFunction, - deparseSync as deparse, - deparse as deparseAsync + parse as parse, + parseSync as parseSync, + parsePlPgSQL as parseFunction, + deparseSync as deparseSync, + deparse as deparse, + loadModule as loadModule } from 'libpg-query'; diff --git a/packages/proto-parser/README.md b/packages/proto-parser/README.md index 16c598a2..101dd0d2 100644 --- a/packages/proto-parser/README.md +++ b/packages/proto-parser/README.md @@ -18,8 +18,12 @@ - Parses protobuf definitions and creates a structured representation in TypeScript. - Generates TypeScript interfaces for protobuf messages. -- Creates utility functions for enum value conversions. -- Produces JSON files mapping enum names to integer values and vice versa +- Creates utility functions for enum value conversions with multiple output formats: + - Bidirectional conversion functions (string ↔ number) + - Unidirectional conversion functions with precise types + - Switch statement or nested object output formats +- Produces JSON or TypeScript files mapping enum names to integer values and vice versa +- Supports tree-shakable enum utilities for optimal bundle sizes ## Parsing and Generating Files @@ -44,6 +48,132 @@ await parser.write(); - [`enums2int.json`](https://raw.githubusercontent.com/launchql/pgsql-parser/main/__fixtures__/output/enums/json/enabled/enums2int.json): JSON mapping of enum names to integer values. - [`enums2str.json`](https://raw.githubusercontent.com/launchql/pgsql-parser/main/__fixtures__/output/enums/json/enabled/enums2str.json): JSON mapping of integer values to enum names. +### Example: Generating TypeScript Enum Maps + +You can generate TypeScript exports instead of JSON files for enum mappings: + +```js +const parser = new PgProtoParser(inFile, { + outDir, + enums: { + enumMap: { + enabled: true, + format: 'ts', // Generate TypeScript exports + toIntOutFile: 'enum-to-int.ts', + toStrOutFile: 'enum-to-str.ts' + } + } +}); + +await parser.write(); +``` + +This will generate TypeScript files with exports like: + +```ts +// enum-to-int.ts +export const enumToIntMap = { + OverridingKind: { + OVERRIDING_NOT_SET: 0, + OVERRIDING_USER_VALUE: 1, + OVERRIDING_SYSTEM_VALUE: 2 + }, + // ... more enums +}; +export type EnumToIntMap = typeof enumToIntMap; + +// enum-to-str.ts +export const enumToStrMap = { + OverridingKind: { + "0": 'OVERRIDING_NOT_SET', + "1": 'OVERRIDING_USER_VALUE', + "2": 'OVERRIDING_SYSTEM_VALUE' + }, + // ... more enums +}; +export type EnumToStrMap = typeof enumToStrMap; +``` + +### Example: Generating Enum Utility Functions + +You can generate utility functions for runtime enum conversions: + +```js +// Bidirectional function (default) +const parser = new PgProtoParser(inFile, { + outDir, + utils: { + enums: { + enabled: true, + filename: 'enum-utils.ts' + } + } +}); + +// Unidirectional functions with switch statements +const parser = new PgProtoParser(inFile, { + outDir, + utils: { + enums: { + enabled: true, + unidirectional: true, + toIntFilename: 'enum-to-int.ts', + toStringFilename: 'enum-to-string.ts' + } + } +}); + +// Unidirectional functions with nested objects format +const parser = new PgProtoParser(inFile, { + outDir, + utils: { + enums: { + enabled: true, + unidirectional: true, + outputFormat: 'nestedObjects', + toIntFilename: 'enum-to-int-map.ts', + toStringFilename: 'enum-to-string-map.ts' + } + } +}); +``` + +#### Generated Utility Functions + +**Bidirectional (default):** +```ts +// utils.ts +export const getEnumValue = (enumType: EnumType, key: string | number) => { + // Returns number for string input, string for number input +}; +``` + +**Unidirectional with switch statements:** +```ts +// enum-to-int.ts +export const getEnumInt = (enumType: EnumType, key: string): number => { + // Converts enum string to number +}; + +// enum-to-string.ts +export const getEnumString = (enumType: EnumType, key: number): string => { + // Converts enum number to string +}; +``` + +**Unidirectional with nested objects:** +```ts +// enum-to-int-map.ts +export const enumToIntMap = { + OverridingKind: (key: string): number => { /* ... */ }, + QuerySource: (key: string): number => { /* ... */ }, + // ... more enums +}; + +// Usage +const value = enumToIntMap.OverridingKind("OVERRIDING_USER_VALUE"); // Returns: 1 +``` + ## Configuration You can configure `pg-proto-parser` by passing different parameters to the `ProtoStore` constructor: @@ -53,39 +183,70 @@ You can configure `pg-proto-parser` by passing different parameters to the `Prot ## Options -This table describes the options available for `PgProtoParserOptions`, their functionality, and default values. - - -| Option | Description | Default Value | -|------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------|--------------------------| -| `outDir` | The directory where the generated files will be saved. | `process.cwd() + "/out"` | -| `exclude` | List of type or enum names to exclude during processing. | `[]` | -| `utils.enums.enabled` | Whether to generate TypeScript utility functions for enums. | `false` | -| `utils.enums.filename` | Filename for the generated enums utilities. | `'utils.ts'` | -| `utils.astHelpers.enabled` | Outputs TypeScript helpers for building PostgreSQL ASTs. | `false` | -| `utils.astHelpers.wrappedTypesSource` | Path to the TypeScript types to use when generating AST helpers. | `'./wrapped'` | -| `utils.astHelpers.inlineNestedObj` | Whether to inline `nested-obj` code within the generated file. | `false` | -| `utils.astHelpers.nestedObjFile` | Filename for the inlined `nested-obj` code, if `inlineNestedObj` is true. | `'nested-obj.ts'` | -| `utils.astHelpers.filename` | Filename for the generated AST helpers. | `'asts.ts'` | -| `types.enabled` | Whether to generate TypeScript interfaces for protobuf messages. | `false` | -| `types.filename` | Filename for the generated TypeScript interfaces. | `'types.ts'` | -| `types.optionalFields` | Generates TypeScript interfaces with optional fields mapping to the PostgreSQL node types' fields; sets all fields to optional. | `true` | -| `types.enumsSource` | Path to the TypeScript enums to use when generating TypeScript interfaces. | `'./enums'` | -| `types.wrapped.enabled` | Whether to generate wrapped TypeScript interfaces to match AST nodes. | `false` | -| `types.wrapped.enumsSource` | Path to the TypeScript enums to use when generating wrapped TypeScript interfaces. | `'./enums'` | -| `types.wrapped.filename` | Filename for the generated wrapped TypeScript interfaces. | `'wrapped.ts'` | -| `enums.enabled` | Outputs TypeScript enum types for the PostgreSQL enums. | `false` | -| `enums.filename` | Filename for the generated TypeScript enums. | `'enums.ts'` | -| `enums.enumsAsTypeUnion` | Uses strings to define enum types as specified for the fields of each proto message type. | `true` | -| `enums.json.enabled` | Whether to generate JSON files mapping enum names to integer values and vice versa. | `false` | -| `enums.json.toIntOutFile` | Output file name for the JSON mapping of enum names to integer values. | `'enums2int.json'` | -| `enums.json.toStrOutFile` | Output file name for the JSON mapping of integer values to enum names. | `'enums2str.json'` | -| `enums.removeUndefinedAt0` | Removes the initial `UNDEFINED` enum entry and adjusts the subsequent values by decrementing them. | `true` | -| `runtimeSchema.enabled` | Whether to generate runtime schema for AST nodes with metadata about node types and field specifications. | `false` | -| `runtimeSchema.filename` | Filename for the generated runtime schema file. | `'runtime-schema'` | -| `runtimeSchema.format` | Output format for runtime schema generation ('json' or 'typescript'). | `'json'` | -| `includeHeader` | Includes a header at the top of generated TypeScript files to avoid manual manipulation which could cause issues in CI/CD pipelines. | `true` | +The options for `PgProtoParserOptions` are organized into the following categories: + +### General Options + +| Option | Description | Default Value | +|-----------------|----------------------------------------------------------------|--------------------------| +| `outDir` | The directory where the generated files will be saved. | `process.cwd() + "/out"` | +| `exclude` | List of type or enum names to exclude during processing. | `[]` | + +### Type Generation Options + +| Option | Description | Default Value | +|-----------------------------|---------------------------------------------------------------------------------------------------------------------------------|-----------------| +| `types.enabled` | Whether to generate TypeScript interfaces for protobuf messages. | `false` | +| `types.filename` | Filename for the generated TypeScript interfaces. | `'types.ts'` | +| `types.optionalFields` | Generates TypeScript interfaces with optional fields mapping to the PostgreSQL node types' fields; sets all fields to optional. | `true` | +| `types.enumsSource` | Path to the TypeScript enums to use when generating TypeScript interfaces. | `'./enums'` | +| `types.wrappedNodeTypeExport` | Simpler option for exporting Node type references. | `true` | + + + +### Enum Generation Options + +| Option | Description | Default Value | +|-----------------------------|-----------------------------------------------------------------------------------------------------|--------------------| +| `enums.enabled` | Outputs TypeScript enum types for the PostgreSQL enums. | `false` | +| `enums.filename` | Filename for the generated TypeScript enums. | `'enums.ts'` | +| `enums.enumsAsTypeUnion` | Uses strings to define enum types as specified for the fields of each proto message type. | `true` | +| `enums.removeUndefinedAt0` | Removes the initial `UNDEFINED` enum entry and adjusts the subsequent values by decrementing them. | `true` | + +### Enum Mapping Options + +| Option | Description | Default Value | +|-----------------------------|-----------------------------------------------------------------------------------------------------|--------------------| +| `enums.enumMap.enabled` | Whether to generate enum mapping files (replaces the old `enums.json` options). | `false` | +| `enums.enumMap.format` | Output format for enum mappings: 'json' for plain JSON files, 'ts' for TypeScript exports. | `'json'` | +| `enums.enumMap.toIntOutFile`| Output file name for the mapping of enum names to integer values. | `'enums2int.json'` | +| `enums.enumMap.toStrOutFile`| Output file name for the mapping of integer values to enum names. | `'enums2str.json'` | + +**Note:** The `enums.json.*` options are deprecated in favor of `enums.enumMap.*`. When using TypeScript format (`format: 'ts'`), the file extensions will be automatically corrected to `.ts`. + +### Utility Generation Options + +| Option | Description | Default Value | +|----------------------------------------|---------------------------------------------------------------------------------|--------------------| +| `utils.enums.enabled` | Whether to generate TypeScript utility functions for enums. | `false` | +| `utils.enums.filename` | Filename for the generated enums utilities (bidirectional). | `'utils.ts'` | +| `utils.enums.unidirectional` | Generate separate unidirectional conversion functions instead of bidirectional. | `false` | +| `utils.enums.toIntFilename` | Filename for string-to-int conversion utilities (when unidirectional). | `'enum-to-int.ts'` | +| `utils.enums.toStringFilename` | Filename for int-to-string conversion utilities (when unidirectional). | `'enum-to-string.ts'` | +| `utils.enums.outputFormat` | Output format: 'switchStatements' or 'nestedObjects'. | `'switchStatements'` | +| `utils.astHelpers.enabled` | Outputs TypeScript helpers for building PostgreSQL ASTs. | `false` | +| `utils.astHelpers.wrappedTypesSource` | Path to the TypeScript types to use when generating AST helpers. | `'./wrapped'` | +| `utils.astHelpers.inlineNestedObj` | Whether to inline `nested-obj` code within the generated file. | `false` | +| `utils.astHelpers.nestedObjFile` | Filename for the inlined `nested-obj` code, if `inlineNestedObj` is true. | `'nested-obj.ts'` | +| `utils.astHelpers.filename` | Filename for the generated AST helpers. | `'asts.ts'` | + +### Runtime Schema Options +| Option | Description | Default Value | +|--------------------------|------------------------------------------------------------------------------------------|---------------------| +| `runtimeSchema.enabled` | Whether to generate runtime schema for AST nodes with metadata about node types and field specifications. | `false` | +| `runtimeSchema.filename` | Filename for the generated runtime schema file. | `'runtime-schema'` | +| `runtimeSchema.format` | Output format for runtime schema generation ('json' or 'typescript'). | `'json'` | Each of these options can be set when initializing the `PgProtoParser` to customize its behavior and output. diff --git a/packages/proto-parser/__tests__/__snapshots__/enum-maps.test.ts.snap b/packages/proto-parser/__tests__/__snapshots__/enum-maps.test.ts.snap new file mode 100644 index 00000000..97545081 --- /dev/null +++ b/packages/proto-parser/__tests__/__snapshots__/enum-maps.test.ts.snap @@ -0,0 +1,9023 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`enum-maps disabled enum maps 1`] = ` +[ + { + "code": "/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type OverridingKind = "OVERRIDING_NOT_SET" | "OVERRIDING_USER_VALUE" | "OVERRIDING_SYSTEM_VALUE"; +export type QuerySource = "QSRC_ORIGINAL" | "QSRC_PARSER" | "QSRC_INSTEAD_RULE" | "QSRC_QUAL_INSTEAD_RULE" | "QSRC_NON_INSTEAD_RULE"; +export type SortByDir = "SORTBY_DEFAULT" | "SORTBY_ASC" | "SORTBY_DESC" | "SORTBY_USING"; +export type SortByNulls = "SORTBY_NULLS_DEFAULT" | "SORTBY_NULLS_FIRST" | "SORTBY_NULLS_LAST"; +export type SetQuantifier = "SET_QUANTIFIER_DEFAULT" | "SET_QUANTIFIER_ALL" | "SET_QUANTIFIER_DISTINCT"; +export type A_Expr_Kind = "AEXPR_OP" | "AEXPR_OP_ANY" | "AEXPR_OP_ALL" | "AEXPR_DISTINCT" | "AEXPR_NOT_DISTINCT" | "AEXPR_NULLIF" | "AEXPR_IN" | "AEXPR_LIKE" | "AEXPR_ILIKE" | "AEXPR_SIMILAR" | "AEXPR_BETWEEN" | "AEXPR_NOT_BETWEEN" | "AEXPR_BETWEEN_SYM" | "AEXPR_NOT_BETWEEN_SYM"; +export type RoleSpecType = "ROLESPEC_CSTRING" | "ROLESPEC_CURRENT_ROLE" | "ROLESPEC_CURRENT_USER" | "ROLESPEC_SESSION_USER" | "ROLESPEC_PUBLIC"; +export type TableLikeOption = "CREATE_TABLE_LIKE_COMMENTS" | "CREATE_TABLE_LIKE_COMPRESSION" | "CREATE_TABLE_LIKE_CONSTRAINTS" | "CREATE_TABLE_LIKE_DEFAULTS" | "CREATE_TABLE_LIKE_GENERATED" | "CREATE_TABLE_LIKE_IDENTITY" | "CREATE_TABLE_LIKE_INDEXES" | "CREATE_TABLE_LIKE_STATISTICS" | "CREATE_TABLE_LIKE_STORAGE" | "CREATE_TABLE_LIKE_ALL"; +export type DefElemAction = "DEFELEM_UNSPEC" | "DEFELEM_SET" | "DEFELEM_ADD" | "DEFELEM_DROP"; +export type PartitionStrategy = "PARTITION_STRATEGY_LIST" | "PARTITION_STRATEGY_RANGE" | "PARTITION_STRATEGY_HASH"; +export type PartitionRangeDatumKind = "PARTITION_RANGE_DATUM_MINVALUE" | "PARTITION_RANGE_DATUM_VALUE" | "PARTITION_RANGE_DATUM_MAXVALUE"; +export type RTEKind = "RTE_RELATION" | "RTE_SUBQUERY" | "RTE_JOIN" | "RTE_FUNCTION" | "RTE_TABLEFUNC" | "RTE_VALUES" | "RTE_CTE" | "RTE_NAMEDTUPLESTORE" | "RTE_RESULT"; +export type WCOKind = "WCO_VIEW_CHECK" | "WCO_RLS_INSERT_CHECK" | "WCO_RLS_UPDATE_CHECK" | "WCO_RLS_CONFLICT_CHECK" | "WCO_RLS_MERGE_UPDATE_CHECK" | "WCO_RLS_MERGE_DELETE_CHECK"; +export type GroupingSetKind = "GROUPING_SET_EMPTY" | "GROUPING_SET_SIMPLE" | "GROUPING_SET_ROLLUP" | "GROUPING_SET_CUBE" | "GROUPING_SET_SETS"; +export type CTEMaterialize = "CTEMaterializeDefault" | "CTEMaterializeAlways" | "CTEMaterializeNever"; +export type SetOperation = "SETOP_NONE" | "SETOP_UNION" | "SETOP_INTERSECT" | "SETOP_EXCEPT"; +export type ObjectType = "OBJECT_ACCESS_METHOD" | "OBJECT_AGGREGATE" | "OBJECT_AMOP" | "OBJECT_AMPROC" | "OBJECT_ATTRIBUTE" | "OBJECT_CAST" | "OBJECT_COLUMN" | "OBJECT_COLLATION" | "OBJECT_CONVERSION" | "OBJECT_DATABASE" | "OBJECT_DEFAULT" | "OBJECT_DEFACL" | "OBJECT_DOMAIN" | "OBJECT_DOMCONSTRAINT" | "OBJECT_EVENT_TRIGGER" | "OBJECT_EXTENSION" | "OBJECT_FDW" | "OBJECT_FOREIGN_SERVER" | "OBJECT_FOREIGN_TABLE" | "OBJECT_FUNCTION" | "OBJECT_INDEX" | "OBJECT_LANGUAGE" | "OBJECT_LARGEOBJECT" | "OBJECT_MATVIEW" | "OBJECT_OPCLASS" | "OBJECT_OPERATOR" | "OBJECT_OPFAMILY" | "OBJECT_PARAMETER_ACL" | "OBJECT_POLICY" | "OBJECT_PROCEDURE" | "OBJECT_PUBLICATION" | "OBJECT_PUBLICATION_NAMESPACE" | "OBJECT_PUBLICATION_REL" | "OBJECT_ROLE" | "OBJECT_ROUTINE" | "OBJECT_RULE" | "OBJECT_SCHEMA" | "OBJECT_SEQUENCE" | "OBJECT_SUBSCRIPTION" | "OBJECT_STATISTIC_EXT" | "OBJECT_TABCONSTRAINT" | "OBJECT_TABLE" | "OBJECT_TABLESPACE" | "OBJECT_TRANSFORM" | "OBJECT_TRIGGER" | "OBJECT_TSCONFIGURATION" | "OBJECT_TSDICTIONARY" | "OBJECT_TSPARSER" | "OBJECT_TSTEMPLATE" | "OBJECT_TYPE" | "OBJECT_USER_MAPPING" | "OBJECT_VIEW"; +export type DropBehavior = "DROP_RESTRICT" | "DROP_CASCADE"; +export type AlterTableType = "AT_AddColumn" | "AT_AddColumnToView" | "AT_ColumnDefault" | "AT_CookedColumnDefault" | "AT_DropNotNull" | "AT_SetNotNull" | "AT_DropExpression" | "AT_CheckNotNull" | "AT_SetStatistics" | "AT_SetOptions" | "AT_ResetOptions" | "AT_SetStorage" | "AT_SetCompression" | "AT_DropColumn" | "AT_AddIndex" | "AT_ReAddIndex" | "AT_AddConstraint" | "AT_ReAddConstraint" | "AT_ReAddDomainConstraint" | "AT_AlterConstraint" | "AT_ValidateConstraint" | "AT_AddIndexConstraint" | "AT_DropConstraint" | "AT_ReAddComment" | "AT_AlterColumnType" | "AT_AlterColumnGenericOptions" | "AT_ChangeOwner" | "AT_ClusterOn" | "AT_DropCluster" | "AT_SetLogged" | "AT_SetUnLogged" | "AT_DropOids" | "AT_SetAccessMethod" | "AT_SetTableSpace" | "AT_SetRelOptions" | "AT_ResetRelOptions" | "AT_ReplaceRelOptions" | "AT_EnableTrig" | "AT_EnableAlwaysTrig" | "AT_EnableReplicaTrig" | "AT_DisableTrig" | "AT_EnableTrigAll" | "AT_DisableTrigAll" | "AT_EnableTrigUser" | "AT_DisableTrigUser" | "AT_EnableRule" | "AT_EnableAlwaysRule" | "AT_EnableReplicaRule" | "AT_DisableRule" | "AT_AddInherit" | "AT_DropInherit" | "AT_AddOf" | "AT_DropOf" | "AT_ReplicaIdentity" | "AT_EnableRowSecurity" | "AT_DisableRowSecurity" | "AT_ForceRowSecurity" | "AT_NoForceRowSecurity" | "AT_GenericOptions" | "AT_AttachPartition" | "AT_DetachPartition" | "AT_DetachPartitionFinalize" | "AT_AddIdentity" | "AT_SetIdentity" | "AT_DropIdentity" | "AT_ReAddStatistics"; +export type GrantTargetType = "ACL_TARGET_OBJECT" | "ACL_TARGET_ALL_IN_SCHEMA" | "ACL_TARGET_DEFAULTS"; +export type VariableSetKind = "VAR_SET_VALUE" | "VAR_SET_DEFAULT" | "VAR_SET_CURRENT" | "VAR_SET_MULTI" | "VAR_RESET" | "VAR_RESET_ALL"; +export type ConstrType = "CONSTR_NULL" | "CONSTR_NOTNULL" | "CONSTR_DEFAULT" | "CONSTR_IDENTITY" | "CONSTR_GENERATED" | "CONSTR_CHECK" | "CONSTR_PRIMARY" | "CONSTR_UNIQUE" | "CONSTR_EXCLUSION" | "CONSTR_FOREIGN" | "CONSTR_ATTR_DEFERRABLE" | "CONSTR_ATTR_NOT_DEFERRABLE" | "CONSTR_ATTR_DEFERRED" | "CONSTR_ATTR_IMMEDIATE"; +export type ImportForeignSchemaType = "FDW_IMPORT_SCHEMA_ALL" | "FDW_IMPORT_SCHEMA_LIMIT_TO" | "FDW_IMPORT_SCHEMA_EXCEPT"; +export type RoleStmtType = "ROLESTMT_ROLE" | "ROLESTMT_USER" | "ROLESTMT_GROUP"; +export type FetchDirection = "FETCH_FORWARD" | "FETCH_BACKWARD" | "FETCH_ABSOLUTE" | "FETCH_RELATIVE"; +export type FunctionParameterMode = "FUNC_PARAM_IN" | "FUNC_PARAM_OUT" | "FUNC_PARAM_INOUT" | "FUNC_PARAM_VARIADIC" | "FUNC_PARAM_TABLE" | "FUNC_PARAM_DEFAULT"; +export type TransactionStmtKind = "TRANS_STMT_BEGIN" | "TRANS_STMT_START" | "TRANS_STMT_COMMIT" | "TRANS_STMT_ROLLBACK" | "TRANS_STMT_SAVEPOINT" | "TRANS_STMT_RELEASE" | "TRANS_STMT_ROLLBACK_TO" | "TRANS_STMT_PREPARE" | "TRANS_STMT_COMMIT_PREPARED" | "TRANS_STMT_ROLLBACK_PREPARED"; +export type ViewCheckOption = "NO_CHECK_OPTION" | "LOCAL_CHECK_OPTION" | "CASCADED_CHECK_OPTION"; +export type DiscardMode = "DISCARD_ALL" | "DISCARD_PLANS" | "DISCARD_SEQUENCES" | "DISCARD_TEMP"; +export type ReindexObjectType = "REINDEX_OBJECT_INDEX" | "REINDEX_OBJECT_TABLE" | "REINDEX_OBJECT_SCHEMA" | "REINDEX_OBJECT_SYSTEM" | "REINDEX_OBJECT_DATABASE"; +export type AlterTSConfigType = "ALTER_TSCONFIG_ADD_MAPPING" | "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN" | "ALTER_TSCONFIG_REPLACE_DICT" | "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN" | "ALTER_TSCONFIG_DROP_MAPPING"; +export type PublicationObjSpecType = "PUBLICATIONOBJ_TABLE" | "PUBLICATIONOBJ_TABLES_IN_SCHEMA" | "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA" | "PUBLICATIONOBJ_CONTINUATION"; +export type AlterPublicationAction = "AP_AddObjects" | "AP_DropObjects" | "AP_SetObjects"; +export type AlterSubscriptionType = "ALTER_SUBSCRIPTION_OPTIONS" | "ALTER_SUBSCRIPTION_CONNECTION" | "ALTER_SUBSCRIPTION_SET_PUBLICATION" | "ALTER_SUBSCRIPTION_ADD_PUBLICATION" | "ALTER_SUBSCRIPTION_DROP_PUBLICATION" | "ALTER_SUBSCRIPTION_REFRESH" | "ALTER_SUBSCRIPTION_ENABLED" | "ALTER_SUBSCRIPTION_SKIP"; +export type OnCommitAction = "ONCOMMIT_NOOP" | "ONCOMMIT_PRESERVE_ROWS" | "ONCOMMIT_DELETE_ROWS" | "ONCOMMIT_DROP"; +export type ParamKind = "PARAM_EXTERN" | "PARAM_EXEC" | "PARAM_SUBLINK" | "PARAM_MULTIEXPR"; +export type CoercionContext = "COERCION_IMPLICIT" | "COERCION_ASSIGNMENT" | "COERCION_PLPGSQL" | "COERCION_EXPLICIT"; +export type CoercionForm = "COERCE_EXPLICIT_CALL" | "COERCE_EXPLICIT_CAST" | "COERCE_IMPLICIT_CAST" | "COERCE_SQL_SYNTAX"; +export type BoolExprType = "AND_EXPR" | "OR_EXPR" | "NOT_EXPR"; +export type SubLinkType = "EXISTS_SUBLINK" | "ALL_SUBLINK" | "ANY_SUBLINK" | "ROWCOMPARE_SUBLINK" | "EXPR_SUBLINK" | "MULTIEXPR_SUBLINK" | "ARRAY_SUBLINK" | "CTE_SUBLINK"; +export type RowCompareType = "ROWCOMPARE_LT" | "ROWCOMPARE_LE" | "ROWCOMPARE_EQ" | "ROWCOMPARE_GE" | "ROWCOMPARE_GT" | "ROWCOMPARE_NE"; +export type MinMaxOp = "IS_GREATEST" | "IS_LEAST"; +export type SQLValueFunctionOp = "SVFOP_CURRENT_DATE" | "SVFOP_CURRENT_TIME" | "SVFOP_CURRENT_TIME_N" | "SVFOP_CURRENT_TIMESTAMP" | "SVFOP_CURRENT_TIMESTAMP_N" | "SVFOP_LOCALTIME" | "SVFOP_LOCALTIME_N" | "SVFOP_LOCALTIMESTAMP" | "SVFOP_LOCALTIMESTAMP_N" | "SVFOP_CURRENT_ROLE" | "SVFOP_CURRENT_USER" | "SVFOP_USER" | "SVFOP_SESSION_USER" | "SVFOP_CURRENT_CATALOG" | "SVFOP_CURRENT_SCHEMA"; +export type XmlExprOp = "IS_XMLCONCAT" | "IS_XMLELEMENT" | "IS_XMLFOREST" | "IS_XMLPARSE" | "IS_XMLPI" | "IS_XMLROOT" | "IS_XMLSERIALIZE" | "IS_DOCUMENT"; +export type XmlOptionType = "XMLOPTION_DOCUMENT" | "XMLOPTION_CONTENT"; +export type JsonEncoding = "JS_ENC_DEFAULT" | "JS_ENC_UTF8" | "JS_ENC_UTF16" | "JS_ENC_UTF32"; +export type JsonFormatType = "JS_FORMAT_DEFAULT" | "JS_FORMAT_JSON" | "JS_FORMAT_JSONB"; +export type JsonConstructorType = "JSCTOR_JSON_OBJECT" | "JSCTOR_JSON_ARRAY" | "JSCTOR_JSON_OBJECTAGG" | "JSCTOR_JSON_ARRAYAGG"; +export type JsonValueType = "JS_TYPE_ANY" | "JS_TYPE_OBJECT" | "JS_TYPE_ARRAY" | "JS_TYPE_SCALAR"; +export type NullTestType = "IS_NULL" | "IS_NOT_NULL"; +export type BoolTestType = "IS_TRUE" | "IS_NOT_TRUE" | "IS_FALSE" | "IS_NOT_FALSE" | "IS_UNKNOWN" | "IS_NOT_UNKNOWN"; +export type CmdType = "CMD_UNKNOWN" | "CMD_SELECT" | "CMD_UPDATE" | "CMD_INSERT" | "CMD_DELETE" | "CMD_MERGE" | "CMD_UTILITY" | "CMD_NOTHING"; +export type JoinType = "JOIN_INNER" | "JOIN_LEFT" | "JOIN_FULL" | "JOIN_RIGHT" | "JOIN_SEMI" | "JOIN_ANTI" | "JOIN_RIGHT_ANTI" | "JOIN_UNIQUE_OUTER" | "JOIN_UNIQUE_INNER"; +export type AggStrategy = "AGG_PLAIN" | "AGG_SORTED" | "AGG_HASHED" | "AGG_MIXED"; +export type AggSplit = "AGGSPLIT_SIMPLE" | "AGGSPLIT_INITIAL_SERIAL" | "AGGSPLIT_FINAL_DESERIAL"; +export type SetOpCmd = "SETOPCMD_INTERSECT" | "SETOPCMD_INTERSECT_ALL" | "SETOPCMD_EXCEPT" | "SETOPCMD_EXCEPT_ALL"; +export type SetOpStrategy = "SETOP_SORTED" | "SETOP_HASHED"; +export type OnConflictAction = "ONCONFLICT_NONE" | "ONCONFLICT_NOTHING" | "ONCONFLICT_UPDATE"; +export type LimitOption = "LIMIT_OPTION_DEFAULT" | "LIMIT_OPTION_COUNT" | "LIMIT_OPTION_WITH_TIES"; +export type LockClauseStrength = "LCS_NONE" | "LCS_FORKEYSHARE" | "LCS_FORSHARE" | "LCS_FORNOKEYUPDATE" | "LCS_FORUPDATE"; +export type LockWaitPolicy = "LockWaitBlock" | "LockWaitSkip" | "LockWaitError"; +export type LockTupleMode = "LockTupleKeyShare" | "LockTupleShare" | "LockTupleNoKeyExclusive" | "LockTupleExclusive"; +export type KeywordKind = "NO_KEYWORD" | "UNRESERVED_KEYWORD" | "COL_NAME_KEYWORD" | "TYPE_FUNC_NAME_KEYWORD" | "RESERVED_KEYWORD"; +export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | "ASCII_42" | "ASCII_43" | "ASCII_44" | "ASCII_45" | "ASCII_46" | "ASCII_47" | "ASCII_58" | "ASCII_59" | "ASCII_60" | "ASCII_61" | "ASCII_62" | "ASCII_63" | "ASCII_91" | "ASCII_92" | "ASCII_93" | "ASCII_94" | "IDENT" | "UIDENT" | "FCONST" | "SCONST" | "USCONST" | "BCONST" | "XCONST" | "Op" | "ICONST" | "PARAM" | "TYPECAST" | "DOT_DOT" | "COLON_EQUALS" | "EQUALS_GREATER" | "LESS_EQUALS" | "GREATER_EQUALS" | "NOT_EQUALS" | "SQL_COMMENT" | "C_COMMENT" | "ABORT_P" | "ABSENT" | "ABSOLUTE_P" | "ACCESS" | "ACTION" | "ADD_P" | "ADMIN" | "AFTER" | "AGGREGATE" | "ALL" | "ALSO" | "ALTER" | "ALWAYS" | "ANALYSE" | "ANALYZE" | "AND" | "ANY" | "ARRAY" | "AS" | "ASC" | "ASENSITIVE" | "ASSERTION" | "ASSIGNMENT" | "ASYMMETRIC" | "ATOMIC" | "AT" | "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" | "CHAR_P" | "CHARACTER" | "CHARACTERISTICS" | "CHECK" | "CHECKPOINT" | "CLASS" | "CLOSE" | "CLUSTER" | "COALESCE" | "COLLATE" | "COLLATION" | "COLUMN" | "COLUMNS" | "COMMENT" | "COMMENTS" | "COMMIT" | "COMMITTED" | "COMPRESSION" | "CONCURRENTLY" | "CONFIGURATION" | "CONFLICT" | "CONNECTION" | "CONSTRAINT" | "CONSTRAINTS" | "CONTENT_P" | "CONTINUE_P" | "CONVERSION_P" | "COPY" | "COST" | "CREATE" | "CROSS" | "CSV" | "CUBE" | "CURRENT_P" | "CURRENT_CATALOG" | "CURRENT_DATE" | "CURRENT_ROLE" | "CURRENT_SCHEMA" | "CURRENT_TIME" | "CURRENT_TIMESTAMP" | "CURRENT_USER" | "CURSOR" | "CYCLE" | "DATA_P" | "DATABASE" | "DAY_P" | "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" | "ENABLE_P" | "ENCODING" | "ENCRYPTED" | "END_P" | "ENUM_P" | "ESCAPE" | "EVENT" | "EXCEPT" | "EXCLUDE" | "EXCLUDING" | "EXCLUSIVE" | "EXECUTE" | "EXISTS" | "EXPLAIN" | "EXPRESSION" | "EXTENSION" | "EXTERNAL" | "EXTRACT" | "FALSE_P" | "FAMILY" | "FETCH" | "FILTER" | "FINALIZE" | "FIRST_P" | "FLOAT_P" | "FOLLOWING" | "FOR" | "FORCE" | "FOREIGN" | "FORMAT" | "FORWARD" | "FREEZE" | "FROM" | "FULL" | "FUNCTION" | "FUNCTIONS" | "GENERATED" | "GLOBAL" | "GRANT" | "GRANTED" | "GREATEST" | "GROUP_P" | "GROUPING" | "GROUPS" | "HANDLER" | "HAVING" | "HEADER_P" | "HOLD" | "HOUR_P" | "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" | "INTERSECT" | "INTERVAL" | "INTO" | "INVOKER" | "IS" | "ISNULL" | "ISOLATION" | "JOIN" | "JSON" | "JSON_ARRAY" | "JSON_ARRAYAGG" | "JSON_OBJECT" | "JSON_OBJECTAGG" | "KEY" | "KEYS" | "LABEL" | "LANGUAGE" | "LARGE_P" | "LAST_P" | "LATERAL_P" | "LEADING" | "LEAKPROOF" | "LEAST" | "LEFT" | "LEVEL" | "LIKE" | "LIMIT" | "LISTEN" | "LOAD" | "LOCAL" | "LOCALTIME" | "LOCALTIMESTAMP" | "LOCATION" | "LOCK_P" | "LOCKED" | "LOGGED" | "MAPPING" | "MATCH" | "MATCHED" | "MATERIALIZED" | "MAXVALUE" | "MERGE" | "METHOD" | "MINUTE_P" | "MINVALUE" | "MODE" | "MONTH_P" | "MOVE" | "NAME_P" | "NAMES" | "NATIONAL" | "NATURAL" | "NCHAR" | "NEW" | "NEXT" | "NFC" | "NFD" | "NFKC" | "NFKD" | "NO" | "NONE" | "NORMALIZE" | "NORMALIZED" | "NOT" | "NOTHING" | "NOTIFY" | "NOTNULL" | "NOWAIT" | "NULL_P" | "NULLIF" | "NULLS_P" | "NUMERIC" | "OBJECT_P" | "OF" | "OFF" | "OFFSET" | "OIDS" | "OLD" | "ON" | "ONLY" | "OPERATOR" | "OPTION" | "OPTIONS" | "OR" | "ORDER" | "ORDINALITY" | "OTHERS" | "OUT_P" | "OUTER_P" | "OVER" | "OVERLAPS" | "OVERLAY" | "OVERRIDING" | "OWNED" | "OWNER" | "PARALLEL" | "PARAMETER" | "PARSER" | "PARTIAL" | "PARTITION" | "PASSING" | "PASSWORD" | "PLACING" | "PLANS" | "POLICY" | "POSITION" | "PRECEDING" | "PRECISION" | "PRESERVE" | "PREPARE" | "PREPARED" | "PRIMARY" | "PRIOR" | "PRIVILEGES" | "PROCEDURAL" | "PROCEDURE" | "PROCEDURES" | "PROGRAM" | "PUBLICATION" | "QUOTE" | "RANGE" | "READ" | "REAL" | "REASSIGN" | "RECHECK" | "RECURSIVE" | "REF_P" | "REFERENCES" | "REFERENCING" | "REFRESH" | "REINDEX" | "RELATIVE_P" | "RELEASE" | "RENAME" | "REPEATABLE" | "REPLACE" | "REPLICA" | "RESET" | "RESTART" | "RESTRICT" | "RETURN" | "RETURNING" | "RETURNS" | "REVOKE" | "RIGHT" | "ROLE" | "ROLLBACK" | "ROLLUP" | "ROUTINE" | "ROUTINES" | "ROW" | "ROWS" | "RULE" | "SAVEPOINT" | "SCALAR" | "SCHEMA" | "SCHEMAS" | "SCROLL" | "SEARCH" | "SECOND_P" | "SECURITY" | "SELECT" | "SEQUENCE" | "SEQUENCES" | "SERIALIZABLE" | "SERVER" | "SESSION" | "SESSION_USER" | "SET" | "SETS" | "SETOF" | "SHARE" | "SHOW" | "SIMILAR" | "SIMPLE" | "SKIP" | "SMALLINT" | "SNAPSHOT" | "SOME" | "SQL_P" | "STABLE" | "STANDALONE_P" | "START" | "STATEMENT" | "STATISTICS" | "STDIN" | "STDOUT" | "STORAGE" | "STORED" | "STRICT_P" | "STRIP_P" | "SUBSCRIPTION" | "SUBSTRING" | "SUPPORT" | "SYMMETRIC" | "SYSID" | "SYSTEM_P" | "SYSTEM_USER" | "TABLE" | "TABLES" | "TABLESAMPLE" | "TABLESPACE" | "TEMP" | "TEMPLATE" | "TEMPORARY" | "TEXT_P" | "THEN" | "TIES" | "TIME" | "TIMESTAMP" | "TO" | "TRAILING" | "TRANSACTION" | "TRANSFORM" | "TREAT" | "TRIGGER" | "TRIM" | "TRUE_P" | "TRUNCATE" | "TRUSTED" | "TYPE_P" | "TYPES_P" | "UESCAPE" | "UNBOUNDED" | "UNCOMMITTED" | "UNENCRYPTED" | "UNION" | "UNIQUE" | "UNKNOWN" | "UNLISTEN" | "UNLOGGED" | "UNTIL" | "UPDATE" | "USER" | "USING" | "VACUUM" | "VALID" | "VALIDATE" | "VALIDATOR" | "VALUE_P" | "VALUES" | "VARCHAR" | "VARIADIC" | "VARYING" | "VERBOSE" | "VERSION_P" | "VIEW" | "VIEWS" | "VOLATILE" | "WHEN" | "WHERE" | "WHITESPACE_P" | "WINDOW" | "WITH" | "WITHIN" | "WITHOUT" | "WORK" | "WRAPPER" | "WRITE" | "XML_P" | "XMLATTRIBUTES" | "XMLCONCAT" | "XMLELEMENT" | "XMLEXISTS" | "XMLFOREST" | "XMLNAMESPACES" | "XMLPARSE" | "XMLPI" | "XMLROOT" | "XMLSERIALIZE" | "XMLTABLE" | "YEAR_P" | "YES_P" | "ZONE" | "FORMAT_LA" | "NOT_LA" | "NULLS_LA" | "WITH_LA" | "WITHOUT_LA" | "MODE_TYPE_NAME" | "MODE_PLPGSQL_EXPR" | "MODE_PLPGSQL_ASSIGN1" | "MODE_PLPGSQL_ASSIGN2" | "MODE_PLPGSQL_ASSIGN3" | "UMINUS";", + "file": "enums.ts", + }, +] +`; + +exports[`enum-maps json format enabled 1`] = ` +[ + { + "code": "/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type OverridingKind = "OVERRIDING_NOT_SET" | "OVERRIDING_USER_VALUE" | "OVERRIDING_SYSTEM_VALUE"; +export type QuerySource = "QSRC_ORIGINAL" | "QSRC_PARSER" | "QSRC_INSTEAD_RULE" | "QSRC_QUAL_INSTEAD_RULE" | "QSRC_NON_INSTEAD_RULE"; +export type SortByDir = "SORTBY_DEFAULT" | "SORTBY_ASC" | "SORTBY_DESC" | "SORTBY_USING"; +export type SortByNulls = "SORTBY_NULLS_DEFAULT" | "SORTBY_NULLS_FIRST" | "SORTBY_NULLS_LAST"; +export type SetQuantifier = "SET_QUANTIFIER_DEFAULT" | "SET_QUANTIFIER_ALL" | "SET_QUANTIFIER_DISTINCT"; +export type A_Expr_Kind = "AEXPR_OP" | "AEXPR_OP_ANY" | "AEXPR_OP_ALL" | "AEXPR_DISTINCT" | "AEXPR_NOT_DISTINCT" | "AEXPR_NULLIF" | "AEXPR_IN" | "AEXPR_LIKE" | "AEXPR_ILIKE" | "AEXPR_SIMILAR" | "AEXPR_BETWEEN" | "AEXPR_NOT_BETWEEN" | "AEXPR_BETWEEN_SYM" | "AEXPR_NOT_BETWEEN_SYM"; +export type RoleSpecType = "ROLESPEC_CSTRING" | "ROLESPEC_CURRENT_ROLE" | "ROLESPEC_CURRENT_USER" | "ROLESPEC_SESSION_USER" | "ROLESPEC_PUBLIC"; +export type TableLikeOption = "CREATE_TABLE_LIKE_COMMENTS" | "CREATE_TABLE_LIKE_COMPRESSION" | "CREATE_TABLE_LIKE_CONSTRAINTS" | "CREATE_TABLE_LIKE_DEFAULTS" | "CREATE_TABLE_LIKE_GENERATED" | "CREATE_TABLE_LIKE_IDENTITY" | "CREATE_TABLE_LIKE_INDEXES" | "CREATE_TABLE_LIKE_STATISTICS" | "CREATE_TABLE_LIKE_STORAGE" | "CREATE_TABLE_LIKE_ALL"; +export type DefElemAction = "DEFELEM_UNSPEC" | "DEFELEM_SET" | "DEFELEM_ADD" | "DEFELEM_DROP"; +export type PartitionStrategy = "PARTITION_STRATEGY_LIST" | "PARTITION_STRATEGY_RANGE" | "PARTITION_STRATEGY_HASH"; +export type PartitionRangeDatumKind = "PARTITION_RANGE_DATUM_MINVALUE" | "PARTITION_RANGE_DATUM_VALUE" | "PARTITION_RANGE_DATUM_MAXVALUE"; +export type RTEKind = "RTE_RELATION" | "RTE_SUBQUERY" | "RTE_JOIN" | "RTE_FUNCTION" | "RTE_TABLEFUNC" | "RTE_VALUES" | "RTE_CTE" | "RTE_NAMEDTUPLESTORE" | "RTE_RESULT"; +export type WCOKind = "WCO_VIEW_CHECK" | "WCO_RLS_INSERT_CHECK" | "WCO_RLS_UPDATE_CHECK" | "WCO_RLS_CONFLICT_CHECK" | "WCO_RLS_MERGE_UPDATE_CHECK" | "WCO_RLS_MERGE_DELETE_CHECK"; +export type GroupingSetKind = "GROUPING_SET_EMPTY" | "GROUPING_SET_SIMPLE" | "GROUPING_SET_ROLLUP" | "GROUPING_SET_CUBE" | "GROUPING_SET_SETS"; +export type CTEMaterialize = "CTEMaterializeDefault" | "CTEMaterializeAlways" | "CTEMaterializeNever"; +export type SetOperation = "SETOP_NONE" | "SETOP_UNION" | "SETOP_INTERSECT" | "SETOP_EXCEPT"; +export type ObjectType = "OBJECT_ACCESS_METHOD" | "OBJECT_AGGREGATE" | "OBJECT_AMOP" | "OBJECT_AMPROC" | "OBJECT_ATTRIBUTE" | "OBJECT_CAST" | "OBJECT_COLUMN" | "OBJECT_COLLATION" | "OBJECT_CONVERSION" | "OBJECT_DATABASE" | "OBJECT_DEFAULT" | "OBJECT_DEFACL" | "OBJECT_DOMAIN" | "OBJECT_DOMCONSTRAINT" | "OBJECT_EVENT_TRIGGER" | "OBJECT_EXTENSION" | "OBJECT_FDW" | "OBJECT_FOREIGN_SERVER" | "OBJECT_FOREIGN_TABLE" | "OBJECT_FUNCTION" | "OBJECT_INDEX" | "OBJECT_LANGUAGE" | "OBJECT_LARGEOBJECT" | "OBJECT_MATVIEW" | "OBJECT_OPCLASS" | "OBJECT_OPERATOR" | "OBJECT_OPFAMILY" | "OBJECT_PARAMETER_ACL" | "OBJECT_POLICY" | "OBJECT_PROCEDURE" | "OBJECT_PUBLICATION" | "OBJECT_PUBLICATION_NAMESPACE" | "OBJECT_PUBLICATION_REL" | "OBJECT_ROLE" | "OBJECT_ROUTINE" | "OBJECT_RULE" | "OBJECT_SCHEMA" | "OBJECT_SEQUENCE" | "OBJECT_SUBSCRIPTION" | "OBJECT_STATISTIC_EXT" | "OBJECT_TABCONSTRAINT" | "OBJECT_TABLE" | "OBJECT_TABLESPACE" | "OBJECT_TRANSFORM" | "OBJECT_TRIGGER" | "OBJECT_TSCONFIGURATION" | "OBJECT_TSDICTIONARY" | "OBJECT_TSPARSER" | "OBJECT_TSTEMPLATE" | "OBJECT_TYPE" | "OBJECT_USER_MAPPING" | "OBJECT_VIEW"; +export type DropBehavior = "DROP_RESTRICT" | "DROP_CASCADE"; +export type AlterTableType = "AT_AddColumn" | "AT_AddColumnToView" | "AT_ColumnDefault" | "AT_CookedColumnDefault" | "AT_DropNotNull" | "AT_SetNotNull" | "AT_DropExpression" | "AT_CheckNotNull" | "AT_SetStatistics" | "AT_SetOptions" | "AT_ResetOptions" | "AT_SetStorage" | "AT_SetCompression" | "AT_DropColumn" | "AT_AddIndex" | "AT_ReAddIndex" | "AT_AddConstraint" | "AT_ReAddConstraint" | "AT_ReAddDomainConstraint" | "AT_AlterConstraint" | "AT_ValidateConstraint" | "AT_AddIndexConstraint" | "AT_DropConstraint" | "AT_ReAddComment" | "AT_AlterColumnType" | "AT_AlterColumnGenericOptions" | "AT_ChangeOwner" | "AT_ClusterOn" | "AT_DropCluster" | "AT_SetLogged" | "AT_SetUnLogged" | "AT_DropOids" | "AT_SetAccessMethod" | "AT_SetTableSpace" | "AT_SetRelOptions" | "AT_ResetRelOptions" | "AT_ReplaceRelOptions" | "AT_EnableTrig" | "AT_EnableAlwaysTrig" | "AT_EnableReplicaTrig" | "AT_DisableTrig" | "AT_EnableTrigAll" | "AT_DisableTrigAll" | "AT_EnableTrigUser" | "AT_DisableTrigUser" | "AT_EnableRule" | "AT_EnableAlwaysRule" | "AT_EnableReplicaRule" | "AT_DisableRule" | "AT_AddInherit" | "AT_DropInherit" | "AT_AddOf" | "AT_DropOf" | "AT_ReplicaIdentity" | "AT_EnableRowSecurity" | "AT_DisableRowSecurity" | "AT_ForceRowSecurity" | "AT_NoForceRowSecurity" | "AT_GenericOptions" | "AT_AttachPartition" | "AT_DetachPartition" | "AT_DetachPartitionFinalize" | "AT_AddIdentity" | "AT_SetIdentity" | "AT_DropIdentity" | "AT_ReAddStatistics"; +export type GrantTargetType = "ACL_TARGET_OBJECT" | "ACL_TARGET_ALL_IN_SCHEMA" | "ACL_TARGET_DEFAULTS"; +export type VariableSetKind = "VAR_SET_VALUE" | "VAR_SET_DEFAULT" | "VAR_SET_CURRENT" | "VAR_SET_MULTI" | "VAR_RESET" | "VAR_RESET_ALL"; +export type ConstrType = "CONSTR_NULL" | "CONSTR_NOTNULL" | "CONSTR_DEFAULT" | "CONSTR_IDENTITY" | "CONSTR_GENERATED" | "CONSTR_CHECK" | "CONSTR_PRIMARY" | "CONSTR_UNIQUE" | "CONSTR_EXCLUSION" | "CONSTR_FOREIGN" | "CONSTR_ATTR_DEFERRABLE" | "CONSTR_ATTR_NOT_DEFERRABLE" | "CONSTR_ATTR_DEFERRED" | "CONSTR_ATTR_IMMEDIATE"; +export type ImportForeignSchemaType = "FDW_IMPORT_SCHEMA_ALL" | "FDW_IMPORT_SCHEMA_LIMIT_TO" | "FDW_IMPORT_SCHEMA_EXCEPT"; +export type RoleStmtType = "ROLESTMT_ROLE" | "ROLESTMT_USER" | "ROLESTMT_GROUP"; +export type FetchDirection = "FETCH_FORWARD" | "FETCH_BACKWARD" | "FETCH_ABSOLUTE" | "FETCH_RELATIVE"; +export type FunctionParameterMode = "FUNC_PARAM_IN" | "FUNC_PARAM_OUT" | "FUNC_PARAM_INOUT" | "FUNC_PARAM_VARIADIC" | "FUNC_PARAM_TABLE" | "FUNC_PARAM_DEFAULT"; +export type TransactionStmtKind = "TRANS_STMT_BEGIN" | "TRANS_STMT_START" | "TRANS_STMT_COMMIT" | "TRANS_STMT_ROLLBACK" | "TRANS_STMT_SAVEPOINT" | "TRANS_STMT_RELEASE" | "TRANS_STMT_ROLLBACK_TO" | "TRANS_STMT_PREPARE" | "TRANS_STMT_COMMIT_PREPARED" | "TRANS_STMT_ROLLBACK_PREPARED"; +export type ViewCheckOption = "NO_CHECK_OPTION" | "LOCAL_CHECK_OPTION" | "CASCADED_CHECK_OPTION"; +export type DiscardMode = "DISCARD_ALL" | "DISCARD_PLANS" | "DISCARD_SEQUENCES" | "DISCARD_TEMP"; +export type ReindexObjectType = "REINDEX_OBJECT_INDEX" | "REINDEX_OBJECT_TABLE" | "REINDEX_OBJECT_SCHEMA" | "REINDEX_OBJECT_SYSTEM" | "REINDEX_OBJECT_DATABASE"; +export type AlterTSConfigType = "ALTER_TSCONFIG_ADD_MAPPING" | "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN" | "ALTER_TSCONFIG_REPLACE_DICT" | "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN" | "ALTER_TSCONFIG_DROP_MAPPING"; +export type PublicationObjSpecType = "PUBLICATIONOBJ_TABLE" | "PUBLICATIONOBJ_TABLES_IN_SCHEMA" | "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA" | "PUBLICATIONOBJ_CONTINUATION"; +export type AlterPublicationAction = "AP_AddObjects" | "AP_DropObjects" | "AP_SetObjects"; +export type AlterSubscriptionType = "ALTER_SUBSCRIPTION_OPTIONS" | "ALTER_SUBSCRIPTION_CONNECTION" | "ALTER_SUBSCRIPTION_SET_PUBLICATION" | "ALTER_SUBSCRIPTION_ADD_PUBLICATION" | "ALTER_SUBSCRIPTION_DROP_PUBLICATION" | "ALTER_SUBSCRIPTION_REFRESH" | "ALTER_SUBSCRIPTION_ENABLED" | "ALTER_SUBSCRIPTION_SKIP"; +export type OnCommitAction = "ONCOMMIT_NOOP" | "ONCOMMIT_PRESERVE_ROWS" | "ONCOMMIT_DELETE_ROWS" | "ONCOMMIT_DROP"; +export type ParamKind = "PARAM_EXTERN" | "PARAM_EXEC" | "PARAM_SUBLINK" | "PARAM_MULTIEXPR"; +export type CoercionContext = "COERCION_IMPLICIT" | "COERCION_ASSIGNMENT" | "COERCION_PLPGSQL" | "COERCION_EXPLICIT"; +export type CoercionForm = "COERCE_EXPLICIT_CALL" | "COERCE_EXPLICIT_CAST" | "COERCE_IMPLICIT_CAST" | "COERCE_SQL_SYNTAX"; +export type BoolExprType = "AND_EXPR" | "OR_EXPR" | "NOT_EXPR"; +export type SubLinkType = "EXISTS_SUBLINK" | "ALL_SUBLINK" | "ANY_SUBLINK" | "ROWCOMPARE_SUBLINK" | "EXPR_SUBLINK" | "MULTIEXPR_SUBLINK" | "ARRAY_SUBLINK" | "CTE_SUBLINK"; +export type RowCompareType = "ROWCOMPARE_LT" | "ROWCOMPARE_LE" | "ROWCOMPARE_EQ" | "ROWCOMPARE_GE" | "ROWCOMPARE_GT" | "ROWCOMPARE_NE"; +export type MinMaxOp = "IS_GREATEST" | "IS_LEAST"; +export type SQLValueFunctionOp = "SVFOP_CURRENT_DATE" | "SVFOP_CURRENT_TIME" | "SVFOP_CURRENT_TIME_N" | "SVFOP_CURRENT_TIMESTAMP" | "SVFOP_CURRENT_TIMESTAMP_N" | "SVFOP_LOCALTIME" | "SVFOP_LOCALTIME_N" | "SVFOP_LOCALTIMESTAMP" | "SVFOP_LOCALTIMESTAMP_N" | "SVFOP_CURRENT_ROLE" | "SVFOP_CURRENT_USER" | "SVFOP_USER" | "SVFOP_SESSION_USER" | "SVFOP_CURRENT_CATALOG" | "SVFOP_CURRENT_SCHEMA"; +export type XmlExprOp = "IS_XMLCONCAT" | "IS_XMLELEMENT" | "IS_XMLFOREST" | "IS_XMLPARSE" | "IS_XMLPI" | "IS_XMLROOT" | "IS_XMLSERIALIZE" | "IS_DOCUMENT"; +export type XmlOptionType = "XMLOPTION_DOCUMENT" | "XMLOPTION_CONTENT"; +export type JsonEncoding = "JS_ENC_DEFAULT" | "JS_ENC_UTF8" | "JS_ENC_UTF16" | "JS_ENC_UTF32"; +export type JsonFormatType = "JS_FORMAT_DEFAULT" | "JS_FORMAT_JSON" | "JS_FORMAT_JSONB"; +export type JsonConstructorType = "JSCTOR_JSON_OBJECT" | "JSCTOR_JSON_ARRAY" | "JSCTOR_JSON_OBJECTAGG" | "JSCTOR_JSON_ARRAYAGG"; +export type JsonValueType = "JS_TYPE_ANY" | "JS_TYPE_OBJECT" | "JS_TYPE_ARRAY" | "JS_TYPE_SCALAR"; +export type NullTestType = "IS_NULL" | "IS_NOT_NULL"; +export type BoolTestType = "IS_TRUE" | "IS_NOT_TRUE" | "IS_FALSE" | "IS_NOT_FALSE" | "IS_UNKNOWN" | "IS_NOT_UNKNOWN"; +export type CmdType = "CMD_UNKNOWN" | "CMD_SELECT" | "CMD_UPDATE" | "CMD_INSERT" | "CMD_DELETE" | "CMD_MERGE" | "CMD_UTILITY" | "CMD_NOTHING"; +export type JoinType = "JOIN_INNER" | "JOIN_LEFT" | "JOIN_FULL" | "JOIN_RIGHT" | "JOIN_SEMI" | "JOIN_ANTI" | "JOIN_RIGHT_ANTI" | "JOIN_UNIQUE_OUTER" | "JOIN_UNIQUE_INNER"; +export type AggStrategy = "AGG_PLAIN" | "AGG_SORTED" | "AGG_HASHED" | "AGG_MIXED"; +export type AggSplit = "AGGSPLIT_SIMPLE" | "AGGSPLIT_INITIAL_SERIAL" | "AGGSPLIT_FINAL_DESERIAL"; +export type SetOpCmd = "SETOPCMD_INTERSECT" | "SETOPCMD_INTERSECT_ALL" | "SETOPCMD_EXCEPT" | "SETOPCMD_EXCEPT_ALL"; +export type SetOpStrategy = "SETOP_SORTED" | "SETOP_HASHED"; +export type OnConflictAction = "ONCONFLICT_NONE" | "ONCONFLICT_NOTHING" | "ONCONFLICT_UPDATE"; +export type LimitOption = "LIMIT_OPTION_DEFAULT" | "LIMIT_OPTION_COUNT" | "LIMIT_OPTION_WITH_TIES"; +export type LockClauseStrength = "LCS_NONE" | "LCS_FORKEYSHARE" | "LCS_FORSHARE" | "LCS_FORNOKEYUPDATE" | "LCS_FORUPDATE"; +export type LockWaitPolicy = "LockWaitBlock" | "LockWaitSkip" | "LockWaitError"; +export type LockTupleMode = "LockTupleKeyShare" | "LockTupleShare" | "LockTupleNoKeyExclusive" | "LockTupleExclusive"; +export type KeywordKind = "NO_KEYWORD" | "UNRESERVED_KEYWORD" | "COL_NAME_KEYWORD" | "TYPE_FUNC_NAME_KEYWORD" | "RESERVED_KEYWORD"; +export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | "ASCII_42" | "ASCII_43" | "ASCII_44" | "ASCII_45" | "ASCII_46" | "ASCII_47" | "ASCII_58" | "ASCII_59" | "ASCII_60" | "ASCII_61" | "ASCII_62" | "ASCII_63" | "ASCII_91" | "ASCII_92" | "ASCII_93" | "ASCII_94" | "IDENT" | "UIDENT" | "FCONST" | "SCONST" | "USCONST" | "BCONST" | "XCONST" | "Op" | "ICONST" | "PARAM" | "TYPECAST" | "DOT_DOT" | "COLON_EQUALS" | "EQUALS_GREATER" | "LESS_EQUALS" | "GREATER_EQUALS" | "NOT_EQUALS" | "SQL_COMMENT" | "C_COMMENT" | "ABORT_P" | "ABSENT" | "ABSOLUTE_P" | "ACCESS" | "ACTION" | "ADD_P" | "ADMIN" | "AFTER" | "AGGREGATE" | "ALL" | "ALSO" | "ALTER" | "ALWAYS" | "ANALYSE" | "ANALYZE" | "AND" | "ANY" | "ARRAY" | "AS" | "ASC" | "ASENSITIVE" | "ASSERTION" | "ASSIGNMENT" | "ASYMMETRIC" | "ATOMIC" | "AT" | "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" | "CHAR_P" | "CHARACTER" | "CHARACTERISTICS" | "CHECK" | "CHECKPOINT" | "CLASS" | "CLOSE" | "CLUSTER" | "COALESCE" | "COLLATE" | "COLLATION" | "COLUMN" | "COLUMNS" | "COMMENT" | "COMMENTS" | "COMMIT" | "COMMITTED" | "COMPRESSION" | "CONCURRENTLY" | "CONFIGURATION" | "CONFLICT" | "CONNECTION" | "CONSTRAINT" | "CONSTRAINTS" | "CONTENT_P" | "CONTINUE_P" | "CONVERSION_P" | "COPY" | "COST" | "CREATE" | "CROSS" | "CSV" | "CUBE" | "CURRENT_P" | "CURRENT_CATALOG" | "CURRENT_DATE" | "CURRENT_ROLE" | "CURRENT_SCHEMA" | "CURRENT_TIME" | "CURRENT_TIMESTAMP" | "CURRENT_USER" | "CURSOR" | "CYCLE" | "DATA_P" | "DATABASE" | "DAY_P" | "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" | "ENABLE_P" | "ENCODING" | "ENCRYPTED" | "END_P" | "ENUM_P" | "ESCAPE" | "EVENT" | "EXCEPT" | "EXCLUDE" | "EXCLUDING" | "EXCLUSIVE" | "EXECUTE" | "EXISTS" | "EXPLAIN" | "EXPRESSION" | "EXTENSION" | "EXTERNAL" | "EXTRACT" | "FALSE_P" | "FAMILY" | "FETCH" | "FILTER" | "FINALIZE" | "FIRST_P" | "FLOAT_P" | "FOLLOWING" | "FOR" | "FORCE" | "FOREIGN" | "FORMAT" | "FORWARD" | "FREEZE" | "FROM" | "FULL" | "FUNCTION" | "FUNCTIONS" | "GENERATED" | "GLOBAL" | "GRANT" | "GRANTED" | "GREATEST" | "GROUP_P" | "GROUPING" | "GROUPS" | "HANDLER" | "HAVING" | "HEADER_P" | "HOLD" | "HOUR_P" | "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" | "INTERSECT" | "INTERVAL" | "INTO" | "INVOKER" | "IS" | "ISNULL" | "ISOLATION" | "JOIN" | "JSON" | "JSON_ARRAY" | "JSON_ARRAYAGG" | "JSON_OBJECT" | "JSON_OBJECTAGG" | "KEY" | "KEYS" | "LABEL" | "LANGUAGE" | "LARGE_P" | "LAST_P" | "LATERAL_P" | "LEADING" | "LEAKPROOF" | "LEAST" | "LEFT" | "LEVEL" | "LIKE" | "LIMIT" | "LISTEN" | "LOAD" | "LOCAL" | "LOCALTIME" | "LOCALTIMESTAMP" | "LOCATION" | "LOCK_P" | "LOCKED" | "LOGGED" | "MAPPING" | "MATCH" | "MATCHED" | "MATERIALIZED" | "MAXVALUE" | "MERGE" | "METHOD" | "MINUTE_P" | "MINVALUE" | "MODE" | "MONTH_P" | "MOVE" | "NAME_P" | "NAMES" | "NATIONAL" | "NATURAL" | "NCHAR" | "NEW" | "NEXT" | "NFC" | "NFD" | "NFKC" | "NFKD" | "NO" | "NONE" | "NORMALIZE" | "NORMALIZED" | "NOT" | "NOTHING" | "NOTIFY" | "NOTNULL" | "NOWAIT" | "NULL_P" | "NULLIF" | "NULLS_P" | "NUMERIC" | "OBJECT_P" | "OF" | "OFF" | "OFFSET" | "OIDS" | "OLD" | "ON" | "ONLY" | "OPERATOR" | "OPTION" | "OPTIONS" | "OR" | "ORDER" | "ORDINALITY" | "OTHERS" | "OUT_P" | "OUTER_P" | "OVER" | "OVERLAPS" | "OVERLAY" | "OVERRIDING" | "OWNED" | "OWNER" | "PARALLEL" | "PARAMETER" | "PARSER" | "PARTIAL" | "PARTITION" | "PASSING" | "PASSWORD" | "PLACING" | "PLANS" | "POLICY" | "POSITION" | "PRECEDING" | "PRECISION" | "PRESERVE" | "PREPARE" | "PREPARED" | "PRIMARY" | "PRIOR" | "PRIVILEGES" | "PROCEDURAL" | "PROCEDURE" | "PROCEDURES" | "PROGRAM" | "PUBLICATION" | "QUOTE" | "RANGE" | "READ" | "REAL" | "REASSIGN" | "RECHECK" | "RECURSIVE" | "REF_P" | "REFERENCES" | "REFERENCING" | "REFRESH" | "REINDEX" | "RELATIVE_P" | "RELEASE" | "RENAME" | "REPEATABLE" | "REPLACE" | "REPLICA" | "RESET" | "RESTART" | "RESTRICT" | "RETURN" | "RETURNING" | "RETURNS" | "REVOKE" | "RIGHT" | "ROLE" | "ROLLBACK" | "ROLLUP" | "ROUTINE" | "ROUTINES" | "ROW" | "ROWS" | "RULE" | "SAVEPOINT" | "SCALAR" | "SCHEMA" | "SCHEMAS" | "SCROLL" | "SEARCH" | "SECOND_P" | "SECURITY" | "SELECT" | "SEQUENCE" | "SEQUENCES" | "SERIALIZABLE" | "SERVER" | "SESSION" | "SESSION_USER" | "SET" | "SETS" | "SETOF" | "SHARE" | "SHOW" | "SIMILAR" | "SIMPLE" | "SKIP" | "SMALLINT" | "SNAPSHOT" | "SOME" | "SQL_P" | "STABLE" | "STANDALONE_P" | "START" | "STATEMENT" | "STATISTICS" | "STDIN" | "STDOUT" | "STORAGE" | "STORED" | "STRICT_P" | "STRIP_P" | "SUBSCRIPTION" | "SUBSTRING" | "SUPPORT" | "SYMMETRIC" | "SYSID" | "SYSTEM_P" | "SYSTEM_USER" | "TABLE" | "TABLES" | "TABLESAMPLE" | "TABLESPACE" | "TEMP" | "TEMPLATE" | "TEMPORARY" | "TEXT_P" | "THEN" | "TIES" | "TIME" | "TIMESTAMP" | "TO" | "TRAILING" | "TRANSACTION" | "TRANSFORM" | "TREAT" | "TRIGGER" | "TRIM" | "TRUE_P" | "TRUNCATE" | "TRUSTED" | "TYPE_P" | "TYPES_P" | "UESCAPE" | "UNBOUNDED" | "UNCOMMITTED" | "UNENCRYPTED" | "UNION" | "UNIQUE" | "UNKNOWN" | "UNLISTEN" | "UNLOGGED" | "UNTIL" | "UPDATE" | "USER" | "USING" | "VACUUM" | "VALID" | "VALIDATE" | "VALIDATOR" | "VALUE_P" | "VALUES" | "VARCHAR" | "VARIADIC" | "VARYING" | "VERBOSE" | "VERSION_P" | "VIEW" | "VIEWS" | "VOLATILE" | "WHEN" | "WHERE" | "WHITESPACE_P" | "WINDOW" | "WITH" | "WITHIN" | "WITHOUT" | "WORK" | "WRAPPER" | "WRITE" | "XML_P" | "XMLATTRIBUTES" | "XMLCONCAT" | "XMLELEMENT" | "XMLEXISTS" | "XMLFOREST" | "XMLNAMESPACES" | "XMLPARSE" | "XMLPI" | "XMLROOT" | "XMLSERIALIZE" | "XMLTABLE" | "YEAR_P" | "YES_P" | "ZONE" | "FORMAT_LA" | "NOT_LA" | "NULLS_LA" | "WITH_LA" | "WITHOUT_LA" | "MODE_TYPE_NAME" | "MODE_PLPGSQL_EXPR" | "MODE_PLPGSQL_ASSIGN1" | "MODE_PLPGSQL_ASSIGN2" | "MODE_PLPGSQL_ASSIGN3" | "UMINUS";", + "file": "enums.ts", + }, + { + "code": "{ + "OverridingKind": { + "0": "OVERRIDING_NOT_SET", + "1": "OVERRIDING_USER_VALUE", + "2": "OVERRIDING_SYSTEM_VALUE" + }, + "QuerySource": { + "0": "QSRC_ORIGINAL", + "1": "QSRC_PARSER", + "2": "QSRC_INSTEAD_RULE", + "3": "QSRC_QUAL_INSTEAD_RULE", + "4": "QSRC_NON_INSTEAD_RULE" + }, + "SortByDir": { + "0": "SORTBY_DEFAULT", + "1": "SORTBY_ASC", + "2": "SORTBY_DESC", + "3": "SORTBY_USING" + }, + "SortByNulls": { + "0": "SORTBY_NULLS_DEFAULT", + "1": "SORTBY_NULLS_FIRST", + "2": "SORTBY_NULLS_LAST" + }, + "SetQuantifier": { + "0": "SET_QUANTIFIER_DEFAULT", + "1": "SET_QUANTIFIER_ALL", + "2": "SET_QUANTIFIER_DISTINCT" + }, + "A_Expr_Kind": { + "0": "AEXPR_OP", + "1": "AEXPR_OP_ANY", + "2": "AEXPR_OP_ALL", + "3": "AEXPR_DISTINCT", + "4": "AEXPR_NOT_DISTINCT", + "5": "AEXPR_NULLIF", + "6": "AEXPR_IN", + "7": "AEXPR_LIKE", + "8": "AEXPR_ILIKE", + "9": "AEXPR_SIMILAR", + "10": "AEXPR_BETWEEN", + "11": "AEXPR_NOT_BETWEEN", + "12": "AEXPR_BETWEEN_SYM", + "13": "AEXPR_NOT_BETWEEN_SYM" + }, + "RoleSpecType": { + "0": "ROLESPEC_CSTRING", + "1": "ROLESPEC_CURRENT_ROLE", + "2": "ROLESPEC_CURRENT_USER", + "3": "ROLESPEC_SESSION_USER", + "4": "ROLESPEC_PUBLIC" + }, + "TableLikeOption": { + "0": "CREATE_TABLE_LIKE_COMMENTS", + "1": "CREATE_TABLE_LIKE_COMPRESSION", + "2": "CREATE_TABLE_LIKE_CONSTRAINTS", + "3": "CREATE_TABLE_LIKE_DEFAULTS", + "4": "CREATE_TABLE_LIKE_GENERATED", + "5": "CREATE_TABLE_LIKE_IDENTITY", + "6": "CREATE_TABLE_LIKE_INDEXES", + "7": "CREATE_TABLE_LIKE_STATISTICS", + "8": "CREATE_TABLE_LIKE_STORAGE", + "9": "CREATE_TABLE_LIKE_ALL" + }, + "DefElemAction": { + "0": "DEFELEM_UNSPEC", + "1": "DEFELEM_SET", + "2": "DEFELEM_ADD", + "3": "DEFELEM_DROP" + }, + "PartitionStrategy": { + "0": "PARTITION_STRATEGY_LIST", + "1": "PARTITION_STRATEGY_RANGE", + "2": "PARTITION_STRATEGY_HASH" + }, + "PartitionRangeDatumKind": { + "0": "PARTITION_RANGE_DATUM_MINVALUE", + "1": "PARTITION_RANGE_DATUM_VALUE", + "2": "PARTITION_RANGE_DATUM_MAXVALUE" + }, + "RTEKind": { + "0": "RTE_RELATION", + "1": "RTE_SUBQUERY", + "2": "RTE_JOIN", + "3": "RTE_FUNCTION", + "4": "RTE_TABLEFUNC", + "5": "RTE_VALUES", + "6": "RTE_CTE", + "7": "RTE_NAMEDTUPLESTORE", + "8": "RTE_RESULT" + }, + "WCOKind": { + "0": "WCO_VIEW_CHECK", + "1": "WCO_RLS_INSERT_CHECK", + "2": "WCO_RLS_UPDATE_CHECK", + "3": "WCO_RLS_CONFLICT_CHECK", + "4": "WCO_RLS_MERGE_UPDATE_CHECK", + "5": "WCO_RLS_MERGE_DELETE_CHECK" + }, + "GroupingSetKind": { + "0": "GROUPING_SET_EMPTY", + "1": "GROUPING_SET_SIMPLE", + "2": "GROUPING_SET_ROLLUP", + "3": "GROUPING_SET_CUBE", + "4": "GROUPING_SET_SETS" + }, + "CTEMaterialize": { + "0": "CTEMaterializeDefault", + "1": "CTEMaterializeAlways", + "2": "CTEMaterializeNever" + }, + "SetOperation": { + "0": "SETOP_NONE", + "1": "SETOP_UNION", + "2": "SETOP_INTERSECT", + "3": "SETOP_EXCEPT" + }, + "ObjectType": { + "0": "OBJECT_ACCESS_METHOD", + "1": "OBJECT_AGGREGATE", + "2": "OBJECT_AMOP", + "3": "OBJECT_AMPROC", + "4": "OBJECT_ATTRIBUTE", + "5": "OBJECT_CAST", + "6": "OBJECT_COLUMN", + "7": "OBJECT_COLLATION", + "8": "OBJECT_CONVERSION", + "9": "OBJECT_DATABASE", + "10": "OBJECT_DEFAULT", + "11": "OBJECT_DEFACL", + "12": "OBJECT_DOMAIN", + "13": "OBJECT_DOMCONSTRAINT", + "14": "OBJECT_EVENT_TRIGGER", + "15": "OBJECT_EXTENSION", + "16": "OBJECT_FDW", + "17": "OBJECT_FOREIGN_SERVER", + "18": "OBJECT_FOREIGN_TABLE", + "19": "OBJECT_FUNCTION", + "20": "OBJECT_INDEX", + "21": "OBJECT_LANGUAGE", + "22": "OBJECT_LARGEOBJECT", + "23": "OBJECT_MATVIEW", + "24": "OBJECT_OPCLASS", + "25": "OBJECT_OPERATOR", + "26": "OBJECT_OPFAMILY", + "27": "OBJECT_PARAMETER_ACL", + "28": "OBJECT_POLICY", + "29": "OBJECT_PROCEDURE", + "30": "OBJECT_PUBLICATION", + "31": "OBJECT_PUBLICATION_NAMESPACE", + "32": "OBJECT_PUBLICATION_REL", + "33": "OBJECT_ROLE", + "34": "OBJECT_ROUTINE", + "35": "OBJECT_RULE", + "36": "OBJECT_SCHEMA", + "37": "OBJECT_SEQUENCE", + "38": "OBJECT_SUBSCRIPTION", + "39": "OBJECT_STATISTIC_EXT", + "40": "OBJECT_TABCONSTRAINT", + "41": "OBJECT_TABLE", + "42": "OBJECT_TABLESPACE", + "43": "OBJECT_TRANSFORM", + "44": "OBJECT_TRIGGER", + "45": "OBJECT_TSCONFIGURATION", + "46": "OBJECT_TSDICTIONARY", + "47": "OBJECT_TSPARSER", + "48": "OBJECT_TSTEMPLATE", + "49": "OBJECT_TYPE", + "50": "OBJECT_USER_MAPPING", + "51": "OBJECT_VIEW" + }, + "DropBehavior": { + "0": "DROP_RESTRICT", + "1": "DROP_CASCADE" + }, + "AlterTableType": { + "0": "AT_AddColumn", + "1": "AT_AddColumnToView", + "2": "AT_ColumnDefault", + "3": "AT_CookedColumnDefault", + "4": "AT_DropNotNull", + "5": "AT_SetNotNull", + "6": "AT_DropExpression", + "7": "AT_CheckNotNull", + "8": "AT_SetStatistics", + "9": "AT_SetOptions", + "10": "AT_ResetOptions", + "11": "AT_SetStorage", + "12": "AT_SetCompression", + "13": "AT_DropColumn", + "14": "AT_AddIndex", + "15": "AT_ReAddIndex", + "16": "AT_AddConstraint", + "17": "AT_ReAddConstraint", + "18": "AT_ReAddDomainConstraint", + "19": "AT_AlterConstraint", + "20": "AT_ValidateConstraint", + "21": "AT_AddIndexConstraint", + "22": "AT_DropConstraint", + "23": "AT_ReAddComment", + "24": "AT_AlterColumnType", + "25": "AT_AlterColumnGenericOptions", + "26": "AT_ChangeOwner", + "27": "AT_ClusterOn", + "28": "AT_DropCluster", + "29": "AT_SetLogged", + "30": "AT_SetUnLogged", + "31": "AT_DropOids", + "32": "AT_SetAccessMethod", + "33": "AT_SetTableSpace", + "34": "AT_SetRelOptions", + "35": "AT_ResetRelOptions", + "36": "AT_ReplaceRelOptions", + "37": "AT_EnableTrig", + "38": "AT_EnableAlwaysTrig", + "39": "AT_EnableReplicaTrig", + "40": "AT_DisableTrig", + "41": "AT_EnableTrigAll", + "42": "AT_DisableTrigAll", + "43": "AT_EnableTrigUser", + "44": "AT_DisableTrigUser", + "45": "AT_EnableRule", + "46": "AT_EnableAlwaysRule", + "47": "AT_EnableReplicaRule", + "48": "AT_DisableRule", + "49": "AT_AddInherit", + "50": "AT_DropInherit", + "51": "AT_AddOf", + "52": "AT_DropOf", + "53": "AT_ReplicaIdentity", + "54": "AT_EnableRowSecurity", + "55": "AT_DisableRowSecurity", + "56": "AT_ForceRowSecurity", + "57": "AT_NoForceRowSecurity", + "58": "AT_GenericOptions", + "59": "AT_AttachPartition", + "60": "AT_DetachPartition", + "61": "AT_DetachPartitionFinalize", + "62": "AT_AddIdentity", + "63": "AT_SetIdentity", + "64": "AT_DropIdentity", + "65": "AT_ReAddStatistics" + }, + "GrantTargetType": { + "0": "ACL_TARGET_OBJECT", + "1": "ACL_TARGET_ALL_IN_SCHEMA", + "2": "ACL_TARGET_DEFAULTS" + }, + "VariableSetKind": { + "0": "VAR_SET_VALUE", + "1": "VAR_SET_DEFAULT", + "2": "VAR_SET_CURRENT", + "3": "VAR_SET_MULTI", + "4": "VAR_RESET", + "5": "VAR_RESET_ALL" + }, + "ConstrType": { + "0": "CONSTR_NULL", + "1": "CONSTR_NOTNULL", + "2": "CONSTR_DEFAULT", + "3": "CONSTR_IDENTITY", + "4": "CONSTR_GENERATED", + "5": "CONSTR_CHECK", + "6": "CONSTR_PRIMARY", + "7": "CONSTR_UNIQUE", + "8": "CONSTR_EXCLUSION", + "9": "CONSTR_FOREIGN", + "10": "CONSTR_ATTR_DEFERRABLE", + "11": "CONSTR_ATTR_NOT_DEFERRABLE", + "12": "CONSTR_ATTR_DEFERRED", + "13": "CONSTR_ATTR_IMMEDIATE" + }, + "ImportForeignSchemaType": { + "0": "FDW_IMPORT_SCHEMA_ALL", + "1": "FDW_IMPORT_SCHEMA_LIMIT_TO", + "2": "FDW_IMPORT_SCHEMA_EXCEPT" + }, + "RoleStmtType": { + "0": "ROLESTMT_ROLE", + "1": "ROLESTMT_USER", + "2": "ROLESTMT_GROUP" + }, + "FetchDirection": { + "0": "FETCH_FORWARD", + "1": "FETCH_BACKWARD", + "2": "FETCH_ABSOLUTE", + "3": "FETCH_RELATIVE" + }, + "FunctionParameterMode": { + "0": "FUNC_PARAM_IN", + "1": "FUNC_PARAM_OUT", + "2": "FUNC_PARAM_INOUT", + "3": "FUNC_PARAM_VARIADIC", + "4": "FUNC_PARAM_TABLE", + "5": "FUNC_PARAM_DEFAULT" + }, + "TransactionStmtKind": { + "0": "TRANS_STMT_BEGIN", + "1": "TRANS_STMT_START", + "2": "TRANS_STMT_COMMIT", + "3": "TRANS_STMT_ROLLBACK", + "4": "TRANS_STMT_SAVEPOINT", + "5": "TRANS_STMT_RELEASE", + "6": "TRANS_STMT_ROLLBACK_TO", + "7": "TRANS_STMT_PREPARE", + "8": "TRANS_STMT_COMMIT_PREPARED", + "9": "TRANS_STMT_ROLLBACK_PREPARED" + }, + "ViewCheckOption": { + "0": "NO_CHECK_OPTION", + "1": "LOCAL_CHECK_OPTION", + "2": "CASCADED_CHECK_OPTION" + }, + "DiscardMode": { + "0": "DISCARD_ALL", + "1": "DISCARD_PLANS", + "2": "DISCARD_SEQUENCES", + "3": "DISCARD_TEMP" + }, + "ReindexObjectType": { + "0": "REINDEX_OBJECT_INDEX", + "1": "REINDEX_OBJECT_TABLE", + "2": "REINDEX_OBJECT_SCHEMA", + "3": "REINDEX_OBJECT_SYSTEM", + "4": "REINDEX_OBJECT_DATABASE" + }, + "AlterTSConfigType": { + "0": "ALTER_TSCONFIG_ADD_MAPPING", + "1": "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN", + "2": "ALTER_TSCONFIG_REPLACE_DICT", + "3": "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN", + "4": "ALTER_TSCONFIG_DROP_MAPPING" + }, + "PublicationObjSpecType": { + "0": "PUBLICATIONOBJ_TABLE", + "1": "PUBLICATIONOBJ_TABLES_IN_SCHEMA", + "2": "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA", + "3": "PUBLICATIONOBJ_CONTINUATION" + }, + "AlterPublicationAction": { + "0": "AP_AddObjects", + "1": "AP_DropObjects", + "2": "AP_SetObjects" + }, + "AlterSubscriptionType": { + "0": "ALTER_SUBSCRIPTION_OPTIONS", + "1": "ALTER_SUBSCRIPTION_CONNECTION", + "2": "ALTER_SUBSCRIPTION_SET_PUBLICATION", + "3": "ALTER_SUBSCRIPTION_ADD_PUBLICATION", + "4": "ALTER_SUBSCRIPTION_DROP_PUBLICATION", + "5": "ALTER_SUBSCRIPTION_REFRESH", + "6": "ALTER_SUBSCRIPTION_ENABLED", + "7": "ALTER_SUBSCRIPTION_SKIP" + }, + "OnCommitAction": { + "0": "ONCOMMIT_NOOP", + "1": "ONCOMMIT_PRESERVE_ROWS", + "2": "ONCOMMIT_DELETE_ROWS", + "3": "ONCOMMIT_DROP" + }, + "ParamKind": { + "0": "PARAM_EXTERN", + "1": "PARAM_EXEC", + "2": "PARAM_SUBLINK", + "3": "PARAM_MULTIEXPR" + }, + "CoercionContext": { + "0": "COERCION_IMPLICIT", + "1": "COERCION_ASSIGNMENT", + "2": "COERCION_PLPGSQL", + "3": "COERCION_EXPLICIT" + }, + "CoercionForm": { + "0": "COERCE_EXPLICIT_CALL", + "1": "COERCE_EXPLICIT_CAST", + "2": "COERCE_IMPLICIT_CAST", + "3": "COERCE_SQL_SYNTAX" + }, + "BoolExprType": { + "0": "AND_EXPR", + "1": "OR_EXPR", + "2": "NOT_EXPR" + }, + "SubLinkType": { + "0": "EXISTS_SUBLINK", + "1": "ALL_SUBLINK", + "2": "ANY_SUBLINK", + "3": "ROWCOMPARE_SUBLINK", + "4": "EXPR_SUBLINK", + "5": "MULTIEXPR_SUBLINK", + "6": "ARRAY_SUBLINK", + "7": "CTE_SUBLINK" + }, + "RowCompareType": { + "0": "ROWCOMPARE_LT", + "1": "ROWCOMPARE_LE", + "2": "ROWCOMPARE_EQ", + "3": "ROWCOMPARE_GE", + "4": "ROWCOMPARE_GT", + "5": "ROWCOMPARE_NE" + }, + "MinMaxOp": { + "0": "IS_GREATEST", + "1": "IS_LEAST" + }, + "SQLValueFunctionOp": { + "0": "SVFOP_CURRENT_DATE", + "1": "SVFOP_CURRENT_TIME", + "2": "SVFOP_CURRENT_TIME_N", + "3": "SVFOP_CURRENT_TIMESTAMP", + "4": "SVFOP_CURRENT_TIMESTAMP_N", + "5": "SVFOP_LOCALTIME", + "6": "SVFOP_LOCALTIME_N", + "7": "SVFOP_LOCALTIMESTAMP", + "8": "SVFOP_LOCALTIMESTAMP_N", + "9": "SVFOP_CURRENT_ROLE", + "10": "SVFOP_CURRENT_USER", + "11": "SVFOP_USER", + "12": "SVFOP_SESSION_USER", + "13": "SVFOP_CURRENT_CATALOG", + "14": "SVFOP_CURRENT_SCHEMA" + }, + "XmlExprOp": { + "0": "IS_XMLCONCAT", + "1": "IS_XMLELEMENT", + "2": "IS_XMLFOREST", + "3": "IS_XMLPARSE", + "4": "IS_XMLPI", + "5": "IS_XMLROOT", + "6": "IS_XMLSERIALIZE", + "7": "IS_DOCUMENT" + }, + "XmlOptionType": { + "0": "XMLOPTION_DOCUMENT", + "1": "XMLOPTION_CONTENT" + }, + "JsonEncoding": { + "0": "JS_ENC_DEFAULT", + "1": "JS_ENC_UTF8", + "2": "JS_ENC_UTF16", + "3": "JS_ENC_UTF32" + }, + "JsonFormatType": { + "0": "JS_FORMAT_DEFAULT", + "1": "JS_FORMAT_JSON", + "2": "JS_FORMAT_JSONB" + }, + "JsonConstructorType": { + "0": "JSCTOR_JSON_OBJECT", + "1": "JSCTOR_JSON_ARRAY", + "2": "JSCTOR_JSON_OBJECTAGG", + "3": "JSCTOR_JSON_ARRAYAGG" + }, + "JsonValueType": { + "0": "JS_TYPE_ANY", + "1": "JS_TYPE_OBJECT", + "2": "JS_TYPE_ARRAY", + "3": "JS_TYPE_SCALAR" + }, + "NullTestType": { + "0": "IS_NULL", + "1": "IS_NOT_NULL" + }, + "BoolTestType": { + "0": "IS_TRUE", + "1": "IS_NOT_TRUE", + "2": "IS_FALSE", + "3": "IS_NOT_FALSE", + "4": "IS_UNKNOWN", + "5": "IS_NOT_UNKNOWN" + }, + "CmdType": { + "0": "CMD_UNKNOWN", + "1": "CMD_SELECT", + "2": "CMD_UPDATE", + "3": "CMD_INSERT", + "4": "CMD_DELETE", + "5": "CMD_MERGE", + "6": "CMD_UTILITY", + "7": "CMD_NOTHING" + }, + "JoinType": { + "0": "JOIN_INNER", + "1": "JOIN_LEFT", + "2": "JOIN_FULL", + "3": "JOIN_RIGHT", + "4": "JOIN_SEMI", + "5": "JOIN_ANTI", + "6": "JOIN_RIGHT_ANTI", + "7": "JOIN_UNIQUE_OUTER", + "8": "JOIN_UNIQUE_INNER" + }, + "AggStrategy": { + "0": "AGG_PLAIN", + "1": "AGG_SORTED", + "2": "AGG_HASHED", + "3": "AGG_MIXED" + }, + "AggSplit": { + "0": "AGGSPLIT_SIMPLE", + "1": "AGGSPLIT_INITIAL_SERIAL", + "2": "AGGSPLIT_FINAL_DESERIAL" + }, + "SetOpCmd": { + "0": "SETOPCMD_INTERSECT", + "1": "SETOPCMD_INTERSECT_ALL", + "2": "SETOPCMD_EXCEPT", + "3": "SETOPCMD_EXCEPT_ALL" + }, + "SetOpStrategy": { + "0": "SETOP_SORTED", + "1": "SETOP_HASHED" + }, + "OnConflictAction": { + "0": "ONCONFLICT_NONE", + "1": "ONCONFLICT_NOTHING", + "2": "ONCONFLICT_UPDATE" + }, + "LimitOption": { + "0": "LIMIT_OPTION_DEFAULT", + "1": "LIMIT_OPTION_COUNT", + "2": "LIMIT_OPTION_WITH_TIES" + }, + "LockClauseStrength": { + "0": "LCS_NONE", + "1": "LCS_FORKEYSHARE", + "2": "LCS_FORSHARE", + "3": "LCS_FORNOKEYUPDATE", + "4": "LCS_FORUPDATE" + }, + "LockWaitPolicy": { + "0": "LockWaitBlock", + "1": "LockWaitSkip", + "2": "LockWaitError" + }, + "LockTupleMode": { + "0": "LockTupleKeyShare", + "1": "LockTupleShare", + "2": "LockTupleNoKeyExclusive", + "3": "LockTupleExclusive" + }, + "KeywordKind": { + "0": "NO_KEYWORD", + "1": "UNRESERVED_KEYWORD", + "2": "COL_NAME_KEYWORD", + "3": "TYPE_FUNC_NAME_KEYWORD", + "4": "RESERVED_KEYWORD" + }, + "Token": { + "0": "NUL", + "36": "ASCII_36", + "37": "ASCII_37", + "40": "ASCII_40", + "41": "ASCII_41", + "42": "ASCII_42", + "43": "ASCII_43", + "44": "ASCII_44", + "45": "ASCII_45", + "46": "ASCII_46", + "47": "ASCII_47", + "58": "ASCII_58", + "59": "ASCII_59", + "60": "ASCII_60", + "61": "ASCII_61", + "62": "ASCII_62", + "63": "ASCII_63", + "91": "ASCII_91", + "92": "ASCII_92", + "93": "ASCII_93", + "94": "ASCII_94", + "258": "IDENT", + "259": "UIDENT", + "260": "FCONST", + "261": "SCONST", + "262": "USCONST", + "263": "BCONST", + "264": "XCONST", + "265": "Op", + "266": "ICONST", + "267": "PARAM", + "268": "TYPECAST", + "269": "DOT_DOT", + "270": "COLON_EQUALS", + "271": "EQUALS_GREATER", + "272": "LESS_EQUALS", + "273": "GREATER_EQUALS", + "274": "NOT_EQUALS", + "275": "SQL_COMMENT", + "276": "C_COMMENT", + "277": "ABORT_P", + "278": "ABSENT", + "279": "ABSOLUTE_P", + "280": "ACCESS", + "281": "ACTION", + "282": "ADD_P", + "283": "ADMIN", + "284": "AFTER", + "285": "AGGREGATE", + "286": "ALL", + "287": "ALSO", + "288": "ALTER", + "289": "ALWAYS", + "290": "ANALYSE", + "291": "ANALYZE", + "292": "AND", + "293": "ANY", + "294": "ARRAY", + "295": "AS", + "296": "ASC", + "297": "ASENSITIVE", + "298": "ASSERTION", + "299": "ASSIGNMENT", + "300": "ASYMMETRIC", + "301": "ATOMIC", + "302": "AT", + "303": "ATTACH", + "304": "ATTRIBUTE", + "305": "AUTHORIZATION", + "306": "BACKWARD", + "307": "BEFORE", + "308": "BEGIN_P", + "309": "BETWEEN", + "310": "BIGINT", + "311": "BINARY", + "312": "BIT", + "313": "BOOLEAN_P", + "314": "BOTH", + "315": "BREADTH", + "316": "BY", + "317": "CACHE", + "318": "CALL", + "319": "CALLED", + "320": "CASCADE", + "321": "CASCADED", + "322": "CASE", + "323": "CAST", + "324": "CATALOG_P", + "325": "CHAIN", + "326": "CHAR_P", + "327": "CHARACTER", + "328": "CHARACTERISTICS", + "329": "CHECK", + "330": "CHECKPOINT", + "331": "CLASS", + "332": "CLOSE", + "333": "CLUSTER", + "334": "COALESCE", + "335": "COLLATE", + "336": "COLLATION", + "337": "COLUMN", + "338": "COLUMNS", + "339": "COMMENT", + "340": "COMMENTS", + "341": "COMMIT", + "342": "COMMITTED", + "343": "COMPRESSION", + "344": "CONCURRENTLY", + "345": "CONFIGURATION", + "346": "CONFLICT", + "347": "CONNECTION", + "348": "CONSTRAINT", + "349": "CONSTRAINTS", + "350": "CONTENT_P", + "351": "CONTINUE_P", + "352": "CONVERSION_P", + "353": "COPY", + "354": "COST", + "355": "CREATE", + "356": "CROSS", + "357": "CSV", + "358": "CUBE", + "359": "CURRENT_P", + "360": "CURRENT_CATALOG", + "361": "CURRENT_DATE", + "362": "CURRENT_ROLE", + "363": "CURRENT_SCHEMA", + "364": "CURRENT_TIME", + "365": "CURRENT_TIMESTAMP", + "366": "CURRENT_USER", + "367": "CURSOR", + "368": "CYCLE", + "369": "DATA_P", + "370": "DATABASE", + "371": "DAY_P", + "372": "DEALLOCATE", + "373": "DEC", + "374": "DECIMAL_P", + "375": "DECLARE", + "376": "DEFAULT", + "377": "DEFAULTS", + "378": "DEFERRABLE", + "379": "DEFERRED", + "380": "DEFINER", + "381": "DELETE_P", + "382": "DELIMITER", + "383": "DELIMITERS", + "384": "DEPENDS", + "385": "DEPTH", + "386": "DESC", + "387": "DETACH", + "388": "DICTIONARY", + "389": "DISABLE_P", + "390": "DISCARD", + "391": "DISTINCT", + "392": "DO", + "393": "DOCUMENT_P", + "394": "DOMAIN_P", + "395": "DOUBLE_P", + "396": "DROP", + "397": "EACH", + "398": "ELSE", + "399": "ENABLE_P", + "400": "ENCODING", + "401": "ENCRYPTED", + "402": "END_P", + "403": "ENUM_P", + "404": "ESCAPE", + "405": "EVENT", + "406": "EXCEPT", + "407": "EXCLUDE", + "408": "EXCLUDING", + "409": "EXCLUSIVE", + "410": "EXECUTE", + "411": "EXISTS", + "412": "EXPLAIN", + "413": "EXPRESSION", + "414": "EXTENSION", + "415": "EXTERNAL", + "416": "EXTRACT", + "417": "FALSE_P", + "418": "FAMILY", + "419": "FETCH", + "420": "FILTER", + "421": "FINALIZE", + "422": "FIRST_P", + "423": "FLOAT_P", + "424": "FOLLOWING", + "425": "FOR", + "426": "FORCE", + "427": "FOREIGN", + "428": "FORMAT", + "429": "FORWARD", + "430": "FREEZE", + "431": "FROM", + "432": "FULL", + "433": "FUNCTION", + "434": "FUNCTIONS", + "435": "GENERATED", + "436": "GLOBAL", + "437": "GRANT", + "438": "GRANTED", + "439": "GREATEST", + "440": "GROUP_P", + "441": "GROUPING", + "442": "GROUPS", + "443": "HANDLER", + "444": "HAVING", + "445": "HEADER_P", + "446": "HOLD", + "447": "HOUR_P", + "448": "IDENTITY_P", + "449": "IF_P", + "450": "ILIKE", + "451": "IMMEDIATE", + "452": "IMMUTABLE", + "453": "IMPLICIT_P", + "454": "IMPORT_P", + "455": "IN_P", + "456": "INCLUDE", + "457": "INCLUDING", + "458": "INCREMENT", + "459": "INDENT", + "460": "INDEX", + "461": "INDEXES", + "462": "INHERIT", + "463": "INHERITS", + "464": "INITIALLY", + "465": "INLINE_P", + "466": "INNER_P", + "467": "INOUT", + "468": "INPUT_P", + "469": "INSENSITIVE", + "470": "INSERT", + "471": "INSTEAD", + "472": "INT_P", + "473": "INTEGER", + "474": "INTERSECT", + "475": "INTERVAL", + "476": "INTO", + "477": "INVOKER", + "478": "IS", + "479": "ISNULL", + "480": "ISOLATION", + "481": "JOIN", + "482": "JSON", + "483": "JSON_ARRAY", + "484": "JSON_ARRAYAGG", + "485": "JSON_OBJECT", + "486": "JSON_OBJECTAGG", + "487": "KEY", + "488": "KEYS", + "489": "LABEL", + "490": "LANGUAGE", + "491": "LARGE_P", + "492": "LAST_P", + "493": "LATERAL_P", + "494": "LEADING", + "495": "LEAKPROOF", + "496": "LEAST", + "497": "LEFT", + "498": "LEVEL", + "499": "LIKE", + "500": "LIMIT", + "501": "LISTEN", + "502": "LOAD", + "503": "LOCAL", + "504": "LOCALTIME", + "505": "LOCALTIMESTAMP", + "506": "LOCATION", + "507": "LOCK_P", + "508": "LOCKED", + "509": "LOGGED", + "510": "MAPPING", + "511": "MATCH", + "512": "MATCHED", + "513": "MATERIALIZED", + "514": "MAXVALUE", + "515": "MERGE", + "516": "METHOD", + "517": "MINUTE_P", + "518": "MINVALUE", + "519": "MODE", + "520": "MONTH_P", + "521": "MOVE", + "522": "NAME_P", + "523": "NAMES", + "524": "NATIONAL", + "525": "NATURAL", + "526": "NCHAR", + "527": "NEW", + "528": "NEXT", + "529": "NFC", + "530": "NFD", + "531": "NFKC", + "532": "NFKD", + "533": "NO", + "534": "NONE", + "535": "NORMALIZE", + "536": "NORMALIZED", + "537": "NOT", + "538": "NOTHING", + "539": "NOTIFY", + "540": "NOTNULL", + "541": "NOWAIT", + "542": "NULL_P", + "543": "NULLIF", + "544": "NULLS_P", + "545": "NUMERIC", + "546": "OBJECT_P", + "547": "OF", + "548": "OFF", + "549": "OFFSET", + "550": "OIDS", + "551": "OLD", + "552": "ON", + "553": "ONLY", + "554": "OPERATOR", + "555": "OPTION", + "556": "OPTIONS", + "557": "OR", + "558": "ORDER", + "559": "ORDINALITY", + "560": "OTHERS", + "561": "OUT_P", + "562": "OUTER_P", + "563": "OVER", + "564": "OVERLAPS", + "565": "OVERLAY", + "566": "OVERRIDING", + "567": "OWNED", + "568": "OWNER", + "569": "PARALLEL", + "570": "PARAMETER", + "571": "PARSER", + "572": "PARTIAL", + "573": "PARTITION", + "574": "PASSING", + "575": "PASSWORD", + "576": "PLACING", + "577": "PLANS", + "578": "POLICY", + "579": "POSITION", + "580": "PRECEDING", + "581": "PRECISION", + "582": "PRESERVE", + "583": "PREPARE", + "584": "PREPARED", + "585": "PRIMARY", + "586": "PRIOR", + "587": "PRIVILEGES", + "588": "PROCEDURAL", + "589": "PROCEDURE", + "590": "PROCEDURES", + "591": "PROGRAM", + "592": "PUBLICATION", + "593": "QUOTE", + "594": "RANGE", + "595": "READ", + "596": "REAL", + "597": "REASSIGN", + "598": "RECHECK", + "599": "RECURSIVE", + "600": "REF_P", + "601": "REFERENCES", + "602": "REFERENCING", + "603": "REFRESH", + "604": "REINDEX", + "605": "RELATIVE_P", + "606": "RELEASE", + "607": "RENAME", + "608": "REPEATABLE", + "609": "REPLACE", + "610": "REPLICA", + "611": "RESET", + "612": "RESTART", + "613": "RESTRICT", + "614": "RETURN", + "615": "RETURNING", + "616": "RETURNS", + "617": "REVOKE", + "618": "RIGHT", + "619": "ROLE", + "620": "ROLLBACK", + "621": "ROLLUP", + "622": "ROUTINE", + "623": "ROUTINES", + "624": "ROW", + "625": "ROWS", + "626": "RULE", + "627": "SAVEPOINT", + "628": "SCALAR", + "629": "SCHEMA", + "630": "SCHEMAS", + "631": "SCROLL", + "632": "SEARCH", + "633": "SECOND_P", + "634": "SECURITY", + "635": "SELECT", + "636": "SEQUENCE", + "637": "SEQUENCES", + "638": "SERIALIZABLE", + "639": "SERVER", + "640": "SESSION", + "641": "SESSION_USER", + "642": "SET", + "643": "SETS", + "644": "SETOF", + "645": "SHARE", + "646": "SHOW", + "647": "SIMILAR", + "648": "SIMPLE", + "649": "SKIP", + "650": "SMALLINT", + "651": "SNAPSHOT", + "652": "SOME", + "653": "SQL_P", + "654": "STABLE", + "655": "STANDALONE_P", + "656": "START", + "657": "STATEMENT", + "658": "STATISTICS", + "659": "STDIN", + "660": "STDOUT", + "661": "STORAGE", + "662": "STORED", + "663": "STRICT_P", + "664": "STRIP_P", + "665": "SUBSCRIPTION", + "666": "SUBSTRING", + "667": "SUPPORT", + "668": "SYMMETRIC", + "669": "SYSID", + "670": "SYSTEM_P", + "671": "SYSTEM_USER", + "672": "TABLE", + "673": "TABLES", + "674": "TABLESAMPLE", + "675": "TABLESPACE", + "676": "TEMP", + "677": "TEMPLATE", + "678": "TEMPORARY", + "679": "TEXT_P", + "680": "THEN", + "681": "TIES", + "682": "TIME", + "683": "TIMESTAMP", + "684": "TO", + "685": "TRAILING", + "686": "TRANSACTION", + "687": "TRANSFORM", + "688": "TREAT", + "689": "TRIGGER", + "690": "TRIM", + "691": "TRUE_P", + "692": "TRUNCATE", + "693": "TRUSTED", + "694": "TYPE_P", + "695": "TYPES_P", + "696": "UESCAPE", + "697": "UNBOUNDED", + "698": "UNCOMMITTED", + "699": "UNENCRYPTED", + "700": "UNION", + "701": "UNIQUE", + "702": "UNKNOWN", + "703": "UNLISTEN", + "704": "UNLOGGED", + "705": "UNTIL", + "706": "UPDATE", + "707": "USER", + "708": "USING", + "709": "VACUUM", + "710": "VALID", + "711": "VALIDATE", + "712": "VALIDATOR", + "713": "VALUE_P", + "714": "VALUES", + "715": "VARCHAR", + "716": "VARIADIC", + "717": "VARYING", + "718": "VERBOSE", + "719": "VERSION_P", + "720": "VIEW", + "721": "VIEWS", + "722": "VOLATILE", + "723": "WHEN", + "724": "WHERE", + "725": "WHITESPACE_P", + "726": "WINDOW", + "727": "WITH", + "728": "WITHIN", + "729": "WITHOUT", + "730": "WORK", + "731": "WRAPPER", + "732": "WRITE", + "733": "XML_P", + "734": "XMLATTRIBUTES", + "735": "XMLCONCAT", + "736": "XMLELEMENT", + "737": "XMLEXISTS", + "738": "XMLFOREST", + "739": "XMLNAMESPACES", + "740": "XMLPARSE", + "741": "XMLPI", + "742": "XMLROOT", + "743": "XMLSERIALIZE", + "744": "XMLTABLE", + "745": "YEAR_P", + "746": "YES_P", + "747": "ZONE", + "748": "FORMAT_LA", + "749": "NOT_LA", + "750": "NULLS_LA", + "751": "WITH_LA", + "752": "WITHOUT_LA", + "753": "MODE_TYPE_NAME", + "754": "MODE_PLPGSQL_EXPR", + "755": "MODE_PLPGSQL_ASSIGN1", + "756": "MODE_PLPGSQL_ASSIGN2", + "757": "MODE_PLPGSQL_ASSIGN3", + "758": "UMINUS" + } +}", + "file": "enum-to-str.json", + }, + { + "code": "{ + "OverridingKind": { + "OVERRIDING_NOT_SET": 0, + "OVERRIDING_USER_VALUE": 1, + "OVERRIDING_SYSTEM_VALUE": 2 + }, + "QuerySource": { + "QSRC_ORIGINAL": 0, + "QSRC_PARSER": 1, + "QSRC_INSTEAD_RULE": 2, + "QSRC_QUAL_INSTEAD_RULE": 3, + "QSRC_NON_INSTEAD_RULE": 4 + }, + "SortByDir": { + "SORTBY_DEFAULT": 0, + "SORTBY_ASC": 1, + "SORTBY_DESC": 2, + "SORTBY_USING": 3 + }, + "SortByNulls": { + "SORTBY_NULLS_DEFAULT": 0, + "SORTBY_NULLS_FIRST": 1, + "SORTBY_NULLS_LAST": 2 + }, + "SetQuantifier": { + "SET_QUANTIFIER_DEFAULT": 0, + "SET_QUANTIFIER_ALL": 1, + "SET_QUANTIFIER_DISTINCT": 2 + }, + "A_Expr_Kind": { + "AEXPR_OP": 0, + "AEXPR_OP_ANY": 1, + "AEXPR_OP_ALL": 2, + "AEXPR_DISTINCT": 3, + "AEXPR_NOT_DISTINCT": 4, + "AEXPR_NULLIF": 5, + "AEXPR_IN": 6, + "AEXPR_LIKE": 7, + "AEXPR_ILIKE": 8, + "AEXPR_SIMILAR": 9, + "AEXPR_BETWEEN": 10, + "AEXPR_NOT_BETWEEN": 11, + "AEXPR_BETWEEN_SYM": 12, + "AEXPR_NOT_BETWEEN_SYM": 13 + }, + "RoleSpecType": { + "ROLESPEC_CSTRING": 0, + "ROLESPEC_CURRENT_ROLE": 1, + "ROLESPEC_CURRENT_USER": 2, + "ROLESPEC_SESSION_USER": 3, + "ROLESPEC_PUBLIC": 4 + }, + "TableLikeOption": { + "CREATE_TABLE_LIKE_COMMENTS": 0, + "CREATE_TABLE_LIKE_COMPRESSION": 1, + "CREATE_TABLE_LIKE_CONSTRAINTS": 2, + "CREATE_TABLE_LIKE_DEFAULTS": 3, + "CREATE_TABLE_LIKE_GENERATED": 4, + "CREATE_TABLE_LIKE_IDENTITY": 5, + "CREATE_TABLE_LIKE_INDEXES": 6, + "CREATE_TABLE_LIKE_STATISTICS": 7, + "CREATE_TABLE_LIKE_STORAGE": 8, + "CREATE_TABLE_LIKE_ALL": 9 + }, + "DefElemAction": { + "DEFELEM_UNSPEC": 0, + "DEFELEM_SET": 1, + "DEFELEM_ADD": 2, + "DEFELEM_DROP": 3 + }, + "PartitionStrategy": { + "PARTITION_STRATEGY_LIST": 0, + "PARTITION_STRATEGY_RANGE": 1, + "PARTITION_STRATEGY_HASH": 2 + }, + "PartitionRangeDatumKind": { + "PARTITION_RANGE_DATUM_MINVALUE": 0, + "PARTITION_RANGE_DATUM_VALUE": 1, + "PARTITION_RANGE_DATUM_MAXVALUE": 2 + }, + "RTEKind": { + "RTE_RELATION": 0, + "RTE_SUBQUERY": 1, + "RTE_JOIN": 2, + "RTE_FUNCTION": 3, + "RTE_TABLEFUNC": 4, + "RTE_VALUES": 5, + "RTE_CTE": 6, + "RTE_NAMEDTUPLESTORE": 7, + "RTE_RESULT": 8 + }, + "WCOKind": { + "WCO_VIEW_CHECK": 0, + "WCO_RLS_INSERT_CHECK": 1, + "WCO_RLS_UPDATE_CHECK": 2, + "WCO_RLS_CONFLICT_CHECK": 3, + "WCO_RLS_MERGE_UPDATE_CHECK": 4, + "WCO_RLS_MERGE_DELETE_CHECK": 5 + }, + "GroupingSetKind": { + "GROUPING_SET_EMPTY": 0, + "GROUPING_SET_SIMPLE": 1, + "GROUPING_SET_ROLLUP": 2, + "GROUPING_SET_CUBE": 3, + "GROUPING_SET_SETS": 4 + }, + "CTEMaterialize": { + "CTEMaterializeDefault": 0, + "CTEMaterializeAlways": 1, + "CTEMaterializeNever": 2 + }, + "SetOperation": { + "SETOP_NONE": 0, + "SETOP_UNION": 1, + "SETOP_INTERSECT": 2, + "SETOP_EXCEPT": 3 + }, + "ObjectType": { + "OBJECT_ACCESS_METHOD": 0, + "OBJECT_AGGREGATE": 1, + "OBJECT_AMOP": 2, + "OBJECT_AMPROC": 3, + "OBJECT_ATTRIBUTE": 4, + "OBJECT_CAST": 5, + "OBJECT_COLUMN": 6, + "OBJECT_COLLATION": 7, + "OBJECT_CONVERSION": 8, + "OBJECT_DATABASE": 9, + "OBJECT_DEFAULT": 10, + "OBJECT_DEFACL": 11, + "OBJECT_DOMAIN": 12, + "OBJECT_DOMCONSTRAINT": 13, + "OBJECT_EVENT_TRIGGER": 14, + "OBJECT_EXTENSION": 15, + "OBJECT_FDW": 16, + "OBJECT_FOREIGN_SERVER": 17, + "OBJECT_FOREIGN_TABLE": 18, + "OBJECT_FUNCTION": 19, + "OBJECT_INDEX": 20, + "OBJECT_LANGUAGE": 21, + "OBJECT_LARGEOBJECT": 22, + "OBJECT_MATVIEW": 23, + "OBJECT_OPCLASS": 24, + "OBJECT_OPERATOR": 25, + "OBJECT_OPFAMILY": 26, + "OBJECT_PARAMETER_ACL": 27, + "OBJECT_POLICY": 28, + "OBJECT_PROCEDURE": 29, + "OBJECT_PUBLICATION": 30, + "OBJECT_PUBLICATION_NAMESPACE": 31, + "OBJECT_PUBLICATION_REL": 32, + "OBJECT_ROLE": 33, + "OBJECT_ROUTINE": 34, + "OBJECT_RULE": 35, + "OBJECT_SCHEMA": 36, + "OBJECT_SEQUENCE": 37, + "OBJECT_SUBSCRIPTION": 38, + "OBJECT_STATISTIC_EXT": 39, + "OBJECT_TABCONSTRAINT": 40, + "OBJECT_TABLE": 41, + "OBJECT_TABLESPACE": 42, + "OBJECT_TRANSFORM": 43, + "OBJECT_TRIGGER": 44, + "OBJECT_TSCONFIGURATION": 45, + "OBJECT_TSDICTIONARY": 46, + "OBJECT_TSPARSER": 47, + "OBJECT_TSTEMPLATE": 48, + "OBJECT_TYPE": 49, + "OBJECT_USER_MAPPING": 50, + "OBJECT_VIEW": 51 + }, + "DropBehavior": { + "DROP_RESTRICT": 0, + "DROP_CASCADE": 1 + }, + "AlterTableType": { + "AT_AddColumn": 0, + "AT_AddColumnToView": 1, + "AT_ColumnDefault": 2, + "AT_CookedColumnDefault": 3, + "AT_DropNotNull": 4, + "AT_SetNotNull": 5, + "AT_DropExpression": 6, + "AT_CheckNotNull": 7, + "AT_SetStatistics": 8, + "AT_SetOptions": 9, + "AT_ResetOptions": 10, + "AT_SetStorage": 11, + "AT_SetCompression": 12, + "AT_DropColumn": 13, + "AT_AddIndex": 14, + "AT_ReAddIndex": 15, + "AT_AddConstraint": 16, + "AT_ReAddConstraint": 17, + "AT_ReAddDomainConstraint": 18, + "AT_AlterConstraint": 19, + "AT_ValidateConstraint": 20, + "AT_AddIndexConstraint": 21, + "AT_DropConstraint": 22, + "AT_ReAddComment": 23, + "AT_AlterColumnType": 24, + "AT_AlterColumnGenericOptions": 25, + "AT_ChangeOwner": 26, + "AT_ClusterOn": 27, + "AT_DropCluster": 28, + "AT_SetLogged": 29, + "AT_SetUnLogged": 30, + "AT_DropOids": 31, + "AT_SetAccessMethod": 32, + "AT_SetTableSpace": 33, + "AT_SetRelOptions": 34, + "AT_ResetRelOptions": 35, + "AT_ReplaceRelOptions": 36, + "AT_EnableTrig": 37, + "AT_EnableAlwaysTrig": 38, + "AT_EnableReplicaTrig": 39, + "AT_DisableTrig": 40, + "AT_EnableTrigAll": 41, + "AT_DisableTrigAll": 42, + "AT_EnableTrigUser": 43, + "AT_DisableTrigUser": 44, + "AT_EnableRule": 45, + "AT_EnableAlwaysRule": 46, + "AT_EnableReplicaRule": 47, + "AT_DisableRule": 48, + "AT_AddInherit": 49, + "AT_DropInherit": 50, + "AT_AddOf": 51, + "AT_DropOf": 52, + "AT_ReplicaIdentity": 53, + "AT_EnableRowSecurity": 54, + "AT_DisableRowSecurity": 55, + "AT_ForceRowSecurity": 56, + "AT_NoForceRowSecurity": 57, + "AT_GenericOptions": 58, + "AT_AttachPartition": 59, + "AT_DetachPartition": 60, + "AT_DetachPartitionFinalize": 61, + "AT_AddIdentity": 62, + "AT_SetIdentity": 63, + "AT_DropIdentity": 64, + "AT_ReAddStatistics": 65 + }, + "GrantTargetType": { + "ACL_TARGET_OBJECT": 0, + "ACL_TARGET_ALL_IN_SCHEMA": 1, + "ACL_TARGET_DEFAULTS": 2 + }, + "VariableSetKind": { + "VAR_SET_VALUE": 0, + "VAR_SET_DEFAULT": 1, + "VAR_SET_CURRENT": 2, + "VAR_SET_MULTI": 3, + "VAR_RESET": 4, + "VAR_RESET_ALL": 5 + }, + "ConstrType": { + "CONSTR_NULL": 0, + "CONSTR_NOTNULL": 1, + "CONSTR_DEFAULT": 2, + "CONSTR_IDENTITY": 3, + "CONSTR_GENERATED": 4, + "CONSTR_CHECK": 5, + "CONSTR_PRIMARY": 6, + "CONSTR_UNIQUE": 7, + "CONSTR_EXCLUSION": 8, + "CONSTR_FOREIGN": 9, + "CONSTR_ATTR_DEFERRABLE": 10, + "CONSTR_ATTR_NOT_DEFERRABLE": 11, + "CONSTR_ATTR_DEFERRED": 12, + "CONSTR_ATTR_IMMEDIATE": 13 + }, + "ImportForeignSchemaType": { + "FDW_IMPORT_SCHEMA_ALL": 0, + "FDW_IMPORT_SCHEMA_LIMIT_TO": 1, + "FDW_IMPORT_SCHEMA_EXCEPT": 2 + }, + "RoleStmtType": { + "ROLESTMT_ROLE": 0, + "ROLESTMT_USER": 1, + "ROLESTMT_GROUP": 2 + }, + "FetchDirection": { + "FETCH_FORWARD": 0, + "FETCH_BACKWARD": 1, + "FETCH_ABSOLUTE": 2, + "FETCH_RELATIVE": 3 + }, + "FunctionParameterMode": { + "FUNC_PARAM_IN": 0, + "FUNC_PARAM_OUT": 1, + "FUNC_PARAM_INOUT": 2, + "FUNC_PARAM_VARIADIC": 3, + "FUNC_PARAM_TABLE": 4, + "FUNC_PARAM_DEFAULT": 5 + }, + "TransactionStmtKind": { + "TRANS_STMT_BEGIN": 0, + "TRANS_STMT_START": 1, + "TRANS_STMT_COMMIT": 2, + "TRANS_STMT_ROLLBACK": 3, + "TRANS_STMT_SAVEPOINT": 4, + "TRANS_STMT_RELEASE": 5, + "TRANS_STMT_ROLLBACK_TO": 6, + "TRANS_STMT_PREPARE": 7, + "TRANS_STMT_COMMIT_PREPARED": 8, + "TRANS_STMT_ROLLBACK_PREPARED": 9 + }, + "ViewCheckOption": { + "NO_CHECK_OPTION": 0, + "LOCAL_CHECK_OPTION": 1, + "CASCADED_CHECK_OPTION": 2 + }, + "DiscardMode": { + "DISCARD_ALL": 0, + "DISCARD_PLANS": 1, + "DISCARD_SEQUENCES": 2, + "DISCARD_TEMP": 3 + }, + "ReindexObjectType": { + "REINDEX_OBJECT_INDEX": 0, + "REINDEX_OBJECT_TABLE": 1, + "REINDEX_OBJECT_SCHEMA": 2, + "REINDEX_OBJECT_SYSTEM": 3, + "REINDEX_OBJECT_DATABASE": 4 + }, + "AlterTSConfigType": { + "ALTER_TSCONFIG_ADD_MAPPING": 0, + "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN": 1, + "ALTER_TSCONFIG_REPLACE_DICT": 2, + "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN": 3, + "ALTER_TSCONFIG_DROP_MAPPING": 4 + }, + "PublicationObjSpecType": { + "PUBLICATIONOBJ_TABLE": 0, + "PUBLICATIONOBJ_TABLES_IN_SCHEMA": 1, + "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA": 2, + "PUBLICATIONOBJ_CONTINUATION": 3 + }, + "AlterPublicationAction": { + "AP_AddObjects": 0, + "AP_DropObjects": 1, + "AP_SetObjects": 2 + }, + "AlterSubscriptionType": { + "ALTER_SUBSCRIPTION_OPTIONS": 0, + "ALTER_SUBSCRIPTION_CONNECTION": 1, + "ALTER_SUBSCRIPTION_SET_PUBLICATION": 2, + "ALTER_SUBSCRIPTION_ADD_PUBLICATION": 3, + "ALTER_SUBSCRIPTION_DROP_PUBLICATION": 4, + "ALTER_SUBSCRIPTION_REFRESH": 5, + "ALTER_SUBSCRIPTION_ENABLED": 6, + "ALTER_SUBSCRIPTION_SKIP": 7 + }, + "OnCommitAction": { + "ONCOMMIT_NOOP": 0, + "ONCOMMIT_PRESERVE_ROWS": 1, + "ONCOMMIT_DELETE_ROWS": 2, + "ONCOMMIT_DROP": 3 + }, + "ParamKind": { + "PARAM_EXTERN": 0, + "PARAM_EXEC": 1, + "PARAM_SUBLINK": 2, + "PARAM_MULTIEXPR": 3 + }, + "CoercionContext": { + "COERCION_IMPLICIT": 0, + "COERCION_ASSIGNMENT": 1, + "COERCION_PLPGSQL": 2, + "COERCION_EXPLICIT": 3 + }, + "CoercionForm": { + "COERCE_EXPLICIT_CALL": 0, + "COERCE_EXPLICIT_CAST": 1, + "COERCE_IMPLICIT_CAST": 2, + "COERCE_SQL_SYNTAX": 3 + }, + "BoolExprType": { + "AND_EXPR": 0, + "OR_EXPR": 1, + "NOT_EXPR": 2 + }, + "SubLinkType": { + "EXISTS_SUBLINK": 0, + "ALL_SUBLINK": 1, + "ANY_SUBLINK": 2, + "ROWCOMPARE_SUBLINK": 3, + "EXPR_SUBLINK": 4, + "MULTIEXPR_SUBLINK": 5, + "ARRAY_SUBLINK": 6, + "CTE_SUBLINK": 7 + }, + "RowCompareType": { + "ROWCOMPARE_LT": 0, + "ROWCOMPARE_LE": 1, + "ROWCOMPARE_EQ": 2, + "ROWCOMPARE_GE": 3, + "ROWCOMPARE_GT": 4, + "ROWCOMPARE_NE": 5 + }, + "MinMaxOp": { + "IS_GREATEST": 0, + "IS_LEAST": 1 + }, + "SQLValueFunctionOp": { + "SVFOP_CURRENT_DATE": 0, + "SVFOP_CURRENT_TIME": 1, + "SVFOP_CURRENT_TIME_N": 2, + "SVFOP_CURRENT_TIMESTAMP": 3, + "SVFOP_CURRENT_TIMESTAMP_N": 4, + "SVFOP_LOCALTIME": 5, + "SVFOP_LOCALTIME_N": 6, + "SVFOP_LOCALTIMESTAMP": 7, + "SVFOP_LOCALTIMESTAMP_N": 8, + "SVFOP_CURRENT_ROLE": 9, + "SVFOP_CURRENT_USER": 10, + "SVFOP_USER": 11, + "SVFOP_SESSION_USER": 12, + "SVFOP_CURRENT_CATALOG": 13, + "SVFOP_CURRENT_SCHEMA": 14 + }, + "XmlExprOp": { + "IS_XMLCONCAT": 0, + "IS_XMLELEMENT": 1, + "IS_XMLFOREST": 2, + "IS_XMLPARSE": 3, + "IS_XMLPI": 4, + "IS_XMLROOT": 5, + "IS_XMLSERIALIZE": 6, + "IS_DOCUMENT": 7 + }, + "XmlOptionType": { + "XMLOPTION_DOCUMENT": 0, + "XMLOPTION_CONTENT": 1 + }, + "JsonEncoding": { + "JS_ENC_DEFAULT": 0, + "JS_ENC_UTF8": 1, + "JS_ENC_UTF16": 2, + "JS_ENC_UTF32": 3 + }, + "JsonFormatType": { + "JS_FORMAT_DEFAULT": 0, + "JS_FORMAT_JSON": 1, + "JS_FORMAT_JSONB": 2 + }, + "JsonConstructorType": { + "JSCTOR_JSON_OBJECT": 0, + "JSCTOR_JSON_ARRAY": 1, + "JSCTOR_JSON_OBJECTAGG": 2, + "JSCTOR_JSON_ARRAYAGG": 3 + }, + "JsonValueType": { + "JS_TYPE_ANY": 0, + "JS_TYPE_OBJECT": 1, + "JS_TYPE_ARRAY": 2, + "JS_TYPE_SCALAR": 3 + }, + "NullTestType": { + "IS_NULL": 0, + "IS_NOT_NULL": 1 + }, + "BoolTestType": { + "IS_TRUE": 0, + "IS_NOT_TRUE": 1, + "IS_FALSE": 2, + "IS_NOT_FALSE": 3, + "IS_UNKNOWN": 4, + "IS_NOT_UNKNOWN": 5 + }, + "CmdType": { + "CMD_UNKNOWN": 0, + "CMD_SELECT": 1, + "CMD_UPDATE": 2, + "CMD_INSERT": 3, + "CMD_DELETE": 4, + "CMD_MERGE": 5, + "CMD_UTILITY": 6, + "CMD_NOTHING": 7 + }, + "JoinType": { + "JOIN_INNER": 0, + "JOIN_LEFT": 1, + "JOIN_FULL": 2, + "JOIN_RIGHT": 3, + "JOIN_SEMI": 4, + "JOIN_ANTI": 5, + "JOIN_RIGHT_ANTI": 6, + "JOIN_UNIQUE_OUTER": 7, + "JOIN_UNIQUE_INNER": 8 + }, + "AggStrategy": { + "AGG_PLAIN": 0, + "AGG_SORTED": 1, + "AGG_HASHED": 2, + "AGG_MIXED": 3 + }, + "AggSplit": { + "AGGSPLIT_SIMPLE": 0, + "AGGSPLIT_INITIAL_SERIAL": 1, + "AGGSPLIT_FINAL_DESERIAL": 2 + }, + "SetOpCmd": { + "SETOPCMD_INTERSECT": 0, + "SETOPCMD_INTERSECT_ALL": 1, + "SETOPCMD_EXCEPT": 2, + "SETOPCMD_EXCEPT_ALL": 3 + }, + "SetOpStrategy": { + "SETOP_SORTED": 0, + "SETOP_HASHED": 1 + }, + "OnConflictAction": { + "ONCONFLICT_NONE": 0, + "ONCONFLICT_NOTHING": 1, + "ONCONFLICT_UPDATE": 2 + }, + "LimitOption": { + "LIMIT_OPTION_DEFAULT": 0, + "LIMIT_OPTION_COUNT": 1, + "LIMIT_OPTION_WITH_TIES": 2 + }, + "LockClauseStrength": { + "LCS_NONE": 0, + "LCS_FORKEYSHARE": 1, + "LCS_FORSHARE": 2, + "LCS_FORNOKEYUPDATE": 3, + "LCS_FORUPDATE": 4 + }, + "LockWaitPolicy": { + "LockWaitBlock": 0, + "LockWaitSkip": 1, + "LockWaitError": 2 + }, + "LockTupleMode": { + "LockTupleKeyShare": 0, + "LockTupleShare": 1, + "LockTupleNoKeyExclusive": 2, + "LockTupleExclusive": 3 + }, + "KeywordKind": { + "NO_KEYWORD": 0, + "UNRESERVED_KEYWORD": 1, + "COL_NAME_KEYWORD": 2, + "TYPE_FUNC_NAME_KEYWORD": 3, + "RESERVED_KEYWORD": 4 + }, + "Token": { + "NUL": 0, + "ASCII_36": 36, + "ASCII_37": 37, + "ASCII_40": 40, + "ASCII_41": 41, + "ASCII_42": 42, + "ASCII_43": 43, + "ASCII_44": 44, + "ASCII_45": 45, + "ASCII_46": 46, + "ASCII_47": 47, + "ASCII_58": 58, + "ASCII_59": 59, + "ASCII_60": 60, + "ASCII_61": 61, + "ASCII_62": 62, + "ASCII_63": 63, + "ASCII_91": 91, + "ASCII_92": 92, + "ASCII_93": 93, + "ASCII_94": 94, + "IDENT": 258, + "UIDENT": 259, + "FCONST": 260, + "SCONST": 261, + "USCONST": 262, + "BCONST": 263, + "XCONST": 264, + "Op": 265, + "ICONST": 266, + "PARAM": 267, + "TYPECAST": 268, + "DOT_DOT": 269, + "COLON_EQUALS": 270, + "EQUALS_GREATER": 271, + "LESS_EQUALS": 272, + "GREATER_EQUALS": 273, + "NOT_EQUALS": 274, + "SQL_COMMENT": 275, + "C_COMMENT": 276, + "ABORT_P": 277, + "ABSENT": 278, + "ABSOLUTE_P": 279, + "ACCESS": 280, + "ACTION": 281, + "ADD_P": 282, + "ADMIN": 283, + "AFTER": 284, + "AGGREGATE": 285, + "ALL": 286, + "ALSO": 287, + "ALTER": 288, + "ALWAYS": 289, + "ANALYSE": 290, + "ANALYZE": 291, + "AND": 292, + "ANY": 293, + "ARRAY": 294, + "AS": 295, + "ASC": 296, + "ASENSITIVE": 297, + "ASSERTION": 298, + "ASSIGNMENT": 299, + "ASYMMETRIC": 300, + "ATOMIC": 301, + "AT": 302, + "ATTACH": 303, + "ATTRIBUTE": 304, + "AUTHORIZATION": 305, + "BACKWARD": 306, + "BEFORE": 307, + "BEGIN_P": 308, + "BETWEEN": 309, + "BIGINT": 310, + "BINARY": 311, + "BIT": 312, + "BOOLEAN_P": 313, + "BOTH": 314, + "BREADTH": 315, + "BY": 316, + "CACHE": 317, + "CALL": 318, + "CALLED": 319, + "CASCADE": 320, + "CASCADED": 321, + "CASE": 322, + "CAST": 323, + "CATALOG_P": 324, + "CHAIN": 325, + "CHAR_P": 326, + "CHARACTER": 327, + "CHARACTERISTICS": 328, + "CHECK": 329, + "CHECKPOINT": 330, + "CLASS": 331, + "CLOSE": 332, + "CLUSTER": 333, + "COALESCE": 334, + "COLLATE": 335, + "COLLATION": 336, + "COLUMN": 337, + "COLUMNS": 338, + "COMMENT": 339, + "COMMENTS": 340, + "COMMIT": 341, + "COMMITTED": 342, + "COMPRESSION": 343, + "CONCURRENTLY": 344, + "CONFIGURATION": 345, + "CONFLICT": 346, + "CONNECTION": 347, + "CONSTRAINT": 348, + "CONSTRAINTS": 349, + "CONTENT_P": 350, + "CONTINUE_P": 351, + "CONVERSION_P": 352, + "COPY": 353, + "COST": 354, + "CREATE": 355, + "CROSS": 356, + "CSV": 357, + "CUBE": 358, + "CURRENT_P": 359, + "CURRENT_CATALOG": 360, + "CURRENT_DATE": 361, + "CURRENT_ROLE": 362, + "CURRENT_SCHEMA": 363, + "CURRENT_TIME": 364, + "CURRENT_TIMESTAMP": 365, + "CURRENT_USER": 366, + "CURSOR": 367, + "CYCLE": 368, + "DATA_P": 369, + "DATABASE": 370, + "DAY_P": 371, + "DEALLOCATE": 372, + "DEC": 373, + "DECIMAL_P": 374, + "DECLARE": 375, + "DEFAULT": 376, + "DEFAULTS": 377, + "DEFERRABLE": 378, + "DEFERRED": 379, + "DEFINER": 380, + "DELETE_P": 381, + "DELIMITER": 382, + "DELIMITERS": 383, + "DEPENDS": 384, + "DEPTH": 385, + "DESC": 386, + "DETACH": 387, + "DICTIONARY": 388, + "DISABLE_P": 389, + "DISCARD": 390, + "DISTINCT": 391, + "DO": 392, + "DOCUMENT_P": 393, + "DOMAIN_P": 394, + "DOUBLE_P": 395, + "DROP": 396, + "EACH": 397, + "ELSE": 398, + "ENABLE_P": 399, + "ENCODING": 400, + "ENCRYPTED": 401, + "END_P": 402, + "ENUM_P": 403, + "ESCAPE": 404, + "EVENT": 405, + "EXCEPT": 406, + "EXCLUDE": 407, + "EXCLUDING": 408, + "EXCLUSIVE": 409, + "EXECUTE": 410, + "EXISTS": 411, + "EXPLAIN": 412, + "EXPRESSION": 413, + "EXTENSION": 414, + "EXTERNAL": 415, + "EXTRACT": 416, + "FALSE_P": 417, + "FAMILY": 418, + "FETCH": 419, + "FILTER": 420, + "FINALIZE": 421, + "FIRST_P": 422, + "FLOAT_P": 423, + "FOLLOWING": 424, + "FOR": 425, + "FORCE": 426, + "FOREIGN": 427, + "FORMAT": 428, + "FORWARD": 429, + "FREEZE": 430, + "FROM": 431, + "FULL": 432, + "FUNCTION": 433, + "FUNCTIONS": 434, + "GENERATED": 435, + "GLOBAL": 436, + "GRANT": 437, + "GRANTED": 438, + "GREATEST": 439, + "GROUP_P": 440, + "GROUPING": 441, + "GROUPS": 442, + "HANDLER": 443, + "HAVING": 444, + "HEADER_P": 445, + "HOLD": 446, + "HOUR_P": 447, + "IDENTITY_P": 448, + "IF_P": 449, + "ILIKE": 450, + "IMMEDIATE": 451, + "IMMUTABLE": 452, + "IMPLICIT_P": 453, + "IMPORT_P": 454, + "IN_P": 455, + "INCLUDE": 456, + "INCLUDING": 457, + "INCREMENT": 458, + "INDENT": 459, + "INDEX": 460, + "INDEXES": 461, + "INHERIT": 462, + "INHERITS": 463, + "INITIALLY": 464, + "INLINE_P": 465, + "INNER_P": 466, + "INOUT": 467, + "INPUT_P": 468, + "INSENSITIVE": 469, + "INSERT": 470, + "INSTEAD": 471, + "INT_P": 472, + "INTEGER": 473, + "INTERSECT": 474, + "INTERVAL": 475, + "INTO": 476, + "INVOKER": 477, + "IS": 478, + "ISNULL": 479, + "ISOLATION": 480, + "JOIN": 481, + "JSON": 482, + "JSON_ARRAY": 483, + "JSON_ARRAYAGG": 484, + "JSON_OBJECT": 485, + "JSON_OBJECTAGG": 486, + "KEY": 487, + "KEYS": 488, + "LABEL": 489, + "LANGUAGE": 490, + "LARGE_P": 491, + "LAST_P": 492, + "LATERAL_P": 493, + "LEADING": 494, + "LEAKPROOF": 495, + "LEAST": 496, + "LEFT": 497, + "LEVEL": 498, + "LIKE": 499, + "LIMIT": 500, + "LISTEN": 501, + "LOAD": 502, + "LOCAL": 503, + "LOCALTIME": 504, + "LOCALTIMESTAMP": 505, + "LOCATION": 506, + "LOCK_P": 507, + "LOCKED": 508, + "LOGGED": 509, + "MAPPING": 510, + "MATCH": 511, + "MATCHED": 512, + "MATERIALIZED": 513, + "MAXVALUE": 514, + "MERGE": 515, + "METHOD": 516, + "MINUTE_P": 517, + "MINVALUE": 518, + "MODE": 519, + "MONTH_P": 520, + "MOVE": 521, + "NAME_P": 522, + "NAMES": 523, + "NATIONAL": 524, + "NATURAL": 525, + "NCHAR": 526, + "NEW": 527, + "NEXT": 528, + "NFC": 529, + "NFD": 530, + "NFKC": 531, + "NFKD": 532, + "NO": 533, + "NONE": 534, + "NORMALIZE": 535, + "NORMALIZED": 536, + "NOT": 537, + "NOTHING": 538, + "NOTIFY": 539, + "NOTNULL": 540, + "NOWAIT": 541, + "NULL_P": 542, + "NULLIF": 543, + "NULLS_P": 544, + "NUMERIC": 545, + "OBJECT_P": 546, + "OF": 547, + "OFF": 548, + "OFFSET": 549, + "OIDS": 550, + "OLD": 551, + "ON": 552, + "ONLY": 553, + "OPERATOR": 554, + "OPTION": 555, + "OPTIONS": 556, + "OR": 557, + "ORDER": 558, + "ORDINALITY": 559, + "OTHERS": 560, + "OUT_P": 561, + "OUTER_P": 562, + "OVER": 563, + "OVERLAPS": 564, + "OVERLAY": 565, + "OVERRIDING": 566, + "OWNED": 567, + "OWNER": 568, + "PARALLEL": 569, + "PARAMETER": 570, + "PARSER": 571, + "PARTIAL": 572, + "PARTITION": 573, + "PASSING": 574, + "PASSWORD": 575, + "PLACING": 576, + "PLANS": 577, + "POLICY": 578, + "POSITION": 579, + "PRECEDING": 580, + "PRECISION": 581, + "PRESERVE": 582, + "PREPARE": 583, + "PREPARED": 584, + "PRIMARY": 585, + "PRIOR": 586, + "PRIVILEGES": 587, + "PROCEDURAL": 588, + "PROCEDURE": 589, + "PROCEDURES": 590, + "PROGRAM": 591, + "PUBLICATION": 592, + "QUOTE": 593, + "RANGE": 594, + "READ": 595, + "REAL": 596, + "REASSIGN": 597, + "RECHECK": 598, + "RECURSIVE": 599, + "REF_P": 600, + "REFERENCES": 601, + "REFERENCING": 602, + "REFRESH": 603, + "REINDEX": 604, + "RELATIVE_P": 605, + "RELEASE": 606, + "RENAME": 607, + "REPEATABLE": 608, + "REPLACE": 609, + "REPLICA": 610, + "RESET": 611, + "RESTART": 612, + "RESTRICT": 613, + "RETURN": 614, + "RETURNING": 615, + "RETURNS": 616, + "REVOKE": 617, + "RIGHT": 618, + "ROLE": 619, + "ROLLBACK": 620, + "ROLLUP": 621, + "ROUTINE": 622, + "ROUTINES": 623, + "ROW": 624, + "ROWS": 625, + "RULE": 626, + "SAVEPOINT": 627, + "SCALAR": 628, + "SCHEMA": 629, + "SCHEMAS": 630, + "SCROLL": 631, + "SEARCH": 632, + "SECOND_P": 633, + "SECURITY": 634, + "SELECT": 635, + "SEQUENCE": 636, + "SEQUENCES": 637, + "SERIALIZABLE": 638, + "SERVER": 639, + "SESSION": 640, + "SESSION_USER": 641, + "SET": 642, + "SETS": 643, + "SETOF": 644, + "SHARE": 645, + "SHOW": 646, + "SIMILAR": 647, + "SIMPLE": 648, + "SKIP": 649, + "SMALLINT": 650, + "SNAPSHOT": 651, + "SOME": 652, + "SQL_P": 653, + "STABLE": 654, + "STANDALONE_P": 655, + "START": 656, + "STATEMENT": 657, + "STATISTICS": 658, + "STDIN": 659, + "STDOUT": 660, + "STORAGE": 661, + "STORED": 662, + "STRICT_P": 663, + "STRIP_P": 664, + "SUBSCRIPTION": 665, + "SUBSTRING": 666, + "SUPPORT": 667, + "SYMMETRIC": 668, + "SYSID": 669, + "SYSTEM_P": 670, + "SYSTEM_USER": 671, + "TABLE": 672, + "TABLES": 673, + "TABLESAMPLE": 674, + "TABLESPACE": 675, + "TEMP": 676, + "TEMPLATE": 677, + "TEMPORARY": 678, + "TEXT_P": 679, + "THEN": 680, + "TIES": 681, + "TIME": 682, + "TIMESTAMP": 683, + "TO": 684, + "TRAILING": 685, + "TRANSACTION": 686, + "TRANSFORM": 687, + "TREAT": 688, + "TRIGGER": 689, + "TRIM": 690, + "TRUE_P": 691, + "TRUNCATE": 692, + "TRUSTED": 693, + "TYPE_P": 694, + "TYPES_P": 695, + "UESCAPE": 696, + "UNBOUNDED": 697, + "UNCOMMITTED": 698, + "UNENCRYPTED": 699, + "UNION": 700, + "UNIQUE": 701, + "UNKNOWN": 702, + "UNLISTEN": 703, + "UNLOGGED": 704, + "UNTIL": 705, + "UPDATE": 706, + "USER": 707, + "USING": 708, + "VACUUM": 709, + "VALID": 710, + "VALIDATE": 711, + "VALIDATOR": 712, + "VALUE_P": 713, + "VALUES": 714, + "VARCHAR": 715, + "VARIADIC": 716, + "VARYING": 717, + "VERBOSE": 718, + "VERSION_P": 719, + "VIEW": 720, + "VIEWS": 721, + "VOLATILE": 722, + "WHEN": 723, + "WHERE": 724, + "WHITESPACE_P": 725, + "WINDOW": 726, + "WITH": 727, + "WITHIN": 728, + "WITHOUT": 729, + "WORK": 730, + "WRAPPER": 731, + "WRITE": 732, + "XML_P": 733, + "XMLATTRIBUTES": 734, + "XMLCONCAT": 735, + "XMLELEMENT": 736, + "XMLEXISTS": 737, + "XMLFOREST": 738, + "XMLNAMESPACES": 739, + "XMLPARSE": 740, + "XMLPI": 741, + "XMLROOT": 742, + "XMLSERIALIZE": 743, + "XMLTABLE": 744, + "YEAR_P": 745, + "YES_P": 746, + "ZONE": 747, + "FORMAT_LA": 748, + "NOT_LA": 749, + "NULLS_LA": 750, + "WITH_LA": 751, + "WITHOUT_LA": 752, + "MODE_TYPE_NAME": 753, + "MODE_PLPGSQL_EXPR": 754, + "MODE_PLPGSQL_ASSIGN1": 755, + "MODE_PLPGSQL_ASSIGN2": 756, + "MODE_PLPGSQL_ASSIGN3": 757, + "UMINUS": 758 + } +}", + "file": "enum-to-int.json", + }, +] +`; + +exports[`enum-maps only toIntOutFile 1`] = ` +[ + { + "code": "/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export const enumToStrMap = { + OverridingKind: { + "0": 'OVERRIDING_NOT_SET', + "1": 'OVERRIDING_USER_VALUE', + "2": 'OVERRIDING_SYSTEM_VALUE' + }, + QuerySource: { + "0": 'QSRC_ORIGINAL', + "1": 'QSRC_PARSER', + "2": 'QSRC_INSTEAD_RULE', + "3": 'QSRC_QUAL_INSTEAD_RULE', + "4": 'QSRC_NON_INSTEAD_RULE' + }, + SortByDir: { + "0": 'SORTBY_DEFAULT', + "1": 'SORTBY_ASC', + "2": 'SORTBY_DESC', + "3": 'SORTBY_USING' + }, + SortByNulls: { + "0": 'SORTBY_NULLS_DEFAULT', + "1": 'SORTBY_NULLS_FIRST', + "2": 'SORTBY_NULLS_LAST' + }, + SetQuantifier: { + "0": 'SET_QUANTIFIER_DEFAULT', + "1": 'SET_QUANTIFIER_ALL', + "2": 'SET_QUANTIFIER_DISTINCT' + }, + A_Expr_Kind: { + "0": 'AEXPR_OP', + "1": 'AEXPR_OP_ANY', + "2": 'AEXPR_OP_ALL', + "3": 'AEXPR_DISTINCT', + "4": 'AEXPR_NOT_DISTINCT', + "5": 'AEXPR_NULLIF', + "6": 'AEXPR_IN', + "7": 'AEXPR_LIKE', + "8": 'AEXPR_ILIKE', + "9": 'AEXPR_SIMILAR', + "10": 'AEXPR_BETWEEN', + "11": 'AEXPR_NOT_BETWEEN', + "12": 'AEXPR_BETWEEN_SYM', + "13": 'AEXPR_NOT_BETWEEN_SYM' + }, + RoleSpecType: { + "0": 'ROLESPEC_CSTRING', + "1": 'ROLESPEC_CURRENT_ROLE', + "2": 'ROLESPEC_CURRENT_USER', + "3": 'ROLESPEC_SESSION_USER', + "4": 'ROLESPEC_PUBLIC' + }, + TableLikeOption: { + "0": 'CREATE_TABLE_LIKE_COMMENTS', + "1": 'CREATE_TABLE_LIKE_COMPRESSION', + "2": 'CREATE_TABLE_LIKE_CONSTRAINTS', + "3": 'CREATE_TABLE_LIKE_DEFAULTS', + "4": 'CREATE_TABLE_LIKE_GENERATED', + "5": 'CREATE_TABLE_LIKE_IDENTITY', + "6": 'CREATE_TABLE_LIKE_INDEXES', + "7": 'CREATE_TABLE_LIKE_STATISTICS', + "8": 'CREATE_TABLE_LIKE_STORAGE', + "9": 'CREATE_TABLE_LIKE_ALL' + }, + DefElemAction: { + "0": 'DEFELEM_UNSPEC', + "1": 'DEFELEM_SET', + "2": 'DEFELEM_ADD', + "3": 'DEFELEM_DROP' + }, + PartitionStrategy: { + "0": 'PARTITION_STRATEGY_LIST', + "1": 'PARTITION_STRATEGY_RANGE', + "2": 'PARTITION_STRATEGY_HASH' + }, + PartitionRangeDatumKind: { + "0": 'PARTITION_RANGE_DATUM_MINVALUE', + "1": 'PARTITION_RANGE_DATUM_VALUE', + "2": 'PARTITION_RANGE_DATUM_MAXVALUE' + }, + RTEKind: { + "0": 'RTE_RELATION', + "1": 'RTE_SUBQUERY', + "2": 'RTE_JOIN', + "3": 'RTE_FUNCTION', + "4": 'RTE_TABLEFUNC', + "5": 'RTE_VALUES', + "6": 'RTE_CTE', + "7": 'RTE_NAMEDTUPLESTORE', + "8": 'RTE_RESULT' + }, + WCOKind: { + "0": 'WCO_VIEW_CHECK', + "1": 'WCO_RLS_INSERT_CHECK', + "2": 'WCO_RLS_UPDATE_CHECK', + "3": 'WCO_RLS_CONFLICT_CHECK', + "4": 'WCO_RLS_MERGE_UPDATE_CHECK', + "5": 'WCO_RLS_MERGE_DELETE_CHECK' + }, + GroupingSetKind: { + "0": 'GROUPING_SET_EMPTY', + "1": 'GROUPING_SET_SIMPLE', + "2": 'GROUPING_SET_ROLLUP', + "3": 'GROUPING_SET_CUBE', + "4": 'GROUPING_SET_SETS' + }, + CTEMaterialize: { + "0": 'CTEMaterializeDefault', + "1": 'CTEMaterializeAlways', + "2": 'CTEMaterializeNever' + }, + SetOperation: { + "0": 'SETOP_NONE', + "1": 'SETOP_UNION', + "2": 'SETOP_INTERSECT', + "3": 'SETOP_EXCEPT' + }, + ObjectType: { + "0": 'OBJECT_ACCESS_METHOD', + "1": 'OBJECT_AGGREGATE', + "2": 'OBJECT_AMOP', + "3": 'OBJECT_AMPROC', + "4": 'OBJECT_ATTRIBUTE', + "5": 'OBJECT_CAST', + "6": 'OBJECT_COLUMN', + "7": 'OBJECT_COLLATION', + "8": 'OBJECT_CONVERSION', + "9": 'OBJECT_DATABASE', + "10": 'OBJECT_DEFAULT', + "11": 'OBJECT_DEFACL', + "12": 'OBJECT_DOMAIN', + "13": 'OBJECT_DOMCONSTRAINT', + "14": 'OBJECT_EVENT_TRIGGER', + "15": 'OBJECT_EXTENSION', + "16": 'OBJECT_FDW', + "17": 'OBJECT_FOREIGN_SERVER', + "18": 'OBJECT_FOREIGN_TABLE', + "19": 'OBJECT_FUNCTION', + "20": 'OBJECT_INDEX', + "21": 'OBJECT_LANGUAGE', + "22": 'OBJECT_LARGEOBJECT', + "23": 'OBJECT_MATVIEW', + "24": 'OBJECT_OPCLASS', + "25": 'OBJECT_OPERATOR', + "26": 'OBJECT_OPFAMILY', + "27": 'OBJECT_PARAMETER_ACL', + "28": 'OBJECT_POLICY', + "29": 'OBJECT_PROCEDURE', + "30": 'OBJECT_PUBLICATION', + "31": 'OBJECT_PUBLICATION_NAMESPACE', + "32": 'OBJECT_PUBLICATION_REL', + "33": 'OBJECT_ROLE', + "34": 'OBJECT_ROUTINE', + "35": 'OBJECT_RULE', + "36": 'OBJECT_SCHEMA', + "37": 'OBJECT_SEQUENCE', + "38": 'OBJECT_SUBSCRIPTION', + "39": 'OBJECT_STATISTIC_EXT', + "40": 'OBJECT_TABCONSTRAINT', + "41": 'OBJECT_TABLE', + "42": 'OBJECT_TABLESPACE', + "43": 'OBJECT_TRANSFORM', + "44": 'OBJECT_TRIGGER', + "45": 'OBJECT_TSCONFIGURATION', + "46": 'OBJECT_TSDICTIONARY', + "47": 'OBJECT_TSPARSER', + "48": 'OBJECT_TSTEMPLATE', + "49": 'OBJECT_TYPE', + "50": 'OBJECT_USER_MAPPING', + "51": 'OBJECT_VIEW' + }, + DropBehavior: { + "0": 'DROP_RESTRICT', + "1": 'DROP_CASCADE' + }, + AlterTableType: { + "0": 'AT_AddColumn', + "1": 'AT_AddColumnToView', + "2": 'AT_ColumnDefault', + "3": 'AT_CookedColumnDefault', + "4": 'AT_DropNotNull', + "5": 'AT_SetNotNull', + "6": 'AT_DropExpression', + "7": 'AT_CheckNotNull', + "8": 'AT_SetStatistics', + "9": 'AT_SetOptions', + "10": 'AT_ResetOptions', + "11": 'AT_SetStorage', + "12": 'AT_SetCompression', + "13": 'AT_DropColumn', + "14": 'AT_AddIndex', + "15": 'AT_ReAddIndex', + "16": 'AT_AddConstraint', + "17": 'AT_ReAddConstraint', + "18": 'AT_ReAddDomainConstraint', + "19": 'AT_AlterConstraint', + "20": 'AT_ValidateConstraint', + "21": 'AT_AddIndexConstraint', + "22": 'AT_DropConstraint', + "23": 'AT_ReAddComment', + "24": 'AT_AlterColumnType', + "25": 'AT_AlterColumnGenericOptions', + "26": 'AT_ChangeOwner', + "27": 'AT_ClusterOn', + "28": 'AT_DropCluster', + "29": 'AT_SetLogged', + "30": 'AT_SetUnLogged', + "31": 'AT_DropOids', + "32": 'AT_SetAccessMethod', + "33": 'AT_SetTableSpace', + "34": 'AT_SetRelOptions', + "35": 'AT_ResetRelOptions', + "36": 'AT_ReplaceRelOptions', + "37": 'AT_EnableTrig', + "38": 'AT_EnableAlwaysTrig', + "39": 'AT_EnableReplicaTrig', + "40": 'AT_DisableTrig', + "41": 'AT_EnableTrigAll', + "42": 'AT_DisableTrigAll', + "43": 'AT_EnableTrigUser', + "44": 'AT_DisableTrigUser', + "45": 'AT_EnableRule', + "46": 'AT_EnableAlwaysRule', + "47": 'AT_EnableReplicaRule', + "48": 'AT_DisableRule', + "49": 'AT_AddInherit', + "50": 'AT_DropInherit', + "51": 'AT_AddOf', + "52": 'AT_DropOf', + "53": 'AT_ReplicaIdentity', + "54": 'AT_EnableRowSecurity', + "55": 'AT_DisableRowSecurity', + "56": 'AT_ForceRowSecurity', + "57": 'AT_NoForceRowSecurity', + "58": 'AT_GenericOptions', + "59": 'AT_AttachPartition', + "60": 'AT_DetachPartition', + "61": 'AT_DetachPartitionFinalize', + "62": 'AT_AddIdentity', + "63": 'AT_SetIdentity', + "64": 'AT_DropIdentity', + "65": 'AT_ReAddStatistics' + }, + GrantTargetType: { + "0": 'ACL_TARGET_OBJECT', + "1": 'ACL_TARGET_ALL_IN_SCHEMA', + "2": 'ACL_TARGET_DEFAULTS' + }, + VariableSetKind: { + "0": 'VAR_SET_VALUE', + "1": 'VAR_SET_DEFAULT', + "2": 'VAR_SET_CURRENT', + "3": 'VAR_SET_MULTI', + "4": 'VAR_RESET', + "5": 'VAR_RESET_ALL' + }, + ConstrType: { + "0": 'CONSTR_NULL', + "1": 'CONSTR_NOTNULL', + "2": 'CONSTR_DEFAULT', + "3": 'CONSTR_IDENTITY', + "4": 'CONSTR_GENERATED', + "5": 'CONSTR_CHECK', + "6": 'CONSTR_PRIMARY', + "7": 'CONSTR_UNIQUE', + "8": 'CONSTR_EXCLUSION', + "9": 'CONSTR_FOREIGN', + "10": 'CONSTR_ATTR_DEFERRABLE', + "11": 'CONSTR_ATTR_NOT_DEFERRABLE', + "12": 'CONSTR_ATTR_DEFERRED', + "13": 'CONSTR_ATTR_IMMEDIATE' + }, + ImportForeignSchemaType: { + "0": 'FDW_IMPORT_SCHEMA_ALL', + "1": 'FDW_IMPORT_SCHEMA_LIMIT_TO', + "2": 'FDW_IMPORT_SCHEMA_EXCEPT' + }, + RoleStmtType: { + "0": 'ROLESTMT_ROLE', + "1": 'ROLESTMT_USER', + "2": 'ROLESTMT_GROUP' + }, + FetchDirection: { + "0": 'FETCH_FORWARD', + "1": 'FETCH_BACKWARD', + "2": 'FETCH_ABSOLUTE', + "3": 'FETCH_RELATIVE' + }, + FunctionParameterMode: { + "0": 'FUNC_PARAM_IN', + "1": 'FUNC_PARAM_OUT', + "2": 'FUNC_PARAM_INOUT', + "3": 'FUNC_PARAM_VARIADIC', + "4": 'FUNC_PARAM_TABLE', + "5": 'FUNC_PARAM_DEFAULT' + }, + TransactionStmtKind: { + "0": 'TRANS_STMT_BEGIN', + "1": 'TRANS_STMT_START', + "2": 'TRANS_STMT_COMMIT', + "3": 'TRANS_STMT_ROLLBACK', + "4": 'TRANS_STMT_SAVEPOINT', + "5": 'TRANS_STMT_RELEASE', + "6": 'TRANS_STMT_ROLLBACK_TO', + "7": 'TRANS_STMT_PREPARE', + "8": 'TRANS_STMT_COMMIT_PREPARED', + "9": 'TRANS_STMT_ROLLBACK_PREPARED' + }, + ViewCheckOption: { + "0": 'NO_CHECK_OPTION', + "1": 'LOCAL_CHECK_OPTION', + "2": 'CASCADED_CHECK_OPTION' + }, + DiscardMode: { + "0": 'DISCARD_ALL', + "1": 'DISCARD_PLANS', + "2": 'DISCARD_SEQUENCES', + "3": 'DISCARD_TEMP' + }, + ReindexObjectType: { + "0": 'REINDEX_OBJECT_INDEX', + "1": 'REINDEX_OBJECT_TABLE', + "2": 'REINDEX_OBJECT_SCHEMA', + "3": 'REINDEX_OBJECT_SYSTEM', + "4": 'REINDEX_OBJECT_DATABASE' + }, + AlterTSConfigType: { + "0": 'ALTER_TSCONFIG_ADD_MAPPING', + "1": 'ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN', + "2": 'ALTER_TSCONFIG_REPLACE_DICT', + "3": 'ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN', + "4": 'ALTER_TSCONFIG_DROP_MAPPING' + }, + PublicationObjSpecType: { + "0": 'PUBLICATIONOBJ_TABLE', + "1": 'PUBLICATIONOBJ_TABLES_IN_SCHEMA', + "2": 'PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA', + "3": 'PUBLICATIONOBJ_CONTINUATION' + }, + AlterPublicationAction: { + "0": 'AP_AddObjects', + "1": 'AP_DropObjects', + "2": 'AP_SetObjects' + }, + AlterSubscriptionType: { + "0": 'ALTER_SUBSCRIPTION_OPTIONS', + "1": 'ALTER_SUBSCRIPTION_CONNECTION', + "2": 'ALTER_SUBSCRIPTION_SET_PUBLICATION', + "3": 'ALTER_SUBSCRIPTION_ADD_PUBLICATION', + "4": 'ALTER_SUBSCRIPTION_DROP_PUBLICATION', + "5": 'ALTER_SUBSCRIPTION_REFRESH', + "6": 'ALTER_SUBSCRIPTION_ENABLED', + "7": 'ALTER_SUBSCRIPTION_SKIP' + }, + OnCommitAction: { + "0": 'ONCOMMIT_NOOP', + "1": 'ONCOMMIT_PRESERVE_ROWS', + "2": 'ONCOMMIT_DELETE_ROWS', + "3": 'ONCOMMIT_DROP' + }, + ParamKind: { + "0": 'PARAM_EXTERN', + "1": 'PARAM_EXEC', + "2": 'PARAM_SUBLINK', + "3": 'PARAM_MULTIEXPR' + }, + CoercionContext: { + "0": 'COERCION_IMPLICIT', + "1": 'COERCION_ASSIGNMENT', + "2": 'COERCION_PLPGSQL', + "3": 'COERCION_EXPLICIT' + }, + CoercionForm: { + "0": 'COERCE_EXPLICIT_CALL', + "1": 'COERCE_EXPLICIT_CAST', + "2": 'COERCE_IMPLICIT_CAST', + "3": 'COERCE_SQL_SYNTAX' + }, + BoolExprType: { + "0": 'AND_EXPR', + "1": 'OR_EXPR', + "2": 'NOT_EXPR' + }, + SubLinkType: { + "0": 'EXISTS_SUBLINK', + "1": 'ALL_SUBLINK', + "2": 'ANY_SUBLINK', + "3": 'ROWCOMPARE_SUBLINK', + "4": 'EXPR_SUBLINK', + "5": 'MULTIEXPR_SUBLINK', + "6": 'ARRAY_SUBLINK', + "7": 'CTE_SUBLINK' + }, + RowCompareType: { + "0": 'ROWCOMPARE_LT', + "1": 'ROWCOMPARE_LE', + "2": 'ROWCOMPARE_EQ', + "3": 'ROWCOMPARE_GE', + "4": 'ROWCOMPARE_GT', + "5": 'ROWCOMPARE_NE' + }, + MinMaxOp: { + "0": 'IS_GREATEST', + "1": 'IS_LEAST' + }, + SQLValueFunctionOp: { + "0": 'SVFOP_CURRENT_DATE', + "1": 'SVFOP_CURRENT_TIME', + "2": 'SVFOP_CURRENT_TIME_N', + "3": 'SVFOP_CURRENT_TIMESTAMP', + "4": 'SVFOP_CURRENT_TIMESTAMP_N', + "5": 'SVFOP_LOCALTIME', + "6": 'SVFOP_LOCALTIME_N', + "7": 'SVFOP_LOCALTIMESTAMP', + "8": 'SVFOP_LOCALTIMESTAMP_N', + "9": 'SVFOP_CURRENT_ROLE', + "10": 'SVFOP_CURRENT_USER', + "11": 'SVFOP_USER', + "12": 'SVFOP_SESSION_USER', + "13": 'SVFOP_CURRENT_CATALOG', + "14": 'SVFOP_CURRENT_SCHEMA' + }, + XmlExprOp: { + "0": 'IS_XMLCONCAT', + "1": 'IS_XMLELEMENT', + "2": 'IS_XMLFOREST', + "3": 'IS_XMLPARSE', + "4": 'IS_XMLPI', + "5": 'IS_XMLROOT', + "6": 'IS_XMLSERIALIZE', + "7": 'IS_DOCUMENT' + }, + XmlOptionType: { + "0": 'XMLOPTION_DOCUMENT', + "1": 'XMLOPTION_CONTENT' + }, + JsonEncoding: { + "0": 'JS_ENC_DEFAULT', + "1": 'JS_ENC_UTF8', + "2": 'JS_ENC_UTF16', + "3": 'JS_ENC_UTF32' + }, + JsonFormatType: { + "0": 'JS_FORMAT_DEFAULT', + "1": 'JS_FORMAT_JSON', + "2": 'JS_FORMAT_JSONB' + }, + JsonConstructorType: { + "0": 'JSCTOR_JSON_OBJECT', + "1": 'JSCTOR_JSON_ARRAY', + "2": 'JSCTOR_JSON_OBJECTAGG', + "3": 'JSCTOR_JSON_ARRAYAGG' + }, + JsonValueType: { + "0": 'JS_TYPE_ANY', + "1": 'JS_TYPE_OBJECT', + "2": 'JS_TYPE_ARRAY', + "3": 'JS_TYPE_SCALAR' + }, + NullTestType: { + "0": 'IS_NULL', + "1": 'IS_NOT_NULL' + }, + BoolTestType: { + "0": 'IS_TRUE', + "1": 'IS_NOT_TRUE', + "2": 'IS_FALSE', + "3": 'IS_NOT_FALSE', + "4": 'IS_UNKNOWN', + "5": 'IS_NOT_UNKNOWN' + }, + CmdType: { + "0": 'CMD_UNKNOWN', + "1": 'CMD_SELECT', + "2": 'CMD_UPDATE', + "3": 'CMD_INSERT', + "4": 'CMD_DELETE', + "5": 'CMD_MERGE', + "6": 'CMD_UTILITY', + "7": 'CMD_NOTHING' + }, + JoinType: { + "0": 'JOIN_INNER', + "1": 'JOIN_LEFT', + "2": 'JOIN_FULL', + "3": 'JOIN_RIGHT', + "4": 'JOIN_SEMI', + "5": 'JOIN_ANTI', + "6": 'JOIN_RIGHT_ANTI', + "7": 'JOIN_UNIQUE_OUTER', + "8": 'JOIN_UNIQUE_INNER' + }, + AggStrategy: { + "0": 'AGG_PLAIN', + "1": 'AGG_SORTED', + "2": 'AGG_HASHED', + "3": 'AGG_MIXED' + }, + AggSplit: { + "0": 'AGGSPLIT_SIMPLE', + "1": 'AGGSPLIT_INITIAL_SERIAL', + "2": 'AGGSPLIT_FINAL_DESERIAL' + }, + SetOpCmd: { + "0": 'SETOPCMD_INTERSECT', + "1": 'SETOPCMD_INTERSECT_ALL', + "2": 'SETOPCMD_EXCEPT', + "3": 'SETOPCMD_EXCEPT_ALL' + }, + SetOpStrategy: { + "0": 'SETOP_SORTED', + "1": 'SETOP_HASHED' + }, + OnConflictAction: { + "0": 'ONCONFLICT_NONE', + "1": 'ONCONFLICT_NOTHING', + "2": 'ONCONFLICT_UPDATE' + }, + LimitOption: { + "0": 'LIMIT_OPTION_DEFAULT', + "1": 'LIMIT_OPTION_COUNT', + "2": 'LIMIT_OPTION_WITH_TIES' + }, + LockClauseStrength: { + "0": 'LCS_NONE', + "1": 'LCS_FORKEYSHARE', + "2": 'LCS_FORSHARE', + "3": 'LCS_FORNOKEYUPDATE', + "4": 'LCS_FORUPDATE' + }, + LockWaitPolicy: { + "0": 'LockWaitBlock', + "1": 'LockWaitSkip', + "2": 'LockWaitError' + }, + LockTupleMode: { + "0": 'LockTupleKeyShare', + "1": 'LockTupleShare', + "2": 'LockTupleNoKeyExclusive', + "3": 'LockTupleExclusive' + }, + KeywordKind: { + "0": 'NO_KEYWORD', + "1": 'UNRESERVED_KEYWORD', + "2": 'COL_NAME_KEYWORD', + "3": 'TYPE_FUNC_NAME_KEYWORD', + "4": 'RESERVED_KEYWORD' + }, + Token: { + "0": 'NUL', + "36": 'ASCII_36', + "37": 'ASCII_37', + "40": 'ASCII_40', + "41": 'ASCII_41', + "42": 'ASCII_42', + "43": 'ASCII_43', + "44": 'ASCII_44', + "45": 'ASCII_45', + "46": 'ASCII_46', + "47": 'ASCII_47', + "58": 'ASCII_58', + "59": 'ASCII_59', + "60": 'ASCII_60', + "61": 'ASCII_61', + "62": 'ASCII_62', + "63": 'ASCII_63', + "91": 'ASCII_91', + "92": 'ASCII_92', + "93": 'ASCII_93', + "94": 'ASCII_94', + "258": 'IDENT', + "259": 'UIDENT', + "260": 'FCONST', + "261": 'SCONST', + "262": 'USCONST', + "263": 'BCONST', + "264": 'XCONST', + "265": 'Op', + "266": 'ICONST', + "267": 'PARAM', + "268": 'TYPECAST', + "269": 'DOT_DOT', + "270": 'COLON_EQUALS', + "271": 'EQUALS_GREATER', + "272": 'LESS_EQUALS', + "273": 'GREATER_EQUALS', + "274": 'NOT_EQUALS', + "275": 'SQL_COMMENT', + "276": 'C_COMMENT', + "277": 'ABORT_P', + "278": 'ABSENT', + "279": 'ABSOLUTE_P', + "280": 'ACCESS', + "281": 'ACTION', + "282": 'ADD_P', + "283": 'ADMIN', + "284": 'AFTER', + "285": 'AGGREGATE', + "286": 'ALL', + "287": 'ALSO', + "288": 'ALTER', + "289": 'ALWAYS', + "290": 'ANALYSE', + "291": 'ANALYZE', + "292": 'AND', + "293": 'ANY', + "294": 'ARRAY', + "295": 'AS', + "296": 'ASC', + "297": 'ASENSITIVE', + "298": 'ASSERTION', + "299": 'ASSIGNMENT', + "300": 'ASYMMETRIC', + "301": 'ATOMIC', + "302": 'AT', + "303": 'ATTACH', + "304": 'ATTRIBUTE', + "305": 'AUTHORIZATION', + "306": 'BACKWARD', + "307": 'BEFORE', + "308": 'BEGIN_P', + "309": 'BETWEEN', + "310": 'BIGINT', + "311": 'BINARY', + "312": 'BIT', + "313": 'BOOLEAN_P', + "314": 'BOTH', + "315": 'BREADTH', + "316": 'BY', + "317": 'CACHE', + "318": 'CALL', + "319": 'CALLED', + "320": 'CASCADE', + "321": 'CASCADED', + "322": 'CASE', + "323": 'CAST', + "324": 'CATALOG_P', + "325": 'CHAIN', + "326": 'CHAR_P', + "327": 'CHARACTER', + "328": 'CHARACTERISTICS', + "329": 'CHECK', + "330": 'CHECKPOINT', + "331": 'CLASS', + "332": 'CLOSE', + "333": 'CLUSTER', + "334": 'COALESCE', + "335": 'COLLATE', + "336": 'COLLATION', + "337": 'COLUMN', + "338": 'COLUMNS', + "339": 'COMMENT', + "340": 'COMMENTS', + "341": 'COMMIT', + "342": 'COMMITTED', + "343": 'COMPRESSION', + "344": 'CONCURRENTLY', + "345": 'CONFIGURATION', + "346": 'CONFLICT', + "347": 'CONNECTION', + "348": 'CONSTRAINT', + "349": 'CONSTRAINTS', + "350": 'CONTENT_P', + "351": 'CONTINUE_P', + "352": 'CONVERSION_P', + "353": 'COPY', + "354": 'COST', + "355": 'CREATE', + "356": 'CROSS', + "357": 'CSV', + "358": 'CUBE', + "359": 'CURRENT_P', + "360": 'CURRENT_CATALOG', + "361": 'CURRENT_DATE', + "362": 'CURRENT_ROLE', + "363": 'CURRENT_SCHEMA', + "364": 'CURRENT_TIME', + "365": 'CURRENT_TIMESTAMP', + "366": 'CURRENT_USER', + "367": 'CURSOR', + "368": 'CYCLE', + "369": 'DATA_P', + "370": 'DATABASE', + "371": 'DAY_P', + "372": 'DEALLOCATE', + "373": 'DEC', + "374": 'DECIMAL_P', + "375": 'DECLARE', + "376": 'DEFAULT', + "377": 'DEFAULTS', + "378": 'DEFERRABLE', + "379": 'DEFERRED', + "380": 'DEFINER', + "381": 'DELETE_P', + "382": 'DELIMITER', + "383": 'DELIMITERS', + "384": 'DEPENDS', + "385": 'DEPTH', + "386": 'DESC', + "387": 'DETACH', + "388": 'DICTIONARY', + "389": 'DISABLE_P', + "390": 'DISCARD', + "391": 'DISTINCT', + "392": 'DO', + "393": 'DOCUMENT_P', + "394": 'DOMAIN_P', + "395": 'DOUBLE_P', + "396": 'DROP', + "397": 'EACH', + "398": 'ELSE', + "399": 'ENABLE_P', + "400": 'ENCODING', + "401": 'ENCRYPTED', + "402": 'END_P', + "403": 'ENUM_P', + "404": 'ESCAPE', + "405": 'EVENT', + "406": 'EXCEPT', + "407": 'EXCLUDE', + "408": 'EXCLUDING', + "409": 'EXCLUSIVE', + "410": 'EXECUTE', + "411": 'EXISTS', + "412": 'EXPLAIN', + "413": 'EXPRESSION', + "414": 'EXTENSION', + "415": 'EXTERNAL', + "416": 'EXTRACT', + "417": 'FALSE_P', + "418": 'FAMILY', + "419": 'FETCH', + "420": 'FILTER', + "421": 'FINALIZE', + "422": 'FIRST_P', + "423": 'FLOAT_P', + "424": 'FOLLOWING', + "425": 'FOR', + "426": 'FORCE', + "427": 'FOREIGN', + "428": 'FORMAT', + "429": 'FORWARD', + "430": 'FREEZE', + "431": 'FROM', + "432": 'FULL', + "433": 'FUNCTION', + "434": 'FUNCTIONS', + "435": 'GENERATED', + "436": 'GLOBAL', + "437": 'GRANT', + "438": 'GRANTED', + "439": 'GREATEST', + "440": 'GROUP_P', + "441": 'GROUPING', + "442": 'GROUPS', + "443": 'HANDLER', + "444": 'HAVING', + "445": 'HEADER_P', + "446": 'HOLD', + "447": 'HOUR_P', + "448": 'IDENTITY_P', + "449": 'IF_P', + "450": 'ILIKE', + "451": 'IMMEDIATE', + "452": 'IMMUTABLE', + "453": 'IMPLICIT_P', + "454": 'IMPORT_P', + "455": 'IN_P', + "456": 'INCLUDE', + "457": 'INCLUDING', + "458": 'INCREMENT', + "459": 'INDENT', + "460": 'INDEX', + "461": 'INDEXES', + "462": 'INHERIT', + "463": 'INHERITS', + "464": 'INITIALLY', + "465": 'INLINE_P', + "466": 'INNER_P', + "467": 'INOUT', + "468": 'INPUT_P', + "469": 'INSENSITIVE', + "470": 'INSERT', + "471": 'INSTEAD', + "472": 'INT_P', + "473": 'INTEGER', + "474": 'INTERSECT', + "475": 'INTERVAL', + "476": 'INTO', + "477": 'INVOKER', + "478": 'IS', + "479": 'ISNULL', + "480": 'ISOLATION', + "481": 'JOIN', + "482": 'JSON', + "483": 'JSON_ARRAY', + "484": 'JSON_ARRAYAGG', + "485": 'JSON_OBJECT', + "486": 'JSON_OBJECTAGG', + "487": 'KEY', + "488": 'KEYS', + "489": 'LABEL', + "490": 'LANGUAGE', + "491": 'LARGE_P', + "492": 'LAST_P', + "493": 'LATERAL_P', + "494": 'LEADING', + "495": 'LEAKPROOF', + "496": 'LEAST', + "497": 'LEFT', + "498": 'LEVEL', + "499": 'LIKE', + "500": 'LIMIT', + "501": 'LISTEN', + "502": 'LOAD', + "503": 'LOCAL', + "504": 'LOCALTIME', + "505": 'LOCALTIMESTAMP', + "506": 'LOCATION', + "507": 'LOCK_P', + "508": 'LOCKED', + "509": 'LOGGED', + "510": 'MAPPING', + "511": 'MATCH', + "512": 'MATCHED', + "513": 'MATERIALIZED', + "514": 'MAXVALUE', + "515": 'MERGE', + "516": 'METHOD', + "517": 'MINUTE_P', + "518": 'MINVALUE', + "519": 'MODE', + "520": 'MONTH_P', + "521": 'MOVE', + "522": 'NAME_P', + "523": 'NAMES', + "524": 'NATIONAL', + "525": 'NATURAL', + "526": 'NCHAR', + "527": 'NEW', + "528": 'NEXT', + "529": 'NFC', + "530": 'NFD', + "531": 'NFKC', + "532": 'NFKD', + "533": 'NO', + "534": 'NONE', + "535": 'NORMALIZE', + "536": 'NORMALIZED', + "537": 'NOT', + "538": 'NOTHING', + "539": 'NOTIFY', + "540": 'NOTNULL', + "541": 'NOWAIT', + "542": 'NULL_P', + "543": 'NULLIF', + "544": 'NULLS_P', + "545": 'NUMERIC', + "546": 'OBJECT_P', + "547": 'OF', + "548": 'OFF', + "549": 'OFFSET', + "550": 'OIDS', + "551": 'OLD', + "552": 'ON', + "553": 'ONLY', + "554": 'OPERATOR', + "555": 'OPTION', + "556": 'OPTIONS', + "557": 'OR', + "558": 'ORDER', + "559": 'ORDINALITY', + "560": 'OTHERS', + "561": 'OUT_P', + "562": 'OUTER_P', + "563": 'OVER', + "564": 'OVERLAPS', + "565": 'OVERLAY', + "566": 'OVERRIDING', + "567": 'OWNED', + "568": 'OWNER', + "569": 'PARALLEL', + "570": 'PARAMETER', + "571": 'PARSER', + "572": 'PARTIAL', + "573": 'PARTITION', + "574": 'PASSING', + "575": 'PASSWORD', + "576": 'PLACING', + "577": 'PLANS', + "578": 'POLICY', + "579": 'POSITION', + "580": 'PRECEDING', + "581": 'PRECISION', + "582": 'PRESERVE', + "583": 'PREPARE', + "584": 'PREPARED', + "585": 'PRIMARY', + "586": 'PRIOR', + "587": 'PRIVILEGES', + "588": 'PROCEDURAL', + "589": 'PROCEDURE', + "590": 'PROCEDURES', + "591": 'PROGRAM', + "592": 'PUBLICATION', + "593": 'QUOTE', + "594": 'RANGE', + "595": 'READ', + "596": 'REAL', + "597": 'REASSIGN', + "598": 'RECHECK', + "599": 'RECURSIVE', + "600": 'REF_P', + "601": 'REFERENCES', + "602": 'REFERENCING', + "603": 'REFRESH', + "604": 'REINDEX', + "605": 'RELATIVE_P', + "606": 'RELEASE', + "607": 'RENAME', + "608": 'REPEATABLE', + "609": 'REPLACE', + "610": 'REPLICA', + "611": 'RESET', + "612": 'RESTART', + "613": 'RESTRICT', + "614": 'RETURN', + "615": 'RETURNING', + "616": 'RETURNS', + "617": 'REVOKE', + "618": 'RIGHT', + "619": 'ROLE', + "620": 'ROLLBACK', + "621": 'ROLLUP', + "622": 'ROUTINE', + "623": 'ROUTINES', + "624": 'ROW', + "625": 'ROWS', + "626": 'RULE', + "627": 'SAVEPOINT', + "628": 'SCALAR', + "629": 'SCHEMA', + "630": 'SCHEMAS', + "631": 'SCROLL', + "632": 'SEARCH', + "633": 'SECOND_P', + "634": 'SECURITY', + "635": 'SELECT', + "636": 'SEQUENCE', + "637": 'SEQUENCES', + "638": 'SERIALIZABLE', + "639": 'SERVER', + "640": 'SESSION', + "641": 'SESSION_USER', + "642": 'SET', + "643": 'SETS', + "644": 'SETOF', + "645": 'SHARE', + "646": 'SHOW', + "647": 'SIMILAR', + "648": 'SIMPLE', + "649": 'SKIP', + "650": 'SMALLINT', + "651": 'SNAPSHOT', + "652": 'SOME', + "653": 'SQL_P', + "654": 'STABLE', + "655": 'STANDALONE_P', + "656": 'START', + "657": 'STATEMENT', + "658": 'STATISTICS', + "659": 'STDIN', + "660": 'STDOUT', + "661": 'STORAGE', + "662": 'STORED', + "663": 'STRICT_P', + "664": 'STRIP_P', + "665": 'SUBSCRIPTION', + "666": 'SUBSTRING', + "667": 'SUPPORT', + "668": 'SYMMETRIC', + "669": 'SYSID', + "670": 'SYSTEM_P', + "671": 'SYSTEM_USER', + "672": 'TABLE', + "673": 'TABLES', + "674": 'TABLESAMPLE', + "675": 'TABLESPACE', + "676": 'TEMP', + "677": 'TEMPLATE', + "678": 'TEMPORARY', + "679": 'TEXT_P', + "680": 'THEN', + "681": 'TIES', + "682": 'TIME', + "683": 'TIMESTAMP', + "684": 'TO', + "685": 'TRAILING', + "686": 'TRANSACTION', + "687": 'TRANSFORM', + "688": 'TREAT', + "689": 'TRIGGER', + "690": 'TRIM', + "691": 'TRUE_P', + "692": 'TRUNCATE', + "693": 'TRUSTED', + "694": 'TYPE_P', + "695": 'TYPES_P', + "696": 'UESCAPE', + "697": 'UNBOUNDED', + "698": 'UNCOMMITTED', + "699": 'UNENCRYPTED', + "700": 'UNION', + "701": 'UNIQUE', + "702": 'UNKNOWN', + "703": 'UNLISTEN', + "704": 'UNLOGGED', + "705": 'UNTIL', + "706": 'UPDATE', + "707": 'USER', + "708": 'USING', + "709": 'VACUUM', + "710": 'VALID', + "711": 'VALIDATE', + "712": 'VALIDATOR', + "713": 'VALUE_P', + "714": 'VALUES', + "715": 'VARCHAR', + "716": 'VARIADIC', + "717": 'VARYING', + "718": 'VERBOSE', + "719": 'VERSION_P', + "720": 'VIEW', + "721": 'VIEWS', + "722": 'VOLATILE', + "723": 'WHEN', + "724": 'WHERE', + "725": 'WHITESPACE_P', + "726": 'WINDOW', + "727": 'WITH', + "728": 'WITHIN', + "729": 'WITHOUT', + "730": 'WORK', + "731": 'WRAPPER', + "732": 'WRITE', + "733": 'XML_P', + "734": 'XMLATTRIBUTES', + "735": 'XMLCONCAT', + "736": 'XMLELEMENT', + "737": 'XMLEXISTS', + "738": 'XMLFOREST', + "739": 'XMLNAMESPACES', + "740": 'XMLPARSE', + "741": 'XMLPI', + "742": 'XMLROOT', + "743": 'XMLSERIALIZE', + "744": 'XMLTABLE', + "745": 'YEAR_P', + "746": 'YES_P', + "747": 'ZONE', + "748": 'FORMAT_LA', + "749": 'NOT_LA', + "750": 'NULLS_LA', + "751": 'WITH_LA', + "752": 'WITHOUT_LA', + "753": 'MODE_TYPE_NAME', + "754": 'MODE_PLPGSQL_EXPR', + "755": 'MODE_PLPGSQL_ASSIGN1', + "756": 'MODE_PLPGSQL_ASSIGN2', + "757": 'MODE_PLPGSQL_ASSIGN3', + "758": 'UMINUS' + } +}; +export type EnumToStrMap = typeof enumToStrMap;", + "file": "enums2str.ts", + }, + { + "code": "/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type OverridingKind = "OVERRIDING_NOT_SET" | "OVERRIDING_USER_VALUE" | "OVERRIDING_SYSTEM_VALUE"; +export type QuerySource = "QSRC_ORIGINAL" | "QSRC_PARSER" | "QSRC_INSTEAD_RULE" | "QSRC_QUAL_INSTEAD_RULE" | "QSRC_NON_INSTEAD_RULE"; +export type SortByDir = "SORTBY_DEFAULT" | "SORTBY_ASC" | "SORTBY_DESC" | "SORTBY_USING"; +export type SortByNulls = "SORTBY_NULLS_DEFAULT" | "SORTBY_NULLS_FIRST" | "SORTBY_NULLS_LAST"; +export type SetQuantifier = "SET_QUANTIFIER_DEFAULT" | "SET_QUANTIFIER_ALL" | "SET_QUANTIFIER_DISTINCT"; +export type A_Expr_Kind = "AEXPR_OP" | "AEXPR_OP_ANY" | "AEXPR_OP_ALL" | "AEXPR_DISTINCT" | "AEXPR_NOT_DISTINCT" | "AEXPR_NULLIF" | "AEXPR_IN" | "AEXPR_LIKE" | "AEXPR_ILIKE" | "AEXPR_SIMILAR" | "AEXPR_BETWEEN" | "AEXPR_NOT_BETWEEN" | "AEXPR_BETWEEN_SYM" | "AEXPR_NOT_BETWEEN_SYM"; +export type RoleSpecType = "ROLESPEC_CSTRING" | "ROLESPEC_CURRENT_ROLE" | "ROLESPEC_CURRENT_USER" | "ROLESPEC_SESSION_USER" | "ROLESPEC_PUBLIC"; +export type TableLikeOption = "CREATE_TABLE_LIKE_COMMENTS" | "CREATE_TABLE_LIKE_COMPRESSION" | "CREATE_TABLE_LIKE_CONSTRAINTS" | "CREATE_TABLE_LIKE_DEFAULTS" | "CREATE_TABLE_LIKE_GENERATED" | "CREATE_TABLE_LIKE_IDENTITY" | "CREATE_TABLE_LIKE_INDEXES" | "CREATE_TABLE_LIKE_STATISTICS" | "CREATE_TABLE_LIKE_STORAGE" | "CREATE_TABLE_LIKE_ALL"; +export type DefElemAction = "DEFELEM_UNSPEC" | "DEFELEM_SET" | "DEFELEM_ADD" | "DEFELEM_DROP"; +export type PartitionStrategy = "PARTITION_STRATEGY_LIST" | "PARTITION_STRATEGY_RANGE" | "PARTITION_STRATEGY_HASH"; +export type PartitionRangeDatumKind = "PARTITION_RANGE_DATUM_MINVALUE" | "PARTITION_RANGE_DATUM_VALUE" | "PARTITION_RANGE_DATUM_MAXVALUE"; +export type RTEKind = "RTE_RELATION" | "RTE_SUBQUERY" | "RTE_JOIN" | "RTE_FUNCTION" | "RTE_TABLEFUNC" | "RTE_VALUES" | "RTE_CTE" | "RTE_NAMEDTUPLESTORE" | "RTE_RESULT"; +export type WCOKind = "WCO_VIEW_CHECK" | "WCO_RLS_INSERT_CHECK" | "WCO_RLS_UPDATE_CHECK" | "WCO_RLS_CONFLICT_CHECK" | "WCO_RLS_MERGE_UPDATE_CHECK" | "WCO_RLS_MERGE_DELETE_CHECK"; +export type GroupingSetKind = "GROUPING_SET_EMPTY" | "GROUPING_SET_SIMPLE" | "GROUPING_SET_ROLLUP" | "GROUPING_SET_CUBE" | "GROUPING_SET_SETS"; +export type CTEMaterialize = "CTEMaterializeDefault" | "CTEMaterializeAlways" | "CTEMaterializeNever"; +export type SetOperation = "SETOP_NONE" | "SETOP_UNION" | "SETOP_INTERSECT" | "SETOP_EXCEPT"; +export type ObjectType = "OBJECT_ACCESS_METHOD" | "OBJECT_AGGREGATE" | "OBJECT_AMOP" | "OBJECT_AMPROC" | "OBJECT_ATTRIBUTE" | "OBJECT_CAST" | "OBJECT_COLUMN" | "OBJECT_COLLATION" | "OBJECT_CONVERSION" | "OBJECT_DATABASE" | "OBJECT_DEFAULT" | "OBJECT_DEFACL" | "OBJECT_DOMAIN" | "OBJECT_DOMCONSTRAINT" | "OBJECT_EVENT_TRIGGER" | "OBJECT_EXTENSION" | "OBJECT_FDW" | "OBJECT_FOREIGN_SERVER" | "OBJECT_FOREIGN_TABLE" | "OBJECT_FUNCTION" | "OBJECT_INDEX" | "OBJECT_LANGUAGE" | "OBJECT_LARGEOBJECT" | "OBJECT_MATVIEW" | "OBJECT_OPCLASS" | "OBJECT_OPERATOR" | "OBJECT_OPFAMILY" | "OBJECT_PARAMETER_ACL" | "OBJECT_POLICY" | "OBJECT_PROCEDURE" | "OBJECT_PUBLICATION" | "OBJECT_PUBLICATION_NAMESPACE" | "OBJECT_PUBLICATION_REL" | "OBJECT_ROLE" | "OBJECT_ROUTINE" | "OBJECT_RULE" | "OBJECT_SCHEMA" | "OBJECT_SEQUENCE" | "OBJECT_SUBSCRIPTION" | "OBJECT_STATISTIC_EXT" | "OBJECT_TABCONSTRAINT" | "OBJECT_TABLE" | "OBJECT_TABLESPACE" | "OBJECT_TRANSFORM" | "OBJECT_TRIGGER" | "OBJECT_TSCONFIGURATION" | "OBJECT_TSDICTIONARY" | "OBJECT_TSPARSER" | "OBJECT_TSTEMPLATE" | "OBJECT_TYPE" | "OBJECT_USER_MAPPING" | "OBJECT_VIEW"; +export type DropBehavior = "DROP_RESTRICT" | "DROP_CASCADE"; +export type AlterTableType = "AT_AddColumn" | "AT_AddColumnToView" | "AT_ColumnDefault" | "AT_CookedColumnDefault" | "AT_DropNotNull" | "AT_SetNotNull" | "AT_DropExpression" | "AT_CheckNotNull" | "AT_SetStatistics" | "AT_SetOptions" | "AT_ResetOptions" | "AT_SetStorage" | "AT_SetCompression" | "AT_DropColumn" | "AT_AddIndex" | "AT_ReAddIndex" | "AT_AddConstraint" | "AT_ReAddConstraint" | "AT_ReAddDomainConstraint" | "AT_AlterConstraint" | "AT_ValidateConstraint" | "AT_AddIndexConstraint" | "AT_DropConstraint" | "AT_ReAddComment" | "AT_AlterColumnType" | "AT_AlterColumnGenericOptions" | "AT_ChangeOwner" | "AT_ClusterOn" | "AT_DropCluster" | "AT_SetLogged" | "AT_SetUnLogged" | "AT_DropOids" | "AT_SetAccessMethod" | "AT_SetTableSpace" | "AT_SetRelOptions" | "AT_ResetRelOptions" | "AT_ReplaceRelOptions" | "AT_EnableTrig" | "AT_EnableAlwaysTrig" | "AT_EnableReplicaTrig" | "AT_DisableTrig" | "AT_EnableTrigAll" | "AT_DisableTrigAll" | "AT_EnableTrigUser" | "AT_DisableTrigUser" | "AT_EnableRule" | "AT_EnableAlwaysRule" | "AT_EnableReplicaRule" | "AT_DisableRule" | "AT_AddInherit" | "AT_DropInherit" | "AT_AddOf" | "AT_DropOf" | "AT_ReplicaIdentity" | "AT_EnableRowSecurity" | "AT_DisableRowSecurity" | "AT_ForceRowSecurity" | "AT_NoForceRowSecurity" | "AT_GenericOptions" | "AT_AttachPartition" | "AT_DetachPartition" | "AT_DetachPartitionFinalize" | "AT_AddIdentity" | "AT_SetIdentity" | "AT_DropIdentity" | "AT_ReAddStatistics"; +export type GrantTargetType = "ACL_TARGET_OBJECT" | "ACL_TARGET_ALL_IN_SCHEMA" | "ACL_TARGET_DEFAULTS"; +export type VariableSetKind = "VAR_SET_VALUE" | "VAR_SET_DEFAULT" | "VAR_SET_CURRENT" | "VAR_SET_MULTI" | "VAR_RESET" | "VAR_RESET_ALL"; +export type ConstrType = "CONSTR_NULL" | "CONSTR_NOTNULL" | "CONSTR_DEFAULT" | "CONSTR_IDENTITY" | "CONSTR_GENERATED" | "CONSTR_CHECK" | "CONSTR_PRIMARY" | "CONSTR_UNIQUE" | "CONSTR_EXCLUSION" | "CONSTR_FOREIGN" | "CONSTR_ATTR_DEFERRABLE" | "CONSTR_ATTR_NOT_DEFERRABLE" | "CONSTR_ATTR_DEFERRED" | "CONSTR_ATTR_IMMEDIATE"; +export type ImportForeignSchemaType = "FDW_IMPORT_SCHEMA_ALL" | "FDW_IMPORT_SCHEMA_LIMIT_TO" | "FDW_IMPORT_SCHEMA_EXCEPT"; +export type RoleStmtType = "ROLESTMT_ROLE" | "ROLESTMT_USER" | "ROLESTMT_GROUP"; +export type FetchDirection = "FETCH_FORWARD" | "FETCH_BACKWARD" | "FETCH_ABSOLUTE" | "FETCH_RELATIVE"; +export type FunctionParameterMode = "FUNC_PARAM_IN" | "FUNC_PARAM_OUT" | "FUNC_PARAM_INOUT" | "FUNC_PARAM_VARIADIC" | "FUNC_PARAM_TABLE" | "FUNC_PARAM_DEFAULT"; +export type TransactionStmtKind = "TRANS_STMT_BEGIN" | "TRANS_STMT_START" | "TRANS_STMT_COMMIT" | "TRANS_STMT_ROLLBACK" | "TRANS_STMT_SAVEPOINT" | "TRANS_STMT_RELEASE" | "TRANS_STMT_ROLLBACK_TO" | "TRANS_STMT_PREPARE" | "TRANS_STMT_COMMIT_PREPARED" | "TRANS_STMT_ROLLBACK_PREPARED"; +export type ViewCheckOption = "NO_CHECK_OPTION" | "LOCAL_CHECK_OPTION" | "CASCADED_CHECK_OPTION"; +export type DiscardMode = "DISCARD_ALL" | "DISCARD_PLANS" | "DISCARD_SEQUENCES" | "DISCARD_TEMP"; +export type ReindexObjectType = "REINDEX_OBJECT_INDEX" | "REINDEX_OBJECT_TABLE" | "REINDEX_OBJECT_SCHEMA" | "REINDEX_OBJECT_SYSTEM" | "REINDEX_OBJECT_DATABASE"; +export type AlterTSConfigType = "ALTER_TSCONFIG_ADD_MAPPING" | "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN" | "ALTER_TSCONFIG_REPLACE_DICT" | "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN" | "ALTER_TSCONFIG_DROP_MAPPING"; +export type PublicationObjSpecType = "PUBLICATIONOBJ_TABLE" | "PUBLICATIONOBJ_TABLES_IN_SCHEMA" | "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA" | "PUBLICATIONOBJ_CONTINUATION"; +export type AlterPublicationAction = "AP_AddObjects" | "AP_DropObjects" | "AP_SetObjects"; +export type AlterSubscriptionType = "ALTER_SUBSCRIPTION_OPTIONS" | "ALTER_SUBSCRIPTION_CONNECTION" | "ALTER_SUBSCRIPTION_SET_PUBLICATION" | "ALTER_SUBSCRIPTION_ADD_PUBLICATION" | "ALTER_SUBSCRIPTION_DROP_PUBLICATION" | "ALTER_SUBSCRIPTION_REFRESH" | "ALTER_SUBSCRIPTION_ENABLED" | "ALTER_SUBSCRIPTION_SKIP"; +export type OnCommitAction = "ONCOMMIT_NOOP" | "ONCOMMIT_PRESERVE_ROWS" | "ONCOMMIT_DELETE_ROWS" | "ONCOMMIT_DROP"; +export type ParamKind = "PARAM_EXTERN" | "PARAM_EXEC" | "PARAM_SUBLINK" | "PARAM_MULTIEXPR"; +export type CoercionContext = "COERCION_IMPLICIT" | "COERCION_ASSIGNMENT" | "COERCION_PLPGSQL" | "COERCION_EXPLICIT"; +export type CoercionForm = "COERCE_EXPLICIT_CALL" | "COERCE_EXPLICIT_CAST" | "COERCE_IMPLICIT_CAST" | "COERCE_SQL_SYNTAX"; +export type BoolExprType = "AND_EXPR" | "OR_EXPR" | "NOT_EXPR"; +export type SubLinkType = "EXISTS_SUBLINK" | "ALL_SUBLINK" | "ANY_SUBLINK" | "ROWCOMPARE_SUBLINK" | "EXPR_SUBLINK" | "MULTIEXPR_SUBLINK" | "ARRAY_SUBLINK" | "CTE_SUBLINK"; +export type RowCompareType = "ROWCOMPARE_LT" | "ROWCOMPARE_LE" | "ROWCOMPARE_EQ" | "ROWCOMPARE_GE" | "ROWCOMPARE_GT" | "ROWCOMPARE_NE"; +export type MinMaxOp = "IS_GREATEST" | "IS_LEAST"; +export type SQLValueFunctionOp = "SVFOP_CURRENT_DATE" | "SVFOP_CURRENT_TIME" | "SVFOP_CURRENT_TIME_N" | "SVFOP_CURRENT_TIMESTAMP" | "SVFOP_CURRENT_TIMESTAMP_N" | "SVFOP_LOCALTIME" | "SVFOP_LOCALTIME_N" | "SVFOP_LOCALTIMESTAMP" | "SVFOP_LOCALTIMESTAMP_N" | "SVFOP_CURRENT_ROLE" | "SVFOP_CURRENT_USER" | "SVFOP_USER" | "SVFOP_SESSION_USER" | "SVFOP_CURRENT_CATALOG" | "SVFOP_CURRENT_SCHEMA"; +export type XmlExprOp = "IS_XMLCONCAT" | "IS_XMLELEMENT" | "IS_XMLFOREST" | "IS_XMLPARSE" | "IS_XMLPI" | "IS_XMLROOT" | "IS_XMLSERIALIZE" | "IS_DOCUMENT"; +export type XmlOptionType = "XMLOPTION_DOCUMENT" | "XMLOPTION_CONTENT"; +export type JsonEncoding = "JS_ENC_DEFAULT" | "JS_ENC_UTF8" | "JS_ENC_UTF16" | "JS_ENC_UTF32"; +export type JsonFormatType = "JS_FORMAT_DEFAULT" | "JS_FORMAT_JSON" | "JS_FORMAT_JSONB"; +export type JsonConstructorType = "JSCTOR_JSON_OBJECT" | "JSCTOR_JSON_ARRAY" | "JSCTOR_JSON_OBJECTAGG" | "JSCTOR_JSON_ARRAYAGG"; +export type JsonValueType = "JS_TYPE_ANY" | "JS_TYPE_OBJECT" | "JS_TYPE_ARRAY" | "JS_TYPE_SCALAR"; +export type NullTestType = "IS_NULL" | "IS_NOT_NULL"; +export type BoolTestType = "IS_TRUE" | "IS_NOT_TRUE" | "IS_FALSE" | "IS_NOT_FALSE" | "IS_UNKNOWN" | "IS_NOT_UNKNOWN"; +export type CmdType = "CMD_UNKNOWN" | "CMD_SELECT" | "CMD_UPDATE" | "CMD_INSERT" | "CMD_DELETE" | "CMD_MERGE" | "CMD_UTILITY" | "CMD_NOTHING"; +export type JoinType = "JOIN_INNER" | "JOIN_LEFT" | "JOIN_FULL" | "JOIN_RIGHT" | "JOIN_SEMI" | "JOIN_ANTI" | "JOIN_RIGHT_ANTI" | "JOIN_UNIQUE_OUTER" | "JOIN_UNIQUE_INNER"; +export type AggStrategy = "AGG_PLAIN" | "AGG_SORTED" | "AGG_HASHED" | "AGG_MIXED"; +export type AggSplit = "AGGSPLIT_SIMPLE" | "AGGSPLIT_INITIAL_SERIAL" | "AGGSPLIT_FINAL_DESERIAL"; +export type SetOpCmd = "SETOPCMD_INTERSECT" | "SETOPCMD_INTERSECT_ALL" | "SETOPCMD_EXCEPT" | "SETOPCMD_EXCEPT_ALL"; +export type SetOpStrategy = "SETOP_SORTED" | "SETOP_HASHED"; +export type OnConflictAction = "ONCONFLICT_NONE" | "ONCONFLICT_NOTHING" | "ONCONFLICT_UPDATE"; +export type LimitOption = "LIMIT_OPTION_DEFAULT" | "LIMIT_OPTION_COUNT" | "LIMIT_OPTION_WITH_TIES"; +export type LockClauseStrength = "LCS_NONE" | "LCS_FORKEYSHARE" | "LCS_FORSHARE" | "LCS_FORNOKEYUPDATE" | "LCS_FORUPDATE"; +export type LockWaitPolicy = "LockWaitBlock" | "LockWaitSkip" | "LockWaitError"; +export type LockTupleMode = "LockTupleKeyShare" | "LockTupleShare" | "LockTupleNoKeyExclusive" | "LockTupleExclusive"; +export type KeywordKind = "NO_KEYWORD" | "UNRESERVED_KEYWORD" | "COL_NAME_KEYWORD" | "TYPE_FUNC_NAME_KEYWORD" | "RESERVED_KEYWORD"; +export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | "ASCII_42" | "ASCII_43" | "ASCII_44" | "ASCII_45" | "ASCII_46" | "ASCII_47" | "ASCII_58" | "ASCII_59" | "ASCII_60" | "ASCII_61" | "ASCII_62" | "ASCII_63" | "ASCII_91" | "ASCII_92" | "ASCII_93" | "ASCII_94" | "IDENT" | "UIDENT" | "FCONST" | "SCONST" | "USCONST" | "BCONST" | "XCONST" | "Op" | "ICONST" | "PARAM" | "TYPECAST" | "DOT_DOT" | "COLON_EQUALS" | "EQUALS_GREATER" | "LESS_EQUALS" | "GREATER_EQUALS" | "NOT_EQUALS" | "SQL_COMMENT" | "C_COMMENT" | "ABORT_P" | "ABSENT" | "ABSOLUTE_P" | "ACCESS" | "ACTION" | "ADD_P" | "ADMIN" | "AFTER" | "AGGREGATE" | "ALL" | "ALSO" | "ALTER" | "ALWAYS" | "ANALYSE" | "ANALYZE" | "AND" | "ANY" | "ARRAY" | "AS" | "ASC" | "ASENSITIVE" | "ASSERTION" | "ASSIGNMENT" | "ASYMMETRIC" | "ATOMIC" | "AT" | "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" | "CHAR_P" | "CHARACTER" | "CHARACTERISTICS" | "CHECK" | "CHECKPOINT" | "CLASS" | "CLOSE" | "CLUSTER" | "COALESCE" | "COLLATE" | "COLLATION" | "COLUMN" | "COLUMNS" | "COMMENT" | "COMMENTS" | "COMMIT" | "COMMITTED" | "COMPRESSION" | "CONCURRENTLY" | "CONFIGURATION" | "CONFLICT" | "CONNECTION" | "CONSTRAINT" | "CONSTRAINTS" | "CONTENT_P" | "CONTINUE_P" | "CONVERSION_P" | "COPY" | "COST" | "CREATE" | "CROSS" | "CSV" | "CUBE" | "CURRENT_P" | "CURRENT_CATALOG" | "CURRENT_DATE" | "CURRENT_ROLE" | "CURRENT_SCHEMA" | "CURRENT_TIME" | "CURRENT_TIMESTAMP" | "CURRENT_USER" | "CURSOR" | "CYCLE" | "DATA_P" | "DATABASE" | "DAY_P" | "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" | "ENABLE_P" | "ENCODING" | "ENCRYPTED" | "END_P" | "ENUM_P" | "ESCAPE" | "EVENT" | "EXCEPT" | "EXCLUDE" | "EXCLUDING" | "EXCLUSIVE" | "EXECUTE" | "EXISTS" | "EXPLAIN" | "EXPRESSION" | "EXTENSION" | "EXTERNAL" | "EXTRACT" | "FALSE_P" | "FAMILY" | "FETCH" | "FILTER" | "FINALIZE" | "FIRST_P" | "FLOAT_P" | "FOLLOWING" | "FOR" | "FORCE" | "FOREIGN" | "FORMAT" | "FORWARD" | "FREEZE" | "FROM" | "FULL" | "FUNCTION" | "FUNCTIONS" | "GENERATED" | "GLOBAL" | "GRANT" | "GRANTED" | "GREATEST" | "GROUP_P" | "GROUPING" | "GROUPS" | "HANDLER" | "HAVING" | "HEADER_P" | "HOLD" | "HOUR_P" | "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" | "INTERSECT" | "INTERVAL" | "INTO" | "INVOKER" | "IS" | "ISNULL" | "ISOLATION" | "JOIN" | "JSON" | "JSON_ARRAY" | "JSON_ARRAYAGG" | "JSON_OBJECT" | "JSON_OBJECTAGG" | "KEY" | "KEYS" | "LABEL" | "LANGUAGE" | "LARGE_P" | "LAST_P" | "LATERAL_P" | "LEADING" | "LEAKPROOF" | "LEAST" | "LEFT" | "LEVEL" | "LIKE" | "LIMIT" | "LISTEN" | "LOAD" | "LOCAL" | "LOCALTIME" | "LOCALTIMESTAMP" | "LOCATION" | "LOCK_P" | "LOCKED" | "LOGGED" | "MAPPING" | "MATCH" | "MATCHED" | "MATERIALIZED" | "MAXVALUE" | "MERGE" | "METHOD" | "MINUTE_P" | "MINVALUE" | "MODE" | "MONTH_P" | "MOVE" | "NAME_P" | "NAMES" | "NATIONAL" | "NATURAL" | "NCHAR" | "NEW" | "NEXT" | "NFC" | "NFD" | "NFKC" | "NFKD" | "NO" | "NONE" | "NORMALIZE" | "NORMALIZED" | "NOT" | "NOTHING" | "NOTIFY" | "NOTNULL" | "NOWAIT" | "NULL_P" | "NULLIF" | "NULLS_P" | "NUMERIC" | "OBJECT_P" | "OF" | "OFF" | "OFFSET" | "OIDS" | "OLD" | "ON" | "ONLY" | "OPERATOR" | "OPTION" | "OPTIONS" | "OR" | "ORDER" | "ORDINALITY" | "OTHERS" | "OUT_P" | "OUTER_P" | "OVER" | "OVERLAPS" | "OVERLAY" | "OVERRIDING" | "OWNED" | "OWNER" | "PARALLEL" | "PARAMETER" | "PARSER" | "PARTIAL" | "PARTITION" | "PASSING" | "PASSWORD" | "PLACING" | "PLANS" | "POLICY" | "POSITION" | "PRECEDING" | "PRECISION" | "PRESERVE" | "PREPARE" | "PREPARED" | "PRIMARY" | "PRIOR" | "PRIVILEGES" | "PROCEDURAL" | "PROCEDURE" | "PROCEDURES" | "PROGRAM" | "PUBLICATION" | "QUOTE" | "RANGE" | "READ" | "REAL" | "REASSIGN" | "RECHECK" | "RECURSIVE" | "REF_P" | "REFERENCES" | "REFERENCING" | "REFRESH" | "REINDEX" | "RELATIVE_P" | "RELEASE" | "RENAME" | "REPEATABLE" | "REPLACE" | "REPLICA" | "RESET" | "RESTART" | "RESTRICT" | "RETURN" | "RETURNING" | "RETURNS" | "REVOKE" | "RIGHT" | "ROLE" | "ROLLBACK" | "ROLLUP" | "ROUTINE" | "ROUTINES" | "ROW" | "ROWS" | "RULE" | "SAVEPOINT" | "SCALAR" | "SCHEMA" | "SCHEMAS" | "SCROLL" | "SEARCH" | "SECOND_P" | "SECURITY" | "SELECT" | "SEQUENCE" | "SEQUENCES" | "SERIALIZABLE" | "SERVER" | "SESSION" | "SESSION_USER" | "SET" | "SETS" | "SETOF" | "SHARE" | "SHOW" | "SIMILAR" | "SIMPLE" | "SKIP" | "SMALLINT" | "SNAPSHOT" | "SOME" | "SQL_P" | "STABLE" | "STANDALONE_P" | "START" | "STATEMENT" | "STATISTICS" | "STDIN" | "STDOUT" | "STORAGE" | "STORED" | "STRICT_P" | "STRIP_P" | "SUBSCRIPTION" | "SUBSTRING" | "SUPPORT" | "SYMMETRIC" | "SYSID" | "SYSTEM_P" | "SYSTEM_USER" | "TABLE" | "TABLES" | "TABLESAMPLE" | "TABLESPACE" | "TEMP" | "TEMPLATE" | "TEMPORARY" | "TEXT_P" | "THEN" | "TIES" | "TIME" | "TIMESTAMP" | "TO" | "TRAILING" | "TRANSACTION" | "TRANSFORM" | "TREAT" | "TRIGGER" | "TRIM" | "TRUE_P" | "TRUNCATE" | "TRUSTED" | "TYPE_P" | "TYPES_P" | "UESCAPE" | "UNBOUNDED" | "UNCOMMITTED" | "UNENCRYPTED" | "UNION" | "UNIQUE" | "UNKNOWN" | "UNLISTEN" | "UNLOGGED" | "UNTIL" | "UPDATE" | "USER" | "USING" | "VACUUM" | "VALID" | "VALIDATE" | "VALIDATOR" | "VALUE_P" | "VALUES" | "VARCHAR" | "VARIADIC" | "VARYING" | "VERBOSE" | "VERSION_P" | "VIEW" | "VIEWS" | "VOLATILE" | "WHEN" | "WHERE" | "WHITESPACE_P" | "WINDOW" | "WITH" | "WITHIN" | "WITHOUT" | "WORK" | "WRAPPER" | "WRITE" | "XML_P" | "XMLATTRIBUTES" | "XMLCONCAT" | "XMLELEMENT" | "XMLEXISTS" | "XMLFOREST" | "XMLNAMESPACES" | "XMLPARSE" | "XMLPI" | "XMLROOT" | "XMLSERIALIZE" | "XMLTABLE" | "YEAR_P" | "YES_P" | "ZONE" | "FORMAT_LA" | "NOT_LA" | "NULLS_LA" | "WITH_LA" | "WITHOUT_LA" | "MODE_TYPE_NAME" | "MODE_PLPGSQL_EXPR" | "MODE_PLPGSQL_ASSIGN1" | "MODE_PLPGSQL_ASSIGN2" | "MODE_PLPGSQL_ASSIGN3" | "UMINUS";", + "file": "enums.ts", + }, + { + "code": "/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export const enumToIntMap = { + OverridingKind: { + OVERRIDING_NOT_SET: 0, + OVERRIDING_USER_VALUE: 1, + OVERRIDING_SYSTEM_VALUE: 2 + }, + QuerySource: { + QSRC_ORIGINAL: 0, + QSRC_PARSER: 1, + QSRC_INSTEAD_RULE: 2, + QSRC_QUAL_INSTEAD_RULE: 3, + QSRC_NON_INSTEAD_RULE: 4 + }, + SortByDir: { + SORTBY_DEFAULT: 0, + SORTBY_ASC: 1, + SORTBY_DESC: 2, + SORTBY_USING: 3 + }, + SortByNulls: { + SORTBY_NULLS_DEFAULT: 0, + SORTBY_NULLS_FIRST: 1, + SORTBY_NULLS_LAST: 2 + }, + SetQuantifier: { + SET_QUANTIFIER_DEFAULT: 0, + SET_QUANTIFIER_ALL: 1, + SET_QUANTIFIER_DISTINCT: 2 + }, + A_Expr_Kind: { + AEXPR_OP: 0, + AEXPR_OP_ANY: 1, + AEXPR_OP_ALL: 2, + AEXPR_DISTINCT: 3, + AEXPR_NOT_DISTINCT: 4, + AEXPR_NULLIF: 5, + AEXPR_IN: 6, + AEXPR_LIKE: 7, + AEXPR_ILIKE: 8, + AEXPR_SIMILAR: 9, + AEXPR_BETWEEN: 10, + AEXPR_NOT_BETWEEN: 11, + AEXPR_BETWEEN_SYM: 12, + AEXPR_NOT_BETWEEN_SYM: 13 + }, + RoleSpecType: { + ROLESPEC_CSTRING: 0, + ROLESPEC_CURRENT_ROLE: 1, + ROLESPEC_CURRENT_USER: 2, + ROLESPEC_SESSION_USER: 3, + ROLESPEC_PUBLIC: 4 + }, + TableLikeOption: { + CREATE_TABLE_LIKE_COMMENTS: 0, + CREATE_TABLE_LIKE_COMPRESSION: 1, + CREATE_TABLE_LIKE_CONSTRAINTS: 2, + CREATE_TABLE_LIKE_DEFAULTS: 3, + CREATE_TABLE_LIKE_GENERATED: 4, + CREATE_TABLE_LIKE_IDENTITY: 5, + CREATE_TABLE_LIKE_INDEXES: 6, + CREATE_TABLE_LIKE_STATISTICS: 7, + CREATE_TABLE_LIKE_STORAGE: 8, + CREATE_TABLE_LIKE_ALL: 9 + }, + DefElemAction: { + DEFELEM_UNSPEC: 0, + DEFELEM_SET: 1, + DEFELEM_ADD: 2, + DEFELEM_DROP: 3 + }, + PartitionStrategy: { + PARTITION_STRATEGY_LIST: 0, + PARTITION_STRATEGY_RANGE: 1, + PARTITION_STRATEGY_HASH: 2 + }, + PartitionRangeDatumKind: { + PARTITION_RANGE_DATUM_MINVALUE: 0, + PARTITION_RANGE_DATUM_VALUE: 1, + PARTITION_RANGE_DATUM_MAXVALUE: 2 + }, + RTEKind: { + RTE_RELATION: 0, + RTE_SUBQUERY: 1, + RTE_JOIN: 2, + RTE_FUNCTION: 3, + RTE_TABLEFUNC: 4, + RTE_VALUES: 5, + RTE_CTE: 6, + RTE_NAMEDTUPLESTORE: 7, + RTE_RESULT: 8 + }, + WCOKind: { + WCO_VIEW_CHECK: 0, + WCO_RLS_INSERT_CHECK: 1, + WCO_RLS_UPDATE_CHECK: 2, + WCO_RLS_CONFLICT_CHECK: 3, + WCO_RLS_MERGE_UPDATE_CHECK: 4, + WCO_RLS_MERGE_DELETE_CHECK: 5 + }, + GroupingSetKind: { + GROUPING_SET_EMPTY: 0, + GROUPING_SET_SIMPLE: 1, + GROUPING_SET_ROLLUP: 2, + GROUPING_SET_CUBE: 3, + GROUPING_SET_SETS: 4 + }, + CTEMaterialize: { + CTEMaterializeDefault: 0, + CTEMaterializeAlways: 1, + CTEMaterializeNever: 2 + }, + SetOperation: { + SETOP_NONE: 0, + SETOP_UNION: 1, + SETOP_INTERSECT: 2, + SETOP_EXCEPT: 3 + }, + ObjectType: { + OBJECT_ACCESS_METHOD: 0, + OBJECT_AGGREGATE: 1, + OBJECT_AMOP: 2, + OBJECT_AMPROC: 3, + OBJECT_ATTRIBUTE: 4, + OBJECT_CAST: 5, + OBJECT_COLUMN: 6, + OBJECT_COLLATION: 7, + OBJECT_CONVERSION: 8, + OBJECT_DATABASE: 9, + OBJECT_DEFAULT: 10, + OBJECT_DEFACL: 11, + OBJECT_DOMAIN: 12, + OBJECT_DOMCONSTRAINT: 13, + OBJECT_EVENT_TRIGGER: 14, + OBJECT_EXTENSION: 15, + OBJECT_FDW: 16, + OBJECT_FOREIGN_SERVER: 17, + OBJECT_FOREIGN_TABLE: 18, + OBJECT_FUNCTION: 19, + OBJECT_INDEX: 20, + OBJECT_LANGUAGE: 21, + OBJECT_LARGEOBJECT: 22, + OBJECT_MATVIEW: 23, + OBJECT_OPCLASS: 24, + OBJECT_OPERATOR: 25, + OBJECT_OPFAMILY: 26, + OBJECT_PARAMETER_ACL: 27, + OBJECT_POLICY: 28, + OBJECT_PROCEDURE: 29, + OBJECT_PUBLICATION: 30, + OBJECT_PUBLICATION_NAMESPACE: 31, + OBJECT_PUBLICATION_REL: 32, + OBJECT_ROLE: 33, + OBJECT_ROUTINE: 34, + OBJECT_RULE: 35, + OBJECT_SCHEMA: 36, + OBJECT_SEQUENCE: 37, + OBJECT_SUBSCRIPTION: 38, + OBJECT_STATISTIC_EXT: 39, + OBJECT_TABCONSTRAINT: 40, + OBJECT_TABLE: 41, + OBJECT_TABLESPACE: 42, + OBJECT_TRANSFORM: 43, + OBJECT_TRIGGER: 44, + OBJECT_TSCONFIGURATION: 45, + OBJECT_TSDICTIONARY: 46, + OBJECT_TSPARSER: 47, + OBJECT_TSTEMPLATE: 48, + OBJECT_TYPE: 49, + OBJECT_USER_MAPPING: 50, + OBJECT_VIEW: 51 + }, + DropBehavior: { + DROP_RESTRICT: 0, + DROP_CASCADE: 1 + }, + AlterTableType: { + AT_AddColumn: 0, + AT_AddColumnToView: 1, + AT_ColumnDefault: 2, + AT_CookedColumnDefault: 3, + AT_DropNotNull: 4, + AT_SetNotNull: 5, + AT_DropExpression: 6, + AT_CheckNotNull: 7, + AT_SetStatistics: 8, + AT_SetOptions: 9, + AT_ResetOptions: 10, + AT_SetStorage: 11, + AT_SetCompression: 12, + AT_DropColumn: 13, + AT_AddIndex: 14, + AT_ReAddIndex: 15, + AT_AddConstraint: 16, + AT_ReAddConstraint: 17, + AT_ReAddDomainConstraint: 18, + AT_AlterConstraint: 19, + AT_ValidateConstraint: 20, + AT_AddIndexConstraint: 21, + AT_DropConstraint: 22, + AT_ReAddComment: 23, + AT_AlterColumnType: 24, + AT_AlterColumnGenericOptions: 25, + AT_ChangeOwner: 26, + AT_ClusterOn: 27, + AT_DropCluster: 28, + AT_SetLogged: 29, + AT_SetUnLogged: 30, + AT_DropOids: 31, + AT_SetAccessMethod: 32, + AT_SetTableSpace: 33, + AT_SetRelOptions: 34, + AT_ResetRelOptions: 35, + AT_ReplaceRelOptions: 36, + AT_EnableTrig: 37, + AT_EnableAlwaysTrig: 38, + AT_EnableReplicaTrig: 39, + AT_DisableTrig: 40, + AT_EnableTrigAll: 41, + AT_DisableTrigAll: 42, + AT_EnableTrigUser: 43, + AT_DisableTrigUser: 44, + AT_EnableRule: 45, + AT_EnableAlwaysRule: 46, + AT_EnableReplicaRule: 47, + AT_DisableRule: 48, + AT_AddInherit: 49, + AT_DropInherit: 50, + AT_AddOf: 51, + AT_DropOf: 52, + AT_ReplicaIdentity: 53, + AT_EnableRowSecurity: 54, + AT_DisableRowSecurity: 55, + AT_ForceRowSecurity: 56, + AT_NoForceRowSecurity: 57, + AT_GenericOptions: 58, + AT_AttachPartition: 59, + AT_DetachPartition: 60, + AT_DetachPartitionFinalize: 61, + AT_AddIdentity: 62, + AT_SetIdentity: 63, + AT_DropIdentity: 64, + AT_ReAddStatistics: 65 + }, + GrantTargetType: { + ACL_TARGET_OBJECT: 0, + ACL_TARGET_ALL_IN_SCHEMA: 1, + ACL_TARGET_DEFAULTS: 2 + }, + VariableSetKind: { + VAR_SET_VALUE: 0, + VAR_SET_DEFAULT: 1, + VAR_SET_CURRENT: 2, + VAR_SET_MULTI: 3, + VAR_RESET: 4, + VAR_RESET_ALL: 5 + }, + ConstrType: { + CONSTR_NULL: 0, + CONSTR_NOTNULL: 1, + CONSTR_DEFAULT: 2, + CONSTR_IDENTITY: 3, + CONSTR_GENERATED: 4, + CONSTR_CHECK: 5, + CONSTR_PRIMARY: 6, + CONSTR_UNIQUE: 7, + CONSTR_EXCLUSION: 8, + CONSTR_FOREIGN: 9, + CONSTR_ATTR_DEFERRABLE: 10, + CONSTR_ATTR_NOT_DEFERRABLE: 11, + CONSTR_ATTR_DEFERRED: 12, + CONSTR_ATTR_IMMEDIATE: 13 + }, + ImportForeignSchemaType: { + FDW_IMPORT_SCHEMA_ALL: 0, + FDW_IMPORT_SCHEMA_LIMIT_TO: 1, + FDW_IMPORT_SCHEMA_EXCEPT: 2 + }, + RoleStmtType: { + ROLESTMT_ROLE: 0, + ROLESTMT_USER: 1, + ROLESTMT_GROUP: 2 + }, + FetchDirection: { + FETCH_FORWARD: 0, + FETCH_BACKWARD: 1, + FETCH_ABSOLUTE: 2, + FETCH_RELATIVE: 3 + }, + FunctionParameterMode: { + FUNC_PARAM_IN: 0, + FUNC_PARAM_OUT: 1, + FUNC_PARAM_INOUT: 2, + FUNC_PARAM_VARIADIC: 3, + FUNC_PARAM_TABLE: 4, + FUNC_PARAM_DEFAULT: 5 + }, + TransactionStmtKind: { + TRANS_STMT_BEGIN: 0, + TRANS_STMT_START: 1, + TRANS_STMT_COMMIT: 2, + TRANS_STMT_ROLLBACK: 3, + TRANS_STMT_SAVEPOINT: 4, + TRANS_STMT_RELEASE: 5, + TRANS_STMT_ROLLBACK_TO: 6, + TRANS_STMT_PREPARE: 7, + TRANS_STMT_COMMIT_PREPARED: 8, + TRANS_STMT_ROLLBACK_PREPARED: 9 + }, + ViewCheckOption: { + NO_CHECK_OPTION: 0, + LOCAL_CHECK_OPTION: 1, + CASCADED_CHECK_OPTION: 2 + }, + DiscardMode: { + DISCARD_ALL: 0, + DISCARD_PLANS: 1, + DISCARD_SEQUENCES: 2, + DISCARD_TEMP: 3 + }, + ReindexObjectType: { + REINDEX_OBJECT_INDEX: 0, + REINDEX_OBJECT_TABLE: 1, + REINDEX_OBJECT_SCHEMA: 2, + REINDEX_OBJECT_SYSTEM: 3, + REINDEX_OBJECT_DATABASE: 4 + }, + AlterTSConfigType: { + ALTER_TSCONFIG_ADD_MAPPING: 0, + ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN: 1, + ALTER_TSCONFIG_REPLACE_DICT: 2, + ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN: 3, + ALTER_TSCONFIG_DROP_MAPPING: 4 + }, + PublicationObjSpecType: { + PUBLICATIONOBJ_TABLE: 0, + PUBLICATIONOBJ_TABLES_IN_SCHEMA: 1, + PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA: 2, + PUBLICATIONOBJ_CONTINUATION: 3 + }, + AlterPublicationAction: { + AP_AddObjects: 0, + AP_DropObjects: 1, + AP_SetObjects: 2 + }, + AlterSubscriptionType: { + ALTER_SUBSCRIPTION_OPTIONS: 0, + ALTER_SUBSCRIPTION_CONNECTION: 1, + ALTER_SUBSCRIPTION_SET_PUBLICATION: 2, + ALTER_SUBSCRIPTION_ADD_PUBLICATION: 3, + ALTER_SUBSCRIPTION_DROP_PUBLICATION: 4, + ALTER_SUBSCRIPTION_REFRESH: 5, + ALTER_SUBSCRIPTION_ENABLED: 6, + ALTER_SUBSCRIPTION_SKIP: 7 + }, + OnCommitAction: { + ONCOMMIT_NOOP: 0, + ONCOMMIT_PRESERVE_ROWS: 1, + ONCOMMIT_DELETE_ROWS: 2, + ONCOMMIT_DROP: 3 + }, + ParamKind: { + PARAM_EXTERN: 0, + PARAM_EXEC: 1, + PARAM_SUBLINK: 2, + PARAM_MULTIEXPR: 3 + }, + CoercionContext: { + COERCION_IMPLICIT: 0, + COERCION_ASSIGNMENT: 1, + COERCION_PLPGSQL: 2, + COERCION_EXPLICIT: 3 + }, + CoercionForm: { + COERCE_EXPLICIT_CALL: 0, + COERCE_EXPLICIT_CAST: 1, + COERCE_IMPLICIT_CAST: 2, + COERCE_SQL_SYNTAX: 3 + }, + BoolExprType: { + AND_EXPR: 0, + OR_EXPR: 1, + NOT_EXPR: 2 + }, + SubLinkType: { + EXISTS_SUBLINK: 0, + ALL_SUBLINK: 1, + ANY_SUBLINK: 2, + ROWCOMPARE_SUBLINK: 3, + EXPR_SUBLINK: 4, + MULTIEXPR_SUBLINK: 5, + ARRAY_SUBLINK: 6, + CTE_SUBLINK: 7 + }, + RowCompareType: { + ROWCOMPARE_LT: 0, + ROWCOMPARE_LE: 1, + ROWCOMPARE_EQ: 2, + ROWCOMPARE_GE: 3, + ROWCOMPARE_GT: 4, + ROWCOMPARE_NE: 5 + }, + MinMaxOp: { + IS_GREATEST: 0, + IS_LEAST: 1 + }, + SQLValueFunctionOp: { + SVFOP_CURRENT_DATE: 0, + SVFOP_CURRENT_TIME: 1, + SVFOP_CURRENT_TIME_N: 2, + SVFOP_CURRENT_TIMESTAMP: 3, + SVFOP_CURRENT_TIMESTAMP_N: 4, + SVFOP_LOCALTIME: 5, + SVFOP_LOCALTIME_N: 6, + SVFOP_LOCALTIMESTAMP: 7, + SVFOP_LOCALTIMESTAMP_N: 8, + SVFOP_CURRENT_ROLE: 9, + SVFOP_CURRENT_USER: 10, + SVFOP_USER: 11, + SVFOP_SESSION_USER: 12, + SVFOP_CURRENT_CATALOG: 13, + SVFOP_CURRENT_SCHEMA: 14 + }, + XmlExprOp: { + IS_XMLCONCAT: 0, + IS_XMLELEMENT: 1, + IS_XMLFOREST: 2, + IS_XMLPARSE: 3, + IS_XMLPI: 4, + IS_XMLROOT: 5, + IS_XMLSERIALIZE: 6, + IS_DOCUMENT: 7 + }, + XmlOptionType: { + XMLOPTION_DOCUMENT: 0, + XMLOPTION_CONTENT: 1 + }, + JsonEncoding: { + JS_ENC_DEFAULT: 0, + JS_ENC_UTF8: 1, + JS_ENC_UTF16: 2, + JS_ENC_UTF32: 3 + }, + JsonFormatType: { + JS_FORMAT_DEFAULT: 0, + JS_FORMAT_JSON: 1, + JS_FORMAT_JSONB: 2 + }, + JsonConstructorType: { + JSCTOR_JSON_OBJECT: 0, + JSCTOR_JSON_ARRAY: 1, + JSCTOR_JSON_OBJECTAGG: 2, + JSCTOR_JSON_ARRAYAGG: 3 + }, + JsonValueType: { + JS_TYPE_ANY: 0, + JS_TYPE_OBJECT: 1, + JS_TYPE_ARRAY: 2, + JS_TYPE_SCALAR: 3 + }, + NullTestType: { + IS_NULL: 0, + IS_NOT_NULL: 1 + }, + BoolTestType: { + IS_TRUE: 0, + IS_NOT_TRUE: 1, + IS_FALSE: 2, + IS_NOT_FALSE: 3, + IS_UNKNOWN: 4, + IS_NOT_UNKNOWN: 5 + }, + CmdType: { + CMD_UNKNOWN: 0, + CMD_SELECT: 1, + CMD_UPDATE: 2, + CMD_INSERT: 3, + CMD_DELETE: 4, + CMD_MERGE: 5, + CMD_UTILITY: 6, + CMD_NOTHING: 7 + }, + JoinType: { + JOIN_INNER: 0, + JOIN_LEFT: 1, + JOIN_FULL: 2, + JOIN_RIGHT: 3, + JOIN_SEMI: 4, + JOIN_ANTI: 5, + JOIN_RIGHT_ANTI: 6, + JOIN_UNIQUE_OUTER: 7, + JOIN_UNIQUE_INNER: 8 + }, + AggStrategy: { + AGG_PLAIN: 0, + AGG_SORTED: 1, + AGG_HASHED: 2, + AGG_MIXED: 3 + }, + AggSplit: { + AGGSPLIT_SIMPLE: 0, + AGGSPLIT_INITIAL_SERIAL: 1, + AGGSPLIT_FINAL_DESERIAL: 2 + }, + SetOpCmd: { + SETOPCMD_INTERSECT: 0, + SETOPCMD_INTERSECT_ALL: 1, + SETOPCMD_EXCEPT: 2, + SETOPCMD_EXCEPT_ALL: 3 + }, + SetOpStrategy: { + SETOP_SORTED: 0, + SETOP_HASHED: 1 + }, + OnConflictAction: { + ONCONFLICT_NONE: 0, + ONCONFLICT_NOTHING: 1, + ONCONFLICT_UPDATE: 2 + }, + LimitOption: { + LIMIT_OPTION_DEFAULT: 0, + LIMIT_OPTION_COUNT: 1, + LIMIT_OPTION_WITH_TIES: 2 + }, + LockClauseStrength: { + LCS_NONE: 0, + LCS_FORKEYSHARE: 1, + LCS_FORSHARE: 2, + LCS_FORNOKEYUPDATE: 3, + LCS_FORUPDATE: 4 + }, + LockWaitPolicy: { + LockWaitBlock: 0, + LockWaitSkip: 1, + LockWaitError: 2 + }, + LockTupleMode: { + LockTupleKeyShare: 0, + LockTupleShare: 1, + LockTupleNoKeyExclusive: 2, + LockTupleExclusive: 3 + }, + KeywordKind: { + NO_KEYWORD: 0, + UNRESERVED_KEYWORD: 1, + COL_NAME_KEYWORD: 2, + TYPE_FUNC_NAME_KEYWORD: 3, + RESERVED_KEYWORD: 4 + }, + Token: { + NUL: 0, + ASCII_36: 36, + ASCII_37: 37, + ASCII_40: 40, + ASCII_41: 41, + ASCII_42: 42, + ASCII_43: 43, + ASCII_44: 44, + ASCII_45: 45, + ASCII_46: 46, + ASCII_47: 47, + ASCII_58: 58, + ASCII_59: 59, + ASCII_60: 60, + ASCII_61: 61, + ASCII_62: 62, + ASCII_63: 63, + ASCII_91: 91, + ASCII_92: 92, + ASCII_93: 93, + ASCII_94: 94, + IDENT: 258, + UIDENT: 259, + FCONST: 260, + SCONST: 261, + USCONST: 262, + BCONST: 263, + XCONST: 264, + Op: 265, + ICONST: 266, + PARAM: 267, + TYPECAST: 268, + DOT_DOT: 269, + COLON_EQUALS: 270, + EQUALS_GREATER: 271, + LESS_EQUALS: 272, + GREATER_EQUALS: 273, + NOT_EQUALS: 274, + SQL_COMMENT: 275, + C_COMMENT: 276, + ABORT_P: 277, + ABSENT: 278, + ABSOLUTE_P: 279, + ACCESS: 280, + ACTION: 281, + ADD_P: 282, + ADMIN: 283, + AFTER: 284, + AGGREGATE: 285, + ALL: 286, + ALSO: 287, + ALTER: 288, + ALWAYS: 289, + ANALYSE: 290, + ANALYZE: 291, + AND: 292, + ANY: 293, + ARRAY: 294, + AS: 295, + ASC: 296, + ASENSITIVE: 297, + ASSERTION: 298, + ASSIGNMENT: 299, + ASYMMETRIC: 300, + ATOMIC: 301, + AT: 302, + ATTACH: 303, + ATTRIBUTE: 304, + AUTHORIZATION: 305, + BACKWARD: 306, + BEFORE: 307, + BEGIN_P: 308, + BETWEEN: 309, + BIGINT: 310, + BINARY: 311, + BIT: 312, + BOOLEAN_P: 313, + BOTH: 314, + BREADTH: 315, + BY: 316, + CACHE: 317, + CALL: 318, + CALLED: 319, + CASCADE: 320, + CASCADED: 321, + CASE: 322, + CAST: 323, + CATALOG_P: 324, + CHAIN: 325, + CHAR_P: 326, + CHARACTER: 327, + CHARACTERISTICS: 328, + CHECK: 329, + CHECKPOINT: 330, + CLASS: 331, + CLOSE: 332, + CLUSTER: 333, + COALESCE: 334, + COLLATE: 335, + COLLATION: 336, + COLUMN: 337, + COLUMNS: 338, + COMMENT: 339, + COMMENTS: 340, + COMMIT: 341, + COMMITTED: 342, + COMPRESSION: 343, + CONCURRENTLY: 344, + CONFIGURATION: 345, + CONFLICT: 346, + CONNECTION: 347, + CONSTRAINT: 348, + CONSTRAINTS: 349, + CONTENT_P: 350, + CONTINUE_P: 351, + CONVERSION_P: 352, + COPY: 353, + COST: 354, + CREATE: 355, + CROSS: 356, + CSV: 357, + CUBE: 358, + CURRENT_P: 359, + CURRENT_CATALOG: 360, + CURRENT_DATE: 361, + CURRENT_ROLE: 362, + CURRENT_SCHEMA: 363, + CURRENT_TIME: 364, + CURRENT_TIMESTAMP: 365, + CURRENT_USER: 366, + CURSOR: 367, + CYCLE: 368, + DATA_P: 369, + DATABASE: 370, + DAY_P: 371, + DEALLOCATE: 372, + DEC: 373, + DECIMAL_P: 374, + DECLARE: 375, + DEFAULT: 376, + DEFAULTS: 377, + DEFERRABLE: 378, + DEFERRED: 379, + DEFINER: 380, + DELETE_P: 381, + DELIMITER: 382, + DELIMITERS: 383, + DEPENDS: 384, + DEPTH: 385, + DESC: 386, + DETACH: 387, + DICTIONARY: 388, + DISABLE_P: 389, + DISCARD: 390, + DISTINCT: 391, + DO: 392, + DOCUMENT_P: 393, + DOMAIN_P: 394, + DOUBLE_P: 395, + DROP: 396, + EACH: 397, + ELSE: 398, + ENABLE_P: 399, + ENCODING: 400, + ENCRYPTED: 401, + END_P: 402, + ENUM_P: 403, + ESCAPE: 404, + EVENT: 405, + EXCEPT: 406, + EXCLUDE: 407, + EXCLUDING: 408, + EXCLUSIVE: 409, + EXECUTE: 410, + EXISTS: 411, + EXPLAIN: 412, + EXPRESSION: 413, + EXTENSION: 414, + EXTERNAL: 415, + EXTRACT: 416, + FALSE_P: 417, + FAMILY: 418, + FETCH: 419, + FILTER: 420, + FINALIZE: 421, + FIRST_P: 422, + FLOAT_P: 423, + FOLLOWING: 424, + FOR: 425, + FORCE: 426, + FOREIGN: 427, + FORMAT: 428, + FORWARD: 429, + FREEZE: 430, + FROM: 431, + FULL: 432, + FUNCTION: 433, + FUNCTIONS: 434, + GENERATED: 435, + GLOBAL: 436, + GRANT: 437, + GRANTED: 438, + GREATEST: 439, + GROUP_P: 440, + GROUPING: 441, + GROUPS: 442, + HANDLER: 443, + HAVING: 444, + HEADER_P: 445, + HOLD: 446, + HOUR_P: 447, + IDENTITY_P: 448, + IF_P: 449, + ILIKE: 450, + IMMEDIATE: 451, + IMMUTABLE: 452, + IMPLICIT_P: 453, + IMPORT_P: 454, + IN_P: 455, + INCLUDE: 456, + INCLUDING: 457, + INCREMENT: 458, + INDENT: 459, + INDEX: 460, + INDEXES: 461, + INHERIT: 462, + INHERITS: 463, + INITIALLY: 464, + INLINE_P: 465, + INNER_P: 466, + INOUT: 467, + INPUT_P: 468, + INSENSITIVE: 469, + INSERT: 470, + INSTEAD: 471, + INT_P: 472, + INTEGER: 473, + INTERSECT: 474, + INTERVAL: 475, + INTO: 476, + INVOKER: 477, + IS: 478, + ISNULL: 479, + ISOLATION: 480, + JOIN: 481, + JSON: 482, + JSON_ARRAY: 483, + JSON_ARRAYAGG: 484, + JSON_OBJECT: 485, + JSON_OBJECTAGG: 486, + KEY: 487, + KEYS: 488, + LABEL: 489, + LANGUAGE: 490, + LARGE_P: 491, + LAST_P: 492, + LATERAL_P: 493, + LEADING: 494, + LEAKPROOF: 495, + LEAST: 496, + LEFT: 497, + LEVEL: 498, + LIKE: 499, + LIMIT: 500, + LISTEN: 501, + LOAD: 502, + LOCAL: 503, + LOCALTIME: 504, + LOCALTIMESTAMP: 505, + LOCATION: 506, + LOCK_P: 507, + LOCKED: 508, + LOGGED: 509, + MAPPING: 510, + MATCH: 511, + MATCHED: 512, + MATERIALIZED: 513, + MAXVALUE: 514, + MERGE: 515, + METHOD: 516, + MINUTE_P: 517, + MINVALUE: 518, + MODE: 519, + MONTH_P: 520, + MOVE: 521, + NAME_P: 522, + NAMES: 523, + NATIONAL: 524, + NATURAL: 525, + NCHAR: 526, + NEW: 527, + NEXT: 528, + NFC: 529, + NFD: 530, + NFKC: 531, + NFKD: 532, + NO: 533, + NONE: 534, + NORMALIZE: 535, + NORMALIZED: 536, + NOT: 537, + NOTHING: 538, + NOTIFY: 539, + NOTNULL: 540, + NOWAIT: 541, + NULL_P: 542, + NULLIF: 543, + NULLS_P: 544, + NUMERIC: 545, + OBJECT_P: 546, + OF: 547, + OFF: 548, + OFFSET: 549, + OIDS: 550, + OLD: 551, + ON: 552, + ONLY: 553, + OPERATOR: 554, + OPTION: 555, + OPTIONS: 556, + OR: 557, + ORDER: 558, + ORDINALITY: 559, + OTHERS: 560, + OUT_P: 561, + OUTER_P: 562, + OVER: 563, + OVERLAPS: 564, + OVERLAY: 565, + OVERRIDING: 566, + OWNED: 567, + OWNER: 568, + PARALLEL: 569, + PARAMETER: 570, + PARSER: 571, + PARTIAL: 572, + PARTITION: 573, + PASSING: 574, + PASSWORD: 575, + PLACING: 576, + PLANS: 577, + POLICY: 578, + POSITION: 579, + PRECEDING: 580, + PRECISION: 581, + PRESERVE: 582, + PREPARE: 583, + PREPARED: 584, + PRIMARY: 585, + PRIOR: 586, + PRIVILEGES: 587, + PROCEDURAL: 588, + PROCEDURE: 589, + PROCEDURES: 590, + PROGRAM: 591, + PUBLICATION: 592, + QUOTE: 593, + RANGE: 594, + READ: 595, + REAL: 596, + REASSIGN: 597, + RECHECK: 598, + RECURSIVE: 599, + REF_P: 600, + REFERENCES: 601, + REFERENCING: 602, + REFRESH: 603, + REINDEX: 604, + RELATIVE_P: 605, + RELEASE: 606, + RENAME: 607, + REPEATABLE: 608, + REPLACE: 609, + REPLICA: 610, + RESET: 611, + RESTART: 612, + RESTRICT: 613, + RETURN: 614, + RETURNING: 615, + RETURNS: 616, + REVOKE: 617, + RIGHT: 618, + ROLE: 619, + ROLLBACK: 620, + ROLLUP: 621, + ROUTINE: 622, + ROUTINES: 623, + ROW: 624, + ROWS: 625, + RULE: 626, + SAVEPOINT: 627, + SCALAR: 628, + SCHEMA: 629, + SCHEMAS: 630, + SCROLL: 631, + SEARCH: 632, + SECOND_P: 633, + SECURITY: 634, + SELECT: 635, + SEQUENCE: 636, + SEQUENCES: 637, + SERIALIZABLE: 638, + SERVER: 639, + SESSION: 640, + SESSION_USER: 641, + SET: 642, + SETS: 643, + SETOF: 644, + SHARE: 645, + SHOW: 646, + SIMILAR: 647, + SIMPLE: 648, + SKIP: 649, + SMALLINT: 650, + SNAPSHOT: 651, + SOME: 652, + SQL_P: 653, + STABLE: 654, + STANDALONE_P: 655, + START: 656, + STATEMENT: 657, + STATISTICS: 658, + STDIN: 659, + STDOUT: 660, + STORAGE: 661, + STORED: 662, + STRICT_P: 663, + STRIP_P: 664, + SUBSCRIPTION: 665, + SUBSTRING: 666, + SUPPORT: 667, + SYMMETRIC: 668, + SYSID: 669, + SYSTEM_P: 670, + SYSTEM_USER: 671, + TABLE: 672, + TABLES: 673, + TABLESAMPLE: 674, + TABLESPACE: 675, + TEMP: 676, + TEMPLATE: 677, + TEMPORARY: 678, + TEXT_P: 679, + THEN: 680, + TIES: 681, + TIME: 682, + TIMESTAMP: 683, + TO: 684, + TRAILING: 685, + TRANSACTION: 686, + TRANSFORM: 687, + TREAT: 688, + TRIGGER: 689, + TRIM: 690, + TRUE_P: 691, + TRUNCATE: 692, + TRUSTED: 693, + TYPE_P: 694, + TYPES_P: 695, + UESCAPE: 696, + UNBOUNDED: 697, + UNCOMMITTED: 698, + UNENCRYPTED: 699, + UNION: 700, + UNIQUE: 701, + UNKNOWN: 702, + UNLISTEN: 703, + UNLOGGED: 704, + UNTIL: 705, + UPDATE: 706, + USER: 707, + USING: 708, + VACUUM: 709, + VALID: 710, + VALIDATE: 711, + VALIDATOR: 712, + VALUE_P: 713, + VALUES: 714, + VARCHAR: 715, + VARIADIC: 716, + VARYING: 717, + VERBOSE: 718, + VERSION_P: 719, + VIEW: 720, + VIEWS: 721, + VOLATILE: 722, + WHEN: 723, + WHERE: 724, + WHITESPACE_P: 725, + WINDOW: 726, + WITH: 727, + WITHIN: 728, + WITHOUT: 729, + WORK: 730, + WRAPPER: 731, + WRITE: 732, + XML_P: 733, + XMLATTRIBUTES: 734, + XMLCONCAT: 735, + XMLELEMENT: 736, + XMLEXISTS: 737, + XMLFOREST: 738, + XMLNAMESPACES: 739, + XMLPARSE: 740, + XMLPI: 741, + XMLROOT: 742, + XMLSERIALIZE: 743, + XMLTABLE: 744, + YEAR_P: 745, + YES_P: 746, + ZONE: 747, + FORMAT_LA: 748, + NOT_LA: 749, + NULLS_LA: 750, + WITH_LA: 751, + WITHOUT_LA: 752, + MODE_TYPE_NAME: 753, + MODE_PLPGSQL_EXPR: 754, + MODE_PLPGSQL_ASSIGN1: 755, + MODE_PLPGSQL_ASSIGN2: 756, + MODE_PLPGSQL_ASSIGN3: 757, + UMINUS: 758 + } +}; +export type EnumToIntMap = typeof enumToIntMap;", + "file": "enum-to-int.ts", + }, +] +`; + +exports[`enum-maps only toStrOutFile 1`] = ` +[ + { + "code": "/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +{ + "OverridingKind": { + "OVERRIDING_NOT_SET": 0, + "OVERRIDING_USER_VALUE": 1, + "OVERRIDING_SYSTEM_VALUE": 2 + }, + "QuerySource": { + "QSRC_ORIGINAL": 0, + "QSRC_PARSER": 1, + "QSRC_INSTEAD_RULE": 2, + "QSRC_QUAL_INSTEAD_RULE": 3, + "QSRC_NON_INSTEAD_RULE": 4 + }, + "SortByDir": { + "SORTBY_DEFAULT": 0, + "SORTBY_ASC": 1, + "SORTBY_DESC": 2, + "SORTBY_USING": 3 + }, + "SortByNulls": { + "SORTBY_NULLS_DEFAULT": 0, + "SORTBY_NULLS_FIRST": 1, + "SORTBY_NULLS_LAST": 2 + }, + "SetQuantifier": { + "SET_QUANTIFIER_DEFAULT": 0, + "SET_QUANTIFIER_ALL": 1, + "SET_QUANTIFIER_DISTINCT": 2 + }, + "A_Expr_Kind": { + "AEXPR_OP": 0, + "AEXPR_OP_ANY": 1, + "AEXPR_OP_ALL": 2, + "AEXPR_DISTINCT": 3, + "AEXPR_NOT_DISTINCT": 4, + "AEXPR_NULLIF": 5, + "AEXPR_IN": 6, + "AEXPR_LIKE": 7, + "AEXPR_ILIKE": 8, + "AEXPR_SIMILAR": 9, + "AEXPR_BETWEEN": 10, + "AEXPR_NOT_BETWEEN": 11, + "AEXPR_BETWEEN_SYM": 12, + "AEXPR_NOT_BETWEEN_SYM": 13 + }, + "RoleSpecType": { + "ROLESPEC_CSTRING": 0, + "ROLESPEC_CURRENT_ROLE": 1, + "ROLESPEC_CURRENT_USER": 2, + "ROLESPEC_SESSION_USER": 3, + "ROLESPEC_PUBLIC": 4 + }, + "TableLikeOption": { + "CREATE_TABLE_LIKE_COMMENTS": 0, + "CREATE_TABLE_LIKE_COMPRESSION": 1, + "CREATE_TABLE_LIKE_CONSTRAINTS": 2, + "CREATE_TABLE_LIKE_DEFAULTS": 3, + "CREATE_TABLE_LIKE_GENERATED": 4, + "CREATE_TABLE_LIKE_IDENTITY": 5, + "CREATE_TABLE_LIKE_INDEXES": 6, + "CREATE_TABLE_LIKE_STATISTICS": 7, + "CREATE_TABLE_LIKE_STORAGE": 8, + "CREATE_TABLE_LIKE_ALL": 9 + }, + "DefElemAction": { + "DEFELEM_UNSPEC": 0, + "DEFELEM_SET": 1, + "DEFELEM_ADD": 2, + "DEFELEM_DROP": 3 + }, + "PartitionStrategy": { + "PARTITION_STRATEGY_LIST": 0, + "PARTITION_STRATEGY_RANGE": 1, + "PARTITION_STRATEGY_HASH": 2 + }, + "PartitionRangeDatumKind": { + "PARTITION_RANGE_DATUM_MINVALUE": 0, + "PARTITION_RANGE_DATUM_VALUE": 1, + "PARTITION_RANGE_DATUM_MAXVALUE": 2 + }, + "RTEKind": { + "RTE_RELATION": 0, + "RTE_SUBQUERY": 1, + "RTE_JOIN": 2, + "RTE_FUNCTION": 3, + "RTE_TABLEFUNC": 4, + "RTE_VALUES": 5, + "RTE_CTE": 6, + "RTE_NAMEDTUPLESTORE": 7, + "RTE_RESULT": 8 + }, + "WCOKind": { + "WCO_VIEW_CHECK": 0, + "WCO_RLS_INSERT_CHECK": 1, + "WCO_RLS_UPDATE_CHECK": 2, + "WCO_RLS_CONFLICT_CHECK": 3, + "WCO_RLS_MERGE_UPDATE_CHECK": 4, + "WCO_RLS_MERGE_DELETE_CHECK": 5 + }, + "GroupingSetKind": { + "GROUPING_SET_EMPTY": 0, + "GROUPING_SET_SIMPLE": 1, + "GROUPING_SET_ROLLUP": 2, + "GROUPING_SET_CUBE": 3, + "GROUPING_SET_SETS": 4 + }, + "CTEMaterialize": { + "CTEMaterializeDefault": 0, + "CTEMaterializeAlways": 1, + "CTEMaterializeNever": 2 + }, + "SetOperation": { + "SETOP_NONE": 0, + "SETOP_UNION": 1, + "SETOP_INTERSECT": 2, + "SETOP_EXCEPT": 3 + }, + "ObjectType": { + "OBJECT_ACCESS_METHOD": 0, + "OBJECT_AGGREGATE": 1, + "OBJECT_AMOP": 2, + "OBJECT_AMPROC": 3, + "OBJECT_ATTRIBUTE": 4, + "OBJECT_CAST": 5, + "OBJECT_COLUMN": 6, + "OBJECT_COLLATION": 7, + "OBJECT_CONVERSION": 8, + "OBJECT_DATABASE": 9, + "OBJECT_DEFAULT": 10, + "OBJECT_DEFACL": 11, + "OBJECT_DOMAIN": 12, + "OBJECT_DOMCONSTRAINT": 13, + "OBJECT_EVENT_TRIGGER": 14, + "OBJECT_EXTENSION": 15, + "OBJECT_FDW": 16, + "OBJECT_FOREIGN_SERVER": 17, + "OBJECT_FOREIGN_TABLE": 18, + "OBJECT_FUNCTION": 19, + "OBJECT_INDEX": 20, + "OBJECT_LANGUAGE": 21, + "OBJECT_LARGEOBJECT": 22, + "OBJECT_MATVIEW": 23, + "OBJECT_OPCLASS": 24, + "OBJECT_OPERATOR": 25, + "OBJECT_OPFAMILY": 26, + "OBJECT_PARAMETER_ACL": 27, + "OBJECT_POLICY": 28, + "OBJECT_PROCEDURE": 29, + "OBJECT_PUBLICATION": 30, + "OBJECT_PUBLICATION_NAMESPACE": 31, + "OBJECT_PUBLICATION_REL": 32, + "OBJECT_ROLE": 33, + "OBJECT_ROUTINE": 34, + "OBJECT_RULE": 35, + "OBJECT_SCHEMA": 36, + "OBJECT_SEQUENCE": 37, + "OBJECT_SUBSCRIPTION": 38, + "OBJECT_STATISTIC_EXT": 39, + "OBJECT_TABCONSTRAINT": 40, + "OBJECT_TABLE": 41, + "OBJECT_TABLESPACE": 42, + "OBJECT_TRANSFORM": 43, + "OBJECT_TRIGGER": 44, + "OBJECT_TSCONFIGURATION": 45, + "OBJECT_TSDICTIONARY": 46, + "OBJECT_TSPARSER": 47, + "OBJECT_TSTEMPLATE": 48, + "OBJECT_TYPE": 49, + "OBJECT_USER_MAPPING": 50, + "OBJECT_VIEW": 51 + }, + "DropBehavior": { + "DROP_RESTRICT": 0, + "DROP_CASCADE": 1 + }, + "AlterTableType": { + "AT_AddColumn": 0, + "AT_AddColumnToView": 1, + "AT_ColumnDefault": 2, + "AT_CookedColumnDefault": 3, + "AT_DropNotNull": 4, + "AT_SetNotNull": 5, + "AT_DropExpression": 6, + "AT_CheckNotNull": 7, + "AT_SetStatistics": 8, + "AT_SetOptions": 9, + "AT_ResetOptions": 10, + "AT_SetStorage": 11, + "AT_SetCompression": 12, + "AT_DropColumn": 13, + "AT_AddIndex": 14, + "AT_ReAddIndex": 15, + "AT_AddConstraint": 16, + "AT_ReAddConstraint": 17, + "AT_ReAddDomainConstraint": 18, + "AT_AlterConstraint": 19, + "AT_ValidateConstraint": 20, + "AT_AddIndexConstraint": 21, + "AT_DropConstraint": 22, + "AT_ReAddComment": 23, + "AT_AlterColumnType": 24, + "AT_AlterColumnGenericOptions": 25, + "AT_ChangeOwner": 26, + "AT_ClusterOn": 27, + "AT_DropCluster": 28, + "AT_SetLogged": 29, + "AT_SetUnLogged": 30, + "AT_DropOids": 31, + "AT_SetAccessMethod": 32, + "AT_SetTableSpace": 33, + "AT_SetRelOptions": 34, + "AT_ResetRelOptions": 35, + "AT_ReplaceRelOptions": 36, + "AT_EnableTrig": 37, + "AT_EnableAlwaysTrig": 38, + "AT_EnableReplicaTrig": 39, + "AT_DisableTrig": 40, + "AT_EnableTrigAll": 41, + "AT_DisableTrigAll": 42, + "AT_EnableTrigUser": 43, + "AT_DisableTrigUser": 44, + "AT_EnableRule": 45, + "AT_EnableAlwaysRule": 46, + "AT_EnableReplicaRule": 47, + "AT_DisableRule": 48, + "AT_AddInherit": 49, + "AT_DropInherit": 50, + "AT_AddOf": 51, + "AT_DropOf": 52, + "AT_ReplicaIdentity": 53, + "AT_EnableRowSecurity": 54, + "AT_DisableRowSecurity": 55, + "AT_ForceRowSecurity": 56, + "AT_NoForceRowSecurity": 57, + "AT_GenericOptions": 58, + "AT_AttachPartition": 59, + "AT_DetachPartition": 60, + "AT_DetachPartitionFinalize": 61, + "AT_AddIdentity": 62, + "AT_SetIdentity": 63, + "AT_DropIdentity": 64, + "AT_ReAddStatistics": 65 + }, + "GrantTargetType": { + "ACL_TARGET_OBJECT": 0, + "ACL_TARGET_ALL_IN_SCHEMA": 1, + "ACL_TARGET_DEFAULTS": 2 + }, + "VariableSetKind": { + "VAR_SET_VALUE": 0, + "VAR_SET_DEFAULT": 1, + "VAR_SET_CURRENT": 2, + "VAR_SET_MULTI": 3, + "VAR_RESET": 4, + "VAR_RESET_ALL": 5 + }, + "ConstrType": { + "CONSTR_NULL": 0, + "CONSTR_NOTNULL": 1, + "CONSTR_DEFAULT": 2, + "CONSTR_IDENTITY": 3, + "CONSTR_GENERATED": 4, + "CONSTR_CHECK": 5, + "CONSTR_PRIMARY": 6, + "CONSTR_UNIQUE": 7, + "CONSTR_EXCLUSION": 8, + "CONSTR_FOREIGN": 9, + "CONSTR_ATTR_DEFERRABLE": 10, + "CONSTR_ATTR_NOT_DEFERRABLE": 11, + "CONSTR_ATTR_DEFERRED": 12, + "CONSTR_ATTR_IMMEDIATE": 13 + }, + "ImportForeignSchemaType": { + "FDW_IMPORT_SCHEMA_ALL": 0, + "FDW_IMPORT_SCHEMA_LIMIT_TO": 1, + "FDW_IMPORT_SCHEMA_EXCEPT": 2 + }, + "RoleStmtType": { + "ROLESTMT_ROLE": 0, + "ROLESTMT_USER": 1, + "ROLESTMT_GROUP": 2 + }, + "FetchDirection": { + "FETCH_FORWARD": 0, + "FETCH_BACKWARD": 1, + "FETCH_ABSOLUTE": 2, + "FETCH_RELATIVE": 3 + }, + "FunctionParameterMode": { + "FUNC_PARAM_IN": 0, + "FUNC_PARAM_OUT": 1, + "FUNC_PARAM_INOUT": 2, + "FUNC_PARAM_VARIADIC": 3, + "FUNC_PARAM_TABLE": 4, + "FUNC_PARAM_DEFAULT": 5 + }, + "TransactionStmtKind": { + "TRANS_STMT_BEGIN": 0, + "TRANS_STMT_START": 1, + "TRANS_STMT_COMMIT": 2, + "TRANS_STMT_ROLLBACK": 3, + "TRANS_STMT_SAVEPOINT": 4, + "TRANS_STMT_RELEASE": 5, + "TRANS_STMT_ROLLBACK_TO": 6, + "TRANS_STMT_PREPARE": 7, + "TRANS_STMT_COMMIT_PREPARED": 8, + "TRANS_STMT_ROLLBACK_PREPARED": 9 + }, + "ViewCheckOption": { + "NO_CHECK_OPTION": 0, + "LOCAL_CHECK_OPTION": 1, + "CASCADED_CHECK_OPTION": 2 + }, + "DiscardMode": { + "DISCARD_ALL": 0, + "DISCARD_PLANS": 1, + "DISCARD_SEQUENCES": 2, + "DISCARD_TEMP": 3 + }, + "ReindexObjectType": { + "REINDEX_OBJECT_INDEX": 0, + "REINDEX_OBJECT_TABLE": 1, + "REINDEX_OBJECT_SCHEMA": 2, + "REINDEX_OBJECT_SYSTEM": 3, + "REINDEX_OBJECT_DATABASE": 4 + }, + "AlterTSConfigType": { + "ALTER_TSCONFIG_ADD_MAPPING": 0, + "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN": 1, + "ALTER_TSCONFIG_REPLACE_DICT": 2, + "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN": 3, + "ALTER_TSCONFIG_DROP_MAPPING": 4 + }, + "PublicationObjSpecType": { + "PUBLICATIONOBJ_TABLE": 0, + "PUBLICATIONOBJ_TABLES_IN_SCHEMA": 1, + "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA": 2, + "PUBLICATIONOBJ_CONTINUATION": 3 + }, + "AlterPublicationAction": { + "AP_AddObjects": 0, + "AP_DropObjects": 1, + "AP_SetObjects": 2 + }, + "AlterSubscriptionType": { + "ALTER_SUBSCRIPTION_OPTIONS": 0, + "ALTER_SUBSCRIPTION_CONNECTION": 1, + "ALTER_SUBSCRIPTION_SET_PUBLICATION": 2, + "ALTER_SUBSCRIPTION_ADD_PUBLICATION": 3, + "ALTER_SUBSCRIPTION_DROP_PUBLICATION": 4, + "ALTER_SUBSCRIPTION_REFRESH": 5, + "ALTER_SUBSCRIPTION_ENABLED": 6, + "ALTER_SUBSCRIPTION_SKIP": 7 + }, + "OnCommitAction": { + "ONCOMMIT_NOOP": 0, + "ONCOMMIT_PRESERVE_ROWS": 1, + "ONCOMMIT_DELETE_ROWS": 2, + "ONCOMMIT_DROP": 3 + }, + "ParamKind": { + "PARAM_EXTERN": 0, + "PARAM_EXEC": 1, + "PARAM_SUBLINK": 2, + "PARAM_MULTIEXPR": 3 + }, + "CoercionContext": { + "COERCION_IMPLICIT": 0, + "COERCION_ASSIGNMENT": 1, + "COERCION_PLPGSQL": 2, + "COERCION_EXPLICIT": 3 + }, + "CoercionForm": { + "COERCE_EXPLICIT_CALL": 0, + "COERCE_EXPLICIT_CAST": 1, + "COERCE_IMPLICIT_CAST": 2, + "COERCE_SQL_SYNTAX": 3 + }, + "BoolExprType": { + "AND_EXPR": 0, + "OR_EXPR": 1, + "NOT_EXPR": 2 + }, + "SubLinkType": { + "EXISTS_SUBLINK": 0, + "ALL_SUBLINK": 1, + "ANY_SUBLINK": 2, + "ROWCOMPARE_SUBLINK": 3, + "EXPR_SUBLINK": 4, + "MULTIEXPR_SUBLINK": 5, + "ARRAY_SUBLINK": 6, + "CTE_SUBLINK": 7 + }, + "RowCompareType": { + "ROWCOMPARE_LT": 0, + "ROWCOMPARE_LE": 1, + "ROWCOMPARE_EQ": 2, + "ROWCOMPARE_GE": 3, + "ROWCOMPARE_GT": 4, + "ROWCOMPARE_NE": 5 + }, + "MinMaxOp": { + "IS_GREATEST": 0, + "IS_LEAST": 1 + }, + "SQLValueFunctionOp": { + "SVFOP_CURRENT_DATE": 0, + "SVFOP_CURRENT_TIME": 1, + "SVFOP_CURRENT_TIME_N": 2, + "SVFOP_CURRENT_TIMESTAMP": 3, + "SVFOP_CURRENT_TIMESTAMP_N": 4, + "SVFOP_LOCALTIME": 5, + "SVFOP_LOCALTIME_N": 6, + "SVFOP_LOCALTIMESTAMP": 7, + "SVFOP_LOCALTIMESTAMP_N": 8, + "SVFOP_CURRENT_ROLE": 9, + "SVFOP_CURRENT_USER": 10, + "SVFOP_USER": 11, + "SVFOP_SESSION_USER": 12, + "SVFOP_CURRENT_CATALOG": 13, + "SVFOP_CURRENT_SCHEMA": 14 + }, + "XmlExprOp": { + "IS_XMLCONCAT": 0, + "IS_XMLELEMENT": 1, + "IS_XMLFOREST": 2, + "IS_XMLPARSE": 3, + "IS_XMLPI": 4, + "IS_XMLROOT": 5, + "IS_XMLSERIALIZE": 6, + "IS_DOCUMENT": 7 + }, + "XmlOptionType": { + "XMLOPTION_DOCUMENT": 0, + "XMLOPTION_CONTENT": 1 + }, + "JsonEncoding": { + "JS_ENC_DEFAULT": 0, + "JS_ENC_UTF8": 1, + "JS_ENC_UTF16": 2, + "JS_ENC_UTF32": 3 + }, + "JsonFormatType": { + "JS_FORMAT_DEFAULT": 0, + "JS_FORMAT_JSON": 1, + "JS_FORMAT_JSONB": 2 + }, + "JsonConstructorType": { + "JSCTOR_JSON_OBJECT": 0, + "JSCTOR_JSON_ARRAY": 1, + "JSCTOR_JSON_OBJECTAGG": 2, + "JSCTOR_JSON_ARRAYAGG": 3 + }, + "JsonValueType": { + "JS_TYPE_ANY": 0, + "JS_TYPE_OBJECT": 1, + "JS_TYPE_ARRAY": 2, + "JS_TYPE_SCALAR": 3 + }, + "NullTestType": { + "IS_NULL": 0, + "IS_NOT_NULL": 1 + }, + "BoolTestType": { + "IS_TRUE": 0, + "IS_NOT_TRUE": 1, + "IS_FALSE": 2, + "IS_NOT_FALSE": 3, + "IS_UNKNOWN": 4, + "IS_NOT_UNKNOWN": 5 + }, + "CmdType": { + "CMD_UNKNOWN": 0, + "CMD_SELECT": 1, + "CMD_UPDATE": 2, + "CMD_INSERT": 3, + "CMD_DELETE": 4, + "CMD_MERGE": 5, + "CMD_UTILITY": 6, + "CMD_NOTHING": 7 + }, + "JoinType": { + "JOIN_INNER": 0, + "JOIN_LEFT": 1, + "JOIN_FULL": 2, + "JOIN_RIGHT": 3, + "JOIN_SEMI": 4, + "JOIN_ANTI": 5, + "JOIN_RIGHT_ANTI": 6, + "JOIN_UNIQUE_OUTER": 7, + "JOIN_UNIQUE_INNER": 8 + }, + "AggStrategy": { + "AGG_PLAIN": 0, + "AGG_SORTED": 1, + "AGG_HASHED": 2, + "AGG_MIXED": 3 + }, + "AggSplit": { + "AGGSPLIT_SIMPLE": 0, + "AGGSPLIT_INITIAL_SERIAL": 1, + "AGGSPLIT_FINAL_DESERIAL": 2 + }, + "SetOpCmd": { + "SETOPCMD_INTERSECT": 0, + "SETOPCMD_INTERSECT_ALL": 1, + "SETOPCMD_EXCEPT": 2, + "SETOPCMD_EXCEPT_ALL": 3 + }, + "SetOpStrategy": { + "SETOP_SORTED": 0, + "SETOP_HASHED": 1 + }, + "OnConflictAction": { + "ONCONFLICT_NONE": 0, + "ONCONFLICT_NOTHING": 1, + "ONCONFLICT_UPDATE": 2 + }, + "LimitOption": { + "LIMIT_OPTION_DEFAULT": 0, + "LIMIT_OPTION_COUNT": 1, + "LIMIT_OPTION_WITH_TIES": 2 + }, + "LockClauseStrength": { + "LCS_NONE": 0, + "LCS_FORKEYSHARE": 1, + "LCS_FORSHARE": 2, + "LCS_FORNOKEYUPDATE": 3, + "LCS_FORUPDATE": 4 + }, + "LockWaitPolicy": { + "LockWaitBlock": 0, + "LockWaitSkip": 1, + "LockWaitError": 2 + }, + "LockTupleMode": { + "LockTupleKeyShare": 0, + "LockTupleShare": 1, + "LockTupleNoKeyExclusive": 2, + "LockTupleExclusive": 3 + }, + "KeywordKind": { + "NO_KEYWORD": 0, + "UNRESERVED_KEYWORD": 1, + "COL_NAME_KEYWORD": 2, + "TYPE_FUNC_NAME_KEYWORD": 3, + "RESERVED_KEYWORD": 4 + }, + "Token": { + "NUL": 0, + "ASCII_36": 36, + "ASCII_37": 37, + "ASCII_40": 40, + "ASCII_41": 41, + "ASCII_42": 42, + "ASCII_43": 43, + "ASCII_44": 44, + "ASCII_45": 45, + "ASCII_46": 46, + "ASCII_47": 47, + "ASCII_58": 58, + "ASCII_59": 59, + "ASCII_60": 60, + "ASCII_61": 61, + "ASCII_62": 62, + "ASCII_63": 63, + "ASCII_91": 91, + "ASCII_92": 92, + "ASCII_93": 93, + "ASCII_94": 94, + "IDENT": 258, + "UIDENT": 259, + "FCONST": 260, + "SCONST": 261, + "USCONST": 262, + "BCONST": 263, + "XCONST": 264, + "Op": 265, + "ICONST": 266, + "PARAM": 267, + "TYPECAST": 268, + "DOT_DOT": 269, + "COLON_EQUALS": 270, + "EQUALS_GREATER": 271, + "LESS_EQUALS": 272, + "GREATER_EQUALS": 273, + "NOT_EQUALS": 274, + "SQL_COMMENT": 275, + "C_COMMENT": 276, + "ABORT_P": 277, + "ABSENT": 278, + "ABSOLUTE_P": 279, + "ACCESS": 280, + "ACTION": 281, + "ADD_P": 282, + "ADMIN": 283, + "AFTER": 284, + "AGGREGATE": 285, + "ALL": 286, + "ALSO": 287, + "ALTER": 288, + "ALWAYS": 289, + "ANALYSE": 290, + "ANALYZE": 291, + "AND": 292, + "ANY": 293, + "ARRAY": 294, + "AS": 295, + "ASC": 296, + "ASENSITIVE": 297, + "ASSERTION": 298, + "ASSIGNMENT": 299, + "ASYMMETRIC": 300, + "ATOMIC": 301, + "AT": 302, + "ATTACH": 303, + "ATTRIBUTE": 304, + "AUTHORIZATION": 305, + "BACKWARD": 306, + "BEFORE": 307, + "BEGIN_P": 308, + "BETWEEN": 309, + "BIGINT": 310, + "BINARY": 311, + "BIT": 312, + "BOOLEAN_P": 313, + "BOTH": 314, + "BREADTH": 315, + "BY": 316, + "CACHE": 317, + "CALL": 318, + "CALLED": 319, + "CASCADE": 320, + "CASCADED": 321, + "CASE": 322, + "CAST": 323, + "CATALOG_P": 324, + "CHAIN": 325, + "CHAR_P": 326, + "CHARACTER": 327, + "CHARACTERISTICS": 328, + "CHECK": 329, + "CHECKPOINT": 330, + "CLASS": 331, + "CLOSE": 332, + "CLUSTER": 333, + "COALESCE": 334, + "COLLATE": 335, + "COLLATION": 336, + "COLUMN": 337, + "COLUMNS": 338, + "COMMENT": 339, + "COMMENTS": 340, + "COMMIT": 341, + "COMMITTED": 342, + "COMPRESSION": 343, + "CONCURRENTLY": 344, + "CONFIGURATION": 345, + "CONFLICT": 346, + "CONNECTION": 347, + "CONSTRAINT": 348, + "CONSTRAINTS": 349, + "CONTENT_P": 350, + "CONTINUE_P": 351, + "CONVERSION_P": 352, + "COPY": 353, + "COST": 354, + "CREATE": 355, + "CROSS": 356, + "CSV": 357, + "CUBE": 358, + "CURRENT_P": 359, + "CURRENT_CATALOG": 360, + "CURRENT_DATE": 361, + "CURRENT_ROLE": 362, + "CURRENT_SCHEMA": 363, + "CURRENT_TIME": 364, + "CURRENT_TIMESTAMP": 365, + "CURRENT_USER": 366, + "CURSOR": 367, + "CYCLE": 368, + "DATA_P": 369, + "DATABASE": 370, + "DAY_P": 371, + "DEALLOCATE": 372, + "DEC": 373, + "DECIMAL_P": 374, + "DECLARE": 375, + "DEFAULT": 376, + "DEFAULTS": 377, + "DEFERRABLE": 378, + "DEFERRED": 379, + "DEFINER": 380, + "DELETE_P": 381, + "DELIMITER": 382, + "DELIMITERS": 383, + "DEPENDS": 384, + "DEPTH": 385, + "DESC": 386, + "DETACH": 387, + "DICTIONARY": 388, + "DISABLE_P": 389, + "DISCARD": 390, + "DISTINCT": 391, + "DO": 392, + "DOCUMENT_P": 393, + "DOMAIN_P": 394, + "DOUBLE_P": 395, + "DROP": 396, + "EACH": 397, + "ELSE": 398, + "ENABLE_P": 399, + "ENCODING": 400, + "ENCRYPTED": 401, + "END_P": 402, + "ENUM_P": 403, + "ESCAPE": 404, + "EVENT": 405, + "EXCEPT": 406, + "EXCLUDE": 407, + "EXCLUDING": 408, + "EXCLUSIVE": 409, + "EXECUTE": 410, + "EXISTS": 411, + "EXPLAIN": 412, + "EXPRESSION": 413, + "EXTENSION": 414, + "EXTERNAL": 415, + "EXTRACT": 416, + "FALSE_P": 417, + "FAMILY": 418, + "FETCH": 419, + "FILTER": 420, + "FINALIZE": 421, + "FIRST_P": 422, + "FLOAT_P": 423, + "FOLLOWING": 424, + "FOR": 425, + "FORCE": 426, + "FOREIGN": 427, + "FORMAT": 428, + "FORWARD": 429, + "FREEZE": 430, + "FROM": 431, + "FULL": 432, + "FUNCTION": 433, + "FUNCTIONS": 434, + "GENERATED": 435, + "GLOBAL": 436, + "GRANT": 437, + "GRANTED": 438, + "GREATEST": 439, + "GROUP_P": 440, + "GROUPING": 441, + "GROUPS": 442, + "HANDLER": 443, + "HAVING": 444, + "HEADER_P": 445, + "HOLD": 446, + "HOUR_P": 447, + "IDENTITY_P": 448, + "IF_P": 449, + "ILIKE": 450, + "IMMEDIATE": 451, + "IMMUTABLE": 452, + "IMPLICIT_P": 453, + "IMPORT_P": 454, + "IN_P": 455, + "INCLUDE": 456, + "INCLUDING": 457, + "INCREMENT": 458, + "INDENT": 459, + "INDEX": 460, + "INDEXES": 461, + "INHERIT": 462, + "INHERITS": 463, + "INITIALLY": 464, + "INLINE_P": 465, + "INNER_P": 466, + "INOUT": 467, + "INPUT_P": 468, + "INSENSITIVE": 469, + "INSERT": 470, + "INSTEAD": 471, + "INT_P": 472, + "INTEGER": 473, + "INTERSECT": 474, + "INTERVAL": 475, + "INTO": 476, + "INVOKER": 477, + "IS": 478, + "ISNULL": 479, + "ISOLATION": 480, + "JOIN": 481, + "JSON": 482, + "JSON_ARRAY": 483, + "JSON_ARRAYAGG": 484, + "JSON_OBJECT": 485, + "JSON_OBJECTAGG": 486, + "KEY": 487, + "KEYS": 488, + "LABEL": 489, + "LANGUAGE": 490, + "LARGE_P": 491, + "LAST_P": 492, + "LATERAL_P": 493, + "LEADING": 494, + "LEAKPROOF": 495, + "LEAST": 496, + "LEFT": 497, + "LEVEL": 498, + "LIKE": 499, + "LIMIT": 500, + "LISTEN": 501, + "LOAD": 502, + "LOCAL": 503, + "LOCALTIME": 504, + "LOCALTIMESTAMP": 505, + "LOCATION": 506, + "LOCK_P": 507, + "LOCKED": 508, + "LOGGED": 509, + "MAPPING": 510, + "MATCH": 511, + "MATCHED": 512, + "MATERIALIZED": 513, + "MAXVALUE": 514, + "MERGE": 515, + "METHOD": 516, + "MINUTE_P": 517, + "MINVALUE": 518, + "MODE": 519, + "MONTH_P": 520, + "MOVE": 521, + "NAME_P": 522, + "NAMES": 523, + "NATIONAL": 524, + "NATURAL": 525, + "NCHAR": 526, + "NEW": 527, + "NEXT": 528, + "NFC": 529, + "NFD": 530, + "NFKC": 531, + "NFKD": 532, + "NO": 533, + "NONE": 534, + "NORMALIZE": 535, + "NORMALIZED": 536, + "NOT": 537, + "NOTHING": 538, + "NOTIFY": 539, + "NOTNULL": 540, + "NOWAIT": 541, + "NULL_P": 542, + "NULLIF": 543, + "NULLS_P": 544, + "NUMERIC": 545, + "OBJECT_P": 546, + "OF": 547, + "OFF": 548, + "OFFSET": 549, + "OIDS": 550, + "OLD": 551, + "ON": 552, + "ONLY": 553, + "OPERATOR": 554, + "OPTION": 555, + "OPTIONS": 556, + "OR": 557, + "ORDER": 558, + "ORDINALITY": 559, + "OTHERS": 560, + "OUT_P": 561, + "OUTER_P": 562, + "OVER": 563, + "OVERLAPS": 564, + "OVERLAY": 565, + "OVERRIDING": 566, + "OWNED": 567, + "OWNER": 568, + "PARALLEL": 569, + "PARAMETER": 570, + "PARSER": 571, + "PARTIAL": 572, + "PARTITION": 573, + "PASSING": 574, + "PASSWORD": 575, + "PLACING": 576, + "PLANS": 577, + "POLICY": 578, + "POSITION": 579, + "PRECEDING": 580, + "PRECISION": 581, + "PRESERVE": 582, + "PREPARE": 583, + "PREPARED": 584, + "PRIMARY": 585, + "PRIOR": 586, + "PRIVILEGES": 587, + "PROCEDURAL": 588, + "PROCEDURE": 589, + "PROCEDURES": 590, + "PROGRAM": 591, + "PUBLICATION": 592, + "QUOTE": 593, + "RANGE": 594, + "READ": 595, + "REAL": 596, + "REASSIGN": 597, + "RECHECK": 598, + "RECURSIVE": 599, + "REF_P": 600, + "REFERENCES": 601, + "REFERENCING": 602, + "REFRESH": 603, + "REINDEX": 604, + "RELATIVE_P": 605, + "RELEASE": 606, + "RENAME": 607, + "REPEATABLE": 608, + "REPLACE": 609, + "REPLICA": 610, + "RESET": 611, + "RESTART": 612, + "RESTRICT": 613, + "RETURN": 614, + "RETURNING": 615, + "RETURNS": 616, + "REVOKE": 617, + "RIGHT": 618, + "ROLE": 619, + "ROLLBACK": 620, + "ROLLUP": 621, + "ROUTINE": 622, + "ROUTINES": 623, + "ROW": 624, + "ROWS": 625, + "RULE": 626, + "SAVEPOINT": 627, + "SCALAR": 628, + "SCHEMA": 629, + "SCHEMAS": 630, + "SCROLL": 631, + "SEARCH": 632, + "SECOND_P": 633, + "SECURITY": 634, + "SELECT": 635, + "SEQUENCE": 636, + "SEQUENCES": 637, + "SERIALIZABLE": 638, + "SERVER": 639, + "SESSION": 640, + "SESSION_USER": 641, + "SET": 642, + "SETS": 643, + "SETOF": 644, + "SHARE": 645, + "SHOW": 646, + "SIMILAR": 647, + "SIMPLE": 648, + "SKIP": 649, + "SMALLINT": 650, + "SNAPSHOT": 651, + "SOME": 652, + "SQL_P": 653, + "STABLE": 654, + "STANDALONE_P": 655, + "START": 656, + "STATEMENT": 657, + "STATISTICS": 658, + "STDIN": 659, + "STDOUT": 660, + "STORAGE": 661, + "STORED": 662, + "STRICT_P": 663, + "STRIP_P": 664, + "SUBSCRIPTION": 665, + "SUBSTRING": 666, + "SUPPORT": 667, + "SYMMETRIC": 668, + "SYSID": 669, + "SYSTEM_P": 670, + "SYSTEM_USER": 671, + "TABLE": 672, + "TABLES": 673, + "TABLESAMPLE": 674, + "TABLESPACE": 675, + "TEMP": 676, + "TEMPLATE": 677, + "TEMPORARY": 678, + "TEXT_P": 679, + "THEN": 680, + "TIES": 681, + "TIME": 682, + "TIMESTAMP": 683, + "TO": 684, + "TRAILING": 685, + "TRANSACTION": 686, + "TRANSFORM": 687, + "TREAT": 688, + "TRIGGER": 689, + "TRIM": 690, + "TRUE_P": 691, + "TRUNCATE": 692, + "TRUSTED": 693, + "TYPE_P": 694, + "TYPES_P": 695, + "UESCAPE": 696, + "UNBOUNDED": 697, + "UNCOMMITTED": 698, + "UNENCRYPTED": 699, + "UNION": 700, + "UNIQUE": 701, + "UNKNOWN": 702, + "UNLISTEN": 703, + "UNLOGGED": 704, + "UNTIL": 705, + "UPDATE": 706, + "USER": 707, + "USING": 708, + "VACUUM": 709, + "VALID": 710, + "VALIDATE": 711, + "VALIDATOR": 712, + "VALUE_P": 713, + "VALUES": 714, + "VARCHAR": 715, + "VARIADIC": 716, + "VARYING": 717, + "VERBOSE": 718, + "VERSION_P": 719, + "VIEW": 720, + "VIEWS": 721, + "VOLATILE": 722, + "WHEN": 723, + "WHERE": 724, + "WHITESPACE_P": 725, + "WINDOW": 726, + "WITH": 727, + "WITHIN": 728, + "WITHOUT": 729, + "WORK": 730, + "WRAPPER": 731, + "WRITE": 732, + "XML_P": 733, + "XMLATTRIBUTES": 734, + "XMLCONCAT": 735, + "XMLELEMENT": 736, + "XMLEXISTS": 737, + "XMLFOREST": 738, + "XMLNAMESPACES": 739, + "XMLPARSE": 740, + "XMLPI": 741, + "XMLROOT": 742, + "XMLSERIALIZE": 743, + "XMLTABLE": 744, + "YEAR_P": 745, + "YES_P": 746, + "ZONE": 747, + "FORMAT_LA": 748, + "NOT_LA": 749, + "NULLS_LA": 750, + "WITH_LA": 751, + "WITHOUT_LA": 752, + "MODE_TYPE_NAME": 753, + "MODE_PLPGSQL_EXPR": 754, + "MODE_PLPGSQL_ASSIGN1": 755, + "MODE_PLPGSQL_ASSIGN2": 756, + "MODE_PLPGSQL_ASSIGN3": 757, + "UMINUS": 758 + } +}", + "file": "enums2int.ts", + }, + { + "code": "/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type OverridingKind = "OVERRIDING_NOT_SET" | "OVERRIDING_USER_VALUE" | "OVERRIDING_SYSTEM_VALUE"; +export type QuerySource = "QSRC_ORIGINAL" | "QSRC_PARSER" | "QSRC_INSTEAD_RULE" | "QSRC_QUAL_INSTEAD_RULE" | "QSRC_NON_INSTEAD_RULE"; +export type SortByDir = "SORTBY_DEFAULT" | "SORTBY_ASC" | "SORTBY_DESC" | "SORTBY_USING"; +export type SortByNulls = "SORTBY_NULLS_DEFAULT" | "SORTBY_NULLS_FIRST" | "SORTBY_NULLS_LAST"; +export type SetQuantifier = "SET_QUANTIFIER_DEFAULT" | "SET_QUANTIFIER_ALL" | "SET_QUANTIFIER_DISTINCT"; +export type A_Expr_Kind = "AEXPR_OP" | "AEXPR_OP_ANY" | "AEXPR_OP_ALL" | "AEXPR_DISTINCT" | "AEXPR_NOT_DISTINCT" | "AEXPR_NULLIF" | "AEXPR_IN" | "AEXPR_LIKE" | "AEXPR_ILIKE" | "AEXPR_SIMILAR" | "AEXPR_BETWEEN" | "AEXPR_NOT_BETWEEN" | "AEXPR_BETWEEN_SYM" | "AEXPR_NOT_BETWEEN_SYM"; +export type RoleSpecType = "ROLESPEC_CSTRING" | "ROLESPEC_CURRENT_ROLE" | "ROLESPEC_CURRENT_USER" | "ROLESPEC_SESSION_USER" | "ROLESPEC_PUBLIC"; +export type TableLikeOption = "CREATE_TABLE_LIKE_COMMENTS" | "CREATE_TABLE_LIKE_COMPRESSION" | "CREATE_TABLE_LIKE_CONSTRAINTS" | "CREATE_TABLE_LIKE_DEFAULTS" | "CREATE_TABLE_LIKE_GENERATED" | "CREATE_TABLE_LIKE_IDENTITY" | "CREATE_TABLE_LIKE_INDEXES" | "CREATE_TABLE_LIKE_STATISTICS" | "CREATE_TABLE_LIKE_STORAGE" | "CREATE_TABLE_LIKE_ALL"; +export type DefElemAction = "DEFELEM_UNSPEC" | "DEFELEM_SET" | "DEFELEM_ADD" | "DEFELEM_DROP"; +export type PartitionStrategy = "PARTITION_STRATEGY_LIST" | "PARTITION_STRATEGY_RANGE" | "PARTITION_STRATEGY_HASH"; +export type PartitionRangeDatumKind = "PARTITION_RANGE_DATUM_MINVALUE" | "PARTITION_RANGE_DATUM_VALUE" | "PARTITION_RANGE_DATUM_MAXVALUE"; +export type RTEKind = "RTE_RELATION" | "RTE_SUBQUERY" | "RTE_JOIN" | "RTE_FUNCTION" | "RTE_TABLEFUNC" | "RTE_VALUES" | "RTE_CTE" | "RTE_NAMEDTUPLESTORE" | "RTE_RESULT"; +export type WCOKind = "WCO_VIEW_CHECK" | "WCO_RLS_INSERT_CHECK" | "WCO_RLS_UPDATE_CHECK" | "WCO_RLS_CONFLICT_CHECK" | "WCO_RLS_MERGE_UPDATE_CHECK" | "WCO_RLS_MERGE_DELETE_CHECK"; +export type GroupingSetKind = "GROUPING_SET_EMPTY" | "GROUPING_SET_SIMPLE" | "GROUPING_SET_ROLLUP" | "GROUPING_SET_CUBE" | "GROUPING_SET_SETS"; +export type CTEMaterialize = "CTEMaterializeDefault" | "CTEMaterializeAlways" | "CTEMaterializeNever"; +export type SetOperation = "SETOP_NONE" | "SETOP_UNION" | "SETOP_INTERSECT" | "SETOP_EXCEPT"; +export type ObjectType = "OBJECT_ACCESS_METHOD" | "OBJECT_AGGREGATE" | "OBJECT_AMOP" | "OBJECT_AMPROC" | "OBJECT_ATTRIBUTE" | "OBJECT_CAST" | "OBJECT_COLUMN" | "OBJECT_COLLATION" | "OBJECT_CONVERSION" | "OBJECT_DATABASE" | "OBJECT_DEFAULT" | "OBJECT_DEFACL" | "OBJECT_DOMAIN" | "OBJECT_DOMCONSTRAINT" | "OBJECT_EVENT_TRIGGER" | "OBJECT_EXTENSION" | "OBJECT_FDW" | "OBJECT_FOREIGN_SERVER" | "OBJECT_FOREIGN_TABLE" | "OBJECT_FUNCTION" | "OBJECT_INDEX" | "OBJECT_LANGUAGE" | "OBJECT_LARGEOBJECT" | "OBJECT_MATVIEW" | "OBJECT_OPCLASS" | "OBJECT_OPERATOR" | "OBJECT_OPFAMILY" | "OBJECT_PARAMETER_ACL" | "OBJECT_POLICY" | "OBJECT_PROCEDURE" | "OBJECT_PUBLICATION" | "OBJECT_PUBLICATION_NAMESPACE" | "OBJECT_PUBLICATION_REL" | "OBJECT_ROLE" | "OBJECT_ROUTINE" | "OBJECT_RULE" | "OBJECT_SCHEMA" | "OBJECT_SEQUENCE" | "OBJECT_SUBSCRIPTION" | "OBJECT_STATISTIC_EXT" | "OBJECT_TABCONSTRAINT" | "OBJECT_TABLE" | "OBJECT_TABLESPACE" | "OBJECT_TRANSFORM" | "OBJECT_TRIGGER" | "OBJECT_TSCONFIGURATION" | "OBJECT_TSDICTIONARY" | "OBJECT_TSPARSER" | "OBJECT_TSTEMPLATE" | "OBJECT_TYPE" | "OBJECT_USER_MAPPING" | "OBJECT_VIEW"; +export type DropBehavior = "DROP_RESTRICT" | "DROP_CASCADE"; +export type AlterTableType = "AT_AddColumn" | "AT_AddColumnToView" | "AT_ColumnDefault" | "AT_CookedColumnDefault" | "AT_DropNotNull" | "AT_SetNotNull" | "AT_DropExpression" | "AT_CheckNotNull" | "AT_SetStatistics" | "AT_SetOptions" | "AT_ResetOptions" | "AT_SetStorage" | "AT_SetCompression" | "AT_DropColumn" | "AT_AddIndex" | "AT_ReAddIndex" | "AT_AddConstraint" | "AT_ReAddConstraint" | "AT_ReAddDomainConstraint" | "AT_AlterConstraint" | "AT_ValidateConstraint" | "AT_AddIndexConstraint" | "AT_DropConstraint" | "AT_ReAddComment" | "AT_AlterColumnType" | "AT_AlterColumnGenericOptions" | "AT_ChangeOwner" | "AT_ClusterOn" | "AT_DropCluster" | "AT_SetLogged" | "AT_SetUnLogged" | "AT_DropOids" | "AT_SetAccessMethod" | "AT_SetTableSpace" | "AT_SetRelOptions" | "AT_ResetRelOptions" | "AT_ReplaceRelOptions" | "AT_EnableTrig" | "AT_EnableAlwaysTrig" | "AT_EnableReplicaTrig" | "AT_DisableTrig" | "AT_EnableTrigAll" | "AT_DisableTrigAll" | "AT_EnableTrigUser" | "AT_DisableTrigUser" | "AT_EnableRule" | "AT_EnableAlwaysRule" | "AT_EnableReplicaRule" | "AT_DisableRule" | "AT_AddInherit" | "AT_DropInherit" | "AT_AddOf" | "AT_DropOf" | "AT_ReplicaIdentity" | "AT_EnableRowSecurity" | "AT_DisableRowSecurity" | "AT_ForceRowSecurity" | "AT_NoForceRowSecurity" | "AT_GenericOptions" | "AT_AttachPartition" | "AT_DetachPartition" | "AT_DetachPartitionFinalize" | "AT_AddIdentity" | "AT_SetIdentity" | "AT_DropIdentity" | "AT_ReAddStatistics"; +export type GrantTargetType = "ACL_TARGET_OBJECT" | "ACL_TARGET_ALL_IN_SCHEMA" | "ACL_TARGET_DEFAULTS"; +export type VariableSetKind = "VAR_SET_VALUE" | "VAR_SET_DEFAULT" | "VAR_SET_CURRENT" | "VAR_SET_MULTI" | "VAR_RESET" | "VAR_RESET_ALL"; +export type ConstrType = "CONSTR_NULL" | "CONSTR_NOTNULL" | "CONSTR_DEFAULT" | "CONSTR_IDENTITY" | "CONSTR_GENERATED" | "CONSTR_CHECK" | "CONSTR_PRIMARY" | "CONSTR_UNIQUE" | "CONSTR_EXCLUSION" | "CONSTR_FOREIGN" | "CONSTR_ATTR_DEFERRABLE" | "CONSTR_ATTR_NOT_DEFERRABLE" | "CONSTR_ATTR_DEFERRED" | "CONSTR_ATTR_IMMEDIATE"; +export type ImportForeignSchemaType = "FDW_IMPORT_SCHEMA_ALL" | "FDW_IMPORT_SCHEMA_LIMIT_TO" | "FDW_IMPORT_SCHEMA_EXCEPT"; +export type RoleStmtType = "ROLESTMT_ROLE" | "ROLESTMT_USER" | "ROLESTMT_GROUP"; +export type FetchDirection = "FETCH_FORWARD" | "FETCH_BACKWARD" | "FETCH_ABSOLUTE" | "FETCH_RELATIVE"; +export type FunctionParameterMode = "FUNC_PARAM_IN" | "FUNC_PARAM_OUT" | "FUNC_PARAM_INOUT" | "FUNC_PARAM_VARIADIC" | "FUNC_PARAM_TABLE" | "FUNC_PARAM_DEFAULT"; +export type TransactionStmtKind = "TRANS_STMT_BEGIN" | "TRANS_STMT_START" | "TRANS_STMT_COMMIT" | "TRANS_STMT_ROLLBACK" | "TRANS_STMT_SAVEPOINT" | "TRANS_STMT_RELEASE" | "TRANS_STMT_ROLLBACK_TO" | "TRANS_STMT_PREPARE" | "TRANS_STMT_COMMIT_PREPARED" | "TRANS_STMT_ROLLBACK_PREPARED"; +export type ViewCheckOption = "NO_CHECK_OPTION" | "LOCAL_CHECK_OPTION" | "CASCADED_CHECK_OPTION"; +export type DiscardMode = "DISCARD_ALL" | "DISCARD_PLANS" | "DISCARD_SEQUENCES" | "DISCARD_TEMP"; +export type ReindexObjectType = "REINDEX_OBJECT_INDEX" | "REINDEX_OBJECT_TABLE" | "REINDEX_OBJECT_SCHEMA" | "REINDEX_OBJECT_SYSTEM" | "REINDEX_OBJECT_DATABASE"; +export type AlterTSConfigType = "ALTER_TSCONFIG_ADD_MAPPING" | "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN" | "ALTER_TSCONFIG_REPLACE_DICT" | "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN" | "ALTER_TSCONFIG_DROP_MAPPING"; +export type PublicationObjSpecType = "PUBLICATIONOBJ_TABLE" | "PUBLICATIONOBJ_TABLES_IN_SCHEMA" | "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA" | "PUBLICATIONOBJ_CONTINUATION"; +export type AlterPublicationAction = "AP_AddObjects" | "AP_DropObjects" | "AP_SetObjects"; +export type AlterSubscriptionType = "ALTER_SUBSCRIPTION_OPTIONS" | "ALTER_SUBSCRIPTION_CONNECTION" | "ALTER_SUBSCRIPTION_SET_PUBLICATION" | "ALTER_SUBSCRIPTION_ADD_PUBLICATION" | "ALTER_SUBSCRIPTION_DROP_PUBLICATION" | "ALTER_SUBSCRIPTION_REFRESH" | "ALTER_SUBSCRIPTION_ENABLED" | "ALTER_SUBSCRIPTION_SKIP"; +export type OnCommitAction = "ONCOMMIT_NOOP" | "ONCOMMIT_PRESERVE_ROWS" | "ONCOMMIT_DELETE_ROWS" | "ONCOMMIT_DROP"; +export type ParamKind = "PARAM_EXTERN" | "PARAM_EXEC" | "PARAM_SUBLINK" | "PARAM_MULTIEXPR"; +export type CoercionContext = "COERCION_IMPLICIT" | "COERCION_ASSIGNMENT" | "COERCION_PLPGSQL" | "COERCION_EXPLICIT"; +export type CoercionForm = "COERCE_EXPLICIT_CALL" | "COERCE_EXPLICIT_CAST" | "COERCE_IMPLICIT_CAST" | "COERCE_SQL_SYNTAX"; +export type BoolExprType = "AND_EXPR" | "OR_EXPR" | "NOT_EXPR"; +export type SubLinkType = "EXISTS_SUBLINK" | "ALL_SUBLINK" | "ANY_SUBLINK" | "ROWCOMPARE_SUBLINK" | "EXPR_SUBLINK" | "MULTIEXPR_SUBLINK" | "ARRAY_SUBLINK" | "CTE_SUBLINK"; +export type RowCompareType = "ROWCOMPARE_LT" | "ROWCOMPARE_LE" | "ROWCOMPARE_EQ" | "ROWCOMPARE_GE" | "ROWCOMPARE_GT" | "ROWCOMPARE_NE"; +export type MinMaxOp = "IS_GREATEST" | "IS_LEAST"; +export type SQLValueFunctionOp = "SVFOP_CURRENT_DATE" | "SVFOP_CURRENT_TIME" | "SVFOP_CURRENT_TIME_N" | "SVFOP_CURRENT_TIMESTAMP" | "SVFOP_CURRENT_TIMESTAMP_N" | "SVFOP_LOCALTIME" | "SVFOP_LOCALTIME_N" | "SVFOP_LOCALTIMESTAMP" | "SVFOP_LOCALTIMESTAMP_N" | "SVFOP_CURRENT_ROLE" | "SVFOP_CURRENT_USER" | "SVFOP_USER" | "SVFOP_SESSION_USER" | "SVFOP_CURRENT_CATALOG" | "SVFOP_CURRENT_SCHEMA"; +export type XmlExprOp = "IS_XMLCONCAT" | "IS_XMLELEMENT" | "IS_XMLFOREST" | "IS_XMLPARSE" | "IS_XMLPI" | "IS_XMLROOT" | "IS_XMLSERIALIZE" | "IS_DOCUMENT"; +export type XmlOptionType = "XMLOPTION_DOCUMENT" | "XMLOPTION_CONTENT"; +export type JsonEncoding = "JS_ENC_DEFAULT" | "JS_ENC_UTF8" | "JS_ENC_UTF16" | "JS_ENC_UTF32"; +export type JsonFormatType = "JS_FORMAT_DEFAULT" | "JS_FORMAT_JSON" | "JS_FORMAT_JSONB"; +export type JsonConstructorType = "JSCTOR_JSON_OBJECT" | "JSCTOR_JSON_ARRAY" | "JSCTOR_JSON_OBJECTAGG" | "JSCTOR_JSON_ARRAYAGG"; +export type JsonValueType = "JS_TYPE_ANY" | "JS_TYPE_OBJECT" | "JS_TYPE_ARRAY" | "JS_TYPE_SCALAR"; +export type NullTestType = "IS_NULL" | "IS_NOT_NULL"; +export type BoolTestType = "IS_TRUE" | "IS_NOT_TRUE" | "IS_FALSE" | "IS_NOT_FALSE" | "IS_UNKNOWN" | "IS_NOT_UNKNOWN"; +export type CmdType = "CMD_UNKNOWN" | "CMD_SELECT" | "CMD_UPDATE" | "CMD_INSERT" | "CMD_DELETE" | "CMD_MERGE" | "CMD_UTILITY" | "CMD_NOTHING"; +export type JoinType = "JOIN_INNER" | "JOIN_LEFT" | "JOIN_FULL" | "JOIN_RIGHT" | "JOIN_SEMI" | "JOIN_ANTI" | "JOIN_RIGHT_ANTI" | "JOIN_UNIQUE_OUTER" | "JOIN_UNIQUE_INNER"; +export type AggStrategy = "AGG_PLAIN" | "AGG_SORTED" | "AGG_HASHED" | "AGG_MIXED"; +export type AggSplit = "AGGSPLIT_SIMPLE" | "AGGSPLIT_INITIAL_SERIAL" | "AGGSPLIT_FINAL_DESERIAL"; +export type SetOpCmd = "SETOPCMD_INTERSECT" | "SETOPCMD_INTERSECT_ALL" | "SETOPCMD_EXCEPT" | "SETOPCMD_EXCEPT_ALL"; +export type SetOpStrategy = "SETOP_SORTED" | "SETOP_HASHED"; +export type OnConflictAction = "ONCONFLICT_NONE" | "ONCONFLICT_NOTHING" | "ONCONFLICT_UPDATE"; +export type LimitOption = "LIMIT_OPTION_DEFAULT" | "LIMIT_OPTION_COUNT" | "LIMIT_OPTION_WITH_TIES"; +export type LockClauseStrength = "LCS_NONE" | "LCS_FORKEYSHARE" | "LCS_FORSHARE" | "LCS_FORNOKEYUPDATE" | "LCS_FORUPDATE"; +export type LockWaitPolicy = "LockWaitBlock" | "LockWaitSkip" | "LockWaitError"; +export type LockTupleMode = "LockTupleKeyShare" | "LockTupleShare" | "LockTupleNoKeyExclusive" | "LockTupleExclusive"; +export type KeywordKind = "NO_KEYWORD" | "UNRESERVED_KEYWORD" | "COL_NAME_KEYWORD" | "TYPE_FUNC_NAME_KEYWORD" | "RESERVED_KEYWORD"; +export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | "ASCII_42" | "ASCII_43" | "ASCII_44" | "ASCII_45" | "ASCII_46" | "ASCII_47" | "ASCII_58" | "ASCII_59" | "ASCII_60" | "ASCII_61" | "ASCII_62" | "ASCII_63" | "ASCII_91" | "ASCII_92" | "ASCII_93" | "ASCII_94" | "IDENT" | "UIDENT" | "FCONST" | "SCONST" | "USCONST" | "BCONST" | "XCONST" | "Op" | "ICONST" | "PARAM" | "TYPECAST" | "DOT_DOT" | "COLON_EQUALS" | "EQUALS_GREATER" | "LESS_EQUALS" | "GREATER_EQUALS" | "NOT_EQUALS" | "SQL_COMMENT" | "C_COMMENT" | "ABORT_P" | "ABSENT" | "ABSOLUTE_P" | "ACCESS" | "ACTION" | "ADD_P" | "ADMIN" | "AFTER" | "AGGREGATE" | "ALL" | "ALSO" | "ALTER" | "ALWAYS" | "ANALYSE" | "ANALYZE" | "AND" | "ANY" | "ARRAY" | "AS" | "ASC" | "ASENSITIVE" | "ASSERTION" | "ASSIGNMENT" | "ASYMMETRIC" | "ATOMIC" | "AT" | "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" | "CHAR_P" | "CHARACTER" | "CHARACTERISTICS" | "CHECK" | "CHECKPOINT" | "CLASS" | "CLOSE" | "CLUSTER" | "COALESCE" | "COLLATE" | "COLLATION" | "COLUMN" | "COLUMNS" | "COMMENT" | "COMMENTS" | "COMMIT" | "COMMITTED" | "COMPRESSION" | "CONCURRENTLY" | "CONFIGURATION" | "CONFLICT" | "CONNECTION" | "CONSTRAINT" | "CONSTRAINTS" | "CONTENT_P" | "CONTINUE_P" | "CONVERSION_P" | "COPY" | "COST" | "CREATE" | "CROSS" | "CSV" | "CUBE" | "CURRENT_P" | "CURRENT_CATALOG" | "CURRENT_DATE" | "CURRENT_ROLE" | "CURRENT_SCHEMA" | "CURRENT_TIME" | "CURRENT_TIMESTAMP" | "CURRENT_USER" | "CURSOR" | "CYCLE" | "DATA_P" | "DATABASE" | "DAY_P" | "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" | "ENABLE_P" | "ENCODING" | "ENCRYPTED" | "END_P" | "ENUM_P" | "ESCAPE" | "EVENT" | "EXCEPT" | "EXCLUDE" | "EXCLUDING" | "EXCLUSIVE" | "EXECUTE" | "EXISTS" | "EXPLAIN" | "EXPRESSION" | "EXTENSION" | "EXTERNAL" | "EXTRACT" | "FALSE_P" | "FAMILY" | "FETCH" | "FILTER" | "FINALIZE" | "FIRST_P" | "FLOAT_P" | "FOLLOWING" | "FOR" | "FORCE" | "FOREIGN" | "FORMAT" | "FORWARD" | "FREEZE" | "FROM" | "FULL" | "FUNCTION" | "FUNCTIONS" | "GENERATED" | "GLOBAL" | "GRANT" | "GRANTED" | "GREATEST" | "GROUP_P" | "GROUPING" | "GROUPS" | "HANDLER" | "HAVING" | "HEADER_P" | "HOLD" | "HOUR_P" | "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" | "INTERSECT" | "INTERVAL" | "INTO" | "INVOKER" | "IS" | "ISNULL" | "ISOLATION" | "JOIN" | "JSON" | "JSON_ARRAY" | "JSON_ARRAYAGG" | "JSON_OBJECT" | "JSON_OBJECTAGG" | "KEY" | "KEYS" | "LABEL" | "LANGUAGE" | "LARGE_P" | "LAST_P" | "LATERAL_P" | "LEADING" | "LEAKPROOF" | "LEAST" | "LEFT" | "LEVEL" | "LIKE" | "LIMIT" | "LISTEN" | "LOAD" | "LOCAL" | "LOCALTIME" | "LOCALTIMESTAMP" | "LOCATION" | "LOCK_P" | "LOCKED" | "LOGGED" | "MAPPING" | "MATCH" | "MATCHED" | "MATERIALIZED" | "MAXVALUE" | "MERGE" | "METHOD" | "MINUTE_P" | "MINVALUE" | "MODE" | "MONTH_P" | "MOVE" | "NAME_P" | "NAMES" | "NATIONAL" | "NATURAL" | "NCHAR" | "NEW" | "NEXT" | "NFC" | "NFD" | "NFKC" | "NFKD" | "NO" | "NONE" | "NORMALIZE" | "NORMALIZED" | "NOT" | "NOTHING" | "NOTIFY" | "NOTNULL" | "NOWAIT" | "NULL_P" | "NULLIF" | "NULLS_P" | "NUMERIC" | "OBJECT_P" | "OF" | "OFF" | "OFFSET" | "OIDS" | "OLD" | "ON" | "ONLY" | "OPERATOR" | "OPTION" | "OPTIONS" | "OR" | "ORDER" | "ORDINALITY" | "OTHERS" | "OUT_P" | "OUTER_P" | "OVER" | "OVERLAPS" | "OVERLAY" | "OVERRIDING" | "OWNED" | "OWNER" | "PARALLEL" | "PARAMETER" | "PARSER" | "PARTIAL" | "PARTITION" | "PASSING" | "PASSWORD" | "PLACING" | "PLANS" | "POLICY" | "POSITION" | "PRECEDING" | "PRECISION" | "PRESERVE" | "PREPARE" | "PREPARED" | "PRIMARY" | "PRIOR" | "PRIVILEGES" | "PROCEDURAL" | "PROCEDURE" | "PROCEDURES" | "PROGRAM" | "PUBLICATION" | "QUOTE" | "RANGE" | "READ" | "REAL" | "REASSIGN" | "RECHECK" | "RECURSIVE" | "REF_P" | "REFERENCES" | "REFERENCING" | "REFRESH" | "REINDEX" | "RELATIVE_P" | "RELEASE" | "RENAME" | "REPEATABLE" | "REPLACE" | "REPLICA" | "RESET" | "RESTART" | "RESTRICT" | "RETURN" | "RETURNING" | "RETURNS" | "REVOKE" | "RIGHT" | "ROLE" | "ROLLBACK" | "ROLLUP" | "ROUTINE" | "ROUTINES" | "ROW" | "ROWS" | "RULE" | "SAVEPOINT" | "SCALAR" | "SCHEMA" | "SCHEMAS" | "SCROLL" | "SEARCH" | "SECOND_P" | "SECURITY" | "SELECT" | "SEQUENCE" | "SEQUENCES" | "SERIALIZABLE" | "SERVER" | "SESSION" | "SESSION_USER" | "SET" | "SETS" | "SETOF" | "SHARE" | "SHOW" | "SIMILAR" | "SIMPLE" | "SKIP" | "SMALLINT" | "SNAPSHOT" | "SOME" | "SQL_P" | "STABLE" | "STANDALONE_P" | "START" | "STATEMENT" | "STATISTICS" | "STDIN" | "STDOUT" | "STORAGE" | "STORED" | "STRICT_P" | "STRIP_P" | "SUBSCRIPTION" | "SUBSTRING" | "SUPPORT" | "SYMMETRIC" | "SYSID" | "SYSTEM_P" | "SYSTEM_USER" | "TABLE" | "TABLES" | "TABLESAMPLE" | "TABLESPACE" | "TEMP" | "TEMPLATE" | "TEMPORARY" | "TEXT_P" | "THEN" | "TIES" | "TIME" | "TIMESTAMP" | "TO" | "TRAILING" | "TRANSACTION" | "TRANSFORM" | "TREAT" | "TRIGGER" | "TRIM" | "TRUE_P" | "TRUNCATE" | "TRUSTED" | "TYPE_P" | "TYPES_P" | "UESCAPE" | "UNBOUNDED" | "UNCOMMITTED" | "UNENCRYPTED" | "UNION" | "UNIQUE" | "UNKNOWN" | "UNLISTEN" | "UNLOGGED" | "UNTIL" | "UPDATE" | "USER" | "USING" | "VACUUM" | "VALID" | "VALIDATE" | "VALIDATOR" | "VALUE_P" | "VALUES" | "VARCHAR" | "VARIADIC" | "VARYING" | "VERBOSE" | "VERSION_P" | "VIEW" | "VIEWS" | "VOLATILE" | "WHEN" | "WHERE" | "WHITESPACE_P" | "WINDOW" | "WITH" | "WITHIN" | "WITHOUT" | "WORK" | "WRAPPER" | "WRITE" | "XML_P" | "XMLATTRIBUTES" | "XMLCONCAT" | "XMLELEMENT" | "XMLEXISTS" | "XMLFOREST" | "XMLNAMESPACES" | "XMLPARSE" | "XMLPI" | "XMLROOT" | "XMLSERIALIZE" | "XMLTABLE" | "YEAR_P" | "YES_P" | "ZONE" | "FORMAT_LA" | "NOT_LA" | "NULLS_LA" | "WITH_LA" | "WITHOUT_LA" | "MODE_TYPE_NAME" | "MODE_PLPGSQL_EXPR" | "MODE_PLPGSQL_ASSIGN1" | "MODE_PLPGSQL_ASSIGN2" | "MODE_PLPGSQL_ASSIGN3" | "UMINUS";", + "file": "enums.ts", + }, + { + "code": "{ + "OverridingKind": { + "0": "OVERRIDING_NOT_SET", + "1": "OVERRIDING_USER_VALUE", + "2": "OVERRIDING_SYSTEM_VALUE" + }, + "QuerySource": { + "0": "QSRC_ORIGINAL", + "1": "QSRC_PARSER", + "2": "QSRC_INSTEAD_RULE", + "3": "QSRC_QUAL_INSTEAD_RULE", + "4": "QSRC_NON_INSTEAD_RULE" + }, + "SortByDir": { + "0": "SORTBY_DEFAULT", + "1": "SORTBY_ASC", + "2": "SORTBY_DESC", + "3": "SORTBY_USING" + }, + "SortByNulls": { + "0": "SORTBY_NULLS_DEFAULT", + "1": "SORTBY_NULLS_FIRST", + "2": "SORTBY_NULLS_LAST" + }, + "SetQuantifier": { + "0": "SET_QUANTIFIER_DEFAULT", + "1": "SET_QUANTIFIER_ALL", + "2": "SET_QUANTIFIER_DISTINCT" + }, + "A_Expr_Kind": { + "0": "AEXPR_OP", + "1": "AEXPR_OP_ANY", + "2": "AEXPR_OP_ALL", + "3": "AEXPR_DISTINCT", + "4": "AEXPR_NOT_DISTINCT", + "5": "AEXPR_NULLIF", + "6": "AEXPR_IN", + "7": "AEXPR_LIKE", + "8": "AEXPR_ILIKE", + "9": "AEXPR_SIMILAR", + "10": "AEXPR_BETWEEN", + "11": "AEXPR_NOT_BETWEEN", + "12": "AEXPR_BETWEEN_SYM", + "13": "AEXPR_NOT_BETWEEN_SYM" + }, + "RoleSpecType": { + "0": "ROLESPEC_CSTRING", + "1": "ROLESPEC_CURRENT_ROLE", + "2": "ROLESPEC_CURRENT_USER", + "3": "ROLESPEC_SESSION_USER", + "4": "ROLESPEC_PUBLIC" + }, + "TableLikeOption": { + "0": "CREATE_TABLE_LIKE_COMMENTS", + "1": "CREATE_TABLE_LIKE_COMPRESSION", + "2": "CREATE_TABLE_LIKE_CONSTRAINTS", + "3": "CREATE_TABLE_LIKE_DEFAULTS", + "4": "CREATE_TABLE_LIKE_GENERATED", + "5": "CREATE_TABLE_LIKE_IDENTITY", + "6": "CREATE_TABLE_LIKE_INDEXES", + "7": "CREATE_TABLE_LIKE_STATISTICS", + "8": "CREATE_TABLE_LIKE_STORAGE", + "9": "CREATE_TABLE_LIKE_ALL" + }, + "DefElemAction": { + "0": "DEFELEM_UNSPEC", + "1": "DEFELEM_SET", + "2": "DEFELEM_ADD", + "3": "DEFELEM_DROP" + }, + "PartitionStrategy": { + "0": "PARTITION_STRATEGY_LIST", + "1": "PARTITION_STRATEGY_RANGE", + "2": "PARTITION_STRATEGY_HASH" + }, + "PartitionRangeDatumKind": { + "0": "PARTITION_RANGE_DATUM_MINVALUE", + "1": "PARTITION_RANGE_DATUM_VALUE", + "2": "PARTITION_RANGE_DATUM_MAXVALUE" + }, + "RTEKind": { + "0": "RTE_RELATION", + "1": "RTE_SUBQUERY", + "2": "RTE_JOIN", + "3": "RTE_FUNCTION", + "4": "RTE_TABLEFUNC", + "5": "RTE_VALUES", + "6": "RTE_CTE", + "7": "RTE_NAMEDTUPLESTORE", + "8": "RTE_RESULT" + }, + "WCOKind": { + "0": "WCO_VIEW_CHECK", + "1": "WCO_RLS_INSERT_CHECK", + "2": "WCO_RLS_UPDATE_CHECK", + "3": "WCO_RLS_CONFLICT_CHECK", + "4": "WCO_RLS_MERGE_UPDATE_CHECK", + "5": "WCO_RLS_MERGE_DELETE_CHECK" + }, + "GroupingSetKind": { + "0": "GROUPING_SET_EMPTY", + "1": "GROUPING_SET_SIMPLE", + "2": "GROUPING_SET_ROLLUP", + "3": "GROUPING_SET_CUBE", + "4": "GROUPING_SET_SETS" + }, + "CTEMaterialize": { + "0": "CTEMaterializeDefault", + "1": "CTEMaterializeAlways", + "2": "CTEMaterializeNever" + }, + "SetOperation": { + "0": "SETOP_NONE", + "1": "SETOP_UNION", + "2": "SETOP_INTERSECT", + "3": "SETOP_EXCEPT" + }, + "ObjectType": { + "0": "OBJECT_ACCESS_METHOD", + "1": "OBJECT_AGGREGATE", + "2": "OBJECT_AMOP", + "3": "OBJECT_AMPROC", + "4": "OBJECT_ATTRIBUTE", + "5": "OBJECT_CAST", + "6": "OBJECT_COLUMN", + "7": "OBJECT_COLLATION", + "8": "OBJECT_CONVERSION", + "9": "OBJECT_DATABASE", + "10": "OBJECT_DEFAULT", + "11": "OBJECT_DEFACL", + "12": "OBJECT_DOMAIN", + "13": "OBJECT_DOMCONSTRAINT", + "14": "OBJECT_EVENT_TRIGGER", + "15": "OBJECT_EXTENSION", + "16": "OBJECT_FDW", + "17": "OBJECT_FOREIGN_SERVER", + "18": "OBJECT_FOREIGN_TABLE", + "19": "OBJECT_FUNCTION", + "20": "OBJECT_INDEX", + "21": "OBJECT_LANGUAGE", + "22": "OBJECT_LARGEOBJECT", + "23": "OBJECT_MATVIEW", + "24": "OBJECT_OPCLASS", + "25": "OBJECT_OPERATOR", + "26": "OBJECT_OPFAMILY", + "27": "OBJECT_PARAMETER_ACL", + "28": "OBJECT_POLICY", + "29": "OBJECT_PROCEDURE", + "30": "OBJECT_PUBLICATION", + "31": "OBJECT_PUBLICATION_NAMESPACE", + "32": "OBJECT_PUBLICATION_REL", + "33": "OBJECT_ROLE", + "34": "OBJECT_ROUTINE", + "35": "OBJECT_RULE", + "36": "OBJECT_SCHEMA", + "37": "OBJECT_SEQUENCE", + "38": "OBJECT_SUBSCRIPTION", + "39": "OBJECT_STATISTIC_EXT", + "40": "OBJECT_TABCONSTRAINT", + "41": "OBJECT_TABLE", + "42": "OBJECT_TABLESPACE", + "43": "OBJECT_TRANSFORM", + "44": "OBJECT_TRIGGER", + "45": "OBJECT_TSCONFIGURATION", + "46": "OBJECT_TSDICTIONARY", + "47": "OBJECT_TSPARSER", + "48": "OBJECT_TSTEMPLATE", + "49": "OBJECT_TYPE", + "50": "OBJECT_USER_MAPPING", + "51": "OBJECT_VIEW" + }, + "DropBehavior": { + "0": "DROP_RESTRICT", + "1": "DROP_CASCADE" + }, + "AlterTableType": { + "0": "AT_AddColumn", + "1": "AT_AddColumnToView", + "2": "AT_ColumnDefault", + "3": "AT_CookedColumnDefault", + "4": "AT_DropNotNull", + "5": "AT_SetNotNull", + "6": "AT_DropExpression", + "7": "AT_CheckNotNull", + "8": "AT_SetStatistics", + "9": "AT_SetOptions", + "10": "AT_ResetOptions", + "11": "AT_SetStorage", + "12": "AT_SetCompression", + "13": "AT_DropColumn", + "14": "AT_AddIndex", + "15": "AT_ReAddIndex", + "16": "AT_AddConstraint", + "17": "AT_ReAddConstraint", + "18": "AT_ReAddDomainConstraint", + "19": "AT_AlterConstraint", + "20": "AT_ValidateConstraint", + "21": "AT_AddIndexConstraint", + "22": "AT_DropConstraint", + "23": "AT_ReAddComment", + "24": "AT_AlterColumnType", + "25": "AT_AlterColumnGenericOptions", + "26": "AT_ChangeOwner", + "27": "AT_ClusterOn", + "28": "AT_DropCluster", + "29": "AT_SetLogged", + "30": "AT_SetUnLogged", + "31": "AT_DropOids", + "32": "AT_SetAccessMethod", + "33": "AT_SetTableSpace", + "34": "AT_SetRelOptions", + "35": "AT_ResetRelOptions", + "36": "AT_ReplaceRelOptions", + "37": "AT_EnableTrig", + "38": "AT_EnableAlwaysTrig", + "39": "AT_EnableReplicaTrig", + "40": "AT_DisableTrig", + "41": "AT_EnableTrigAll", + "42": "AT_DisableTrigAll", + "43": "AT_EnableTrigUser", + "44": "AT_DisableTrigUser", + "45": "AT_EnableRule", + "46": "AT_EnableAlwaysRule", + "47": "AT_EnableReplicaRule", + "48": "AT_DisableRule", + "49": "AT_AddInherit", + "50": "AT_DropInherit", + "51": "AT_AddOf", + "52": "AT_DropOf", + "53": "AT_ReplicaIdentity", + "54": "AT_EnableRowSecurity", + "55": "AT_DisableRowSecurity", + "56": "AT_ForceRowSecurity", + "57": "AT_NoForceRowSecurity", + "58": "AT_GenericOptions", + "59": "AT_AttachPartition", + "60": "AT_DetachPartition", + "61": "AT_DetachPartitionFinalize", + "62": "AT_AddIdentity", + "63": "AT_SetIdentity", + "64": "AT_DropIdentity", + "65": "AT_ReAddStatistics" + }, + "GrantTargetType": { + "0": "ACL_TARGET_OBJECT", + "1": "ACL_TARGET_ALL_IN_SCHEMA", + "2": "ACL_TARGET_DEFAULTS" + }, + "VariableSetKind": { + "0": "VAR_SET_VALUE", + "1": "VAR_SET_DEFAULT", + "2": "VAR_SET_CURRENT", + "3": "VAR_SET_MULTI", + "4": "VAR_RESET", + "5": "VAR_RESET_ALL" + }, + "ConstrType": { + "0": "CONSTR_NULL", + "1": "CONSTR_NOTNULL", + "2": "CONSTR_DEFAULT", + "3": "CONSTR_IDENTITY", + "4": "CONSTR_GENERATED", + "5": "CONSTR_CHECK", + "6": "CONSTR_PRIMARY", + "7": "CONSTR_UNIQUE", + "8": "CONSTR_EXCLUSION", + "9": "CONSTR_FOREIGN", + "10": "CONSTR_ATTR_DEFERRABLE", + "11": "CONSTR_ATTR_NOT_DEFERRABLE", + "12": "CONSTR_ATTR_DEFERRED", + "13": "CONSTR_ATTR_IMMEDIATE" + }, + "ImportForeignSchemaType": { + "0": "FDW_IMPORT_SCHEMA_ALL", + "1": "FDW_IMPORT_SCHEMA_LIMIT_TO", + "2": "FDW_IMPORT_SCHEMA_EXCEPT" + }, + "RoleStmtType": { + "0": "ROLESTMT_ROLE", + "1": "ROLESTMT_USER", + "2": "ROLESTMT_GROUP" + }, + "FetchDirection": { + "0": "FETCH_FORWARD", + "1": "FETCH_BACKWARD", + "2": "FETCH_ABSOLUTE", + "3": "FETCH_RELATIVE" + }, + "FunctionParameterMode": { + "0": "FUNC_PARAM_IN", + "1": "FUNC_PARAM_OUT", + "2": "FUNC_PARAM_INOUT", + "3": "FUNC_PARAM_VARIADIC", + "4": "FUNC_PARAM_TABLE", + "5": "FUNC_PARAM_DEFAULT" + }, + "TransactionStmtKind": { + "0": "TRANS_STMT_BEGIN", + "1": "TRANS_STMT_START", + "2": "TRANS_STMT_COMMIT", + "3": "TRANS_STMT_ROLLBACK", + "4": "TRANS_STMT_SAVEPOINT", + "5": "TRANS_STMT_RELEASE", + "6": "TRANS_STMT_ROLLBACK_TO", + "7": "TRANS_STMT_PREPARE", + "8": "TRANS_STMT_COMMIT_PREPARED", + "9": "TRANS_STMT_ROLLBACK_PREPARED" + }, + "ViewCheckOption": { + "0": "NO_CHECK_OPTION", + "1": "LOCAL_CHECK_OPTION", + "2": "CASCADED_CHECK_OPTION" + }, + "DiscardMode": { + "0": "DISCARD_ALL", + "1": "DISCARD_PLANS", + "2": "DISCARD_SEQUENCES", + "3": "DISCARD_TEMP" + }, + "ReindexObjectType": { + "0": "REINDEX_OBJECT_INDEX", + "1": "REINDEX_OBJECT_TABLE", + "2": "REINDEX_OBJECT_SCHEMA", + "3": "REINDEX_OBJECT_SYSTEM", + "4": "REINDEX_OBJECT_DATABASE" + }, + "AlterTSConfigType": { + "0": "ALTER_TSCONFIG_ADD_MAPPING", + "1": "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN", + "2": "ALTER_TSCONFIG_REPLACE_DICT", + "3": "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN", + "4": "ALTER_TSCONFIG_DROP_MAPPING" + }, + "PublicationObjSpecType": { + "0": "PUBLICATIONOBJ_TABLE", + "1": "PUBLICATIONOBJ_TABLES_IN_SCHEMA", + "2": "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA", + "3": "PUBLICATIONOBJ_CONTINUATION" + }, + "AlterPublicationAction": { + "0": "AP_AddObjects", + "1": "AP_DropObjects", + "2": "AP_SetObjects" + }, + "AlterSubscriptionType": { + "0": "ALTER_SUBSCRIPTION_OPTIONS", + "1": "ALTER_SUBSCRIPTION_CONNECTION", + "2": "ALTER_SUBSCRIPTION_SET_PUBLICATION", + "3": "ALTER_SUBSCRIPTION_ADD_PUBLICATION", + "4": "ALTER_SUBSCRIPTION_DROP_PUBLICATION", + "5": "ALTER_SUBSCRIPTION_REFRESH", + "6": "ALTER_SUBSCRIPTION_ENABLED", + "7": "ALTER_SUBSCRIPTION_SKIP" + }, + "OnCommitAction": { + "0": "ONCOMMIT_NOOP", + "1": "ONCOMMIT_PRESERVE_ROWS", + "2": "ONCOMMIT_DELETE_ROWS", + "3": "ONCOMMIT_DROP" + }, + "ParamKind": { + "0": "PARAM_EXTERN", + "1": "PARAM_EXEC", + "2": "PARAM_SUBLINK", + "3": "PARAM_MULTIEXPR" + }, + "CoercionContext": { + "0": "COERCION_IMPLICIT", + "1": "COERCION_ASSIGNMENT", + "2": "COERCION_PLPGSQL", + "3": "COERCION_EXPLICIT" + }, + "CoercionForm": { + "0": "COERCE_EXPLICIT_CALL", + "1": "COERCE_EXPLICIT_CAST", + "2": "COERCE_IMPLICIT_CAST", + "3": "COERCE_SQL_SYNTAX" + }, + "BoolExprType": { + "0": "AND_EXPR", + "1": "OR_EXPR", + "2": "NOT_EXPR" + }, + "SubLinkType": { + "0": "EXISTS_SUBLINK", + "1": "ALL_SUBLINK", + "2": "ANY_SUBLINK", + "3": "ROWCOMPARE_SUBLINK", + "4": "EXPR_SUBLINK", + "5": "MULTIEXPR_SUBLINK", + "6": "ARRAY_SUBLINK", + "7": "CTE_SUBLINK" + }, + "RowCompareType": { + "0": "ROWCOMPARE_LT", + "1": "ROWCOMPARE_LE", + "2": "ROWCOMPARE_EQ", + "3": "ROWCOMPARE_GE", + "4": "ROWCOMPARE_GT", + "5": "ROWCOMPARE_NE" + }, + "MinMaxOp": { + "0": "IS_GREATEST", + "1": "IS_LEAST" + }, + "SQLValueFunctionOp": { + "0": "SVFOP_CURRENT_DATE", + "1": "SVFOP_CURRENT_TIME", + "2": "SVFOP_CURRENT_TIME_N", + "3": "SVFOP_CURRENT_TIMESTAMP", + "4": "SVFOP_CURRENT_TIMESTAMP_N", + "5": "SVFOP_LOCALTIME", + "6": "SVFOP_LOCALTIME_N", + "7": "SVFOP_LOCALTIMESTAMP", + "8": "SVFOP_LOCALTIMESTAMP_N", + "9": "SVFOP_CURRENT_ROLE", + "10": "SVFOP_CURRENT_USER", + "11": "SVFOP_USER", + "12": "SVFOP_SESSION_USER", + "13": "SVFOP_CURRENT_CATALOG", + "14": "SVFOP_CURRENT_SCHEMA" + }, + "XmlExprOp": { + "0": "IS_XMLCONCAT", + "1": "IS_XMLELEMENT", + "2": "IS_XMLFOREST", + "3": "IS_XMLPARSE", + "4": "IS_XMLPI", + "5": "IS_XMLROOT", + "6": "IS_XMLSERIALIZE", + "7": "IS_DOCUMENT" + }, + "XmlOptionType": { + "0": "XMLOPTION_DOCUMENT", + "1": "XMLOPTION_CONTENT" + }, + "JsonEncoding": { + "0": "JS_ENC_DEFAULT", + "1": "JS_ENC_UTF8", + "2": "JS_ENC_UTF16", + "3": "JS_ENC_UTF32" + }, + "JsonFormatType": { + "0": "JS_FORMAT_DEFAULT", + "1": "JS_FORMAT_JSON", + "2": "JS_FORMAT_JSONB" + }, + "JsonConstructorType": { + "0": "JSCTOR_JSON_OBJECT", + "1": "JSCTOR_JSON_ARRAY", + "2": "JSCTOR_JSON_OBJECTAGG", + "3": "JSCTOR_JSON_ARRAYAGG" + }, + "JsonValueType": { + "0": "JS_TYPE_ANY", + "1": "JS_TYPE_OBJECT", + "2": "JS_TYPE_ARRAY", + "3": "JS_TYPE_SCALAR" + }, + "NullTestType": { + "0": "IS_NULL", + "1": "IS_NOT_NULL" + }, + "BoolTestType": { + "0": "IS_TRUE", + "1": "IS_NOT_TRUE", + "2": "IS_FALSE", + "3": "IS_NOT_FALSE", + "4": "IS_UNKNOWN", + "5": "IS_NOT_UNKNOWN" + }, + "CmdType": { + "0": "CMD_UNKNOWN", + "1": "CMD_SELECT", + "2": "CMD_UPDATE", + "3": "CMD_INSERT", + "4": "CMD_DELETE", + "5": "CMD_MERGE", + "6": "CMD_UTILITY", + "7": "CMD_NOTHING" + }, + "JoinType": { + "0": "JOIN_INNER", + "1": "JOIN_LEFT", + "2": "JOIN_FULL", + "3": "JOIN_RIGHT", + "4": "JOIN_SEMI", + "5": "JOIN_ANTI", + "6": "JOIN_RIGHT_ANTI", + "7": "JOIN_UNIQUE_OUTER", + "8": "JOIN_UNIQUE_INNER" + }, + "AggStrategy": { + "0": "AGG_PLAIN", + "1": "AGG_SORTED", + "2": "AGG_HASHED", + "3": "AGG_MIXED" + }, + "AggSplit": { + "0": "AGGSPLIT_SIMPLE", + "1": "AGGSPLIT_INITIAL_SERIAL", + "2": "AGGSPLIT_FINAL_DESERIAL" + }, + "SetOpCmd": { + "0": "SETOPCMD_INTERSECT", + "1": "SETOPCMD_INTERSECT_ALL", + "2": "SETOPCMD_EXCEPT", + "3": "SETOPCMD_EXCEPT_ALL" + }, + "SetOpStrategy": { + "0": "SETOP_SORTED", + "1": "SETOP_HASHED" + }, + "OnConflictAction": { + "0": "ONCONFLICT_NONE", + "1": "ONCONFLICT_NOTHING", + "2": "ONCONFLICT_UPDATE" + }, + "LimitOption": { + "0": "LIMIT_OPTION_DEFAULT", + "1": "LIMIT_OPTION_COUNT", + "2": "LIMIT_OPTION_WITH_TIES" + }, + "LockClauseStrength": { + "0": "LCS_NONE", + "1": "LCS_FORKEYSHARE", + "2": "LCS_FORSHARE", + "3": "LCS_FORNOKEYUPDATE", + "4": "LCS_FORUPDATE" + }, + "LockWaitPolicy": { + "0": "LockWaitBlock", + "1": "LockWaitSkip", + "2": "LockWaitError" + }, + "LockTupleMode": { + "0": "LockTupleKeyShare", + "1": "LockTupleShare", + "2": "LockTupleNoKeyExclusive", + "3": "LockTupleExclusive" + }, + "KeywordKind": { + "0": "NO_KEYWORD", + "1": "UNRESERVED_KEYWORD", + "2": "COL_NAME_KEYWORD", + "3": "TYPE_FUNC_NAME_KEYWORD", + "4": "RESERVED_KEYWORD" + }, + "Token": { + "0": "NUL", + "36": "ASCII_36", + "37": "ASCII_37", + "40": "ASCII_40", + "41": "ASCII_41", + "42": "ASCII_42", + "43": "ASCII_43", + "44": "ASCII_44", + "45": "ASCII_45", + "46": "ASCII_46", + "47": "ASCII_47", + "58": "ASCII_58", + "59": "ASCII_59", + "60": "ASCII_60", + "61": "ASCII_61", + "62": "ASCII_62", + "63": "ASCII_63", + "91": "ASCII_91", + "92": "ASCII_92", + "93": "ASCII_93", + "94": "ASCII_94", + "258": "IDENT", + "259": "UIDENT", + "260": "FCONST", + "261": "SCONST", + "262": "USCONST", + "263": "BCONST", + "264": "XCONST", + "265": "Op", + "266": "ICONST", + "267": "PARAM", + "268": "TYPECAST", + "269": "DOT_DOT", + "270": "COLON_EQUALS", + "271": "EQUALS_GREATER", + "272": "LESS_EQUALS", + "273": "GREATER_EQUALS", + "274": "NOT_EQUALS", + "275": "SQL_COMMENT", + "276": "C_COMMENT", + "277": "ABORT_P", + "278": "ABSENT", + "279": "ABSOLUTE_P", + "280": "ACCESS", + "281": "ACTION", + "282": "ADD_P", + "283": "ADMIN", + "284": "AFTER", + "285": "AGGREGATE", + "286": "ALL", + "287": "ALSO", + "288": "ALTER", + "289": "ALWAYS", + "290": "ANALYSE", + "291": "ANALYZE", + "292": "AND", + "293": "ANY", + "294": "ARRAY", + "295": "AS", + "296": "ASC", + "297": "ASENSITIVE", + "298": "ASSERTION", + "299": "ASSIGNMENT", + "300": "ASYMMETRIC", + "301": "ATOMIC", + "302": "AT", + "303": "ATTACH", + "304": "ATTRIBUTE", + "305": "AUTHORIZATION", + "306": "BACKWARD", + "307": "BEFORE", + "308": "BEGIN_P", + "309": "BETWEEN", + "310": "BIGINT", + "311": "BINARY", + "312": "BIT", + "313": "BOOLEAN_P", + "314": "BOTH", + "315": "BREADTH", + "316": "BY", + "317": "CACHE", + "318": "CALL", + "319": "CALLED", + "320": "CASCADE", + "321": "CASCADED", + "322": "CASE", + "323": "CAST", + "324": "CATALOG_P", + "325": "CHAIN", + "326": "CHAR_P", + "327": "CHARACTER", + "328": "CHARACTERISTICS", + "329": "CHECK", + "330": "CHECKPOINT", + "331": "CLASS", + "332": "CLOSE", + "333": "CLUSTER", + "334": "COALESCE", + "335": "COLLATE", + "336": "COLLATION", + "337": "COLUMN", + "338": "COLUMNS", + "339": "COMMENT", + "340": "COMMENTS", + "341": "COMMIT", + "342": "COMMITTED", + "343": "COMPRESSION", + "344": "CONCURRENTLY", + "345": "CONFIGURATION", + "346": "CONFLICT", + "347": "CONNECTION", + "348": "CONSTRAINT", + "349": "CONSTRAINTS", + "350": "CONTENT_P", + "351": "CONTINUE_P", + "352": "CONVERSION_P", + "353": "COPY", + "354": "COST", + "355": "CREATE", + "356": "CROSS", + "357": "CSV", + "358": "CUBE", + "359": "CURRENT_P", + "360": "CURRENT_CATALOG", + "361": "CURRENT_DATE", + "362": "CURRENT_ROLE", + "363": "CURRENT_SCHEMA", + "364": "CURRENT_TIME", + "365": "CURRENT_TIMESTAMP", + "366": "CURRENT_USER", + "367": "CURSOR", + "368": "CYCLE", + "369": "DATA_P", + "370": "DATABASE", + "371": "DAY_P", + "372": "DEALLOCATE", + "373": "DEC", + "374": "DECIMAL_P", + "375": "DECLARE", + "376": "DEFAULT", + "377": "DEFAULTS", + "378": "DEFERRABLE", + "379": "DEFERRED", + "380": "DEFINER", + "381": "DELETE_P", + "382": "DELIMITER", + "383": "DELIMITERS", + "384": "DEPENDS", + "385": "DEPTH", + "386": "DESC", + "387": "DETACH", + "388": "DICTIONARY", + "389": "DISABLE_P", + "390": "DISCARD", + "391": "DISTINCT", + "392": "DO", + "393": "DOCUMENT_P", + "394": "DOMAIN_P", + "395": "DOUBLE_P", + "396": "DROP", + "397": "EACH", + "398": "ELSE", + "399": "ENABLE_P", + "400": "ENCODING", + "401": "ENCRYPTED", + "402": "END_P", + "403": "ENUM_P", + "404": "ESCAPE", + "405": "EVENT", + "406": "EXCEPT", + "407": "EXCLUDE", + "408": "EXCLUDING", + "409": "EXCLUSIVE", + "410": "EXECUTE", + "411": "EXISTS", + "412": "EXPLAIN", + "413": "EXPRESSION", + "414": "EXTENSION", + "415": "EXTERNAL", + "416": "EXTRACT", + "417": "FALSE_P", + "418": "FAMILY", + "419": "FETCH", + "420": "FILTER", + "421": "FINALIZE", + "422": "FIRST_P", + "423": "FLOAT_P", + "424": "FOLLOWING", + "425": "FOR", + "426": "FORCE", + "427": "FOREIGN", + "428": "FORMAT", + "429": "FORWARD", + "430": "FREEZE", + "431": "FROM", + "432": "FULL", + "433": "FUNCTION", + "434": "FUNCTIONS", + "435": "GENERATED", + "436": "GLOBAL", + "437": "GRANT", + "438": "GRANTED", + "439": "GREATEST", + "440": "GROUP_P", + "441": "GROUPING", + "442": "GROUPS", + "443": "HANDLER", + "444": "HAVING", + "445": "HEADER_P", + "446": "HOLD", + "447": "HOUR_P", + "448": "IDENTITY_P", + "449": "IF_P", + "450": "ILIKE", + "451": "IMMEDIATE", + "452": "IMMUTABLE", + "453": "IMPLICIT_P", + "454": "IMPORT_P", + "455": "IN_P", + "456": "INCLUDE", + "457": "INCLUDING", + "458": "INCREMENT", + "459": "INDENT", + "460": "INDEX", + "461": "INDEXES", + "462": "INHERIT", + "463": "INHERITS", + "464": "INITIALLY", + "465": "INLINE_P", + "466": "INNER_P", + "467": "INOUT", + "468": "INPUT_P", + "469": "INSENSITIVE", + "470": "INSERT", + "471": "INSTEAD", + "472": "INT_P", + "473": "INTEGER", + "474": "INTERSECT", + "475": "INTERVAL", + "476": "INTO", + "477": "INVOKER", + "478": "IS", + "479": "ISNULL", + "480": "ISOLATION", + "481": "JOIN", + "482": "JSON", + "483": "JSON_ARRAY", + "484": "JSON_ARRAYAGG", + "485": "JSON_OBJECT", + "486": "JSON_OBJECTAGG", + "487": "KEY", + "488": "KEYS", + "489": "LABEL", + "490": "LANGUAGE", + "491": "LARGE_P", + "492": "LAST_P", + "493": "LATERAL_P", + "494": "LEADING", + "495": "LEAKPROOF", + "496": "LEAST", + "497": "LEFT", + "498": "LEVEL", + "499": "LIKE", + "500": "LIMIT", + "501": "LISTEN", + "502": "LOAD", + "503": "LOCAL", + "504": "LOCALTIME", + "505": "LOCALTIMESTAMP", + "506": "LOCATION", + "507": "LOCK_P", + "508": "LOCKED", + "509": "LOGGED", + "510": "MAPPING", + "511": "MATCH", + "512": "MATCHED", + "513": "MATERIALIZED", + "514": "MAXVALUE", + "515": "MERGE", + "516": "METHOD", + "517": "MINUTE_P", + "518": "MINVALUE", + "519": "MODE", + "520": "MONTH_P", + "521": "MOVE", + "522": "NAME_P", + "523": "NAMES", + "524": "NATIONAL", + "525": "NATURAL", + "526": "NCHAR", + "527": "NEW", + "528": "NEXT", + "529": "NFC", + "530": "NFD", + "531": "NFKC", + "532": "NFKD", + "533": "NO", + "534": "NONE", + "535": "NORMALIZE", + "536": "NORMALIZED", + "537": "NOT", + "538": "NOTHING", + "539": "NOTIFY", + "540": "NOTNULL", + "541": "NOWAIT", + "542": "NULL_P", + "543": "NULLIF", + "544": "NULLS_P", + "545": "NUMERIC", + "546": "OBJECT_P", + "547": "OF", + "548": "OFF", + "549": "OFFSET", + "550": "OIDS", + "551": "OLD", + "552": "ON", + "553": "ONLY", + "554": "OPERATOR", + "555": "OPTION", + "556": "OPTIONS", + "557": "OR", + "558": "ORDER", + "559": "ORDINALITY", + "560": "OTHERS", + "561": "OUT_P", + "562": "OUTER_P", + "563": "OVER", + "564": "OVERLAPS", + "565": "OVERLAY", + "566": "OVERRIDING", + "567": "OWNED", + "568": "OWNER", + "569": "PARALLEL", + "570": "PARAMETER", + "571": "PARSER", + "572": "PARTIAL", + "573": "PARTITION", + "574": "PASSING", + "575": "PASSWORD", + "576": "PLACING", + "577": "PLANS", + "578": "POLICY", + "579": "POSITION", + "580": "PRECEDING", + "581": "PRECISION", + "582": "PRESERVE", + "583": "PREPARE", + "584": "PREPARED", + "585": "PRIMARY", + "586": "PRIOR", + "587": "PRIVILEGES", + "588": "PROCEDURAL", + "589": "PROCEDURE", + "590": "PROCEDURES", + "591": "PROGRAM", + "592": "PUBLICATION", + "593": "QUOTE", + "594": "RANGE", + "595": "READ", + "596": "REAL", + "597": "REASSIGN", + "598": "RECHECK", + "599": "RECURSIVE", + "600": "REF_P", + "601": "REFERENCES", + "602": "REFERENCING", + "603": "REFRESH", + "604": "REINDEX", + "605": "RELATIVE_P", + "606": "RELEASE", + "607": "RENAME", + "608": "REPEATABLE", + "609": "REPLACE", + "610": "REPLICA", + "611": "RESET", + "612": "RESTART", + "613": "RESTRICT", + "614": "RETURN", + "615": "RETURNING", + "616": "RETURNS", + "617": "REVOKE", + "618": "RIGHT", + "619": "ROLE", + "620": "ROLLBACK", + "621": "ROLLUP", + "622": "ROUTINE", + "623": "ROUTINES", + "624": "ROW", + "625": "ROWS", + "626": "RULE", + "627": "SAVEPOINT", + "628": "SCALAR", + "629": "SCHEMA", + "630": "SCHEMAS", + "631": "SCROLL", + "632": "SEARCH", + "633": "SECOND_P", + "634": "SECURITY", + "635": "SELECT", + "636": "SEQUENCE", + "637": "SEQUENCES", + "638": "SERIALIZABLE", + "639": "SERVER", + "640": "SESSION", + "641": "SESSION_USER", + "642": "SET", + "643": "SETS", + "644": "SETOF", + "645": "SHARE", + "646": "SHOW", + "647": "SIMILAR", + "648": "SIMPLE", + "649": "SKIP", + "650": "SMALLINT", + "651": "SNAPSHOT", + "652": "SOME", + "653": "SQL_P", + "654": "STABLE", + "655": "STANDALONE_P", + "656": "START", + "657": "STATEMENT", + "658": "STATISTICS", + "659": "STDIN", + "660": "STDOUT", + "661": "STORAGE", + "662": "STORED", + "663": "STRICT_P", + "664": "STRIP_P", + "665": "SUBSCRIPTION", + "666": "SUBSTRING", + "667": "SUPPORT", + "668": "SYMMETRIC", + "669": "SYSID", + "670": "SYSTEM_P", + "671": "SYSTEM_USER", + "672": "TABLE", + "673": "TABLES", + "674": "TABLESAMPLE", + "675": "TABLESPACE", + "676": "TEMP", + "677": "TEMPLATE", + "678": "TEMPORARY", + "679": "TEXT_P", + "680": "THEN", + "681": "TIES", + "682": "TIME", + "683": "TIMESTAMP", + "684": "TO", + "685": "TRAILING", + "686": "TRANSACTION", + "687": "TRANSFORM", + "688": "TREAT", + "689": "TRIGGER", + "690": "TRIM", + "691": "TRUE_P", + "692": "TRUNCATE", + "693": "TRUSTED", + "694": "TYPE_P", + "695": "TYPES_P", + "696": "UESCAPE", + "697": "UNBOUNDED", + "698": "UNCOMMITTED", + "699": "UNENCRYPTED", + "700": "UNION", + "701": "UNIQUE", + "702": "UNKNOWN", + "703": "UNLISTEN", + "704": "UNLOGGED", + "705": "UNTIL", + "706": "UPDATE", + "707": "USER", + "708": "USING", + "709": "VACUUM", + "710": "VALID", + "711": "VALIDATE", + "712": "VALIDATOR", + "713": "VALUE_P", + "714": "VALUES", + "715": "VARCHAR", + "716": "VARIADIC", + "717": "VARYING", + "718": "VERBOSE", + "719": "VERSION_P", + "720": "VIEW", + "721": "VIEWS", + "722": "VOLATILE", + "723": "WHEN", + "724": "WHERE", + "725": "WHITESPACE_P", + "726": "WINDOW", + "727": "WITH", + "728": "WITHIN", + "729": "WITHOUT", + "730": "WORK", + "731": "WRAPPER", + "732": "WRITE", + "733": "XML_P", + "734": "XMLATTRIBUTES", + "735": "XMLCONCAT", + "736": "XMLELEMENT", + "737": "XMLEXISTS", + "738": "XMLFOREST", + "739": "XMLNAMESPACES", + "740": "XMLPARSE", + "741": "XMLPI", + "742": "XMLROOT", + "743": "XMLSERIALIZE", + "744": "XMLTABLE", + "745": "YEAR_P", + "746": "YES_P", + "747": "ZONE", + "748": "FORMAT_LA", + "749": "NOT_LA", + "750": "NULLS_LA", + "751": "WITH_LA", + "752": "WITHOUT_LA", + "753": "MODE_TYPE_NAME", + "754": "MODE_PLPGSQL_EXPR", + "755": "MODE_PLPGSQL_ASSIGN1", + "756": "MODE_PLPGSQL_ASSIGN2", + "757": "MODE_PLPGSQL_ASSIGN3", + "758": "UMINUS" + } +}", + "file": "enum-to-str.json", + }, +] +`; + +exports[`enum-maps typescript format enabled 1`] = ` +[ + { + "code": "/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type OverridingKind = "OVERRIDING_NOT_SET" | "OVERRIDING_USER_VALUE" | "OVERRIDING_SYSTEM_VALUE"; +export type QuerySource = "QSRC_ORIGINAL" | "QSRC_PARSER" | "QSRC_INSTEAD_RULE" | "QSRC_QUAL_INSTEAD_RULE" | "QSRC_NON_INSTEAD_RULE"; +export type SortByDir = "SORTBY_DEFAULT" | "SORTBY_ASC" | "SORTBY_DESC" | "SORTBY_USING"; +export type SortByNulls = "SORTBY_NULLS_DEFAULT" | "SORTBY_NULLS_FIRST" | "SORTBY_NULLS_LAST"; +export type SetQuantifier = "SET_QUANTIFIER_DEFAULT" | "SET_QUANTIFIER_ALL" | "SET_QUANTIFIER_DISTINCT"; +export type A_Expr_Kind = "AEXPR_OP" | "AEXPR_OP_ANY" | "AEXPR_OP_ALL" | "AEXPR_DISTINCT" | "AEXPR_NOT_DISTINCT" | "AEXPR_NULLIF" | "AEXPR_IN" | "AEXPR_LIKE" | "AEXPR_ILIKE" | "AEXPR_SIMILAR" | "AEXPR_BETWEEN" | "AEXPR_NOT_BETWEEN" | "AEXPR_BETWEEN_SYM" | "AEXPR_NOT_BETWEEN_SYM"; +export type RoleSpecType = "ROLESPEC_CSTRING" | "ROLESPEC_CURRENT_ROLE" | "ROLESPEC_CURRENT_USER" | "ROLESPEC_SESSION_USER" | "ROLESPEC_PUBLIC"; +export type TableLikeOption = "CREATE_TABLE_LIKE_COMMENTS" | "CREATE_TABLE_LIKE_COMPRESSION" | "CREATE_TABLE_LIKE_CONSTRAINTS" | "CREATE_TABLE_LIKE_DEFAULTS" | "CREATE_TABLE_LIKE_GENERATED" | "CREATE_TABLE_LIKE_IDENTITY" | "CREATE_TABLE_LIKE_INDEXES" | "CREATE_TABLE_LIKE_STATISTICS" | "CREATE_TABLE_LIKE_STORAGE" | "CREATE_TABLE_LIKE_ALL"; +export type DefElemAction = "DEFELEM_UNSPEC" | "DEFELEM_SET" | "DEFELEM_ADD" | "DEFELEM_DROP"; +export type PartitionStrategy = "PARTITION_STRATEGY_LIST" | "PARTITION_STRATEGY_RANGE" | "PARTITION_STRATEGY_HASH"; +export type PartitionRangeDatumKind = "PARTITION_RANGE_DATUM_MINVALUE" | "PARTITION_RANGE_DATUM_VALUE" | "PARTITION_RANGE_DATUM_MAXVALUE"; +export type RTEKind = "RTE_RELATION" | "RTE_SUBQUERY" | "RTE_JOIN" | "RTE_FUNCTION" | "RTE_TABLEFUNC" | "RTE_VALUES" | "RTE_CTE" | "RTE_NAMEDTUPLESTORE" | "RTE_RESULT"; +export type WCOKind = "WCO_VIEW_CHECK" | "WCO_RLS_INSERT_CHECK" | "WCO_RLS_UPDATE_CHECK" | "WCO_RLS_CONFLICT_CHECK" | "WCO_RLS_MERGE_UPDATE_CHECK" | "WCO_RLS_MERGE_DELETE_CHECK"; +export type GroupingSetKind = "GROUPING_SET_EMPTY" | "GROUPING_SET_SIMPLE" | "GROUPING_SET_ROLLUP" | "GROUPING_SET_CUBE" | "GROUPING_SET_SETS"; +export type CTEMaterialize = "CTEMaterializeDefault" | "CTEMaterializeAlways" | "CTEMaterializeNever"; +export type SetOperation = "SETOP_NONE" | "SETOP_UNION" | "SETOP_INTERSECT" | "SETOP_EXCEPT"; +export type ObjectType = "OBJECT_ACCESS_METHOD" | "OBJECT_AGGREGATE" | "OBJECT_AMOP" | "OBJECT_AMPROC" | "OBJECT_ATTRIBUTE" | "OBJECT_CAST" | "OBJECT_COLUMN" | "OBJECT_COLLATION" | "OBJECT_CONVERSION" | "OBJECT_DATABASE" | "OBJECT_DEFAULT" | "OBJECT_DEFACL" | "OBJECT_DOMAIN" | "OBJECT_DOMCONSTRAINT" | "OBJECT_EVENT_TRIGGER" | "OBJECT_EXTENSION" | "OBJECT_FDW" | "OBJECT_FOREIGN_SERVER" | "OBJECT_FOREIGN_TABLE" | "OBJECT_FUNCTION" | "OBJECT_INDEX" | "OBJECT_LANGUAGE" | "OBJECT_LARGEOBJECT" | "OBJECT_MATVIEW" | "OBJECT_OPCLASS" | "OBJECT_OPERATOR" | "OBJECT_OPFAMILY" | "OBJECT_PARAMETER_ACL" | "OBJECT_POLICY" | "OBJECT_PROCEDURE" | "OBJECT_PUBLICATION" | "OBJECT_PUBLICATION_NAMESPACE" | "OBJECT_PUBLICATION_REL" | "OBJECT_ROLE" | "OBJECT_ROUTINE" | "OBJECT_RULE" | "OBJECT_SCHEMA" | "OBJECT_SEQUENCE" | "OBJECT_SUBSCRIPTION" | "OBJECT_STATISTIC_EXT" | "OBJECT_TABCONSTRAINT" | "OBJECT_TABLE" | "OBJECT_TABLESPACE" | "OBJECT_TRANSFORM" | "OBJECT_TRIGGER" | "OBJECT_TSCONFIGURATION" | "OBJECT_TSDICTIONARY" | "OBJECT_TSPARSER" | "OBJECT_TSTEMPLATE" | "OBJECT_TYPE" | "OBJECT_USER_MAPPING" | "OBJECT_VIEW"; +export type DropBehavior = "DROP_RESTRICT" | "DROP_CASCADE"; +export type AlterTableType = "AT_AddColumn" | "AT_AddColumnToView" | "AT_ColumnDefault" | "AT_CookedColumnDefault" | "AT_DropNotNull" | "AT_SetNotNull" | "AT_DropExpression" | "AT_CheckNotNull" | "AT_SetStatistics" | "AT_SetOptions" | "AT_ResetOptions" | "AT_SetStorage" | "AT_SetCompression" | "AT_DropColumn" | "AT_AddIndex" | "AT_ReAddIndex" | "AT_AddConstraint" | "AT_ReAddConstraint" | "AT_ReAddDomainConstraint" | "AT_AlterConstraint" | "AT_ValidateConstraint" | "AT_AddIndexConstraint" | "AT_DropConstraint" | "AT_ReAddComment" | "AT_AlterColumnType" | "AT_AlterColumnGenericOptions" | "AT_ChangeOwner" | "AT_ClusterOn" | "AT_DropCluster" | "AT_SetLogged" | "AT_SetUnLogged" | "AT_DropOids" | "AT_SetAccessMethod" | "AT_SetTableSpace" | "AT_SetRelOptions" | "AT_ResetRelOptions" | "AT_ReplaceRelOptions" | "AT_EnableTrig" | "AT_EnableAlwaysTrig" | "AT_EnableReplicaTrig" | "AT_DisableTrig" | "AT_EnableTrigAll" | "AT_DisableTrigAll" | "AT_EnableTrigUser" | "AT_DisableTrigUser" | "AT_EnableRule" | "AT_EnableAlwaysRule" | "AT_EnableReplicaRule" | "AT_DisableRule" | "AT_AddInherit" | "AT_DropInherit" | "AT_AddOf" | "AT_DropOf" | "AT_ReplicaIdentity" | "AT_EnableRowSecurity" | "AT_DisableRowSecurity" | "AT_ForceRowSecurity" | "AT_NoForceRowSecurity" | "AT_GenericOptions" | "AT_AttachPartition" | "AT_DetachPartition" | "AT_DetachPartitionFinalize" | "AT_AddIdentity" | "AT_SetIdentity" | "AT_DropIdentity" | "AT_ReAddStatistics"; +export type GrantTargetType = "ACL_TARGET_OBJECT" | "ACL_TARGET_ALL_IN_SCHEMA" | "ACL_TARGET_DEFAULTS"; +export type VariableSetKind = "VAR_SET_VALUE" | "VAR_SET_DEFAULT" | "VAR_SET_CURRENT" | "VAR_SET_MULTI" | "VAR_RESET" | "VAR_RESET_ALL"; +export type ConstrType = "CONSTR_NULL" | "CONSTR_NOTNULL" | "CONSTR_DEFAULT" | "CONSTR_IDENTITY" | "CONSTR_GENERATED" | "CONSTR_CHECK" | "CONSTR_PRIMARY" | "CONSTR_UNIQUE" | "CONSTR_EXCLUSION" | "CONSTR_FOREIGN" | "CONSTR_ATTR_DEFERRABLE" | "CONSTR_ATTR_NOT_DEFERRABLE" | "CONSTR_ATTR_DEFERRED" | "CONSTR_ATTR_IMMEDIATE"; +export type ImportForeignSchemaType = "FDW_IMPORT_SCHEMA_ALL" | "FDW_IMPORT_SCHEMA_LIMIT_TO" | "FDW_IMPORT_SCHEMA_EXCEPT"; +export type RoleStmtType = "ROLESTMT_ROLE" | "ROLESTMT_USER" | "ROLESTMT_GROUP"; +export type FetchDirection = "FETCH_FORWARD" | "FETCH_BACKWARD" | "FETCH_ABSOLUTE" | "FETCH_RELATIVE"; +export type FunctionParameterMode = "FUNC_PARAM_IN" | "FUNC_PARAM_OUT" | "FUNC_PARAM_INOUT" | "FUNC_PARAM_VARIADIC" | "FUNC_PARAM_TABLE" | "FUNC_PARAM_DEFAULT"; +export type TransactionStmtKind = "TRANS_STMT_BEGIN" | "TRANS_STMT_START" | "TRANS_STMT_COMMIT" | "TRANS_STMT_ROLLBACK" | "TRANS_STMT_SAVEPOINT" | "TRANS_STMT_RELEASE" | "TRANS_STMT_ROLLBACK_TO" | "TRANS_STMT_PREPARE" | "TRANS_STMT_COMMIT_PREPARED" | "TRANS_STMT_ROLLBACK_PREPARED"; +export type ViewCheckOption = "NO_CHECK_OPTION" | "LOCAL_CHECK_OPTION" | "CASCADED_CHECK_OPTION"; +export type DiscardMode = "DISCARD_ALL" | "DISCARD_PLANS" | "DISCARD_SEQUENCES" | "DISCARD_TEMP"; +export type ReindexObjectType = "REINDEX_OBJECT_INDEX" | "REINDEX_OBJECT_TABLE" | "REINDEX_OBJECT_SCHEMA" | "REINDEX_OBJECT_SYSTEM" | "REINDEX_OBJECT_DATABASE"; +export type AlterTSConfigType = "ALTER_TSCONFIG_ADD_MAPPING" | "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN" | "ALTER_TSCONFIG_REPLACE_DICT" | "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN" | "ALTER_TSCONFIG_DROP_MAPPING"; +export type PublicationObjSpecType = "PUBLICATIONOBJ_TABLE" | "PUBLICATIONOBJ_TABLES_IN_SCHEMA" | "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA" | "PUBLICATIONOBJ_CONTINUATION"; +export type AlterPublicationAction = "AP_AddObjects" | "AP_DropObjects" | "AP_SetObjects"; +export type AlterSubscriptionType = "ALTER_SUBSCRIPTION_OPTIONS" | "ALTER_SUBSCRIPTION_CONNECTION" | "ALTER_SUBSCRIPTION_SET_PUBLICATION" | "ALTER_SUBSCRIPTION_ADD_PUBLICATION" | "ALTER_SUBSCRIPTION_DROP_PUBLICATION" | "ALTER_SUBSCRIPTION_REFRESH" | "ALTER_SUBSCRIPTION_ENABLED" | "ALTER_SUBSCRIPTION_SKIP"; +export type OnCommitAction = "ONCOMMIT_NOOP" | "ONCOMMIT_PRESERVE_ROWS" | "ONCOMMIT_DELETE_ROWS" | "ONCOMMIT_DROP"; +export type ParamKind = "PARAM_EXTERN" | "PARAM_EXEC" | "PARAM_SUBLINK" | "PARAM_MULTIEXPR"; +export type CoercionContext = "COERCION_IMPLICIT" | "COERCION_ASSIGNMENT" | "COERCION_PLPGSQL" | "COERCION_EXPLICIT"; +export type CoercionForm = "COERCE_EXPLICIT_CALL" | "COERCE_EXPLICIT_CAST" | "COERCE_IMPLICIT_CAST" | "COERCE_SQL_SYNTAX"; +export type BoolExprType = "AND_EXPR" | "OR_EXPR" | "NOT_EXPR"; +export type SubLinkType = "EXISTS_SUBLINK" | "ALL_SUBLINK" | "ANY_SUBLINK" | "ROWCOMPARE_SUBLINK" | "EXPR_SUBLINK" | "MULTIEXPR_SUBLINK" | "ARRAY_SUBLINK" | "CTE_SUBLINK"; +export type RowCompareType = "ROWCOMPARE_LT" | "ROWCOMPARE_LE" | "ROWCOMPARE_EQ" | "ROWCOMPARE_GE" | "ROWCOMPARE_GT" | "ROWCOMPARE_NE"; +export type MinMaxOp = "IS_GREATEST" | "IS_LEAST"; +export type SQLValueFunctionOp = "SVFOP_CURRENT_DATE" | "SVFOP_CURRENT_TIME" | "SVFOP_CURRENT_TIME_N" | "SVFOP_CURRENT_TIMESTAMP" | "SVFOP_CURRENT_TIMESTAMP_N" | "SVFOP_LOCALTIME" | "SVFOP_LOCALTIME_N" | "SVFOP_LOCALTIMESTAMP" | "SVFOP_LOCALTIMESTAMP_N" | "SVFOP_CURRENT_ROLE" | "SVFOP_CURRENT_USER" | "SVFOP_USER" | "SVFOP_SESSION_USER" | "SVFOP_CURRENT_CATALOG" | "SVFOP_CURRENT_SCHEMA"; +export type XmlExprOp = "IS_XMLCONCAT" | "IS_XMLELEMENT" | "IS_XMLFOREST" | "IS_XMLPARSE" | "IS_XMLPI" | "IS_XMLROOT" | "IS_XMLSERIALIZE" | "IS_DOCUMENT"; +export type XmlOptionType = "XMLOPTION_DOCUMENT" | "XMLOPTION_CONTENT"; +export type JsonEncoding = "JS_ENC_DEFAULT" | "JS_ENC_UTF8" | "JS_ENC_UTF16" | "JS_ENC_UTF32"; +export type JsonFormatType = "JS_FORMAT_DEFAULT" | "JS_FORMAT_JSON" | "JS_FORMAT_JSONB"; +export type JsonConstructorType = "JSCTOR_JSON_OBJECT" | "JSCTOR_JSON_ARRAY" | "JSCTOR_JSON_OBJECTAGG" | "JSCTOR_JSON_ARRAYAGG"; +export type JsonValueType = "JS_TYPE_ANY" | "JS_TYPE_OBJECT" | "JS_TYPE_ARRAY" | "JS_TYPE_SCALAR"; +export type NullTestType = "IS_NULL" | "IS_NOT_NULL"; +export type BoolTestType = "IS_TRUE" | "IS_NOT_TRUE" | "IS_FALSE" | "IS_NOT_FALSE" | "IS_UNKNOWN" | "IS_NOT_UNKNOWN"; +export type CmdType = "CMD_UNKNOWN" | "CMD_SELECT" | "CMD_UPDATE" | "CMD_INSERT" | "CMD_DELETE" | "CMD_MERGE" | "CMD_UTILITY" | "CMD_NOTHING"; +export type JoinType = "JOIN_INNER" | "JOIN_LEFT" | "JOIN_FULL" | "JOIN_RIGHT" | "JOIN_SEMI" | "JOIN_ANTI" | "JOIN_RIGHT_ANTI" | "JOIN_UNIQUE_OUTER" | "JOIN_UNIQUE_INNER"; +export type AggStrategy = "AGG_PLAIN" | "AGG_SORTED" | "AGG_HASHED" | "AGG_MIXED"; +export type AggSplit = "AGGSPLIT_SIMPLE" | "AGGSPLIT_INITIAL_SERIAL" | "AGGSPLIT_FINAL_DESERIAL"; +export type SetOpCmd = "SETOPCMD_INTERSECT" | "SETOPCMD_INTERSECT_ALL" | "SETOPCMD_EXCEPT" | "SETOPCMD_EXCEPT_ALL"; +export type SetOpStrategy = "SETOP_SORTED" | "SETOP_HASHED"; +export type OnConflictAction = "ONCONFLICT_NONE" | "ONCONFLICT_NOTHING" | "ONCONFLICT_UPDATE"; +export type LimitOption = "LIMIT_OPTION_DEFAULT" | "LIMIT_OPTION_COUNT" | "LIMIT_OPTION_WITH_TIES"; +export type LockClauseStrength = "LCS_NONE" | "LCS_FORKEYSHARE" | "LCS_FORSHARE" | "LCS_FORNOKEYUPDATE" | "LCS_FORUPDATE"; +export type LockWaitPolicy = "LockWaitBlock" | "LockWaitSkip" | "LockWaitError"; +export type LockTupleMode = "LockTupleKeyShare" | "LockTupleShare" | "LockTupleNoKeyExclusive" | "LockTupleExclusive"; +export type KeywordKind = "NO_KEYWORD" | "UNRESERVED_KEYWORD" | "COL_NAME_KEYWORD" | "TYPE_FUNC_NAME_KEYWORD" | "RESERVED_KEYWORD"; +export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | "ASCII_42" | "ASCII_43" | "ASCII_44" | "ASCII_45" | "ASCII_46" | "ASCII_47" | "ASCII_58" | "ASCII_59" | "ASCII_60" | "ASCII_61" | "ASCII_62" | "ASCII_63" | "ASCII_91" | "ASCII_92" | "ASCII_93" | "ASCII_94" | "IDENT" | "UIDENT" | "FCONST" | "SCONST" | "USCONST" | "BCONST" | "XCONST" | "Op" | "ICONST" | "PARAM" | "TYPECAST" | "DOT_DOT" | "COLON_EQUALS" | "EQUALS_GREATER" | "LESS_EQUALS" | "GREATER_EQUALS" | "NOT_EQUALS" | "SQL_COMMENT" | "C_COMMENT" | "ABORT_P" | "ABSENT" | "ABSOLUTE_P" | "ACCESS" | "ACTION" | "ADD_P" | "ADMIN" | "AFTER" | "AGGREGATE" | "ALL" | "ALSO" | "ALTER" | "ALWAYS" | "ANALYSE" | "ANALYZE" | "AND" | "ANY" | "ARRAY" | "AS" | "ASC" | "ASENSITIVE" | "ASSERTION" | "ASSIGNMENT" | "ASYMMETRIC" | "ATOMIC" | "AT" | "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" | "CHAR_P" | "CHARACTER" | "CHARACTERISTICS" | "CHECK" | "CHECKPOINT" | "CLASS" | "CLOSE" | "CLUSTER" | "COALESCE" | "COLLATE" | "COLLATION" | "COLUMN" | "COLUMNS" | "COMMENT" | "COMMENTS" | "COMMIT" | "COMMITTED" | "COMPRESSION" | "CONCURRENTLY" | "CONFIGURATION" | "CONFLICT" | "CONNECTION" | "CONSTRAINT" | "CONSTRAINTS" | "CONTENT_P" | "CONTINUE_P" | "CONVERSION_P" | "COPY" | "COST" | "CREATE" | "CROSS" | "CSV" | "CUBE" | "CURRENT_P" | "CURRENT_CATALOG" | "CURRENT_DATE" | "CURRENT_ROLE" | "CURRENT_SCHEMA" | "CURRENT_TIME" | "CURRENT_TIMESTAMP" | "CURRENT_USER" | "CURSOR" | "CYCLE" | "DATA_P" | "DATABASE" | "DAY_P" | "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" | "ENABLE_P" | "ENCODING" | "ENCRYPTED" | "END_P" | "ENUM_P" | "ESCAPE" | "EVENT" | "EXCEPT" | "EXCLUDE" | "EXCLUDING" | "EXCLUSIVE" | "EXECUTE" | "EXISTS" | "EXPLAIN" | "EXPRESSION" | "EXTENSION" | "EXTERNAL" | "EXTRACT" | "FALSE_P" | "FAMILY" | "FETCH" | "FILTER" | "FINALIZE" | "FIRST_P" | "FLOAT_P" | "FOLLOWING" | "FOR" | "FORCE" | "FOREIGN" | "FORMAT" | "FORWARD" | "FREEZE" | "FROM" | "FULL" | "FUNCTION" | "FUNCTIONS" | "GENERATED" | "GLOBAL" | "GRANT" | "GRANTED" | "GREATEST" | "GROUP_P" | "GROUPING" | "GROUPS" | "HANDLER" | "HAVING" | "HEADER_P" | "HOLD" | "HOUR_P" | "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" | "INTERSECT" | "INTERVAL" | "INTO" | "INVOKER" | "IS" | "ISNULL" | "ISOLATION" | "JOIN" | "JSON" | "JSON_ARRAY" | "JSON_ARRAYAGG" | "JSON_OBJECT" | "JSON_OBJECTAGG" | "KEY" | "KEYS" | "LABEL" | "LANGUAGE" | "LARGE_P" | "LAST_P" | "LATERAL_P" | "LEADING" | "LEAKPROOF" | "LEAST" | "LEFT" | "LEVEL" | "LIKE" | "LIMIT" | "LISTEN" | "LOAD" | "LOCAL" | "LOCALTIME" | "LOCALTIMESTAMP" | "LOCATION" | "LOCK_P" | "LOCKED" | "LOGGED" | "MAPPING" | "MATCH" | "MATCHED" | "MATERIALIZED" | "MAXVALUE" | "MERGE" | "METHOD" | "MINUTE_P" | "MINVALUE" | "MODE" | "MONTH_P" | "MOVE" | "NAME_P" | "NAMES" | "NATIONAL" | "NATURAL" | "NCHAR" | "NEW" | "NEXT" | "NFC" | "NFD" | "NFKC" | "NFKD" | "NO" | "NONE" | "NORMALIZE" | "NORMALIZED" | "NOT" | "NOTHING" | "NOTIFY" | "NOTNULL" | "NOWAIT" | "NULL_P" | "NULLIF" | "NULLS_P" | "NUMERIC" | "OBJECT_P" | "OF" | "OFF" | "OFFSET" | "OIDS" | "OLD" | "ON" | "ONLY" | "OPERATOR" | "OPTION" | "OPTIONS" | "OR" | "ORDER" | "ORDINALITY" | "OTHERS" | "OUT_P" | "OUTER_P" | "OVER" | "OVERLAPS" | "OVERLAY" | "OVERRIDING" | "OWNED" | "OWNER" | "PARALLEL" | "PARAMETER" | "PARSER" | "PARTIAL" | "PARTITION" | "PASSING" | "PASSWORD" | "PLACING" | "PLANS" | "POLICY" | "POSITION" | "PRECEDING" | "PRECISION" | "PRESERVE" | "PREPARE" | "PREPARED" | "PRIMARY" | "PRIOR" | "PRIVILEGES" | "PROCEDURAL" | "PROCEDURE" | "PROCEDURES" | "PROGRAM" | "PUBLICATION" | "QUOTE" | "RANGE" | "READ" | "REAL" | "REASSIGN" | "RECHECK" | "RECURSIVE" | "REF_P" | "REFERENCES" | "REFERENCING" | "REFRESH" | "REINDEX" | "RELATIVE_P" | "RELEASE" | "RENAME" | "REPEATABLE" | "REPLACE" | "REPLICA" | "RESET" | "RESTART" | "RESTRICT" | "RETURN" | "RETURNING" | "RETURNS" | "REVOKE" | "RIGHT" | "ROLE" | "ROLLBACK" | "ROLLUP" | "ROUTINE" | "ROUTINES" | "ROW" | "ROWS" | "RULE" | "SAVEPOINT" | "SCALAR" | "SCHEMA" | "SCHEMAS" | "SCROLL" | "SEARCH" | "SECOND_P" | "SECURITY" | "SELECT" | "SEQUENCE" | "SEQUENCES" | "SERIALIZABLE" | "SERVER" | "SESSION" | "SESSION_USER" | "SET" | "SETS" | "SETOF" | "SHARE" | "SHOW" | "SIMILAR" | "SIMPLE" | "SKIP" | "SMALLINT" | "SNAPSHOT" | "SOME" | "SQL_P" | "STABLE" | "STANDALONE_P" | "START" | "STATEMENT" | "STATISTICS" | "STDIN" | "STDOUT" | "STORAGE" | "STORED" | "STRICT_P" | "STRIP_P" | "SUBSCRIPTION" | "SUBSTRING" | "SUPPORT" | "SYMMETRIC" | "SYSID" | "SYSTEM_P" | "SYSTEM_USER" | "TABLE" | "TABLES" | "TABLESAMPLE" | "TABLESPACE" | "TEMP" | "TEMPLATE" | "TEMPORARY" | "TEXT_P" | "THEN" | "TIES" | "TIME" | "TIMESTAMP" | "TO" | "TRAILING" | "TRANSACTION" | "TRANSFORM" | "TREAT" | "TRIGGER" | "TRIM" | "TRUE_P" | "TRUNCATE" | "TRUSTED" | "TYPE_P" | "TYPES_P" | "UESCAPE" | "UNBOUNDED" | "UNCOMMITTED" | "UNENCRYPTED" | "UNION" | "UNIQUE" | "UNKNOWN" | "UNLISTEN" | "UNLOGGED" | "UNTIL" | "UPDATE" | "USER" | "USING" | "VACUUM" | "VALID" | "VALIDATE" | "VALIDATOR" | "VALUE_P" | "VALUES" | "VARCHAR" | "VARIADIC" | "VARYING" | "VERBOSE" | "VERSION_P" | "VIEW" | "VIEWS" | "VOLATILE" | "WHEN" | "WHERE" | "WHITESPACE_P" | "WINDOW" | "WITH" | "WITHIN" | "WITHOUT" | "WORK" | "WRAPPER" | "WRITE" | "XML_P" | "XMLATTRIBUTES" | "XMLCONCAT" | "XMLELEMENT" | "XMLEXISTS" | "XMLFOREST" | "XMLNAMESPACES" | "XMLPARSE" | "XMLPI" | "XMLROOT" | "XMLSERIALIZE" | "XMLTABLE" | "YEAR_P" | "YES_P" | "ZONE" | "FORMAT_LA" | "NOT_LA" | "NULLS_LA" | "WITH_LA" | "WITHOUT_LA" | "MODE_TYPE_NAME" | "MODE_PLPGSQL_EXPR" | "MODE_PLPGSQL_ASSIGN1" | "MODE_PLPGSQL_ASSIGN2" | "MODE_PLPGSQL_ASSIGN3" | "UMINUS";", + "file": "enums.ts", + }, + { + "code": "/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export const enumToStrMap = { + OverridingKind: { + "0": 'OVERRIDING_NOT_SET', + "1": 'OVERRIDING_USER_VALUE', + "2": 'OVERRIDING_SYSTEM_VALUE' + }, + QuerySource: { + "0": 'QSRC_ORIGINAL', + "1": 'QSRC_PARSER', + "2": 'QSRC_INSTEAD_RULE', + "3": 'QSRC_QUAL_INSTEAD_RULE', + "4": 'QSRC_NON_INSTEAD_RULE' + }, + SortByDir: { + "0": 'SORTBY_DEFAULT', + "1": 'SORTBY_ASC', + "2": 'SORTBY_DESC', + "3": 'SORTBY_USING' + }, + SortByNulls: { + "0": 'SORTBY_NULLS_DEFAULT', + "1": 'SORTBY_NULLS_FIRST', + "2": 'SORTBY_NULLS_LAST' + }, + SetQuantifier: { + "0": 'SET_QUANTIFIER_DEFAULT', + "1": 'SET_QUANTIFIER_ALL', + "2": 'SET_QUANTIFIER_DISTINCT' + }, + A_Expr_Kind: { + "0": 'AEXPR_OP', + "1": 'AEXPR_OP_ANY', + "2": 'AEXPR_OP_ALL', + "3": 'AEXPR_DISTINCT', + "4": 'AEXPR_NOT_DISTINCT', + "5": 'AEXPR_NULLIF', + "6": 'AEXPR_IN', + "7": 'AEXPR_LIKE', + "8": 'AEXPR_ILIKE', + "9": 'AEXPR_SIMILAR', + "10": 'AEXPR_BETWEEN', + "11": 'AEXPR_NOT_BETWEEN', + "12": 'AEXPR_BETWEEN_SYM', + "13": 'AEXPR_NOT_BETWEEN_SYM' + }, + RoleSpecType: { + "0": 'ROLESPEC_CSTRING', + "1": 'ROLESPEC_CURRENT_ROLE', + "2": 'ROLESPEC_CURRENT_USER', + "3": 'ROLESPEC_SESSION_USER', + "4": 'ROLESPEC_PUBLIC' + }, + TableLikeOption: { + "0": 'CREATE_TABLE_LIKE_COMMENTS', + "1": 'CREATE_TABLE_LIKE_COMPRESSION', + "2": 'CREATE_TABLE_LIKE_CONSTRAINTS', + "3": 'CREATE_TABLE_LIKE_DEFAULTS', + "4": 'CREATE_TABLE_LIKE_GENERATED', + "5": 'CREATE_TABLE_LIKE_IDENTITY', + "6": 'CREATE_TABLE_LIKE_INDEXES', + "7": 'CREATE_TABLE_LIKE_STATISTICS', + "8": 'CREATE_TABLE_LIKE_STORAGE', + "9": 'CREATE_TABLE_LIKE_ALL' + }, + DefElemAction: { + "0": 'DEFELEM_UNSPEC', + "1": 'DEFELEM_SET', + "2": 'DEFELEM_ADD', + "3": 'DEFELEM_DROP' + }, + PartitionStrategy: { + "0": 'PARTITION_STRATEGY_LIST', + "1": 'PARTITION_STRATEGY_RANGE', + "2": 'PARTITION_STRATEGY_HASH' + }, + PartitionRangeDatumKind: { + "0": 'PARTITION_RANGE_DATUM_MINVALUE', + "1": 'PARTITION_RANGE_DATUM_VALUE', + "2": 'PARTITION_RANGE_DATUM_MAXVALUE' + }, + RTEKind: { + "0": 'RTE_RELATION', + "1": 'RTE_SUBQUERY', + "2": 'RTE_JOIN', + "3": 'RTE_FUNCTION', + "4": 'RTE_TABLEFUNC', + "5": 'RTE_VALUES', + "6": 'RTE_CTE', + "7": 'RTE_NAMEDTUPLESTORE', + "8": 'RTE_RESULT' + }, + WCOKind: { + "0": 'WCO_VIEW_CHECK', + "1": 'WCO_RLS_INSERT_CHECK', + "2": 'WCO_RLS_UPDATE_CHECK', + "3": 'WCO_RLS_CONFLICT_CHECK', + "4": 'WCO_RLS_MERGE_UPDATE_CHECK', + "5": 'WCO_RLS_MERGE_DELETE_CHECK' + }, + GroupingSetKind: { + "0": 'GROUPING_SET_EMPTY', + "1": 'GROUPING_SET_SIMPLE', + "2": 'GROUPING_SET_ROLLUP', + "3": 'GROUPING_SET_CUBE', + "4": 'GROUPING_SET_SETS' + }, + CTEMaterialize: { + "0": 'CTEMaterializeDefault', + "1": 'CTEMaterializeAlways', + "2": 'CTEMaterializeNever' + }, + SetOperation: { + "0": 'SETOP_NONE', + "1": 'SETOP_UNION', + "2": 'SETOP_INTERSECT', + "3": 'SETOP_EXCEPT' + }, + ObjectType: { + "0": 'OBJECT_ACCESS_METHOD', + "1": 'OBJECT_AGGREGATE', + "2": 'OBJECT_AMOP', + "3": 'OBJECT_AMPROC', + "4": 'OBJECT_ATTRIBUTE', + "5": 'OBJECT_CAST', + "6": 'OBJECT_COLUMN', + "7": 'OBJECT_COLLATION', + "8": 'OBJECT_CONVERSION', + "9": 'OBJECT_DATABASE', + "10": 'OBJECT_DEFAULT', + "11": 'OBJECT_DEFACL', + "12": 'OBJECT_DOMAIN', + "13": 'OBJECT_DOMCONSTRAINT', + "14": 'OBJECT_EVENT_TRIGGER', + "15": 'OBJECT_EXTENSION', + "16": 'OBJECT_FDW', + "17": 'OBJECT_FOREIGN_SERVER', + "18": 'OBJECT_FOREIGN_TABLE', + "19": 'OBJECT_FUNCTION', + "20": 'OBJECT_INDEX', + "21": 'OBJECT_LANGUAGE', + "22": 'OBJECT_LARGEOBJECT', + "23": 'OBJECT_MATVIEW', + "24": 'OBJECT_OPCLASS', + "25": 'OBJECT_OPERATOR', + "26": 'OBJECT_OPFAMILY', + "27": 'OBJECT_PARAMETER_ACL', + "28": 'OBJECT_POLICY', + "29": 'OBJECT_PROCEDURE', + "30": 'OBJECT_PUBLICATION', + "31": 'OBJECT_PUBLICATION_NAMESPACE', + "32": 'OBJECT_PUBLICATION_REL', + "33": 'OBJECT_ROLE', + "34": 'OBJECT_ROUTINE', + "35": 'OBJECT_RULE', + "36": 'OBJECT_SCHEMA', + "37": 'OBJECT_SEQUENCE', + "38": 'OBJECT_SUBSCRIPTION', + "39": 'OBJECT_STATISTIC_EXT', + "40": 'OBJECT_TABCONSTRAINT', + "41": 'OBJECT_TABLE', + "42": 'OBJECT_TABLESPACE', + "43": 'OBJECT_TRANSFORM', + "44": 'OBJECT_TRIGGER', + "45": 'OBJECT_TSCONFIGURATION', + "46": 'OBJECT_TSDICTIONARY', + "47": 'OBJECT_TSPARSER', + "48": 'OBJECT_TSTEMPLATE', + "49": 'OBJECT_TYPE', + "50": 'OBJECT_USER_MAPPING', + "51": 'OBJECT_VIEW' + }, + DropBehavior: { + "0": 'DROP_RESTRICT', + "1": 'DROP_CASCADE' + }, + AlterTableType: { + "0": 'AT_AddColumn', + "1": 'AT_AddColumnToView', + "2": 'AT_ColumnDefault', + "3": 'AT_CookedColumnDefault', + "4": 'AT_DropNotNull', + "5": 'AT_SetNotNull', + "6": 'AT_DropExpression', + "7": 'AT_CheckNotNull', + "8": 'AT_SetStatistics', + "9": 'AT_SetOptions', + "10": 'AT_ResetOptions', + "11": 'AT_SetStorage', + "12": 'AT_SetCompression', + "13": 'AT_DropColumn', + "14": 'AT_AddIndex', + "15": 'AT_ReAddIndex', + "16": 'AT_AddConstraint', + "17": 'AT_ReAddConstraint', + "18": 'AT_ReAddDomainConstraint', + "19": 'AT_AlterConstraint', + "20": 'AT_ValidateConstraint', + "21": 'AT_AddIndexConstraint', + "22": 'AT_DropConstraint', + "23": 'AT_ReAddComment', + "24": 'AT_AlterColumnType', + "25": 'AT_AlterColumnGenericOptions', + "26": 'AT_ChangeOwner', + "27": 'AT_ClusterOn', + "28": 'AT_DropCluster', + "29": 'AT_SetLogged', + "30": 'AT_SetUnLogged', + "31": 'AT_DropOids', + "32": 'AT_SetAccessMethod', + "33": 'AT_SetTableSpace', + "34": 'AT_SetRelOptions', + "35": 'AT_ResetRelOptions', + "36": 'AT_ReplaceRelOptions', + "37": 'AT_EnableTrig', + "38": 'AT_EnableAlwaysTrig', + "39": 'AT_EnableReplicaTrig', + "40": 'AT_DisableTrig', + "41": 'AT_EnableTrigAll', + "42": 'AT_DisableTrigAll', + "43": 'AT_EnableTrigUser', + "44": 'AT_DisableTrigUser', + "45": 'AT_EnableRule', + "46": 'AT_EnableAlwaysRule', + "47": 'AT_EnableReplicaRule', + "48": 'AT_DisableRule', + "49": 'AT_AddInherit', + "50": 'AT_DropInherit', + "51": 'AT_AddOf', + "52": 'AT_DropOf', + "53": 'AT_ReplicaIdentity', + "54": 'AT_EnableRowSecurity', + "55": 'AT_DisableRowSecurity', + "56": 'AT_ForceRowSecurity', + "57": 'AT_NoForceRowSecurity', + "58": 'AT_GenericOptions', + "59": 'AT_AttachPartition', + "60": 'AT_DetachPartition', + "61": 'AT_DetachPartitionFinalize', + "62": 'AT_AddIdentity', + "63": 'AT_SetIdentity', + "64": 'AT_DropIdentity', + "65": 'AT_ReAddStatistics' + }, + GrantTargetType: { + "0": 'ACL_TARGET_OBJECT', + "1": 'ACL_TARGET_ALL_IN_SCHEMA', + "2": 'ACL_TARGET_DEFAULTS' + }, + VariableSetKind: { + "0": 'VAR_SET_VALUE', + "1": 'VAR_SET_DEFAULT', + "2": 'VAR_SET_CURRENT', + "3": 'VAR_SET_MULTI', + "4": 'VAR_RESET', + "5": 'VAR_RESET_ALL' + }, + ConstrType: { + "0": 'CONSTR_NULL', + "1": 'CONSTR_NOTNULL', + "2": 'CONSTR_DEFAULT', + "3": 'CONSTR_IDENTITY', + "4": 'CONSTR_GENERATED', + "5": 'CONSTR_CHECK', + "6": 'CONSTR_PRIMARY', + "7": 'CONSTR_UNIQUE', + "8": 'CONSTR_EXCLUSION', + "9": 'CONSTR_FOREIGN', + "10": 'CONSTR_ATTR_DEFERRABLE', + "11": 'CONSTR_ATTR_NOT_DEFERRABLE', + "12": 'CONSTR_ATTR_DEFERRED', + "13": 'CONSTR_ATTR_IMMEDIATE' + }, + ImportForeignSchemaType: { + "0": 'FDW_IMPORT_SCHEMA_ALL', + "1": 'FDW_IMPORT_SCHEMA_LIMIT_TO', + "2": 'FDW_IMPORT_SCHEMA_EXCEPT' + }, + RoleStmtType: { + "0": 'ROLESTMT_ROLE', + "1": 'ROLESTMT_USER', + "2": 'ROLESTMT_GROUP' + }, + FetchDirection: { + "0": 'FETCH_FORWARD', + "1": 'FETCH_BACKWARD', + "2": 'FETCH_ABSOLUTE', + "3": 'FETCH_RELATIVE' + }, + FunctionParameterMode: { + "0": 'FUNC_PARAM_IN', + "1": 'FUNC_PARAM_OUT', + "2": 'FUNC_PARAM_INOUT', + "3": 'FUNC_PARAM_VARIADIC', + "4": 'FUNC_PARAM_TABLE', + "5": 'FUNC_PARAM_DEFAULT' + }, + TransactionStmtKind: { + "0": 'TRANS_STMT_BEGIN', + "1": 'TRANS_STMT_START', + "2": 'TRANS_STMT_COMMIT', + "3": 'TRANS_STMT_ROLLBACK', + "4": 'TRANS_STMT_SAVEPOINT', + "5": 'TRANS_STMT_RELEASE', + "6": 'TRANS_STMT_ROLLBACK_TO', + "7": 'TRANS_STMT_PREPARE', + "8": 'TRANS_STMT_COMMIT_PREPARED', + "9": 'TRANS_STMT_ROLLBACK_PREPARED' + }, + ViewCheckOption: { + "0": 'NO_CHECK_OPTION', + "1": 'LOCAL_CHECK_OPTION', + "2": 'CASCADED_CHECK_OPTION' + }, + DiscardMode: { + "0": 'DISCARD_ALL', + "1": 'DISCARD_PLANS', + "2": 'DISCARD_SEQUENCES', + "3": 'DISCARD_TEMP' + }, + ReindexObjectType: { + "0": 'REINDEX_OBJECT_INDEX', + "1": 'REINDEX_OBJECT_TABLE', + "2": 'REINDEX_OBJECT_SCHEMA', + "3": 'REINDEX_OBJECT_SYSTEM', + "4": 'REINDEX_OBJECT_DATABASE' + }, + AlterTSConfigType: { + "0": 'ALTER_TSCONFIG_ADD_MAPPING', + "1": 'ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN', + "2": 'ALTER_TSCONFIG_REPLACE_DICT', + "3": 'ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN', + "4": 'ALTER_TSCONFIG_DROP_MAPPING' + }, + PublicationObjSpecType: { + "0": 'PUBLICATIONOBJ_TABLE', + "1": 'PUBLICATIONOBJ_TABLES_IN_SCHEMA', + "2": 'PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA', + "3": 'PUBLICATIONOBJ_CONTINUATION' + }, + AlterPublicationAction: { + "0": 'AP_AddObjects', + "1": 'AP_DropObjects', + "2": 'AP_SetObjects' + }, + AlterSubscriptionType: { + "0": 'ALTER_SUBSCRIPTION_OPTIONS', + "1": 'ALTER_SUBSCRIPTION_CONNECTION', + "2": 'ALTER_SUBSCRIPTION_SET_PUBLICATION', + "3": 'ALTER_SUBSCRIPTION_ADD_PUBLICATION', + "4": 'ALTER_SUBSCRIPTION_DROP_PUBLICATION', + "5": 'ALTER_SUBSCRIPTION_REFRESH', + "6": 'ALTER_SUBSCRIPTION_ENABLED', + "7": 'ALTER_SUBSCRIPTION_SKIP' + }, + OnCommitAction: { + "0": 'ONCOMMIT_NOOP', + "1": 'ONCOMMIT_PRESERVE_ROWS', + "2": 'ONCOMMIT_DELETE_ROWS', + "3": 'ONCOMMIT_DROP' + }, + ParamKind: { + "0": 'PARAM_EXTERN', + "1": 'PARAM_EXEC', + "2": 'PARAM_SUBLINK', + "3": 'PARAM_MULTIEXPR' + }, + CoercionContext: { + "0": 'COERCION_IMPLICIT', + "1": 'COERCION_ASSIGNMENT', + "2": 'COERCION_PLPGSQL', + "3": 'COERCION_EXPLICIT' + }, + CoercionForm: { + "0": 'COERCE_EXPLICIT_CALL', + "1": 'COERCE_EXPLICIT_CAST', + "2": 'COERCE_IMPLICIT_CAST', + "3": 'COERCE_SQL_SYNTAX' + }, + BoolExprType: { + "0": 'AND_EXPR', + "1": 'OR_EXPR', + "2": 'NOT_EXPR' + }, + SubLinkType: { + "0": 'EXISTS_SUBLINK', + "1": 'ALL_SUBLINK', + "2": 'ANY_SUBLINK', + "3": 'ROWCOMPARE_SUBLINK', + "4": 'EXPR_SUBLINK', + "5": 'MULTIEXPR_SUBLINK', + "6": 'ARRAY_SUBLINK', + "7": 'CTE_SUBLINK' + }, + RowCompareType: { + "0": 'ROWCOMPARE_LT', + "1": 'ROWCOMPARE_LE', + "2": 'ROWCOMPARE_EQ', + "3": 'ROWCOMPARE_GE', + "4": 'ROWCOMPARE_GT', + "5": 'ROWCOMPARE_NE' + }, + MinMaxOp: { + "0": 'IS_GREATEST', + "1": 'IS_LEAST' + }, + SQLValueFunctionOp: { + "0": 'SVFOP_CURRENT_DATE', + "1": 'SVFOP_CURRENT_TIME', + "2": 'SVFOP_CURRENT_TIME_N', + "3": 'SVFOP_CURRENT_TIMESTAMP', + "4": 'SVFOP_CURRENT_TIMESTAMP_N', + "5": 'SVFOP_LOCALTIME', + "6": 'SVFOP_LOCALTIME_N', + "7": 'SVFOP_LOCALTIMESTAMP', + "8": 'SVFOP_LOCALTIMESTAMP_N', + "9": 'SVFOP_CURRENT_ROLE', + "10": 'SVFOP_CURRENT_USER', + "11": 'SVFOP_USER', + "12": 'SVFOP_SESSION_USER', + "13": 'SVFOP_CURRENT_CATALOG', + "14": 'SVFOP_CURRENT_SCHEMA' + }, + XmlExprOp: { + "0": 'IS_XMLCONCAT', + "1": 'IS_XMLELEMENT', + "2": 'IS_XMLFOREST', + "3": 'IS_XMLPARSE', + "4": 'IS_XMLPI', + "5": 'IS_XMLROOT', + "6": 'IS_XMLSERIALIZE', + "7": 'IS_DOCUMENT' + }, + XmlOptionType: { + "0": 'XMLOPTION_DOCUMENT', + "1": 'XMLOPTION_CONTENT' + }, + JsonEncoding: { + "0": 'JS_ENC_DEFAULT', + "1": 'JS_ENC_UTF8', + "2": 'JS_ENC_UTF16', + "3": 'JS_ENC_UTF32' + }, + JsonFormatType: { + "0": 'JS_FORMAT_DEFAULT', + "1": 'JS_FORMAT_JSON', + "2": 'JS_FORMAT_JSONB' + }, + JsonConstructorType: { + "0": 'JSCTOR_JSON_OBJECT', + "1": 'JSCTOR_JSON_ARRAY', + "2": 'JSCTOR_JSON_OBJECTAGG', + "3": 'JSCTOR_JSON_ARRAYAGG' + }, + JsonValueType: { + "0": 'JS_TYPE_ANY', + "1": 'JS_TYPE_OBJECT', + "2": 'JS_TYPE_ARRAY', + "3": 'JS_TYPE_SCALAR' + }, + NullTestType: { + "0": 'IS_NULL', + "1": 'IS_NOT_NULL' + }, + BoolTestType: { + "0": 'IS_TRUE', + "1": 'IS_NOT_TRUE', + "2": 'IS_FALSE', + "3": 'IS_NOT_FALSE', + "4": 'IS_UNKNOWN', + "5": 'IS_NOT_UNKNOWN' + }, + CmdType: { + "0": 'CMD_UNKNOWN', + "1": 'CMD_SELECT', + "2": 'CMD_UPDATE', + "3": 'CMD_INSERT', + "4": 'CMD_DELETE', + "5": 'CMD_MERGE', + "6": 'CMD_UTILITY', + "7": 'CMD_NOTHING' + }, + JoinType: { + "0": 'JOIN_INNER', + "1": 'JOIN_LEFT', + "2": 'JOIN_FULL', + "3": 'JOIN_RIGHT', + "4": 'JOIN_SEMI', + "5": 'JOIN_ANTI', + "6": 'JOIN_RIGHT_ANTI', + "7": 'JOIN_UNIQUE_OUTER', + "8": 'JOIN_UNIQUE_INNER' + }, + AggStrategy: { + "0": 'AGG_PLAIN', + "1": 'AGG_SORTED', + "2": 'AGG_HASHED', + "3": 'AGG_MIXED' + }, + AggSplit: { + "0": 'AGGSPLIT_SIMPLE', + "1": 'AGGSPLIT_INITIAL_SERIAL', + "2": 'AGGSPLIT_FINAL_DESERIAL' + }, + SetOpCmd: { + "0": 'SETOPCMD_INTERSECT', + "1": 'SETOPCMD_INTERSECT_ALL', + "2": 'SETOPCMD_EXCEPT', + "3": 'SETOPCMD_EXCEPT_ALL' + }, + SetOpStrategy: { + "0": 'SETOP_SORTED', + "1": 'SETOP_HASHED' + }, + OnConflictAction: { + "0": 'ONCONFLICT_NONE', + "1": 'ONCONFLICT_NOTHING', + "2": 'ONCONFLICT_UPDATE' + }, + LimitOption: { + "0": 'LIMIT_OPTION_DEFAULT', + "1": 'LIMIT_OPTION_COUNT', + "2": 'LIMIT_OPTION_WITH_TIES' + }, + LockClauseStrength: { + "0": 'LCS_NONE', + "1": 'LCS_FORKEYSHARE', + "2": 'LCS_FORSHARE', + "3": 'LCS_FORNOKEYUPDATE', + "4": 'LCS_FORUPDATE' + }, + LockWaitPolicy: { + "0": 'LockWaitBlock', + "1": 'LockWaitSkip', + "2": 'LockWaitError' + }, + LockTupleMode: { + "0": 'LockTupleKeyShare', + "1": 'LockTupleShare', + "2": 'LockTupleNoKeyExclusive', + "3": 'LockTupleExclusive' + }, + KeywordKind: { + "0": 'NO_KEYWORD', + "1": 'UNRESERVED_KEYWORD', + "2": 'COL_NAME_KEYWORD', + "3": 'TYPE_FUNC_NAME_KEYWORD', + "4": 'RESERVED_KEYWORD' + }, + Token: { + "0": 'NUL', + "36": 'ASCII_36', + "37": 'ASCII_37', + "40": 'ASCII_40', + "41": 'ASCII_41', + "42": 'ASCII_42', + "43": 'ASCII_43', + "44": 'ASCII_44', + "45": 'ASCII_45', + "46": 'ASCII_46', + "47": 'ASCII_47', + "58": 'ASCII_58', + "59": 'ASCII_59', + "60": 'ASCII_60', + "61": 'ASCII_61', + "62": 'ASCII_62', + "63": 'ASCII_63', + "91": 'ASCII_91', + "92": 'ASCII_92', + "93": 'ASCII_93', + "94": 'ASCII_94', + "258": 'IDENT', + "259": 'UIDENT', + "260": 'FCONST', + "261": 'SCONST', + "262": 'USCONST', + "263": 'BCONST', + "264": 'XCONST', + "265": 'Op', + "266": 'ICONST', + "267": 'PARAM', + "268": 'TYPECAST', + "269": 'DOT_DOT', + "270": 'COLON_EQUALS', + "271": 'EQUALS_GREATER', + "272": 'LESS_EQUALS', + "273": 'GREATER_EQUALS', + "274": 'NOT_EQUALS', + "275": 'SQL_COMMENT', + "276": 'C_COMMENT', + "277": 'ABORT_P', + "278": 'ABSENT', + "279": 'ABSOLUTE_P', + "280": 'ACCESS', + "281": 'ACTION', + "282": 'ADD_P', + "283": 'ADMIN', + "284": 'AFTER', + "285": 'AGGREGATE', + "286": 'ALL', + "287": 'ALSO', + "288": 'ALTER', + "289": 'ALWAYS', + "290": 'ANALYSE', + "291": 'ANALYZE', + "292": 'AND', + "293": 'ANY', + "294": 'ARRAY', + "295": 'AS', + "296": 'ASC', + "297": 'ASENSITIVE', + "298": 'ASSERTION', + "299": 'ASSIGNMENT', + "300": 'ASYMMETRIC', + "301": 'ATOMIC', + "302": 'AT', + "303": 'ATTACH', + "304": 'ATTRIBUTE', + "305": 'AUTHORIZATION', + "306": 'BACKWARD', + "307": 'BEFORE', + "308": 'BEGIN_P', + "309": 'BETWEEN', + "310": 'BIGINT', + "311": 'BINARY', + "312": 'BIT', + "313": 'BOOLEAN_P', + "314": 'BOTH', + "315": 'BREADTH', + "316": 'BY', + "317": 'CACHE', + "318": 'CALL', + "319": 'CALLED', + "320": 'CASCADE', + "321": 'CASCADED', + "322": 'CASE', + "323": 'CAST', + "324": 'CATALOG_P', + "325": 'CHAIN', + "326": 'CHAR_P', + "327": 'CHARACTER', + "328": 'CHARACTERISTICS', + "329": 'CHECK', + "330": 'CHECKPOINT', + "331": 'CLASS', + "332": 'CLOSE', + "333": 'CLUSTER', + "334": 'COALESCE', + "335": 'COLLATE', + "336": 'COLLATION', + "337": 'COLUMN', + "338": 'COLUMNS', + "339": 'COMMENT', + "340": 'COMMENTS', + "341": 'COMMIT', + "342": 'COMMITTED', + "343": 'COMPRESSION', + "344": 'CONCURRENTLY', + "345": 'CONFIGURATION', + "346": 'CONFLICT', + "347": 'CONNECTION', + "348": 'CONSTRAINT', + "349": 'CONSTRAINTS', + "350": 'CONTENT_P', + "351": 'CONTINUE_P', + "352": 'CONVERSION_P', + "353": 'COPY', + "354": 'COST', + "355": 'CREATE', + "356": 'CROSS', + "357": 'CSV', + "358": 'CUBE', + "359": 'CURRENT_P', + "360": 'CURRENT_CATALOG', + "361": 'CURRENT_DATE', + "362": 'CURRENT_ROLE', + "363": 'CURRENT_SCHEMA', + "364": 'CURRENT_TIME', + "365": 'CURRENT_TIMESTAMP', + "366": 'CURRENT_USER', + "367": 'CURSOR', + "368": 'CYCLE', + "369": 'DATA_P', + "370": 'DATABASE', + "371": 'DAY_P', + "372": 'DEALLOCATE', + "373": 'DEC', + "374": 'DECIMAL_P', + "375": 'DECLARE', + "376": 'DEFAULT', + "377": 'DEFAULTS', + "378": 'DEFERRABLE', + "379": 'DEFERRED', + "380": 'DEFINER', + "381": 'DELETE_P', + "382": 'DELIMITER', + "383": 'DELIMITERS', + "384": 'DEPENDS', + "385": 'DEPTH', + "386": 'DESC', + "387": 'DETACH', + "388": 'DICTIONARY', + "389": 'DISABLE_P', + "390": 'DISCARD', + "391": 'DISTINCT', + "392": 'DO', + "393": 'DOCUMENT_P', + "394": 'DOMAIN_P', + "395": 'DOUBLE_P', + "396": 'DROP', + "397": 'EACH', + "398": 'ELSE', + "399": 'ENABLE_P', + "400": 'ENCODING', + "401": 'ENCRYPTED', + "402": 'END_P', + "403": 'ENUM_P', + "404": 'ESCAPE', + "405": 'EVENT', + "406": 'EXCEPT', + "407": 'EXCLUDE', + "408": 'EXCLUDING', + "409": 'EXCLUSIVE', + "410": 'EXECUTE', + "411": 'EXISTS', + "412": 'EXPLAIN', + "413": 'EXPRESSION', + "414": 'EXTENSION', + "415": 'EXTERNAL', + "416": 'EXTRACT', + "417": 'FALSE_P', + "418": 'FAMILY', + "419": 'FETCH', + "420": 'FILTER', + "421": 'FINALIZE', + "422": 'FIRST_P', + "423": 'FLOAT_P', + "424": 'FOLLOWING', + "425": 'FOR', + "426": 'FORCE', + "427": 'FOREIGN', + "428": 'FORMAT', + "429": 'FORWARD', + "430": 'FREEZE', + "431": 'FROM', + "432": 'FULL', + "433": 'FUNCTION', + "434": 'FUNCTIONS', + "435": 'GENERATED', + "436": 'GLOBAL', + "437": 'GRANT', + "438": 'GRANTED', + "439": 'GREATEST', + "440": 'GROUP_P', + "441": 'GROUPING', + "442": 'GROUPS', + "443": 'HANDLER', + "444": 'HAVING', + "445": 'HEADER_P', + "446": 'HOLD', + "447": 'HOUR_P', + "448": 'IDENTITY_P', + "449": 'IF_P', + "450": 'ILIKE', + "451": 'IMMEDIATE', + "452": 'IMMUTABLE', + "453": 'IMPLICIT_P', + "454": 'IMPORT_P', + "455": 'IN_P', + "456": 'INCLUDE', + "457": 'INCLUDING', + "458": 'INCREMENT', + "459": 'INDENT', + "460": 'INDEX', + "461": 'INDEXES', + "462": 'INHERIT', + "463": 'INHERITS', + "464": 'INITIALLY', + "465": 'INLINE_P', + "466": 'INNER_P', + "467": 'INOUT', + "468": 'INPUT_P', + "469": 'INSENSITIVE', + "470": 'INSERT', + "471": 'INSTEAD', + "472": 'INT_P', + "473": 'INTEGER', + "474": 'INTERSECT', + "475": 'INTERVAL', + "476": 'INTO', + "477": 'INVOKER', + "478": 'IS', + "479": 'ISNULL', + "480": 'ISOLATION', + "481": 'JOIN', + "482": 'JSON', + "483": 'JSON_ARRAY', + "484": 'JSON_ARRAYAGG', + "485": 'JSON_OBJECT', + "486": 'JSON_OBJECTAGG', + "487": 'KEY', + "488": 'KEYS', + "489": 'LABEL', + "490": 'LANGUAGE', + "491": 'LARGE_P', + "492": 'LAST_P', + "493": 'LATERAL_P', + "494": 'LEADING', + "495": 'LEAKPROOF', + "496": 'LEAST', + "497": 'LEFT', + "498": 'LEVEL', + "499": 'LIKE', + "500": 'LIMIT', + "501": 'LISTEN', + "502": 'LOAD', + "503": 'LOCAL', + "504": 'LOCALTIME', + "505": 'LOCALTIMESTAMP', + "506": 'LOCATION', + "507": 'LOCK_P', + "508": 'LOCKED', + "509": 'LOGGED', + "510": 'MAPPING', + "511": 'MATCH', + "512": 'MATCHED', + "513": 'MATERIALIZED', + "514": 'MAXVALUE', + "515": 'MERGE', + "516": 'METHOD', + "517": 'MINUTE_P', + "518": 'MINVALUE', + "519": 'MODE', + "520": 'MONTH_P', + "521": 'MOVE', + "522": 'NAME_P', + "523": 'NAMES', + "524": 'NATIONAL', + "525": 'NATURAL', + "526": 'NCHAR', + "527": 'NEW', + "528": 'NEXT', + "529": 'NFC', + "530": 'NFD', + "531": 'NFKC', + "532": 'NFKD', + "533": 'NO', + "534": 'NONE', + "535": 'NORMALIZE', + "536": 'NORMALIZED', + "537": 'NOT', + "538": 'NOTHING', + "539": 'NOTIFY', + "540": 'NOTNULL', + "541": 'NOWAIT', + "542": 'NULL_P', + "543": 'NULLIF', + "544": 'NULLS_P', + "545": 'NUMERIC', + "546": 'OBJECT_P', + "547": 'OF', + "548": 'OFF', + "549": 'OFFSET', + "550": 'OIDS', + "551": 'OLD', + "552": 'ON', + "553": 'ONLY', + "554": 'OPERATOR', + "555": 'OPTION', + "556": 'OPTIONS', + "557": 'OR', + "558": 'ORDER', + "559": 'ORDINALITY', + "560": 'OTHERS', + "561": 'OUT_P', + "562": 'OUTER_P', + "563": 'OVER', + "564": 'OVERLAPS', + "565": 'OVERLAY', + "566": 'OVERRIDING', + "567": 'OWNED', + "568": 'OWNER', + "569": 'PARALLEL', + "570": 'PARAMETER', + "571": 'PARSER', + "572": 'PARTIAL', + "573": 'PARTITION', + "574": 'PASSING', + "575": 'PASSWORD', + "576": 'PLACING', + "577": 'PLANS', + "578": 'POLICY', + "579": 'POSITION', + "580": 'PRECEDING', + "581": 'PRECISION', + "582": 'PRESERVE', + "583": 'PREPARE', + "584": 'PREPARED', + "585": 'PRIMARY', + "586": 'PRIOR', + "587": 'PRIVILEGES', + "588": 'PROCEDURAL', + "589": 'PROCEDURE', + "590": 'PROCEDURES', + "591": 'PROGRAM', + "592": 'PUBLICATION', + "593": 'QUOTE', + "594": 'RANGE', + "595": 'READ', + "596": 'REAL', + "597": 'REASSIGN', + "598": 'RECHECK', + "599": 'RECURSIVE', + "600": 'REF_P', + "601": 'REFERENCES', + "602": 'REFERENCING', + "603": 'REFRESH', + "604": 'REINDEX', + "605": 'RELATIVE_P', + "606": 'RELEASE', + "607": 'RENAME', + "608": 'REPEATABLE', + "609": 'REPLACE', + "610": 'REPLICA', + "611": 'RESET', + "612": 'RESTART', + "613": 'RESTRICT', + "614": 'RETURN', + "615": 'RETURNING', + "616": 'RETURNS', + "617": 'REVOKE', + "618": 'RIGHT', + "619": 'ROLE', + "620": 'ROLLBACK', + "621": 'ROLLUP', + "622": 'ROUTINE', + "623": 'ROUTINES', + "624": 'ROW', + "625": 'ROWS', + "626": 'RULE', + "627": 'SAVEPOINT', + "628": 'SCALAR', + "629": 'SCHEMA', + "630": 'SCHEMAS', + "631": 'SCROLL', + "632": 'SEARCH', + "633": 'SECOND_P', + "634": 'SECURITY', + "635": 'SELECT', + "636": 'SEQUENCE', + "637": 'SEQUENCES', + "638": 'SERIALIZABLE', + "639": 'SERVER', + "640": 'SESSION', + "641": 'SESSION_USER', + "642": 'SET', + "643": 'SETS', + "644": 'SETOF', + "645": 'SHARE', + "646": 'SHOW', + "647": 'SIMILAR', + "648": 'SIMPLE', + "649": 'SKIP', + "650": 'SMALLINT', + "651": 'SNAPSHOT', + "652": 'SOME', + "653": 'SQL_P', + "654": 'STABLE', + "655": 'STANDALONE_P', + "656": 'START', + "657": 'STATEMENT', + "658": 'STATISTICS', + "659": 'STDIN', + "660": 'STDOUT', + "661": 'STORAGE', + "662": 'STORED', + "663": 'STRICT_P', + "664": 'STRIP_P', + "665": 'SUBSCRIPTION', + "666": 'SUBSTRING', + "667": 'SUPPORT', + "668": 'SYMMETRIC', + "669": 'SYSID', + "670": 'SYSTEM_P', + "671": 'SYSTEM_USER', + "672": 'TABLE', + "673": 'TABLES', + "674": 'TABLESAMPLE', + "675": 'TABLESPACE', + "676": 'TEMP', + "677": 'TEMPLATE', + "678": 'TEMPORARY', + "679": 'TEXT_P', + "680": 'THEN', + "681": 'TIES', + "682": 'TIME', + "683": 'TIMESTAMP', + "684": 'TO', + "685": 'TRAILING', + "686": 'TRANSACTION', + "687": 'TRANSFORM', + "688": 'TREAT', + "689": 'TRIGGER', + "690": 'TRIM', + "691": 'TRUE_P', + "692": 'TRUNCATE', + "693": 'TRUSTED', + "694": 'TYPE_P', + "695": 'TYPES_P', + "696": 'UESCAPE', + "697": 'UNBOUNDED', + "698": 'UNCOMMITTED', + "699": 'UNENCRYPTED', + "700": 'UNION', + "701": 'UNIQUE', + "702": 'UNKNOWN', + "703": 'UNLISTEN', + "704": 'UNLOGGED', + "705": 'UNTIL', + "706": 'UPDATE', + "707": 'USER', + "708": 'USING', + "709": 'VACUUM', + "710": 'VALID', + "711": 'VALIDATE', + "712": 'VALIDATOR', + "713": 'VALUE_P', + "714": 'VALUES', + "715": 'VARCHAR', + "716": 'VARIADIC', + "717": 'VARYING', + "718": 'VERBOSE', + "719": 'VERSION_P', + "720": 'VIEW', + "721": 'VIEWS', + "722": 'VOLATILE', + "723": 'WHEN', + "724": 'WHERE', + "725": 'WHITESPACE_P', + "726": 'WINDOW', + "727": 'WITH', + "728": 'WITHIN', + "729": 'WITHOUT', + "730": 'WORK', + "731": 'WRAPPER', + "732": 'WRITE', + "733": 'XML_P', + "734": 'XMLATTRIBUTES', + "735": 'XMLCONCAT', + "736": 'XMLELEMENT', + "737": 'XMLEXISTS', + "738": 'XMLFOREST', + "739": 'XMLNAMESPACES', + "740": 'XMLPARSE', + "741": 'XMLPI', + "742": 'XMLROOT', + "743": 'XMLSERIALIZE', + "744": 'XMLTABLE', + "745": 'YEAR_P', + "746": 'YES_P', + "747": 'ZONE', + "748": 'FORMAT_LA', + "749": 'NOT_LA', + "750": 'NULLS_LA', + "751": 'WITH_LA', + "752": 'WITHOUT_LA', + "753": 'MODE_TYPE_NAME', + "754": 'MODE_PLPGSQL_EXPR', + "755": 'MODE_PLPGSQL_ASSIGN1', + "756": 'MODE_PLPGSQL_ASSIGN2', + "757": 'MODE_PLPGSQL_ASSIGN3', + "758": 'UMINUS' + } +}; +export type EnumToStrMap = typeof enumToStrMap;", + "file": "enum-to-str.ts", + }, + { + "code": "/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export const enumToIntMap = { + OverridingKind: { + OVERRIDING_NOT_SET: 0, + OVERRIDING_USER_VALUE: 1, + OVERRIDING_SYSTEM_VALUE: 2 + }, + QuerySource: { + QSRC_ORIGINAL: 0, + QSRC_PARSER: 1, + QSRC_INSTEAD_RULE: 2, + QSRC_QUAL_INSTEAD_RULE: 3, + QSRC_NON_INSTEAD_RULE: 4 + }, + SortByDir: { + SORTBY_DEFAULT: 0, + SORTBY_ASC: 1, + SORTBY_DESC: 2, + SORTBY_USING: 3 + }, + SortByNulls: { + SORTBY_NULLS_DEFAULT: 0, + SORTBY_NULLS_FIRST: 1, + SORTBY_NULLS_LAST: 2 + }, + SetQuantifier: { + SET_QUANTIFIER_DEFAULT: 0, + SET_QUANTIFIER_ALL: 1, + SET_QUANTIFIER_DISTINCT: 2 + }, + A_Expr_Kind: { + AEXPR_OP: 0, + AEXPR_OP_ANY: 1, + AEXPR_OP_ALL: 2, + AEXPR_DISTINCT: 3, + AEXPR_NOT_DISTINCT: 4, + AEXPR_NULLIF: 5, + AEXPR_IN: 6, + AEXPR_LIKE: 7, + AEXPR_ILIKE: 8, + AEXPR_SIMILAR: 9, + AEXPR_BETWEEN: 10, + AEXPR_NOT_BETWEEN: 11, + AEXPR_BETWEEN_SYM: 12, + AEXPR_NOT_BETWEEN_SYM: 13 + }, + RoleSpecType: { + ROLESPEC_CSTRING: 0, + ROLESPEC_CURRENT_ROLE: 1, + ROLESPEC_CURRENT_USER: 2, + ROLESPEC_SESSION_USER: 3, + ROLESPEC_PUBLIC: 4 + }, + TableLikeOption: { + CREATE_TABLE_LIKE_COMMENTS: 0, + CREATE_TABLE_LIKE_COMPRESSION: 1, + CREATE_TABLE_LIKE_CONSTRAINTS: 2, + CREATE_TABLE_LIKE_DEFAULTS: 3, + CREATE_TABLE_LIKE_GENERATED: 4, + CREATE_TABLE_LIKE_IDENTITY: 5, + CREATE_TABLE_LIKE_INDEXES: 6, + CREATE_TABLE_LIKE_STATISTICS: 7, + CREATE_TABLE_LIKE_STORAGE: 8, + CREATE_TABLE_LIKE_ALL: 9 + }, + DefElemAction: { + DEFELEM_UNSPEC: 0, + DEFELEM_SET: 1, + DEFELEM_ADD: 2, + DEFELEM_DROP: 3 + }, + PartitionStrategy: { + PARTITION_STRATEGY_LIST: 0, + PARTITION_STRATEGY_RANGE: 1, + PARTITION_STRATEGY_HASH: 2 + }, + PartitionRangeDatumKind: { + PARTITION_RANGE_DATUM_MINVALUE: 0, + PARTITION_RANGE_DATUM_VALUE: 1, + PARTITION_RANGE_DATUM_MAXVALUE: 2 + }, + RTEKind: { + RTE_RELATION: 0, + RTE_SUBQUERY: 1, + RTE_JOIN: 2, + RTE_FUNCTION: 3, + RTE_TABLEFUNC: 4, + RTE_VALUES: 5, + RTE_CTE: 6, + RTE_NAMEDTUPLESTORE: 7, + RTE_RESULT: 8 + }, + WCOKind: { + WCO_VIEW_CHECK: 0, + WCO_RLS_INSERT_CHECK: 1, + WCO_RLS_UPDATE_CHECK: 2, + WCO_RLS_CONFLICT_CHECK: 3, + WCO_RLS_MERGE_UPDATE_CHECK: 4, + WCO_RLS_MERGE_DELETE_CHECK: 5 + }, + GroupingSetKind: { + GROUPING_SET_EMPTY: 0, + GROUPING_SET_SIMPLE: 1, + GROUPING_SET_ROLLUP: 2, + GROUPING_SET_CUBE: 3, + GROUPING_SET_SETS: 4 + }, + CTEMaterialize: { + CTEMaterializeDefault: 0, + CTEMaterializeAlways: 1, + CTEMaterializeNever: 2 + }, + SetOperation: { + SETOP_NONE: 0, + SETOP_UNION: 1, + SETOP_INTERSECT: 2, + SETOP_EXCEPT: 3 + }, + ObjectType: { + OBJECT_ACCESS_METHOD: 0, + OBJECT_AGGREGATE: 1, + OBJECT_AMOP: 2, + OBJECT_AMPROC: 3, + OBJECT_ATTRIBUTE: 4, + OBJECT_CAST: 5, + OBJECT_COLUMN: 6, + OBJECT_COLLATION: 7, + OBJECT_CONVERSION: 8, + OBJECT_DATABASE: 9, + OBJECT_DEFAULT: 10, + OBJECT_DEFACL: 11, + OBJECT_DOMAIN: 12, + OBJECT_DOMCONSTRAINT: 13, + OBJECT_EVENT_TRIGGER: 14, + OBJECT_EXTENSION: 15, + OBJECT_FDW: 16, + OBJECT_FOREIGN_SERVER: 17, + OBJECT_FOREIGN_TABLE: 18, + OBJECT_FUNCTION: 19, + OBJECT_INDEX: 20, + OBJECT_LANGUAGE: 21, + OBJECT_LARGEOBJECT: 22, + OBJECT_MATVIEW: 23, + OBJECT_OPCLASS: 24, + OBJECT_OPERATOR: 25, + OBJECT_OPFAMILY: 26, + OBJECT_PARAMETER_ACL: 27, + OBJECT_POLICY: 28, + OBJECT_PROCEDURE: 29, + OBJECT_PUBLICATION: 30, + OBJECT_PUBLICATION_NAMESPACE: 31, + OBJECT_PUBLICATION_REL: 32, + OBJECT_ROLE: 33, + OBJECT_ROUTINE: 34, + OBJECT_RULE: 35, + OBJECT_SCHEMA: 36, + OBJECT_SEQUENCE: 37, + OBJECT_SUBSCRIPTION: 38, + OBJECT_STATISTIC_EXT: 39, + OBJECT_TABCONSTRAINT: 40, + OBJECT_TABLE: 41, + OBJECT_TABLESPACE: 42, + OBJECT_TRANSFORM: 43, + OBJECT_TRIGGER: 44, + OBJECT_TSCONFIGURATION: 45, + OBJECT_TSDICTIONARY: 46, + OBJECT_TSPARSER: 47, + OBJECT_TSTEMPLATE: 48, + OBJECT_TYPE: 49, + OBJECT_USER_MAPPING: 50, + OBJECT_VIEW: 51 + }, + DropBehavior: { + DROP_RESTRICT: 0, + DROP_CASCADE: 1 + }, + AlterTableType: { + AT_AddColumn: 0, + AT_AddColumnToView: 1, + AT_ColumnDefault: 2, + AT_CookedColumnDefault: 3, + AT_DropNotNull: 4, + AT_SetNotNull: 5, + AT_DropExpression: 6, + AT_CheckNotNull: 7, + AT_SetStatistics: 8, + AT_SetOptions: 9, + AT_ResetOptions: 10, + AT_SetStorage: 11, + AT_SetCompression: 12, + AT_DropColumn: 13, + AT_AddIndex: 14, + AT_ReAddIndex: 15, + AT_AddConstraint: 16, + AT_ReAddConstraint: 17, + AT_ReAddDomainConstraint: 18, + AT_AlterConstraint: 19, + AT_ValidateConstraint: 20, + AT_AddIndexConstraint: 21, + AT_DropConstraint: 22, + AT_ReAddComment: 23, + AT_AlterColumnType: 24, + AT_AlterColumnGenericOptions: 25, + AT_ChangeOwner: 26, + AT_ClusterOn: 27, + AT_DropCluster: 28, + AT_SetLogged: 29, + AT_SetUnLogged: 30, + AT_DropOids: 31, + AT_SetAccessMethod: 32, + AT_SetTableSpace: 33, + AT_SetRelOptions: 34, + AT_ResetRelOptions: 35, + AT_ReplaceRelOptions: 36, + AT_EnableTrig: 37, + AT_EnableAlwaysTrig: 38, + AT_EnableReplicaTrig: 39, + AT_DisableTrig: 40, + AT_EnableTrigAll: 41, + AT_DisableTrigAll: 42, + AT_EnableTrigUser: 43, + AT_DisableTrigUser: 44, + AT_EnableRule: 45, + AT_EnableAlwaysRule: 46, + AT_EnableReplicaRule: 47, + AT_DisableRule: 48, + AT_AddInherit: 49, + AT_DropInherit: 50, + AT_AddOf: 51, + AT_DropOf: 52, + AT_ReplicaIdentity: 53, + AT_EnableRowSecurity: 54, + AT_DisableRowSecurity: 55, + AT_ForceRowSecurity: 56, + AT_NoForceRowSecurity: 57, + AT_GenericOptions: 58, + AT_AttachPartition: 59, + AT_DetachPartition: 60, + AT_DetachPartitionFinalize: 61, + AT_AddIdentity: 62, + AT_SetIdentity: 63, + AT_DropIdentity: 64, + AT_ReAddStatistics: 65 + }, + GrantTargetType: { + ACL_TARGET_OBJECT: 0, + ACL_TARGET_ALL_IN_SCHEMA: 1, + ACL_TARGET_DEFAULTS: 2 + }, + VariableSetKind: { + VAR_SET_VALUE: 0, + VAR_SET_DEFAULT: 1, + VAR_SET_CURRENT: 2, + VAR_SET_MULTI: 3, + VAR_RESET: 4, + VAR_RESET_ALL: 5 + }, + ConstrType: { + CONSTR_NULL: 0, + CONSTR_NOTNULL: 1, + CONSTR_DEFAULT: 2, + CONSTR_IDENTITY: 3, + CONSTR_GENERATED: 4, + CONSTR_CHECK: 5, + CONSTR_PRIMARY: 6, + CONSTR_UNIQUE: 7, + CONSTR_EXCLUSION: 8, + CONSTR_FOREIGN: 9, + CONSTR_ATTR_DEFERRABLE: 10, + CONSTR_ATTR_NOT_DEFERRABLE: 11, + CONSTR_ATTR_DEFERRED: 12, + CONSTR_ATTR_IMMEDIATE: 13 + }, + ImportForeignSchemaType: { + FDW_IMPORT_SCHEMA_ALL: 0, + FDW_IMPORT_SCHEMA_LIMIT_TO: 1, + FDW_IMPORT_SCHEMA_EXCEPT: 2 + }, + RoleStmtType: { + ROLESTMT_ROLE: 0, + ROLESTMT_USER: 1, + ROLESTMT_GROUP: 2 + }, + FetchDirection: { + FETCH_FORWARD: 0, + FETCH_BACKWARD: 1, + FETCH_ABSOLUTE: 2, + FETCH_RELATIVE: 3 + }, + FunctionParameterMode: { + FUNC_PARAM_IN: 0, + FUNC_PARAM_OUT: 1, + FUNC_PARAM_INOUT: 2, + FUNC_PARAM_VARIADIC: 3, + FUNC_PARAM_TABLE: 4, + FUNC_PARAM_DEFAULT: 5 + }, + TransactionStmtKind: { + TRANS_STMT_BEGIN: 0, + TRANS_STMT_START: 1, + TRANS_STMT_COMMIT: 2, + TRANS_STMT_ROLLBACK: 3, + TRANS_STMT_SAVEPOINT: 4, + TRANS_STMT_RELEASE: 5, + TRANS_STMT_ROLLBACK_TO: 6, + TRANS_STMT_PREPARE: 7, + TRANS_STMT_COMMIT_PREPARED: 8, + TRANS_STMT_ROLLBACK_PREPARED: 9 + }, + ViewCheckOption: { + NO_CHECK_OPTION: 0, + LOCAL_CHECK_OPTION: 1, + CASCADED_CHECK_OPTION: 2 + }, + DiscardMode: { + DISCARD_ALL: 0, + DISCARD_PLANS: 1, + DISCARD_SEQUENCES: 2, + DISCARD_TEMP: 3 + }, + ReindexObjectType: { + REINDEX_OBJECT_INDEX: 0, + REINDEX_OBJECT_TABLE: 1, + REINDEX_OBJECT_SCHEMA: 2, + REINDEX_OBJECT_SYSTEM: 3, + REINDEX_OBJECT_DATABASE: 4 + }, + AlterTSConfigType: { + ALTER_TSCONFIG_ADD_MAPPING: 0, + ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN: 1, + ALTER_TSCONFIG_REPLACE_DICT: 2, + ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN: 3, + ALTER_TSCONFIG_DROP_MAPPING: 4 + }, + PublicationObjSpecType: { + PUBLICATIONOBJ_TABLE: 0, + PUBLICATIONOBJ_TABLES_IN_SCHEMA: 1, + PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA: 2, + PUBLICATIONOBJ_CONTINUATION: 3 + }, + AlterPublicationAction: { + AP_AddObjects: 0, + AP_DropObjects: 1, + AP_SetObjects: 2 + }, + AlterSubscriptionType: { + ALTER_SUBSCRIPTION_OPTIONS: 0, + ALTER_SUBSCRIPTION_CONNECTION: 1, + ALTER_SUBSCRIPTION_SET_PUBLICATION: 2, + ALTER_SUBSCRIPTION_ADD_PUBLICATION: 3, + ALTER_SUBSCRIPTION_DROP_PUBLICATION: 4, + ALTER_SUBSCRIPTION_REFRESH: 5, + ALTER_SUBSCRIPTION_ENABLED: 6, + ALTER_SUBSCRIPTION_SKIP: 7 + }, + OnCommitAction: { + ONCOMMIT_NOOP: 0, + ONCOMMIT_PRESERVE_ROWS: 1, + ONCOMMIT_DELETE_ROWS: 2, + ONCOMMIT_DROP: 3 + }, + ParamKind: { + PARAM_EXTERN: 0, + PARAM_EXEC: 1, + PARAM_SUBLINK: 2, + PARAM_MULTIEXPR: 3 + }, + CoercionContext: { + COERCION_IMPLICIT: 0, + COERCION_ASSIGNMENT: 1, + COERCION_PLPGSQL: 2, + COERCION_EXPLICIT: 3 + }, + CoercionForm: { + COERCE_EXPLICIT_CALL: 0, + COERCE_EXPLICIT_CAST: 1, + COERCE_IMPLICIT_CAST: 2, + COERCE_SQL_SYNTAX: 3 + }, + BoolExprType: { + AND_EXPR: 0, + OR_EXPR: 1, + NOT_EXPR: 2 + }, + SubLinkType: { + EXISTS_SUBLINK: 0, + ALL_SUBLINK: 1, + ANY_SUBLINK: 2, + ROWCOMPARE_SUBLINK: 3, + EXPR_SUBLINK: 4, + MULTIEXPR_SUBLINK: 5, + ARRAY_SUBLINK: 6, + CTE_SUBLINK: 7 + }, + RowCompareType: { + ROWCOMPARE_LT: 0, + ROWCOMPARE_LE: 1, + ROWCOMPARE_EQ: 2, + ROWCOMPARE_GE: 3, + ROWCOMPARE_GT: 4, + ROWCOMPARE_NE: 5 + }, + MinMaxOp: { + IS_GREATEST: 0, + IS_LEAST: 1 + }, + SQLValueFunctionOp: { + SVFOP_CURRENT_DATE: 0, + SVFOP_CURRENT_TIME: 1, + SVFOP_CURRENT_TIME_N: 2, + SVFOP_CURRENT_TIMESTAMP: 3, + SVFOP_CURRENT_TIMESTAMP_N: 4, + SVFOP_LOCALTIME: 5, + SVFOP_LOCALTIME_N: 6, + SVFOP_LOCALTIMESTAMP: 7, + SVFOP_LOCALTIMESTAMP_N: 8, + SVFOP_CURRENT_ROLE: 9, + SVFOP_CURRENT_USER: 10, + SVFOP_USER: 11, + SVFOP_SESSION_USER: 12, + SVFOP_CURRENT_CATALOG: 13, + SVFOP_CURRENT_SCHEMA: 14 + }, + XmlExprOp: { + IS_XMLCONCAT: 0, + IS_XMLELEMENT: 1, + IS_XMLFOREST: 2, + IS_XMLPARSE: 3, + IS_XMLPI: 4, + IS_XMLROOT: 5, + IS_XMLSERIALIZE: 6, + IS_DOCUMENT: 7 + }, + XmlOptionType: { + XMLOPTION_DOCUMENT: 0, + XMLOPTION_CONTENT: 1 + }, + JsonEncoding: { + JS_ENC_DEFAULT: 0, + JS_ENC_UTF8: 1, + JS_ENC_UTF16: 2, + JS_ENC_UTF32: 3 + }, + JsonFormatType: { + JS_FORMAT_DEFAULT: 0, + JS_FORMAT_JSON: 1, + JS_FORMAT_JSONB: 2 + }, + JsonConstructorType: { + JSCTOR_JSON_OBJECT: 0, + JSCTOR_JSON_ARRAY: 1, + JSCTOR_JSON_OBJECTAGG: 2, + JSCTOR_JSON_ARRAYAGG: 3 + }, + JsonValueType: { + JS_TYPE_ANY: 0, + JS_TYPE_OBJECT: 1, + JS_TYPE_ARRAY: 2, + JS_TYPE_SCALAR: 3 + }, + NullTestType: { + IS_NULL: 0, + IS_NOT_NULL: 1 + }, + BoolTestType: { + IS_TRUE: 0, + IS_NOT_TRUE: 1, + IS_FALSE: 2, + IS_NOT_FALSE: 3, + IS_UNKNOWN: 4, + IS_NOT_UNKNOWN: 5 + }, + CmdType: { + CMD_UNKNOWN: 0, + CMD_SELECT: 1, + CMD_UPDATE: 2, + CMD_INSERT: 3, + CMD_DELETE: 4, + CMD_MERGE: 5, + CMD_UTILITY: 6, + CMD_NOTHING: 7 + }, + JoinType: { + JOIN_INNER: 0, + JOIN_LEFT: 1, + JOIN_FULL: 2, + JOIN_RIGHT: 3, + JOIN_SEMI: 4, + JOIN_ANTI: 5, + JOIN_RIGHT_ANTI: 6, + JOIN_UNIQUE_OUTER: 7, + JOIN_UNIQUE_INNER: 8 + }, + AggStrategy: { + AGG_PLAIN: 0, + AGG_SORTED: 1, + AGG_HASHED: 2, + AGG_MIXED: 3 + }, + AggSplit: { + AGGSPLIT_SIMPLE: 0, + AGGSPLIT_INITIAL_SERIAL: 1, + AGGSPLIT_FINAL_DESERIAL: 2 + }, + SetOpCmd: { + SETOPCMD_INTERSECT: 0, + SETOPCMD_INTERSECT_ALL: 1, + SETOPCMD_EXCEPT: 2, + SETOPCMD_EXCEPT_ALL: 3 + }, + SetOpStrategy: { + SETOP_SORTED: 0, + SETOP_HASHED: 1 + }, + OnConflictAction: { + ONCONFLICT_NONE: 0, + ONCONFLICT_NOTHING: 1, + ONCONFLICT_UPDATE: 2 + }, + LimitOption: { + LIMIT_OPTION_DEFAULT: 0, + LIMIT_OPTION_COUNT: 1, + LIMIT_OPTION_WITH_TIES: 2 + }, + LockClauseStrength: { + LCS_NONE: 0, + LCS_FORKEYSHARE: 1, + LCS_FORSHARE: 2, + LCS_FORNOKEYUPDATE: 3, + LCS_FORUPDATE: 4 + }, + LockWaitPolicy: { + LockWaitBlock: 0, + LockWaitSkip: 1, + LockWaitError: 2 + }, + LockTupleMode: { + LockTupleKeyShare: 0, + LockTupleShare: 1, + LockTupleNoKeyExclusive: 2, + LockTupleExclusive: 3 + }, + KeywordKind: { + NO_KEYWORD: 0, + UNRESERVED_KEYWORD: 1, + COL_NAME_KEYWORD: 2, + TYPE_FUNC_NAME_KEYWORD: 3, + RESERVED_KEYWORD: 4 + }, + Token: { + NUL: 0, + ASCII_36: 36, + ASCII_37: 37, + ASCII_40: 40, + ASCII_41: 41, + ASCII_42: 42, + ASCII_43: 43, + ASCII_44: 44, + ASCII_45: 45, + ASCII_46: 46, + ASCII_47: 47, + ASCII_58: 58, + ASCII_59: 59, + ASCII_60: 60, + ASCII_61: 61, + ASCII_62: 62, + ASCII_63: 63, + ASCII_91: 91, + ASCII_92: 92, + ASCII_93: 93, + ASCII_94: 94, + IDENT: 258, + UIDENT: 259, + FCONST: 260, + SCONST: 261, + USCONST: 262, + BCONST: 263, + XCONST: 264, + Op: 265, + ICONST: 266, + PARAM: 267, + TYPECAST: 268, + DOT_DOT: 269, + COLON_EQUALS: 270, + EQUALS_GREATER: 271, + LESS_EQUALS: 272, + GREATER_EQUALS: 273, + NOT_EQUALS: 274, + SQL_COMMENT: 275, + C_COMMENT: 276, + ABORT_P: 277, + ABSENT: 278, + ABSOLUTE_P: 279, + ACCESS: 280, + ACTION: 281, + ADD_P: 282, + ADMIN: 283, + AFTER: 284, + AGGREGATE: 285, + ALL: 286, + ALSO: 287, + ALTER: 288, + ALWAYS: 289, + ANALYSE: 290, + ANALYZE: 291, + AND: 292, + ANY: 293, + ARRAY: 294, + AS: 295, + ASC: 296, + ASENSITIVE: 297, + ASSERTION: 298, + ASSIGNMENT: 299, + ASYMMETRIC: 300, + ATOMIC: 301, + AT: 302, + ATTACH: 303, + ATTRIBUTE: 304, + AUTHORIZATION: 305, + BACKWARD: 306, + BEFORE: 307, + BEGIN_P: 308, + BETWEEN: 309, + BIGINT: 310, + BINARY: 311, + BIT: 312, + BOOLEAN_P: 313, + BOTH: 314, + BREADTH: 315, + BY: 316, + CACHE: 317, + CALL: 318, + CALLED: 319, + CASCADE: 320, + CASCADED: 321, + CASE: 322, + CAST: 323, + CATALOG_P: 324, + CHAIN: 325, + CHAR_P: 326, + CHARACTER: 327, + CHARACTERISTICS: 328, + CHECK: 329, + CHECKPOINT: 330, + CLASS: 331, + CLOSE: 332, + CLUSTER: 333, + COALESCE: 334, + COLLATE: 335, + COLLATION: 336, + COLUMN: 337, + COLUMNS: 338, + COMMENT: 339, + COMMENTS: 340, + COMMIT: 341, + COMMITTED: 342, + COMPRESSION: 343, + CONCURRENTLY: 344, + CONFIGURATION: 345, + CONFLICT: 346, + CONNECTION: 347, + CONSTRAINT: 348, + CONSTRAINTS: 349, + CONTENT_P: 350, + CONTINUE_P: 351, + CONVERSION_P: 352, + COPY: 353, + COST: 354, + CREATE: 355, + CROSS: 356, + CSV: 357, + CUBE: 358, + CURRENT_P: 359, + CURRENT_CATALOG: 360, + CURRENT_DATE: 361, + CURRENT_ROLE: 362, + CURRENT_SCHEMA: 363, + CURRENT_TIME: 364, + CURRENT_TIMESTAMP: 365, + CURRENT_USER: 366, + CURSOR: 367, + CYCLE: 368, + DATA_P: 369, + DATABASE: 370, + DAY_P: 371, + DEALLOCATE: 372, + DEC: 373, + DECIMAL_P: 374, + DECLARE: 375, + DEFAULT: 376, + DEFAULTS: 377, + DEFERRABLE: 378, + DEFERRED: 379, + DEFINER: 380, + DELETE_P: 381, + DELIMITER: 382, + DELIMITERS: 383, + DEPENDS: 384, + DEPTH: 385, + DESC: 386, + DETACH: 387, + DICTIONARY: 388, + DISABLE_P: 389, + DISCARD: 390, + DISTINCT: 391, + DO: 392, + DOCUMENT_P: 393, + DOMAIN_P: 394, + DOUBLE_P: 395, + DROP: 396, + EACH: 397, + ELSE: 398, + ENABLE_P: 399, + ENCODING: 400, + ENCRYPTED: 401, + END_P: 402, + ENUM_P: 403, + ESCAPE: 404, + EVENT: 405, + EXCEPT: 406, + EXCLUDE: 407, + EXCLUDING: 408, + EXCLUSIVE: 409, + EXECUTE: 410, + EXISTS: 411, + EXPLAIN: 412, + EXPRESSION: 413, + EXTENSION: 414, + EXTERNAL: 415, + EXTRACT: 416, + FALSE_P: 417, + FAMILY: 418, + FETCH: 419, + FILTER: 420, + FINALIZE: 421, + FIRST_P: 422, + FLOAT_P: 423, + FOLLOWING: 424, + FOR: 425, + FORCE: 426, + FOREIGN: 427, + FORMAT: 428, + FORWARD: 429, + FREEZE: 430, + FROM: 431, + FULL: 432, + FUNCTION: 433, + FUNCTIONS: 434, + GENERATED: 435, + GLOBAL: 436, + GRANT: 437, + GRANTED: 438, + GREATEST: 439, + GROUP_P: 440, + GROUPING: 441, + GROUPS: 442, + HANDLER: 443, + HAVING: 444, + HEADER_P: 445, + HOLD: 446, + HOUR_P: 447, + IDENTITY_P: 448, + IF_P: 449, + ILIKE: 450, + IMMEDIATE: 451, + IMMUTABLE: 452, + IMPLICIT_P: 453, + IMPORT_P: 454, + IN_P: 455, + INCLUDE: 456, + INCLUDING: 457, + INCREMENT: 458, + INDENT: 459, + INDEX: 460, + INDEXES: 461, + INHERIT: 462, + INHERITS: 463, + INITIALLY: 464, + INLINE_P: 465, + INNER_P: 466, + INOUT: 467, + INPUT_P: 468, + INSENSITIVE: 469, + INSERT: 470, + INSTEAD: 471, + INT_P: 472, + INTEGER: 473, + INTERSECT: 474, + INTERVAL: 475, + INTO: 476, + INVOKER: 477, + IS: 478, + ISNULL: 479, + ISOLATION: 480, + JOIN: 481, + JSON: 482, + JSON_ARRAY: 483, + JSON_ARRAYAGG: 484, + JSON_OBJECT: 485, + JSON_OBJECTAGG: 486, + KEY: 487, + KEYS: 488, + LABEL: 489, + LANGUAGE: 490, + LARGE_P: 491, + LAST_P: 492, + LATERAL_P: 493, + LEADING: 494, + LEAKPROOF: 495, + LEAST: 496, + LEFT: 497, + LEVEL: 498, + LIKE: 499, + LIMIT: 500, + LISTEN: 501, + LOAD: 502, + LOCAL: 503, + LOCALTIME: 504, + LOCALTIMESTAMP: 505, + LOCATION: 506, + LOCK_P: 507, + LOCKED: 508, + LOGGED: 509, + MAPPING: 510, + MATCH: 511, + MATCHED: 512, + MATERIALIZED: 513, + MAXVALUE: 514, + MERGE: 515, + METHOD: 516, + MINUTE_P: 517, + MINVALUE: 518, + MODE: 519, + MONTH_P: 520, + MOVE: 521, + NAME_P: 522, + NAMES: 523, + NATIONAL: 524, + NATURAL: 525, + NCHAR: 526, + NEW: 527, + NEXT: 528, + NFC: 529, + NFD: 530, + NFKC: 531, + NFKD: 532, + NO: 533, + NONE: 534, + NORMALIZE: 535, + NORMALIZED: 536, + NOT: 537, + NOTHING: 538, + NOTIFY: 539, + NOTNULL: 540, + NOWAIT: 541, + NULL_P: 542, + NULLIF: 543, + NULLS_P: 544, + NUMERIC: 545, + OBJECT_P: 546, + OF: 547, + OFF: 548, + OFFSET: 549, + OIDS: 550, + OLD: 551, + ON: 552, + ONLY: 553, + OPERATOR: 554, + OPTION: 555, + OPTIONS: 556, + OR: 557, + ORDER: 558, + ORDINALITY: 559, + OTHERS: 560, + OUT_P: 561, + OUTER_P: 562, + OVER: 563, + OVERLAPS: 564, + OVERLAY: 565, + OVERRIDING: 566, + OWNED: 567, + OWNER: 568, + PARALLEL: 569, + PARAMETER: 570, + PARSER: 571, + PARTIAL: 572, + PARTITION: 573, + PASSING: 574, + PASSWORD: 575, + PLACING: 576, + PLANS: 577, + POLICY: 578, + POSITION: 579, + PRECEDING: 580, + PRECISION: 581, + PRESERVE: 582, + PREPARE: 583, + PREPARED: 584, + PRIMARY: 585, + PRIOR: 586, + PRIVILEGES: 587, + PROCEDURAL: 588, + PROCEDURE: 589, + PROCEDURES: 590, + PROGRAM: 591, + PUBLICATION: 592, + QUOTE: 593, + RANGE: 594, + READ: 595, + REAL: 596, + REASSIGN: 597, + RECHECK: 598, + RECURSIVE: 599, + REF_P: 600, + REFERENCES: 601, + REFERENCING: 602, + REFRESH: 603, + REINDEX: 604, + RELATIVE_P: 605, + RELEASE: 606, + RENAME: 607, + REPEATABLE: 608, + REPLACE: 609, + REPLICA: 610, + RESET: 611, + RESTART: 612, + RESTRICT: 613, + RETURN: 614, + RETURNING: 615, + RETURNS: 616, + REVOKE: 617, + RIGHT: 618, + ROLE: 619, + ROLLBACK: 620, + ROLLUP: 621, + ROUTINE: 622, + ROUTINES: 623, + ROW: 624, + ROWS: 625, + RULE: 626, + SAVEPOINT: 627, + SCALAR: 628, + SCHEMA: 629, + SCHEMAS: 630, + SCROLL: 631, + SEARCH: 632, + SECOND_P: 633, + SECURITY: 634, + SELECT: 635, + SEQUENCE: 636, + SEQUENCES: 637, + SERIALIZABLE: 638, + SERVER: 639, + SESSION: 640, + SESSION_USER: 641, + SET: 642, + SETS: 643, + SETOF: 644, + SHARE: 645, + SHOW: 646, + SIMILAR: 647, + SIMPLE: 648, + SKIP: 649, + SMALLINT: 650, + SNAPSHOT: 651, + SOME: 652, + SQL_P: 653, + STABLE: 654, + STANDALONE_P: 655, + START: 656, + STATEMENT: 657, + STATISTICS: 658, + STDIN: 659, + STDOUT: 660, + STORAGE: 661, + STORED: 662, + STRICT_P: 663, + STRIP_P: 664, + SUBSCRIPTION: 665, + SUBSTRING: 666, + SUPPORT: 667, + SYMMETRIC: 668, + SYSID: 669, + SYSTEM_P: 670, + SYSTEM_USER: 671, + TABLE: 672, + TABLES: 673, + TABLESAMPLE: 674, + TABLESPACE: 675, + TEMP: 676, + TEMPLATE: 677, + TEMPORARY: 678, + TEXT_P: 679, + THEN: 680, + TIES: 681, + TIME: 682, + TIMESTAMP: 683, + TO: 684, + TRAILING: 685, + TRANSACTION: 686, + TRANSFORM: 687, + TREAT: 688, + TRIGGER: 689, + TRIM: 690, + TRUE_P: 691, + TRUNCATE: 692, + TRUSTED: 693, + TYPE_P: 694, + TYPES_P: 695, + UESCAPE: 696, + UNBOUNDED: 697, + UNCOMMITTED: 698, + UNENCRYPTED: 699, + UNION: 700, + UNIQUE: 701, + UNKNOWN: 702, + UNLISTEN: 703, + UNLOGGED: 704, + UNTIL: 705, + UPDATE: 706, + USER: 707, + USING: 708, + VACUUM: 709, + VALID: 710, + VALIDATE: 711, + VALIDATOR: 712, + VALUE_P: 713, + VALUES: 714, + VARCHAR: 715, + VARIADIC: 716, + VARYING: 717, + VERBOSE: 718, + VERSION_P: 719, + VIEW: 720, + VIEWS: 721, + VOLATILE: 722, + WHEN: 723, + WHERE: 724, + WHITESPACE_P: 725, + WINDOW: 726, + WITH: 727, + WITHIN: 728, + WITHOUT: 729, + WORK: 730, + WRAPPER: 731, + WRITE: 732, + XML_P: 733, + XMLATTRIBUTES: 734, + XMLCONCAT: 735, + XMLELEMENT: 736, + XMLEXISTS: 737, + XMLFOREST: 738, + XMLNAMESPACES: 739, + XMLPARSE: 740, + XMLPI: 741, + XMLROOT: 742, + XMLSERIALIZE: 743, + XMLTABLE: 744, + YEAR_P: 745, + YES_P: 746, + ZONE: 747, + FORMAT_LA: 748, + NOT_LA: 749, + NULLS_LA: 750, + WITH_LA: 751, + WITHOUT_LA: 752, + MODE_TYPE_NAME: 753, + MODE_PLPGSQL_EXPR: 754, + MODE_PLPGSQL_ASSIGN1: 755, + MODE_PLPGSQL_ASSIGN2: 756, + MODE_PLPGSQL_ASSIGN3: 757, + UMINUS: 758 + } +}; +export type EnumToIntMap = typeof enumToIntMap;", + "file": "enum-to-int.ts", + }, +] +`; diff --git a/packages/proto-parser/__tests__/__snapshots__/enum-utils.test.ts.snap b/packages/proto-parser/__tests__/__snapshots__/enum-utils.test.ts.snap new file mode 100644 index 00000000..8bef3978 --- /dev/null +++ b/packages/proto-parser/__tests__/__snapshots__/enum-utils.test.ts.snap @@ -0,0 +1,36214 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`enum utils nested objects format generates nested objects with custom filenames 1`] = ` +[ + { + "code": "/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type EnumType = "OverridingKind" | "QuerySource" | "SortByDir" | "SortByNulls" | "SetQuantifier" | "A_Expr_Kind" | "RoleSpecType" | "TableLikeOption" | "DefElemAction" | "PartitionStrategy" | "PartitionRangeDatumKind" | "RTEKind" | "WCOKind" | "GroupingSetKind" | "CTEMaterialize" | "SetOperation" | "ObjectType" | "DropBehavior" | "AlterTableType" | "GrantTargetType" | "VariableSetKind" | "ConstrType" | "ImportForeignSchemaType" | "RoleStmtType" | "FetchDirection" | "FunctionParameterMode" | "TransactionStmtKind" | "ViewCheckOption" | "DiscardMode" | "ReindexObjectType" | "AlterTSConfigType" | "PublicationObjSpecType" | "AlterPublicationAction" | "AlterSubscriptionType" | "OnCommitAction" | "ParamKind" | "CoercionContext" | "CoercionForm" | "BoolExprType" | "SubLinkType" | "RowCompareType" | "MinMaxOp" | "SQLValueFunctionOp" | "XmlExprOp" | "XmlOptionType" | "JsonEncoding" | "JsonFormatType" | "JsonConstructorType" | "JsonValueType" | "NullTestType" | "BoolTestType" | "CmdType" | "JoinType" | "AggStrategy" | "AggSplit" | "SetOpCmd" | "SetOpStrategy" | "OnConflictAction" | "LimitOption" | "LockClauseStrength" | "LockWaitPolicy" | "LockTupleMode" | "KeywordKind" | "Token"; +export type EnumToStringMap = { + "OverridingKind": (value: number) => string; + "QuerySource": (value: number) => string; + "SortByDir": (value: number) => string; + "SortByNulls": (value: number) => string; + "SetQuantifier": (value: number) => string; + "A_Expr_Kind": (value: number) => string; + "RoleSpecType": (value: number) => string; + "TableLikeOption": (value: number) => string; + "DefElemAction": (value: number) => string; + "PartitionStrategy": (value: number) => string; + "PartitionRangeDatumKind": (value: number) => string; + "RTEKind": (value: number) => string; + "WCOKind": (value: number) => string; + "GroupingSetKind": (value: number) => string; + "CTEMaterialize": (value: number) => string; + "SetOperation": (value: number) => string; + "ObjectType": (value: number) => string; + "DropBehavior": (value: number) => string; + "AlterTableType": (value: number) => string; + "GrantTargetType": (value: number) => string; + "VariableSetKind": (value: number) => string; + "ConstrType": (value: number) => string; + "ImportForeignSchemaType": (value: number) => string; + "RoleStmtType": (value: number) => string; + "FetchDirection": (value: number) => string; + "FunctionParameterMode": (value: number) => string; + "TransactionStmtKind": (value: number) => string; + "ViewCheckOption": (value: number) => string; + "DiscardMode": (value: number) => string; + "ReindexObjectType": (value: number) => string; + "AlterTSConfigType": (value: number) => string; + "PublicationObjSpecType": (value: number) => string; + "AlterPublicationAction": (value: number) => string; + "AlterSubscriptionType": (value: number) => string; + "OnCommitAction": (value: number) => string; + "ParamKind": (value: number) => string; + "CoercionContext": (value: number) => string; + "CoercionForm": (value: number) => string; + "BoolExprType": (value: number) => string; + "SubLinkType": (value: number) => string; + "RowCompareType": (value: number) => string; + "MinMaxOp": (value: number) => string; + "SQLValueFunctionOp": (value: number) => string; + "XmlExprOp": (value: number) => string; + "XmlOptionType": (value: number) => string; + "JsonEncoding": (value: number) => string; + "JsonFormatType": (value: number) => string; + "JsonConstructorType": (value: number) => string; + "JsonValueType": (value: number) => string; + "NullTestType": (value: number) => string; + "BoolTestType": (value: number) => string; + "CmdType": (value: number) => string; + "JoinType": (value: number) => string; + "AggStrategy": (value: number) => string; + "AggSplit": (value: number) => string; + "SetOpCmd": (value: number) => string; + "SetOpStrategy": (value: number) => string; + "OnConflictAction": (value: number) => string; + "LimitOption": (value: number) => string; + "LockClauseStrength": (value: number) => string; + "LockWaitPolicy": (value: number) => string; + "LockTupleMode": (value: number) => string; + "KeywordKind": (value: number) => string; + "Token": (value: number) => string; +}; +export const enumToStringMap: EnumToStringMap = { + "OverridingKind": (value: number): string => { + switch (value) { + case 0: + return "OVERRIDING_NOT_SET"; + case 1: + return "OVERRIDING_USER_VALUE"; + case 2: + return "OVERRIDING_SYSTEM_VALUE"; + default: + throw new Error("Value not recognized in enum OverridingKind"); + } + }, + "QuerySource": (value: number): string => { + switch (value) { + case 0: + return "QSRC_ORIGINAL"; + case 1: + return "QSRC_PARSER"; + case 2: + return "QSRC_INSTEAD_RULE"; + case 3: + return "QSRC_QUAL_INSTEAD_RULE"; + case 4: + return "QSRC_NON_INSTEAD_RULE"; + default: + throw new Error("Value not recognized in enum QuerySource"); + } + }, + "SortByDir": (value: number): string => { + switch (value) { + case 0: + return "SORTBY_DEFAULT"; + case 1: + return "SORTBY_ASC"; + case 2: + return "SORTBY_DESC"; + case 3: + return "SORTBY_USING"; + default: + throw new Error("Value not recognized in enum SortByDir"); + } + }, + "SortByNulls": (value: number): string => { + switch (value) { + case 0: + return "SORTBY_NULLS_DEFAULT"; + case 1: + return "SORTBY_NULLS_FIRST"; + case 2: + return "SORTBY_NULLS_LAST"; + default: + throw new Error("Value not recognized in enum SortByNulls"); + } + }, + "SetQuantifier": (value: number): string => { + switch (value) { + case 0: + return "SET_QUANTIFIER_DEFAULT"; + case 1: + return "SET_QUANTIFIER_ALL"; + case 2: + return "SET_QUANTIFIER_DISTINCT"; + default: + throw new Error("Value not recognized in enum SetQuantifier"); + } + }, + "A_Expr_Kind": (value: number): string => { + switch (value) { + case 0: + return "AEXPR_OP"; + case 1: + return "AEXPR_OP_ANY"; + case 2: + return "AEXPR_OP_ALL"; + case 3: + return "AEXPR_DISTINCT"; + case 4: + return "AEXPR_NOT_DISTINCT"; + case 5: + return "AEXPR_NULLIF"; + case 6: + return "AEXPR_IN"; + case 7: + return "AEXPR_LIKE"; + case 8: + return "AEXPR_ILIKE"; + case 9: + return "AEXPR_SIMILAR"; + case 10: + return "AEXPR_BETWEEN"; + case 11: + return "AEXPR_NOT_BETWEEN"; + case 12: + return "AEXPR_BETWEEN_SYM"; + case 13: + return "AEXPR_NOT_BETWEEN_SYM"; + default: + throw new Error("Value not recognized in enum A_Expr_Kind"); + } + }, + "RoleSpecType": (value: number): string => { + switch (value) { + case 0: + return "ROLESPEC_CSTRING"; + case 1: + return "ROLESPEC_CURRENT_ROLE"; + case 2: + return "ROLESPEC_CURRENT_USER"; + case 3: + return "ROLESPEC_SESSION_USER"; + case 4: + return "ROLESPEC_PUBLIC"; + default: + throw new Error("Value not recognized in enum RoleSpecType"); + } + }, + "TableLikeOption": (value: number): string => { + switch (value) { + case 0: + return "CREATE_TABLE_LIKE_COMMENTS"; + case 1: + return "CREATE_TABLE_LIKE_COMPRESSION"; + case 2: + return "CREATE_TABLE_LIKE_CONSTRAINTS"; + case 3: + return "CREATE_TABLE_LIKE_DEFAULTS"; + case 4: + return "CREATE_TABLE_LIKE_GENERATED"; + case 5: + return "CREATE_TABLE_LIKE_IDENTITY"; + case 6: + return "CREATE_TABLE_LIKE_INDEXES"; + case 7: + return "CREATE_TABLE_LIKE_STATISTICS"; + case 8: + return "CREATE_TABLE_LIKE_STORAGE"; + case 9: + return "CREATE_TABLE_LIKE_ALL"; + default: + throw new Error("Value not recognized in enum TableLikeOption"); + } + }, + "DefElemAction": (value: number): string => { + switch (value) { + case 0: + return "DEFELEM_UNSPEC"; + case 1: + return "DEFELEM_SET"; + case 2: + return "DEFELEM_ADD"; + case 3: + return "DEFELEM_DROP"; + default: + throw new Error("Value not recognized in enum DefElemAction"); + } + }, + "PartitionStrategy": (value: number): string => { + switch (value) { + case 0: + return "PARTITION_STRATEGY_LIST"; + case 1: + return "PARTITION_STRATEGY_RANGE"; + case 2: + return "PARTITION_STRATEGY_HASH"; + default: + throw new Error("Value not recognized in enum PartitionStrategy"); + } + }, + "PartitionRangeDatumKind": (value: number): string => { + switch (value) { + case 0: + return "PARTITION_RANGE_DATUM_MINVALUE"; + case 1: + return "PARTITION_RANGE_DATUM_VALUE"; + case 2: + return "PARTITION_RANGE_DATUM_MAXVALUE"; + default: + throw new Error("Value not recognized in enum PartitionRangeDatumKind"); + } + }, + "RTEKind": (value: number): string => { + switch (value) { + case 0: + return "RTE_RELATION"; + case 1: + return "RTE_SUBQUERY"; + case 2: + return "RTE_JOIN"; + case 3: + return "RTE_FUNCTION"; + case 4: + return "RTE_TABLEFUNC"; + case 5: + return "RTE_VALUES"; + case 6: + return "RTE_CTE"; + case 7: + return "RTE_NAMEDTUPLESTORE"; + case 8: + return "RTE_RESULT"; + default: + throw new Error("Value not recognized in enum RTEKind"); + } + }, + "WCOKind": (value: number): string => { + switch (value) { + case 0: + return "WCO_VIEW_CHECK"; + case 1: + return "WCO_RLS_INSERT_CHECK"; + case 2: + return "WCO_RLS_UPDATE_CHECK"; + case 3: + return "WCO_RLS_CONFLICT_CHECK"; + case 4: + return "WCO_RLS_MERGE_UPDATE_CHECK"; + case 5: + return "WCO_RLS_MERGE_DELETE_CHECK"; + default: + throw new Error("Value not recognized in enum WCOKind"); + } + }, + "GroupingSetKind": (value: number): string => { + switch (value) { + case 0: + return "GROUPING_SET_EMPTY"; + case 1: + return "GROUPING_SET_SIMPLE"; + case 2: + return "GROUPING_SET_ROLLUP"; + case 3: + return "GROUPING_SET_CUBE"; + case 4: + return "GROUPING_SET_SETS"; + default: + throw new Error("Value not recognized in enum GroupingSetKind"); + } + }, + "CTEMaterialize": (value: number): string => { + switch (value) { + case 0: + return "CTEMaterializeDefault"; + case 1: + return "CTEMaterializeAlways"; + case 2: + return "CTEMaterializeNever"; + default: + throw new Error("Value not recognized in enum CTEMaterialize"); + } + }, + "SetOperation": (value: number): string => { + switch (value) { + case 0: + return "SETOP_NONE"; + case 1: + return "SETOP_UNION"; + case 2: + return "SETOP_INTERSECT"; + case 3: + return "SETOP_EXCEPT"; + default: + throw new Error("Value not recognized in enum SetOperation"); + } + }, + "ObjectType": (value: number): string => { + switch (value) { + case 0: + return "OBJECT_ACCESS_METHOD"; + case 1: + return "OBJECT_AGGREGATE"; + case 2: + return "OBJECT_AMOP"; + case 3: + return "OBJECT_AMPROC"; + case 4: + return "OBJECT_ATTRIBUTE"; + case 5: + return "OBJECT_CAST"; + case 6: + return "OBJECT_COLUMN"; + case 7: + return "OBJECT_COLLATION"; + case 8: + return "OBJECT_CONVERSION"; + case 9: + return "OBJECT_DATABASE"; + case 10: + return "OBJECT_DEFAULT"; + case 11: + return "OBJECT_DEFACL"; + case 12: + return "OBJECT_DOMAIN"; + case 13: + return "OBJECT_DOMCONSTRAINT"; + case 14: + return "OBJECT_EVENT_TRIGGER"; + case 15: + return "OBJECT_EXTENSION"; + case 16: + return "OBJECT_FDW"; + case 17: + return "OBJECT_FOREIGN_SERVER"; + case 18: + return "OBJECT_FOREIGN_TABLE"; + case 19: + return "OBJECT_FUNCTION"; + case 20: + return "OBJECT_INDEX"; + case 21: + return "OBJECT_LANGUAGE"; + case 22: + return "OBJECT_LARGEOBJECT"; + case 23: + return "OBJECT_MATVIEW"; + case 24: + return "OBJECT_OPCLASS"; + case 25: + return "OBJECT_OPERATOR"; + case 26: + return "OBJECT_OPFAMILY"; + case 27: + return "OBJECT_PARAMETER_ACL"; + case 28: + return "OBJECT_POLICY"; + case 29: + return "OBJECT_PROCEDURE"; + case 30: + return "OBJECT_PUBLICATION"; + case 31: + return "OBJECT_PUBLICATION_NAMESPACE"; + case 32: + return "OBJECT_PUBLICATION_REL"; + case 33: + return "OBJECT_ROLE"; + case 34: + return "OBJECT_ROUTINE"; + case 35: + return "OBJECT_RULE"; + case 36: + return "OBJECT_SCHEMA"; + case 37: + return "OBJECT_SEQUENCE"; + case 38: + return "OBJECT_SUBSCRIPTION"; + case 39: + return "OBJECT_STATISTIC_EXT"; + case 40: + return "OBJECT_TABCONSTRAINT"; + case 41: + return "OBJECT_TABLE"; + case 42: + return "OBJECT_TABLESPACE"; + case 43: + return "OBJECT_TRANSFORM"; + case 44: + return "OBJECT_TRIGGER"; + case 45: + return "OBJECT_TSCONFIGURATION"; + case 46: + return "OBJECT_TSDICTIONARY"; + case 47: + return "OBJECT_TSPARSER"; + case 48: + return "OBJECT_TSTEMPLATE"; + case 49: + return "OBJECT_TYPE"; + case 50: + return "OBJECT_USER_MAPPING"; + case 51: + return "OBJECT_VIEW"; + default: + throw new Error("Value not recognized in enum ObjectType"); + } + }, + "DropBehavior": (value: number): string => { + switch (value) { + case 0: + return "DROP_RESTRICT"; + case 1: + return "DROP_CASCADE"; + default: + throw new Error("Value not recognized in enum DropBehavior"); + } + }, + "AlterTableType": (value: number): string => { + switch (value) { + case 0: + return "AT_AddColumn"; + case 1: + return "AT_AddColumnToView"; + case 2: + return "AT_ColumnDefault"; + case 3: + return "AT_CookedColumnDefault"; + case 4: + return "AT_DropNotNull"; + case 5: + return "AT_SetNotNull"; + case 6: + return "AT_DropExpression"; + case 7: + return "AT_CheckNotNull"; + case 8: + return "AT_SetStatistics"; + case 9: + return "AT_SetOptions"; + case 10: + return "AT_ResetOptions"; + case 11: + return "AT_SetStorage"; + case 12: + return "AT_SetCompression"; + case 13: + return "AT_DropColumn"; + case 14: + return "AT_AddIndex"; + case 15: + return "AT_ReAddIndex"; + case 16: + return "AT_AddConstraint"; + case 17: + return "AT_ReAddConstraint"; + case 18: + return "AT_ReAddDomainConstraint"; + case 19: + return "AT_AlterConstraint"; + case 20: + return "AT_ValidateConstraint"; + case 21: + return "AT_AddIndexConstraint"; + case 22: + return "AT_DropConstraint"; + case 23: + return "AT_ReAddComment"; + case 24: + return "AT_AlterColumnType"; + case 25: + return "AT_AlterColumnGenericOptions"; + case 26: + return "AT_ChangeOwner"; + case 27: + return "AT_ClusterOn"; + case 28: + return "AT_DropCluster"; + case 29: + return "AT_SetLogged"; + case 30: + return "AT_SetUnLogged"; + case 31: + return "AT_DropOids"; + case 32: + return "AT_SetAccessMethod"; + case 33: + return "AT_SetTableSpace"; + case 34: + return "AT_SetRelOptions"; + case 35: + return "AT_ResetRelOptions"; + case 36: + return "AT_ReplaceRelOptions"; + case 37: + return "AT_EnableTrig"; + case 38: + return "AT_EnableAlwaysTrig"; + case 39: + return "AT_EnableReplicaTrig"; + case 40: + return "AT_DisableTrig"; + case 41: + return "AT_EnableTrigAll"; + case 42: + return "AT_DisableTrigAll"; + case 43: + return "AT_EnableTrigUser"; + case 44: + return "AT_DisableTrigUser"; + case 45: + return "AT_EnableRule"; + case 46: + return "AT_EnableAlwaysRule"; + case 47: + return "AT_EnableReplicaRule"; + case 48: + return "AT_DisableRule"; + case 49: + return "AT_AddInherit"; + case 50: + return "AT_DropInherit"; + case 51: + return "AT_AddOf"; + case 52: + return "AT_DropOf"; + case 53: + return "AT_ReplicaIdentity"; + case 54: + return "AT_EnableRowSecurity"; + case 55: + return "AT_DisableRowSecurity"; + case 56: + return "AT_ForceRowSecurity"; + case 57: + return "AT_NoForceRowSecurity"; + case 58: + return "AT_GenericOptions"; + case 59: + return "AT_AttachPartition"; + case 60: + return "AT_DetachPartition"; + case 61: + return "AT_DetachPartitionFinalize"; + case 62: + return "AT_AddIdentity"; + case 63: + return "AT_SetIdentity"; + case 64: + return "AT_DropIdentity"; + case 65: + return "AT_ReAddStatistics"; + default: + throw new Error("Value not recognized in enum AlterTableType"); + } + }, + "GrantTargetType": (value: number): string => { + switch (value) { + case 0: + return "ACL_TARGET_OBJECT"; + case 1: + return "ACL_TARGET_ALL_IN_SCHEMA"; + case 2: + return "ACL_TARGET_DEFAULTS"; + default: + throw new Error("Value not recognized in enum GrantTargetType"); + } + }, + "VariableSetKind": (value: number): string => { + switch (value) { + case 0: + return "VAR_SET_VALUE"; + case 1: + return "VAR_SET_DEFAULT"; + case 2: + return "VAR_SET_CURRENT"; + case 3: + return "VAR_SET_MULTI"; + case 4: + return "VAR_RESET"; + case 5: + return "VAR_RESET_ALL"; + default: + throw new Error("Value not recognized in enum VariableSetKind"); + } + }, + "ConstrType": (value: number): string => { + switch (value) { + case 0: + return "CONSTR_NULL"; + case 1: + return "CONSTR_NOTNULL"; + case 2: + return "CONSTR_DEFAULT"; + case 3: + return "CONSTR_IDENTITY"; + case 4: + return "CONSTR_GENERATED"; + case 5: + return "CONSTR_CHECK"; + case 6: + return "CONSTR_PRIMARY"; + case 7: + return "CONSTR_UNIQUE"; + case 8: + return "CONSTR_EXCLUSION"; + case 9: + return "CONSTR_FOREIGN"; + case 10: + return "CONSTR_ATTR_DEFERRABLE"; + case 11: + return "CONSTR_ATTR_NOT_DEFERRABLE"; + case 12: + return "CONSTR_ATTR_DEFERRED"; + case 13: + return "CONSTR_ATTR_IMMEDIATE"; + default: + throw new Error("Value not recognized in enum ConstrType"); + } + }, + "ImportForeignSchemaType": (value: number): string => { + switch (value) { + case 0: + return "FDW_IMPORT_SCHEMA_ALL"; + case 1: + return "FDW_IMPORT_SCHEMA_LIMIT_TO"; + case 2: + return "FDW_IMPORT_SCHEMA_EXCEPT"; + default: + throw new Error("Value not recognized in enum ImportForeignSchemaType"); + } + }, + "RoleStmtType": (value: number): string => { + switch (value) { + case 0: + return "ROLESTMT_ROLE"; + case 1: + return "ROLESTMT_USER"; + case 2: + return "ROLESTMT_GROUP"; + default: + throw new Error("Value not recognized in enum RoleStmtType"); + } + }, + "FetchDirection": (value: number): string => { + switch (value) { + case 0: + return "FETCH_FORWARD"; + case 1: + return "FETCH_BACKWARD"; + case 2: + return "FETCH_ABSOLUTE"; + case 3: + return "FETCH_RELATIVE"; + default: + throw new Error("Value not recognized in enum FetchDirection"); + } + }, + "FunctionParameterMode": (value: number): string => { + switch (value) { + case 0: + return "FUNC_PARAM_IN"; + case 1: + return "FUNC_PARAM_OUT"; + case 2: + return "FUNC_PARAM_INOUT"; + case 3: + return "FUNC_PARAM_VARIADIC"; + case 4: + return "FUNC_PARAM_TABLE"; + case 5: + return "FUNC_PARAM_DEFAULT"; + default: + throw new Error("Value not recognized in enum FunctionParameterMode"); + } + }, + "TransactionStmtKind": (value: number): string => { + switch (value) { + case 0: + return "TRANS_STMT_BEGIN"; + case 1: + return "TRANS_STMT_START"; + case 2: + return "TRANS_STMT_COMMIT"; + case 3: + return "TRANS_STMT_ROLLBACK"; + case 4: + return "TRANS_STMT_SAVEPOINT"; + case 5: + return "TRANS_STMT_RELEASE"; + case 6: + return "TRANS_STMT_ROLLBACK_TO"; + case 7: + return "TRANS_STMT_PREPARE"; + case 8: + return "TRANS_STMT_COMMIT_PREPARED"; + case 9: + return "TRANS_STMT_ROLLBACK_PREPARED"; + default: + throw new Error("Value not recognized in enum TransactionStmtKind"); + } + }, + "ViewCheckOption": (value: number): string => { + switch (value) { + case 0: + return "NO_CHECK_OPTION"; + case 1: + return "LOCAL_CHECK_OPTION"; + case 2: + return "CASCADED_CHECK_OPTION"; + default: + throw new Error("Value not recognized in enum ViewCheckOption"); + } + }, + "DiscardMode": (value: number): string => { + switch (value) { + case 0: + return "DISCARD_ALL"; + case 1: + return "DISCARD_PLANS"; + case 2: + return "DISCARD_SEQUENCES"; + case 3: + return "DISCARD_TEMP"; + default: + throw new Error("Value not recognized in enum DiscardMode"); + } + }, + "ReindexObjectType": (value: number): string => { + switch (value) { + case 0: + return "REINDEX_OBJECT_INDEX"; + case 1: + return "REINDEX_OBJECT_TABLE"; + case 2: + return "REINDEX_OBJECT_SCHEMA"; + case 3: + return "REINDEX_OBJECT_SYSTEM"; + case 4: + return "REINDEX_OBJECT_DATABASE"; + default: + throw new Error("Value not recognized in enum ReindexObjectType"); + } + }, + "AlterTSConfigType": (value: number): string => { + switch (value) { + case 0: + return "ALTER_TSCONFIG_ADD_MAPPING"; + case 1: + return "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN"; + case 2: + return "ALTER_TSCONFIG_REPLACE_DICT"; + case 3: + return "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN"; + case 4: + return "ALTER_TSCONFIG_DROP_MAPPING"; + default: + throw new Error("Value not recognized in enum AlterTSConfigType"); + } + }, + "PublicationObjSpecType": (value: number): string => { + switch (value) { + case 0: + return "PUBLICATIONOBJ_TABLE"; + case 1: + return "PUBLICATIONOBJ_TABLES_IN_SCHEMA"; + case 2: + return "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA"; + case 3: + return "PUBLICATIONOBJ_CONTINUATION"; + default: + throw new Error("Value not recognized in enum PublicationObjSpecType"); + } + }, + "AlterPublicationAction": (value: number): string => { + switch (value) { + case 0: + return "AP_AddObjects"; + case 1: + return "AP_DropObjects"; + case 2: + return "AP_SetObjects"; + default: + throw new Error("Value not recognized in enum AlterPublicationAction"); + } + }, + "AlterSubscriptionType": (value: number): string => { + switch (value) { + case 0: + return "ALTER_SUBSCRIPTION_OPTIONS"; + case 1: + return "ALTER_SUBSCRIPTION_CONNECTION"; + case 2: + return "ALTER_SUBSCRIPTION_SET_PUBLICATION"; + case 3: + return "ALTER_SUBSCRIPTION_ADD_PUBLICATION"; + case 4: + return "ALTER_SUBSCRIPTION_DROP_PUBLICATION"; + case 5: + return "ALTER_SUBSCRIPTION_REFRESH"; + case 6: + return "ALTER_SUBSCRIPTION_ENABLED"; + case 7: + return "ALTER_SUBSCRIPTION_SKIP"; + default: + throw new Error("Value not recognized in enum AlterSubscriptionType"); + } + }, + "OnCommitAction": (value: number): string => { + switch (value) { + case 0: + return "ONCOMMIT_NOOP"; + case 1: + return "ONCOMMIT_PRESERVE_ROWS"; + case 2: + return "ONCOMMIT_DELETE_ROWS"; + case 3: + return "ONCOMMIT_DROP"; + default: + throw new Error("Value not recognized in enum OnCommitAction"); + } + }, + "ParamKind": (value: number): string => { + switch (value) { + case 0: + return "PARAM_EXTERN"; + case 1: + return "PARAM_EXEC"; + case 2: + return "PARAM_SUBLINK"; + case 3: + return "PARAM_MULTIEXPR"; + default: + throw new Error("Value not recognized in enum ParamKind"); + } + }, + "CoercionContext": (value: number): string => { + switch (value) { + case 0: + return "COERCION_IMPLICIT"; + case 1: + return "COERCION_ASSIGNMENT"; + case 2: + return "COERCION_PLPGSQL"; + case 3: + return "COERCION_EXPLICIT"; + default: + throw new Error("Value not recognized in enum CoercionContext"); + } + }, + "CoercionForm": (value: number): string => { + switch (value) { + case 0: + return "COERCE_EXPLICIT_CALL"; + case 1: + return "COERCE_EXPLICIT_CAST"; + case 2: + return "COERCE_IMPLICIT_CAST"; + case 3: + return "COERCE_SQL_SYNTAX"; + default: + throw new Error("Value not recognized in enum CoercionForm"); + } + }, + "BoolExprType": (value: number): string => { + switch (value) { + case 0: + return "AND_EXPR"; + case 1: + return "OR_EXPR"; + case 2: + return "NOT_EXPR"; + default: + throw new Error("Value not recognized in enum BoolExprType"); + } + }, + "SubLinkType": (value: number): string => { + switch (value) { + case 0: + return "EXISTS_SUBLINK"; + case 1: + return "ALL_SUBLINK"; + case 2: + return "ANY_SUBLINK"; + case 3: + return "ROWCOMPARE_SUBLINK"; + case 4: + return "EXPR_SUBLINK"; + case 5: + return "MULTIEXPR_SUBLINK"; + case 6: + return "ARRAY_SUBLINK"; + case 7: + return "CTE_SUBLINK"; + default: + throw new Error("Value not recognized in enum SubLinkType"); + } + }, + "RowCompareType": (value: number): string => { + switch (value) { + case 0: + return "ROWCOMPARE_LT"; + case 1: + return "ROWCOMPARE_LE"; + case 2: + return "ROWCOMPARE_EQ"; + case 3: + return "ROWCOMPARE_GE"; + case 4: + return "ROWCOMPARE_GT"; + case 5: + return "ROWCOMPARE_NE"; + default: + throw new Error("Value not recognized in enum RowCompareType"); + } + }, + "MinMaxOp": (value: number): string => { + switch (value) { + case 0: + return "IS_GREATEST"; + case 1: + return "IS_LEAST"; + default: + throw new Error("Value not recognized in enum MinMaxOp"); + } + }, + "SQLValueFunctionOp": (value: number): string => { + switch (value) { + case 0: + return "SVFOP_CURRENT_DATE"; + case 1: + return "SVFOP_CURRENT_TIME"; + case 2: + return "SVFOP_CURRENT_TIME_N"; + case 3: + return "SVFOP_CURRENT_TIMESTAMP"; + case 4: + return "SVFOP_CURRENT_TIMESTAMP_N"; + case 5: + return "SVFOP_LOCALTIME"; + case 6: + return "SVFOP_LOCALTIME_N"; + case 7: + return "SVFOP_LOCALTIMESTAMP"; + case 8: + return "SVFOP_LOCALTIMESTAMP_N"; + case 9: + return "SVFOP_CURRENT_ROLE"; + case 10: + return "SVFOP_CURRENT_USER"; + case 11: + return "SVFOP_USER"; + case 12: + return "SVFOP_SESSION_USER"; + case 13: + return "SVFOP_CURRENT_CATALOG"; + case 14: + return "SVFOP_CURRENT_SCHEMA"; + default: + throw new Error("Value not recognized in enum SQLValueFunctionOp"); + } + }, + "XmlExprOp": (value: number): string => { + switch (value) { + case 0: + return "IS_XMLCONCAT"; + case 1: + return "IS_XMLELEMENT"; + case 2: + return "IS_XMLFOREST"; + case 3: + return "IS_XMLPARSE"; + case 4: + return "IS_XMLPI"; + case 5: + return "IS_XMLROOT"; + case 6: + return "IS_XMLSERIALIZE"; + case 7: + return "IS_DOCUMENT"; + default: + throw new Error("Value not recognized in enum XmlExprOp"); + } + }, + "XmlOptionType": (value: number): string => { + switch (value) { + case 0: + return "XMLOPTION_DOCUMENT"; + case 1: + return "XMLOPTION_CONTENT"; + default: + throw new Error("Value not recognized in enum XmlOptionType"); + } + }, + "JsonEncoding": (value: number): string => { + switch (value) { + case 0: + return "JS_ENC_DEFAULT"; + case 1: + return "JS_ENC_UTF8"; + case 2: + return "JS_ENC_UTF16"; + case 3: + return "JS_ENC_UTF32"; + default: + throw new Error("Value not recognized in enum JsonEncoding"); + } + }, + "JsonFormatType": (value: number): string => { + switch (value) { + case 0: + return "JS_FORMAT_DEFAULT"; + case 1: + return "JS_FORMAT_JSON"; + case 2: + return "JS_FORMAT_JSONB"; + default: + throw new Error("Value not recognized in enum JsonFormatType"); + } + }, + "JsonConstructorType": (value: number): string => { + switch (value) { + case 0: + return "JSCTOR_JSON_OBJECT"; + case 1: + return "JSCTOR_JSON_ARRAY"; + case 2: + return "JSCTOR_JSON_OBJECTAGG"; + case 3: + return "JSCTOR_JSON_ARRAYAGG"; + default: + throw new Error("Value not recognized in enum JsonConstructorType"); + } + }, + "JsonValueType": (value: number): string => { + switch (value) { + case 0: + return "JS_TYPE_ANY"; + case 1: + return "JS_TYPE_OBJECT"; + case 2: + return "JS_TYPE_ARRAY"; + case 3: + return "JS_TYPE_SCALAR"; + default: + throw new Error("Value not recognized in enum JsonValueType"); + } + }, + "NullTestType": (value: number): string => { + switch (value) { + case 0: + return "IS_NULL"; + case 1: + return "IS_NOT_NULL"; + default: + throw new Error("Value not recognized in enum NullTestType"); + } + }, + "BoolTestType": (value: number): string => { + switch (value) { + case 0: + return "IS_TRUE"; + case 1: + return "IS_NOT_TRUE"; + case 2: + return "IS_FALSE"; + case 3: + return "IS_NOT_FALSE"; + case 4: + return "IS_UNKNOWN"; + case 5: + return "IS_NOT_UNKNOWN"; + default: + throw new Error("Value not recognized in enum BoolTestType"); + } + }, + "CmdType": (value: number): string => { + switch (value) { + case 0: + return "CMD_UNKNOWN"; + case 1: + return "CMD_SELECT"; + case 2: + return "CMD_UPDATE"; + case 3: + return "CMD_INSERT"; + case 4: + return "CMD_DELETE"; + case 5: + return "CMD_MERGE"; + case 6: + return "CMD_UTILITY"; + case 7: + return "CMD_NOTHING"; + default: + throw new Error("Value not recognized in enum CmdType"); + } + }, + "JoinType": (value: number): string => { + switch (value) { + case 0: + return "JOIN_INNER"; + case 1: + return "JOIN_LEFT"; + case 2: + return "JOIN_FULL"; + case 3: + return "JOIN_RIGHT"; + case 4: + return "JOIN_SEMI"; + case 5: + return "JOIN_ANTI"; + case 6: + return "JOIN_RIGHT_ANTI"; + case 7: + return "JOIN_UNIQUE_OUTER"; + case 8: + return "JOIN_UNIQUE_INNER"; + default: + throw new Error("Value not recognized in enum JoinType"); + } + }, + "AggStrategy": (value: number): string => { + switch (value) { + case 0: + return "AGG_PLAIN"; + case 1: + return "AGG_SORTED"; + case 2: + return "AGG_HASHED"; + case 3: + return "AGG_MIXED"; + default: + throw new Error("Value not recognized in enum AggStrategy"); + } + }, + "AggSplit": (value: number): string => { + switch (value) { + case 0: + return "AGGSPLIT_SIMPLE"; + case 1: + return "AGGSPLIT_INITIAL_SERIAL"; + case 2: + return "AGGSPLIT_FINAL_DESERIAL"; + default: + throw new Error("Value not recognized in enum AggSplit"); + } + }, + "SetOpCmd": (value: number): string => { + switch (value) { + case 0: + return "SETOPCMD_INTERSECT"; + case 1: + return "SETOPCMD_INTERSECT_ALL"; + case 2: + return "SETOPCMD_EXCEPT"; + case 3: + return "SETOPCMD_EXCEPT_ALL"; + default: + throw new Error("Value not recognized in enum SetOpCmd"); + } + }, + "SetOpStrategy": (value: number): string => { + switch (value) { + case 0: + return "SETOP_SORTED"; + case 1: + return "SETOP_HASHED"; + default: + throw new Error("Value not recognized in enum SetOpStrategy"); + } + }, + "OnConflictAction": (value: number): string => { + switch (value) { + case 0: + return "ONCONFLICT_NONE"; + case 1: + return "ONCONFLICT_NOTHING"; + case 2: + return "ONCONFLICT_UPDATE"; + default: + throw new Error("Value not recognized in enum OnConflictAction"); + } + }, + "LimitOption": (value: number): string => { + switch (value) { + case 0: + return "LIMIT_OPTION_DEFAULT"; + case 1: + return "LIMIT_OPTION_COUNT"; + case 2: + return "LIMIT_OPTION_WITH_TIES"; + default: + throw new Error("Value not recognized in enum LimitOption"); + } + }, + "LockClauseStrength": (value: number): string => { + switch (value) { + case 0: + return "LCS_NONE"; + case 1: + return "LCS_FORKEYSHARE"; + case 2: + return "LCS_FORSHARE"; + case 3: + return "LCS_FORNOKEYUPDATE"; + case 4: + return "LCS_FORUPDATE"; + default: + throw new Error("Value not recognized in enum LockClauseStrength"); + } + }, + "LockWaitPolicy": (value: number): string => { + switch (value) { + case 0: + return "LockWaitBlock"; + case 1: + return "LockWaitSkip"; + case 2: + return "LockWaitError"; + default: + throw new Error("Value not recognized in enum LockWaitPolicy"); + } + }, + "LockTupleMode": (value: number): string => { + switch (value) { + case 0: + return "LockTupleKeyShare"; + case 1: + return "LockTupleShare"; + case 2: + return "LockTupleNoKeyExclusive"; + case 3: + return "LockTupleExclusive"; + default: + throw new Error("Value not recognized in enum LockTupleMode"); + } + }, + "KeywordKind": (value: number): string => { + switch (value) { + case 0: + return "NO_KEYWORD"; + case 1: + return "UNRESERVED_KEYWORD"; + case 2: + return "COL_NAME_KEYWORD"; + case 3: + return "TYPE_FUNC_NAME_KEYWORD"; + case 4: + return "RESERVED_KEYWORD"; + default: + throw new Error("Value not recognized in enum KeywordKind"); + } + }, + "Token": (value: number): string => { + switch (value) { + case 0: + return "NUL"; + case 36: + return "ASCII_36"; + case 37: + return "ASCII_37"; + case 40: + return "ASCII_40"; + case 41: + return "ASCII_41"; + case 42: + return "ASCII_42"; + case 43: + return "ASCII_43"; + case 44: + return "ASCII_44"; + case 45: + return "ASCII_45"; + case 46: + return "ASCII_46"; + case 47: + return "ASCII_47"; + case 58: + return "ASCII_58"; + case 59: + return "ASCII_59"; + case 60: + return "ASCII_60"; + case 61: + return "ASCII_61"; + case 62: + return "ASCII_62"; + case 63: + return "ASCII_63"; + case 91: + return "ASCII_91"; + case 92: + return "ASCII_92"; + case 93: + return "ASCII_93"; + case 94: + return "ASCII_94"; + case 258: + return "IDENT"; + case 259: + return "UIDENT"; + case 260: + return "FCONST"; + case 261: + return "SCONST"; + case 262: + return "USCONST"; + case 263: + return "BCONST"; + case 264: + return "XCONST"; + case 265: + return "Op"; + case 266: + return "ICONST"; + case 267: + return "PARAM"; + case 268: + return "TYPECAST"; + case 269: + return "DOT_DOT"; + case 270: + return "COLON_EQUALS"; + case 271: + return "EQUALS_GREATER"; + case 272: + return "LESS_EQUALS"; + case 273: + return "GREATER_EQUALS"; + case 274: + return "NOT_EQUALS"; + case 275: + return "SQL_COMMENT"; + case 276: + return "C_COMMENT"; + case 277: + return "ABORT_P"; + case 278: + return "ABSENT"; + case 279: + return "ABSOLUTE_P"; + case 280: + return "ACCESS"; + case 281: + return "ACTION"; + case 282: + return "ADD_P"; + case 283: + return "ADMIN"; + case 284: + return "AFTER"; + case 285: + return "AGGREGATE"; + case 286: + return "ALL"; + case 287: + return "ALSO"; + case 288: + return "ALTER"; + case 289: + return "ALWAYS"; + case 290: + return "ANALYSE"; + case 291: + return "ANALYZE"; + case 292: + return "AND"; + case 293: + return "ANY"; + case 294: + return "ARRAY"; + case 295: + return "AS"; + case 296: + return "ASC"; + case 297: + return "ASENSITIVE"; + case 298: + return "ASSERTION"; + case 299: + return "ASSIGNMENT"; + case 300: + return "ASYMMETRIC"; + case 301: + return "ATOMIC"; + case 302: + return "AT"; + case 303: + return "ATTACH"; + case 304: + return "ATTRIBUTE"; + case 305: + return "AUTHORIZATION"; + case 306: + return "BACKWARD"; + case 307: + return "BEFORE"; + case 308: + return "BEGIN_P"; + case 309: + return "BETWEEN"; + case 310: + return "BIGINT"; + case 311: + return "BINARY"; + case 312: + return "BIT"; + case 313: + return "BOOLEAN_P"; + case 314: + return "BOTH"; + case 315: + return "BREADTH"; + case 316: + return "BY"; + case 317: + return "CACHE"; + case 318: + return "CALL"; + case 319: + return "CALLED"; + case 320: + return "CASCADE"; + case 321: + return "CASCADED"; + case 322: + return "CASE"; + case 323: + return "CAST"; + case 324: + return "CATALOG_P"; + case 325: + return "CHAIN"; + case 326: + return "CHAR_P"; + case 327: + return "CHARACTER"; + case 328: + return "CHARACTERISTICS"; + case 329: + return "CHECK"; + case 330: + return "CHECKPOINT"; + case 331: + return "CLASS"; + case 332: + return "CLOSE"; + case 333: + return "CLUSTER"; + case 334: + return "COALESCE"; + case 335: + return "COLLATE"; + case 336: + return "COLLATION"; + case 337: + return "COLUMN"; + case 338: + return "COLUMNS"; + case 339: + return "COMMENT"; + case 340: + return "COMMENTS"; + case 341: + return "COMMIT"; + case 342: + return "COMMITTED"; + case 343: + return "COMPRESSION"; + case 344: + return "CONCURRENTLY"; + case 345: + return "CONFIGURATION"; + case 346: + return "CONFLICT"; + case 347: + return "CONNECTION"; + case 348: + return "CONSTRAINT"; + case 349: + return "CONSTRAINTS"; + case 350: + return "CONTENT_P"; + case 351: + return "CONTINUE_P"; + case 352: + return "CONVERSION_P"; + case 353: + return "COPY"; + case 354: + return "COST"; + case 355: + return "CREATE"; + case 356: + return "CROSS"; + case 357: + return "CSV"; + case 358: + return "CUBE"; + case 359: + return "CURRENT_P"; + case 360: + return "CURRENT_CATALOG"; + case 361: + return "CURRENT_DATE"; + case 362: + return "CURRENT_ROLE"; + case 363: + return "CURRENT_SCHEMA"; + case 364: + return "CURRENT_TIME"; + case 365: + return "CURRENT_TIMESTAMP"; + case 366: + return "CURRENT_USER"; + case 367: + return "CURSOR"; + case 368: + return "CYCLE"; + case 369: + return "DATA_P"; + case 370: + return "DATABASE"; + case 371: + return "DAY_P"; + case 372: + return "DEALLOCATE"; + case 373: + return "DEC"; + case 374: + return "DECIMAL_P"; + case 375: + return "DECLARE"; + case 376: + return "DEFAULT"; + case 377: + return "DEFAULTS"; + case 378: + return "DEFERRABLE"; + case 379: + return "DEFERRED"; + case 380: + return "DEFINER"; + case 381: + return "DELETE_P"; + case 382: + return "DELIMITER"; + case 383: + return "DELIMITERS"; + case 384: + return "DEPENDS"; + case 385: + return "DEPTH"; + case 386: + return "DESC"; + case 387: + return "DETACH"; + case 388: + return "DICTIONARY"; + case 389: + return "DISABLE_P"; + case 390: + return "DISCARD"; + case 391: + return "DISTINCT"; + case 392: + return "DO"; + case 393: + return "DOCUMENT_P"; + case 394: + return "DOMAIN_P"; + case 395: + return "DOUBLE_P"; + case 396: + return "DROP"; + case 397: + return "EACH"; + case 398: + return "ELSE"; + case 399: + return "ENABLE_P"; + case 400: + return "ENCODING"; + case 401: + return "ENCRYPTED"; + case 402: + return "END_P"; + case 403: + return "ENUM_P"; + case 404: + return "ESCAPE"; + case 405: + return "EVENT"; + case 406: + return "EXCEPT"; + case 407: + return "EXCLUDE"; + case 408: + return "EXCLUDING"; + case 409: + return "EXCLUSIVE"; + case 410: + return "EXECUTE"; + case 411: + return "EXISTS"; + case 412: + return "EXPLAIN"; + case 413: + return "EXPRESSION"; + case 414: + return "EXTENSION"; + case 415: + return "EXTERNAL"; + case 416: + return "EXTRACT"; + case 417: + return "FALSE_P"; + case 418: + return "FAMILY"; + case 419: + return "FETCH"; + case 420: + return "FILTER"; + case 421: + return "FINALIZE"; + case 422: + return "FIRST_P"; + case 423: + return "FLOAT_P"; + case 424: + return "FOLLOWING"; + case 425: + return "FOR"; + case 426: + return "FORCE"; + case 427: + return "FOREIGN"; + case 428: + return "FORMAT"; + case 429: + return "FORWARD"; + case 430: + return "FREEZE"; + case 431: + return "FROM"; + case 432: + return "FULL"; + case 433: + return "FUNCTION"; + case 434: + return "FUNCTIONS"; + case 435: + return "GENERATED"; + case 436: + return "GLOBAL"; + case 437: + return "GRANT"; + case 438: + return "GRANTED"; + case 439: + return "GREATEST"; + case 440: + return "GROUP_P"; + case 441: + return "GROUPING"; + case 442: + return "GROUPS"; + case 443: + return "HANDLER"; + case 444: + return "HAVING"; + case 445: + return "HEADER_P"; + case 446: + return "HOLD"; + case 447: + return "HOUR_P"; + case 448: + return "IDENTITY_P"; + case 449: + return "IF_P"; + case 450: + return "ILIKE"; + case 451: + return "IMMEDIATE"; + case 452: + return "IMMUTABLE"; + case 453: + return "IMPLICIT_P"; + case 454: + return "IMPORT_P"; + case 455: + return "IN_P"; + case 456: + return "INCLUDE"; + case 457: + return "INCLUDING"; + case 458: + return "INCREMENT"; + case 459: + return "INDENT"; + case 460: + return "INDEX"; + case 461: + return "INDEXES"; + case 462: + return "INHERIT"; + case 463: + return "INHERITS"; + case 464: + return "INITIALLY"; + case 465: + return "INLINE_P"; + case 466: + return "INNER_P"; + case 467: + return "INOUT"; + case 468: + return "INPUT_P"; + case 469: + return "INSENSITIVE"; + case 470: + return "INSERT"; + case 471: + return "INSTEAD"; + case 472: + return "INT_P"; + case 473: + return "INTEGER"; + case 474: + return "INTERSECT"; + case 475: + return "INTERVAL"; + case 476: + return "INTO"; + case 477: + return "INVOKER"; + case 478: + return "IS"; + case 479: + return "ISNULL"; + case 480: + return "ISOLATION"; + case 481: + return "JOIN"; + case 482: + return "JSON"; + case 483: + return "JSON_ARRAY"; + case 484: + return "JSON_ARRAYAGG"; + case 485: + return "JSON_OBJECT"; + case 486: + return "JSON_OBJECTAGG"; + case 487: + return "KEY"; + case 488: + return "KEYS"; + case 489: + return "LABEL"; + case 490: + return "LANGUAGE"; + case 491: + return "LARGE_P"; + case 492: + return "LAST_P"; + case 493: + return "LATERAL_P"; + case 494: + return "LEADING"; + case 495: + return "LEAKPROOF"; + case 496: + return "LEAST"; + case 497: + return "LEFT"; + case 498: + return "LEVEL"; + case 499: + return "LIKE"; + case 500: + return "LIMIT"; + case 501: + return "LISTEN"; + case 502: + return "LOAD"; + case 503: + return "LOCAL"; + case 504: + return "LOCALTIME"; + case 505: + return "LOCALTIMESTAMP"; + case 506: + return "LOCATION"; + case 507: + return "LOCK_P"; + case 508: + return "LOCKED"; + case 509: + return "LOGGED"; + case 510: + return "MAPPING"; + case 511: + return "MATCH"; + case 512: + return "MATCHED"; + case 513: + return "MATERIALIZED"; + case 514: + return "MAXVALUE"; + case 515: + return "MERGE"; + case 516: + return "METHOD"; + case 517: + return "MINUTE_P"; + case 518: + return "MINVALUE"; + case 519: + return "MODE"; + case 520: + return "MONTH_P"; + case 521: + return "MOVE"; + case 522: + return "NAME_P"; + case 523: + return "NAMES"; + case 524: + return "NATIONAL"; + case 525: + return "NATURAL"; + case 526: + return "NCHAR"; + case 527: + return "NEW"; + case 528: + return "NEXT"; + case 529: + return "NFC"; + case 530: + return "NFD"; + case 531: + return "NFKC"; + case 532: + return "NFKD"; + case 533: + return "NO"; + case 534: + return "NONE"; + case 535: + return "NORMALIZE"; + case 536: + return "NORMALIZED"; + case 537: + return "NOT"; + case 538: + return "NOTHING"; + case 539: + return "NOTIFY"; + case 540: + return "NOTNULL"; + case 541: + return "NOWAIT"; + case 542: + return "NULL_P"; + case 543: + return "NULLIF"; + case 544: + return "NULLS_P"; + case 545: + return "NUMERIC"; + case 546: + return "OBJECT_P"; + case 547: + return "OF"; + case 548: + return "OFF"; + case 549: + return "OFFSET"; + case 550: + return "OIDS"; + case 551: + return "OLD"; + case 552: + return "ON"; + case 553: + return "ONLY"; + case 554: + return "OPERATOR"; + case 555: + return "OPTION"; + case 556: + return "OPTIONS"; + case 557: + return "OR"; + case 558: + return "ORDER"; + case 559: + return "ORDINALITY"; + case 560: + return "OTHERS"; + case 561: + return "OUT_P"; + case 562: + return "OUTER_P"; + case 563: + return "OVER"; + case 564: + return "OVERLAPS"; + case 565: + return "OVERLAY"; + case 566: + return "OVERRIDING"; + case 567: + return "OWNED"; + case 568: + return "OWNER"; + case 569: + return "PARALLEL"; + case 570: + return "PARAMETER"; + case 571: + return "PARSER"; + case 572: + return "PARTIAL"; + case 573: + return "PARTITION"; + case 574: + return "PASSING"; + case 575: + return "PASSWORD"; + case 576: + return "PLACING"; + case 577: + return "PLANS"; + case 578: + return "POLICY"; + case 579: + return "POSITION"; + case 580: + return "PRECEDING"; + case 581: + return "PRECISION"; + case 582: + return "PRESERVE"; + case 583: + return "PREPARE"; + case 584: + return "PREPARED"; + case 585: + return "PRIMARY"; + case 586: + return "PRIOR"; + case 587: + return "PRIVILEGES"; + case 588: + return "PROCEDURAL"; + case 589: + return "PROCEDURE"; + case 590: + return "PROCEDURES"; + case 591: + return "PROGRAM"; + case 592: + return "PUBLICATION"; + case 593: + return "QUOTE"; + case 594: + return "RANGE"; + case 595: + return "READ"; + case 596: + return "REAL"; + case 597: + return "REASSIGN"; + case 598: + return "RECHECK"; + case 599: + return "RECURSIVE"; + case 600: + return "REF_P"; + case 601: + return "REFERENCES"; + case 602: + return "REFERENCING"; + case 603: + return "REFRESH"; + case 604: + return "REINDEX"; + case 605: + return "RELATIVE_P"; + case 606: + return "RELEASE"; + case 607: + return "RENAME"; + case 608: + return "REPEATABLE"; + case 609: + return "REPLACE"; + case 610: + return "REPLICA"; + case 611: + return "RESET"; + case 612: + return "RESTART"; + case 613: + return "RESTRICT"; + case 614: + return "RETURN"; + case 615: + return "RETURNING"; + case 616: + return "RETURNS"; + case 617: + return "REVOKE"; + case 618: + return "RIGHT"; + case 619: + return "ROLE"; + case 620: + return "ROLLBACK"; + case 621: + return "ROLLUP"; + case 622: + return "ROUTINE"; + case 623: + return "ROUTINES"; + case 624: + return "ROW"; + case 625: + return "ROWS"; + case 626: + return "RULE"; + case 627: + return "SAVEPOINT"; + case 628: + return "SCALAR"; + case 629: + return "SCHEMA"; + case 630: + return "SCHEMAS"; + case 631: + return "SCROLL"; + case 632: + return "SEARCH"; + case 633: + return "SECOND_P"; + case 634: + return "SECURITY"; + case 635: + return "SELECT"; + case 636: + return "SEQUENCE"; + case 637: + return "SEQUENCES"; + case 638: + return "SERIALIZABLE"; + case 639: + return "SERVER"; + case 640: + return "SESSION"; + case 641: + return "SESSION_USER"; + case 642: + return "SET"; + case 643: + return "SETS"; + case 644: + return "SETOF"; + case 645: + return "SHARE"; + case 646: + return "SHOW"; + case 647: + return "SIMILAR"; + case 648: + return "SIMPLE"; + case 649: + return "SKIP"; + case 650: + return "SMALLINT"; + case 651: + return "SNAPSHOT"; + case 652: + return "SOME"; + case 653: + return "SQL_P"; + case 654: + return "STABLE"; + case 655: + return "STANDALONE_P"; + case 656: + return "START"; + case 657: + return "STATEMENT"; + case 658: + return "STATISTICS"; + case 659: + return "STDIN"; + case 660: + return "STDOUT"; + case 661: + return "STORAGE"; + case 662: + return "STORED"; + case 663: + return "STRICT_P"; + case 664: + return "STRIP_P"; + case 665: + return "SUBSCRIPTION"; + case 666: + return "SUBSTRING"; + case 667: + return "SUPPORT"; + case 668: + return "SYMMETRIC"; + case 669: + return "SYSID"; + case 670: + return "SYSTEM_P"; + case 671: + return "SYSTEM_USER"; + case 672: + return "TABLE"; + case 673: + return "TABLES"; + case 674: + return "TABLESAMPLE"; + case 675: + return "TABLESPACE"; + case 676: + return "TEMP"; + case 677: + return "TEMPLATE"; + case 678: + return "TEMPORARY"; + case 679: + return "TEXT_P"; + case 680: + return "THEN"; + case 681: + return "TIES"; + case 682: + return "TIME"; + case 683: + return "TIMESTAMP"; + case 684: + return "TO"; + case 685: + return "TRAILING"; + case 686: + return "TRANSACTION"; + case 687: + return "TRANSFORM"; + case 688: + return "TREAT"; + case 689: + return "TRIGGER"; + case 690: + return "TRIM"; + case 691: + return "TRUE_P"; + case 692: + return "TRUNCATE"; + case 693: + return "TRUSTED"; + case 694: + return "TYPE_P"; + case 695: + return "TYPES_P"; + case 696: + return "UESCAPE"; + case 697: + return "UNBOUNDED"; + case 698: + return "UNCOMMITTED"; + case 699: + return "UNENCRYPTED"; + case 700: + return "UNION"; + case 701: + return "UNIQUE"; + case 702: + return "UNKNOWN"; + case 703: + return "UNLISTEN"; + case 704: + return "UNLOGGED"; + case 705: + return "UNTIL"; + case 706: + return "UPDATE"; + case 707: + return "USER"; + case 708: + return "USING"; + case 709: + return "VACUUM"; + case 710: + return "VALID"; + case 711: + return "VALIDATE"; + case 712: + return "VALIDATOR"; + case 713: + return "VALUE_P"; + case 714: + return "VALUES"; + case 715: + return "VARCHAR"; + case 716: + return "VARIADIC"; + case 717: + return "VARYING"; + case 718: + return "VERBOSE"; + case 719: + return "VERSION_P"; + case 720: + return "VIEW"; + case 721: + return "VIEWS"; + case 722: + return "VOLATILE"; + case 723: + return "WHEN"; + case 724: + return "WHERE"; + case 725: + return "WHITESPACE_P"; + case 726: + return "WINDOW"; + case 727: + return "WITH"; + case 728: + return "WITHIN"; + case 729: + return "WITHOUT"; + case 730: + return "WORK"; + case 731: + return "WRAPPER"; + case 732: + return "WRITE"; + case 733: + return "XML_P"; + case 734: + return "XMLATTRIBUTES"; + case 735: + return "XMLCONCAT"; + case 736: + return "XMLELEMENT"; + case 737: + return "XMLEXISTS"; + case 738: + return "XMLFOREST"; + case 739: + return "XMLNAMESPACES"; + case 740: + return "XMLPARSE"; + case 741: + return "XMLPI"; + case 742: + return "XMLROOT"; + case 743: + return "XMLSERIALIZE"; + case 744: + return "XMLTABLE"; + case 745: + return "YEAR_P"; + case 746: + return "YES_P"; + case 747: + return "ZONE"; + case 748: + return "FORMAT_LA"; + case 749: + return "NOT_LA"; + case 750: + return "NULLS_LA"; + case 751: + return "WITH_LA"; + case 752: + return "WITHOUT_LA"; + case 753: + return "MODE_TYPE_NAME"; + case 754: + return "MODE_PLPGSQL_EXPR"; + case 755: + return "MODE_PLPGSQL_ASSIGN1"; + case 756: + return "MODE_PLPGSQL_ASSIGN2"; + case 757: + return "MODE_PLPGSQL_ASSIGN3"; + case 758: + return "UMINUS"; + default: + throw new Error("Value not recognized in enum Token"); + } + } +};", + "file": "custom-string-nested.ts", + }, + { + "code": "/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type EnumType = "OverridingKind" | "QuerySource" | "SortByDir" | "SortByNulls" | "SetQuantifier" | "A_Expr_Kind" | "RoleSpecType" | "TableLikeOption" | "DefElemAction" | "PartitionStrategy" | "PartitionRangeDatumKind" | "RTEKind" | "WCOKind" | "GroupingSetKind" | "CTEMaterialize" | "SetOperation" | "ObjectType" | "DropBehavior" | "AlterTableType" | "GrantTargetType" | "VariableSetKind" | "ConstrType" | "ImportForeignSchemaType" | "RoleStmtType" | "FetchDirection" | "FunctionParameterMode" | "TransactionStmtKind" | "ViewCheckOption" | "DiscardMode" | "ReindexObjectType" | "AlterTSConfigType" | "PublicationObjSpecType" | "AlterPublicationAction" | "AlterSubscriptionType" | "OnCommitAction" | "ParamKind" | "CoercionContext" | "CoercionForm" | "BoolExprType" | "SubLinkType" | "RowCompareType" | "MinMaxOp" | "SQLValueFunctionOp" | "XmlExprOp" | "XmlOptionType" | "JsonEncoding" | "JsonFormatType" | "JsonConstructorType" | "JsonValueType" | "NullTestType" | "BoolTestType" | "CmdType" | "JoinType" | "AggStrategy" | "AggSplit" | "SetOpCmd" | "SetOpStrategy" | "OnConflictAction" | "LimitOption" | "LockClauseStrength" | "LockWaitPolicy" | "LockTupleMode" | "KeywordKind" | "Token"; +export type EnumToIntMap = { + "OverridingKind": (key: string) => number; + "QuerySource": (key: string) => number; + "SortByDir": (key: string) => number; + "SortByNulls": (key: string) => number; + "SetQuantifier": (key: string) => number; + "A_Expr_Kind": (key: string) => number; + "RoleSpecType": (key: string) => number; + "TableLikeOption": (key: string) => number; + "DefElemAction": (key: string) => number; + "PartitionStrategy": (key: string) => number; + "PartitionRangeDatumKind": (key: string) => number; + "RTEKind": (key: string) => number; + "WCOKind": (key: string) => number; + "GroupingSetKind": (key: string) => number; + "CTEMaterialize": (key: string) => number; + "SetOperation": (key: string) => number; + "ObjectType": (key: string) => number; + "DropBehavior": (key: string) => number; + "AlterTableType": (key: string) => number; + "GrantTargetType": (key: string) => number; + "VariableSetKind": (key: string) => number; + "ConstrType": (key: string) => number; + "ImportForeignSchemaType": (key: string) => number; + "RoleStmtType": (key: string) => number; + "FetchDirection": (key: string) => number; + "FunctionParameterMode": (key: string) => number; + "TransactionStmtKind": (key: string) => number; + "ViewCheckOption": (key: string) => number; + "DiscardMode": (key: string) => number; + "ReindexObjectType": (key: string) => number; + "AlterTSConfigType": (key: string) => number; + "PublicationObjSpecType": (key: string) => number; + "AlterPublicationAction": (key: string) => number; + "AlterSubscriptionType": (key: string) => number; + "OnCommitAction": (key: string) => number; + "ParamKind": (key: string) => number; + "CoercionContext": (key: string) => number; + "CoercionForm": (key: string) => number; + "BoolExprType": (key: string) => number; + "SubLinkType": (key: string) => number; + "RowCompareType": (key: string) => number; + "MinMaxOp": (key: string) => number; + "SQLValueFunctionOp": (key: string) => number; + "XmlExprOp": (key: string) => number; + "XmlOptionType": (key: string) => number; + "JsonEncoding": (key: string) => number; + "JsonFormatType": (key: string) => number; + "JsonConstructorType": (key: string) => number; + "JsonValueType": (key: string) => number; + "NullTestType": (key: string) => number; + "BoolTestType": (key: string) => number; + "CmdType": (key: string) => number; + "JoinType": (key: string) => number; + "AggStrategy": (key: string) => number; + "AggSplit": (key: string) => number; + "SetOpCmd": (key: string) => number; + "SetOpStrategy": (key: string) => number; + "OnConflictAction": (key: string) => number; + "LimitOption": (key: string) => number; + "LockClauseStrength": (key: string) => number; + "LockWaitPolicy": (key: string) => number; + "LockTupleMode": (key: string) => number; + "KeywordKind": (key: string) => number; + "Token": (key: string) => number; +}; +export const enumToIntMap: EnumToIntMap = { + "OverridingKind": (key: string): number => { + switch (key) { + case "OVERRIDING_NOT_SET": + return 0; + case "OVERRIDING_USER_VALUE": + return 1; + case "OVERRIDING_SYSTEM_VALUE": + return 2; + default: + throw new Error("Key not recognized in enum OverridingKind"); + } + }, + "QuerySource": (key: string): number => { + switch (key) { + case "QSRC_ORIGINAL": + return 0; + case "QSRC_PARSER": + return 1; + case "QSRC_INSTEAD_RULE": + return 2; + case "QSRC_QUAL_INSTEAD_RULE": + return 3; + case "QSRC_NON_INSTEAD_RULE": + return 4; + default: + throw new Error("Key not recognized in enum QuerySource"); + } + }, + "SortByDir": (key: string): number => { + switch (key) { + case "SORTBY_DEFAULT": + return 0; + case "SORTBY_ASC": + return 1; + case "SORTBY_DESC": + return 2; + case "SORTBY_USING": + return 3; + default: + throw new Error("Key not recognized in enum SortByDir"); + } + }, + "SortByNulls": (key: string): number => { + switch (key) { + case "SORTBY_NULLS_DEFAULT": + return 0; + case "SORTBY_NULLS_FIRST": + return 1; + case "SORTBY_NULLS_LAST": + return 2; + default: + throw new Error("Key not recognized in enum SortByNulls"); + } + }, + "SetQuantifier": (key: string): number => { + switch (key) { + case "SET_QUANTIFIER_DEFAULT": + return 0; + case "SET_QUANTIFIER_ALL": + return 1; + case "SET_QUANTIFIER_DISTINCT": + return 2; + default: + throw new Error("Key not recognized in enum SetQuantifier"); + } + }, + "A_Expr_Kind": (key: string): number => { + switch (key) { + case "AEXPR_OP": + return 0; + case "AEXPR_OP_ANY": + return 1; + case "AEXPR_OP_ALL": + return 2; + case "AEXPR_DISTINCT": + return 3; + case "AEXPR_NOT_DISTINCT": + return 4; + case "AEXPR_NULLIF": + return 5; + case "AEXPR_IN": + return 6; + case "AEXPR_LIKE": + return 7; + case "AEXPR_ILIKE": + return 8; + case "AEXPR_SIMILAR": + return 9; + case "AEXPR_BETWEEN": + return 10; + case "AEXPR_NOT_BETWEEN": + return 11; + case "AEXPR_BETWEEN_SYM": + return 12; + case "AEXPR_NOT_BETWEEN_SYM": + return 13; + default: + throw new Error("Key not recognized in enum A_Expr_Kind"); + } + }, + "RoleSpecType": (key: string): number => { + switch (key) { + case "ROLESPEC_CSTRING": + return 0; + case "ROLESPEC_CURRENT_ROLE": + return 1; + case "ROLESPEC_CURRENT_USER": + return 2; + case "ROLESPEC_SESSION_USER": + return 3; + case "ROLESPEC_PUBLIC": + return 4; + default: + throw new Error("Key not recognized in enum RoleSpecType"); + } + }, + "TableLikeOption": (key: string): number => { + switch (key) { + case "CREATE_TABLE_LIKE_COMMENTS": + return 0; + case "CREATE_TABLE_LIKE_COMPRESSION": + return 1; + case "CREATE_TABLE_LIKE_CONSTRAINTS": + return 2; + case "CREATE_TABLE_LIKE_DEFAULTS": + return 3; + case "CREATE_TABLE_LIKE_GENERATED": + return 4; + case "CREATE_TABLE_LIKE_IDENTITY": + return 5; + case "CREATE_TABLE_LIKE_INDEXES": + return 6; + case "CREATE_TABLE_LIKE_STATISTICS": + return 7; + case "CREATE_TABLE_LIKE_STORAGE": + return 8; + case "CREATE_TABLE_LIKE_ALL": + return 9; + default: + throw new Error("Key not recognized in enum TableLikeOption"); + } + }, + "DefElemAction": (key: string): number => { + switch (key) { + case "DEFELEM_UNSPEC": + return 0; + case "DEFELEM_SET": + return 1; + case "DEFELEM_ADD": + return 2; + case "DEFELEM_DROP": + return 3; + default: + throw new Error("Key not recognized in enum DefElemAction"); + } + }, + "PartitionStrategy": (key: string): number => { + switch (key) { + case "PARTITION_STRATEGY_LIST": + return 0; + case "PARTITION_STRATEGY_RANGE": + return 1; + case "PARTITION_STRATEGY_HASH": + return 2; + default: + throw new Error("Key not recognized in enum PartitionStrategy"); + } + }, + "PartitionRangeDatumKind": (key: string): number => { + switch (key) { + case "PARTITION_RANGE_DATUM_MINVALUE": + return 0; + case "PARTITION_RANGE_DATUM_VALUE": + return 1; + case "PARTITION_RANGE_DATUM_MAXVALUE": + return 2; + default: + throw new Error("Key not recognized in enum PartitionRangeDatumKind"); + } + }, + "RTEKind": (key: string): number => { + switch (key) { + case "RTE_RELATION": + return 0; + case "RTE_SUBQUERY": + return 1; + case "RTE_JOIN": + return 2; + case "RTE_FUNCTION": + return 3; + case "RTE_TABLEFUNC": + return 4; + case "RTE_VALUES": + return 5; + case "RTE_CTE": + return 6; + case "RTE_NAMEDTUPLESTORE": + return 7; + case "RTE_RESULT": + return 8; + default: + throw new Error("Key not recognized in enum RTEKind"); + } + }, + "WCOKind": (key: string): number => { + switch (key) { + case "WCO_VIEW_CHECK": + return 0; + case "WCO_RLS_INSERT_CHECK": + return 1; + case "WCO_RLS_UPDATE_CHECK": + return 2; + case "WCO_RLS_CONFLICT_CHECK": + return 3; + case "WCO_RLS_MERGE_UPDATE_CHECK": + return 4; + case "WCO_RLS_MERGE_DELETE_CHECK": + return 5; + default: + throw new Error("Key not recognized in enum WCOKind"); + } + }, + "GroupingSetKind": (key: string): number => { + switch (key) { + case "GROUPING_SET_EMPTY": + return 0; + case "GROUPING_SET_SIMPLE": + return 1; + case "GROUPING_SET_ROLLUP": + return 2; + case "GROUPING_SET_CUBE": + return 3; + case "GROUPING_SET_SETS": + return 4; + default: + throw new Error("Key not recognized in enum GroupingSetKind"); + } + }, + "CTEMaterialize": (key: string): number => { + switch (key) { + case "CTEMaterializeDefault": + return 0; + case "CTEMaterializeAlways": + return 1; + case "CTEMaterializeNever": + return 2; + default: + throw new Error("Key not recognized in enum CTEMaterialize"); + } + }, + "SetOperation": (key: string): number => { + switch (key) { + case "SETOP_NONE": + return 0; + case "SETOP_UNION": + return 1; + case "SETOP_INTERSECT": + return 2; + case "SETOP_EXCEPT": + return 3; + default: + throw new Error("Key not recognized in enum SetOperation"); + } + }, + "ObjectType": (key: string): number => { + switch (key) { + case "OBJECT_ACCESS_METHOD": + return 0; + case "OBJECT_AGGREGATE": + return 1; + case "OBJECT_AMOP": + return 2; + case "OBJECT_AMPROC": + return 3; + case "OBJECT_ATTRIBUTE": + return 4; + case "OBJECT_CAST": + return 5; + case "OBJECT_COLUMN": + return 6; + case "OBJECT_COLLATION": + return 7; + case "OBJECT_CONVERSION": + return 8; + case "OBJECT_DATABASE": + return 9; + case "OBJECT_DEFAULT": + return 10; + case "OBJECT_DEFACL": + return 11; + case "OBJECT_DOMAIN": + return 12; + case "OBJECT_DOMCONSTRAINT": + return 13; + case "OBJECT_EVENT_TRIGGER": + return 14; + case "OBJECT_EXTENSION": + return 15; + case "OBJECT_FDW": + return 16; + case "OBJECT_FOREIGN_SERVER": + return 17; + case "OBJECT_FOREIGN_TABLE": + return 18; + case "OBJECT_FUNCTION": + return 19; + case "OBJECT_INDEX": + return 20; + case "OBJECT_LANGUAGE": + return 21; + case "OBJECT_LARGEOBJECT": + return 22; + case "OBJECT_MATVIEW": + return 23; + case "OBJECT_OPCLASS": + return 24; + case "OBJECT_OPERATOR": + return 25; + case "OBJECT_OPFAMILY": + return 26; + case "OBJECT_PARAMETER_ACL": + return 27; + case "OBJECT_POLICY": + return 28; + case "OBJECT_PROCEDURE": + return 29; + case "OBJECT_PUBLICATION": + return 30; + case "OBJECT_PUBLICATION_NAMESPACE": + return 31; + case "OBJECT_PUBLICATION_REL": + return 32; + case "OBJECT_ROLE": + return 33; + case "OBJECT_ROUTINE": + return 34; + case "OBJECT_RULE": + return 35; + case "OBJECT_SCHEMA": + return 36; + case "OBJECT_SEQUENCE": + return 37; + case "OBJECT_SUBSCRIPTION": + return 38; + case "OBJECT_STATISTIC_EXT": + return 39; + case "OBJECT_TABCONSTRAINT": + return 40; + case "OBJECT_TABLE": + return 41; + case "OBJECT_TABLESPACE": + return 42; + case "OBJECT_TRANSFORM": + return 43; + case "OBJECT_TRIGGER": + return 44; + case "OBJECT_TSCONFIGURATION": + return 45; + case "OBJECT_TSDICTIONARY": + return 46; + case "OBJECT_TSPARSER": + return 47; + case "OBJECT_TSTEMPLATE": + return 48; + case "OBJECT_TYPE": + return 49; + case "OBJECT_USER_MAPPING": + return 50; + case "OBJECT_VIEW": + return 51; + default: + throw new Error("Key not recognized in enum ObjectType"); + } + }, + "DropBehavior": (key: string): number => { + switch (key) { + case "DROP_RESTRICT": + return 0; + case "DROP_CASCADE": + return 1; + default: + throw new Error("Key not recognized in enum DropBehavior"); + } + }, + "AlterTableType": (key: string): number => { + switch (key) { + case "AT_AddColumn": + return 0; + case "AT_AddColumnToView": + return 1; + case "AT_ColumnDefault": + return 2; + case "AT_CookedColumnDefault": + return 3; + case "AT_DropNotNull": + return 4; + case "AT_SetNotNull": + return 5; + case "AT_DropExpression": + return 6; + case "AT_CheckNotNull": + return 7; + case "AT_SetStatistics": + return 8; + case "AT_SetOptions": + return 9; + case "AT_ResetOptions": + return 10; + case "AT_SetStorage": + return 11; + case "AT_SetCompression": + return 12; + case "AT_DropColumn": + return 13; + case "AT_AddIndex": + return 14; + case "AT_ReAddIndex": + return 15; + case "AT_AddConstraint": + return 16; + case "AT_ReAddConstraint": + return 17; + case "AT_ReAddDomainConstraint": + return 18; + case "AT_AlterConstraint": + return 19; + case "AT_ValidateConstraint": + return 20; + case "AT_AddIndexConstraint": + return 21; + case "AT_DropConstraint": + return 22; + case "AT_ReAddComment": + return 23; + case "AT_AlterColumnType": + return 24; + case "AT_AlterColumnGenericOptions": + return 25; + case "AT_ChangeOwner": + return 26; + case "AT_ClusterOn": + return 27; + case "AT_DropCluster": + return 28; + case "AT_SetLogged": + return 29; + case "AT_SetUnLogged": + return 30; + case "AT_DropOids": + return 31; + case "AT_SetAccessMethod": + return 32; + case "AT_SetTableSpace": + return 33; + case "AT_SetRelOptions": + return 34; + case "AT_ResetRelOptions": + return 35; + case "AT_ReplaceRelOptions": + return 36; + case "AT_EnableTrig": + return 37; + case "AT_EnableAlwaysTrig": + return 38; + case "AT_EnableReplicaTrig": + return 39; + case "AT_DisableTrig": + return 40; + case "AT_EnableTrigAll": + return 41; + case "AT_DisableTrigAll": + return 42; + case "AT_EnableTrigUser": + return 43; + case "AT_DisableTrigUser": + return 44; + case "AT_EnableRule": + return 45; + case "AT_EnableAlwaysRule": + return 46; + case "AT_EnableReplicaRule": + return 47; + case "AT_DisableRule": + return 48; + case "AT_AddInherit": + return 49; + case "AT_DropInherit": + return 50; + case "AT_AddOf": + return 51; + case "AT_DropOf": + return 52; + case "AT_ReplicaIdentity": + return 53; + case "AT_EnableRowSecurity": + return 54; + case "AT_DisableRowSecurity": + return 55; + case "AT_ForceRowSecurity": + return 56; + case "AT_NoForceRowSecurity": + return 57; + case "AT_GenericOptions": + return 58; + case "AT_AttachPartition": + return 59; + case "AT_DetachPartition": + return 60; + case "AT_DetachPartitionFinalize": + return 61; + case "AT_AddIdentity": + return 62; + case "AT_SetIdentity": + return 63; + case "AT_DropIdentity": + return 64; + case "AT_ReAddStatistics": + return 65; + default: + throw new Error("Key not recognized in enum AlterTableType"); + } + }, + "GrantTargetType": (key: string): number => { + switch (key) { + case "ACL_TARGET_OBJECT": + return 0; + case "ACL_TARGET_ALL_IN_SCHEMA": + return 1; + case "ACL_TARGET_DEFAULTS": + return 2; + default: + throw new Error("Key not recognized in enum GrantTargetType"); + } + }, + "VariableSetKind": (key: string): number => { + switch (key) { + case "VAR_SET_VALUE": + return 0; + case "VAR_SET_DEFAULT": + return 1; + case "VAR_SET_CURRENT": + return 2; + case "VAR_SET_MULTI": + return 3; + case "VAR_RESET": + return 4; + case "VAR_RESET_ALL": + return 5; + default: + throw new Error("Key not recognized in enum VariableSetKind"); + } + }, + "ConstrType": (key: string): number => { + switch (key) { + case "CONSTR_NULL": + return 0; + case "CONSTR_NOTNULL": + return 1; + case "CONSTR_DEFAULT": + return 2; + case "CONSTR_IDENTITY": + return 3; + case "CONSTR_GENERATED": + return 4; + case "CONSTR_CHECK": + return 5; + case "CONSTR_PRIMARY": + return 6; + case "CONSTR_UNIQUE": + return 7; + case "CONSTR_EXCLUSION": + return 8; + case "CONSTR_FOREIGN": + return 9; + case "CONSTR_ATTR_DEFERRABLE": + return 10; + case "CONSTR_ATTR_NOT_DEFERRABLE": + return 11; + case "CONSTR_ATTR_DEFERRED": + return 12; + case "CONSTR_ATTR_IMMEDIATE": + return 13; + default: + throw new Error("Key not recognized in enum ConstrType"); + } + }, + "ImportForeignSchemaType": (key: string): number => { + switch (key) { + case "FDW_IMPORT_SCHEMA_ALL": + return 0; + case "FDW_IMPORT_SCHEMA_LIMIT_TO": + return 1; + case "FDW_IMPORT_SCHEMA_EXCEPT": + return 2; + default: + throw new Error("Key not recognized in enum ImportForeignSchemaType"); + } + }, + "RoleStmtType": (key: string): number => { + switch (key) { + case "ROLESTMT_ROLE": + return 0; + case "ROLESTMT_USER": + return 1; + case "ROLESTMT_GROUP": + return 2; + default: + throw new Error("Key not recognized in enum RoleStmtType"); + } + }, + "FetchDirection": (key: string): number => { + switch (key) { + case "FETCH_FORWARD": + return 0; + case "FETCH_BACKWARD": + return 1; + case "FETCH_ABSOLUTE": + return 2; + case "FETCH_RELATIVE": + return 3; + default: + throw new Error("Key not recognized in enum FetchDirection"); + } + }, + "FunctionParameterMode": (key: string): number => { + switch (key) { + case "FUNC_PARAM_IN": + return 0; + case "FUNC_PARAM_OUT": + return 1; + case "FUNC_PARAM_INOUT": + return 2; + case "FUNC_PARAM_VARIADIC": + return 3; + case "FUNC_PARAM_TABLE": + return 4; + case "FUNC_PARAM_DEFAULT": + return 5; + default: + throw new Error("Key not recognized in enum FunctionParameterMode"); + } + }, + "TransactionStmtKind": (key: string): number => { + switch (key) { + case "TRANS_STMT_BEGIN": + return 0; + case "TRANS_STMT_START": + return 1; + case "TRANS_STMT_COMMIT": + return 2; + case "TRANS_STMT_ROLLBACK": + return 3; + case "TRANS_STMT_SAVEPOINT": + return 4; + case "TRANS_STMT_RELEASE": + return 5; + case "TRANS_STMT_ROLLBACK_TO": + return 6; + case "TRANS_STMT_PREPARE": + return 7; + case "TRANS_STMT_COMMIT_PREPARED": + return 8; + case "TRANS_STMT_ROLLBACK_PREPARED": + return 9; + default: + throw new Error("Key not recognized in enum TransactionStmtKind"); + } + }, + "ViewCheckOption": (key: string): number => { + switch (key) { + case "NO_CHECK_OPTION": + return 0; + case "LOCAL_CHECK_OPTION": + return 1; + case "CASCADED_CHECK_OPTION": + return 2; + default: + throw new Error("Key not recognized in enum ViewCheckOption"); + } + }, + "DiscardMode": (key: string): number => { + switch (key) { + case "DISCARD_ALL": + return 0; + case "DISCARD_PLANS": + return 1; + case "DISCARD_SEQUENCES": + return 2; + case "DISCARD_TEMP": + return 3; + default: + throw new Error("Key not recognized in enum DiscardMode"); + } + }, + "ReindexObjectType": (key: string): number => { + switch (key) { + case "REINDEX_OBJECT_INDEX": + return 0; + case "REINDEX_OBJECT_TABLE": + return 1; + case "REINDEX_OBJECT_SCHEMA": + return 2; + case "REINDEX_OBJECT_SYSTEM": + return 3; + case "REINDEX_OBJECT_DATABASE": + return 4; + default: + throw new Error("Key not recognized in enum ReindexObjectType"); + } + }, + "AlterTSConfigType": (key: string): number => { + switch (key) { + case "ALTER_TSCONFIG_ADD_MAPPING": + return 0; + case "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN": + return 1; + case "ALTER_TSCONFIG_REPLACE_DICT": + return 2; + case "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN": + return 3; + case "ALTER_TSCONFIG_DROP_MAPPING": + return 4; + default: + throw new Error("Key not recognized in enum AlterTSConfigType"); + } + }, + "PublicationObjSpecType": (key: string): number => { + switch (key) { + case "PUBLICATIONOBJ_TABLE": + return 0; + case "PUBLICATIONOBJ_TABLES_IN_SCHEMA": + return 1; + case "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA": + return 2; + case "PUBLICATIONOBJ_CONTINUATION": + return 3; + default: + throw new Error("Key not recognized in enum PublicationObjSpecType"); + } + }, + "AlterPublicationAction": (key: string): number => { + switch (key) { + case "AP_AddObjects": + return 0; + case "AP_DropObjects": + return 1; + case "AP_SetObjects": + return 2; + default: + throw new Error("Key not recognized in enum AlterPublicationAction"); + } + }, + "AlterSubscriptionType": (key: string): number => { + switch (key) { + case "ALTER_SUBSCRIPTION_OPTIONS": + return 0; + case "ALTER_SUBSCRIPTION_CONNECTION": + return 1; + case "ALTER_SUBSCRIPTION_SET_PUBLICATION": + return 2; + case "ALTER_SUBSCRIPTION_ADD_PUBLICATION": + return 3; + case "ALTER_SUBSCRIPTION_DROP_PUBLICATION": + return 4; + case "ALTER_SUBSCRIPTION_REFRESH": + return 5; + case "ALTER_SUBSCRIPTION_ENABLED": + return 6; + case "ALTER_SUBSCRIPTION_SKIP": + return 7; + default: + throw new Error("Key not recognized in enum AlterSubscriptionType"); + } + }, + "OnCommitAction": (key: string): number => { + switch (key) { + case "ONCOMMIT_NOOP": + return 0; + case "ONCOMMIT_PRESERVE_ROWS": + return 1; + case "ONCOMMIT_DELETE_ROWS": + return 2; + case "ONCOMMIT_DROP": + return 3; + default: + throw new Error("Key not recognized in enum OnCommitAction"); + } + }, + "ParamKind": (key: string): number => { + switch (key) { + case "PARAM_EXTERN": + return 0; + case "PARAM_EXEC": + return 1; + case "PARAM_SUBLINK": + return 2; + case "PARAM_MULTIEXPR": + return 3; + default: + throw new Error("Key not recognized in enum ParamKind"); + } + }, + "CoercionContext": (key: string): number => { + switch (key) { + case "COERCION_IMPLICIT": + return 0; + case "COERCION_ASSIGNMENT": + return 1; + case "COERCION_PLPGSQL": + return 2; + case "COERCION_EXPLICIT": + return 3; + default: + throw new Error("Key not recognized in enum CoercionContext"); + } + }, + "CoercionForm": (key: string): number => { + switch (key) { + case "COERCE_EXPLICIT_CALL": + return 0; + case "COERCE_EXPLICIT_CAST": + return 1; + case "COERCE_IMPLICIT_CAST": + return 2; + case "COERCE_SQL_SYNTAX": + return 3; + default: + throw new Error("Key not recognized in enum CoercionForm"); + } + }, + "BoolExprType": (key: string): number => { + switch (key) { + case "AND_EXPR": + return 0; + case "OR_EXPR": + return 1; + case "NOT_EXPR": + return 2; + default: + throw new Error("Key not recognized in enum BoolExprType"); + } + }, + "SubLinkType": (key: string): number => { + switch (key) { + case "EXISTS_SUBLINK": + return 0; + case "ALL_SUBLINK": + return 1; + case "ANY_SUBLINK": + return 2; + case "ROWCOMPARE_SUBLINK": + return 3; + case "EXPR_SUBLINK": + return 4; + case "MULTIEXPR_SUBLINK": + return 5; + case "ARRAY_SUBLINK": + return 6; + case "CTE_SUBLINK": + return 7; + default: + throw new Error("Key not recognized in enum SubLinkType"); + } + }, + "RowCompareType": (key: string): number => { + switch (key) { + case "ROWCOMPARE_LT": + return 0; + case "ROWCOMPARE_LE": + return 1; + case "ROWCOMPARE_EQ": + return 2; + case "ROWCOMPARE_GE": + return 3; + case "ROWCOMPARE_GT": + return 4; + case "ROWCOMPARE_NE": + return 5; + default: + throw new Error("Key not recognized in enum RowCompareType"); + } + }, + "MinMaxOp": (key: string): number => { + switch (key) { + case "IS_GREATEST": + return 0; + case "IS_LEAST": + return 1; + default: + throw new Error("Key not recognized in enum MinMaxOp"); + } + }, + "SQLValueFunctionOp": (key: string): number => { + switch (key) { + case "SVFOP_CURRENT_DATE": + return 0; + case "SVFOP_CURRENT_TIME": + return 1; + case "SVFOP_CURRENT_TIME_N": + return 2; + case "SVFOP_CURRENT_TIMESTAMP": + return 3; + case "SVFOP_CURRENT_TIMESTAMP_N": + return 4; + case "SVFOP_LOCALTIME": + return 5; + case "SVFOP_LOCALTIME_N": + return 6; + case "SVFOP_LOCALTIMESTAMP": + return 7; + case "SVFOP_LOCALTIMESTAMP_N": + return 8; + case "SVFOP_CURRENT_ROLE": + return 9; + case "SVFOP_CURRENT_USER": + return 10; + case "SVFOP_USER": + return 11; + case "SVFOP_SESSION_USER": + return 12; + case "SVFOP_CURRENT_CATALOG": + return 13; + case "SVFOP_CURRENT_SCHEMA": + return 14; + default: + throw new Error("Key not recognized in enum SQLValueFunctionOp"); + } + }, + "XmlExprOp": (key: string): number => { + switch (key) { + case "IS_XMLCONCAT": + return 0; + case "IS_XMLELEMENT": + return 1; + case "IS_XMLFOREST": + return 2; + case "IS_XMLPARSE": + return 3; + case "IS_XMLPI": + return 4; + case "IS_XMLROOT": + return 5; + case "IS_XMLSERIALIZE": + return 6; + case "IS_DOCUMENT": + return 7; + default: + throw new Error("Key not recognized in enum XmlExprOp"); + } + }, + "XmlOptionType": (key: string): number => { + switch (key) { + case "XMLOPTION_DOCUMENT": + return 0; + case "XMLOPTION_CONTENT": + return 1; + default: + throw new Error("Key not recognized in enum XmlOptionType"); + } + }, + "JsonEncoding": (key: string): number => { + switch (key) { + case "JS_ENC_DEFAULT": + return 0; + case "JS_ENC_UTF8": + return 1; + case "JS_ENC_UTF16": + return 2; + case "JS_ENC_UTF32": + return 3; + default: + throw new Error("Key not recognized in enum JsonEncoding"); + } + }, + "JsonFormatType": (key: string): number => { + switch (key) { + case "JS_FORMAT_DEFAULT": + return 0; + case "JS_FORMAT_JSON": + return 1; + case "JS_FORMAT_JSONB": + return 2; + default: + throw new Error("Key not recognized in enum JsonFormatType"); + } + }, + "JsonConstructorType": (key: string): number => { + switch (key) { + case "JSCTOR_JSON_OBJECT": + return 0; + case "JSCTOR_JSON_ARRAY": + return 1; + case "JSCTOR_JSON_OBJECTAGG": + return 2; + case "JSCTOR_JSON_ARRAYAGG": + return 3; + default: + throw new Error("Key not recognized in enum JsonConstructorType"); + } + }, + "JsonValueType": (key: string): number => { + switch (key) { + case "JS_TYPE_ANY": + return 0; + case "JS_TYPE_OBJECT": + return 1; + case "JS_TYPE_ARRAY": + return 2; + case "JS_TYPE_SCALAR": + return 3; + default: + throw new Error("Key not recognized in enum JsonValueType"); + } + }, + "NullTestType": (key: string): number => { + switch (key) { + case "IS_NULL": + return 0; + case "IS_NOT_NULL": + return 1; + default: + throw new Error("Key not recognized in enum NullTestType"); + } + }, + "BoolTestType": (key: string): number => { + switch (key) { + case "IS_TRUE": + return 0; + case "IS_NOT_TRUE": + return 1; + case "IS_FALSE": + return 2; + case "IS_NOT_FALSE": + return 3; + case "IS_UNKNOWN": + return 4; + case "IS_NOT_UNKNOWN": + return 5; + default: + throw new Error("Key not recognized in enum BoolTestType"); + } + }, + "CmdType": (key: string): number => { + switch (key) { + case "CMD_UNKNOWN": + return 0; + case "CMD_SELECT": + return 1; + case "CMD_UPDATE": + return 2; + case "CMD_INSERT": + return 3; + case "CMD_DELETE": + return 4; + case "CMD_MERGE": + return 5; + case "CMD_UTILITY": + return 6; + case "CMD_NOTHING": + return 7; + default: + throw new Error("Key not recognized in enum CmdType"); + } + }, + "JoinType": (key: string): number => { + switch (key) { + case "JOIN_INNER": + return 0; + case "JOIN_LEFT": + return 1; + case "JOIN_FULL": + return 2; + case "JOIN_RIGHT": + return 3; + case "JOIN_SEMI": + return 4; + case "JOIN_ANTI": + return 5; + case "JOIN_RIGHT_ANTI": + return 6; + case "JOIN_UNIQUE_OUTER": + return 7; + case "JOIN_UNIQUE_INNER": + return 8; + default: + throw new Error("Key not recognized in enum JoinType"); + } + }, + "AggStrategy": (key: string): number => { + switch (key) { + case "AGG_PLAIN": + return 0; + case "AGG_SORTED": + return 1; + case "AGG_HASHED": + return 2; + case "AGG_MIXED": + return 3; + default: + throw new Error("Key not recognized in enum AggStrategy"); + } + }, + "AggSplit": (key: string): number => { + switch (key) { + case "AGGSPLIT_SIMPLE": + return 0; + case "AGGSPLIT_INITIAL_SERIAL": + return 1; + case "AGGSPLIT_FINAL_DESERIAL": + return 2; + default: + throw new Error("Key not recognized in enum AggSplit"); + } + }, + "SetOpCmd": (key: string): number => { + switch (key) { + case "SETOPCMD_INTERSECT": + return 0; + case "SETOPCMD_INTERSECT_ALL": + return 1; + case "SETOPCMD_EXCEPT": + return 2; + case "SETOPCMD_EXCEPT_ALL": + return 3; + default: + throw new Error("Key not recognized in enum SetOpCmd"); + } + }, + "SetOpStrategy": (key: string): number => { + switch (key) { + case "SETOP_SORTED": + return 0; + case "SETOP_HASHED": + return 1; + default: + throw new Error("Key not recognized in enum SetOpStrategy"); + } + }, + "OnConflictAction": (key: string): number => { + switch (key) { + case "ONCONFLICT_NONE": + return 0; + case "ONCONFLICT_NOTHING": + return 1; + case "ONCONFLICT_UPDATE": + return 2; + default: + throw new Error("Key not recognized in enum OnConflictAction"); + } + }, + "LimitOption": (key: string): number => { + switch (key) { + case "LIMIT_OPTION_DEFAULT": + return 0; + case "LIMIT_OPTION_COUNT": + return 1; + case "LIMIT_OPTION_WITH_TIES": + return 2; + default: + throw new Error("Key not recognized in enum LimitOption"); + } + }, + "LockClauseStrength": (key: string): number => { + switch (key) { + case "LCS_NONE": + return 0; + case "LCS_FORKEYSHARE": + return 1; + case "LCS_FORSHARE": + return 2; + case "LCS_FORNOKEYUPDATE": + return 3; + case "LCS_FORUPDATE": + return 4; + default: + throw new Error("Key not recognized in enum LockClauseStrength"); + } + }, + "LockWaitPolicy": (key: string): number => { + switch (key) { + case "LockWaitBlock": + return 0; + case "LockWaitSkip": + return 1; + case "LockWaitError": + return 2; + default: + throw new Error("Key not recognized in enum LockWaitPolicy"); + } + }, + "LockTupleMode": (key: string): number => { + switch (key) { + case "LockTupleKeyShare": + return 0; + case "LockTupleShare": + return 1; + case "LockTupleNoKeyExclusive": + return 2; + case "LockTupleExclusive": + return 3; + default: + throw new Error("Key not recognized in enum LockTupleMode"); + } + }, + "KeywordKind": (key: string): number => { + switch (key) { + case "NO_KEYWORD": + return 0; + case "UNRESERVED_KEYWORD": + return 1; + case "COL_NAME_KEYWORD": + return 2; + case "TYPE_FUNC_NAME_KEYWORD": + return 3; + case "RESERVED_KEYWORD": + return 4; + default: + throw new Error("Key not recognized in enum KeywordKind"); + } + }, + "Token": (key: string): number => { + switch (key) { + case "NUL": + return 0; + case "ASCII_36": + return 36; + case "ASCII_37": + return 37; + case "ASCII_40": + return 40; + case "ASCII_41": + return 41; + case "ASCII_42": + return 42; + case "ASCII_43": + return 43; + case "ASCII_44": + return 44; + case "ASCII_45": + return 45; + case "ASCII_46": + return 46; + case "ASCII_47": + return 47; + case "ASCII_58": + return 58; + case "ASCII_59": + return 59; + case "ASCII_60": + return 60; + case "ASCII_61": + return 61; + case "ASCII_62": + return 62; + case "ASCII_63": + return 63; + case "ASCII_91": + return 91; + case "ASCII_92": + return 92; + case "ASCII_93": + return 93; + case "ASCII_94": + return 94; + case "IDENT": + return 258; + case "UIDENT": + return 259; + case "FCONST": + return 260; + case "SCONST": + return 261; + case "USCONST": + return 262; + case "BCONST": + return 263; + case "XCONST": + return 264; + case "Op": + return 265; + case "ICONST": + return 266; + case "PARAM": + return 267; + case "TYPECAST": + return 268; + case "DOT_DOT": + return 269; + case "COLON_EQUALS": + return 270; + case "EQUALS_GREATER": + return 271; + case "LESS_EQUALS": + return 272; + case "GREATER_EQUALS": + return 273; + case "NOT_EQUALS": + return 274; + case "SQL_COMMENT": + return 275; + case "C_COMMENT": + return 276; + case "ABORT_P": + return 277; + case "ABSENT": + return 278; + case "ABSOLUTE_P": + return 279; + case "ACCESS": + return 280; + case "ACTION": + return 281; + case "ADD_P": + return 282; + case "ADMIN": + return 283; + case "AFTER": + return 284; + case "AGGREGATE": + return 285; + case "ALL": + return 286; + case "ALSO": + return 287; + case "ALTER": + return 288; + case "ALWAYS": + return 289; + case "ANALYSE": + return 290; + case "ANALYZE": + return 291; + case "AND": + return 292; + case "ANY": + return 293; + case "ARRAY": + return 294; + case "AS": + return 295; + case "ASC": + return 296; + case "ASENSITIVE": + return 297; + case "ASSERTION": + return 298; + case "ASSIGNMENT": + return 299; + case "ASYMMETRIC": + return 300; + case "ATOMIC": + return 301; + case "AT": + return 302; + case "ATTACH": + return 303; + case "ATTRIBUTE": + return 304; + case "AUTHORIZATION": + return 305; + case "BACKWARD": + return 306; + case "BEFORE": + return 307; + case "BEGIN_P": + return 308; + case "BETWEEN": + return 309; + case "BIGINT": + return 310; + case "BINARY": + return 311; + case "BIT": + return 312; + case "BOOLEAN_P": + return 313; + case "BOTH": + return 314; + case "BREADTH": + return 315; + case "BY": + return 316; + case "CACHE": + return 317; + case "CALL": + return 318; + case "CALLED": + return 319; + case "CASCADE": + return 320; + case "CASCADED": + return 321; + case "CASE": + return 322; + case "CAST": + return 323; + case "CATALOG_P": + return 324; + case "CHAIN": + return 325; + case "CHAR_P": + return 326; + case "CHARACTER": + return 327; + case "CHARACTERISTICS": + return 328; + case "CHECK": + return 329; + case "CHECKPOINT": + return 330; + case "CLASS": + return 331; + case "CLOSE": + return 332; + case "CLUSTER": + return 333; + case "COALESCE": + return 334; + case "COLLATE": + return 335; + case "COLLATION": + return 336; + case "COLUMN": + return 337; + case "COLUMNS": + return 338; + case "COMMENT": + return 339; + case "COMMENTS": + return 340; + case "COMMIT": + return 341; + case "COMMITTED": + return 342; + case "COMPRESSION": + return 343; + case "CONCURRENTLY": + return 344; + case "CONFIGURATION": + return 345; + case "CONFLICT": + return 346; + case "CONNECTION": + return 347; + case "CONSTRAINT": + return 348; + case "CONSTRAINTS": + return 349; + case "CONTENT_P": + return 350; + case "CONTINUE_P": + return 351; + case "CONVERSION_P": + return 352; + case "COPY": + return 353; + case "COST": + return 354; + case "CREATE": + return 355; + case "CROSS": + return 356; + case "CSV": + return 357; + case "CUBE": + return 358; + case "CURRENT_P": + return 359; + case "CURRENT_CATALOG": + return 360; + case "CURRENT_DATE": + return 361; + case "CURRENT_ROLE": + return 362; + case "CURRENT_SCHEMA": + return 363; + case "CURRENT_TIME": + return 364; + case "CURRENT_TIMESTAMP": + return 365; + case "CURRENT_USER": + return 366; + case "CURSOR": + return 367; + case "CYCLE": + return 368; + case "DATA_P": + return 369; + case "DATABASE": + return 370; + case "DAY_P": + return 371; + case "DEALLOCATE": + return 372; + case "DEC": + return 373; + case "DECIMAL_P": + return 374; + case "DECLARE": + return 375; + case "DEFAULT": + return 376; + case "DEFAULTS": + return 377; + case "DEFERRABLE": + return 378; + case "DEFERRED": + return 379; + case "DEFINER": + return 380; + case "DELETE_P": + return 381; + case "DELIMITER": + return 382; + case "DELIMITERS": + return 383; + case "DEPENDS": + return 384; + case "DEPTH": + return 385; + case "DESC": + return 386; + case "DETACH": + return 387; + case "DICTIONARY": + return 388; + case "DISABLE_P": + return 389; + case "DISCARD": + return 390; + case "DISTINCT": + return 391; + case "DO": + return 392; + case "DOCUMENT_P": + return 393; + case "DOMAIN_P": + return 394; + case "DOUBLE_P": + return 395; + case "DROP": + return 396; + case "EACH": + return 397; + case "ELSE": + return 398; + case "ENABLE_P": + return 399; + case "ENCODING": + return 400; + case "ENCRYPTED": + return 401; + case "END_P": + return 402; + case "ENUM_P": + return 403; + case "ESCAPE": + return 404; + case "EVENT": + return 405; + case "EXCEPT": + return 406; + case "EXCLUDE": + return 407; + case "EXCLUDING": + return 408; + case "EXCLUSIVE": + return 409; + case "EXECUTE": + return 410; + case "EXISTS": + return 411; + case "EXPLAIN": + return 412; + case "EXPRESSION": + return 413; + case "EXTENSION": + return 414; + case "EXTERNAL": + return 415; + case "EXTRACT": + return 416; + case "FALSE_P": + return 417; + case "FAMILY": + return 418; + case "FETCH": + return 419; + case "FILTER": + return 420; + case "FINALIZE": + return 421; + case "FIRST_P": + return 422; + case "FLOAT_P": + return 423; + case "FOLLOWING": + return 424; + case "FOR": + return 425; + case "FORCE": + return 426; + case "FOREIGN": + return 427; + case "FORMAT": + return 428; + case "FORWARD": + return 429; + case "FREEZE": + return 430; + case "FROM": + return 431; + case "FULL": + return 432; + case "FUNCTION": + return 433; + case "FUNCTIONS": + return 434; + case "GENERATED": + return 435; + case "GLOBAL": + return 436; + case "GRANT": + return 437; + case "GRANTED": + return 438; + case "GREATEST": + return 439; + case "GROUP_P": + return 440; + case "GROUPING": + return 441; + case "GROUPS": + return 442; + case "HANDLER": + return 443; + case "HAVING": + return 444; + case "HEADER_P": + return 445; + case "HOLD": + return 446; + case "HOUR_P": + return 447; + case "IDENTITY_P": + return 448; + case "IF_P": + return 449; + case "ILIKE": + return 450; + case "IMMEDIATE": + return 451; + case "IMMUTABLE": + return 452; + case "IMPLICIT_P": + return 453; + case "IMPORT_P": + return 454; + case "IN_P": + return 455; + case "INCLUDE": + return 456; + case "INCLUDING": + return 457; + case "INCREMENT": + return 458; + case "INDENT": + return 459; + case "INDEX": + return 460; + case "INDEXES": + return 461; + case "INHERIT": + return 462; + case "INHERITS": + return 463; + case "INITIALLY": + return 464; + case "INLINE_P": + return 465; + case "INNER_P": + return 466; + case "INOUT": + return 467; + case "INPUT_P": + return 468; + case "INSENSITIVE": + return 469; + case "INSERT": + return 470; + case "INSTEAD": + return 471; + case "INT_P": + return 472; + case "INTEGER": + return 473; + case "INTERSECT": + return 474; + case "INTERVAL": + return 475; + case "INTO": + return 476; + case "INVOKER": + return 477; + case "IS": + return 478; + case "ISNULL": + return 479; + case "ISOLATION": + return 480; + case "JOIN": + return 481; + case "JSON": + return 482; + case "JSON_ARRAY": + return 483; + case "JSON_ARRAYAGG": + return 484; + case "JSON_OBJECT": + return 485; + case "JSON_OBJECTAGG": + return 486; + case "KEY": + return 487; + case "KEYS": + return 488; + case "LABEL": + return 489; + case "LANGUAGE": + return 490; + case "LARGE_P": + return 491; + case "LAST_P": + return 492; + case "LATERAL_P": + return 493; + case "LEADING": + return 494; + case "LEAKPROOF": + return 495; + case "LEAST": + return 496; + case "LEFT": + return 497; + case "LEVEL": + return 498; + case "LIKE": + return 499; + case "LIMIT": + return 500; + case "LISTEN": + return 501; + case "LOAD": + return 502; + case "LOCAL": + return 503; + case "LOCALTIME": + return 504; + case "LOCALTIMESTAMP": + return 505; + case "LOCATION": + return 506; + case "LOCK_P": + return 507; + case "LOCKED": + return 508; + case "LOGGED": + return 509; + case "MAPPING": + return 510; + case "MATCH": + return 511; + case "MATCHED": + return 512; + case "MATERIALIZED": + return 513; + case "MAXVALUE": + return 514; + case "MERGE": + return 515; + case "METHOD": + return 516; + case "MINUTE_P": + return 517; + case "MINVALUE": + return 518; + case "MODE": + return 519; + case "MONTH_P": + return 520; + case "MOVE": + return 521; + case "NAME_P": + return 522; + case "NAMES": + return 523; + case "NATIONAL": + return 524; + case "NATURAL": + return 525; + case "NCHAR": + return 526; + case "NEW": + return 527; + case "NEXT": + return 528; + case "NFC": + return 529; + case "NFD": + return 530; + case "NFKC": + return 531; + case "NFKD": + return 532; + case "NO": + return 533; + case "NONE": + return 534; + case "NORMALIZE": + return 535; + case "NORMALIZED": + return 536; + case "NOT": + return 537; + case "NOTHING": + return 538; + case "NOTIFY": + return 539; + case "NOTNULL": + return 540; + case "NOWAIT": + return 541; + case "NULL_P": + return 542; + case "NULLIF": + return 543; + case "NULLS_P": + return 544; + case "NUMERIC": + return 545; + case "OBJECT_P": + return 546; + case "OF": + return 547; + case "OFF": + return 548; + case "OFFSET": + return 549; + case "OIDS": + return 550; + case "OLD": + return 551; + case "ON": + return 552; + case "ONLY": + return 553; + case "OPERATOR": + return 554; + case "OPTION": + return 555; + case "OPTIONS": + return 556; + case "OR": + return 557; + case "ORDER": + return 558; + case "ORDINALITY": + return 559; + case "OTHERS": + return 560; + case "OUT_P": + return 561; + case "OUTER_P": + return 562; + case "OVER": + return 563; + case "OVERLAPS": + return 564; + case "OVERLAY": + return 565; + case "OVERRIDING": + return 566; + case "OWNED": + return 567; + case "OWNER": + return 568; + case "PARALLEL": + return 569; + case "PARAMETER": + return 570; + case "PARSER": + return 571; + case "PARTIAL": + return 572; + case "PARTITION": + return 573; + case "PASSING": + return 574; + case "PASSWORD": + return 575; + case "PLACING": + return 576; + case "PLANS": + return 577; + case "POLICY": + return 578; + case "POSITION": + return 579; + case "PRECEDING": + return 580; + case "PRECISION": + return 581; + case "PRESERVE": + return 582; + case "PREPARE": + return 583; + case "PREPARED": + return 584; + case "PRIMARY": + return 585; + case "PRIOR": + return 586; + case "PRIVILEGES": + return 587; + case "PROCEDURAL": + return 588; + case "PROCEDURE": + return 589; + case "PROCEDURES": + return 590; + case "PROGRAM": + return 591; + case "PUBLICATION": + return 592; + case "QUOTE": + return 593; + case "RANGE": + return 594; + case "READ": + return 595; + case "REAL": + return 596; + case "REASSIGN": + return 597; + case "RECHECK": + return 598; + case "RECURSIVE": + return 599; + case "REF_P": + return 600; + case "REFERENCES": + return 601; + case "REFERENCING": + return 602; + case "REFRESH": + return 603; + case "REINDEX": + return 604; + case "RELATIVE_P": + return 605; + case "RELEASE": + return 606; + case "RENAME": + return 607; + case "REPEATABLE": + return 608; + case "REPLACE": + return 609; + case "REPLICA": + return 610; + case "RESET": + return 611; + case "RESTART": + return 612; + case "RESTRICT": + return 613; + case "RETURN": + return 614; + case "RETURNING": + return 615; + case "RETURNS": + return 616; + case "REVOKE": + return 617; + case "RIGHT": + return 618; + case "ROLE": + return 619; + case "ROLLBACK": + return 620; + case "ROLLUP": + return 621; + case "ROUTINE": + return 622; + case "ROUTINES": + return 623; + case "ROW": + return 624; + case "ROWS": + return 625; + case "RULE": + return 626; + case "SAVEPOINT": + return 627; + case "SCALAR": + return 628; + case "SCHEMA": + return 629; + case "SCHEMAS": + return 630; + case "SCROLL": + return 631; + case "SEARCH": + return 632; + case "SECOND_P": + return 633; + case "SECURITY": + return 634; + case "SELECT": + return 635; + case "SEQUENCE": + return 636; + case "SEQUENCES": + return 637; + case "SERIALIZABLE": + return 638; + case "SERVER": + return 639; + case "SESSION": + return 640; + case "SESSION_USER": + return 641; + case "SET": + return 642; + case "SETS": + return 643; + case "SETOF": + return 644; + case "SHARE": + return 645; + case "SHOW": + return 646; + case "SIMILAR": + return 647; + case "SIMPLE": + return 648; + case "SKIP": + return 649; + case "SMALLINT": + return 650; + case "SNAPSHOT": + return 651; + case "SOME": + return 652; + case "SQL_P": + return 653; + case "STABLE": + return 654; + case "STANDALONE_P": + return 655; + case "START": + return 656; + case "STATEMENT": + return 657; + case "STATISTICS": + return 658; + case "STDIN": + return 659; + case "STDOUT": + return 660; + case "STORAGE": + return 661; + case "STORED": + return 662; + case "STRICT_P": + return 663; + case "STRIP_P": + return 664; + case "SUBSCRIPTION": + return 665; + case "SUBSTRING": + return 666; + case "SUPPORT": + return 667; + case "SYMMETRIC": + return 668; + case "SYSID": + return 669; + case "SYSTEM_P": + return 670; + case "SYSTEM_USER": + return 671; + case "TABLE": + return 672; + case "TABLES": + return 673; + case "TABLESAMPLE": + return 674; + case "TABLESPACE": + return 675; + case "TEMP": + return 676; + case "TEMPLATE": + return 677; + case "TEMPORARY": + return 678; + case "TEXT_P": + return 679; + case "THEN": + return 680; + case "TIES": + return 681; + case "TIME": + return 682; + case "TIMESTAMP": + return 683; + case "TO": + return 684; + case "TRAILING": + return 685; + case "TRANSACTION": + return 686; + case "TRANSFORM": + return 687; + case "TREAT": + return 688; + case "TRIGGER": + return 689; + case "TRIM": + return 690; + case "TRUE_P": + return 691; + case "TRUNCATE": + return 692; + case "TRUSTED": + return 693; + case "TYPE_P": + return 694; + case "TYPES_P": + return 695; + case "UESCAPE": + return 696; + case "UNBOUNDED": + return 697; + case "UNCOMMITTED": + return 698; + case "UNENCRYPTED": + return 699; + case "UNION": + return 700; + case "UNIQUE": + return 701; + case "UNKNOWN": + return 702; + case "UNLISTEN": + return 703; + case "UNLOGGED": + return 704; + case "UNTIL": + return 705; + case "UPDATE": + return 706; + case "USER": + return 707; + case "USING": + return 708; + case "VACUUM": + return 709; + case "VALID": + return 710; + case "VALIDATE": + return 711; + case "VALIDATOR": + return 712; + case "VALUE_P": + return 713; + case "VALUES": + return 714; + case "VARCHAR": + return 715; + case "VARIADIC": + return 716; + case "VARYING": + return 717; + case "VERBOSE": + return 718; + case "VERSION_P": + return 719; + case "VIEW": + return 720; + case "VIEWS": + return 721; + case "VOLATILE": + return 722; + case "WHEN": + return 723; + case "WHERE": + return 724; + case "WHITESPACE_P": + return 725; + case "WINDOW": + return 726; + case "WITH": + return 727; + case "WITHIN": + return 728; + case "WITHOUT": + return 729; + case "WORK": + return 730; + case "WRAPPER": + return 731; + case "WRITE": + return 732; + case "XML_P": + return 733; + case "XMLATTRIBUTES": + return 734; + case "XMLCONCAT": + return 735; + case "XMLELEMENT": + return 736; + case "XMLEXISTS": + return 737; + case "XMLFOREST": + return 738; + case "XMLNAMESPACES": + return 739; + case "XMLPARSE": + return 740; + case "XMLPI": + return 741; + case "XMLROOT": + return 742; + case "XMLSERIALIZE": + return 743; + case "XMLTABLE": + return 744; + case "YEAR_P": + return 745; + case "YES_P": + return 746; + case "ZONE": + return 747; + case "FORMAT_LA": + return 748; + case "NOT_LA": + return 749; + case "NULLS_LA": + return 750; + case "WITH_LA": + return 751; + case "WITHOUT_LA": + return 752; + case "MODE_TYPE_NAME": + return 753; + case "MODE_PLPGSQL_EXPR": + return 754; + case "MODE_PLPGSQL_ASSIGN1": + return 755; + case "MODE_PLPGSQL_ASSIGN2": + return 756; + case "MODE_PLPGSQL_ASSIGN3": + return 757; + case "UMINUS": + return 758; + default: + throw new Error("Key not recognized in enum Token"); + } + } +};", + "file": "custom-int-nested.ts", + }, +] +`; + +exports[`enum utils nested objects format generates unidirectional enum functions with nested objects 1`] = ` +[ + { + "code": "/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type EnumType = "OverridingKind" | "QuerySource" | "SortByDir" | "SortByNulls" | "SetQuantifier" | "A_Expr_Kind" | "RoleSpecType" | "TableLikeOption" | "DefElemAction" | "PartitionStrategy" | "PartitionRangeDatumKind" | "RTEKind" | "WCOKind" | "GroupingSetKind" | "CTEMaterialize" | "SetOperation" | "ObjectType" | "DropBehavior" | "AlterTableType" | "GrantTargetType" | "VariableSetKind" | "ConstrType" | "ImportForeignSchemaType" | "RoleStmtType" | "FetchDirection" | "FunctionParameterMode" | "TransactionStmtKind" | "ViewCheckOption" | "DiscardMode" | "ReindexObjectType" | "AlterTSConfigType" | "PublicationObjSpecType" | "AlterPublicationAction" | "AlterSubscriptionType" | "OnCommitAction" | "ParamKind" | "CoercionContext" | "CoercionForm" | "BoolExprType" | "SubLinkType" | "RowCompareType" | "MinMaxOp" | "SQLValueFunctionOp" | "XmlExprOp" | "XmlOptionType" | "JsonEncoding" | "JsonFormatType" | "JsonConstructorType" | "JsonValueType" | "NullTestType" | "BoolTestType" | "CmdType" | "JoinType" | "AggStrategy" | "AggSplit" | "SetOpCmd" | "SetOpStrategy" | "OnConflictAction" | "LimitOption" | "LockClauseStrength" | "LockWaitPolicy" | "LockTupleMode" | "KeywordKind" | "Token"; +export type EnumToStringMap = { + "OverridingKind": (value: number) => string; + "QuerySource": (value: number) => string; + "SortByDir": (value: number) => string; + "SortByNulls": (value: number) => string; + "SetQuantifier": (value: number) => string; + "A_Expr_Kind": (value: number) => string; + "RoleSpecType": (value: number) => string; + "TableLikeOption": (value: number) => string; + "DefElemAction": (value: number) => string; + "PartitionStrategy": (value: number) => string; + "PartitionRangeDatumKind": (value: number) => string; + "RTEKind": (value: number) => string; + "WCOKind": (value: number) => string; + "GroupingSetKind": (value: number) => string; + "CTEMaterialize": (value: number) => string; + "SetOperation": (value: number) => string; + "ObjectType": (value: number) => string; + "DropBehavior": (value: number) => string; + "AlterTableType": (value: number) => string; + "GrantTargetType": (value: number) => string; + "VariableSetKind": (value: number) => string; + "ConstrType": (value: number) => string; + "ImportForeignSchemaType": (value: number) => string; + "RoleStmtType": (value: number) => string; + "FetchDirection": (value: number) => string; + "FunctionParameterMode": (value: number) => string; + "TransactionStmtKind": (value: number) => string; + "ViewCheckOption": (value: number) => string; + "DiscardMode": (value: number) => string; + "ReindexObjectType": (value: number) => string; + "AlterTSConfigType": (value: number) => string; + "PublicationObjSpecType": (value: number) => string; + "AlterPublicationAction": (value: number) => string; + "AlterSubscriptionType": (value: number) => string; + "OnCommitAction": (value: number) => string; + "ParamKind": (value: number) => string; + "CoercionContext": (value: number) => string; + "CoercionForm": (value: number) => string; + "BoolExprType": (value: number) => string; + "SubLinkType": (value: number) => string; + "RowCompareType": (value: number) => string; + "MinMaxOp": (value: number) => string; + "SQLValueFunctionOp": (value: number) => string; + "XmlExprOp": (value: number) => string; + "XmlOptionType": (value: number) => string; + "JsonEncoding": (value: number) => string; + "JsonFormatType": (value: number) => string; + "JsonConstructorType": (value: number) => string; + "JsonValueType": (value: number) => string; + "NullTestType": (value: number) => string; + "BoolTestType": (value: number) => string; + "CmdType": (value: number) => string; + "JoinType": (value: number) => string; + "AggStrategy": (value: number) => string; + "AggSplit": (value: number) => string; + "SetOpCmd": (value: number) => string; + "SetOpStrategy": (value: number) => string; + "OnConflictAction": (value: number) => string; + "LimitOption": (value: number) => string; + "LockClauseStrength": (value: number) => string; + "LockWaitPolicy": (value: number) => string; + "LockTupleMode": (value: number) => string; + "KeywordKind": (value: number) => string; + "Token": (value: number) => string; +}; +export const enumToStringMap: EnumToStringMap = { + "OverridingKind": (value: number): string => { + switch (value) { + case 0: + return "OVERRIDING_NOT_SET"; + case 1: + return "OVERRIDING_USER_VALUE"; + case 2: + return "OVERRIDING_SYSTEM_VALUE"; + default: + throw new Error("Value not recognized in enum OverridingKind"); + } + }, + "QuerySource": (value: number): string => { + switch (value) { + case 0: + return "QSRC_ORIGINAL"; + case 1: + return "QSRC_PARSER"; + case 2: + return "QSRC_INSTEAD_RULE"; + case 3: + return "QSRC_QUAL_INSTEAD_RULE"; + case 4: + return "QSRC_NON_INSTEAD_RULE"; + default: + throw new Error("Value not recognized in enum QuerySource"); + } + }, + "SortByDir": (value: number): string => { + switch (value) { + case 0: + return "SORTBY_DEFAULT"; + case 1: + return "SORTBY_ASC"; + case 2: + return "SORTBY_DESC"; + case 3: + return "SORTBY_USING"; + default: + throw new Error("Value not recognized in enum SortByDir"); + } + }, + "SortByNulls": (value: number): string => { + switch (value) { + case 0: + return "SORTBY_NULLS_DEFAULT"; + case 1: + return "SORTBY_NULLS_FIRST"; + case 2: + return "SORTBY_NULLS_LAST"; + default: + throw new Error("Value not recognized in enum SortByNulls"); + } + }, + "SetQuantifier": (value: number): string => { + switch (value) { + case 0: + return "SET_QUANTIFIER_DEFAULT"; + case 1: + return "SET_QUANTIFIER_ALL"; + case 2: + return "SET_QUANTIFIER_DISTINCT"; + default: + throw new Error("Value not recognized in enum SetQuantifier"); + } + }, + "A_Expr_Kind": (value: number): string => { + switch (value) { + case 0: + return "AEXPR_OP"; + case 1: + return "AEXPR_OP_ANY"; + case 2: + return "AEXPR_OP_ALL"; + case 3: + return "AEXPR_DISTINCT"; + case 4: + return "AEXPR_NOT_DISTINCT"; + case 5: + return "AEXPR_NULLIF"; + case 6: + return "AEXPR_IN"; + case 7: + return "AEXPR_LIKE"; + case 8: + return "AEXPR_ILIKE"; + case 9: + return "AEXPR_SIMILAR"; + case 10: + return "AEXPR_BETWEEN"; + case 11: + return "AEXPR_NOT_BETWEEN"; + case 12: + return "AEXPR_BETWEEN_SYM"; + case 13: + return "AEXPR_NOT_BETWEEN_SYM"; + default: + throw new Error("Value not recognized in enum A_Expr_Kind"); + } + }, + "RoleSpecType": (value: number): string => { + switch (value) { + case 0: + return "ROLESPEC_CSTRING"; + case 1: + return "ROLESPEC_CURRENT_ROLE"; + case 2: + return "ROLESPEC_CURRENT_USER"; + case 3: + return "ROLESPEC_SESSION_USER"; + case 4: + return "ROLESPEC_PUBLIC"; + default: + throw new Error("Value not recognized in enum RoleSpecType"); + } + }, + "TableLikeOption": (value: number): string => { + switch (value) { + case 0: + return "CREATE_TABLE_LIKE_COMMENTS"; + case 1: + return "CREATE_TABLE_LIKE_COMPRESSION"; + case 2: + return "CREATE_TABLE_LIKE_CONSTRAINTS"; + case 3: + return "CREATE_TABLE_LIKE_DEFAULTS"; + case 4: + return "CREATE_TABLE_LIKE_GENERATED"; + case 5: + return "CREATE_TABLE_LIKE_IDENTITY"; + case 6: + return "CREATE_TABLE_LIKE_INDEXES"; + case 7: + return "CREATE_TABLE_LIKE_STATISTICS"; + case 8: + return "CREATE_TABLE_LIKE_STORAGE"; + case 9: + return "CREATE_TABLE_LIKE_ALL"; + default: + throw new Error("Value not recognized in enum TableLikeOption"); + } + }, + "DefElemAction": (value: number): string => { + switch (value) { + case 0: + return "DEFELEM_UNSPEC"; + case 1: + return "DEFELEM_SET"; + case 2: + return "DEFELEM_ADD"; + case 3: + return "DEFELEM_DROP"; + default: + throw new Error("Value not recognized in enum DefElemAction"); + } + }, + "PartitionStrategy": (value: number): string => { + switch (value) { + case 0: + return "PARTITION_STRATEGY_LIST"; + case 1: + return "PARTITION_STRATEGY_RANGE"; + case 2: + return "PARTITION_STRATEGY_HASH"; + default: + throw new Error("Value not recognized in enum PartitionStrategy"); + } + }, + "PartitionRangeDatumKind": (value: number): string => { + switch (value) { + case 0: + return "PARTITION_RANGE_DATUM_MINVALUE"; + case 1: + return "PARTITION_RANGE_DATUM_VALUE"; + case 2: + return "PARTITION_RANGE_DATUM_MAXVALUE"; + default: + throw new Error("Value not recognized in enum PartitionRangeDatumKind"); + } + }, + "RTEKind": (value: number): string => { + switch (value) { + case 0: + return "RTE_RELATION"; + case 1: + return "RTE_SUBQUERY"; + case 2: + return "RTE_JOIN"; + case 3: + return "RTE_FUNCTION"; + case 4: + return "RTE_TABLEFUNC"; + case 5: + return "RTE_VALUES"; + case 6: + return "RTE_CTE"; + case 7: + return "RTE_NAMEDTUPLESTORE"; + case 8: + return "RTE_RESULT"; + default: + throw new Error("Value not recognized in enum RTEKind"); + } + }, + "WCOKind": (value: number): string => { + switch (value) { + case 0: + return "WCO_VIEW_CHECK"; + case 1: + return "WCO_RLS_INSERT_CHECK"; + case 2: + return "WCO_RLS_UPDATE_CHECK"; + case 3: + return "WCO_RLS_CONFLICT_CHECK"; + case 4: + return "WCO_RLS_MERGE_UPDATE_CHECK"; + case 5: + return "WCO_RLS_MERGE_DELETE_CHECK"; + default: + throw new Error("Value not recognized in enum WCOKind"); + } + }, + "GroupingSetKind": (value: number): string => { + switch (value) { + case 0: + return "GROUPING_SET_EMPTY"; + case 1: + return "GROUPING_SET_SIMPLE"; + case 2: + return "GROUPING_SET_ROLLUP"; + case 3: + return "GROUPING_SET_CUBE"; + case 4: + return "GROUPING_SET_SETS"; + default: + throw new Error("Value not recognized in enum GroupingSetKind"); + } + }, + "CTEMaterialize": (value: number): string => { + switch (value) { + case 0: + return "CTEMaterializeDefault"; + case 1: + return "CTEMaterializeAlways"; + case 2: + return "CTEMaterializeNever"; + default: + throw new Error("Value not recognized in enum CTEMaterialize"); + } + }, + "SetOperation": (value: number): string => { + switch (value) { + case 0: + return "SETOP_NONE"; + case 1: + return "SETOP_UNION"; + case 2: + return "SETOP_INTERSECT"; + case 3: + return "SETOP_EXCEPT"; + default: + throw new Error("Value not recognized in enum SetOperation"); + } + }, + "ObjectType": (value: number): string => { + switch (value) { + case 0: + return "OBJECT_ACCESS_METHOD"; + case 1: + return "OBJECT_AGGREGATE"; + case 2: + return "OBJECT_AMOP"; + case 3: + return "OBJECT_AMPROC"; + case 4: + return "OBJECT_ATTRIBUTE"; + case 5: + return "OBJECT_CAST"; + case 6: + return "OBJECT_COLUMN"; + case 7: + return "OBJECT_COLLATION"; + case 8: + return "OBJECT_CONVERSION"; + case 9: + return "OBJECT_DATABASE"; + case 10: + return "OBJECT_DEFAULT"; + case 11: + return "OBJECT_DEFACL"; + case 12: + return "OBJECT_DOMAIN"; + case 13: + return "OBJECT_DOMCONSTRAINT"; + case 14: + return "OBJECT_EVENT_TRIGGER"; + case 15: + return "OBJECT_EXTENSION"; + case 16: + return "OBJECT_FDW"; + case 17: + return "OBJECT_FOREIGN_SERVER"; + case 18: + return "OBJECT_FOREIGN_TABLE"; + case 19: + return "OBJECT_FUNCTION"; + case 20: + return "OBJECT_INDEX"; + case 21: + return "OBJECT_LANGUAGE"; + case 22: + return "OBJECT_LARGEOBJECT"; + case 23: + return "OBJECT_MATVIEW"; + case 24: + return "OBJECT_OPCLASS"; + case 25: + return "OBJECT_OPERATOR"; + case 26: + return "OBJECT_OPFAMILY"; + case 27: + return "OBJECT_PARAMETER_ACL"; + case 28: + return "OBJECT_POLICY"; + case 29: + return "OBJECT_PROCEDURE"; + case 30: + return "OBJECT_PUBLICATION"; + case 31: + return "OBJECT_PUBLICATION_NAMESPACE"; + case 32: + return "OBJECT_PUBLICATION_REL"; + case 33: + return "OBJECT_ROLE"; + case 34: + return "OBJECT_ROUTINE"; + case 35: + return "OBJECT_RULE"; + case 36: + return "OBJECT_SCHEMA"; + case 37: + return "OBJECT_SEQUENCE"; + case 38: + return "OBJECT_SUBSCRIPTION"; + case 39: + return "OBJECT_STATISTIC_EXT"; + case 40: + return "OBJECT_TABCONSTRAINT"; + case 41: + return "OBJECT_TABLE"; + case 42: + return "OBJECT_TABLESPACE"; + case 43: + return "OBJECT_TRANSFORM"; + case 44: + return "OBJECT_TRIGGER"; + case 45: + return "OBJECT_TSCONFIGURATION"; + case 46: + return "OBJECT_TSDICTIONARY"; + case 47: + return "OBJECT_TSPARSER"; + case 48: + return "OBJECT_TSTEMPLATE"; + case 49: + return "OBJECT_TYPE"; + case 50: + return "OBJECT_USER_MAPPING"; + case 51: + return "OBJECT_VIEW"; + default: + throw new Error("Value not recognized in enum ObjectType"); + } + }, + "DropBehavior": (value: number): string => { + switch (value) { + case 0: + return "DROP_RESTRICT"; + case 1: + return "DROP_CASCADE"; + default: + throw new Error("Value not recognized in enum DropBehavior"); + } + }, + "AlterTableType": (value: number): string => { + switch (value) { + case 0: + return "AT_AddColumn"; + case 1: + return "AT_AddColumnToView"; + case 2: + return "AT_ColumnDefault"; + case 3: + return "AT_CookedColumnDefault"; + case 4: + return "AT_DropNotNull"; + case 5: + return "AT_SetNotNull"; + case 6: + return "AT_DropExpression"; + case 7: + return "AT_CheckNotNull"; + case 8: + return "AT_SetStatistics"; + case 9: + return "AT_SetOptions"; + case 10: + return "AT_ResetOptions"; + case 11: + return "AT_SetStorage"; + case 12: + return "AT_SetCompression"; + case 13: + return "AT_DropColumn"; + case 14: + return "AT_AddIndex"; + case 15: + return "AT_ReAddIndex"; + case 16: + return "AT_AddConstraint"; + case 17: + return "AT_ReAddConstraint"; + case 18: + return "AT_ReAddDomainConstraint"; + case 19: + return "AT_AlterConstraint"; + case 20: + return "AT_ValidateConstraint"; + case 21: + return "AT_AddIndexConstraint"; + case 22: + return "AT_DropConstraint"; + case 23: + return "AT_ReAddComment"; + case 24: + return "AT_AlterColumnType"; + case 25: + return "AT_AlterColumnGenericOptions"; + case 26: + return "AT_ChangeOwner"; + case 27: + return "AT_ClusterOn"; + case 28: + return "AT_DropCluster"; + case 29: + return "AT_SetLogged"; + case 30: + return "AT_SetUnLogged"; + case 31: + return "AT_DropOids"; + case 32: + return "AT_SetAccessMethod"; + case 33: + return "AT_SetTableSpace"; + case 34: + return "AT_SetRelOptions"; + case 35: + return "AT_ResetRelOptions"; + case 36: + return "AT_ReplaceRelOptions"; + case 37: + return "AT_EnableTrig"; + case 38: + return "AT_EnableAlwaysTrig"; + case 39: + return "AT_EnableReplicaTrig"; + case 40: + return "AT_DisableTrig"; + case 41: + return "AT_EnableTrigAll"; + case 42: + return "AT_DisableTrigAll"; + case 43: + return "AT_EnableTrigUser"; + case 44: + return "AT_DisableTrigUser"; + case 45: + return "AT_EnableRule"; + case 46: + return "AT_EnableAlwaysRule"; + case 47: + return "AT_EnableReplicaRule"; + case 48: + return "AT_DisableRule"; + case 49: + return "AT_AddInherit"; + case 50: + return "AT_DropInherit"; + case 51: + return "AT_AddOf"; + case 52: + return "AT_DropOf"; + case 53: + return "AT_ReplicaIdentity"; + case 54: + return "AT_EnableRowSecurity"; + case 55: + return "AT_DisableRowSecurity"; + case 56: + return "AT_ForceRowSecurity"; + case 57: + return "AT_NoForceRowSecurity"; + case 58: + return "AT_GenericOptions"; + case 59: + return "AT_AttachPartition"; + case 60: + return "AT_DetachPartition"; + case 61: + return "AT_DetachPartitionFinalize"; + case 62: + return "AT_AddIdentity"; + case 63: + return "AT_SetIdentity"; + case 64: + return "AT_DropIdentity"; + case 65: + return "AT_ReAddStatistics"; + default: + throw new Error("Value not recognized in enum AlterTableType"); + } + }, + "GrantTargetType": (value: number): string => { + switch (value) { + case 0: + return "ACL_TARGET_OBJECT"; + case 1: + return "ACL_TARGET_ALL_IN_SCHEMA"; + case 2: + return "ACL_TARGET_DEFAULTS"; + default: + throw new Error("Value not recognized in enum GrantTargetType"); + } + }, + "VariableSetKind": (value: number): string => { + switch (value) { + case 0: + return "VAR_SET_VALUE"; + case 1: + return "VAR_SET_DEFAULT"; + case 2: + return "VAR_SET_CURRENT"; + case 3: + return "VAR_SET_MULTI"; + case 4: + return "VAR_RESET"; + case 5: + return "VAR_RESET_ALL"; + default: + throw new Error("Value not recognized in enum VariableSetKind"); + } + }, + "ConstrType": (value: number): string => { + switch (value) { + case 0: + return "CONSTR_NULL"; + case 1: + return "CONSTR_NOTNULL"; + case 2: + return "CONSTR_DEFAULT"; + case 3: + return "CONSTR_IDENTITY"; + case 4: + return "CONSTR_GENERATED"; + case 5: + return "CONSTR_CHECK"; + case 6: + return "CONSTR_PRIMARY"; + case 7: + return "CONSTR_UNIQUE"; + case 8: + return "CONSTR_EXCLUSION"; + case 9: + return "CONSTR_FOREIGN"; + case 10: + return "CONSTR_ATTR_DEFERRABLE"; + case 11: + return "CONSTR_ATTR_NOT_DEFERRABLE"; + case 12: + return "CONSTR_ATTR_DEFERRED"; + case 13: + return "CONSTR_ATTR_IMMEDIATE"; + default: + throw new Error("Value not recognized in enum ConstrType"); + } + }, + "ImportForeignSchemaType": (value: number): string => { + switch (value) { + case 0: + return "FDW_IMPORT_SCHEMA_ALL"; + case 1: + return "FDW_IMPORT_SCHEMA_LIMIT_TO"; + case 2: + return "FDW_IMPORT_SCHEMA_EXCEPT"; + default: + throw new Error("Value not recognized in enum ImportForeignSchemaType"); + } + }, + "RoleStmtType": (value: number): string => { + switch (value) { + case 0: + return "ROLESTMT_ROLE"; + case 1: + return "ROLESTMT_USER"; + case 2: + return "ROLESTMT_GROUP"; + default: + throw new Error("Value not recognized in enum RoleStmtType"); + } + }, + "FetchDirection": (value: number): string => { + switch (value) { + case 0: + return "FETCH_FORWARD"; + case 1: + return "FETCH_BACKWARD"; + case 2: + return "FETCH_ABSOLUTE"; + case 3: + return "FETCH_RELATIVE"; + default: + throw new Error("Value not recognized in enum FetchDirection"); + } + }, + "FunctionParameterMode": (value: number): string => { + switch (value) { + case 0: + return "FUNC_PARAM_IN"; + case 1: + return "FUNC_PARAM_OUT"; + case 2: + return "FUNC_PARAM_INOUT"; + case 3: + return "FUNC_PARAM_VARIADIC"; + case 4: + return "FUNC_PARAM_TABLE"; + case 5: + return "FUNC_PARAM_DEFAULT"; + default: + throw new Error("Value not recognized in enum FunctionParameterMode"); + } + }, + "TransactionStmtKind": (value: number): string => { + switch (value) { + case 0: + return "TRANS_STMT_BEGIN"; + case 1: + return "TRANS_STMT_START"; + case 2: + return "TRANS_STMT_COMMIT"; + case 3: + return "TRANS_STMT_ROLLBACK"; + case 4: + return "TRANS_STMT_SAVEPOINT"; + case 5: + return "TRANS_STMT_RELEASE"; + case 6: + return "TRANS_STMT_ROLLBACK_TO"; + case 7: + return "TRANS_STMT_PREPARE"; + case 8: + return "TRANS_STMT_COMMIT_PREPARED"; + case 9: + return "TRANS_STMT_ROLLBACK_PREPARED"; + default: + throw new Error("Value not recognized in enum TransactionStmtKind"); + } + }, + "ViewCheckOption": (value: number): string => { + switch (value) { + case 0: + return "NO_CHECK_OPTION"; + case 1: + return "LOCAL_CHECK_OPTION"; + case 2: + return "CASCADED_CHECK_OPTION"; + default: + throw new Error("Value not recognized in enum ViewCheckOption"); + } + }, + "DiscardMode": (value: number): string => { + switch (value) { + case 0: + return "DISCARD_ALL"; + case 1: + return "DISCARD_PLANS"; + case 2: + return "DISCARD_SEQUENCES"; + case 3: + return "DISCARD_TEMP"; + default: + throw new Error("Value not recognized in enum DiscardMode"); + } + }, + "ReindexObjectType": (value: number): string => { + switch (value) { + case 0: + return "REINDEX_OBJECT_INDEX"; + case 1: + return "REINDEX_OBJECT_TABLE"; + case 2: + return "REINDEX_OBJECT_SCHEMA"; + case 3: + return "REINDEX_OBJECT_SYSTEM"; + case 4: + return "REINDEX_OBJECT_DATABASE"; + default: + throw new Error("Value not recognized in enum ReindexObjectType"); + } + }, + "AlterTSConfigType": (value: number): string => { + switch (value) { + case 0: + return "ALTER_TSCONFIG_ADD_MAPPING"; + case 1: + return "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN"; + case 2: + return "ALTER_TSCONFIG_REPLACE_DICT"; + case 3: + return "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN"; + case 4: + return "ALTER_TSCONFIG_DROP_MAPPING"; + default: + throw new Error("Value not recognized in enum AlterTSConfigType"); + } + }, + "PublicationObjSpecType": (value: number): string => { + switch (value) { + case 0: + return "PUBLICATIONOBJ_TABLE"; + case 1: + return "PUBLICATIONOBJ_TABLES_IN_SCHEMA"; + case 2: + return "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA"; + case 3: + return "PUBLICATIONOBJ_CONTINUATION"; + default: + throw new Error("Value not recognized in enum PublicationObjSpecType"); + } + }, + "AlterPublicationAction": (value: number): string => { + switch (value) { + case 0: + return "AP_AddObjects"; + case 1: + return "AP_DropObjects"; + case 2: + return "AP_SetObjects"; + default: + throw new Error("Value not recognized in enum AlterPublicationAction"); + } + }, + "AlterSubscriptionType": (value: number): string => { + switch (value) { + case 0: + return "ALTER_SUBSCRIPTION_OPTIONS"; + case 1: + return "ALTER_SUBSCRIPTION_CONNECTION"; + case 2: + return "ALTER_SUBSCRIPTION_SET_PUBLICATION"; + case 3: + return "ALTER_SUBSCRIPTION_ADD_PUBLICATION"; + case 4: + return "ALTER_SUBSCRIPTION_DROP_PUBLICATION"; + case 5: + return "ALTER_SUBSCRIPTION_REFRESH"; + case 6: + return "ALTER_SUBSCRIPTION_ENABLED"; + case 7: + return "ALTER_SUBSCRIPTION_SKIP"; + default: + throw new Error("Value not recognized in enum AlterSubscriptionType"); + } + }, + "OnCommitAction": (value: number): string => { + switch (value) { + case 0: + return "ONCOMMIT_NOOP"; + case 1: + return "ONCOMMIT_PRESERVE_ROWS"; + case 2: + return "ONCOMMIT_DELETE_ROWS"; + case 3: + return "ONCOMMIT_DROP"; + default: + throw new Error("Value not recognized in enum OnCommitAction"); + } + }, + "ParamKind": (value: number): string => { + switch (value) { + case 0: + return "PARAM_EXTERN"; + case 1: + return "PARAM_EXEC"; + case 2: + return "PARAM_SUBLINK"; + case 3: + return "PARAM_MULTIEXPR"; + default: + throw new Error("Value not recognized in enum ParamKind"); + } + }, + "CoercionContext": (value: number): string => { + switch (value) { + case 0: + return "COERCION_IMPLICIT"; + case 1: + return "COERCION_ASSIGNMENT"; + case 2: + return "COERCION_PLPGSQL"; + case 3: + return "COERCION_EXPLICIT"; + default: + throw new Error("Value not recognized in enum CoercionContext"); + } + }, + "CoercionForm": (value: number): string => { + switch (value) { + case 0: + return "COERCE_EXPLICIT_CALL"; + case 1: + return "COERCE_EXPLICIT_CAST"; + case 2: + return "COERCE_IMPLICIT_CAST"; + case 3: + return "COERCE_SQL_SYNTAX"; + default: + throw new Error("Value not recognized in enum CoercionForm"); + } + }, + "BoolExprType": (value: number): string => { + switch (value) { + case 0: + return "AND_EXPR"; + case 1: + return "OR_EXPR"; + case 2: + return "NOT_EXPR"; + default: + throw new Error("Value not recognized in enum BoolExprType"); + } + }, + "SubLinkType": (value: number): string => { + switch (value) { + case 0: + return "EXISTS_SUBLINK"; + case 1: + return "ALL_SUBLINK"; + case 2: + return "ANY_SUBLINK"; + case 3: + return "ROWCOMPARE_SUBLINK"; + case 4: + return "EXPR_SUBLINK"; + case 5: + return "MULTIEXPR_SUBLINK"; + case 6: + return "ARRAY_SUBLINK"; + case 7: + return "CTE_SUBLINK"; + default: + throw new Error("Value not recognized in enum SubLinkType"); + } + }, + "RowCompareType": (value: number): string => { + switch (value) { + case 0: + return "ROWCOMPARE_LT"; + case 1: + return "ROWCOMPARE_LE"; + case 2: + return "ROWCOMPARE_EQ"; + case 3: + return "ROWCOMPARE_GE"; + case 4: + return "ROWCOMPARE_GT"; + case 5: + return "ROWCOMPARE_NE"; + default: + throw new Error("Value not recognized in enum RowCompareType"); + } + }, + "MinMaxOp": (value: number): string => { + switch (value) { + case 0: + return "IS_GREATEST"; + case 1: + return "IS_LEAST"; + default: + throw new Error("Value not recognized in enum MinMaxOp"); + } + }, + "SQLValueFunctionOp": (value: number): string => { + switch (value) { + case 0: + return "SVFOP_CURRENT_DATE"; + case 1: + return "SVFOP_CURRENT_TIME"; + case 2: + return "SVFOP_CURRENT_TIME_N"; + case 3: + return "SVFOP_CURRENT_TIMESTAMP"; + case 4: + return "SVFOP_CURRENT_TIMESTAMP_N"; + case 5: + return "SVFOP_LOCALTIME"; + case 6: + return "SVFOP_LOCALTIME_N"; + case 7: + return "SVFOP_LOCALTIMESTAMP"; + case 8: + return "SVFOP_LOCALTIMESTAMP_N"; + case 9: + return "SVFOP_CURRENT_ROLE"; + case 10: + return "SVFOP_CURRENT_USER"; + case 11: + return "SVFOP_USER"; + case 12: + return "SVFOP_SESSION_USER"; + case 13: + return "SVFOP_CURRENT_CATALOG"; + case 14: + return "SVFOP_CURRENT_SCHEMA"; + default: + throw new Error("Value not recognized in enum SQLValueFunctionOp"); + } + }, + "XmlExprOp": (value: number): string => { + switch (value) { + case 0: + return "IS_XMLCONCAT"; + case 1: + return "IS_XMLELEMENT"; + case 2: + return "IS_XMLFOREST"; + case 3: + return "IS_XMLPARSE"; + case 4: + return "IS_XMLPI"; + case 5: + return "IS_XMLROOT"; + case 6: + return "IS_XMLSERIALIZE"; + case 7: + return "IS_DOCUMENT"; + default: + throw new Error("Value not recognized in enum XmlExprOp"); + } + }, + "XmlOptionType": (value: number): string => { + switch (value) { + case 0: + return "XMLOPTION_DOCUMENT"; + case 1: + return "XMLOPTION_CONTENT"; + default: + throw new Error("Value not recognized in enum XmlOptionType"); + } + }, + "JsonEncoding": (value: number): string => { + switch (value) { + case 0: + return "JS_ENC_DEFAULT"; + case 1: + return "JS_ENC_UTF8"; + case 2: + return "JS_ENC_UTF16"; + case 3: + return "JS_ENC_UTF32"; + default: + throw new Error("Value not recognized in enum JsonEncoding"); + } + }, + "JsonFormatType": (value: number): string => { + switch (value) { + case 0: + return "JS_FORMAT_DEFAULT"; + case 1: + return "JS_FORMAT_JSON"; + case 2: + return "JS_FORMAT_JSONB"; + default: + throw new Error("Value not recognized in enum JsonFormatType"); + } + }, + "JsonConstructorType": (value: number): string => { + switch (value) { + case 0: + return "JSCTOR_JSON_OBJECT"; + case 1: + return "JSCTOR_JSON_ARRAY"; + case 2: + return "JSCTOR_JSON_OBJECTAGG"; + case 3: + return "JSCTOR_JSON_ARRAYAGG"; + default: + throw new Error("Value not recognized in enum JsonConstructorType"); + } + }, + "JsonValueType": (value: number): string => { + switch (value) { + case 0: + return "JS_TYPE_ANY"; + case 1: + return "JS_TYPE_OBJECT"; + case 2: + return "JS_TYPE_ARRAY"; + case 3: + return "JS_TYPE_SCALAR"; + default: + throw new Error("Value not recognized in enum JsonValueType"); + } + }, + "NullTestType": (value: number): string => { + switch (value) { + case 0: + return "IS_NULL"; + case 1: + return "IS_NOT_NULL"; + default: + throw new Error("Value not recognized in enum NullTestType"); + } + }, + "BoolTestType": (value: number): string => { + switch (value) { + case 0: + return "IS_TRUE"; + case 1: + return "IS_NOT_TRUE"; + case 2: + return "IS_FALSE"; + case 3: + return "IS_NOT_FALSE"; + case 4: + return "IS_UNKNOWN"; + case 5: + return "IS_NOT_UNKNOWN"; + default: + throw new Error("Value not recognized in enum BoolTestType"); + } + }, + "CmdType": (value: number): string => { + switch (value) { + case 0: + return "CMD_UNKNOWN"; + case 1: + return "CMD_SELECT"; + case 2: + return "CMD_UPDATE"; + case 3: + return "CMD_INSERT"; + case 4: + return "CMD_DELETE"; + case 5: + return "CMD_MERGE"; + case 6: + return "CMD_UTILITY"; + case 7: + return "CMD_NOTHING"; + default: + throw new Error("Value not recognized in enum CmdType"); + } + }, + "JoinType": (value: number): string => { + switch (value) { + case 0: + return "JOIN_INNER"; + case 1: + return "JOIN_LEFT"; + case 2: + return "JOIN_FULL"; + case 3: + return "JOIN_RIGHT"; + case 4: + return "JOIN_SEMI"; + case 5: + return "JOIN_ANTI"; + case 6: + return "JOIN_RIGHT_ANTI"; + case 7: + return "JOIN_UNIQUE_OUTER"; + case 8: + return "JOIN_UNIQUE_INNER"; + default: + throw new Error("Value not recognized in enum JoinType"); + } + }, + "AggStrategy": (value: number): string => { + switch (value) { + case 0: + return "AGG_PLAIN"; + case 1: + return "AGG_SORTED"; + case 2: + return "AGG_HASHED"; + case 3: + return "AGG_MIXED"; + default: + throw new Error("Value not recognized in enum AggStrategy"); + } + }, + "AggSplit": (value: number): string => { + switch (value) { + case 0: + return "AGGSPLIT_SIMPLE"; + case 1: + return "AGGSPLIT_INITIAL_SERIAL"; + case 2: + return "AGGSPLIT_FINAL_DESERIAL"; + default: + throw new Error("Value not recognized in enum AggSplit"); + } + }, + "SetOpCmd": (value: number): string => { + switch (value) { + case 0: + return "SETOPCMD_INTERSECT"; + case 1: + return "SETOPCMD_INTERSECT_ALL"; + case 2: + return "SETOPCMD_EXCEPT"; + case 3: + return "SETOPCMD_EXCEPT_ALL"; + default: + throw new Error("Value not recognized in enum SetOpCmd"); + } + }, + "SetOpStrategy": (value: number): string => { + switch (value) { + case 0: + return "SETOP_SORTED"; + case 1: + return "SETOP_HASHED"; + default: + throw new Error("Value not recognized in enum SetOpStrategy"); + } + }, + "OnConflictAction": (value: number): string => { + switch (value) { + case 0: + return "ONCONFLICT_NONE"; + case 1: + return "ONCONFLICT_NOTHING"; + case 2: + return "ONCONFLICT_UPDATE"; + default: + throw new Error("Value not recognized in enum OnConflictAction"); + } + }, + "LimitOption": (value: number): string => { + switch (value) { + case 0: + return "LIMIT_OPTION_DEFAULT"; + case 1: + return "LIMIT_OPTION_COUNT"; + case 2: + return "LIMIT_OPTION_WITH_TIES"; + default: + throw new Error("Value not recognized in enum LimitOption"); + } + }, + "LockClauseStrength": (value: number): string => { + switch (value) { + case 0: + return "LCS_NONE"; + case 1: + return "LCS_FORKEYSHARE"; + case 2: + return "LCS_FORSHARE"; + case 3: + return "LCS_FORNOKEYUPDATE"; + case 4: + return "LCS_FORUPDATE"; + default: + throw new Error("Value not recognized in enum LockClauseStrength"); + } + }, + "LockWaitPolicy": (value: number): string => { + switch (value) { + case 0: + return "LockWaitBlock"; + case 1: + return "LockWaitSkip"; + case 2: + return "LockWaitError"; + default: + throw new Error("Value not recognized in enum LockWaitPolicy"); + } + }, + "LockTupleMode": (value: number): string => { + switch (value) { + case 0: + return "LockTupleKeyShare"; + case 1: + return "LockTupleShare"; + case 2: + return "LockTupleNoKeyExclusive"; + case 3: + return "LockTupleExclusive"; + default: + throw new Error("Value not recognized in enum LockTupleMode"); + } + }, + "KeywordKind": (value: number): string => { + switch (value) { + case 0: + return "NO_KEYWORD"; + case 1: + return "UNRESERVED_KEYWORD"; + case 2: + return "COL_NAME_KEYWORD"; + case 3: + return "TYPE_FUNC_NAME_KEYWORD"; + case 4: + return "RESERVED_KEYWORD"; + default: + throw new Error("Value not recognized in enum KeywordKind"); + } + }, + "Token": (value: number): string => { + switch (value) { + case 0: + return "NUL"; + case 36: + return "ASCII_36"; + case 37: + return "ASCII_37"; + case 40: + return "ASCII_40"; + case 41: + return "ASCII_41"; + case 42: + return "ASCII_42"; + case 43: + return "ASCII_43"; + case 44: + return "ASCII_44"; + case 45: + return "ASCII_45"; + case 46: + return "ASCII_46"; + case 47: + return "ASCII_47"; + case 58: + return "ASCII_58"; + case 59: + return "ASCII_59"; + case 60: + return "ASCII_60"; + case 61: + return "ASCII_61"; + case 62: + return "ASCII_62"; + case 63: + return "ASCII_63"; + case 91: + return "ASCII_91"; + case 92: + return "ASCII_92"; + case 93: + return "ASCII_93"; + case 94: + return "ASCII_94"; + case 258: + return "IDENT"; + case 259: + return "UIDENT"; + case 260: + return "FCONST"; + case 261: + return "SCONST"; + case 262: + return "USCONST"; + case 263: + return "BCONST"; + case 264: + return "XCONST"; + case 265: + return "Op"; + case 266: + return "ICONST"; + case 267: + return "PARAM"; + case 268: + return "TYPECAST"; + case 269: + return "DOT_DOT"; + case 270: + return "COLON_EQUALS"; + case 271: + return "EQUALS_GREATER"; + case 272: + return "LESS_EQUALS"; + case 273: + return "GREATER_EQUALS"; + case 274: + return "NOT_EQUALS"; + case 275: + return "SQL_COMMENT"; + case 276: + return "C_COMMENT"; + case 277: + return "ABORT_P"; + case 278: + return "ABSENT"; + case 279: + return "ABSOLUTE_P"; + case 280: + return "ACCESS"; + case 281: + return "ACTION"; + case 282: + return "ADD_P"; + case 283: + return "ADMIN"; + case 284: + return "AFTER"; + case 285: + return "AGGREGATE"; + case 286: + return "ALL"; + case 287: + return "ALSO"; + case 288: + return "ALTER"; + case 289: + return "ALWAYS"; + case 290: + return "ANALYSE"; + case 291: + return "ANALYZE"; + case 292: + return "AND"; + case 293: + return "ANY"; + case 294: + return "ARRAY"; + case 295: + return "AS"; + case 296: + return "ASC"; + case 297: + return "ASENSITIVE"; + case 298: + return "ASSERTION"; + case 299: + return "ASSIGNMENT"; + case 300: + return "ASYMMETRIC"; + case 301: + return "ATOMIC"; + case 302: + return "AT"; + case 303: + return "ATTACH"; + case 304: + return "ATTRIBUTE"; + case 305: + return "AUTHORIZATION"; + case 306: + return "BACKWARD"; + case 307: + return "BEFORE"; + case 308: + return "BEGIN_P"; + case 309: + return "BETWEEN"; + case 310: + return "BIGINT"; + case 311: + return "BINARY"; + case 312: + return "BIT"; + case 313: + return "BOOLEAN_P"; + case 314: + return "BOTH"; + case 315: + return "BREADTH"; + case 316: + return "BY"; + case 317: + return "CACHE"; + case 318: + return "CALL"; + case 319: + return "CALLED"; + case 320: + return "CASCADE"; + case 321: + return "CASCADED"; + case 322: + return "CASE"; + case 323: + return "CAST"; + case 324: + return "CATALOG_P"; + case 325: + return "CHAIN"; + case 326: + return "CHAR_P"; + case 327: + return "CHARACTER"; + case 328: + return "CHARACTERISTICS"; + case 329: + return "CHECK"; + case 330: + return "CHECKPOINT"; + case 331: + return "CLASS"; + case 332: + return "CLOSE"; + case 333: + return "CLUSTER"; + case 334: + return "COALESCE"; + case 335: + return "COLLATE"; + case 336: + return "COLLATION"; + case 337: + return "COLUMN"; + case 338: + return "COLUMNS"; + case 339: + return "COMMENT"; + case 340: + return "COMMENTS"; + case 341: + return "COMMIT"; + case 342: + return "COMMITTED"; + case 343: + return "COMPRESSION"; + case 344: + return "CONCURRENTLY"; + case 345: + return "CONFIGURATION"; + case 346: + return "CONFLICT"; + case 347: + return "CONNECTION"; + case 348: + return "CONSTRAINT"; + case 349: + return "CONSTRAINTS"; + case 350: + return "CONTENT_P"; + case 351: + return "CONTINUE_P"; + case 352: + return "CONVERSION_P"; + case 353: + return "COPY"; + case 354: + return "COST"; + case 355: + return "CREATE"; + case 356: + return "CROSS"; + case 357: + return "CSV"; + case 358: + return "CUBE"; + case 359: + return "CURRENT_P"; + case 360: + return "CURRENT_CATALOG"; + case 361: + return "CURRENT_DATE"; + case 362: + return "CURRENT_ROLE"; + case 363: + return "CURRENT_SCHEMA"; + case 364: + return "CURRENT_TIME"; + case 365: + return "CURRENT_TIMESTAMP"; + case 366: + return "CURRENT_USER"; + case 367: + return "CURSOR"; + case 368: + return "CYCLE"; + case 369: + return "DATA_P"; + case 370: + return "DATABASE"; + case 371: + return "DAY_P"; + case 372: + return "DEALLOCATE"; + case 373: + return "DEC"; + case 374: + return "DECIMAL_P"; + case 375: + return "DECLARE"; + case 376: + return "DEFAULT"; + case 377: + return "DEFAULTS"; + case 378: + return "DEFERRABLE"; + case 379: + return "DEFERRED"; + case 380: + return "DEFINER"; + case 381: + return "DELETE_P"; + case 382: + return "DELIMITER"; + case 383: + return "DELIMITERS"; + case 384: + return "DEPENDS"; + case 385: + return "DEPTH"; + case 386: + return "DESC"; + case 387: + return "DETACH"; + case 388: + return "DICTIONARY"; + case 389: + return "DISABLE_P"; + case 390: + return "DISCARD"; + case 391: + return "DISTINCT"; + case 392: + return "DO"; + case 393: + return "DOCUMENT_P"; + case 394: + return "DOMAIN_P"; + case 395: + return "DOUBLE_P"; + case 396: + return "DROP"; + case 397: + return "EACH"; + case 398: + return "ELSE"; + case 399: + return "ENABLE_P"; + case 400: + return "ENCODING"; + case 401: + return "ENCRYPTED"; + case 402: + return "END_P"; + case 403: + return "ENUM_P"; + case 404: + return "ESCAPE"; + case 405: + return "EVENT"; + case 406: + return "EXCEPT"; + case 407: + return "EXCLUDE"; + case 408: + return "EXCLUDING"; + case 409: + return "EXCLUSIVE"; + case 410: + return "EXECUTE"; + case 411: + return "EXISTS"; + case 412: + return "EXPLAIN"; + case 413: + return "EXPRESSION"; + case 414: + return "EXTENSION"; + case 415: + return "EXTERNAL"; + case 416: + return "EXTRACT"; + case 417: + return "FALSE_P"; + case 418: + return "FAMILY"; + case 419: + return "FETCH"; + case 420: + return "FILTER"; + case 421: + return "FINALIZE"; + case 422: + return "FIRST_P"; + case 423: + return "FLOAT_P"; + case 424: + return "FOLLOWING"; + case 425: + return "FOR"; + case 426: + return "FORCE"; + case 427: + return "FOREIGN"; + case 428: + return "FORMAT"; + case 429: + return "FORWARD"; + case 430: + return "FREEZE"; + case 431: + return "FROM"; + case 432: + return "FULL"; + case 433: + return "FUNCTION"; + case 434: + return "FUNCTIONS"; + case 435: + return "GENERATED"; + case 436: + return "GLOBAL"; + case 437: + return "GRANT"; + case 438: + return "GRANTED"; + case 439: + return "GREATEST"; + case 440: + return "GROUP_P"; + case 441: + return "GROUPING"; + case 442: + return "GROUPS"; + case 443: + return "HANDLER"; + case 444: + return "HAVING"; + case 445: + return "HEADER_P"; + case 446: + return "HOLD"; + case 447: + return "HOUR_P"; + case 448: + return "IDENTITY_P"; + case 449: + return "IF_P"; + case 450: + return "ILIKE"; + case 451: + return "IMMEDIATE"; + case 452: + return "IMMUTABLE"; + case 453: + return "IMPLICIT_P"; + case 454: + return "IMPORT_P"; + case 455: + return "IN_P"; + case 456: + return "INCLUDE"; + case 457: + return "INCLUDING"; + case 458: + return "INCREMENT"; + case 459: + return "INDENT"; + case 460: + return "INDEX"; + case 461: + return "INDEXES"; + case 462: + return "INHERIT"; + case 463: + return "INHERITS"; + case 464: + return "INITIALLY"; + case 465: + return "INLINE_P"; + case 466: + return "INNER_P"; + case 467: + return "INOUT"; + case 468: + return "INPUT_P"; + case 469: + return "INSENSITIVE"; + case 470: + return "INSERT"; + case 471: + return "INSTEAD"; + case 472: + return "INT_P"; + case 473: + return "INTEGER"; + case 474: + return "INTERSECT"; + case 475: + return "INTERVAL"; + case 476: + return "INTO"; + case 477: + return "INVOKER"; + case 478: + return "IS"; + case 479: + return "ISNULL"; + case 480: + return "ISOLATION"; + case 481: + return "JOIN"; + case 482: + return "JSON"; + case 483: + return "JSON_ARRAY"; + case 484: + return "JSON_ARRAYAGG"; + case 485: + return "JSON_OBJECT"; + case 486: + return "JSON_OBJECTAGG"; + case 487: + return "KEY"; + case 488: + return "KEYS"; + case 489: + return "LABEL"; + case 490: + return "LANGUAGE"; + case 491: + return "LARGE_P"; + case 492: + return "LAST_P"; + case 493: + return "LATERAL_P"; + case 494: + return "LEADING"; + case 495: + return "LEAKPROOF"; + case 496: + return "LEAST"; + case 497: + return "LEFT"; + case 498: + return "LEVEL"; + case 499: + return "LIKE"; + case 500: + return "LIMIT"; + case 501: + return "LISTEN"; + case 502: + return "LOAD"; + case 503: + return "LOCAL"; + case 504: + return "LOCALTIME"; + case 505: + return "LOCALTIMESTAMP"; + case 506: + return "LOCATION"; + case 507: + return "LOCK_P"; + case 508: + return "LOCKED"; + case 509: + return "LOGGED"; + case 510: + return "MAPPING"; + case 511: + return "MATCH"; + case 512: + return "MATCHED"; + case 513: + return "MATERIALIZED"; + case 514: + return "MAXVALUE"; + case 515: + return "MERGE"; + case 516: + return "METHOD"; + case 517: + return "MINUTE_P"; + case 518: + return "MINVALUE"; + case 519: + return "MODE"; + case 520: + return "MONTH_P"; + case 521: + return "MOVE"; + case 522: + return "NAME_P"; + case 523: + return "NAMES"; + case 524: + return "NATIONAL"; + case 525: + return "NATURAL"; + case 526: + return "NCHAR"; + case 527: + return "NEW"; + case 528: + return "NEXT"; + case 529: + return "NFC"; + case 530: + return "NFD"; + case 531: + return "NFKC"; + case 532: + return "NFKD"; + case 533: + return "NO"; + case 534: + return "NONE"; + case 535: + return "NORMALIZE"; + case 536: + return "NORMALIZED"; + case 537: + return "NOT"; + case 538: + return "NOTHING"; + case 539: + return "NOTIFY"; + case 540: + return "NOTNULL"; + case 541: + return "NOWAIT"; + case 542: + return "NULL_P"; + case 543: + return "NULLIF"; + case 544: + return "NULLS_P"; + case 545: + return "NUMERIC"; + case 546: + return "OBJECT_P"; + case 547: + return "OF"; + case 548: + return "OFF"; + case 549: + return "OFFSET"; + case 550: + return "OIDS"; + case 551: + return "OLD"; + case 552: + return "ON"; + case 553: + return "ONLY"; + case 554: + return "OPERATOR"; + case 555: + return "OPTION"; + case 556: + return "OPTIONS"; + case 557: + return "OR"; + case 558: + return "ORDER"; + case 559: + return "ORDINALITY"; + case 560: + return "OTHERS"; + case 561: + return "OUT_P"; + case 562: + return "OUTER_P"; + case 563: + return "OVER"; + case 564: + return "OVERLAPS"; + case 565: + return "OVERLAY"; + case 566: + return "OVERRIDING"; + case 567: + return "OWNED"; + case 568: + return "OWNER"; + case 569: + return "PARALLEL"; + case 570: + return "PARAMETER"; + case 571: + return "PARSER"; + case 572: + return "PARTIAL"; + case 573: + return "PARTITION"; + case 574: + return "PASSING"; + case 575: + return "PASSWORD"; + case 576: + return "PLACING"; + case 577: + return "PLANS"; + case 578: + return "POLICY"; + case 579: + return "POSITION"; + case 580: + return "PRECEDING"; + case 581: + return "PRECISION"; + case 582: + return "PRESERVE"; + case 583: + return "PREPARE"; + case 584: + return "PREPARED"; + case 585: + return "PRIMARY"; + case 586: + return "PRIOR"; + case 587: + return "PRIVILEGES"; + case 588: + return "PROCEDURAL"; + case 589: + return "PROCEDURE"; + case 590: + return "PROCEDURES"; + case 591: + return "PROGRAM"; + case 592: + return "PUBLICATION"; + case 593: + return "QUOTE"; + case 594: + return "RANGE"; + case 595: + return "READ"; + case 596: + return "REAL"; + case 597: + return "REASSIGN"; + case 598: + return "RECHECK"; + case 599: + return "RECURSIVE"; + case 600: + return "REF_P"; + case 601: + return "REFERENCES"; + case 602: + return "REFERENCING"; + case 603: + return "REFRESH"; + case 604: + return "REINDEX"; + case 605: + return "RELATIVE_P"; + case 606: + return "RELEASE"; + case 607: + return "RENAME"; + case 608: + return "REPEATABLE"; + case 609: + return "REPLACE"; + case 610: + return "REPLICA"; + case 611: + return "RESET"; + case 612: + return "RESTART"; + case 613: + return "RESTRICT"; + case 614: + return "RETURN"; + case 615: + return "RETURNING"; + case 616: + return "RETURNS"; + case 617: + return "REVOKE"; + case 618: + return "RIGHT"; + case 619: + return "ROLE"; + case 620: + return "ROLLBACK"; + case 621: + return "ROLLUP"; + case 622: + return "ROUTINE"; + case 623: + return "ROUTINES"; + case 624: + return "ROW"; + case 625: + return "ROWS"; + case 626: + return "RULE"; + case 627: + return "SAVEPOINT"; + case 628: + return "SCALAR"; + case 629: + return "SCHEMA"; + case 630: + return "SCHEMAS"; + case 631: + return "SCROLL"; + case 632: + return "SEARCH"; + case 633: + return "SECOND_P"; + case 634: + return "SECURITY"; + case 635: + return "SELECT"; + case 636: + return "SEQUENCE"; + case 637: + return "SEQUENCES"; + case 638: + return "SERIALIZABLE"; + case 639: + return "SERVER"; + case 640: + return "SESSION"; + case 641: + return "SESSION_USER"; + case 642: + return "SET"; + case 643: + return "SETS"; + case 644: + return "SETOF"; + case 645: + return "SHARE"; + case 646: + return "SHOW"; + case 647: + return "SIMILAR"; + case 648: + return "SIMPLE"; + case 649: + return "SKIP"; + case 650: + return "SMALLINT"; + case 651: + return "SNAPSHOT"; + case 652: + return "SOME"; + case 653: + return "SQL_P"; + case 654: + return "STABLE"; + case 655: + return "STANDALONE_P"; + case 656: + return "START"; + case 657: + return "STATEMENT"; + case 658: + return "STATISTICS"; + case 659: + return "STDIN"; + case 660: + return "STDOUT"; + case 661: + return "STORAGE"; + case 662: + return "STORED"; + case 663: + return "STRICT_P"; + case 664: + return "STRIP_P"; + case 665: + return "SUBSCRIPTION"; + case 666: + return "SUBSTRING"; + case 667: + return "SUPPORT"; + case 668: + return "SYMMETRIC"; + case 669: + return "SYSID"; + case 670: + return "SYSTEM_P"; + case 671: + return "SYSTEM_USER"; + case 672: + return "TABLE"; + case 673: + return "TABLES"; + case 674: + return "TABLESAMPLE"; + case 675: + return "TABLESPACE"; + case 676: + return "TEMP"; + case 677: + return "TEMPLATE"; + case 678: + return "TEMPORARY"; + case 679: + return "TEXT_P"; + case 680: + return "THEN"; + case 681: + return "TIES"; + case 682: + return "TIME"; + case 683: + return "TIMESTAMP"; + case 684: + return "TO"; + case 685: + return "TRAILING"; + case 686: + return "TRANSACTION"; + case 687: + return "TRANSFORM"; + case 688: + return "TREAT"; + case 689: + return "TRIGGER"; + case 690: + return "TRIM"; + case 691: + return "TRUE_P"; + case 692: + return "TRUNCATE"; + case 693: + return "TRUSTED"; + case 694: + return "TYPE_P"; + case 695: + return "TYPES_P"; + case 696: + return "UESCAPE"; + case 697: + return "UNBOUNDED"; + case 698: + return "UNCOMMITTED"; + case 699: + return "UNENCRYPTED"; + case 700: + return "UNION"; + case 701: + return "UNIQUE"; + case 702: + return "UNKNOWN"; + case 703: + return "UNLISTEN"; + case 704: + return "UNLOGGED"; + case 705: + return "UNTIL"; + case 706: + return "UPDATE"; + case 707: + return "USER"; + case 708: + return "USING"; + case 709: + return "VACUUM"; + case 710: + return "VALID"; + case 711: + return "VALIDATE"; + case 712: + return "VALIDATOR"; + case 713: + return "VALUE_P"; + case 714: + return "VALUES"; + case 715: + return "VARCHAR"; + case 716: + return "VARIADIC"; + case 717: + return "VARYING"; + case 718: + return "VERBOSE"; + case 719: + return "VERSION_P"; + case 720: + return "VIEW"; + case 721: + return "VIEWS"; + case 722: + return "VOLATILE"; + case 723: + return "WHEN"; + case 724: + return "WHERE"; + case 725: + return "WHITESPACE_P"; + case 726: + return "WINDOW"; + case 727: + return "WITH"; + case 728: + return "WITHIN"; + case 729: + return "WITHOUT"; + case 730: + return "WORK"; + case 731: + return "WRAPPER"; + case 732: + return "WRITE"; + case 733: + return "XML_P"; + case 734: + return "XMLATTRIBUTES"; + case 735: + return "XMLCONCAT"; + case 736: + return "XMLELEMENT"; + case 737: + return "XMLEXISTS"; + case 738: + return "XMLFOREST"; + case 739: + return "XMLNAMESPACES"; + case 740: + return "XMLPARSE"; + case 741: + return "XMLPI"; + case 742: + return "XMLROOT"; + case 743: + return "XMLSERIALIZE"; + case 744: + return "XMLTABLE"; + case 745: + return "YEAR_P"; + case 746: + return "YES_P"; + case 747: + return "ZONE"; + case 748: + return "FORMAT_LA"; + case 749: + return "NOT_LA"; + case 750: + return "NULLS_LA"; + case 751: + return "WITH_LA"; + case 752: + return "WITHOUT_LA"; + case 753: + return "MODE_TYPE_NAME"; + case 754: + return "MODE_PLPGSQL_EXPR"; + case 755: + return "MODE_PLPGSQL_ASSIGN1"; + case 756: + return "MODE_PLPGSQL_ASSIGN2"; + case 757: + return "MODE_PLPGSQL_ASSIGN3"; + case 758: + return "UMINUS"; + default: + throw new Error("Value not recognized in enum Token"); + } + } +};", + "file": "custom-string-nested.ts", + }, + { + "code": "/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type EnumType = "OverridingKind" | "QuerySource" | "SortByDir" | "SortByNulls" | "SetQuantifier" | "A_Expr_Kind" | "RoleSpecType" | "TableLikeOption" | "DefElemAction" | "PartitionStrategy" | "PartitionRangeDatumKind" | "RTEKind" | "WCOKind" | "GroupingSetKind" | "CTEMaterialize" | "SetOperation" | "ObjectType" | "DropBehavior" | "AlterTableType" | "GrantTargetType" | "VariableSetKind" | "ConstrType" | "ImportForeignSchemaType" | "RoleStmtType" | "FetchDirection" | "FunctionParameterMode" | "TransactionStmtKind" | "ViewCheckOption" | "DiscardMode" | "ReindexObjectType" | "AlterTSConfigType" | "PublicationObjSpecType" | "AlterPublicationAction" | "AlterSubscriptionType" | "OnCommitAction" | "ParamKind" | "CoercionContext" | "CoercionForm" | "BoolExprType" | "SubLinkType" | "RowCompareType" | "MinMaxOp" | "SQLValueFunctionOp" | "XmlExprOp" | "XmlOptionType" | "JsonEncoding" | "JsonFormatType" | "JsonConstructorType" | "JsonValueType" | "NullTestType" | "BoolTestType" | "CmdType" | "JoinType" | "AggStrategy" | "AggSplit" | "SetOpCmd" | "SetOpStrategy" | "OnConflictAction" | "LimitOption" | "LockClauseStrength" | "LockWaitPolicy" | "LockTupleMode" | "KeywordKind" | "Token"; +export type EnumToIntMap = { + "OverridingKind": (key: string) => number; + "QuerySource": (key: string) => number; + "SortByDir": (key: string) => number; + "SortByNulls": (key: string) => number; + "SetQuantifier": (key: string) => number; + "A_Expr_Kind": (key: string) => number; + "RoleSpecType": (key: string) => number; + "TableLikeOption": (key: string) => number; + "DefElemAction": (key: string) => number; + "PartitionStrategy": (key: string) => number; + "PartitionRangeDatumKind": (key: string) => number; + "RTEKind": (key: string) => number; + "WCOKind": (key: string) => number; + "GroupingSetKind": (key: string) => number; + "CTEMaterialize": (key: string) => number; + "SetOperation": (key: string) => number; + "ObjectType": (key: string) => number; + "DropBehavior": (key: string) => number; + "AlterTableType": (key: string) => number; + "GrantTargetType": (key: string) => number; + "VariableSetKind": (key: string) => number; + "ConstrType": (key: string) => number; + "ImportForeignSchemaType": (key: string) => number; + "RoleStmtType": (key: string) => number; + "FetchDirection": (key: string) => number; + "FunctionParameterMode": (key: string) => number; + "TransactionStmtKind": (key: string) => number; + "ViewCheckOption": (key: string) => number; + "DiscardMode": (key: string) => number; + "ReindexObjectType": (key: string) => number; + "AlterTSConfigType": (key: string) => number; + "PublicationObjSpecType": (key: string) => number; + "AlterPublicationAction": (key: string) => number; + "AlterSubscriptionType": (key: string) => number; + "OnCommitAction": (key: string) => number; + "ParamKind": (key: string) => number; + "CoercionContext": (key: string) => number; + "CoercionForm": (key: string) => number; + "BoolExprType": (key: string) => number; + "SubLinkType": (key: string) => number; + "RowCompareType": (key: string) => number; + "MinMaxOp": (key: string) => number; + "SQLValueFunctionOp": (key: string) => number; + "XmlExprOp": (key: string) => number; + "XmlOptionType": (key: string) => number; + "JsonEncoding": (key: string) => number; + "JsonFormatType": (key: string) => number; + "JsonConstructorType": (key: string) => number; + "JsonValueType": (key: string) => number; + "NullTestType": (key: string) => number; + "BoolTestType": (key: string) => number; + "CmdType": (key: string) => number; + "JoinType": (key: string) => number; + "AggStrategy": (key: string) => number; + "AggSplit": (key: string) => number; + "SetOpCmd": (key: string) => number; + "SetOpStrategy": (key: string) => number; + "OnConflictAction": (key: string) => number; + "LimitOption": (key: string) => number; + "LockClauseStrength": (key: string) => number; + "LockWaitPolicy": (key: string) => number; + "LockTupleMode": (key: string) => number; + "KeywordKind": (key: string) => number; + "Token": (key: string) => number; +}; +export const enumToIntMap: EnumToIntMap = { + "OverridingKind": (key: string): number => { + switch (key) { + case "OVERRIDING_NOT_SET": + return 0; + case "OVERRIDING_USER_VALUE": + return 1; + case "OVERRIDING_SYSTEM_VALUE": + return 2; + default: + throw new Error("Key not recognized in enum OverridingKind"); + } + }, + "QuerySource": (key: string): number => { + switch (key) { + case "QSRC_ORIGINAL": + return 0; + case "QSRC_PARSER": + return 1; + case "QSRC_INSTEAD_RULE": + return 2; + case "QSRC_QUAL_INSTEAD_RULE": + return 3; + case "QSRC_NON_INSTEAD_RULE": + return 4; + default: + throw new Error("Key not recognized in enum QuerySource"); + } + }, + "SortByDir": (key: string): number => { + switch (key) { + case "SORTBY_DEFAULT": + return 0; + case "SORTBY_ASC": + return 1; + case "SORTBY_DESC": + return 2; + case "SORTBY_USING": + return 3; + default: + throw new Error("Key not recognized in enum SortByDir"); + } + }, + "SortByNulls": (key: string): number => { + switch (key) { + case "SORTBY_NULLS_DEFAULT": + return 0; + case "SORTBY_NULLS_FIRST": + return 1; + case "SORTBY_NULLS_LAST": + return 2; + default: + throw new Error("Key not recognized in enum SortByNulls"); + } + }, + "SetQuantifier": (key: string): number => { + switch (key) { + case "SET_QUANTIFIER_DEFAULT": + return 0; + case "SET_QUANTIFIER_ALL": + return 1; + case "SET_QUANTIFIER_DISTINCT": + return 2; + default: + throw new Error("Key not recognized in enum SetQuantifier"); + } + }, + "A_Expr_Kind": (key: string): number => { + switch (key) { + case "AEXPR_OP": + return 0; + case "AEXPR_OP_ANY": + return 1; + case "AEXPR_OP_ALL": + return 2; + case "AEXPR_DISTINCT": + return 3; + case "AEXPR_NOT_DISTINCT": + return 4; + case "AEXPR_NULLIF": + return 5; + case "AEXPR_IN": + return 6; + case "AEXPR_LIKE": + return 7; + case "AEXPR_ILIKE": + return 8; + case "AEXPR_SIMILAR": + return 9; + case "AEXPR_BETWEEN": + return 10; + case "AEXPR_NOT_BETWEEN": + return 11; + case "AEXPR_BETWEEN_SYM": + return 12; + case "AEXPR_NOT_BETWEEN_SYM": + return 13; + default: + throw new Error("Key not recognized in enum A_Expr_Kind"); + } + }, + "RoleSpecType": (key: string): number => { + switch (key) { + case "ROLESPEC_CSTRING": + return 0; + case "ROLESPEC_CURRENT_ROLE": + return 1; + case "ROLESPEC_CURRENT_USER": + return 2; + case "ROLESPEC_SESSION_USER": + return 3; + case "ROLESPEC_PUBLIC": + return 4; + default: + throw new Error("Key not recognized in enum RoleSpecType"); + } + }, + "TableLikeOption": (key: string): number => { + switch (key) { + case "CREATE_TABLE_LIKE_COMMENTS": + return 0; + case "CREATE_TABLE_LIKE_COMPRESSION": + return 1; + case "CREATE_TABLE_LIKE_CONSTRAINTS": + return 2; + case "CREATE_TABLE_LIKE_DEFAULTS": + return 3; + case "CREATE_TABLE_LIKE_GENERATED": + return 4; + case "CREATE_TABLE_LIKE_IDENTITY": + return 5; + case "CREATE_TABLE_LIKE_INDEXES": + return 6; + case "CREATE_TABLE_LIKE_STATISTICS": + return 7; + case "CREATE_TABLE_LIKE_STORAGE": + return 8; + case "CREATE_TABLE_LIKE_ALL": + return 9; + default: + throw new Error("Key not recognized in enum TableLikeOption"); + } + }, + "DefElemAction": (key: string): number => { + switch (key) { + case "DEFELEM_UNSPEC": + return 0; + case "DEFELEM_SET": + return 1; + case "DEFELEM_ADD": + return 2; + case "DEFELEM_DROP": + return 3; + default: + throw new Error("Key not recognized in enum DefElemAction"); + } + }, + "PartitionStrategy": (key: string): number => { + switch (key) { + case "PARTITION_STRATEGY_LIST": + return 0; + case "PARTITION_STRATEGY_RANGE": + return 1; + case "PARTITION_STRATEGY_HASH": + return 2; + default: + throw new Error("Key not recognized in enum PartitionStrategy"); + } + }, + "PartitionRangeDatumKind": (key: string): number => { + switch (key) { + case "PARTITION_RANGE_DATUM_MINVALUE": + return 0; + case "PARTITION_RANGE_DATUM_VALUE": + return 1; + case "PARTITION_RANGE_DATUM_MAXVALUE": + return 2; + default: + throw new Error("Key not recognized in enum PartitionRangeDatumKind"); + } + }, + "RTEKind": (key: string): number => { + switch (key) { + case "RTE_RELATION": + return 0; + case "RTE_SUBQUERY": + return 1; + case "RTE_JOIN": + return 2; + case "RTE_FUNCTION": + return 3; + case "RTE_TABLEFUNC": + return 4; + case "RTE_VALUES": + return 5; + case "RTE_CTE": + return 6; + case "RTE_NAMEDTUPLESTORE": + return 7; + case "RTE_RESULT": + return 8; + default: + throw new Error("Key not recognized in enum RTEKind"); + } + }, + "WCOKind": (key: string): number => { + switch (key) { + case "WCO_VIEW_CHECK": + return 0; + case "WCO_RLS_INSERT_CHECK": + return 1; + case "WCO_RLS_UPDATE_CHECK": + return 2; + case "WCO_RLS_CONFLICT_CHECK": + return 3; + case "WCO_RLS_MERGE_UPDATE_CHECK": + return 4; + case "WCO_RLS_MERGE_DELETE_CHECK": + return 5; + default: + throw new Error("Key not recognized in enum WCOKind"); + } + }, + "GroupingSetKind": (key: string): number => { + switch (key) { + case "GROUPING_SET_EMPTY": + return 0; + case "GROUPING_SET_SIMPLE": + return 1; + case "GROUPING_SET_ROLLUP": + return 2; + case "GROUPING_SET_CUBE": + return 3; + case "GROUPING_SET_SETS": + return 4; + default: + throw new Error("Key not recognized in enum GroupingSetKind"); + } + }, + "CTEMaterialize": (key: string): number => { + switch (key) { + case "CTEMaterializeDefault": + return 0; + case "CTEMaterializeAlways": + return 1; + case "CTEMaterializeNever": + return 2; + default: + throw new Error("Key not recognized in enum CTEMaterialize"); + } + }, + "SetOperation": (key: string): number => { + switch (key) { + case "SETOP_NONE": + return 0; + case "SETOP_UNION": + return 1; + case "SETOP_INTERSECT": + return 2; + case "SETOP_EXCEPT": + return 3; + default: + throw new Error("Key not recognized in enum SetOperation"); + } + }, + "ObjectType": (key: string): number => { + switch (key) { + case "OBJECT_ACCESS_METHOD": + return 0; + case "OBJECT_AGGREGATE": + return 1; + case "OBJECT_AMOP": + return 2; + case "OBJECT_AMPROC": + return 3; + case "OBJECT_ATTRIBUTE": + return 4; + case "OBJECT_CAST": + return 5; + case "OBJECT_COLUMN": + return 6; + case "OBJECT_COLLATION": + return 7; + case "OBJECT_CONVERSION": + return 8; + case "OBJECT_DATABASE": + return 9; + case "OBJECT_DEFAULT": + return 10; + case "OBJECT_DEFACL": + return 11; + case "OBJECT_DOMAIN": + return 12; + case "OBJECT_DOMCONSTRAINT": + return 13; + case "OBJECT_EVENT_TRIGGER": + return 14; + case "OBJECT_EXTENSION": + return 15; + case "OBJECT_FDW": + return 16; + case "OBJECT_FOREIGN_SERVER": + return 17; + case "OBJECT_FOREIGN_TABLE": + return 18; + case "OBJECT_FUNCTION": + return 19; + case "OBJECT_INDEX": + return 20; + case "OBJECT_LANGUAGE": + return 21; + case "OBJECT_LARGEOBJECT": + return 22; + case "OBJECT_MATVIEW": + return 23; + case "OBJECT_OPCLASS": + return 24; + case "OBJECT_OPERATOR": + return 25; + case "OBJECT_OPFAMILY": + return 26; + case "OBJECT_PARAMETER_ACL": + return 27; + case "OBJECT_POLICY": + return 28; + case "OBJECT_PROCEDURE": + return 29; + case "OBJECT_PUBLICATION": + return 30; + case "OBJECT_PUBLICATION_NAMESPACE": + return 31; + case "OBJECT_PUBLICATION_REL": + return 32; + case "OBJECT_ROLE": + return 33; + case "OBJECT_ROUTINE": + return 34; + case "OBJECT_RULE": + return 35; + case "OBJECT_SCHEMA": + return 36; + case "OBJECT_SEQUENCE": + return 37; + case "OBJECT_SUBSCRIPTION": + return 38; + case "OBJECT_STATISTIC_EXT": + return 39; + case "OBJECT_TABCONSTRAINT": + return 40; + case "OBJECT_TABLE": + return 41; + case "OBJECT_TABLESPACE": + return 42; + case "OBJECT_TRANSFORM": + return 43; + case "OBJECT_TRIGGER": + return 44; + case "OBJECT_TSCONFIGURATION": + return 45; + case "OBJECT_TSDICTIONARY": + return 46; + case "OBJECT_TSPARSER": + return 47; + case "OBJECT_TSTEMPLATE": + return 48; + case "OBJECT_TYPE": + return 49; + case "OBJECT_USER_MAPPING": + return 50; + case "OBJECT_VIEW": + return 51; + default: + throw new Error("Key not recognized in enum ObjectType"); + } + }, + "DropBehavior": (key: string): number => { + switch (key) { + case "DROP_RESTRICT": + return 0; + case "DROP_CASCADE": + return 1; + default: + throw new Error("Key not recognized in enum DropBehavior"); + } + }, + "AlterTableType": (key: string): number => { + switch (key) { + case "AT_AddColumn": + return 0; + case "AT_AddColumnToView": + return 1; + case "AT_ColumnDefault": + return 2; + case "AT_CookedColumnDefault": + return 3; + case "AT_DropNotNull": + return 4; + case "AT_SetNotNull": + return 5; + case "AT_DropExpression": + return 6; + case "AT_CheckNotNull": + return 7; + case "AT_SetStatistics": + return 8; + case "AT_SetOptions": + return 9; + case "AT_ResetOptions": + return 10; + case "AT_SetStorage": + return 11; + case "AT_SetCompression": + return 12; + case "AT_DropColumn": + return 13; + case "AT_AddIndex": + return 14; + case "AT_ReAddIndex": + return 15; + case "AT_AddConstraint": + return 16; + case "AT_ReAddConstraint": + return 17; + case "AT_ReAddDomainConstraint": + return 18; + case "AT_AlterConstraint": + return 19; + case "AT_ValidateConstraint": + return 20; + case "AT_AddIndexConstraint": + return 21; + case "AT_DropConstraint": + return 22; + case "AT_ReAddComment": + return 23; + case "AT_AlterColumnType": + return 24; + case "AT_AlterColumnGenericOptions": + return 25; + case "AT_ChangeOwner": + return 26; + case "AT_ClusterOn": + return 27; + case "AT_DropCluster": + return 28; + case "AT_SetLogged": + return 29; + case "AT_SetUnLogged": + return 30; + case "AT_DropOids": + return 31; + case "AT_SetAccessMethod": + return 32; + case "AT_SetTableSpace": + return 33; + case "AT_SetRelOptions": + return 34; + case "AT_ResetRelOptions": + return 35; + case "AT_ReplaceRelOptions": + return 36; + case "AT_EnableTrig": + return 37; + case "AT_EnableAlwaysTrig": + return 38; + case "AT_EnableReplicaTrig": + return 39; + case "AT_DisableTrig": + return 40; + case "AT_EnableTrigAll": + return 41; + case "AT_DisableTrigAll": + return 42; + case "AT_EnableTrigUser": + return 43; + case "AT_DisableTrigUser": + return 44; + case "AT_EnableRule": + return 45; + case "AT_EnableAlwaysRule": + return 46; + case "AT_EnableReplicaRule": + return 47; + case "AT_DisableRule": + return 48; + case "AT_AddInherit": + return 49; + case "AT_DropInherit": + return 50; + case "AT_AddOf": + return 51; + case "AT_DropOf": + return 52; + case "AT_ReplicaIdentity": + return 53; + case "AT_EnableRowSecurity": + return 54; + case "AT_DisableRowSecurity": + return 55; + case "AT_ForceRowSecurity": + return 56; + case "AT_NoForceRowSecurity": + return 57; + case "AT_GenericOptions": + return 58; + case "AT_AttachPartition": + return 59; + case "AT_DetachPartition": + return 60; + case "AT_DetachPartitionFinalize": + return 61; + case "AT_AddIdentity": + return 62; + case "AT_SetIdentity": + return 63; + case "AT_DropIdentity": + return 64; + case "AT_ReAddStatistics": + return 65; + default: + throw new Error("Key not recognized in enum AlterTableType"); + } + }, + "GrantTargetType": (key: string): number => { + switch (key) { + case "ACL_TARGET_OBJECT": + return 0; + case "ACL_TARGET_ALL_IN_SCHEMA": + return 1; + case "ACL_TARGET_DEFAULTS": + return 2; + default: + throw new Error("Key not recognized in enum GrantTargetType"); + } + }, + "VariableSetKind": (key: string): number => { + switch (key) { + case "VAR_SET_VALUE": + return 0; + case "VAR_SET_DEFAULT": + return 1; + case "VAR_SET_CURRENT": + return 2; + case "VAR_SET_MULTI": + return 3; + case "VAR_RESET": + return 4; + case "VAR_RESET_ALL": + return 5; + default: + throw new Error("Key not recognized in enum VariableSetKind"); + } + }, + "ConstrType": (key: string): number => { + switch (key) { + case "CONSTR_NULL": + return 0; + case "CONSTR_NOTNULL": + return 1; + case "CONSTR_DEFAULT": + return 2; + case "CONSTR_IDENTITY": + return 3; + case "CONSTR_GENERATED": + return 4; + case "CONSTR_CHECK": + return 5; + case "CONSTR_PRIMARY": + return 6; + case "CONSTR_UNIQUE": + return 7; + case "CONSTR_EXCLUSION": + return 8; + case "CONSTR_FOREIGN": + return 9; + case "CONSTR_ATTR_DEFERRABLE": + return 10; + case "CONSTR_ATTR_NOT_DEFERRABLE": + return 11; + case "CONSTR_ATTR_DEFERRED": + return 12; + case "CONSTR_ATTR_IMMEDIATE": + return 13; + default: + throw new Error("Key not recognized in enum ConstrType"); + } + }, + "ImportForeignSchemaType": (key: string): number => { + switch (key) { + case "FDW_IMPORT_SCHEMA_ALL": + return 0; + case "FDW_IMPORT_SCHEMA_LIMIT_TO": + return 1; + case "FDW_IMPORT_SCHEMA_EXCEPT": + return 2; + default: + throw new Error("Key not recognized in enum ImportForeignSchemaType"); + } + }, + "RoleStmtType": (key: string): number => { + switch (key) { + case "ROLESTMT_ROLE": + return 0; + case "ROLESTMT_USER": + return 1; + case "ROLESTMT_GROUP": + return 2; + default: + throw new Error("Key not recognized in enum RoleStmtType"); + } + }, + "FetchDirection": (key: string): number => { + switch (key) { + case "FETCH_FORWARD": + return 0; + case "FETCH_BACKWARD": + return 1; + case "FETCH_ABSOLUTE": + return 2; + case "FETCH_RELATIVE": + return 3; + default: + throw new Error("Key not recognized in enum FetchDirection"); + } + }, + "FunctionParameterMode": (key: string): number => { + switch (key) { + case "FUNC_PARAM_IN": + return 0; + case "FUNC_PARAM_OUT": + return 1; + case "FUNC_PARAM_INOUT": + return 2; + case "FUNC_PARAM_VARIADIC": + return 3; + case "FUNC_PARAM_TABLE": + return 4; + case "FUNC_PARAM_DEFAULT": + return 5; + default: + throw new Error("Key not recognized in enum FunctionParameterMode"); + } + }, + "TransactionStmtKind": (key: string): number => { + switch (key) { + case "TRANS_STMT_BEGIN": + return 0; + case "TRANS_STMT_START": + return 1; + case "TRANS_STMT_COMMIT": + return 2; + case "TRANS_STMT_ROLLBACK": + return 3; + case "TRANS_STMT_SAVEPOINT": + return 4; + case "TRANS_STMT_RELEASE": + return 5; + case "TRANS_STMT_ROLLBACK_TO": + return 6; + case "TRANS_STMT_PREPARE": + return 7; + case "TRANS_STMT_COMMIT_PREPARED": + return 8; + case "TRANS_STMT_ROLLBACK_PREPARED": + return 9; + default: + throw new Error("Key not recognized in enum TransactionStmtKind"); + } + }, + "ViewCheckOption": (key: string): number => { + switch (key) { + case "NO_CHECK_OPTION": + return 0; + case "LOCAL_CHECK_OPTION": + return 1; + case "CASCADED_CHECK_OPTION": + return 2; + default: + throw new Error("Key not recognized in enum ViewCheckOption"); + } + }, + "DiscardMode": (key: string): number => { + switch (key) { + case "DISCARD_ALL": + return 0; + case "DISCARD_PLANS": + return 1; + case "DISCARD_SEQUENCES": + return 2; + case "DISCARD_TEMP": + return 3; + default: + throw new Error("Key not recognized in enum DiscardMode"); + } + }, + "ReindexObjectType": (key: string): number => { + switch (key) { + case "REINDEX_OBJECT_INDEX": + return 0; + case "REINDEX_OBJECT_TABLE": + return 1; + case "REINDEX_OBJECT_SCHEMA": + return 2; + case "REINDEX_OBJECT_SYSTEM": + return 3; + case "REINDEX_OBJECT_DATABASE": + return 4; + default: + throw new Error("Key not recognized in enum ReindexObjectType"); + } + }, + "AlterTSConfigType": (key: string): number => { + switch (key) { + case "ALTER_TSCONFIG_ADD_MAPPING": + return 0; + case "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN": + return 1; + case "ALTER_TSCONFIG_REPLACE_DICT": + return 2; + case "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN": + return 3; + case "ALTER_TSCONFIG_DROP_MAPPING": + return 4; + default: + throw new Error("Key not recognized in enum AlterTSConfigType"); + } + }, + "PublicationObjSpecType": (key: string): number => { + switch (key) { + case "PUBLICATIONOBJ_TABLE": + return 0; + case "PUBLICATIONOBJ_TABLES_IN_SCHEMA": + return 1; + case "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA": + return 2; + case "PUBLICATIONOBJ_CONTINUATION": + return 3; + default: + throw new Error("Key not recognized in enum PublicationObjSpecType"); + } + }, + "AlterPublicationAction": (key: string): number => { + switch (key) { + case "AP_AddObjects": + return 0; + case "AP_DropObjects": + return 1; + case "AP_SetObjects": + return 2; + default: + throw new Error("Key not recognized in enum AlterPublicationAction"); + } + }, + "AlterSubscriptionType": (key: string): number => { + switch (key) { + case "ALTER_SUBSCRIPTION_OPTIONS": + return 0; + case "ALTER_SUBSCRIPTION_CONNECTION": + return 1; + case "ALTER_SUBSCRIPTION_SET_PUBLICATION": + return 2; + case "ALTER_SUBSCRIPTION_ADD_PUBLICATION": + return 3; + case "ALTER_SUBSCRIPTION_DROP_PUBLICATION": + return 4; + case "ALTER_SUBSCRIPTION_REFRESH": + return 5; + case "ALTER_SUBSCRIPTION_ENABLED": + return 6; + case "ALTER_SUBSCRIPTION_SKIP": + return 7; + default: + throw new Error("Key not recognized in enum AlterSubscriptionType"); + } + }, + "OnCommitAction": (key: string): number => { + switch (key) { + case "ONCOMMIT_NOOP": + return 0; + case "ONCOMMIT_PRESERVE_ROWS": + return 1; + case "ONCOMMIT_DELETE_ROWS": + return 2; + case "ONCOMMIT_DROP": + return 3; + default: + throw new Error("Key not recognized in enum OnCommitAction"); + } + }, + "ParamKind": (key: string): number => { + switch (key) { + case "PARAM_EXTERN": + return 0; + case "PARAM_EXEC": + return 1; + case "PARAM_SUBLINK": + return 2; + case "PARAM_MULTIEXPR": + return 3; + default: + throw new Error("Key not recognized in enum ParamKind"); + } + }, + "CoercionContext": (key: string): number => { + switch (key) { + case "COERCION_IMPLICIT": + return 0; + case "COERCION_ASSIGNMENT": + return 1; + case "COERCION_PLPGSQL": + return 2; + case "COERCION_EXPLICIT": + return 3; + default: + throw new Error("Key not recognized in enum CoercionContext"); + } + }, + "CoercionForm": (key: string): number => { + switch (key) { + case "COERCE_EXPLICIT_CALL": + return 0; + case "COERCE_EXPLICIT_CAST": + return 1; + case "COERCE_IMPLICIT_CAST": + return 2; + case "COERCE_SQL_SYNTAX": + return 3; + default: + throw new Error("Key not recognized in enum CoercionForm"); + } + }, + "BoolExprType": (key: string): number => { + switch (key) { + case "AND_EXPR": + return 0; + case "OR_EXPR": + return 1; + case "NOT_EXPR": + return 2; + default: + throw new Error("Key not recognized in enum BoolExprType"); + } + }, + "SubLinkType": (key: string): number => { + switch (key) { + case "EXISTS_SUBLINK": + return 0; + case "ALL_SUBLINK": + return 1; + case "ANY_SUBLINK": + return 2; + case "ROWCOMPARE_SUBLINK": + return 3; + case "EXPR_SUBLINK": + return 4; + case "MULTIEXPR_SUBLINK": + return 5; + case "ARRAY_SUBLINK": + return 6; + case "CTE_SUBLINK": + return 7; + default: + throw new Error("Key not recognized in enum SubLinkType"); + } + }, + "RowCompareType": (key: string): number => { + switch (key) { + case "ROWCOMPARE_LT": + return 0; + case "ROWCOMPARE_LE": + return 1; + case "ROWCOMPARE_EQ": + return 2; + case "ROWCOMPARE_GE": + return 3; + case "ROWCOMPARE_GT": + return 4; + case "ROWCOMPARE_NE": + return 5; + default: + throw new Error("Key not recognized in enum RowCompareType"); + } + }, + "MinMaxOp": (key: string): number => { + switch (key) { + case "IS_GREATEST": + return 0; + case "IS_LEAST": + return 1; + default: + throw new Error("Key not recognized in enum MinMaxOp"); + } + }, + "SQLValueFunctionOp": (key: string): number => { + switch (key) { + case "SVFOP_CURRENT_DATE": + return 0; + case "SVFOP_CURRENT_TIME": + return 1; + case "SVFOP_CURRENT_TIME_N": + return 2; + case "SVFOP_CURRENT_TIMESTAMP": + return 3; + case "SVFOP_CURRENT_TIMESTAMP_N": + return 4; + case "SVFOP_LOCALTIME": + return 5; + case "SVFOP_LOCALTIME_N": + return 6; + case "SVFOP_LOCALTIMESTAMP": + return 7; + case "SVFOP_LOCALTIMESTAMP_N": + return 8; + case "SVFOP_CURRENT_ROLE": + return 9; + case "SVFOP_CURRENT_USER": + return 10; + case "SVFOP_USER": + return 11; + case "SVFOP_SESSION_USER": + return 12; + case "SVFOP_CURRENT_CATALOG": + return 13; + case "SVFOP_CURRENT_SCHEMA": + return 14; + default: + throw new Error("Key not recognized in enum SQLValueFunctionOp"); + } + }, + "XmlExprOp": (key: string): number => { + switch (key) { + case "IS_XMLCONCAT": + return 0; + case "IS_XMLELEMENT": + return 1; + case "IS_XMLFOREST": + return 2; + case "IS_XMLPARSE": + return 3; + case "IS_XMLPI": + return 4; + case "IS_XMLROOT": + return 5; + case "IS_XMLSERIALIZE": + return 6; + case "IS_DOCUMENT": + return 7; + default: + throw new Error("Key not recognized in enum XmlExprOp"); + } + }, + "XmlOptionType": (key: string): number => { + switch (key) { + case "XMLOPTION_DOCUMENT": + return 0; + case "XMLOPTION_CONTENT": + return 1; + default: + throw new Error("Key not recognized in enum XmlOptionType"); + } + }, + "JsonEncoding": (key: string): number => { + switch (key) { + case "JS_ENC_DEFAULT": + return 0; + case "JS_ENC_UTF8": + return 1; + case "JS_ENC_UTF16": + return 2; + case "JS_ENC_UTF32": + return 3; + default: + throw new Error("Key not recognized in enum JsonEncoding"); + } + }, + "JsonFormatType": (key: string): number => { + switch (key) { + case "JS_FORMAT_DEFAULT": + return 0; + case "JS_FORMAT_JSON": + return 1; + case "JS_FORMAT_JSONB": + return 2; + default: + throw new Error("Key not recognized in enum JsonFormatType"); + } + }, + "JsonConstructorType": (key: string): number => { + switch (key) { + case "JSCTOR_JSON_OBJECT": + return 0; + case "JSCTOR_JSON_ARRAY": + return 1; + case "JSCTOR_JSON_OBJECTAGG": + return 2; + case "JSCTOR_JSON_ARRAYAGG": + return 3; + default: + throw new Error("Key not recognized in enum JsonConstructorType"); + } + }, + "JsonValueType": (key: string): number => { + switch (key) { + case "JS_TYPE_ANY": + return 0; + case "JS_TYPE_OBJECT": + return 1; + case "JS_TYPE_ARRAY": + return 2; + case "JS_TYPE_SCALAR": + return 3; + default: + throw new Error("Key not recognized in enum JsonValueType"); + } + }, + "NullTestType": (key: string): number => { + switch (key) { + case "IS_NULL": + return 0; + case "IS_NOT_NULL": + return 1; + default: + throw new Error("Key not recognized in enum NullTestType"); + } + }, + "BoolTestType": (key: string): number => { + switch (key) { + case "IS_TRUE": + return 0; + case "IS_NOT_TRUE": + return 1; + case "IS_FALSE": + return 2; + case "IS_NOT_FALSE": + return 3; + case "IS_UNKNOWN": + return 4; + case "IS_NOT_UNKNOWN": + return 5; + default: + throw new Error("Key not recognized in enum BoolTestType"); + } + }, + "CmdType": (key: string): number => { + switch (key) { + case "CMD_UNKNOWN": + return 0; + case "CMD_SELECT": + return 1; + case "CMD_UPDATE": + return 2; + case "CMD_INSERT": + return 3; + case "CMD_DELETE": + return 4; + case "CMD_MERGE": + return 5; + case "CMD_UTILITY": + return 6; + case "CMD_NOTHING": + return 7; + default: + throw new Error("Key not recognized in enum CmdType"); + } + }, + "JoinType": (key: string): number => { + switch (key) { + case "JOIN_INNER": + return 0; + case "JOIN_LEFT": + return 1; + case "JOIN_FULL": + return 2; + case "JOIN_RIGHT": + return 3; + case "JOIN_SEMI": + return 4; + case "JOIN_ANTI": + return 5; + case "JOIN_RIGHT_ANTI": + return 6; + case "JOIN_UNIQUE_OUTER": + return 7; + case "JOIN_UNIQUE_INNER": + return 8; + default: + throw new Error("Key not recognized in enum JoinType"); + } + }, + "AggStrategy": (key: string): number => { + switch (key) { + case "AGG_PLAIN": + return 0; + case "AGG_SORTED": + return 1; + case "AGG_HASHED": + return 2; + case "AGG_MIXED": + return 3; + default: + throw new Error("Key not recognized in enum AggStrategy"); + } + }, + "AggSplit": (key: string): number => { + switch (key) { + case "AGGSPLIT_SIMPLE": + return 0; + case "AGGSPLIT_INITIAL_SERIAL": + return 1; + case "AGGSPLIT_FINAL_DESERIAL": + return 2; + default: + throw new Error("Key not recognized in enum AggSplit"); + } + }, + "SetOpCmd": (key: string): number => { + switch (key) { + case "SETOPCMD_INTERSECT": + return 0; + case "SETOPCMD_INTERSECT_ALL": + return 1; + case "SETOPCMD_EXCEPT": + return 2; + case "SETOPCMD_EXCEPT_ALL": + return 3; + default: + throw new Error("Key not recognized in enum SetOpCmd"); + } + }, + "SetOpStrategy": (key: string): number => { + switch (key) { + case "SETOP_SORTED": + return 0; + case "SETOP_HASHED": + return 1; + default: + throw new Error("Key not recognized in enum SetOpStrategy"); + } + }, + "OnConflictAction": (key: string): number => { + switch (key) { + case "ONCONFLICT_NONE": + return 0; + case "ONCONFLICT_NOTHING": + return 1; + case "ONCONFLICT_UPDATE": + return 2; + default: + throw new Error("Key not recognized in enum OnConflictAction"); + } + }, + "LimitOption": (key: string): number => { + switch (key) { + case "LIMIT_OPTION_DEFAULT": + return 0; + case "LIMIT_OPTION_COUNT": + return 1; + case "LIMIT_OPTION_WITH_TIES": + return 2; + default: + throw new Error("Key not recognized in enum LimitOption"); + } + }, + "LockClauseStrength": (key: string): number => { + switch (key) { + case "LCS_NONE": + return 0; + case "LCS_FORKEYSHARE": + return 1; + case "LCS_FORSHARE": + return 2; + case "LCS_FORNOKEYUPDATE": + return 3; + case "LCS_FORUPDATE": + return 4; + default: + throw new Error("Key not recognized in enum LockClauseStrength"); + } + }, + "LockWaitPolicy": (key: string): number => { + switch (key) { + case "LockWaitBlock": + return 0; + case "LockWaitSkip": + return 1; + case "LockWaitError": + return 2; + default: + throw new Error("Key not recognized in enum LockWaitPolicy"); + } + }, + "LockTupleMode": (key: string): number => { + switch (key) { + case "LockTupleKeyShare": + return 0; + case "LockTupleShare": + return 1; + case "LockTupleNoKeyExclusive": + return 2; + case "LockTupleExclusive": + return 3; + default: + throw new Error("Key not recognized in enum LockTupleMode"); + } + }, + "KeywordKind": (key: string): number => { + switch (key) { + case "NO_KEYWORD": + return 0; + case "UNRESERVED_KEYWORD": + return 1; + case "COL_NAME_KEYWORD": + return 2; + case "TYPE_FUNC_NAME_KEYWORD": + return 3; + case "RESERVED_KEYWORD": + return 4; + default: + throw new Error("Key not recognized in enum KeywordKind"); + } + }, + "Token": (key: string): number => { + switch (key) { + case "NUL": + return 0; + case "ASCII_36": + return 36; + case "ASCII_37": + return 37; + case "ASCII_40": + return 40; + case "ASCII_41": + return 41; + case "ASCII_42": + return 42; + case "ASCII_43": + return 43; + case "ASCII_44": + return 44; + case "ASCII_45": + return 45; + case "ASCII_46": + return 46; + case "ASCII_47": + return 47; + case "ASCII_58": + return 58; + case "ASCII_59": + return 59; + case "ASCII_60": + return 60; + case "ASCII_61": + return 61; + case "ASCII_62": + return 62; + case "ASCII_63": + return 63; + case "ASCII_91": + return 91; + case "ASCII_92": + return 92; + case "ASCII_93": + return 93; + case "ASCII_94": + return 94; + case "IDENT": + return 258; + case "UIDENT": + return 259; + case "FCONST": + return 260; + case "SCONST": + return 261; + case "USCONST": + return 262; + case "BCONST": + return 263; + case "XCONST": + return 264; + case "Op": + return 265; + case "ICONST": + return 266; + case "PARAM": + return 267; + case "TYPECAST": + return 268; + case "DOT_DOT": + return 269; + case "COLON_EQUALS": + return 270; + case "EQUALS_GREATER": + return 271; + case "LESS_EQUALS": + return 272; + case "GREATER_EQUALS": + return 273; + case "NOT_EQUALS": + return 274; + case "SQL_COMMENT": + return 275; + case "C_COMMENT": + return 276; + case "ABORT_P": + return 277; + case "ABSENT": + return 278; + case "ABSOLUTE_P": + return 279; + case "ACCESS": + return 280; + case "ACTION": + return 281; + case "ADD_P": + return 282; + case "ADMIN": + return 283; + case "AFTER": + return 284; + case "AGGREGATE": + return 285; + case "ALL": + return 286; + case "ALSO": + return 287; + case "ALTER": + return 288; + case "ALWAYS": + return 289; + case "ANALYSE": + return 290; + case "ANALYZE": + return 291; + case "AND": + return 292; + case "ANY": + return 293; + case "ARRAY": + return 294; + case "AS": + return 295; + case "ASC": + return 296; + case "ASENSITIVE": + return 297; + case "ASSERTION": + return 298; + case "ASSIGNMENT": + return 299; + case "ASYMMETRIC": + return 300; + case "ATOMIC": + return 301; + case "AT": + return 302; + case "ATTACH": + return 303; + case "ATTRIBUTE": + return 304; + case "AUTHORIZATION": + return 305; + case "BACKWARD": + return 306; + case "BEFORE": + return 307; + case "BEGIN_P": + return 308; + case "BETWEEN": + return 309; + case "BIGINT": + return 310; + case "BINARY": + return 311; + case "BIT": + return 312; + case "BOOLEAN_P": + return 313; + case "BOTH": + return 314; + case "BREADTH": + return 315; + case "BY": + return 316; + case "CACHE": + return 317; + case "CALL": + return 318; + case "CALLED": + return 319; + case "CASCADE": + return 320; + case "CASCADED": + return 321; + case "CASE": + return 322; + case "CAST": + return 323; + case "CATALOG_P": + return 324; + case "CHAIN": + return 325; + case "CHAR_P": + return 326; + case "CHARACTER": + return 327; + case "CHARACTERISTICS": + return 328; + case "CHECK": + return 329; + case "CHECKPOINT": + return 330; + case "CLASS": + return 331; + case "CLOSE": + return 332; + case "CLUSTER": + return 333; + case "COALESCE": + return 334; + case "COLLATE": + return 335; + case "COLLATION": + return 336; + case "COLUMN": + return 337; + case "COLUMNS": + return 338; + case "COMMENT": + return 339; + case "COMMENTS": + return 340; + case "COMMIT": + return 341; + case "COMMITTED": + return 342; + case "COMPRESSION": + return 343; + case "CONCURRENTLY": + return 344; + case "CONFIGURATION": + return 345; + case "CONFLICT": + return 346; + case "CONNECTION": + return 347; + case "CONSTRAINT": + return 348; + case "CONSTRAINTS": + return 349; + case "CONTENT_P": + return 350; + case "CONTINUE_P": + return 351; + case "CONVERSION_P": + return 352; + case "COPY": + return 353; + case "COST": + return 354; + case "CREATE": + return 355; + case "CROSS": + return 356; + case "CSV": + return 357; + case "CUBE": + return 358; + case "CURRENT_P": + return 359; + case "CURRENT_CATALOG": + return 360; + case "CURRENT_DATE": + return 361; + case "CURRENT_ROLE": + return 362; + case "CURRENT_SCHEMA": + return 363; + case "CURRENT_TIME": + return 364; + case "CURRENT_TIMESTAMP": + return 365; + case "CURRENT_USER": + return 366; + case "CURSOR": + return 367; + case "CYCLE": + return 368; + case "DATA_P": + return 369; + case "DATABASE": + return 370; + case "DAY_P": + return 371; + case "DEALLOCATE": + return 372; + case "DEC": + return 373; + case "DECIMAL_P": + return 374; + case "DECLARE": + return 375; + case "DEFAULT": + return 376; + case "DEFAULTS": + return 377; + case "DEFERRABLE": + return 378; + case "DEFERRED": + return 379; + case "DEFINER": + return 380; + case "DELETE_P": + return 381; + case "DELIMITER": + return 382; + case "DELIMITERS": + return 383; + case "DEPENDS": + return 384; + case "DEPTH": + return 385; + case "DESC": + return 386; + case "DETACH": + return 387; + case "DICTIONARY": + return 388; + case "DISABLE_P": + return 389; + case "DISCARD": + return 390; + case "DISTINCT": + return 391; + case "DO": + return 392; + case "DOCUMENT_P": + return 393; + case "DOMAIN_P": + return 394; + case "DOUBLE_P": + return 395; + case "DROP": + return 396; + case "EACH": + return 397; + case "ELSE": + return 398; + case "ENABLE_P": + return 399; + case "ENCODING": + return 400; + case "ENCRYPTED": + return 401; + case "END_P": + return 402; + case "ENUM_P": + return 403; + case "ESCAPE": + return 404; + case "EVENT": + return 405; + case "EXCEPT": + return 406; + case "EXCLUDE": + return 407; + case "EXCLUDING": + return 408; + case "EXCLUSIVE": + return 409; + case "EXECUTE": + return 410; + case "EXISTS": + return 411; + case "EXPLAIN": + return 412; + case "EXPRESSION": + return 413; + case "EXTENSION": + return 414; + case "EXTERNAL": + return 415; + case "EXTRACT": + return 416; + case "FALSE_P": + return 417; + case "FAMILY": + return 418; + case "FETCH": + return 419; + case "FILTER": + return 420; + case "FINALIZE": + return 421; + case "FIRST_P": + return 422; + case "FLOAT_P": + return 423; + case "FOLLOWING": + return 424; + case "FOR": + return 425; + case "FORCE": + return 426; + case "FOREIGN": + return 427; + case "FORMAT": + return 428; + case "FORWARD": + return 429; + case "FREEZE": + return 430; + case "FROM": + return 431; + case "FULL": + return 432; + case "FUNCTION": + return 433; + case "FUNCTIONS": + return 434; + case "GENERATED": + return 435; + case "GLOBAL": + return 436; + case "GRANT": + return 437; + case "GRANTED": + return 438; + case "GREATEST": + return 439; + case "GROUP_P": + return 440; + case "GROUPING": + return 441; + case "GROUPS": + return 442; + case "HANDLER": + return 443; + case "HAVING": + return 444; + case "HEADER_P": + return 445; + case "HOLD": + return 446; + case "HOUR_P": + return 447; + case "IDENTITY_P": + return 448; + case "IF_P": + return 449; + case "ILIKE": + return 450; + case "IMMEDIATE": + return 451; + case "IMMUTABLE": + return 452; + case "IMPLICIT_P": + return 453; + case "IMPORT_P": + return 454; + case "IN_P": + return 455; + case "INCLUDE": + return 456; + case "INCLUDING": + return 457; + case "INCREMENT": + return 458; + case "INDENT": + return 459; + case "INDEX": + return 460; + case "INDEXES": + return 461; + case "INHERIT": + return 462; + case "INHERITS": + return 463; + case "INITIALLY": + return 464; + case "INLINE_P": + return 465; + case "INNER_P": + return 466; + case "INOUT": + return 467; + case "INPUT_P": + return 468; + case "INSENSITIVE": + return 469; + case "INSERT": + return 470; + case "INSTEAD": + return 471; + case "INT_P": + return 472; + case "INTEGER": + return 473; + case "INTERSECT": + return 474; + case "INTERVAL": + return 475; + case "INTO": + return 476; + case "INVOKER": + return 477; + case "IS": + return 478; + case "ISNULL": + return 479; + case "ISOLATION": + return 480; + case "JOIN": + return 481; + case "JSON": + return 482; + case "JSON_ARRAY": + return 483; + case "JSON_ARRAYAGG": + return 484; + case "JSON_OBJECT": + return 485; + case "JSON_OBJECTAGG": + return 486; + case "KEY": + return 487; + case "KEYS": + return 488; + case "LABEL": + return 489; + case "LANGUAGE": + return 490; + case "LARGE_P": + return 491; + case "LAST_P": + return 492; + case "LATERAL_P": + return 493; + case "LEADING": + return 494; + case "LEAKPROOF": + return 495; + case "LEAST": + return 496; + case "LEFT": + return 497; + case "LEVEL": + return 498; + case "LIKE": + return 499; + case "LIMIT": + return 500; + case "LISTEN": + return 501; + case "LOAD": + return 502; + case "LOCAL": + return 503; + case "LOCALTIME": + return 504; + case "LOCALTIMESTAMP": + return 505; + case "LOCATION": + return 506; + case "LOCK_P": + return 507; + case "LOCKED": + return 508; + case "LOGGED": + return 509; + case "MAPPING": + return 510; + case "MATCH": + return 511; + case "MATCHED": + return 512; + case "MATERIALIZED": + return 513; + case "MAXVALUE": + return 514; + case "MERGE": + return 515; + case "METHOD": + return 516; + case "MINUTE_P": + return 517; + case "MINVALUE": + return 518; + case "MODE": + return 519; + case "MONTH_P": + return 520; + case "MOVE": + return 521; + case "NAME_P": + return 522; + case "NAMES": + return 523; + case "NATIONAL": + return 524; + case "NATURAL": + return 525; + case "NCHAR": + return 526; + case "NEW": + return 527; + case "NEXT": + return 528; + case "NFC": + return 529; + case "NFD": + return 530; + case "NFKC": + return 531; + case "NFKD": + return 532; + case "NO": + return 533; + case "NONE": + return 534; + case "NORMALIZE": + return 535; + case "NORMALIZED": + return 536; + case "NOT": + return 537; + case "NOTHING": + return 538; + case "NOTIFY": + return 539; + case "NOTNULL": + return 540; + case "NOWAIT": + return 541; + case "NULL_P": + return 542; + case "NULLIF": + return 543; + case "NULLS_P": + return 544; + case "NUMERIC": + return 545; + case "OBJECT_P": + return 546; + case "OF": + return 547; + case "OFF": + return 548; + case "OFFSET": + return 549; + case "OIDS": + return 550; + case "OLD": + return 551; + case "ON": + return 552; + case "ONLY": + return 553; + case "OPERATOR": + return 554; + case "OPTION": + return 555; + case "OPTIONS": + return 556; + case "OR": + return 557; + case "ORDER": + return 558; + case "ORDINALITY": + return 559; + case "OTHERS": + return 560; + case "OUT_P": + return 561; + case "OUTER_P": + return 562; + case "OVER": + return 563; + case "OVERLAPS": + return 564; + case "OVERLAY": + return 565; + case "OVERRIDING": + return 566; + case "OWNED": + return 567; + case "OWNER": + return 568; + case "PARALLEL": + return 569; + case "PARAMETER": + return 570; + case "PARSER": + return 571; + case "PARTIAL": + return 572; + case "PARTITION": + return 573; + case "PASSING": + return 574; + case "PASSWORD": + return 575; + case "PLACING": + return 576; + case "PLANS": + return 577; + case "POLICY": + return 578; + case "POSITION": + return 579; + case "PRECEDING": + return 580; + case "PRECISION": + return 581; + case "PRESERVE": + return 582; + case "PREPARE": + return 583; + case "PREPARED": + return 584; + case "PRIMARY": + return 585; + case "PRIOR": + return 586; + case "PRIVILEGES": + return 587; + case "PROCEDURAL": + return 588; + case "PROCEDURE": + return 589; + case "PROCEDURES": + return 590; + case "PROGRAM": + return 591; + case "PUBLICATION": + return 592; + case "QUOTE": + return 593; + case "RANGE": + return 594; + case "READ": + return 595; + case "REAL": + return 596; + case "REASSIGN": + return 597; + case "RECHECK": + return 598; + case "RECURSIVE": + return 599; + case "REF_P": + return 600; + case "REFERENCES": + return 601; + case "REFERENCING": + return 602; + case "REFRESH": + return 603; + case "REINDEX": + return 604; + case "RELATIVE_P": + return 605; + case "RELEASE": + return 606; + case "RENAME": + return 607; + case "REPEATABLE": + return 608; + case "REPLACE": + return 609; + case "REPLICA": + return 610; + case "RESET": + return 611; + case "RESTART": + return 612; + case "RESTRICT": + return 613; + case "RETURN": + return 614; + case "RETURNING": + return 615; + case "RETURNS": + return 616; + case "REVOKE": + return 617; + case "RIGHT": + return 618; + case "ROLE": + return 619; + case "ROLLBACK": + return 620; + case "ROLLUP": + return 621; + case "ROUTINE": + return 622; + case "ROUTINES": + return 623; + case "ROW": + return 624; + case "ROWS": + return 625; + case "RULE": + return 626; + case "SAVEPOINT": + return 627; + case "SCALAR": + return 628; + case "SCHEMA": + return 629; + case "SCHEMAS": + return 630; + case "SCROLL": + return 631; + case "SEARCH": + return 632; + case "SECOND_P": + return 633; + case "SECURITY": + return 634; + case "SELECT": + return 635; + case "SEQUENCE": + return 636; + case "SEQUENCES": + return 637; + case "SERIALIZABLE": + return 638; + case "SERVER": + return 639; + case "SESSION": + return 640; + case "SESSION_USER": + return 641; + case "SET": + return 642; + case "SETS": + return 643; + case "SETOF": + return 644; + case "SHARE": + return 645; + case "SHOW": + return 646; + case "SIMILAR": + return 647; + case "SIMPLE": + return 648; + case "SKIP": + return 649; + case "SMALLINT": + return 650; + case "SNAPSHOT": + return 651; + case "SOME": + return 652; + case "SQL_P": + return 653; + case "STABLE": + return 654; + case "STANDALONE_P": + return 655; + case "START": + return 656; + case "STATEMENT": + return 657; + case "STATISTICS": + return 658; + case "STDIN": + return 659; + case "STDOUT": + return 660; + case "STORAGE": + return 661; + case "STORED": + return 662; + case "STRICT_P": + return 663; + case "STRIP_P": + return 664; + case "SUBSCRIPTION": + return 665; + case "SUBSTRING": + return 666; + case "SUPPORT": + return 667; + case "SYMMETRIC": + return 668; + case "SYSID": + return 669; + case "SYSTEM_P": + return 670; + case "SYSTEM_USER": + return 671; + case "TABLE": + return 672; + case "TABLES": + return 673; + case "TABLESAMPLE": + return 674; + case "TABLESPACE": + return 675; + case "TEMP": + return 676; + case "TEMPLATE": + return 677; + case "TEMPORARY": + return 678; + case "TEXT_P": + return 679; + case "THEN": + return 680; + case "TIES": + return 681; + case "TIME": + return 682; + case "TIMESTAMP": + return 683; + case "TO": + return 684; + case "TRAILING": + return 685; + case "TRANSACTION": + return 686; + case "TRANSFORM": + return 687; + case "TREAT": + return 688; + case "TRIGGER": + return 689; + case "TRIM": + return 690; + case "TRUE_P": + return 691; + case "TRUNCATE": + return 692; + case "TRUSTED": + return 693; + case "TYPE_P": + return 694; + case "TYPES_P": + return 695; + case "UESCAPE": + return 696; + case "UNBOUNDED": + return 697; + case "UNCOMMITTED": + return 698; + case "UNENCRYPTED": + return 699; + case "UNION": + return 700; + case "UNIQUE": + return 701; + case "UNKNOWN": + return 702; + case "UNLISTEN": + return 703; + case "UNLOGGED": + return 704; + case "UNTIL": + return 705; + case "UPDATE": + return 706; + case "USER": + return 707; + case "USING": + return 708; + case "VACUUM": + return 709; + case "VALID": + return 710; + case "VALIDATE": + return 711; + case "VALIDATOR": + return 712; + case "VALUE_P": + return 713; + case "VALUES": + return 714; + case "VARCHAR": + return 715; + case "VARIADIC": + return 716; + case "VARYING": + return 717; + case "VERBOSE": + return 718; + case "VERSION_P": + return 719; + case "VIEW": + return 720; + case "VIEWS": + return 721; + case "VOLATILE": + return 722; + case "WHEN": + return 723; + case "WHERE": + return 724; + case "WHITESPACE_P": + return 725; + case "WINDOW": + return 726; + case "WITH": + return 727; + case "WITHIN": + return 728; + case "WITHOUT": + return 729; + case "WORK": + return 730; + case "WRAPPER": + return 731; + case "WRITE": + return 732; + case "XML_P": + return 733; + case "XMLATTRIBUTES": + return 734; + case "XMLCONCAT": + return 735; + case "XMLELEMENT": + return 736; + case "XMLEXISTS": + return 737; + case "XMLFOREST": + return 738; + case "XMLNAMESPACES": + return 739; + case "XMLPARSE": + return 740; + case "XMLPI": + return 741; + case "XMLROOT": + return 742; + case "XMLSERIALIZE": + return 743; + case "XMLTABLE": + return 744; + case "YEAR_P": + return 745; + case "YES_P": + return 746; + case "ZONE": + return 747; + case "FORMAT_LA": + return 748; + case "NOT_LA": + return 749; + case "NULLS_LA": + return 750; + case "WITH_LA": + return 751; + case "WITHOUT_LA": + return 752; + case "MODE_TYPE_NAME": + return 753; + case "MODE_PLPGSQL_EXPR": + return 754; + case "MODE_PLPGSQL_ASSIGN1": + return 755; + case "MODE_PLPGSQL_ASSIGN2": + return 756; + case "MODE_PLPGSQL_ASSIGN3": + return 757; + case "UMINUS": + return 758; + default: + throw new Error("Key not recognized in enum Token"); + } + } +};", + "file": "custom-int-nested.ts", + }, + { + "code": "/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type EnumType = "OverridingKind" | "QuerySource" | "SortByDir" | "SortByNulls" | "SetQuantifier" | "A_Expr_Kind" | "RoleSpecType" | "TableLikeOption" | "DefElemAction" | "PartitionStrategy" | "PartitionRangeDatumKind" | "RTEKind" | "WCOKind" | "GroupingSetKind" | "CTEMaterialize" | "SetOperation" | "ObjectType" | "DropBehavior" | "AlterTableType" | "GrantTargetType" | "VariableSetKind" | "ConstrType" | "ImportForeignSchemaType" | "RoleStmtType" | "FetchDirection" | "FunctionParameterMode" | "TransactionStmtKind" | "ViewCheckOption" | "DiscardMode" | "ReindexObjectType" | "AlterTSConfigType" | "PublicationObjSpecType" | "AlterPublicationAction" | "AlterSubscriptionType" | "OnCommitAction" | "ParamKind" | "CoercionContext" | "CoercionForm" | "BoolExprType" | "SubLinkType" | "RowCompareType" | "MinMaxOp" | "SQLValueFunctionOp" | "XmlExprOp" | "XmlOptionType" | "JsonEncoding" | "JsonFormatType" | "JsonConstructorType" | "JsonValueType" | "NullTestType" | "BoolTestType" | "CmdType" | "JoinType" | "AggStrategy" | "AggSplit" | "SetOpCmd" | "SetOpStrategy" | "OnConflictAction" | "LimitOption" | "LockClauseStrength" | "LockWaitPolicy" | "LockTupleMode" | "KeywordKind" | "Token"; +export type EnumToStringMap = { + "OverridingKind": (value: number) => string; + "QuerySource": (value: number) => string; + "SortByDir": (value: number) => string; + "SortByNulls": (value: number) => string; + "SetQuantifier": (value: number) => string; + "A_Expr_Kind": (value: number) => string; + "RoleSpecType": (value: number) => string; + "TableLikeOption": (value: number) => string; + "DefElemAction": (value: number) => string; + "PartitionStrategy": (value: number) => string; + "PartitionRangeDatumKind": (value: number) => string; + "RTEKind": (value: number) => string; + "WCOKind": (value: number) => string; + "GroupingSetKind": (value: number) => string; + "CTEMaterialize": (value: number) => string; + "SetOperation": (value: number) => string; + "ObjectType": (value: number) => string; + "DropBehavior": (value: number) => string; + "AlterTableType": (value: number) => string; + "GrantTargetType": (value: number) => string; + "VariableSetKind": (value: number) => string; + "ConstrType": (value: number) => string; + "ImportForeignSchemaType": (value: number) => string; + "RoleStmtType": (value: number) => string; + "FetchDirection": (value: number) => string; + "FunctionParameterMode": (value: number) => string; + "TransactionStmtKind": (value: number) => string; + "ViewCheckOption": (value: number) => string; + "DiscardMode": (value: number) => string; + "ReindexObjectType": (value: number) => string; + "AlterTSConfigType": (value: number) => string; + "PublicationObjSpecType": (value: number) => string; + "AlterPublicationAction": (value: number) => string; + "AlterSubscriptionType": (value: number) => string; + "OnCommitAction": (value: number) => string; + "ParamKind": (value: number) => string; + "CoercionContext": (value: number) => string; + "CoercionForm": (value: number) => string; + "BoolExprType": (value: number) => string; + "SubLinkType": (value: number) => string; + "RowCompareType": (value: number) => string; + "MinMaxOp": (value: number) => string; + "SQLValueFunctionOp": (value: number) => string; + "XmlExprOp": (value: number) => string; + "XmlOptionType": (value: number) => string; + "JsonEncoding": (value: number) => string; + "JsonFormatType": (value: number) => string; + "JsonConstructorType": (value: number) => string; + "JsonValueType": (value: number) => string; + "NullTestType": (value: number) => string; + "BoolTestType": (value: number) => string; + "CmdType": (value: number) => string; + "JoinType": (value: number) => string; + "AggStrategy": (value: number) => string; + "AggSplit": (value: number) => string; + "SetOpCmd": (value: number) => string; + "SetOpStrategy": (value: number) => string; + "OnConflictAction": (value: number) => string; + "LimitOption": (value: number) => string; + "LockClauseStrength": (value: number) => string; + "LockWaitPolicy": (value: number) => string; + "LockTupleMode": (value: number) => string; + "KeywordKind": (value: number) => string; + "Token": (value: number) => string; +}; +export const enumToStringMap: EnumToStringMap = { + "OverridingKind": (value: number): string => { + switch (value) { + case 0: + return "OVERRIDING_NOT_SET"; + case 1: + return "OVERRIDING_USER_VALUE"; + case 2: + return "OVERRIDING_SYSTEM_VALUE"; + default: + throw new Error("Value not recognized in enum OverridingKind"); + } + }, + "QuerySource": (value: number): string => { + switch (value) { + case 0: + return "QSRC_ORIGINAL"; + case 1: + return "QSRC_PARSER"; + case 2: + return "QSRC_INSTEAD_RULE"; + case 3: + return "QSRC_QUAL_INSTEAD_RULE"; + case 4: + return "QSRC_NON_INSTEAD_RULE"; + default: + throw new Error("Value not recognized in enum QuerySource"); + } + }, + "SortByDir": (value: number): string => { + switch (value) { + case 0: + return "SORTBY_DEFAULT"; + case 1: + return "SORTBY_ASC"; + case 2: + return "SORTBY_DESC"; + case 3: + return "SORTBY_USING"; + default: + throw new Error("Value not recognized in enum SortByDir"); + } + }, + "SortByNulls": (value: number): string => { + switch (value) { + case 0: + return "SORTBY_NULLS_DEFAULT"; + case 1: + return "SORTBY_NULLS_FIRST"; + case 2: + return "SORTBY_NULLS_LAST"; + default: + throw new Error("Value not recognized in enum SortByNulls"); + } + }, + "SetQuantifier": (value: number): string => { + switch (value) { + case 0: + return "SET_QUANTIFIER_DEFAULT"; + case 1: + return "SET_QUANTIFIER_ALL"; + case 2: + return "SET_QUANTIFIER_DISTINCT"; + default: + throw new Error("Value not recognized in enum SetQuantifier"); + } + }, + "A_Expr_Kind": (value: number): string => { + switch (value) { + case 0: + return "AEXPR_OP"; + case 1: + return "AEXPR_OP_ANY"; + case 2: + return "AEXPR_OP_ALL"; + case 3: + return "AEXPR_DISTINCT"; + case 4: + return "AEXPR_NOT_DISTINCT"; + case 5: + return "AEXPR_NULLIF"; + case 6: + return "AEXPR_IN"; + case 7: + return "AEXPR_LIKE"; + case 8: + return "AEXPR_ILIKE"; + case 9: + return "AEXPR_SIMILAR"; + case 10: + return "AEXPR_BETWEEN"; + case 11: + return "AEXPR_NOT_BETWEEN"; + case 12: + return "AEXPR_BETWEEN_SYM"; + case 13: + return "AEXPR_NOT_BETWEEN_SYM"; + default: + throw new Error("Value not recognized in enum A_Expr_Kind"); + } + }, + "RoleSpecType": (value: number): string => { + switch (value) { + case 0: + return "ROLESPEC_CSTRING"; + case 1: + return "ROLESPEC_CURRENT_ROLE"; + case 2: + return "ROLESPEC_CURRENT_USER"; + case 3: + return "ROLESPEC_SESSION_USER"; + case 4: + return "ROLESPEC_PUBLIC"; + default: + throw new Error("Value not recognized in enum RoleSpecType"); + } + }, + "TableLikeOption": (value: number): string => { + switch (value) { + case 0: + return "CREATE_TABLE_LIKE_COMMENTS"; + case 1: + return "CREATE_TABLE_LIKE_COMPRESSION"; + case 2: + return "CREATE_TABLE_LIKE_CONSTRAINTS"; + case 3: + return "CREATE_TABLE_LIKE_DEFAULTS"; + case 4: + return "CREATE_TABLE_LIKE_GENERATED"; + case 5: + return "CREATE_TABLE_LIKE_IDENTITY"; + case 6: + return "CREATE_TABLE_LIKE_INDEXES"; + case 7: + return "CREATE_TABLE_LIKE_STATISTICS"; + case 8: + return "CREATE_TABLE_LIKE_STORAGE"; + case 9: + return "CREATE_TABLE_LIKE_ALL"; + default: + throw new Error("Value not recognized in enum TableLikeOption"); + } + }, + "DefElemAction": (value: number): string => { + switch (value) { + case 0: + return "DEFELEM_UNSPEC"; + case 1: + return "DEFELEM_SET"; + case 2: + return "DEFELEM_ADD"; + case 3: + return "DEFELEM_DROP"; + default: + throw new Error("Value not recognized in enum DefElemAction"); + } + }, + "PartitionStrategy": (value: number): string => { + switch (value) { + case 0: + return "PARTITION_STRATEGY_LIST"; + case 1: + return "PARTITION_STRATEGY_RANGE"; + case 2: + return "PARTITION_STRATEGY_HASH"; + default: + throw new Error("Value not recognized in enum PartitionStrategy"); + } + }, + "PartitionRangeDatumKind": (value: number): string => { + switch (value) { + case 0: + return "PARTITION_RANGE_DATUM_MINVALUE"; + case 1: + return "PARTITION_RANGE_DATUM_VALUE"; + case 2: + return "PARTITION_RANGE_DATUM_MAXVALUE"; + default: + throw new Error("Value not recognized in enum PartitionRangeDatumKind"); + } + }, + "RTEKind": (value: number): string => { + switch (value) { + case 0: + return "RTE_RELATION"; + case 1: + return "RTE_SUBQUERY"; + case 2: + return "RTE_JOIN"; + case 3: + return "RTE_FUNCTION"; + case 4: + return "RTE_TABLEFUNC"; + case 5: + return "RTE_VALUES"; + case 6: + return "RTE_CTE"; + case 7: + return "RTE_NAMEDTUPLESTORE"; + case 8: + return "RTE_RESULT"; + default: + throw new Error("Value not recognized in enum RTEKind"); + } + }, + "WCOKind": (value: number): string => { + switch (value) { + case 0: + return "WCO_VIEW_CHECK"; + case 1: + return "WCO_RLS_INSERT_CHECK"; + case 2: + return "WCO_RLS_UPDATE_CHECK"; + case 3: + return "WCO_RLS_CONFLICT_CHECK"; + case 4: + return "WCO_RLS_MERGE_UPDATE_CHECK"; + case 5: + return "WCO_RLS_MERGE_DELETE_CHECK"; + default: + throw new Error("Value not recognized in enum WCOKind"); + } + }, + "GroupingSetKind": (value: number): string => { + switch (value) { + case 0: + return "GROUPING_SET_EMPTY"; + case 1: + return "GROUPING_SET_SIMPLE"; + case 2: + return "GROUPING_SET_ROLLUP"; + case 3: + return "GROUPING_SET_CUBE"; + case 4: + return "GROUPING_SET_SETS"; + default: + throw new Error("Value not recognized in enum GroupingSetKind"); + } + }, + "CTEMaterialize": (value: number): string => { + switch (value) { + case 0: + return "CTEMaterializeDefault"; + case 1: + return "CTEMaterializeAlways"; + case 2: + return "CTEMaterializeNever"; + default: + throw new Error("Value not recognized in enum CTEMaterialize"); + } + }, + "SetOperation": (value: number): string => { + switch (value) { + case 0: + return "SETOP_NONE"; + case 1: + return "SETOP_UNION"; + case 2: + return "SETOP_INTERSECT"; + case 3: + return "SETOP_EXCEPT"; + default: + throw new Error("Value not recognized in enum SetOperation"); + } + }, + "ObjectType": (value: number): string => { + switch (value) { + case 0: + return "OBJECT_ACCESS_METHOD"; + case 1: + return "OBJECT_AGGREGATE"; + case 2: + return "OBJECT_AMOP"; + case 3: + return "OBJECT_AMPROC"; + case 4: + return "OBJECT_ATTRIBUTE"; + case 5: + return "OBJECT_CAST"; + case 6: + return "OBJECT_COLUMN"; + case 7: + return "OBJECT_COLLATION"; + case 8: + return "OBJECT_CONVERSION"; + case 9: + return "OBJECT_DATABASE"; + case 10: + return "OBJECT_DEFAULT"; + case 11: + return "OBJECT_DEFACL"; + case 12: + return "OBJECT_DOMAIN"; + case 13: + return "OBJECT_DOMCONSTRAINT"; + case 14: + return "OBJECT_EVENT_TRIGGER"; + case 15: + return "OBJECT_EXTENSION"; + case 16: + return "OBJECT_FDW"; + case 17: + return "OBJECT_FOREIGN_SERVER"; + case 18: + return "OBJECT_FOREIGN_TABLE"; + case 19: + return "OBJECT_FUNCTION"; + case 20: + return "OBJECT_INDEX"; + case 21: + return "OBJECT_LANGUAGE"; + case 22: + return "OBJECT_LARGEOBJECT"; + case 23: + return "OBJECT_MATVIEW"; + case 24: + return "OBJECT_OPCLASS"; + case 25: + return "OBJECT_OPERATOR"; + case 26: + return "OBJECT_OPFAMILY"; + case 27: + return "OBJECT_PARAMETER_ACL"; + case 28: + return "OBJECT_POLICY"; + case 29: + return "OBJECT_PROCEDURE"; + case 30: + return "OBJECT_PUBLICATION"; + case 31: + return "OBJECT_PUBLICATION_NAMESPACE"; + case 32: + return "OBJECT_PUBLICATION_REL"; + case 33: + return "OBJECT_ROLE"; + case 34: + return "OBJECT_ROUTINE"; + case 35: + return "OBJECT_RULE"; + case 36: + return "OBJECT_SCHEMA"; + case 37: + return "OBJECT_SEQUENCE"; + case 38: + return "OBJECT_SUBSCRIPTION"; + case 39: + return "OBJECT_STATISTIC_EXT"; + case 40: + return "OBJECT_TABCONSTRAINT"; + case 41: + return "OBJECT_TABLE"; + case 42: + return "OBJECT_TABLESPACE"; + case 43: + return "OBJECT_TRANSFORM"; + case 44: + return "OBJECT_TRIGGER"; + case 45: + return "OBJECT_TSCONFIGURATION"; + case 46: + return "OBJECT_TSDICTIONARY"; + case 47: + return "OBJECT_TSPARSER"; + case 48: + return "OBJECT_TSTEMPLATE"; + case 49: + return "OBJECT_TYPE"; + case 50: + return "OBJECT_USER_MAPPING"; + case 51: + return "OBJECT_VIEW"; + default: + throw new Error("Value not recognized in enum ObjectType"); + } + }, + "DropBehavior": (value: number): string => { + switch (value) { + case 0: + return "DROP_RESTRICT"; + case 1: + return "DROP_CASCADE"; + default: + throw new Error("Value not recognized in enum DropBehavior"); + } + }, + "AlterTableType": (value: number): string => { + switch (value) { + case 0: + return "AT_AddColumn"; + case 1: + return "AT_AddColumnToView"; + case 2: + return "AT_ColumnDefault"; + case 3: + return "AT_CookedColumnDefault"; + case 4: + return "AT_DropNotNull"; + case 5: + return "AT_SetNotNull"; + case 6: + return "AT_DropExpression"; + case 7: + return "AT_CheckNotNull"; + case 8: + return "AT_SetStatistics"; + case 9: + return "AT_SetOptions"; + case 10: + return "AT_ResetOptions"; + case 11: + return "AT_SetStorage"; + case 12: + return "AT_SetCompression"; + case 13: + return "AT_DropColumn"; + case 14: + return "AT_AddIndex"; + case 15: + return "AT_ReAddIndex"; + case 16: + return "AT_AddConstraint"; + case 17: + return "AT_ReAddConstraint"; + case 18: + return "AT_ReAddDomainConstraint"; + case 19: + return "AT_AlterConstraint"; + case 20: + return "AT_ValidateConstraint"; + case 21: + return "AT_AddIndexConstraint"; + case 22: + return "AT_DropConstraint"; + case 23: + return "AT_ReAddComment"; + case 24: + return "AT_AlterColumnType"; + case 25: + return "AT_AlterColumnGenericOptions"; + case 26: + return "AT_ChangeOwner"; + case 27: + return "AT_ClusterOn"; + case 28: + return "AT_DropCluster"; + case 29: + return "AT_SetLogged"; + case 30: + return "AT_SetUnLogged"; + case 31: + return "AT_DropOids"; + case 32: + return "AT_SetAccessMethod"; + case 33: + return "AT_SetTableSpace"; + case 34: + return "AT_SetRelOptions"; + case 35: + return "AT_ResetRelOptions"; + case 36: + return "AT_ReplaceRelOptions"; + case 37: + return "AT_EnableTrig"; + case 38: + return "AT_EnableAlwaysTrig"; + case 39: + return "AT_EnableReplicaTrig"; + case 40: + return "AT_DisableTrig"; + case 41: + return "AT_EnableTrigAll"; + case 42: + return "AT_DisableTrigAll"; + case 43: + return "AT_EnableTrigUser"; + case 44: + return "AT_DisableTrigUser"; + case 45: + return "AT_EnableRule"; + case 46: + return "AT_EnableAlwaysRule"; + case 47: + return "AT_EnableReplicaRule"; + case 48: + return "AT_DisableRule"; + case 49: + return "AT_AddInherit"; + case 50: + return "AT_DropInherit"; + case 51: + return "AT_AddOf"; + case 52: + return "AT_DropOf"; + case 53: + return "AT_ReplicaIdentity"; + case 54: + return "AT_EnableRowSecurity"; + case 55: + return "AT_DisableRowSecurity"; + case 56: + return "AT_ForceRowSecurity"; + case 57: + return "AT_NoForceRowSecurity"; + case 58: + return "AT_GenericOptions"; + case 59: + return "AT_AttachPartition"; + case 60: + return "AT_DetachPartition"; + case 61: + return "AT_DetachPartitionFinalize"; + case 62: + return "AT_AddIdentity"; + case 63: + return "AT_SetIdentity"; + case 64: + return "AT_DropIdentity"; + case 65: + return "AT_ReAddStatistics"; + default: + throw new Error("Value not recognized in enum AlterTableType"); + } + }, + "GrantTargetType": (value: number): string => { + switch (value) { + case 0: + return "ACL_TARGET_OBJECT"; + case 1: + return "ACL_TARGET_ALL_IN_SCHEMA"; + case 2: + return "ACL_TARGET_DEFAULTS"; + default: + throw new Error("Value not recognized in enum GrantTargetType"); + } + }, + "VariableSetKind": (value: number): string => { + switch (value) { + case 0: + return "VAR_SET_VALUE"; + case 1: + return "VAR_SET_DEFAULT"; + case 2: + return "VAR_SET_CURRENT"; + case 3: + return "VAR_SET_MULTI"; + case 4: + return "VAR_RESET"; + case 5: + return "VAR_RESET_ALL"; + default: + throw new Error("Value not recognized in enum VariableSetKind"); + } + }, + "ConstrType": (value: number): string => { + switch (value) { + case 0: + return "CONSTR_NULL"; + case 1: + return "CONSTR_NOTNULL"; + case 2: + return "CONSTR_DEFAULT"; + case 3: + return "CONSTR_IDENTITY"; + case 4: + return "CONSTR_GENERATED"; + case 5: + return "CONSTR_CHECK"; + case 6: + return "CONSTR_PRIMARY"; + case 7: + return "CONSTR_UNIQUE"; + case 8: + return "CONSTR_EXCLUSION"; + case 9: + return "CONSTR_FOREIGN"; + case 10: + return "CONSTR_ATTR_DEFERRABLE"; + case 11: + return "CONSTR_ATTR_NOT_DEFERRABLE"; + case 12: + return "CONSTR_ATTR_DEFERRED"; + case 13: + return "CONSTR_ATTR_IMMEDIATE"; + default: + throw new Error("Value not recognized in enum ConstrType"); + } + }, + "ImportForeignSchemaType": (value: number): string => { + switch (value) { + case 0: + return "FDW_IMPORT_SCHEMA_ALL"; + case 1: + return "FDW_IMPORT_SCHEMA_LIMIT_TO"; + case 2: + return "FDW_IMPORT_SCHEMA_EXCEPT"; + default: + throw new Error("Value not recognized in enum ImportForeignSchemaType"); + } + }, + "RoleStmtType": (value: number): string => { + switch (value) { + case 0: + return "ROLESTMT_ROLE"; + case 1: + return "ROLESTMT_USER"; + case 2: + return "ROLESTMT_GROUP"; + default: + throw new Error("Value not recognized in enum RoleStmtType"); + } + }, + "FetchDirection": (value: number): string => { + switch (value) { + case 0: + return "FETCH_FORWARD"; + case 1: + return "FETCH_BACKWARD"; + case 2: + return "FETCH_ABSOLUTE"; + case 3: + return "FETCH_RELATIVE"; + default: + throw new Error("Value not recognized in enum FetchDirection"); + } + }, + "FunctionParameterMode": (value: number): string => { + switch (value) { + case 0: + return "FUNC_PARAM_IN"; + case 1: + return "FUNC_PARAM_OUT"; + case 2: + return "FUNC_PARAM_INOUT"; + case 3: + return "FUNC_PARAM_VARIADIC"; + case 4: + return "FUNC_PARAM_TABLE"; + case 5: + return "FUNC_PARAM_DEFAULT"; + default: + throw new Error("Value not recognized in enum FunctionParameterMode"); + } + }, + "TransactionStmtKind": (value: number): string => { + switch (value) { + case 0: + return "TRANS_STMT_BEGIN"; + case 1: + return "TRANS_STMT_START"; + case 2: + return "TRANS_STMT_COMMIT"; + case 3: + return "TRANS_STMT_ROLLBACK"; + case 4: + return "TRANS_STMT_SAVEPOINT"; + case 5: + return "TRANS_STMT_RELEASE"; + case 6: + return "TRANS_STMT_ROLLBACK_TO"; + case 7: + return "TRANS_STMT_PREPARE"; + case 8: + return "TRANS_STMT_COMMIT_PREPARED"; + case 9: + return "TRANS_STMT_ROLLBACK_PREPARED"; + default: + throw new Error("Value not recognized in enum TransactionStmtKind"); + } + }, + "ViewCheckOption": (value: number): string => { + switch (value) { + case 0: + return "NO_CHECK_OPTION"; + case 1: + return "LOCAL_CHECK_OPTION"; + case 2: + return "CASCADED_CHECK_OPTION"; + default: + throw new Error("Value not recognized in enum ViewCheckOption"); + } + }, + "DiscardMode": (value: number): string => { + switch (value) { + case 0: + return "DISCARD_ALL"; + case 1: + return "DISCARD_PLANS"; + case 2: + return "DISCARD_SEQUENCES"; + case 3: + return "DISCARD_TEMP"; + default: + throw new Error("Value not recognized in enum DiscardMode"); + } + }, + "ReindexObjectType": (value: number): string => { + switch (value) { + case 0: + return "REINDEX_OBJECT_INDEX"; + case 1: + return "REINDEX_OBJECT_TABLE"; + case 2: + return "REINDEX_OBJECT_SCHEMA"; + case 3: + return "REINDEX_OBJECT_SYSTEM"; + case 4: + return "REINDEX_OBJECT_DATABASE"; + default: + throw new Error("Value not recognized in enum ReindexObjectType"); + } + }, + "AlterTSConfigType": (value: number): string => { + switch (value) { + case 0: + return "ALTER_TSCONFIG_ADD_MAPPING"; + case 1: + return "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN"; + case 2: + return "ALTER_TSCONFIG_REPLACE_DICT"; + case 3: + return "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN"; + case 4: + return "ALTER_TSCONFIG_DROP_MAPPING"; + default: + throw new Error("Value not recognized in enum AlterTSConfigType"); + } + }, + "PublicationObjSpecType": (value: number): string => { + switch (value) { + case 0: + return "PUBLICATIONOBJ_TABLE"; + case 1: + return "PUBLICATIONOBJ_TABLES_IN_SCHEMA"; + case 2: + return "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA"; + case 3: + return "PUBLICATIONOBJ_CONTINUATION"; + default: + throw new Error("Value not recognized in enum PublicationObjSpecType"); + } + }, + "AlterPublicationAction": (value: number): string => { + switch (value) { + case 0: + return "AP_AddObjects"; + case 1: + return "AP_DropObjects"; + case 2: + return "AP_SetObjects"; + default: + throw new Error("Value not recognized in enum AlterPublicationAction"); + } + }, + "AlterSubscriptionType": (value: number): string => { + switch (value) { + case 0: + return "ALTER_SUBSCRIPTION_OPTIONS"; + case 1: + return "ALTER_SUBSCRIPTION_CONNECTION"; + case 2: + return "ALTER_SUBSCRIPTION_SET_PUBLICATION"; + case 3: + return "ALTER_SUBSCRIPTION_ADD_PUBLICATION"; + case 4: + return "ALTER_SUBSCRIPTION_DROP_PUBLICATION"; + case 5: + return "ALTER_SUBSCRIPTION_REFRESH"; + case 6: + return "ALTER_SUBSCRIPTION_ENABLED"; + case 7: + return "ALTER_SUBSCRIPTION_SKIP"; + default: + throw new Error("Value not recognized in enum AlterSubscriptionType"); + } + }, + "OnCommitAction": (value: number): string => { + switch (value) { + case 0: + return "ONCOMMIT_NOOP"; + case 1: + return "ONCOMMIT_PRESERVE_ROWS"; + case 2: + return "ONCOMMIT_DELETE_ROWS"; + case 3: + return "ONCOMMIT_DROP"; + default: + throw new Error("Value not recognized in enum OnCommitAction"); + } + }, + "ParamKind": (value: number): string => { + switch (value) { + case 0: + return "PARAM_EXTERN"; + case 1: + return "PARAM_EXEC"; + case 2: + return "PARAM_SUBLINK"; + case 3: + return "PARAM_MULTIEXPR"; + default: + throw new Error("Value not recognized in enum ParamKind"); + } + }, + "CoercionContext": (value: number): string => { + switch (value) { + case 0: + return "COERCION_IMPLICIT"; + case 1: + return "COERCION_ASSIGNMENT"; + case 2: + return "COERCION_PLPGSQL"; + case 3: + return "COERCION_EXPLICIT"; + default: + throw new Error("Value not recognized in enum CoercionContext"); + } + }, + "CoercionForm": (value: number): string => { + switch (value) { + case 0: + return "COERCE_EXPLICIT_CALL"; + case 1: + return "COERCE_EXPLICIT_CAST"; + case 2: + return "COERCE_IMPLICIT_CAST"; + case 3: + return "COERCE_SQL_SYNTAX"; + default: + throw new Error("Value not recognized in enum CoercionForm"); + } + }, + "BoolExprType": (value: number): string => { + switch (value) { + case 0: + return "AND_EXPR"; + case 1: + return "OR_EXPR"; + case 2: + return "NOT_EXPR"; + default: + throw new Error("Value not recognized in enum BoolExprType"); + } + }, + "SubLinkType": (value: number): string => { + switch (value) { + case 0: + return "EXISTS_SUBLINK"; + case 1: + return "ALL_SUBLINK"; + case 2: + return "ANY_SUBLINK"; + case 3: + return "ROWCOMPARE_SUBLINK"; + case 4: + return "EXPR_SUBLINK"; + case 5: + return "MULTIEXPR_SUBLINK"; + case 6: + return "ARRAY_SUBLINK"; + case 7: + return "CTE_SUBLINK"; + default: + throw new Error("Value not recognized in enum SubLinkType"); + } + }, + "RowCompareType": (value: number): string => { + switch (value) { + case 0: + return "ROWCOMPARE_LT"; + case 1: + return "ROWCOMPARE_LE"; + case 2: + return "ROWCOMPARE_EQ"; + case 3: + return "ROWCOMPARE_GE"; + case 4: + return "ROWCOMPARE_GT"; + case 5: + return "ROWCOMPARE_NE"; + default: + throw new Error("Value not recognized in enum RowCompareType"); + } + }, + "MinMaxOp": (value: number): string => { + switch (value) { + case 0: + return "IS_GREATEST"; + case 1: + return "IS_LEAST"; + default: + throw new Error("Value not recognized in enum MinMaxOp"); + } + }, + "SQLValueFunctionOp": (value: number): string => { + switch (value) { + case 0: + return "SVFOP_CURRENT_DATE"; + case 1: + return "SVFOP_CURRENT_TIME"; + case 2: + return "SVFOP_CURRENT_TIME_N"; + case 3: + return "SVFOP_CURRENT_TIMESTAMP"; + case 4: + return "SVFOP_CURRENT_TIMESTAMP_N"; + case 5: + return "SVFOP_LOCALTIME"; + case 6: + return "SVFOP_LOCALTIME_N"; + case 7: + return "SVFOP_LOCALTIMESTAMP"; + case 8: + return "SVFOP_LOCALTIMESTAMP_N"; + case 9: + return "SVFOP_CURRENT_ROLE"; + case 10: + return "SVFOP_CURRENT_USER"; + case 11: + return "SVFOP_USER"; + case 12: + return "SVFOP_SESSION_USER"; + case 13: + return "SVFOP_CURRENT_CATALOG"; + case 14: + return "SVFOP_CURRENT_SCHEMA"; + default: + throw new Error("Value not recognized in enum SQLValueFunctionOp"); + } + }, + "XmlExprOp": (value: number): string => { + switch (value) { + case 0: + return "IS_XMLCONCAT"; + case 1: + return "IS_XMLELEMENT"; + case 2: + return "IS_XMLFOREST"; + case 3: + return "IS_XMLPARSE"; + case 4: + return "IS_XMLPI"; + case 5: + return "IS_XMLROOT"; + case 6: + return "IS_XMLSERIALIZE"; + case 7: + return "IS_DOCUMENT"; + default: + throw new Error("Value not recognized in enum XmlExprOp"); + } + }, + "XmlOptionType": (value: number): string => { + switch (value) { + case 0: + return "XMLOPTION_DOCUMENT"; + case 1: + return "XMLOPTION_CONTENT"; + default: + throw new Error("Value not recognized in enum XmlOptionType"); + } + }, + "JsonEncoding": (value: number): string => { + switch (value) { + case 0: + return "JS_ENC_DEFAULT"; + case 1: + return "JS_ENC_UTF8"; + case 2: + return "JS_ENC_UTF16"; + case 3: + return "JS_ENC_UTF32"; + default: + throw new Error("Value not recognized in enum JsonEncoding"); + } + }, + "JsonFormatType": (value: number): string => { + switch (value) { + case 0: + return "JS_FORMAT_DEFAULT"; + case 1: + return "JS_FORMAT_JSON"; + case 2: + return "JS_FORMAT_JSONB"; + default: + throw new Error("Value not recognized in enum JsonFormatType"); + } + }, + "JsonConstructorType": (value: number): string => { + switch (value) { + case 0: + return "JSCTOR_JSON_OBJECT"; + case 1: + return "JSCTOR_JSON_ARRAY"; + case 2: + return "JSCTOR_JSON_OBJECTAGG"; + case 3: + return "JSCTOR_JSON_ARRAYAGG"; + default: + throw new Error("Value not recognized in enum JsonConstructorType"); + } + }, + "JsonValueType": (value: number): string => { + switch (value) { + case 0: + return "JS_TYPE_ANY"; + case 1: + return "JS_TYPE_OBJECT"; + case 2: + return "JS_TYPE_ARRAY"; + case 3: + return "JS_TYPE_SCALAR"; + default: + throw new Error("Value not recognized in enum JsonValueType"); + } + }, + "NullTestType": (value: number): string => { + switch (value) { + case 0: + return "IS_NULL"; + case 1: + return "IS_NOT_NULL"; + default: + throw new Error("Value not recognized in enum NullTestType"); + } + }, + "BoolTestType": (value: number): string => { + switch (value) { + case 0: + return "IS_TRUE"; + case 1: + return "IS_NOT_TRUE"; + case 2: + return "IS_FALSE"; + case 3: + return "IS_NOT_FALSE"; + case 4: + return "IS_UNKNOWN"; + case 5: + return "IS_NOT_UNKNOWN"; + default: + throw new Error("Value not recognized in enum BoolTestType"); + } + }, + "CmdType": (value: number): string => { + switch (value) { + case 0: + return "CMD_UNKNOWN"; + case 1: + return "CMD_SELECT"; + case 2: + return "CMD_UPDATE"; + case 3: + return "CMD_INSERT"; + case 4: + return "CMD_DELETE"; + case 5: + return "CMD_MERGE"; + case 6: + return "CMD_UTILITY"; + case 7: + return "CMD_NOTHING"; + default: + throw new Error("Value not recognized in enum CmdType"); + } + }, + "JoinType": (value: number): string => { + switch (value) { + case 0: + return "JOIN_INNER"; + case 1: + return "JOIN_LEFT"; + case 2: + return "JOIN_FULL"; + case 3: + return "JOIN_RIGHT"; + case 4: + return "JOIN_SEMI"; + case 5: + return "JOIN_ANTI"; + case 6: + return "JOIN_RIGHT_ANTI"; + case 7: + return "JOIN_UNIQUE_OUTER"; + case 8: + return "JOIN_UNIQUE_INNER"; + default: + throw new Error("Value not recognized in enum JoinType"); + } + }, + "AggStrategy": (value: number): string => { + switch (value) { + case 0: + return "AGG_PLAIN"; + case 1: + return "AGG_SORTED"; + case 2: + return "AGG_HASHED"; + case 3: + return "AGG_MIXED"; + default: + throw new Error("Value not recognized in enum AggStrategy"); + } + }, + "AggSplit": (value: number): string => { + switch (value) { + case 0: + return "AGGSPLIT_SIMPLE"; + case 1: + return "AGGSPLIT_INITIAL_SERIAL"; + case 2: + return "AGGSPLIT_FINAL_DESERIAL"; + default: + throw new Error("Value not recognized in enum AggSplit"); + } + }, + "SetOpCmd": (value: number): string => { + switch (value) { + case 0: + return "SETOPCMD_INTERSECT"; + case 1: + return "SETOPCMD_INTERSECT_ALL"; + case 2: + return "SETOPCMD_EXCEPT"; + case 3: + return "SETOPCMD_EXCEPT_ALL"; + default: + throw new Error("Value not recognized in enum SetOpCmd"); + } + }, + "SetOpStrategy": (value: number): string => { + switch (value) { + case 0: + return "SETOP_SORTED"; + case 1: + return "SETOP_HASHED"; + default: + throw new Error("Value not recognized in enum SetOpStrategy"); + } + }, + "OnConflictAction": (value: number): string => { + switch (value) { + case 0: + return "ONCONFLICT_NONE"; + case 1: + return "ONCONFLICT_NOTHING"; + case 2: + return "ONCONFLICT_UPDATE"; + default: + throw new Error("Value not recognized in enum OnConflictAction"); + } + }, + "LimitOption": (value: number): string => { + switch (value) { + case 0: + return "LIMIT_OPTION_DEFAULT"; + case 1: + return "LIMIT_OPTION_COUNT"; + case 2: + return "LIMIT_OPTION_WITH_TIES"; + default: + throw new Error("Value not recognized in enum LimitOption"); + } + }, + "LockClauseStrength": (value: number): string => { + switch (value) { + case 0: + return "LCS_NONE"; + case 1: + return "LCS_FORKEYSHARE"; + case 2: + return "LCS_FORSHARE"; + case 3: + return "LCS_FORNOKEYUPDATE"; + case 4: + return "LCS_FORUPDATE"; + default: + throw new Error("Value not recognized in enum LockClauseStrength"); + } + }, + "LockWaitPolicy": (value: number): string => { + switch (value) { + case 0: + return "LockWaitBlock"; + case 1: + return "LockWaitSkip"; + case 2: + return "LockWaitError"; + default: + throw new Error("Value not recognized in enum LockWaitPolicy"); + } + }, + "LockTupleMode": (value: number): string => { + switch (value) { + case 0: + return "LockTupleKeyShare"; + case 1: + return "LockTupleShare"; + case 2: + return "LockTupleNoKeyExclusive"; + case 3: + return "LockTupleExclusive"; + default: + throw new Error("Value not recognized in enum LockTupleMode"); + } + }, + "KeywordKind": (value: number): string => { + switch (value) { + case 0: + return "NO_KEYWORD"; + case 1: + return "UNRESERVED_KEYWORD"; + case 2: + return "COL_NAME_KEYWORD"; + case 3: + return "TYPE_FUNC_NAME_KEYWORD"; + case 4: + return "RESERVED_KEYWORD"; + default: + throw new Error("Value not recognized in enum KeywordKind"); + } + }, + "Token": (value: number): string => { + switch (value) { + case 0: + return "NUL"; + case 36: + return "ASCII_36"; + case 37: + return "ASCII_37"; + case 40: + return "ASCII_40"; + case 41: + return "ASCII_41"; + case 42: + return "ASCII_42"; + case 43: + return "ASCII_43"; + case 44: + return "ASCII_44"; + case 45: + return "ASCII_45"; + case 46: + return "ASCII_46"; + case 47: + return "ASCII_47"; + case 58: + return "ASCII_58"; + case 59: + return "ASCII_59"; + case 60: + return "ASCII_60"; + case 61: + return "ASCII_61"; + case 62: + return "ASCII_62"; + case 63: + return "ASCII_63"; + case 91: + return "ASCII_91"; + case 92: + return "ASCII_92"; + case 93: + return "ASCII_93"; + case 94: + return "ASCII_94"; + case 258: + return "IDENT"; + case 259: + return "UIDENT"; + case 260: + return "FCONST"; + case 261: + return "SCONST"; + case 262: + return "USCONST"; + case 263: + return "BCONST"; + case 264: + return "XCONST"; + case 265: + return "Op"; + case 266: + return "ICONST"; + case 267: + return "PARAM"; + case 268: + return "TYPECAST"; + case 269: + return "DOT_DOT"; + case 270: + return "COLON_EQUALS"; + case 271: + return "EQUALS_GREATER"; + case 272: + return "LESS_EQUALS"; + case 273: + return "GREATER_EQUALS"; + case 274: + return "NOT_EQUALS"; + case 275: + return "SQL_COMMENT"; + case 276: + return "C_COMMENT"; + case 277: + return "ABORT_P"; + case 278: + return "ABSENT"; + case 279: + return "ABSOLUTE_P"; + case 280: + return "ACCESS"; + case 281: + return "ACTION"; + case 282: + return "ADD_P"; + case 283: + return "ADMIN"; + case 284: + return "AFTER"; + case 285: + return "AGGREGATE"; + case 286: + return "ALL"; + case 287: + return "ALSO"; + case 288: + return "ALTER"; + case 289: + return "ALWAYS"; + case 290: + return "ANALYSE"; + case 291: + return "ANALYZE"; + case 292: + return "AND"; + case 293: + return "ANY"; + case 294: + return "ARRAY"; + case 295: + return "AS"; + case 296: + return "ASC"; + case 297: + return "ASENSITIVE"; + case 298: + return "ASSERTION"; + case 299: + return "ASSIGNMENT"; + case 300: + return "ASYMMETRIC"; + case 301: + return "ATOMIC"; + case 302: + return "AT"; + case 303: + return "ATTACH"; + case 304: + return "ATTRIBUTE"; + case 305: + return "AUTHORIZATION"; + case 306: + return "BACKWARD"; + case 307: + return "BEFORE"; + case 308: + return "BEGIN_P"; + case 309: + return "BETWEEN"; + case 310: + return "BIGINT"; + case 311: + return "BINARY"; + case 312: + return "BIT"; + case 313: + return "BOOLEAN_P"; + case 314: + return "BOTH"; + case 315: + return "BREADTH"; + case 316: + return "BY"; + case 317: + return "CACHE"; + case 318: + return "CALL"; + case 319: + return "CALLED"; + case 320: + return "CASCADE"; + case 321: + return "CASCADED"; + case 322: + return "CASE"; + case 323: + return "CAST"; + case 324: + return "CATALOG_P"; + case 325: + return "CHAIN"; + case 326: + return "CHAR_P"; + case 327: + return "CHARACTER"; + case 328: + return "CHARACTERISTICS"; + case 329: + return "CHECK"; + case 330: + return "CHECKPOINT"; + case 331: + return "CLASS"; + case 332: + return "CLOSE"; + case 333: + return "CLUSTER"; + case 334: + return "COALESCE"; + case 335: + return "COLLATE"; + case 336: + return "COLLATION"; + case 337: + return "COLUMN"; + case 338: + return "COLUMNS"; + case 339: + return "COMMENT"; + case 340: + return "COMMENTS"; + case 341: + return "COMMIT"; + case 342: + return "COMMITTED"; + case 343: + return "COMPRESSION"; + case 344: + return "CONCURRENTLY"; + case 345: + return "CONFIGURATION"; + case 346: + return "CONFLICT"; + case 347: + return "CONNECTION"; + case 348: + return "CONSTRAINT"; + case 349: + return "CONSTRAINTS"; + case 350: + return "CONTENT_P"; + case 351: + return "CONTINUE_P"; + case 352: + return "CONVERSION_P"; + case 353: + return "COPY"; + case 354: + return "COST"; + case 355: + return "CREATE"; + case 356: + return "CROSS"; + case 357: + return "CSV"; + case 358: + return "CUBE"; + case 359: + return "CURRENT_P"; + case 360: + return "CURRENT_CATALOG"; + case 361: + return "CURRENT_DATE"; + case 362: + return "CURRENT_ROLE"; + case 363: + return "CURRENT_SCHEMA"; + case 364: + return "CURRENT_TIME"; + case 365: + return "CURRENT_TIMESTAMP"; + case 366: + return "CURRENT_USER"; + case 367: + return "CURSOR"; + case 368: + return "CYCLE"; + case 369: + return "DATA_P"; + case 370: + return "DATABASE"; + case 371: + return "DAY_P"; + case 372: + return "DEALLOCATE"; + case 373: + return "DEC"; + case 374: + return "DECIMAL_P"; + case 375: + return "DECLARE"; + case 376: + return "DEFAULT"; + case 377: + return "DEFAULTS"; + case 378: + return "DEFERRABLE"; + case 379: + return "DEFERRED"; + case 380: + return "DEFINER"; + case 381: + return "DELETE_P"; + case 382: + return "DELIMITER"; + case 383: + return "DELIMITERS"; + case 384: + return "DEPENDS"; + case 385: + return "DEPTH"; + case 386: + return "DESC"; + case 387: + return "DETACH"; + case 388: + return "DICTIONARY"; + case 389: + return "DISABLE_P"; + case 390: + return "DISCARD"; + case 391: + return "DISTINCT"; + case 392: + return "DO"; + case 393: + return "DOCUMENT_P"; + case 394: + return "DOMAIN_P"; + case 395: + return "DOUBLE_P"; + case 396: + return "DROP"; + case 397: + return "EACH"; + case 398: + return "ELSE"; + case 399: + return "ENABLE_P"; + case 400: + return "ENCODING"; + case 401: + return "ENCRYPTED"; + case 402: + return "END_P"; + case 403: + return "ENUM_P"; + case 404: + return "ESCAPE"; + case 405: + return "EVENT"; + case 406: + return "EXCEPT"; + case 407: + return "EXCLUDE"; + case 408: + return "EXCLUDING"; + case 409: + return "EXCLUSIVE"; + case 410: + return "EXECUTE"; + case 411: + return "EXISTS"; + case 412: + return "EXPLAIN"; + case 413: + return "EXPRESSION"; + case 414: + return "EXTENSION"; + case 415: + return "EXTERNAL"; + case 416: + return "EXTRACT"; + case 417: + return "FALSE_P"; + case 418: + return "FAMILY"; + case 419: + return "FETCH"; + case 420: + return "FILTER"; + case 421: + return "FINALIZE"; + case 422: + return "FIRST_P"; + case 423: + return "FLOAT_P"; + case 424: + return "FOLLOWING"; + case 425: + return "FOR"; + case 426: + return "FORCE"; + case 427: + return "FOREIGN"; + case 428: + return "FORMAT"; + case 429: + return "FORWARD"; + case 430: + return "FREEZE"; + case 431: + return "FROM"; + case 432: + return "FULL"; + case 433: + return "FUNCTION"; + case 434: + return "FUNCTIONS"; + case 435: + return "GENERATED"; + case 436: + return "GLOBAL"; + case 437: + return "GRANT"; + case 438: + return "GRANTED"; + case 439: + return "GREATEST"; + case 440: + return "GROUP_P"; + case 441: + return "GROUPING"; + case 442: + return "GROUPS"; + case 443: + return "HANDLER"; + case 444: + return "HAVING"; + case 445: + return "HEADER_P"; + case 446: + return "HOLD"; + case 447: + return "HOUR_P"; + case 448: + return "IDENTITY_P"; + case 449: + return "IF_P"; + case 450: + return "ILIKE"; + case 451: + return "IMMEDIATE"; + case 452: + return "IMMUTABLE"; + case 453: + return "IMPLICIT_P"; + case 454: + return "IMPORT_P"; + case 455: + return "IN_P"; + case 456: + return "INCLUDE"; + case 457: + return "INCLUDING"; + case 458: + return "INCREMENT"; + case 459: + return "INDENT"; + case 460: + return "INDEX"; + case 461: + return "INDEXES"; + case 462: + return "INHERIT"; + case 463: + return "INHERITS"; + case 464: + return "INITIALLY"; + case 465: + return "INLINE_P"; + case 466: + return "INNER_P"; + case 467: + return "INOUT"; + case 468: + return "INPUT_P"; + case 469: + return "INSENSITIVE"; + case 470: + return "INSERT"; + case 471: + return "INSTEAD"; + case 472: + return "INT_P"; + case 473: + return "INTEGER"; + case 474: + return "INTERSECT"; + case 475: + return "INTERVAL"; + case 476: + return "INTO"; + case 477: + return "INVOKER"; + case 478: + return "IS"; + case 479: + return "ISNULL"; + case 480: + return "ISOLATION"; + case 481: + return "JOIN"; + case 482: + return "JSON"; + case 483: + return "JSON_ARRAY"; + case 484: + return "JSON_ARRAYAGG"; + case 485: + return "JSON_OBJECT"; + case 486: + return "JSON_OBJECTAGG"; + case 487: + return "KEY"; + case 488: + return "KEYS"; + case 489: + return "LABEL"; + case 490: + return "LANGUAGE"; + case 491: + return "LARGE_P"; + case 492: + return "LAST_P"; + case 493: + return "LATERAL_P"; + case 494: + return "LEADING"; + case 495: + return "LEAKPROOF"; + case 496: + return "LEAST"; + case 497: + return "LEFT"; + case 498: + return "LEVEL"; + case 499: + return "LIKE"; + case 500: + return "LIMIT"; + case 501: + return "LISTEN"; + case 502: + return "LOAD"; + case 503: + return "LOCAL"; + case 504: + return "LOCALTIME"; + case 505: + return "LOCALTIMESTAMP"; + case 506: + return "LOCATION"; + case 507: + return "LOCK_P"; + case 508: + return "LOCKED"; + case 509: + return "LOGGED"; + case 510: + return "MAPPING"; + case 511: + return "MATCH"; + case 512: + return "MATCHED"; + case 513: + return "MATERIALIZED"; + case 514: + return "MAXVALUE"; + case 515: + return "MERGE"; + case 516: + return "METHOD"; + case 517: + return "MINUTE_P"; + case 518: + return "MINVALUE"; + case 519: + return "MODE"; + case 520: + return "MONTH_P"; + case 521: + return "MOVE"; + case 522: + return "NAME_P"; + case 523: + return "NAMES"; + case 524: + return "NATIONAL"; + case 525: + return "NATURAL"; + case 526: + return "NCHAR"; + case 527: + return "NEW"; + case 528: + return "NEXT"; + case 529: + return "NFC"; + case 530: + return "NFD"; + case 531: + return "NFKC"; + case 532: + return "NFKD"; + case 533: + return "NO"; + case 534: + return "NONE"; + case 535: + return "NORMALIZE"; + case 536: + return "NORMALIZED"; + case 537: + return "NOT"; + case 538: + return "NOTHING"; + case 539: + return "NOTIFY"; + case 540: + return "NOTNULL"; + case 541: + return "NOWAIT"; + case 542: + return "NULL_P"; + case 543: + return "NULLIF"; + case 544: + return "NULLS_P"; + case 545: + return "NUMERIC"; + case 546: + return "OBJECT_P"; + case 547: + return "OF"; + case 548: + return "OFF"; + case 549: + return "OFFSET"; + case 550: + return "OIDS"; + case 551: + return "OLD"; + case 552: + return "ON"; + case 553: + return "ONLY"; + case 554: + return "OPERATOR"; + case 555: + return "OPTION"; + case 556: + return "OPTIONS"; + case 557: + return "OR"; + case 558: + return "ORDER"; + case 559: + return "ORDINALITY"; + case 560: + return "OTHERS"; + case 561: + return "OUT_P"; + case 562: + return "OUTER_P"; + case 563: + return "OVER"; + case 564: + return "OVERLAPS"; + case 565: + return "OVERLAY"; + case 566: + return "OVERRIDING"; + case 567: + return "OWNED"; + case 568: + return "OWNER"; + case 569: + return "PARALLEL"; + case 570: + return "PARAMETER"; + case 571: + return "PARSER"; + case 572: + return "PARTIAL"; + case 573: + return "PARTITION"; + case 574: + return "PASSING"; + case 575: + return "PASSWORD"; + case 576: + return "PLACING"; + case 577: + return "PLANS"; + case 578: + return "POLICY"; + case 579: + return "POSITION"; + case 580: + return "PRECEDING"; + case 581: + return "PRECISION"; + case 582: + return "PRESERVE"; + case 583: + return "PREPARE"; + case 584: + return "PREPARED"; + case 585: + return "PRIMARY"; + case 586: + return "PRIOR"; + case 587: + return "PRIVILEGES"; + case 588: + return "PROCEDURAL"; + case 589: + return "PROCEDURE"; + case 590: + return "PROCEDURES"; + case 591: + return "PROGRAM"; + case 592: + return "PUBLICATION"; + case 593: + return "QUOTE"; + case 594: + return "RANGE"; + case 595: + return "READ"; + case 596: + return "REAL"; + case 597: + return "REASSIGN"; + case 598: + return "RECHECK"; + case 599: + return "RECURSIVE"; + case 600: + return "REF_P"; + case 601: + return "REFERENCES"; + case 602: + return "REFERENCING"; + case 603: + return "REFRESH"; + case 604: + return "REINDEX"; + case 605: + return "RELATIVE_P"; + case 606: + return "RELEASE"; + case 607: + return "RENAME"; + case 608: + return "REPEATABLE"; + case 609: + return "REPLACE"; + case 610: + return "REPLICA"; + case 611: + return "RESET"; + case 612: + return "RESTART"; + case 613: + return "RESTRICT"; + case 614: + return "RETURN"; + case 615: + return "RETURNING"; + case 616: + return "RETURNS"; + case 617: + return "REVOKE"; + case 618: + return "RIGHT"; + case 619: + return "ROLE"; + case 620: + return "ROLLBACK"; + case 621: + return "ROLLUP"; + case 622: + return "ROUTINE"; + case 623: + return "ROUTINES"; + case 624: + return "ROW"; + case 625: + return "ROWS"; + case 626: + return "RULE"; + case 627: + return "SAVEPOINT"; + case 628: + return "SCALAR"; + case 629: + return "SCHEMA"; + case 630: + return "SCHEMAS"; + case 631: + return "SCROLL"; + case 632: + return "SEARCH"; + case 633: + return "SECOND_P"; + case 634: + return "SECURITY"; + case 635: + return "SELECT"; + case 636: + return "SEQUENCE"; + case 637: + return "SEQUENCES"; + case 638: + return "SERIALIZABLE"; + case 639: + return "SERVER"; + case 640: + return "SESSION"; + case 641: + return "SESSION_USER"; + case 642: + return "SET"; + case 643: + return "SETS"; + case 644: + return "SETOF"; + case 645: + return "SHARE"; + case 646: + return "SHOW"; + case 647: + return "SIMILAR"; + case 648: + return "SIMPLE"; + case 649: + return "SKIP"; + case 650: + return "SMALLINT"; + case 651: + return "SNAPSHOT"; + case 652: + return "SOME"; + case 653: + return "SQL_P"; + case 654: + return "STABLE"; + case 655: + return "STANDALONE_P"; + case 656: + return "START"; + case 657: + return "STATEMENT"; + case 658: + return "STATISTICS"; + case 659: + return "STDIN"; + case 660: + return "STDOUT"; + case 661: + return "STORAGE"; + case 662: + return "STORED"; + case 663: + return "STRICT_P"; + case 664: + return "STRIP_P"; + case 665: + return "SUBSCRIPTION"; + case 666: + return "SUBSTRING"; + case 667: + return "SUPPORT"; + case 668: + return "SYMMETRIC"; + case 669: + return "SYSID"; + case 670: + return "SYSTEM_P"; + case 671: + return "SYSTEM_USER"; + case 672: + return "TABLE"; + case 673: + return "TABLES"; + case 674: + return "TABLESAMPLE"; + case 675: + return "TABLESPACE"; + case 676: + return "TEMP"; + case 677: + return "TEMPLATE"; + case 678: + return "TEMPORARY"; + case 679: + return "TEXT_P"; + case 680: + return "THEN"; + case 681: + return "TIES"; + case 682: + return "TIME"; + case 683: + return "TIMESTAMP"; + case 684: + return "TO"; + case 685: + return "TRAILING"; + case 686: + return "TRANSACTION"; + case 687: + return "TRANSFORM"; + case 688: + return "TREAT"; + case 689: + return "TRIGGER"; + case 690: + return "TRIM"; + case 691: + return "TRUE_P"; + case 692: + return "TRUNCATE"; + case 693: + return "TRUSTED"; + case 694: + return "TYPE_P"; + case 695: + return "TYPES_P"; + case 696: + return "UESCAPE"; + case 697: + return "UNBOUNDED"; + case 698: + return "UNCOMMITTED"; + case 699: + return "UNENCRYPTED"; + case 700: + return "UNION"; + case 701: + return "UNIQUE"; + case 702: + return "UNKNOWN"; + case 703: + return "UNLISTEN"; + case 704: + return "UNLOGGED"; + case 705: + return "UNTIL"; + case 706: + return "UPDATE"; + case 707: + return "USER"; + case 708: + return "USING"; + case 709: + return "VACUUM"; + case 710: + return "VALID"; + case 711: + return "VALIDATE"; + case 712: + return "VALIDATOR"; + case 713: + return "VALUE_P"; + case 714: + return "VALUES"; + case 715: + return "VARCHAR"; + case 716: + return "VARIADIC"; + case 717: + return "VARYING"; + case 718: + return "VERBOSE"; + case 719: + return "VERSION_P"; + case 720: + return "VIEW"; + case 721: + return "VIEWS"; + case 722: + return "VOLATILE"; + case 723: + return "WHEN"; + case 724: + return "WHERE"; + case 725: + return "WHITESPACE_P"; + case 726: + return "WINDOW"; + case 727: + return "WITH"; + case 728: + return "WITHIN"; + case 729: + return "WITHOUT"; + case 730: + return "WORK"; + case 731: + return "WRAPPER"; + case 732: + return "WRITE"; + case 733: + return "XML_P"; + case 734: + return "XMLATTRIBUTES"; + case 735: + return "XMLCONCAT"; + case 736: + return "XMLELEMENT"; + case 737: + return "XMLEXISTS"; + case 738: + return "XMLFOREST"; + case 739: + return "XMLNAMESPACES"; + case 740: + return "XMLPARSE"; + case 741: + return "XMLPI"; + case 742: + return "XMLROOT"; + case 743: + return "XMLSERIALIZE"; + case 744: + return "XMLTABLE"; + case 745: + return "YEAR_P"; + case 746: + return "YES_P"; + case 747: + return "ZONE"; + case 748: + return "FORMAT_LA"; + case 749: + return "NOT_LA"; + case 750: + return "NULLS_LA"; + case 751: + return "WITH_LA"; + case 752: + return "WITHOUT_LA"; + case 753: + return "MODE_TYPE_NAME"; + case 754: + return "MODE_PLPGSQL_EXPR"; + case 755: + return "MODE_PLPGSQL_ASSIGN1"; + case 756: + return "MODE_PLPGSQL_ASSIGN2"; + case 757: + return "MODE_PLPGSQL_ASSIGN3"; + case 758: + return "UMINUS"; + default: + throw new Error("Value not recognized in enum Token"); + } + } +};", + "file": "enum-to-string-nested.ts", + }, + { + "code": "/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type EnumType = "OverridingKind" | "QuerySource" | "SortByDir" | "SortByNulls" | "SetQuantifier" | "A_Expr_Kind" | "RoleSpecType" | "TableLikeOption" | "DefElemAction" | "PartitionStrategy" | "PartitionRangeDatumKind" | "RTEKind" | "WCOKind" | "GroupingSetKind" | "CTEMaterialize" | "SetOperation" | "ObjectType" | "DropBehavior" | "AlterTableType" | "GrantTargetType" | "VariableSetKind" | "ConstrType" | "ImportForeignSchemaType" | "RoleStmtType" | "FetchDirection" | "FunctionParameterMode" | "TransactionStmtKind" | "ViewCheckOption" | "DiscardMode" | "ReindexObjectType" | "AlterTSConfigType" | "PublicationObjSpecType" | "AlterPublicationAction" | "AlterSubscriptionType" | "OnCommitAction" | "ParamKind" | "CoercionContext" | "CoercionForm" | "BoolExprType" | "SubLinkType" | "RowCompareType" | "MinMaxOp" | "SQLValueFunctionOp" | "XmlExprOp" | "XmlOptionType" | "JsonEncoding" | "JsonFormatType" | "JsonConstructorType" | "JsonValueType" | "NullTestType" | "BoolTestType" | "CmdType" | "JoinType" | "AggStrategy" | "AggSplit" | "SetOpCmd" | "SetOpStrategy" | "OnConflictAction" | "LimitOption" | "LockClauseStrength" | "LockWaitPolicy" | "LockTupleMode" | "KeywordKind" | "Token"; +export type EnumToIntMap = { + "OverridingKind": (key: string) => number; + "QuerySource": (key: string) => number; + "SortByDir": (key: string) => number; + "SortByNulls": (key: string) => number; + "SetQuantifier": (key: string) => number; + "A_Expr_Kind": (key: string) => number; + "RoleSpecType": (key: string) => number; + "TableLikeOption": (key: string) => number; + "DefElemAction": (key: string) => number; + "PartitionStrategy": (key: string) => number; + "PartitionRangeDatumKind": (key: string) => number; + "RTEKind": (key: string) => number; + "WCOKind": (key: string) => number; + "GroupingSetKind": (key: string) => number; + "CTEMaterialize": (key: string) => number; + "SetOperation": (key: string) => number; + "ObjectType": (key: string) => number; + "DropBehavior": (key: string) => number; + "AlterTableType": (key: string) => number; + "GrantTargetType": (key: string) => number; + "VariableSetKind": (key: string) => number; + "ConstrType": (key: string) => number; + "ImportForeignSchemaType": (key: string) => number; + "RoleStmtType": (key: string) => number; + "FetchDirection": (key: string) => number; + "FunctionParameterMode": (key: string) => number; + "TransactionStmtKind": (key: string) => number; + "ViewCheckOption": (key: string) => number; + "DiscardMode": (key: string) => number; + "ReindexObjectType": (key: string) => number; + "AlterTSConfigType": (key: string) => number; + "PublicationObjSpecType": (key: string) => number; + "AlterPublicationAction": (key: string) => number; + "AlterSubscriptionType": (key: string) => number; + "OnCommitAction": (key: string) => number; + "ParamKind": (key: string) => number; + "CoercionContext": (key: string) => number; + "CoercionForm": (key: string) => number; + "BoolExprType": (key: string) => number; + "SubLinkType": (key: string) => number; + "RowCompareType": (key: string) => number; + "MinMaxOp": (key: string) => number; + "SQLValueFunctionOp": (key: string) => number; + "XmlExprOp": (key: string) => number; + "XmlOptionType": (key: string) => number; + "JsonEncoding": (key: string) => number; + "JsonFormatType": (key: string) => number; + "JsonConstructorType": (key: string) => number; + "JsonValueType": (key: string) => number; + "NullTestType": (key: string) => number; + "BoolTestType": (key: string) => number; + "CmdType": (key: string) => number; + "JoinType": (key: string) => number; + "AggStrategy": (key: string) => number; + "AggSplit": (key: string) => number; + "SetOpCmd": (key: string) => number; + "SetOpStrategy": (key: string) => number; + "OnConflictAction": (key: string) => number; + "LimitOption": (key: string) => number; + "LockClauseStrength": (key: string) => number; + "LockWaitPolicy": (key: string) => number; + "LockTupleMode": (key: string) => number; + "KeywordKind": (key: string) => number; + "Token": (key: string) => number; +}; +export const enumToIntMap: EnumToIntMap = { + "OverridingKind": (key: string): number => { + switch (key) { + case "OVERRIDING_NOT_SET": + return 0; + case "OVERRIDING_USER_VALUE": + return 1; + case "OVERRIDING_SYSTEM_VALUE": + return 2; + default: + throw new Error("Key not recognized in enum OverridingKind"); + } + }, + "QuerySource": (key: string): number => { + switch (key) { + case "QSRC_ORIGINAL": + return 0; + case "QSRC_PARSER": + return 1; + case "QSRC_INSTEAD_RULE": + return 2; + case "QSRC_QUAL_INSTEAD_RULE": + return 3; + case "QSRC_NON_INSTEAD_RULE": + return 4; + default: + throw new Error("Key not recognized in enum QuerySource"); + } + }, + "SortByDir": (key: string): number => { + switch (key) { + case "SORTBY_DEFAULT": + return 0; + case "SORTBY_ASC": + return 1; + case "SORTBY_DESC": + return 2; + case "SORTBY_USING": + return 3; + default: + throw new Error("Key not recognized in enum SortByDir"); + } + }, + "SortByNulls": (key: string): number => { + switch (key) { + case "SORTBY_NULLS_DEFAULT": + return 0; + case "SORTBY_NULLS_FIRST": + return 1; + case "SORTBY_NULLS_LAST": + return 2; + default: + throw new Error("Key not recognized in enum SortByNulls"); + } + }, + "SetQuantifier": (key: string): number => { + switch (key) { + case "SET_QUANTIFIER_DEFAULT": + return 0; + case "SET_QUANTIFIER_ALL": + return 1; + case "SET_QUANTIFIER_DISTINCT": + return 2; + default: + throw new Error("Key not recognized in enum SetQuantifier"); + } + }, + "A_Expr_Kind": (key: string): number => { + switch (key) { + case "AEXPR_OP": + return 0; + case "AEXPR_OP_ANY": + return 1; + case "AEXPR_OP_ALL": + return 2; + case "AEXPR_DISTINCT": + return 3; + case "AEXPR_NOT_DISTINCT": + return 4; + case "AEXPR_NULLIF": + return 5; + case "AEXPR_IN": + return 6; + case "AEXPR_LIKE": + return 7; + case "AEXPR_ILIKE": + return 8; + case "AEXPR_SIMILAR": + return 9; + case "AEXPR_BETWEEN": + return 10; + case "AEXPR_NOT_BETWEEN": + return 11; + case "AEXPR_BETWEEN_SYM": + return 12; + case "AEXPR_NOT_BETWEEN_SYM": + return 13; + default: + throw new Error("Key not recognized in enum A_Expr_Kind"); + } + }, + "RoleSpecType": (key: string): number => { + switch (key) { + case "ROLESPEC_CSTRING": + return 0; + case "ROLESPEC_CURRENT_ROLE": + return 1; + case "ROLESPEC_CURRENT_USER": + return 2; + case "ROLESPEC_SESSION_USER": + return 3; + case "ROLESPEC_PUBLIC": + return 4; + default: + throw new Error("Key not recognized in enum RoleSpecType"); + } + }, + "TableLikeOption": (key: string): number => { + switch (key) { + case "CREATE_TABLE_LIKE_COMMENTS": + return 0; + case "CREATE_TABLE_LIKE_COMPRESSION": + return 1; + case "CREATE_TABLE_LIKE_CONSTRAINTS": + return 2; + case "CREATE_TABLE_LIKE_DEFAULTS": + return 3; + case "CREATE_TABLE_LIKE_GENERATED": + return 4; + case "CREATE_TABLE_LIKE_IDENTITY": + return 5; + case "CREATE_TABLE_LIKE_INDEXES": + return 6; + case "CREATE_TABLE_LIKE_STATISTICS": + return 7; + case "CREATE_TABLE_LIKE_STORAGE": + return 8; + case "CREATE_TABLE_LIKE_ALL": + return 9; + default: + throw new Error("Key not recognized in enum TableLikeOption"); + } + }, + "DefElemAction": (key: string): number => { + switch (key) { + case "DEFELEM_UNSPEC": + return 0; + case "DEFELEM_SET": + return 1; + case "DEFELEM_ADD": + return 2; + case "DEFELEM_DROP": + return 3; + default: + throw new Error("Key not recognized in enum DefElemAction"); + } + }, + "PartitionStrategy": (key: string): number => { + switch (key) { + case "PARTITION_STRATEGY_LIST": + return 0; + case "PARTITION_STRATEGY_RANGE": + return 1; + case "PARTITION_STRATEGY_HASH": + return 2; + default: + throw new Error("Key not recognized in enum PartitionStrategy"); + } + }, + "PartitionRangeDatumKind": (key: string): number => { + switch (key) { + case "PARTITION_RANGE_DATUM_MINVALUE": + return 0; + case "PARTITION_RANGE_DATUM_VALUE": + return 1; + case "PARTITION_RANGE_DATUM_MAXVALUE": + return 2; + default: + throw new Error("Key not recognized in enum PartitionRangeDatumKind"); + } + }, + "RTEKind": (key: string): number => { + switch (key) { + case "RTE_RELATION": + return 0; + case "RTE_SUBQUERY": + return 1; + case "RTE_JOIN": + return 2; + case "RTE_FUNCTION": + return 3; + case "RTE_TABLEFUNC": + return 4; + case "RTE_VALUES": + return 5; + case "RTE_CTE": + return 6; + case "RTE_NAMEDTUPLESTORE": + return 7; + case "RTE_RESULT": + return 8; + default: + throw new Error("Key not recognized in enum RTEKind"); + } + }, + "WCOKind": (key: string): number => { + switch (key) { + case "WCO_VIEW_CHECK": + return 0; + case "WCO_RLS_INSERT_CHECK": + return 1; + case "WCO_RLS_UPDATE_CHECK": + return 2; + case "WCO_RLS_CONFLICT_CHECK": + return 3; + case "WCO_RLS_MERGE_UPDATE_CHECK": + return 4; + case "WCO_RLS_MERGE_DELETE_CHECK": + return 5; + default: + throw new Error("Key not recognized in enum WCOKind"); + } + }, + "GroupingSetKind": (key: string): number => { + switch (key) { + case "GROUPING_SET_EMPTY": + return 0; + case "GROUPING_SET_SIMPLE": + return 1; + case "GROUPING_SET_ROLLUP": + return 2; + case "GROUPING_SET_CUBE": + return 3; + case "GROUPING_SET_SETS": + return 4; + default: + throw new Error("Key not recognized in enum GroupingSetKind"); + } + }, + "CTEMaterialize": (key: string): number => { + switch (key) { + case "CTEMaterializeDefault": + return 0; + case "CTEMaterializeAlways": + return 1; + case "CTEMaterializeNever": + return 2; + default: + throw new Error("Key not recognized in enum CTEMaterialize"); + } + }, + "SetOperation": (key: string): number => { + switch (key) { + case "SETOP_NONE": + return 0; + case "SETOP_UNION": + return 1; + case "SETOP_INTERSECT": + return 2; + case "SETOP_EXCEPT": + return 3; + default: + throw new Error("Key not recognized in enum SetOperation"); + } + }, + "ObjectType": (key: string): number => { + switch (key) { + case "OBJECT_ACCESS_METHOD": + return 0; + case "OBJECT_AGGREGATE": + return 1; + case "OBJECT_AMOP": + return 2; + case "OBJECT_AMPROC": + return 3; + case "OBJECT_ATTRIBUTE": + return 4; + case "OBJECT_CAST": + return 5; + case "OBJECT_COLUMN": + return 6; + case "OBJECT_COLLATION": + return 7; + case "OBJECT_CONVERSION": + return 8; + case "OBJECT_DATABASE": + return 9; + case "OBJECT_DEFAULT": + return 10; + case "OBJECT_DEFACL": + return 11; + case "OBJECT_DOMAIN": + return 12; + case "OBJECT_DOMCONSTRAINT": + return 13; + case "OBJECT_EVENT_TRIGGER": + return 14; + case "OBJECT_EXTENSION": + return 15; + case "OBJECT_FDW": + return 16; + case "OBJECT_FOREIGN_SERVER": + return 17; + case "OBJECT_FOREIGN_TABLE": + return 18; + case "OBJECT_FUNCTION": + return 19; + case "OBJECT_INDEX": + return 20; + case "OBJECT_LANGUAGE": + return 21; + case "OBJECT_LARGEOBJECT": + return 22; + case "OBJECT_MATVIEW": + return 23; + case "OBJECT_OPCLASS": + return 24; + case "OBJECT_OPERATOR": + return 25; + case "OBJECT_OPFAMILY": + return 26; + case "OBJECT_PARAMETER_ACL": + return 27; + case "OBJECT_POLICY": + return 28; + case "OBJECT_PROCEDURE": + return 29; + case "OBJECT_PUBLICATION": + return 30; + case "OBJECT_PUBLICATION_NAMESPACE": + return 31; + case "OBJECT_PUBLICATION_REL": + return 32; + case "OBJECT_ROLE": + return 33; + case "OBJECT_ROUTINE": + return 34; + case "OBJECT_RULE": + return 35; + case "OBJECT_SCHEMA": + return 36; + case "OBJECT_SEQUENCE": + return 37; + case "OBJECT_SUBSCRIPTION": + return 38; + case "OBJECT_STATISTIC_EXT": + return 39; + case "OBJECT_TABCONSTRAINT": + return 40; + case "OBJECT_TABLE": + return 41; + case "OBJECT_TABLESPACE": + return 42; + case "OBJECT_TRANSFORM": + return 43; + case "OBJECT_TRIGGER": + return 44; + case "OBJECT_TSCONFIGURATION": + return 45; + case "OBJECT_TSDICTIONARY": + return 46; + case "OBJECT_TSPARSER": + return 47; + case "OBJECT_TSTEMPLATE": + return 48; + case "OBJECT_TYPE": + return 49; + case "OBJECT_USER_MAPPING": + return 50; + case "OBJECT_VIEW": + return 51; + default: + throw new Error("Key not recognized in enum ObjectType"); + } + }, + "DropBehavior": (key: string): number => { + switch (key) { + case "DROP_RESTRICT": + return 0; + case "DROP_CASCADE": + return 1; + default: + throw new Error("Key not recognized in enum DropBehavior"); + } + }, + "AlterTableType": (key: string): number => { + switch (key) { + case "AT_AddColumn": + return 0; + case "AT_AddColumnToView": + return 1; + case "AT_ColumnDefault": + return 2; + case "AT_CookedColumnDefault": + return 3; + case "AT_DropNotNull": + return 4; + case "AT_SetNotNull": + return 5; + case "AT_DropExpression": + return 6; + case "AT_CheckNotNull": + return 7; + case "AT_SetStatistics": + return 8; + case "AT_SetOptions": + return 9; + case "AT_ResetOptions": + return 10; + case "AT_SetStorage": + return 11; + case "AT_SetCompression": + return 12; + case "AT_DropColumn": + return 13; + case "AT_AddIndex": + return 14; + case "AT_ReAddIndex": + return 15; + case "AT_AddConstraint": + return 16; + case "AT_ReAddConstraint": + return 17; + case "AT_ReAddDomainConstraint": + return 18; + case "AT_AlterConstraint": + return 19; + case "AT_ValidateConstraint": + return 20; + case "AT_AddIndexConstraint": + return 21; + case "AT_DropConstraint": + return 22; + case "AT_ReAddComment": + return 23; + case "AT_AlterColumnType": + return 24; + case "AT_AlterColumnGenericOptions": + return 25; + case "AT_ChangeOwner": + return 26; + case "AT_ClusterOn": + return 27; + case "AT_DropCluster": + return 28; + case "AT_SetLogged": + return 29; + case "AT_SetUnLogged": + return 30; + case "AT_DropOids": + return 31; + case "AT_SetAccessMethod": + return 32; + case "AT_SetTableSpace": + return 33; + case "AT_SetRelOptions": + return 34; + case "AT_ResetRelOptions": + return 35; + case "AT_ReplaceRelOptions": + return 36; + case "AT_EnableTrig": + return 37; + case "AT_EnableAlwaysTrig": + return 38; + case "AT_EnableReplicaTrig": + return 39; + case "AT_DisableTrig": + return 40; + case "AT_EnableTrigAll": + return 41; + case "AT_DisableTrigAll": + return 42; + case "AT_EnableTrigUser": + return 43; + case "AT_DisableTrigUser": + return 44; + case "AT_EnableRule": + return 45; + case "AT_EnableAlwaysRule": + return 46; + case "AT_EnableReplicaRule": + return 47; + case "AT_DisableRule": + return 48; + case "AT_AddInherit": + return 49; + case "AT_DropInherit": + return 50; + case "AT_AddOf": + return 51; + case "AT_DropOf": + return 52; + case "AT_ReplicaIdentity": + return 53; + case "AT_EnableRowSecurity": + return 54; + case "AT_DisableRowSecurity": + return 55; + case "AT_ForceRowSecurity": + return 56; + case "AT_NoForceRowSecurity": + return 57; + case "AT_GenericOptions": + return 58; + case "AT_AttachPartition": + return 59; + case "AT_DetachPartition": + return 60; + case "AT_DetachPartitionFinalize": + return 61; + case "AT_AddIdentity": + return 62; + case "AT_SetIdentity": + return 63; + case "AT_DropIdentity": + return 64; + case "AT_ReAddStatistics": + return 65; + default: + throw new Error("Key not recognized in enum AlterTableType"); + } + }, + "GrantTargetType": (key: string): number => { + switch (key) { + case "ACL_TARGET_OBJECT": + return 0; + case "ACL_TARGET_ALL_IN_SCHEMA": + return 1; + case "ACL_TARGET_DEFAULTS": + return 2; + default: + throw new Error("Key not recognized in enum GrantTargetType"); + } + }, + "VariableSetKind": (key: string): number => { + switch (key) { + case "VAR_SET_VALUE": + return 0; + case "VAR_SET_DEFAULT": + return 1; + case "VAR_SET_CURRENT": + return 2; + case "VAR_SET_MULTI": + return 3; + case "VAR_RESET": + return 4; + case "VAR_RESET_ALL": + return 5; + default: + throw new Error("Key not recognized in enum VariableSetKind"); + } + }, + "ConstrType": (key: string): number => { + switch (key) { + case "CONSTR_NULL": + return 0; + case "CONSTR_NOTNULL": + return 1; + case "CONSTR_DEFAULT": + return 2; + case "CONSTR_IDENTITY": + return 3; + case "CONSTR_GENERATED": + return 4; + case "CONSTR_CHECK": + return 5; + case "CONSTR_PRIMARY": + return 6; + case "CONSTR_UNIQUE": + return 7; + case "CONSTR_EXCLUSION": + return 8; + case "CONSTR_FOREIGN": + return 9; + case "CONSTR_ATTR_DEFERRABLE": + return 10; + case "CONSTR_ATTR_NOT_DEFERRABLE": + return 11; + case "CONSTR_ATTR_DEFERRED": + return 12; + case "CONSTR_ATTR_IMMEDIATE": + return 13; + default: + throw new Error("Key not recognized in enum ConstrType"); + } + }, + "ImportForeignSchemaType": (key: string): number => { + switch (key) { + case "FDW_IMPORT_SCHEMA_ALL": + return 0; + case "FDW_IMPORT_SCHEMA_LIMIT_TO": + return 1; + case "FDW_IMPORT_SCHEMA_EXCEPT": + return 2; + default: + throw new Error("Key not recognized in enum ImportForeignSchemaType"); + } + }, + "RoleStmtType": (key: string): number => { + switch (key) { + case "ROLESTMT_ROLE": + return 0; + case "ROLESTMT_USER": + return 1; + case "ROLESTMT_GROUP": + return 2; + default: + throw new Error("Key not recognized in enum RoleStmtType"); + } + }, + "FetchDirection": (key: string): number => { + switch (key) { + case "FETCH_FORWARD": + return 0; + case "FETCH_BACKWARD": + return 1; + case "FETCH_ABSOLUTE": + return 2; + case "FETCH_RELATIVE": + return 3; + default: + throw new Error("Key not recognized in enum FetchDirection"); + } + }, + "FunctionParameterMode": (key: string): number => { + switch (key) { + case "FUNC_PARAM_IN": + return 0; + case "FUNC_PARAM_OUT": + return 1; + case "FUNC_PARAM_INOUT": + return 2; + case "FUNC_PARAM_VARIADIC": + return 3; + case "FUNC_PARAM_TABLE": + return 4; + case "FUNC_PARAM_DEFAULT": + return 5; + default: + throw new Error("Key not recognized in enum FunctionParameterMode"); + } + }, + "TransactionStmtKind": (key: string): number => { + switch (key) { + case "TRANS_STMT_BEGIN": + return 0; + case "TRANS_STMT_START": + return 1; + case "TRANS_STMT_COMMIT": + return 2; + case "TRANS_STMT_ROLLBACK": + return 3; + case "TRANS_STMT_SAVEPOINT": + return 4; + case "TRANS_STMT_RELEASE": + return 5; + case "TRANS_STMT_ROLLBACK_TO": + return 6; + case "TRANS_STMT_PREPARE": + return 7; + case "TRANS_STMT_COMMIT_PREPARED": + return 8; + case "TRANS_STMT_ROLLBACK_PREPARED": + return 9; + default: + throw new Error("Key not recognized in enum TransactionStmtKind"); + } + }, + "ViewCheckOption": (key: string): number => { + switch (key) { + case "NO_CHECK_OPTION": + return 0; + case "LOCAL_CHECK_OPTION": + return 1; + case "CASCADED_CHECK_OPTION": + return 2; + default: + throw new Error("Key not recognized in enum ViewCheckOption"); + } + }, + "DiscardMode": (key: string): number => { + switch (key) { + case "DISCARD_ALL": + return 0; + case "DISCARD_PLANS": + return 1; + case "DISCARD_SEQUENCES": + return 2; + case "DISCARD_TEMP": + return 3; + default: + throw new Error("Key not recognized in enum DiscardMode"); + } + }, + "ReindexObjectType": (key: string): number => { + switch (key) { + case "REINDEX_OBJECT_INDEX": + return 0; + case "REINDEX_OBJECT_TABLE": + return 1; + case "REINDEX_OBJECT_SCHEMA": + return 2; + case "REINDEX_OBJECT_SYSTEM": + return 3; + case "REINDEX_OBJECT_DATABASE": + return 4; + default: + throw new Error("Key not recognized in enum ReindexObjectType"); + } + }, + "AlterTSConfigType": (key: string): number => { + switch (key) { + case "ALTER_TSCONFIG_ADD_MAPPING": + return 0; + case "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN": + return 1; + case "ALTER_TSCONFIG_REPLACE_DICT": + return 2; + case "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN": + return 3; + case "ALTER_TSCONFIG_DROP_MAPPING": + return 4; + default: + throw new Error("Key not recognized in enum AlterTSConfigType"); + } + }, + "PublicationObjSpecType": (key: string): number => { + switch (key) { + case "PUBLICATIONOBJ_TABLE": + return 0; + case "PUBLICATIONOBJ_TABLES_IN_SCHEMA": + return 1; + case "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA": + return 2; + case "PUBLICATIONOBJ_CONTINUATION": + return 3; + default: + throw new Error("Key not recognized in enum PublicationObjSpecType"); + } + }, + "AlterPublicationAction": (key: string): number => { + switch (key) { + case "AP_AddObjects": + return 0; + case "AP_DropObjects": + return 1; + case "AP_SetObjects": + return 2; + default: + throw new Error("Key not recognized in enum AlterPublicationAction"); + } + }, + "AlterSubscriptionType": (key: string): number => { + switch (key) { + case "ALTER_SUBSCRIPTION_OPTIONS": + return 0; + case "ALTER_SUBSCRIPTION_CONNECTION": + return 1; + case "ALTER_SUBSCRIPTION_SET_PUBLICATION": + return 2; + case "ALTER_SUBSCRIPTION_ADD_PUBLICATION": + return 3; + case "ALTER_SUBSCRIPTION_DROP_PUBLICATION": + return 4; + case "ALTER_SUBSCRIPTION_REFRESH": + return 5; + case "ALTER_SUBSCRIPTION_ENABLED": + return 6; + case "ALTER_SUBSCRIPTION_SKIP": + return 7; + default: + throw new Error("Key not recognized in enum AlterSubscriptionType"); + } + }, + "OnCommitAction": (key: string): number => { + switch (key) { + case "ONCOMMIT_NOOP": + return 0; + case "ONCOMMIT_PRESERVE_ROWS": + return 1; + case "ONCOMMIT_DELETE_ROWS": + return 2; + case "ONCOMMIT_DROP": + return 3; + default: + throw new Error("Key not recognized in enum OnCommitAction"); + } + }, + "ParamKind": (key: string): number => { + switch (key) { + case "PARAM_EXTERN": + return 0; + case "PARAM_EXEC": + return 1; + case "PARAM_SUBLINK": + return 2; + case "PARAM_MULTIEXPR": + return 3; + default: + throw new Error("Key not recognized in enum ParamKind"); + } + }, + "CoercionContext": (key: string): number => { + switch (key) { + case "COERCION_IMPLICIT": + return 0; + case "COERCION_ASSIGNMENT": + return 1; + case "COERCION_PLPGSQL": + return 2; + case "COERCION_EXPLICIT": + return 3; + default: + throw new Error("Key not recognized in enum CoercionContext"); + } + }, + "CoercionForm": (key: string): number => { + switch (key) { + case "COERCE_EXPLICIT_CALL": + return 0; + case "COERCE_EXPLICIT_CAST": + return 1; + case "COERCE_IMPLICIT_CAST": + return 2; + case "COERCE_SQL_SYNTAX": + return 3; + default: + throw new Error("Key not recognized in enum CoercionForm"); + } + }, + "BoolExprType": (key: string): number => { + switch (key) { + case "AND_EXPR": + return 0; + case "OR_EXPR": + return 1; + case "NOT_EXPR": + return 2; + default: + throw new Error("Key not recognized in enum BoolExprType"); + } + }, + "SubLinkType": (key: string): number => { + switch (key) { + case "EXISTS_SUBLINK": + return 0; + case "ALL_SUBLINK": + return 1; + case "ANY_SUBLINK": + return 2; + case "ROWCOMPARE_SUBLINK": + return 3; + case "EXPR_SUBLINK": + return 4; + case "MULTIEXPR_SUBLINK": + return 5; + case "ARRAY_SUBLINK": + return 6; + case "CTE_SUBLINK": + return 7; + default: + throw new Error("Key not recognized in enum SubLinkType"); + } + }, + "RowCompareType": (key: string): number => { + switch (key) { + case "ROWCOMPARE_LT": + return 0; + case "ROWCOMPARE_LE": + return 1; + case "ROWCOMPARE_EQ": + return 2; + case "ROWCOMPARE_GE": + return 3; + case "ROWCOMPARE_GT": + return 4; + case "ROWCOMPARE_NE": + return 5; + default: + throw new Error("Key not recognized in enum RowCompareType"); + } + }, + "MinMaxOp": (key: string): number => { + switch (key) { + case "IS_GREATEST": + return 0; + case "IS_LEAST": + return 1; + default: + throw new Error("Key not recognized in enum MinMaxOp"); + } + }, + "SQLValueFunctionOp": (key: string): number => { + switch (key) { + case "SVFOP_CURRENT_DATE": + return 0; + case "SVFOP_CURRENT_TIME": + return 1; + case "SVFOP_CURRENT_TIME_N": + return 2; + case "SVFOP_CURRENT_TIMESTAMP": + return 3; + case "SVFOP_CURRENT_TIMESTAMP_N": + return 4; + case "SVFOP_LOCALTIME": + return 5; + case "SVFOP_LOCALTIME_N": + return 6; + case "SVFOP_LOCALTIMESTAMP": + return 7; + case "SVFOP_LOCALTIMESTAMP_N": + return 8; + case "SVFOP_CURRENT_ROLE": + return 9; + case "SVFOP_CURRENT_USER": + return 10; + case "SVFOP_USER": + return 11; + case "SVFOP_SESSION_USER": + return 12; + case "SVFOP_CURRENT_CATALOG": + return 13; + case "SVFOP_CURRENT_SCHEMA": + return 14; + default: + throw new Error("Key not recognized in enum SQLValueFunctionOp"); + } + }, + "XmlExprOp": (key: string): number => { + switch (key) { + case "IS_XMLCONCAT": + return 0; + case "IS_XMLELEMENT": + return 1; + case "IS_XMLFOREST": + return 2; + case "IS_XMLPARSE": + return 3; + case "IS_XMLPI": + return 4; + case "IS_XMLROOT": + return 5; + case "IS_XMLSERIALIZE": + return 6; + case "IS_DOCUMENT": + return 7; + default: + throw new Error("Key not recognized in enum XmlExprOp"); + } + }, + "XmlOptionType": (key: string): number => { + switch (key) { + case "XMLOPTION_DOCUMENT": + return 0; + case "XMLOPTION_CONTENT": + return 1; + default: + throw new Error("Key not recognized in enum XmlOptionType"); + } + }, + "JsonEncoding": (key: string): number => { + switch (key) { + case "JS_ENC_DEFAULT": + return 0; + case "JS_ENC_UTF8": + return 1; + case "JS_ENC_UTF16": + return 2; + case "JS_ENC_UTF32": + return 3; + default: + throw new Error("Key not recognized in enum JsonEncoding"); + } + }, + "JsonFormatType": (key: string): number => { + switch (key) { + case "JS_FORMAT_DEFAULT": + return 0; + case "JS_FORMAT_JSON": + return 1; + case "JS_FORMAT_JSONB": + return 2; + default: + throw new Error("Key not recognized in enum JsonFormatType"); + } + }, + "JsonConstructorType": (key: string): number => { + switch (key) { + case "JSCTOR_JSON_OBJECT": + return 0; + case "JSCTOR_JSON_ARRAY": + return 1; + case "JSCTOR_JSON_OBJECTAGG": + return 2; + case "JSCTOR_JSON_ARRAYAGG": + return 3; + default: + throw new Error("Key not recognized in enum JsonConstructorType"); + } + }, + "JsonValueType": (key: string): number => { + switch (key) { + case "JS_TYPE_ANY": + return 0; + case "JS_TYPE_OBJECT": + return 1; + case "JS_TYPE_ARRAY": + return 2; + case "JS_TYPE_SCALAR": + return 3; + default: + throw new Error("Key not recognized in enum JsonValueType"); + } + }, + "NullTestType": (key: string): number => { + switch (key) { + case "IS_NULL": + return 0; + case "IS_NOT_NULL": + return 1; + default: + throw new Error("Key not recognized in enum NullTestType"); + } + }, + "BoolTestType": (key: string): number => { + switch (key) { + case "IS_TRUE": + return 0; + case "IS_NOT_TRUE": + return 1; + case "IS_FALSE": + return 2; + case "IS_NOT_FALSE": + return 3; + case "IS_UNKNOWN": + return 4; + case "IS_NOT_UNKNOWN": + return 5; + default: + throw new Error("Key not recognized in enum BoolTestType"); + } + }, + "CmdType": (key: string): number => { + switch (key) { + case "CMD_UNKNOWN": + return 0; + case "CMD_SELECT": + return 1; + case "CMD_UPDATE": + return 2; + case "CMD_INSERT": + return 3; + case "CMD_DELETE": + return 4; + case "CMD_MERGE": + return 5; + case "CMD_UTILITY": + return 6; + case "CMD_NOTHING": + return 7; + default: + throw new Error("Key not recognized in enum CmdType"); + } + }, + "JoinType": (key: string): number => { + switch (key) { + case "JOIN_INNER": + return 0; + case "JOIN_LEFT": + return 1; + case "JOIN_FULL": + return 2; + case "JOIN_RIGHT": + return 3; + case "JOIN_SEMI": + return 4; + case "JOIN_ANTI": + return 5; + case "JOIN_RIGHT_ANTI": + return 6; + case "JOIN_UNIQUE_OUTER": + return 7; + case "JOIN_UNIQUE_INNER": + return 8; + default: + throw new Error("Key not recognized in enum JoinType"); + } + }, + "AggStrategy": (key: string): number => { + switch (key) { + case "AGG_PLAIN": + return 0; + case "AGG_SORTED": + return 1; + case "AGG_HASHED": + return 2; + case "AGG_MIXED": + return 3; + default: + throw new Error("Key not recognized in enum AggStrategy"); + } + }, + "AggSplit": (key: string): number => { + switch (key) { + case "AGGSPLIT_SIMPLE": + return 0; + case "AGGSPLIT_INITIAL_SERIAL": + return 1; + case "AGGSPLIT_FINAL_DESERIAL": + return 2; + default: + throw new Error("Key not recognized in enum AggSplit"); + } + }, + "SetOpCmd": (key: string): number => { + switch (key) { + case "SETOPCMD_INTERSECT": + return 0; + case "SETOPCMD_INTERSECT_ALL": + return 1; + case "SETOPCMD_EXCEPT": + return 2; + case "SETOPCMD_EXCEPT_ALL": + return 3; + default: + throw new Error("Key not recognized in enum SetOpCmd"); + } + }, + "SetOpStrategy": (key: string): number => { + switch (key) { + case "SETOP_SORTED": + return 0; + case "SETOP_HASHED": + return 1; + default: + throw new Error("Key not recognized in enum SetOpStrategy"); + } + }, + "OnConflictAction": (key: string): number => { + switch (key) { + case "ONCONFLICT_NONE": + return 0; + case "ONCONFLICT_NOTHING": + return 1; + case "ONCONFLICT_UPDATE": + return 2; + default: + throw new Error("Key not recognized in enum OnConflictAction"); + } + }, + "LimitOption": (key: string): number => { + switch (key) { + case "LIMIT_OPTION_DEFAULT": + return 0; + case "LIMIT_OPTION_COUNT": + return 1; + case "LIMIT_OPTION_WITH_TIES": + return 2; + default: + throw new Error("Key not recognized in enum LimitOption"); + } + }, + "LockClauseStrength": (key: string): number => { + switch (key) { + case "LCS_NONE": + return 0; + case "LCS_FORKEYSHARE": + return 1; + case "LCS_FORSHARE": + return 2; + case "LCS_FORNOKEYUPDATE": + return 3; + case "LCS_FORUPDATE": + return 4; + default: + throw new Error("Key not recognized in enum LockClauseStrength"); + } + }, + "LockWaitPolicy": (key: string): number => { + switch (key) { + case "LockWaitBlock": + return 0; + case "LockWaitSkip": + return 1; + case "LockWaitError": + return 2; + default: + throw new Error("Key not recognized in enum LockWaitPolicy"); + } + }, + "LockTupleMode": (key: string): number => { + switch (key) { + case "LockTupleKeyShare": + return 0; + case "LockTupleShare": + return 1; + case "LockTupleNoKeyExclusive": + return 2; + case "LockTupleExclusive": + return 3; + default: + throw new Error("Key not recognized in enum LockTupleMode"); + } + }, + "KeywordKind": (key: string): number => { + switch (key) { + case "NO_KEYWORD": + return 0; + case "UNRESERVED_KEYWORD": + return 1; + case "COL_NAME_KEYWORD": + return 2; + case "TYPE_FUNC_NAME_KEYWORD": + return 3; + case "RESERVED_KEYWORD": + return 4; + default: + throw new Error("Key not recognized in enum KeywordKind"); + } + }, + "Token": (key: string): number => { + switch (key) { + case "NUL": + return 0; + case "ASCII_36": + return 36; + case "ASCII_37": + return 37; + case "ASCII_40": + return 40; + case "ASCII_41": + return 41; + case "ASCII_42": + return 42; + case "ASCII_43": + return 43; + case "ASCII_44": + return 44; + case "ASCII_45": + return 45; + case "ASCII_46": + return 46; + case "ASCII_47": + return 47; + case "ASCII_58": + return 58; + case "ASCII_59": + return 59; + case "ASCII_60": + return 60; + case "ASCII_61": + return 61; + case "ASCII_62": + return 62; + case "ASCII_63": + return 63; + case "ASCII_91": + return 91; + case "ASCII_92": + return 92; + case "ASCII_93": + return 93; + case "ASCII_94": + return 94; + case "IDENT": + return 258; + case "UIDENT": + return 259; + case "FCONST": + return 260; + case "SCONST": + return 261; + case "USCONST": + return 262; + case "BCONST": + return 263; + case "XCONST": + return 264; + case "Op": + return 265; + case "ICONST": + return 266; + case "PARAM": + return 267; + case "TYPECAST": + return 268; + case "DOT_DOT": + return 269; + case "COLON_EQUALS": + return 270; + case "EQUALS_GREATER": + return 271; + case "LESS_EQUALS": + return 272; + case "GREATER_EQUALS": + return 273; + case "NOT_EQUALS": + return 274; + case "SQL_COMMENT": + return 275; + case "C_COMMENT": + return 276; + case "ABORT_P": + return 277; + case "ABSENT": + return 278; + case "ABSOLUTE_P": + return 279; + case "ACCESS": + return 280; + case "ACTION": + return 281; + case "ADD_P": + return 282; + case "ADMIN": + return 283; + case "AFTER": + return 284; + case "AGGREGATE": + return 285; + case "ALL": + return 286; + case "ALSO": + return 287; + case "ALTER": + return 288; + case "ALWAYS": + return 289; + case "ANALYSE": + return 290; + case "ANALYZE": + return 291; + case "AND": + return 292; + case "ANY": + return 293; + case "ARRAY": + return 294; + case "AS": + return 295; + case "ASC": + return 296; + case "ASENSITIVE": + return 297; + case "ASSERTION": + return 298; + case "ASSIGNMENT": + return 299; + case "ASYMMETRIC": + return 300; + case "ATOMIC": + return 301; + case "AT": + return 302; + case "ATTACH": + return 303; + case "ATTRIBUTE": + return 304; + case "AUTHORIZATION": + return 305; + case "BACKWARD": + return 306; + case "BEFORE": + return 307; + case "BEGIN_P": + return 308; + case "BETWEEN": + return 309; + case "BIGINT": + return 310; + case "BINARY": + return 311; + case "BIT": + return 312; + case "BOOLEAN_P": + return 313; + case "BOTH": + return 314; + case "BREADTH": + return 315; + case "BY": + return 316; + case "CACHE": + return 317; + case "CALL": + return 318; + case "CALLED": + return 319; + case "CASCADE": + return 320; + case "CASCADED": + return 321; + case "CASE": + return 322; + case "CAST": + return 323; + case "CATALOG_P": + return 324; + case "CHAIN": + return 325; + case "CHAR_P": + return 326; + case "CHARACTER": + return 327; + case "CHARACTERISTICS": + return 328; + case "CHECK": + return 329; + case "CHECKPOINT": + return 330; + case "CLASS": + return 331; + case "CLOSE": + return 332; + case "CLUSTER": + return 333; + case "COALESCE": + return 334; + case "COLLATE": + return 335; + case "COLLATION": + return 336; + case "COLUMN": + return 337; + case "COLUMNS": + return 338; + case "COMMENT": + return 339; + case "COMMENTS": + return 340; + case "COMMIT": + return 341; + case "COMMITTED": + return 342; + case "COMPRESSION": + return 343; + case "CONCURRENTLY": + return 344; + case "CONFIGURATION": + return 345; + case "CONFLICT": + return 346; + case "CONNECTION": + return 347; + case "CONSTRAINT": + return 348; + case "CONSTRAINTS": + return 349; + case "CONTENT_P": + return 350; + case "CONTINUE_P": + return 351; + case "CONVERSION_P": + return 352; + case "COPY": + return 353; + case "COST": + return 354; + case "CREATE": + return 355; + case "CROSS": + return 356; + case "CSV": + return 357; + case "CUBE": + return 358; + case "CURRENT_P": + return 359; + case "CURRENT_CATALOG": + return 360; + case "CURRENT_DATE": + return 361; + case "CURRENT_ROLE": + return 362; + case "CURRENT_SCHEMA": + return 363; + case "CURRENT_TIME": + return 364; + case "CURRENT_TIMESTAMP": + return 365; + case "CURRENT_USER": + return 366; + case "CURSOR": + return 367; + case "CYCLE": + return 368; + case "DATA_P": + return 369; + case "DATABASE": + return 370; + case "DAY_P": + return 371; + case "DEALLOCATE": + return 372; + case "DEC": + return 373; + case "DECIMAL_P": + return 374; + case "DECLARE": + return 375; + case "DEFAULT": + return 376; + case "DEFAULTS": + return 377; + case "DEFERRABLE": + return 378; + case "DEFERRED": + return 379; + case "DEFINER": + return 380; + case "DELETE_P": + return 381; + case "DELIMITER": + return 382; + case "DELIMITERS": + return 383; + case "DEPENDS": + return 384; + case "DEPTH": + return 385; + case "DESC": + return 386; + case "DETACH": + return 387; + case "DICTIONARY": + return 388; + case "DISABLE_P": + return 389; + case "DISCARD": + return 390; + case "DISTINCT": + return 391; + case "DO": + return 392; + case "DOCUMENT_P": + return 393; + case "DOMAIN_P": + return 394; + case "DOUBLE_P": + return 395; + case "DROP": + return 396; + case "EACH": + return 397; + case "ELSE": + return 398; + case "ENABLE_P": + return 399; + case "ENCODING": + return 400; + case "ENCRYPTED": + return 401; + case "END_P": + return 402; + case "ENUM_P": + return 403; + case "ESCAPE": + return 404; + case "EVENT": + return 405; + case "EXCEPT": + return 406; + case "EXCLUDE": + return 407; + case "EXCLUDING": + return 408; + case "EXCLUSIVE": + return 409; + case "EXECUTE": + return 410; + case "EXISTS": + return 411; + case "EXPLAIN": + return 412; + case "EXPRESSION": + return 413; + case "EXTENSION": + return 414; + case "EXTERNAL": + return 415; + case "EXTRACT": + return 416; + case "FALSE_P": + return 417; + case "FAMILY": + return 418; + case "FETCH": + return 419; + case "FILTER": + return 420; + case "FINALIZE": + return 421; + case "FIRST_P": + return 422; + case "FLOAT_P": + return 423; + case "FOLLOWING": + return 424; + case "FOR": + return 425; + case "FORCE": + return 426; + case "FOREIGN": + return 427; + case "FORMAT": + return 428; + case "FORWARD": + return 429; + case "FREEZE": + return 430; + case "FROM": + return 431; + case "FULL": + return 432; + case "FUNCTION": + return 433; + case "FUNCTIONS": + return 434; + case "GENERATED": + return 435; + case "GLOBAL": + return 436; + case "GRANT": + return 437; + case "GRANTED": + return 438; + case "GREATEST": + return 439; + case "GROUP_P": + return 440; + case "GROUPING": + return 441; + case "GROUPS": + return 442; + case "HANDLER": + return 443; + case "HAVING": + return 444; + case "HEADER_P": + return 445; + case "HOLD": + return 446; + case "HOUR_P": + return 447; + case "IDENTITY_P": + return 448; + case "IF_P": + return 449; + case "ILIKE": + return 450; + case "IMMEDIATE": + return 451; + case "IMMUTABLE": + return 452; + case "IMPLICIT_P": + return 453; + case "IMPORT_P": + return 454; + case "IN_P": + return 455; + case "INCLUDE": + return 456; + case "INCLUDING": + return 457; + case "INCREMENT": + return 458; + case "INDENT": + return 459; + case "INDEX": + return 460; + case "INDEXES": + return 461; + case "INHERIT": + return 462; + case "INHERITS": + return 463; + case "INITIALLY": + return 464; + case "INLINE_P": + return 465; + case "INNER_P": + return 466; + case "INOUT": + return 467; + case "INPUT_P": + return 468; + case "INSENSITIVE": + return 469; + case "INSERT": + return 470; + case "INSTEAD": + return 471; + case "INT_P": + return 472; + case "INTEGER": + return 473; + case "INTERSECT": + return 474; + case "INTERVAL": + return 475; + case "INTO": + return 476; + case "INVOKER": + return 477; + case "IS": + return 478; + case "ISNULL": + return 479; + case "ISOLATION": + return 480; + case "JOIN": + return 481; + case "JSON": + return 482; + case "JSON_ARRAY": + return 483; + case "JSON_ARRAYAGG": + return 484; + case "JSON_OBJECT": + return 485; + case "JSON_OBJECTAGG": + return 486; + case "KEY": + return 487; + case "KEYS": + return 488; + case "LABEL": + return 489; + case "LANGUAGE": + return 490; + case "LARGE_P": + return 491; + case "LAST_P": + return 492; + case "LATERAL_P": + return 493; + case "LEADING": + return 494; + case "LEAKPROOF": + return 495; + case "LEAST": + return 496; + case "LEFT": + return 497; + case "LEVEL": + return 498; + case "LIKE": + return 499; + case "LIMIT": + return 500; + case "LISTEN": + return 501; + case "LOAD": + return 502; + case "LOCAL": + return 503; + case "LOCALTIME": + return 504; + case "LOCALTIMESTAMP": + return 505; + case "LOCATION": + return 506; + case "LOCK_P": + return 507; + case "LOCKED": + return 508; + case "LOGGED": + return 509; + case "MAPPING": + return 510; + case "MATCH": + return 511; + case "MATCHED": + return 512; + case "MATERIALIZED": + return 513; + case "MAXVALUE": + return 514; + case "MERGE": + return 515; + case "METHOD": + return 516; + case "MINUTE_P": + return 517; + case "MINVALUE": + return 518; + case "MODE": + return 519; + case "MONTH_P": + return 520; + case "MOVE": + return 521; + case "NAME_P": + return 522; + case "NAMES": + return 523; + case "NATIONAL": + return 524; + case "NATURAL": + return 525; + case "NCHAR": + return 526; + case "NEW": + return 527; + case "NEXT": + return 528; + case "NFC": + return 529; + case "NFD": + return 530; + case "NFKC": + return 531; + case "NFKD": + return 532; + case "NO": + return 533; + case "NONE": + return 534; + case "NORMALIZE": + return 535; + case "NORMALIZED": + return 536; + case "NOT": + return 537; + case "NOTHING": + return 538; + case "NOTIFY": + return 539; + case "NOTNULL": + return 540; + case "NOWAIT": + return 541; + case "NULL_P": + return 542; + case "NULLIF": + return 543; + case "NULLS_P": + return 544; + case "NUMERIC": + return 545; + case "OBJECT_P": + return 546; + case "OF": + return 547; + case "OFF": + return 548; + case "OFFSET": + return 549; + case "OIDS": + return 550; + case "OLD": + return 551; + case "ON": + return 552; + case "ONLY": + return 553; + case "OPERATOR": + return 554; + case "OPTION": + return 555; + case "OPTIONS": + return 556; + case "OR": + return 557; + case "ORDER": + return 558; + case "ORDINALITY": + return 559; + case "OTHERS": + return 560; + case "OUT_P": + return 561; + case "OUTER_P": + return 562; + case "OVER": + return 563; + case "OVERLAPS": + return 564; + case "OVERLAY": + return 565; + case "OVERRIDING": + return 566; + case "OWNED": + return 567; + case "OWNER": + return 568; + case "PARALLEL": + return 569; + case "PARAMETER": + return 570; + case "PARSER": + return 571; + case "PARTIAL": + return 572; + case "PARTITION": + return 573; + case "PASSING": + return 574; + case "PASSWORD": + return 575; + case "PLACING": + return 576; + case "PLANS": + return 577; + case "POLICY": + return 578; + case "POSITION": + return 579; + case "PRECEDING": + return 580; + case "PRECISION": + return 581; + case "PRESERVE": + return 582; + case "PREPARE": + return 583; + case "PREPARED": + return 584; + case "PRIMARY": + return 585; + case "PRIOR": + return 586; + case "PRIVILEGES": + return 587; + case "PROCEDURAL": + return 588; + case "PROCEDURE": + return 589; + case "PROCEDURES": + return 590; + case "PROGRAM": + return 591; + case "PUBLICATION": + return 592; + case "QUOTE": + return 593; + case "RANGE": + return 594; + case "READ": + return 595; + case "REAL": + return 596; + case "REASSIGN": + return 597; + case "RECHECK": + return 598; + case "RECURSIVE": + return 599; + case "REF_P": + return 600; + case "REFERENCES": + return 601; + case "REFERENCING": + return 602; + case "REFRESH": + return 603; + case "REINDEX": + return 604; + case "RELATIVE_P": + return 605; + case "RELEASE": + return 606; + case "RENAME": + return 607; + case "REPEATABLE": + return 608; + case "REPLACE": + return 609; + case "REPLICA": + return 610; + case "RESET": + return 611; + case "RESTART": + return 612; + case "RESTRICT": + return 613; + case "RETURN": + return 614; + case "RETURNING": + return 615; + case "RETURNS": + return 616; + case "REVOKE": + return 617; + case "RIGHT": + return 618; + case "ROLE": + return 619; + case "ROLLBACK": + return 620; + case "ROLLUP": + return 621; + case "ROUTINE": + return 622; + case "ROUTINES": + return 623; + case "ROW": + return 624; + case "ROWS": + return 625; + case "RULE": + return 626; + case "SAVEPOINT": + return 627; + case "SCALAR": + return 628; + case "SCHEMA": + return 629; + case "SCHEMAS": + return 630; + case "SCROLL": + return 631; + case "SEARCH": + return 632; + case "SECOND_P": + return 633; + case "SECURITY": + return 634; + case "SELECT": + return 635; + case "SEQUENCE": + return 636; + case "SEQUENCES": + return 637; + case "SERIALIZABLE": + return 638; + case "SERVER": + return 639; + case "SESSION": + return 640; + case "SESSION_USER": + return 641; + case "SET": + return 642; + case "SETS": + return 643; + case "SETOF": + return 644; + case "SHARE": + return 645; + case "SHOW": + return 646; + case "SIMILAR": + return 647; + case "SIMPLE": + return 648; + case "SKIP": + return 649; + case "SMALLINT": + return 650; + case "SNAPSHOT": + return 651; + case "SOME": + return 652; + case "SQL_P": + return 653; + case "STABLE": + return 654; + case "STANDALONE_P": + return 655; + case "START": + return 656; + case "STATEMENT": + return 657; + case "STATISTICS": + return 658; + case "STDIN": + return 659; + case "STDOUT": + return 660; + case "STORAGE": + return 661; + case "STORED": + return 662; + case "STRICT_P": + return 663; + case "STRIP_P": + return 664; + case "SUBSCRIPTION": + return 665; + case "SUBSTRING": + return 666; + case "SUPPORT": + return 667; + case "SYMMETRIC": + return 668; + case "SYSID": + return 669; + case "SYSTEM_P": + return 670; + case "SYSTEM_USER": + return 671; + case "TABLE": + return 672; + case "TABLES": + return 673; + case "TABLESAMPLE": + return 674; + case "TABLESPACE": + return 675; + case "TEMP": + return 676; + case "TEMPLATE": + return 677; + case "TEMPORARY": + return 678; + case "TEXT_P": + return 679; + case "THEN": + return 680; + case "TIES": + return 681; + case "TIME": + return 682; + case "TIMESTAMP": + return 683; + case "TO": + return 684; + case "TRAILING": + return 685; + case "TRANSACTION": + return 686; + case "TRANSFORM": + return 687; + case "TREAT": + return 688; + case "TRIGGER": + return 689; + case "TRIM": + return 690; + case "TRUE_P": + return 691; + case "TRUNCATE": + return 692; + case "TRUSTED": + return 693; + case "TYPE_P": + return 694; + case "TYPES_P": + return 695; + case "UESCAPE": + return 696; + case "UNBOUNDED": + return 697; + case "UNCOMMITTED": + return 698; + case "UNENCRYPTED": + return 699; + case "UNION": + return 700; + case "UNIQUE": + return 701; + case "UNKNOWN": + return 702; + case "UNLISTEN": + return 703; + case "UNLOGGED": + return 704; + case "UNTIL": + return 705; + case "UPDATE": + return 706; + case "USER": + return 707; + case "USING": + return 708; + case "VACUUM": + return 709; + case "VALID": + return 710; + case "VALIDATE": + return 711; + case "VALIDATOR": + return 712; + case "VALUE_P": + return 713; + case "VALUES": + return 714; + case "VARCHAR": + return 715; + case "VARIADIC": + return 716; + case "VARYING": + return 717; + case "VERBOSE": + return 718; + case "VERSION_P": + return 719; + case "VIEW": + return 720; + case "VIEWS": + return 721; + case "VOLATILE": + return 722; + case "WHEN": + return 723; + case "WHERE": + return 724; + case "WHITESPACE_P": + return 725; + case "WINDOW": + return 726; + case "WITH": + return 727; + case "WITHIN": + return 728; + case "WITHOUT": + return 729; + case "WORK": + return 730; + case "WRAPPER": + return 731; + case "WRITE": + return 732; + case "XML_P": + return 733; + case "XMLATTRIBUTES": + return 734; + case "XMLCONCAT": + return 735; + case "XMLELEMENT": + return 736; + case "XMLEXISTS": + return 737; + case "XMLFOREST": + return 738; + case "XMLNAMESPACES": + return 739; + case "XMLPARSE": + return 740; + case "XMLPI": + return 741; + case "XMLROOT": + return 742; + case "XMLSERIALIZE": + return 743; + case "XMLTABLE": + return 744; + case "YEAR_P": + return 745; + case "YES_P": + return 746; + case "ZONE": + return 747; + case "FORMAT_LA": + return 748; + case "NOT_LA": + return 749; + case "NULLS_LA": + return 750; + case "WITH_LA": + return 751; + case "WITHOUT_LA": + return 752; + case "MODE_TYPE_NAME": + return 753; + case "MODE_PLPGSQL_EXPR": + return 754; + case "MODE_PLPGSQL_ASSIGN1": + return 755; + case "MODE_PLPGSQL_ASSIGN2": + return 756; + case "MODE_PLPGSQL_ASSIGN3": + return 757; + case "UMINUS": + return 758; + default: + throw new Error("Key not recognized in enum Token"); + } + } +};", + "file": "enum-to-int-nested.ts", + }, +] +`; + +exports[`enum utils switch statements format generates bidirectional enum value functions 1`] = ` +[ + { + "code": "/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type EnumType = "OverridingKind" | "QuerySource" | "SortByDir" | "SortByNulls" | "SetQuantifier" | "A_Expr_Kind" | "RoleSpecType" | "TableLikeOption" | "DefElemAction" | "PartitionStrategy" | "PartitionRangeDatumKind" | "RTEKind" | "WCOKind" | "GroupingSetKind" | "CTEMaterialize" | "SetOperation" | "ObjectType" | "DropBehavior" | "AlterTableType" | "GrantTargetType" | "VariableSetKind" | "ConstrType" | "ImportForeignSchemaType" | "RoleStmtType" | "FetchDirection" | "FunctionParameterMode" | "TransactionStmtKind" | "ViewCheckOption" | "DiscardMode" | "ReindexObjectType" | "AlterTSConfigType" | "PublicationObjSpecType" | "AlterPublicationAction" | "AlterSubscriptionType" | "OnCommitAction" | "ParamKind" | "CoercionContext" | "CoercionForm" | "BoolExprType" | "SubLinkType" | "RowCompareType" | "MinMaxOp" | "SQLValueFunctionOp" | "XmlExprOp" | "XmlOptionType" | "JsonEncoding" | "JsonFormatType" | "JsonConstructorType" | "JsonValueType" | "NullTestType" | "BoolTestType" | "CmdType" | "JoinType" | "AggStrategy" | "AggSplit" | "SetOpCmd" | "SetOpStrategy" | "OnConflictAction" | "LimitOption" | "LockClauseStrength" | "LockWaitPolicy" | "LockTupleMode" | "KeywordKind" | "Token"; +export const getEnumValue = (enumType: EnumType, key: string | number) => { + switch (enumType) { + case "OverridingKind": + { + switch (key) { + case "OVERRIDING_NOT_SET": + return 0; + case "OVERRIDING_USER_VALUE": + return 1; + case "OVERRIDING_SYSTEM_VALUE": + return 2; + case 0: + return "OVERRIDING_NOT_SET"; + case 1: + return "OVERRIDING_USER_VALUE"; + case 2: + return "OVERRIDING_SYSTEM_VALUE"; + default: + throw new Error("Key not recognized in enum OverridingKind"); + } + } + case "QuerySource": + { + switch (key) { + case "QSRC_ORIGINAL": + return 0; + case "QSRC_PARSER": + return 1; + case "QSRC_INSTEAD_RULE": + return 2; + case "QSRC_QUAL_INSTEAD_RULE": + return 3; + case "QSRC_NON_INSTEAD_RULE": + return 4; + case 0: + return "QSRC_ORIGINAL"; + case 1: + return "QSRC_PARSER"; + case 2: + return "QSRC_INSTEAD_RULE"; + case 3: + return "QSRC_QUAL_INSTEAD_RULE"; + case 4: + return "QSRC_NON_INSTEAD_RULE"; + default: + throw new Error("Key not recognized in enum QuerySource"); + } + } + case "SortByDir": + { + switch (key) { + case "SORTBY_DEFAULT": + return 0; + case "SORTBY_ASC": + return 1; + case "SORTBY_DESC": + return 2; + case "SORTBY_USING": + return 3; + case 0: + return "SORTBY_DEFAULT"; + case 1: + return "SORTBY_ASC"; + case 2: + return "SORTBY_DESC"; + case 3: + return "SORTBY_USING"; + default: + throw new Error("Key not recognized in enum SortByDir"); + } + } + case "SortByNulls": + { + switch (key) { + case "SORTBY_NULLS_DEFAULT": + return 0; + case "SORTBY_NULLS_FIRST": + return 1; + case "SORTBY_NULLS_LAST": + return 2; + case 0: + return "SORTBY_NULLS_DEFAULT"; + case 1: + return "SORTBY_NULLS_FIRST"; + case 2: + return "SORTBY_NULLS_LAST"; + default: + throw new Error("Key not recognized in enum SortByNulls"); + } + } + case "SetQuantifier": + { + switch (key) { + case "SET_QUANTIFIER_DEFAULT": + return 0; + case "SET_QUANTIFIER_ALL": + return 1; + case "SET_QUANTIFIER_DISTINCT": + return 2; + case 0: + return "SET_QUANTIFIER_DEFAULT"; + case 1: + return "SET_QUANTIFIER_ALL"; + case 2: + return "SET_QUANTIFIER_DISTINCT"; + default: + throw new Error("Key not recognized in enum SetQuantifier"); + } + } + case "A_Expr_Kind": + { + switch (key) { + case "AEXPR_OP": + return 0; + case "AEXPR_OP_ANY": + return 1; + case "AEXPR_OP_ALL": + return 2; + case "AEXPR_DISTINCT": + return 3; + case "AEXPR_NOT_DISTINCT": + return 4; + case "AEXPR_NULLIF": + return 5; + case "AEXPR_IN": + return 6; + case "AEXPR_LIKE": + return 7; + case "AEXPR_ILIKE": + return 8; + case "AEXPR_SIMILAR": + return 9; + case "AEXPR_BETWEEN": + return 10; + case "AEXPR_NOT_BETWEEN": + return 11; + case "AEXPR_BETWEEN_SYM": + return 12; + case "AEXPR_NOT_BETWEEN_SYM": + return 13; + case 0: + return "AEXPR_OP"; + case 1: + return "AEXPR_OP_ANY"; + case 2: + return "AEXPR_OP_ALL"; + case 3: + return "AEXPR_DISTINCT"; + case 4: + return "AEXPR_NOT_DISTINCT"; + case 5: + return "AEXPR_NULLIF"; + case 6: + return "AEXPR_IN"; + case 7: + return "AEXPR_LIKE"; + case 8: + return "AEXPR_ILIKE"; + case 9: + return "AEXPR_SIMILAR"; + case 10: + return "AEXPR_BETWEEN"; + case 11: + return "AEXPR_NOT_BETWEEN"; + case 12: + return "AEXPR_BETWEEN_SYM"; + case 13: + return "AEXPR_NOT_BETWEEN_SYM"; + default: + throw new Error("Key not recognized in enum A_Expr_Kind"); + } + } + case "RoleSpecType": + { + switch (key) { + case "ROLESPEC_CSTRING": + return 0; + case "ROLESPEC_CURRENT_ROLE": + return 1; + case "ROLESPEC_CURRENT_USER": + return 2; + case "ROLESPEC_SESSION_USER": + return 3; + case "ROLESPEC_PUBLIC": + return 4; + case 0: + return "ROLESPEC_CSTRING"; + case 1: + return "ROLESPEC_CURRENT_ROLE"; + case 2: + return "ROLESPEC_CURRENT_USER"; + case 3: + return "ROLESPEC_SESSION_USER"; + case 4: + return "ROLESPEC_PUBLIC"; + default: + throw new Error("Key not recognized in enum RoleSpecType"); + } + } + case "TableLikeOption": + { + switch (key) { + case "CREATE_TABLE_LIKE_COMMENTS": + return 0; + case "CREATE_TABLE_LIKE_COMPRESSION": + return 1; + case "CREATE_TABLE_LIKE_CONSTRAINTS": + return 2; + case "CREATE_TABLE_LIKE_DEFAULTS": + return 3; + case "CREATE_TABLE_LIKE_GENERATED": + return 4; + case "CREATE_TABLE_LIKE_IDENTITY": + return 5; + case "CREATE_TABLE_LIKE_INDEXES": + return 6; + case "CREATE_TABLE_LIKE_STATISTICS": + return 7; + case "CREATE_TABLE_LIKE_STORAGE": + return 8; + case "CREATE_TABLE_LIKE_ALL": + return 9; + case 0: + return "CREATE_TABLE_LIKE_COMMENTS"; + case 1: + return "CREATE_TABLE_LIKE_COMPRESSION"; + case 2: + return "CREATE_TABLE_LIKE_CONSTRAINTS"; + case 3: + return "CREATE_TABLE_LIKE_DEFAULTS"; + case 4: + return "CREATE_TABLE_LIKE_GENERATED"; + case 5: + return "CREATE_TABLE_LIKE_IDENTITY"; + case 6: + return "CREATE_TABLE_LIKE_INDEXES"; + case 7: + return "CREATE_TABLE_LIKE_STATISTICS"; + case 8: + return "CREATE_TABLE_LIKE_STORAGE"; + case 9: + return "CREATE_TABLE_LIKE_ALL"; + default: + throw new Error("Key not recognized in enum TableLikeOption"); + } + } + case "DefElemAction": + { + switch (key) { + case "DEFELEM_UNSPEC": + return 0; + case "DEFELEM_SET": + return 1; + case "DEFELEM_ADD": + return 2; + case "DEFELEM_DROP": + return 3; + case 0: + return "DEFELEM_UNSPEC"; + case 1: + return "DEFELEM_SET"; + case 2: + return "DEFELEM_ADD"; + case 3: + return "DEFELEM_DROP"; + default: + throw new Error("Key not recognized in enum DefElemAction"); + } + } + case "PartitionStrategy": + { + switch (key) { + case "PARTITION_STRATEGY_LIST": + return 0; + case "PARTITION_STRATEGY_RANGE": + return 1; + case "PARTITION_STRATEGY_HASH": + return 2; + case 0: + return "PARTITION_STRATEGY_LIST"; + case 1: + return "PARTITION_STRATEGY_RANGE"; + case 2: + return "PARTITION_STRATEGY_HASH"; + default: + throw new Error("Key not recognized in enum PartitionStrategy"); + } + } + case "PartitionRangeDatumKind": + { + switch (key) { + case "PARTITION_RANGE_DATUM_MINVALUE": + return 0; + case "PARTITION_RANGE_DATUM_VALUE": + return 1; + case "PARTITION_RANGE_DATUM_MAXVALUE": + return 2; + case 0: + return "PARTITION_RANGE_DATUM_MINVALUE"; + case 1: + return "PARTITION_RANGE_DATUM_VALUE"; + case 2: + return "PARTITION_RANGE_DATUM_MAXVALUE"; + default: + throw new Error("Key not recognized in enum PartitionRangeDatumKind"); + } + } + case "RTEKind": + { + switch (key) { + case "RTE_RELATION": + return 0; + case "RTE_SUBQUERY": + return 1; + case "RTE_JOIN": + return 2; + case "RTE_FUNCTION": + return 3; + case "RTE_TABLEFUNC": + return 4; + case "RTE_VALUES": + return 5; + case "RTE_CTE": + return 6; + case "RTE_NAMEDTUPLESTORE": + return 7; + case "RTE_RESULT": + return 8; + case 0: + return "RTE_RELATION"; + case 1: + return "RTE_SUBQUERY"; + case 2: + return "RTE_JOIN"; + case 3: + return "RTE_FUNCTION"; + case 4: + return "RTE_TABLEFUNC"; + case 5: + return "RTE_VALUES"; + case 6: + return "RTE_CTE"; + case 7: + return "RTE_NAMEDTUPLESTORE"; + case 8: + return "RTE_RESULT"; + default: + throw new Error("Key not recognized in enum RTEKind"); + } + } + case "WCOKind": + { + switch (key) { + case "WCO_VIEW_CHECK": + return 0; + case "WCO_RLS_INSERT_CHECK": + return 1; + case "WCO_RLS_UPDATE_CHECK": + return 2; + case "WCO_RLS_CONFLICT_CHECK": + return 3; + case "WCO_RLS_MERGE_UPDATE_CHECK": + return 4; + case "WCO_RLS_MERGE_DELETE_CHECK": + return 5; + case 0: + return "WCO_VIEW_CHECK"; + case 1: + return "WCO_RLS_INSERT_CHECK"; + case 2: + return "WCO_RLS_UPDATE_CHECK"; + case 3: + return "WCO_RLS_CONFLICT_CHECK"; + case 4: + return "WCO_RLS_MERGE_UPDATE_CHECK"; + case 5: + return "WCO_RLS_MERGE_DELETE_CHECK"; + default: + throw new Error("Key not recognized in enum WCOKind"); + } + } + case "GroupingSetKind": + { + switch (key) { + case "GROUPING_SET_EMPTY": + return 0; + case "GROUPING_SET_SIMPLE": + return 1; + case "GROUPING_SET_ROLLUP": + return 2; + case "GROUPING_SET_CUBE": + return 3; + case "GROUPING_SET_SETS": + return 4; + case 0: + return "GROUPING_SET_EMPTY"; + case 1: + return "GROUPING_SET_SIMPLE"; + case 2: + return "GROUPING_SET_ROLLUP"; + case 3: + return "GROUPING_SET_CUBE"; + case 4: + return "GROUPING_SET_SETS"; + default: + throw new Error("Key not recognized in enum GroupingSetKind"); + } + } + case "CTEMaterialize": + { + switch (key) { + case "CTEMaterializeDefault": + return 0; + case "CTEMaterializeAlways": + return 1; + case "CTEMaterializeNever": + return 2; + case 0: + return "CTEMaterializeDefault"; + case 1: + return "CTEMaterializeAlways"; + case 2: + return "CTEMaterializeNever"; + default: + throw new Error("Key not recognized in enum CTEMaterialize"); + } + } + case "SetOperation": + { + switch (key) { + case "SETOP_NONE": + return 0; + case "SETOP_UNION": + return 1; + case "SETOP_INTERSECT": + return 2; + case "SETOP_EXCEPT": + return 3; + case 0: + return "SETOP_NONE"; + case 1: + return "SETOP_UNION"; + case 2: + return "SETOP_INTERSECT"; + case 3: + return "SETOP_EXCEPT"; + default: + throw new Error("Key not recognized in enum SetOperation"); + } + } + case "ObjectType": + { + switch (key) { + case "OBJECT_ACCESS_METHOD": + return 0; + case "OBJECT_AGGREGATE": + return 1; + case "OBJECT_AMOP": + return 2; + case "OBJECT_AMPROC": + return 3; + case "OBJECT_ATTRIBUTE": + return 4; + case "OBJECT_CAST": + return 5; + case "OBJECT_COLUMN": + return 6; + case "OBJECT_COLLATION": + return 7; + case "OBJECT_CONVERSION": + return 8; + case "OBJECT_DATABASE": + return 9; + case "OBJECT_DEFAULT": + return 10; + case "OBJECT_DEFACL": + return 11; + case "OBJECT_DOMAIN": + return 12; + case "OBJECT_DOMCONSTRAINT": + return 13; + case "OBJECT_EVENT_TRIGGER": + return 14; + case "OBJECT_EXTENSION": + return 15; + case "OBJECT_FDW": + return 16; + case "OBJECT_FOREIGN_SERVER": + return 17; + case "OBJECT_FOREIGN_TABLE": + return 18; + case "OBJECT_FUNCTION": + return 19; + case "OBJECT_INDEX": + return 20; + case "OBJECT_LANGUAGE": + return 21; + case "OBJECT_LARGEOBJECT": + return 22; + case "OBJECT_MATVIEW": + return 23; + case "OBJECT_OPCLASS": + return 24; + case "OBJECT_OPERATOR": + return 25; + case "OBJECT_OPFAMILY": + return 26; + case "OBJECT_PARAMETER_ACL": + return 27; + case "OBJECT_POLICY": + return 28; + case "OBJECT_PROCEDURE": + return 29; + case "OBJECT_PUBLICATION": + return 30; + case "OBJECT_PUBLICATION_NAMESPACE": + return 31; + case "OBJECT_PUBLICATION_REL": + return 32; + case "OBJECT_ROLE": + return 33; + case "OBJECT_ROUTINE": + return 34; + case "OBJECT_RULE": + return 35; + case "OBJECT_SCHEMA": + return 36; + case "OBJECT_SEQUENCE": + return 37; + case "OBJECT_SUBSCRIPTION": + return 38; + case "OBJECT_STATISTIC_EXT": + return 39; + case "OBJECT_TABCONSTRAINT": + return 40; + case "OBJECT_TABLE": + return 41; + case "OBJECT_TABLESPACE": + return 42; + case "OBJECT_TRANSFORM": + return 43; + case "OBJECT_TRIGGER": + return 44; + case "OBJECT_TSCONFIGURATION": + return 45; + case "OBJECT_TSDICTIONARY": + return 46; + case "OBJECT_TSPARSER": + return 47; + case "OBJECT_TSTEMPLATE": + return 48; + case "OBJECT_TYPE": + return 49; + case "OBJECT_USER_MAPPING": + return 50; + case "OBJECT_VIEW": + return 51; + case 0: + return "OBJECT_ACCESS_METHOD"; + case 1: + return "OBJECT_AGGREGATE"; + case 2: + return "OBJECT_AMOP"; + case 3: + return "OBJECT_AMPROC"; + case 4: + return "OBJECT_ATTRIBUTE"; + case 5: + return "OBJECT_CAST"; + case 6: + return "OBJECT_COLUMN"; + case 7: + return "OBJECT_COLLATION"; + case 8: + return "OBJECT_CONVERSION"; + case 9: + return "OBJECT_DATABASE"; + case 10: + return "OBJECT_DEFAULT"; + case 11: + return "OBJECT_DEFACL"; + case 12: + return "OBJECT_DOMAIN"; + case 13: + return "OBJECT_DOMCONSTRAINT"; + case 14: + return "OBJECT_EVENT_TRIGGER"; + case 15: + return "OBJECT_EXTENSION"; + case 16: + return "OBJECT_FDW"; + case 17: + return "OBJECT_FOREIGN_SERVER"; + case 18: + return "OBJECT_FOREIGN_TABLE"; + case 19: + return "OBJECT_FUNCTION"; + case 20: + return "OBJECT_INDEX"; + case 21: + return "OBJECT_LANGUAGE"; + case 22: + return "OBJECT_LARGEOBJECT"; + case 23: + return "OBJECT_MATVIEW"; + case 24: + return "OBJECT_OPCLASS"; + case 25: + return "OBJECT_OPERATOR"; + case 26: + return "OBJECT_OPFAMILY"; + case 27: + return "OBJECT_PARAMETER_ACL"; + case 28: + return "OBJECT_POLICY"; + case 29: + return "OBJECT_PROCEDURE"; + case 30: + return "OBJECT_PUBLICATION"; + case 31: + return "OBJECT_PUBLICATION_NAMESPACE"; + case 32: + return "OBJECT_PUBLICATION_REL"; + case 33: + return "OBJECT_ROLE"; + case 34: + return "OBJECT_ROUTINE"; + case 35: + return "OBJECT_RULE"; + case 36: + return "OBJECT_SCHEMA"; + case 37: + return "OBJECT_SEQUENCE"; + case 38: + return "OBJECT_SUBSCRIPTION"; + case 39: + return "OBJECT_STATISTIC_EXT"; + case 40: + return "OBJECT_TABCONSTRAINT"; + case 41: + return "OBJECT_TABLE"; + case 42: + return "OBJECT_TABLESPACE"; + case 43: + return "OBJECT_TRANSFORM"; + case 44: + return "OBJECT_TRIGGER"; + case 45: + return "OBJECT_TSCONFIGURATION"; + case 46: + return "OBJECT_TSDICTIONARY"; + case 47: + return "OBJECT_TSPARSER"; + case 48: + return "OBJECT_TSTEMPLATE"; + case 49: + return "OBJECT_TYPE"; + case 50: + return "OBJECT_USER_MAPPING"; + case 51: + return "OBJECT_VIEW"; + default: + throw new Error("Key not recognized in enum ObjectType"); + } + } + case "DropBehavior": + { + switch (key) { + case "DROP_RESTRICT": + return 0; + case "DROP_CASCADE": + return 1; + case 0: + return "DROP_RESTRICT"; + case 1: + return "DROP_CASCADE"; + default: + throw new Error("Key not recognized in enum DropBehavior"); + } + } + case "AlterTableType": + { + switch (key) { + case "AT_AddColumn": + return 0; + case "AT_AddColumnToView": + return 1; + case "AT_ColumnDefault": + return 2; + case "AT_CookedColumnDefault": + return 3; + case "AT_DropNotNull": + return 4; + case "AT_SetNotNull": + return 5; + case "AT_DropExpression": + return 6; + case "AT_CheckNotNull": + return 7; + case "AT_SetStatistics": + return 8; + case "AT_SetOptions": + return 9; + case "AT_ResetOptions": + return 10; + case "AT_SetStorage": + return 11; + case "AT_SetCompression": + return 12; + case "AT_DropColumn": + return 13; + case "AT_AddIndex": + return 14; + case "AT_ReAddIndex": + return 15; + case "AT_AddConstraint": + return 16; + case "AT_ReAddConstraint": + return 17; + case "AT_ReAddDomainConstraint": + return 18; + case "AT_AlterConstraint": + return 19; + case "AT_ValidateConstraint": + return 20; + case "AT_AddIndexConstraint": + return 21; + case "AT_DropConstraint": + return 22; + case "AT_ReAddComment": + return 23; + case "AT_AlterColumnType": + return 24; + case "AT_AlterColumnGenericOptions": + return 25; + case "AT_ChangeOwner": + return 26; + case "AT_ClusterOn": + return 27; + case "AT_DropCluster": + return 28; + case "AT_SetLogged": + return 29; + case "AT_SetUnLogged": + return 30; + case "AT_DropOids": + return 31; + case "AT_SetAccessMethod": + return 32; + case "AT_SetTableSpace": + return 33; + case "AT_SetRelOptions": + return 34; + case "AT_ResetRelOptions": + return 35; + case "AT_ReplaceRelOptions": + return 36; + case "AT_EnableTrig": + return 37; + case "AT_EnableAlwaysTrig": + return 38; + case "AT_EnableReplicaTrig": + return 39; + case "AT_DisableTrig": + return 40; + case "AT_EnableTrigAll": + return 41; + case "AT_DisableTrigAll": + return 42; + case "AT_EnableTrigUser": + return 43; + case "AT_DisableTrigUser": + return 44; + case "AT_EnableRule": + return 45; + case "AT_EnableAlwaysRule": + return 46; + case "AT_EnableReplicaRule": + return 47; + case "AT_DisableRule": + return 48; + case "AT_AddInherit": + return 49; + case "AT_DropInherit": + return 50; + case "AT_AddOf": + return 51; + case "AT_DropOf": + return 52; + case "AT_ReplicaIdentity": + return 53; + case "AT_EnableRowSecurity": + return 54; + case "AT_DisableRowSecurity": + return 55; + case "AT_ForceRowSecurity": + return 56; + case "AT_NoForceRowSecurity": + return 57; + case "AT_GenericOptions": + return 58; + case "AT_AttachPartition": + return 59; + case "AT_DetachPartition": + return 60; + case "AT_DetachPartitionFinalize": + return 61; + case "AT_AddIdentity": + return 62; + case "AT_SetIdentity": + return 63; + case "AT_DropIdentity": + return 64; + case "AT_ReAddStatistics": + return 65; + case 0: + return "AT_AddColumn"; + case 1: + return "AT_AddColumnToView"; + case 2: + return "AT_ColumnDefault"; + case 3: + return "AT_CookedColumnDefault"; + case 4: + return "AT_DropNotNull"; + case 5: + return "AT_SetNotNull"; + case 6: + return "AT_DropExpression"; + case 7: + return "AT_CheckNotNull"; + case 8: + return "AT_SetStatistics"; + case 9: + return "AT_SetOptions"; + case 10: + return "AT_ResetOptions"; + case 11: + return "AT_SetStorage"; + case 12: + return "AT_SetCompression"; + case 13: + return "AT_DropColumn"; + case 14: + return "AT_AddIndex"; + case 15: + return "AT_ReAddIndex"; + case 16: + return "AT_AddConstraint"; + case 17: + return "AT_ReAddConstraint"; + case 18: + return "AT_ReAddDomainConstraint"; + case 19: + return "AT_AlterConstraint"; + case 20: + return "AT_ValidateConstraint"; + case 21: + return "AT_AddIndexConstraint"; + case 22: + return "AT_DropConstraint"; + case 23: + return "AT_ReAddComment"; + case 24: + return "AT_AlterColumnType"; + case 25: + return "AT_AlterColumnGenericOptions"; + case 26: + return "AT_ChangeOwner"; + case 27: + return "AT_ClusterOn"; + case 28: + return "AT_DropCluster"; + case 29: + return "AT_SetLogged"; + case 30: + return "AT_SetUnLogged"; + case 31: + return "AT_DropOids"; + case 32: + return "AT_SetAccessMethod"; + case 33: + return "AT_SetTableSpace"; + case 34: + return "AT_SetRelOptions"; + case 35: + return "AT_ResetRelOptions"; + case 36: + return "AT_ReplaceRelOptions"; + case 37: + return "AT_EnableTrig"; + case 38: + return "AT_EnableAlwaysTrig"; + case 39: + return "AT_EnableReplicaTrig"; + case 40: + return "AT_DisableTrig"; + case 41: + return "AT_EnableTrigAll"; + case 42: + return "AT_DisableTrigAll"; + case 43: + return "AT_EnableTrigUser"; + case 44: + return "AT_DisableTrigUser"; + case 45: + return "AT_EnableRule"; + case 46: + return "AT_EnableAlwaysRule"; + case 47: + return "AT_EnableReplicaRule"; + case 48: + return "AT_DisableRule"; + case 49: + return "AT_AddInherit"; + case 50: + return "AT_DropInherit"; + case 51: + return "AT_AddOf"; + case 52: + return "AT_DropOf"; + case 53: + return "AT_ReplicaIdentity"; + case 54: + return "AT_EnableRowSecurity"; + case 55: + return "AT_DisableRowSecurity"; + case 56: + return "AT_ForceRowSecurity"; + case 57: + return "AT_NoForceRowSecurity"; + case 58: + return "AT_GenericOptions"; + case 59: + return "AT_AttachPartition"; + case 60: + return "AT_DetachPartition"; + case 61: + return "AT_DetachPartitionFinalize"; + case 62: + return "AT_AddIdentity"; + case 63: + return "AT_SetIdentity"; + case 64: + return "AT_DropIdentity"; + case 65: + return "AT_ReAddStatistics"; + default: + throw new Error("Key not recognized in enum AlterTableType"); + } + } + case "GrantTargetType": + { + switch (key) { + case "ACL_TARGET_OBJECT": + return 0; + case "ACL_TARGET_ALL_IN_SCHEMA": + return 1; + case "ACL_TARGET_DEFAULTS": + return 2; + case 0: + return "ACL_TARGET_OBJECT"; + case 1: + return "ACL_TARGET_ALL_IN_SCHEMA"; + case 2: + return "ACL_TARGET_DEFAULTS"; + default: + throw new Error("Key not recognized in enum GrantTargetType"); + } + } + case "VariableSetKind": + { + switch (key) { + case "VAR_SET_VALUE": + return 0; + case "VAR_SET_DEFAULT": + return 1; + case "VAR_SET_CURRENT": + return 2; + case "VAR_SET_MULTI": + return 3; + case "VAR_RESET": + return 4; + case "VAR_RESET_ALL": + return 5; + case 0: + return "VAR_SET_VALUE"; + case 1: + return "VAR_SET_DEFAULT"; + case 2: + return "VAR_SET_CURRENT"; + case 3: + return "VAR_SET_MULTI"; + case 4: + return "VAR_RESET"; + case 5: + return "VAR_RESET_ALL"; + default: + throw new Error("Key not recognized in enum VariableSetKind"); + } + } + case "ConstrType": + { + switch (key) { + case "CONSTR_NULL": + return 0; + case "CONSTR_NOTNULL": + return 1; + case "CONSTR_DEFAULT": + return 2; + case "CONSTR_IDENTITY": + return 3; + case "CONSTR_GENERATED": + return 4; + case "CONSTR_CHECK": + return 5; + case "CONSTR_PRIMARY": + return 6; + case "CONSTR_UNIQUE": + return 7; + case "CONSTR_EXCLUSION": + return 8; + case "CONSTR_FOREIGN": + return 9; + case "CONSTR_ATTR_DEFERRABLE": + return 10; + case "CONSTR_ATTR_NOT_DEFERRABLE": + return 11; + case "CONSTR_ATTR_DEFERRED": + return 12; + case "CONSTR_ATTR_IMMEDIATE": + return 13; + case 0: + return "CONSTR_NULL"; + case 1: + return "CONSTR_NOTNULL"; + case 2: + return "CONSTR_DEFAULT"; + case 3: + return "CONSTR_IDENTITY"; + case 4: + return "CONSTR_GENERATED"; + case 5: + return "CONSTR_CHECK"; + case 6: + return "CONSTR_PRIMARY"; + case 7: + return "CONSTR_UNIQUE"; + case 8: + return "CONSTR_EXCLUSION"; + case 9: + return "CONSTR_FOREIGN"; + case 10: + return "CONSTR_ATTR_DEFERRABLE"; + case 11: + return "CONSTR_ATTR_NOT_DEFERRABLE"; + case 12: + return "CONSTR_ATTR_DEFERRED"; + case 13: + return "CONSTR_ATTR_IMMEDIATE"; + default: + throw new Error("Key not recognized in enum ConstrType"); + } + } + case "ImportForeignSchemaType": + { + switch (key) { + case "FDW_IMPORT_SCHEMA_ALL": + return 0; + case "FDW_IMPORT_SCHEMA_LIMIT_TO": + return 1; + case "FDW_IMPORT_SCHEMA_EXCEPT": + return 2; + case 0: + return "FDW_IMPORT_SCHEMA_ALL"; + case 1: + return "FDW_IMPORT_SCHEMA_LIMIT_TO"; + case 2: + return "FDW_IMPORT_SCHEMA_EXCEPT"; + default: + throw new Error("Key not recognized in enum ImportForeignSchemaType"); + } + } + case "RoleStmtType": + { + switch (key) { + case "ROLESTMT_ROLE": + return 0; + case "ROLESTMT_USER": + return 1; + case "ROLESTMT_GROUP": + return 2; + case 0: + return "ROLESTMT_ROLE"; + case 1: + return "ROLESTMT_USER"; + case 2: + return "ROLESTMT_GROUP"; + default: + throw new Error("Key not recognized in enum RoleStmtType"); + } + } + case "FetchDirection": + { + switch (key) { + case "FETCH_FORWARD": + return 0; + case "FETCH_BACKWARD": + return 1; + case "FETCH_ABSOLUTE": + return 2; + case "FETCH_RELATIVE": + return 3; + case 0: + return "FETCH_FORWARD"; + case 1: + return "FETCH_BACKWARD"; + case 2: + return "FETCH_ABSOLUTE"; + case 3: + return "FETCH_RELATIVE"; + default: + throw new Error("Key not recognized in enum FetchDirection"); + } + } + case "FunctionParameterMode": + { + switch (key) { + case "FUNC_PARAM_IN": + return 0; + case "FUNC_PARAM_OUT": + return 1; + case "FUNC_PARAM_INOUT": + return 2; + case "FUNC_PARAM_VARIADIC": + return 3; + case "FUNC_PARAM_TABLE": + return 4; + case "FUNC_PARAM_DEFAULT": + return 5; + case 0: + return "FUNC_PARAM_IN"; + case 1: + return "FUNC_PARAM_OUT"; + case 2: + return "FUNC_PARAM_INOUT"; + case 3: + return "FUNC_PARAM_VARIADIC"; + case 4: + return "FUNC_PARAM_TABLE"; + case 5: + return "FUNC_PARAM_DEFAULT"; + default: + throw new Error("Key not recognized in enum FunctionParameterMode"); + } + } + case "TransactionStmtKind": + { + switch (key) { + case "TRANS_STMT_BEGIN": + return 0; + case "TRANS_STMT_START": + return 1; + case "TRANS_STMT_COMMIT": + return 2; + case "TRANS_STMT_ROLLBACK": + return 3; + case "TRANS_STMT_SAVEPOINT": + return 4; + case "TRANS_STMT_RELEASE": + return 5; + case "TRANS_STMT_ROLLBACK_TO": + return 6; + case "TRANS_STMT_PREPARE": + return 7; + case "TRANS_STMT_COMMIT_PREPARED": + return 8; + case "TRANS_STMT_ROLLBACK_PREPARED": + return 9; + case 0: + return "TRANS_STMT_BEGIN"; + case 1: + return "TRANS_STMT_START"; + case 2: + return "TRANS_STMT_COMMIT"; + case 3: + return "TRANS_STMT_ROLLBACK"; + case 4: + return "TRANS_STMT_SAVEPOINT"; + case 5: + return "TRANS_STMT_RELEASE"; + case 6: + return "TRANS_STMT_ROLLBACK_TO"; + case 7: + return "TRANS_STMT_PREPARE"; + case 8: + return "TRANS_STMT_COMMIT_PREPARED"; + case 9: + return "TRANS_STMT_ROLLBACK_PREPARED"; + default: + throw new Error("Key not recognized in enum TransactionStmtKind"); + } + } + case "ViewCheckOption": + { + switch (key) { + case "NO_CHECK_OPTION": + return 0; + case "LOCAL_CHECK_OPTION": + return 1; + case "CASCADED_CHECK_OPTION": + return 2; + case 0: + return "NO_CHECK_OPTION"; + case 1: + return "LOCAL_CHECK_OPTION"; + case 2: + return "CASCADED_CHECK_OPTION"; + default: + throw new Error("Key not recognized in enum ViewCheckOption"); + } + } + case "DiscardMode": + { + switch (key) { + case "DISCARD_ALL": + return 0; + case "DISCARD_PLANS": + return 1; + case "DISCARD_SEQUENCES": + return 2; + case "DISCARD_TEMP": + return 3; + case 0: + return "DISCARD_ALL"; + case 1: + return "DISCARD_PLANS"; + case 2: + return "DISCARD_SEQUENCES"; + case 3: + return "DISCARD_TEMP"; + default: + throw new Error("Key not recognized in enum DiscardMode"); + } + } + case "ReindexObjectType": + { + switch (key) { + case "REINDEX_OBJECT_INDEX": + return 0; + case "REINDEX_OBJECT_TABLE": + return 1; + case "REINDEX_OBJECT_SCHEMA": + return 2; + case "REINDEX_OBJECT_SYSTEM": + return 3; + case "REINDEX_OBJECT_DATABASE": + return 4; + case 0: + return "REINDEX_OBJECT_INDEX"; + case 1: + return "REINDEX_OBJECT_TABLE"; + case 2: + return "REINDEX_OBJECT_SCHEMA"; + case 3: + return "REINDEX_OBJECT_SYSTEM"; + case 4: + return "REINDEX_OBJECT_DATABASE"; + default: + throw new Error("Key not recognized in enum ReindexObjectType"); + } + } + case "AlterTSConfigType": + { + switch (key) { + case "ALTER_TSCONFIG_ADD_MAPPING": + return 0; + case "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN": + return 1; + case "ALTER_TSCONFIG_REPLACE_DICT": + return 2; + case "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN": + return 3; + case "ALTER_TSCONFIG_DROP_MAPPING": + return 4; + case 0: + return "ALTER_TSCONFIG_ADD_MAPPING"; + case 1: + return "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN"; + case 2: + return "ALTER_TSCONFIG_REPLACE_DICT"; + case 3: + return "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN"; + case 4: + return "ALTER_TSCONFIG_DROP_MAPPING"; + default: + throw new Error("Key not recognized in enum AlterTSConfigType"); + } + } + case "PublicationObjSpecType": + { + switch (key) { + case "PUBLICATIONOBJ_TABLE": + return 0; + case "PUBLICATIONOBJ_TABLES_IN_SCHEMA": + return 1; + case "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA": + return 2; + case "PUBLICATIONOBJ_CONTINUATION": + return 3; + case 0: + return "PUBLICATIONOBJ_TABLE"; + case 1: + return "PUBLICATIONOBJ_TABLES_IN_SCHEMA"; + case 2: + return "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA"; + case 3: + return "PUBLICATIONOBJ_CONTINUATION"; + default: + throw new Error("Key not recognized in enum PublicationObjSpecType"); + } + } + case "AlterPublicationAction": + { + switch (key) { + case "AP_AddObjects": + return 0; + case "AP_DropObjects": + return 1; + case "AP_SetObjects": + return 2; + case 0: + return "AP_AddObjects"; + case 1: + return "AP_DropObjects"; + case 2: + return "AP_SetObjects"; + default: + throw new Error("Key not recognized in enum AlterPublicationAction"); + } + } + case "AlterSubscriptionType": + { + switch (key) { + case "ALTER_SUBSCRIPTION_OPTIONS": + return 0; + case "ALTER_SUBSCRIPTION_CONNECTION": + return 1; + case "ALTER_SUBSCRIPTION_SET_PUBLICATION": + return 2; + case "ALTER_SUBSCRIPTION_ADD_PUBLICATION": + return 3; + case "ALTER_SUBSCRIPTION_DROP_PUBLICATION": + return 4; + case "ALTER_SUBSCRIPTION_REFRESH": + return 5; + case "ALTER_SUBSCRIPTION_ENABLED": + return 6; + case "ALTER_SUBSCRIPTION_SKIP": + return 7; + case 0: + return "ALTER_SUBSCRIPTION_OPTIONS"; + case 1: + return "ALTER_SUBSCRIPTION_CONNECTION"; + case 2: + return "ALTER_SUBSCRIPTION_SET_PUBLICATION"; + case 3: + return "ALTER_SUBSCRIPTION_ADD_PUBLICATION"; + case 4: + return "ALTER_SUBSCRIPTION_DROP_PUBLICATION"; + case 5: + return "ALTER_SUBSCRIPTION_REFRESH"; + case 6: + return "ALTER_SUBSCRIPTION_ENABLED"; + case 7: + return "ALTER_SUBSCRIPTION_SKIP"; + default: + throw new Error("Key not recognized in enum AlterSubscriptionType"); + } + } + case "OnCommitAction": + { + switch (key) { + case "ONCOMMIT_NOOP": + return 0; + case "ONCOMMIT_PRESERVE_ROWS": + return 1; + case "ONCOMMIT_DELETE_ROWS": + return 2; + case "ONCOMMIT_DROP": + return 3; + case 0: + return "ONCOMMIT_NOOP"; + case 1: + return "ONCOMMIT_PRESERVE_ROWS"; + case 2: + return "ONCOMMIT_DELETE_ROWS"; + case 3: + return "ONCOMMIT_DROP"; + default: + throw new Error("Key not recognized in enum OnCommitAction"); + } + } + case "ParamKind": + { + switch (key) { + case "PARAM_EXTERN": + return 0; + case "PARAM_EXEC": + return 1; + case "PARAM_SUBLINK": + return 2; + case "PARAM_MULTIEXPR": + return 3; + case 0: + return "PARAM_EXTERN"; + case 1: + return "PARAM_EXEC"; + case 2: + return "PARAM_SUBLINK"; + case 3: + return "PARAM_MULTIEXPR"; + default: + throw new Error("Key not recognized in enum ParamKind"); + } + } + case "CoercionContext": + { + switch (key) { + case "COERCION_IMPLICIT": + return 0; + case "COERCION_ASSIGNMENT": + return 1; + case "COERCION_PLPGSQL": + return 2; + case "COERCION_EXPLICIT": + return 3; + case 0: + return "COERCION_IMPLICIT"; + case 1: + return "COERCION_ASSIGNMENT"; + case 2: + return "COERCION_PLPGSQL"; + case 3: + return "COERCION_EXPLICIT"; + default: + throw new Error("Key not recognized in enum CoercionContext"); + } + } + case "CoercionForm": + { + switch (key) { + case "COERCE_EXPLICIT_CALL": + return 0; + case "COERCE_EXPLICIT_CAST": + return 1; + case "COERCE_IMPLICIT_CAST": + return 2; + case "COERCE_SQL_SYNTAX": + return 3; + case 0: + return "COERCE_EXPLICIT_CALL"; + case 1: + return "COERCE_EXPLICIT_CAST"; + case 2: + return "COERCE_IMPLICIT_CAST"; + case 3: + return "COERCE_SQL_SYNTAX"; + default: + throw new Error("Key not recognized in enum CoercionForm"); + } + } + case "BoolExprType": + { + switch (key) { + case "AND_EXPR": + return 0; + case "OR_EXPR": + return 1; + case "NOT_EXPR": + return 2; + case 0: + return "AND_EXPR"; + case 1: + return "OR_EXPR"; + case 2: + return "NOT_EXPR"; + default: + throw new Error("Key not recognized in enum BoolExprType"); + } + } + case "SubLinkType": + { + switch (key) { + case "EXISTS_SUBLINK": + return 0; + case "ALL_SUBLINK": + return 1; + case "ANY_SUBLINK": + return 2; + case "ROWCOMPARE_SUBLINK": + return 3; + case "EXPR_SUBLINK": + return 4; + case "MULTIEXPR_SUBLINK": + return 5; + case "ARRAY_SUBLINK": + return 6; + case "CTE_SUBLINK": + return 7; + case 0: + return "EXISTS_SUBLINK"; + case 1: + return "ALL_SUBLINK"; + case 2: + return "ANY_SUBLINK"; + case 3: + return "ROWCOMPARE_SUBLINK"; + case 4: + return "EXPR_SUBLINK"; + case 5: + return "MULTIEXPR_SUBLINK"; + case 6: + return "ARRAY_SUBLINK"; + case 7: + return "CTE_SUBLINK"; + default: + throw new Error("Key not recognized in enum SubLinkType"); + } + } + case "RowCompareType": + { + switch (key) { + case "ROWCOMPARE_LT": + return 0; + case "ROWCOMPARE_LE": + return 1; + case "ROWCOMPARE_EQ": + return 2; + case "ROWCOMPARE_GE": + return 3; + case "ROWCOMPARE_GT": + return 4; + case "ROWCOMPARE_NE": + return 5; + case 0: + return "ROWCOMPARE_LT"; + case 1: + return "ROWCOMPARE_LE"; + case 2: + return "ROWCOMPARE_EQ"; + case 3: + return "ROWCOMPARE_GE"; + case 4: + return "ROWCOMPARE_GT"; + case 5: + return "ROWCOMPARE_NE"; + default: + throw new Error("Key not recognized in enum RowCompareType"); + } + } + case "MinMaxOp": + { + switch (key) { + case "IS_GREATEST": + return 0; + case "IS_LEAST": + return 1; + case 0: + return "IS_GREATEST"; + case 1: + return "IS_LEAST"; + default: + throw new Error("Key not recognized in enum MinMaxOp"); + } + } + case "SQLValueFunctionOp": + { + switch (key) { + case "SVFOP_CURRENT_DATE": + return 0; + case "SVFOP_CURRENT_TIME": + return 1; + case "SVFOP_CURRENT_TIME_N": + return 2; + case "SVFOP_CURRENT_TIMESTAMP": + return 3; + case "SVFOP_CURRENT_TIMESTAMP_N": + return 4; + case "SVFOP_LOCALTIME": + return 5; + case "SVFOP_LOCALTIME_N": + return 6; + case "SVFOP_LOCALTIMESTAMP": + return 7; + case "SVFOP_LOCALTIMESTAMP_N": + return 8; + case "SVFOP_CURRENT_ROLE": + return 9; + case "SVFOP_CURRENT_USER": + return 10; + case "SVFOP_USER": + return 11; + case "SVFOP_SESSION_USER": + return 12; + case "SVFOP_CURRENT_CATALOG": + return 13; + case "SVFOP_CURRENT_SCHEMA": + return 14; + case 0: + return "SVFOP_CURRENT_DATE"; + case 1: + return "SVFOP_CURRENT_TIME"; + case 2: + return "SVFOP_CURRENT_TIME_N"; + case 3: + return "SVFOP_CURRENT_TIMESTAMP"; + case 4: + return "SVFOP_CURRENT_TIMESTAMP_N"; + case 5: + return "SVFOP_LOCALTIME"; + case 6: + return "SVFOP_LOCALTIME_N"; + case 7: + return "SVFOP_LOCALTIMESTAMP"; + case 8: + return "SVFOP_LOCALTIMESTAMP_N"; + case 9: + return "SVFOP_CURRENT_ROLE"; + case 10: + return "SVFOP_CURRENT_USER"; + case 11: + return "SVFOP_USER"; + case 12: + return "SVFOP_SESSION_USER"; + case 13: + return "SVFOP_CURRENT_CATALOG"; + case 14: + return "SVFOP_CURRENT_SCHEMA"; + default: + throw new Error("Key not recognized in enum SQLValueFunctionOp"); + } + } + case "XmlExprOp": + { + switch (key) { + case "IS_XMLCONCAT": + return 0; + case "IS_XMLELEMENT": + return 1; + case "IS_XMLFOREST": + return 2; + case "IS_XMLPARSE": + return 3; + case "IS_XMLPI": + return 4; + case "IS_XMLROOT": + return 5; + case "IS_XMLSERIALIZE": + return 6; + case "IS_DOCUMENT": + return 7; + case 0: + return "IS_XMLCONCAT"; + case 1: + return "IS_XMLELEMENT"; + case 2: + return "IS_XMLFOREST"; + case 3: + return "IS_XMLPARSE"; + case 4: + return "IS_XMLPI"; + case 5: + return "IS_XMLROOT"; + case 6: + return "IS_XMLSERIALIZE"; + case 7: + return "IS_DOCUMENT"; + default: + throw new Error("Key not recognized in enum XmlExprOp"); + } + } + case "XmlOptionType": + { + switch (key) { + case "XMLOPTION_DOCUMENT": + return 0; + case "XMLOPTION_CONTENT": + return 1; + case 0: + return "XMLOPTION_DOCUMENT"; + case 1: + return "XMLOPTION_CONTENT"; + default: + throw new Error("Key not recognized in enum XmlOptionType"); + } + } + case "JsonEncoding": + { + switch (key) { + case "JS_ENC_DEFAULT": + return 0; + case "JS_ENC_UTF8": + return 1; + case "JS_ENC_UTF16": + return 2; + case "JS_ENC_UTF32": + return 3; + case 0: + return "JS_ENC_DEFAULT"; + case 1: + return "JS_ENC_UTF8"; + case 2: + return "JS_ENC_UTF16"; + case 3: + return "JS_ENC_UTF32"; + default: + throw new Error("Key not recognized in enum JsonEncoding"); + } + } + case "JsonFormatType": + { + switch (key) { + case "JS_FORMAT_DEFAULT": + return 0; + case "JS_FORMAT_JSON": + return 1; + case "JS_FORMAT_JSONB": + return 2; + case 0: + return "JS_FORMAT_DEFAULT"; + case 1: + return "JS_FORMAT_JSON"; + case 2: + return "JS_FORMAT_JSONB"; + default: + throw new Error("Key not recognized in enum JsonFormatType"); + } + } + case "JsonConstructorType": + { + switch (key) { + case "JSCTOR_JSON_OBJECT": + return 0; + case "JSCTOR_JSON_ARRAY": + return 1; + case "JSCTOR_JSON_OBJECTAGG": + return 2; + case "JSCTOR_JSON_ARRAYAGG": + return 3; + case 0: + return "JSCTOR_JSON_OBJECT"; + case 1: + return "JSCTOR_JSON_ARRAY"; + case 2: + return "JSCTOR_JSON_OBJECTAGG"; + case 3: + return "JSCTOR_JSON_ARRAYAGG"; + default: + throw new Error("Key not recognized in enum JsonConstructorType"); + } + } + case "JsonValueType": + { + switch (key) { + case "JS_TYPE_ANY": + return 0; + case "JS_TYPE_OBJECT": + return 1; + case "JS_TYPE_ARRAY": + return 2; + case "JS_TYPE_SCALAR": + return 3; + case 0: + return "JS_TYPE_ANY"; + case 1: + return "JS_TYPE_OBJECT"; + case 2: + return "JS_TYPE_ARRAY"; + case 3: + return "JS_TYPE_SCALAR"; + default: + throw new Error("Key not recognized in enum JsonValueType"); + } + } + case "NullTestType": + { + switch (key) { + case "IS_NULL": + return 0; + case "IS_NOT_NULL": + return 1; + case 0: + return "IS_NULL"; + case 1: + return "IS_NOT_NULL"; + default: + throw new Error("Key not recognized in enum NullTestType"); + } + } + case "BoolTestType": + { + switch (key) { + case "IS_TRUE": + return 0; + case "IS_NOT_TRUE": + return 1; + case "IS_FALSE": + return 2; + case "IS_NOT_FALSE": + return 3; + case "IS_UNKNOWN": + return 4; + case "IS_NOT_UNKNOWN": + return 5; + case 0: + return "IS_TRUE"; + case 1: + return "IS_NOT_TRUE"; + case 2: + return "IS_FALSE"; + case 3: + return "IS_NOT_FALSE"; + case 4: + return "IS_UNKNOWN"; + case 5: + return "IS_NOT_UNKNOWN"; + default: + throw new Error("Key not recognized in enum BoolTestType"); + } + } + case "CmdType": + { + switch (key) { + case "CMD_UNKNOWN": + return 0; + case "CMD_SELECT": + return 1; + case "CMD_UPDATE": + return 2; + case "CMD_INSERT": + return 3; + case "CMD_DELETE": + return 4; + case "CMD_MERGE": + return 5; + case "CMD_UTILITY": + return 6; + case "CMD_NOTHING": + return 7; + case 0: + return "CMD_UNKNOWN"; + case 1: + return "CMD_SELECT"; + case 2: + return "CMD_UPDATE"; + case 3: + return "CMD_INSERT"; + case 4: + return "CMD_DELETE"; + case 5: + return "CMD_MERGE"; + case 6: + return "CMD_UTILITY"; + case 7: + return "CMD_NOTHING"; + default: + throw new Error("Key not recognized in enum CmdType"); + } + } + case "JoinType": + { + switch (key) { + case "JOIN_INNER": + return 0; + case "JOIN_LEFT": + return 1; + case "JOIN_FULL": + return 2; + case "JOIN_RIGHT": + return 3; + case "JOIN_SEMI": + return 4; + case "JOIN_ANTI": + return 5; + case "JOIN_RIGHT_ANTI": + return 6; + case "JOIN_UNIQUE_OUTER": + return 7; + case "JOIN_UNIQUE_INNER": + return 8; + case 0: + return "JOIN_INNER"; + case 1: + return "JOIN_LEFT"; + case 2: + return "JOIN_FULL"; + case 3: + return "JOIN_RIGHT"; + case 4: + return "JOIN_SEMI"; + case 5: + return "JOIN_ANTI"; + case 6: + return "JOIN_RIGHT_ANTI"; + case 7: + return "JOIN_UNIQUE_OUTER"; + case 8: + return "JOIN_UNIQUE_INNER"; + default: + throw new Error("Key not recognized in enum JoinType"); + } + } + case "AggStrategy": + { + switch (key) { + case "AGG_PLAIN": + return 0; + case "AGG_SORTED": + return 1; + case "AGG_HASHED": + return 2; + case "AGG_MIXED": + return 3; + case 0: + return "AGG_PLAIN"; + case 1: + return "AGG_SORTED"; + case 2: + return "AGG_HASHED"; + case 3: + return "AGG_MIXED"; + default: + throw new Error("Key not recognized in enum AggStrategy"); + } + } + case "AggSplit": + { + switch (key) { + case "AGGSPLIT_SIMPLE": + return 0; + case "AGGSPLIT_INITIAL_SERIAL": + return 1; + case "AGGSPLIT_FINAL_DESERIAL": + return 2; + case 0: + return "AGGSPLIT_SIMPLE"; + case 1: + return "AGGSPLIT_INITIAL_SERIAL"; + case 2: + return "AGGSPLIT_FINAL_DESERIAL"; + default: + throw new Error("Key not recognized in enum AggSplit"); + } + } + case "SetOpCmd": + { + switch (key) { + case "SETOPCMD_INTERSECT": + return 0; + case "SETOPCMD_INTERSECT_ALL": + return 1; + case "SETOPCMD_EXCEPT": + return 2; + case "SETOPCMD_EXCEPT_ALL": + return 3; + case 0: + return "SETOPCMD_INTERSECT"; + case 1: + return "SETOPCMD_INTERSECT_ALL"; + case 2: + return "SETOPCMD_EXCEPT"; + case 3: + return "SETOPCMD_EXCEPT_ALL"; + default: + throw new Error("Key not recognized in enum SetOpCmd"); + } + } + case "SetOpStrategy": + { + switch (key) { + case "SETOP_SORTED": + return 0; + case "SETOP_HASHED": + return 1; + case 0: + return "SETOP_SORTED"; + case 1: + return "SETOP_HASHED"; + default: + throw new Error("Key not recognized in enum SetOpStrategy"); + } + } + case "OnConflictAction": + { + switch (key) { + case "ONCONFLICT_NONE": + return 0; + case "ONCONFLICT_NOTHING": + return 1; + case "ONCONFLICT_UPDATE": + return 2; + case 0: + return "ONCONFLICT_NONE"; + case 1: + return "ONCONFLICT_NOTHING"; + case 2: + return "ONCONFLICT_UPDATE"; + default: + throw new Error("Key not recognized in enum OnConflictAction"); + } + } + case "LimitOption": + { + switch (key) { + case "LIMIT_OPTION_DEFAULT": + return 0; + case "LIMIT_OPTION_COUNT": + return 1; + case "LIMIT_OPTION_WITH_TIES": + return 2; + case 0: + return "LIMIT_OPTION_DEFAULT"; + case 1: + return "LIMIT_OPTION_COUNT"; + case 2: + return "LIMIT_OPTION_WITH_TIES"; + default: + throw new Error("Key not recognized in enum LimitOption"); + } + } + case "LockClauseStrength": + { + switch (key) { + case "LCS_NONE": + return 0; + case "LCS_FORKEYSHARE": + return 1; + case "LCS_FORSHARE": + return 2; + case "LCS_FORNOKEYUPDATE": + return 3; + case "LCS_FORUPDATE": + return 4; + case 0: + return "LCS_NONE"; + case 1: + return "LCS_FORKEYSHARE"; + case 2: + return "LCS_FORSHARE"; + case 3: + return "LCS_FORNOKEYUPDATE"; + case 4: + return "LCS_FORUPDATE"; + default: + throw new Error("Key not recognized in enum LockClauseStrength"); + } + } + case "LockWaitPolicy": + { + switch (key) { + case "LockWaitBlock": + return 0; + case "LockWaitSkip": + return 1; + case "LockWaitError": + return 2; + case 0: + return "LockWaitBlock"; + case 1: + return "LockWaitSkip"; + case 2: + return "LockWaitError"; + default: + throw new Error("Key not recognized in enum LockWaitPolicy"); + } + } + case "LockTupleMode": + { + switch (key) { + case "LockTupleKeyShare": + return 0; + case "LockTupleShare": + return 1; + case "LockTupleNoKeyExclusive": + return 2; + case "LockTupleExclusive": + return 3; + case 0: + return "LockTupleKeyShare"; + case 1: + return "LockTupleShare"; + case 2: + return "LockTupleNoKeyExclusive"; + case 3: + return "LockTupleExclusive"; + default: + throw new Error("Key not recognized in enum LockTupleMode"); + } + } + case "KeywordKind": + { + switch (key) { + case "NO_KEYWORD": + return 0; + case "UNRESERVED_KEYWORD": + return 1; + case "COL_NAME_KEYWORD": + return 2; + case "TYPE_FUNC_NAME_KEYWORD": + return 3; + case "RESERVED_KEYWORD": + return 4; + case 0: + return "NO_KEYWORD"; + case 1: + return "UNRESERVED_KEYWORD"; + case 2: + return "COL_NAME_KEYWORD"; + case 3: + return "TYPE_FUNC_NAME_KEYWORD"; + case 4: + return "RESERVED_KEYWORD"; + default: + throw new Error("Key not recognized in enum KeywordKind"); + } + } + case "Token": + { + switch (key) { + case "NUL": + return 0; + case "ASCII_36": + return 36; + case "ASCII_37": + return 37; + case "ASCII_40": + return 40; + case "ASCII_41": + return 41; + case "ASCII_42": + return 42; + case "ASCII_43": + return 43; + case "ASCII_44": + return 44; + case "ASCII_45": + return 45; + case "ASCII_46": + return 46; + case "ASCII_47": + return 47; + case "ASCII_58": + return 58; + case "ASCII_59": + return 59; + case "ASCII_60": + return 60; + case "ASCII_61": + return 61; + case "ASCII_62": + return 62; + case "ASCII_63": + return 63; + case "ASCII_91": + return 91; + case "ASCII_92": + return 92; + case "ASCII_93": + return 93; + case "ASCII_94": + return 94; + case "IDENT": + return 258; + case "UIDENT": + return 259; + case "FCONST": + return 260; + case "SCONST": + return 261; + case "USCONST": + return 262; + case "BCONST": + return 263; + case "XCONST": + return 264; + case "Op": + return 265; + case "ICONST": + return 266; + case "PARAM": + return 267; + case "TYPECAST": + return 268; + case "DOT_DOT": + return 269; + case "COLON_EQUALS": + return 270; + case "EQUALS_GREATER": + return 271; + case "LESS_EQUALS": + return 272; + case "GREATER_EQUALS": + return 273; + case "NOT_EQUALS": + return 274; + case "SQL_COMMENT": + return 275; + case "C_COMMENT": + return 276; + case "ABORT_P": + return 277; + case "ABSENT": + return 278; + case "ABSOLUTE_P": + return 279; + case "ACCESS": + return 280; + case "ACTION": + return 281; + case "ADD_P": + return 282; + case "ADMIN": + return 283; + case "AFTER": + return 284; + case "AGGREGATE": + return 285; + case "ALL": + return 286; + case "ALSO": + return 287; + case "ALTER": + return 288; + case "ALWAYS": + return 289; + case "ANALYSE": + return 290; + case "ANALYZE": + return 291; + case "AND": + return 292; + case "ANY": + return 293; + case "ARRAY": + return 294; + case "AS": + return 295; + case "ASC": + return 296; + case "ASENSITIVE": + return 297; + case "ASSERTION": + return 298; + case "ASSIGNMENT": + return 299; + case "ASYMMETRIC": + return 300; + case "ATOMIC": + return 301; + case "AT": + return 302; + case "ATTACH": + return 303; + case "ATTRIBUTE": + return 304; + case "AUTHORIZATION": + return 305; + case "BACKWARD": + return 306; + case "BEFORE": + return 307; + case "BEGIN_P": + return 308; + case "BETWEEN": + return 309; + case "BIGINT": + return 310; + case "BINARY": + return 311; + case "BIT": + return 312; + case "BOOLEAN_P": + return 313; + case "BOTH": + return 314; + case "BREADTH": + return 315; + case "BY": + return 316; + case "CACHE": + return 317; + case "CALL": + return 318; + case "CALLED": + return 319; + case "CASCADE": + return 320; + case "CASCADED": + return 321; + case "CASE": + return 322; + case "CAST": + return 323; + case "CATALOG_P": + return 324; + case "CHAIN": + return 325; + case "CHAR_P": + return 326; + case "CHARACTER": + return 327; + case "CHARACTERISTICS": + return 328; + case "CHECK": + return 329; + case "CHECKPOINT": + return 330; + case "CLASS": + return 331; + case "CLOSE": + return 332; + case "CLUSTER": + return 333; + case "COALESCE": + return 334; + case "COLLATE": + return 335; + case "COLLATION": + return 336; + case "COLUMN": + return 337; + case "COLUMNS": + return 338; + case "COMMENT": + return 339; + case "COMMENTS": + return 340; + case "COMMIT": + return 341; + case "COMMITTED": + return 342; + case "COMPRESSION": + return 343; + case "CONCURRENTLY": + return 344; + case "CONFIGURATION": + return 345; + case "CONFLICT": + return 346; + case "CONNECTION": + return 347; + case "CONSTRAINT": + return 348; + case "CONSTRAINTS": + return 349; + case "CONTENT_P": + return 350; + case "CONTINUE_P": + return 351; + case "CONVERSION_P": + return 352; + case "COPY": + return 353; + case "COST": + return 354; + case "CREATE": + return 355; + case "CROSS": + return 356; + case "CSV": + return 357; + case "CUBE": + return 358; + case "CURRENT_P": + return 359; + case "CURRENT_CATALOG": + return 360; + case "CURRENT_DATE": + return 361; + case "CURRENT_ROLE": + return 362; + case "CURRENT_SCHEMA": + return 363; + case "CURRENT_TIME": + return 364; + case "CURRENT_TIMESTAMP": + return 365; + case "CURRENT_USER": + return 366; + case "CURSOR": + return 367; + case "CYCLE": + return 368; + case "DATA_P": + return 369; + case "DATABASE": + return 370; + case "DAY_P": + return 371; + case "DEALLOCATE": + return 372; + case "DEC": + return 373; + case "DECIMAL_P": + return 374; + case "DECLARE": + return 375; + case "DEFAULT": + return 376; + case "DEFAULTS": + return 377; + case "DEFERRABLE": + return 378; + case "DEFERRED": + return 379; + case "DEFINER": + return 380; + case "DELETE_P": + return 381; + case "DELIMITER": + return 382; + case "DELIMITERS": + return 383; + case "DEPENDS": + return 384; + case "DEPTH": + return 385; + case "DESC": + return 386; + case "DETACH": + return 387; + case "DICTIONARY": + return 388; + case "DISABLE_P": + return 389; + case "DISCARD": + return 390; + case "DISTINCT": + return 391; + case "DO": + return 392; + case "DOCUMENT_P": + return 393; + case "DOMAIN_P": + return 394; + case "DOUBLE_P": + return 395; + case "DROP": + return 396; + case "EACH": + return 397; + case "ELSE": + return 398; + case "ENABLE_P": + return 399; + case "ENCODING": + return 400; + case "ENCRYPTED": + return 401; + case "END_P": + return 402; + case "ENUM_P": + return 403; + case "ESCAPE": + return 404; + case "EVENT": + return 405; + case "EXCEPT": + return 406; + case "EXCLUDE": + return 407; + case "EXCLUDING": + return 408; + case "EXCLUSIVE": + return 409; + case "EXECUTE": + return 410; + case "EXISTS": + return 411; + case "EXPLAIN": + return 412; + case "EXPRESSION": + return 413; + case "EXTENSION": + return 414; + case "EXTERNAL": + return 415; + case "EXTRACT": + return 416; + case "FALSE_P": + return 417; + case "FAMILY": + return 418; + case "FETCH": + return 419; + case "FILTER": + return 420; + case "FINALIZE": + return 421; + case "FIRST_P": + return 422; + case "FLOAT_P": + return 423; + case "FOLLOWING": + return 424; + case "FOR": + return 425; + case "FORCE": + return 426; + case "FOREIGN": + return 427; + case "FORMAT": + return 428; + case "FORWARD": + return 429; + case "FREEZE": + return 430; + case "FROM": + return 431; + case "FULL": + return 432; + case "FUNCTION": + return 433; + case "FUNCTIONS": + return 434; + case "GENERATED": + return 435; + case "GLOBAL": + return 436; + case "GRANT": + return 437; + case "GRANTED": + return 438; + case "GREATEST": + return 439; + case "GROUP_P": + return 440; + case "GROUPING": + return 441; + case "GROUPS": + return 442; + case "HANDLER": + return 443; + case "HAVING": + return 444; + case "HEADER_P": + return 445; + case "HOLD": + return 446; + case "HOUR_P": + return 447; + case "IDENTITY_P": + return 448; + case "IF_P": + return 449; + case "ILIKE": + return 450; + case "IMMEDIATE": + return 451; + case "IMMUTABLE": + return 452; + case "IMPLICIT_P": + return 453; + case "IMPORT_P": + return 454; + case "IN_P": + return 455; + case "INCLUDE": + return 456; + case "INCLUDING": + return 457; + case "INCREMENT": + return 458; + case "INDENT": + return 459; + case "INDEX": + return 460; + case "INDEXES": + return 461; + case "INHERIT": + return 462; + case "INHERITS": + return 463; + case "INITIALLY": + return 464; + case "INLINE_P": + return 465; + case "INNER_P": + return 466; + case "INOUT": + return 467; + case "INPUT_P": + return 468; + case "INSENSITIVE": + return 469; + case "INSERT": + return 470; + case "INSTEAD": + return 471; + case "INT_P": + return 472; + case "INTEGER": + return 473; + case "INTERSECT": + return 474; + case "INTERVAL": + return 475; + case "INTO": + return 476; + case "INVOKER": + return 477; + case "IS": + return 478; + case "ISNULL": + return 479; + case "ISOLATION": + return 480; + case "JOIN": + return 481; + case "JSON": + return 482; + case "JSON_ARRAY": + return 483; + case "JSON_ARRAYAGG": + return 484; + case "JSON_OBJECT": + return 485; + case "JSON_OBJECTAGG": + return 486; + case "KEY": + return 487; + case "KEYS": + return 488; + case "LABEL": + return 489; + case "LANGUAGE": + return 490; + case "LARGE_P": + return 491; + case "LAST_P": + return 492; + case "LATERAL_P": + return 493; + case "LEADING": + return 494; + case "LEAKPROOF": + return 495; + case "LEAST": + return 496; + case "LEFT": + return 497; + case "LEVEL": + return 498; + case "LIKE": + return 499; + case "LIMIT": + return 500; + case "LISTEN": + return 501; + case "LOAD": + return 502; + case "LOCAL": + return 503; + case "LOCALTIME": + return 504; + case "LOCALTIMESTAMP": + return 505; + case "LOCATION": + return 506; + case "LOCK_P": + return 507; + case "LOCKED": + return 508; + case "LOGGED": + return 509; + case "MAPPING": + return 510; + case "MATCH": + return 511; + case "MATCHED": + return 512; + case "MATERIALIZED": + return 513; + case "MAXVALUE": + return 514; + case "MERGE": + return 515; + case "METHOD": + return 516; + case "MINUTE_P": + return 517; + case "MINVALUE": + return 518; + case "MODE": + return 519; + case "MONTH_P": + return 520; + case "MOVE": + return 521; + case "NAME_P": + return 522; + case "NAMES": + return 523; + case "NATIONAL": + return 524; + case "NATURAL": + return 525; + case "NCHAR": + return 526; + case "NEW": + return 527; + case "NEXT": + return 528; + case "NFC": + return 529; + case "NFD": + return 530; + case "NFKC": + return 531; + case "NFKD": + return 532; + case "NO": + return 533; + case "NONE": + return 534; + case "NORMALIZE": + return 535; + case "NORMALIZED": + return 536; + case "NOT": + return 537; + case "NOTHING": + return 538; + case "NOTIFY": + return 539; + case "NOTNULL": + return 540; + case "NOWAIT": + return 541; + case "NULL_P": + return 542; + case "NULLIF": + return 543; + case "NULLS_P": + return 544; + case "NUMERIC": + return 545; + case "OBJECT_P": + return 546; + case "OF": + return 547; + case "OFF": + return 548; + case "OFFSET": + return 549; + case "OIDS": + return 550; + case "OLD": + return 551; + case "ON": + return 552; + case "ONLY": + return 553; + case "OPERATOR": + return 554; + case "OPTION": + return 555; + case "OPTIONS": + return 556; + case "OR": + return 557; + case "ORDER": + return 558; + case "ORDINALITY": + return 559; + case "OTHERS": + return 560; + case "OUT_P": + return 561; + case "OUTER_P": + return 562; + case "OVER": + return 563; + case "OVERLAPS": + return 564; + case "OVERLAY": + return 565; + case "OVERRIDING": + return 566; + case "OWNED": + return 567; + case "OWNER": + return 568; + case "PARALLEL": + return 569; + case "PARAMETER": + return 570; + case "PARSER": + return 571; + case "PARTIAL": + return 572; + case "PARTITION": + return 573; + case "PASSING": + return 574; + case "PASSWORD": + return 575; + case "PLACING": + return 576; + case "PLANS": + return 577; + case "POLICY": + return 578; + case "POSITION": + return 579; + case "PRECEDING": + return 580; + case "PRECISION": + return 581; + case "PRESERVE": + return 582; + case "PREPARE": + return 583; + case "PREPARED": + return 584; + case "PRIMARY": + return 585; + case "PRIOR": + return 586; + case "PRIVILEGES": + return 587; + case "PROCEDURAL": + return 588; + case "PROCEDURE": + return 589; + case "PROCEDURES": + return 590; + case "PROGRAM": + return 591; + case "PUBLICATION": + return 592; + case "QUOTE": + return 593; + case "RANGE": + return 594; + case "READ": + return 595; + case "REAL": + return 596; + case "REASSIGN": + return 597; + case "RECHECK": + return 598; + case "RECURSIVE": + return 599; + case "REF_P": + return 600; + case "REFERENCES": + return 601; + case "REFERENCING": + return 602; + case "REFRESH": + return 603; + case "REINDEX": + return 604; + case "RELATIVE_P": + return 605; + case "RELEASE": + return 606; + case "RENAME": + return 607; + case "REPEATABLE": + return 608; + case "REPLACE": + return 609; + case "REPLICA": + return 610; + case "RESET": + return 611; + case "RESTART": + return 612; + case "RESTRICT": + return 613; + case "RETURN": + return 614; + case "RETURNING": + return 615; + case "RETURNS": + return 616; + case "REVOKE": + return 617; + case "RIGHT": + return 618; + case "ROLE": + return 619; + case "ROLLBACK": + return 620; + case "ROLLUP": + return 621; + case "ROUTINE": + return 622; + case "ROUTINES": + return 623; + case "ROW": + return 624; + case "ROWS": + return 625; + case "RULE": + return 626; + case "SAVEPOINT": + return 627; + case "SCALAR": + return 628; + case "SCHEMA": + return 629; + case "SCHEMAS": + return 630; + case "SCROLL": + return 631; + case "SEARCH": + return 632; + case "SECOND_P": + return 633; + case "SECURITY": + return 634; + case "SELECT": + return 635; + case "SEQUENCE": + return 636; + case "SEQUENCES": + return 637; + case "SERIALIZABLE": + return 638; + case "SERVER": + return 639; + case "SESSION": + return 640; + case "SESSION_USER": + return 641; + case "SET": + return 642; + case "SETS": + return 643; + case "SETOF": + return 644; + case "SHARE": + return 645; + case "SHOW": + return 646; + case "SIMILAR": + return 647; + case "SIMPLE": + return 648; + case "SKIP": + return 649; + case "SMALLINT": + return 650; + case "SNAPSHOT": + return 651; + case "SOME": + return 652; + case "SQL_P": + return 653; + case "STABLE": + return 654; + case "STANDALONE_P": + return 655; + case "START": + return 656; + case "STATEMENT": + return 657; + case "STATISTICS": + return 658; + case "STDIN": + return 659; + case "STDOUT": + return 660; + case "STORAGE": + return 661; + case "STORED": + return 662; + case "STRICT_P": + return 663; + case "STRIP_P": + return 664; + case "SUBSCRIPTION": + return 665; + case "SUBSTRING": + return 666; + case "SUPPORT": + return 667; + case "SYMMETRIC": + return 668; + case "SYSID": + return 669; + case "SYSTEM_P": + return 670; + case "SYSTEM_USER": + return 671; + case "TABLE": + return 672; + case "TABLES": + return 673; + case "TABLESAMPLE": + return 674; + case "TABLESPACE": + return 675; + case "TEMP": + return 676; + case "TEMPLATE": + return 677; + case "TEMPORARY": + return 678; + case "TEXT_P": + return 679; + case "THEN": + return 680; + case "TIES": + return 681; + case "TIME": + return 682; + case "TIMESTAMP": + return 683; + case "TO": + return 684; + case "TRAILING": + return 685; + case "TRANSACTION": + return 686; + case "TRANSFORM": + return 687; + case "TREAT": + return 688; + case "TRIGGER": + return 689; + case "TRIM": + return 690; + case "TRUE_P": + return 691; + case "TRUNCATE": + return 692; + case "TRUSTED": + return 693; + case "TYPE_P": + return 694; + case "TYPES_P": + return 695; + case "UESCAPE": + return 696; + case "UNBOUNDED": + return 697; + case "UNCOMMITTED": + return 698; + case "UNENCRYPTED": + return 699; + case "UNION": + return 700; + case "UNIQUE": + return 701; + case "UNKNOWN": + return 702; + case "UNLISTEN": + return 703; + case "UNLOGGED": + return 704; + case "UNTIL": + return 705; + case "UPDATE": + return 706; + case "USER": + return 707; + case "USING": + return 708; + case "VACUUM": + return 709; + case "VALID": + return 710; + case "VALIDATE": + return 711; + case "VALIDATOR": + return 712; + case "VALUE_P": + return 713; + case "VALUES": + return 714; + case "VARCHAR": + return 715; + case "VARIADIC": + return 716; + case "VARYING": + return 717; + case "VERBOSE": + return 718; + case "VERSION_P": + return 719; + case "VIEW": + return 720; + case "VIEWS": + return 721; + case "VOLATILE": + return 722; + case "WHEN": + return 723; + case "WHERE": + return 724; + case "WHITESPACE_P": + return 725; + case "WINDOW": + return 726; + case "WITH": + return 727; + case "WITHIN": + return 728; + case "WITHOUT": + return 729; + case "WORK": + return 730; + case "WRAPPER": + return 731; + case "WRITE": + return 732; + case "XML_P": + return 733; + case "XMLATTRIBUTES": + return 734; + case "XMLCONCAT": + return 735; + case "XMLELEMENT": + return 736; + case "XMLEXISTS": + return 737; + case "XMLFOREST": + return 738; + case "XMLNAMESPACES": + return 739; + case "XMLPARSE": + return 740; + case "XMLPI": + return 741; + case "XMLROOT": + return 742; + case "XMLSERIALIZE": + return 743; + case "XMLTABLE": + return 744; + case "YEAR_P": + return 745; + case "YES_P": + return 746; + case "ZONE": + return 747; + case "FORMAT_LA": + return 748; + case "NOT_LA": + return 749; + case "NULLS_LA": + return 750; + case "WITH_LA": + return 751; + case "WITHOUT_LA": + return 752; + case "MODE_TYPE_NAME": + return 753; + case "MODE_PLPGSQL_EXPR": + return 754; + case "MODE_PLPGSQL_ASSIGN1": + return 755; + case "MODE_PLPGSQL_ASSIGN2": + return 756; + case "MODE_PLPGSQL_ASSIGN3": + return 757; + case "UMINUS": + return 758; + case 0: + return "NUL"; + case 36: + return "ASCII_36"; + case 37: + return "ASCII_37"; + case 40: + return "ASCII_40"; + case 41: + return "ASCII_41"; + case 42: + return "ASCII_42"; + case 43: + return "ASCII_43"; + case 44: + return "ASCII_44"; + case 45: + return "ASCII_45"; + case 46: + return "ASCII_46"; + case 47: + return "ASCII_47"; + case 58: + return "ASCII_58"; + case 59: + return "ASCII_59"; + case 60: + return "ASCII_60"; + case 61: + return "ASCII_61"; + case 62: + return "ASCII_62"; + case 63: + return "ASCII_63"; + case 91: + return "ASCII_91"; + case 92: + return "ASCII_92"; + case 93: + return "ASCII_93"; + case 94: + return "ASCII_94"; + case 258: + return "IDENT"; + case 259: + return "UIDENT"; + case 260: + return "FCONST"; + case 261: + return "SCONST"; + case 262: + return "USCONST"; + case 263: + return "BCONST"; + case 264: + return "XCONST"; + case 265: + return "Op"; + case 266: + return "ICONST"; + case 267: + return "PARAM"; + case 268: + return "TYPECAST"; + case 269: + return "DOT_DOT"; + case 270: + return "COLON_EQUALS"; + case 271: + return "EQUALS_GREATER"; + case 272: + return "LESS_EQUALS"; + case 273: + return "GREATER_EQUALS"; + case 274: + return "NOT_EQUALS"; + case 275: + return "SQL_COMMENT"; + case 276: + return "C_COMMENT"; + case 277: + return "ABORT_P"; + case 278: + return "ABSENT"; + case 279: + return "ABSOLUTE_P"; + case 280: + return "ACCESS"; + case 281: + return "ACTION"; + case 282: + return "ADD_P"; + case 283: + return "ADMIN"; + case 284: + return "AFTER"; + case 285: + return "AGGREGATE"; + case 286: + return "ALL"; + case 287: + return "ALSO"; + case 288: + return "ALTER"; + case 289: + return "ALWAYS"; + case 290: + return "ANALYSE"; + case 291: + return "ANALYZE"; + case 292: + return "AND"; + case 293: + return "ANY"; + case 294: + return "ARRAY"; + case 295: + return "AS"; + case 296: + return "ASC"; + case 297: + return "ASENSITIVE"; + case 298: + return "ASSERTION"; + case 299: + return "ASSIGNMENT"; + case 300: + return "ASYMMETRIC"; + case 301: + return "ATOMIC"; + case 302: + return "AT"; + case 303: + return "ATTACH"; + case 304: + return "ATTRIBUTE"; + case 305: + return "AUTHORIZATION"; + case 306: + return "BACKWARD"; + case 307: + return "BEFORE"; + case 308: + return "BEGIN_P"; + case 309: + return "BETWEEN"; + case 310: + return "BIGINT"; + case 311: + return "BINARY"; + case 312: + return "BIT"; + case 313: + return "BOOLEAN_P"; + case 314: + return "BOTH"; + case 315: + return "BREADTH"; + case 316: + return "BY"; + case 317: + return "CACHE"; + case 318: + return "CALL"; + case 319: + return "CALLED"; + case 320: + return "CASCADE"; + case 321: + return "CASCADED"; + case 322: + return "CASE"; + case 323: + return "CAST"; + case 324: + return "CATALOG_P"; + case 325: + return "CHAIN"; + case 326: + return "CHAR_P"; + case 327: + return "CHARACTER"; + case 328: + return "CHARACTERISTICS"; + case 329: + return "CHECK"; + case 330: + return "CHECKPOINT"; + case 331: + return "CLASS"; + case 332: + return "CLOSE"; + case 333: + return "CLUSTER"; + case 334: + return "COALESCE"; + case 335: + return "COLLATE"; + case 336: + return "COLLATION"; + case 337: + return "COLUMN"; + case 338: + return "COLUMNS"; + case 339: + return "COMMENT"; + case 340: + return "COMMENTS"; + case 341: + return "COMMIT"; + case 342: + return "COMMITTED"; + case 343: + return "COMPRESSION"; + case 344: + return "CONCURRENTLY"; + case 345: + return "CONFIGURATION"; + case 346: + return "CONFLICT"; + case 347: + return "CONNECTION"; + case 348: + return "CONSTRAINT"; + case 349: + return "CONSTRAINTS"; + case 350: + return "CONTENT_P"; + case 351: + return "CONTINUE_P"; + case 352: + return "CONVERSION_P"; + case 353: + return "COPY"; + case 354: + return "COST"; + case 355: + return "CREATE"; + case 356: + return "CROSS"; + case 357: + return "CSV"; + case 358: + return "CUBE"; + case 359: + return "CURRENT_P"; + case 360: + return "CURRENT_CATALOG"; + case 361: + return "CURRENT_DATE"; + case 362: + return "CURRENT_ROLE"; + case 363: + return "CURRENT_SCHEMA"; + case 364: + return "CURRENT_TIME"; + case 365: + return "CURRENT_TIMESTAMP"; + case 366: + return "CURRENT_USER"; + case 367: + return "CURSOR"; + case 368: + return "CYCLE"; + case 369: + return "DATA_P"; + case 370: + return "DATABASE"; + case 371: + return "DAY_P"; + case 372: + return "DEALLOCATE"; + case 373: + return "DEC"; + case 374: + return "DECIMAL_P"; + case 375: + return "DECLARE"; + case 376: + return "DEFAULT"; + case 377: + return "DEFAULTS"; + case 378: + return "DEFERRABLE"; + case 379: + return "DEFERRED"; + case 380: + return "DEFINER"; + case 381: + return "DELETE_P"; + case 382: + return "DELIMITER"; + case 383: + return "DELIMITERS"; + case 384: + return "DEPENDS"; + case 385: + return "DEPTH"; + case 386: + return "DESC"; + case 387: + return "DETACH"; + case 388: + return "DICTIONARY"; + case 389: + return "DISABLE_P"; + case 390: + return "DISCARD"; + case 391: + return "DISTINCT"; + case 392: + return "DO"; + case 393: + return "DOCUMENT_P"; + case 394: + return "DOMAIN_P"; + case 395: + return "DOUBLE_P"; + case 396: + return "DROP"; + case 397: + return "EACH"; + case 398: + return "ELSE"; + case 399: + return "ENABLE_P"; + case 400: + return "ENCODING"; + case 401: + return "ENCRYPTED"; + case 402: + return "END_P"; + case 403: + return "ENUM_P"; + case 404: + return "ESCAPE"; + case 405: + return "EVENT"; + case 406: + return "EXCEPT"; + case 407: + return "EXCLUDE"; + case 408: + return "EXCLUDING"; + case 409: + return "EXCLUSIVE"; + case 410: + return "EXECUTE"; + case 411: + return "EXISTS"; + case 412: + return "EXPLAIN"; + case 413: + return "EXPRESSION"; + case 414: + return "EXTENSION"; + case 415: + return "EXTERNAL"; + case 416: + return "EXTRACT"; + case 417: + return "FALSE_P"; + case 418: + return "FAMILY"; + case 419: + return "FETCH"; + case 420: + return "FILTER"; + case 421: + return "FINALIZE"; + case 422: + return "FIRST_P"; + case 423: + return "FLOAT_P"; + case 424: + return "FOLLOWING"; + case 425: + return "FOR"; + case 426: + return "FORCE"; + case 427: + return "FOREIGN"; + case 428: + return "FORMAT"; + case 429: + return "FORWARD"; + case 430: + return "FREEZE"; + case 431: + return "FROM"; + case 432: + return "FULL"; + case 433: + return "FUNCTION"; + case 434: + return "FUNCTIONS"; + case 435: + return "GENERATED"; + case 436: + return "GLOBAL"; + case 437: + return "GRANT"; + case 438: + return "GRANTED"; + case 439: + return "GREATEST"; + case 440: + return "GROUP_P"; + case 441: + return "GROUPING"; + case 442: + return "GROUPS"; + case 443: + return "HANDLER"; + case 444: + return "HAVING"; + case 445: + return "HEADER_P"; + case 446: + return "HOLD"; + case 447: + return "HOUR_P"; + case 448: + return "IDENTITY_P"; + case 449: + return "IF_P"; + case 450: + return "ILIKE"; + case 451: + return "IMMEDIATE"; + case 452: + return "IMMUTABLE"; + case 453: + return "IMPLICIT_P"; + case 454: + return "IMPORT_P"; + case 455: + return "IN_P"; + case 456: + return "INCLUDE"; + case 457: + return "INCLUDING"; + case 458: + return "INCREMENT"; + case 459: + return "INDENT"; + case 460: + return "INDEX"; + case 461: + return "INDEXES"; + case 462: + return "INHERIT"; + case 463: + return "INHERITS"; + case 464: + return "INITIALLY"; + case 465: + return "INLINE_P"; + case 466: + return "INNER_P"; + case 467: + return "INOUT"; + case 468: + return "INPUT_P"; + case 469: + return "INSENSITIVE"; + case 470: + return "INSERT"; + case 471: + return "INSTEAD"; + case 472: + return "INT_P"; + case 473: + return "INTEGER"; + case 474: + return "INTERSECT"; + case 475: + return "INTERVAL"; + case 476: + return "INTO"; + case 477: + return "INVOKER"; + case 478: + return "IS"; + case 479: + return "ISNULL"; + case 480: + return "ISOLATION"; + case 481: + return "JOIN"; + case 482: + return "JSON"; + case 483: + return "JSON_ARRAY"; + case 484: + return "JSON_ARRAYAGG"; + case 485: + return "JSON_OBJECT"; + case 486: + return "JSON_OBJECTAGG"; + case 487: + return "KEY"; + case 488: + return "KEYS"; + case 489: + return "LABEL"; + case 490: + return "LANGUAGE"; + case 491: + return "LARGE_P"; + case 492: + return "LAST_P"; + case 493: + return "LATERAL_P"; + case 494: + return "LEADING"; + case 495: + return "LEAKPROOF"; + case 496: + return "LEAST"; + case 497: + return "LEFT"; + case 498: + return "LEVEL"; + case 499: + return "LIKE"; + case 500: + return "LIMIT"; + case 501: + return "LISTEN"; + case 502: + return "LOAD"; + case 503: + return "LOCAL"; + case 504: + return "LOCALTIME"; + case 505: + return "LOCALTIMESTAMP"; + case 506: + return "LOCATION"; + case 507: + return "LOCK_P"; + case 508: + return "LOCKED"; + case 509: + return "LOGGED"; + case 510: + return "MAPPING"; + case 511: + return "MATCH"; + case 512: + return "MATCHED"; + case 513: + return "MATERIALIZED"; + case 514: + return "MAXVALUE"; + case 515: + return "MERGE"; + case 516: + return "METHOD"; + case 517: + return "MINUTE_P"; + case 518: + return "MINVALUE"; + case 519: + return "MODE"; + case 520: + return "MONTH_P"; + case 521: + return "MOVE"; + case 522: + return "NAME_P"; + case 523: + return "NAMES"; + case 524: + return "NATIONAL"; + case 525: + return "NATURAL"; + case 526: + return "NCHAR"; + case 527: + return "NEW"; + case 528: + return "NEXT"; + case 529: + return "NFC"; + case 530: + return "NFD"; + case 531: + return "NFKC"; + case 532: + return "NFKD"; + case 533: + return "NO"; + case 534: + return "NONE"; + case 535: + return "NORMALIZE"; + case 536: + return "NORMALIZED"; + case 537: + return "NOT"; + case 538: + return "NOTHING"; + case 539: + return "NOTIFY"; + case 540: + return "NOTNULL"; + case 541: + return "NOWAIT"; + case 542: + return "NULL_P"; + case 543: + return "NULLIF"; + case 544: + return "NULLS_P"; + case 545: + return "NUMERIC"; + case 546: + return "OBJECT_P"; + case 547: + return "OF"; + case 548: + return "OFF"; + case 549: + return "OFFSET"; + case 550: + return "OIDS"; + case 551: + return "OLD"; + case 552: + return "ON"; + case 553: + return "ONLY"; + case 554: + return "OPERATOR"; + case 555: + return "OPTION"; + case 556: + return "OPTIONS"; + case 557: + return "OR"; + case 558: + return "ORDER"; + case 559: + return "ORDINALITY"; + case 560: + return "OTHERS"; + case 561: + return "OUT_P"; + case 562: + return "OUTER_P"; + case 563: + return "OVER"; + case 564: + return "OVERLAPS"; + case 565: + return "OVERLAY"; + case 566: + return "OVERRIDING"; + case 567: + return "OWNED"; + case 568: + return "OWNER"; + case 569: + return "PARALLEL"; + case 570: + return "PARAMETER"; + case 571: + return "PARSER"; + case 572: + return "PARTIAL"; + case 573: + return "PARTITION"; + case 574: + return "PASSING"; + case 575: + return "PASSWORD"; + case 576: + return "PLACING"; + case 577: + return "PLANS"; + case 578: + return "POLICY"; + case 579: + return "POSITION"; + case 580: + return "PRECEDING"; + case 581: + return "PRECISION"; + case 582: + return "PRESERVE"; + case 583: + return "PREPARE"; + case 584: + return "PREPARED"; + case 585: + return "PRIMARY"; + case 586: + return "PRIOR"; + case 587: + return "PRIVILEGES"; + case 588: + return "PROCEDURAL"; + case 589: + return "PROCEDURE"; + case 590: + return "PROCEDURES"; + case 591: + return "PROGRAM"; + case 592: + return "PUBLICATION"; + case 593: + return "QUOTE"; + case 594: + return "RANGE"; + case 595: + return "READ"; + case 596: + return "REAL"; + case 597: + return "REASSIGN"; + case 598: + return "RECHECK"; + case 599: + return "RECURSIVE"; + case 600: + return "REF_P"; + case 601: + return "REFERENCES"; + case 602: + return "REFERENCING"; + case 603: + return "REFRESH"; + case 604: + return "REINDEX"; + case 605: + return "RELATIVE_P"; + case 606: + return "RELEASE"; + case 607: + return "RENAME"; + case 608: + return "REPEATABLE"; + case 609: + return "REPLACE"; + case 610: + return "REPLICA"; + case 611: + return "RESET"; + case 612: + return "RESTART"; + case 613: + return "RESTRICT"; + case 614: + return "RETURN"; + case 615: + return "RETURNING"; + case 616: + return "RETURNS"; + case 617: + return "REVOKE"; + case 618: + return "RIGHT"; + case 619: + return "ROLE"; + case 620: + return "ROLLBACK"; + case 621: + return "ROLLUP"; + case 622: + return "ROUTINE"; + case 623: + return "ROUTINES"; + case 624: + return "ROW"; + case 625: + return "ROWS"; + case 626: + return "RULE"; + case 627: + return "SAVEPOINT"; + case 628: + return "SCALAR"; + case 629: + return "SCHEMA"; + case 630: + return "SCHEMAS"; + case 631: + return "SCROLL"; + case 632: + return "SEARCH"; + case 633: + return "SECOND_P"; + case 634: + return "SECURITY"; + case 635: + return "SELECT"; + case 636: + return "SEQUENCE"; + case 637: + return "SEQUENCES"; + case 638: + return "SERIALIZABLE"; + case 639: + return "SERVER"; + case 640: + return "SESSION"; + case 641: + return "SESSION_USER"; + case 642: + return "SET"; + case 643: + return "SETS"; + case 644: + return "SETOF"; + case 645: + return "SHARE"; + case 646: + return "SHOW"; + case 647: + return "SIMILAR"; + case 648: + return "SIMPLE"; + case 649: + return "SKIP"; + case 650: + return "SMALLINT"; + case 651: + return "SNAPSHOT"; + case 652: + return "SOME"; + case 653: + return "SQL_P"; + case 654: + return "STABLE"; + case 655: + return "STANDALONE_P"; + case 656: + return "START"; + case 657: + return "STATEMENT"; + case 658: + return "STATISTICS"; + case 659: + return "STDIN"; + case 660: + return "STDOUT"; + case 661: + return "STORAGE"; + case 662: + return "STORED"; + case 663: + return "STRICT_P"; + case 664: + return "STRIP_P"; + case 665: + return "SUBSCRIPTION"; + case 666: + return "SUBSTRING"; + case 667: + return "SUPPORT"; + case 668: + return "SYMMETRIC"; + case 669: + return "SYSID"; + case 670: + return "SYSTEM_P"; + case 671: + return "SYSTEM_USER"; + case 672: + return "TABLE"; + case 673: + return "TABLES"; + case 674: + return "TABLESAMPLE"; + case 675: + return "TABLESPACE"; + case 676: + return "TEMP"; + case 677: + return "TEMPLATE"; + case 678: + return "TEMPORARY"; + case 679: + return "TEXT_P"; + case 680: + return "THEN"; + case 681: + return "TIES"; + case 682: + return "TIME"; + case 683: + return "TIMESTAMP"; + case 684: + return "TO"; + case 685: + return "TRAILING"; + case 686: + return "TRANSACTION"; + case 687: + return "TRANSFORM"; + case 688: + return "TREAT"; + case 689: + return "TRIGGER"; + case 690: + return "TRIM"; + case 691: + return "TRUE_P"; + case 692: + return "TRUNCATE"; + case 693: + return "TRUSTED"; + case 694: + return "TYPE_P"; + case 695: + return "TYPES_P"; + case 696: + return "UESCAPE"; + case 697: + return "UNBOUNDED"; + case 698: + return "UNCOMMITTED"; + case 699: + return "UNENCRYPTED"; + case 700: + return "UNION"; + case 701: + return "UNIQUE"; + case 702: + return "UNKNOWN"; + case 703: + return "UNLISTEN"; + case 704: + return "UNLOGGED"; + case 705: + return "UNTIL"; + case 706: + return "UPDATE"; + case 707: + return "USER"; + case 708: + return "USING"; + case 709: + return "VACUUM"; + case 710: + return "VALID"; + case 711: + return "VALIDATE"; + case 712: + return "VALIDATOR"; + case 713: + return "VALUE_P"; + case 714: + return "VALUES"; + case 715: + return "VARCHAR"; + case 716: + return "VARIADIC"; + case 717: + return "VARYING"; + case 718: + return "VERBOSE"; + case 719: + return "VERSION_P"; + case 720: + return "VIEW"; + case 721: + return "VIEWS"; + case 722: + return "VOLATILE"; + case 723: + return "WHEN"; + case 724: + return "WHERE"; + case 725: + return "WHITESPACE_P"; + case 726: + return "WINDOW"; + case 727: + return "WITH"; + case 728: + return "WITHIN"; + case 729: + return "WITHOUT"; + case 730: + return "WORK"; + case 731: + return "WRAPPER"; + case 732: + return "WRITE"; + case 733: + return "XML_P"; + case 734: + return "XMLATTRIBUTES"; + case 735: + return "XMLCONCAT"; + case 736: + return "XMLELEMENT"; + case 737: + return "XMLEXISTS"; + case 738: + return "XMLFOREST"; + case 739: + return "XMLNAMESPACES"; + case 740: + return "XMLPARSE"; + case 741: + return "XMLPI"; + case 742: + return "XMLROOT"; + case 743: + return "XMLSERIALIZE"; + case 744: + return "XMLTABLE"; + case 745: + return "YEAR_P"; + case 746: + return "YES_P"; + case 747: + return "ZONE"; + case 748: + return "FORMAT_LA"; + case 749: + return "NOT_LA"; + case 750: + return "NULLS_LA"; + case 751: + return "WITH_LA"; + case 752: + return "WITHOUT_LA"; + case 753: + return "MODE_TYPE_NAME"; + case 754: + return "MODE_PLPGSQL_EXPR"; + case 755: + return "MODE_PLPGSQL_ASSIGN1"; + case 756: + return "MODE_PLPGSQL_ASSIGN2"; + case 757: + return "MODE_PLPGSQL_ASSIGN3"; + case 758: + return "UMINUS"; + default: + throw new Error("Key not recognized in enum Token"); + } + } + default: + throw new Error("Enum type not recognized"); + } +};", + "file": "bidirectional.ts", + }, + { + "code": "/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type EnumType = "OverridingKind" | "QuerySource" | "SortByDir" | "SortByNulls" | "SetQuantifier" | "A_Expr_Kind" | "RoleSpecType" | "TableLikeOption" | "DefElemAction" | "PartitionStrategy" | "PartitionRangeDatumKind" | "RTEKind" | "WCOKind" | "GroupingSetKind" | "CTEMaterialize" | "SetOperation" | "ObjectType" | "DropBehavior" | "AlterTableType" | "GrantTargetType" | "VariableSetKind" | "ConstrType" | "ImportForeignSchemaType" | "RoleStmtType" | "FetchDirection" | "FunctionParameterMode" | "TransactionStmtKind" | "ViewCheckOption" | "DiscardMode" | "ReindexObjectType" | "AlterTSConfigType" | "PublicationObjSpecType" | "AlterPublicationAction" | "AlterSubscriptionType" | "OnCommitAction" | "ParamKind" | "CoercionContext" | "CoercionForm" | "BoolExprType" | "SubLinkType" | "RowCompareType" | "MinMaxOp" | "SQLValueFunctionOp" | "XmlExprOp" | "XmlOptionType" | "JsonEncoding" | "JsonFormatType" | "JsonConstructorType" | "JsonValueType" | "NullTestType" | "BoolTestType" | "CmdType" | "JoinType" | "AggStrategy" | "AggSplit" | "SetOpCmd" | "SetOpStrategy" | "OnConflictAction" | "LimitOption" | "LockClauseStrength" | "LockWaitPolicy" | "LockTupleMode" | "KeywordKind" | "Token"; +export const getEnumValue = (enumType: EnumType, key: string | number) => { + switch (enumType) { + case "OverridingKind": + { + switch (key) { + case "OVERRIDING_NOT_SET": + return 0; + case "OVERRIDING_USER_VALUE": + return 1; + case "OVERRIDING_SYSTEM_VALUE": + return 2; + case 0: + return "OVERRIDING_NOT_SET"; + case 1: + return "OVERRIDING_USER_VALUE"; + case 2: + return "OVERRIDING_SYSTEM_VALUE"; + default: + throw new Error("Key not recognized in enum OverridingKind"); + } + } + case "QuerySource": + { + switch (key) { + case "QSRC_ORIGINAL": + return 0; + case "QSRC_PARSER": + return 1; + case "QSRC_INSTEAD_RULE": + return 2; + case "QSRC_QUAL_INSTEAD_RULE": + return 3; + case "QSRC_NON_INSTEAD_RULE": + return 4; + case 0: + return "QSRC_ORIGINAL"; + case 1: + return "QSRC_PARSER"; + case 2: + return "QSRC_INSTEAD_RULE"; + case 3: + return "QSRC_QUAL_INSTEAD_RULE"; + case 4: + return "QSRC_NON_INSTEAD_RULE"; + default: + throw new Error("Key not recognized in enum QuerySource"); + } + } + case "SortByDir": + { + switch (key) { + case "SORTBY_DEFAULT": + return 0; + case "SORTBY_ASC": + return 1; + case "SORTBY_DESC": + return 2; + case "SORTBY_USING": + return 3; + case 0: + return "SORTBY_DEFAULT"; + case 1: + return "SORTBY_ASC"; + case 2: + return "SORTBY_DESC"; + case 3: + return "SORTBY_USING"; + default: + throw new Error("Key not recognized in enum SortByDir"); + } + } + case "SortByNulls": + { + switch (key) { + case "SORTBY_NULLS_DEFAULT": + return 0; + case "SORTBY_NULLS_FIRST": + return 1; + case "SORTBY_NULLS_LAST": + return 2; + case 0: + return "SORTBY_NULLS_DEFAULT"; + case 1: + return "SORTBY_NULLS_FIRST"; + case 2: + return "SORTBY_NULLS_LAST"; + default: + throw new Error("Key not recognized in enum SortByNulls"); + } + } + case "SetQuantifier": + { + switch (key) { + case "SET_QUANTIFIER_DEFAULT": + return 0; + case "SET_QUANTIFIER_ALL": + return 1; + case "SET_QUANTIFIER_DISTINCT": + return 2; + case 0: + return "SET_QUANTIFIER_DEFAULT"; + case 1: + return "SET_QUANTIFIER_ALL"; + case 2: + return "SET_QUANTIFIER_DISTINCT"; + default: + throw new Error("Key not recognized in enum SetQuantifier"); + } + } + case "A_Expr_Kind": + { + switch (key) { + case "AEXPR_OP": + return 0; + case "AEXPR_OP_ANY": + return 1; + case "AEXPR_OP_ALL": + return 2; + case "AEXPR_DISTINCT": + return 3; + case "AEXPR_NOT_DISTINCT": + return 4; + case "AEXPR_NULLIF": + return 5; + case "AEXPR_IN": + return 6; + case "AEXPR_LIKE": + return 7; + case "AEXPR_ILIKE": + return 8; + case "AEXPR_SIMILAR": + return 9; + case "AEXPR_BETWEEN": + return 10; + case "AEXPR_NOT_BETWEEN": + return 11; + case "AEXPR_BETWEEN_SYM": + return 12; + case "AEXPR_NOT_BETWEEN_SYM": + return 13; + case 0: + return "AEXPR_OP"; + case 1: + return "AEXPR_OP_ANY"; + case 2: + return "AEXPR_OP_ALL"; + case 3: + return "AEXPR_DISTINCT"; + case 4: + return "AEXPR_NOT_DISTINCT"; + case 5: + return "AEXPR_NULLIF"; + case 6: + return "AEXPR_IN"; + case 7: + return "AEXPR_LIKE"; + case 8: + return "AEXPR_ILIKE"; + case 9: + return "AEXPR_SIMILAR"; + case 10: + return "AEXPR_BETWEEN"; + case 11: + return "AEXPR_NOT_BETWEEN"; + case 12: + return "AEXPR_BETWEEN_SYM"; + case 13: + return "AEXPR_NOT_BETWEEN_SYM"; + default: + throw new Error("Key not recognized in enum A_Expr_Kind"); + } + } + case "RoleSpecType": + { + switch (key) { + case "ROLESPEC_CSTRING": + return 0; + case "ROLESPEC_CURRENT_ROLE": + return 1; + case "ROLESPEC_CURRENT_USER": + return 2; + case "ROLESPEC_SESSION_USER": + return 3; + case "ROLESPEC_PUBLIC": + return 4; + case 0: + return "ROLESPEC_CSTRING"; + case 1: + return "ROLESPEC_CURRENT_ROLE"; + case 2: + return "ROLESPEC_CURRENT_USER"; + case 3: + return "ROLESPEC_SESSION_USER"; + case 4: + return "ROLESPEC_PUBLIC"; + default: + throw new Error("Key not recognized in enum RoleSpecType"); + } + } + case "TableLikeOption": + { + switch (key) { + case "CREATE_TABLE_LIKE_COMMENTS": + return 0; + case "CREATE_TABLE_LIKE_COMPRESSION": + return 1; + case "CREATE_TABLE_LIKE_CONSTRAINTS": + return 2; + case "CREATE_TABLE_LIKE_DEFAULTS": + return 3; + case "CREATE_TABLE_LIKE_GENERATED": + return 4; + case "CREATE_TABLE_LIKE_IDENTITY": + return 5; + case "CREATE_TABLE_LIKE_INDEXES": + return 6; + case "CREATE_TABLE_LIKE_STATISTICS": + return 7; + case "CREATE_TABLE_LIKE_STORAGE": + return 8; + case "CREATE_TABLE_LIKE_ALL": + return 9; + case 0: + return "CREATE_TABLE_LIKE_COMMENTS"; + case 1: + return "CREATE_TABLE_LIKE_COMPRESSION"; + case 2: + return "CREATE_TABLE_LIKE_CONSTRAINTS"; + case 3: + return "CREATE_TABLE_LIKE_DEFAULTS"; + case 4: + return "CREATE_TABLE_LIKE_GENERATED"; + case 5: + return "CREATE_TABLE_LIKE_IDENTITY"; + case 6: + return "CREATE_TABLE_LIKE_INDEXES"; + case 7: + return "CREATE_TABLE_LIKE_STATISTICS"; + case 8: + return "CREATE_TABLE_LIKE_STORAGE"; + case 9: + return "CREATE_TABLE_LIKE_ALL"; + default: + throw new Error("Key not recognized in enum TableLikeOption"); + } + } + case "DefElemAction": + { + switch (key) { + case "DEFELEM_UNSPEC": + return 0; + case "DEFELEM_SET": + return 1; + case "DEFELEM_ADD": + return 2; + case "DEFELEM_DROP": + return 3; + case 0: + return "DEFELEM_UNSPEC"; + case 1: + return "DEFELEM_SET"; + case 2: + return "DEFELEM_ADD"; + case 3: + return "DEFELEM_DROP"; + default: + throw new Error("Key not recognized in enum DefElemAction"); + } + } + case "PartitionStrategy": + { + switch (key) { + case "PARTITION_STRATEGY_LIST": + return 0; + case "PARTITION_STRATEGY_RANGE": + return 1; + case "PARTITION_STRATEGY_HASH": + return 2; + case 0: + return "PARTITION_STRATEGY_LIST"; + case 1: + return "PARTITION_STRATEGY_RANGE"; + case 2: + return "PARTITION_STRATEGY_HASH"; + default: + throw new Error("Key not recognized in enum PartitionStrategy"); + } + } + case "PartitionRangeDatumKind": + { + switch (key) { + case "PARTITION_RANGE_DATUM_MINVALUE": + return 0; + case "PARTITION_RANGE_DATUM_VALUE": + return 1; + case "PARTITION_RANGE_DATUM_MAXVALUE": + return 2; + case 0: + return "PARTITION_RANGE_DATUM_MINVALUE"; + case 1: + return "PARTITION_RANGE_DATUM_VALUE"; + case 2: + return "PARTITION_RANGE_DATUM_MAXVALUE"; + default: + throw new Error("Key not recognized in enum PartitionRangeDatumKind"); + } + } + case "RTEKind": + { + switch (key) { + case "RTE_RELATION": + return 0; + case "RTE_SUBQUERY": + return 1; + case "RTE_JOIN": + return 2; + case "RTE_FUNCTION": + return 3; + case "RTE_TABLEFUNC": + return 4; + case "RTE_VALUES": + return 5; + case "RTE_CTE": + return 6; + case "RTE_NAMEDTUPLESTORE": + return 7; + case "RTE_RESULT": + return 8; + case 0: + return "RTE_RELATION"; + case 1: + return "RTE_SUBQUERY"; + case 2: + return "RTE_JOIN"; + case 3: + return "RTE_FUNCTION"; + case 4: + return "RTE_TABLEFUNC"; + case 5: + return "RTE_VALUES"; + case 6: + return "RTE_CTE"; + case 7: + return "RTE_NAMEDTUPLESTORE"; + case 8: + return "RTE_RESULT"; + default: + throw new Error("Key not recognized in enum RTEKind"); + } + } + case "WCOKind": + { + switch (key) { + case "WCO_VIEW_CHECK": + return 0; + case "WCO_RLS_INSERT_CHECK": + return 1; + case "WCO_RLS_UPDATE_CHECK": + return 2; + case "WCO_RLS_CONFLICT_CHECK": + return 3; + case "WCO_RLS_MERGE_UPDATE_CHECK": + return 4; + case "WCO_RLS_MERGE_DELETE_CHECK": + return 5; + case 0: + return "WCO_VIEW_CHECK"; + case 1: + return "WCO_RLS_INSERT_CHECK"; + case 2: + return "WCO_RLS_UPDATE_CHECK"; + case 3: + return "WCO_RLS_CONFLICT_CHECK"; + case 4: + return "WCO_RLS_MERGE_UPDATE_CHECK"; + case 5: + return "WCO_RLS_MERGE_DELETE_CHECK"; + default: + throw new Error("Key not recognized in enum WCOKind"); + } + } + case "GroupingSetKind": + { + switch (key) { + case "GROUPING_SET_EMPTY": + return 0; + case "GROUPING_SET_SIMPLE": + return 1; + case "GROUPING_SET_ROLLUP": + return 2; + case "GROUPING_SET_CUBE": + return 3; + case "GROUPING_SET_SETS": + return 4; + case 0: + return "GROUPING_SET_EMPTY"; + case 1: + return "GROUPING_SET_SIMPLE"; + case 2: + return "GROUPING_SET_ROLLUP"; + case 3: + return "GROUPING_SET_CUBE"; + case 4: + return "GROUPING_SET_SETS"; + default: + throw new Error("Key not recognized in enum GroupingSetKind"); + } + } + case "CTEMaterialize": + { + switch (key) { + case "CTEMaterializeDefault": + return 0; + case "CTEMaterializeAlways": + return 1; + case "CTEMaterializeNever": + return 2; + case 0: + return "CTEMaterializeDefault"; + case 1: + return "CTEMaterializeAlways"; + case 2: + return "CTEMaterializeNever"; + default: + throw new Error("Key not recognized in enum CTEMaterialize"); + } + } + case "SetOperation": + { + switch (key) { + case "SETOP_NONE": + return 0; + case "SETOP_UNION": + return 1; + case "SETOP_INTERSECT": + return 2; + case "SETOP_EXCEPT": + return 3; + case 0: + return "SETOP_NONE"; + case 1: + return "SETOP_UNION"; + case 2: + return "SETOP_INTERSECT"; + case 3: + return "SETOP_EXCEPT"; + default: + throw new Error("Key not recognized in enum SetOperation"); + } + } + case "ObjectType": + { + switch (key) { + case "OBJECT_ACCESS_METHOD": + return 0; + case "OBJECT_AGGREGATE": + return 1; + case "OBJECT_AMOP": + return 2; + case "OBJECT_AMPROC": + return 3; + case "OBJECT_ATTRIBUTE": + return 4; + case "OBJECT_CAST": + return 5; + case "OBJECT_COLUMN": + return 6; + case "OBJECT_COLLATION": + return 7; + case "OBJECT_CONVERSION": + return 8; + case "OBJECT_DATABASE": + return 9; + case "OBJECT_DEFAULT": + return 10; + case "OBJECT_DEFACL": + return 11; + case "OBJECT_DOMAIN": + return 12; + case "OBJECT_DOMCONSTRAINT": + return 13; + case "OBJECT_EVENT_TRIGGER": + return 14; + case "OBJECT_EXTENSION": + return 15; + case "OBJECT_FDW": + return 16; + case "OBJECT_FOREIGN_SERVER": + return 17; + case "OBJECT_FOREIGN_TABLE": + return 18; + case "OBJECT_FUNCTION": + return 19; + case "OBJECT_INDEX": + return 20; + case "OBJECT_LANGUAGE": + return 21; + case "OBJECT_LARGEOBJECT": + return 22; + case "OBJECT_MATVIEW": + return 23; + case "OBJECT_OPCLASS": + return 24; + case "OBJECT_OPERATOR": + return 25; + case "OBJECT_OPFAMILY": + return 26; + case "OBJECT_PARAMETER_ACL": + return 27; + case "OBJECT_POLICY": + return 28; + case "OBJECT_PROCEDURE": + return 29; + case "OBJECT_PUBLICATION": + return 30; + case "OBJECT_PUBLICATION_NAMESPACE": + return 31; + case "OBJECT_PUBLICATION_REL": + return 32; + case "OBJECT_ROLE": + return 33; + case "OBJECT_ROUTINE": + return 34; + case "OBJECT_RULE": + return 35; + case "OBJECT_SCHEMA": + return 36; + case "OBJECT_SEQUENCE": + return 37; + case "OBJECT_SUBSCRIPTION": + return 38; + case "OBJECT_STATISTIC_EXT": + return 39; + case "OBJECT_TABCONSTRAINT": + return 40; + case "OBJECT_TABLE": + return 41; + case "OBJECT_TABLESPACE": + return 42; + case "OBJECT_TRANSFORM": + return 43; + case "OBJECT_TRIGGER": + return 44; + case "OBJECT_TSCONFIGURATION": + return 45; + case "OBJECT_TSDICTIONARY": + return 46; + case "OBJECT_TSPARSER": + return 47; + case "OBJECT_TSTEMPLATE": + return 48; + case "OBJECT_TYPE": + return 49; + case "OBJECT_USER_MAPPING": + return 50; + case "OBJECT_VIEW": + return 51; + case 0: + return "OBJECT_ACCESS_METHOD"; + case 1: + return "OBJECT_AGGREGATE"; + case 2: + return "OBJECT_AMOP"; + case 3: + return "OBJECT_AMPROC"; + case 4: + return "OBJECT_ATTRIBUTE"; + case 5: + return "OBJECT_CAST"; + case 6: + return "OBJECT_COLUMN"; + case 7: + return "OBJECT_COLLATION"; + case 8: + return "OBJECT_CONVERSION"; + case 9: + return "OBJECT_DATABASE"; + case 10: + return "OBJECT_DEFAULT"; + case 11: + return "OBJECT_DEFACL"; + case 12: + return "OBJECT_DOMAIN"; + case 13: + return "OBJECT_DOMCONSTRAINT"; + case 14: + return "OBJECT_EVENT_TRIGGER"; + case 15: + return "OBJECT_EXTENSION"; + case 16: + return "OBJECT_FDW"; + case 17: + return "OBJECT_FOREIGN_SERVER"; + case 18: + return "OBJECT_FOREIGN_TABLE"; + case 19: + return "OBJECT_FUNCTION"; + case 20: + return "OBJECT_INDEX"; + case 21: + return "OBJECT_LANGUAGE"; + case 22: + return "OBJECT_LARGEOBJECT"; + case 23: + return "OBJECT_MATVIEW"; + case 24: + return "OBJECT_OPCLASS"; + case 25: + return "OBJECT_OPERATOR"; + case 26: + return "OBJECT_OPFAMILY"; + case 27: + return "OBJECT_PARAMETER_ACL"; + case 28: + return "OBJECT_POLICY"; + case 29: + return "OBJECT_PROCEDURE"; + case 30: + return "OBJECT_PUBLICATION"; + case 31: + return "OBJECT_PUBLICATION_NAMESPACE"; + case 32: + return "OBJECT_PUBLICATION_REL"; + case 33: + return "OBJECT_ROLE"; + case 34: + return "OBJECT_ROUTINE"; + case 35: + return "OBJECT_RULE"; + case 36: + return "OBJECT_SCHEMA"; + case 37: + return "OBJECT_SEQUENCE"; + case 38: + return "OBJECT_SUBSCRIPTION"; + case 39: + return "OBJECT_STATISTIC_EXT"; + case 40: + return "OBJECT_TABCONSTRAINT"; + case 41: + return "OBJECT_TABLE"; + case 42: + return "OBJECT_TABLESPACE"; + case 43: + return "OBJECT_TRANSFORM"; + case 44: + return "OBJECT_TRIGGER"; + case 45: + return "OBJECT_TSCONFIGURATION"; + case 46: + return "OBJECT_TSDICTIONARY"; + case 47: + return "OBJECT_TSPARSER"; + case 48: + return "OBJECT_TSTEMPLATE"; + case 49: + return "OBJECT_TYPE"; + case 50: + return "OBJECT_USER_MAPPING"; + case 51: + return "OBJECT_VIEW"; + default: + throw new Error("Key not recognized in enum ObjectType"); + } + } + case "DropBehavior": + { + switch (key) { + case "DROP_RESTRICT": + return 0; + case "DROP_CASCADE": + return 1; + case 0: + return "DROP_RESTRICT"; + case 1: + return "DROP_CASCADE"; + default: + throw new Error("Key not recognized in enum DropBehavior"); + } + } + case "AlterTableType": + { + switch (key) { + case "AT_AddColumn": + return 0; + case "AT_AddColumnToView": + return 1; + case "AT_ColumnDefault": + return 2; + case "AT_CookedColumnDefault": + return 3; + case "AT_DropNotNull": + return 4; + case "AT_SetNotNull": + return 5; + case "AT_DropExpression": + return 6; + case "AT_CheckNotNull": + return 7; + case "AT_SetStatistics": + return 8; + case "AT_SetOptions": + return 9; + case "AT_ResetOptions": + return 10; + case "AT_SetStorage": + return 11; + case "AT_SetCompression": + return 12; + case "AT_DropColumn": + return 13; + case "AT_AddIndex": + return 14; + case "AT_ReAddIndex": + return 15; + case "AT_AddConstraint": + return 16; + case "AT_ReAddConstraint": + return 17; + case "AT_ReAddDomainConstraint": + return 18; + case "AT_AlterConstraint": + return 19; + case "AT_ValidateConstraint": + return 20; + case "AT_AddIndexConstraint": + return 21; + case "AT_DropConstraint": + return 22; + case "AT_ReAddComment": + return 23; + case "AT_AlterColumnType": + return 24; + case "AT_AlterColumnGenericOptions": + return 25; + case "AT_ChangeOwner": + return 26; + case "AT_ClusterOn": + return 27; + case "AT_DropCluster": + return 28; + case "AT_SetLogged": + return 29; + case "AT_SetUnLogged": + return 30; + case "AT_DropOids": + return 31; + case "AT_SetAccessMethod": + return 32; + case "AT_SetTableSpace": + return 33; + case "AT_SetRelOptions": + return 34; + case "AT_ResetRelOptions": + return 35; + case "AT_ReplaceRelOptions": + return 36; + case "AT_EnableTrig": + return 37; + case "AT_EnableAlwaysTrig": + return 38; + case "AT_EnableReplicaTrig": + return 39; + case "AT_DisableTrig": + return 40; + case "AT_EnableTrigAll": + return 41; + case "AT_DisableTrigAll": + return 42; + case "AT_EnableTrigUser": + return 43; + case "AT_DisableTrigUser": + return 44; + case "AT_EnableRule": + return 45; + case "AT_EnableAlwaysRule": + return 46; + case "AT_EnableReplicaRule": + return 47; + case "AT_DisableRule": + return 48; + case "AT_AddInherit": + return 49; + case "AT_DropInherit": + return 50; + case "AT_AddOf": + return 51; + case "AT_DropOf": + return 52; + case "AT_ReplicaIdentity": + return 53; + case "AT_EnableRowSecurity": + return 54; + case "AT_DisableRowSecurity": + return 55; + case "AT_ForceRowSecurity": + return 56; + case "AT_NoForceRowSecurity": + return 57; + case "AT_GenericOptions": + return 58; + case "AT_AttachPartition": + return 59; + case "AT_DetachPartition": + return 60; + case "AT_DetachPartitionFinalize": + return 61; + case "AT_AddIdentity": + return 62; + case "AT_SetIdentity": + return 63; + case "AT_DropIdentity": + return 64; + case "AT_ReAddStatistics": + return 65; + case 0: + return "AT_AddColumn"; + case 1: + return "AT_AddColumnToView"; + case 2: + return "AT_ColumnDefault"; + case 3: + return "AT_CookedColumnDefault"; + case 4: + return "AT_DropNotNull"; + case 5: + return "AT_SetNotNull"; + case 6: + return "AT_DropExpression"; + case 7: + return "AT_CheckNotNull"; + case 8: + return "AT_SetStatistics"; + case 9: + return "AT_SetOptions"; + case 10: + return "AT_ResetOptions"; + case 11: + return "AT_SetStorage"; + case 12: + return "AT_SetCompression"; + case 13: + return "AT_DropColumn"; + case 14: + return "AT_AddIndex"; + case 15: + return "AT_ReAddIndex"; + case 16: + return "AT_AddConstraint"; + case 17: + return "AT_ReAddConstraint"; + case 18: + return "AT_ReAddDomainConstraint"; + case 19: + return "AT_AlterConstraint"; + case 20: + return "AT_ValidateConstraint"; + case 21: + return "AT_AddIndexConstraint"; + case 22: + return "AT_DropConstraint"; + case 23: + return "AT_ReAddComment"; + case 24: + return "AT_AlterColumnType"; + case 25: + return "AT_AlterColumnGenericOptions"; + case 26: + return "AT_ChangeOwner"; + case 27: + return "AT_ClusterOn"; + case 28: + return "AT_DropCluster"; + case 29: + return "AT_SetLogged"; + case 30: + return "AT_SetUnLogged"; + case 31: + return "AT_DropOids"; + case 32: + return "AT_SetAccessMethod"; + case 33: + return "AT_SetTableSpace"; + case 34: + return "AT_SetRelOptions"; + case 35: + return "AT_ResetRelOptions"; + case 36: + return "AT_ReplaceRelOptions"; + case 37: + return "AT_EnableTrig"; + case 38: + return "AT_EnableAlwaysTrig"; + case 39: + return "AT_EnableReplicaTrig"; + case 40: + return "AT_DisableTrig"; + case 41: + return "AT_EnableTrigAll"; + case 42: + return "AT_DisableTrigAll"; + case 43: + return "AT_EnableTrigUser"; + case 44: + return "AT_DisableTrigUser"; + case 45: + return "AT_EnableRule"; + case 46: + return "AT_EnableAlwaysRule"; + case 47: + return "AT_EnableReplicaRule"; + case 48: + return "AT_DisableRule"; + case 49: + return "AT_AddInherit"; + case 50: + return "AT_DropInherit"; + case 51: + return "AT_AddOf"; + case 52: + return "AT_DropOf"; + case 53: + return "AT_ReplicaIdentity"; + case 54: + return "AT_EnableRowSecurity"; + case 55: + return "AT_DisableRowSecurity"; + case 56: + return "AT_ForceRowSecurity"; + case 57: + return "AT_NoForceRowSecurity"; + case 58: + return "AT_GenericOptions"; + case 59: + return "AT_AttachPartition"; + case 60: + return "AT_DetachPartition"; + case 61: + return "AT_DetachPartitionFinalize"; + case 62: + return "AT_AddIdentity"; + case 63: + return "AT_SetIdentity"; + case 64: + return "AT_DropIdentity"; + case 65: + return "AT_ReAddStatistics"; + default: + throw new Error("Key not recognized in enum AlterTableType"); + } + } + case "GrantTargetType": + { + switch (key) { + case "ACL_TARGET_OBJECT": + return 0; + case "ACL_TARGET_ALL_IN_SCHEMA": + return 1; + case "ACL_TARGET_DEFAULTS": + return 2; + case 0: + return "ACL_TARGET_OBJECT"; + case 1: + return "ACL_TARGET_ALL_IN_SCHEMA"; + case 2: + return "ACL_TARGET_DEFAULTS"; + default: + throw new Error("Key not recognized in enum GrantTargetType"); + } + } + case "VariableSetKind": + { + switch (key) { + case "VAR_SET_VALUE": + return 0; + case "VAR_SET_DEFAULT": + return 1; + case "VAR_SET_CURRENT": + return 2; + case "VAR_SET_MULTI": + return 3; + case "VAR_RESET": + return 4; + case "VAR_RESET_ALL": + return 5; + case 0: + return "VAR_SET_VALUE"; + case 1: + return "VAR_SET_DEFAULT"; + case 2: + return "VAR_SET_CURRENT"; + case 3: + return "VAR_SET_MULTI"; + case 4: + return "VAR_RESET"; + case 5: + return "VAR_RESET_ALL"; + default: + throw new Error("Key not recognized in enum VariableSetKind"); + } + } + case "ConstrType": + { + switch (key) { + case "CONSTR_NULL": + return 0; + case "CONSTR_NOTNULL": + return 1; + case "CONSTR_DEFAULT": + return 2; + case "CONSTR_IDENTITY": + return 3; + case "CONSTR_GENERATED": + return 4; + case "CONSTR_CHECK": + return 5; + case "CONSTR_PRIMARY": + return 6; + case "CONSTR_UNIQUE": + return 7; + case "CONSTR_EXCLUSION": + return 8; + case "CONSTR_FOREIGN": + return 9; + case "CONSTR_ATTR_DEFERRABLE": + return 10; + case "CONSTR_ATTR_NOT_DEFERRABLE": + return 11; + case "CONSTR_ATTR_DEFERRED": + return 12; + case "CONSTR_ATTR_IMMEDIATE": + return 13; + case 0: + return "CONSTR_NULL"; + case 1: + return "CONSTR_NOTNULL"; + case 2: + return "CONSTR_DEFAULT"; + case 3: + return "CONSTR_IDENTITY"; + case 4: + return "CONSTR_GENERATED"; + case 5: + return "CONSTR_CHECK"; + case 6: + return "CONSTR_PRIMARY"; + case 7: + return "CONSTR_UNIQUE"; + case 8: + return "CONSTR_EXCLUSION"; + case 9: + return "CONSTR_FOREIGN"; + case 10: + return "CONSTR_ATTR_DEFERRABLE"; + case 11: + return "CONSTR_ATTR_NOT_DEFERRABLE"; + case 12: + return "CONSTR_ATTR_DEFERRED"; + case 13: + return "CONSTR_ATTR_IMMEDIATE"; + default: + throw new Error("Key not recognized in enum ConstrType"); + } + } + case "ImportForeignSchemaType": + { + switch (key) { + case "FDW_IMPORT_SCHEMA_ALL": + return 0; + case "FDW_IMPORT_SCHEMA_LIMIT_TO": + return 1; + case "FDW_IMPORT_SCHEMA_EXCEPT": + return 2; + case 0: + return "FDW_IMPORT_SCHEMA_ALL"; + case 1: + return "FDW_IMPORT_SCHEMA_LIMIT_TO"; + case 2: + return "FDW_IMPORT_SCHEMA_EXCEPT"; + default: + throw new Error("Key not recognized in enum ImportForeignSchemaType"); + } + } + case "RoleStmtType": + { + switch (key) { + case "ROLESTMT_ROLE": + return 0; + case "ROLESTMT_USER": + return 1; + case "ROLESTMT_GROUP": + return 2; + case 0: + return "ROLESTMT_ROLE"; + case 1: + return "ROLESTMT_USER"; + case 2: + return "ROLESTMT_GROUP"; + default: + throw new Error("Key not recognized in enum RoleStmtType"); + } + } + case "FetchDirection": + { + switch (key) { + case "FETCH_FORWARD": + return 0; + case "FETCH_BACKWARD": + return 1; + case "FETCH_ABSOLUTE": + return 2; + case "FETCH_RELATIVE": + return 3; + case 0: + return "FETCH_FORWARD"; + case 1: + return "FETCH_BACKWARD"; + case 2: + return "FETCH_ABSOLUTE"; + case 3: + return "FETCH_RELATIVE"; + default: + throw new Error("Key not recognized in enum FetchDirection"); + } + } + case "FunctionParameterMode": + { + switch (key) { + case "FUNC_PARAM_IN": + return 0; + case "FUNC_PARAM_OUT": + return 1; + case "FUNC_PARAM_INOUT": + return 2; + case "FUNC_PARAM_VARIADIC": + return 3; + case "FUNC_PARAM_TABLE": + return 4; + case "FUNC_PARAM_DEFAULT": + return 5; + case 0: + return "FUNC_PARAM_IN"; + case 1: + return "FUNC_PARAM_OUT"; + case 2: + return "FUNC_PARAM_INOUT"; + case 3: + return "FUNC_PARAM_VARIADIC"; + case 4: + return "FUNC_PARAM_TABLE"; + case 5: + return "FUNC_PARAM_DEFAULT"; + default: + throw new Error("Key not recognized in enum FunctionParameterMode"); + } + } + case "TransactionStmtKind": + { + switch (key) { + case "TRANS_STMT_BEGIN": + return 0; + case "TRANS_STMT_START": + return 1; + case "TRANS_STMT_COMMIT": + return 2; + case "TRANS_STMT_ROLLBACK": + return 3; + case "TRANS_STMT_SAVEPOINT": + return 4; + case "TRANS_STMT_RELEASE": + return 5; + case "TRANS_STMT_ROLLBACK_TO": + return 6; + case "TRANS_STMT_PREPARE": + return 7; + case "TRANS_STMT_COMMIT_PREPARED": + return 8; + case "TRANS_STMT_ROLLBACK_PREPARED": + return 9; + case 0: + return "TRANS_STMT_BEGIN"; + case 1: + return "TRANS_STMT_START"; + case 2: + return "TRANS_STMT_COMMIT"; + case 3: + return "TRANS_STMT_ROLLBACK"; + case 4: + return "TRANS_STMT_SAVEPOINT"; + case 5: + return "TRANS_STMT_RELEASE"; + case 6: + return "TRANS_STMT_ROLLBACK_TO"; + case 7: + return "TRANS_STMT_PREPARE"; + case 8: + return "TRANS_STMT_COMMIT_PREPARED"; + case 9: + return "TRANS_STMT_ROLLBACK_PREPARED"; + default: + throw new Error("Key not recognized in enum TransactionStmtKind"); + } + } + case "ViewCheckOption": + { + switch (key) { + case "NO_CHECK_OPTION": + return 0; + case "LOCAL_CHECK_OPTION": + return 1; + case "CASCADED_CHECK_OPTION": + return 2; + case 0: + return "NO_CHECK_OPTION"; + case 1: + return "LOCAL_CHECK_OPTION"; + case 2: + return "CASCADED_CHECK_OPTION"; + default: + throw new Error("Key not recognized in enum ViewCheckOption"); + } + } + case "DiscardMode": + { + switch (key) { + case "DISCARD_ALL": + return 0; + case "DISCARD_PLANS": + return 1; + case "DISCARD_SEQUENCES": + return 2; + case "DISCARD_TEMP": + return 3; + case 0: + return "DISCARD_ALL"; + case 1: + return "DISCARD_PLANS"; + case 2: + return "DISCARD_SEQUENCES"; + case 3: + return "DISCARD_TEMP"; + default: + throw new Error("Key not recognized in enum DiscardMode"); + } + } + case "ReindexObjectType": + { + switch (key) { + case "REINDEX_OBJECT_INDEX": + return 0; + case "REINDEX_OBJECT_TABLE": + return 1; + case "REINDEX_OBJECT_SCHEMA": + return 2; + case "REINDEX_OBJECT_SYSTEM": + return 3; + case "REINDEX_OBJECT_DATABASE": + return 4; + case 0: + return "REINDEX_OBJECT_INDEX"; + case 1: + return "REINDEX_OBJECT_TABLE"; + case 2: + return "REINDEX_OBJECT_SCHEMA"; + case 3: + return "REINDEX_OBJECT_SYSTEM"; + case 4: + return "REINDEX_OBJECT_DATABASE"; + default: + throw new Error("Key not recognized in enum ReindexObjectType"); + } + } + case "AlterTSConfigType": + { + switch (key) { + case "ALTER_TSCONFIG_ADD_MAPPING": + return 0; + case "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN": + return 1; + case "ALTER_TSCONFIG_REPLACE_DICT": + return 2; + case "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN": + return 3; + case "ALTER_TSCONFIG_DROP_MAPPING": + return 4; + case 0: + return "ALTER_TSCONFIG_ADD_MAPPING"; + case 1: + return "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN"; + case 2: + return "ALTER_TSCONFIG_REPLACE_DICT"; + case 3: + return "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN"; + case 4: + return "ALTER_TSCONFIG_DROP_MAPPING"; + default: + throw new Error("Key not recognized in enum AlterTSConfigType"); + } + } + case "PublicationObjSpecType": + { + switch (key) { + case "PUBLICATIONOBJ_TABLE": + return 0; + case "PUBLICATIONOBJ_TABLES_IN_SCHEMA": + return 1; + case "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA": + return 2; + case "PUBLICATIONOBJ_CONTINUATION": + return 3; + case 0: + return "PUBLICATIONOBJ_TABLE"; + case 1: + return "PUBLICATIONOBJ_TABLES_IN_SCHEMA"; + case 2: + return "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA"; + case 3: + return "PUBLICATIONOBJ_CONTINUATION"; + default: + throw new Error("Key not recognized in enum PublicationObjSpecType"); + } + } + case "AlterPublicationAction": + { + switch (key) { + case "AP_AddObjects": + return 0; + case "AP_DropObjects": + return 1; + case "AP_SetObjects": + return 2; + case 0: + return "AP_AddObjects"; + case 1: + return "AP_DropObjects"; + case 2: + return "AP_SetObjects"; + default: + throw new Error("Key not recognized in enum AlterPublicationAction"); + } + } + case "AlterSubscriptionType": + { + switch (key) { + case "ALTER_SUBSCRIPTION_OPTIONS": + return 0; + case "ALTER_SUBSCRIPTION_CONNECTION": + return 1; + case "ALTER_SUBSCRIPTION_SET_PUBLICATION": + return 2; + case "ALTER_SUBSCRIPTION_ADD_PUBLICATION": + return 3; + case "ALTER_SUBSCRIPTION_DROP_PUBLICATION": + return 4; + case "ALTER_SUBSCRIPTION_REFRESH": + return 5; + case "ALTER_SUBSCRIPTION_ENABLED": + return 6; + case "ALTER_SUBSCRIPTION_SKIP": + return 7; + case 0: + return "ALTER_SUBSCRIPTION_OPTIONS"; + case 1: + return "ALTER_SUBSCRIPTION_CONNECTION"; + case 2: + return "ALTER_SUBSCRIPTION_SET_PUBLICATION"; + case 3: + return "ALTER_SUBSCRIPTION_ADD_PUBLICATION"; + case 4: + return "ALTER_SUBSCRIPTION_DROP_PUBLICATION"; + case 5: + return "ALTER_SUBSCRIPTION_REFRESH"; + case 6: + return "ALTER_SUBSCRIPTION_ENABLED"; + case 7: + return "ALTER_SUBSCRIPTION_SKIP"; + default: + throw new Error("Key not recognized in enum AlterSubscriptionType"); + } + } + case "OnCommitAction": + { + switch (key) { + case "ONCOMMIT_NOOP": + return 0; + case "ONCOMMIT_PRESERVE_ROWS": + return 1; + case "ONCOMMIT_DELETE_ROWS": + return 2; + case "ONCOMMIT_DROP": + return 3; + case 0: + return "ONCOMMIT_NOOP"; + case 1: + return "ONCOMMIT_PRESERVE_ROWS"; + case 2: + return "ONCOMMIT_DELETE_ROWS"; + case 3: + return "ONCOMMIT_DROP"; + default: + throw new Error("Key not recognized in enum OnCommitAction"); + } + } + case "ParamKind": + { + switch (key) { + case "PARAM_EXTERN": + return 0; + case "PARAM_EXEC": + return 1; + case "PARAM_SUBLINK": + return 2; + case "PARAM_MULTIEXPR": + return 3; + case 0: + return "PARAM_EXTERN"; + case 1: + return "PARAM_EXEC"; + case 2: + return "PARAM_SUBLINK"; + case 3: + return "PARAM_MULTIEXPR"; + default: + throw new Error("Key not recognized in enum ParamKind"); + } + } + case "CoercionContext": + { + switch (key) { + case "COERCION_IMPLICIT": + return 0; + case "COERCION_ASSIGNMENT": + return 1; + case "COERCION_PLPGSQL": + return 2; + case "COERCION_EXPLICIT": + return 3; + case 0: + return "COERCION_IMPLICIT"; + case 1: + return "COERCION_ASSIGNMENT"; + case 2: + return "COERCION_PLPGSQL"; + case 3: + return "COERCION_EXPLICIT"; + default: + throw new Error("Key not recognized in enum CoercionContext"); + } + } + case "CoercionForm": + { + switch (key) { + case "COERCE_EXPLICIT_CALL": + return 0; + case "COERCE_EXPLICIT_CAST": + return 1; + case "COERCE_IMPLICIT_CAST": + return 2; + case "COERCE_SQL_SYNTAX": + return 3; + case 0: + return "COERCE_EXPLICIT_CALL"; + case 1: + return "COERCE_EXPLICIT_CAST"; + case 2: + return "COERCE_IMPLICIT_CAST"; + case 3: + return "COERCE_SQL_SYNTAX"; + default: + throw new Error("Key not recognized in enum CoercionForm"); + } + } + case "BoolExprType": + { + switch (key) { + case "AND_EXPR": + return 0; + case "OR_EXPR": + return 1; + case "NOT_EXPR": + return 2; + case 0: + return "AND_EXPR"; + case 1: + return "OR_EXPR"; + case 2: + return "NOT_EXPR"; + default: + throw new Error("Key not recognized in enum BoolExprType"); + } + } + case "SubLinkType": + { + switch (key) { + case "EXISTS_SUBLINK": + return 0; + case "ALL_SUBLINK": + return 1; + case "ANY_SUBLINK": + return 2; + case "ROWCOMPARE_SUBLINK": + return 3; + case "EXPR_SUBLINK": + return 4; + case "MULTIEXPR_SUBLINK": + return 5; + case "ARRAY_SUBLINK": + return 6; + case "CTE_SUBLINK": + return 7; + case 0: + return "EXISTS_SUBLINK"; + case 1: + return "ALL_SUBLINK"; + case 2: + return "ANY_SUBLINK"; + case 3: + return "ROWCOMPARE_SUBLINK"; + case 4: + return "EXPR_SUBLINK"; + case 5: + return "MULTIEXPR_SUBLINK"; + case 6: + return "ARRAY_SUBLINK"; + case 7: + return "CTE_SUBLINK"; + default: + throw new Error("Key not recognized in enum SubLinkType"); + } + } + case "RowCompareType": + { + switch (key) { + case "ROWCOMPARE_LT": + return 0; + case "ROWCOMPARE_LE": + return 1; + case "ROWCOMPARE_EQ": + return 2; + case "ROWCOMPARE_GE": + return 3; + case "ROWCOMPARE_GT": + return 4; + case "ROWCOMPARE_NE": + return 5; + case 0: + return "ROWCOMPARE_LT"; + case 1: + return "ROWCOMPARE_LE"; + case 2: + return "ROWCOMPARE_EQ"; + case 3: + return "ROWCOMPARE_GE"; + case 4: + return "ROWCOMPARE_GT"; + case 5: + return "ROWCOMPARE_NE"; + default: + throw new Error("Key not recognized in enum RowCompareType"); + } + } + case "MinMaxOp": + { + switch (key) { + case "IS_GREATEST": + return 0; + case "IS_LEAST": + return 1; + case 0: + return "IS_GREATEST"; + case 1: + return "IS_LEAST"; + default: + throw new Error("Key not recognized in enum MinMaxOp"); + } + } + case "SQLValueFunctionOp": + { + switch (key) { + case "SVFOP_CURRENT_DATE": + return 0; + case "SVFOP_CURRENT_TIME": + return 1; + case "SVFOP_CURRENT_TIME_N": + return 2; + case "SVFOP_CURRENT_TIMESTAMP": + return 3; + case "SVFOP_CURRENT_TIMESTAMP_N": + return 4; + case "SVFOP_LOCALTIME": + return 5; + case "SVFOP_LOCALTIME_N": + return 6; + case "SVFOP_LOCALTIMESTAMP": + return 7; + case "SVFOP_LOCALTIMESTAMP_N": + return 8; + case "SVFOP_CURRENT_ROLE": + return 9; + case "SVFOP_CURRENT_USER": + return 10; + case "SVFOP_USER": + return 11; + case "SVFOP_SESSION_USER": + return 12; + case "SVFOP_CURRENT_CATALOG": + return 13; + case "SVFOP_CURRENT_SCHEMA": + return 14; + case 0: + return "SVFOP_CURRENT_DATE"; + case 1: + return "SVFOP_CURRENT_TIME"; + case 2: + return "SVFOP_CURRENT_TIME_N"; + case 3: + return "SVFOP_CURRENT_TIMESTAMP"; + case 4: + return "SVFOP_CURRENT_TIMESTAMP_N"; + case 5: + return "SVFOP_LOCALTIME"; + case 6: + return "SVFOP_LOCALTIME_N"; + case 7: + return "SVFOP_LOCALTIMESTAMP"; + case 8: + return "SVFOP_LOCALTIMESTAMP_N"; + case 9: + return "SVFOP_CURRENT_ROLE"; + case 10: + return "SVFOP_CURRENT_USER"; + case 11: + return "SVFOP_USER"; + case 12: + return "SVFOP_SESSION_USER"; + case 13: + return "SVFOP_CURRENT_CATALOG"; + case 14: + return "SVFOP_CURRENT_SCHEMA"; + default: + throw new Error("Key not recognized in enum SQLValueFunctionOp"); + } + } + case "XmlExprOp": + { + switch (key) { + case "IS_XMLCONCAT": + return 0; + case "IS_XMLELEMENT": + return 1; + case "IS_XMLFOREST": + return 2; + case "IS_XMLPARSE": + return 3; + case "IS_XMLPI": + return 4; + case "IS_XMLROOT": + return 5; + case "IS_XMLSERIALIZE": + return 6; + case "IS_DOCUMENT": + return 7; + case 0: + return "IS_XMLCONCAT"; + case 1: + return "IS_XMLELEMENT"; + case 2: + return "IS_XMLFOREST"; + case 3: + return "IS_XMLPARSE"; + case 4: + return "IS_XMLPI"; + case 5: + return "IS_XMLROOT"; + case 6: + return "IS_XMLSERIALIZE"; + case 7: + return "IS_DOCUMENT"; + default: + throw new Error("Key not recognized in enum XmlExprOp"); + } + } + case "XmlOptionType": + { + switch (key) { + case "XMLOPTION_DOCUMENT": + return 0; + case "XMLOPTION_CONTENT": + return 1; + case 0: + return "XMLOPTION_DOCUMENT"; + case 1: + return "XMLOPTION_CONTENT"; + default: + throw new Error("Key not recognized in enum XmlOptionType"); + } + } + case "JsonEncoding": + { + switch (key) { + case "JS_ENC_DEFAULT": + return 0; + case "JS_ENC_UTF8": + return 1; + case "JS_ENC_UTF16": + return 2; + case "JS_ENC_UTF32": + return 3; + case 0: + return "JS_ENC_DEFAULT"; + case 1: + return "JS_ENC_UTF8"; + case 2: + return "JS_ENC_UTF16"; + case 3: + return "JS_ENC_UTF32"; + default: + throw new Error("Key not recognized in enum JsonEncoding"); + } + } + case "JsonFormatType": + { + switch (key) { + case "JS_FORMAT_DEFAULT": + return 0; + case "JS_FORMAT_JSON": + return 1; + case "JS_FORMAT_JSONB": + return 2; + case 0: + return "JS_FORMAT_DEFAULT"; + case 1: + return "JS_FORMAT_JSON"; + case 2: + return "JS_FORMAT_JSONB"; + default: + throw new Error("Key not recognized in enum JsonFormatType"); + } + } + case "JsonConstructorType": + { + switch (key) { + case "JSCTOR_JSON_OBJECT": + return 0; + case "JSCTOR_JSON_ARRAY": + return 1; + case "JSCTOR_JSON_OBJECTAGG": + return 2; + case "JSCTOR_JSON_ARRAYAGG": + return 3; + case 0: + return "JSCTOR_JSON_OBJECT"; + case 1: + return "JSCTOR_JSON_ARRAY"; + case 2: + return "JSCTOR_JSON_OBJECTAGG"; + case 3: + return "JSCTOR_JSON_ARRAYAGG"; + default: + throw new Error("Key not recognized in enum JsonConstructorType"); + } + } + case "JsonValueType": + { + switch (key) { + case "JS_TYPE_ANY": + return 0; + case "JS_TYPE_OBJECT": + return 1; + case "JS_TYPE_ARRAY": + return 2; + case "JS_TYPE_SCALAR": + return 3; + case 0: + return "JS_TYPE_ANY"; + case 1: + return "JS_TYPE_OBJECT"; + case 2: + return "JS_TYPE_ARRAY"; + case 3: + return "JS_TYPE_SCALAR"; + default: + throw new Error("Key not recognized in enum JsonValueType"); + } + } + case "NullTestType": + { + switch (key) { + case "IS_NULL": + return 0; + case "IS_NOT_NULL": + return 1; + case 0: + return "IS_NULL"; + case 1: + return "IS_NOT_NULL"; + default: + throw new Error("Key not recognized in enum NullTestType"); + } + } + case "BoolTestType": + { + switch (key) { + case "IS_TRUE": + return 0; + case "IS_NOT_TRUE": + return 1; + case "IS_FALSE": + return 2; + case "IS_NOT_FALSE": + return 3; + case "IS_UNKNOWN": + return 4; + case "IS_NOT_UNKNOWN": + return 5; + case 0: + return "IS_TRUE"; + case 1: + return "IS_NOT_TRUE"; + case 2: + return "IS_FALSE"; + case 3: + return "IS_NOT_FALSE"; + case 4: + return "IS_UNKNOWN"; + case 5: + return "IS_NOT_UNKNOWN"; + default: + throw new Error("Key not recognized in enum BoolTestType"); + } + } + case "CmdType": + { + switch (key) { + case "CMD_UNKNOWN": + return 0; + case "CMD_SELECT": + return 1; + case "CMD_UPDATE": + return 2; + case "CMD_INSERT": + return 3; + case "CMD_DELETE": + return 4; + case "CMD_MERGE": + return 5; + case "CMD_UTILITY": + return 6; + case "CMD_NOTHING": + return 7; + case 0: + return "CMD_UNKNOWN"; + case 1: + return "CMD_SELECT"; + case 2: + return "CMD_UPDATE"; + case 3: + return "CMD_INSERT"; + case 4: + return "CMD_DELETE"; + case 5: + return "CMD_MERGE"; + case 6: + return "CMD_UTILITY"; + case 7: + return "CMD_NOTHING"; + default: + throw new Error("Key not recognized in enum CmdType"); + } + } + case "JoinType": + { + switch (key) { + case "JOIN_INNER": + return 0; + case "JOIN_LEFT": + return 1; + case "JOIN_FULL": + return 2; + case "JOIN_RIGHT": + return 3; + case "JOIN_SEMI": + return 4; + case "JOIN_ANTI": + return 5; + case "JOIN_RIGHT_ANTI": + return 6; + case "JOIN_UNIQUE_OUTER": + return 7; + case "JOIN_UNIQUE_INNER": + return 8; + case 0: + return "JOIN_INNER"; + case 1: + return "JOIN_LEFT"; + case 2: + return "JOIN_FULL"; + case 3: + return "JOIN_RIGHT"; + case 4: + return "JOIN_SEMI"; + case 5: + return "JOIN_ANTI"; + case 6: + return "JOIN_RIGHT_ANTI"; + case 7: + return "JOIN_UNIQUE_OUTER"; + case 8: + return "JOIN_UNIQUE_INNER"; + default: + throw new Error("Key not recognized in enum JoinType"); + } + } + case "AggStrategy": + { + switch (key) { + case "AGG_PLAIN": + return 0; + case "AGG_SORTED": + return 1; + case "AGG_HASHED": + return 2; + case "AGG_MIXED": + return 3; + case 0: + return "AGG_PLAIN"; + case 1: + return "AGG_SORTED"; + case 2: + return "AGG_HASHED"; + case 3: + return "AGG_MIXED"; + default: + throw new Error("Key not recognized in enum AggStrategy"); + } + } + case "AggSplit": + { + switch (key) { + case "AGGSPLIT_SIMPLE": + return 0; + case "AGGSPLIT_INITIAL_SERIAL": + return 1; + case "AGGSPLIT_FINAL_DESERIAL": + return 2; + case 0: + return "AGGSPLIT_SIMPLE"; + case 1: + return "AGGSPLIT_INITIAL_SERIAL"; + case 2: + return "AGGSPLIT_FINAL_DESERIAL"; + default: + throw new Error("Key not recognized in enum AggSplit"); + } + } + case "SetOpCmd": + { + switch (key) { + case "SETOPCMD_INTERSECT": + return 0; + case "SETOPCMD_INTERSECT_ALL": + return 1; + case "SETOPCMD_EXCEPT": + return 2; + case "SETOPCMD_EXCEPT_ALL": + return 3; + case 0: + return "SETOPCMD_INTERSECT"; + case 1: + return "SETOPCMD_INTERSECT_ALL"; + case 2: + return "SETOPCMD_EXCEPT"; + case 3: + return "SETOPCMD_EXCEPT_ALL"; + default: + throw new Error("Key not recognized in enum SetOpCmd"); + } + } + case "SetOpStrategy": + { + switch (key) { + case "SETOP_SORTED": + return 0; + case "SETOP_HASHED": + return 1; + case 0: + return "SETOP_SORTED"; + case 1: + return "SETOP_HASHED"; + default: + throw new Error("Key not recognized in enum SetOpStrategy"); + } + } + case "OnConflictAction": + { + switch (key) { + case "ONCONFLICT_NONE": + return 0; + case "ONCONFLICT_NOTHING": + return 1; + case "ONCONFLICT_UPDATE": + return 2; + case 0: + return "ONCONFLICT_NONE"; + case 1: + return "ONCONFLICT_NOTHING"; + case 2: + return "ONCONFLICT_UPDATE"; + default: + throw new Error("Key not recognized in enum OnConflictAction"); + } + } + case "LimitOption": + { + switch (key) { + case "LIMIT_OPTION_DEFAULT": + return 0; + case "LIMIT_OPTION_COUNT": + return 1; + case "LIMIT_OPTION_WITH_TIES": + return 2; + case 0: + return "LIMIT_OPTION_DEFAULT"; + case 1: + return "LIMIT_OPTION_COUNT"; + case 2: + return "LIMIT_OPTION_WITH_TIES"; + default: + throw new Error("Key not recognized in enum LimitOption"); + } + } + case "LockClauseStrength": + { + switch (key) { + case "LCS_NONE": + return 0; + case "LCS_FORKEYSHARE": + return 1; + case "LCS_FORSHARE": + return 2; + case "LCS_FORNOKEYUPDATE": + return 3; + case "LCS_FORUPDATE": + return 4; + case 0: + return "LCS_NONE"; + case 1: + return "LCS_FORKEYSHARE"; + case 2: + return "LCS_FORSHARE"; + case 3: + return "LCS_FORNOKEYUPDATE"; + case 4: + return "LCS_FORUPDATE"; + default: + throw new Error("Key not recognized in enum LockClauseStrength"); + } + } + case "LockWaitPolicy": + { + switch (key) { + case "LockWaitBlock": + return 0; + case "LockWaitSkip": + return 1; + case "LockWaitError": + return 2; + case 0: + return "LockWaitBlock"; + case 1: + return "LockWaitSkip"; + case 2: + return "LockWaitError"; + default: + throw new Error("Key not recognized in enum LockWaitPolicy"); + } + } + case "LockTupleMode": + { + switch (key) { + case "LockTupleKeyShare": + return 0; + case "LockTupleShare": + return 1; + case "LockTupleNoKeyExclusive": + return 2; + case "LockTupleExclusive": + return 3; + case 0: + return "LockTupleKeyShare"; + case 1: + return "LockTupleShare"; + case 2: + return "LockTupleNoKeyExclusive"; + case 3: + return "LockTupleExclusive"; + default: + throw new Error("Key not recognized in enum LockTupleMode"); + } + } + case "KeywordKind": + { + switch (key) { + case "NO_KEYWORD": + return 0; + case "UNRESERVED_KEYWORD": + return 1; + case "COL_NAME_KEYWORD": + return 2; + case "TYPE_FUNC_NAME_KEYWORD": + return 3; + case "RESERVED_KEYWORD": + return 4; + case 0: + return "NO_KEYWORD"; + case 1: + return "UNRESERVED_KEYWORD"; + case 2: + return "COL_NAME_KEYWORD"; + case 3: + return "TYPE_FUNC_NAME_KEYWORD"; + case 4: + return "RESERVED_KEYWORD"; + default: + throw new Error("Key not recognized in enum KeywordKind"); + } + } + case "Token": + { + switch (key) { + case "NUL": + return 0; + case "ASCII_36": + return 36; + case "ASCII_37": + return 37; + case "ASCII_40": + return 40; + case "ASCII_41": + return 41; + case "ASCII_42": + return 42; + case "ASCII_43": + return 43; + case "ASCII_44": + return 44; + case "ASCII_45": + return 45; + case "ASCII_46": + return 46; + case "ASCII_47": + return 47; + case "ASCII_58": + return 58; + case "ASCII_59": + return 59; + case "ASCII_60": + return 60; + case "ASCII_61": + return 61; + case "ASCII_62": + return 62; + case "ASCII_63": + return 63; + case "ASCII_91": + return 91; + case "ASCII_92": + return 92; + case "ASCII_93": + return 93; + case "ASCII_94": + return 94; + case "IDENT": + return 258; + case "UIDENT": + return 259; + case "FCONST": + return 260; + case "SCONST": + return 261; + case "USCONST": + return 262; + case "BCONST": + return 263; + case "XCONST": + return 264; + case "Op": + return 265; + case "ICONST": + return 266; + case "PARAM": + return 267; + case "TYPECAST": + return 268; + case "DOT_DOT": + return 269; + case "COLON_EQUALS": + return 270; + case "EQUALS_GREATER": + return 271; + case "LESS_EQUALS": + return 272; + case "GREATER_EQUALS": + return 273; + case "NOT_EQUALS": + return 274; + case "SQL_COMMENT": + return 275; + case "C_COMMENT": + return 276; + case "ABORT_P": + return 277; + case "ABSENT": + return 278; + case "ABSOLUTE_P": + return 279; + case "ACCESS": + return 280; + case "ACTION": + return 281; + case "ADD_P": + return 282; + case "ADMIN": + return 283; + case "AFTER": + return 284; + case "AGGREGATE": + return 285; + case "ALL": + return 286; + case "ALSO": + return 287; + case "ALTER": + return 288; + case "ALWAYS": + return 289; + case "ANALYSE": + return 290; + case "ANALYZE": + return 291; + case "AND": + return 292; + case "ANY": + return 293; + case "ARRAY": + return 294; + case "AS": + return 295; + case "ASC": + return 296; + case "ASENSITIVE": + return 297; + case "ASSERTION": + return 298; + case "ASSIGNMENT": + return 299; + case "ASYMMETRIC": + return 300; + case "ATOMIC": + return 301; + case "AT": + return 302; + case "ATTACH": + return 303; + case "ATTRIBUTE": + return 304; + case "AUTHORIZATION": + return 305; + case "BACKWARD": + return 306; + case "BEFORE": + return 307; + case "BEGIN_P": + return 308; + case "BETWEEN": + return 309; + case "BIGINT": + return 310; + case "BINARY": + return 311; + case "BIT": + return 312; + case "BOOLEAN_P": + return 313; + case "BOTH": + return 314; + case "BREADTH": + return 315; + case "BY": + return 316; + case "CACHE": + return 317; + case "CALL": + return 318; + case "CALLED": + return 319; + case "CASCADE": + return 320; + case "CASCADED": + return 321; + case "CASE": + return 322; + case "CAST": + return 323; + case "CATALOG_P": + return 324; + case "CHAIN": + return 325; + case "CHAR_P": + return 326; + case "CHARACTER": + return 327; + case "CHARACTERISTICS": + return 328; + case "CHECK": + return 329; + case "CHECKPOINT": + return 330; + case "CLASS": + return 331; + case "CLOSE": + return 332; + case "CLUSTER": + return 333; + case "COALESCE": + return 334; + case "COLLATE": + return 335; + case "COLLATION": + return 336; + case "COLUMN": + return 337; + case "COLUMNS": + return 338; + case "COMMENT": + return 339; + case "COMMENTS": + return 340; + case "COMMIT": + return 341; + case "COMMITTED": + return 342; + case "COMPRESSION": + return 343; + case "CONCURRENTLY": + return 344; + case "CONFIGURATION": + return 345; + case "CONFLICT": + return 346; + case "CONNECTION": + return 347; + case "CONSTRAINT": + return 348; + case "CONSTRAINTS": + return 349; + case "CONTENT_P": + return 350; + case "CONTINUE_P": + return 351; + case "CONVERSION_P": + return 352; + case "COPY": + return 353; + case "COST": + return 354; + case "CREATE": + return 355; + case "CROSS": + return 356; + case "CSV": + return 357; + case "CUBE": + return 358; + case "CURRENT_P": + return 359; + case "CURRENT_CATALOG": + return 360; + case "CURRENT_DATE": + return 361; + case "CURRENT_ROLE": + return 362; + case "CURRENT_SCHEMA": + return 363; + case "CURRENT_TIME": + return 364; + case "CURRENT_TIMESTAMP": + return 365; + case "CURRENT_USER": + return 366; + case "CURSOR": + return 367; + case "CYCLE": + return 368; + case "DATA_P": + return 369; + case "DATABASE": + return 370; + case "DAY_P": + return 371; + case "DEALLOCATE": + return 372; + case "DEC": + return 373; + case "DECIMAL_P": + return 374; + case "DECLARE": + return 375; + case "DEFAULT": + return 376; + case "DEFAULTS": + return 377; + case "DEFERRABLE": + return 378; + case "DEFERRED": + return 379; + case "DEFINER": + return 380; + case "DELETE_P": + return 381; + case "DELIMITER": + return 382; + case "DELIMITERS": + return 383; + case "DEPENDS": + return 384; + case "DEPTH": + return 385; + case "DESC": + return 386; + case "DETACH": + return 387; + case "DICTIONARY": + return 388; + case "DISABLE_P": + return 389; + case "DISCARD": + return 390; + case "DISTINCT": + return 391; + case "DO": + return 392; + case "DOCUMENT_P": + return 393; + case "DOMAIN_P": + return 394; + case "DOUBLE_P": + return 395; + case "DROP": + return 396; + case "EACH": + return 397; + case "ELSE": + return 398; + case "ENABLE_P": + return 399; + case "ENCODING": + return 400; + case "ENCRYPTED": + return 401; + case "END_P": + return 402; + case "ENUM_P": + return 403; + case "ESCAPE": + return 404; + case "EVENT": + return 405; + case "EXCEPT": + return 406; + case "EXCLUDE": + return 407; + case "EXCLUDING": + return 408; + case "EXCLUSIVE": + return 409; + case "EXECUTE": + return 410; + case "EXISTS": + return 411; + case "EXPLAIN": + return 412; + case "EXPRESSION": + return 413; + case "EXTENSION": + return 414; + case "EXTERNAL": + return 415; + case "EXTRACT": + return 416; + case "FALSE_P": + return 417; + case "FAMILY": + return 418; + case "FETCH": + return 419; + case "FILTER": + return 420; + case "FINALIZE": + return 421; + case "FIRST_P": + return 422; + case "FLOAT_P": + return 423; + case "FOLLOWING": + return 424; + case "FOR": + return 425; + case "FORCE": + return 426; + case "FOREIGN": + return 427; + case "FORMAT": + return 428; + case "FORWARD": + return 429; + case "FREEZE": + return 430; + case "FROM": + return 431; + case "FULL": + return 432; + case "FUNCTION": + return 433; + case "FUNCTIONS": + return 434; + case "GENERATED": + return 435; + case "GLOBAL": + return 436; + case "GRANT": + return 437; + case "GRANTED": + return 438; + case "GREATEST": + return 439; + case "GROUP_P": + return 440; + case "GROUPING": + return 441; + case "GROUPS": + return 442; + case "HANDLER": + return 443; + case "HAVING": + return 444; + case "HEADER_P": + return 445; + case "HOLD": + return 446; + case "HOUR_P": + return 447; + case "IDENTITY_P": + return 448; + case "IF_P": + return 449; + case "ILIKE": + return 450; + case "IMMEDIATE": + return 451; + case "IMMUTABLE": + return 452; + case "IMPLICIT_P": + return 453; + case "IMPORT_P": + return 454; + case "IN_P": + return 455; + case "INCLUDE": + return 456; + case "INCLUDING": + return 457; + case "INCREMENT": + return 458; + case "INDENT": + return 459; + case "INDEX": + return 460; + case "INDEXES": + return 461; + case "INHERIT": + return 462; + case "INHERITS": + return 463; + case "INITIALLY": + return 464; + case "INLINE_P": + return 465; + case "INNER_P": + return 466; + case "INOUT": + return 467; + case "INPUT_P": + return 468; + case "INSENSITIVE": + return 469; + case "INSERT": + return 470; + case "INSTEAD": + return 471; + case "INT_P": + return 472; + case "INTEGER": + return 473; + case "INTERSECT": + return 474; + case "INTERVAL": + return 475; + case "INTO": + return 476; + case "INVOKER": + return 477; + case "IS": + return 478; + case "ISNULL": + return 479; + case "ISOLATION": + return 480; + case "JOIN": + return 481; + case "JSON": + return 482; + case "JSON_ARRAY": + return 483; + case "JSON_ARRAYAGG": + return 484; + case "JSON_OBJECT": + return 485; + case "JSON_OBJECTAGG": + return 486; + case "KEY": + return 487; + case "KEYS": + return 488; + case "LABEL": + return 489; + case "LANGUAGE": + return 490; + case "LARGE_P": + return 491; + case "LAST_P": + return 492; + case "LATERAL_P": + return 493; + case "LEADING": + return 494; + case "LEAKPROOF": + return 495; + case "LEAST": + return 496; + case "LEFT": + return 497; + case "LEVEL": + return 498; + case "LIKE": + return 499; + case "LIMIT": + return 500; + case "LISTEN": + return 501; + case "LOAD": + return 502; + case "LOCAL": + return 503; + case "LOCALTIME": + return 504; + case "LOCALTIMESTAMP": + return 505; + case "LOCATION": + return 506; + case "LOCK_P": + return 507; + case "LOCKED": + return 508; + case "LOGGED": + return 509; + case "MAPPING": + return 510; + case "MATCH": + return 511; + case "MATCHED": + return 512; + case "MATERIALIZED": + return 513; + case "MAXVALUE": + return 514; + case "MERGE": + return 515; + case "METHOD": + return 516; + case "MINUTE_P": + return 517; + case "MINVALUE": + return 518; + case "MODE": + return 519; + case "MONTH_P": + return 520; + case "MOVE": + return 521; + case "NAME_P": + return 522; + case "NAMES": + return 523; + case "NATIONAL": + return 524; + case "NATURAL": + return 525; + case "NCHAR": + return 526; + case "NEW": + return 527; + case "NEXT": + return 528; + case "NFC": + return 529; + case "NFD": + return 530; + case "NFKC": + return 531; + case "NFKD": + return 532; + case "NO": + return 533; + case "NONE": + return 534; + case "NORMALIZE": + return 535; + case "NORMALIZED": + return 536; + case "NOT": + return 537; + case "NOTHING": + return 538; + case "NOTIFY": + return 539; + case "NOTNULL": + return 540; + case "NOWAIT": + return 541; + case "NULL_P": + return 542; + case "NULLIF": + return 543; + case "NULLS_P": + return 544; + case "NUMERIC": + return 545; + case "OBJECT_P": + return 546; + case "OF": + return 547; + case "OFF": + return 548; + case "OFFSET": + return 549; + case "OIDS": + return 550; + case "OLD": + return 551; + case "ON": + return 552; + case "ONLY": + return 553; + case "OPERATOR": + return 554; + case "OPTION": + return 555; + case "OPTIONS": + return 556; + case "OR": + return 557; + case "ORDER": + return 558; + case "ORDINALITY": + return 559; + case "OTHERS": + return 560; + case "OUT_P": + return 561; + case "OUTER_P": + return 562; + case "OVER": + return 563; + case "OVERLAPS": + return 564; + case "OVERLAY": + return 565; + case "OVERRIDING": + return 566; + case "OWNED": + return 567; + case "OWNER": + return 568; + case "PARALLEL": + return 569; + case "PARAMETER": + return 570; + case "PARSER": + return 571; + case "PARTIAL": + return 572; + case "PARTITION": + return 573; + case "PASSING": + return 574; + case "PASSWORD": + return 575; + case "PLACING": + return 576; + case "PLANS": + return 577; + case "POLICY": + return 578; + case "POSITION": + return 579; + case "PRECEDING": + return 580; + case "PRECISION": + return 581; + case "PRESERVE": + return 582; + case "PREPARE": + return 583; + case "PREPARED": + return 584; + case "PRIMARY": + return 585; + case "PRIOR": + return 586; + case "PRIVILEGES": + return 587; + case "PROCEDURAL": + return 588; + case "PROCEDURE": + return 589; + case "PROCEDURES": + return 590; + case "PROGRAM": + return 591; + case "PUBLICATION": + return 592; + case "QUOTE": + return 593; + case "RANGE": + return 594; + case "READ": + return 595; + case "REAL": + return 596; + case "REASSIGN": + return 597; + case "RECHECK": + return 598; + case "RECURSIVE": + return 599; + case "REF_P": + return 600; + case "REFERENCES": + return 601; + case "REFERENCING": + return 602; + case "REFRESH": + return 603; + case "REINDEX": + return 604; + case "RELATIVE_P": + return 605; + case "RELEASE": + return 606; + case "RENAME": + return 607; + case "REPEATABLE": + return 608; + case "REPLACE": + return 609; + case "REPLICA": + return 610; + case "RESET": + return 611; + case "RESTART": + return 612; + case "RESTRICT": + return 613; + case "RETURN": + return 614; + case "RETURNING": + return 615; + case "RETURNS": + return 616; + case "REVOKE": + return 617; + case "RIGHT": + return 618; + case "ROLE": + return 619; + case "ROLLBACK": + return 620; + case "ROLLUP": + return 621; + case "ROUTINE": + return 622; + case "ROUTINES": + return 623; + case "ROW": + return 624; + case "ROWS": + return 625; + case "RULE": + return 626; + case "SAVEPOINT": + return 627; + case "SCALAR": + return 628; + case "SCHEMA": + return 629; + case "SCHEMAS": + return 630; + case "SCROLL": + return 631; + case "SEARCH": + return 632; + case "SECOND_P": + return 633; + case "SECURITY": + return 634; + case "SELECT": + return 635; + case "SEQUENCE": + return 636; + case "SEQUENCES": + return 637; + case "SERIALIZABLE": + return 638; + case "SERVER": + return 639; + case "SESSION": + return 640; + case "SESSION_USER": + return 641; + case "SET": + return 642; + case "SETS": + return 643; + case "SETOF": + return 644; + case "SHARE": + return 645; + case "SHOW": + return 646; + case "SIMILAR": + return 647; + case "SIMPLE": + return 648; + case "SKIP": + return 649; + case "SMALLINT": + return 650; + case "SNAPSHOT": + return 651; + case "SOME": + return 652; + case "SQL_P": + return 653; + case "STABLE": + return 654; + case "STANDALONE_P": + return 655; + case "START": + return 656; + case "STATEMENT": + return 657; + case "STATISTICS": + return 658; + case "STDIN": + return 659; + case "STDOUT": + return 660; + case "STORAGE": + return 661; + case "STORED": + return 662; + case "STRICT_P": + return 663; + case "STRIP_P": + return 664; + case "SUBSCRIPTION": + return 665; + case "SUBSTRING": + return 666; + case "SUPPORT": + return 667; + case "SYMMETRIC": + return 668; + case "SYSID": + return 669; + case "SYSTEM_P": + return 670; + case "SYSTEM_USER": + return 671; + case "TABLE": + return 672; + case "TABLES": + return 673; + case "TABLESAMPLE": + return 674; + case "TABLESPACE": + return 675; + case "TEMP": + return 676; + case "TEMPLATE": + return 677; + case "TEMPORARY": + return 678; + case "TEXT_P": + return 679; + case "THEN": + return 680; + case "TIES": + return 681; + case "TIME": + return 682; + case "TIMESTAMP": + return 683; + case "TO": + return 684; + case "TRAILING": + return 685; + case "TRANSACTION": + return 686; + case "TRANSFORM": + return 687; + case "TREAT": + return 688; + case "TRIGGER": + return 689; + case "TRIM": + return 690; + case "TRUE_P": + return 691; + case "TRUNCATE": + return 692; + case "TRUSTED": + return 693; + case "TYPE_P": + return 694; + case "TYPES_P": + return 695; + case "UESCAPE": + return 696; + case "UNBOUNDED": + return 697; + case "UNCOMMITTED": + return 698; + case "UNENCRYPTED": + return 699; + case "UNION": + return 700; + case "UNIQUE": + return 701; + case "UNKNOWN": + return 702; + case "UNLISTEN": + return 703; + case "UNLOGGED": + return 704; + case "UNTIL": + return 705; + case "UPDATE": + return 706; + case "USER": + return 707; + case "USING": + return 708; + case "VACUUM": + return 709; + case "VALID": + return 710; + case "VALIDATE": + return 711; + case "VALIDATOR": + return 712; + case "VALUE_P": + return 713; + case "VALUES": + return 714; + case "VARCHAR": + return 715; + case "VARIADIC": + return 716; + case "VARYING": + return 717; + case "VERBOSE": + return 718; + case "VERSION_P": + return 719; + case "VIEW": + return 720; + case "VIEWS": + return 721; + case "VOLATILE": + return 722; + case "WHEN": + return 723; + case "WHERE": + return 724; + case "WHITESPACE_P": + return 725; + case "WINDOW": + return 726; + case "WITH": + return 727; + case "WITHIN": + return 728; + case "WITHOUT": + return 729; + case "WORK": + return 730; + case "WRAPPER": + return 731; + case "WRITE": + return 732; + case "XML_P": + return 733; + case "XMLATTRIBUTES": + return 734; + case "XMLCONCAT": + return 735; + case "XMLELEMENT": + return 736; + case "XMLEXISTS": + return 737; + case "XMLFOREST": + return 738; + case "XMLNAMESPACES": + return 739; + case "XMLPARSE": + return 740; + case "XMLPI": + return 741; + case "XMLROOT": + return 742; + case "XMLSERIALIZE": + return 743; + case "XMLTABLE": + return 744; + case "YEAR_P": + return 745; + case "YES_P": + return 746; + case "ZONE": + return 747; + case "FORMAT_LA": + return 748; + case "NOT_LA": + return 749; + case "NULLS_LA": + return 750; + case "WITH_LA": + return 751; + case "WITHOUT_LA": + return 752; + case "MODE_TYPE_NAME": + return 753; + case "MODE_PLPGSQL_EXPR": + return 754; + case "MODE_PLPGSQL_ASSIGN1": + return 755; + case "MODE_PLPGSQL_ASSIGN2": + return 756; + case "MODE_PLPGSQL_ASSIGN3": + return 757; + case "UMINUS": + return 758; + case 0: + return "NUL"; + case 36: + return "ASCII_36"; + case 37: + return "ASCII_37"; + case 40: + return "ASCII_40"; + case 41: + return "ASCII_41"; + case 42: + return "ASCII_42"; + case 43: + return "ASCII_43"; + case 44: + return "ASCII_44"; + case 45: + return "ASCII_45"; + case 46: + return "ASCII_46"; + case 47: + return "ASCII_47"; + case 58: + return "ASCII_58"; + case 59: + return "ASCII_59"; + case 60: + return "ASCII_60"; + case 61: + return "ASCII_61"; + case 62: + return "ASCII_62"; + case 63: + return "ASCII_63"; + case 91: + return "ASCII_91"; + case 92: + return "ASCII_92"; + case 93: + return "ASCII_93"; + case 94: + return "ASCII_94"; + case 258: + return "IDENT"; + case 259: + return "UIDENT"; + case 260: + return "FCONST"; + case 261: + return "SCONST"; + case 262: + return "USCONST"; + case 263: + return "BCONST"; + case 264: + return "XCONST"; + case 265: + return "Op"; + case 266: + return "ICONST"; + case 267: + return "PARAM"; + case 268: + return "TYPECAST"; + case 269: + return "DOT_DOT"; + case 270: + return "COLON_EQUALS"; + case 271: + return "EQUALS_GREATER"; + case 272: + return "LESS_EQUALS"; + case 273: + return "GREATER_EQUALS"; + case 274: + return "NOT_EQUALS"; + case 275: + return "SQL_COMMENT"; + case 276: + return "C_COMMENT"; + case 277: + return "ABORT_P"; + case 278: + return "ABSENT"; + case 279: + return "ABSOLUTE_P"; + case 280: + return "ACCESS"; + case 281: + return "ACTION"; + case 282: + return "ADD_P"; + case 283: + return "ADMIN"; + case 284: + return "AFTER"; + case 285: + return "AGGREGATE"; + case 286: + return "ALL"; + case 287: + return "ALSO"; + case 288: + return "ALTER"; + case 289: + return "ALWAYS"; + case 290: + return "ANALYSE"; + case 291: + return "ANALYZE"; + case 292: + return "AND"; + case 293: + return "ANY"; + case 294: + return "ARRAY"; + case 295: + return "AS"; + case 296: + return "ASC"; + case 297: + return "ASENSITIVE"; + case 298: + return "ASSERTION"; + case 299: + return "ASSIGNMENT"; + case 300: + return "ASYMMETRIC"; + case 301: + return "ATOMIC"; + case 302: + return "AT"; + case 303: + return "ATTACH"; + case 304: + return "ATTRIBUTE"; + case 305: + return "AUTHORIZATION"; + case 306: + return "BACKWARD"; + case 307: + return "BEFORE"; + case 308: + return "BEGIN_P"; + case 309: + return "BETWEEN"; + case 310: + return "BIGINT"; + case 311: + return "BINARY"; + case 312: + return "BIT"; + case 313: + return "BOOLEAN_P"; + case 314: + return "BOTH"; + case 315: + return "BREADTH"; + case 316: + return "BY"; + case 317: + return "CACHE"; + case 318: + return "CALL"; + case 319: + return "CALLED"; + case 320: + return "CASCADE"; + case 321: + return "CASCADED"; + case 322: + return "CASE"; + case 323: + return "CAST"; + case 324: + return "CATALOG_P"; + case 325: + return "CHAIN"; + case 326: + return "CHAR_P"; + case 327: + return "CHARACTER"; + case 328: + return "CHARACTERISTICS"; + case 329: + return "CHECK"; + case 330: + return "CHECKPOINT"; + case 331: + return "CLASS"; + case 332: + return "CLOSE"; + case 333: + return "CLUSTER"; + case 334: + return "COALESCE"; + case 335: + return "COLLATE"; + case 336: + return "COLLATION"; + case 337: + return "COLUMN"; + case 338: + return "COLUMNS"; + case 339: + return "COMMENT"; + case 340: + return "COMMENTS"; + case 341: + return "COMMIT"; + case 342: + return "COMMITTED"; + case 343: + return "COMPRESSION"; + case 344: + return "CONCURRENTLY"; + case 345: + return "CONFIGURATION"; + case 346: + return "CONFLICT"; + case 347: + return "CONNECTION"; + case 348: + return "CONSTRAINT"; + case 349: + return "CONSTRAINTS"; + case 350: + return "CONTENT_P"; + case 351: + return "CONTINUE_P"; + case 352: + return "CONVERSION_P"; + case 353: + return "COPY"; + case 354: + return "COST"; + case 355: + return "CREATE"; + case 356: + return "CROSS"; + case 357: + return "CSV"; + case 358: + return "CUBE"; + case 359: + return "CURRENT_P"; + case 360: + return "CURRENT_CATALOG"; + case 361: + return "CURRENT_DATE"; + case 362: + return "CURRENT_ROLE"; + case 363: + return "CURRENT_SCHEMA"; + case 364: + return "CURRENT_TIME"; + case 365: + return "CURRENT_TIMESTAMP"; + case 366: + return "CURRENT_USER"; + case 367: + return "CURSOR"; + case 368: + return "CYCLE"; + case 369: + return "DATA_P"; + case 370: + return "DATABASE"; + case 371: + return "DAY_P"; + case 372: + return "DEALLOCATE"; + case 373: + return "DEC"; + case 374: + return "DECIMAL_P"; + case 375: + return "DECLARE"; + case 376: + return "DEFAULT"; + case 377: + return "DEFAULTS"; + case 378: + return "DEFERRABLE"; + case 379: + return "DEFERRED"; + case 380: + return "DEFINER"; + case 381: + return "DELETE_P"; + case 382: + return "DELIMITER"; + case 383: + return "DELIMITERS"; + case 384: + return "DEPENDS"; + case 385: + return "DEPTH"; + case 386: + return "DESC"; + case 387: + return "DETACH"; + case 388: + return "DICTIONARY"; + case 389: + return "DISABLE_P"; + case 390: + return "DISCARD"; + case 391: + return "DISTINCT"; + case 392: + return "DO"; + case 393: + return "DOCUMENT_P"; + case 394: + return "DOMAIN_P"; + case 395: + return "DOUBLE_P"; + case 396: + return "DROP"; + case 397: + return "EACH"; + case 398: + return "ELSE"; + case 399: + return "ENABLE_P"; + case 400: + return "ENCODING"; + case 401: + return "ENCRYPTED"; + case 402: + return "END_P"; + case 403: + return "ENUM_P"; + case 404: + return "ESCAPE"; + case 405: + return "EVENT"; + case 406: + return "EXCEPT"; + case 407: + return "EXCLUDE"; + case 408: + return "EXCLUDING"; + case 409: + return "EXCLUSIVE"; + case 410: + return "EXECUTE"; + case 411: + return "EXISTS"; + case 412: + return "EXPLAIN"; + case 413: + return "EXPRESSION"; + case 414: + return "EXTENSION"; + case 415: + return "EXTERNAL"; + case 416: + return "EXTRACT"; + case 417: + return "FALSE_P"; + case 418: + return "FAMILY"; + case 419: + return "FETCH"; + case 420: + return "FILTER"; + case 421: + return "FINALIZE"; + case 422: + return "FIRST_P"; + case 423: + return "FLOAT_P"; + case 424: + return "FOLLOWING"; + case 425: + return "FOR"; + case 426: + return "FORCE"; + case 427: + return "FOREIGN"; + case 428: + return "FORMAT"; + case 429: + return "FORWARD"; + case 430: + return "FREEZE"; + case 431: + return "FROM"; + case 432: + return "FULL"; + case 433: + return "FUNCTION"; + case 434: + return "FUNCTIONS"; + case 435: + return "GENERATED"; + case 436: + return "GLOBAL"; + case 437: + return "GRANT"; + case 438: + return "GRANTED"; + case 439: + return "GREATEST"; + case 440: + return "GROUP_P"; + case 441: + return "GROUPING"; + case 442: + return "GROUPS"; + case 443: + return "HANDLER"; + case 444: + return "HAVING"; + case 445: + return "HEADER_P"; + case 446: + return "HOLD"; + case 447: + return "HOUR_P"; + case 448: + return "IDENTITY_P"; + case 449: + return "IF_P"; + case 450: + return "ILIKE"; + case 451: + return "IMMEDIATE"; + case 452: + return "IMMUTABLE"; + case 453: + return "IMPLICIT_P"; + case 454: + return "IMPORT_P"; + case 455: + return "IN_P"; + case 456: + return "INCLUDE"; + case 457: + return "INCLUDING"; + case 458: + return "INCREMENT"; + case 459: + return "INDENT"; + case 460: + return "INDEX"; + case 461: + return "INDEXES"; + case 462: + return "INHERIT"; + case 463: + return "INHERITS"; + case 464: + return "INITIALLY"; + case 465: + return "INLINE_P"; + case 466: + return "INNER_P"; + case 467: + return "INOUT"; + case 468: + return "INPUT_P"; + case 469: + return "INSENSITIVE"; + case 470: + return "INSERT"; + case 471: + return "INSTEAD"; + case 472: + return "INT_P"; + case 473: + return "INTEGER"; + case 474: + return "INTERSECT"; + case 475: + return "INTERVAL"; + case 476: + return "INTO"; + case 477: + return "INVOKER"; + case 478: + return "IS"; + case 479: + return "ISNULL"; + case 480: + return "ISOLATION"; + case 481: + return "JOIN"; + case 482: + return "JSON"; + case 483: + return "JSON_ARRAY"; + case 484: + return "JSON_ARRAYAGG"; + case 485: + return "JSON_OBJECT"; + case 486: + return "JSON_OBJECTAGG"; + case 487: + return "KEY"; + case 488: + return "KEYS"; + case 489: + return "LABEL"; + case 490: + return "LANGUAGE"; + case 491: + return "LARGE_P"; + case 492: + return "LAST_P"; + case 493: + return "LATERAL_P"; + case 494: + return "LEADING"; + case 495: + return "LEAKPROOF"; + case 496: + return "LEAST"; + case 497: + return "LEFT"; + case 498: + return "LEVEL"; + case 499: + return "LIKE"; + case 500: + return "LIMIT"; + case 501: + return "LISTEN"; + case 502: + return "LOAD"; + case 503: + return "LOCAL"; + case 504: + return "LOCALTIME"; + case 505: + return "LOCALTIMESTAMP"; + case 506: + return "LOCATION"; + case 507: + return "LOCK_P"; + case 508: + return "LOCKED"; + case 509: + return "LOGGED"; + case 510: + return "MAPPING"; + case 511: + return "MATCH"; + case 512: + return "MATCHED"; + case 513: + return "MATERIALIZED"; + case 514: + return "MAXVALUE"; + case 515: + return "MERGE"; + case 516: + return "METHOD"; + case 517: + return "MINUTE_P"; + case 518: + return "MINVALUE"; + case 519: + return "MODE"; + case 520: + return "MONTH_P"; + case 521: + return "MOVE"; + case 522: + return "NAME_P"; + case 523: + return "NAMES"; + case 524: + return "NATIONAL"; + case 525: + return "NATURAL"; + case 526: + return "NCHAR"; + case 527: + return "NEW"; + case 528: + return "NEXT"; + case 529: + return "NFC"; + case 530: + return "NFD"; + case 531: + return "NFKC"; + case 532: + return "NFKD"; + case 533: + return "NO"; + case 534: + return "NONE"; + case 535: + return "NORMALIZE"; + case 536: + return "NORMALIZED"; + case 537: + return "NOT"; + case 538: + return "NOTHING"; + case 539: + return "NOTIFY"; + case 540: + return "NOTNULL"; + case 541: + return "NOWAIT"; + case 542: + return "NULL_P"; + case 543: + return "NULLIF"; + case 544: + return "NULLS_P"; + case 545: + return "NUMERIC"; + case 546: + return "OBJECT_P"; + case 547: + return "OF"; + case 548: + return "OFF"; + case 549: + return "OFFSET"; + case 550: + return "OIDS"; + case 551: + return "OLD"; + case 552: + return "ON"; + case 553: + return "ONLY"; + case 554: + return "OPERATOR"; + case 555: + return "OPTION"; + case 556: + return "OPTIONS"; + case 557: + return "OR"; + case 558: + return "ORDER"; + case 559: + return "ORDINALITY"; + case 560: + return "OTHERS"; + case 561: + return "OUT_P"; + case 562: + return "OUTER_P"; + case 563: + return "OVER"; + case 564: + return "OVERLAPS"; + case 565: + return "OVERLAY"; + case 566: + return "OVERRIDING"; + case 567: + return "OWNED"; + case 568: + return "OWNER"; + case 569: + return "PARALLEL"; + case 570: + return "PARAMETER"; + case 571: + return "PARSER"; + case 572: + return "PARTIAL"; + case 573: + return "PARTITION"; + case 574: + return "PASSING"; + case 575: + return "PASSWORD"; + case 576: + return "PLACING"; + case 577: + return "PLANS"; + case 578: + return "POLICY"; + case 579: + return "POSITION"; + case 580: + return "PRECEDING"; + case 581: + return "PRECISION"; + case 582: + return "PRESERVE"; + case 583: + return "PREPARE"; + case 584: + return "PREPARED"; + case 585: + return "PRIMARY"; + case 586: + return "PRIOR"; + case 587: + return "PRIVILEGES"; + case 588: + return "PROCEDURAL"; + case 589: + return "PROCEDURE"; + case 590: + return "PROCEDURES"; + case 591: + return "PROGRAM"; + case 592: + return "PUBLICATION"; + case 593: + return "QUOTE"; + case 594: + return "RANGE"; + case 595: + return "READ"; + case 596: + return "REAL"; + case 597: + return "REASSIGN"; + case 598: + return "RECHECK"; + case 599: + return "RECURSIVE"; + case 600: + return "REF_P"; + case 601: + return "REFERENCES"; + case 602: + return "REFERENCING"; + case 603: + return "REFRESH"; + case 604: + return "REINDEX"; + case 605: + return "RELATIVE_P"; + case 606: + return "RELEASE"; + case 607: + return "RENAME"; + case 608: + return "REPEATABLE"; + case 609: + return "REPLACE"; + case 610: + return "REPLICA"; + case 611: + return "RESET"; + case 612: + return "RESTART"; + case 613: + return "RESTRICT"; + case 614: + return "RETURN"; + case 615: + return "RETURNING"; + case 616: + return "RETURNS"; + case 617: + return "REVOKE"; + case 618: + return "RIGHT"; + case 619: + return "ROLE"; + case 620: + return "ROLLBACK"; + case 621: + return "ROLLUP"; + case 622: + return "ROUTINE"; + case 623: + return "ROUTINES"; + case 624: + return "ROW"; + case 625: + return "ROWS"; + case 626: + return "RULE"; + case 627: + return "SAVEPOINT"; + case 628: + return "SCALAR"; + case 629: + return "SCHEMA"; + case 630: + return "SCHEMAS"; + case 631: + return "SCROLL"; + case 632: + return "SEARCH"; + case 633: + return "SECOND_P"; + case 634: + return "SECURITY"; + case 635: + return "SELECT"; + case 636: + return "SEQUENCE"; + case 637: + return "SEQUENCES"; + case 638: + return "SERIALIZABLE"; + case 639: + return "SERVER"; + case 640: + return "SESSION"; + case 641: + return "SESSION_USER"; + case 642: + return "SET"; + case 643: + return "SETS"; + case 644: + return "SETOF"; + case 645: + return "SHARE"; + case 646: + return "SHOW"; + case 647: + return "SIMILAR"; + case 648: + return "SIMPLE"; + case 649: + return "SKIP"; + case 650: + return "SMALLINT"; + case 651: + return "SNAPSHOT"; + case 652: + return "SOME"; + case 653: + return "SQL_P"; + case 654: + return "STABLE"; + case 655: + return "STANDALONE_P"; + case 656: + return "START"; + case 657: + return "STATEMENT"; + case 658: + return "STATISTICS"; + case 659: + return "STDIN"; + case 660: + return "STDOUT"; + case 661: + return "STORAGE"; + case 662: + return "STORED"; + case 663: + return "STRICT_P"; + case 664: + return "STRIP_P"; + case 665: + return "SUBSCRIPTION"; + case 666: + return "SUBSTRING"; + case 667: + return "SUPPORT"; + case 668: + return "SYMMETRIC"; + case 669: + return "SYSID"; + case 670: + return "SYSTEM_P"; + case 671: + return "SYSTEM_USER"; + case 672: + return "TABLE"; + case 673: + return "TABLES"; + case 674: + return "TABLESAMPLE"; + case 675: + return "TABLESPACE"; + case 676: + return "TEMP"; + case 677: + return "TEMPLATE"; + case 678: + return "TEMPORARY"; + case 679: + return "TEXT_P"; + case 680: + return "THEN"; + case 681: + return "TIES"; + case 682: + return "TIME"; + case 683: + return "TIMESTAMP"; + case 684: + return "TO"; + case 685: + return "TRAILING"; + case 686: + return "TRANSACTION"; + case 687: + return "TRANSFORM"; + case 688: + return "TREAT"; + case 689: + return "TRIGGER"; + case 690: + return "TRIM"; + case 691: + return "TRUE_P"; + case 692: + return "TRUNCATE"; + case 693: + return "TRUSTED"; + case 694: + return "TYPE_P"; + case 695: + return "TYPES_P"; + case 696: + return "UESCAPE"; + case 697: + return "UNBOUNDED"; + case 698: + return "UNCOMMITTED"; + case 699: + return "UNENCRYPTED"; + case 700: + return "UNION"; + case 701: + return "UNIQUE"; + case 702: + return "UNKNOWN"; + case 703: + return "UNLISTEN"; + case 704: + return "UNLOGGED"; + case 705: + return "UNTIL"; + case 706: + return "UPDATE"; + case 707: + return "USER"; + case 708: + return "USING"; + case 709: + return "VACUUM"; + case 710: + return "VALID"; + case 711: + return "VALIDATE"; + case 712: + return "VALIDATOR"; + case 713: + return "VALUE_P"; + case 714: + return "VALUES"; + case 715: + return "VARCHAR"; + case 716: + return "VARIADIC"; + case 717: + return "VARYING"; + case 718: + return "VERBOSE"; + case 719: + return "VERSION_P"; + case 720: + return "VIEW"; + case 721: + return "VIEWS"; + case 722: + return "VOLATILE"; + case 723: + return "WHEN"; + case 724: + return "WHERE"; + case 725: + return "WHITESPACE_P"; + case 726: + return "WINDOW"; + case 727: + return "WITH"; + case 728: + return "WITHIN"; + case 729: + return "WITHOUT"; + case 730: + return "WORK"; + case 731: + return "WRAPPER"; + case 732: + return "WRITE"; + case 733: + return "XML_P"; + case 734: + return "XMLATTRIBUTES"; + case 735: + return "XMLCONCAT"; + case 736: + return "XMLELEMENT"; + case 737: + return "XMLEXISTS"; + case 738: + return "XMLFOREST"; + case 739: + return "XMLNAMESPACES"; + case 740: + return "XMLPARSE"; + case 741: + return "XMLPI"; + case 742: + return "XMLROOT"; + case 743: + return "XMLSERIALIZE"; + case 744: + return "XMLTABLE"; + case 745: + return "YEAR_P"; + case 746: + return "YES_P"; + case 747: + return "ZONE"; + case 748: + return "FORMAT_LA"; + case 749: + return "NOT_LA"; + case 750: + return "NULLS_LA"; + case 751: + return "WITH_LA"; + case 752: + return "WITHOUT_LA"; + case 753: + return "MODE_TYPE_NAME"; + case 754: + return "MODE_PLPGSQL_EXPR"; + case 755: + return "MODE_PLPGSQL_ASSIGN1"; + case 756: + return "MODE_PLPGSQL_ASSIGN2"; + case 757: + return "MODE_PLPGSQL_ASSIGN3"; + case 758: + return "UMINUS"; + default: + throw new Error("Key not recognized in enum Token"); + } + } + default: + throw new Error("Enum type not recognized"); + } +};", + "file": "enum-utils.ts", + }, +] +`; + +exports[`enum utils switch statements format generates only bidirectional when unidirectional is false 1`] = ` +[ + { + "code": "/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type EnumType = "OverridingKind" | "QuerySource" | "SortByDir" | "SortByNulls" | "SetQuantifier" | "A_Expr_Kind" | "RoleSpecType" | "TableLikeOption" | "DefElemAction" | "PartitionStrategy" | "PartitionRangeDatumKind" | "RTEKind" | "WCOKind" | "GroupingSetKind" | "CTEMaterialize" | "SetOperation" | "ObjectType" | "DropBehavior" | "AlterTableType" | "GrantTargetType" | "VariableSetKind" | "ConstrType" | "ImportForeignSchemaType" | "RoleStmtType" | "FetchDirection" | "FunctionParameterMode" | "TransactionStmtKind" | "ViewCheckOption" | "DiscardMode" | "ReindexObjectType" | "AlterTSConfigType" | "PublicationObjSpecType" | "AlterPublicationAction" | "AlterSubscriptionType" | "OnCommitAction" | "ParamKind" | "CoercionContext" | "CoercionForm" | "BoolExprType" | "SubLinkType" | "RowCompareType" | "MinMaxOp" | "SQLValueFunctionOp" | "XmlExprOp" | "XmlOptionType" | "JsonEncoding" | "JsonFormatType" | "JsonConstructorType" | "JsonValueType" | "NullTestType" | "BoolTestType" | "CmdType" | "JoinType" | "AggStrategy" | "AggSplit" | "SetOpCmd" | "SetOpStrategy" | "OnConflictAction" | "LimitOption" | "LockClauseStrength" | "LockWaitPolicy" | "LockTupleMode" | "KeywordKind" | "Token"; +export const getEnumValue = (enumType: EnumType, key: string | number) => { + switch (enumType) { + case "OverridingKind": + { + switch (key) { + case "OVERRIDING_NOT_SET": + return 0; + case "OVERRIDING_USER_VALUE": + return 1; + case "OVERRIDING_SYSTEM_VALUE": + return 2; + case 0: + return "OVERRIDING_NOT_SET"; + case 1: + return "OVERRIDING_USER_VALUE"; + case 2: + return "OVERRIDING_SYSTEM_VALUE"; + default: + throw new Error("Key not recognized in enum OverridingKind"); + } + } + case "QuerySource": + { + switch (key) { + case "QSRC_ORIGINAL": + return 0; + case "QSRC_PARSER": + return 1; + case "QSRC_INSTEAD_RULE": + return 2; + case "QSRC_QUAL_INSTEAD_RULE": + return 3; + case "QSRC_NON_INSTEAD_RULE": + return 4; + case 0: + return "QSRC_ORIGINAL"; + case 1: + return "QSRC_PARSER"; + case 2: + return "QSRC_INSTEAD_RULE"; + case 3: + return "QSRC_QUAL_INSTEAD_RULE"; + case 4: + return "QSRC_NON_INSTEAD_RULE"; + default: + throw new Error("Key not recognized in enum QuerySource"); + } + } + case "SortByDir": + { + switch (key) { + case "SORTBY_DEFAULT": + return 0; + case "SORTBY_ASC": + return 1; + case "SORTBY_DESC": + return 2; + case "SORTBY_USING": + return 3; + case 0: + return "SORTBY_DEFAULT"; + case 1: + return "SORTBY_ASC"; + case 2: + return "SORTBY_DESC"; + case 3: + return "SORTBY_USING"; + default: + throw new Error("Key not recognized in enum SortByDir"); + } + } + case "SortByNulls": + { + switch (key) { + case "SORTBY_NULLS_DEFAULT": + return 0; + case "SORTBY_NULLS_FIRST": + return 1; + case "SORTBY_NULLS_LAST": + return 2; + case 0: + return "SORTBY_NULLS_DEFAULT"; + case 1: + return "SORTBY_NULLS_FIRST"; + case 2: + return "SORTBY_NULLS_LAST"; + default: + throw new Error("Key not recognized in enum SortByNulls"); + } + } + case "SetQuantifier": + { + switch (key) { + case "SET_QUANTIFIER_DEFAULT": + return 0; + case "SET_QUANTIFIER_ALL": + return 1; + case "SET_QUANTIFIER_DISTINCT": + return 2; + case 0: + return "SET_QUANTIFIER_DEFAULT"; + case 1: + return "SET_QUANTIFIER_ALL"; + case 2: + return "SET_QUANTIFIER_DISTINCT"; + default: + throw new Error("Key not recognized in enum SetQuantifier"); + } + } + case "A_Expr_Kind": + { + switch (key) { + case "AEXPR_OP": + return 0; + case "AEXPR_OP_ANY": + return 1; + case "AEXPR_OP_ALL": + return 2; + case "AEXPR_DISTINCT": + return 3; + case "AEXPR_NOT_DISTINCT": + return 4; + case "AEXPR_NULLIF": + return 5; + case "AEXPR_IN": + return 6; + case "AEXPR_LIKE": + return 7; + case "AEXPR_ILIKE": + return 8; + case "AEXPR_SIMILAR": + return 9; + case "AEXPR_BETWEEN": + return 10; + case "AEXPR_NOT_BETWEEN": + return 11; + case "AEXPR_BETWEEN_SYM": + return 12; + case "AEXPR_NOT_BETWEEN_SYM": + return 13; + case 0: + return "AEXPR_OP"; + case 1: + return "AEXPR_OP_ANY"; + case 2: + return "AEXPR_OP_ALL"; + case 3: + return "AEXPR_DISTINCT"; + case 4: + return "AEXPR_NOT_DISTINCT"; + case 5: + return "AEXPR_NULLIF"; + case 6: + return "AEXPR_IN"; + case 7: + return "AEXPR_LIKE"; + case 8: + return "AEXPR_ILIKE"; + case 9: + return "AEXPR_SIMILAR"; + case 10: + return "AEXPR_BETWEEN"; + case 11: + return "AEXPR_NOT_BETWEEN"; + case 12: + return "AEXPR_BETWEEN_SYM"; + case 13: + return "AEXPR_NOT_BETWEEN_SYM"; + default: + throw new Error("Key not recognized in enum A_Expr_Kind"); + } + } + case "RoleSpecType": + { + switch (key) { + case "ROLESPEC_CSTRING": + return 0; + case "ROLESPEC_CURRENT_ROLE": + return 1; + case "ROLESPEC_CURRENT_USER": + return 2; + case "ROLESPEC_SESSION_USER": + return 3; + case "ROLESPEC_PUBLIC": + return 4; + case 0: + return "ROLESPEC_CSTRING"; + case 1: + return "ROLESPEC_CURRENT_ROLE"; + case 2: + return "ROLESPEC_CURRENT_USER"; + case 3: + return "ROLESPEC_SESSION_USER"; + case 4: + return "ROLESPEC_PUBLIC"; + default: + throw new Error("Key not recognized in enum RoleSpecType"); + } + } + case "TableLikeOption": + { + switch (key) { + case "CREATE_TABLE_LIKE_COMMENTS": + return 0; + case "CREATE_TABLE_LIKE_COMPRESSION": + return 1; + case "CREATE_TABLE_LIKE_CONSTRAINTS": + return 2; + case "CREATE_TABLE_LIKE_DEFAULTS": + return 3; + case "CREATE_TABLE_LIKE_GENERATED": + return 4; + case "CREATE_TABLE_LIKE_IDENTITY": + return 5; + case "CREATE_TABLE_LIKE_INDEXES": + return 6; + case "CREATE_TABLE_LIKE_STATISTICS": + return 7; + case "CREATE_TABLE_LIKE_STORAGE": + return 8; + case "CREATE_TABLE_LIKE_ALL": + return 9; + case 0: + return "CREATE_TABLE_LIKE_COMMENTS"; + case 1: + return "CREATE_TABLE_LIKE_COMPRESSION"; + case 2: + return "CREATE_TABLE_LIKE_CONSTRAINTS"; + case 3: + return "CREATE_TABLE_LIKE_DEFAULTS"; + case 4: + return "CREATE_TABLE_LIKE_GENERATED"; + case 5: + return "CREATE_TABLE_LIKE_IDENTITY"; + case 6: + return "CREATE_TABLE_LIKE_INDEXES"; + case 7: + return "CREATE_TABLE_LIKE_STATISTICS"; + case 8: + return "CREATE_TABLE_LIKE_STORAGE"; + case 9: + return "CREATE_TABLE_LIKE_ALL"; + default: + throw new Error("Key not recognized in enum TableLikeOption"); + } + } + case "DefElemAction": + { + switch (key) { + case "DEFELEM_UNSPEC": + return 0; + case "DEFELEM_SET": + return 1; + case "DEFELEM_ADD": + return 2; + case "DEFELEM_DROP": + return 3; + case 0: + return "DEFELEM_UNSPEC"; + case 1: + return "DEFELEM_SET"; + case 2: + return "DEFELEM_ADD"; + case 3: + return "DEFELEM_DROP"; + default: + throw new Error("Key not recognized in enum DefElemAction"); + } + } + case "PartitionStrategy": + { + switch (key) { + case "PARTITION_STRATEGY_LIST": + return 0; + case "PARTITION_STRATEGY_RANGE": + return 1; + case "PARTITION_STRATEGY_HASH": + return 2; + case 0: + return "PARTITION_STRATEGY_LIST"; + case 1: + return "PARTITION_STRATEGY_RANGE"; + case 2: + return "PARTITION_STRATEGY_HASH"; + default: + throw new Error("Key not recognized in enum PartitionStrategy"); + } + } + case "PartitionRangeDatumKind": + { + switch (key) { + case "PARTITION_RANGE_DATUM_MINVALUE": + return 0; + case "PARTITION_RANGE_DATUM_VALUE": + return 1; + case "PARTITION_RANGE_DATUM_MAXVALUE": + return 2; + case 0: + return "PARTITION_RANGE_DATUM_MINVALUE"; + case 1: + return "PARTITION_RANGE_DATUM_VALUE"; + case 2: + return "PARTITION_RANGE_DATUM_MAXVALUE"; + default: + throw new Error("Key not recognized in enum PartitionRangeDatumKind"); + } + } + case "RTEKind": + { + switch (key) { + case "RTE_RELATION": + return 0; + case "RTE_SUBQUERY": + return 1; + case "RTE_JOIN": + return 2; + case "RTE_FUNCTION": + return 3; + case "RTE_TABLEFUNC": + return 4; + case "RTE_VALUES": + return 5; + case "RTE_CTE": + return 6; + case "RTE_NAMEDTUPLESTORE": + return 7; + case "RTE_RESULT": + return 8; + case 0: + return "RTE_RELATION"; + case 1: + return "RTE_SUBQUERY"; + case 2: + return "RTE_JOIN"; + case 3: + return "RTE_FUNCTION"; + case 4: + return "RTE_TABLEFUNC"; + case 5: + return "RTE_VALUES"; + case 6: + return "RTE_CTE"; + case 7: + return "RTE_NAMEDTUPLESTORE"; + case 8: + return "RTE_RESULT"; + default: + throw new Error("Key not recognized in enum RTEKind"); + } + } + case "WCOKind": + { + switch (key) { + case "WCO_VIEW_CHECK": + return 0; + case "WCO_RLS_INSERT_CHECK": + return 1; + case "WCO_RLS_UPDATE_CHECK": + return 2; + case "WCO_RLS_CONFLICT_CHECK": + return 3; + case "WCO_RLS_MERGE_UPDATE_CHECK": + return 4; + case "WCO_RLS_MERGE_DELETE_CHECK": + return 5; + case 0: + return "WCO_VIEW_CHECK"; + case 1: + return "WCO_RLS_INSERT_CHECK"; + case 2: + return "WCO_RLS_UPDATE_CHECK"; + case 3: + return "WCO_RLS_CONFLICT_CHECK"; + case 4: + return "WCO_RLS_MERGE_UPDATE_CHECK"; + case 5: + return "WCO_RLS_MERGE_DELETE_CHECK"; + default: + throw new Error("Key not recognized in enum WCOKind"); + } + } + case "GroupingSetKind": + { + switch (key) { + case "GROUPING_SET_EMPTY": + return 0; + case "GROUPING_SET_SIMPLE": + return 1; + case "GROUPING_SET_ROLLUP": + return 2; + case "GROUPING_SET_CUBE": + return 3; + case "GROUPING_SET_SETS": + return 4; + case 0: + return "GROUPING_SET_EMPTY"; + case 1: + return "GROUPING_SET_SIMPLE"; + case 2: + return "GROUPING_SET_ROLLUP"; + case 3: + return "GROUPING_SET_CUBE"; + case 4: + return "GROUPING_SET_SETS"; + default: + throw new Error("Key not recognized in enum GroupingSetKind"); + } + } + case "CTEMaterialize": + { + switch (key) { + case "CTEMaterializeDefault": + return 0; + case "CTEMaterializeAlways": + return 1; + case "CTEMaterializeNever": + return 2; + case 0: + return "CTEMaterializeDefault"; + case 1: + return "CTEMaterializeAlways"; + case 2: + return "CTEMaterializeNever"; + default: + throw new Error("Key not recognized in enum CTEMaterialize"); + } + } + case "SetOperation": + { + switch (key) { + case "SETOP_NONE": + return 0; + case "SETOP_UNION": + return 1; + case "SETOP_INTERSECT": + return 2; + case "SETOP_EXCEPT": + return 3; + case 0: + return "SETOP_NONE"; + case 1: + return "SETOP_UNION"; + case 2: + return "SETOP_INTERSECT"; + case 3: + return "SETOP_EXCEPT"; + default: + throw new Error("Key not recognized in enum SetOperation"); + } + } + case "ObjectType": + { + switch (key) { + case "OBJECT_ACCESS_METHOD": + return 0; + case "OBJECT_AGGREGATE": + return 1; + case "OBJECT_AMOP": + return 2; + case "OBJECT_AMPROC": + return 3; + case "OBJECT_ATTRIBUTE": + return 4; + case "OBJECT_CAST": + return 5; + case "OBJECT_COLUMN": + return 6; + case "OBJECT_COLLATION": + return 7; + case "OBJECT_CONVERSION": + return 8; + case "OBJECT_DATABASE": + return 9; + case "OBJECT_DEFAULT": + return 10; + case "OBJECT_DEFACL": + return 11; + case "OBJECT_DOMAIN": + return 12; + case "OBJECT_DOMCONSTRAINT": + return 13; + case "OBJECT_EVENT_TRIGGER": + return 14; + case "OBJECT_EXTENSION": + return 15; + case "OBJECT_FDW": + return 16; + case "OBJECT_FOREIGN_SERVER": + return 17; + case "OBJECT_FOREIGN_TABLE": + return 18; + case "OBJECT_FUNCTION": + return 19; + case "OBJECT_INDEX": + return 20; + case "OBJECT_LANGUAGE": + return 21; + case "OBJECT_LARGEOBJECT": + return 22; + case "OBJECT_MATVIEW": + return 23; + case "OBJECT_OPCLASS": + return 24; + case "OBJECT_OPERATOR": + return 25; + case "OBJECT_OPFAMILY": + return 26; + case "OBJECT_PARAMETER_ACL": + return 27; + case "OBJECT_POLICY": + return 28; + case "OBJECT_PROCEDURE": + return 29; + case "OBJECT_PUBLICATION": + return 30; + case "OBJECT_PUBLICATION_NAMESPACE": + return 31; + case "OBJECT_PUBLICATION_REL": + return 32; + case "OBJECT_ROLE": + return 33; + case "OBJECT_ROUTINE": + return 34; + case "OBJECT_RULE": + return 35; + case "OBJECT_SCHEMA": + return 36; + case "OBJECT_SEQUENCE": + return 37; + case "OBJECT_SUBSCRIPTION": + return 38; + case "OBJECT_STATISTIC_EXT": + return 39; + case "OBJECT_TABCONSTRAINT": + return 40; + case "OBJECT_TABLE": + return 41; + case "OBJECT_TABLESPACE": + return 42; + case "OBJECT_TRANSFORM": + return 43; + case "OBJECT_TRIGGER": + return 44; + case "OBJECT_TSCONFIGURATION": + return 45; + case "OBJECT_TSDICTIONARY": + return 46; + case "OBJECT_TSPARSER": + return 47; + case "OBJECT_TSTEMPLATE": + return 48; + case "OBJECT_TYPE": + return 49; + case "OBJECT_USER_MAPPING": + return 50; + case "OBJECT_VIEW": + return 51; + case 0: + return "OBJECT_ACCESS_METHOD"; + case 1: + return "OBJECT_AGGREGATE"; + case 2: + return "OBJECT_AMOP"; + case 3: + return "OBJECT_AMPROC"; + case 4: + return "OBJECT_ATTRIBUTE"; + case 5: + return "OBJECT_CAST"; + case 6: + return "OBJECT_COLUMN"; + case 7: + return "OBJECT_COLLATION"; + case 8: + return "OBJECT_CONVERSION"; + case 9: + return "OBJECT_DATABASE"; + case 10: + return "OBJECT_DEFAULT"; + case 11: + return "OBJECT_DEFACL"; + case 12: + return "OBJECT_DOMAIN"; + case 13: + return "OBJECT_DOMCONSTRAINT"; + case 14: + return "OBJECT_EVENT_TRIGGER"; + case 15: + return "OBJECT_EXTENSION"; + case 16: + return "OBJECT_FDW"; + case 17: + return "OBJECT_FOREIGN_SERVER"; + case 18: + return "OBJECT_FOREIGN_TABLE"; + case 19: + return "OBJECT_FUNCTION"; + case 20: + return "OBJECT_INDEX"; + case 21: + return "OBJECT_LANGUAGE"; + case 22: + return "OBJECT_LARGEOBJECT"; + case 23: + return "OBJECT_MATVIEW"; + case 24: + return "OBJECT_OPCLASS"; + case 25: + return "OBJECT_OPERATOR"; + case 26: + return "OBJECT_OPFAMILY"; + case 27: + return "OBJECT_PARAMETER_ACL"; + case 28: + return "OBJECT_POLICY"; + case 29: + return "OBJECT_PROCEDURE"; + case 30: + return "OBJECT_PUBLICATION"; + case 31: + return "OBJECT_PUBLICATION_NAMESPACE"; + case 32: + return "OBJECT_PUBLICATION_REL"; + case 33: + return "OBJECT_ROLE"; + case 34: + return "OBJECT_ROUTINE"; + case 35: + return "OBJECT_RULE"; + case 36: + return "OBJECT_SCHEMA"; + case 37: + return "OBJECT_SEQUENCE"; + case 38: + return "OBJECT_SUBSCRIPTION"; + case 39: + return "OBJECT_STATISTIC_EXT"; + case 40: + return "OBJECT_TABCONSTRAINT"; + case 41: + return "OBJECT_TABLE"; + case 42: + return "OBJECT_TABLESPACE"; + case 43: + return "OBJECT_TRANSFORM"; + case 44: + return "OBJECT_TRIGGER"; + case 45: + return "OBJECT_TSCONFIGURATION"; + case 46: + return "OBJECT_TSDICTIONARY"; + case 47: + return "OBJECT_TSPARSER"; + case 48: + return "OBJECT_TSTEMPLATE"; + case 49: + return "OBJECT_TYPE"; + case 50: + return "OBJECT_USER_MAPPING"; + case 51: + return "OBJECT_VIEW"; + default: + throw new Error("Key not recognized in enum ObjectType"); + } + } + case "DropBehavior": + { + switch (key) { + case "DROP_RESTRICT": + return 0; + case "DROP_CASCADE": + return 1; + case 0: + return "DROP_RESTRICT"; + case 1: + return "DROP_CASCADE"; + default: + throw new Error("Key not recognized in enum DropBehavior"); + } + } + case "AlterTableType": + { + switch (key) { + case "AT_AddColumn": + return 0; + case "AT_AddColumnToView": + return 1; + case "AT_ColumnDefault": + return 2; + case "AT_CookedColumnDefault": + return 3; + case "AT_DropNotNull": + return 4; + case "AT_SetNotNull": + return 5; + case "AT_DropExpression": + return 6; + case "AT_CheckNotNull": + return 7; + case "AT_SetStatistics": + return 8; + case "AT_SetOptions": + return 9; + case "AT_ResetOptions": + return 10; + case "AT_SetStorage": + return 11; + case "AT_SetCompression": + return 12; + case "AT_DropColumn": + return 13; + case "AT_AddIndex": + return 14; + case "AT_ReAddIndex": + return 15; + case "AT_AddConstraint": + return 16; + case "AT_ReAddConstraint": + return 17; + case "AT_ReAddDomainConstraint": + return 18; + case "AT_AlterConstraint": + return 19; + case "AT_ValidateConstraint": + return 20; + case "AT_AddIndexConstraint": + return 21; + case "AT_DropConstraint": + return 22; + case "AT_ReAddComment": + return 23; + case "AT_AlterColumnType": + return 24; + case "AT_AlterColumnGenericOptions": + return 25; + case "AT_ChangeOwner": + return 26; + case "AT_ClusterOn": + return 27; + case "AT_DropCluster": + return 28; + case "AT_SetLogged": + return 29; + case "AT_SetUnLogged": + return 30; + case "AT_DropOids": + return 31; + case "AT_SetAccessMethod": + return 32; + case "AT_SetTableSpace": + return 33; + case "AT_SetRelOptions": + return 34; + case "AT_ResetRelOptions": + return 35; + case "AT_ReplaceRelOptions": + return 36; + case "AT_EnableTrig": + return 37; + case "AT_EnableAlwaysTrig": + return 38; + case "AT_EnableReplicaTrig": + return 39; + case "AT_DisableTrig": + return 40; + case "AT_EnableTrigAll": + return 41; + case "AT_DisableTrigAll": + return 42; + case "AT_EnableTrigUser": + return 43; + case "AT_DisableTrigUser": + return 44; + case "AT_EnableRule": + return 45; + case "AT_EnableAlwaysRule": + return 46; + case "AT_EnableReplicaRule": + return 47; + case "AT_DisableRule": + return 48; + case "AT_AddInherit": + return 49; + case "AT_DropInherit": + return 50; + case "AT_AddOf": + return 51; + case "AT_DropOf": + return 52; + case "AT_ReplicaIdentity": + return 53; + case "AT_EnableRowSecurity": + return 54; + case "AT_DisableRowSecurity": + return 55; + case "AT_ForceRowSecurity": + return 56; + case "AT_NoForceRowSecurity": + return 57; + case "AT_GenericOptions": + return 58; + case "AT_AttachPartition": + return 59; + case "AT_DetachPartition": + return 60; + case "AT_DetachPartitionFinalize": + return 61; + case "AT_AddIdentity": + return 62; + case "AT_SetIdentity": + return 63; + case "AT_DropIdentity": + return 64; + case "AT_ReAddStatistics": + return 65; + case 0: + return "AT_AddColumn"; + case 1: + return "AT_AddColumnToView"; + case 2: + return "AT_ColumnDefault"; + case 3: + return "AT_CookedColumnDefault"; + case 4: + return "AT_DropNotNull"; + case 5: + return "AT_SetNotNull"; + case 6: + return "AT_DropExpression"; + case 7: + return "AT_CheckNotNull"; + case 8: + return "AT_SetStatistics"; + case 9: + return "AT_SetOptions"; + case 10: + return "AT_ResetOptions"; + case 11: + return "AT_SetStorage"; + case 12: + return "AT_SetCompression"; + case 13: + return "AT_DropColumn"; + case 14: + return "AT_AddIndex"; + case 15: + return "AT_ReAddIndex"; + case 16: + return "AT_AddConstraint"; + case 17: + return "AT_ReAddConstraint"; + case 18: + return "AT_ReAddDomainConstraint"; + case 19: + return "AT_AlterConstraint"; + case 20: + return "AT_ValidateConstraint"; + case 21: + return "AT_AddIndexConstraint"; + case 22: + return "AT_DropConstraint"; + case 23: + return "AT_ReAddComment"; + case 24: + return "AT_AlterColumnType"; + case 25: + return "AT_AlterColumnGenericOptions"; + case 26: + return "AT_ChangeOwner"; + case 27: + return "AT_ClusterOn"; + case 28: + return "AT_DropCluster"; + case 29: + return "AT_SetLogged"; + case 30: + return "AT_SetUnLogged"; + case 31: + return "AT_DropOids"; + case 32: + return "AT_SetAccessMethod"; + case 33: + return "AT_SetTableSpace"; + case 34: + return "AT_SetRelOptions"; + case 35: + return "AT_ResetRelOptions"; + case 36: + return "AT_ReplaceRelOptions"; + case 37: + return "AT_EnableTrig"; + case 38: + return "AT_EnableAlwaysTrig"; + case 39: + return "AT_EnableReplicaTrig"; + case 40: + return "AT_DisableTrig"; + case 41: + return "AT_EnableTrigAll"; + case 42: + return "AT_DisableTrigAll"; + case 43: + return "AT_EnableTrigUser"; + case 44: + return "AT_DisableTrigUser"; + case 45: + return "AT_EnableRule"; + case 46: + return "AT_EnableAlwaysRule"; + case 47: + return "AT_EnableReplicaRule"; + case 48: + return "AT_DisableRule"; + case 49: + return "AT_AddInherit"; + case 50: + return "AT_DropInherit"; + case 51: + return "AT_AddOf"; + case 52: + return "AT_DropOf"; + case 53: + return "AT_ReplicaIdentity"; + case 54: + return "AT_EnableRowSecurity"; + case 55: + return "AT_DisableRowSecurity"; + case 56: + return "AT_ForceRowSecurity"; + case 57: + return "AT_NoForceRowSecurity"; + case 58: + return "AT_GenericOptions"; + case 59: + return "AT_AttachPartition"; + case 60: + return "AT_DetachPartition"; + case 61: + return "AT_DetachPartitionFinalize"; + case 62: + return "AT_AddIdentity"; + case 63: + return "AT_SetIdentity"; + case 64: + return "AT_DropIdentity"; + case 65: + return "AT_ReAddStatistics"; + default: + throw new Error("Key not recognized in enum AlterTableType"); + } + } + case "GrantTargetType": + { + switch (key) { + case "ACL_TARGET_OBJECT": + return 0; + case "ACL_TARGET_ALL_IN_SCHEMA": + return 1; + case "ACL_TARGET_DEFAULTS": + return 2; + case 0: + return "ACL_TARGET_OBJECT"; + case 1: + return "ACL_TARGET_ALL_IN_SCHEMA"; + case 2: + return "ACL_TARGET_DEFAULTS"; + default: + throw new Error("Key not recognized in enum GrantTargetType"); + } + } + case "VariableSetKind": + { + switch (key) { + case "VAR_SET_VALUE": + return 0; + case "VAR_SET_DEFAULT": + return 1; + case "VAR_SET_CURRENT": + return 2; + case "VAR_SET_MULTI": + return 3; + case "VAR_RESET": + return 4; + case "VAR_RESET_ALL": + return 5; + case 0: + return "VAR_SET_VALUE"; + case 1: + return "VAR_SET_DEFAULT"; + case 2: + return "VAR_SET_CURRENT"; + case 3: + return "VAR_SET_MULTI"; + case 4: + return "VAR_RESET"; + case 5: + return "VAR_RESET_ALL"; + default: + throw new Error("Key not recognized in enum VariableSetKind"); + } + } + case "ConstrType": + { + switch (key) { + case "CONSTR_NULL": + return 0; + case "CONSTR_NOTNULL": + return 1; + case "CONSTR_DEFAULT": + return 2; + case "CONSTR_IDENTITY": + return 3; + case "CONSTR_GENERATED": + return 4; + case "CONSTR_CHECK": + return 5; + case "CONSTR_PRIMARY": + return 6; + case "CONSTR_UNIQUE": + return 7; + case "CONSTR_EXCLUSION": + return 8; + case "CONSTR_FOREIGN": + return 9; + case "CONSTR_ATTR_DEFERRABLE": + return 10; + case "CONSTR_ATTR_NOT_DEFERRABLE": + return 11; + case "CONSTR_ATTR_DEFERRED": + return 12; + case "CONSTR_ATTR_IMMEDIATE": + return 13; + case 0: + return "CONSTR_NULL"; + case 1: + return "CONSTR_NOTNULL"; + case 2: + return "CONSTR_DEFAULT"; + case 3: + return "CONSTR_IDENTITY"; + case 4: + return "CONSTR_GENERATED"; + case 5: + return "CONSTR_CHECK"; + case 6: + return "CONSTR_PRIMARY"; + case 7: + return "CONSTR_UNIQUE"; + case 8: + return "CONSTR_EXCLUSION"; + case 9: + return "CONSTR_FOREIGN"; + case 10: + return "CONSTR_ATTR_DEFERRABLE"; + case 11: + return "CONSTR_ATTR_NOT_DEFERRABLE"; + case 12: + return "CONSTR_ATTR_DEFERRED"; + case 13: + return "CONSTR_ATTR_IMMEDIATE"; + default: + throw new Error("Key not recognized in enum ConstrType"); + } + } + case "ImportForeignSchemaType": + { + switch (key) { + case "FDW_IMPORT_SCHEMA_ALL": + return 0; + case "FDW_IMPORT_SCHEMA_LIMIT_TO": + return 1; + case "FDW_IMPORT_SCHEMA_EXCEPT": + return 2; + case 0: + return "FDW_IMPORT_SCHEMA_ALL"; + case 1: + return "FDW_IMPORT_SCHEMA_LIMIT_TO"; + case 2: + return "FDW_IMPORT_SCHEMA_EXCEPT"; + default: + throw new Error("Key not recognized in enum ImportForeignSchemaType"); + } + } + case "RoleStmtType": + { + switch (key) { + case "ROLESTMT_ROLE": + return 0; + case "ROLESTMT_USER": + return 1; + case "ROLESTMT_GROUP": + return 2; + case 0: + return "ROLESTMT_ROLE"; + case 1: + return "ROLESTMT_USER"; + case 2: + return "ROLESTMT_GROUP"; + default: + throw new Error("Key not recognized in enum RoleStmtType"); + } + } + case "FetchDirection": + { + switch (key) { + case "FETCH_FORWARD": + return 0; + case "FETCH_BACKWARD": + return 1; + case "FETCH_ABSOLUTE": + return 2; + case "FETCH_RELATIVE": + return 3; + case 0: + return "FETCH_FORWARD"; + case 1: + return "FETCH_BACKWARD"; + case 2: + return "FETCH_ABSOLUTE"; + case 3: + return "FETCH_RELATIVE"; + default: + throw new Error("Key not recognized in enum FetchDirection"); + } + } + case "FunctionParameterMode": + { + switch (key) { + case "FUNC_PARAM_IN": + return 0; + case "FUNC_PARAM_OUT": + return 1; + case "FUNC_PARAM_INOUT": + return 2; + case "FUNC_PARAM_VARIADIC": + return 3; + case "FUNC_PARAM_TABLE": + return 4; + case "FUNC_PARAM_DEFAULT": + return 5; + case 0: + return "FUNC_PARAM_IN"; + case 1: + return "FUNC_PARAM_OUT"; + case 2: + return "FUNC_PARAM_INOUT"; + case 3: + return "FUNC_PARAM_VARIADIC"; + case 4: + return "FUNC_PARAM_TABLE"; + case 5: + return "FUNC_PARAM_DEFAULT"; + default: + throw new Error("Key not recognized in enum FunctionParameterMode"); + } + } + case "TransactionStmtKind": + { + switch (key) { + case "TRANS_STMT_BEGIN": + return 0; + case "TRANS_STMT_START": + return 1; + case "TRANS_STMT_COMMIT": + return 2; + case "TRANS_STMT_ROLLBACK": + return 3; + case "TRANS_STMT_SAVEPOINT": + return 4; + case "TRANS_STMT_RELEASE": + return 5; + case "TRANS_STMT_ROLLBACK_TO": + return 6; + case "TRANS_STMT_PREPARE": + return 7; + case "TRANS_STMT_COMMIT_PREPARED": + return 8; + case "TRANS_STMT_ROLLBACK_PREPARED": + return 9; + case 0: + return "TRANS_STMT_BEGIN"; + case 1: + return "TRANS_STMT_START"; + case 2: + return "TRANS_STMT_COMMIT"; + case 3: + return "TRANS_STMT_ROLLBACK"; + case 4: + return "TRANS_STMT_SAVEPOINT"; + case 5: + return "TRANS_STMT_RELEASE"; + case 6: + return "TRANS_STMT_ROLLBACK_TO"; + case 7: + return "TRANS_STMT_PREPARE"; + case 8: + return "TRANS_STMT_COMMIT_PREPARED"; + case 9: + return "TRANS_STMT_ROLLBACK_PREPARED"; + default: + throw new Error("Key not recognized in enum TransactionStmtKind"); + } + } + case "ViewCheckOption": + { + switch (key) { + case "NO_CHECK_OPTION": + return 0; + case "LOCAL_CHECK_OPTION": + return 1; + case "CASCADED_CHECK_OPTION": + return 2; + case 0: + return "NO_CHECK_OPTION"; + case 1: + return "LOCAL_CHECK_OPTION"; + case 2: + return "CASCADED_CHECK_OPTION"; + default: + throw new Error("Key not recognized in enum ViewCheckOption"); + } + } + case "DiscardMode": + { + switch (key) { + case "DISCARD_ALL": + return 0; + case "DISCARD_PLANS": + return 1; + case "DISCARD_SEQUENCES": + return 2; + case "DISCARD_TEMP": + return 3; + case 0: + return "DISCARD_ALL"; + case 1: + return "DISCARD_PLANS"; + case 2: + return "DISCARD_SEQUENCES"; + case 3: + return "DISCARD_TEMP"; + default: + throw new Error("Key not recognized in enum DiscardMode"); + } + } + case "ReindexObjectType": + { + switch (key) { + case "REINDEX_OBJECT_INDEX": + return 0; + case "REINDEX_OBJECT_TABLE": + return 1; + case "REINDEX_OBJECT_SCHEMA": + return 2; + case "REINDEX_OBJECT_SYSTEM": + return 3; + case "REINDEX_OBJECT_DATABASE": + return 4; + case 0: + return "REINDEX_OBJECT_INDEX"; + case 1: + return "REINDEX_OBJECT_TABLE"; + case 2: + return "REINDEX_OBJECT_SCHEMA"; + case 3: + return "REINDEX_OBJECT_SYSTEM"; + case 4: + return "REINDEX_OBJECT_DATABASE"; + default: + throw new Error("Key not recognized in enum ReindexObjectType"); + } + } + case "AlterTSConfigType": + { + switch (key) { + case "ALTER_TSCONFIG_ADD_MAPPING": + return 0; + case "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN": + return 1; + case "ALTER_TSCONFIG_REPLACE_DICT": + return 2; + case "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN": + return 3; + case "ALTER_TSCONFIG_DROP_MAPPING": + return 4; + case 0: + return "ALTER_TSCONFIG_ADD_MAPPING"; + case 1: + return "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN"; + case 2: + return "ALTER_TSCONFIG_REPLACE_DICT"; + case 3: + return "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN"; + case 4: + return "ALTER_TSCONFIG_DROP_MAPPING"; + default: + throw new Error("Key not recognized in enum AlterTSConfigType"); + } + } + case "PublicationObjSpecType": + { + switch (key) { + case "PUBLICATIONOBJ_TABLE": + return 0; + case "PUBLICATIONOBJ_TABLES_IN_SCHEMA": + return 1; + case "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA": + return 2; + case "PUBLICATIONOBJ_CONTINUATION": + return 3; + case 0: + return "PUBLICATIONOBJ_TABLE"; + case 1: + return "PUBLICATIONOBJ_TABLES_IN_SCHEMA"; + case 2: + return "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA"; + case 3: + return "PUBLICATIONOBJ_CONTINUATION"; + default: + throw new Error("Key not recognized in enum PublicationObjSpecType"); + } + } + case "AlterPublicationAction": + { + switch (key) { + case "AP_AddObjects": + return 0; + case "AP_DropObjects": + return 1; + case "AP_SetObjects": + return 2; + case 0: + return "AP_AddObjects"; + case 1: + return "AP_DropObjects"; + case 2: + return "AP_SetObjects"; + default: + throw new Error("Key not recognized in enum AlterPublicationAction"); + } + } + case "AlterSubscriptionType": + { + switch (key) { + case "ALTER_SUBSCRIPTION_OPTIONS": + return 0; + case "ALTER_SUBSCRIPTION_CONNECTION": + return 1; + case "ALTER_SUBSCRIPTION_SET_PUBLICATION": + return 2; + case "ALTER_SUBSCRIPTION_ADD_PUBLICATION": + return 3; + case "ALTER_SUBSCRIPTION_DROP_PUBLICATION": + return 4; + case "ALTER_SUBSCRIPTION_REFRESH": + return 5; + case "ALTER_SUBSCRIPTION_ENABLED": + return 6; + case "ALTER_SUBSCRIPTION_SKIP": + return 7; + case 0: + return "ALTER_SUBSCRIPTION_OPTIONS"; + case 1: + return "ALTER_SUBSCRIPTION_CONNECTION"; + case 2: + return "ALTER_SUBSCRIPTION_SET_PUBLICATION"; + case 3: + return "ALTER_SUBSCRIPTION_ADD_PUBLICATION"; + case 4: + return "ALTER_SUBSCRIPTION_DROP_PUBLICATION"; + case 5: + return "ALTER_SUBSCRIPTION_REFRESH"; + case 6: + return "ALTER_SUBSCRIPTION_ENABLED"; + case 7: + return "ALTER_SUBSCRIPTION_SKIP"; + default: + throw new Error("Key not recognized in enum AlterSubscriptionType"); + } + } + case "OnCommitAction": + { + switch (key) { + case "ONCOMMIT_NOOP": + return 0; + case "ONCOMMIT_PRESERVE_ROWS": + return 1; + case "ONCOMMIT_DELETE_ROWS": + return 2; + case "ONCOMMIT_DROP": + return 3; + case 0: + return "ONCOMMIT_NOOP"; + case 1: + return "ONCOMMIT_PRESERVE_ROWS"; + case 2: + return "ONCOMMIT_DELETE_ROWS"; + case 3: + return "ONCOMMIT_DROP"; + default: + throw new Error("Key not recognized in enum OnCommitAction"); + } + } + case "ParamKind": + { + switch (key) { + case "PARAM_EXTERN": + return 0; + case "PARAM_EXEC": + return 1; + case "PARAM_SUBLINK": + return 2; + case "PARAM_MULTIEXPR": + return 3; + case 0: + return "PARAM_EXTERN"; + case 1: + return "PARAM_EXEC"; + case 2: + return "PARAM_SUBLINK"; + case 3: + return "PARAM_MULTIEXPR"; + default: + throw new Error("Key not recognized in enum ParamKind"); + } + } + case "CoercionContext": + { + switch (key) { + case "COERCION_IMPLICIT": + return 0; + case "COERCION_ASSIGNMENT": + return 1; + case "COERCION_PLPGSQL": + return 2; + case "COERCION_EXPLICIT": + return 3; + case 0: + return "COERCION_IMPLICIT"; + case 1: + return "COERCION_ASSIGNMENT"; + case 2: + return "COERCION_PLPGSQL"; + case 3: + return "COERCION_EXPLICIT"; + default: + throw new Error("Key not recognized in enum CoercionContext"); + } + } + case "CoercionForm": + { + switch (key) { + case "COERCE_EXPLICIT_CALL": + return 0; + case "COERCE_EXPLICIT_CAST": + return 1; + case "COERCE_IMPLICIT_CAST": + return 2; + case "COERCE_SQL_SYNTAX": + return 3; + case 0: + return "COERCE_EXPLICIT_CALL"; + case 1: + return "COERCE_EXPLICIT_CAST"; + case 2: + return "COERCE_IMPLICIT_CAST"; + case 3: + return "COERCE_SQL_SYNTAX"; + default: + throw new Error("Key not recognized in enum CoercionForm"); + } + } + case "BoolExprType": + { + switch (key) { + case "AND_EXPR": + return 0; + case "OR_EXPR": + return 1; + case "NOT_EXPR": + return 2; + case 0: + return "AND_EXPR"; + case 1: + return "OR_EXPR"; + case 2: + return "NOT_EXPR"; + default: + throw new Error("Key not recognized in enum BoolExprType"); + } + } + case "SubLinkType": + { + switch (key) { + case "EXISTS_SUBLINK": + return 0; + case "ALL_SUBLINK": + return 1; + case "ANY_SUBLINK": + return 2; + case "ROWCOMPARE_SUBLINK": + return 3; + case "EXPR_SUBLINK": + return 4; + case "MULTIEXPR_SUBLINK": + return 5; + case "ARRAY_SUBLINK": + return 6; + case "CTE_SUBLINK": + return 7; + case 0: + return "EXISTS_SUBLINK"; + case 1: + return "ALL_SUBLINK"; + case 2: + return "ANY_SUBLINK"; + case 3: + return "ROWCOMPARE_SUBLINK"; + case 4: + return "EXPR_SUBLINK"; + case 5: + return "MULTIEXPR_SUBLINK"; + case 6: + return "ARRAY_SUBLINK"; + case 7: + return "CTE_SUBLINK"; + default: + throw new Error("Key not recognized in enum SubLinkType"); + } + } + case "RowCompareType": + { + switch (key) { + case "ROWCOMPARE_LT": + return 0; + case "ROWCOMPARE_LE": + return 1; + case "ROWCOMPARE_EQ": + return 2; + case "ROWCOMPARE_GE": + return 3; + case "ROWCOMPARE_GT": + return 4; + case "ROWCOMPARE_NE": + return 5; + case 0: + return "ROWCOMPARE_LT"; + case 1: + return "ROWCOMPARE_LE"; + case 2: + return "ROWCOMPARE_EQ"; + case 3: + return "ROWCOMPARE_GE"; + case 4: + return "ROWCOMPARE_GT"; + case 5: + return "ROWCOMPARE_NE"; + default: + throw new Error("Key not recognized in enum RowCompareType"); + } + } + case "MinMaxOp": + { + switch (key) { + case "IS_GREATEST": + return 0; + case "IS_LEAST": + return 1; + case 0: + return "IS_GREATEST"; + case 1: + return "IS_LEAST"; + default: + throw new Error("Key not recognized in enum MinMaxOp"); + } + } + case "SQLValueFunctionOp": + { + switch (key) { + case "SVFOP_CURRENT_DATE": + return 0; + case "SVFOP_CURRENT_TIME": + return 1; + case "SVFOP_CURRENT_TIME_N": + return 2; + case "SVFOP_CURRENT_TIMESTAMP": + return 3; + case "SVFOP_CURRENT_TIMESTAMP_N": + return 4; + case "SVFOP_LOCALTIME": + return 5; + case "SVFOP_LOCALTIME_N": + return 6; + case "SVFOP_LOCALTIMESTAMP": + return 7; + case "SVFOP_LOCALTIMESTAMP_N": + return 8; + case "SVFOP_CURRENT_ROLE": + return 9; + case "SVFOP_CURRENT_USER": + return 10; + case "SVFOP_USER": + return 11; + case "SVFOP_SESSION_USER": + return 12; + case "SVFOP_CURRENT_CATALOG": + return 13; + case "SVFOP_CURRENT_SCHEMA": + return 14; + case 0: + return "SVFOP_CURRENT_DATE"; + case 1: + return "SVFOP_CURRENT_TIME"; + case 2: + return "SVFOP_CURRENT_TIME_N"; + case 3: + return "SVFOP_CURRENT_TIMESTAMP"; + case 4: + return "SVFOP_CURRENT_TIMESTAMP_N"; + case 5: + return "SVFOP_LOCALTIME"; + case 6: + return "SVFOP_LOCALTIME_N"; + case 7: + return "SVFOP_LOCALTIMESTAMP"; + case 8: + return "SVFOP_LOCALTIMESTAMP_N"; + case 9: + return "SVFOP_CURRENT_ROLE"; + case 10: + return "SVFOP_CURRENT_USER"; + case 11: + return "SVFOP_USER"; + case 12: + return "SVFOP_SESSION_USER"; + case 13: + return "SVFOP_CURRENT_CATALOG"; + case 14: + return "SVFOP_CURRENT_SCHEMA"; + default: + throw new Error("Key not recognized in enum SQLValueFunctionOp"); + } + } + case "XmlExprOp": + { + switch (key) { + case "IS_XMLCONCAT": + return 0; + case "IS_XMLELEMENT": + return 1; + case "IS_XMLFOREST": + return 2; + case "IS_XMLPARSE": + return 3; + case "IS_XMLPI": + return 4; + case "IS_XMLROOT": + return 5; + case "IS_XMLSERIALIZE": + return 6; + case "IS_DOCUMENT": + return 7; + case 0: + return "IS_XMLCONCAT"; + case 1: + return "IS_XMLELEMENT"; + case 2: + return "IS_XMLFOREST"; + case 3: + return "IS_XMLPARSE"; + case 4: + return "IS_XMLPI"; + case 5: + return "IS_XMLROOT"; + case 6: + return "IS_XMLSERIALIZE"; + case 7: + return "IS_DOCUMENT"; + default: + throw new Error("Key not recognized in enum XmlExprOp"); + } + } + case "XmlOptionType": + { + switch (key) { + case "XMLOPTION_DOCUMENT": + return 0; + case "XMLOPTION_CONTENT": + return 1; + case 0: + return "XMLOPTION_DOCUMENT"; + case 1: + return "XMLOPTION_CONTENT"; + default: + throw new Error("Key not recognized in enum XmlOptionType"); + } + } + case "JsonEncoding": + { + switch (key) { + case "JS_ENC_DEFAULT": + return 0; + case "JS_ENC_UTF8": + return 1; + case "JS_ENC_UTF16": + return 2; + case "JS_ENC_UTF32": + return 3; + case 0: + return "JS_ENC_DEFAULT"; + case 1: + return "JS_ENC_UTF8"; + case 2: + return "JS_ENC_UTF16"; + case 3: + return "JS_ENC_UTF32"; + default: + throw new Error("Key not recognized in enum JsonEncoding"); + } + } + case "JsonFormatType": + { + switch (key) { + case "JS_FORMAT_DEFAULT": + return 0; + case "JS_FORMAT_JSON": + return 1; + case "JS_FORMAT_JSONB": + return 2; + case 0: + return "JS_FORMAT_DEFAULT"; + case 1: + return "JS_FORMAT_JSON"; + case 2: + return "JS_FORMAT_JSONB"; + default: + throw new Error("Key not recognized in enum JsonFormatType"); + } + } + case "JsonConstructorType": + { + switch (key) { + case "JSCTOR_JSON_OBJECT": + return 0; + case "JSCTOR_JSON_ARRAY": + return 1; + case "JSCTOR_JSON_OBJECTAGG": + return 2; + case "JSCTOR_JSON_ARRAYAGG": + return 3; + case 0: + return "JSCTOR_JSON_OBJECT"; + case 1: + return "JSCTOR_JSON_ARRAY"; + case 2: + return "JSCTOR_JSON_OBJECTAGG"; + case 3: + return "JSCTOR_JSON_ARRAYAGG"; + default: + throw new Error("Key not recognized in enum JsonConstructorType"); + } + } + case "JsonValueType": + { + switch (key) { + case "JS_TYPE_ANY": + return 0; + case "JS_TYPE_OBJECT": + return 1; + case "JS_TYPE_ARRAY": + return 2; + case "JS_TYPE_SCALAR": + return 3; + case 0: + return "JS_TYPE_ANY"; + case 1: + return "JS_TYPE_OBJECT"; + case 2: + return "JS_TYPE_ARRAY"; + case 3: + return "JS_TYPE_SCALAR"; + default: + throw new Error("Key not recognized in enum JsonValueType"); + } + } + case "NullTestType": + { + switch (key) { + case "IS_NULL": + return 0; + case "IS_NOT_NULL": + return 1; + case 0: + return "IS_NULL"; + case 1: + return "IS_NOT_NULL"; + default: + throw new Error("Key not recognized in enum NullTestType"); + } + } + case "BoolTestType": + { + switch (key) { + case "IS_TRUE": + return 0; + case "IS_NOT_TRUE": + return 1; + case "IS_FALSE": + return 2; + case "IS_NOT_FALSE": + return 3; + case "IS_UNKNOWN": + return 4; + case "IS_NOT_UNKNOWN": + return 5; + case 0: + return "IS_TRUE"; + case 1: + return "IS_NOT_TRUE"; + case 2: + return "IS_FALSE"; + case 3: + return "IS_NOT_FALSE"; + case 4: + return "IS_UNKNOWN"; + case 5: + return "IS_NOT_UNKNOWN"; + default: + throw new Error("Key not recognized in enum BoolTestType"); + } + } + case "CmdType": + { + switch (key) { + case "CMD_UNKNOWN": + return 0; + case "CMD_SELECT": + return 1; + case "CMD_UPDATE": + return 2; + case "CMD_INSERT": + return 3; + case "CMD_DELETE": + return 4; + case "CMD_MERGE": + return 5; + case "CMD_UTILITY": + return 6; + case "CMD_NOTHING": + return 7; + case 0: + return "CMD_UNKNOWN"; + case 1: + return "CMD_SELECT"; + case 2: + return "CMD_UPDATE"; + case 3: + return "CMD_INSERT"; + case 4: + return "CMD_DELETE"; + case 5: + return "CMD_MERGE"; + case 6: + return "CMD_UTILITY"; + case 7: + return "CMD_NOTHING"; + default: + throw new Error("Key not recognized in enum CmdType"); + } + } + case "JoinType": + { + switch (key) { + case "JOIN_INNER": + return 0; + case "JOIN_LEFT": + return 1; + case "JOIN_FULL": + return 2; + case "JOIN_RIGHT": + return 3; + case "JOIN_SEMI": + return 4; + case "JOIN_ANTI": + return 5; + case "JOIN_RIGHT_ANTI": + return 6; + case "JOIN_UNIQUE_OUTER": + return 7; + case "JOIN_UNIQUE_INNER": + return 8; + case 0: + return "JOIN_INNER"; + case 1: + return "JOIN_LEFT"; + case 2: + return "JOIN_FULL"; + case 3: + return "JOIN_RIGHT"; + case 4: + return "JOIN_SEMI"; + case 5: + return "JOIN_ANTI"; + case 6: + return "JOIN_RIGHT_ANTI"; + case 7: + return "JOIN_UNIQUE_OUTER"; + case 8: + return "JOIN_UNIQUE_INNER"; + default: + throw new Error("Key not recognized in enum JoinType"); + } + } + case "AggStrategy": + { + switch (key) { + case "AGG_PLAIN": + return 0; + case "AGG_SORTED": + return 1; + case "AGG_HASHED": + return 2; + case "AGG_MIXED": + return 3; + case 0: + return "AGG_PLAIN"; + case 1: + return "AGG_SORTED"; + case 2: + return "AGG_HASHED"; + case 3: + return "AGG_MIXED"; + default: + throw new Error("Key not recognized in enum AggStrategy"); + } + } + case "AggSplit": + { + switch (key) { + case "AGGSPLIT_SIMPLE": + return 0; + case "AGGSPLIT_INITIAL_SERIAL": + return 1; + case "AGGSPLIT_FINAL_DESERIAL": + return 2; + case 0: + return "AGGSPLIT_SIMPLE"; + case 1: + return "AGGSPLIT_INITIAL_SERIAL"; + case 2: + return "AGGSPLIT_FINAL_DESERIAL"; + default: + throw new Error("Key not recognized in enum AggSplit"); + } + } + case "SetOpCmd": + { + switch (key) { + case "SETOPCMD_INTERSECT": + return 0; + case "SETOPCMD_INTERSECT_ALL": + return 1; + case "SETOPCMD_EXCEPT": + return 2; + case "SETOPCMD_EXCEPT_ALL": + return 3; + case 0: + return "SETOPCMD_INTERSECT"; + case 1: + return "SETOPCMD_INTERSECT_ALL"; + case 2: + return "SETOPCMD_EXCEPT"; + case 3: + return "SETOPCMD_EXCEPT_ALL"; + default: + throw new Error("Key not recognized in enum SetOpCmd"); + } + } + case "SetOpStrategy": + { + switch (key) { + case "SETOP_SORTED": + return 0; + case "SETOP_HASHED": + return 1; + case 0: + return "SETOP_SORTED"; + case 1: + return "SETOP_HASHED"; + default: + throw new Error("Key not recognized in enum SetOpStrategy"); + } + } + case "OnConflictAction": + { + switch (key) { + case "ONCONFLICT_NONE": + return 0; + case "ONCONFLICT_NOTHING": + return 1; + case "ONCONFLICT_UPDATE": + return 2; + case 0: + return "ONCONFLICT_NONE"; + case 1: + return "ONCONFLICT_NOTHING"; + case 2: + return "ONCONFLICT_UPDATE"; + default: + throw new Error("Key not recognized in enum OnConflictAction"); + } + } + case "LimitOption": + { + switch (key) { + case "LIMIT_OPTION_DEFAULT": + return 0; + case "LIMIT_OPTION_COUNT": + return 1; + case "LIMIT_OPTION_WITH_TIES": + return 2; + case 0: + return "LIMIT_OPTION_DEFAULT"; + case 1: + return "LIMIT_OPTION_COUNT"; + case 2: + return "LIMIT_OPTION_WITH_TIES"; + default: + throw new Error("Key not recognized in enum LimitOption"); + } + } + case "LockClauseStrength": + { + switch (key) { + case "LCS_NONE": + return 0; + case "LCS_FORKEYSHARE": + return 1; + case "LCS_FORSHARE": + return 2; + case "LCS_FORNOKEYUPDATE": + return 3; + case "LCS_FORUPDATE": + return 4; + case 0: + return "LCS_NONE"; + case 1: + return "LCS_FORKEYSHARE"; + case 2: + return "LCS_FORSHARE"; + case 3: + return "LCS_FORNOKEYUPDATE"; + case 4: + return "LCS_FORUPDATE"; + default: + throw new Error("Key not recognized in enum LockClauseStrength"); + } + } + case "LockWaitPolicy": + { + switch (key) { + case "LockWaitBlock": + return 0; + case "LockWaitSkip": + return 1; + case "LockWaitError": + return 2; + case 0: + return "LockWaitBlock"; + case 1: + return "LockWaitSkip"; + case 2: + return "LockWaitError"; + default: + throw new Error("Key not recognized in enum LockWaitPolicy"); + } + } + case "LockTupleMode": + { + switch (key) { + case "LockTupleKeyShare": + return 0; + case "LockTupleShare": + return 1; + case "LockTupleNoKeyExclusive": + return 2; + case "LockTupleExclusive": + return 3; + case 0: + return "LockTupleKeyShare"; + case 1: + return "LockTupleShare"; + case 2: + return "LockTupleNoKeyExclusive"; + case 3: + return "LockTupleExclusive"; + default: + throw new Error("Key not recognized in enum LockTupleMode"); + } + } + case "KeywordKind": + { + switch (key) { + case "NO_KEYWORD": + return 0; + case "UNRESERVED_KEYWORD": + return 1; + case "COL_NAME_KEYWORD": + return 2; + case "TYPE_FUNC_NAME_KEYWORD": + return 3; + case "RESERVED_KEYWORD": + return 4; + case 0: + return "NO_KEYWORD"; + case 1: + return "UNRESERVED_KEYWORD"; + case 2: + return "COL_NAME_KEYWORD"; + case 3: + return "TYPE_FUNC_NAME_KEYWORD"; + case 4: + return "RESERVED_KEYWORD"; + default: + throw new Error("Key not recognized in enum KeywordKind"); + } + } + case "Token": + { + switch (key) { + case "NUL": + return 0; + case "ASCII_36": + return 36; + case "ASCII_37": + return 37; + case "ASCII_40": + return 40; + case "ASCII_41": + return 41; + case "ASCII_42": + return 42; + case "ASCII_43": + return 43; + case "ASCII_44": + return 44; + case "ASCII_45": + return 45; + case "ASCII_46": + return 46; + case "ASCII_47": + return 47; + case "ASCII_58": + return 58; + case "ASCII_59": + return 59; + case "ASCII_60": + return 60; + case "ASCII_61": + return 61; + case "ASCII_62": + return 62; + case "ASCII_63": + return 63; + case "ASCII_91": + return 91; + case "ASCII_92": + return 92; + case "ASCII_93": + return 93; + case "ASCII_94": + return 94; + case "IDENT": + return 258; + case "UIDENT": + return 259; + case "FCONST": + return 260; + case "SCONST": + return 261; + case "USCONST": + return 262; + case "BCONST": + return 263; + case "XCONST": + return 264; + case "Op": + return 265; + case "ICONST": + return 266; + case "PARAM": + return 267; + case "TYPECAST": + return 268; + case "DOT_DOT": + return 269; + case "COLON_EQUALS": + return 270; + case "EQUALS_GREATER": + return 271; + case "LESS_EQUALS": + return 272; + case "GREATER_EQUALS": + return 273; + case "NOT_EQUALS": + return 274; + case "SQL_COMMENT": + return 275; + case "C_COMMENT": + return 276; + case "ABORT_P": + return 277; + case "ABSENT": + return 278; + case "ABSOLUTE_P": + return 279; + case "ACCESS": + return 280; + case "ACTION": + return 281; + case "ADD_P": + return 282; + case "ADMIN": + return 283; + case "AFTER": + return 284; + case "AGGREGATE": + return 285; + case "ALL": + return 286; + case "ALSO": + return 287; + case "ALTER": + return 288; + case "ALWAYS": + return 289; + case "ANALYSE": + return 290; + case "ANALYZE": + return 291; + case "AND": + return 292; + case "ANY": + return 293; + case "ARRAY": + return 294; + case "AS": + return 295; + case "ASC": + return 296; + case "ASENSITIVE": + return 297; + case "ASSERTION": + return 298; + case "ASSIGNMENT": + return 299; + case "ASYMMETRIC": + return 300; + case "ATOMIC": + return 301; + case "AT": + return 302; + case "ATTACH": + return 303; + case "ATTRIBUTE": + return 304; + case "AUTHORIZATION": + return 305; + case "BACKWARD": + return 306; + case "BEFORE": + return 307; + case "BEGIN_P": + return 308; + case "BETWEEN": + return 309; + case "BIGINT": + return 310; + case "BINARY": + return 311; + case "BIT": + return 312; + case "BOOLEAN_P": + return 313; + case "BOTH": + return 314; + case "BREADTH": + return 315; + case "BY": + return 316; + case "CACHE": + return 317; + case "CALL": + return 318; + case "CALLED": + return 319; + case "CASCADE": + return 320; + case "CASCADED": + return 321; + case "CASE": + return 322; + case "CAST": + return 323; + case "CATALOG_P": + return 324; + case "CHAIN": + return 325; + case "CHAR_P": + return 326; + case "CHARACTER": + return 327; + case "CHARACTERISTICS": + return 328; + case "CHECK": + return 329; + case "CHECKPOINT": + return 330; + case "CLASS": + return 331; + case "CLOSE": + return 332; + case "CLUSTER": + return 333; + case "COALESCE": + return 334; + case "COLLATE": + return 335; + case "COLLATION": + return 336; + case "COLUMN": + return 337; + case "COLUMNS": + return 338; + case "COMMENT": + return 339; + case "COMMENTS": + return 340; + case "COMMIT": + return 341; + case "COMMITTED": + return 342; + case "COMPRESSION": + return 343; + case "CONCURRENTLY": + return 344; + case "CONFIGURATION": + return 345; + case "CONFLICT": + return 346; + case "CONNECTION": + return 347; + case "CONSTRAINT": + return 348; + case "CONSTRAINTS": + return 349; + case "CONTENT_P": + return 350; + case "CONTINUE_P": + return 351; + case "CONVERSION_P": + return 352; + case "COPY": + return 353; + case "COST": + return 354; + case "CREATE": + return 355; + case "CROSS": + return 356; + case "CSV": + return 357; + case "CUBE": + return 358; + case "CURRENT_P": + return 359; + case "CURRENT_CATALOG": + return 360; + case "CURRENT_DATE": + return 361; + case "CURRENT_ROLE": + return 362; + case "CURRENT_SCHEMA": + return 363; + case "CURRENT_TIME": + return 364; + case "CURRENT_TIMESTAMP": + return 365; + case "CURRENT_USER": + return 366; + case "CURSOR": + return 367; + case "CYCLE": + return 368; + case "DATA_P": + return 369; + case "DATABASE": + return 370; + case "DAY_P": + return 371; + case "DEALLOCATE": + return 372; + case "DEC": + return 373; + case "DECIMAL_P": + return 374; + case "DECLARE": + return 375; + case "DEFAULT": + return 376; + case "DEFAULTS": + return 377; + case "DEFERRABLE": + return 378; + case "DEFERRED": + return 379; + case "DEFINER": + return 380; + case "DELETE_P": + return 381; + case "DELIMITER": + return 382; + case "DELIMITERS": + return 383; + case "DEPENDS": + return 384; + case "DEPTH": + return 385; + case "DESC": + return 386; + case "DETACH": + return 387; + case "DICTIONARY": + return 388; + case "DISABLE_P": + return 389; + case "DISCARD": + return 390; + case "DISTINCT": + return 391; + case "DO": + return 392; + case "DOCUMENT_P": + return 393; + case "DOMAIN_P": + return 394; + case "DOUBLE_P": + return 395; + case "DROP": + return 396; + case "EACH": + return 397; + case "ELSE": + return 398; + case "ENABLE_P": + return 399; + case "ENCODING": + return 400; + case "ENCRYPTED": + return 401; + case "END_P": + return 402; + case "ENUM_P": + return 403; + case "ESCAPE": + return 404; + case "EVENT": + return 405; + case "EXCEPT": + return 406; + case "EXCLUDE": + return 407; + case "EXCLUDING": + return 408; + case "EXCLUSIVE": + return 409; + case "EXECUTE": + return 410; + case "EXISTS": + return 411; + case "EXPLAIN": + return 412; + case "EXPRESSION": + return 413; + case "EXTENSION": + return 414; + case "EXTERNAL": + return 415; + case "EXTRACT": + return 416; + case "FALSE_P": + return 417; + case "FAMILY": + return 418; + case "FETCH": + return 419; + case "FILTER": + return 420; + case "FINALIZE": + return 421; + case "FIRST_P": + return 422; + case "FLOAT_P": + return 423; + case "FOLLOWING": + return 424; + case "FOR": + return 425; + case "FORCE": + return 426; + case "FOREIGN": + return 427; + case "FORMAT": + return 428; + case "FORWARD": + return 429; + case "FREEZE": + return 430; + case "FROM": + return 431; + case "FULL": + return 432; + case "FUNCTION": + return 433; + case "FUNCTIONS": + return 434; + case "GENERATED": + return 435; + case "GLOBAL": + return 436; + case "GRANT": + return 437; + case "GRANTED": + return 438; + case "GREATEST": + return 439; + case "GROUP_P": + return 440; + case "GROUPING": + return 441; + case "GROUPS": + return 442; + case "HANDLER": + return 443; + case "HAVING": + return 444; + case "HEADER_P": + return 445; + case "HOLD": + return 446; + case "HOUR_P": + return 447; + case "IDENTITY_P": + return 448; + case "IF_P": + return 449; + case "ILIKE": + return 450; + case "IMMEDIATE": + return 451; + case "IMMUTABLE": + return 452; + case "IMPLICIT_P": + return 453; + case "IMPORT_P": + return 454; + case "IN_P": + return 455; + case "INCLUDE": + return 456; + case "INCLUDING": + return 457; + case "INCREMENT": + return 458; + case "INDENT": + return 459; + case "INDEX": + return 460; + case "INDEXES": + return 461; + case "INHERIT": + return 462; + case "INHERITS": + return 463; + case "INITIALLY": + return 464; + case "INLINE_P": + return 465; + case "INNER_P": + return 466; + case "INOUT": + return 467; + case "INPUT_P": + return 468; + case "INSENSITIVE": + return 469; + case "INSERT": + return 470; + case "INSTEAD": + return 471; + case "INT_P": + return 472; + case "INTEGER": + return 473; + case "INTERSECT": + return 474; + case "INTERVAL": + return 475; + case "INTO": + return 476; + case "INVOKER": + return 477; + case "IS": + return 478; + case "ISNULL": + return 479; + case "ISOLATION": + return 480; + case "JOIN": + return 481; + case "JSON": + return 482; + case "JSON_ARRAY": + return 483; + case "JSON_ARRAYAGG": + return 484; + case "JSON_OBJECT": + return 485; + case "JSON_OBJECTAGG": + return 486; + case "KEY": + return 487; + case "KEYS": + return 488; + case "LABEL": + return 489; + case "LANGUAGE": + return 490; + case "LARGE_P": + return 491; + case "LAST_P": + return 492; + case "LATERAL_P": + return 493; + case "LEADING": + return 494; + case "LEAKPROOF": + return 495; + case "LEAST": + return 496; + case "LEFT": + return 497; + case "LEVEL": + return 498; + case "LIKE": + return 499; + case "LIMIT": + return 500; + case "LISTEN": + return 501; + case "LOAD": + return 502; + case "LOCAL": + return 503; + case "LOCALTIME": + return 504; + case "LOCALTIMESTAMP": + return 505; + case "LOCATION": + return 506; + case "LOCK_P": + return 507; + case "LOCKED": + return 508; + case "LOGGED": + return 509; + case "MAPPING": + return 510; + case "MATCH": + return 511; + case "MATCHED": + return 512; + case "MATERIALIZED": + return 513; + case "MAXVALUE": + return 514; + case "MERGE": + return 515; + case "METHOD": + return 516; + case "MINUTE_P": + return 517; + case "MINVALUE": + return 518; + case "MODE": + return 519; + case "MONTH_P": + return 520; + case "MOVE": + return 521; + case "NAME_P": + return 522; + case "NAMES": + return 523; + case "NATIONAL": + return 524; + case "NATURAL": + return 525; + case "NCHAR": + return 526; + case "NEW": + return 527; + case "NEXT": + return 528; + case "NFC": + return 529; + case "NFD": + return 530; + case "NFKC": + return 531; + case "NFKD": + return 532; + case "NO": + return 533; + case "NONE": + return 534; + case "NORMALIZE": + return 535; + case "NORMALIZED": + return 536; + case "NOT": + return 537; + case "NOTHING": + return 538; + case "NOTIFY": + return 539; + case "NOTNULL": + return 540; + case "NOWAIT": + return 541; + case "NULL_P": + return 542; + case "NULLIF": + return 543; + case "NULLS_P": + return 544; + case "NUMERIC": + return 545; + case "OBJECT_P": + return 546; + case "OF": + return 547; + case "OFF": + return 548; + case "OFFSET": + return 549; + case "OIDS": + return 550; + case "OLD": + return 551; + case "ON": + return 552; + case "ONLY": + return 553; + case "OPERATOR": + return 554; + case "OPTION": + return 555; + case "OPTIONS": + return 556; + case "OR": + return 557; + case "ORDER": + return 558; + case "ORDINALITY": + return 559; + case "OTHERS": + return 560; + case "OUT_P": + return 561; + case "OUTER_P": + return 562; + case "OVER": + return 563; + case "OVERLAPS": + return 564; + case "OVERLAY": + return 565; + case "OVERRIDING": + return 566; + case "OWNED": + return 567; + case "OWNER": + return 568; + case "PARALLEL": + return 569; + case "PARAMETER": + return 570; + case "PARSER": + return 571; + case "PARTIAL": + return 572; + case "PARTITION": + return 573; + case "PASSING": + return 574; + case "PASSWORD": + return 575; + case "PLACING": + return 576; + case "PLANS": + return 577; + case "POLICY": + return 578; + case "POSITION": + return 579; + case "PRECEDING": + return 580; + case "PRECISION": + return 581; + case "PRESERVE": + return 582; + case "PREPARE": + return 583; + case "PREPARED": + return 584; + case "PRIMARY": + return 585; + case "PRIOR": + return 586; + case "PRIVILEGES": + return 587; + case "PROCEDURAL": + return 588; + case "PROCEDURE": + return 589; + case "PROCEDURES": + return 590; + case "PROGRAM": + return 591; + case "PUBLICATION": + return 592; + case "QUOTE": + return 593; + case "RANGE": + return 594; + case "READ": + return 595; + case "REAL": + return 596; + case "REASSIGN": + return 597; + case "RECHECK": + return 598; + case "RECURSIVE": + return 599; + case "REF_P": + return 600; + case "REFERENCES": + return 601; + case "REFERENCING": + return 602; + case "REFRESH": + return 603; + case "REINDEX": + return 604; + case "RELATIVE_P": + return 605; + case "RELEASE": + return 606; + case "RENAME": + return 607; + case "REPEATABLE": + return 608; + case "REPLACE": + return 609; + case "REPLICA": + return 610; + case "RESET": + return 611; + case "RESTART": + return 612; + case "RESTRICT": + return 613; + case "RETURN": + return 614; + case "RETURNING": + return 615; + case "RETURNS": + return 616; + case "REVOKE": + return 617; + case "RIGHT": + return 618; + case "ROLE": + return 619; + case "ROLLBACK": + return 620; + case "ROLLUP": + return 621; + case "ROUTINE": + return 622; + case "ROUTINES": + return 623; + case "ROW": + return 624; + case "ROWS": + return 625; + case "RULE": + return 626; + case "SAVEPOINT": + return 627; + case "SCALAR": + return 628; + case "SCHEMA": + return 629; + case "SCHEMAS": + return 630; + case "SCROLL": + return 631; + case "SEARCH": + return 632; + case "SECOND_P": + return 633; + case "SECURITY": + return 634; + case "SELECT": + return 635; + case "SEQUENCE": + return 636; + case "SEQUENCES": + return 637; + case "SERIALIZABLE": + return 638; + case "SERVER": + return 639; + case "SESSION": + return 640; + case "SESSION_USER": + return 641; + case "SET": + return 642; + case "SETS": + return 643; + case "SETOF": + return 644; + case "SHARE": + return 645; + case "SHOW": + return 646; + case "SIMILAR": + return 647; + case "SIMPLE": + return 648; + case "SKIP": + return 649; + case "SMALLINT": + return 650; + case "SNAPSHOT": + return 651; + case "SOME": + return 652; + case "SQL_P": + return 653; + case "STABLE": + return 654; + case "STANDALONE_P": + return 655; + case "START": + return 656; + case "STATEMENT": + return 657; + case "STATISTICS": + return 658; + case "STDIN": + return 659; + case "STDOUT": + return 660; + case "STORAGE": + return 661; + case "STORED": + return 662; + case "STRICT_P": + return 663; + case "STRIP_P": + return 664; + case "SUBSCRIPTION": + return 665; + case "SUBSTRING": + return 666; + case "SUPPORT": + return 667; + case "SYMMETRIC": + return 668; + case "SYSID": + return 669; + case "SYSTEM_P": + return 670; + case "SYSTEM_USER": + return 671; + case "TABLE": + return 672; + case "TABLES": + return 673; + case "TABLESAMPLE": + return 674; + case "TABLESPACE": + return 675; + case "TEMP": + return 676; + case "TEMPLATE": + return 677; + case "TEMPORARY": + return 678; + case "TEXT_P": + return 679; + case "THEN": + return 680; + case "TIES": + return 681; + case "TIME": + return 682; + case "TIMESTAMP": + return 683; + case "TO": + return 684; + case "TRAILING": + return 685; + case "TRANSACTION": + return 686; + case "TRANSFORM": + return 687; + case "TREAT": + return 688; + case "TRIGGER": + return 689; + case "TRIM": + return 690; + case "TRUE_P": + return 691; + case "TRUNCATE": + return 692; + case "TRUSTED": + return 693; + case "TYPE_P": + return 694; + case "TYPES_P": + return 695; + case "UESCAPE": + return 696; + case "UNBOUNDED": + return 697; + case "UNCOMMITTED": + return 698; + case "UNENCRYPTED": + return 699; + case "UNION": + return 700; + case "UNIQUE": + return 701; + case "UNKNOWN": + return 702; + case "UNLISTEN": + return 703; + case "UNLOGGED": + return 704; + case "UNTIL": + return 705; + case "UPDATE": + return 706; + case "USER": + return 707; + case "USING": + return 708; + case "VACUUM": + return 709; + case "VALID": + return 710; + case "VALIDATE": + return 711; + case "VALIDATOR": + return 712; + case "VALUE_P": + return 713; + case "VALUES": + return 714; + case "VARCHAR": + return 715; + case "VARIADIC": + return 716; + case "VARYING": + return 717; + case "VERBOSE": + return 718; + case "VERSION_P": + return 719; + case "VIEW": + return 720; + case "VIEWS": + return 721; + case "VOLATILE": + return 722; + case "WHEN": + return 723; + case "WHERE": + return 724; + case "WHITESPACE_P": + return 725; + case "WINDOW": + return 726; + case "WITH": + return 727; + case "WITHIN": + return 728; + case "WITHOUT": + return 729; + case "WORK": + return 730; + case "WRAPPER": + return 731; + case "WRITE": + return 732; + case "XML_P": + return 733; + case "XMLATTRIBUTES": + return 734; + case "XMLCONCAT": + return 735; + case "XMLELEMENT": + return 736; + case "XMLEXISTS": + return 737; + case "XMLFOREST": + return 738; + case "XMLNAMESPACES": + return 739; + case "XMLPARSE": + return 740; + case "XMLPI": + return 741; + case "XMLROOT": + return 742; + case "XMLSERIALIZE": + return 743; + case "XMLTABLE": + return 744; + case "YEAR_P": + return 745; + case "YES_P": + return 746; + case "ZONE": + return 747; + case "FORMAT_LA": + return 748; + case "NOT_LA": + return 749; + case "NULLS_LA": + return 750; + case "WITH_LA": + return 751; + case "WITHOUT_LA": + return 752; + case "MODE_TYPE_NAME": + return 753; + case "MODE_PLPGSQL_EXPR": + return 754; + case "MODE_PLPGSQL_ASSIGN1": + return 755; + case "MODE_PLPGSQL_ASSIGN2": + return 756; + case "MODE_PLPGSQL_ASSIGN3": + return 757; + case "UMINUS": + return 758; + case 0: + return "NUL"; + case 36: + return "ASCII_36"; + case 37: + return "ASCII_37"; + case 40: + return "ASCII_40"; + case 41: + return "ASCII_41"; + case 42: + return "ASCII_42"; + case 43: + return "ASCII_43"; + case 44: + return "ASCII_44"; + case 45: + return "ASCII_45"; + case 46: + return "ASCII_46"; + case 47: + return "ASCII_47"; + case 58: + return "ASCII_58"; + case 59: + return "ASCII_59"; + case 60: + return "ASCII_60"; + case 61: + return "ASCII_61"; + case 62: + return "ASCII_62"; + case 63: + return "ASCII_63"; + case 91: + return "ASCII_91"; + case 92: + return "ASCII_92"; + case 93: + return "ASCII_93"; + case 94: + return "ASCII_94"; + case 258: + return "IDENT"; + case 259: + return "UIDENT"; + case 260: + return "FCONST"; + case 261: + return "SCONST"; + case 262: + return "USCONST"; + case 263: + return "BCONST"; + case 264: + return "XCONST"; + case 265: + return "Op"; + case 266: + return "ICONST"; + case 267: + return "PARAM"; + case 268: + return "TYPECAST"; + case 269: + return "DOT_DOT"; + case 270: + return "COLON_EQUALS"; + case 271: + return "EQUALS_GREATER"; + case 272: + return "LESS_EQUALS"; + case 273: + return "GREATER_EQUALS"; + case 274: + return "NOT_EQUALS"; + case 275: + return "SQL_COMMENT"; + case 276: + return "C_COMMENT"; + case 277: + return "ABORT_P"; + case 278: + return "ABSENT"; + case 279: + return "ABSOLUTE_P"; + case 280: + return "ACCESS"; + case 281: + return "ACTION"; + case 282: + return "ADD_P"; + case 283: + return "ADMIN"; + case 284: + return "AFTER"; + case 285: + return "AGGREGATE"; + case 286: + return "ALL"; + case 287: + return "ALSO"; + case 288: + return "ALTER"; + case 289: + return "ALWAYS"; + case 290: + return "ANALYSE"; + case 291: + return "ANALYZE"; + case 292: + return "AND"; + case 293: + return "ANY"; + case 294: + return "ARRAY"; + case 295: + return "AS"; + case 296: + return "ASC"; + case 297: + return "ASENSITIVE"; + case 298: + return "ASSERTION"; + case 299: + return "ASSIGNMENT"; + case 300: + return "ASYMMETRIC"; + case 301: + return "ATOMIC"; + case 302: + return "AT"; + case 303: + return "ATTACH"; + case 304: + return "ATTRIBUTE"; + case 305: + return "AUTHORIZATION"; + case 306: + return "BACKWARD"; + case 307: + return "BEFORE"; + case 308: + return "BEGIN_P"; + case 309: + return "BETWEEN"; + case 310: + return "BIGINT"; + case 311: + return "BINARY"; + case 312: + return "BIT"; + case 313: + return "BOOLEAN_P"; + case 314: + return "BOTH"; + case 315: + return "BREADTH"; + case 316: + return "BY"; + case 317: + return "CACHE"; + case 318: + return "CALL"; + case 319: + return "CALLED"; + case 320: + return "CASCADE"; + case 321: + return "CASCADED"; + case 322: + return "CASE"; + case 323: + return "CAST"; + case 324: + return "CATALOG_P"; + case 325: + return "CHAIN"; + case 326: + return "CHAR_P"; + case 327: + return "CHARACTER"; + case 328: + return "CHARACTERISTICS"; + case 329: + return "CHECK"; + case 330: + return "CHECKPOINT"; + case 331: + return "CLASS"; + case 332: + return "CLOSE"; + case 333: + return "CLUSTER"; + case 334: + return "COALESCE"; + case 335: + return "COLLATE"; + case 336: + return "COLLATION"; + case 337: + return "COLUMN"; + case 338: + return "COLUMNS"; + case 339: + return "COMMENT"; + case 340: + return "COMMENTS"; + case 341: + return "COMMIT"; + case 342: + return "COMMITTED"; + case 343: + return "COMPRESSION"; + case 344: + return "CONCURRENTLY"; + case 345: + return "CONFIGURATION"; + case 346: + return "CONFLICT"; + case 347: + return "CONNECTION"; + case 348: + return "CONSTRAINT"; + case 349: + return "CONSTRAINTS"; + case 350: + return "CONTENT_P"; + case 351: + return "CONTINUE_P"; + case 352: + return "CONVERSION_P"; + case 353: + return "COPY"; + case 354: + return "COST"; + case 355: + return "CREATE"; + case 356: + return "CROSS"; + case 357: + return "CSV"; + case 358: + return "CUBE"; + case 359: + return "CURRENT_P"; + case 360: + return "CURRENT_CATALOG"; + case 361: + return "CURRENT_DATE"; + case 362: + return "CURRENT_ROLE"; + case 363: + return "CURRENT_SCHEMA"; + case 364: + return "CURRENT_TIME"; + case 365: + return "CURRENT_TIMESTAMP"; + case 366: + return "CURRENT_USER"; + case 367: + return "CURSOR"; + case 368: + return "CYCLE"; + case 369: + return "DATA_P"; + case 370: + return "DATABASE"; + case 371: + return "DAY_P"; + case 372: + return "DEALLOCATE"; + case 373: + return "DEC"; + case 374: + return "DECIMAL_P"; + case 375: + return "DECLARE"; + case 376: + return "DEFAULT"; + case 377: + return "DEFAULTS"; + case 378: + return "DEFERRABLE"; + case 379: + return "DEFERRED"; + case 380: + return "DEFINER"; + case 381: + return "DELETE_P"; + case 382: + return "DELIMITER"; + case 383: + return "DELIMITERS"; + case 384: + return "DEPENDS"; + case 385: + return "DEPTH"; + case 386: + return "DESC"; + case 387: + return "DETACH"; + case 388: + return "DICTIONARY"; + case 389: + return "DISABLE_P"; + case 390: + return "DISCARD"; + case 391: + return "DISTINCT"; + case 392: + return "DO"; + case 393: + return "DOCUMENT_P"; + case 394: + return "DOMAIN_P"; + case 395: + return "DOUBLE_P"; + case 396: + return "DROP"; + case 397: + return "EACH"; + case 398: + return "ELSE"; + case 399: + return "ENABLE_P"; + case 400: + return "ENCODING"; + case 401: + return "ENCRYPTED"; + case 402: + return "END_P"; + case 403: + return "ENUM_P"; + case 404: + return "ESCAPE"; + case 405: + return "EVENT"; + case 406: + return "EXCEPT"; + case 407: + return "EXCLUDE"; + case 408: + return "EXCLUDING"; + case 409: + return "EXCLUSIVE"; + case 410: + return "EXECUTE"; + case 411: + return "EXISTS"; + case 412: + return "EXPLAIN"; + case 413: + return "EXPRESSION"; + case 414: + return "EXTENSION"; + case 415: + return "EXTERNAL"; + case 416: + return "EXTRACT"; + case 417: + return "FALSE_P"; + case 418: + return "FAMILY"; + case 419: + return "FETCH"; + case 420: + return "FILTER"; + case 421: + return "FINALIZE"; + case 422: + return "FIRST_P"; + case 423: + return "FLOAT_P"; + case 424: + return "FOLLOWING"; + case 425: + return "FOR"; + case 426: + return "FORCE"; + case 427: + return "FOREIGN"; + case 428: + return "FORMAT"; + case 429: + return "FORWARD"; + case 430: + return "FREEZE"; + case 431: + return "FROM"; + case 432: + return "FULL"; + case 433: + return "FUNCTION"; + case 434: + return "FUNCTIONS"; + case 435: + return "GENERATED"; + case 436: + return "GLOBAL"; + case 437: + return "GRANT"; + case 438: + return "GRANTED"; + case 439: + return "GREATEST"; + case 440: + return "GROUP_P"; + case 441: + return "GROUPING"; + case 442: + return "GROUPS"; + case 443: + return "HANDLER"; + case 444: + return "HAVING"; + case 445: + return "HEADER_P"; + case 446: + return "HOLD"; + case 447: + return "HOUR_P"; + case 448: + return "IDENTITY_P"; + case 449: + return "IF_P"; + case 450: + return "ILIKE"; + case 451: + return "IMMEDIATE"; + case 452: + return "IMMUTABLE"; + case 453: + return "IMPLICIT_P"; + case 454: + return "IMPORT_P"; + case 455: + return "IN_P"; + case 456: + return "INCLUDE"; + case 457: + return "INCLUDING"; + case 458: + return "INCREMENT"; + case 459: + return "INDENT"; + case 460: + return "INDEX"; + case 461: + return "INDEXES"; + case 462: + return "INHERIT"; + case 463: + return "INHERITS"; + case 464: + return "INITIALLY"; + case 465: + return "INLINE_P"; + case 466: + return "INNER_P"; + case 467: + return "INOUT"; + case 468: + return "INPUT_P"; + case 469: + return "INSENSITIVE"; + case 470: + return "INSERT"; + case 471: + return "INSTEAD"; + case 472: + return "INT_P"; + case 473: + return "INTEGER"; + case 474: + return "INTERSECT"; + case 475: + return "INTERVAL"; + case 476: + return "INTO"; + case 477: + return "INVOKER"; + case 478: + return "IS"; + case 479: + return "ISNULL"; + case 480: + return "ISOLATION"; + case 481: + return "JOIN"; + case 482: + return "JSON"; + case 483: + return "JSON_ARRAY"; + case 484: + return "JSON_ARRAYAGG"; + case 485: + return "JSON_OBJECT"; + case 486: + return "JSON_OBJECTAGG"; + case 487: + return "KEY"; + case 488: + return "KEYS"; + case 489: + return "LABEL"; + case 490: + return "LANGUAGE"; + case 491: + return "LARGE_P"; + case 492: + return "LAST_P"; + case 493: + return "LATERAL_P"; + case 494: + return "LEADING"; + case 495: + return "LEAKPROOF"; + case 496: + return "LEAST"; + case 497: + return "LEFT"; + case 498: + return "LEVEL"; + case 499: + return "LIKE"; + case 500: + return "LIMIT"; + case 501: + return "LISTEN"; + case 502: + return "LOAD"; + case 503: + return "LOCAL"; + case 504: + return "LOCALTIME"; + case 505: + return "LOCALTIMESTAMP"; + case 506: + return "LOCATION"; + case 507: + return "LOCK_P"; + case 508: + return "LOCKED"; + case 509: + return "LOGGED"; + case 510: + return "MAPPING"; + case 511: + return "MATCH"; + case 512: + return "MATCHED"; + case 513: + return "MATERIALIZED"; + case 514: + return "MAXVALUE"; + case 515: + return "MERGE"; + case 516: + return "METHOD"; + case 517: + return "MINUTE_P"; + case 518: + return "MINVALUE"; + case 519: + return "MODE"; + case 520: + return "MONTH_P"; + case 521: + return "MOVE"; + case 522: + return "NAME_P"; + case 523: + return "NAMES"; + case 524: + return "NATIONAL"; + case 525: + return "NATURAL"; + case 526: + return "NCHAR"; + case 527: + return "NEW"; + case 528: + return "NEXT"; + case 529: + return "NFC"; + case 530: + return "NFD"; + case 531: + return "NFKC"; + case 532: + return "NFKD"; + case 533: + return "NO"; + case 534: + return "NONE"; + case 535: + return "NORMALIZE"; + case 536: + return "NORMALIZED"; + case 537: + return "NOT"; + case 538: + return "NOTHING"; + case 539: + return "NOTIFY"; + case 540: + return "NOTNULL"; + case 541: + return "NOWAIT"; + case 542: + return "NULL_P"; + case 543: + return "NULLIF"; + case 544: + return "NULLS_P"; + case 545: + return "NUMERIC"; + case 546: + return "OBJECT_P"; + case 547: + return "OF"; + case 548: + return "OFF"; + case 549: + return "OFFSET"; + case 550: + return "OIDS"; + case 551: + return "OLD"; + case 552: + return "ON"; + case 553: + return "ONLY"; + case 554: + return "OPERATOR"; + case 555: + return "OPTION"; + case 556: + return "OPTIONS"; + case 557: + return "OR"; + case 558: + return "ORDER"; + case 559: + return "ORDINALITY"; + case 560: + return "OTHERS"; + case 561: + return "OUT_P"; + case 562: + return "OUTER_P"; + case 563: + return "OVER"; + case 564: + return "OVERLAPS"; + case 565: + return "OVERLAY"; + case 566: + return "OVERRIDING"; + case 567: + return "OWNED"; + case 568: + return "OWNER"; + case 569: + return "PARALLEL"; + case 570: + return "PARAMETER"; + case 571: + return "PARSER"; + case 572: + return "PARTIAL"; + case 573: + return "PARTITION"; + case 574: + return "PASSING"; + case 575: + return "PASSWORD"; + case 576: + return "PLACING"; + case 577: + return "PLANS"; + case 578: + return "POLICY"; + case 579: + return "POSITION"; + case 580: + return "PRECEDING"; + case 581: + return "PRECISION"; + case 582: + return "PRESERVE"; + case 583: + return "PREPARE"; + case 584: + return "PREPARED"; + case 585: + return "PRIMARY"; + case 586: + return "PRIOR"; + case 587: + return "PRIVILEGES"; + case 588: + return "PROCEDURAL"; + case 589: + return "PROCEDURE"; + case 590: + return "PROCEDURES"; + case 591: + return "PROGRAM"; + case 592: + return "PUBLICATION"; + case 593: + return "QUOTE"; + case 594: + return "RANGE"; + case 595: + return "READ"; + case 596: + return "REAL"; + case 597: + return "REASSIGN"; + case 598: + return "RECHECK"; + case 599: + return "RECURSIVE"; + case 600: + return "REF_P"; + case 601: + return "REFERENCES"; + case 602: + return "REFERENCING"; + case 603: + return "REFRESH"; + case 604: + return "REINDEX"; + case 605: + return "RELATIVE_P"; + case 606: + return "RELEASE"; + case 607: + return "RENAME"; + case 608: + return "REPEATABLE"; + case 609: + return "REPLACE"; + case 610: + return "REPLICA"; + case 611: + return "RESET"; + case 612: + return "RESTART"; + case 613: + return "RESTRICT"; + case 614: + return "RETURN"; + case 615: + return "RETURNING"; + case 616: + return "RETURNS"; + case 617: + return "REVOKE"; + case 618: + return "RIGHT"; + case 619: + return "ROLE"; + case 620: + return "ROLLBACK"; + case 621: + return "ROLLUP"; + case 622: + return "ROUTINE"; + case 623: + return "ROUTINES"; + case 624: + return "ROW"; + case 625: + return "ROWS"; + case 626: + return "RULE"; + case 627: + return "SAVEPOINT"; + case 628: + return "SCALAR"; + case 629: + return "SCHEMA"; + case 630: + return "SCHEMAS"; + case 631: + return "SCROLL"; + case 632: + return "SEARCH"; + case 633: + return "SECOND_P"; + case 634: + return "SECURITY"; + case 635: + return "SELECT"; + case 636: + return "SEQUENCE"; + case 637: + return "SEQUENCES"; + case 638: + return "SERIALIZABLE"; + case 639: + return "SERVER"; + case 640: + return "SESSION"; + case 641: + return "SESSION_USER"; + case 642: + return "SET"; + case 643: + return "SETS"; + case 644: + return "SETOF"; + case 645: + return "SHARE"; + case 646: + return "SHOW"; + case 647: + return "SIMILAR"; + case 648: + return "SIMPLE"; + case 649: + return "SKIP"; + case 650: + return "SMALLINT"; + case 651: + return "SNAPSHOT"; + case 652: + return "SOME"; + case 653: + return "SQL_P"; + case 654: + return "STABLE"; + case 655: + return "STANDALONE_P"; + case 656: + return "START"; + case 657: + return "STATEMENT"; + case 658: + return "STATISTICS"; + case 659: + return "STDIN"; + case 660: + return "STDOUT"; + case 661: + return "STORAGE"; + case 662: + return "STORED"; + case 663: + return "STRICT_P"; + case 664: + return "STRIP_P"; + case 665: + return "SUBSCRIPTION"; + case 666: + return "SUBSTRING"; + case 667: + return "SUPPORT"; + case 668: + return "SYMMETRIC"; + case 669: + return "SYSID"; + case 670: + return "SYSTEM_P"; + case 671: + return "SYSTEM_USER"; + case 672: + return "TABLE"; + case 673: + return "TABLES"; + case 674: + return "TABLESAMPLE"; + case 675: + return "TABLESPACE"; + case 676: + return "TEMP"; + case 677: + return "TEMPLATE"; + case 678: + return "TEMPORARY"; + case 679: + return "TEXT_P"; + case 680: + return "THEN"; + case 681: + return "TIES"; + case 682: + return "TIME"; + case 683: + return "TIMESTAMP"; + case 684: + return "TO"; + case 685: + return "TRAILING"; + case 686: + return "TRANSACTION"; + case 687: + return "TRANSFORM"; + case 688: + return "TREAT"; + case 689: + return "TRIGGER"; + case 690: + return "TRIM"; + case 691: + return "TRUE_P"; + case 692: + return "TRUNCATE"; + case 693: + return "TRUSTED"; + case 694: + return "TYPE_P"; + case 695: + return "TYPES_P"; + case 696: + return "UESCAPE"; + case 697: + return "UNBOUNDED"; + case 698: + return "UNCOMMITTED"; + case 699: + return "UNENCRYPTED"; + case 700: + return "UNION"; + case 701: + return "UNIQUE"; + case 702: + return "UNKNOWN"; + case 703: + return "UNLISTEN"; + case 704: + return "UNLOGGED"; + case 705: + return "UNTIL"; + case 706: + return "UPDATE"; + case 707: + return "USER"; + case 708: + return "USING"; + case 709: + return "VACUUM"; + case 710: + return "VALID"; + case 711: + return "VALIDATE"; + case 712: + return "VALIDATOR"; + case 713: + return "VALUE_P"; + case 714: + return "VALUES"; + case 715: + return "VARCHAR"; + case 716: + return "VARIADIC"; + case 717: + return "VARYING"; + case 718: + return "VERBOSE"; + case 719: + return "VERSION_P"; + case 720: + return "VIEW"; + case 721: + return "VIEWS"; + case 722: + return "VOLATILE"; + case 723: + return "WHEN"; + case 724: + return "WHERE"; + case 725: + return "WHITESPACE_P"; + case 726: + return "WINDOW"; + case 727: + return "WITH"; + case 728: + return "WITHIN"; + case 729: + return "WITHOUT"; + case 730: + return "WORK"; + case 731: + return "WRAPPER"; + case 732: + return "WRITE"; + case 733: + return "XML_P"; + case 734: + return "XMLATTRIBUTES"; + case 735: + return "XMLCONCAT"; + case 736: + return "XMLELEMENT"; + case 737: + return "XMLEXISTS"; + case 738: + return "XMLFOREST"; + case 739: + return "XMLNAMESPACES"; + case 740: + return "XMLPARSE"; + case 741: + return "XMLPI"; + case 742: + return "XMLROOT"; + case 743: + return "XMLSERIALIZE"; + case 744: + return "XMLTABLE"; + case 745: + return "YEAR_P"; + case 746: + return "YES_P"; + case 747: + return "ZONE"; + case 748: + return "FORMAT_LA"; + case 749: + return "NOT_LA"; + case 750: + return "NULLS_LA"; + case 751: + return "WITH_LA"; + case 752: + return "WITHOUT_LA"; + case 753: + return "MODE_TYPE_NAME"; + case 754: + return "MODE_PLPGSQL_EXPR"; + case 755: + return "MODE_PLPGSQL_ASSIGN1"; + case 756: + return "MODE_PLPGSQL_ASSIGN2"; + case 757: + return "MODE_PLPGSQL_ASSIGN3"; + case 758: + return "UMINUS"; + default: + throw new Error("Key not recognized in enum Token"); + } + } + default: + throw new Error("Enum type not recognized"); + } +};", + "file": "bidirectional.ts", + }, +] +`; + +exports[`enum utils switch statements format generates unidirectional enum functions 1`] = ` +[ + { + "code": "/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type EnumType = "OverridingKind" | "QuerySource" | "SortByDir" | "SortByNulls" | "SetQuantifier" | "A_Expr_Kind" | "RoleSpecType" | "TableLikeOption" | "DefElemAction" | "PartitionStrategy" | "PartitionRangeDatumKind" | "RTEKind" | "WCOKind" | "GroupingSetKind" | "CTEMaterialize" | "SetOperation" | "ObjectType" | "DropBehavior" | "AlterTableType" | "GrantTargetType" | "VariableSetKind" | "ConstrType" | "ImportForeignSchemaType" | "RoleStmtType" | "FetchDirection" | "FunctionParameterMode" | "TransactionStmtKind" | "ViewCheckOption" | "DiscardMode" | "ReindexObjectType" | "AlterTSConfigType" | "PublicationObjSpecType" | "AlterPublicationAction" | "AlterSubscriptionType" | "OnCommitAction" | "ParamKind" | "CoercionContext" | "CoercionForm" | "BoolExprType" | "SubLinkType" | "RowCompareType" | "MinMaxOp" | "SQLValueFunctionOp" | "XmlExprOp" | "XmlOptionType" | "JsonEncoding" | "JsonFormatType" | "JsonConstructorType" | "JsonValueType" | "NullTestType" | "BoolTestType" | "CmdType" | "JoinType" | "AggStrategy" | "AggSplit" | "SetOpCmd" | "SetOpStrategy" | "OnConflictAction" | "LimitOption" | "LockClauseStrength" | "LockWaitPolicy" | "LockTupleMode" | "KeywordKind" | "Token"; +export const getEnumString = (enumType: EnumType, key: number): string => { + switch (enumType) { + case "OverridingKind": + { + switch (key) { + case 0: + return "OVERRIDING_NOT_SET"; + case 1: + return "OVERRIDING_USER_VALUE"; + case 2: + return "OVERRIDING_SYSTEM_VALUE"; + default: + throw new Error("Value not recognized in enum OverridingKind"); + } + } + case "QuerySource": + { + switch (key) { + case 0: + return "QSRC_ORIGINAL"; + case 1: + return "QSRC_PARSER"; + case 2: + return "QSRC_INSTEAD_RULE"; + case 3: + return "QSRC_QUAL_INSTEAD_RULE"; + case 4: + return "QSRC_NON_INSTEAD_RULE"; + default: + throw new Error("Value not recognized in enum QuerySource"); + } + } + case "SortByDir": + { + switch (key) { + case 0: + return "SORTBY_DEFAULT"; + case 1: + return "SORTBY_ASC"; + case 2: + return "SORTBY_DESC"; + case 3: + return "SORTBY_USING"; + default: + throw new Error("Value not recognized in enum SortByDir"); + } + } + case "SortByNulls": + { + switch (key) { + case 0: + return "SORTBY_NULLS_DEFAULT"; + case 1: + return "SORTBY_NULLS_FIRST"; + case 2: + return "SORTBY_NULLS_LAST"; + default: + throw new Error("Value not recognized in enum SortByNulls"); + } + } + case "SetQuantifier": + { + switch (key) { + case 0: + return "SET_QUANTIFIER_DEFAULT"; + case 1: + return "SET_QUANTIFIER_ALL"; + case 2: + return "SET_QUANTIFIER_DISTINCT"; + default: + throw new Error("Value not recognized in enum SetQuantifier"); + } + } + case "A_Expr_Kind": + { + switch (key) { + case 0: + return "AEXPR_OP"; + case 1: + return "AEXPR_OP_ANY"; + case 2: + return "AEXPR_OP_ALL"; + case 3: + return "AEXPR_DISTINCT"; + case 4: + return "AEXPR_NOT_DISTINCT"; + case 5: + return "AEXPR_NULLIF"; + case 6: + return "AEXPR_IN"; + case 7: + return "AEXPR_LIKE"; + case 8: + return "AEXPR_ILIKE"; + case 9: + return "AEXPR_SIMILAR"; + case 10: + return "AEXPR_BETWEEN"; + case 11: + return "AEXPR_NOT_BETWEEN"; + case 12: + return "AEXPR_BETWEEN_SYM"; + case 13: + return "AEXPR_NOT_BETWEEN_SYM"; + default: + throw new Error("Value not recognized in enum A_Expr_Kind"); + } + } + case "RoleSpecType": + { + switch (key) { + case 0: + return "ROLESPEC_CSTRING"; + case 1: + return "ROLESPEC_CURRENT_ROLE"; + case 2: + return "ROLESPEC_CURRENT_USER"; + case 3: + return "ROLESPEC_SESSION_USER"; + case 4: + return "ROLESPEC_PUBLIC"; + default: + throw new Error("Value not recognized in enum RoleSpecType"); + } + } + case "TableLikeOption": + { + switch (key) { + case 0: + return "CREATE_TABLE_LIKE_COMMENTS"; + case 1: + return "CREATE_TABLE_LIKE_COMPRESSION"; + case 2: + return "CREATE_TABLE_LIKE_CONSTRAINTS"; + case 3: + return "CREATE_TABLE_LIKE_DEFAULTS"; + case 4: + return "CREATE_TABLE_LIKE_GENERATED"; + case 5: + return "CREATE_TABLE_LIKE_IDENTITY"; + case 6: + return "CREATE_TABLE_LIKE_INDEXES"; + case 7: + return "CREATE_TABLE_LIKE_STATISTICS"; + case 8: + return "CREATE_TABLE_LIKE_STORAGE"; + case 9: + return "CREATE_TABLE_LIKE_ALL"; + default: + throw new Error("Value not recognized in enum TableLikeOption"); + } + } + case "DefElemAction": + { + switch (key) { + case 0: + return "DEFELEM_UNSPEC"; + case 1: + return "DEFELEM_SET"; + case 2: + return "DEFELEM_ADD"; + case 3: + return "DEFELEM_DROP"; + default: + throw new Error("Value not recognized in enum DefElemAction"); + } + } + case "PartitionStrategy": + { + switch (key) { + case 0: + return "PARTITION_STRATEGY_LIST"; + case 1: + return "PARTITION_STRATEGY_RANGE"; + case 2: + return "PARTITION_STRATEGY_HASH"; + default: + throw new Error("Value not recognized in enum PartitionStrategy"); + } + } + case "PartitionRangeDatumKind": + { + switch (key) { + case 0: + return "PARTITION_RANGE_DATUM_MINVALUE"; + case 1: + return "PARTITION_RANGE_DATUM_VALUE"; + case 2: + return "PARTITION_RANGE_DATUM_MAXVALUE"; + default: + throw new Error("Value not recognized in enum PartitionRangeDatumKind"); + } + } + case "RTEKind": + { + switch (key) { + case 0: + return "RTE_RELATION"; + case 1: + return "RTE_SUBQUERY"; + case 2: + return "RTE_JOIN"; + case 3: + return "RTE_FUNCTION"; + case 4: + return "RTE_TABLEFUNC"; + case 5: + return "RTE_VALUES"; + case 6: + return "RTE_CTE"; + case 7: + return "RTE_NAMEDTUPLESTORE"; + case 8: + return "RTE_RESULT"; + default: + throw new Error("Value not recognized in enum RTEKind"); + } + } + case "WCOKind": + { + switch (key) { + case 0: + return "WCO_VIEW_CHECK"; + case 1: + return "WCO_RLS_INSERT_CHECK"; + case 2: + return "WCO_RLS_UPDATE_CHECK"; + case 3: + return "WCO_RLS_CONFLICT_CHECK"; + case 4: + return "WCO_RLS_MERGE_UPDATE_CHECK"; + case 5: + return "WCO_RLS_MERGE_DELETE_CHECK"; + default: + throw new Error("Value not recognized in enum WCOKind"); + } + } + case "GroupingSetKind": + { + switch (key) { + case 0: + return "GROUPING_SET_EMPTY"; + case 1: + return "GROUPING_SET_SIMPLE"; + case 2: + return "GROUPING_SET_ROLLUP"; + case 3: + return "GROUPING_SET_CUBE"; + case 4: + return "GROUPING_SET_SETS"; + default: + throw new Error("Value not recognized in enum GroupingSetKind"); + } + } + case "CTEMaterialize": + { + switch (key) { + case 0: + return "CTEMaterializeDefault"; + case 1: + return "CTEMaterializeAlways"; + case 2: + return "CTEMaterializeNever"; + default: + throw new Error("Value not recognized in enum CTEMaterialize"); + } + } + case "SetOperation": + { + switch (key) { + case 0: + return "SETOP_NONE"; + case 1: + return "SETOP_UNION"; + case 2: + return "SETOP_INTERSECT"; + case 3: + return "SETOP_EXCEPT"; + default: + throw new Error("Value not recognized in enum SetOperation"); + } + } + case "ObjectType": + { + switch (key) { + case 0: + return "OBJECT_ACCESS_METHOD"; + case 1: + return "OBJECT_AGGREGATE"; + case 2: + return "OBJECT_AMOP"; + case 3: + return "OBJECT_AMPROC"; + case 4: + return "OBJECT_ATTRIBUTE"; + case 5: + return "OBJECT_CAST"; + case 6: + return "OBJECT_COLUMN"; + case 7: + return "OBJECT_COLLATION"; + case 8: + return "OBJECT_CONVERSION"; + case 9: + return "OBJECT_DATABASE"; + case 10: + return "OBJECT_DEFAULT"; + case 11: + return "OBJECT_DEFACL"; + case 12: + return "OBJECT_DOMAIN"; + case 13: + return "OBJECT_DOMCONSTRAINT"; + case 14: + return "OBJECT_EVENT_TRIGGER"; + case 15: + return "OBJECT_EXTENSION"; + case 16: + return "OBJECT_FDW"; + case 17: + return "OBJECT_FOREIGN_SERVER"; + case 18: + return "OBJECT_FOREIGN_TABLE"; + case 19: + return "OBJECT_FUNCTION"; + case 20: + return "OBJECT_INDEX"; + case 21: + return "OBJECT_LANGUAGE"; + case 22: + return "OBJECT_LARGEOBJECT"; + case 23: + return "OBJECT_MATVIEW"; + case 24: + return "OBJECT_OPCLASS"; + case 25: + return "OBJECT_OPERATOR"; + case 26: + return "OBJECT_OPFAMILY"; + case 27: + return "OBJECT_PARAMETER_ACL"; + case 28: + return "OBJECT_POLICY"; + case 29: + return "OBJECT_PROCEDURE"; + case 30: + return "OBJECT_PUBLICATION"; + case 31: + return "OBJECT_PUBLICATION_NAMESPACE"; + case 32: + return "OBJECT_PUBLICATION_REL"; + case 33: + return "OBJECT_ROLE"; + case 34: + return "OBJECT_ROUTINE"; + case 35: + return "OBJECT_RULE"; + case 36: + return "OBJECT_SCHEMA"; + case 37: + return "OBJECT_SEQUENCE"; + case 38: + return "OBJECT_SUBSCRIPTION"; + case 39: + return "OBJECT_STATISTIC_EXT"; + case 40: + return "OBJECT_TABCONSTRAINT"; + case 41: + return "OBJECT_TABLE"; + case 42: + return "OBJECT_TABLESPACE"; + case 43: + return "OBJECT_TRANSFORM"; + case 44: + return "OBJECT_TRIGGER"; + case 45: + return "OBJECT_TSCONFIGURATION"; + case 46: + return "OBJECT_TSDICTIONARY"; + case 47: + return "OBJECT_TSPARSER"; + case 48: + return "OBJECT_TSTEMPLATE"; + case 49: + return "OBJECT_TYPE"; + case 50: + return "OBJECT_USER_MAPPING"; + case 51: + return "OBJECT_VIEW"; + default: + throw new Error("Value not recognized in enum ObjectType"); + } + } + case "DropBehavior": + { + switch (key) { + case 0: + return "DROP_RESTRICT"; + case 1: + return "DROP_CASCADE"; + default: + throw new Error("Value not recognized in enum DropBehavior"); + } + } + case "AlterTableType": + { + switch (key) { + case 0: + return "AT_AddColumn"; + case 1: + return "AT_AddColumnToView"; + case 2: + return "AT_ColumnDefault"; + case 3: + return "AT_CookedColumnDefault"; + case 4: + return "AT_DropNotNull"; + case 5: + return "AT_SetNotNull"; + case 6: + return "AT_DropExpression"; + case 7: + return "AT_CheckNotNull"; + case 8: + return "AT_SetStatistics"; + case 9: + return "AT_SetOptions"; + case 10: + return "AT_ResetOptions"; + case 11: + return "AT_SetStorage"; + case 12: + return "AT_SetCompression"; + case 13: + return "AT_DropColumn"; + case 14: + return "AT_AddIndex"; + case 15: + return "AT_ReAddIndex"; + case 16: + return "AT_AddConstraint"; + case 17: + return "AT_ReAddConstraint"; + case 18: + return "AT_ReAddDomainConstraint"; + case 19: + return "AT_AlterConstraint"; + case 20: + return "AT_ValidateConstraint"; + case 21: + return "AT_AddIndexConstraint"; + case 22: + return "AT_DropConstraint"; + case 23: + return "AT_ReAddComment"; + case 24: + return "AT_AlterColumnType"; + case 25: + return "AT_AlterColumnGenericOptions"; + case 26: + return "AT_ChangeOwner"; + case 27: + return "AT_ClusterOn"; + case 28: + return "AT_DropCluster"; + case 29: + return "AT_SetLogged"; + case 30: + return "AT_SetUnLogged"; + case 31: + return "AT_DropOids"; + case 32: + return "AT_SetAccessMethod"; + case 33: + return "AT_SetTableSpace"; + case 34: + return "AT_SetRelOptions"; + case 35: + return "AT_ResetRelOptions"; + case 36: + return "AT_ReplaceRelOptions"; + case 37: + return "AT_EnableTrig"; + case 38: + return "AT_EnableAlwaysTrig"; + case 39: + return "AT_EnableReplicaTrig"; + case 40: + return "AT_DisableTrig"; + case 41: + return "AT_EnableTrigAll"; + case 42: + return "AT_DisableTrigAll"; + case 43: + return "AT_EnableTrigUser"; + case 44: + return "AT_DisableTrigUser"; + case 45: + return "AT_EnableRule"; + case 46: + return "AT_EnableAlwaysRule"; + case 47: + return "AT_EnableReplicaRule"; + case 48: + return "AT_DisableRule"; + case 49: + return "AT_AddInherit"; + case 50: + return "AT_DropInherit"; + case 51: + return "AT_AddOf"; + case 52: + return "AT_DropOf"; + case 53: + return "AT_ReplicaIdentity"; + case 54: + return "AT_EnableRowSecurity"; + case 55: + return "AT_DisableRowSecurity"; + case 56: + return "AT_ForceRowSecurity"; + case 57: + return "AT_NoForceRowSecurity"; + case 58: + return "AT_GenericOptions"; + case 59: + return "AT_AttachPartition"; + case 60: + return "AT_DetachPartition"; + case 61: + return "AT_DetachPartitionFinalize"; + case 62: + return "AT_AddIdentity"; + case 63: + return "AT_SetIdentity"; + case 64: + return "AT_DropIdentity"; + case 65: + return "AT_ReAddStatistics"; + default: + throw new Error("Value not recognized in enum AlterTableType"); + } + } + case "GrantTargetType": + { + switch (key) { + case 0: + return "ACL_TARGET_OBJECT"; + case 1: + return "ACL_TARGET_ALL_IN_SCHEMA"; + case 2: + return "ACL_TARGET_DEFAULTS"; + default: + throw new Error("Value not recognized in enum GrantTargetType"); + } + } + case "VariableSetKind": + { + switch (key) { + case 0: + return "VAR_SET_VALUE"; + case 1: + return "VAR_SET_DEFAULT"; + case 2: + return "VAR_SET_CURRENT"; + case 3: + return "VAR_SET_MULTI"; + case 4: + return "VAR_RESET"; + case 5: + return "VAR_RESET_ALL"; + default: + throw new Error("Value not recognized in enum VariableSetKind"); + } + } + case "ConstrType": + { + switch (key) { + case 0: + return "CONSTR_NULL"; + case 1: + return "CONSTR_NOTNULL"; + case 2: + return "CONSTR_DEFAULT"; + case 3: + return "CONSTR_IDENTITY"; + case 4: + return "CONSTR_GENERATED"; + case 5: + return "CONSTR_CHECK"; + case 6: + return "CONSTR_PRIMARY"; + case 7: + return "CONSTR_UNIQUE"; + case 8: + return "CONSTR_EXCLUSION"; + case 9: + return "CONSTR_FOREIGN"; + case 10: + return "CONSTR_ATTR_DEFERRABLE"; + case 11: + return "CONSTR_ATTR_NOT_DEFERRABLE"; + case 12: + return "CONSTR_ATTR_DEFERRED"; + case 13: + return "CONSTR_ATTR_IMMEDIATE"; + default: + throw new Error("Value not recognized in enum ConstrType"); + } + } + case "ImportForeignSchemaType": + { + switch (key) { + case 0: + return "FDW_IMPORT_SCHEMA_ALL"; + case 1: + return "FDW_IMPORT_SCHEMA_LIMIT_TO"; + case 2: + return "FDW_IMPORT_SCHEMA_EXCEPT"; + default: + throw new Error("Value not recognized in enum ImportForeignSchemaType"); + } + } + case "RoleStmtType": + { + switch (key) { + case 0: + return "ROLESTMT_ROLE"; + case 1: + return "ROLESTMT_USER"; + case 2: + return "ROLESTMT_GROUP"; + default: + throw new Error("Value not recognized in enum RoleStmtType"); + } + } + case "FetchDirection": + { + switch (key) { + case 0: + return "FETCH_FORWARD"; + case 1: + return "FETCH_BACKWARD"; + case 2: + return "FETCH_ABSOLUTE"; + case 3: + return "FETCH_RELATIVE"; + default: + throw new Error("Value not recognized in enum FetchDirection"); + } + } + case "FunctionParameterMode": + { + switch (key) { + case 0: + return "FUNC_PARAM_IN"; + case 1: + return "FUNC_PARAM_OUT"; + case 2: + return "FUNC_PARAM_INOUT"; + case 3: + return "FUNC_PARAM_VARIADIC"; + case 4: + return "FUNC_PARAM_TABLE"; + case 5: + return "FUNC_PARAM_DEFAULT"; + default: + throw new Error("Value not recognized in enum FunctionParameterMode"); + } + } + case "TransactionStmtKind": + { + switch (key) { + case 0: + return "TRANS_STMT_BEGIN"; + case 1: + return "TRANS_STMT_START"; + case 2: + return "TRANS_STMT_COMMIT"; + case 3: + return "TRANS_STMT_ROLLBACK"; + case 4: + return "TRANS_STMT_SAVEPOINT"; + case 5: + return "TRANS_STMT_RELEASE"; + case 6: + return "TRANS_STMT_ROLLBACK_TO"; + case 7: + return "TRANS_STMT_PREPARE"; + case 8: + return "TRANS_STMT_COMMIT_PREPARED"; + case 9: + return "TRANS_STMT_ROLLBACK_PREPARED"; + default: + throw new Error("Value not recognized in enum TransactionStmtKind"); + } + } + case "ViewCheckOption": + { + switch (key) { + case 0: + return "NO_CHECK_OPTION"; + case 1: + return "LOCAL_CHECK_OPTION"; + case 2: + return "CASCADED_CHECK_OPTION"; + default: + throw new Error("Value not recognized in enum ViewCheckOption"); + } + } + case "DiscardMode": + { + switch (key) { + case 0: + return "DISCARD_ALL"; + case 1: + return "DISCARD_PLANS"; + case 2: + return "DISCARD_SEQUENCES"; + case 3: + return "DISCARD_TEMP"; + default: + throw new Error("Value not recognized in enum DiscardMode"); + } + } + case "ReindexObjectType": + { + switch (key) { + case 0: + return "REINDEX_OBJECT_INDEX"; + case 1: + return "REINDEX_OBJECT_TABLE"; + case 2: + return "REINDEX_OBJECT_SCHEMA"; + case 3: + return "REINDEX_OBJECT_SYSTEM"; + case 4: + return "REINDEX_OBJECT_DATABASE"; + default: + throw new Error("Value not recognized in enum ReindexObjectType"); + } + } + case "AlterTSConfigType": + { + switch (key) { + case 0: + return "ALTER_TSCONFIG_ADD_MAPPING"; + case 1: + return "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN"; + case 2: + return "ALTER_TSCONFIG_REPLACE_DICT"; + case 3: + return "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN"; + case 4: + return "ALTER_TSCONFIG_DROP_MAPPING"; + default: + throw new Error("Value not recognized in enum AlterTSConfigType"); + } + } + case "PublicationObjSpecType": + { + switch (key) { + case 0: + return "PUBLICATIONOBJ_TABLE"; + case 1: + return "PUBLICATIONOBJ_TABLES_IN_SCHEMA"; + case 2: + return "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA"; + case 3: + return "PUBLICATIONOBJ_CONTINUATION"; + default: + throw new Error("Value not recognized in enum PublicationObjSpecType"); + } + } + case "AlterPublicationAction": + { + switch (key) { + case 0: + return "AP_AddObjects"; + case 1: + return "AP_DropObjects"; + case 2: + return "AP_SetObjects"; + default: + throw new Error("Value not recognized in enum AlterPublicationAction"); + } + } + case "AlterSubscriptionType": + { + switch (key) { + case 0: + return "ALTER_SUBSCRIPTION_OPTIONS"; + case 1: + return "ALTER_SUBSCRIPTION_CONNECTION"; + case 2: + return "ALTER_SUBSCRIPTION_SET_PUBLICATION"; + case 3: + return "ALTER_SUBSCRIPTION_ADD_PUBLICATION"; + case 4: + return "ALTER_SUBSCRIPTION_DROP_PUBLICATION"; + case 5: + return "ALTER_SUBSCRIPTION_REFRESH"; + case 6: + return "ALTER_SUBSCRIPTION_ENABLED"; + case 7: + return "ALTER_SUBSCRIPTION_SKIP"; + default: + throw new Error("Value not recognized in enum AlterSubscriptionType"); + } + } + case "OnCommitAction": + { + switch (key) { + case 0: + return "ONCOMMIT_NOOP"; + case 1: + return "ONCOMMIT_PRESERVE_ROWS"; + case 2: + return "ONCOMMIT_DELETE_ROWS"; + case 3: + return "ONCOMMIT_DROP"; + default: + throw new Error("Value not recognized in enum OnCommitAction"); + } + } + case "ParamKind": + { + switch (key) { + case 0: + return "PARAM_EXTERN"; + case 1: + return "PARAM_EXEC"; + case 2: + return "PARAM_SUBLINK"; + case 3: + return "PARAM_MULTIEXPR"; + default: + throw new Error("Value not recognized in enum ParamKind"); + } + } + case "CoercionContext": + { + switch (key) { + case 0: + return "COERCION_IMPLICIT"; + case 1: + return "COERCION_ASSIGNMENT"; + case 2: + return "COERCION_PLPGSQL"; + case 3: + return "COERCION_EXPLICIT"; + default: + throw new Error("Value not recognized in enum CoercionContext"); + } + } + case "CoercionForm": + { + switch (key) { + case 0: + return "COERCE_EXPLICIT_CALL"; + case 1: + return "COERCE_EXPLICIT_CAST"; + case 2: + return "COERCE_IMPLICIT_CAST"; + case 3: + return "COERCE_SQL_SYNTAX"; + default: + throw new Error("Value not recognized in enum CoercionForm"); + } + } + case "BoolExprType": + { + switch (key) { + case 0: + return "AND_EXPR"; + case 1: + return "OR_EXPR"; + case 2: + return "NOT_EXPR"; + default: + throw new Error("Value not recognized in enum BoolExprType"); + } + } + case "SubLinkType": + { + switch (key) { + case 0: + return "EXISTS_SUBLINK"; + case 1: + return "ALL_SUBLINK"; + case 2: + return "ANY_SUBLINK"; + case 3: + return "ROWCOMPARE_SUBLINK"; + case 4: + return "EXPR_SUBLINK"; + case 5: + return "MULTIEXPR_SUBLINK"; + case 6: + return "ARRAY_SUBLINK"; + case 7: + return "CTE_SUBLINK"; + default: + throw new Error("Value not recognized in enum SubLinkType"); + } + } + case "RowCompareType": + { + switch (key) { + case 0: + return "ROWCOMPARE_LT"; + case 1: + return "ROWCOMPARE_LE"; + case 2: + return "ROWCOMPARE_EQ"; + case 3: + return "ROWCOMPARE_GE"; + case 4: + return "ROWCOMPARE_GT"; + case 5: + return "ROWCOMPARE_NE"; + default: + throw new Error("Value not recognized in enum RowCompareType"); + } + } + case "MinMaxOp": + { + switch (key) { + case 0: + return "IS_GREATEST"; + case 1: + return "IS_LEAST"; + default: + throw new Error("Value not recognized in enum MinMaxOp"); + } + } + case "SQLValueFunctionOp": + { + switch (key) { + case 0: + return "SVFOP_CURRENT_DATE"; + case 1: + return "SVFOP_CURRENT_TIME"; + case 2: + return "SVFOP_CURRENT_TIME_N"; + case 3: + return "SVFOP_CURRENT_TIMESTAMP"; + case 4: + return "SVFOP_CURRENT_TIMESTAMP_N"; + case 5: + return "SVFOP_LOCALTIME"; + case 6: + return "SVFOP_LOCALTIME_N"; + case 7: + return "SVFOP_LOCALTIMESTAMP"; + case 8: + return "SVFOP_LOCALTIMESTAMP_N"; + case 9: + return "SVFOP_CURRENT_ROLE"; + case 10: + return "SVFOP_CURRENT_USER"; + case 11: + return "SVFOP_USER"; + case 12: + return "SVFOP_SESSION_USER"; + case 13: + return "SVFOP_CURRENT_CATALOG"; + case 14: + return "SVFOP_CURRENT_SCHEMA"; + default: + throw new Error("Value not recognized in enum SQLValueFunctionOp"); + } + } + case "XmlExprOp": + { + switch (key) { + case 0: + return "IS_XMLCONCAT"; + case 1: + return "IS_XMLELEMENT"; + case 2: + return "IS_XMLFOREST"; + case 3: + return "IS_XMLPARSE"; + case 4: + return "IS_XMLPI"; + case 5: + return "IS_XMLROOT"; + case 6: + return "IS_XMLSERIALIZE"; + case 7: + return "IS_DOCUMENT"; + default: + throw new Error("Value not recognized in enum XmlExprOp"); + } + } + case "XmlOptionType": + { + switch (key) { + case 0: + return "XMLOPTION_DOCUMENT"; + case 1: + return "XMLOPTION_CONTENT"; + default: + throw new Error("Value not recognized in enum XmlOptionType"); + } + } + case "JsonEncoding": + { + switch (key) { + case 0: + return "JS_ENC_DEFAULT"; + case 1: + return "JS_ENC_UTF8"; + case 2: + return "JS_ENC_UTF16"; + case 3: + return "JS_ENC_UTF32"; + default: + throw new Error("Value not recognized in enum JsonEncoding"); + } + } + case "JsonFormatType": + { + switch (key) { + case 0: + return "JS_FORMAT_DEFAULT"; + case 1: + return "JS_FORMAT_JSON"; + case 2: + return "JS_FORMAT_JSONB"; + default: + throw new Error("Value not recognized in enum JsonFormatType"); + } + } + case "JsonConstructorType": + { + switch (key) { + case 0: + return "JSCTOR_JSON_OBJECT"; + case 1: + return "JSCTOR_JSON_ARRAY"; + case 2: + return "JSCTOR_JSON_OBJECTAGG"; + case 3: + return "JSCTOR_JSON_ARRAYAGG"; + default: + throw new Error("Value not recognized in enum JsonConstructorType"); + } + } + case "JsonValueType": + { + switch (key) { + case 0: + return "JS_TYPE_ANY"; + case 1: + return "JS_TYPE_OBJECT"; + case 2: + return "JS_TYPE_ARRAY"; + case 3: + return "JS_TYPE_SCALAR"; + default: + throw new Error("Value not recognized in enum JsonValueType"); + } + } + case "NullTestType": + { + switch (key) { + case 0: + return "IS_NULL"; + case 1: + return "IS_NOT_NULL"; + default: + throw new Error("Value not recognized in enum NullTestType"); + } + } + case "BoolTestType": + { + switch (key) { + case 0: + return "IS_TRUE"; + case 1: + return "IS_NOT_TRUE"; + case 2: + return "IS_FALSE"; + case 3: + return "IS_NOT_FALSE"; + case 4: + return "IS_UNKNOWN"; + case 5: + return "IS_NOT_UNKNOWN"; + default: + throw new Error("Value not recognized in enum BoolTestType"); + } + } + case "CmdType": + { + switch (key) { + case 0: + return "CMD_UNKNOWN"; + case 1: + return "CMD_SELECT"; + case 2: + return "CMD_UPDATE"; + case 3: + return "CMD_INSERT"; + case 4: + return "CMD_DELETE"; + case 5: + return "CMD_MERGE"; + case 6: + return "CMD_UTILITY"; + case 7: + return "CMD_NOTHING"; + default: + throw new Error("Value not recognized in enum CmdType"); + } + } + case "JoinType": + { + switch (key) { + case 0: + return "JOIN_INNER"; + case 1: + return "JOIN_LEFT"; + case 2: + return "JOIN_FULL"; + case 3: + return "JOIN_RIGHT"; + case 4: + return "JOIN_SEMI"; + case 5: + return "JOIN_ANTI"; + case 6: + return "JOIN_RIGHT_ANTI"; + case 7: + return "JOIN_UNIQUE_OUTER"; + case 8: + return "JOIN_UNIQUE_INNER"; + default: + throw new Error("Value not recognized in enum JoinType"); + } + } + case "AggStrategy": + { + switch (key) { + case 0: + return "AGG_PLAIN"; + case 1: + return "AGG_SORTED"; + case 2: + return "AGG_HASHED"; + case 3: + return "AGG_MIXED"; + default: + throw new Error("Value not recognized in enum AggStrategy"); + } + } + case "AggSplit": + { + switch (key) { + case 0: + return "AGGSPLIT_SIMPLE"; + case 1: + return "AGGSPLIT_INITIAL_SERIAL"; + case 2: + return "AGGSPLIT_FINAL_DESERIAL"; + default: + throw new Error("Value not recognized in enum AggSplit"); + } + } + case "SetOpCmd": + { + switch (key) { + case 0: + return "SETOPCMD_INTERSECT"; + case 1: + return "SETOPCMD_INTERSECT_ALL"; + case 2: + return "SETOPCMD_EXCEPT"; + case 3: + return "SETOPCMD_EXCEPT_ALL"; + default: + throw new Error("Value not recognized in enum SetOpCmd"); + } + } + case "SetOpStrategy": + { + switch (key) { + case 0: + return "SETOP_SORTED"; + case 1: + return "SETOP_HASHED"; + default: + throw new Error("Value not recognized in enum SetOpStrategy"); + } + } + case "OnConflictAction": + { + switch (key) { + case 0: + return "ONCONFLICT_NONE"; + case 1: + return "ONCONFLICT_NOTHING"; + case 2: + return "ONCONFLICT_UPDATE"; + default: + throw new Error("Value not recognized in enum OnConflictAction"); + } + } + case "LimitOption": + { + switch (key) { + case 0: + return "LIMIT_OPTION_DEFAULT"; + case 1: + return "LIMIT_OPTION_COUNT"; + case 2: + return "LIMIT_OPTION_WITH_TIES"; + default: + throw new Error("Value not recognized in enum LimitOption"); + } + } + case "LockClauseStrength": + { + switch (key) { + case 0: + return "LCS_NONE"; + case 1: + return "LCS_FORKEYSHARE"; + case 2: + return "LCS_FORSHARE"; + case 3: + return "LCS_FORNOKEYUPDATE"; + case 4: + return "LCS_FORUPDATE"; + default: + throw new Error("Value not recognized in enum LockClauseStrength"); + } + } + case "LockWaitPolicy": + { + switch (key) { + case 0: + return "LockWaitBlock"; + case 1: + return "LockWaitSkip"; + case 2: + return "LockWaitError"; + default: + throw new Error("Value not recognized in enum LockWaitPolicy"); + } + } + case "LockTupleMode": + { + switch (key) { + case 0: + return "LockTupleKeyShare"; + case 1: + return "LockTupleShare"; + case 2: + return "LockTupleNoKeyExclusive"; + case 3: + return "LockTupleExclusive"; + default: + throw new Error("Value not recognized in enum LockTupleMode"); + } + } + case "KeywordKind": + { + switch (key) { + case 0: + return "NO_KEYWORD"; + case 1: + return "UNRESERVED_KEYWORD"; + case 2: + return "COL_NAME_KEYWORD"; + case 3: + return "TYPE_FUNC_NAME_KEYWORD"; + case 4: + return "RESERVED_KEYWORD"; + default: + throw new Error("Value not recognized in enum KeywordKind"); + } + } + case "Token": + { + switch (key) { + case 0: + return "NUL"; + case 36: + return "ASCII_36"; + case 37: + return "ASCII_37"; + case 40: + return "ASCII_40"; + case 41: + return "ASCII_41"; + case 42: + return "ASCII_42"; + case 43: + return "ASCII_43"; + case 44: + return "ASCII_44"; + case 45: + return "ASCII_45"; + case 46: + return "ASCII_46"; + case 47: + return "ASCII_47"; + case 58: + return "ASCII_58"; + case 59: + return "ASCII_59"; + case 60: + return "ASCII_60"; + case 61: + return "ASCII_61"; + case 62: + return "ASCII_62"; + case 63: + return "ASCII_63"; + case 91: + return "ASCII_91"; + case 92: + return "ASCII_92"; + case 93: + return "ASCII_93"; + case 94: + return "ASCII_94"; + case 258: + return "IDENT"; + case 259: + return "UIDENT"; + case 260: + return "FCONST"; + case 261: + return "SCONST"; + case 262: + return "USCONST"; + case 263: + return "BCONST"; + case 264: + return "XCONST"; + case 265: + return "Op"; + case 266: + return "ICONST"; + case 267: + return "PARAM"; + case 268: + return "TYPECAST"; + case 269: + return "DOT_DOT"; + case 270: + return "COLON_EQUALS"; + case 271: + return "EQUALS_GREATER"; + case 272: + return "LESS_EQUALS"; + case 273: + return "GREATER_EQUALS"; + case 274: + return "NOT_EQUALS"; + case 275: + return "SQL_COMMENT"; + case 276: + return "C_COMMENT"; + case 277: + return "ABORT_P"; + case 278: + return "ABSENT"; + case 279: + return "ABSOLUTE_P"; + case 280: + return "ACCESS"; + case 281: + return "ACTION"; + case 282: + return "ADD_P"; + case 283: + return "ADMIN"; + case 284: + return "AFTER"; + case 285: + return "AGGREGATE"; + case 286: + return "ALL"; + case 287: + return "ALSO"; + case 288: + return "ALTER"; + case 289: + return "ALWAYS"; + case 290: + return "ANALYSE"; + case 291: + return "ANALYZE"; + case 292: + return "AND"; + case 293: + return "ANY"; + case 294: + return "ARRAY"; + case 295: + return "AS"; + case 296: + return "ASC"; + case 297: + return "ASENSITIVE"; + case 298: + return "ASSERTION"; + case 299: + return "ASSIGNMENT"; + case 300: + return "ASYMMETRIC"; + case 301: + return "ATOMIC"; + case 302: + return "AT"; + case 303: + return "ATTACH"; + case 304: + return "ATTRIBUTE"; + case 305: + return "AUTHORIZATION"; + case 306: + return "BACKWARD"; + case 307: + return "BEFORE"; + case 308: + return "BEGIN_P"; + case 309: + return "BETWEEN"; + case 310: + return "BIGINT"; + case 311: + return "BINARY"; + case 312: + return "BIT"; + case 313: + return "BOOLEAN_P"; + case 314: + return "BOTH"; + case 315: + return "BREADTH"; + case 316: + return "BY"; + case 317: + return "CACHE"; + case 318: + return "CALL"; + case 319: + return "CALLED"; + case 320: + return "CASCADE"; + case 321: + return "CASCADED"; + case 322: + return "CASE"; + case 323: + return "CAST"; + case 324: + return "CATALOG_P"; + case 325: + return "CHAIN"; + case 326: + return "CHAR_P"; + case 327: + return "CHARACTER"; + case 328: + return "CHARACTERISTICS"; + case 329: + return "CHECK"; + case 330: + return "CHECKPOINT"; + case 331: + return "CLASS"; + case 332: + return "CLOSE"; + case 333: + return "CLUSTER"; + case 334: + return "COALESCE"; + case 335: + return "COLLATE"; + case 336: + return "COLLATION"; + case 337: + return "COLUMN"; + case 338: + return "COLUMNS"; + case 339: + return "COMMENT"; + case 340: + return "COMMENTS"; + case 341: + return "COMMIT"; + case 342: + return "COMMITTED"; + case 343: + return "COMPRESSION"; + case 344: + return "CONCURRENTLY"; + case 345: + return "CONFIGURATION"; + case 346: + return "CONFLICT"; + case 347: + return "CONNECTION"; + case 348: + return "CONSTRAINT"; + case 349: + return "CONSTRAINTS"; + case 350: + return "CONTENT_P"; + case 351: + return "CONTINUE_P"; + case 352: + return "CONVERSION_P"; + case 353: + return "COPY"; + case 354: + return "COST"; + case 355: + return "CREATE"; + case 356: + return "CROSS"; + case 357: + return "CSV"; + case 358: + return "CUBE"; + case 359: + return "CURRENT_P"; + case 360: + return "CURRENT_CATALOG"; + case 361: + return "CURRENT_DATE"; + case 362: + return "CURRENT_ROLE"; + case 363: + return "CURRENT_SCHEMA"; + case 364: + return "CURRENT_TIME"; + case 365: + return "CURRENT_TIMESTAMP"; + case 366: + return "CURRENT_USER"; + case 367: + return "CURSOR"; + case 368: + return "CYCLE"; + case 369: + return "DATA_P"; + case 370: + return "DATABASE"; + case 371: + return "DAY_P"; + case 372: + return "DEALLOCATE"; + case 373: + return "DEC"; + case 374: + return "DECIMAL_P"; + case 375: + return "DECLARE"; + case 376: + return "DEFAULT"; + case 377: + return "DEFAULTS"; + case 378: + return "DEFERRABLE"; + case 379: + return "DEFERRED"; + case 380: + return "DEFINER"; + case 381: + return "DELETE_P"; + case 382: + return "DELIMITER"; + case 383: + return "DELIMITERS"; + case 384: + return "DEPENDS"; + case 385: + return "DEPTH"; + case 386: + return "DESC"; + case 387: + return "DETACH"; + case 388: + return "DICTIONARY"; + case 389: + return "DISABLE_P"; + case 390: + return "DISCARD"; + case 391: + return "DISTINCT"; + case 392: + return "DO"; + case 393: + return "DOCUMENT_P"; + case 394: + return "DOMAIN_P"; + case 395: + return "DOUBLE_P"; + case 396: + return "DROP"; + case 397: + return "EACH"; + case 398: + return "ELSE"; + case 399: + return "ENABLE_P"; + case 400: + return "ENCODING"; + case 401: + return "ENCRYPTED"; + case 402: + return "END_P"; + case 403: + return "ENUM_P"; + case 404: + return "ESCAPE"; + case 405: + return "EVENT"; + case 406: + return "EXCEPT"; + case 407: + return "EXCLUDE"; + case 408: + return "EXCLUDING"; + case 409: + return "EXCLUSIVE"; + case 410: + return "EXECUTE"; + case 411: + return "EXISTS"; + case 412: + return "EXPLAIN"; + case 413: + return "EXPRESSION"; + case 414: + return "EXTENSION"; + case 415: + return "EXTERNAL"; + case 416: + return "EXTRACT"; + case 417: + return "FALSE_P"; + case 418: + return "FAMILY"; + case 419: + return "FETCH"; + case 420: + return "FILTER"; + case 421: + return "FINALIZE"; + case 422: + return "FIRST_P"; + case 423: + return "FLOAT_P"; + case 424: + return "FOLLOWING"; + case 425: + return "FOR"; + case 426: + return "FORCE"; + case 427: + return "FOREIGN"; + case 428: + return "FORMAT"; + case 429: + return "FORWARD"; + case 430: + return "FREEZE"; + case 431: + return "FROM"; + case 432: + return "FULL"; + case 433: + return "FUNCTION"; + case 434: + return "FUNCTIONS"; + case 435: + return "GENERATED"; + case 436: + return "GLOBAL"; + case 437: + return "GRANT"; + case 438: + return "GRANTED"; + case 439: + return "GREATEST"; + case 440: + return "GROUP_P"; + case 441: + return "GROUPING"; + case 442: + return "GROUPS"; + case 443: + return "HANDLER"; + case 444: + return "HAVING"; + case 445: + return "HEADER_P"; + case 446: + return "HOLD"; + case 447: + return "HOUR_P"; + case 448: + return "IDENTITY_P"; + case 449: + return "IF_P"; + case 450: + return "ILIKE"; + case 451: + return "IMMEDIATE"; + case 452: + return "IMMUTABLE"; + case 453: + return "IMPLICIT_P"; + case 454: + return "IMPORT_P"; + case 455: + return "IN_P"; + case 456: + return "INCLUDE"; + case 457: + return "INCLUDING"; + case 458: + return "INCREMENT"; + case 459: + return "INDENT"; + case 460: + return "INDEX"; + case 461: + return "INDEXES"; + case 462: + return "INHERIT"; + case 463: + return "INHERITS"; + case 464: + return "INITIALLY"; + case 465: + return "INLINE_P"; + case 466: + return "INNER_P"; + case 467: + return "INOUT"; + case 468: + return "INPUT_P"; + case 469: + return "INSENSITIVE"; + case 470: + return "INSERT"; + case 471: + return "INSTEAD"; + case 472: + return "INT_P"; + case 473: + return "INTEGER"; + case 474: + return "INTERSECT"; + case 475: + return "INTERVAL"; + case 476: + return "INTO"; + case 477: + return "INVOKER"; + case 478: + return "IS"; + case 479: + return "ISNULL"; + case 480: + return "ISOLATION"; + case 481: + return "JOIN"; + case 482: + return "JSON"; + case 483: + return "JSON_ARRAY"; + case 484: + return "JSON_ARRAYAGG"; + case 485: + return "JSON_OBJECT"; + case 486: + return "JSON_OBJECTAGG"; + case 487: + return "KEY"; + case 488: + return "KEYS"; + case 489: + return "LABEL"; + case 490: + return "LANGUAGE"; + case 491: + return "LARGE_P"; + case 492: + return "LAST_P"; + case 493: + return "LATERAL_P"; + case 494: + return "LEADING"; + case 495: + return "LEAKPROOF"; + case 496: + return "LEAST"; + case 497: + return "LEFT"; + case 498: + return "LEVEL"; + case 499: + return "LIKE"; + case 500: + return "LIMIT"; + case 501: + return "LISTEN"; + case 502: + return "LOAD"; + case 503: + return "LOCAL"; + case 504: + return "LOCALTIME"; + case 505: + return "LOCALTIMESTAMP"; + case 506: + return "LOCATION"; + case 507: + return "LOCK_P"; + case 508: + return "LOCKED"; + case 509: + return "LOGGED"; + case 510: + return "MAPPING"; + case 511: + return "MATCH"; + case 512: + return "MATCHED"; + case 513: + return "MATERIALIZED"; + case 514: + return "MAXVALUE"; + case 515: + return "MERGE"; + case 516: + return "METHOD"; + case 517: + return "MINUTE_P"; + case 518: + return "MINVALUE"; + case 519: + return "MODE"; + case 520: + return "MONTH_P"; + case 521: + return "MOVE"; + case 522: + return "NAME_P"; + case 523: + return "NAMES"; + case 524: + return "NATIONAL"; + case 525: + return "NATURAL"; + case 526: + return "NCHAR"; + case 527: + return "NEW"; + case 528: + return "NEXT"; + case 529: + return "NFC"; + case 530: + return "NFD"; + case 531: + return "NFKC"; + case 532: + return "NFKD"; + case 533: + return "NO"; + case 534: + return "NONE"; + case 535: + return "NORMALIZE"; + case 536: + return "NORMALIZED"; + case 537: + return "NOT"; + case 538: + return "NOTHING"; + case 539: + return "NOTIFY"; + case 540: + return "NOTNULL"; + case 541: + return "NOWAIT"; + case 542: + return "NULL_P"; + case 543: + return "NULLIF"; + case 544: + return "NULLS_P"; + case 545: + return "NUMERIC"; + case 546: + return "OBJECT_P"; + case 547: + return "OF"; + case 548: + return "OFF"; + case 549: + return "OFFSET"; + case 550: + return "OIDS"; + case 551: + return "OLD"; + case 552: + return "ON"; + case 553: + return "ONLY"; + case 554: + return "OPERATOR"; + case 555: + return "OPTION"; + case 556: + return "OPTIONS"; + case 557: + return "OR"; + case 558: + return "ORDER"; + case 559: + return "ORDINALITY"; + case 560: + return "OTHERS"; + case 561: + return "OUT_P"; + case 562: + return "OUTER_P"; + case 563: + return "OVER"; + case 564: + return "OVERLAPS"; + case 565: + return "OVERLAY"; + case 566: + return "OVERRIDING"; + case 567: + return "OWNED"; + case 568: + return "OWNER"; + case 569: + return "PARALLEL"; + case 570: + return "PARAMETER"; + case 571: + return "PARSER"; + case 572: + return "PARTIAL"; + case 573: + return "PARTITION"; + case 574: + return "PASSING"; + case 575: + return "PASSWORD"; + case 576: + return "PLACING"; + case 577: + return "PLANS"; + case 578: + return "POLICY"; + case 579: + return "POSITION"; + case 580: + return "PRECEDING"; + case 581: + return "PRECISION"; + case 582: + return "PRESERVE"; + case 583: + return "PREPARE"; + case 584: + return "PREPARED"; + case 585: + return "PRIMARY"; + case 586: + return "PRIOR"; + case 587: + return "PRIVILEGES"; + case 588: + return "PROCEDURAL"; + case 589: + return "PROCEDURE"; + case 590: + return "PROCEDURES"; + case 591: + return "PROGRAM"; + case 592: + return "PUBLICATION"; + case 593: + return "QUOTE"; + case 594: + return "RANGE"; + case 595: + return "READ"; + case 596: + return "REAL"; + case 597: + return "REASSIGN"; + case 598: + return "RECHECK"; + case 599: + return "RECURSIVE"; + case 600: + return "REF_P"; + case 601: + return "REFERENCES"; + case 602: + return "REFERENCING"; + case 603: + return "REFRESH"; + case 604: + return "REINDEX"; + case 605: + return "RELATIVE_P"; + case 606: + return "RELEASE"; + case 607: + return "RENAME"; + case 608: + return "REPEATABLE"; + case 609: + return "REPLACE"; + case 610: + return "REPLICA"; + case 611: + return "RESET"; + case 612: + return "RESTART"; + case 613: + return "RESTRICT"; + case 614: + return "RETURN"; + case 615: + return "RETURNING"; + case 616: + return "RETURNS"; + case 617: + return "REVOKE"; + case 618: + return "RIGHT"; + case 619: + return "ROLE"; + case 620: + return "ROLLBACK"; + case 621: + return "ROLLUP"; + case 622: + return "ROUTINE"; + case 623: + return "ROUTINES"; + case 624: + return "ROW"; + case 625: + return "ROWS"; + case 626: + return "RULE"; + case 627: + return "SAVEPOINT"; + case 628: + return "SCALAR"; + case 629: + return "SCHEMA"; + case 630: + return "SCHEMAS"; + case 631: + return "SCROLL"; + case 632: + return "SEARCH"; + case 633: + return "SECOND_P"; + case 634: + return "SECURITY"; + case 635: + return "SELECT"; + case 636: + return "SEQUENCE"; + case 637: + return "SEQUENCES"; + case 638: + return "SERIALIZABLE"; + case 639: + return "SERVER"; + case 640: + return "SESSION"; + case 641: + return "SESSION_USER"; + case 642: + return "SET"; + case 643: + return "SETS"; + case 644: + return "SETOF"; + case 645: + return "SHARE"; + case 646: + return "SHOW"; + case 647: + return "SIMILAR"; + case 648: + return "SIMPLE"; + case 649: + return "SKIP"; + case 650: + return "SMALLINT"; + case 651: + return "SNAPSHOT"; + case 652: + return "SOME"; + case 653: + return "SQL_P"; + case 654: + return "STABLE"; + case 655: + return "STANDALONE_P"; + case 656: + return "START"; + case 657: + return "STATEMENT"; + case 658: + return "STATISTICS"; + case 659: + return "STDIN"; + case 660: + return "STDOUT"; + case 661: + return "STORAGE"; + case 662: + return "STORED"; + case 663: + return "STRICT_P"; + case 664: + return "STRIP_P"; + case 665: + return "SUBSCRIPTION"; + case 666: + return "SUBSTRING"; + case 667: + return "SUPPORT"; + case 668: + return "SYMMETRIC"; + case 669: + return "SYSID"; + case 670: + return "SYSTEM_P"; + case 671: + return "SYSTEM_USER"; + case 672: + return "TABLE"; + case 673: + return "TABLES"; + case 674: + return "TABLESAMPLE"; + case 675: + return "TABLESPACE"; + case 676: + return "TEMP"; + case 677: + return "TEMPLATE"; + case 678: + return "TEMPORARY"; + case 679: + return "TEXT_P"; + case 680: + return "THEN"; + case 681: + return "TIES"; + case 682: + return "TIME"; + case 683: + return "TIMESTAMP"; + case 684: + return "TO"; + case 685: + return "TRAILING"; + case 686: + return "TRANSACTION"; + case 687: + return "TRANSFORM"; + case 688: + return "TREAT"; + case 689: + return "TRIGGER"; + case 690: + return "TRIM"; + case 691: + return "TRUE_P"; + case 692: + return "TRUNCATE"; + case 693: + return "TRUSTED"; + case 694: + return "TYPE_P"; + case 695: + return "TYPES_P"; + case 696: + return "UESCAPE"; + case 697: + return "UNBOUNDED"; + case 698: + return "UNCOMMITTED"; + case 699: + return "UNENCRYPTED"; + case 700: + return "UNION"; + case 701: + return "UNIQUE"; + case 702: + return "UNKNOWN"; + case 703: + return "UNLISTEN"; + case 704: + return "UNLOGGED"; + case 705: + return "UNTIL"; + case 706: + return "UPDATE"; + case 707: + return "USER"; + case 708: + return "USING"; + case 709: + return "VACUUM"; + case 710: + return "VALID"; + case 711: + return "VALIDATE"; + case 712: + return "VALIDATOR"; + case 713: + return "VALUE_P"; + case 714: + return "VALUES"; + case 715: + return "VARCHAR"; + case 716: + return "VARIADIC"; + case 717: + return "VARYING"; + case 718: + return "VERBOSE"; + case 719: + return "VERSION_P"; + case 720: + return "VIEW"; + case 721: + return "VIEWS"; + case 722: + return "VOLATILE"; + case 723: + return "WHEN"; + case 724: + return "WHERE"; + case 725: + return "WHITESPACE_P"; + case 726: + return "WINDOW"; + case 727: + return "WITH"; + case 728: + return "WITHIN"; + case 729: + return "WITHOUT"; + case 730: + return "WORK"; + case 731: + return "WRAPPER"; + case 732: + return "WRITE"; + case 733: + return "XML_P"; + case 734: + return "XMLATTRIBUTES"; + case 735: + return "XMLCONCAT"; + case 736: + return "XMLELEMENT"; + case 737: + return "XMLEXISTS"; + case 738: + return "XMLFOREST"; + case 739: + return "XMLNAMESPACES"; + case 740: + return "XMLPARSE"; + case 741: + return "XMLPI"; + case 742: + return "XMLROOT"; + case 743: + return "XMLSERIALIZE"; + case 744: + return "XMLTABLE"; + case 745: + return "YEAR_P"; + case 746: + return "YES_P"; + case 747: + return "ZONE"; + case 748: + return "FORMAT_LA"; + case 749: + return "NOT_LA"; + case 750: + return "NULLS_LA"; + case 751: + return "WITH_LA"; + case 752: + return "WITHOUT_LA"; + case 753: + return "MODE_TYPE_NAME"; + case 754: + return "MODE_PLPGSQL_EXPR"; + case 755: + return "MODE_PLPGSQL_ASSIGN1"; + case 756: + return "MODE_PLPGSQL_ASSIGN2"; + case 757: + return "MODE_PLPGSQL_ASSIGN3"; + case 758: + return "UMINUS"; + default: + throw new Error("Value not recognized in enum Token"); + } + } + default: + throw new Error("Enum type not recognized"); + } +};", + "file": "enum-to-string-utils.ts", + }, + { + "code": "/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type EnumType = "OverridingKind" | "QuerySource" | "SortByDir" | "SortByNulls" | "SetQuantifier" | "A_Expr_Kind" | "RoleSpecType" | "TableLikeOption" | "DefElemAction" | "PartitionStrategy" | "PartitionRangeDatumKind" | "RTEKind" | "WCOKind" | "GroupingSetKind" | "CTEMaterialize" | "SetOperation" | "ObjectType" | "DropBehavior" | "AlterTableType" | "GrantTargetType" | "VariableSetKind" | "ConstrType" | "ImportForeignSchemaType" | "RoleStmtType" | "FetchDirection" | "FunctionParameterMode" | "TransactionStmtKind" | "ViewCheckOption" | "DiscardMode" | "ReindexObjectType" | "AlterTSConfigType" | "PublicationObjSpecType" | "AlterPublicationAction" | "AlterSubscriptionType" | "OnCommitAction" | "ParamKind" | "CoercionContext" | "CoercionForm" | "BoolExprType" | "SubLinkType" | "RowCompareType" | "MinMaxOp" | "SQLValueFunctionOp" | "XmlExprOp" | "XmlOptionType" | "JsonEncoding" | "JsonFormatType" | "JsonConstructorType" | "JsonValueType" | "NullTestType" | "BoolTestType" | "CmdType" | "JoinType" | "AggStrategy" | "AggSplit" | "SetOpCmd" | "SetOpStrategy" | "OnConflictAction" | "LimitOption" | "LockClauseStrength" | "LockWaitPolicy" | "LockTupleMode" | "KeywordKind" | "Token"; +export const getEnumInt = (enumType: EnumType, key: string): number => { + switch (enumType) { + case "OverridingKind": + { + switch (key) { + case "OVERRIDING_NOT_SET": + return 0; + case "OVERRIDING_USER_VALUE": + return 1; + case "OVERRIDING_SYSTEM_VALUE": + return 2; + default: + throw new Error("Key not recognized in enum OverridingKind"); + } + } + case "QuerySource": + { + switch (key) { + case "QSRC_ORIGINAL": + return 0; + case "QSRC_PARSER": + return 1; + case "QSRC_INSTEAD_RULE": + return 2; + case "QSRC_QUAL_INSTEAD_RULE": + return 3; + case "QSRC_NON_INSTEAD_RULE": + return 4; + default: + throw new Error("Key not recognized in enum QuerySource"); + } + } + case "SortByDir": + { + switch (key) { + case "SORTBY_DEFAULT": + return 0; + case "SORTBY_ASC": + return 1; + case "SORTBY_DESC": + return 2; + case "SORTBY_USING": + return 3; + default: + throw new Error("Key not recognized in enum SortByDir"); + } + } + case "SortByNulls": + { + switch (key) { + case "SORTBY_NULLS_DEFAULT": + return 0; + case "SORTBY_NULLS_FIRST": + return 1; + case "SORTBY_NULLS_LAST": + return 2; + default: + throw new Error("Key not recognized in enum SortByNulls"); + } + } + case "SetQuantifier": + { + switch (key) { + case "SET_QUANTIFIER_DEFAULT": + return 0; + case "SET_QUANTIFIER_ALL": + return 1; + case "SET_QUANTIFIER_DISTINCT": + return 2; + default: + throw new Error("Key not recognized in enum SetQuantifier"); + } + } + case "A_Expr_Kind": + { + switch (key) { + case "AEXPR_OP": + return 0; + case "AEXPR_OP_ANY": + return 1; + case "AEXPR_OP_ALL": + return 2; + case "AEXPR_DISTINCT": + return 3; + case "AEXPR_NOT_DISTINCT": + return 4; + case "AEXPR_NULLIF": + return 5; + case "AEXPR_IN": + return 6; + case "AEXPR_LIKE": + return 7; + case "AEXPR_ILIKE": + return 8; + case "AEXPR_SIMILAR": + return 9; + case "AEXPR_BETWEEN": + return 10; + case "AEXPR_NOT_BETWEEN": + return 11; + case "AEXPR_BETWEEN_SYM": + return 12; + case "AEXPR_NOT_BETWEEN_SYM": + return 13; + default: + throw new Error("Key not recognized in enum A_Expr_Kind"); + } + } + case "RoleSpecType": + { + switch (key) { + case "ROLESPEC_CSTRING": + return 0; + case "ROLESPEC_CURRENT_ROLE": + return 1; + case "ROLESPEC_CURRENT_USER": + return 2; + case "ROLESPEC_SESSION_USER": + return 3; + case "ROLESPEC_PUBLIC": + return 4; + default: + throw new Error("Key not recognized in enum RoleSpecType"); + } + } + case "TableLikeOption": + { + switch (key) { + case "CREATE_TABLE_LIKE_COMMENTS": + return 0; + case "CREATE_TABLE_LIKE_COMPRESSION": + return 1; + case "CREATE_TABLE_LIKE_CONSTRAINTS": + return 2; + case "CREATE_TABLE_LIKE_DEFAULTS": + return 3; + case "CREATE_TABLE_LIKE_GENERATED": + return 4; + case "CREATE_TABLE_LIKE_IDENTITY": + return 5; + case "CREATE_TABLE_LIKE_INDEXES": + return 6; + case "CREATE_TABLE_LIKE_STATISTICS": + return 7; + case "CREATE_TABLE_LIKE_STORAGE": + return 8; + case "CREATE_TABLE_LIKE_ALL": + return 9; + default: + throw new Error("Key not recognized in enum TableLikeOption"); + } + } + case "DefElemAction": + { + switch (key) { + case "DEFELEM_UNSPEC": + return 0; + case "DEFELEM_SET": + return 1; + case "DEFELEM_ADD": + return 2; + case "DEFELEM_DROP": + return 3; + default: + throw new Error("Key not recognized in enum DefElemAction"); + } + } + case "PartitionStrategy": + { + switch (key) { + case "PARTITION_STRATEGY_LIST": + return 0; + case "PARTITION_STRATEGY_RANGE": + return 1; + case "PARTITION_STRATEGY_HASH": + return 2; + default: + throw new Error("Key not recognized in enum PartitionStrategy"); + } + } + case "PartitionRangeDatumKind": + { + switch (key) { + case "PARTITION_RANGE_DATUM_MINVALUE": + return 0; + case "PARTITION_RANGE_DATUM_VALUE": + return 1; + case "PARTITION_RANGE_DATUM_MAXVALUE": + return 2; + default: + throw new Error("Key not recognized in enum PartitionRangeDatumKind"); + } + } + case "RTEKind": + { + switch (key) { + case "RTE_RELATION": + return 0; + case "RTE_SUBQUERY": + return 1; + case "RTE_JOIN": + return 2; + case "RTE_FUNCTION": + return 3; + case "RTE_TABLEFUNC": + return 4; + case "RTE_VALUES": + return 5; + case "RTE_CTE": + return 6; + case "RTE_NAMEDTUPLESTORE": + return 7; + case "RTE_RESULT": + return 8; + default: + throw new Error("Key not recognized in enum RTEKind"); + } + } + case "WCOKind": + { + switch (key) { + case "WCO_VIEW_CHECK": + return 0; + case "WCO_RLS_INSERT_CHECK": + return 1; + case "WCO_RLS_UPDATE_CHECK": + return 2; + case "WCO_RLS_CONFLICT_CHECK": + return 3; + case "WCO_RLS_MERGE_UPDATE_CHECK": + return 4; + case "WCO_RLS_MERGE_DELETE_CHECK": + return 5; + default: + throw new Error("Key not recognized in enum WCOKind"); + } + } + case "GroupingSetKind": + { + switch (key) { + case "GROUPING_SET_EMPTY": + return 0; + case "GROUPING_SET_SIMPLE": + return 1; + case "GROUPING_SET_ROLLUP": + return 2; + case "GROUPING_SET_CUBE": + return 3; + case "GROUPING_SET_SETS": + return 4; + default: + throw new Error("Key not recognized in enum GroupingSetKind"); + } + } + case "CTEMaterialize": + { + switch (key) { + case "CTEMaterializeDefault": + return 0; + case "CTEMaterializeAlways": + return 1; + case "CTEMaterializeNever": + return 2; + default: + throw new Error("Key not recognized in enum CTEMaterialize"); + } + } + case "SetOperation": + { + switch (key) { + case "SETOP_NONE": + return 0; + case "SETOP_UNION": + return 1; + case "SETOP_INTERSECT": + return 2; + case "SETOP_EXCEPT": + return 3; + default: + throw new Error("Key not recognized in enum SetOperation"); + } + } + case "ObjectType": + { + switch (key) { + case "OBJECT_ACCESS_METHOD": + return 0; + case "OBJECT_AGGREGATE": + return 1; + case "OBJECT_AMOP": + return 2; + case "OBJECT_AMPROC": + return 3; + case "OBJECT_ATTRIBUTE": + return 4; + case "OBJECT_CAST": + return 5; + case "OBJECT_COLUMN": + return 6; + case "OBJECT_COLLATION": + return 7; + case "OBJECT_CONVERSION": + return 8; + case "OBJECT_DATABASE": + return 9; + case "OBJECT_DEFAULT": + return 10; + case "OBJECT_DEFACL": + return 11; + case "OBJECT_DOMAIN": + return 12; + case "OBJECT_DOMCONSTRAINT": + return 13; + case "OBJECT_EVENT_TRIGGER": + return 14; + case "OBJECT_EXTENSION": + return 15; + case "OBJECT_FDW": + return 16; + case "OBJECT_FOREIGN_SERVER": + return 17; + case "OBJECT_FOREIGN_TABLE": + return 18; + case "OBJECT_FUNCTION": + return 19; + case "OBJECT_INDEX": + return 20; + case "OBJECT_LANGUAGE": + return 21; + case "OBJECT_LARGEOBJECT": + return 22; + case "OBJECT_MATVIEW": + return 23; + case "OBJECT_OPCLASS": + return 24; + case "OBJECT_OPERATOR": + return 25; + case "OBJECT_OPFAMILY": + return 26; + case "OBJECT_PARAMETER_ACL": + return 27; + case "OBJECT_POLICY": + return 28; + case "OBJECT_PROCEDURE": + return 29; + case "OBJECT_PUBLICATION": + return 30; + case "OBJECT_PUBLICATION_NAMESPACE": + return 31; + case "OBJECT_PUBLICATION_REL": + return 32; + case "OBJECT_ROLE": + return 33; + case "OBJECT_ROUTINE": + return 34; + case "OBJECT_RULE": + return 35; + case "OBJECT_SCHEMA": + return 36; + case "OBJECT_SEQUENCE": + return 37; + case "OBJECT_SUBSCRIPTION": + return 38; + case "OBJECT_STATISTIC_EXT": + return 39; + case "OBJECT_TABCONSTRAINT": + return 40; + case "OBJECT_TABLE": + return 41; + case "OBJECT_TABLESPACE": + return 42; + case "OBJECT_TRANSFORM": + return 43; + case "OBJECT_TRIGGER": + return 44; + case "OBJECT_TSCONFIGURATION": + return 45; + case "OBJECT_TSDICTIONARY": + return 46; + case "OBJECT_TSPARSER": + return 47; + case "OBJECT_TSTEMPLATE": + return 48; + case "OBJECT_TYPE": + return 49; + case "OBJECT_USER_MAPPING": + return 50; + case "OBJECT_VIEW": + return 51; + default: + throw new Error("Key not recognized in enum ObjectType"); + } + } + case "DropBehavior": + { + switch (key) { + case "DROP_RESTRICT": + return 0; + case "DROP_CASCADE": + return 1; + default: + throw new Error("Key not recognized in enum DropBehavior"); + } + } + case "AlterTableType": + { + switch (key) { + case "AT_AddColumn": + return 0; + case "AT_AddColumnToView": + return 1; + case "AT_ColumnDefault": + return 2; + case "AT_CookedColumnDefault": + return 3; + case "AT_DropNotNull": + return 4; + case "AT_SetNotNull": + return 5; + case "AT_DropExpression": + return 6; + case "AT_CheckNotNull": + return 7; + case "AT_SetStatistics": + return 8; + case "AT_SetOptions": + return 9; + case "AT_ResetOptions": + return 10; + case "AT_SetStorage": + return 11; + case "AT_SetCompression": + return 12; + case "AT_DropColumn": + return 13; + case "AT_AddIndex": + return 14; + case "AT_ReAddIndex": + return 15; + case "AT_AddConstraint": + return 16; + case "AT_ReAddConstraint": + return 17; + case "AT_ReAddDomainConstraint": + return 18; + case "AT_AlterConstraint": + return 19; + case "AT_ValidateConstraint": + return 20; + case "AT_AddIndexConstraint": + return 21; + case "AT_DropConstraint": + return 22; + case "AT_ReAddComment": + return 23; + case "AT_AlterColumnType": + return 24; + case "AT_AlterColumnGenericOptions": + return 25; + case "AT_ChangeOwner": + return 26; + case "AT_ClusterOn": + return 27; + case "AT_DropCluster": + return 28; + case "AT_SetLogged": + return 29; + case "AT_SetUnLogged": + return 30; + case "AT_DropOids": + return 31; + case "AT_SetAccessMethod": + return 32; + case "AT_SetTableSpace": + return 33; + case "AT_SetRelOptions": + return 34; + case "AT_ResetRelOptions": + return 35; + case "AT_ReplaceRelOptions": + return 36; + case "AT_EnableTrig": + return 37; + case "AT_EnableAlwaysTrig": + return 38; + case "AT_EnableReplicaTrig": + return 39; + case "AT_DisableTrig": + return 40; + case "AT_EnableTrigAll": + return 41; + case "AT_DisableTrigAll": + return 42; + case "AT_EnableTrigUser": + return 43; + case "AT_DisableTrigUser": + return 44; + case "AT_EnableRule": + return 45; + case "AT_EnableAlwaysRule": + return 46; + case "AT_EnableReplicaRule": + return 47; + case "AT_DisableRule": + return 48; + case "AT_AddInherit": + return 49; + case "AT_DropInherit": + return 50; + case "AT_AddOf": + return 51; + case "AT_DropOf": + return 52; + case "AT_ReplicaIdentity": + return 53; + case "AT_EnableRowSecurity": + return 54; + case "AT_DisableRowSecurity": + return 55; + case "AT_ForceRowSecurity": + return 56; + case "AT_NoForceRowSecurity": + return 57; + case "AT_GenericOptions": + return 58; + case "AT_AttachPartition": + return 59; + case "AT_DetachPartition": + return 60; + case "AT_DetachPartitionFinalize": + return 61; + case "AT_AddIdentity": + return 62; + case "AT_SetIdentity": + return 63; + case "AT_DropIdentity": + return 64; + case "AT_ReAddStatistics": + return 65; + default: + throw new Error("Key not recognized in enum AlterTableType"); + } + } + case "GrantTargetType": + { + switch (key) { + case "ACL_TARGET_OBJECT": + return 0; + case "ACL_TARGET_ALL_IN_SCHEMA": + return 1; + case "ACL_TARGET_DEFAULTS": + return 2; + default: + throw new Error("Key not recognized in enum GrantTargetType"); + } + } + case "VariableSetKind": + { + switch (key) { + case "VAR_SET_VALUE": + return 0; + case "VAR_SET_DEFAULT": + return 1; + case "VAR_SET_CURRENT": + return 2; + case "VAR_SET_MULTI": + return 3; + case "VAR_RESET": + return 4; + case "VAR_RESET_ALL": + return 5; + default: + throw new Error("Key not recognized in enum VariableSetKind"); + } + } + case "ConstrType": + { + switch (key) { + case "CONSTR_NULL": + return 0; + case "CONSTR_NOTNULL": + return 1; + case "CONSTR_DEFAULT": + return 2; + case "CONSTR_IDENTITY": + return 3; + case "CONSTR_GENERATED": + return 4; + case "CONSTR_CHECK": + return 5; + case "CONSTR_PRIMARY": + return 6; + case "CONSTR_UNIQUE": + return 7; + case "CONSTR_EXCLUSION": + return 8; + case "CONSTR_FOREIGN": + return 9; + case "CONSTR_ATTR_DEFERRABLE": + return 10; + case "CONSTR_ATTR_NOT_DEFERRABLE": + return 11; + case "CONSTR_ATTR_DEFERRED": + return 12; + case "CONSTR_ATTR_IMMEDIATE": + return 13; + default: + throw new Error("Key not recognized in enum ConstrType"); + } + } + case "ImportForeignSchemaType": + { + switch (key) { + case "FDW_IMPORT_SCHEMA_ALL": + return 0; + case "FDW_IMPORT_SCHEMA_LIMIT_TO": + return 1; + case "FDW_IMPORT_SCHEMA_EXCEPT": + return 2; + default: + throw new Error("Key not recognized in enum ImportForeignSchemaType"); + } + } + case "RoleStmtType": + { + switch (key) { + case "ROLESTMT_ROLE": + return 0; + case "ROLESTMT_USER": + return 1; + case "ROLESTMT_GROUP": + return 2; + default: + throw new Error("Key not recognized in enum RoleStmtType"); + } + } + case "FetchDirection": + { + switch (key) { + case "FETCH_FORWARD": + return 0; + case "FETCH_BACKWARD": + return 1; + case "FETCH_ABSOLUTE": + return 2; + case "FETCH_RELATIVE": + return 3; + default: + throw new Error("Key not recognized in enum FetchDirection"); + } + } + case "FunctionParameterMode": + { + switch (key) { + case "FUNC_PARAM_IN": + return 0; + case "FUNC_PARAM_OUT": + return 1; + case "FUNC_PARAM_INOUT": + return 2; + case "FUNC_PARAM_VARIADIC": + return 3; + case "FUNC_PARAM_TABLE": + return 4; + case "FUNC_PARAM_DEFAULT": + return 5; + default: + throw new Error("Key not recognized in enum FunctionParameterMode"); + } + } + case "TransactionStmtKind": + { + switch (key) { + case "TRANS_STMT_BEGIN": + return 0; + case "TRANS_STMT_START": + return 1; + case "TRANS_STMT_COMMIT": + return 2; + case "TRANS_STMT_ROLLBACK": + return 3; + case "TRANS_STMT_SAVEPOINT": + return 4; + case "TRANS_STMT_RELEASE": + return 5; + case "TRANS_STMT_ROLLBACK_TO": + return 6; + case "TRANS_STMT_PREPARE": + return 7; + case "TRANS_STMT_COMMIT_PREPARED": + return 8; + case "TRANS_STMT_ROLLBACK_PREPARED": + return 9; + default: + throw new Error("Key not recognized in enum TransactionStmtKind"); + } + } + case "ViewCheckOption": + { + switch (key) { + case "NO_CHECK_OPTION": + return 0; + case "LOCAL_CHECK_OPTION": + return 1; + case "CASCADED_CHECK_OPTION": + return 2; + default: + throw new Error("Key not recognized in enum ViewCheckOption"); + } + } + case "DiscardMode": + { + switch (key) { + case "DISCARD_ALL": + return 0; + case "DISCARD_PLANS": + return 1; + case "DISCARD_SEQUENCES": + return 2; + case "DISCARD_TEMP": + return 3; + default: + throw new Error("Key not recognized in enum DiscardMode"); + } + } + case "ReindexObjectType": + { + switch (key) { + case "REINDEX_OBJECT_INDEX": + return 0; + case "REINDEX_OBJECT_TABLE": + return 1; + case "REINDEX_OBJECT_SCHEMA": + return 2; + case "REINDEX_OBJECT_SYSTEM": + return 3; + case "REINDEX_OBJECT_DATABASE": + return 4; + default: + throw new Error("Key not recognized in enum ReindexObjectType"); + } + } + case "AlterTSConfigType": + { + switch (key) { + case "ALTER_TSCONFIG_ADD_MAPPING": + return 0; + case "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN": + return 1; + case "ALTER_TSCONFIG_REPLACE_DICT": + return 2; + case "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN": + return 3; + case "ALTER_TSCONFIG_DROP_MAPPING": + return 4; + default: + throw new Error("Key not recognized in enum AlterTSConfigType"); + } + } + case "PublicationObjSpecType": + { + switch (key) { + case "PUBLICATIONOBJ_TABLE": + return 0; + case "PUBLICATIONOBJ_TABLES_IN_SCHEMA": + return 1; + case "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA": + return 2; + case "PUBLICATIONOBJ_CONTINUATION": + return 3; + default: + throw new Error("Key not recognized in enum PublicationObjSpecType"); + } + } + case "AlterPublicationAction": + { + switch (key) { + case "AP_AddObjects": + return 0; + case "AP_DropObjects": + return 1; + case "AP_SetObjects": + return 2; + default: + throw new Error("Key not recognized in enum AlterPublicationAction"); + } + } + case "AlterSubscriptionType": + { + switch (key) { + case "ALTER_SUBSCRIPTION_OPTIONS": + return 0; + case "ALTER_SUBSCRIPTION_CONNECTION": + return 1; + case "ALTER_SUBSCRIPTION_SET_PUBLICATION": + return 2; + case "ALTER_SUBSCRIPTION_ADD_PUBLICATION": + return 3; + case "ALTER_SUBSCRIPTION_DROP_PUBLICATION": + return 4; + case "ALTER_SUBSCRIPTION_REFRESH": + return 5; + case "ALTER_SUBSCRIPTION_ENABLED": + return 6; + case "ALTER_SUBSCRIPTION_SKIP": + return 7; + default: + throw new Error("Key not recognized in enum AlterSubscriptionType"); + } + } + case "OnCommitAction": + { + switch (key) { + case "ONCOMMIT_NOOP": + return 0; + case "ONCOMMIT_PRESERVE_ROWS": + return 1; + case "ONCOMMIT_DELETE_ROWS": + return 2; + case "ONCOMMIT_DROP": + return 3; + default: + throw new Error("Key not recognized in enum OnCommitAction"); + } + } + case "ParamKind": + { + switch (key) { + case "PARAM_EXTERN": + return 0; + case "PARAM_EXEC": + return 1; + case "PARAM_SUBLINK": + return 2; + case "PARAM_MULTIEXPR": + return 3; + default: + throw new Error("Key not recognized in enum ParamKind"); + } + } + case "CoercionContext": + { + switch (key) { + case "COERCION_IMPLICIT": + return 0; + case "COERCION_ASSIGNMENT": + return 1; + case "COERCION_PLPGSQL": + return 2; + case "COERCION_EXPLICIT": + return 3; + default: + throw new Error("Key not recognized in enum CoercionContext"); + } + } + case "CoercionForm": + { + switch (key) { + case "COERCE_EXPLICIT_CALL": + return 0; + case "COERCE_EXPLICIT_CAST": + return 1; + case "COERCE_IMPLICIT_CAST": + return 2; + case "COERCE_SQL_SYNTAX": + return 3; + default: + throw new Error("Key not recognized in enum CoercionForm"); + } + } + case "BoolExprType": + { + switch (key) { + case "AND_EXPR": + return 0; + case "OR_EXPR": + return 1; + case "NOT_EXPR": + return 2; + default: + throw new Error("Key not recognized in enum BoolExprType"); + } + } + case "SubLinkType": + { + switch (key) { + case "EXISTS_SUBLINK": + return 0; + case "ALL_SUBLINK": + return 1; + case "ANY_SUBLINK": + return 2; + case "ROWCOMPARE_SUBLINK": + return 3; + case "EXPR_SUBLINK": + return 4; + case "MULTIEXPR_SUBLINK": + return 5; + case "ARRAY_SUBLINK": + return 6; + case "CTE_SUBLINK": + return 7; + default: + throw new Error("Key not recognized in enum SubLinkType"); + } + } + case "RowCompareType": + { + switch (key) { + case "ROWCOMPARE_LT": + return 0; + case "ROWCOMPARE_LE": + return 1; + case "ROWCOMPARE_EQ": + return 2; + case "ROWCOMPARE_GE": + return 3; + case "ROWCOMPARE_GT": + return 4; + case "ROWCOMPARE_NE": + return 5; + default: + throw new Error("Key not recognized in enum RowCompareType"); + } + } + case "MinMaxOp": + { + switch (key) { + case "IS_GREATEST": + return 0; + case "IS_LEAST": + return 1; + default: + throw new Error("Key not recognized in enum MinMaxOp"); + } + } + case "SQLValueFunctionOp": + { + switch (key) { + case "SVFOP_CURRENT_DATE": + return 0; + case "SVFOP_CURRENT_TIME": + return 1; + case "SVFOP_CURRENT_TIME_N": + return 2; + case "SVFOP_CURRENT_TIMESTAMP": + return 3; + case "SVFOP_CURRENT_TIMESTAMP_N": + return 4; + case "SVFOP_LOCALTIME": + return 5; + case "SVFOP_LOCALTIME_N": + return 6; + case "SVFOP_LOCALTIMESTAMP": + return 7; + case "SVFOP_LOCALTIMESTAMP_N": + return 8; + case "SVFOP_CURRENT_ROLE": + return 9; + case "SVFOP_CURRENT_USER": + return 10; + case "SVFOP_USER": + return 11; + case "SVFOP_SESSION_USER": + return 12; + case "SVFOP_CURRENT_CATALOG": + return 13; + case "SVFOP_CURRENT_SCHEMA": + return 14; + default: + throw new Error("Key not recognized in enum SQLValueFunctionOp"); + } + } + case "XmlExprOp": + { + switch (key) { + case "IS_XMLCONCAT": + return 0; + case "IS_XMLELEMENT": + return 1; + case "IS_XMLFOREST": + return 2; + case "IS_XMLPARSE": + return 3; + case "IS_XMLPI": + return 4; + case "IS_XMLROOT": + return 5; + case "IS_XMLSERIALIZE": + return 6; + case "IS_DOCUMENT": + return 7; + default: + throw new Error("Key not recognized in enum XmlExprOp"); + } + } + case "XmlOptionType": + { + switch (key) { + case "XMLOPTION_DOCUMENT": + return 0; + case "XMLOPTION_CONTENT": + return 1; + default: + throw new Error("Key not recognized in enum XmlOptionType"); + } + } + case "JsonEncoding": + { + switch (key) { + case "JS_ENC_DEFAULT": + return 0; + case "JS_ENC_UTF8": + return 1; + case "JS_ENC_UTF16": + return 2; + case "JS_ENC_UTF32": + return 3; + default: + throw new Error("Key not recognized in enum JsonEncoding"); + } + } + case "JsonFormatType": + { + switch (key) { + case "JS_FORMAT_DEFAULT": + return 0; + case "JS_FORMAT_JSON": + return 1; + case "JS_FORMAT_JSONB": + return 2; + default: + throw new Error("Key not recognized in enum JsonFormatType"); + } + } + case "JsonConstructorType": + { + switch (key) { + case "JSCTOR_JSON_OBJECT": + return 0; + case "JSCTOR_JSON_ARRAY": + return 1; + case "JSCTOR_JSON_OBJECTAGG": + return 2; + case "JSCTOR_JSON_ARRAYAGG": + return 3; + default: + throw new Error("Key not recognized in enum JsonConstructorType"); + } + } + case "JsonValueType": + { + switch (key) { + case "JS_TYPE_ANY": + return 0; + case "JS_TYPE_OBJECT": + return 1; + case "JS_TYPE_ARRAY": + return 2; + case "JS_TYPE_SCALAR": + return 3; + default: + throw new Error("Key not recognized in enum JsonValueType"); + } + } + case "NullTestType": + { + switch (key) { + case "IS_NULL": + return 0; + case "IS_NOT_NULL": + return 1; + default: + throw new Error("Key not recognized in enum NullTestType"); + } + } + case "BoolTestType": + { + switch (key) { + case "IS_TRUE": + return 0; + case "IS_NOT_TRUE": + return 1; + case "IS_FALSE": + return 2; + case "IS_NOT_FALSE": + return 3; + case "IS_UNKNOWN": + return 4; + case "IS_NOT_UNKNOWN": + return 5; + default: + throw new Error("Key not recognized in enum BoolTestType"); + } + } + case "CmdType": + { + switch (key) { + case "CMD_UNKNOWN": + return 0; + case "CMD_SELECT": + return 1; + case "CMD_UPDATE": + return 2; + case "CMD_INSERT": + return 3; + case "CMD_DELETE": + return 4; + case "CMD_MERGE": + return 5; + case "CMD_UTILITY": + return 6; + case "CMD_NOTHING": + return 7; + default: + throw new Error("Key not recognized in enum CmdType"); + } + } + case "JoinType": + { + switch (key) { + case "JOIN_INNER": + return 0; + case "JOIN_LEFT": + return 1; + case "JOIN_FULL": + return 2; + case "JOIN_RIGHT": + return 3; + case "JOIN_SEMI": + return 4; + case "JOIN_ANTI": + return 5; + case "JOIN_RIGHT_ANTI": + return 6; + case "JOIN_UNIQUE_OUTER": + return 7; + case "JOIN_UNIQUE_INNER": + return 8; + default: + throw new Error("Key not recognized in enum JoinType"); + } + } + case "AggStrategy": + { + switch (key) { + case "AGG_PLAIN": + return 0; + case "AGG_SORTED": + return 1; + case "AGG_HASHED": + return 2; + case "AGG_MIXED": + return 3; + default: + throw new Error("Key not recognized in enum AggStrategy"); + } + } + case "AggSplit": + { + switch (key) { + case "AGGSPLIT_SIMPLE": + return 0; + case "AGGSPLIT_INITIAL_SERIAL": + return 1; + case "AGGSPLIT_FINAL_DESERIAL": + return 2; + default: + throw new Error("Key not recognized in enum AggSplit"); + } + } + case "SetOpCmd": + { + switch (key) { + case "SETOPCMD_INTERSECT": + return 0; + case "SETOPCMD_INTERSECT_ALL": + return 1; + case "SETOPCMD_EXCEPT": + return 2; + case "SETOPCMD_EXCEPT_ALL": + return 3; + default: + throw new Error("Key not recognized in enum SetOpCmd"); + } + } + case "SetOpStrategy": + { + switch (key) { + case "SETOP_SORTED": + return 0; + case "SETOP_HASHED": + return 1; + default: + throw new Error("Key not recognized in enum SetOpStrategy"); + } + } + case "OnConflictAction": + { + switch (key) { + case "ONCONFLICT_NONE": + return 0; + case "ONCONFLICT_NOTHING": + return 1; + case "ONCONFLICT_UPDATE": + return 2; + default: + throw new Error("Key not recognized in enum OnConflictAction"); + } + } + case "LimitOption": + { + switch (key) { + case "LIMIT_OPTION_DEFAULT": + return 0; + case "LIMIT_OPTION_COUNT": + return 1; + case "LIMIT_OPTION_WITH_TIES": + return 2; + default: + throw new Error("Key not recognized in enum LimitOption"); + } + } + case "LockClauseStrength": + { + switch (key) { + case "LCS_NONE": + return 0; + case "LCS_FORKEYSHARE": + return 1; + case "LCS_FORSHARE": + return 2; + case "LCS_FORNOKEYUPDATE": + return 3; + case "LCS_FORUPDATE": + return 4; + default: + throw new Error("Key not recognized in enum LockClauseStrength"); + } + } + case "LockWaitPolicy": + { + switch (key) { + case "LockWaitBlock": + return 0; + case "LockWaitSkip": + return 1; + case "LockWaitError": + return 2; + default: + throw new Error("Key not recognized in enum LockWaitPolicy"); + } + } + case "LockTupleMode": + { + switch (key) { + case "LockTupleKeyShare": + return 0; + case "LockTupleShare": + return 1; + case "LockTupleNoKeyExclusive": + return 2; + case "LockTupleExclusive": + return 3; + default: + throw new Error("Key not recognized in enum LockTupleMode"); + } + } + case "KeywordKind": + { + switch (key) { + case "NO_KEYWORD": + return 0; + case "UNRESERVED_KEYWORD": + return 1; + case "COL_NAME_KEYWORD": + return 2; + case "TYPE_FUNC_NAME_KEYWORD": + return 3; + case "RESERVED_KEYWORD": + return 4; + default: + throw new Error("Key not recognized in enum KeywordKind"); + } + } + case "Token": + { + switch (key) { + case "NUL": + return 0; + case "ASCII_36": + return 36; + case "ASCII_37": + return 37; + case "ASCII_40": + return 40; + case "ASCII_41": + return 41; + case "ASCII_42": + return 42; + case "ASCII_43": + return 43; + case "ASCII_44": + return 44; + case "ASCII_45": + return 45; + case "ASCII_46": + return 46; + case "ASCII_47": + return 47; + case "ASCII_58": + return 58; + case "ASCII_59": + return 59; + case "ASCII_60": + return 60; + case "ASCII_61": + return 61; + case "ASCII_62": + return 62; + case "ASCII_63": + return 63; + case "ASCII_91": + return 91; + case "ASCII_92": + return 92; + case "ASCII_93": + return 93; + case "ASCII_94": + return 94; + case "IDENT": + return 258; + case "UIDENT": + return 259; + case "FCONST": + return 260; + case "SCONST": + return 261; + case "USCONST": + return 262; + case "BCONST": + return 263; + case "XCONST": + return 264; + case "Op": + return 265; + case "ICONST": + return 266; + case "PARAM": + return 267; + case "TYPECAST": + return 268; + case "DOT_DOT": + return 269; + case "COLON_EQUALS": + return 270; + case "EQUALS_GREATER": + return 271; + case "LESS_EQUALS": + return 272; + case "GREATER_EQUALS": + return 273; + case "NOT_EQUALS": + return 274; + case "SQL_COMMENT": + return 275; + case "C_COMMENT": + return 276; + case "ABORT_P": + return 277; + case "ABSENT": + return 278; + case "ABSOLUTE_P": + return 279; + case "ACCESS": + return 280; + case "ACTION": + return 281; + case "ADD_P": + return 282; + case "ADMIN": + return 283; + case "AFTER": + return 284; + case "AGGREGATE": + return 285; + case "ALL": + return 286; + case "ALSO": + return 287; + case "ALTER": + return 288; + case "ALWAYS": + return 289; + case "ANALYSE": + return 290; + case "ANALYZE": + return 291; + case "AND": + return 292; + case "ANY": + return 293; + case "ARRAY": + return 294; + case "AS": + return 295; + case "ASC": + return 296; + case "ASENSITIVE": + return 297; + case "ASSERTION": + return 298; + case "ASSIGNMENT": + return 299; + case "ASYMMETRIC": + return 300; + case "ATOMIC": + return 301; + case "AT": + return 302; + case "ATTACH": + return 303; + case "ATTRIBUTE": + return 304; + case "AUTHORIZATION": + return 305; + case "BACKWARD": + return 306; + case "BEFORE": + return 307; + case "BEGIN_P": + return 308; + case "BETWEEN": + return 309; + case "BIGINT": + return 310; + case "BINARY": + return 311; + case "BIT": + return 312; + case "BOOLEAN_P": + return 313; + case "BOTH": + return 314; + case "BREADTH": + return 315; + case "BY": + return 316; + case "CACHE": + return 317; + case "CALL": + return 318; + case "CALLED": + return 319; + case "CASCADE": + return 320; + case "CASCADED": + return 321; + case "CASE": + return 322; + case "CAST": + return 323; + case "CATALOG_P": + return 324; + case "CHAIN": + return 325; + case "CHAR_P": + return 326; + case "CHARACTER": + return 327; + case "CHARACTERISTICS": + return 328; + case "CHECK": + return 329; + case "CHECKPOINT": + return 330; + case "CLASS": + return 331; + case "CLOSE": + return 332; + case "CLUSTER": + return 333; + case "COALESCE": + return 334; + case "COLLATE": + return 335; + case "COLLATION": + return 336; + case "COLUMN": + return 337; + case "COLUMNS": + return 338; + case "COMMENT": + return 339; + case "COMMENTS": + return 340; + case "COMMIT": + return 341; + case "COMMITTED": + return 342; + case "COMPRESSION": + return 343; + case "CONCURRENTLY": + return 344; + case "CONFIGURATION": + return 345; + case "CONFLICT": + return 346; + case "CONNECTION": + return 347; + case "CONSTRAINT": + return 348; + case "CONSTRAINTS": + return 349; + case "CONTENT_P": + return 350; + case "CONTINUE_P": + return 351; + case "CONVERSION_P": + return 352; + case "COPY": + return 353; + case "COST": + return 354; + case "CREATE": + return 355; + case "CROSS": + return 356; + case "CSV": + return 357; + case "CUBE": + return 358; + case "CURRENT_P": + return 359; + case "CURRENT_CATALOG": + return 360; + case "CURRENT_DATE": + return 361; + case "CURRENT_ROLE": + return 362; + case "CURRENT_SCHEMA": + return 363; + case "CURRENT_TIME": + return 364; + case "CURRENT_TIMESTAMP": + return 365; + case "CURRENT_USER": + return 366; + case "CURSOR": + return 367; + case "CYCLE": + return 368; + case "DATA_P": + return 369; + case "DATABASE": + return 370; + case "DAY_P": + return 371; + case "DEALLOCATE": + return 372; + case "DEC": + return 373; + case "DECIMAL_P": + return 374; + case "DECLARE": + return 375; + case "DEFAULT": + return 376; + case "DEFAULTS": + return 377; + case "DEFERRABLE": + return 378; + case "DEFERRED": + return 379; + case "DEFINER": + return 380; + case "DELETE_P": + return 381; + case "DELIMITER": + return 382; + case "DELIMITERS": + return 383; + case "DEPENDS": + return 384; + case "DEPTH": + return 385; + case "DESC": + return 386; + case "DETACH": + return 387; + case "DICTIONARY": + return 388; + case "DISABLE_P": + return 389; + case "DISCARD": + return 390; + case "DISTINCT": + return 391; + case "DO": + return 392; + case "DOCUMENT_P": + return 393; + case "DOMAIN_P": + return 394; + case "DOUBLE_P": + return 395; + case "DROP": + return 396; + case "EACH": + return 397; + case "ELSE": + return 398; + case "ENABLE_P": + return 399; + case "ENCODING": + return 400; + case "ENCRYPTED": + return 401; + case "END_P": + return 402; + case "ENUM_P": + return 403; + case "ESCAPE": + return 404; + case "EVENT": + return 405; + case "EXCEPT": + return 406; + case "EXCLUDE": + return 407; + case "EXCLUDING": + return 408; + case "EXCLUSIVE": + return 409; + case "EXECUTE": + return 410; + case "EXISTS": + return 411; + case "EXPLAIN": + return 412; + case "EXPRESSION": + return 413; + case "EXTENSION": + return 414; + case "EXTERNAL": + return 415; + case "EXTRACT": + return 416; + case "FALSE_P": + return 417; + case "FAMILY": + return 418; + case "FETCH": + return 419; + case "FILTER": + return 420; + case "FINALIZE": + return 421; + case "FIRST_P": + return 422; + case "FLOAT_P": + return 423; + case "FOLLOWING": + return 424; + case "FOR": + return 425; + case "FORCE": + return 426; + case "FOREIGN": + return 427; + case "FORMAT": + return 428; + case "FORWARD": + return 429; + case "FREEZE": + return 430; + case "FROM": + return 431; + case "FULL": + return 432; + case "FUNCTION": + return 433; + case "FUNCTIONS": + return 434; + case "GENERATED": + return 435; + case "GLOBAL": + return 436; + case "GRANT": + return 437; + case "GRANTED": + return 438; + case "GREATEST": + return 439; + case "GROUP_P": + return 440; + case "GROUPING": + return 441; + case "GROUPS": + return 442; + case "HANDLER": + return 443; + case "HAVING": + return 444; + case "HEADER_P": + return 445; + case "HOLD": + return 446; + case "HOUR_P": + return 447; + case "IDENTITY_P": + return 448; + case "IF_P": + return 449; + case "ILIKE": + return 450; + case "IMMEDIATE": + return 451; + case "IMMUTABLE": + return 452; + case "IMPLICIT_P": + return 453; + case "IMPORT_P": + return 454; + case "IN_P": + return 455; + case "INCLUDE": + return 456; + case "INCLUDING": + return 457; + case "INCREMENT": + return 458; + case "INDENT": + return 459; + case "INDEX": + return 460; + case "INDEXES": + return 461; + case "INHERIT": + return 462; + case "INHERITS": + return 463; + case "INITIALLY": + return 464; + case "INLINE_P": + return 465; + case "INNER_P": + return 466; + case "INOUT": + return 467; + case "INPUT_P": + return 468; + case "INSENSITIVE": + return 469; + case "INSERT": + return 470; + case "INSTEAD": + return 471; + case "INT_P": + return 472; + case "INTEGER": + return 473; + case "INTERSECT": + return 474; + case "INTERVAL": + return 475; + case "INTO": + return 476; + case "INVOKER": + return 477; + case "IS": + return 478; + case "ISNULL": + return 479; + case "ISOLATION": + return 480; + case "JOIN": + return 481; + case "JSON": + return 482; + case "JSON_ARRAY": + return 483; + case "JSON_ARRAYAGG": + return 484; + case "JSON_OBJECT": + return 485; + case "JSON_OBJECTAGG": + return 486; + case "KEY": + return 487; + case "KEYS": + return 488; + case "LABEL": + return 489; + case "LANGUAGE": + return 490; + case "LARGE_P": + return 491; + case "LAST_P": + return 492; + case "LATERAL_P": + return 493; + case "LEADING": + return 494; + case "LEAKPROOF": + return 495; + case "LEAST": + return 496; + case "LEFT": + return 497; + case "LEVEL": + return 498; + case "LIKE": + return 499; + case "LIMIT": + return 500; + case "LISTEN": + return 501; + case "LOAD": + return 502; + case "LOCAL": + return 503; + case "LOCALTIME": + return 504; + case "LOCALTIMESTAMP": + return 505; + case "LOCATION": + return 506; + case "LOCK_P": + return 507; + case "LOCKED": + return 508; + case "LOGGED": + return 509; + case "MAPPING": + return 510; + case "MATCH": + return 511; + case "MATCHED": + return 512; + case "MATERIALIZED": + return 513; + case "MAXVALUE": + return 514; + case "MERGE": + return 515; + case "METHOD": + return 516; + case "MINUTE_P": + return 517; + case "MINVALUE": + return 518; + case "MODE": + return 519; + case "MONTH_P": + return 520; + case "MOVE": + return 521; + case "NAME_P": + return 522; + case "NAMES": + return 523; + case "NATIONAL": + return 524; + case "NATURAL": + return 525; + case "NCHAR": + return 526; + case "NEW": + return 527; + case "NEXT": + return 528; + case "NFC": + return 529; + case "NFD": + return 530; + case "NFKC": + return 531; + case "NFKD": + return 532; + case "NO": + return 533; + case "NONE": + return 534; + case "NORMALIZE": + return 535; + case "NORMALIZED": + return 536; + case "NOT": + return 537; + case "NOTHING": + return 538; + case "NOTIFY": + return 539; + case "NOTNULL": + return 540; + case "NOWAIT": + return 541; + case "NULL_P": + return 542; + case "NULLIF": + return 543; + case "NULLS_P": + return 544; + case "NUMERIC": + return 545; + case "OBJECT_P": + return 546; + case "OF": + return 547; + case "OFF": + return 548; + case "OFFSET": + return 549; + case "OIDS": + return 550; + case "OLD": + return 551; + case "ON": + return 552; + case "ONLY": + return 553; + case "OPERATOR": + return 554; + case "OPTION": + return 555; + case "OPTIONS": + return 556; + case "OR": + return 557; + case "ORDER": + return 558; + case "ORDINALITY": + return 559; + case "OTHERS": + return 560; + case "OUT_P": + return 561; + case "OUTER_P": + return 562; + case "OVER": + return 563; + case "OVERLAPS": + return 564; + case "OVERLAY": + return 565; + case "OVERRIDING": + return 566; + case "OWNED": + return 567; + case "OWNER": + return 568; + case "PARALLEL": + return 569; + case "PARAMETER": + return 570; + case "PARSER": + return 571; + case "PARTIAL": + return 572; + case "PARTITION": + return 573; + case "PASSING": + return 574; + case "PASSWORD": + return 575; + case "PLACING": + return 576; + case "PLANS": + return 577; + case "POLICY": + return 578; + case "POSITION": + return 579; + case "PRECEDING": + return 580; + case "PRECISION": + return 581; + case "PRESERVE": + return 582; + case "PREPARE": + return 583; + case "PREPARED": + return 584; + case "PRIMARY": + return 585; + case "PRIOR": + return 586; + case "PRIVILEGES": + return 587; + case "PROCEDURAL": + return 588; + case "PROCEDURE": + return 589; + case "PROCEDURES": + return 590; + case "PROGRAM": + return 591; + case "PUBLICATION": + return 592; + case "QUOTE": + return 593; + case "RANGE": + return 594; + case "READ": + return 595; + case "REAL": + return 596; + case "REASSIGN": + return 597; + case "RECHECK": + return 598; + case "RECURSIVE": + return 599; + case "REF_P": + return 600; + case "REFERENCES": + return 601; + case "REFERENCING": + return 602; + case "REFRESH": + return 603; + case "REINDEX": + return 604; + case "RELATIVE_P": + return 605; + case "RELEASE": + return 606; + case "RENAME": + return 607; + case "REPEATABLE": + return 608; + case "REPLACE": + return 609; + case "REPLICA": + return 610; + case "RESET": + return 611; + case "RESTART": + return 612; + case "RESTRICT": + return 613; + case "RETURN": + return 614; + case "RETURNING": + return 615; + case "RETURNS": + return 616; + case "REVOKE": + return 617; + case "RIGHT": + return 618; + case "ROLE": + return 619; + case "ROLLBACK": + return 620; + case "ROLLUP": + return 621; + case "ROUTINE": + return 622; + case "ROUTINES": + return 623; + case "ROW": + return 624; + case "ROWS": + return 625; + case "RULE": + return 626; + case "SAVEPOINT": + return 627; + case "SCALAR": + return 628; + case "SCHEMA": + return 629; + case "SCHEMAS": + return 630; + case "SCROLL": + return 631; + case "SEARCH": + return 632; + case "SECOND_P": + return 633; + case "SECURITY": + return 634; + case "SELECT": + return 635; + case "SEQUENCE": + return 636; + case "SEQUENCES": + return 637; + case "SERIALIZABLE": + return 638; + case "SERVER": + return 639; + case "SESSION": + return 640; + case "SESSION_USER": + return 641; + case "SET": + return 642; + case "SETS": + return 643; + case "SETOF": + return 644; + case "SHARE": + return 645; + case "SHOW": + return 646; + case "SIMILAR": + return 647; + case "SIMPLE": + return 648; + case "SKIP": + return 649; + case "SMALLINT": + return 650; + case "SNAPSHOT": + return 651; + case "SOME": + return 652; + case "SQL_P": + return 653; + case "STABLE": + return 654; + case "STANDALONE_P": + return 655; + case "START": + return 656; + case "STATEMENT": + return 657; + case "STATISTICS": + return 658; + case "STDIN": + return 659; + case "STDOUT": + return 660; + case "STORAGE": + return 661; + case "STORED": + return 662; + case "STRICT_P": + return 663; + case "STRIP_P": + return 664; + case "SUBSCRIPTION": + return 665; + case "SUBSTRING": + return 666; + case "SUPPORT": + return 667; + case "SYMMETRIC": + return 668; + case "SYSID": + return 669; + case "SYSTEM_P": + return 670; + case "SYSTEM_USER": + return 671; + case "TABLE": + return 672; + case "TABLES": + return 673; + case "TABLESAMPLE": + return 674; + case "TABLESPACE": + return 675; + case "TEMP": + return 676; + case "TEMPLATE": + return 677; + case "TEMPORARY": + return 678; + case "TEXT_P": + return 679; + case "THEN": + return 680; + case "TIES": + return 681; + case "TIME": + return 682; + case "TIMESTAMP": + return 683; + case "TO": + return 684; + case "TRAILING": + return 685; + case "TRANSACTION": + return 686; + case "TRANSFORM": + return 687; + case "TREAT": + return 688; + case "TRIGGER": + return 689; + case "TRIM": + return 690; + case "TRUE_P": + return 691; + case "TRUNCATE": + return 692; + case "TRUSTED": + return 693; + case "TYPE_P": + return 694; + case "TYPES_P": + return 695; + case "UESCAPE": + return 696; + case "UNBOUNDED": + return 697; + case "UNCOMMITTED": + return 698; + case "UNENCRYPTED": + return 699; + case "UNION": + return 700; + case "UNIQUE": + return 701; + case "UNKNOWN": + return 702; + case "UNLISTEN": + return 703; + case "UNLOGGED": + return 704; + case "UNTIL": + return 705; + case "UPDATE": + return 706; + case "USER": + return 707; + case "USING": + return 708; + case "VACUUM": + return 709; + case "VALID": + return 710; + case "VALIDATE": + return 711; + case "VALIDATOR": + return 712; + case "VALUE_P": + return 713; + case "VALUES": + return 714; + case "VARCHAR": + return 715; + case "VARIADIC": + return 716; + case "VARYING": + return 717; + case "VERBOSE": + return 718; + case "VERSION_P": + return 719; + case "VIEW": + return 720; + case "VIEWS": + return 721; + case "VOLATILE": + return 722; + case "WHEN": + return 723; + case "WHERE": + return 724; + case "WHITESPACE_P": + return 725; + case "WINDOW": + return 726; + case "WITH": + return 727; + case "WITHIN": + return 728; + case "WITHOUT": + return 729; + case "WORK": + return 730; + case "WRAPPER": + return 731; + case "WRITE": + return 732; + case "XML_P": + return 733; + case "XMLATTRIBUTES": + return 734; + case "XMLCONCAT": + return 735; + case "XMLELEMENT": + return 736; + case "XMLEXISTS": + return 737; + case "XMLFOREST": + return 738; + case "XMLNAMESPACES": + return 739; + case "XMLPARSE": + return 740; + case "XMLPI": + return 741; + case "XMLROOT": + return 742; + case "XMLSERIALIZE": + return 743; + case "XMLTABLE": + return 744; + case "YEAR_P": + return 745; + case "YES_P": + return 746; + case "ZONE": + return 747; + case "FORMAT_LA": + return 748; + case "NOT_LA": + return 749; + case "NULLS_LA": + return 750; + case "WITH_LA": + return 751; + case "WITHOUT_LA": + return 752; + case "MODE_TYPE_NAME": + return 753; + case "MODE_PLPGSQL_EXPR": + return 754; + case "MODE_PLPGSQL_ASSIGN1": + return 755; + case "MODE_PLPGSQL_ASSIGN2": + return 756; + case "MODE_PLPGSQL_ASSIGN3": + return 757; + case "UMINUS": + return 758; + default: + throw new Error("Key not recognized in enum Token"); + } + } + default: + throw new Error("Enum type not recognized"); + } +};", + "file": "enum-to-int-utils.ts", + }, +] +`; + +exports[`enum utils switch statements format respects custom filenames for unidirectional functions 1`] = ` +[ + { + "code": "/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type EnumType = "OverridingKind" | "QuerySource" | "SortByDir" | "SortByNulls" | "SetQuantifier" | "A_Expr_Kind" | "RoleSpecType" | "TableLikeOption" | "DefElemAction" | "PartitionStrategy" | "PartitionRangeDatumKind" | "RTEKind" | "WCOKind" | "GroupingSetKind" | "CTEMaterialize" | "SetOperation" | "ObjectType" | "DropBehavior" | "AlterTableType" | "GrantTargetType" | "VariableSetKind" | "ConstrType" | "ImportForeignSchemaType" | "RoleStmtType" | "FetchDirection" | "FunctionParameterMode" | "TransactionStmtKind" | "ViewCheckOption" | "DiscardMode" | "ReindexObjectType" | "AlterTSConfigType" | "PublicationObjSpecType" | "AlterPublicationAction" | "AlterSubscriptionType" | "OnCommitAction" | "ParamKind" | "CoercionContext" | "CoercionForm" | "BoolExprType" | "SubLinkType" | "RowCompareType" | "MinMaxOp" | "SQLValueFunctionOp" | "XmlExprOp" | "XmlOptionType" | "JsonEncoding" | "JsonFormatType" | "JsonConstructorType" | "JsonValueType" | "NullTestType" | "BoolTestType" | "CmdType" | "JoinType" | "AggStrategy" | "AggSplit" | "SetOpCmd" | "SetOpStrategy" | "OnConflictAction" | "LimitOption" | "LockClauseStrength" | "LockWaitPolicy" | "LockTupleMode" | "KeywordKind" | "Token"; +export const getEnumString = (enumType: EnumType, key: number): string => { + switch (enumType) { + case "OverridingKind": + { + switch (key) { + case 0: + return "OVERRIDING_NOT_SET"; + case 1: + return "OVERRIDING_USER_VALUE"; + case 2: + return "OVERRIDING_SYSTEM_VALUE"; + default: + throw new Error("Value not recognized in enum OverridingKind"); + } + } + case "QuerySource": + { + switch (key) { + case 0: + return "QSRC_ORIGINAL"; + case 1: + return "QSRC_PARSER"; + case 2: + return "QSRC_INSTEAD_RULE"; + case 3: + return "QSRC_QUAL_INSTEAD_RULE"; + case 4: + return "QSRC_NON_INSTEAD_RULE"; + default: + throw new Error("Value not recognized in enum QuerySource"); + } + } + case "SortByDir": + { + switch (key) { + case 0: + return "SORTBY_DEFAULT"; + case 1: + return "SORTBY_ASC"; + case 2: + return "SORTBY_DESC"; + case 3: + return "SORTBY_USING"; + default: + throw new Error("Value not recognized in enum SortByDir"); + } + } + case "SortByNulls": + { + switch (key) { + case 0: + return "SORTBY_NULLS_DEFAULT"; + case 1: + return "SORTBY_NULLS_FIRST"; + case 2: + return "SORTBY_NULLS_LAST"; + default: + throw new Error("Value not recognized in enum SortByNulls"); + } + } + case "SetQuantifier": + { + switch (key) { + case 0: + return "SET_QUANTIFIER_DEFAULT"; + case 1: + return "SET_QUANTIFIER_ALL"; + case 2: + return "SET_QUANTIFIER_DISTINCT"; + default: + throw new Error("Value not recognized in enum SetQuantifier"); + } + } + case "A_Expr_Kind": + { + switch (key) { + case 0: + return "AEXPR_OP"; + case 1: + return "AEXPR_OP_ANY"; + case 2: + return "AEXPR_OP_ALL"; + case 3: + return "AEXPR_DISTINCT"; + case 4: + return "AEXPR_NOT_DISTINCT"; + case 5: + return "AEXPR_NULLIF"; + case 6: + return "AEXPR_IN"; + case 7: + return "AEXPR_LIKE"; + case 8: + return "AEXPR_ILIKE"; + case 9: + return "AEXPR_SIMILAR"; + case 10: + return "AEXPR_BETWEEN"; + case 11: + return "AEXPR_NOT_BETWEEN"; + case 12: + return "AEXPR_BETWEEN_SYM"; + case 13: + return "AEXPR_NOT_BETWEEN_SYM"; + default: + throw new Error("Value not recognized in enum A_Expr_Kind"); + } + } + case "RoleSpecType": + { + switch (key) { + case 0: + return "ROLESPEC_CSTRING"; + case 1: + return "ROLESPEC_CURRENT_ROLE"; + case 2: + return "ROLESPEC_CURRENT_USER"; + case 3: + return "ROLESPEC_SESSION_USER"; + case 4: + return "ROLESPEC_PUBLIC"; + default: + throw new Error("Value not recognized in enum RoleSpecType"); + } + } + case "TableLikeOption": + { + switch (key) { + case 0: + return "CREATE_TABLE_LIKE_COMMENTS"; + case 1: + return "CREATE_TABLE_LIKE_COMPRESSION"; + case 2: + return "CREATE_TABLE_LIKE_CONSTRAINTS"; + case 3: + return "CREATE_TABLE_LIKE_DEFAULTS"; + case 4: + return "CREATE_TABLE_LIKE_GENERATED"; + case 5: + return "CREATE_TABLE_LIKE_IDENTITY"; + case 6: + return "CREATE_TABLE_LIKE_INDEXES"; + case 7: + return "CREATE_TABLE_LIKE_STATISTICS"; + case 8: + return "CREATE_TABLE_LIKE_STORAGE"; + case 9: + return "CREATE_TABLE_LIKE_ALL"; + default: + throw new Error("Value not recognized in enum TableLikeOption"); + } + } + case "DefElemAction": + { + switch (key) { + case 0: + return "DEFELEM_UNSPEC"; + case 1: + return "DEFELEM_SET"; + case 2: + return "DEFELEM_ADD"; + case 3: + return "DEFELEM_DROP"; + default: + throw new Error("Value not recognized in enum DefElemAction"); + } + } + case "PartitionStrategy": + { + switch (key) { + case 0: + return "PARTITION_STRATEGY_LIST"; + case 1: + return "PARTITION_STRATEGY_RANGE"; + case 2: + return "PARTITION_STRATEGY_HASH"; + default: + throw new Error("Value not recognized in enum PartitionStrategy"); + } + } + case "PartitionRangeDatumKind": + { + switch (key) { + case 0: + return "PARTITION_RANGE_DATUM_MINVALUE"; + case 1: + return "PARTITION_RANGE_DATUM_VALUE"; + case 2: + return "PARTITION_RANGE_DATUM_MAXVALUE"; + default: + throw new Error("Value not recognized in enum PartitionRangeDatumKind"); + } + } + case "RTEKind": + { + switch (key) { + case 0: + return "RTE_RELATION"; + case 1: + return "RTE_SUBQUERY"; + case 2: + return "RTE_JOIN"; + case 3: + return "RTE_FUNCTION"; + case 4: + return "RTE_TABLEFUNC"; + case 5: + return "RTE_VALUES"; + case 6: + return "RTE_CTE"; + case 7: + return "RTE_NAMEDTUPLESTORE"; + case 8: + return "RTE_RESULT"; + default: + throw new Error("Value not recognized in enum RTEKind"); + } + } + case "WCOKind": + { + switch (key) { + case 0: + return "WCO_VIEW_CHECK"; + case 1: + return "WCO_RLS_INSERT_CHECK"; + case 2: + return "WCO_RLS_UPDATE_CHECK"; + case 3: + return "WCO_RLS_CONFLICT_CHECK"; + case 4: + return "WCO_RLS_MERGE_UPDATE_CHECK"; + case 5: + return "WCO_RLS_MERGE_DELETE_CHECK"; + default: + throw new Error("Value not recognized in enum WCOKind"); + } + } + case "GroupingSetKind": + { + switch (key) { + case 0: + return "GROUPING_SET_EMPTY"; + case 1: + return "GROUPING_SET_SIMPLE"; + case 2: + return "GROUPING_SET_ROLLUP"; + case 3: + return "GROUPING_SET_CUBE"; + case 4: + return "GROUPING_SET_SETS"; + default: + throw new Error("Value not recognized in enum GroupingSetKind"); + } + } + case "CTEMaterialize": + { + switch (key) { + case 0: + return "CTEMaterializeDefault"; + case 1: + return "CTEMaterializeAlways"; + case 2: + return "CTEMaterializeNever"; + default: + throw new Error("Value not recognized in enum CTEMaterialize"); + } + } + case "SetOperation": + { + switch (key) { + case 0: + return "SETOP_NONE"; + case 1: + return "SETOP_UNION"; + case 2: + return "SETOP_INTERSECT"; + case 3: + return "SETOP_EXCEPT"; + default: + throw new Error("Value not recognized in enum SetOperation"); + } + } + case "ObjectType": + { + switch (key) { + case 0: + return "OBJECT_ACCESS_METHOD"; + case 1: + return "OBJECT_AGGREGATE"; + case 2: + return "OBJECT_AMOP"; + case 3: + return "OBJECT_AMPROC"; + case 4: + return "OBJECT_ATTRIBUTE"; + case 5: + return "OBJECT_CAST"; + case 6: + return "OBJECT_COLUMN"; + case 7: + return "OBJECT_COLLATION"; + case 8: + return "OBJECT_CONVERSION"; + case 9: + return "OBJECT_DATABASE"; + case 10: + return "OBJECT_DEFAULT"; + case 11: + return "OBJECT_DEFACL"; + case 12: + return "OBJECT_DOMAIN"; + case 13: + return "OBJECT_DOMCONSTRAINT"; + case 14: + return "OBJECT_EVENT_TRIGGER"; + case 15: + return "OBJECT_EXTENSION"; + case 16: + return "OBJECT_FDW"; + case 17: + return "OBJECT_FOREIGN_SERVER"; + case 18: + return "OBJECT_FOREIGN_TABLE"; + case 19: + return "OBJECT_FUNCTION"; + case 20: + return "OBJECT_INDEX"; + case 21: + return "OBJECT_LANGUAGE"; + case 22: + return "OBJECT_LARGEOBJECT"; + case 23: + return "OBJECT_MATVIEW"; + case 24: + return "OBJECT_OPCLASS"; + case 25: + return "OBJECT_OPERATOR"; + case 26: + return "OBJECT_OPFAMILY"; + case 27: + return "OBJECT_PARAMETER_ACL"; + case 28: + return "OBJECT_POLICY"; + case 29: + return "OBJECT_PROCEDURE"; + case 30: + return "OBJECT_PUBLICATION"; + case 31: + return "OBJECT_PUBLICATION_NAMESPACE"; + case 32: + return "OBJECT_PUBLICATION_REL"; + case 33: + return "OBJECT_ROLE"; + case 34: + return "OBJECT_ROUTINE"; + case 35: + return "OBJECT_RULE"; + case 36: + return "OBJECT_SCHEMA"; + case 37: + return "OBJECT_SEQUENCE"; + case 38: + return "OBJECT_SUBSCRIPTION"; + case 39: + return "OBJECT_STATISTIC_EXT"; + case 40: + return "OBJECT_TABCONSTRAINT"; + case 41: + return "OBJECT_TABLE"; + case 42: + return "OBJECT_TABLESPACE"; + case 43: + return "OBJECT_TRANSFORM"; + case 44: + return "OBJECT_TRIGGER"; + case 45: + return "OBJECT_TSCONFIGURATION"; + case 46: + return "OBJECT_TSDICTIONARY"; + case 47: + return "OBJECT_TSPARSER"; + case 48: + return "OBJECT_TSTEMPLATE"; + case 49: + return "OBJECT_TYPE"; + case 50: + return "OBJECT_USER_MAPPING"; + case 51: + return "OBJECT_VIEW"; + default: + throw new Error("Value not recognized in enum ObjectType"); + } + } + case "DropBehavior": + { + switch (key) { + case 0: + return "DROP_RESTRICT"; + case 1: + return "DROP_CASCADE"; + default: + throw new Error("Value not recognized in enum DropBehavior"); + } + } + case "AlterTableType": + { + switch (key) { + case 0: + return "AT_AddColumn"; + case 1: + return "AT_AddColumnToView"; + case 2: + return "AT_ColumnDefault"; + case 3: + return "AT_CookedColumnDefault"; + case 4: + return "AT_DropNotNull"; + case 5: + return "AT_SetNotNull"; + case 6: + return "AT_DropExpression"; + case 7: + return "AT_CheckNotNull"; + case 8: + return "AT_SetStatistics"; + case 9: + return "AT_SetOptions"; + case 10: + return "AT_ResetOptions"; + case 11: + return "AT_SetStorage"; + case 12: + return "AT_SetCompression"; + case 13: + return "AT_DropColumn"; + case 14: + return "AT_AddIndex"; + case 15: + return "AT_ReAddIndex"; + case 16: + return "AT_AddConstraint"; + case 17: + return "AT_ReAddConstraint"; + case 18: + return "AT_ReAddDomainConstraint"; + case 19: + return "AT_AlterConstraint"; + case 20: + return "AT_ValidateConstraint"; + case 21: + return "AT_AddIndexConstraint"; + case 22: + return "AT_DropConstraint"; + case 23: + return "AT_ReAddComment"; + case 24: + return "AT_AlterColumnType"; + case 25: + return "AT_AlterColumnGenericOptions"; + case 26: + return "AT_ChangeOwner"; + case 27: + return "AT_ClusterOn"; + case 28: + return "AT_DropCluster"; + case 29: + return "AT_SetLogged"; + case 30: + return "AT_SetUnLogged"; + case 31: + return "AT_DropOids"; + case 32: + return "AT_SetAccessMethod"; + case 33: + return "AT_SetTableSpace"; + case 34: + return "AT_SetRelOptions"; + case 35: + return "AT_ResetRelOptions"; + case 36: + return "AT_ReplaceRelOptions"; + case 37: + return "AT_EnableTrig"; + case 38: + return "AT_EnableAlwaysTrig"; + case 39: + return "AT_EnableReplicaTrig"; + case 40: + return "AT_DisableTrig"; + case 41: + return "AT_EnableTrigAll"; + case 42: + return "AT_DisableTrigAll"; + case 43: + return "AT_EnableTrigUser"; + case 44: + return "AT_DisableTrigUser"; + case 45: + return "AT_EnableRule"; + case 46: + return "AT_EnableAlwaysRule"; + case 47: + return "AT_EnableReplicaRule"; + case 48: + return "AT_DisableRule"; + case 49: + return "AT_AddInherit"; + case 50: + return "AT_DropInherit"; + case 51: + return "AT_AddOf"; + case 52: + return "AT_DropOf"; + case 53: + return "AT_ReplicaIdentity"; + case 54: + return "AT_EnableRowSecurity"; + case 55: + return "AT_DisableRowSecurity"; + case 56: + return "AT_ForceRowSecurity"; + case 57: + return "AT_NoForceRowSecurity"; + case 58: + return "AT_GenericOptions"; + case 59: + return "AT_AttachPartition"; + case 60: + return "AT_DetachPartition"; + case 61: + return "AT_DetachPartitionFinalize"; + case 62: + return "AT_AddIdentity"; + case 63: + return "AT_SetIdentity"; + case 64: + return "AT_DropIdentity"; + case 65: + return "AT_ReAddStatistics"; + default: + throw new Error("Value not recognized in enum AlterTableType"); + } + } + case "GrantTargetType": + { + switch (key) { + case 0: + return "ACL_TARGET_OBJECT"; + case 1: + return "ACL_TARGET_ALL_IN_SCHEMA"; + case 2: + return "ACL_TARGET_DEFAULTS"; + default: + throw new Error("Value not recognized in enum GrantTargetType"); + } + } + case "VariableSetKind": + { + switch (key) { + case 0: + return "VAR_SET_VALUE"; + case 1: + return "VAR_SET_DEFAULT"; + case 2: + return "VAR_SET_CURRENT"; + case 3: + return "VAR_SET_MULTI"; + case 4: + return "VAR_RESET"; + case 5: + return "VAR_RESET_ALL"; + default: + throw new Error("Value not recognized in enum VariableSetKind"); + } + } + case "ConstrType": + { + switch (key) { + case 0: + return "CONSTR_NULL"; + case 1: + return "CONSTR_NOTNULL"; + case 2: + return "CONSTR_DEFAULT"; + case 3: + return "CONSTR_IDENTITY"; + case 4: + return "CONSTR_GENERATED"; + case 5: + return "CONSTR_CHECK"; + case 6: + return "CONSTR_PRIMARY"; + case 7: + return "CONSTR_UNIQUE"; + case 8: + return "CONSTR_EXCLUSION"; + case 9: + return "CONSTR_FOREIGN"; + case 10: + return "CONSTR_ATTR_DEFERRABLE"; + case 11: + return "CONSTR_ATTR_NOT_DEFERRABLE"; + case 12: + return "CONSTR_ATTR_DEFERRED"; + case 13: + return "CONSTR_ATTR_IMMEDIATE"; + default: + throw new Error("Value not recognized in enum ConstrType"); + } + } + case "ImportForeignSchemaType": + { + switch (key) { + case 0: + return "FDW_IMPORT_SCHEMA_ALL"; + case 1: + return "FDW_IMPORT_SCHEMA_LIMIT_TO"; + case 2: + return "FDW_IMPORT_SCHEMA_EXCEPT"; + default: + throw new Error("Value not recognized in enum ImportForeignSchemaType"); + } + } + case "RoleStmtType": + { + switch (key) { + case 0: + return "ROLESTMT_ROLE"; + case 1: + return "ROLESTMT_USER"; + case 2: + return "ROLESTMT_GROUP"; + default: + throw new Error("Value not recognized in enum RoleStmtType"); + } + } + case "FetchDirection": + { + switch (key) { + case 0: + return "FETCH_FORWARD"; + case 1: + return "FETCH_BACKWARD"; + case 2: + return "FETCH_ABSOLUTE"; + case 3: + return "FETCH_RELATIVE"; + default: + throw new Error("Value not recognized in enum FetchDirection"); + } + } + case "FunctionParameterMode": + { + switch (key) { + case 0: + return "FUNC_PARAM_IN"; + case 1: + return "FUNC_PARAM_OUT"; + case 2: + return "FUNC_PARAM_INOUT"; + case 3: + return "FUNC_PARAM_VARIADIC"; + case 4: + return "FUNC_PARAM_TABLE"; + case 5: + return "FUNC_PARAM_DEFAULT"; + default: + throw new Error("Value not recognized in enum FunctionParameterMode"); + } + } + case "TransactionStmtKind": + { + switch (key) { + case 0: + return "TRANS_STMT_BEGIN"; + case 1: + return "TRANS_STMT_START"; + case 2: + return "TRANS_STMT_COMMIT"; + case 3: + return "TRANS_STMT_ROLLBACK"; + case 4: + return "TRANS_STMT_SAVEPOINT"; + case 5: + return "TRANS_STMT_RELEASE"; + case 6: + return "TRANS_STMT_ROLLBACK_TO"; + case 7: + return "TRANS_STMT_PREPARE"; + case 8: + return "TRANS_STMT_COMMIT_PREPARED"; + case 9: + return "TRANS_STMT_ROLLBACK_PREPARED"; + default: + throw new Error("Value not recognized in enum TransactionStmtKind"); + } + } + case "ViewCheckOption": + { + switch (key) { + case 0: + return "NO_CHECK_OPTION"; + case 1: + return "LOCAL_CHECK_OPTION"; + case 2: + return "CASCADED_CHECK_OPTION"; + default: + throw new Error("Value not recognized in enum ViewCheckOption"); + } + } + case "DiscardMode": + { + switch (key) { + case 0: + return "DISCARD_ALL"; + case 1: + return "DISCARD_PLANS"; + case 2: + return "DISCARD_SEQUENCES"; + case 3: + return "DISCARD_TEMP"; + default: + throw new Error("Value not recognized in enum DiscardMode"); + } + } + case "ReindexObjectType": + { + switch (key) { + case 0: + return "REINDEX_OBJECT_INDEX"; + case 1: + return "REINDEX_OBJECT_TABLE"; + case 2: + return "REINDEX_OBJECT_SCHEMA"; + case 3: + return "REINDEX_OBJECT_SYSTEM"; + case 4: + return "REINDEX_OBJECT_DATABASE"; + default: + throw new Error("Value not recognized in enum ReindexObjectType"); + } + } + case "AlterTSConfigType": + { + switch (key) { + case 0: + return "ALTER_TSCONFIG_ADD_MAPPING"; + case 1: + return "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN"; + case 2: + return "ALTER_TSCONFIG_REPLACE_DICT"; + case 3: + return "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN"; + case 4: + return "ALTER_TSCONFIG_DROP_MAPPING"; + default: + throw new Error("Value not recognized in enum AlterTSConfigType"); + } + } + case "PublicationObjSpecType": + { + switch (key) { + case 0: + return "PUBLICATIONOBJ_TABLE"; + case 1: + return "PUBLICATIONOBJ_TABLES_IN_SCHEMA"; + case 2: + return "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA"; + case 3: + return "PUBLICATIONOBJ_CONTINUATION"; + default: + throw new Error("Value not recognized in enum PublicationObjSpecType"); + } + } + case "AlterPublicationAction": + { + switch (key) { + case 0: + return "AP_AddObjects"; + case 1: + return "AP_DropObjects"; + case 2: + return "AP_SetObjects"; + default: + throw new Error("Value not recognized in enum AlterPublicationAction"); + } + } + case "AlterSubscriptionType": + { + switch (key) { + case 0: + return "ALTER_SUBSCRIPTION_OPTIONS"; + case 1: + return "ALTER_SUBSCRIPTION_CONNECTION"; + case 2: + return "ALTER_SUBSCRIPTION_SET_PUBLICATION"; + case 3: + return "ALTER_SUBSCRIPTION_ADD_PUBLICATION"; + case 4: + return "ALTER_SUBSCRIPTION_DROP_PUBLICATION"; + case 5: + return "ALTER_SUBSCRIPTION_REFRESH"; + case 6: + return "ALTER_SUBSCRIPTION_ENABLED"; + case 7: + return "ALTER_SUBSCRIPTION_SKIP"; + default: + throw new Error("Value not recognized in enum AlterSubscriptionType"); + } + } + case "OnCommitAction": + { + switch (key) { + case 0: + return "ONCOMMIT_NOOP"; + case 1: + return "ONCOMMIT_PRESERVE_ROWS"; + case 2: + return "ONCOMMIT_DELETE_ROWS"; + case 3: + return "ONCOMMIT_DROP"; + default: + throw new Error("Value not recognized in enum OnCommitAction"); + } + } + case "ParamKind": + { + switch (key) { + case 0: + return "PARAM_EXTERN"; + case 1: + return "PARAM_EXEC"; + case 2: + return "PARAM_SUBLINK"; + case 3: + return "PARAM_MULTIEXPR"; + default: + throw new Error("Value not recognized in enum ParamKind"); + } + } + case "CoercionContext": + { + switch (key) { + case 0: + return "COERCION_IMPLICIT"; + case 1: + return "COERCION_ASSIGNMENT"; + case 2: + return "COERCION_PLPGSQL"; + case 3: + return "COERCION_EXPLICIT"; + default: + throw new Error("Value not recognized in enum CoercionContext"); + } + } + case "CoercionForm": + { + switch (key) { + case 0: + return "COERCE_EXPLICIT_CALL"; + case 1: + return "COERCE_EXPLICIT_CAST"; + case 2: + return "COERCE_IMPLICIT_CAST"; + case 3: + return "COERCE_SQL_SYNTAX"; + default: + throw new Error("Value not recognized in enum CoercionForm"); + } + } + case "BoolExprType": + { + switch (key) { + case 0: + return "AND_EXPR"; + case 1: + return "OR_EXPR"; + case 2: + return "NOT_EXPR"; + default: + throw new Error("Value not recognized in enum BoolExprType"); + } + } + case "SubLinkType": + { + switch (key) { + case 0: + return "EXISTS_SUBLINK"; + case 1: + return "ALL_SUBLINK"; + case 2: + return "ANY_SUBLINK"; + case 3: + return "ROWCOMPARE_SUBLINK"; + case 4: + return "EXPR_SUBLINK"; + case 5: + return "MULTIEXPR_SUBLINK"; + case 6: + return "ARRAY_SUBLINK"; + case 7: + return "CTE_SUBLINK"; + default: + throw new Error("Value not recognized in enum SubLinkType"); + } + } + case "RowCompareType": + { + switch (key) { + case 0: + return "ROWCOMPARE_LT"; + case 1: + return "ROWCOMPARE_LE"; + case 2: + return "ROWCOMPARE_EQ"; + case 3: + return "ROWCOMPARE_GE"; + case 4: + return "ROWCOMPARE_GT"; + case 5: + return "ROWCOMPARE_NE"; + default: + throw new Error("Value not recognized in enum RowCompareType"); + } + } + case "MinMaxOp": + { + switch (key) { + case 0: + return "IS_GREATEST"; + case 1: + return "IS_LEAST"; + default: + throw new Error("Value not recognized in enum MinMaxOp"); + } + } + case "SQLValueFunctionOp": + { + switch (key) { + case 0: + return "SVFOP_CURRENT_DATE"; + case 1: + return "SVFOP_CURRENT_TIME"; + case 2: + return "SVFOP_CURRENT_TIME_N"; + case 3: + return "SVFOP_CURRENT_TIMESTAMP"; + case 4: + return "SVFOP_CURRENT_TIMESTAMP_N"; + case 5: + return "SVFOP_LOCALTIME"; + case 6: + return "SVFOP_LOCALTIME_N"; + case 7: + return "SVFOP_LOCALTIMESTAMP"; + case 8: + return "SVFOP_LOCALTIMESTAMP_N"; + case 9: + return "SVFOP_CURRENT_ROLE"; + case 10: + return "SVFOP_CURRENT_USER"; + case 11: + return "SVFOP_USER"; + case 12: + return "SVFOP_SESSION_USER"; + case 13: + return "SVFOP_CURRENT_CATALOG"; + case 14: + return "SVFOP_CURRENT_SCHEMA"; + default: + throw new Error("Value not recognized in enum SQLValueFunctionOp"); + } + } + case "XmlExprOp": + { + switch (key) { + case 0: + return "IS_XMLCONCAT"; + case 1: + return "IS_XMLELEMENT"; + case 2: + return "IS_XMLFOREST"; + case 3: + return "IS_XMLPARSE"; + case 4: + return "IS_XMLPI"; + case 5: + return "IS_XMLROOT"; + case 6: + return "IS_XMLSERIALIZE"; + case 7: + return "IS_DOCUMENT"; + default: + throw new Error("Value not recognized in enum XmlExprOp"); + } + } + case "XmlOptionType": + { + switch (key) { + case 0: + return "XMLOPTION_DOCUMENT"; + case 1: + return "XMLOPTION_CONTENT"; + default: + throw new Error("Value not recognized in enum XmlOptionType"); + } + } + case "JsonEncoding": + { + switch (key) { + case 0: + return "JS_ENC_DEFAULT"; + case 1: + return "JS_ENC_UTF8"; + case 2: + return "JS_ENC_UTF16"; + case 3: + return "JS_ENC_UTF32"; + default: + throw new Error("Value not recognized in enum JsonEncoding"); + } + } + case "JsonFormatType": + { + switch (key) { + case 0: + return "JS_FORMAT_DEFAULT"; + case 1: + return "JS_FORMAT_JSON"; + case 2: + return "JS_FORMAT_JSONB"; + default: + throw new Error("Value not recognized in enum JsonFormatType"); + } + } + case "JsonConstructorType": + { + switch (key) { + case 0: + return "JSCTOR_JSON_OBJECT"; + case 1: + return "JSCTOR_JSON_ARRAY"; + case 2: + return "JSCTOR_JSON_OBJECTAGG"; + case 3: + return "JSCTOR_JSON_ARRAYAGG"; + default: + throw new Error("Value not recognized in enum JsonConstructorType"); + } + } + case "JsonValueType": + { + switch (key) { + case 0: + return "JS_TYPE_ANY"; + case 1: + return "JS_TYPE_OBJECT"; + case 2: + return "JS_TYPE_ARRAY"; + case 3: + return "JS_TYPE_SCALAR"; + default: + throw new Error("Value not recognized in enum JsonValueType"); + } + } + case "NullTestType": + { + switch (key) { + case 0: + return "IS_NULL"; + case 1: + return "IS_NOT_NULL"; + default: + throw new Error("Value not recognized in enum NullTestType"); + } + } + case "BoolTestType": + { + switch (key) { + case 0: + return "IS_TRUE"; + case 1: + return "IS_NOT_TRUE"; + case 2: + return "IS_FALSE"; + case 3: + return "IS_NOT_FALSE"; + case 4: + return "IS_UNKNOWN"; + case 5: + return "IS_NOT_UNKNOWN"; + default: + throw new Error("Value not recognized in enum BoolTestType"); + } + } + case "CmdType": + { + switch (key) { + case 0: + return "CMD_UNKNOWN"; + case 1: + return "CMD_SELECT"; + case 2: + return "CMD_UPDATE"; + case 3: + return "CMD_INSERT"; + case 4: + return "CMD_DELETE"; + case 5: + return "CMD_MERGE"; + case 6: + return "CMD_UTILITY"; + case 7: + return "CMD_NOTHING"; + default: + throw new Error("Value not recognized in enum CmdType"); + } + } + case "JoinType": + { + switch (key) { + case 0: + return "JOIN_INNER"; + case 1: + return "JOIN_LEFT"; + case 2: + return "JOIN_FULL"; + case 3: + return "JOIN_RIGHT"; + case 4: + return "JOIN_SEMI"; + case 5: + return "JOIN_ANTI"; + case 6: + return "JOIN_RIGHT_ANTI"; + case 7: + return "JOIN_UNIQUE_OUTER"; + case 8: + return "JOIN_UNIQUE_INNER"; + default: + throw new Error("Value not recognized in enum JoinType"); + } + } + case "AggStrategy": + { + switch (key) { + case 0: + return "AGG_PLAIN"; + case 1: + return "AGG_SORTED"; + case 2: + return "AGG_HASHED"; + case 3: + return "AGG_MIXED"; + default: + throw new Error("Value not recognized in enum AggStrategy"); + } + } + case "AggSplit": + { + switch (key) { + case 0: + return "AGGSPLIT_SIMPLE"; + case 1: + return "AGGSPLIT_INITIAL_SERIAL"; + case 2: + return "AGGSPLIT_FINAL_DESERIAL"; + default: + throw new Error("Value not recognized in enum AggSplit"); + } + } + case "SetOpCmd": + { + switch (key) { + case 0: + return "SETOPCMD_INTERSECT"; + case 1: + return "SETOPCMD_INTERSECT_ALL"; + case 2: + return "SETOPCMD_EXCEPT"; + case 3: + return "SETOPCMD_EXCEPT_ALL"; + default: + throw new Error("Value not recognized in enum SetOpCmd"); + } + } + case "SetOpStrategy": + { + switch (key) { + case 0: + return "SETOP_SORTED"; + case 1: + return "SETOP_HASHED"; + default: + throw new Error("Value not recognized in enum SetOpStrategy"); + } + } + case "OnConflictAction": + { + switch (key) { + case 0: + return "ONCONFLICT_NONE"; + case 1: + return "ONCONFLICT_NOTHING"; + case 2: + return "ONCONFLICT_UPDATE"; + default: + throw new Error("Value not recognized in enum OnConflictAction"); + } + } + case "LimitOption": + { + switch (key) { + case 0: + return "LIMIT_OPTION_DEFAULT"; + case 1: + return "LIMIT_OPTION_COUNT"; + case 2: + return "LIMIT_OPTION_WITH_TIES"; + default: + throw new Error("Value not recognized in enum LimitOption"); + } + } + case "LockClauseStrength": + { + switch (key) { + case 0: + return "LCS_NONE"; + case 1: + return "LCS_FORKEYSHARE"; + case 2: + return "LCS_FORSHARE"; + case 3: + return "LCS_FORNOKEYUPDATE"; + case 4: + return "LCS_FORUPDATE"; + default: + throw new Error("Value not recognized in enum LockClauseStrength"); + } + } + case "LockWaitPolicy": + { + switch (key) { + case 0: + return "LockWaitBlock"; + case 1: + return "LockWaitSkip"; + case 2: + return "LockWaitError"; + default: + throw new Error("Value not recognized in enum LockWaitPolicy"); + } + } + case "LockTupleMode": + { + switch (key) { + case 0: + return "LockTupleKeyShare"; + case 1: + return "LockTupleShare"; + case 2: + return "LockTupleNoKeyExclusive"; + case 3: + return "LockTupleExclusive"; + default: + throw new Error("Value not recognized in enum LockTupleMode"); + } + } + case "KeywordKind": + { + switch (key) { + case 0: + return "NO_KEYWORD"; + case 1: + return "UNRESERVED_KEYWORD"; + case 2: + return "COL_NAME_KEYWORD"; + case 3: + return "TYPE_FUNC_NAME_KEYWORD"; + case 4: + return "RESERVED_KEYWORD"; + default: + throw new Error("Value not recognized in enum KeywordKind"); + } + } + case "Token": + { + switch (key) { + case 0: + return "NUL"; + case 36: + return "ASCII_36"; + case 37: + return "ASCII_37"; + case 40: + return "ASCII_40"; + case 41: + return "ASCII_41"; + case 42: + return "ASCII_42"; + case 43: + return "ASCII_43"; + case 44: + return "ASCII_44"; + case 45: + return "ASCII_45"; + case 46: + return "ASCII_46"; + case 47: + return "ASCII_47"; + case 58: + return "ASCII_58"; + case 59: + return "ASCII_59"; + case 60: + return "ASCII_60"; + case 61: + return "ASCII_61"; + case 62: + return "ASCII_62"; + case 63: + return "ASCII_63"; + case 91: + return "ASCII_91"; + case 92: + return "ASCII_92"; + case 93: + return "ASCII_93"; + case 94: + return "ASCII_94"; + case 258: + return "IDENT"; + case 259: + return "UIDENT"; + case 260: + return "FCONST"; + case 261: + return "SCONST"; + case 262: + return "USCONST"; + case 263: + return "BCONST"; + case 264: + return "XCONST"; + case 265: + return "Op"; + case 266: + return "ICONST"; + case 267: + return "PARAM"; + case 268: + return "TYPECAST"; + case 269: + return "DOT_DOT"; + case 270: + return "COLON_EQUALS"; + case 271: + return "EQUALS_GREATER"; + case 272: + return "LESS_EQUALS"; + case 273: + return "GREATER_EQUALS"; + case 274: + return "NOT_EQUALS"; + case 275: + return "SQL_COMMENT"; + case 276: + return "C_COMMENT"; + case 277: + return "ABORT_P"; + case 278: + return "ABSENT"; + case 279: + return "ABSOLUTE_P"; + case 280: + return "ACCESS"; + case 281: + return "ACTION"; + case 282: + return "ADD_P"; + case 283: + return "ADMIN"; + case 284: + return "AFTER"; + case 285: + return "AGGREGATE"; + case 286: + return "ALL"; + case 287: + return "ALSO"; + case 288: + return "ALTER"; + case 289: + return "ALWAYS"; + case 290: + return "ANALYSE"; + case 291: + return "ANALYZE"; + case 292: + return "AND"; + case 293: + return "ANY"; + case 294: + return "ARRAY"; + case 295: + return "AS"; + case 296: + return "ASC"; + case 297: + return "ASENSITIVE"; + case 298: + return "ASSERTION"; + case 299: + return "ASSIGNMENT"; + case 300: + return "ASYMMETRIC"; + case 301: + return "ATOMIC"; + case 302: + return "AT"; + case 303: + return "ATTACH"; + case 304: + return "ATTRIBUTE"; + case 305: + return "AUTHORIZATION"; + case 306: + return "BACKWARD"; + case 307: + return "BEFORE"; + case 308: + return "BEGIN_P"; + case 309: + return "BETWEEN"; + case 310: + return "BIGINT"; + case 311: + return "BINARY"; + case 312: + return "BIT"; + case 313: + return "BOOLEAN_P"; + case 314: + return "BOTH"; + case 315: + return "BREADTH"; + case 316: + return "BY"; + case 317: + return "CACHE"; + case 318: + return "CALL"; + case 319: + return "CALLED"; + case 320: + return "CASCADE"; + case 321: + return "CASCADED"; + case 322: + return "CASE"; + case 323: + return "CAST"; + case 324: + return "CATALOG_P"; + case 325: + return "CHAIN"; + case 326: + return "CHAR_P"; + case 327: + return "CHARACTER"; + case 328: + return "CHARACTERISTICS"; + case 329: + return "CHECK"; + case 330: + return "CHECKPOINT"; + case 331: + return "CLASS"; + case 332: + return "CLOSE"; + case 333: + return "CLUSTER"; + case 334: + return "COALESCE"; + case 335: + return "COLLATE"; + case 336: + return "COLLATION"; + case 337: + return "COLUMN"; + case 338: + return "COLUMNS"; + case 339: + return "COMMENT"; + case 340: + return "COMMENTS"; + case 341: + return "COMMIT"; + case 342: + return "COMMITTED"; + case 343: + return "COMPRESSION"; + case 344: + return "CONCURRENTLY"; + case 345: + return "CONFIGURATION"; + case 346: + return "CONFLICT"; + case 347: + return "CONNECTION"; + case 348: + return "CONSTRAINT"; + case 349: + return "CONSTRAINTS"; + case 350: + return "CONTENT_P"; + case 351: + return "CONTINUE_P"; + case 352: + return "CONVERSION_P"; + case 353: + return "COPY"; + case 354: + return "COST"; + case 355: + return "CREATE"; + case 356: + return "CROSS"; + case 357: + return "CSV"; + case 358: + return "CUBE"; + case 359: + return "CURRENT_P"; + case 360: + return "CURRENT_CATALOG"; + case 361: + return "CURRENT_DATE"; + case 362: + return "CURRENT_ROLE"; + case 363: + return "CURRENT_SCHEMA"; + case 364: + return "CURRENT_TIME"; + case 365: + return "CURRENT_TIMESTAMP"; + case 366: + return "CURRENT_USER"; + case 367: + return "CURSOR"; + case 368: + return "CYCLE"; + case 369: + return "DATA_P"; + case 370: + return "DATABASE"; + case 371: + return "DAY_P"; + case 372: + return "DEALLOCATE"; + case 373: + return "DEC"; + case 374: + return "DECIMAL_P"; + case 375: + return "DECLARE"; + case 376: + return "DEFAULT"; + case 377: + return "DEFAULTS"; + case 378: + return "DEFERRABLE"; + case 379: + return "DEFERRED"; + case 380: + return "DEFINER"; + case 381: + return "DELETE_P"; + case 382: + return "DELIMITER"; + case 383: + return "DELIMITERS"; + case 384: + return "DEPENDS"; + case 385: + return "DEPTH"; + case 386: + return "DESC"; + case 387: + return "DETACH"; + case 388: + return "DICTIONARY"; + case 389: + return "DISABLE_P"; + case 390: + return "DISCARD"; + case 391: + return "DISTINCT"; + case 392: + return "DO"; + case 393: + return "DOCUMENT_P"; + case 394: + return "DOMAIN_P"; + case 395: + return "DOUBLE_P"; + case 396: + return "DROP"; + case 397: + return "EACH"; + case 398: + return "ELSE"; + case 399: + return "ENABLE_P"; + case 400: + return "ENCODING"; + case 401: + return "ENCRYPTED"; + case 402: + return "END_P"; + case 403: + return "ENUM_P"; + case 404: + return "ESCAPE"; + case 405: + return "EVENT"; + case 406: + return "EXCEPT"; + case 407: + return "EXCLUDE"; + case 408: + return "EXCLUDING"; + case 409: + return "EXCLUSIVE"; + case 410: + return "EXECUTE"; + case 411: + return "EXISTS"; + case 412: + return "EXPLAIN"; + case 413: + return "EXPRESSION"; + case 414: + return "EXTENSION"; + case 415: + return "EXTERNAL"; + case 416: + return "EXTRACT"; + case 417: + return "FALSE_P"; + case 418: + return "FAMILY"; + case 419: + return "FETCH"; + case 420: + return "FILTER"; + case 421: + return "FINALIZE"; + case 422: + return "FIRST_P"; + case 423: + return "FLOAT_P"; + case 424: + return "FOLLOWING"; + case 425: + return "FOR"; + case 426: + return "FORCE"; + case 427: + return "FOREIGN"; + case 428: + return "FORMAT"; + case 429: + return "FORWARD"; + case 430: + return "FREEZE"; + case 431: + return "FROM"; + case 432: + return "FULL"; + case 433: + return "FUNCTION"; + case 434: + return "FUNCTIONS"; + case 435: + return "GENERATED"; + case 436: + return "GLOBAL"; + case 437: + return "GRANT"; + case 438: + return "GRANTED"; + case 439: + return "GREATEST"; + case 440: + return "GROUP_P"; + case 441: + return "GROUPING"; + case 442: + return "GROUPS"; + case 443: + return "HANDLER"; + case 444: + return "HAVING"; + case 445: + return "HEADER_P"; + case 446: + return "HOLD"; + case 447: + return "HOUR_P"; + case 448: + return "IDENTITY_P"; + case 449: + return "IF_P"; + case 450: + return "ILIKE"; + case 451: + return "IMMEDIATE"; + case 452: + return "IMMUTABLE"; + case 453: + return "IMPLICIT_P"; + case 454: + return "IMPORT_P"; + case 455: + return "IN_P"; + case 456: + return "INCLUDE"; + case 457: + return "INCLUDING"; + case 458: + return "INCREMENT"; + case 459: + return "INDENT"; + case 460: + return "INDEX"; + case 461: + return "INDEXES"; + case 462: + return "INHERIT"; + case 463: + return "INHERITS"; + case 464: + return "INITIALLY"; + case 465: + return "INLINE_P"; + case 466: + return "INNER_P"; + case 467: + return "INOUT"; + case 468: + return "INPUT_P"; + case 469: + return "INSENSITIVE"; + case 470: + return "INSERT"; + case 471: + return "INSTEAD"; + case 472: + return "INT_P"; + case 473: + return "INTEGER"; + case 474: + return "INTERSECT"; + case 475: + return "INTERVAL"; + case 476: + return "INTO"; + case 477: + return "INVOKER"; + case 478: + return "IS"; + case 479: + return "ISNULL"; + case 480: + return "ISOLATION"; + case 481: + return "JOIN"; + case 482: + return "JSON"; + case 483: + return "JSON_ARRAY"; + case 484: + return "JSON_ARRAYAGG"; + case 485: + return "JSON_OBJECT"; + case 486: + return "JSON_OBJECTAGG"; + case 487: + return "KEY"; + case 488: + return "KEYS"; + case 489: + return "LABEL"; + case 490: + return "LANGUAGE"; + case 491: + return "LARGE_P"; + case 492: + return "LAST_P"; + case 493: + return "LATERAL_P"; + case 494: + return "LEADING"; + case 495: + return "LEAKPROOF"; + case 496: + return "LEAST"; + case 497: + return "LEFT"; + case 498: + return "LEVEL"; + case 499: + return "LIKE"; + case 500: + return "LIMIT"; + case 501: + return "LISTEN"; + case 502: + return "LOAD"; + case 503: + return "LOCAL"; + case 504: + return "LOCALTIME"; + case 505: + return "LOCALTIMESTAMP"; + case 506: + return "LOCATION"; + case 507: + return "LOCK_P"; + case 508: + return "LOCKED"; + case 509: + return "LOGGED"; + case 510: + return "MAPPING"; + case 511: + return "MATCH"; + case 512: + return "MATCHED"; + case 513: + return "MATERIALIZED"; + case 514: + return "MAXVALUE"; + case 515: + return "MERGE"; + case 516: + return "METHOD"; + case 517: + return "MINUTE_P"; + case 518: + return "MINVALUE"; + case 519: + return "MODE"; + case 520: + return "MONTH_P"; + case 521: + return "MOVE"; + case 522: + return "NAME_P"; + case 523: + return "NAMES"; + case 524: + return "NATIONAL"; + case 525: + return "NATURAL"; + case 526: + return "NCHAR"; + case 527: + return "NEW"; + case 528: + return "NEXT"; + case 529: + return "NFC"; + case 530: + return "NFD"; + case 531: + return "NFKC"; + case 532: + return "NFKD"; + case 533: + return "NO"; + case 534: + return "NONE"; + case 535: + return "NORMALIZE"; + case 536: + return "NORMALIZED"; + case 537: + return "NOT"; + case 538: + return "NOTHING"; + case 539: + return "NOTIFY"; + case 540: + return "NOTNULL"; + case 541: + return "NOWAIT"; + case 542: + return "NULL_P"; + case 543: + return "NULLIF"; + case 544: + return "NULLS_P"; + case 545: + return "NUMERIC"; + case 546: + return "OBJECT_P"; + case 547: + return "OF"; + case 548: + return "OFF"; + case 549: + return "OFFSET"; + case 550: + return "OIDS"; + case 551: + return "OLD"; + case 552: + return "ON"; + case 553: + return "ONLY"; + case 554: + return "OPERATOR"; + case 555: + return "OPTION"; + case 556: + return "OPTIONS"; + case 557: + return "OR"; + case 558: + return "ORDER"; + case 559: + return "ORDINALITY"; + case 560: + return "OTHERS"; + case 561: + return "OUT_P"; + case 562: + return "OUTER_P"; + case 563: + return "OVER"; + case 564: + return "OVERLAPS"; + case 565: + return "OVERLAY"; + case 566: + return "OVERRIDING"; + case 567: + return "OWNED"; + case 568: + return "OWNER"; + case 569: + return "PARALLEL"; + case 570: + return "PARAMETER"; + case 571: + return "PARSER"; + case 572: + return "PARTIAL"; + case 573: + return "PARTITION"; + case 574: + return "PASSING"; + case 575: + return "PASSWORD"; + case 576: + return "PLACING"; + case 577: + return "PLANS"; + case 578: + return "POLICY"; + case 579: + return "POSITION"; + case 580: + return "PRECEDING"; + case 581: + return "PRECISION"; + case 582: + return "PRESERVE"; + case 583: + return "PREPARE"; + case 584: + return "PREPARED"; + case 585: + return "PRIMARY"; + case 586: + return "PRIOR"; + case 587: + return "PRIVILEGES"; + case 588: + return "PROCEDURAL"; + case 589: + return "PROCEDURE"; + case 590: + return "PROCEDURES"; + case 591: + return "PROGRAM"; + case 592: + return "PUBLICATION"; + case 593: + return "QUOTE"; + case 594: + return "RANGE"; + case 595: + return "READ"; + case 596: + return "REAL"; + case 597: + return "REASSIGN"; + case 598: + return "RECHECK"; + case 599: + return "RECURSIVE"; + case 600: + return "REF_P"; + case 601: + return "REFERENCES"; + case 602: + return "REFERENCING"; + case 603: + return "REFRESH"; + case 604: + return "REINDEX"; + case 605: + return "RELATIVE_P"; + case 606: + return "RELEASE"; + case 607: + return "RENAME"; + case 608: + return "REPEATABLE"; + case 609: + return "REPLACE"; + case 610: + return "REPLICA"; + case 611: + return "RESET"; + case 612: + return "RESTART"; + case 613: + return "RESTRICT"; + case 614: + return "RETURN"; + case 615: + return "RETURNING"; + case 616: + return "RETURNS"; + case 617: + return "REVOKE"; + case 618: + return "RIGHT"; + case 619: + return "ROLE"; + case 620: + return "ROLLBACK"; + case 621: + return "ROLLUP"; + case 622: + return "ROUTINE"; + case 623: + return "ROUTINES"; + case 624: + return "ROW"; + case 625: + return "ROWS"; + case 626: + return "RULE"; + case 627: + return "SAVEPOINT"; + case 628: + return "SCALAR"; + case 629: + return "SCHEMA"; + case 630: + return "SCHEMAS"; + case 631: + return "SCROLL"; + case 632: + return "SEARCH"; + case 633: + return "SECOND_P"; + case 634: + return "SECURITY"; + case 635: + return "SELECT"; + case 636: + return "SEQUENCE"; + case 637: + return "SEQUENCES"; + case 638: + return "SERIALIZABLE"; + case 639: + return "SERVER"; + case 640: + return "SESSION"; + case 641: + return "SESSION_USER"; + case 642: + return "SET"; + case 643: + return "SETS"; + case 644: + return "SETOF"; + case 645: + return "SHARE"; + case 646: + return "SHOW"; + case 647: + return "SIMILAR"; + case 648: + return "SIMPLE"; + case 649: + return "SKIP"; + case 650: + return "SMALLINT"; + case 651: + return "SNAPSHOT"; + case 652: + return "SOME"; + case 653: + return "SQL_P"; + case 654: + return "STABLE"; + case 655: + return "STANDALONE_P"; + case 656: + return "START"; + case 657: + return "STATEMENT"; + case 658: + return "STATISTICS"; + case 659: + return "STDIN"; + case 660: + return "STDOUT"; + case 661: + return "STORAGE"; + case 662: + return "STORED"; + case 663: + return "STRICT_P"; + case 664: + return "STRIP_P"; + case 665: + return "SUBSCRIPTION"; + case 666: + return "SUBSTRING"; + case 667: + return "SUPPORT"; + case 668: + return "SYMMETRIC"; + case 669: + return "SYSID"; + case 670: + return "SYSTEM_P"; + case 671: + return "SYSTEM_USER"; + case 672: + return "TABLE"; + case 673: + return "TABLES"; + case 674: + return "TABLESAMPLE"; + case 675: + return "TABLESPACE"; + case 676: + return "TEMP"; + case 677: + return "TEMPLATE"; + case 678: + return "TEMPORARY"; + case 679: + return "TEXT_P"; + case 680: + return "THEN"; + case 681: + return "TIES"; + case 682: + return "TIME"; + case 683: + return "TIMESTAMP"; + case 684: + return "TO"; + case 685: + return "TRAILING"; + case 686: + return "TRANSACTION"; + case 687: + return "TRANSFORM"; + case 688: + return "TREAT"; + case 689: + return "TRIGGER"; + case 690: + return "TRIM"; + case 691: + return "TRUE_P"; + case 692: + return "TRUNCATE"; + case 693: + return "TRUSTED"; + case 694: + return "TYPE_P"; + case 695: + return "TYPES_P"; + case 696: + return "UESCAPE"; + case 697: + return "UNBOUNDED"; + case 698: + return "UNCOMMITTED"; + case 699: + return "UNENCRYPTED"; + case 700: + return "UNION"; + case 701: + return "UNIQUE"; + case 702: + return "UNKNOWN"; + case 703: + return "UNLISTEN"; + case 704: + return "UNLOGGED"; + case 705: + return "UNTIL"; + case 706: + return "UPDATE"; + case 707: + return "USER"; + case 708: + return "USING"; + case 709: + return "VACUUM"; + case 710: + return "VALID"; + case 711: + return "VALIDATE"; + case 712: + return "VALIDATOR"; + case 713: + return "VALUE_P"; + case 714: + return "VALUES"; + case 715: + return "VARCHAR"; + case 716: + return "VARIADIC"; + case 717: + return "VARYING"; + case 718: + return "VERBOSE"; + case 719: + return "VERSION_P"; + case 720: + return "VIEW"; + case 721: + return "VIEWS"; + case 722: + return "VOLATILE"; + case 723: + return "WHEN"; + case 724: + return "WHERE"; + case 725: + return "WHITESPACE_P"; + case 726: + return "WINDOW"; + case 727: + return "WITH"; + case 728: + return "WITHIN"; + case 729: + return "WITHOUT"; + case 730: + return "WORK"; + case 731: + return "WRAPPER"; + case 732: + return "WRITE"; + case 733: + return "XML_P"; + case 734: + return "XMLATTRIBUTES"; + case 735: + return "XMLCONCAT"; + case 736: + return "XMLELEMENT"; + case 737: + return "XMLEXISTS"; + case 738: + return "XMLFOREST"; + case 739: + return "XMLNAMESPACES"; + case 740: + return "XMLPARSE"; + case 741: + return "XMLPI"; + case 742: + return "XMLROOT"; + case 743: + return "XMLSERIALIZE"; + case 744: + return "XMLTABLE"; + case 745: + return "YEAR_P"; + case 746: + return "YES_P"; + case 747: + return "ZONE"; + case 748: + return "FORMAT_LA"; + case 749: + return "NOT_LA"; + case 750: + return "NULLS_LA"; + case 751: + return "WITH_LA"; + case 752: + return "WITHOUT_LA"; + case 753: + return "MODE_TYPE_NAME"; + case 754: + return "MODE_PLPGSQL_EXPR"; + case 755: + return "MODE_PLPGSQL_ASSIGN1"; + case 756: + return "MODE_PLPGSQL_ASSIGN2"; + case 757: + return "MODE_PLPGSQL_ASSIGN3"; + case 758: + return "UMINUS"; + default: + throw new Error("Value not recognized in enum Token"); + } + } + default: + throw new Error("Enum type not recognized"); + } +};", + "file": "custom-string.ts", + }, + { + "code": "/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export type EnumType = "OverridingKind" | "QuerySource" | "SortByDir" | "SortByNulls" | "SetQuantifier" | "A_Expr_Kind" | "RoleSpecType" | "TableLikeOption" | "DefElemAction" | "PartitionStrategy" | "PartitionRangeDatumKind" | "RTEKind" | "WCOKind" | "GroupingSetKind" | "CTEMaterialize" | "SetOperation" | "ObjectType" | "DropBehavior" | "AlterTableType" | "GrantTargetType" | "VariableSetKind" | "ConstrType" | "ImportForeignSchemaType" | "RoleStmtType" | "FetchDirection" | "FunctionParameterMode" | "TransactionStmtKind" | "ViewCheckOption" | "DiscardMode" | "ReindexObjectType" | "AlterTSConfigType" | "PublicationObjSpecType" | "AlterPublicationAction" | "AlterSubscriptionType" | "OnCommitAction" | "ParamKind" | "CoercionContext" | "CoercionForm" | "BoolExprType" | "SubLinkType" | "RowCompareType" | "MinMaxOp" | "SQLValueFunctionOp" | "XmlExprOp" | "XmlOptionType" | "JsonEncoding" | "JsonFormatType" | "JsonConstructorType" | "JsonValueType" | "NullTestType" | "BoolTestType" | "CmdType" | "JoinType" | "AggStrategy" | "AggSplit" | "SetOpCmd" | "SetOpStrategy" | "OnConflictAction" | "LimitOption" | "LockClauseStrength" | "LockWaitPolicy" | "LockTupleMode" | "KeywordKind" | "Token"; +export const getEnumInt = (enumType: EnumType, key: string): number => { + switch (enumType) { + case "OverridingKind": + { + switch (key) { + case "OVERRIDING_NOT_SET": + return 0; + case "OVERRIDING_USER_VALUE": + return 1; + case "OVERRIDING_SYSTEM_VALUE": + return 2; + default: + throw new Error("Key not recognized in enum OverridingKind"); + } + } + case "QuerySource": + { + switch (key) { + case "QSRC_ORIGINAL": + return 0; + case "QSRC_PARSER": + return 1; + case "QSRC_INSTEAD_RULE": + return 2; + case "QSRC_QUAL_INSTEAD_RULE": + return 3; + case "QSRC_NON_INSTEAD_RULE": + return 4; + default: + throw new Error("Key not recognized in enum QuerySource"); + } + } + case "SortByDir": + { + switch (key) { + case "SORTBY_DEFAULT": + return 0; + case "SORTBY_ASC": + return 1; + case "SORTBY_DESC": + return 2; + case "SORTBY_USING": + return 3; + default: + throw new Error("Key not recognized in enum SortByDir"); + } + } + case "SortByNulls": + { + switch (key) { + case "SORTBY_NULLS_DEFAULT": + return 0; + case "SORTBY_NULLS_FIRST": + return 1; + case "SORTBY_NULLS_LAST": + return 2; + default: + throw new Error("Key not recognized in enum SortByNulls"); + } + } + case "SetQuantifier": + { + switch (key) { + case "SET_QUANTIFIER_DEFAULT": + return 0; + case "SET_QUANTIFIER_ALL": + return 1; + case "SET_QUANTIFIER_DISTINCT": + return 2; + default: + throw new Error("Key not recognized in enum SetQuantifier"); + } + } + case "A_Expr_Kind": + { + switch (key) { + case "AEXPR_OP": + return 0; + case "AEXPR_OP_ANY": + return 1; + case "AEXPR_OP_ALL": + return 2; + case "AEXPR_DISTINCT": + return 3; + case "AEXPR_NOT_DISTINCT": + return 4; + case "AEXPR_NULLIF": + return 5; + case "AEXPR_IN": + return 6; + case "AEXPR_LIKE": + return 7; + case "AEXPR_ILIKE": + return 8; + case "AEXPR_SIMILAR": + return 9; + case "AEXPR_BETWEEN": + return 10; + case "AEXPR_NOT_BETWEEN": + return 11; + case "AEXPR_BETWEEN_SYM": + return 12; + case "AEXPR_NOT_BETWEEN_SYM": + return 13; + default: + throw new Error("Key not recognized in enum A_Expr_Kind"); + } + } + case "RoleSpecType": + { + switch (key) { + case "ROLESPEC_CSTRING": + return 0; + case "ROLESPEC_CURRENT_ROLE": + return 1; + case "ROLESPEC_CURRENT_USER": + return 2; + case "ROLESPEC_SESSION_USER": + return 3; + case "ROLESPEC_PUBLIC": + return 4; + default: + throw new Error("Key not recognized in enum RoleSpecType"); + } + } + case "TableLikeOption": + { + switch (key) { + case "CREATE_TABLE_LIKE_COMMENTS": + return 0; + case "CREATE_TABLE_LIKE_COMPRESSION": + return 1; + case "CREATE_TABLE_LIKE_CONSTRAINTS": + return 2; + case "CREATE_TABLE_LIKE_DEFAULTS": + return 3; + case "CREATE_TABLE_LIKE_GENERATED": + return 4; + case "CREATE_TABLE_LIKE_IDENTITY": + return 5; + case "CREATE_TABLE_LIKE_INDEXES": + return 6; + case "CREATE_TABLE_LIKE_STATISTICS": + return 7; + case "CREATE_TABLE_LIKE_STORAGE": + return 8; + case "CREATE_TABLE_LIKE_ALL": + return 9; + default: + throw new Error("Key not recognized in enum TableLikeOption"); + } + } + case "DefElemAction": + { + switch (key) { + case "DEFELEM_UNSPEC": + return 0; + case "DEFELEM_SET": + return 1; + case "DEFELEM_ADD": + return 2; + case "DEFELEM_DROP": + return 3; + default: + throw new Error("Key not recognized in enum DefElemAction"); + } + } + case "PartitionStrategy": + { + switch (key) { + case "PARTITION_STRATEGY_LIST": + return 0; + case "PARTITION_STRATEGY_RANGE": + return 1; + case "PARTITION_STRATEGY_HASH": + return 2; + default: + throw new Error("Key not recognized in enum PartitionStrategy"); + } + } + case "PartitionRangeDatumKind": + { + switch (key) { + case "PARTITION_RANGE_DATUM_MINVALUE": + return 0; + case "PARTITION_RANGE_DATUM_VALUE": + return 1; + case "PARTITION_RANGE_DATUM_MAXVALUE": + return 2; + default: + throw new Error("Key not recognized in enum PartitionRangeDatumKind"); + } + } + case "RTEKind": + { + switch (key) { + case "RTE_RELATION": + return 0; + case "RTE_SUBQUERY": + return 1; + case "RTE_JOIN": + return 2; + case "RTE_FUNCTION": + return 3; + case "RTE_TABLEFUNC": + return 4; + case "RTE_VALUES": + return 5; + case "RTE_CTE": + return 6; + case "RTE_NAMEDTUPLESTORE": + return 7; + case "RTE_RESULT": + return 8; + default: + throw new Error("Key not recognized in enum RTEKind"); + } + } + case "WCOKind": + { + switch (key) { + case "WCO_VIEW_CHECK": + return 0; + case "WCO_RLS_INSERT_CHECK": + return 1; + case "WCO_RLS_UPDATE_CHECK": + return 2; + case "WCO_RLS_CONFLICT_CHECK": + return 3; + case "WCO_RLS_MERGE_UPDATE_CHECK": + return 4; + case "WCO_RLS_MERGE_DELETE_CHECK": + return 5; + default: + throw new Error("Key not recognized in enum WCOKind"); + } + } + case "GroupingSetKind": + { + switch (key) { + case "GROUPING_SET_EMPTY": + return 0; + case "GROUPING_SET_SIMPLE": + return 1; + case "GROUPING_SET_ROLLUP": + return 2; + case "GROUPING_SET_CUBE": + return 3; + case "GROUPING_SET_SETS": + return 4; + default: + throw new Error("Key not recognized in enum GroupingSetKind"); + } + } + case "CTEMaterialize": + { + switch (key) { + case "CTEMaterializeDefault": + return 0; + case "CTEMaterializeAlways": + return 1; + case "CTEMaterializeNever": + return 2; + default: + throw new Error("Key not recognized in enum CTEMaterialize"); + } + } + case "SetOperation": + { + switch (key) { + case "SETOP_NONE": + return 0; + case "SETOP_UNION": + return 1; + case "SETOP_INTERSECT": + return 2; + case "SETOP_EXCEPT": + return 3; + default: + throw new Error("Key not recognized in enum SetOperation"); + } + } + case "ObjectType": + { + switch (key) { + case "OBJECT_ACCESS_METHOD": + return 0; + case "OBJECT_AGGREGATE": + return 1; + case "OBJECT_AMOP": + return 2; + case "OBJECT_AMPROC": + return 3; + case "OBJECT_ATTRIBUTE": + return 4; + case "OBJECT_CAST": + return 5; + case "OBJECT_COLUMN": + return 6; + case "OBJECT_COLLATION": + return 7; + case "OBJECT_CONVERSION": + return 8; + case "OBJECT_DATABASE": + return 9; + case "OBJECT_DEFAULT": + return 10; + case "OBJECT_DEFACL": + return 11; + case "OBJECT_DOMAIN": + return 12; + case "OBJECT_DOMCONSTRAINT": + return 13; + case "OBJECT_EVENT_TRIGGER": + return 14; + case "OBJECT_EXTENSION": + return 15; + case "OBJECT_FDW": + return 16; + case "OBJECT_FOREIGN_SERVER": + return 17; + case "OBJECT_FOREIGN_TABLE": + return 18; + case "OBJECT_FUNCTION": + return 19; + case "OBJECT_INDEX": + return 20; + case "OBJECT_LANGUAGE": + return 21; + case "OBJECT_LARGEOBJECT": + return 22; + case "OBJECT_MATVIEW": + return 23; + case "OBJECT_OPCLASS": + return 24; + case "OBJECT_OPERATOR": + return 25; + case "OBJECT_OPFAMILY": + return 26; + case "OBJECT_PARAMETER_ACL": + return 27; + case "OBJECT_POLICY": + return 28; + case "OBJECT_PROCEDURE": + return 29; + case "OBJECT_PUBLICATION": + return 30; + case "OBJECT_PUBLICATION_NAMESPACE": + return 31; + case "OBJECT_PUBLICATION_REL": + return 32; + case "OBJECT_ROLE": + return 33; + case "OBJECT_ROUTINE": + return 34; + case "OBJECT_RULE": + return 35; + case "OBJECT_SCHEMA": + return 36; + case "OBJECT_SEQUENCE": + return 37; + case "OBJECT_SUBSCRIPTION": + return 38; + case "OBJECT_STATISTIC_EXT": + return 39; + case "OBJECT_TABCONSTRAINT": + return 40; + case "OBJECT_TABLE": + return 41; + case "OBJECT_TABLESPACE": + return 42; + case "OBJECT_TRANSFORM": + return 43; + case "OBJECT_TRIGGER": + return 44; + case "OBJECT_TSCONFIGURATION": + return 45; + case "OBJECT_TSDICTIONARY": + return 46; + case "OBJECT_TSPARSER": + return 47; + case "OBJECT_TSTEMPLATE": + return 48; + case "OBJECT_TYPE": + return 49; + case "OBJECT_USER_MAPPING": + return 50; + case "OBJECT_VIEW": + return 51; + default: + throw new Error("Key not recognized in enum ObjectType"); + } + } + case "DropBehavior": + { + switch (key) { + case "DROP_RESTRICT": + return 0; + case "DROP_CASCADE": + return 1; + default: + throw new Error("Key not recognized in enum DropBehavior"); + } + } + case "AlterTableType": + { + switch (key) { + case "AT_AddColumn": + return 0; + case "AT_AddColumnToView": + return 1; + case "AT_ColumnDefault": + return 2; + case "AT_CookedColumnDefault": + return 3; + case "AT_DropNotNull": + return 4; + case "AT_SetNotNull": + return 5; + case "AT_DropExpression": + return 6; + case "AT_CheckNotNull": + return 7; + case "AT_SetStatistics": + return 8; + case "AT_SetOptions": + return 9; + case "AT_ResetOptions": + return 10; + case "AT_SetStorage": + return 11; + case "AT_SetCompression": + return 12; + case "AT_DropColumn": + return 13; + case "AT_AddIndex": + return 14; + case "AT_ReAddIndex": + return 15; + case "AT_AddConstraint": + return 16; + case "AT_ReAddConstraint": + return 17; + case "AT_ReAddDomainConstraint": + return 18; + case "AT_AlterConstraint": + return 19; + case "AT_ValidateConstraint": + return 20; + case "AT_AddIndexConstraint": + return 21; + case "AT_DropConstraint": + return 22; + case "AT_ReAddComment": + return 23; + case "AT_AlterColumnType": + return 24; + case "AT_AlterColumnGenericOptions": + return 25; + case "AT_ChangeOwner": + return 26; + case "AT_ClusterOn": + return 27; + case "AT_DropCluster": + return 28; + case "AT_SetLogged": + return 29; + case "AT_SetUnLogged": + return 30; + case "AT_DropOids": + return 31; + case "AT_SetAccessMethod": + return 32; + case "AT_SetTableSpace": + return 33; + case "AT_SetRelOptions": + return 34; + case "AT_ResetRelOptions": + return 35; + case "AT_ReplaceRelOptions": + return 36; + case "AT_EnableTrig": + return 37; + case "AT_EnableAlwaysTrig": + return 38; + case "AT_EnableReplicaTrig": + return 39; + case "AT_DisableTrig": + return 40; + case "AT_EnableTrigAll": + return 41; + case "AT_DisableTrigAll": + return 42; + case "AT_EnableTrigUser": + return 43; + case "AT_DisableTrigUser": + return 44; + case "AT_EnableRule": + return 45; + case "AT_EnableAlwaysRule": + return 46; + case "AT_EnableReplicaRule": + return 47; + case "AT_DisableRule": + return 48; + case "AT_AddInherit": + return 49; + case "AT_DropInherit": + return 50; + case "AT_AddOf": + return 51; + case "AT_DropOf": + return 52; + case "AT_ReplicaIdentity": + return 53; + case "AT_EnableRowSecurity": + return 54; + case "AT_DisableRowSecurity": + return 55; + case "AT_ForceRowSecurity": + return 56; + case "AT_NoForceRowSecurity": + return 57; + case "AT_GenericOptions": + return 58; + case "AT_AttachPartition": + return 59; + case "AT_DetachPartition": + return 60; + case "AT_DetachPartitionFinalize": + return 61; + case "AT_AddIdentity": + return 62; + case "AT_SetIdentity": + return 63; + case "AT_DropIdentity": + return 64; + case "AT_ReAddStatistics": + return 65; + default: + throw new Error("Key not recognized in enum AlterTableType"); + } + } + case "GrantTargetType": + { + switch (key) { + case "ACL_TARGET_OBJECT": + return 0; + case "ACL_TARGET_ALL_IN_SCHEMA": + return 1; + case "ACL_TARGET_DEFAULTS": + return 2; + default: + throw new Error("Key not recognized in enum GrantTargetType"); + } + } + case "VariableSetKind": + { + switch (key) { + case "VAR_SET_VALUE": + return 0; + case "VAR_SET_DEFAULT": + return 1; + case "VAR_SET_CURRENT": + return 2; + case "VAR_SET_MULTI": + return 3; + case "VAR_RESET": + return 4; + case "VAR_RESET_ALL": + return 5; + default: + throw new Error("Key not recognized in enum VariableSetKind"); + } + } + case "ConstrType": + { + switch (key) { + case "CONSTR_NULL": + return 0; + case "CONSTR_NOTNULL": + return 1; + case "CONSTR_DEFAULT": + return 2; + case "CONSTR_IDENTITY": + return 3; + case "CONSTR_GENERATED": + return 4; + case "CONSTR_CHECK": + return 5; + case "CONSTR_PRIMARY": + return 6; + case "CONSTR_UNIQUE": + return 7; + case "CONSTR_EXCLUSION": + return 8; + case "CONSTR_FOREIGN": + return 9; + case "CONSTR_ATTR_DEFERRABLE": + return 10; + case "CONSTR_ATTR_NOT_DEFERRABLE": + return 11; + case "CONSTR_ATTR_DEFERRED": + return 12; + case "CONSTR_ATTR_IMMEDIATE": + return 13; + default: + throw new Error("Key not recognized in enum ConstrType"); + } + } + case "ImportForeignSchemaType": + { + switch (key) { + case "FDW_IMPORT_SCHEMA_ALL": + return 0; + case "FDW_IMPORT_SCHEMA_LIMIT_TO": + return 1; + case "FDW_IMPORT_SCHEMA_EXCEPT": + return 2; + default: + throw new Error("Key not recognized in enum ImportForeignSchemaType"); + } + } + case "RoleStmtType": + { + switch (key) { + case "ROLESTMT_ROLE": + return 0; + case "ROLESTMT_USER": + return 1; + case "ROLESTMT_GROUP": + return 2; + default: + throw new Error("Key not recognized in enum RoleStmtType"); + } + } + case "FetchDirection": + { + switch (key) { + case "FETCH_FORWARD": + return 0; + case "FETCH_BACKWARD": + return 1; + case "FETCH_ABSOLUTE": + return 2; + case "FETCH_RELATIVE": + return 3; + default: + throw new Error("Key not recognized in enum FetchDirection"); + } + } + case "FunctionParameterMode": + { + switch (key) { + case "FUNC_PARAM_IN": + return 0; + case "FUNC_PARAM_OUT": + return 1; + case "FUNC_PARAM_INOUT": + return 2; + case "FUNC_PARAM_VARIADIC": + return 3; + case "FUNC_PARAM_TABLE": + return 4; + case "FUNC_PARAM_DEFAULT": + return 5; + default: + throw new Error("Key not recognized in enum FunctionParameterMode"); + } + } + case "TransactionStmtKind": + { + switch (key) { + case "TRANS_STMT_BEGIN": + return 0; + case "TRANS_STMT_START": + return 1; + case "TRANS_STMT_COMMIT": + return 2; + case "TRANS_STMT_ROLLBACK": + return 3; + case "TRANS_STMT_SAVEPOINT": + return 4; + case "TRANS_STMT_RELEASE": + return 5; + case "TRANS_STMT_ROLLBACK_TO": + return 6; + case "TRANS_STMT_PREPARE": + return 7; + case "TRANS_STMT_COMMIT_PREPARED": + return 8; + case "TRANS_STMT_ROLLBACK_PREPARED": + return 9; + default: + throw new Error("Key not recognized in enum TransactionStmtKind"); + } + } + case "ViewCheckOption": + { + switch (key) { + case "NO_CHECK_OPTION": + return 0; + case "LOCAL_CHECK_OPTION": + return 1; + case "CASCADED_CHECK_OPTION": + return 2; + default: + throw new Error("Key not recognized in enum ViewCheckOption"); + } + } + case "DiscardMode": + { + switch (key) { + case "DISCARD_ALL": + return 0; + case "DISCARD_PLANS": + return 1; + case "DISCARD_SEQUENCES": + return 2; + case "DISCARD_TEMP": + return 3; + default: + throw new Error("Key not recognized in enum DiscardMode"); + } + } + case "ReindexObjectType": + { + switch (key) { + case "REINDEX_OBJECT_INDEX": + return 0; + case "REINDEX_OBJECT_TABLE": + return 1; + case "REINDEX_OBJECT_SCHEMA": + return 2; + case "REINDEX_OBJECT_SYSTEM": + return 3; + case "REINDEX_OBJECT_DATABASE": + return 4; + default: + throw new Error("Key not recognized in enum ReindexObjectType"); + } + } + case "AlterTSConfigType": + { + switch (key) { + case "ALTER_TSCONFIG_ADD_MAPPING": + return 0; + case "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN": + return 1; + case "ALTER_TSCONFIG_REPLACE_DICT": + return 2; + case "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN": + return 3; + case "ALTER_TSCONFIG_DROP_MAPPING": + return 4; + default: + throw new Error("Key not recognized in enum AlterTSConfigType"); + } + } + case "PublicationObjSpecType": + { + switch (key) { + case "PUBLICATIONOBJ_TABLE": + return 0; + case "PUBLICATIONOBJ_TABLES_IN_SCHEMA": + return 1; + case "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA": + return 2; + case "PUBLICATIONOBJ_CONTINUATION": + return 3; + default: + throw new Error("Key not recognized in enum PublicationObjSpecType"); + } + } + case "AlterPublicationAction": + { + switch (key) { + case "AP_AddObjects": + return 0; + case "AP_DropObjects": + return 1; + case "AP_SetObjects": + return 2; + default: + throw new Error("Key not recognized in enum AlterPublicationAction"); + } + } + case "AlterSubscriptionType": + { + switch (key) { + case "ALTER_SUBSCRIPTION_OPTIONS": + return 0; + case "ALTER_SUBSCRIPTION_CONNECTION": + return 1; + case "ALTER_SUBSCRIPTION_SET_PUBLICATION": + return 2; + case "ALTER_SUBSCRIPTION_ADD_PUBLICATION": + return 3; + case "ALTER_SUBSCRIPTION_DROP_PUBLICATION": + return 4; + case "ALTER_SUBSCRIPTION_REFRESH": + return 5; + case "ALTER_SUBSCRIPTION_ENABLED": + return 6; + case "ALTER_SUBSCRIPTION_SKIP": + return 7; + default: + throw new Error("Key not recognized in enum AlterSubscriptionType"); + } + } + case "OnCommitAction": + { + switch (key) { + case "ONCOMMIT_NOOP": + return 0; + case "ONCOMMIT_PRESERVE_ROWS": + return 1; + case "ONCOMMIT_DELETE_ROWS": + return 2; + case "ONCOMMIT_DROP": + return 3; + default: + throw new Error("Key not recognized in enum OnCommitAction"); + } + } + case "ParamKind": + { + switch (key) { + case "PARAM_EXTERN": + return 0; + case "PARAM_EXEC": + return 1; + case "PARAM_SUBLINK": + return 2; + case "PARAM_MULTIEXPR": + return 3; + default: + throw new Error("Key not recognized in enum ParamKind"); + } + } + case "CoercionContext": + { + switch (key) { + case "COERCION_IMPLICIT": + return 0; + case "COERCION_ASSIGNMENT": + return 1; + case "COERCION_PLPGSQL": + return 2; + case "COERCION_EXPLICIT": + return 3; + default: + throw new Error("Key not recognized in enum CoercionContext"); + } + } + case "CoercionForm": + { + switch (key) { + case "COERCE_EXPLICIT_CALL": + return 0; + case "COERCE_EXPLICIT_CAST": + return 1; + case "COERCE_IMPLICIT_CAST": + return 2; + case "COERCE_SQL_SYNTAX": + return 3; + default: + throw new Error("Key not recognized in enum CoercionForm"); + } + } + case "BoolExprType": + { + switch (key) { + case "AND_EXPR": + return 0; + case "OR_EXPR": + return 1; + case "NOT_EXPR": + return 2; + default: + throw new Error("Key not recognized in enum BoolExprType"); + } + } + case "SubLinkType": + { + switch (key) { + case "EXISTS_SUBLINK": + return 0; + case "ALL_SUBLINK": + return 1; + case "ANY_SUBLINK": + return 2; + case "ROWCOMPARE_SUBLINK": + return 3; + case "EXPR_SUBLINK": + return 4; + case "MULTIEXPR_SUBLINK": + return 5; + case "ARRAY_SUBLINK": + return 6; + case "CTE_SUBLINK": + return 7; + default: + throw new Error("Key not recognized in enum SubLinkType"); + } + } + case "RowCompareType": + { + switch (key) { + case "ROWCOMPARE_LT": + return 0; + case "ROWCOMPARE_LE": + return 1; + case "ROWCOMPARE_EQ": + return 2; + case "ROWCOMPARE_GE": + return 3; + case "ROWCOMPARE_GT": + return 4; + case "ROWCOMPARE_NE": + return 5; + default: + throw new Error("Key not recognized in enum RowCompareType"); + } + } + case "MinMaxOp": + { + switch (key) { + case "IS_GREATEST": + return 0; + case "IS_LEAST": + return 1; + default: + throw new Error("Key not recognized in enum MinMaxOp"); + } + } + case "SQLValueFunctionOp": + { + switch (key) { + case "SVFOP_CURRENT_DATE": + return 0; + case "SVFOP_CURRENT_TIME": + return 1; + case "SVFOP_CURRENT_TIME_N": + return 2; + case "SVFOP_CURRENT_TIMESTAMP": + return 3; + case "SVFOP_CURRENT_TIMESTAMP_N": + return 4; + case "SVFOP_LOCALTIME": + return 5; + case "SVFOP_LOCALTIME_N": + return 6; + case "SVFOP_LOCALTIMESTAMP": + return 7; + case "SVFOP_LOCALTIMESTAMP_N": + return 8; + case "SVFOP_CURRENT_ROLE": + return 9; + case "SVFOP_CURRENT_USER": + return 10; + case "SVFOP_USER": + return 11; + case "SVFOP_SESSION_USER": + return 12; + case "SVFOP_CURRENT_CATALOG": + return 13; + case "SVFOP_CURRENT_SCHEMA": + return 14; + default: + throw new Error("Key not recognized in enum SQLValueFunctionOp"); + } + } + case "XmlExprOp": + { + switch (key) { + case "IS_XMLCONCAT": + return 0; + case "IS_XMLELEMENT": + return 1; + case "IS_XMLFOREST": + return 2; + case "IS_XMLPARSE": + return 3; + case "IS_XMLPI": + return 4; + case "IS_XMLROOT": + return 5; + case "IS_XMLSERIALIZE": + return 6; + case "IS_DOCUMENT": + return 7; + default: + throw new Error("Key not recognized in enum XmlExprOp"); + } + } + case "XmlOptionType": + { + switch (key) { + case "XMLOPTION_DOCUMENT": + return 0; + case "XMLOPTION_CONTENT": + return 1; + default: + throw new Error("Key not recognized in enum XmlOptionType"); + } + } + case "JsonEncoding": + { + switch (key) { + case "JS_ENC_DEFAULT": + return 0; + case "JS_ENC_UTF8": + return 1; + case "JS_ENC_UTF16": + return 2; + case "JS_ENC_UTF32": + return 3; + default: + throw new Error("Key not recognized in enum JsonEncoding"); + } + } + case "JsonFormatType": + { + switch (key) { + case "JS_FORMAT_DEFAULT": + return 0; + case "JS_FORMAT_JSON": + return 1; + case "JS_FORMAT_JSONB": + return 2; + default: + throw new Error("Key not recognized in enum JsonFormatType"); + } + } + case "JsonConstructorType": + { + switch (key) { + case "JSCTOR_JSON_OBJECT": + return 0; + case "JSCTOR_JSON_ARRAY": + return 1; + case "JSCTOR_JSON_OBJECTAGG": + return 2; + case "JSCTOR_JSON_ARRAYAGG": + return 3; + default: + throw new Error("Key not recognized in enum JsonConstructorType"); + } + } + case "JsonValueType": + { + switch (key) { + case "JS_TYPE_ANY": + return 0; + case "JS_TYPE_OBJECT": + return 1; + case "JS_TYPE_ARRAY": + return 2; + case "JS_TYPE_SCALAR": + return 3; + default: + throw new Error("Key not recognized in enum JsonValueType"); + } + } + case "NullTestType": + { + switch (key) { + case "IS_NULL": + return 0; + case "IS_NOT_NULL": + return 1; + default: + throw new Error("Key not recognized in enum NullTestType"); + } + } + case "BoolTestType": + { + switch (key) { + case "IS_TRUE": + return 0; + case "IS_NOT_TRUE": + return 1; + case "IS_FALSE": + return 2; + case "IS_NOT_FALSE": + return 3; + case "IS_UNKNOWN": + return 4; + case "IS_NOT_UNKNOWN": + return 5; + default: + throw new Error("Key not recognized in enum BoolTestType"); + } + } + case "CmdType": + { + switch (key) { + case "CMD_UNKNOWN": + return 0; + case "CMD_SELECT": + return 1; + case "CMD_UPDATE": + return 2; + case "CMD_INSERT": + return 3; + case "CMD_DELETE": + return 4; + case "CMD_MERGE": + return 5; + case "CMD_UTILITY": + return 6; + case "CMD_NOTHING": + return 7; + default: + throw new Error("Key not recognized in enum CmdType"); + } + } + case "JoinType": + { + switch (key) { + case "JOIN_INNER": + return 0; + case "JOIN_LEFT": + return 1; + case "JOIN_FULL": + return 2; + case "JOIN_RIGHT": + return 3; + case "JOIN_SEMI": + return 4; + case "JOIN_ANTI": + return 5; + case "JOIN_RIGHT_ANTI": + return 6; + case "JOIN_UNIQUE_OUTER": + return 7; + case "JOIN_UNIQUE_INNER": + return 8; + default: + throw new Error("Key not recognized in enum JoinType"); + } + } + case "AggStrategy": + { + switch (key) { + case "AGG_PLAIN": + return 0; + case "AGG_SORTED": + return 1; + case "AGG_HASHED": + return 2; + case "AGG_MIXED": + return 3; + default: + throw new Error("Key not recognized in enum AggStrategy"); + } + } + case "AggSplit": + { + switch (key) { + case "AGGSPLIT_SIMPLE": + return 0; + case "AGGSPLIT_INITIAL_SERIAL": + return 1; + case "AGGSPLIT_FINAL_DESERIAL": + return 2; + default: + throw new Error("Key not recognized in enum AggSplit"); + } + } + case "SetOpCmd": + { + switch (key) { + case "SETOPCMD_INTERSECT": + return 0; + case "SETOPCMD_INTERSECT_ALL": + return 1; + case "SETOPCMD_EXCEPT": + return 2; + case "SETOPCMD_EXCEPT_ALL": + return 3; + default: + throw new Error("Key not recognized in enum SetOpCmd"); + } + } + case "SetOpStrategy": + { + switch (key) { + case "SETOP_SORTED": + return 0; + case "SETOP_HASHED": + return 1; + default: + throw new Error("Key not recognized in enum SetOpStrategy"); + } + } + case "OnConflictAction": + { + switch (key) { + case "ONCONFLICT_NONE": + return 0; + case "ONCONFLICT_NOTHING": + return 1; + case "ONCONFLICT_UPDATE": + return 2; + default: + throw new Error("Key not recognized in enum OnConflictAction"); + } + } + case "LimitOption": + { + switch (key) { + case "LIMIT_OPTION_DEFAULT": + return 0; + case "LIMIT_OPTION_COUNT": + return 1; + case "LIMIT_OPTION_WITH_TIES": + return 2; + default: + throw new Error("Key not recognized in enum LimitOption"); + } + } + case "LockClauseStrength": + { + switch (key) { + case "LCS_NONE": + return 0; + case "LCS_FORKEYSHARE": + return 1; + case "LCS_FORSHARE": + return 2; + case "LCS_FORNOKEYUPDATE": + return 3; + case "LCS_FORUPDATE": + return 4; + default: + throw new Error("Key not recognized in enum LockClauseStrength"); + } + } + case "LockWaitPolicy": + { + switch (key) { + case "LockWaitBlock": + return 0; + case "LockWaitSkip": + return 1; + case "LockWaitError": + return 2; + default: + throw new Error("Key not recognized in enum LockWaitPolicy"); + } + } + case "LockTupleMode": + { + switch (key) { + case "LockTupleKeyShare": + return 0; + case "LockTupleShare": + return 1; + case "LockTupleNoKeyExclusive": + return 2; + case "LockTupleExclusive": + return 3; + default: + throw new Error("Key not recognized in enum LockTupleMode"); + } + } + case "KeywordKind": + { + switch (key) { + case "NO_KEYWORD": + return 0; + case "UNRESERVED_KEYWORD": + return 1; + case "COL_NAME_KEYWORD": + return 2; + case "TYPE_FUNC_NAME_KEYWORD": + return 3; + case "RESERVED_KEYWORD": + return 4; + default: + throw new Error("Key not recognized in enum KeywordKind"); + } + } + case "Token": + { + switch (key) { + case "NUL": + return 0; + case "ASCII_36": + return 36; + case "ASCII_37": + return 37; + case "ASCII_40": + return 40; + case "ASCII_41": + return 41; + case "ASCII_42": + return 42; + case "ASCII_43": + return 43; + case "ASCII_44": + return 44; + case "ASCII_45": + return 45; + case "ASCII_46": + return 46; + case "ASCII_47": + return 47; + case "ASCII_58": + return 58; + case "ASCII_59": + return 59; + case "ASCII_60": + return 60; + case "ASCII_61": + return 61; + case "ASCII_62": + return 62; + case "ASCII_63": + return 63; + case "ASCII_91": + return 91; + case "ASCII_92": + return 92; + case "ASCII_93": + return 93; + case "ASCII_94": + return 94; + case "IDENT": + return 258; + case "UIDENT": + return 259; + case "FCONST": + return 260; + case "SCONST": + return 261; + case "USCONST": + return 262; + case "BCONST": + return 263; + case "XCONST": + return 264; + case "Op": + return 265; + case "ICONST": + return 266; + case "PARAM": + return 267; + case "TYPECAST": + return 268; + case "DOT_DOT": + return 269; + case "COLON_EQUALS": + return 270; + case "EQUALS_GREATER": + return 271; + case "LESS_EQUALS": + return 272; + case "GREATER_EQUALS": + return 273; + case "NOT_EQUALS": + return 274; + case "SQL_COMMENT": + return 275; + case "C_COMMENT": + return 276; + case "ABORT_P": + return 277; + case "ABSENT": + return 278; + case "ABSOLUTE_P": + return 279; + case "ACCESS": + return 280; + case "ACTION": + return 281; + case "ADD_P": + return 282; + case "ADMIN": + return 283; + case "AFTER": + return 284; + case "AGGREGATE": + return 285; + case "ALL": + return 286; + case "ALSO": + return 287; + case "ALTER": + return 288; + case "ALWAYS": + return 289; + case "ANALYSE": + return 290; + case "ANALYZE": + return 291; + case "AND": + return 292; + case "ANY": + return 293; + case "ARRAY": + return 294; + case "AS": + return 295; + case "ASC": + return 296; + case "ASENSITIVE": + return 297; + case "ASSERTION": + return 298; + case "ASSIGNMENT": + return 299; + case "ASYMMETRIC": + return 300; + case "ATOMIC": + return 301; + case "AT": + return 302; + case "ATTACH": + return 303; + case "ATTRIBUTE": + return 304; + case "AUTHORIZATION": + return 305; + case "BACKWARD": + return 306; + case "BEFORE": + return 307; + case "BEGIN_P": + return 308; + case "BETWEEN": + return 309; + case "BIGINT": + return 310; + case "BINARY": + return 311; + case "BIT": + return 312; + case "BOOLEAN_P": + return 313; + case "BOTH": + return 314; + case "BREADTH": + return 315; + case "BY": + return 316; + case "CACHE": + return 317; + case "CALL": + return 318; + case "CALLED": + return 319; + case "CASCADE": + return 320; + case "CASCADED": + return 321; + case "CASE": + return 322; + case "CAST": + return 323; + case "CATALOG_P": + return 324; + case "CHAIN": + return 325; + case "CHAR_P": + return 326; + case "CHARACTER": + return 327; + case "CHARACTERISTICS": + return 328; + case "CHECK": + return 329; + case "CHECKPOINT": + return 330; + case "CLASS": + return 331; + case "CLOSE": + return 332; + case "CLUSTER": + return 333; + case "COALESCE": + return 334; + case "COLLATE": + return 335; + case "COLLATION": + return 336; + case "COLUMN": + return 337; + case "COLUMNS": + return 338; + case "COMMENT": + return 339; + case "COMMENTS": + return 340; + case "COMMIT": + return 341; + case "COMMITTED": + return 342; + case "COMPRESSION": + return 343; + case "CONCURRENTLY": + return 344; + case "CONFIGURATION": + return 345; + case "CONFLICT": + return 346; + case "CONNECTION": + return 347; + case "CONSTRAINT": + return 348; + case "CONSTRAINTS": + return 349; + case "CONTENT_P": + return 350; + case "CONTINUE_P": + return 351; + case "CONVERSION_P": + return 352; + case "COPY": + return 353; + case "COST": + return 354; + case "CREATE": + return 355; + case "CROSS": + return 356; + case "CSV": + return 357; + case "CUBE": + return 358; + case "CURRENT_P": + return 359; + case "CURRENT_CATALOG": + return 360; + case "CURRENT_DATE": + return 361; + case "CURRENT_ROLE": + return 362; + case "CURRENT_SCHEMA": + return 363; + case "CURRENT_TIME": + return 364; + case "CURRENT_TIMESTAMP": + return 365; + case "CURRENT_USER": + return 366; + case "CURSOR": + return 367; + case "CYCLE": + return 368; + case "DATA_P": + return 369; + case "DATABASE": + return 370; + case "DAY_P": + return 371; + case "DEALLOCATE": + return 372; + case "DEC": + return 373; + case "DECIMAL_P": + return 374; + case "DECLARE": + return 375; + case "DEFAULT": + return 376; + case "DEFAULTS": + return 377; + case "DEFERRABLE": + return 378; + case "DEFERRED": + return 379; + case "DEFINER": + return 380; + case "DELETE_P": + return 381; + case "DELIMITER": + return 382; + case "DELIMITERS": + return 383; + case "DEPENDS": + return 384; + case "DEPTH": + return 385; + case "DESC": + return 386; + case "DETACH": + return 387; + case "DICTIONARY": + return 388; + case "DISABLE_P": + return 389; + case "DISCARD": + return 390; + case "DISTINCT": + return 391; + case "DO": + return 392; + case "DOCUMENT_P": + return 393; + case "DOMAIN_P": + return 394; + case "DOUBLE_P": + return 395; + case "DROP": + return 396; + case "EACH": + return 397; + case "ELSE": + return 398; + case "ENABLE_P": + return 399; + case "ENCODING": + return 400; + case "ENCRYPTED": + return 401; + case "END_P": + return 402; + case "ENUM_P": + return 403; + case "ESCAPE": + return 404; + case "EVENT": + return 405; + case "EXCEPT": + return 406; + case "EXCLUDE": + return 407; + case "EXCLUDING": + return 408; + case "EXCLUSIVE": + return 409; + case "EXECUTE": + return 410; + case "EXISTS": + return 411; + case "EXPLAIN": + return 412; + case "EXPRESSION": + return 413; + case "EXTENSION": + return 414; + case "EXTERNAL": + return 415; + case "EXTRACT": + return 416; + case "FALSE_P": + return 417; + case "FAMILY": + return 418; + case "FETCH": + return 419; + case "FILTER": + return 420; + case "FINALIZE": + return 421; + case "FIRST_P": + return 422; + case "FLOAT_P": + return 423; + case "FOLLOWING": + return 424; + case "FOR": + return 425; + case "FORCE": + return 426; + case "FOREIGN": + return 427; + case "FORMAT": + return 428; + case "FORWARD": + return 429; + case "FREEZE": + return 430; + case "FROM": + return 431; + case "FULL": + return 432; + case "FUNCTION": + return 433; + case "FUNCTIONS": + return 434; + case "GENERATED": + return 435; + case "GLOBAL": + return 436; + case "GRANT": + return 437; + case "GRANTED": + return 438; + case "GREATEST": + return 439; + case "GROUP_P": + return 440; + case "GROUPING": + return 441; + case "GROUPS": + return 442; + case "HANDLER": + return 443; + case "HAVING": + return 444; + case "HEADER_P": + return 445; + case "HOLD": + return 446; + case "HOUR_P": + return 447; + case "IDENTITY_P": + return 448; + case "IF_P": + return 449; + case "ILIKE": + return 450; + case "IMMEDIATE": + return 451; + case "IMMUTABLE": + return 452; + case "IMPLICIT_P": + return 453; + case "IMPORT_P": + return 454; + case "IN_P": + return 455; + case "INCLUDE": + return 456; + case "INCLUDING": + return 457; + case "INCREMENT": + return 458; + case "INDENT": + return 459; + case "INDEX": + return 460; + case "INDEXES": + return 461; + case "INHERIT": + return 462; + case "INHERITS": + return 463; + case "INITIALLY": + return 464; + case "INLINE_P": + return 465; + case "INNER_P": + return 466; + case "INOUT": + return 467; + case "INPUT_P": + return 468; + case "INSENSITIVE": + return 469; + case "INSERT": + return 470; + case "INSTEAD": + return 471; + case "INT_P": + return 472; + case "INTEGER": + return 473; + case "INTERSECT": + return 474; + case "INTERVAL": + return 475; + case "INTO": + return 476; + case "INVOKER": + return 477; + case "IS": + return 478; + case "ISNULL": + return 479; + case "ISOLATION": + return 480; + case "JOIN": + return 481; + case "JSON": + return 482; + case "JSON_ARRAY": + return 483; + case "JSON_ARRAYAGG": + return 484; + case "JSON_OBJECT": + return 485; + case "JSON_OBJECTAGG": + return 486; + case "KEY": + return 487; + case "KEYS": + return 488; + case "LABEL": + return 489; + case "LANGUAGE": + return 490; + case "LARGE_P": + return 491; + case "LAST_P": + return 492; + case "LATERAL_P": + return 493; + case "LEADING": + return 494; + case "LEAKPROOF": + return 495; + case "LEAST": + return 496; + case "LEFT": + return 497; + case "LEVEL": + return 498; + case "LIKE": + return 499; + case "LIMIT": + return 500; + case "LISTEN": + return 501; + case "LOAD": + return 502; + case "LOCAL": + return 503; + case "LOCALTIME": + return 504; + case "LOCALTIMESTAMP": + return 505; + case "LOCATION": + return 506; + case "LOCK_P": + return 507; + case "LOCKED": + return 508; + case "LOGGED": + return 509; + case "MAPPING": + return 510; + case "MATCH": + return 511; + case "MATCHED": + return 512; + case "MATERIALIZED": + return 513; + case "MAXVALUE": + return 514; + case "MERGE": + return 515; + case "METHOD": + return 516; + case "MINUTE_P": + return 517; + case "MINVALUE": + return 518; + case "MODE": + return 519; + case "MONTH_P": + return 520; + case "MOVE": + return 521; + case "NAME_P": + return 522; + case "NAMES": + return 523; + case "NATIONAL": + return 524; + case "NATURAL": + return 525; + case "NCHAR": + return 526; + case "NEW": + return 527; + case "NEXT": + return 528; + case "NFC": + return 529; + case "NFD": + return 530; + case "NFKC": + return 531; + case "NFKD": + return 532; + case "NO": + return 533; + case "NONE": + return 534; + case "NORMALIZE": + return 535; + case "NORMALIZED": + return 536; + case "NOT": + return 537; + case "NOTHING": + return 538; + case "NOTIFY": + return 539; + case "NOTNULL": + return 540; + case "NOWAIT": + return 541; + case "NULL_P": + return 542; + case "NULLIF": + return 543; + case "NULLS_P": + return 544; + case "NUMERIC": + return 545; + case "OBJECT_P": + return 546; + case "OF": + return 547; + case "OFF": + return 548; + case "OFFSET": + return 549; + case "OIDS": + return 550; + case "OLD": + return 551; + case "ON": + return 552; + case "ONLY": + return 553; + case "OPERATOR": + return 554; + case "OPTION": + return 555; + case "OPTIONS": + return 556; + case "OR": + return 557; + case "ORDER": + return 558; + case "ORDINALITY": + return 559; + case "OTHERS": + return 560; + case "OUT_P": + return 561; + case "OUTER_P": + return 562; + case "OVER": + return 563; + case "OVERLAPS": + return 564; + case "OVERLAY": + return 565; + case "OVERRIDING": + return 566; + case "OWNED": + return 567; + case "OWNER": + return 568; + case "PARALLEL": + return 569; + case "PARAMETER": + return 570; + case "PARSER": + return 571; + case "PARTIAL": + return 572; + case "PARTITION": + return 573; + case "PASSING": + return 574; + case "PASSWORD": + return 575; + case "PLACING": + return 576; + case "PLANS": + return 577; + case "POLICY": + return 578; + case "POSITION": + return 579; + case "PRECEDING": + return 580; + case "PRECISION": + return 581; + case "PRESERVE": + return 582; + case "PREPARE": + return 583; + case "PREPARED": + return 584; + case "PRIMARY": + return 585; + case "PRIOR": + return 586; + case "PRIVILEGES": + return 587; + case "PROCEDURAL": + return 588; + case "PROCEDURE": + return 589; + case "PROCEDURES": + return 590; + case "PROGRAM": + return 591; + case "PUBLICATION": + return 592; + case "QUOTE": + return 593; + case "RANGE": + return 594; + case "READ": + return 595; + case "REAL": + return 596; + case "REASSIGN": + return 597; + case "RECHECK": + return 598; + case "RECURSIVE": + return 599; + case "REF_P": + return 600; + case "REFERENCES": + return 601; + case "REFERENCING": + return 602; + case "REFRESH": + return 603; + case "REINDEX": + return 604; + case "RELATIVE_P": + return 605; + case "RELEASE": + return 606; + case "RENAME": + return 607; + case "REPEATABLE": + return 608; + case "REPLACE": + return 609; + case "REPLICA": + return 610; + case "RESET": + return 611; + case "RESTART": + return 612; + case "RESTRICT": + return 613; + case "RETURN": + return 614; + case "RETURNING": + return 615; + case "RETURNS": + return 616; + case "REVOKE": + return 617; + case "RIGHT": + return 618; + case "ROLE": + return 619; + case "ROLLBACK": + return 620; + case "ROLLUP": + return 621; + case "ROUTINE": + return 622; + case "ROUTINES": + return 623; + case "ROW": + return 624; + case "ROWS": + return 625; + case "RULE": + return 626; + case "SAVEPOINT": + return 627; + case "SCALAR": + return 628; + case "SCHEMA": + return 629; + case "SCHEMAS": + return 630; + case "SCROLL": + return 631; + case "SEARCH": + return 632; + case "SECOND_P": + return 633; + case "SECURITY": + return 634; + case "SELECT": + return 635; + case "SEQUENCE": + return 636; + case "SEQUENCES": + return 637; + case "SERIALIZABLE": + return 638; + case "SERVER": + return 639; + case "SESSION": + return 640; + case "SESSION_USER": + return 641; + case "SET": + return 642; + case "SETS": + return 643; + case "SETOF": + return 644; + case "SHARE": + return 645; + case "SHOW": + return 646; + case "SIMILAR": + return 647; + case "SIMPLE": + return 648; + case "SKIP": + return 649; + case "SMALLINT": + return 650; + case "SNAPSHOT": + return 651; + case "SOME": + return 652; + case "SQL_P": + return 653; + case "STABLE": + return 654; + case "STANDALONE_P": + return 655; + case "START": + return 656; + case "STATEMENT": + return 657; + case "STATISTICS": + return 658; + case "STDIN": + return 659; + case "STDOUT": + return 660; + case "STORAGE": + return 661; + case "STORED": + return 662; + case "STRICT_P": + return 663; + case "STRIP_P": + return 664; + case "SUBSCRIPTION": + return 665; + case "SUBSTRING": + return 666; + case "SUPPORT": + return 667; + case "SYMMETRIC": + return 668; + case "SYSID": + return 669; + case "SYSTEM_P": + return 670; + case "SYSTEM_USER": + return 671; + case "TABLE": + return 672; + case "TABLES": + return 673; + case "TABLESAMPLE": + return 674; + case "TABLESPACE": + return 675; + case "TEMP": + return 676; + case "TEMPLATE": + return 677; + case "TEMPORARY": + return 678; + case "TEXT_P": + return 679; + case "THEN": + return 680; + case "TIES": + return 681; + case "TIME": + return 682; + case "TIMESTAMP": + return 683; + case "TO": + return 684; + case "TRAILING": + return 685; + case "TRANSACTION": + return 686; + case "TRANSFORM": + return 687; + case "TREAT": + return 688; + case "TRIGGER": + return 689; + case "TRIM": + return 690; + case "TRUE_P": + return 691; + case "TRUNCATE": + return 692; + case "TRUSTED": + return 693; + case "TYPE_P": + return 694; + case "TYPES_P": + return 695; + case "UESCAPE": + return 696; + case "UNBOUNDED": + return 697; + case "UNCOMMITTED": + return 698; + case "UNENCRYPTED": + return 699; + case "UNION": + return 700; + case "UNIQUE": + return 701; + case "UNKNOWN": + return 702; + case "UNLISTEN": + return 703; + case "UNLOGGED": + return 704; + case "UNTIL": + return 705; + case "UPDATE": + return 706; + case "USER": + return 707; + case "USING": + return 708; + case "VACUUM": + return 709; + case "VALID": + return 710; + case "VALIDATE": + return 711; + case "VALIDATOR": + return 712; + case "VALUE_P": + return 713; + case "VALUES": + return 714; + case "VARCHAR": + return 715; + case "VARIADIC": + return 716; + case "VARYING": + return 717; + case "VERBOSE": + return 718; + case "VERSION_P": + return 719; + case "VIEW": + return 720; + case "VIEWS": + return 721; + case "VOLATILE": + return 722; + case "WHEN": + return 723; + case "WHERE": + return 724; + case "WHITESPACE_P": + return 725; + case "WINDOW": + return 726; + case "WITH": + return 727; + case "WITHIN": + return 728; + case "WITHOUT": + return 729; + case "WORK": + return 730; + case "WRAPPER": + return 731; + case "WRITE": + return 732; + case "XML_P": + return 733; + case "XMLATTRIBUTES": + return 734; + case "XMLCONCAT": + return 735; + case "XMLELEMENT": + return 736; + case "XMLEXISTS": + return 737; + case "XMLFOREST": + return 738; + case "XMLNAMESPACES": + return 739; + case "XMLPARSE": + return 740; + case "XMLPI": + return 741; + case "XMLROOT": + return 742; + case "XMLSERIALIZE": + return 743; + case "XMLTABLE": + return 744; + case "YEAR_P": + return 745; + case "YES_P": + return 746; + case "ZONE": + return 747; + case "FORMAT_LA": + return 748; + case "NOT_LA": + return 749; + case "NULLS_LA": + return 750; + case "WITH_LA": + return 751; + case "WITHOUT_LA": + return 752; + case "MODE_TYPE_NAME": + return 753; + case "MODE_PLPGSQL_EXPR": + return 754; + case "MODE_PLPGSQL_ASSIGN1": + return 755; + case "MODE_PLPGSQL_ASSIGN2": + return 756; + case "MODE_PLPGSQL_ASSIGN3": + return 757; + case "UMINUS": + return 758; + default: + throw new Error("Key not recognized in enum Token"); + } + } + default: + throw new Error("Enum type not recognized"); + } +};", + "file": "custom-int.ts", + }, +] +`; diff --git a/packages/proto-parser/__tests__/__snapshots__/json.test.ts.snap b/packages/proto-parser/__tests__/__snapshots__/json.test.ts.snap index 37614c11..13188d7a 100644 --- a/packages/proto-parser/__tests__/__snapshots__/json.test.ts.snap +++ b/packages/proto-parser/__tests__/__snapshots__/json.test.ts.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`enums json enabled 1`] = ` +exports[`enums enumMap json enabled 1`] = ` [ { "code": "{ @@ -2156,3 +2156,2172 @@ exports[`enums json enabled 1`] = ` }, ] `; + +exports[`enums enumMap ts enabled 1`] = ` +[ + { + "code": "/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export const enumToStrMap = { + OverridingKind: { + "0": 'OVERRIDING_NOT_SET', + "1": 'OVERRIDING_USER_VALUE', + "2": 'OVERRIDING_SYSTEM_VALUE' + }, + QuerySource: { + "0": 'QSRC_ORIGINAL', + "1": 'QSRC_PARSER', + "2": 'QSRC_INSTEAD_RULE', + "3": 'QSRC_QUAL_INSTEAD_RULE', + "4": 'QSRC_NON_INSTEAD_RULE' + }, + SortByDir: { + "0": 'SORTBY_DEFAULT', + "1": 'SORTBY_ASC', + "2": 'SORTBY_DESC', + "3": 'SORTBY_USING' + }, + SortByNulls: { + "0": 'SORTBY_NULLS_DEFAULT', + "1": 'SORTBY_NULLS_FIRST', + "2": 'SORTBY_NULLS_LAST' + }, + SetQuantifier: { + "0": 'SET_QUANTIFIER_DEFAULT', + "1": 'SET_QUANTIFIER_ALL', + "2": 'SET_QUANTIFIER_DISTINCT' + }, + A_Expr_Kind: { + "0": 'AEXPR_OP', + "1": 'AEXPR_OP_ANY', + "2": 'AEXPR_OP_ALL', + "3": 'AEXPR_DISTINCT', + "4": 'AEXPR_NOT_DISTINCT', + "5": 'AEXPR_NULLIF', + "6": 'AEXPR_IN', + "7": 'AEXPR_LIKE', + "8": 'AEXPR_ILIKE', + "9": 'AEXPR_SIMILAR', + "10": 'AEXPR_BETWEEN', + "11": 'AEXPR_NOT_BETWEEN', + "12": 'AEXPR_BETWEEN_SYM', + "13": 'AEXPR_NOT_BETWEEN_SYM' + }, + RoleSpecType: { + "0": 'ROLESPEC_CSTRING', + "1": 'ROLESPEC_CURRENT_ROLE', + "2": 'ROLESPEC_CURRENT_USER', + "3": 'ROLESPEC_SESSION_USER', + "4": 'ROLESPEC_PUBLIC' + }, + TableLikeOption: { + "0": 'CREATE_TABLE_LIKE_COMMENTS', + "1": 'CREATE_TABLE_LIKE_COMPRESSION', + "2": 'CREATE_TABLE_LIKE_CONSTRAINTS', + "3": 'CREATE_TABLE_LIKE_DEFAULTS', + "4": 'CREATE_TABLE_LIKE_GENERATED', + "5": 'CREATE_TABLE_LIKE_IDENTITY', + "6": 'CREATE_TABLE_LIKE_INDEXES', + "7": 'CREATE_TABLE_LIKE_STATISTICS', + "8": 'CREATE_TABLE_LIKE_STORAGE', + "9": 'CREATE_TABLE_LIKE_ALL' + }, + DefElemAction: { + "0": 'DEFELEM_UNSPEC', + "1": 'DEFELEM_SET', + "2": 'DEFELEM_ADD', + "3": 'DEFELEM_DROP' + }, + PartitionStrategy: { + "0": 'PARTITION_STRATEGY_LIST', + "1": 'PARTITION_STRATEGY_RANGE', + "2": 'PARTITION_STRATEGY_HASH' + }, + PartitionRangeDatumKind: { + "0": 'PARTITION_RANGE_DATUM_MINVALUE', + "1": 'PARTITION_RANGE_DATUM_VALUE', + "2": 'PARTITION_RANGE_DATUM_MAXVALUE' + }, + RTEKind: { + "0": 'RTE_RELATION', + "1": 'RTE_SUBQUERY', + "2": 'RTE_JOIN', + "3": 'RTE_FUNCTION', + "4": 'RTE_TABLEFUNC', + "5": 'RTE_VALUES', + "6": 'RTE_CTE', + "7": 'RTE_NAMEDTUPLESTORE', + "8": 'RTE_RESULT' + }, + WCOKind: { + "0": 'WCO_VIEW_CHECK', + "1": 'WCO_RLS_INSERT_CHECK', + "2": 'WCO_RLS_UPDATE_CHECK', + "3": 'WCO_RLS_CONFLICT_CHECK', + "4": 'WCO_RLS_MERGE_UPDATE_CHECK', + "5": 'WCO_RLS_MERGE_DELETE_CHECK' + }, + GroupingSetKind: { + "0": 'GROUPING_SET_EMPTY', + "1": 'GROUPING_SET_SIMPLE', + "2": 'GROUPING_SET_ROLLUP', + "3": 'GROUPING_SET_CUBE', + "4": 'GROUPING_SET_SETS' + }, + CTEMaterialize: { + "0": 'CTEMaterializeDefault', + "1": 'CTEMaterializeAlways', + "2": 'CTEMaterializeNever' + }, + SetOperation: { + "0": 'SETOP_NONE', + "1": 'SETOP_UNION', + "2": 'SETOP_INTERSECT', + "3": 'SETOP_EXCEPT' + }, + ObjectType: { + "0": 'OBJECT_ACCESS_METHOD', + "1": 'OBJECT_AGGREGATE', + "2": 'OBJECT_AMOP', + "3": 'OBJECT_AMPROC', + "4": 'OBJECT_ATTRIBUTE', + "5": 'OBJECT_CAST', + "6": 'OBJECT_COLUMN', + "7": 'OBJECT_COLLATION', + "8": 'OBJECT_CONVERSION', + "9": 'OBJECT_DATABASE', + "10": 'OBJECT_DEFAULT', + "11": 'OBJECT_DEFACL', + "12": 'OBJECT_DOMAIN', + "13": 'OBJECT_DOMCONSTRAINT', + "14": 'OBJECT_EVENT_TRIGGER', + "15": 'OBJECT_EXTENSION', + "16": 'OBJECT_FDW', + "17": 'OBJECT_FOREIGN_SERVER', + "18": 'OBJECT_FOREIGN_TABLE', + "19": 'OBJECT_FUNCTION', + "20": 'OBJECT_INDEX', + "21": 'OBJECT_LANGUAGE', + "22": 'OBJECT_LARGEOBJECT', + "23": 'OBJECT_MATVIEW', + "24": 'OBJECT_OPCLASS', + "25": 'OBJECT_OPERATOR', + "26": 'OBJECT_OPFAMILY', + "27": 'OBJECT_PARAMETER_ACL', + "28": 'OBJECT_POLICY', + "29": 'OBJECT_PROCEDURE', + "30": 'OBJECT_PUBLICATION', + "31": 'OBJECT_PUBLICATION_NAMESPACE', + "32": 'OBJECT_PUBLICATION_REL', + "33": 'OBJECT_ROLE', + "34": 'OBJECT_ROUTINE', + "35": 'OBJECT_RULE', + "36": 'OBJECT_SCHEMA', + "37": 'OBJECT_SEQUENCE', + "38": 'OBJECT_SUBSCRIPTION', + "39": 'OBJECT_STATISTIC_EXT', + "40": 'OBJECT_TABCONSTRAINT', + "41": 'OBJECT_TABLE', + "42": 'OBJECT_TABLESPACE', + "43": 'OBJECT_TRANSFORM', + "44": 'OBJECT_TRIGGER', + "45": 'OBJECT_TSCONFIGURATION', + "46": 'OBJECT_TSDICTIONARY', + "47": 'OBJECT_TSPARSER', + "48": 'OBJECT_TSTEMPLATE', + "49": 'OBJECT_TYPE', + "50": 'OBJECT_USER_MAPPING', + "51": 'OBJECT_VIEW' + }, + DropBehavior: { + "0": 'DROP_RESTRICT', + "1": 'DROP_CASCADE' + }, + AlterTableType: { + "0": 'AT_AddColumn', + "1": 'AT_AddColumnToView', + "2": 'AT_ColumnDefault', + "3": 'AT_CookedColumnDefault', + "4": 'AT_DropNotNull', + "5": 'AT_SetNotNull', + "6": 'AT_DropExpression', + "7": 'AT_CheckNotNull', + "8": 'AT_SetStatistics', + "9": 'AT_SetOptions', + "10": 'AT_ResetOptions', + "11": 'AT_SetStorage', + "12": 'AT_SetCompression', + "13": 'AT_DropColumn', + "14": 'AT_AddIndex', + "15": 'AT_ReAddIndex', + "16": 'AT_AddConstraint', + "17": 'AT_ReAddConstraint', + "18": 'AT_ReAddDomainConstraint', + "19": 'AT_AlterConstraint', + "20": 'AT_ValidateConstraint', + "21": 'AT_AddIndexConstraint', + "22": 'AT_DropConstraint', + "23": 'AT_ReAddComment', + "24": 'AT_AlterColumnType', + "25": 'AT_AlterColumnGenericOptions', + "26": 'AT_ChangeOwner', + "27": 'AT_ClusterOn', + "28": 'AT_DropCluster', + "29": 'AT_SetLogged', + "30": 'AT_SetUnLogged', + "31": 'AT_DropOids', + "32": 'AT_SetAccessMethod', + "33": 'AT_SetTableSpace', + "34": 'AT_SetRelOptions', + "35": 'AT_ResetRelOptions', + "36": 'AT_ReplaceRelOptions', + "37": 'AT_EnableTrig', + "38": 'AT_EnableAlwaysTrig', + "39": 'AT_EnableReplicaTrig', + "40": 'AT_DisableTrig', + "41": 'AT_EnableTrigAll', + "42": 'AT_DisableTrigAll', + "43": 'AT_EnableTrigUser', + "44": 'AT_DisableTrigUser', + "45": 'AT_EnableRule', + "46": 'AT_EnableAlwaysRule', + "47": 'AT_EnableReplicaRule', + "48": 'AT_DisableRule', + "49": 'AT_AddInherit', + "50": 'AT_DropInherit', + "51": 'AT_AddOf', + "52": 'AT_DropOf', + "53": 'AT_ReplicaIdentity', + "54": 'AT_EnableRowSecurity', + "55": 'AT_DisableRowSecurity', + "56": 'AT_ForceRowSecurity', + "57": 'AT_NoForceRowSecurity', + "58": 'AT_GenericOptions', + "59": 'AT_AttachPartition', + "60": 'AT_DetachPartition', + "61": 'AT_DetachPartitionFinalize', + "62": 'AT_AddIdentity', + "63": 'AT_SetIdentity', + "64": 'AT_DropIdentity', + "65": 'AT_ReAddStatistics' + }, + GrantTargetType: { + "0": 'ACL_TARGET_OBJECT', + "1": 'ACL_TARGET_ALL_IN_SCHEMA', + "2": 'ACL_TARGET_DEFAULTS' + }, + VariableSetKind: { + "0": 'VAR_SET_VALUE', + "1": 'VAR_SET_DEFAULT', + "2": 'VAR_SET_CURRENT', + "3": 'VAR_SET_MULTI', + "4": 'VAR_RESET', + "5": 'VAR_RESET_ALL' + }, + ConstrType: { + "0": 'CONSTR_NULL', + "1": 'CONSTR_NOTNULL', + "2": 'CONSTR_DEFAULT', + "3": 'CONSTR_IDENTITY', + "4": 'CONSTR_GENERATED', + "5": 'CONSTR_CHECK', + "6": 'CONSTR_PRIMARY', + "7": 'CONSTR_UNIQUE', + "8": 'CONSTR_EXCLUSION', + "9": 'CONSTR_FOREIGN', + "10": 'CONSTR_ATTR_DEFERRABLE', + "11": 'CONSTR_ATTR_NOT_DEFERRABLE', + "12": 'CONSTR_ATTR_DEFERRED', + "13": 'CONSTR_ATTR_IMMEDIATE' + }, + ImportForeignSchemaType: { + "0": 'FDW_IMPORT_SCHEMA_ALL', + "1": 'FDW_IMPORT_SCHEMA_LIMIT_TO', + "2": 'FDW_IMPORT_SCHEMA_EXCEPT' + }, + RoleStmtType: { + "0": 'ROLESTMT_ROLE', + "1": 'ROLESTMT_USER', + "2": 'ROLESTMT_GROUP' + }, + FetchDirection: { + "0": 'FETCH_FORWARD', + "1": 'FETCH_BACKWARD', + "2": 'FETCH_ABSOLUTE', + "3": 'FETCH_RELATIVE' + }, + FunctionParameterMode: { + "0": 'FUNC_PARAM_IN', + "1": 'FUNC_PARAM_OUT', + "2": 'FUNC_PARAM_INOUT', + "3": 'FUNC_PARAM_VARIADIC', + "4": 'FUNC_PARAM_TABLE', + "5": 'FUNC_PARAM_DEFAULT' + }, + TransactionStmtKind: { + "0": 'TRANS_STMT_BEGIN', + "1": 'TRANS_STMT_START', + "2": 'TRANS_STMT_COMMIT', + "3": 'TRANS_STMT_ROLLBACK', + "4": 'TRANS_STMT_SAVEPOINT', + "5": 'TRANS_STMT_RELEASE', + "6": 'TRANS_STMT_ROLLBACK_TO', + "7": 'TRANS_STMT_PREPARE', + "8": 'TRANS_STMT_COMMIT_PREPARED', + "9": 'TRANS_STMT_ROLLBACK_PREPARED' + }, + ViewCheckOption: { + "0": 'NO_CHECK_OPTION', + "1": 'LOCAL_CHECK_OPTION', + "2": 'CASCADED_CHECK_OPTION' + }, + DiscardMode: { + "0": 'DISCARD_ALL', + "1": 'DISCARD_PLANS', + "2": 'DISCARD_SEQUENCES', + "3": 'DISCARD_TEMP' + }, + ReindexObjectType: { + "0": 'REINDEX_OBJECT_INDEX', + "1": 'REINDEX_OBJECT_TABLE', + "2": 'REINDEX_OBJECT_SCHEMA', + "3": 'REINDEX_OBJECT_SYSTEM', + "4": 'REINDEX_OBJECT_DATABASE' + }, + AlterTSConfigType: { + "0": 'ALTER_TSCONFIG_ADD_MAPPING', + "1": 'ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN', + "2": 'ALTER_TSCONFIG_REPLACE_DICT', + "3": 'ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN', + "4": 'ALTER_TSCONFIG_DROP_MAPPING' + }, + PublicationObjSpecType: { + "0": 'PUBLICATIONOBJ_TABLE', + "1": 'PUBLICATIONOBJ_TABLES_IN_SCHEMA', + "2": 'PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA', + "3": 'PUBLICATIONOBJ_CONTINUATION' + }, + AlterPublicationAction: { + "0": 'AP_AddObjects', + "1": 'AP_DropObjects', + "2": 'AP_SetObjects' + }, + AlterSubscriptionType: { + "0": 'ALTER_SUBSCRIPTION_OPTIONS', + "1": 'ALTER_SUBSCRIPTION_CONNECTION', + "2": 'ALTER_SUBSCRIPTION_SET_PUBLICATION', + "3": 'ALTER_SUBSCRIPTION_ADD_PUBLICATION', + "4": 'ALTER_SUBSCRIPTION_DROP_PUBLICATION', + "5": 'ALTER_SUBSCRIPTION_REFRESH', + "6": 'ALTER_SUBSCRIPTION_ENABLED', + "7": 'ALTER_SUBSCRIPTION_SKIP' + }, + OnCommitAction: { + "0": 'ONCOMMIT_NOOP', + "1": 'ONCOMMIT_PRESERVE_ROWS', + "2": 'ONCOMMIT_DELETE_ROWS', + "3": 'ONCOMMIT_DROP' + }, + ParamKind: { + "0": 'PARAM_EXTERN', + "1": 'PARAM_EXEC', + "2": 'PARAM_SUBLINK', + "3": 'PARAM_MULTIEXPR' + }, + CoercionContext: { + "0": 'COERCION_IMPLICIT', + "1": 'COERCION_ASSIGNMENT', + "2": 'COERCION_PLPGSQL', + "3": 'COERCION_EXPLICIT' + }, + CoercionForm: { + "0": 'COERCE_EXPLICIT_CALL', + "1": 'COERCE_EXPLICIT_CAST', + "2": 'COERCE_IMPLICIT_CAST', + "3": 'COERCE_SQL_SYNTAX' + }, + BoolExprType: { + "0": 'AND_EXPR', + "1": 'OR_EXPR', + "2": 'NOT_EXPR' + }, + SubLinkType: { + "0": 'EXISTS_SUBLINK', + "1": 'ALL_SUBLINK', + "2": 'ANY_SUBLINK', + "3": 'ROWCOMPARE_SUBLINK', + "4": 'EXPR_SUBLINK', + "5": 'MULTIEXPR_SUBLINK', + "6": 'ARRAY_SUBLINK', + "7": 'CTE_SUBLINK' + }, + RowCompareType: { + "0": 'ROWCOMPARE_LT', + "1": 'ROWCOMPARE_LE', + "2": 'ROWCOMPARE_EQ', + "3": 'ROWCOMPARE_GE', + "4": 'ROWCOMPARE_GT', + "5": 'ROWCOMPARE_NE' + }, + MinMaxOp: { + "0": 'IS_GREATEST', + "1": 'IS_LEAST' + }, + SQLValueFunctionOp: { + "0": 'SVFOP_CURRENT_DATE', + "1": 'SVFOP_CURRENT_TIME', + "2": 'SVFOP_CURRENT_TIME_N', + "3": 'SVFOP_CURRENT_TIMESTAMP', + "4": 'SVFOP_CURRENT_TIMESTAMP_N', + "5": 'SVFOP_LOCALTIME', + "6": 'SVFOP_LOCALTIME_N', + "7": 'SVFOP_LOCALTIMESTAMP', + "8": 'SVFOP_LOCALTIMESTAMP_N', + "9": 'SVFOP_CURRENT_ROLE', + "10": 'SVFOP_CURRENT_USER', + "11": 'SVFOP_USER', + "12": 'SVFOP_SESSION_USER', + "13": 'SVFOP_CURRENT_CATALOG', + "14": 'SVFOP_CURRENT_SCHEMA' + }, + XmlExprOp: { + "0": 'IS_XMLCONCAT', + "1": 'IS_XMLELEMENT', + "2": 'IS_XMLFOREST', + "3": 'IS_XMLPARSE', + "4": 'IS_XMLPI', + "5": 'IS_XMLROOT', + "6": 'IS_XMLSERIALIZE', + "7": 'IS_DOCUMENT' + }, + XmlOptionType: { + "0": 'XMLOPTION_DOCUMENT', + "1": 'XMLOPTION_CONTENT' + }, + JsonEncoding: { + "0": 'JS_ENC_DEFAULT', + "1": 'JS_ENC_UTF8', + "2": 'JS_ENC_UTF16', + "3": 'JS_ENC_UTF32' + }, + JsonFormatType: { + "0": 'JS_FORMAT_DEFAULT', + "1": 'JS_FORMAT_JSON', + "2": 'JS_FORMAT_JSONB' + }, + JsonConstructorType: { + "0": 'JSCTOR_JSON_OBJECT', + "1": 'JSCTOR_JSON_ARRAY', + "2": 'JSCTOR_JSON_OBJECTAGG', + "3": 'JSCTOR_JSON_ARRAYAGG' + }, + JsonValueType: { + "0": 'JS_TYPE_ANY', + "1": 'JS_TYPE_OBJECT', + "2": 'JS_TYPE_ARRAY', + "3": 'JS_TYPE_SCALAR' + }, + NullTestType: { + "0": 'IS_NULL', + "1": 'IS_NOT_NULL' + }, + BoolTestType: { + "0": 'IS_TRUE', + "1": 'IS_NOT_TRUE', + "2": 'IS_FALSE', + "3": 'IS_NOT_FALSE', + "4": 'IS_UNKNOWN', + "5": 'IS_NOT_UNKNOWN' + }, + CmdType: { + "0": 'CMD_UNKNOWN', + "1": 'CMD_SELECT', + "2": 'CMD_UPDATE', + "3": 'CMD_INSERT', + "4": 'CMD_DELETE', + "5": 'CMD_MERGE', + "6": 'CMD_UTILITY', + "7": 'CMD_NOTHING' + }, + JoinType: { + "0": 'JOIN_INNER', + "1": 'JOIN_LEFT', + "2": 'JOIN_FULL', + "3": 'JOIN_RIGHT', + "4": 'JOIN_SEMI', + "5": 'JOIN_ANTI', + "6": 'JOIN_RIGHT_ANTI', + "7": 'JOIN_UNIQUE_OUTER', + "8": 'JOIN_UNIQUE_INNER' + }, + AggStrategy: { + "0": 'AGG_PLAIN', + "1": 'AGG_SORTED', + "2": 'AGG_HASHED', + "3": 'AGG_MIXED' + }, + AggSplit: { + "0": 'AGGSPLIT_SIMPLE', + "1": 'AGGSPLIT_INITIAL_SERIAL', + "2": 'AGGSPLIT_FINAL_DESERIAL' + }, + SetOpCmd: { + "0": 'SETOPCMD_INTERSECT', + "1": 'SETOPCMD_INTERSECT_ALL', + "2": 'SETOPCMD_EXCEPT', + "3": 'SETOPCMD_EXCEPT_ALL' + }, + SetOpStrategy: { + "0": 'SETOP_SORTED', + "1": 'SETOP_HASHED' + }, + OnConflictAction: { + "0": 'ONCONFLICT_NONE', + "1": 'ONCONFLICT_NOTHING', + "2": 'ONCONFLICT_UPDATE' + }, + LimitOption: { + "0": 'LIMIT_OPTION_DEFAULT', + "1": 'LIMIT_OPTION_COUNT', + "2": 'LIMIT_OPTION_WITH_TIES' + }, + LockClauseStrength: { + "0": 'LCS_NONE', + "1": 'LCS_FORKEYSHARE', + "2": 'LCS_FORSHARE', + "3": 'LCS_FORNOKEYUPDATE', + "4": 'LCS_FORUPDATE' + }, + LockWaitPolicy: { + "0": 'LockWaitBlock', + "1": 'LockWaitSkip', + "2": 'LockWaitError' + }, + LockTupleMode: { + "0": 'LockTupleKeyShare', + "1": 'LockTupleShare', + "2": 'LockTupleNoKeyExclusive', + "3": 'LockTupleExclusive' + }, + KeywordKind: { + "0": 'NO_KEYWORD', + "1": 'UNRESERVED_KEYWORD', + "2": 'COL_NAME_KEYWORD', + "3": 'TYPE_FUNC_NAME_KEYWORD', + "4": 'RESERVED_KEYWORD' + }, + Token: { + "0": 'NUL', + "36": 'ASCII_36', + "37": 'ASCII_37', + "40": 'ASCII_40', + "41": 'ASCII_41', + "42": 'ASCII_42', + "43": 'ASCII_43', + "44": 'ASCII_44', + "45": 'ASCII_45', + "46": 'ASCII_46', + "47": 'ASCII_47', + "58": 'ASCII_58', + "59": 'ASCII_59', + "60": 'ASCII_60', + "61": 'ASCII_61', + "62": 'ASCII_62', + "63": 'ASCII_63', + "91": 'ASCII_91', + "92": 'ASCII_92', + "93": 'ASCII_93', + "94": 'ASCII_94', + "258": 'IDENT', + "259": 'UIDENT', + "260": 'FCONST', + "261": 'SCONST', + "262": 'USCONST', + "263": 'BCONST', + "264": 'XCONST', + "265": 'Op', + "266": 'ICONST', + "267": 'PARAM', + "268": 'TYPECAST', + "269": 'DOT_DOT', + "270": 'COLON_EQUALS', + "271": 'EQUALS_GREATER', + "272": 'LESS_EQUALS', + "273": 'GREATER_EQUALS', + "274": 'NOT_EQUALS', + "275": 'SQL_COMMENT', + "276": 'C_COMMENT', + "277": 'ABORT_P', + "278": 'ABSENT', + "279": 'ABSOLUTE_P', + "280": 'ACCESS', + "281": 'ACTION', + "282": 'ADD_P', + "283": 'ADMIN', + "284": 'AFTER', + "285": 'AGGREGATE', + "286": 'ALL', + "287": 'ALSO', + "288": 'ALTER', + "289": 'ALWAYS', + "290": 'ANALYSE', + "291": 'ANALYZE', + "292": 'AND', + "293": 'ANY', + "294": 'ARRAY', + "295": 'AS', + "296": 'ASC', + "297": 'ASENSITIVE', + "298": 'ASSERTION', + "299": 'ASSIGNMENT', + "300": 'ASYMMETRIC', + "301": 'ATOMIC', + "302": 'AT', + "303": 'ATTACH', + "304": 'ATTRIBUTE', + "305": 'AUTHORIZATION', + "306": 'BACKWARD', + "307": 'BEFORE', + "308": 'BEGIN_P', + "309": 'BETWEEN', + "310": 'BIGINT', + "311": 'BINARY', + "312": 'BIT', + "313": 'BOOLEAN_P', + "314": 'BOTH', + "315": 'BREADTH', + "316": 'BY', + "317": 'CACHE', + "318": 'CALL', + "319": 'CALLED', + "320": 'CASCADE', + "321": 'CASCADED', + "322": 'CASE', + "323": 'CAST', + "324": 'CATALOG_P', + "325": 'CHAIN', + "326": 'CHAR_P', + "327": 'CHARACTER', + "328": 'CHARACTERISTICS', + "329": 'CHECK', + "330": 'CHECKPOINT', + "331": 'CLASS', + "332": 'CLOSE', + "333": 'CLUSTER', + "334": 'COALESCE', + "335": 'COLLATE', + "336": 'COLLATION', + "337": 'COLUMN', + "338": 'COLUMNS', + "339": 'COMMENT', + "340": 'COMMENTS', + "341": 'COMMIT', + "342": 'COMMITTED', + "343": 'COMPRESSION', + "344": 'CONCURRENTLY', + "345": 'CONFIGURATION', + "346": 'CONFLICT', + "347": 'CONNECTION', + "348": 'CONSTRAINT', + "349": 'CONSTRAINTS', + "350": 'CONTENT_P', + "351": 'CONTINUE_P', + "352": 'CONVERSION_P', + "353": 'COPY', + "354": 'COST', + "355": 'CREATE', + "356": 'CROSS', + "357": 'CSV', + "358": 'CUBE', + "359": 'CURRENT_P', + "360": 'CURRENT_CATALOG', + "361": 'CURRENT_DATE', + "362": 'CURRENT_ROLE', + "363": 'CURRENT_SCHEMA', + "364": 'CURRENT_TIME', + "365": 'CURRENT_TIMESTAMP', + "366": 'CURRENT_USER', + "367": 'CURSOR', + "368": 'CYCLE', + "369": 'DATA_P', + "370": 'DATABASE', + "371": 'DAY_P', + "372": 'DEALLOCATE', + "373": 'DEC', + "374": 'DECIMAL_P', + "375": 'DECLARE', + "376": 'DEFAULT', + "377": 'DEFAULTS', + "378": 'DEFERRABLE', + "379": 'DEFERRED', + "380": 'DEFINER', + "381": 'DELETE_P', + "382": 'DELIMITER', + "383": 'DELIMITERS', + "384": 'DEPENDS', + "385": 'DEPTH', + "386": 'DESC', + "387": 'DETACH', + "388": 'DICTIONARY', + "389": 'DISABLE_P', + "390": 'DISCARD', + "391": 'DISTINCT', + "392": 'DO', + "393": 'DOCUMENT_P', + "394": 'DOMAIN_P', + "395": 'DOUBLE_P', + "396": 'DROP', + "397": 'EACH', + "398": 'ELSE', + "399": 'ENABLE_P', + "400": 'ENCODING', + "401": 'ENCRYPTED', + "402": 'END_P', + "403": 'ENUM_P', + "404": 'ESCAPE', + "405": 'EVENT', + "406": 'EXCEPT', + "407": 'EXCLUDE', + "408": 'EXCLUDING', + "409": 'EXCLUSIVE', + "410": 'EXECUTE', + "411": 'EXISTS', + "412": 'EXPLAIN', + "413": 'EXPRESSION', + "414": 'EXTENSION', + "415": 'EXTERNAL', + "416": 'EXTRACT', + "417": 'FALSE_P', + "418": 'FAMILY', + "419": 'FETCH', + "420": 'FILTER', + "421": 'FINALIZE', + "422": 'FIRST_P', + "423": 'FLOAT_P', + "424": 'FOLLOWING', + "425": 'FOR', + "426": 'FORCE', + "427": 'FOREIGN', + "428": 'FORMAT', + "429": 'FORWARD', + "430": 'FREEZE', + "431": 'FROM', + "432": 'FULL', + "433": 'FUNCTION', + "434": 'FUNCTIONS', + "435": 'GENERATED', + "436": 'GLOBAL', + "437": 'GRANT', + "438": 'GRANTED', + "439": 'GREATEST', + "440": 'GROUP_P', + "441": 'GROUPING', + "442": 'GROUPS', + "443": 'HANDLER', + "444": 'HAVING', + "445": 'HEADER_P', + "446": 'HOLD', + "447": 'HOUR_P', + "448": 'IDENTITY_P', + "449": 'IF_P', + "450": 'ILIKE', + "451": 'IMMEDIATE', + "452": 'IMMUTABLE', + "453": 'IMPLICIT_P', + "454": 'IMPORT_P', + "455": 'IN_P', + "456": 'INCLUDE', + "457": 'INCLUDING', + "458": 'INCREMENT', + "459": 'INDENT', + "460": 'INDEX', + "461": 'INDEXES', + "462": 'INHERIT', + "463": 'INHERITS', + "464": 'INITIALLY', + "465": 'INLINE_P', + "466": 'INNER_P', + "467": 'INOUT', + "468": 'INPUT_P', + "469": 'INSENSITIVE', + "470": 'INSERT', + "471": 'INSTEAD', + "472": 'INT_P', + "473": 'INTEGER', + "474": 'INTERSECT', + "475": 'INTERVAL', + "476": 'INTO', + "477": 'INVOKER', + "478": 'IS', + "479": 'ISNULL', + "480": 'ISOLATION', + "481": 'JOIN', + "482": 'JSON', + "483": 'JSON_ARRAY', + "484": 'JSON_ARRAYAGG', + "485": 'JSON_OBJECT', + "486": 'JSON_OBJECTAGG', + "487": 'KEY', + "488": 'KEYS', + "489": 'LABEL', + "490": 'LANGUAGE', + "491": 'LARGE_P', + "492": 'LAST_P', + "493": 'LATERAL_P', + "494": 'LEADING', + "495": 'LEAKPROOF', + "496": 'LEAST', + "497": 'LEFT', + "498": 'LEVEL', + "499": 'LIKE', + "500": 'LIMIT', + "501": 'LISTEN', + "502": 'LOAD', + "503": 'LOCAL', + "504": 'LOCALTIME', + "505": 'LOCALTIMESTAMP', + "506": 'LOCATION', + "507": 'LOCK_P', + "508": 'LOCKED', + "509": 'LOGGED', + "510": 'MAPPING', + "511": 'MATCH', + "512": 'MATCHED', + "513": 'MATERIALIZED', + "514": 'MAXVALUE', + "515": 'MERGE', + "516": 'METHOD', + "517": 'MINUTE_P', + "518": 'MINVALUE', + "519": 'MODE', + "520": 'MONTH_P', + "521": 'MOVE', + "522": 'NAME_P', + "523": 'NAMES', + "524": 'NATIONAL', + "525": 'NATURAL', + "526": 'NCHAR', + "527": 'NEW', + "528": 'NEXT', + "529": 'NFC', + "530": 'NFD', + "531": 'NFKC', + "532": 'NFKD', + "533": 'NO', + "534": 'NONE', + "535": 'NORMALIZE', + "536": 'NORMALIZED', + "537": 'NOT', + "538": 'NOTHING', + "539": 'NOTIFY', + "540": 'NOTNULL', + "541": 'NOWAIT', + "542": 'NULL_P', + "543": 'NULLIF', + "544": 'NULLS_P', + "545": 'NUMERIC', + "546": 'OBJECT_P', + "547": 'OF', + "548": 'OFF', + "549": 'OFFSET', + "550": 'OIDS', + "551": 'OLD', + "552": 'ON', + "553": 'ONLY', + "554": 'OPERATOR', + "555": 'OPTION', + "556": 'OPTIONS', + "557": 'OR', + "558": 'ORDER', + "559": 'ORDINALITY', + "560": 'OTHERS', + "561": 'OUT_P', + "562": 'OUTER_P', + "563": 'OVER', + "564": 'OVERLAPS', + "565": 'OVERLAY', + "566": 'OVERRIDING', + "567": 'OWNED', + "568": 'OWNER', + "569": 'PARALLEL', + "570": 'PARAMETER', + "571": 'PARSER', + "572": 'PARTIAL', + "573": 'PARTITION', + "574": 'PASSING', + "575": 'PASSWORD', + "576": 'PLACING', + "577": 'PLANS', + "578": 'POLICY', + "579": 'POSITION', + "580": 'PRECEDING', + "581": 'PRECISION', + "582": 'PRESERVE', + "583": 'PREPARE', + "584": 'PREPARED', + "585": 'PRIMARY', + "586": 'PRIOR', + "587": 'PRIVILEGES', + "588": 'PROCEDURAL', + "589": 'PROCEDURE', + "590": 'PROCEDURES', + "591": 'PROGRAM', + "592": 'PUBLICATION', + "593": 'QUOTE', + "594": 'RANGE', + "595": 'READ', + "596": 'REAL', + "597": 'REASSIGN', + "598": 'RECHECK', + "599": 'RECURSIVE', + "600": 'REF_P', + "601": 'REFERENCES', + "602": 'REFERENCING', + "603": 'REFRESH', + "604": 'REINDEX', + "605": 'RELATIVE_P', + "606": 'RELEASE', + "607": 'RENAME', + "608": 'REPEATABLE', + "609": 'REPLACE', + "610": 'REPLICA', + "611": 'RESET', + "612": 'RESTART', + "613": 'RESTRICT', + "614": 'RETURN', + "615": 'RETURNING', + "616": 'RETURNS', + "617": 'REVOKE', + "618": 'RIGHT', + "619": 'ROLE', + "620": 'ROLLBACK', + "621": 'ROLLUP', + "622": 'ROUTINE', + "623": 'ROUTINES', + "624": 'ROW', + "625": 'ROWS', + "626": 'RULE', + "627": 'SAVEPOINT', + "628": 'SCALAR', + "629": 'SCHEMA', + "630": 'SCHEMAS', + "631": 'SCROLL', + "632": 'SEARCH', + "633": 'SECOND_P', + "634": 'SECURITY', + "635": 'SELECT', + "636": 'SEQUENCE', + "637": 'SEQUENCES', + "638": 'SERIALIZABLE', + "639": 'SERVER', + "640": 'SESSION', + "641": 'SESSION_USER', + "642": 'SET', + "643": 'SETS', + "644": 'SETOF', + "645": 'SHARE', + "646": 'SHOW', + "647": 'SIMILAR', + "648": 'SIMPLE', + "649": 'SKIP', + "650": 'SMALLINT', + "651": 'SNAPSHOT', + "652": 'SOME', + "653": 'SQL_P', + "654": 'STABLE', + "655": 'STANDALONE_P', + "656": 'START', + "657": 'STATEMENT', + "658": 'STATISTICS', + "659": 'STDIN', + "660": 'STDOUT', + "661": 'STORAGE', + "662": 'STORED', + "663": 'STRICT_P', + "664": 'STRIP_P', + "665": 'SUBSCRIPTION', + "666": 'SUBSTRING', + "667": 'SUPPORT', + "668": 'SYMMETRIC', + "669": 'SYSID', + "670": 'SYSTEM_P', + "671": 'SYSTEM_USER', + "672": 'TABLE', + "673": 'TABLES', + "674": 'TABLESAMPLE', + "675": 'TABLESPACE', + "676": 'TEMP', + "677": 'TEMPLATE', + "678": 'TEMPORARY', + "679": 'TEXT_P', + "680": 'THEN', + "681": 'TIES', + "682": 'TIME', + "683": 'TIMESTAMP', + "684": 'TO', + "685": 'TRAILING', + "686": 'TRANSACTION', + "687": 'TRANSFORM', + "688": 'TREAT', + "689": 'TRIGGER', + "690": 'TRIM', + "691": 'TRUE_P', + "692": 'TRUNCATE', + "693": 'TRUSTED', + "694": 'TYPE_P', + "695": 'TYPES_P', + "696": 'UESCAPE', + "697": 'UNBOUNDED', + "698": 'UNCOMMITTED', + "699": 'UNENCRYPTED', + "700": 'UNION', + "701": 'UNIQUE', + "702": 'UNKNOWN', + "703": 'UNLISTEN', + "704": 'UNLOGGED', + "705": 'UNTIL', + "706": 'UPDATE', + "707": 'USER', + "708": 'USING', + "709": 'VACUUM', + "710": 'VALID', + "711": 'VALIDATE', + "712": 'VALIDATOR', + "713": 'VALUE_P', + "714": 'VALUES', + "715": 'VARCHAR', + "716": 'VARIADIC', + "717": 'VARYING', + "718": 'VERBOSE', + "719": 'VERSION_P', + "720": 'VIEW', + "721": 'VIEWS', + "722": 'VOLATILE', + "723": 'WHEN', + "724": 'WHERE', + "725": 'WHITESPACE_P', + "726": 'WINDOW', + "727": 'WITH', + "728": 'WITHIN', + "729": 'WITHOUT', + "730": 'WORK', + "731": 'WRAPPER', + "732": 'WRITE', + "733": 'XML_P', + "734": 'XMLATTRIBUTES', + "735": 'XMLCONCAT', + "736": 'XMLELEMENT', + "737": 'XMLEXISTS', + "738": 'XMLFOREST', + "739": 'XMLNAMESPACES', + "740": 'XMLPARSE', + "741": 'XMLPI', + "742": 'XMLROOT', + "743": 'XMLSERIALIZE', + "744": 'XMLTABLE', + "745": 'YEAR_P', + "746": 'YES_P', + "747": 'ZONE', + "748": 'FORMAT_LA', + "749": 'NOT_LA', + "750": 'NULLS_LA', + "751": 'WITH_LA', + "752": 'WITHOUT_LA', + "753": 'MODE_TYPE_NAME', + "754": 'MODE_PLPGSQL_EXPR', + "755": 'MODE_PLPGSQL_ASSIGN1', + "756": 'MODE_PLPGSQL_ASSIGN2', + "757": 'MODE_PLPGSQL_ASSIGN3', + "758": 'UMINUS' + } +}; +export type EnumToStrMap = typeof enumToStrMap;", + "file": "enums2str.ts", + }, + { + "code": "/** +* This file was automatically generated by pg-proto-parser@latest. +* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, +* and run the pg-proto-parser generate command to regenerate this file. +*/ +export const enumToIntMap = { + OverridingKind: { + OVERRIDING_NOT_SET: 0, + OVERRIDING_USER_VALUE: 1, + OVERRIDING_SYSTEM_VALUE: 2 + }, + QuerySource: { + QSRC_ORIGINAL: 0, + QSRC_PARSER: 1, + QSRC_INSTEAD_RULE: 2, + QSRC_QUAL_INSTEAD_RULE: 3, + QSRC_NON_INSTEAD_RULE: 4 + }, + SortByDir: { + SORTBY_DEFAULT: 0, + SORTBY_ASC: 1, + SORTBY_DESC: 2, + SORTBY_USING: 3 + }, + SortByNulls: { + SORTBY_NULLS_DEFAULT: 0, + SORTBY_NULLS_FIRST: 1, + SORTBY_NULLS_LAST: 2 + }, + SetQuantifier: { + SET_QUANTIFIER_DEFAULT: 0, + SET_QUANTIFIER_ALL: 1, + SET_QUANTIFIER_DISTINCT: 2 + }, + A_Expr_Kind: { + AEXPR_OP: 0, + AEXPR_OP_ANY: 1, + AEXPR_OP_ALL: 2, + AEXPR_DISTINCT: 3, + AEXPR_NOT_DISTINCT: 4, + AEXPR_NULLIF: 5, + AEXPR_IN: 6, + AEXPR_LIKE: 7, + AEXPR_ILIKE: 8, + AEXPR_SIMILAR: 9, + AEXPR_BETWEEN: 10, + AEXPR_NOT_BETWEEN: 11, + AEXPR_BETWEEN_SYM: 12, + AEXPR_NOT_BETWEEN_SYM: 13 + }, + RoleSpecType: { + ROLESPEC_CSTRING: 0, + ROLESPEC_CURRENT_ROLE: 1, + ROLESPEC_CURRENT_USER: 2, + ROLESPEC_SESSION_USER: 3, + ROLESPEC_PUBLIC: 4 + }, + TableLikeOption: { + CREATE_TABLE_LIKE_COMMENTS: 0, + CREATE_TABLE_LIKE_COMPRESSION: 1, + CREATE_TABLE_LIKE_CONSTRAINTS: 2, + CREATE_TABLE_LIKE_DEFAULTS: 3, + CREATE_TABLE_LIKE_GENERATED: 4, + CREATE_TABLE_LIKE_IDENTITY: 5, + CREATE_TABLE_LIKE_INDEXES: 6, + CREATE_TABLE_LIKE_STATISTICS: 7, + CREATE_TABLE_LIKE_STORAGE: 8, + CREATE_TABLE_LIKE_ALL: 9 + }, + DefElemAction: { + DEFELEM_UNSPEC: 0, + DEFELEM_SET: 1, + DEFELEM_ADD: 2, + DEFELEM_DROP: 3 + }, + PartitionStrategy: { + PARTITION_STRATEGY_LIST: 0, + PARTITION_STRATEGY_RANGE: 1, + PARTITION_STRATEGY_HASH: 2 + }, + PartitionRangeDatumKind: { + PARTITION_RANGE_DATUM_MINVALUE: 0, + PARTITION_RANGE_DATUM_VALUE: 1, + PARTITION_RANGE_DATUM_MAXVALUE: 2 + }, + RTEKind: { + RTE_RELATION: 0, + RTE_SUBQUERY: 1, + RTE_JOIN: 2, + RTE_FUNCTION: 3, + RTE_TABLEFUNC: 4, + RTE_VALUES: 5, + RTE_CTE: 6, + RTE_NAMEDTUPLESTORE: 7, + RTE_RESULT: 8 + }, + WCOKind: { + WCO_VIEW_CHECK: 0, + WCO_RLS_INSERT_CHECK: 1, + WCO_RLS_UPDATE_CHECK: 2, + WCO_RLS_CONFLICT_CHECK: 3, + WCO_RLS_MERGE_UPDATE_CHECK: 4, + WCO_RLS_MERGE_DELETE_CHECK: 5 + }, + GroupingSetKind: { + GROUPING_SET_EMPTY: 0, + GROUPING_SET_SIMPLE: 1, + GROUPING_SET_ROLLUP: 2, + GROUPING_SET_CUBE: 3, + GROUPING_SET_SETS: 4 + }, + CTEMaterialize: { + CTEMaterializeDefault: 0, + CTEMaterializeAlways: 1, + CTEMaterializeNever: 2 + }, + SetOperation: { + SETOP_NONE: 0, + SETOP_UNION: 1, + SETOP_INTERSECT: 2, + SETOP_EXCEPT: 3 + }, + ObjectType: { + OBJECT_ACCESS_METHOD: 0, + OBJECT_AGGREGATE: 1, + OBJECT_AMOP: 2, + OBJECT_AMPROC: 3, + OBJECT_ATTRIBUTE: 4, + OBJECT_CAST: 5, + OBJECT_COLUMN: 6, + OBJECT_COLLATION: 7, + OBJECT_CONVERSION: 8, + OBJECT_DATABASE: 9, + OBJECT_DEFAULT: 10, + OBJECT_DEFACL: 11, + OBJECT_DOMAIN: 12, + OBJECT_DOMCONSTRAINT: 13, + OBJECT_EVENT_TRIGGER: 14, + OBJECT_EXTENSION: 15, + OBJECT_FDW: 16, + OBJECT_FOREIGN_SERVER: 17, + OBJECT_FOREIGN_TABLE: 18, + OBJECT_FUNCTION: 19, + OBJECT_INDEX: 20, + OBJECT_LANGUAGE: 21, + OBJECT_LARGEOBJECT: 22, + OBJECT_MATVIEW: 23, + OBJECT_OPCLASS: 24, + OBJECT_OPERATOR: 25, + OBJECT_OPFAMILY: 26, + OBJECT_PARAMETER_ACL: 27, + OBJECT_POLICY: 28, + OBJECT_PROCEDURE: 29, + OBJECT_PUBLICATION: 30, + OBJECT_PUBLICATION_NAMESPACE: 31, + OBJECT_PUBLICATION_REL: 32, + OBJECT_ROLE: 33, + OBJECT_ROUTINE: 34, + OBJECT_RULE: 35, + OBJECT_SCHEMA: 36, + OBJECT_SEQUENCE: 37, + OBJECT_SUBSCRIPTION: 38, + OBJECT_STATISTIC_EXT: 39, + OBJECT_TABCONSTRAINT: 40, + OBJECT_TABLE: 41, + OBJECT_TABLESPACE: 42, + OBJECT_TRANSFORM: 43, + OBJECT_TRIGGER: 44, + OBJECT_TSCONFIGURATION: 45, + OBJECT_TSDICTIONARY: 46, + OBJECT_TSPARSER: 47, + OBJECT_TSTEMPLATE: 48, + OBJECT_TYPE: 49, + OBJECT_USER_MAPPING: 50, + OBJECT_VIEW: 51 + }, + DropBehavior: { + DROP_RESTRICT: 0, + DROP_CASCADE: 1 + }, + AlterTableType: { + AT_AddColumn: 0, + AT_AddColumnToView: 1, + AT_ColumnDefault: 2, + AT_CookedColumnDefault: 3, + AT_DropNotNull: 4, + AT_SetNotNull: 5, + AT_DropExpression: 6, + AT_CheckNotNull: 7, + AT_SetStatistics: 8, + AT_SetOptions: 9, + AT_ResetOptions: 10, + AT_SetStorage: 11, + AT_SetCompression: 12, + AT_DropColumn: 13, + AT_AddIndex: 14, + AT_ReAddIndex: 15, + AT_AddConstraint: 16, + AT_ReAddConstraint: 17, + AT_ReAddDomainConstraint: 18, + AT_AlterConstraint: 19, + AT_ValidateConstraint: 20, + AT_AddIndexConstraint: 21, + AT_DropConstraint: 22, + AT_ReAddComment: 23, + AT_AlterColumnType: 24, + AT_AlterColumnGenericOptions: 25, + AT_ChangeOwner: 26, + AT_ClusterOn: 27, + AT_DropCluster: 28, + AT_SetLogged: 29, + AT_SetUnLogged: 30, + AT_DropOids: 31, + AT_SetAccessMethod: 32, + AT_SetTableSpace: 33, + AT_SetRelOptions: 34, + AT_ResetRelOptions: 35, + AT_ReplaceRelOptions: 36, + AT_EnableTrig: 37, + AT_EnableAlwaysTrig: 38, + AT_EnableReplicaTrig: 39, + AT_DisableTrig: 40, + AT_EnableTrigAll: 41, + AT_DisableTrigAll: 42, + AT_EnableTrigUser: 43, + AT_DisableTrigUser: 44, + AT_EnableRule: 45, + AT_EnableAlwaysRule: 46, + AT_EnableReplicaRule: 47, + AT_DisableRule: 48, + AT_AddInherit: 49, + AT_DropInherit: 50, + AT_AddOf: 51, + AT_DropOf: 52, + AT_ReplicaIdentity: 53, + AT_EnableRowSecurity: 54, + AT_DisableRowSecurity: 55, + AT_ForceRowSecurity: 56, + AT_NoForceRowSecurity: 57, + AT_GenericOptions: 58, + AT_AttachPartition: 59, + AT_DetachPartition: 60, + AT_DetachPartitionFinalize: 61, + AT_AddIdentity: 62, + AT_SetIdentity: 63, + AT_DropIdentity: 64, + AT_ReAddStatistics: 65 + }, + GrantTargetType: { + ACL_TARGET_OBJECT: 0, + ACL_TARGET_ALL_IN_SCHEMA: 1, + ACL_TARGET_DEFAULTS: 2 + }, + VariableSetKind: { + VAR_SET_VALUE: 0, + VAR_SET_DEFAULT: 1, + VAR_SET_CURRENT: 2, + VAR_SET_MULTI: 3, + VAR_RESET: 4, + VAR_RESET_ALL: 5 + }, + ConstrType: { + CONSTR_NULL: 0, + CONSTR_NOTNULL: 1, + CONSTR_DEFAULT: 2, + CONSTR_IDENTITY: 3, + CONSTR_GENERATED: 4, + CONSTR_CHECK: 5, + CONSTR_PRIMARY: 6, + CONSTR_UNIQUE: 7, + CONSTR_EXCLUSION: 8, + CONSTR_FOREIGN: 9, + CONSTR_ATTR_DEFERRABLE: 10, + CONSTR_ATTR_NOT_DEFERRABLE: 11, + CONSTR_ATTR_DEFERRED: 12, + CONSTR_ATTR_IMMEDIATE: 13 + }, + ImportForeignSchemaType: { + FDW_IMPORT_SCHEMA_ALL: 0, + FDW_IMPORT_SCHEMA_LIMIT_TO: 1, + FDW_IMPORT_SCHEMA_EXCEPT: 2 + }, + RoleStmtType: { + ROLESTMT_ROLE: 0, + ROLESTMT_USER: 1, + ROLESTMT_GROUP: 2 + }, + FetchDirection: { + FETCH_FORWARD: 0, + FETCH_BACKWARD: 1, + FETCH_ABSOLUTE: 2, + FETCH_RELATIVE: 3 + }, + FunctionParameterMode: { + FUNC_PARAM_IN: 0, + FUNC_PARAM_OUT: 1, + FUNC_PARAM_INOUT: 2, + FUNC_PARAM_VARIADIC: 3, + FUNC_PARAM_TABLE: 4, + FUNC_PARAM_DEFAULT: 5 + }, + TransactionStmtKind: { + TRANS_STMT_BEGIN: 0, + TRANS_STMT_START: 1, + TRANS_STMT_COMMIT: 2, + TRANS_STMT_ROLLBACK: 3, + TRANS_STMT_SAVEPOINT: 4, + TRANS_STMT_RELEASE: 5, + TRANS_STMT_ROLLBACK_TO: 6, + TRANS_STMT_PREPARE: 7, + TRANS_STMT_COMMIT_PREPARED: 8, + TRANS_STMT_ROLLBACK_PREPARED: 9 + }, + ViewCheckOption: { + NO_CHECK_OPTION: 0, + LOCAL_CHECK_OPTION: 1, + CASCADED_CHECK_OPTION: 2 + }, + DiscardMode: { + DISCARD_ALL: 0, + DISCARD_PLANS: 1, + DISCARD_SEQUENCES: 2, + DISCARD_TEMP: 3 + }, + ReindexObjectType: { + REINDEX_OBJECT_INDEX: 0, + REINDEX_OBJECT_TABLE: 1, + REINDEX_OBJECT_SCHEMA: 2, + REINDEX_OBJECT_SYSTEM: 3, + REINDEX_OBJECT_DATABASE: 4 + }, + AlterTSConfigType: { + ALTER_TSCONFIG_ADD_MAPPING: 0, + ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN: 1, + ALTER_TSCONFIG_REPLACE_DICT: 2, + ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN: 3, + ALTER_TSCONFIG_DROP_MAPPING: 4 + }, + PublicationObjSpecType: { + PUBLICATIONOBJ_TABLE: 0, + PUBLICATIONOBJ_TABLES_IN_SCHEMA: 1, + PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA: 2, + PUBLICATIONOBJ_CONTINUATION: 3 + }, + AlterPublicationAction: { + AP_AddObjects: 0, + AP_DropObjects: 1, + AP_SetObjects: 2 + }, + AlterSubscriptionType: { + ALTER_SUBSCRIPTION_OPTIONS: 0, + ALTER_SUBSCRIPTION_CONNECTION: 1, + ALTER_SUBSCRIPTION_SET_PUBLICATION: 2, + ALTER_SUBSCRIPTION_ADD_PUBLICATION: 3, + ALTER_SUBSCRIPTION_DROP_PUBLICATION: 4, + ALTER_SUBSCRIPTION_REFRESH: 5, + ALTER_SUBSCRIPTION_ENABLED: 6, + ALTER_SUBSCRIPTION_SKIP: 7 + }, + OnCommitAction: { + ONCOMMIT_NOOP: 0, + ONCOMMIT_PRESERVE_ROWS: 1, + ONCOMMIT_DELETE_ROWS: 2, + ONCOMMIT_DROP: 3 + }, + ParamKind: { + PARAM_EXTERN: 0, + PARAM_EXEC: 1, + PARAM_SUBLINK: 2, + PARAM_MULTIEXPR: 3 + }, + CoercionContext: { + COERCION_IMPLICIT: 0, + COERCION_ASSIGNMENT: 1, + COERCION_PLPGSQL: 2, + COERCION_EXPLICIT: 3 + }, + CoercionForm: { + COERCE_EXPLICIT_CALL: 0, + COERCE_EXPLICIT_CAST: 1, + COERCE_IMPLICIT_CAST: 2, + COERCE_SQL_SYNTAX: 3 + }, + BoolExprType: { + AND_EXPR: 0, + OR_EXPR: 1, + NOT_EXPR: 2 + }, + SubLinkType: { + EXISTS_SUBLINK: 0, + ALL_SUBLINK: 1, + ANY_SUBLINK: 2, + ROWCOMPARE_SUBLINK: 3, + EXPR_SUBLINK: 4, + MULTIEXPR_SUBLINK: 5, + ARRAY_SUBLINK: 6, + CTE_SUBLINK: 7 + }, + RowCompareType: { + ROWCOMPARE_LT: 0, + ROWCOMPARE_LE: 1, + ROWCOMPARE_EQ: 2, + ROWCOMPARE_GE: 3, + ROWCOMPARE_GT: 4, + ROWCOMPARE_NE: 5 + }, + MinMaxOp: { + IS_GREATEST: 0, + IS_LEAST: 1 + }, + SQLValueFunctionOp: { + SVFOP_CURRENT_DATE: 0, + SVFOP_CURRENT_TIME: 1, + SVFOP_CURRENT_TIME_N: 2, + SVFOP_CURRENT_TIMESTAMP: 3, + SVFOP_CURRENT_TIMESTAMP_N: 4, + SVFOP_LOCALTIME: 5, + SVFOP_LOCALTIME_N: 6, + SVFOP_LOCALTIMESTAMP: 7, + SVFOP_LOCALTIMESTAMP_N: 8, + SVFOP_CURRENT_ROLE: 9, + SVFOP_CURRENT_USER: 10, + SVFOP_USER: 11, + SVFOP_SESSION_USER: 12, + SVFOP_CURRENT_CATALOG: 13, + SVFOP_CURRENT_SCHEMA: 14 + }, + XmlExprOp: { + IS_XMLCONCAT: 0, + IS_XMLELEMENT: 1, + IS_XMLFOREST: 2, + IS_XMLPARSE: 3, + IS_XMLPI: 4, + IS_XMLROOT: 5, + IS_XMLSERIALIZE: 6, + IS_DOCUMENT: 7 + }, + XmlOptionType: { + XMLOPTION_DOCUMENT: 0, + XMLOPTION_CONTENT: 1 + }, + JsonEncoding: { + JS_ENC_DEFAULT: 0, + JS_ENC_UTF8: 1, + JS_ENC_UTF16: 2, + JS_ENC_UTF32: 3 + }, + JsonFormatType: { + JS_FORMAT_DEFAULT: 0, + JS_FORMAT_JSON: 1, + JS_FORMAT_JSONB: 2 + }, + JsonConstructorType: { + JSCTOR_JSON_OBJECT: 0, + JSCTOR_JSON_ARRAY: 1, + JSCTOR_JSON_OBJECTAGG: 2, + JSCTOR_JSON_ARRAYAGG: 3 + }, + JsonValueType: { + JS_TYPE_ANY: 0, + JS_TYPE_OBJECT: 1, + JS_TYPE_ARRAY: 2, + JS_TYPE_SCALAR: 3 + }, + NullTestType: { + IS_NULL: 0, + IS_NOT_NULL: 1 + }, + BoolTestType: { + IS_TRUE: 0, + IS_NOT_TRUE: 1, + IS_FALSE: 2, + IS_NOT_FALSE: 3, + IS_UNKNOWN: 4, + IS_NOT_UNKNOWN: 5 + }, + CmdType: { + CMD_UNKNOWN: 0, + CMD_SELECT: 1, + CMD_UPDATE: 2, + CMD_INSERT: 3, + CMD_DELETE: 4, + CMD_MERGE: 5, + CMD_UTILITY: 6, + CMD_NOTHING: 7 + }, + JoinType: { + JOIN_INNER: 0, + JOIN_LEFT: 1, + JOIN_FULL: 2, + JOIN_RIGHT: 3, + JOIN_SEMI: 4, + JOIN_ANTI: 5, + JOIN_RIGHT_ANTI: 6, + JOIN_UNIQUE_OUTER: 7, + JOIN_UNIQUE_INNER: 8 + }, + AggStrategy: { + AGG_PLAIN: 0, + AGG_SORTED: 1, + AGG_HASHED: 2, + AGG_MIXED: 3 + }, + AggSplit: { + AGGSPLIT_SIMPLE: 0, + AGGSPLIT_INITIAL_SERIAL: 1, + AGGSPLIT_FINAL_DESERIAL: 2 + }, + SetOpCmd: { + SETOPCMD_INTERSECT: 0, + SETOPCMD_INTERSECT_ALL: 1, + SETOPCMD_EXCEPT: 2, + SETOPCMD_EXCEPT_ALL: 3 + }, + SetOpStrategy: { + SETOP_SORTED: 0, + SETOP_HASHED: 1 + }, + OnConflictAction: { + ONCONFLICT_NONE: 0, + ONCONFLICT_NOTHING: 1, + ONCONFLICT_UPDATE: 2 + }, + LimitOption: { + LIMIT_OPTION_DEFAULT: 0, + LIMIT_OPTION_COUNT: 1, + LIMIT_OPTION_WITH_TIES: 2 + }, + LockClauseStrength: { + LCS_NONE: 0, + LCS_FORKEYSHARE: 1, + LCS_FORSHARE: 2, + LCS_FORNOKEYUPDATE: 3, + LCS_FORUPDATE: 4 + }, + LockWaitPolicy: { + LockWaitBlock: 0, + LockWaitSkip: 1, + LockWaitError: 2 + }, + LockTupleMode: { + LockTupleKeyShare: 0, + LockTupleShare: 1, + LockTupleNoKeyExclusive: 2, + LockTupleExclusive: 3 + }, + KeywordKind: { + NO_KEYWORD: 0, + UNRESERVED_KEYWORD: 1, + COL_NAME_KEYWORD: 2, + TYPE_FUNC_NAME_KEYWORD: 3, + RESERVED_KEYWORD: 4 + }, + Token: { + NUL: 0, + ASCII_36: 36, + ASCII_37: 37, + ASCII_40: 40, + ASCII_41: 41, + ASCII_42: 42, + ASCII_43: 43, + ASCII_44: 44, + ASCII_45: 45, + ASCII_46: 46, + ASCII_47: 47, + ASCII_58: 58, + ASCII_59: 59, + ASCII_60: 60, + ASCII_61: 61, + ASCII_62: 62, + ASCII_63: 63, + ASCII_91: 91, + ASCII_92: 92, + ASCII_93: 93, + ASCII_94: 94, + IDENT: 258, + UIDENT: 259, + FCONST: 260, + SCONST: 261, + USCONST: 262, + BCONST: 263, + XCONST: 264, + Op: 265, + ICONST: 266, + PARAM: 267, + TYPECAST: 268, + DOT_DOT: 269, + COLON_EQUALS: 270, + EQUALS_GREATER: 271, + LESS_EQUALS: 272, + GREATER_EQUALS: 273, + NOT_EQUALS: 274, + SQL_COMMENT: 275, + C_COMMENT: 276, + ABORT_P: 277, + ABSENT: 278, + ABSOLUTE_P: 279, + ACCESS: 280, + ACTION: 281, + ADD_P: 282, + ADMIN: 283, + AFTER: 284, + AGGREGATE: 285, + ALL: 286, + ALSO: 287, + ALTER: 288, + ALWAYS: 289, + ANALYSE: 290, + ANALYZE: 291, + AND: 292, + ANY: 293, + ARRAY: 294, + AS: 295, + ASC: 296, + ASENSITIVE: 297, + ASSERTION: 298, + ASSIGNMENT: 299, + ASYMMETRIC: 300, + ATOMIC: 301, + AT: 302, + ATTACH: 303, + ATTRIBUTE: 304, + AUTHORIZATION: 305, + BACKWARD: 306, + BEFORE: 307, + BEGIN_P: 308, + BETWEEN: 309, + BIGINT: 310, + BINARY: 311, + BIT: 312, + BOOLEAN_P: 313, + BOTH: 314, + BREADTH: 315, + BY: 316, + CACHE: 317, + CALL: 318, + CALLED: 319, + CASCADE: 320, + CASCADED: 321, + CASE: 322, + CAST: 323, + CATALOG_P: 324, + CHAIN: 325, + CHAR_P: 326, + CHARACTER: 327, + CHARACTERISTICS: 328, + CHECK: 329, + CHECKPOINT: 330, + CLASS: 331, + CLOSE: 332, + CLUSTER: 333, + COALESCE: 334, + COLLATE: 335, + COLLATION: 336, + COLUMN: 337, + COLUMNS: 338, + COMMENT: 339, + COMMENTS: 340, + COMMIT: 341, + COMMITTED: 342, + COMPRESSION: 343, + CONCURRENTLY: 344, + CONFIGURATION: 345, + CONFLICT: 346, + CONNECTION: 347, + CONSTRAINT: 348, + CONSTRAINTS: 349, + CONTENT_P: 350, + CONTINUE_P: 351, + CONVERSION_P: 352, + COPY: 353, + COST: 354, + CREATE: 355, + CROSS: 356, + CSV: 357, + CUBE: 358, + CURRENT_P: 359, + CURRENT_CATALOG: 360, + CURRENT_DATE: 361, + CURRENT_ROLE: 362, + CURRENT_SCHEMA: 363, + CURRENT_TIME: 364, + CURRENT_TIMESTAMP: 365, + CURRENT_USER: 366, + CURSOR: 367, + CYCLE: 368, + DATA_P: 369, + DATABASE: 370, + DAY_P: 371, + DEALLOCATE: 372, + DEC: 373, + DECIMAL_P: 374, + DECLARE: 375, + DEFAULT: 376, + DEFAULTS: 377, + DEFERRABLE: 378, + DEFERRED: 379, + DEFINER: 380, + DELETE_P: 381, + DELIMITER: 382, + DELIMITERS: 383, + DEPENDS: 384, + DEPTH: 385, + DESC: 386, + DETACH: 387, + DICTIONARY: 388, + DISABLE_P: 389, + DISCARD: 390, + DISTINCT: 391, + DO: 392, + DOCUMENT_P: 393, + DOMAIN_P: 394, + DOUBLE_P: 395, + DROP: 396, + EACH: 397, + ELSE: 398, + ENABLE_P: 399, + ENCODING: 400, + ENCRYPTED: 401, + END_P: 402, + ENUM_P: 403, + ESCAPE: 404, + EVENT: 405, + EXCEPT: 406, + EXCLUDE: 407, + EXCLUDING: 408, + EXCLUSIVE: 409, + EXECUTE: 410, + EXISTS: 411, + EXPLAIN: 412, + EXPRESSION: 413, + EXTENSION: 414, + EXTERNAL: 415, + EXTRACT: 416, + FALSE_P: 417, + FAMILY: 418, + FETCH: 419, + FILTER: 420, + FINALIZE: 421, + FIRST_P: 422, + FLOAT_P: 423, + FOLLOWING: 424, + FOR: 425, + FORCE: 426, + FOREIGN: 427, + FORMAT: 428, + FORWARD: 429, + FREEZE: 430, + FROM: 431, + FULL: 432, + FUNCTION: 433, + FUNCTIONS: 434, + GENERATED: 435, + GLOBAL: 436, + GRANT: 437, + GRANTED: 438, + GREATEST: 439, + GROUP_P: 440, + GROUPING: 441, + GROUPS: 442, + HANDLER: 443, + HAVING: 444, + HEADER_P: 445, + HOLD: 446, + HOUR_P: 447, + IDENTITY_P: 448, + IF_P: 449, + ILIKE: 450, + IMMEDIATE: 451, + IMMUTABLE: 452, + IMPLICIT_P: 453, + IMPORT_P: 454, + IN_P: 455, + INCLUDE: 456, + INCLUDING: 457, + INCREMENT: 458, + INDENT: 459, + INDEX: 460, + INDEXES: 461, + INHERIT: 462, + INHERITS: 463, + INITIALLY: 464, + INLINE_P: 465, + INNER_P: 466, + INOUT: 467, + INPUT_P: 468, + INSENSITIVE: 469, + INSERT: 470, + INSTEAD: 471, + INT_P: 472, + INTEGER: 473, + INTERSECT: 474, + INTERVAL: 475, + INTO: 476, + INVOKER: 477, + IS: 478, + ISNULL: 479, + ISOLATION: 480, + JOIN: 481, + JSON: 482, + JSON_ARRAY: 483, + JSON_ARRAYAGG: 484, + JSON_OBJECT: 485, + JSON_OBJECTAGG: 486, + KEY: 487, + KEYS: 488, + LABEL: 489, + LANGUAGE: 490, + LARGE_P: 491, + LAST_P: 492, + LATERAL_P: 493, + LEADING: 494, + LEAKPROOF: 495, + LEAST: 496, + LEFT: 497, + LEVEL: 498, + LIKE: 499, + LIMIT: 500, + LISTEN: 501, + LOAD: 502, + LOCAL: 503, + LOCALTIME: 504, + LOCALTIMESTAMP: 505, + LOCATION: 506, + LOCK_P: 507, + LOCKED: 508, + LOGGED: 509, + MAPPING: 510, + MATCH: 511, + MATCHED: 512, + MATERIALIZED: 513, + MAXVALUE: 514, + MERGE: 515, + METHOD: 516, + MINUTE_P: 517, + MINVALUE: 518, + MODE: 519, + MONTH_P: 520, + MOVE: 521, + NAME_P: 522, + NAMES: 523, + NATIONAL: 524, + NATURAL: 525, + NCHAR: 526, + NEW: 527, + NEXT: 528, + NFC: 529, + NFD: 530, + NFKC: 531, + NFKD: 532, + NO: 533, + NONE: 534, + NORMALIZE: 535, + NORMALIZED: 536, + NOT: 537, + NOTHING: 538, + NOTIFY: 539, + NOTNULL: 540, + NOWAIT: 541, + NULL_P: 542, + NULLIF: 543, + NULLS_P: 544, + NUMERIC: 545, + OBJECT_P: 546, + OF: 547, + OFF: 548, + OFFSET: 549, + OIDS: 550, + OLD: 551, + ON: 552, + ONLY: 553, + OPERATOR: 554, + OPTION: 555, + OPTIONS: 556, + OR: 557, + ORDER: 558, + ORDINALITY: 559, + OTHERS: 560, + OUT_P: 561, + OUTER_P: 562, + OVER: 563, + OVERLAPS: 564, + OVERLAY: 565, + OVERRIDING: 566, + OWNED: 567, + OWNER: 568, + PARALLEL: 569, + PARAMETER: 570, + PARSER: 571, + PARTIAL: 572, + PARTITION: 573, + PASSING: 574, + PASSWORD: 575, + PLACING: 576, + PLANS: 577, + POLICY: 578, + POSITION: 579, + PRECEDING: 580, + PRECISION: 581, + PRESERVE: 582, + PREPARE: 583, + PREPARED: 584, + PRIMARY: 585, + PRIOR: 586, + PRIVILEGES: 587, + PROCEDURAL: 588, + PROCEDURE: 589, + PROCEDURES: 590, + PROGRAM: 591, + PUBLICATION: 592, + QUOTE: 593, + RANGE: 594, + READ: 595, + REAL: 596, + REASSIGN: 597, + RECHECK: 598, + RECURSIVE: 599, + REF_P: 600, + REFERENCES: 601, + REFERENCING: 602, + REFRESH: 603, + REINDEX: 604, + RELATIVE_P: 605, + RELEASE: 606, + RENAME: 607, + REPEATABLE: 608, + REPLACE: 609, + REPLICA: 610, + RESET: 611, + RESTART: 612, + RESTRICT: 613, + RETURN: 614, + RETURNING: 615, + RETURNS: 616, + REVOKE: 617, + RIGHT: 618, + ROLE: 619, + ROLLBACK: 620, + ROLLUP: 621, + ROUTINE: 622, + ROUTINES: 623, + ROW: 624, + ROWS: 625, + RULE: 626, + SAVEPOINT: 627, + SCALAR: 628, + SCHEMA: 629, + SCHEMAS: 630, + SCROLL: 631, + SEARCH: 632, + SECOND_P: 633, + SECURITY: 634, + SELECT: 635, + SEQUENCE: 636, + SEQUENCES: 637, + SERIALIZABLE: 638, + SERVER: 639, + SESSION: 640, + SESSION_USER: 641, + SET: 642, + SETS: 643, + SETOF: 644, + SHARE: 645, + SHOW: 646, + SIMILAR: 647, + SIMPLE: 648, + SKIP: 649, + SMALLINT: 650, + SNAPSHOT: 651, + SOME: 652, + SQL_P: 653, + STABLE: 654, + STANDALONE_P: 655, + START: 656, + STATEMENT: 657, + STATISTICS: 658, + STDIN: 659, + STDOUT: 660, + STORAGE: 661, + STORED: 662, + STRICT_P: 663, + STRIP_P: 664, + SUBSCRIPTION: 665, + SUBSTRING: 666, + SUPPORT: 667, + SYMMETRIC: 668, + SYSID: 669, + SYSTEM_P: 670, + SYSTEM_USER: 671, + TABLE: 672, + TABLES: 673, + TABLESAMPLE: 674, + TABLESPACE: 675, + TEMP: 676, + TEMPLATE: 677, + TEMPORARY: 678, + TEXT_P: 679, + THEN: 680, + TIES: 681, + TIME: 682, + TIMESTAMP: 683, + TO: 684, + TRAILING: 685, + TRANSACTION: 686, + TRANSFORM: 687, + TREAT: 688, + TRIGGER: 689, + TRIM: 690, + TRUE_P: 691, + TRUNCATE: 692, + TRUSTED: 693, + TYPE_P: 694, + TYPES_P: 695, + UESCAPE: 696, + UNBOUNDED: 697, + UNCOMMITTED: 698, + UNENCRYPTED: 699, + UNION: 700, + UNIQUE: 701, + UNKNOWN: 702, + UNLISTEN: 703, + UNLOGGED: 704, + UNTIL: 705, + UPDATE: 706, + USER: 707, + USING: 708, + VACUUM: 709, + VALID: 710, + VALIDATE: 711, + VALIDATOR: 712, + VALUE_P: 713, + VALUES: 714, + VARCHAR: 715, + VARIADIC: 716, + VARYING: 717, + VERBOSE: 718, + VERSION_P: 719, + VIEW: 720, + VIEWS: 721, + VOLATILE: 722, + WHEN: 723, + WHERE: 724, + WHITESPACE_P: 725, + WINDOW: 726, + WITH: 727, + WITHIN: 728, + WITHOUT: 729, + WORK: 730, + WRAPPER: 731, + WRITE: 732, + XML_P: 733, + XMLATTRIBUTES: 734, + XMLCONCAT: 735, + XMLELEMENT: 736, + XMLEXISTS: 737, + XMLFOREST: 738, + XMLNAMESPACES: 739, + XMLPARSE: 740, + XMLPI: 741, + XMLROOT: 742, + XMLSERIALIZE: 743, + XMLTABLE: 744, + YEAR_P: 745, + YES_P: 746, + ZONE: 747, + FORMAT_LA: 748, + NOT_LA: 749, + NULLS_LA: 750, + WITH_LA: 751, + WITHOUT_LA: 752, + MODE_TYPE_NAME: 753, + MODE_PLPGSQL_EXPR: 754, + MODE_PLPGSQL_ASSIGN1: 755, + MODE_PLPGSQL_ASSIGN2: 756, + MODE_PLPGSQL_ASSIGN3: 757, + UMINUS: 758 + } +}; +export type EnumToIntMap = typeof enumToIntMap;", + "file": "enums2int.ts", + }, +] +`; diff --git a/packages/proto-parser/__tests__/__snapshots__/runtime-schema.test.ts.snap b/packages/proto-parser/__tests__/__snapshots__/runtime-schema.test.ts.snap index 618ff84b..9bc7abad 100644 --- a/packages/proto-parser/__tests__/__snapshots__/runtime-schema.test.ts.snap +++ b/packages/proto-parser/__tests__/__snapshots__/runtime-schema.test.ts.snap @@ -6,7 +6,7 @@ exports[`runtime-schema custom filename json 1`] = ` "code": "[ { "name": "A_ArrayExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "elements", @@ -26,7 +26,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "A_Const", - "wrapped": true, + "isNode": true, "fields": [ { "name": "boolval", @@ -81,7 +81,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "A_Expr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "kind", @@ -122,7 +122,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "A_Indices", - "wrapped": true, + "isNode": true, "fields": [ { "name": "is_slice", @@ -149,7 +149,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "A_Indirection", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -169,12 +169,12 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "A_Star", - "wrapped": true, + "isNode": true, "fields": [] }, { "name": "AccessPriv", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cols", @@ -194,7 +194,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "Aggref", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aggargtypes", @@ -333,7 +333,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "Alias", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aliasname", @@ -353,7 +353,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterCollationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collname", @@ -366,7 +366,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterDatabaseRefreshCollStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -379,7 +379,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterDatabaseSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -399,7 +399,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterDatabaseStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -419,7 +419,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterDefaultPrivilegesStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -439,7 +439,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterDomainStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -487,7 +487,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterEnumStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "newVal", @@ -535,7 +535,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterEventTrigStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "tgenabled", @@ -555,7 +555,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterExtensionContentsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -589,7 +589,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterExtensionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "extname", @@ -609,7 +609,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterFdwStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fdwname", @@ -636,7 +636,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterForeignServerStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "has_version", @@ -670,7 +670,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterFunctionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "actions", @@ -697,7 +697,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlternativeSubPlan", - "wrapped": true, + "isNode": true, "fields": [ { "name": "subplans", @@ -717,7 +717,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterObjectDependsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "extname", @@ -758,7 +758,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterObjectSchemaStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -799,7 +799,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterOperatorStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "opername", @@ -819,7 +819,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterOpFamilyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -853,7 +853,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterOwnerStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "newowner", @@ -887,7 +887,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterPolicyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "policy_name", @@ -928,7 +928,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterPublicationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -969,7 +969,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterRoleSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "database", @@ -996,7 +996,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -1023,7 +1023,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterSeqStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "for_identity", @@ -1057,7 +1057,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterStatsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "defnames", @@ -1084,7 +1084,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterSubscriptionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conninfo", @@ -1125,7 +1125,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterSystemStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "setstmt", @@ -1138,7 +1138,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterTableCmd", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -1200,7 +1200,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterTableMoveAllStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "new_tablespacename", @@ -1241,7 +1241,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterTableSpaceOptionsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "isReset", @@ -1268,7 +1268,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterTableStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cmds", @@ -1302,7 +1302,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterTSConfigurationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cfgname", @@ -1357,7 +1357,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterTSDictionaryStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dictname", @@ -1377,7 +1377,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterTypeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -1397,7 +1397,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "AlterUserMappingStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -1424,7 +1424,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "ArrayCoerceExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -1486,7 +1486,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "ArrayExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "array_collid", @@ -1541,7 +1541,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "BitString", - "wrapped": true, + "isNode": true, "fields": [ { "name": "bsval", @@ -1554,7 +1554,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "Boolean", - "wrapped": true, + "isNode": true, "fields": [ { "name": "boolval", @@ -1567,7 +1567,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "BooleanTest", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -1601,7 +1601,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "BoolExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -1635,7 +1635,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CallContext", - "wrapped": true, + "isNode": true, "fields": [ { "name": "atomic", @@ -1648,7 +1648,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CallStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "funccall", @@ -1675,7 +1675,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CaseExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -1730,7 +1730,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CaseTestExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -1764,7 +1764,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CaseWhen", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -1798,12 +1798,12 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CheckPointStmt", - "wrapped": true, + "isNode": true, "fields": [] }, { "name": "ClosePortalStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "portalname", @@ -1816,7 +1816,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "ClusterStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "indexname", @@ -1843,7 +1843,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CoalesceExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -1884,7 +1884,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CoerceToDomain", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -1939,7 +1939,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CoerceToDomainValue", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -1980,7 +1980,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CoerceViaIO", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -2028,7 +2028,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CollateClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -2055,7 +2055,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CollateExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -2089,7 +2089,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "ColumnDef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collClause", @@ -2228,7 +2228,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "ColumnRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fields", @@ -2248,7 +2248,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CommentStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "comment", @@ -2275,7 +2275,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CommonTableExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aliascolnames", @@ -2372,7 +2372,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CompositeTypeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "coldeflist", @@ -2392,7 +2392,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "Constraint", - "wrapped": true, + "isNode": true, "fields": [ { "name": "access_method", @@ -2608,7 +2608,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "ConstraintsSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "constraints", @@ -2628,7 +2628,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "ConvertRowtypeExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -2669,7 +2669,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CopyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "attlist", @@ -2731,7 +2731,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CreateAmStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -2758,7 +2758,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CreateCastStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "context", @@ -2799,7 +2799,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CreateConversionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conversion_name", @@ -2840,7 +2840,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CreatedbStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -2860,7 +2860,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CreateDomainStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collClause", @@ -2894,7 +2894,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CreateEnumStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "typeName", @@ -2914,7 +2914,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CreateEventTrigStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "eventname", @@ -2948,7 +2948,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CreateExtensionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "extname", @@ -2975,7 +2975,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CreateFdwStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fdwname", @@ -3002,7 +3002,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CreateForeignServerStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fdwname", @@ -3050,7 +3050,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CreateForeignTableStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "base", @@ -3077,7 +3077,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CreateFunctionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "funcname", @@ -3132,7 +3132,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CreateOpClassItem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "class_args", @@ -3180,7 +3180,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CreateOpClassStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -3228,7 +3228,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CreateOpFamilyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -3248,7 +3248,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CreatePLangStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "plhandler", @@ -3296,7 +3296,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CreatePolicyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cmd_name", @@ -3351,7 +3351,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CreatePublicationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "for_all_tables", @@ -3385,7 +3385,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CreateRangeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "params", @@ -3405,7 +3405,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CreateRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -3432,7 +3432,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CreateSchemaStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "authrole", @@ -3466,7 +3466,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CreateSeqStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "for_identity", @@ -3507,7 +3507,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CreateStatsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "defnames", @@ -3562,7 +3562,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CreateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "accessMethod", @@ -3652,7 +3652,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CreateSubscriptionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conninfo", @@ -3686,7 +3686,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CreateTableAsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "if_not_exists", @@ -3727,7 +3727,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CreateTableSpaceStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -3761,7 +3761,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CreateTransformStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fromsql", @@ -3802,7 +3802,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CreateTrigStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -3913,7 +3913,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CreateUserMappingStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "if_not_exists", @@ -3947,7 +3947,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CTECycleClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cycle_col_list", @@ -4023,7 +4023,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CTESearchClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -4057,7 +4057,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "CurrentOfExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cursor_name", @@ -4091,7 +4091,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "DeallocateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "name", @@ -4104,7 +4104,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "DeclareCursorStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -4131,7 +4131,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "DefElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -4172,7 +4172,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "DefineStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -4227,7 +4227,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "DeleteStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "relation", @@ -4268,7 +4268,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "DiscardStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "target", @@ -4281,7 +4281,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "DistinctExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -4343,7 +4343,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "DoStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -4356,7 +4356,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "DropdbStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -4383,7 +4383,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "DropOwnedStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -4403,7 +4403,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "DropRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -4423,7 +4423,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "DropStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -4464,7 +4464,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "DropSubscriptionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -4491,7 +4491,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "DropTableSpaceStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -4511,7 +4511,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "DropUserMappingStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -4538,7 +4538,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "ExecuteStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "name", @@ -4558,7 +4558,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "ExplainStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -4578,7 +4578,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "FetchStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "direction", @@ -4612,7 +4612,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "FieldSelect", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -4660,7 +4660,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "FieldStore", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -4701,7 +4701,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "Float", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fval", @@ -4714,7 +4714,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "FromExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fromlist", @@ -4734,7 +4734,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "FuncCall", - "wrapped": true, + "isNode": true, "fields": [ { "name": "agg_distinct", @@ -4817,7 +4817,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "FuncExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -4893,7 +4893,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "FunctionParameter", - "wrapped": true, + "isNode": true, "fields": [ { "name": "argType", @@ -4927,7 +4927,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "GrantRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -4975,7 +4975,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "GrantStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -5044,7 +5044,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "GroupingFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "agglevelsup", @@ -5085,7 +5085,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "GroupingSet", - "wrapped": true, + "isNode": true, "fields": [ { "name": "content", @@ -5112,7 +5112,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "ImportForeignSchemaStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "list_type", @@ -5160,7 +5160,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "IndexElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -5222,7 +5222,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "IndexStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "accessMethod", @@ -5396,7 +5396,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "InferClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conname", @@ -5430,7 +5430,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "InferenceElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -5464,7 +5464,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "InlineCodeBlock", - "wrapped": true, + "isNode": true, "fields": [ { "name": "atomic", @@ -5498,7 +5498,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "InsertStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cols", @@ -5553,7 +5553,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "Integer", - "wrapped": true, + "isNode": true, "fields": [ { "name": "ival", @@ -5566,7 +5566,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "IntList", - "wrapped": true, + "isNode": true, "fields": [ { "name": "items", @@ -5579,7 +5579,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "IntoClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "accessMethod", @@ -5641,7 +5641,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "JoinExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -5710,7 +5710,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "JsonAggConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "agg_filter", @@ -5751,7 +5751,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "JsonArrayAgg", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -5778,7 +5778,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "JsonArrayConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -5812,7 +5812,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "JsonArrayQueryConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -5853,7 +5853,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "JsonConstructorExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -5922,7 +5922,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "JsonFormat", - "wrapped": true, + "isNode": true, "fields": [ { "name": "encoding", @@ -5949,7 +5949,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "JsonIsPredicate", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -5990,7 +5990,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "JsonKeyValue", - "wrapped": true, + "isNode": true, "fields": [ { "name": "key", @@ -6010,7 +6010,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "JsonObjectAgg", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -6044,7 +6044,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "JsonObjectConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -6085,7 +6085,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "JsonOutput", - "wrapped": true, + "isNode": true, "fields": [ { "name": "returning", @@ -6105,7 +6105,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "JsonReturning", - "wrapped": true, + "isNode": true, "fields": [ { "name": "format", @@ -6132,7 +6132,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "JsonValueExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "format", @@ -6159,7 +6159,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "List", - "wrapped": true, + "isNode": true, "fields": [ { "name": "items", @@ -6172,7 +6172,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "ListenStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conditionname", @@ -6185,7 +6185,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "LoadStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "filename", @@ -6198,7 +6198,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "LockingClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "lockedRels", @@ -6225,7 +6225,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "LockStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "mode", @@ -6252,7 +6252,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "MergeAction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "commandType", @@ -6300,7 +6300,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "MergeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "joinCondition", @@ -6341,7 +6341,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "MergeWhenClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "commandType", @@ -6389,7 +6389,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "MinMaxExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -6444,7 +6444,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "MultiAssignRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "colno", @@ -6471,7 +6471,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "NamedArgExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -6512,7 +6512,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "NextValueExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "seqid", @@ -6539,7 +6539,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "NotifyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conditionname", @@ -6559,7 +6559,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "NullIfExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -6621,7 +6621,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "NullTest", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -6662,7 +6662,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "ObjectWithArgs", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args_unspecified", @@ -6696,7 +6696,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "OidList", - "wrapped": true, + "isNode": true, "fields": [ { "name": "items", @@ -6709,7 +6709,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "OnConflictClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -6750,7 +6750,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "OnConflictExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -6812,7 +6812,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "OpExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -6874,7 +6874,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "Param", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -6929,7 +6929,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "ParamRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -6949,7 +6949,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "ParseResult", - "wrapped": false, + "isNode": false, "fields": [ { "name": "stmts", @@ -6969,7 +6969,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "PartitionBoundSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "is_default", @@ -7031,7 +7031,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "PartitionCmd", - "wrapped": true, + "isNode": true, "fields": [ { "name": "bound", @@ -7058,7 +7058,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "PartitionElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -7099,7 +7099,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "PartitionRangeDatum", - "wrapped": true, + "isNode": true, "fields": [ { "name": "kind", @@ -7126,7 +7126,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "PartitionSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -7153,7 +7153,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "PLAssignStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "indirection", @@ -7194,7 +7194,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "PrepareStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "argtypes", @@ -7221,7 +7221,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "PublicationObjSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -7255,7 +7255,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "PublicationTable", - "wrapped": true, + "isNode": true, "fields": [ { "name": "columns", @@ -7282,7 +7282,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "Query", - "wrapped": true, + "isNode": true, "fields": [ { "name": "canSetTag", @@ -7575,7 +7575,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "RangeFunction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -7623,7 +7623,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "RangeSubselect", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -7650,7 +7650,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "RangeTableFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -7705,7 +7705,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "RangeTableFuncCol", - "wrapped": true, + "isNode": true, "fields": [ { "name": "coldefexpr", @@ -7760,7 +7760,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "RangeTableSample", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -7801,7 +7801,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "RangeTblEntry", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -8031,7 +8031,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "RangeTblFunction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "funccolcollations", @@ -8086,7 +8086,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "RangeTblRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "rtindex", @@ -8099,7 +8099,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "RangeVar", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -8154,7 +8154,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "RawStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "stmt", @@ -8181,7 +8181,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "ReassignOwnedStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "newrole", @@ -8201,7 +8201,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "RefreshMatViewStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "concurrent", @@ -8228,7 +8228,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "ReindexStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "kind", @@ -8262,7 +8262,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "RelabelType", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -8317,7 +8317,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "RenameStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -8379,7 +8379,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "ReplicaIdentityStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "identity_type", @@ -8399,7 +8399,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "ResTarget", - "wrapped": true, + "isNode": true, "fields": [ { "name": "indirection", @@ -8433,7 +8433,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "ReturnStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "returnval", @@ -8446,7 +8446,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "RoleSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -8473,7 +8473,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "RowCompareExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "inputcollids", @@ -8528,7 +8528,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "RowExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -8576,7 +8576,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "RowMarkClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "pushedDown", @@ -8610,7 +8610,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "RTEPermissionInfo", - "wrapped": true, + "isNode": true, "fields": [ { "name": "checkAsUser", @@ -8665,7 +8665,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "RuleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "actions", @@ -8720,7 +8720,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "ScalarArrayOpExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -8768,7 +8768,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "ScanResult", - "wrapped": false, + "isNode": false, "fields": [ { "name": "tokens", @@ -8788,7 +8788,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "ScanToken", - "wrapped": false, + "isNode": false, "fields": [ { "name": "end", @@ -8822,7 +8822,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "SecLabelStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "label", @@ -8856,7 +8856,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "SelectStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "all", @@ -9002,7 +9002,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "SetOperationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "all", @@ -9064,7 +9064,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "SetToDefault", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -9105,7 +9105,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "SortBy", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -9146,7 +9146,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "SortGroupClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "eqop", @@ -9187,7 +9187,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "SQLValueFunction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -9228,7 +9228,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "StatsElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -9248,7 +9248,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "String", - "wrapped": true, + "isNode": true, "fields": [ { "name": "sval", @@ -9261,7 +9261,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "SubLink", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -9316,7 +9316,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "SubPlan", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -9441,7 +9441,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "SubscriptingRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "refassgnexpr", @@ -9517,7 +9517,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "TableFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "colcollations", @@ -9614,7 +9614,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "TableLikeClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -9641,7 +9641,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "TableSampleClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -9668,7 +9668,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "TargetEntry", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -9730,7 +9730,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "TransactionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "chain", @@ -9771,7 +9771,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "TriggerTransition", - "wrapped": true, + "isNode": true, "fields": [ { "name": "isNew", @@ -9798,7 +9798,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "TruncateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -9825,7 +9825,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "TypeCast", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -9852,7 +9852,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "TypeName", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arrayBounds", @@ -9914,7 +9914,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "UnlistenStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conditionname", @@ -9927,7 +9927,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "UpdateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fromClause", @@ -9975,7 +9975,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "VacuumRelation", - "wrapped": true, + "isNode": true, "fields": [ { "name": "oid", @@ -10002,7 +10002,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "VacuumStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "is_vacuumcmd", @@ -10029,7 +10029,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "Var", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -10098,7 +10098,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "VariableSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -10132,7 +10132,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "VariableShowStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "name", @@ -10145,7 +10145,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "ViewStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aliases", @@ -10193,7 +10193,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "WindowClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "copiedOrder", @@ -10304,7 +10304,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "WindowDef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "endOffset", @@ -10366,7 +10366,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "WindowFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aggfilter", @@ -10449,7 +10449,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "WithCheckOption", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cascaded", @@ -10490,7 +10490,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "WithClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "ctes", @@ -10517,7 +10517,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "XmlExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg_names", @@ -10600,7 +10600,7 @@ exports[`runtime-schema custom filename json 1`] = ` }, { "name": "XmlSerialize", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -10653,7 +10653,6 @@ exports[`runtime-schema custom filename typescript 1`] = ` * DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, * and run the pg-proto-parser generate command to regenerate this file. */ -// Generated by pg-proto-parser export interface FieldSpec { name: string; type: string; @@ -10663,13 +10662,13 @@ export interface FieldSpec { } export interface NodeSpec { name: string; - wrapped: boolean; + isNode: boolean; fields: FieldSpec[]; } export const runtimeSchema: NodeSpec[] = [ { name: 'A_ArrayExpr', - wrapped: true, + isNode: true, fields: [ { name: 'elements', @@ -10689,7 +10688,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'A_Const', - wrapped: true, + isNode: true, fields: [ { name: 'boolval', @@ -10744,7 +10743,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'A_Expr', - wrapped: true, + isNode: true, fields: [ { name: 'kind', @@ -10785,7 +10784,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'A_Indices', - wrapped: true, + isNode: true, fields: [ { name: 'is_slice', @@ -10812,7 +10811,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'A_Indirection', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -10832,14 +10831,14 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'A_Star', - wrapped: true, + isNode: true, fields: [ ] }, { name: 'AccessPriv', - wrapped: true, + isNode: true, fields: [ { name: 'cols', @@ -10859,7 +10858,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Aggref', - wrapped: true, + isNode: true, fields: [ { name: 'aggargtypes', @@ -10998,7 +10997,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Alias', - wrapped: true, + isNode: true, fields: [ { name: 'aliasname', @@ -11018,7 +11017,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterCollationStmt', - wrapped: true, + isNode: true, fields: [ { name: 'collname', @@ -11031,7 +11030,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterDatabaseRefreshCollStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dbname', @@ -11044,7 +11043,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterDatabaseSetStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dbname', @@ -11064,7 +11063,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterDatabaseStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dbname', @@ -11084,7 +11083,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterDefaultPrivilegesStmt', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -11104,7 +11103,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterDomainStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -11152,7 +11151,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterEnumStmt', - wrapped: true, + isNode: true, fields: [ { name: 'newVal', @@ -11200,7 +11199,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterEventTrigStmt', - wrapped: true, + isNode: true, fields: [ { name: 'tgenabled', @@ -11220,7 +11219,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterExtensionContentsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -11254,7 +11253,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterExtensionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'extname', @@ -11274,7 +11273,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterFdwStmt', - wrapped: true, + isNode: true, fields: [ { name: 'fdwname', @@ -11301,7 +11300,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterForeignServerStmt', - wrapped: true, + isNode: true, fields: [ { name: 'has_version', @@ -11335,7 +11334,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterFunctionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'actions', @@ -11362,7 +11361,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlternativeSubPlan', - wrapped: true, + isNode: true, fields: [ { name: 'subplans', @@ -11382,7 +11381,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterObjectDependsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'extname', @@ -11423,7 +11422,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterObjectSchemaStmt', - wrapped: true, + isNode: true, fields: [ { name: 'missing_ok', @@ -11464,7 +11463,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterOperatorStmt', - wrapped: true, + isNode: true, fields: [ { name: 'opername', @@ -11484,7 +11483,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterOpFamilyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'amname', @@ -11518,7 +11517,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterOwnerStmt', - wrapped: true, + isNode: true, fields: [ { name: 'newowner', @@ -11552,7 +11551,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterPolicyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'policy_name', @@ -11593,7 +11592,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterPublicationStmt', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -11634,7 +11633,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterRoleSetStmt', - wrapped: true, + isNode: true, fields: [ { name: 'database', @@ -11661,7 +11660,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterRoleStmt', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -11688,7 +11687,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterSeqStmt', - wrapped: true, + isNode: true, fields: [ { name: 'for_identity', @@ -11722,7 +11721,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterStatsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'defnames', @@ -11749,7 +11748,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterSubscriptionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conninfo', @@ -11790,7 +11789,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterSystemStmt', - wrapped: true, + isNode: true, fields: [ { name: 'setstmt', @@ -11803,7 +11802,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTableCmd', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -11865,7 +11864,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTableMoveAllStmt', - wrapped: true, + isNode: true, fields: [ { name: 'new_tablespacename', @@ -11906,7 +11905,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTableSpaceOptionsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'isReset', @@ -11933,7 +11932,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTableStmt', - wrapped: true, + isNode: true, fields: [ { name: 'cmds', @@ -11967,7 +11966,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTSConfigurationStmt', - wrapped: true, + isNode: true, fields: [ { name: 'cfgname', @@ -12022,7 +12021,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTSDictionaryStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dictname', @@ -12042,7 +12041,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTypeStmt', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -12062,7 +12061,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterUserMappingStmt', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -12089,7 +12088,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ArrayCoerceExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -12151,7 +12150,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ArrayExpr', - wrapped: true, + isNode: true, fields: [ { name: 'array_collid', @@ -12206,7 +12205,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'BitString', - wrapped: true, + isNode: true, fields: [ { name: 'bsval', @@ -12219,7 +12218,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Boolean', - wrapped: true, + isNode: true, fields: [ { name: 'boolval', @@ -12232,7 +12231,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'BooleanTest', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -12266,7 +12265,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'BoolExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -12300,7 +12299,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CallContext', - wrapped: true, + isNode: true, fields: [ { name: 'atomic', @@ -12313,7 +12312,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CallStmt', - wrapped: true, + isNode: true, fields: [ { name: 'funccall', @@ -12340,7 +12339,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CaseExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -12395,7 +12394,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CaseTestExpr', - wrapped: true, + isNode: true, fields: [ { name: 'collation', @@ -12429,7 +12428,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CaseWhen', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -12463,14 +12462,14 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CheckPointStmt', - wrapped: true, + isNode: true, fields: [ ] }, { name: 'ClosePortalStmt', - wrapped: true, + isNode: true, fields: [ { name: 'portalname', @@ -12483,7 +12482,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ClusterStmt', - wrapped: true, + isNode: true, fields: [ { name: 'indexname', @@ -12510,7 +12509,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CoalesceExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -12551,7 +12550,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CoerceToDomain', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -12606,7 +12605,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CoerceToDomainValue', - wrapped: true, + isNode: true, fields: [ { name: 'collation', @@ -12647,7 +12646,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CoerceViaIO', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -12695,7 +12694,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CollateClause', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -12722,7 +12721,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CollateExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -12756,7 +12755,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ColumnDef', - wrapped: true, + isNode: true, fields: [ { name: 'collClause', @@ -12895,7 +12894,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ColumnRef', - wrapped: true, + isNode: true, fields: [ { name: 'fields', @@ -12915,7 +12914,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CommentStmt', - wrapped: true, + isNode: true, fields: [ { name: 'comment', @@ -12942,7 +12941,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CommonTableExpr', - wrapped: true, + isNode: true, fields: [ { name: 'aliascolnames', @@ -13039,7 +13038,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CompositeTypeStmt', - wrapped: true, + isNode: true, fields: [ { name: 'coldeflist', @@ -13059,7 +13058,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Constraint', - wrapped: true, + isNode: true, fields: [ { name: 'access_method', @@ -13275,7 +13274,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ConstraintsSetStmt', - wrapped: true, + isNode: true, fields: [ { name: 'constraints', @@ -13295,7 +13294,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ConvertRowtypeExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -13336,7 +13335,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CopyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'attlist', @@ -13398,7 +13397,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateAmStmt', - wrapped: true, + isNode: true, fields: [ { name: 'amname', @@ -13425,7 +13424,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateCastStmt', - wrapped: true, + isNode: true, fields: [ { name: 'context', @@ -13466,7 +13465,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateConversionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conversion_name', @@ -13507,7 +13506,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreatedbStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dbname', @@ -13527,7 +13526,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateDomainStmt', - wrapped: true, + isNode: true, fields: [ { name: 'collClause', @@ -13561,7 +13560,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateEnumStmt', - wrapped: true, + isNode: true, fields: [ { name: 'typeName', @@ -13581,7 +13580,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateEventTrigStmt', - wrapped: true, + isNode: true, fields: [ { name: 'eventname', @@ -13615,7 +13614,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateExtensionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'extname', @@ -13642,7 +13641,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateFdwStmt', - wrapped: true, + isNode: true, fields: [ { name: 'fdwname', @@ -13669,7 +13668,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateForeignServerStmt', - wrapped: true, + isNode: true, fields: [ { name: 'fdwname', @@ -13717,7 +13716,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateForeignTableStmt', - wrapped: true, + isNode: true, fields: [ { name: 'base', @@ -13744,7 +13743,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateFunctionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'funcname', @@ -13799,7 +13798,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateOpClassItem', - wrapped: true, + isNode: true, fields: [ { name: 'class_args', @@ -13847,7 +13846,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateOpClassStmt', - wrapped: true, + isNode: true, fields: [ { name: 'amname', @@ -13895,7 +13894,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateOpFamilyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'amname', @@ -13915,7 +13914,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreatePLangStmt', - wrapped: true, + isNode: true, fields: [ { name: 'plhandler', @@ -13963,7 +13962,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreatePolicyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'cmd_name', @@ -14018,7 +14017,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreatePublicationStmt', - wrapped: true, + isNode: true, fields: [ { name: 'for_all_tables', @@ -14052,7 +14051,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateRangeStmt', - wrapped: true, + isNode: true, fields: [ { name: 'params', @@ -14072,7 +14071,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateRoleStmt', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -14099,7 +14098,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateSchemaStmt', - wrapped: true, + isNode: true, fields: [ { name: 'authrole', @@ -14133,7 +14132,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateSeqStmt', - wrapped: true, + isNode: true, fields: [ { name: 'for_identity', @@ -14174,7 +14173,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateStatsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'defnames', @@ -14229,7 +14228,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateStmt', - wrapped: true, + isNode: true, fields: [ { name: 'accessMethod', @@ -14319,7 +14318,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateSubscriptionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conninfo', @@ -14353,7 +14352,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateTableAsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'if_not_exists', @@ -14394,7 +14393,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateTableSpaceStmt', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -14428,7 +14427,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateTransformStmt', - wrapped: true, + isNode: true, fields: [ { name: 'fromsql', @@ -14469,7 +14468,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateTrigStmt', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -14580,7 +14579,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateUserMappingStmt', - wrapped: true, + isNode: true, fields: [ { name: 'if_not_exists', @@ -14614,7 +14613,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CTECycleClause', - wrapped: true, + isNode: true, fields: [ { name: 'cycle_col_list', @@ -14690,7 +14689,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CTESearchClause', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -14724,7 +14723,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CurrentOfExpr', - wrapped: true, + isNode: true, fields: [ { name: 'cursor_name', @@ -14758,7 +14757,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DeallocateStmt', - wrapped: true, + isNode: true, fields: [ { name: 'name', @@ -14771,7 +14770,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DeclareCursorStmt', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -14798,7 +14797,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DefElem', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -14839,7 +14838,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DefineStmt', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -14894,7 +14893,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DeleteStmt', - wrapped: true, + isNode: true, fields: [ { name: 'relation', @@ -14935,7 +14934,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DiscardStmt', - wrapped: true, + isNode: true, fields: [ { name: 'target', @@ -14948,7 +14947,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DistinctExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -15010,7 +15009,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DoStmt', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -15023,7 +15022,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropdbStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dbname', @@ -15050,7 +15049,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropOwnedStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -15070,7 +15069,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropRoleStmt', - wrapped: true, + isNode: true, fields: [ { name: 'missing_ok', @@ -15090,7 +15089,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -15131,7 +15130,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropSubscriptionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -15158,7 +15157,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropTableSpaceStmt', - wrapped: true, + isNode: true, fields: [ { name: 'missing_ok', @@ -15178,7 +15177,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropUserMappingStmt', - wrapped: true, + isNode: true, fields: [ { name: 'missing_ok', @@ -15205,7 +15204,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ExecuteStmt', - wrapped: true, + isNode: true, fields: [ { name: 'name', @@ -15225,7 +15224,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ExplainStmt', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -15245,7 +15244,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FetchStmt', - wrapped: true, + isNode: true, fields: [ { name: 'direction', @@ -15279,7 +15278,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FieldSelect', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -15327,7 +15326,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FieldStore', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -15368,7 +15367,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Float', - wrapped: true, + isNode: true, fields: [ { name: 'fval', @@ -15381,7 +15380,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FromExpr', - wrapped: true, + isNode: true, fields: [ { name: 'fromlist', @@ -15401,7 +15400,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FuncCall', - wrapped: true, + isNode: true, fields: [ { name: 'agg_distinct', @@ -15484,7 +15483,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FuncExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -15560,7 +15559,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FunctionParameter', - wrapped: true, + isNode: true, fields: [ { name: 'argType', @@ -15594,7 +15593,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'GrantRoleStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -15642,7 +15641,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'GrantStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -15711,7 +15710,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'GroupingFunc', - wrapped: true, + isNode: true, fields: [ { name: 'agglevelsup', @@ -15752,7 +15751,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'GroupingSet', - wrapped: true, + isNode: true, fields: [ { name: 'content', @@ -15779,7 +15778,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ImportForeignSchemaStmt', - wrapped: true, + isNode: true, fields: [ { name: 'list_type', @@ -15827,7 +15826,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'IndexElem', - wrapped: true, + isNode: true, fields: [ { name: 'collation', @@ -15889,7 +15888,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'IndexStmt', - wrapped: true, + isNode: true, fields: [ { name: 'accessMethod', @@ -16063,7 +16062,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'InferClause', - wrapped: true, + isNode: true, fields: [ { name: 'conname', @@ -16097,7 +16096,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'InferenceElem', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -16131,7 +16130,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'InlineCodeBlock', - wrapped: true, + isNode: true, fields: [ { name: 'atomic', @@ -16165,7 +16164,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'InsertStmt', - wrapped: true, + isNode: true, fields: [ { name: 'cols', @@ -16220,7 +16219,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Integer', - wrapped: true, + isNode: true, fields: [ { name: 'ival', @@ -16233,7 +16232,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'IntList', - wrapped: true, + isNode: true, fields: [ { name: 'items', @@ -16246,7 +16245,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'IntoClause', - wrapped: true, + isNode: true, fields: [ { name: 'accessMethod', @@ -16308,7 +16307,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JoinExpr', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -16377,7 +16376,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonAggConstructor', - wrapped: true, + isNode: true, fields: [ { name: 'agg_filter', @@ -16418,7 +16417,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonArrayAgg', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -16445,7 +16444,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonArrayConstructor', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -16479,7 +16478,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonArrayQueryConstructor', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -16520,7 +16519,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonConstructorExpr', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -16589,7 +16588,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonFormat', - wrapped: true, + isNode: true, fields: [ { name: 'encoding', @@ -16616,7 +16615,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonIsPredicate', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -16657,7 +16656,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonKeyValue', - wrapped: true, + isNode: true, fields: [ { name: 'key', @@ -16677,7 +16676,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonObjectAgg', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -16711,7 +16710,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonObjectConstructor', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -16752,7 +16751,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonOutput', - wrapped: true, + isNode: true, fields: [ { name: 'returning', @@ -16772,7 +16771,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonReturning', - wrapped: true, + isNode: true, fields: [ { name: 'format', @@ -16799,7 +16798,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonValueExpr', - wrapped: true, + isNode: true, fields: [ { name: 'format', @@ -16826,7 +16825,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'List', - wrapped: true, + isNode: true, fields: [ { name: 'items', @@ -16839,7 +16838,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ListenStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conditionname', @@ -16852,7 +16851,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'LoadStmt', - wrapped: true, + isNode: true, fields: [ { name: 'filename', @@ -16865,7 +16864,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'LockingClause', - wrapped: true, + isNode: true, fields: [ { name: 'lockedRels', @@ -16892,7 +16891,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'LockStmt', - wrapped: true, + isNode: true, fields: [ { name: 'mode', @@ -16919,7 +16918,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'MergeAction', - wrapped: true, + isNode: true, fields: [ { name: 'commandType', @@ -16967,7 +16966,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'MergeStmt', - wrapped: true, + isNode: true, fields: [ { name: 'joinCondition', @@ -17008,7 +17007,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'MergeWhenClause', - wrapped: true, + isNode: true, fields: [ { name: 'commandType', @@ -17056,7 +17055,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'MinMaxExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -17111,7 +17110,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'MultiAssignRef', - wrapped: true, + isNode: true, fields: [ { name: 'colno', @@ -17138,7 +17137,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'NamedArgExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -17179,7 +17178,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'NextValueExpr', - wrapped: true, + isNode: true, fields: [ { name: 'seqid', @@ -17206,7 +17205,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'NotifyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conditionname', @@ -17226,7 +17225,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'NullIfExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -17288,7 +17287,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'NullTest', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -17329,7 +17328,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ObjectWithArgs', - wrapped: true, + isNode: true, fields: [ { name: 'args_unspecified', @@ -17363,7 +17362,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'OidList', - wrapped: true, + isNode: true, fields: [ { name: 'items', @@ -17376,7 +17375,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'OnConflictClause', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -17417,7 +17416,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'OnConflictExpr', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -17479,7 +17478,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'OpExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -17541,7 +17540,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Param', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -17596,7 +17595,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ParamRef', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -17616,7 +17615,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ParseResult', - wrapped: false, + isNode: false, fields: [ { name: 'stmts', @@ -17636,7 +17635,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PartitionBoundSpec', - wrapped: true, + isNode: true, fields: [ { name: 'is_default', @@ -17698,7 +17697,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PartitionCmd', - wrapped: true, + isNode: true, fields: [ { name: 'bound', @@ -17725,7 +17724,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PartitionElem', - wrapped: true, + isNode: true, fields: [ { name: 'collation', @@ -17766,7 +17765,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PartitionRangeDatum', - wrapped: true, + isNode: true, fields: [ { name: 'kind', @@ -17793,7 +17792,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PartitionSpec', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -17820,7 +17819,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PLAssignStmt', - wrapped: true, + isNode: true, fields: [ { name: 'indirection', @@ -17861,7 +17860,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PrepareStmt', - wrapped: true, + isNode: true, fields: [ { name: 'argtypes', @@ -17888,7 +17887,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PublicationObjSpec', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -17922,7 +17921,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PublicationTable', - wrapped: true, + isNode: true, fields: [ { name: 'columns', @@ -17949,7 +17948,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Query', - wrapped: true, + isNode: true, fields: [ { name: 'canSetTag', @@ -18242,7 +18241,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeFunction', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -18290,7 +18289,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeSubselect', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -18317,7 +18316,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTableFunc', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -18372,7 +18371,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTableFuncCol', - wrapped: true, + isNode: true, fields: [ { name: 'coldefexpr', @@ -18427,7 +18426,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTableSample', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -18468,7 +18467,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTblEntry', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -18698,7 +18697,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTblFunction', - wrapped: true, + isNode: true, fields: [ { name: 'funccolcollations', @@ -18753,7 +18752,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTblRef', - wrapped: true, + isNode: true, fields: [ { name: 'rtindex', @@ -18766,7 +18765,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeVar', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -18821,7 +18820,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RawStmt', - wrapped: true, + isNode: true, fields: [ { name: 'stmt', @@ -18848,7 +18847,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ReassignOwnedStmt', - wrapped: true, + isNode: true, fields: [ { name: 'newrole', @@ -18868,7 +18867,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RefreshMatViewStmt', - wrapped: true, + isNode: true, fields: [ { name: 'concurrent', @@ -18895,7 +18894,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ReindexStmt', - wrapped: true, + isNode: true, fields: [ { name: 'kind', @@ -18929,7 +18928,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RelabelType', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -18984,7 +18983,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RenameStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -19046,7 +19045,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ReplicaIdentityStmt', - wrapped: true, + isNode: true, fields: [ { name: 'identity_type', @@ -19066,7 +19065,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ResTarget', - wrapped: true, + isNode: true, fields: [ { name: 'indirection', @@ -19100,7 +19099,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ReturnStmt', - wrapped: true, + isNode: true, fields: [ { name: 'returnval', @@ -19113,7 +19112,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RoleSpec', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -19140,7 +19139,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RowCompareExpr', - wrapped: true, + isNode: true, fields: [ { name: 'inputcollids', @@ -19195,7 +19194,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RowExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -19243,7 +19242,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RowMarkClause', - wrapped: true, + isNode: true, fields: [ { name: 'pushedDown', @@ -19277,7 +19276,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RTEPermissionInfo', - wrapped: true, + isNode: true, fields: [ { name: 'checkAsUser', @@ -19332,7 +19331,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RuleStmt', - wrapped: true, + isNode: true, fields: [ { name: 'actions', @@ -19387,7 +19386,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ScalarArrayOpExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -19435,7 +19434,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ScanResult', - wrapped: false, + isNode: false, fields: [ { name: 'tokens', @@ -19455,7 +19454,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ScanToken', - wrapped: false, + isNode: false, fields: [ { name: 'end', @@ -19489,7 +19488,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SecLabelStmt', - wrapped: true, + isNode: true, fields: [ { name: 'label', @@ -19523,7 +19522,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SelectStmt', - wrapped: true, + isNode: true, fields: [ { name: 'all', @@ -19669,7 +19668,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SetOperationStmt', - wrapped: true, + isNode: true, fields: [ { name: 'all', @@ -19731,7 +19730,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SetToDefault', - wrapped: true, + isNode: true, fields: [ { name: 'collation', @@ -19772,7 +19771,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SortBy', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -19813,7 +19812,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SortGroupClause', - wrapped: true, + isNode: true, fields: [ { name: 'eqop', @@ -19854,7 +19853,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SQLValueFunction', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -19895,7 +19894,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'StatsElem', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -19915,7 +19914,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'String', - wrapped: true, + isNode: true, fields: [ { name: 'sval', @@ -19928,7 +19927,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SubLink', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -19983,7 +19982,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SubPlan', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -20108,7 +20107,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SubscriptingRef', - wrapped: true, + isNode: true, fields: [ { name: 'refassgnexpr', @@ -20184,7 +20183,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TableFunc', - wrapped: true, + isNode: true, fields: [ { name: 'colcollations', @@ -20281,7 +20280,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TableLikeClause', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -20308,7 +20307,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TableSampleClause', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -20335,7 +20334,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TargetEntry', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -20397,7 +20396,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TransactionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'chain', @@ -20438,7 +20437,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TriggerTransition', - wrapped: true, + isNode: true, fields: [ { name: 'isNew', @@ -20465,7 +20464,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TruncateStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -20492,7 +20491,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TypeCast', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -20519,7 +20518,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TypeName', - wrapped: true, + isNode: true, fields: [ { name: 'arrayBounds', @@ -20581,7 +20580,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'UnlistenStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conditionname', @@ -20594,7 +20593,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'UpdateStmt', - wrapped: true, + isNode: true, fields: [ { name: 'fromClause', @@ -20642,7 +20641,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'VacuumRelation', - wrapped: true, + isNode: true, fields: [ { name: 'oid', @@ -20669,7 +20668,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'VacuumStmt', - wrapped: true, + isNode: true, fields: [ { name: 'is_vacuumcmd', @@ -20696,7 +20695,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Var', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -20765,7 +20764,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'VariableSetStmt', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -20799,7 +20798,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'VariableShowStmt', - wrapped: true, + isNode: true, fields: [ { name: 'name', @@ -20812,7 +20811,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ViewStmt', - wrapped: true, + isNode: true, fields: [ { name: 'aliases', @@ -20860,7 +20859,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'WindowClause', - wrapped: true, + isNode: true, fields: [ { name: 'copiedOrder', @@ -20971,7 +20970,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'WindowDef', - wrapped: true, + isNode: true, fields: [ { name: 'endOffset', @@ -21033,7 +21032,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'WindowFunc', - wrapped: true, + isNode: true, fields: [ { name: 'aggfilter', @@ -21116,7 +21115,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'WithCheckOption', - wrapped: true, + isNode: true, fields: [ { name: 'cascaded', @@ -21157,7 +21156,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'WithClause', - wrapped: true, + isNode: true, fields: [ { name: 'ctes', @@ -21184,7 +21183,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'XmlExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg_names', @@ -21267,7 +21266,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'XmlSerialize', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -21321,7 +21320,517 @@ exports[`runtime-schema disabled runtime schema 1`] = ` * and run the pg-proto-parser generate command to regenerate this file. */ import { OverridingKind, QuerySource, SortByDir, SortByNulls, SetQuantifier, A_Expr_Kind, RoleSpecType, TableLikeOption, DefElemAction, PartitionStrategy, PartitionRangeDatumKind, RTEKind, WCOKind, GroupingSetKind, CTEMaterialize, SetOperation, ObjectType, DropBehavior, AlterTableType, GrantTargetType, VariableSetKind, ConstrType, ImportForeignSchemaType, RoleStmtType, FetchDirection, FunctionParameterMode, TransactionStmtKind, ViewCheckOption, DiscardMode, ReindexObjectType, AlterTSConfigType, PublicationObjSpecType, AlterPublicationAction, AlterSubscriptionType, OnCommitAction, ParamKind, CoercionContext, CoercionForm, BoolExprType, SubLinkType, RowCompareType, MinMaxOp, SQLValueFunctionOp, XmlExprOp, XmlOptionType, JsonEncoding, JsonFormatType, JsonConstructorType, JsonValueType, NullTestType, BoolTestType, CmdType, JoinType, AggStrategy, AggSplit, SetOpCmd, SetOpStrategy, OnConflictAction, LimitOption, LockClauseStrength, LockWaitPolicy, LockTupleMode, KeywordKind, Token } from "./enums"; -export type Node = ParseResult | ScanResult | Integer | Float | Boolean | String | BitString | List | OidList | IntList | A_Const | Alias | RangeVar | TableFunc | IntoClause | Var | Param | Aggref | GroupingFunc | WindowFunc | SubscriptingRef | FuncExpr | NamedArgExpr | OpExpr | DistinctExpr | NullIfExpr | ScalarArrayOpExpr | BoolExpr | SubLink | SubPlan | AlternativeSubPlan | FieldSelect | FieldStore | RelabelType | CoerceViaIO | ArrayCoerceExpr | ConvertRowtypeExpr | CollateExpr | CaseExpr | CaseWhen | CaseTestExpr | ArrayExpr | RowExpr | RowCompareExpr | CoalesceExpr | MinMaxExpr | SQLValueFunction | XmlExpr | JsonFormat | JsonReturning | JsonValueExpr | JsonConstructorExpr | JsonIsPredicate | NullTest | BooleanTest | CoerceToDomain | CoerceToDomainValue | SetToDefault | CurrentOfExpr | NextValueExpr | InferenceElem | TargetEntry | RangeTblRef | JoinExpr | FromExpr | OnConflictExpr | Query | TypeName | ColumnRef | ParamRef | A_Expr | TypeCast | CollateClause | RoleSpec | FuncCall | A_Star | A_Indices | A_Indirection | A_ArrayExpr | ResTarget | MultiAssignRef | SortBy | WindowDef | RangeSubselect | RangeFunction | RangeTableFunc | RangeTableFuncCol | RangeTableSample | ColumnDef | TableLikeClause | IndexElem | DefElem | LockingClause | XmlSerialize | PartitionElem | PartitionSpec | PartitionBoundSpec | PartitionRangeDatum | PartitionCmd | RangeTblEntry | RTEPermissionInfo | RangeTblFunction | TableSampleClause | WithCheckOption | SortGroupClause | GroupingSet | WindowClause | RowMarkClause | WithClause | InferClause | OnConflictClause | CTESearchClause | CTECycleClause | CommonTableExpr | MergeWhenClause | MergeAction | TriggerTransition | JsonOutput | JsonKeyValue | JsonObjectConstructor | JsonArrayConstructor | JsonArrayQueryConstructor | JsonAggConstructor | JsonObjectAgg | JsonArrayAgg | RawStmt | InsertStmt | DeleteStmt | UpdateStmt | MergeStmt | SelectStmt | SetOperationStmt | ReturnStmt | PLAssignStmt | CreateSchemaStmt | AlterTableStmt | ReplicaIdentityStmt | AlterTableCmd | AlterCollationStmt | AlterDomainStmt | GrantStmt | ObjectWithArgs | AccessPriv | GrantRoleStmt | AlterDefaultPrivilegesStmt | CopyStmt | VariableSetStmt | VariableShowStmt | CreateStmt | Constraint | CreateTableSpaceStmt | DropTableSpaceStmt | AlterTableSpaceOptionsStmt | AlterTableMoveAllStmt | CreateExtensionStmt | AlterExtensionStmt | AlterExtensionContentsStmt | CreateFdwStmt | AlterFdwStmt | CreateForeignServerStmt | AlterForeignServerStmt | CreateForeignTableStmt | CreateUserMappingStmt | AlterUserMappingStmt | DropUserMappingStmt | ImportForeignSchemaStmt | CreatePolicyStmt | AlterPolicyStmt | CreateAmStmt | CreateTrigStmt | CreateEventTrigStmt | AlterEventTrigStmt | CreatePLangStmt | CreateRoleStmt | AlterRoleStmt | AlterRoleSetStmt | DropRoleStmt | CreateSeqStmt | AlterSeqStmt | DefineStmt | CreateDomainStmt | CreateOpClassStmt | CreateOpClassItem | CreateOpFamilyStmt | AlterOpFamilyStmt | DropStmt | TruncateStmt | CommentStmt | SecLabelStmt | DeclareCursorStmt | ClosePortalStmt | FetchStmt | IndexStmt | CreateStatsStmt | StatsElem | AlterStatsStmt | CreateFunctionStmt | FunctionParameter | AlterFunctionStmt | DoStmt | InlineCodeBlock | CallStmt | CallContext | RenameStmt | AlterObjectDependsStmt | AlterObjectSchemaStmt | AlterOwnerStmt | AlterOperatorStmt | AlterTypeStmt | RuleStmt | NotifyStmt | ListenStmt | UnlistenStmt | TransactionStmt | CompositeTypeStmt | CreateEnumStmt | CreateRangeStmt | AlterEnumStmt | ViewStmt | LoadStmt | CreatedbStmt | AlterDatabaseStmt | AlterDatabaseRefreshCollStmt | AlterDatabaseSetStmt | DropdbStmt | AlterSystemStmt | ClusterStmt | VacuumStmt | VacuumRelation | ExplainStmt | CreateTableAsStmt | RefreshMatViewStmt | CheckPointStmt | DiscardStmt | LockStmt | ConstraintsSetStmt | ReindexStmt | CreateConversionStmt | CreateCastStmt | CreateTransformStmt | PrepareStmt | ExecuteStmt | DeallocateStmt | DropOwnedStmt | ReassignOwnedStmt | AlterTSDictionaryStmt | AlterTSConfigurationStmt | PublicationTable | PublicationObjSpec | CreatePublicationStmt | AlterPublicationStmt | CreateSubscriptionStmt | AlterSubscriptionStmt | DropSubscriptionStmt | ScanToken; +export type Node = { + ParseResult: ParseResult; +} | { + ScanResult: ScanResult; +} | { + Integer: Integer; +} | { + Float: Float; +} | { + Boolean: Boolean; +} | { + String: String; +} | { + BitString: BitString; +} | { + List: List; +} | { + OidList: OidList; +} | { + IntList: IntList; +} | { + A_Const: A_Const; +} | { + Alias: Alias; +} | { + RangeVar: RangeVar; +} | { + TableFunc: TableFunc; +} | { + IntoClause: IntoClause; +} | { + Var: Var; +} | { + Param: Param; +} | { + Aggref: Aggref; +} | { + GroupingFunc: GroupingFunc; +} | { + WindowFunc: WindowFunc; +} | { + SubscriptingRef: SubscriptingRef; +} | { + FuncExpr: FuncExpr; +} | { + NamedArgExpr: NamedArgExpr; +} | { + OpExpr: OpExpr; +} | { + DistinctExpr: DistinctExpr; +} | { + NullIfExpr: NullIfExpr; +} | { + ScalarArrayOpExpr: ScalarArrayOpExpr; +} | { + BoolExpr: BoolExpr; +} | { + SubLink: SubLink; +} | { + SubPlan: SubPlan; +} | { + AlternativeSubPlan: AlternativeSubPlan; +} | { + FieldSelect: FieldSelect; +} | { + FieldStore: FieldStore; +} | { + RelabelType: RelabelType; +} | { + CoerceViaIO: CoerceViaIO; +} | { + ArrayCoerceExpr: ArrayCoerceExpr; +} | { + ConvertRowtypeExpr: ConvertRowtypeExpr; +} | { + CollateExpr: CollateExpr; +} | { + CaseExpr: CaseExpr; +} | { + CaseWhen: CaseWhen; +} | { + CaseTestExpr: CaseTestExpr; +} | { + ArrayExpr: ArrayExpr; +} | { + RowExpr: RowExpr; +} | { + RowCompareExpr: RowCompareExpr; +} | { + CoalesceExpr: CoalesceExpr; +} | { + MinMaxExpr: MinMaxExpr; +} | { + SQLValueFunction: SQLValueFunction; +} | { + XmlExpr: XmlExpr; +} | { + JsonFormat: JsonFormat; +} | { + JsonReturning: JsonReturning; +} | { + JsonValueExpr: JsonValueExpr; +} | { + JsonConstructorExpr: JsonConstructorExpr; +} | { + JsonIsPredicate: JsonIsPredicate; +} | { + NullTest: NullTest; +} | { + BooleanTest: BooleanTest; +} | { + CoerceToDomain: CoerceToDomain; +} | { + CoerceToDomainValue: CoerceToDomainValue; +} | { + SetToDefault: SetToDefault; +} | { + CurrentOfExpr: CurrentOfExpr; +} | { + NextValueExpr: NextValueExpr; +} | { + InferenceElem: InferenceElem; +} | { + TargetEntry: TargetEntry; +} | { + RangeTblRef: RangeTblRef; +} | { + JoinExpr: JoinExpr; +} | { + FromExpr: FromExpr; +} | { + OnConflictExpr: OnConflictExpr; +} | { + Query: Query; +} | { + TypeName: TypeName; +} | { + ColumnRef: ColumnRef; +} | { + ParamRef: ParamRef; +} | { + A_Expr: A_Expr; +} | { + TypeCast: TypeCast; +} | { + CollateClause: CollateClause; +} | { + RoleSpec: RoleSpec; +} | { + FuncCall: FuncCall; +} | { + A_Star: A_Star; +} | { + A_Indices: A_Indices; +} | { + A_Indirection: A_Indirection; +} | { + A_ArrayExpr: A_ArrayExpr; +} | { + ResTarget: ResTarget; +} | { + MultiAssignRef: MultiAssignRef; +} | { + SortBy: SortBy; +} | { + WindowDef: WindowDef; +} | { + RangeSubselect: RangeSubselect; +} | { + RangeFunction: RangeFunction; +} | { + RangeTableFunc: RangeTableFunc; +} | { + RangeTableFuncCol: RangeTableFuncCol; +} | { + RangeTableSample: RangeTableSample; +} | { + ColumnDef: ColumnDef; +} | { + TableLikeClause: TableLikeClause; +} | { + IndexElem: IndexElem; +} | { + DefElem: DefElem; +} | { + LockingClause: LockingClause; +} | { + XmlSerialize: XmlSerialize; +} | { + PartitionElem: PartitionElem; +} | { + PartitionSpec: PartitionSpec; +} | { + PartitionBoundSpec: PartitionBoundSpec; +} | { + PartitionRangeDatum: PartitionRangeDatum; +} | { + PartitionCmd: PartitionCmd; +} | { + RangeTblEntry: RangeTblEntry; +} | { + RTEPermissionInfo: RTEPermissionInfo; +} | { + RangeTblFunction: RangeTblFunction; +} | { + TableSampleClause: TableSampleClause; +} | { + WithCheckOption: WithCheckOption; +} | { + SortGroupClause: SortGroupClause; +} | { + GroupingSet: GroupingSet; +} | { + WindowClause: WindowClause; +} | { + RowMarkClause: RowMarkClause; +} | { + WithClause: WithClause; +} | { + InferClause: InferClause; +} | { + OnConflictClause: OnConflictClause; +} | { + CTESearchClause: CTESearchClause; +} | { + CTECycleClause: CTECycleClause; +} | { + CommonTableExpr: CommonTableExpr; +} | { + MergeWhenClause: MergeWhenClause; +} | { + MergeAction: MergeAction; +} | { + TriggerTransition: TriggerTransition; +} | { + JsonOutput: JsonOutput; +} | { + JsonKeyValue: JsonKeyValue; +} | { + JsonObjectConstructor: JsonObjectConstructor; +} | { + JsonArrayConstructor: JsonArrayConstructor; +} | { + JsonArrayQueryConstructor: JsonArrayQueryConstructor; +} | { + JsonAggConstructor: JsonAggConstructor; +} | { + JsonObjectAgg: JsonObjectAgg; +} | { + JsonArrayAgg: JsonArrayAgg; +} | { + RawStmt: RawStmt; +} | { + InsertStmt: InsertStmt; +} | { + DeleteStmt: DeleteStmt; +} | { + UpdateStmt: UpdateStmt; +} | { + MergeStmt: MergeStmt; +} | { + SelectStmt: SelectStmt; +} | { + SetOperationStmt: SetOperationStmt; +} | { + ReturnStmt: ReturnStmt; +} | { + PLAssignStmt: PLAssignStmt; +} | { + CreateSchemaStmt: CreateSchemaStmt; +} | { + AlterTableStmt: AlterTableStmt; +} | { + ReplicaIdentityStmt: ReplicaIdentityStmt; +} | { + AlterTableCmd: AlterTableCmd; +} | { + AlterCollationStmt: AlterCollationStmt; +} | { + AlterDomainStmt: AlterDomainStmt; +} | { + GrantStmt: GrantStmt; +} | { + ObjectWithArgs: ObjectWithArgs; +} | { + AccessPriv: AccessPriv; +} | { + GrantRoleStmt: GrantRoleStmt; +} | { + AlterDefaultPrivilegesStmt: AlterDefaultPrivilegesStmt; +} | { + CopyStmt: CopyStmt; +} | { + VariableSetStmt: VariableSetStmt; +} | { + VariableShowStmt: VariableShowStmt; +} | { + CreateStmt: CreateStmt; +} | { + Constraint: Constraint; +} | { + CreateTableSpaceStmt: CreateTableSpaceStmt; +} | { + DropTableSpaceStmt: DropTableSpaceStmt; +} | { + AlterTableSpaceOptionsStmt: AlterTableSpaceOptionsStmt; +} | { + AlterTableMoveAllStmt: AlterTableMoveAllStmt; +} | { + CreateExtensionStmt: CreateExtensionStmt; +} | { + AlterExtensionStmt: AlterExtensionStmt; +} | { + AlterExtensionContentsStmt: AlterExtensionContentsStmt; +} | { + CreateFdwStmt: CreateFdwStmt; +} | { + AlterFdwStmt: AlterFdwStmt; +} | { + CreateForeignServerStmt: CreateForeignServerStmt; +} | { + AlterForeignServerStmt: AlterForeignServerStmt; +} | { + CreateForeignTableStmt: CreateForeignTableStmt; +} | { + CreateUserMappingStmt: CreateUserMappingStmt; +} | { + AlterUserMappingStmt: AlterUserMappingStmt; +} | { + DropUserMappingStmt: DropUserMappingStmt; +} | { + ImportForeignSchemaStmt: ImportForeignSchemaStmt; +} | { + CreatePolicyStmt: CreatePolicyStmt; +} | { + AlterPolicyStmt: AlterPolicyStmt; +} | { + CreateAmStmt: CreateAmStmt; +} | { + CreateTrigStmt: CreateTrigStmt; +} | { + CreateEventTrigStmt: CreateEventTrigStmt; +} | { + AlterEventTrigStmt: AlterEventTrigStmt; +} | { + CreatePLangStmt: CreatePLangStmt; +} | { + CreateRoleStmt: CreateRoleStmt; +} | { + AlterRoleStmt: AlterRoleStmt; +} | { + AlterRoleSetStmt: AlterRoleSetStmt; +} | { + DropRoleStmt: DropRoleStmt; +} | { + CreateSeqStmt: CreateSeqStmt; +} | { + AlterSeqStmt: AlterSeqStmt; +} | { + DefineStmt: DefineStmt; +} | { + CreateDomainStmt: CreateDomainStmt; +} | { + CreateOpClassStmt: CreateOpClassStmt; +} | { + CreateOpClassItem: CreateOpClassItem; +} | { + CreateOpFamilyStmt: CreateOpFamilyStmt; +} | { + AlterOpFamilyStmt: AlterOpFamilyStmt; +} | { + DropStmt: DropStmt; +} | { + TruncateStmt: TruncateStmt; +} | { + CommentStmt: CommentStmt; +} | { + SecLabelStmt: SecLabelStmt; +} | { + DeclareCursorStmt: DeclareCursorStmt; +} | { + ClosePortalStmt: ClosePortalStmt; +} | { + FetchStmt: FetchStmt; +} | { + IndexStmt: IndexStmt; +} | { + CreateStatsStmt: CreateStatsStmt; +} | { + StatsElem: StatsElem; +} | { + AlterStatsStmt: AlterStatsStmt; +} | { + CreateFunctionStmt: CreateFunctionStmt; +} | { + FunctionParameter: FunctionParameter; +} | { + AlterFunctionStmt: AlterFunctionStmt; +} | { + DoStmt: DoStmt; +} | { + InlineCodeBlock: InlineCodeBlock; +} | { + CallStmt: CallStmt; +} | { + CallContext: CallContext; +} | { + RenameStmt: RenameStmt; +} | { + AlterObjectDependsStmt: AlterObjectDependsStmt; +} | { + AlterObjectSchemaStmt: AlterObjectSchemaStmt; +} | { + AlterOwnerStmt: AlterOwnerStmt; +} | { + AlterOperatorStmt: AlterOperatorStmt; +} | { + AlterTypeStmt: AlterTypeStmt; +} | { + RuleStmt: RuleStmt; +} | { + NotifyStmt: NotifyStmt; +} | { + ListenStmt: ListenStmt; +} | { + UnlistenStmt: UnlistenStmt; +} | { + TransactionStmt: TransactionStmt; +} | { + CompositeTypeStmt: CompositeTypeStmt; +} | { + CreateEnumStmt: CreateEnumStmt; +} | { + CreateRangeStmt: CreateRangeStmt; +} | { + AlterEnumStmt: AlterEnumStmt; +} | { + ViewStmt: ViewStmt; +} | { + LoadStmt: LoadStmt; +} | { + CreatedbStmt: CreatedbStmt; +} | { + AlterDatabaseStmt: AlterDatabaseStmt; +} | { + AlterDatabaseRefreshCollStmt: AlterDatabaseRefreshCollStmt; +} | { + AlterDatabaseSetStmt: AlterDatabaseSetStmt; +} | { + DropdbStmt: DropdbStmt; +} | { + AlterSystemStmt: AlterSystemStmt; +} | { + ClusterStmt: ClusterStmt; +} | { + VacuumStmt: VacuumStmt; +} | { + VacuumRelation: VacuumRelation; +} | { + ExplainStmt: ExplainStmt; +} | { + CreateTableAsStmt: CreateTableAsStmt; +} | { + RefreshMatViewStmt: RefreshMatViewStmt; +} | { + CheckPointStmt: CheckPointStmt; +} | { + DiscardStmt: DiscardStmt; +} | { + LockStmt: LockStmt; +} | { + ConstraintsSetStmt: ConstraintsSetStmt; +} | { + ReindexStmt: ReindexStmt; +} | { + CreateConversionStmt: CreateConversionStmt; +} | { + CreateCastStmt: CreateCastStmt; +} | { + CreateTransformStmt: CreateTransformStmt; +} | { + PrepareStmt: PrepareStmt; +} | { + ExecuteStmt: ExecuteStmt; +} | { + DeallocateStmt: DeallocateStmt; +} | { + DropOwnedStmt: DropOwnedStmt; +} | { + ReassignOwnedStmt: ReassignOwnedStmt; +} | { + AlterTSDictionaryStmt: AlterTSDictionaryStmt; +} | { + AlterTSConfigurationStmt: AlterTSConfigurationStmt; +} | { + PublicationTable: PublicationTable; +} | { + PublicationObjSpec: PublicationObjSpec; +} | { + CreatePublicationStmt: CreatePublicationStmt; +} | { + AlterPublicationStmt: AlterPublicationStmt; +} | { + CreateSubscriptionStmt: CreateSubscriptionStmt; +} | { + AlterSubscriptionStmt: AlterSubscriptionStmt; +} | { + DropSubscriptionStmt: DropSubscriptionStmt; +} | { + ScanToken: ScanToken; +}; export interface ParseResult { version?: number; stmts?: RawStmt[]; @@ -23142,7 +23651,7 @@ exports[`runtime-schema json format enabled 1`] = ` "code": "[ { "name": "A_ArrayExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "elements", @@ -23162,7 +23671,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "A_Const", - "wrapped": true, + "isNode": true, "fields": [ { "name": "boolval", @@ -23217,7 +23726,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "A_Expr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "kind", @@ -23258,7 +23767,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "A_Indices", - "wrapped": true, + "isNode": true, "fields": [ { "name": "is_slice", @@ -23285,7 +23794,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "A_Indirection", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -23305,12 +23814,12 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "A_Star", - "wrapped": true, + "isNode": true, "fields": [] }, { "name": "AccessPriv", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cols", @@ -23330,7 +23839,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "Aggref", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aggargtypes", @@ -23469,7 +23978,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "Alias", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aliasname", @@ -23489,7 +23998,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterCollationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collname", @@ -23502,7 +24011,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterDatabaseRefreshCollStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -23515,7 +24024,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterDatabaseSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -23535,7 +24044,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterDatabaseStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -23555,7 +24064,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterDefaultPrivilegesStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -23575,7 +24084,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterDomainStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -23623,7 +24132,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterEnumStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "newVal", @@ -23671,7 +24180,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterEventTrigStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "tgenabled", @@ -23691,7 +24200,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterExtensionContentsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -23725,7 +24234,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterExtensionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "extname", @@ -23745,7 +24254,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterFdwStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fdwname", @@ -23772,7 +24281,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterForeignServerStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "has_version", @@ -23806,7 +24315,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterFunctionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "actions", @@ -23833,7 +24342,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlternativeSubPlan", - "wrapped": true, + "isNode": true, "fields": [ { "name": "subplans", @@ -23853,7 +24362,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterObjectDependsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "extname", @@ -23894,7 +24403,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterObjectSchemaStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -23935,7 +24444,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterOperatorStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "opername", @@ -23955,7 +24464,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterOpFamilyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -23989,7 +24498,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterOwnerStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "newowner", @@ -24023,7 +24532,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterPolicyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "policy_name", @@ -24064,7 +24573,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterPublicationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -24105,7 +24614,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterRoleSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "database", @@ -24132,7 +24641,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -24159,7 +24668,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterSeqStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "for_identity", @@ -24193,7 +24702,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterStatsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "defnames", @@ -24220,7 +24729,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterSubscriptionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conninfo", @@ -24261,7 +24770,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterSystemStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "setstmt", @@ -24274,7 +24783,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterTableCmd", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -24336,7 +24845,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterTableMoveAllStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "new_tablespacename", @@ -24377,7 +24886,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterTableSpaceOptionsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "isReset", @@ -24404,7 +24913,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterTableStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cmds", @@ -24438,7 +24947,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterTSConfigurationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cfgname", @@ -24493,7 +25002,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterTSDictionaryStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dictname", @@ -24513,7 +25022,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterTypeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -24533,7 +25042,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "AlterUserMappingStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -24560,7 +25069,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "ArrayCoerceExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -24622,7 +25131,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "ArrayExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "array_collid", @@ -24677,7 +25186,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "BitString", - "wrapped": true, + "isNode": true, "fields": [ { "name": "bsval", @@ -24690,7 +25199,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "Boolean", - "wrapped": true, + "isNode": true, "fields": [ { "name": "boolval", @@ -24703,7 +25212,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "BooleanTest", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -24737,7 +25246,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "BoolExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -24771,7 +25280,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CallContext", - "wrapped": true, + "isNode": true, "fields": [ { "name": "atomic", @@ -24784,7 +25293,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CallStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "funccall", @@ -24811,7 +25320,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CaseExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -24866,7 +25375,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CaseTestExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -24900,7 +25409,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CaseWhen", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -24934,12 +25443,12 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CheckPointStmt", - "wrapped": true, + "isNode": true, "fields": [] }, { "name": "ClosePortalStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "portalname", @@ -24952,7 +25461,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "ClusterStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "indexname", @@ -24979,7 +25488,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CoalesceExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -25020,7 +25529,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CoerceToDomain", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -25075,7 +25584,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CoerceToDomainValue", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -25116,7 +25625,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CoerceViaIO", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -25164,7 +25673,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CollateClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -25191,7 +25700,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CollateExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -25225,7 +25734,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "ColumnDef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collClause", @@ -25364,7 +25873,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "ColumnRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fields", @@ -25384,7 +25893,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CommentStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "comment", @@ -25411,7 +25920,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CommonTableExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aliascolnames", @@ -25508,7 +26017,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CompositeTypeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "coldeflist", @@ -25528,7 +26037,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "Constraint", - "wrapped": true, + "isNode": true, "fields": [ { "name": "access_method", @@ -25744,7 +26253,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "ConstraintsSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "constraints", @@ -25764,7 +26273,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "ConvertRowtypeExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -25805,7 +26314,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CopyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "attlist", @@ -25867,7 +26376,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CreateAmStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -25894,7 +26403,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CreateCastStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "context", @@ -25935,7 +26444,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CreateConversionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conversion_name", @@ -25976,7 +26485,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CreatedbStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -25996,7 +26505,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CreateDomainStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collClause", @@ -26030,7 +26539,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CreateEnumStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "typeName", @@ -26050,7 +26559,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CreateEventTrigStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "eventname", @@ -26084,7 +26593,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CreateExtensionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "extname", @@ -26111,7 +26620,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CreateFdwStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fdwname", @@ -26138,7 +26647,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CreateForeignServerStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fdwname", @@ -26186,7 +26695,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CreateForeignTableStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "base", @@ -26213,7 +26722,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CreateFunctionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "funcname", @@ -26268,7 +26777,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CreateOpClassItem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "class_args", @@ -26316,7 +26825,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CreateOpClassStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -26364,7 +26873,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CreateOpFamilyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -26384,7 +26893,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CreatePLangStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "plhandler", @@ -26432,7 +26941,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CreatePolicyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cmd_name", @@ -26487,7 +26996,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CreatePublicationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "for_all_tables", @@ -26521,7 +27030,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CreateRangeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "params", @@ -26541,7 +27050,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CreateRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -26568,7 +27077,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CreateSchemaStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "authrole", @@ -26602,7 +27111,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CreateSeqStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "for_identity", @@ -26643,7 +27152,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CreateStatsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "defnames", @@ -26698,7 +27207,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CreateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "accessMethod", @@ -26788,7 +27297,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CreateSubscriptionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conninfo", @@ -26822,7 +27331,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CreateTableAsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "if_not_exists", @@ -26863,7 +27372,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CreateTableSpaceStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -26897,7 +27406,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CreateTransformStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fromsql", @@ -26938,7 +27447,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CreateTrigStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -27049,7 +27558,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CreateUserMappingStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "if_not_exists", @@ -27083,7 +27592,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CTECycleClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cycle_col_list", @@ -27159,7 +27668,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CTESearchClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -27193,7 +27702,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "CurrentOfExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cursor_name", @@ -27227,7 +27736,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "DeallocateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "name", @@ -27240,7 +27749,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "DeclareCursorStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -27267,7 +27776,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "DefElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -27308,7 +27817,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "DefineStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -27363,7 +27872,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "DeleteStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "relation", @@ -27404,7 +27913,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "DiscardStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "target", @@ -27417,7 +27926,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "DistinctExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -27479,7 +27988,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "DoStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -27492,7 +28001,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "DropdbStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -27519,7 +28028,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "DropOwnedStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -27539,7 +28048,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "DropRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -27559,7 +28068,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "DropStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -27600,7 +28109,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "DropSubscriptionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -27627,7 +28136,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "DropTableSpaceStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -27647,7 +28156,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "DropUserMappingStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -27674,7 +28183,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "ExecuteStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "name", @@ -27694,7 +28203,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "ExplainStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -27714,7 +28223,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "FetchStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "direction", @@ -27748,7 +28257,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "FieldSelect", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -27796,7 +28305,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "FieldStore", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -27837,7 +28346,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "Float", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fval", @@ -27850,7 +28359,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "FromExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fromlist", @@ -27870,7 +28379,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "FuncCall", - "wrapped": true, + "isNode": true, "fields": [ { "name": "agg_distinct", @@ -27953,7 +28462,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "FuncExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -28029,7 +28538,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "FunctionParameter", - "wrapped": true, + "isNode": true, "fields": [ { "name": "argType", @@ -28063,7 +28572,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "GrantRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -28111,7 +28620,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "GrantStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -28180,7 +28689,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "GroupingFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "agglevelsup", @@ -28221,7 +28730,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "GroupingSet", - "wrapped": true, + "isNode": true, "fields": [ { "name": "content", @@ -28248,7 +28757,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "ImportForeignSchemaStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "list_type", @@ -28296,7 +28805,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "IndexElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -28358,7 +28867,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "IndexStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "accessMethod", @@ -28532,7 +29041,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "InferClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conname", @@ -28566,7 +29075,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "InferenceElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -28600,7 +29109,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "InlineCodeBlock", - "wrapped": true, + "isNode": true, "fields": [ { "name": "atomic", @@ -28634,7 +29143,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "InsertStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cols", @@ -28689,7 +29198,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "Integer", - "wrapped": true, + "isNode": true, "fields": [ { "name": "ival", @@ -28702,7 +29211,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "IntList", - "wrapped": true, + "isNode": true, "fields": [ { "name": "items", @@ -28715,7 +29224,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "IntoClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "accessMethod", @@ -28777,7 +29286,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "JoinExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -28846,7 +29355,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "JsonAggConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "agg_filter", @@ -28887,7 +29396,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "JsonArrayAgg", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -28914,7 +29423,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "JsonArrayConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -28948,7 +29457,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "JsonArrayQueryConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -28989,7 +29498,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "JsonConstructorExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -29058,7 +29567,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "JsonFormat", - "wrapped": true, + "isNode": true, "fields": [ { "name": "encoding", @@ -29085,7 +29594,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "JsonIsPredicate", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -29126,7 +29635,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "JsonKeyValue", - "wrapped": true, + "isNode": true, "fields": [ { "name": "key", @@ -29146,7 +29655,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "JsonObjectAgg", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -29180,7 +29689,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "JsonObjectConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -29221,7 +29730,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "JsonOutput", - "wrapped": true, + "isNode": true, "fields": [ { "name": "returning", @@ -29241,7 +29750,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "JsonReturning", - "wrapped": true, + "isNode": true, "fields": [ { "name": "format", @@ -29268,7 +29777,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "JsonValueExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "format", @@ -29295,7 +29804,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "List", - "wrapped": true, + "isNode": true, "fields": [ { "name": "items", @@ -29308,7 +29817,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "ListenStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conditionname", @@ -29321,7 +29830,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "LoadStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "filename", @@ -29334,7 +29843,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "LockingClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "lockedRels", @@ -29361,7 +29870,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "LockStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "mode", @@ -29388,7 +29897,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "MergeAction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "commandType", @@ -29436,7 +29945,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "MergeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "joinCondition", @@ -29477,7 +29986,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "MergeWhenClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "commandType", @@ -29525,7 +30034,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "MinMaxExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -29580,7 +30089,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "MultiAssignRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "colno", @@ -29607,7 +30116,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "NamedArgExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -29648,7 +30157,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "NextValueExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "seqid", @@ -29675,7 +30184,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "NotifyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conditionname", @@ -29695,7 +30204,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "NullIfExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -29757,7 +30266,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "NullTest", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -29798,7 +30307,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "ObjectWithArgs", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args_unspecified", @@ -29832,7 +30341,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "OidList", - "wrapped": true, + "isNode": true, "fields": [ { "name": "items", @@ -29845,7 +30354,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "OnConflictClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -29886,7 +30395,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "OnConflictExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -29948,7 +30457,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "OpExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -30010,7 +30519,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "Param", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -30065,7 +30574,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "ParamRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -30085,7 +30594,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "ParseResult", - "wrapped": false, + "isNode": false, "fields": [ { "name": "stmts", @@ -30105,7 +30614,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "PartitionBoundSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "is_default", @@ -30167,7 +30676,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "PartitionCmd", - "wrapped": true, + "isNode": true, "fields": [ { "name": "bound", @@ -30194,7 +30703,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "PartitionElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -30235,7 +30744,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "PartitionRangeDatum", - "wrapped": true, + "isNode": true, "fields": [ { "name": "kind", @@ -30262,7 +30771,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "PartitionSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -30289,7 +30798,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "PLAssignStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "indirection", @@ -30330,7 +30839,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "PrepareStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "argtypes", @@ -30357,7 +30866,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "PublicationObjSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -30391,7 +30900,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "PublicationTable", - "wrapped": true, + "isNode": true, "fields": [ { "name": "columns", @@ -30418,7 +30927,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "Query", - "wrapped": true, + "isNode": true, "fields": [ { "name": "canSetTag", @@ -30711,7 +31220,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "RangeFunction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -30759,7 +31268,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "RangeSubselect", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -30786,7 +31295,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "RangeTableFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -30841,7 +31350,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "RangeTableFuncCol", - "wrapped": true, + "isNode": true, "fields": [ { "name": "coldefexpr", @@ -30896,7 +31405,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "RangeTableSample", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -30937,7 +31446,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "RangeTblEntry", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -31167,7 +31676,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "RangeTblFunction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "funccolcollations", @@ -31222,7 +31731,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "RangeTblRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "rtindex", @@ -31235,7 +31744,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "RangeVar", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -31290,7 +31799,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "RawStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "stmt", @@ -31317,7 +31826,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "ReassignOwnedStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "newrole", @@ -31337,7 +31846,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "RefreshMatViewStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "concurrent", @@ -31364,7 +31873,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "ReindexStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "kind", @@ -31398,7 +31907,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "RelabelType", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -31453,7 +31962,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "RenameStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -31515,7 +32024,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "ReplicaIdentityStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "identity_type", @@ -31535,7 +32044,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "ResTarget", - "wrapped": true, + "isNode": true, "fields": [ { "name": "indirection", @@ -31569,7 +32078,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "ReturnStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "returnval", @@ -31582,7 +32091,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "RoleSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -31609,7 +32118,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "RowCompareExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "inputcollids", @@ -31664,7 +32173,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "RowExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -31712,7 +32221,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "RowMarkClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "pushedDown", @@ -31746,7 +32255,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "RTEPermissionInfo", - "wrapped": true, + "isNode": true, "fields": [ { "name": "checkAsUser", @@ -31801,7 +32310,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "RuleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "actions", @@ -31856,7 +32365,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "ScalarArrayOpExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -31904,7 +32413,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "ScanResult", - "wrapped": false, + "isNode": false, "fields": [ { "name": "tokens", @@ -31924,7 +32433,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "ScanToken", - "wrapped": false, + "isNode": false, "fields": [ { "name": "end", @@ -31958,7 +32467,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "SecLabelStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "label", @@ -31992,7 +32501,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "SelectStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "all", @@ -32138,7 +32647,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "SetOperationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "all", @@ -32200,7 +32709,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "SetToDefault", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -32241,7 +32750,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "SortBy", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -32282,7 +32791,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "SortGroupClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "eqop", @@ -32323,7 +32832,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "SQLValueFunction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -32364,7 +32873,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "StatsElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -32384,7 +32893,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "String", - "wrapped": true, + "isNode": true, "fields": [ { "name": "sval", @@ -32397,7 +32906,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "SubLink", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -32452,7 +32961,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "SubPlan", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -32577,7 +33086,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "SubscriptingRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "refassgnexpr", @@ -32653,7 +33162,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "TableFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "colcollations", @@ -32750,7 +33259,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "TableLikeClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -32777,7 +33286,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "TableSampleClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -32804,7 +33313,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "TargetEntry", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -32866,7 +33375,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "TransactionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "chain", @@ -32907,7 +33416,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "TriggerTransition", - "wrapped": true, + "isNode": true, "fields": [ { "name": "isNew", @@ -32934,7 +33443,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "TruncateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -32961,7 +33470,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "TypeCast", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -32988,7 +33497,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "TypeName", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arrayBounds", @@ -33050,7 +33559,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "UnlistenStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conditionname", @@ -33063,7 +33572,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "UpdateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fromClause", @@ -33111,7 +33620,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "VacuumRelation", - "wrapped": true, + "isNode": true, "fields": [ { "name": "oid", @@ -33138,7 +33647,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "VacuumStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "is_vacuumcmd", @@ -33165,7 +33674,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "Var", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -33234,7 +33743,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "VariableSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -33268,7 +33777,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "VariableShowStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "name", @@ -33281,7 +33790,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "ViewStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aliases", @@ -33329,7 +33838,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "WindowClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "copiedOrder", @@ -33440,7 +33949,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "WindowDef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "endOffset", @@ -33502,7 +34011,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "WindowFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aggfilter", @@ -33585,7 +34094,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "WithCheckOption", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cascaded", @@ -33626,7 +34135,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "WithClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "ctes", @@ -33653,7 +34162,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "XmlExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg_names", @@ -33736,7 +34245,7 @@ exports[`runtime-schema json format enabled 1`] = ` }, { "name": "XmlSerialize", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -35609,7 +36118,517 @@ export interface ScanToken { * and run the pg-proto-parser generate command to regenerate this file. */ import { OverridingKind, QuerySource, SortByDir, SortByNulls, SetQuantifier, A_Expr_Kind, RoleSpecType, TableLikeOption, DefElemAction, PartitionStrategy, PartitionRangeDatumKind, RTEKind, WCOKind, GroupingSetKind, CTEMaterialize, SetOperation, ObjectType, DropBehavior, AlterTableType, GrantTargetType, VariableSetKind, ConstrType, ImportForeignSchemaType, RoleStmtType, FetchDirection, FunctionParameterMode, TransactionStmtKind, ViewCheckOption, DiscardMode, ReindexObjectType, AlterTSConfigType, PublicationObjSpecType, AlterPublicationAction, AlterSubscriptionType, OnCommitAction, ParamKind, CoercionContext, CoercionForm, BoolExprType, SubLinkType, RowCompareType, MinMaxOp, SQLValueFunctionOp, XmlExprOp, XmlOptionType, JsonEncoding, JsonFormatType, JsonConstructorType, JsonValueType, NullTestType, BoolTestType, CmdType, JoinType, AggStrategy, AggSplit, SetOpCmd, SetOpStrategy, OnConflictAction, LimitOption, LockClauseStrength, LockWaitPolicy, LockTupleMode, KeywordKind, Token } from "./enums"; -export type Node = ParseResult | ScanResult | Integer | Float | Boolean | String | BitString | List | OidList | IntList | A_Const | Alias | RangeVar | TableFunc | IntoClause | Var | Param | Aggref | GroupingFunc | WindowFunc | SubscriptingRef | FuncExpr | NamedArgExpr | OpExpr | DistinctExpr | NullIfExpr | ScalarArrayOpExpr | BoolExpr | SubLink | SubPlan | AlternativeSubPlan | FieldSelect | FieldStore | RelabelType | CoerceViaIO | ArrayCoerceExpr | ConvertRowtypeExpr | CollateExpr | CaseExpr | CaseWhen | CaseTestExpr | ArrayExpr | RowExpr | RowCompareExpr | CoalesceExpr | MinMaxExpr | SQLValueFunction | XmlExpr | JsonFormat | JsonReturning | JsonValueExpr | JsonConstructorExpr | JsonIsPredicate | NullTest | BooleanTest | CoerceToDomain | CoerceToDomainValue | SetToDefault | CurrentOfExpr | NextValueExpr | InferenceElem | TargetEntry | RangeTblRef | JoinExpr | FromExpr | OnConflictExpr | Query | TypeName | ColumnRef | ParamRef | A_Expr | TypeCast | CollateClause | RoleSpec | FuncCall | A_Star | A_Indices | A_Indirection | A_ArrayExpr | ResTarget | MultiAssignRef | SortBy | WindowDef | RangeSubselect | RangeFunction | RangeTableFunc | RangeTableFuncCol | RangeTableSample | ColumnDef | TableLikeClause | IndexElem | DefElem | LockingClause | XmlSerialize | PartitionElem | PartitionSpec | PartitionBoundSpec | PartitionRangeDatum | PartitionCmd | RangeTblEntry | RTEPermissionInfo | RangeTblFunction | TableSampleClause | WithCheckOption | SortGroupClause | GroupingSet | WindowClause | RowMarkClause | WithClause | InferClause | OnConflictClause | CTESearchClause | CTECycleClause | CommonTableExpr | MergeWhenClause | MergeAction | TriggerTransition | JsonOutput | JsonKeyValue | JsonObjectConstructor | JsonArrayConstructor | JsonArrayQueryConstructor | JsonAggConstructor | JsonObjectAgg | JsonArrayAgg | RawStmt | InsertStmt | DeleteStmt | UpdateStmt | MergeStmt | SelectStmt | SetOperationStmt | ReturnStmt | PLAssignStmt | CreateSchemaStmt | AlterTableStmt | ReplicaIdentityStmt | AlterTableCmd | AlterCollationStmt | AlterDomainStmt | GrantStmt | ObjectWithArgs | AccessPriv | GrantRoleStmt | AlterDefaultPrivilegesStmt | CopyStmt | VariableSetStmt | VariableShowStmt | CreateStmt | Constraint | CreateTableSpaceStmt | DropTableSpaceStmt | AlterTableSpaceOptionsStmt | AlterTableMoveAllStmt | CreateExtensionStmt | AlterExtensionStmt | AlterExtensionContentsStmt | CreateFdwStmt | AlterFdwStmt | CreateForeignServerStmt | AlterForeignServerStmt | CreateForeignTableStmt | CreateUserMappingStmt | AlterUserMappingStmt | DropUserMappingStmt | ImportForeignSchemaStmt | CreatePolicyStmt | AlterPolicyStmt | CreateAmStmt | CreateTrigStmt | CreateEventTrigStmt | AlterEventTrigStmt | CreatePLangStmt | CreateRoleStmt | AlterRoleStmt | AlterRoleSetStmt | DropRoleStmt | CreateSeqStmt | AlterSeqStmt | DefineStmt | CreateDomainStmt | CreateOpClassStmt | CreateOpClassItem | CreateOpFamilyStmt | AlterOpFamilyStmt | DropStmt | TruncateStmt | CommentStmt | SecLabelStmt | DeclareCursorStmt | ClosePortalStmt | FetchStmt | IndexStmt | CreateStatsStmt | StatsElem | AlterStatsStmt | CreateFunctionStmt | FunctionParameter | AlterFunctionStmt | DoStmt | InlineCodeBlock | CallStmt | CallContext | RenameStmt | AlterObjectDependsStmt | AlterObjectSchemaStmt | AlterOwnerStmt | AlterOperatorStmt | AlterTypeStmt | RuleStmt | NotifyStmt | ListenStmt | UnlistenStmt | TransactionStmt | CompositeTypeStmt | CreateEnumStmt | CreateRangeStmt | AlterEnumStmt | ViewStmt | LoadStmt | CreatedbStmt | AlterDatabaseStmt | AlterDatabaseRefreshCollStmt | AlterDatabaseSetStmt | DropdbStmt | AlterSystemStmt | ClusterStmt | VacuumStmt | VacuumRelation | ExplainStmt | CreateTableAsStmt | RefreshMatViewStmt | CheckPointStmt | DiscardStmt | LockStmt | ConstraintsSetStmt | ReindexStmt | CreateConversionStmt | CreateCastStmt | CreateTransformStmt | PrepareStmt | ExecuteStmt | DeallocateStmt | DropOwnedStmt | ReassignOwnedStmt | AlterTSDictionaryStmt | AlterTSConfigurationStmt | PublicationTable | PublicationObjSpec | CreatePublicationStmt | AlterPublicationStmt | CreateSubscriptionStmt | AlterSubscriptionStmt | DropSubscriptionStmt | ScanToken; +export type Node = { + ParseResult: ParseResult; +} | { + ScanResult: ScanResult; +} | { + Integer: Integer; +} | { + Float: Float; +} | { + Boolean: Boolean; +} | { + String: String; +} | { + BitString: BitString; +} | { + List: List; +} | { + OidList: OidList; +} | { + IntList: IntList; +} | { + A_Const: A_Const; +} | { + Alias: Alias; +} | { + RangeVar: RangeVar; +} | { + TableFunc: TableFunc; +} | { + IntoClause: IntoClause; +} | { + Var: Var; +} | { + Param: Param; +} | { + Aggref: Aggref; +} | { + GroupingFunc: GroupingFunc; +} | { + WindowFunc: WindowFunc; +} | { + SubscriptingRef: SubscriptingRef; +} | { + FuncExpr: FuncExpr; +} | { + NamedArgExpr: NamedArgExpr; +} | { + OpExpr: OpExpr; +} | { + DistinctExpr: DistinctExpr; +} | { + NullIfExpr: NullIfExpr; +} | { + ScalarArrayOpExpr: ScalarArrayOpExpr; +} | { + BoolExpr: BoolExpr; +} | { + SubLink: SubLink; +} | { + SubPlan: SubPlan; +} | { + AlternativeSubPlan: AlternativeSubPlan; +} | { + FieldSelect: FieldSelect; +} | { + FieldStore: FieldStore; +} | { + RelabelType: RelabelType; +} | { + CoerceViaIO: CoerceViaIO; +} | { + ArrayCoerceExpr: ArrayCoerceExpr; +} | { + ConvertRowtypeExpr: ConvertRowtypeExpr; +} | { + CollateExpr: CollateExpr; +} | { + CaseExpr: CaseExpr; +} | { + CaseWhen: CaseWhen; +} | { + CaseTestExpr: CaseTestExpr; +} | { + ArrayExpr: ArrayExpr; +} | { + RowExpr: RowExpr; +} | { + RowCompareExpr: RowCompareExpr; +} | { + CoalesceExpr: CoalesceExpr; +} | { + MinMaxExpr: MinMaxExpr; +} | { + SQLValueFunction: SQLValueFunction; +} | { + XmlExpr: XmlExpr; +} | { + JsonFormat: JsonFormat; +} | { + JsonReturning: JsonReturning; +} | { + JsonValueExpr: JsonValueExpr; +} | { + JsonConstructorExpr: JsonConstructorExpr; +} | { + JsonIsPredicate: JsonIsPredicate; +} | { + NullTest: NullTest; +} | { + BooleanTest: BooleanTest; +} | { + CoerceToDomain: CoerceToDomain; +} | { + CoerceToDomainValue: CoerceToDomainValue; +} | { + SetToDefault: SetToDefault; +} | { + CurrentOfExpr: CurrentOfExpr; +} | { + NextValueExpr: NextValueExpr; +} | { + InferenceElem: InferenceElem; +} | { + TargetEntry: TargetEntry; +} | { + RangeTblRef: RangeTblRef; +} | { + JoinExpr: JoinExpr; +} | { + FromExpr: FromExpr; +} | { + OnConflictExpr: OnConflictExpr; +} | { + Query: Query; +} | { + TypeName: TypeName; +} | { + ColumnRef: ColumnRef; +} | { + ParamRef: ParamRef; +} | { + A_Expr: A_Expr; +} | { + TypeCast: TypeCast; +} | { + CollateClause: CollateClause; +} | { + RoleSpec: RoleSpec; +} | { + FuncCall: FuncCall; +} | { + A_Star: A_Star; +} | { + A_Indices: A_Indices; +} | { + A_Indirection: A_Indirection; +} | { + A_ArrayExpr: A_ArrayExpr; +} | { + ResTarget: ResTarget; +} | { + MultiAssignRef: MultiAssignRef; +} | { + SortBy: SortBy; +} | { + WindowDef: WindowDef; +} | { + RangeSubselect: RangeSubselect; +} | { + RangeFunction: RangeFunction; +} | { + RangeTableFunc: RangeTableFunc; +} | { + RangeTableFuncCol: RangeTableFuncCol; +} | { + RangeTableSample: RangeTableSample; +} | { + ColumnDef: ColumnDef; +} | { + TableLikeClause: TableLikeClause; +} | { + IndexElem: IndexElem; +} | { + DefElem: DefElem; +} | { + LockingClause: LockingClause; +} | { + XmlSerialize: XmlSerialize; +} | { + PartitionElem: PartitionElem; +} | { + PartitionSpec: PartitionSpec; +} | { + PartitionBoundSpec: PartitionBoundSpec; +} | { + PartitionRangeDatum: PartitionRangeDatum; +} | { + PartitionCmd: PartitionCmd; +} | { + RangeTblEntry: RangeTblEntry; +} | { + RTEPermissionInfo: RTEPermissionInfo; +} | { + RangeTblFunction: RangeTblFunction; +} | { + TableSampleClause: TableSampleClause; +} | { + WithCheckOption: WithCheckOption; +} | { + SortGroupClause: SortGroupClause; +} | { + GroupingSet: GroupingSet; +} | { + WindowClause: WindowClause; +} | { + RowMarkClause: RowMarkClause; +} | { + WithClause: WithClause; +} | { + InferClause: InferClause; +} | { + OnConflictClause: OnConflictClause; +} | { + CTESearchClause: CTESearchClause; +} | { + CTECycleClause: CTECycleClause; +} | { + CommonTableExpr: CommonTableExpr; +} | { + MergeWhenClause: MergeWhenClause; +} | { + MergeAction: MergeAction; +} | { + TriggerTransition: TriggerTransition; +} | { + JsonOutput: JsonOutput; +} | { + JsonKeyValue: JsonKeyValue; +} | { + JsonObjectConstructor: JsonObjectConstructor; +} | { + JsonArrayConstructor: JsonArrayConstructor; +} | { + JsonArrayQueryConstructor: JsonArrayQueryConstructor; +} | { + JsonAggConstructor: JsonAggConstructor; +} | { + JsonObjectAgg: JsonObjectAgg; +} | { + JsonArrayAgg: JsonArrayAgg; +} | { + RawStmt: RawStmt; +} | { + InsertStmt: InsertStmt; +} | { + DeleteStmt: DeleteStmt; +} | { + UpdateStmt: UpdateStmt; +} | { + MergeStmt: MergeStmt; +} | { + SelectStmt: SelectStmt; +} | { + SetOperationStmt: SetOperationStmt; +} | { + ReturnStmt: ReturnStmt; +} | { + PLAssignStmt: PLAssignStmt; +} | { + CreateSchemaStmt: CreateSchemaStmt; +} | { + AlterTableStmt: AlterTableStmt; +} | { + ReplicaIdentityStmt: ReplicaIdentityStmt; +} | { + AlterTableCmd: AlterTableCmd; +} | { + AlterCollationStmt: AlterCollationStmt; +} | { + AlterDomainStmt: AlterDomainStmt; +} | { + GrantStmt: GrantStmt; +} | { + ObjectWithArgs: ObjectWithArgs; +} | { + AccessPriv: AccessPriv; +} | { + GrantRoleStmt: GrantRoleStmt; +} | { + AlterDefaultPrivilegesStmt: AlterDefaultPrivilegesStmt; +} | { + CopyStmt: CopyStmt; +} | { + VariableSetStmt: VariableSetStmt; +} | { + VariableShowStmt: VariableShowStmt; +} | { + CreateStmt: CreateStmt; +} | { + Constraint: Constraint; +} | { + CreateTableSpaceStmt: CreateTableSpaceStmt; +} | { + DropTableSpaceStmt: DropTableSpaceStmt; +} | { + AlterTableSpaceOptionsStmt: AlterTableSpaceOptionsStmt; +} | { + AlterTableMoveAllStmt: AlterTableMoveAllStmt; +} | { + CreateExtensionStmt: CreateExtensionStmt; +} | { + AlterExtensionStmt: AlterExtensionStmt; +} | { + AlterExtensionContentsStmt: AlterExtensionContentsStmt; +} | { + CreateFdwStmt: CreateFdwStmt; +} | { + AlterFdwStmt: AlterFdwStmt; +} | { + CreateForeignServerStmt: CreateForeignServerStmt; +} | { + AlterForeignServerStmt: AlterForeignServerStmt; +} | { + CreateForeignTableStmt: CreateForeignTableStmt; +} | { + CreateUserMappingStmt: CreateUserMappingStmt; +} | { + AlterUserMappingStmt: AlterUserMappingStmt; +} | { + DropUserMappingStmt: DropUserMappingStmt; +} | { + ImportForeignSchemaStmt: ImportForeignSchemaStmt; +} | { + CreatePolicyStmt: CreatePolicyStmt; +} | { + AlterPolicyStmt: AlterPolicyStmt; +} | { + CreateAmStmt: CreateAmStmt; +} | { + CreateTrigStmt: CreateTrigStmt; +} | { + CreateEventTrigStmt: CreateEventTrigStmt; +} | { + AlterEventTrigStmt: AlterEventTrigStmt; +} | { + CreatePLangStmt: CreatePLangStmt; +} | { + CreateRoleStmt: CreateRoleStmt; +} | { + AlterRoleStmt: AlterRoleStmt; +} | { + AlterRoleSetStmt: AlterRoleSetStmt; +} | { + DropRoleStmt: DropRoleStmt; +} | { + CreateSeqStmt: CreateSeqStmt; +} | { + AlterSeqStmt: AlterSeqStmt; +} | { + DefineStmt: DefineStmt; +} | { + CreateDomainStmt: CreateDomainStmt; +} | { + CreateOpClassStmt: CreateOpClassStmt; +} | { + CreateOpClassItem: CreateOpClassItem; +} | { + CreateOpFamilyStmt: CreateOpFamilyStmt; +} | { + AlterOpFamilyStmt: AlterOpFamilyStmt; +} | { + DropStmt: DropStmt; +} | { + TruncateStmt: TruncateStmt; +} | { + CommentStmt: CommentStmt; +} | { + SecLabelStmt: SecLabelStmt; +} | { + DeclareCursorStmt: DeclareCursorStmt; +} | { + ClosePortalStmt: ClosePortalStmt; +} | { + FetchStmt: FetchStmt; +} | { + IndexStmt: IndexStmt; +} | { + CreateStatsStmt: CreateStatsStmt; +} | { + StatsElem: StatsElem; +} | { + AlterStatsStmt: AlterStatsStmt; +} | { + CreateFunctionStmt: CreateFunctionStmt; +} | { + FunctionParameter: FunctionParameter; +} | { + AlterFunctionStmt: AlterFunctionStmt; +} | { + DoStmt: DoStmt; +} | { + InlineCodeBlock: InlineCodeBlock; +} | { + CallStmt: CallStmt; +} | { + CallContext: CallContext; +} | { + RenameStmt: RenameStmt; +} | { + AlterObjectDependsStmt: AlterObjectDependsStmt; +} | { + AlterObjectSchemaStmt: AlterObjectSchemaStmt; +} | { + AlterOwnerStmt: AlterOwnerStmt; +} | { + AlterOperatorStmt: AlterOperatorStmt; +} | { + AlterTypeStmt: AlterTypeStmt; +} | { + RuleStmt: RuleStmt; +} | { + NotifyStmt: NotifyStmt; +} | { + ListenStmt: ListenStmt; +} | { + UnlistenStmt: UnlistenStmt; +} | { + TransactionStmt: TransactionStmt; +} | { + CompositeTypeStmt: CompositeTypeStmt; +} | { + CreateEnumStmt: CreateEnumStmt; +} | { + CreateRangeStmt: CreateRangeStmt; +} | { + AlterEnumStmt: AlterEnumStmt; +} | { + ViewStmt: ViewStmt; +} | { + LoadStmt: LoadStmt; +} | { + CreatedbStmt: CreatedbStmt; +} | { + AlterDatabaseStmt: AlterDatabaseStmt; +} | { + AlterDatabaseRefreshCollStmt: AlterDatabaseRefreshCollStmt; +} | { + AlterDatabaseSetStmt: AlterDatabaseSetStmt; +} | { + DropdbStmt: DropdbStmt; +} | { + AlterSystemStmt: AlterSystemStmt; +} | { + ClusterStmt: ClusterStmt; +} | { + VacuumStmt: VacuumStmt; +} | { + VacuumRelation: VacuumRelation; +} | { + ExplainStmt: ExplainStmt; +} | { + CreateTableAsStmt: CreateTableAsStmt; +} | { + RefreshMatViewStmt: RefreshMatViewStmt; +} | { + CheckPointStmt: CheckPointStmt; +} | { + DiscardStmt: DiscardStmt; +} | { + LockStmt: LockStmt; +} | { + ConstraintsSetStmt: ConstraintsSetStmt; +} | { + ReindexStmt: ReindexStmt; +} | { + CreateConversionStmt: CreateConversionStmt; +} | { + CreateCastStmt: CreateCastStmt; +} | { + CreateTransformStmt: CreateTransformStmt; +} | { + PrepareStmt: PrepareStmt; +} | { + ExecuteStmt: ExecuteStmt; +} | { + DeallocateStmt: DeallocateStmt; +} | { + DropOwnedStmt: DropOwnedStmt; +} | { + ReassignOwnedStmt: ReassignOwnedStmt; +} | { + AlterTSDictionaryStmt: AlterTSDictionaryStmt; +} | { + AlterTSConfigurationStmt: AlterTSConfigurationStmt; +} | { + PublicationTable: PublicationTable; +} | { + PublicationObjSpec: PublicationObjSpec; +} | { + CreatePublicationStmt: CreatePublicationStmt; +} | { + AlterPublicationStmt: AlterPublicationStmt; +} | { + CreateSubscriptionStmt: CreateSubscriptionStmt; +} | { + AlterSubscriptionStmt: AlterSubscriptionStmt; +} | { + DropSubscriptionStmt: DropSubscriptionStmt; +} | { + ScanToken: ScanToken; +}; export interface ParseResult { version?: number; stmts?: RawStmt[]; @@ -37497,7 +38516,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | "code": "[ { "name": "A_ArrayExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "elements", @@ -37517,7 +38536,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "A_Const", - "wrapped": true, + "isNode": true, "fields": [ { "name": "boolval", @@ -37572,7 +38591,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "A_Expr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "kind", @@ -37613,7 +38632,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "A_Indices", - "wrapped": true, + "isNode": true, "fields": [ { "name": "is_slice", @@ -37640,7 +38659,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "A_Indirection", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -37660,12 +38679,12 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "A_Star", - "wrapped": true, + "isNode": true, "fields": [] }, { "name": "AccessPriv", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cols", @@ -37685,7 +38704,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "Aggref", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aggargtypes", @@ -37824,7 +38843,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "Alias", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aliasname", @@ -37844,7 +38863,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterCollationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collname", @@ -37857,7 +38876,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterDatabaseRefreshCollStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -37870,7 +38889,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterDatabaseSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -37890,7 +38909,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterDatabaseStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -37910,7 +38929,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterDefaultPrivilegesStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -37930,7 +38949,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterDomainStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -37978,7 +38997,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterEnumStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "newVal", @@ -38026,7 +39045,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterEventTrigStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "tgenabled", @@ -38046,7 +39065,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterExtensionContentsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -38080,7 +39099,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterExtensionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "extname", @@ -38100,7 +39119,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterFdwStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fdwname", @@ -38127,7 +39146,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterForeignServerStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "has_version", @@ -38161,7 +39180,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterFunctionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "actions", @@ -38188,7 +39207,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlternativeSubPlan", - "wrapped": true, + "isNode": true, "fields": [ { "name": "subplans", @@ -38208,7 +39227,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterObjectDependsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "extname", @@ -38249,7 +39268,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterObjectSchemaStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -38290,7 +39309,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterOperatorStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "opername", @@ -38310,7 +39329,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterOpFamilyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -38344,7 +39363,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterOwnerStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "newowner", @@ -38378,7 +39397,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterPolicyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "policy_name", @@ -38419,7 +39438,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterPublicationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -38460,7 +39479,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterRoleSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "database", @@ -38487,7 +39506,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -38514,7 +39533,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterSeqStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "for_identity", @@ -38548,7 +39567,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterStatsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "defnames", @@ -38575,7 +39594,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterSubscriptionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conninfo", @@ -38616,7 +39635,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterSystemStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "setstmt", @@ -38629,7 +39648,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterTableCmd", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -38691,7 +39710,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterTableMoveAllStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "new_tablespacename", @@ -38732,7 +39751,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterTableSpaceOptionsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "isReset", @@ -38759,7 +39778,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterTableStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cmds", @@ -38793,7 +39812,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterTSConfigurationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cfgname", @@ -38848,7 +39867,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterTSDictionaryStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dictname", @@ -38868,7 +39887,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterTypeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -38888,7 +39907,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "AlterUserMappingStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -38915,7 +39934,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "ArrayCoerceExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -38977,7 +39996,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "ArrayExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "array_collid", @@ -39032,7 +40051,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "BitString", - "wrapped": true, + "isNode": true, "fields": [ { "name": "bsval", @@ -39045,7 +40064,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "Boolean", - "wrapped": true, + "isNode": true, "fields": [ { "name": "boolval", @@ -39058,7 +40077,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "BooleanTest", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -39092,7 +40111,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "BoolExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -39126,7 +40145,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CallContext", - "wrapped": true, + "isNode": true, "fields": [ { "name": "atomic", @@ -39139,7 +40158,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CallStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "funccall", @@ -39166,7 +40185,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CaseExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -39221,7 +40240,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CaseTestExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -39255,7 +40274,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CaseWhen", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -39289,12 +40308,12 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CheckPointStmt", - "wrapped": true, + "isNode": true, "fields": [] }, { "name": "ClosePortalStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "portalname", @@ -39307,7 +40326,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "ClusterStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "indexname", @@ -39334,7 +40353,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CoalesceExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -39375,7 +40394,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CoerceToDomain", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -39430,7 +40449,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CoerceToDomainValue", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -39471,7 +40490,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CoerceViaIO", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -39519,7 +40538,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CollateClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -39546,7 +40565,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CollateExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -39580,7 +40599,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "ColumnDef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collClause", @@ -39719,7 +40738,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "ColumnRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fields", @@ -39739,7 +40758,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CommentStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "comment", @@ -39766,7 +40785,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CommonTableExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aliascolnames", @@ -39863,7 +40882,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CompositeTypeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "coldeflist", @@ -39883,7 +40902,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "Constraint", - "wrapped": true, + "isNode": true, "fields": [ { "name": "access_method", @@ -40099,7 +41118,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "ConstraintsSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "constraints", @@ -40119,7 +41138,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "ConvertRowtypeExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -40160,7 +41179,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CopyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "attlist", @@ -40222,7 +41241,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CreateAmStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -40249,7 +41268,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CreateCastStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "context", @@ -40290,7 +41309,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CreateConversionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conversion_name", @@ -40331,7 +41350,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CreatedbStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -40351,7 +41370,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CreateDomainStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collClause", @@ -40385,7 +41404,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CreateEnumStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "typeName", @@ -40405,7 +41424,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CreateEventTrigStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "eventname", @@ -40439,7 +41458,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CreateExtensionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "extname", @@ -40466,7 +41485,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CreateFdwStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fdwname", @@ -40493,7 +41512,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CreateForeignServerStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fdwname", @@ -40541,7 +41560,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CreateForeignTableStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "base", @@ -40568,7 +41587,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CreateFunctionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "funcname", @@ -40623,7 +41642,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CreateOpClassItem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "class_args", @@ -40671,7 +41690,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CreateOpClassStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -40719,7 +41738,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CreateOpFamilyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -40739,7 +41758,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CreatePLangStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "plhandler", @@ -40787,7 +41806,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CreatePolicyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cmd_name", @@ -40842,7 +41861,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CreatePublicationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "for_all_tables", @@ -40876,7 +41895,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CreateRangeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "params", @@ -40896,7 +41915,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CreateRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -40923,7 +41942,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CreateSchemaStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "authrole", @@ -40957,7 +41976,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CreateSeqStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "for_identity", @@ -40998,7 +42017,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CreateStatsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "defnames", @@ -41053,7 +42072,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CreateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "accessMethod", @@ -41143,7 +42162,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CreateSubscriptionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conninfo", @@ -41177,7 +42196,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CreateTableAsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "if_not_exists", @@ -41218,7 +42237,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CreateTableSpaceStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -41252,7 +42271,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CreateTransformStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fromsql", @@ -41293,7 +42312,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CreateTrigStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -41404,7 +42423,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CreateUserMappingStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "if_not_exists", @@ -41438,7 +42457,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CTECycleClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cycle_col_list", @@ -41514,7 +42533,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CTESearchClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -41548,7 +42567,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "CurrentOfExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cursor_name", @@ -41582,7 +42601,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "DeallocateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "name", @@ -41595,7 +42614,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "DeclareCursorStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -41622,7 +42641,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "DefElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -41663,7 +42682,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "DefineStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -41718,7 +42737,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "DeleteStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "relation", @@ -41759,7 +42778,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "DiscardStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "target", @@ -41772,7 +42791,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "DistinctExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -41834,7 +42853,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "DoStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -41847,7 +42866,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "DropdbStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -41874,7 +42893,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "DropOwnedStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -41894,7 +42913,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "DropRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -41914,7 +42933,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "DropStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -41955,7 +42974,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "DropSubscriptionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -41982,7 +43001,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "DropTableSpaceStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -42002,7 +43021,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "DropUserMappingStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -42029,7 +43048,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "ExecuteStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "name", @@ -42049,7 +43068,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "ExplainStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -42069,7 +43088,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "FetchStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "direction", @@ -42103,7 +43122,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "FieldSelect", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -42151,7 +43170,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "FieldStore", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -42192,7 +43211,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "Float", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fval", @@ -42205,7 +43224,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "FromExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fromlist", @@ -42225,7 +43244,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "FuncCall", - "wrapped": true, + "isNode": true, "fields": [ { "name": "agg_distinct", @@ -42308,7 +43327,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "FuncExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -42384,7 +43403,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "FunctionParameter", - "wrapped": true, + "isNode": true, "fields": [ { "name": "argType", @@ -42418,7 +43437,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "GrantRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -42466,7 +43485,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "GrantStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -42535,7 +43554,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "GroupingFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "agglevelsup", @@ -42576,7 +43595,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "GroupingSet", - "wrapped": true, + "isNode": true, "fields": [ { "name": "content", @@ -42603,7 +43622,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "ImportForeignSchemaStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "list_type", @@ -42651,7 +43670,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "IndexElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -42713,7 +43732,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "IndexStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "accessMethod", @@ -42887,7 +43906,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "InferClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conname", @@ -42921,7 +43940,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "InferenceElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -42955,7 +43974,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "InlineCodeBlock", - "wrapped": true, + "isNode": true, "fields": [ { "name": "atomic", @@ -42989,7 +44008,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "InsertStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cols", @@ -43044,7 +44063,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "Integer", - "wrapped": true, + "isNode": true, "fields": [ { "name": "ival", @@ -43057,7 +44076,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "IntList", - "wrapped": true, + "isNode": true, "fields": [ { "name": "items", @@ -43070,7 +44089,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "IntoClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "accessMethod", @@ -43132,7 +44151,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "JoinExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -43201,7 +44220,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "JsonAggConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "agg_filter", @@ -43242,7 +44261,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "JsonArrayAgg", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -43269,7 +44288,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "JsonArrayConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -43303,7 +44322,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "JsonArrayQueryConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -43344,7 +44363,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "JsonConstructorExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -43413,7 +44432,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "JsonFormat", - "wrapped": true, + "isNode": true, "fields": [ { "name": "encoding", @@ -43440,7 +44459,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "JsonIsPredicate", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -43481,7 +44500,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "JsonKeyValue", - "wrapped": true, + "isNode": true, "fields": [ { "name": "key", @@ -43501,7 +44520,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "JsonObjectAgg", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -43535,7 +44554,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "JsonObjectConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -43576,7 +44595,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "JsonOutput", - "wrapped": true, + "isNode": true, "fields": [ { "name": "returning", @@ -43596,7 +44615,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "JsonReturning", - "wrapped": true, + "isNode": true, "fields": [ { "name": "format", @@ -43623,7 +44642,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "JsonValueExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "format", @@ -43650,7 +44669,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "List", - "wrapped": true, + "isNode": true, "fields": [ { "name": "items", @@ -43663,7 +44682,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "ListenStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conditionname", @@ -43676,7 +44695,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "LoadStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "filename", @@ -43689,7 +44708,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "LockingClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "lockedRels", @@ -43716,7 +44735,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "LockStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "mode", @@ -43743,7 +44762,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "MergeAction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "commandType", @@ -43791,7 +44810,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "MergeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "joinCondition", @@ -43832,7 +44851,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "MergeWhenClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "commandType", @@ -43880,7 +44899,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "MinMaxExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -43935,7 +44954,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "MultiAssignRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "colno", @@ -43962,7 +44981,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "NamedArgExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -44003,7 +45022,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "NextValueExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "seqid", @@ -44030,7 +45049,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "NotifyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conditionname", @@ -44050,7 +45069,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "NullIfExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -44112,7 +45131,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "NullTest", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -44153,7 +45172,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "ObjectWithArgs", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args_unspecified", @@ -44187,7 +45206,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "OidList", - "wrapped": true, + "isNode": true, "fields": [ { "name": "items", @@ -44200,7 +45219,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "OnConflictClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -44241,7 +45260,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "OnConflictExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -44303,7 +45322,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "OpExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -44365,7 +45384,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "Param", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -44420,7 +45439,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "ParamRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -44440,7 +45459,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "ParseResult", - "wrapped": false, + "isNode": false, "fields": [ { "name": "stmts", @@ -44460,7 +45479,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "PartitionBoundSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "is_default", @@ -44522,7 +45541,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "PartitionCmd", - "wrapped": true, + "isNode": true, "fields": [ { "name": "bound", @@ -44549,7 +45568,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "PartitionElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -44590,7 +45609,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "PartitionRangeDatum", - "wrapped": true, + "isNode": true, "fields": [ { "name": "kind", @@ -44617,7 +45636,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "PartitionSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -44644,7 +45663,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "PLAssignStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "indirection", @@ -44685,7 +45704,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "PrepareStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "argtypes", @@ -44712,7 +45731,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "PublicationObjSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -44746,7 +45765,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "PublicationTable", - "wrapped": true, + "isNode": true, "fields": [ { "name": "columns", @@ -44773,7 +45792,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "Query", - "wrapped": true, + "isNode": true, "fields": [ { "name": "canSetTag", @@ -45066,7 +46085,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "RangeFunction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -45114,7 +46133,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "RangeSubselect", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -45141,7 +46160,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "RangeTableFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -45196,7 +46215,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "RangeTableFuncCol", - "wrapped": true, + "isNode": true, "fields": [ { "name": "coldefexpr", @@ -45251,7 +46270,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "RangeTableSample", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -45292,7 +46311,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "RangeTblEntry", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -45522,7 +46541,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "RangeTblFunction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "funccolcollations", @@ -45577,7 +46596,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "RangeTblRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "rtindex", @@ -45590,7 +46609,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "RangeVar", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -45645,7 +46664,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "RawStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "stmt", @@ -45672,7 +46691,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "ReassignOwnedStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "newrole", @@ -45692,7 +46711,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "RefreshMatViewStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "concurrent", @@ -45719,7 +46738,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "ReindexStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "kind", @@ -45753,7 +46772,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "RelabelType", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -45808,7 +46827,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "RenameStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -45870,7 +46889,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "ReplicaIdentityStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "identity_type", @@ -45890,7 +46909,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "ResTarget", - "wrapped": true, + "isNode": true, "fields": [ { "name": "indirection", @@ -45924,7 +46943,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "ReturnStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "returnval", @@ -45937,7 +46956,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "RoleSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -45964,7 +46983,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "RowCompareExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "inputcollids", @@ -46019,7 +47038,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "RowExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -46067,7 +47086,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "RowMarkClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "pushedDown", @@ -46101,7 +47120,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "RTEPermissionInfo", - "wrapped": true, + "isNode": true, "fields": [ { "name": "checkAsUser", @@ -46156,7 +47175,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "RuleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "actions", @@ -46211,7 +47230,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "ScalarArrayOpExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -46259,7 +47278,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "ScanResult", - "wrapped": false, + "isNode": false, "fields": [ { "name": "tokens", @@ -46279,7 +47298,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "ScanToken", - "wrapped": false, + "isNode": false, "fields": [ { "name": "end", @@ -46313,7 +47332,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "SecLabelStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "label", @@ -46347,7 +47366,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "SelectStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "all", @@ -46493,7 +47512,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "SetOperationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "all", @@ -46555,7 +47574,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "SetToDefault", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -46596,7 +47615,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "SortBy", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -46637,7 +47656,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "SortGroupClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "eqop", @@ -46678,7 +47697,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "SQLValueFunction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -46719,7 +47738,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "StatsElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -46739,7 +47758,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "String", - "wrapped": true, + "isNode": true, "fields": [ { "name": "sval", @@ -46752,7 +47771,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "SubLink", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -46807,7 +47826,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "SubPlan", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -46932,7 +47951,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "SubscriptingRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "refassgnexpr", @@ -47008,7 +48027,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "TableFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "colcollations", @@ -47105,7 +48124,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "TableLikeClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -47132,7 +48151,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "TableSampleClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -47159,7 +48178,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "TargetEntry", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -47221,7 +48240,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "TransactionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "chain", @@ -47262,7 +48281,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "TriggerTransition", - "wrapped": true, + "isNode": true, "fields": [ { "name": "isNew", @@ -47289,7 +48308,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "TruncateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -47316,7 +48335,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "TypeCast", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -47343,7 +48362,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "TypeName", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arrayBounds", @@ -47405,7 +48424,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "UnlistenStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conditionname", @@ -47418,7 +48437,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "UpdateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fromClause", @@ -47466,7 +48485,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "VacuumRelation", - "wrapped": true, + "isNode": true, "fields": [ { "name": "oid", @@ -47493,7 +48512,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "VacuumStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "is_vacuumcmd", @@ -47520,7 +48539,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "Var", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -47589,7 +48608,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "VariableSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -47623,7 +48642,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "VariableShowStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "name", @@ -47636,7 +48655,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "ViewStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aliases", @@ -47684,7 +48703,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "WindowClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "copiedOrder", @@ -47795,7 +48814,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "WindowDef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "endOffset", @@ -47857,7 +48876,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "WindowFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aggfilter", @@ -47940,7 +48959,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "WithCheckOption", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cascaded", @@ -47981,7 +49000,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "WithClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "ctes", @@ -48008,7 +49027,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "XmlExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg_names", @@ -48091,7 +49110,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | }, { "name": "XmlSerialize", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -48140,7 +49159,7 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | * and run the pg-proto-parser generate command to regenerate this file. */ import _o from "nested-obj"; -import { ParseResult, ScanResult, Integer, Float, Boolean, String, BitString, List, OidList, IntList, A_Const, Alias, RangeVar, TableFunc, IntoClause, Var, Param, Aggref, GroupingFunc, WindowFunc, SubscriptingRef, FuncExpr, NamedArgExpr, OpExpr, DistinctExpr, NullIfExpr, ScalarArrayOpExpr, BoolExpr, SubLink, SubPlan, AlternativeSubPlan, FieldSelect, FieldStore, RelabelType, CoerceViaIO, ArrayCoerceExpr, ConvertRowtypeExpr, CollateExpr, CaseExpr, CaseWhen, CaseTestExpr, ArrayExpr, RowExpr, RowCompareExpr, CoalesceExpr, MinMaxExpr, SQLValueFunction, XmlExpr, JsonFormat, JsonReturning, JsonValueExpr, JsonConstructorExpr, JsonIsPredicate, NullTest, BooleanTest, CoerceToDomain, CoerceToDomainValue, SetToDefault, CurrentOfExpr, NextValueExpr, InferenceElem, TargetEntry, RangeTblRef, JoinExpr, FromExpr, OnConflictExpr, Query, TypeName, ColumnRef, ParamRef, A_Expr, TypeCast, CollateClause, RoleSpec, FuncCall, A_Star, A_Indices, A_Indirection, A_ArrayExpr, ResTarget, MultiAssignRef, SortBy, WindowDef, RangeSubselect, RangeFunction, RangeTableFunc, RangeTableFuncCol, RangeTableSample, ColumnDef, TableLikeClause, IndexElem, DefElem, LockingClause, XmlSerialize, PartitionElem, PartitionSpec, PartitionBoundSpec, PartitionRangeDatum, PartitionCmd, RangeTblEntry, RTEPermissionInfo, RangeTblFunction, TableSampleClause, WithCheckOption, SortGroupClause, GroupingSet, WindowClause, RowMarkClause, WithClause, InferClause, OnConflictClause, CTESearchClause, CTECycleClause, CommonTableExpr, MergeWhenClause, MergeAction, TriggerTransition, JsonOutput, JsonKeyValue, JsonObjectConstructor, JsonArrayConstructor, JsonArrayQueryConstructor, JsonAggConstructor, JsonObjectAgg, JsonArrayAgg, RawStmt, InsertStmt, DeleteStmt, UpdateStmt, MergeStmt, SelectStmt, SetOperationStmt, ReturnStmt, PLAssignStmt, CreateSchemaStmt, AlterTableStmt, ReplicaIdentityStmt, AlterTableCmd, AlterCollationStmt, AlterDomainStmt, GrantStmt, ObjectWithArgs, AccessPriv, GrantRoleStmt, AlterDefaultPrivilegesStmt, CopyStmt, VariableSetStmt, VariableShowStmt, CreateStmt, Constraint, CreateTableSpaceStmt, DropTableSpaceStmt, AlterTableSpaceOptionsStmt, AlterTableMoveAllStmt, CreateExtensionStmt, AlterExtensionStmt, AlterExtensionContentsStmt, CreateFdwStmt, AlterFdwStmt, CreateForeignServerStmt, AlterForeignServerStmt, CreateForeignTableStmt, CreateUserMappingStmt, AlterUserMappingStmt, DropUserMappingStmt, ImportForeignSchemaStmt, CreatePolicyStmt, AlterPolicyStmt, CreateAmStmt, CreateTrigStmt, CreateEventTrigStmt, AlterEventTrigStmt, CreatePLangStmt, CreateRoleStmt, AlterRoleStmt, AlterRoleSetStmt, DropRoleStmt, CreateSeqStmt, AlterSeqStmt, DefineStmt, CreateDomainStmt, CreateOpClassStmt, CreateOpClassItem, CreateOpFamilyStmt, AlterOpFamilyStmt, DropStmt, TruncateStmt, CommentStmt, SecLabelStmt, DeclareCursorStmt, ClosePortalStmt, FetchStmt, IndexStmt, CreateStatsStmt, StatsElem, AlterStatsStmt, CreateFunctionStmt, FunctionParameter, AlterFunctionStmt, DoStmt, InlineCodeBlock, CallStmt, CallContext, RenameStmt, AlterObjectDependsStmt, AlterObjectSchemaStmt, AlterOwnerStmt, AlterOperatorStmt, AlterTypeStmt, RuleStmt, NotifyStmt, ListenStmt, UnlistenStmt, TransactionStmt, CompositeTypeStmt, CreateEnumStmt, CreateRangeStmt, AlterEnumStmt, ViewStmt, LoadStmt, CreatedbStmt, AlterDatabaseStmt, AlterDatabaseRefreshCollStmt, AlterDatabaseSetStmt, DropdbStmt, AlterSystemStmt, ClusterStmt, VacuumStmt, VacuumRelation, ExplainStmt, CreateTableAsStmt, RefreshMatViewStmt, CheckPointStmt, DiscardStmt, LockStmt, ConstraintsSetStmt, ReindexStmt, CreateConversionStmt, CreateCastStmt, CreateTransformStmt, PrepareStmt, ExecuteStmt, DeallocateStmt, DropOwnedStmt, ReassignOwnedStmt, AlterTSDictionaryStmt, AlterTSConfigurationStmt, PublicationTable, PublicationObjSpec, CreatePublicationStmt, AlterPublicationStmt, CreateSubscriptionStmt, AlterSubscriptionStmt, DropSubscriptionStmt, ScanToken } from "./wrapped"; +import { ParseResult, ScanResult, Integer, Float, Boolean, String, BitString, List, OidList, IntList, A_Const, Alias, RangeVar, TableFunc, IntoClause, Var, Param, Aggref, GroupingFunc, WindowFunc, SubscriptingRef, FuncExpr, NamedArgExpr, OpExpr, DistinctExpr, NullIfExpr, ScalarArrayOpExpr, BoolExpr, SubLink, SubPlan, AlternativeSubPlan, FieldSelect, FieldStore, RelabelType, CoerceViaIO, ArrayCoerceExpr, ConvertRowtypeExpr, CollateExpr, CaseExpr, CaseWhen, CaseTestExpr, ArrayExpr, RowExpr, RowCompareExpr, CoalesceExpr, MinMaxExpr, SQLValueFunction, XmlExpr, JsonFormat, JsonReturning, JsonValueExpr, JsonConstructorExpr, JsonIsPredicate, NullTest, BooleanTest, CoerceToDomain, CoerceToDomainValue, SetToDefault, CurrentOfExpr, NextValueExpr, InferenceElem, TargetEntry, RangeTblRef, JoinExpr, FromExpr, OnConflictExpr, Query, TypeName, ColumnRef, ParamRef, A_Expr, TypeCast, CollateClause, RoleSpec, FuncCall, A_Star, A_Indices, A_Indirection, A_ArrayExpr, ResTarget, MultiAssignRef, SortBy, WindowDef, RangeSubselect, RangeFunction, RangeTableFunc, RangeTableFuncCol, RangeTableSample, ColumnDef, TableLikeClause, IndexElem, DefElem, LockingClause, XmlSerialize, PartitionElem, PartitionSpec, PartitionBoundSpec, PartitionRangeDatum, PartitionCmd, RangeTblEntry, RTEPermissionInfo, RangeTblFunction, TableSampleClause, WithCheckOption, SortGroupClause, GroupingSet, WindowClause, RowMarkClause, WithClause, InferClause, OnConflictClause, CTESearchClause, CTECycleClause, CommonTableExpr, MergeWhenClause, MergeAction, TriggerTransition, JsonOutput, JsonKeyValue, JsonObjectConstructor, JsonArrayConstructor, JsonArrayQueryConstructor, JsonAggConstructor, JsonObjectAgg, JsonArrayAgg, RawStmt, InsertStmt, DeleteStmt, UpdateStmt, MergeStmt, SelectStmt, SetOperationStmt, ReturnStmt, PLAssignStmt, CreateSchemaStmt, AlterTableStmt, ReplicaIdentityStmt, AlterTableCmd, AlterCollationStmt, AlterDomainStmt, GrantStmt, ObjectWithArgs, AccessPriv, GrantRoleStmt, AlterDefaultPrivilegesStmt, CopyStmt, VariableSetStmt, VariableShowStmt, CreateStmt, Constraint, CreateTableSpaceStmt, DropTableSpaceStmt, AlterTableSpaceOptionsStmt, AlterTableMoveAllStmt, CreateExtensionStmt, AlterExtensionStmt, AlterExtensionContentsStmt, CreateFdwStmt, AlterFdwStmt, CreateForeignServerStmt, AlterForeignServerStmt, CreateForeignTableStmt, CreateUserMappingStmt, AlterUserMappingStmt, DropUserMappingStmt, ImportForeignSchemaStmt, CreatePolicyStmt, AlterPolicyStmt, CreateAmStmt, CreateTrigStmt, CreateEventTrigStmt, AlterEventTrigStmt, CreatePLangStmt, CreateRoleStmt, AlterRoleStmt, AlterRoleSetStmt, DropRoleStmt, CreateSeqStmt, AlterSeqStmt, DefineStmt, CreateDomainStmt, CreateOpClassStmt, CreateOpClassItem, CreateOpFamilyStmt, AlterOpFamilyStmt, DropStmt, TruncateStmt, CommentStmt, SecLabelStmt, DeclareCursorStmt, ClosePortalStmt, FetchStmt, IndexStmt, CreateStatsStmt, StatsElem, AlterStatsStmt, CreateFunctionStmt, FunctionParameter, AlterFunctionStmt, DoStmt, InlineCodeBlock, CallStmt, CallContext, RenameStmt, AlterObjectDependsStmt, AlterObjectSchemaStmt, AlterOwnerStmt, AlterOperatorStmt, AlterTypeStmt, RuleStmt, NotifyStmt, ListenStmt, UnlistenStmt, TransactionStmt, CompositeTypeStmt, CreateEnumStmt, CreateRangeStmt, AlterEnumStmt, ViewStmt, LoadStmt, CreatedbStmt, AlterDatabaseStmt, AlterDatabaseRefreshCollStmt, AlterDatabaseSetStmt, DropdbStmt, AlterSystemStmt, ClusterStmt, VacuumStmt, VacuumRelation, ExplainStmt, CreateTableAsStmt, RefreshMatViewStmt, CheckPointStmt, DiscardStmt, LockStmt, ConstraintsSetStmt, ReindexStmt, CreateConversionStmt, CreateCastStmt, CreateTransformStmt, PrepareStmt, ExecuteStmt, DeallocateStmt, DropOwnedStmt, ReassignOwnedStmt, AlterTSDictionaryStmt, AlterTSConfigurationStmt, PublicationTable, PublicationObjSpec, CreatePublicationStmt, AlterPublicationStmt, CreateSubscriptionStmt, AlterSubscriptionStmt, DropSubscriptionStmt, ScanToken } from "./types"; export default { parseResult(_p?: ParseResult): ParseResult { const _j = {} as ParseResult; @@ -50475,7 +51494,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` "code": "[ { "name": "A_ArrayExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "elements", @@ -50495,7 +51514,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "A_Const", - "wrapped": true, + "isNode": true, "fields": [ { "name": "boolval", @@ -50550,7 +51569,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "A_Expr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "kind", @@ -50591,7 +51610,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "A_Indices", - "wrapped": true, + "isNode": true, "fields": [ { "name": "is_slice", @@ -50618,7 +51637,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "A_Indirection", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -50638,12 +51657,12 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "A_Star", - "wrapped": true, + "isNode": true, "fields": [] }, { "name": "AccessPriv", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cols", @@ -50663,7 +51682,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "Aggref", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aggargtypes", @@ -50802,7 +51821,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "Alias", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aliasname", @@ -50822,7 +51841,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterCollationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collname", @@ -50835,7 +51854,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterDatabaseRefreshCollStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -50848,7 +51867,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterDatabaseSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -50868,7 +51887,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterDatabaseStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -50888,7 +51907,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterDefaultPrivilegesStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -50908,7 +51927,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterDomainStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -50956,7 +51975,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterEnumStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "newVal", @@ -51004,7 +52023,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterEventTrigStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "tgenabled", @@ -51024,7 +52043,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterExtensionContentsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -51058,7 +52077,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterExtensionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "extname", @@ -51078,7 +52097,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterFdwStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fdwname", @@ -51105,7 +52124,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterForeignServerStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "has_version", @@ -51139,7 +52158,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterFunctionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "actions", @@ -51166,7 +52185,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlternativeSubPlan", - "wrapped": true, + "isNode": true, "fields": [ { "name": "subplans", @@ -51186,7 +52205,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterObjectDependsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "extname", @@ -51227,7 +52246,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterObjectSchemaStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -51268,7 +52287,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterOperatorStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "opername", @@ -51288,7 +52307,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterOpFamilyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -51322,7 +52341,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterOwnerStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "newowner", @@ -51356,7 +52375,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterPolicyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "policy_name", @@ -51397,7 +52416,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterPublicationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -51438,7 +52457,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterRoleSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "database", @@ -51465,7 +52484,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -51492,7 +52511,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterSeqStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "for_identity", @@ -51526,7 +52545,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterStatsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "defnames", @@ -51553,7 +52572,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterSubscriptionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conninfo", @@ -51594,7 +52613,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterSystemStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "setstmt", @@ -51607,7 +52626,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterTableCmd", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -51669,7 +52688,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterTableMoveAllStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "new_tablespacename", @@ -51710,7 +52729,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterTableSpaceOptionsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "isReset", @@ -51737,7 +52756,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterTableStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cmds", @@ -51771,7 +52790,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterTSConfigurationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cfgname", @@ -51826,7 +52845,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterTSDictionaryStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dictname", @@ -51846,7 +52865,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterTypeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -51866,7 +52885,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "AlterUserMappingStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -51893,7 +52912,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "ArrayCoerceExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -51955,7 +52974,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "ArrayExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "array_collid", @@ -52010,7 +53029,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "BitString", - "wrapped": true, + "isNode": true, "fields": [ { "name": "bsval", @@ -52023,7 +53042,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "Boolean", - "wrapped": true, + "isNode": true, "fields": [ { "name": "boolval", @@ -52036,7 +53055,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "BooleanTest", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -52070,7 +53089,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "BoolExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -52104,7 +53123,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CallContext", - "wrapped": true, + "isNode": true, "fields": [ { "name": "atomic", @@ -52117,7 +53136,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CallStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "funccall", @@ -52144,7 +53163,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CaseExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -52199,7 +53218,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CaseTestExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -52233,7 +53252,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CaseWhen", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -52267,12 +53286,12 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CheckPointStmt", - "wrapped": true, + "isNode": true, "fields": [] }, { "name": "ClosePortalStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "portalname", @@ -52285,7 +53304,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "ClusterStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "indexname", @@ -52312,7 +53331,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CoalesceExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -52353,7 +53372,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CoerceToDomain", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -52408,7 +53427,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CoerceToDomainValue", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -52449,7 +53468,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CoerceViaIO", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -52497,7 +53516,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CollateClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -52524,7 +53543,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CollateExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -52558,7 +53577,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "ColumnDef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collClause", @@ -52697,7 +53716,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "ColumnRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fields", @@ -52717,7 +53736,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CommentStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "comment", @@ -52744,7 +53763,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CommonTableExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aliascolnames", @@ -52841,7 +53860,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CompositeTypeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "coldeflist", @@ -52861,7 +53880,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "Constraint", - "wrapped": true, + "isNode": true, "fields": [ { "name": "access_method", @@ -53084,7 +54103,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "ConstraintsSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "constraints", @@ -53104,7 +54123,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "ConvertRowtypeExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -53145,7 +54164,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CopyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "attlist", @@ -53207,7 +54226,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CreateAmStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -53234,7 +54253,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CreateCastStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "context", @@ -53275,7 +54294,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CreateConversionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conversion_name", @@ -53316,7 +54335,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CreatedbStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -53336,7 +54355,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CreateDomainStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collClause", @@ -53370,7 +54389,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CreateEnumStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "typeName", @@ -53390,7 +54409,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CreateEventTrigStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "eventname", @@ -53424,7 +54443,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CreateExtensionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "extname", @@ -53451,7 +54470,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CreateFdwStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fdwname", @@ -53478,7 +54497,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CreateForeignServerStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fdwname", @@ -53526,7 +54545,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CreateForeignTableStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "base", @@ -53553,7 +54572,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CreateFunctionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "funcname", @@ -53608,7 +54627,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CreateOpClassItem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "class_args", @@ -53656,7 +54675,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CreateOpClassStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -53704,7 +54723,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CreateOpFamilyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "amname", @@ -53724,7 +54743,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CreatePLangStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "plhandler", @@ -53772,7 +54791,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CreatePolicyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cmd_name", @@ -53827,7 +54846,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CreatePublicationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "for_all_tables", @@ -53861,7 +54880,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CreateRangeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "params", @@ -53881,7 +54900,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CreateRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -53908,7 +54927,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CreateSchemaStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "authrole", @@ -53942,7 +54961,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CreateSeqStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "for_identity", @@ -53983,7 +55002,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CreateStatsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "defnames", @@ -54038,7 +55057,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CreateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "accessMethod", @@ -54128,7 +55147,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CreateSubscriptionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conninfo", @@ -54162,7 +55181,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CreateTableAsStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "if_not_exists", @@ -54203,7 +55222,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CreateTableSpaceStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -54237,7 +55256,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CreateTransformStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fromsql", @@ -54278,7 +55297,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CreateTrigStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -54389,7 +55408,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CreateUserMappingStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "if_not_exists", @@ -54423,7 +55442,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CTECycleClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cycle_col_list", @@ -54499,7 +55518,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CTESearchClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -54533,7 +55552,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "CurrentOfExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cursor_name", @@ -54567,7 +55586,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "DeallocateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "isall", @@ -54594,7 +55613,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "DeclareCursorStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -54621,7 +55640,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "DefElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -54662,7 +55681,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "DefineStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -54717,7 +55736,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "DeleteStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "relation", @@ -54758,7 +55777,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "DiscardStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "target", @@ -54771,7 +55790,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "DistinctExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -54833,7 +55852,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "DoStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -54846,7 +55865,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "DropdbStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "dbname", @@ -54873,7 +55892,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "DropOwnedStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -54893,7 +55912,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "DropRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -54913,7 +55932,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "DropStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -54954,7 +55973,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "DropSubscriptionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -54981,7 +56000,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "DropTableSpaceStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -55001,7 +56020,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "DropUserMappingStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "missing_ok", @@ -55028,7 +56047,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "ExecuteStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "name", @@ -55048,7 +56067,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "ExplainStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -55068,7 +56087,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "FetchStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "direction", @@ -55102,7 +56121,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "FieldSelect", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -55150,7 +56169,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "FieldStore", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -55191,7 +56210,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "Float", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fval", @@ -55204,7 +56223,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "FromExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fromlist", @@ -55224,7 +56243,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "FuncCall", - "wrapped": true, + "isNode": true, "fields": [ { "name": "agg_distinct", @@ -55307,7 +56326,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "FuncExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -55383,7 +56402,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "FunctionParameter", - "wrapped": true, + "isNode": true, "fields": [ { "name": "argType", @@ -55417,7 +56436,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "GrantRoleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -55465,7 +56484,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "GrantStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -55534,7 +56553,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "GroupingFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "agglevelsup", @@ -55575,7 +56594,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "GroupingSet", - "wrapped": true, + "isNode": true, "fields": [ { "name": "content", @@ -55602,7 +56621,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "ImportForeignSchemaStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "list_type", @@ -55650,7 +56669,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "IndexElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -55712,7 +56731,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "IndexStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "accessMethod", @@ -55886,7 +56905,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "InferClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conname", @@ -55920,7 +56939,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "InferenceElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -55954,7 +56973,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "InlineCodeBlock", - "wrapped": true, + "isNode": true, "fields": [ { "name": "atomic", @@ -55988,7 +57007,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "InsertStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cols", @@ -56043,7 +57062,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "Integer", - "wrapped": true, + "isNode": true, "fields": [ { "name": "ival", @@ -56056,7 +57075,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "IntList", - "wrapped": true, + "isNode": true, "fields": [ { "name": "items", @@ -56069,7 +57088,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "IntoClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "accessMethod", @@ -56131,7 +57150,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "JoinExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -56200,7 +57219,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "JsonAggConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "agg_filter", @@ -56241,7 +57260,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "JsonArgument", - "wrapped": true, + "isNode": true, "fields": [ { "name": "name", @@ -56261,7 +57280,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "JsonArrayAgg", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -56288,7 +57307,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "JsonArrayConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -56322,7 +57341,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "JsonArrayQueryConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -56363,7 +57382,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "JsonBehavior", - "wrapped": true, + "isNode": true, "fields": [ { "name": "btype", @@ -56397,7 +57416,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "JsonConstructorExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -56466,7 +57485,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "JsonExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -56591,7 +57610,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "JsonFormat", - "wrapped": true, + "isNode": true, "fields": [ { "name": "encoding", @@ -56618,7 +57637,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "JsonFuncExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "column_name", @@ -56701,7 +57720,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "JsonIsPredicate", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -56742,7 +57761,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "JsonKeyValue", - "wrapped": true, + "isNode": true, "fields": [ { "name": "key", @@ -56762,7 +57781,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "JsonObjectAgg", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -56796,7 +57815,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "JsonObjectConstructor", - "wrapped": true, + "isNode": true, "fields": [ { "name": "absent_on_null", @@ -56837,7 +57856,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "JsonOutput", - "wrapped": true, + "isNode": true, "fields": [ { "name": "returning", @@ -56857,7 +57876,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "JsonParseExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -56891,7 +57910,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "JsonReturning", - "wrapped": true, + "isNode": true, "fields": [ { "name": "format", @@ -56918,7 +57937,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "JsonScalarExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -56945,7 +57964,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "JsonSerializeExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -56972,7 +57991,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "JsonTable", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -57034,7 +58053,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "JsonTableColumn", - "wrapped": true, + "isNode": true, "fields": [ { "name": "coltype", @@ -57117,7 +58136,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "JsonTablePath", - "wrapped": true, + "isNode": true, "fields": [ { "name": "name", @@ -57130,7 +58149,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "JsonTablePathScan", - "wrapped": true, + "isNode": true, "fields": [ { "name": "child", @@ -57178,7 +58197,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "JsonTablePathSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -57212,7 +58231,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "JsonTableSiblingJoin", - "wrapped": true, + "isNode": true, "fields": [ { "name": "lplan", @@ -57239,7 +58258,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "JsonValueExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "format", @@ -57266,7 +58285,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "List", - "wrapped": true, + "isNode": true, "fields": [ { "name": "items", @@ -57279,7 +58298,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "ListenStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conditionname", @@ -57292,7 +58311,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "LoadStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "filename", @@ -57305,7 +58324,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "LockingClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "lockedRels", @@ -57332,7 +58351,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "LockStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "mode", @@ -57359,7 +58378,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "MergeAction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "commandType", @@ -57407,7 +58426,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "MergeStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "joinCondition", @@ -57455,7 +58474,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "MergeSupportFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -57489,7 +58508,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "MergeWhenClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "commandType", @@ -57537,7 +58556,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "MinMaxExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -57592,7 +58611,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "MultiAssignRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "colno", @@ -57619,7 +58638,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "NamedArgExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -57660,7 +58679,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "NextValueExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "seqid", @@ -57687,7 +58706,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "NotifyStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conditionname", @@ -57707,7 +58726,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "NullIfExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -57769,7 +58788,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "NullTest", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -57810,7 +58829,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "ObjectWithArgs", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args_unspecified", @@ -57844,7 +58863,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "OidList", - "wrapped": true, + "isNode": true, "fields": [ { "name": "items", @@ -57857,7 +58876,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "OnConflictClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -57898,7 +58917,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "OnConflictExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "action", @@ -57960,7 +58979,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "OpExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -58022,7 +59041,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "Param", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -58077,7 +59096,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "ParamRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -58097,7 +59116,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "ParseResult", - "wrapped": false, + "isNode": false, "fields": [ { "name": "stmts", @@ -58117,7 +59136,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "PartitionBoundSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "is_default", @@ -58179,7 +59198,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "PartitionCmd", - "wrapped": true, + "isNode": true, "fields": [ { "name": "bound", @@ -58206,7 +59225,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "PartitionElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -58247,7 +59266,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "PartitionRangeDatum", - "wrapped": true, + "isNode": true, "fields": [ { "name": "kind", @@ -58274,7 +59293,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "PartitionSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -58301,7 +59320,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "PLAssignStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "indirection", @@ -58342,7 +59361,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "PrepareStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "argtypes", @@ -58369,7 +59388,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "PublicationObjSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -58403,7 +59422,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "PublicationTable", - "wrapped": true, + "isNode": true, "fields": [ { "name": "columns", @@ -58430,7 +59449,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "Query", - "wrapped": true, + "isNode": true, "fields": [ { "name": "canSetTag", @@ -58730,7 +59749,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "RangeFunction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -58778,7 +59797,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "RangeSubselect", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -58805,7 +59824,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "RangeTableFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -58860,7 +59879,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "RangeTableFuncCol", - "wrapped": true, + "isNode": true, "fields": [ { "name": "coldefexpr", @@ -58915,7 +59934,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "RangeTableSample", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -58956,7 +59975,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "RangeTblEntry", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -59186,7 +60205,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "RangeTblFunction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "funccolcollations", @@ -59241,7 +60260,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "RangeTblRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "rtindex", @@ -59254,7 +60273,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "RangeVar", - "wrapped": true, + "isNode": true, "fields": [ { "name": "alias", @@ -59309,7 +60328,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "RawStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "stmt", @@ -59336,7 +60355,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "ReassignOwnedStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "newrole", @@ -59356,7 +60375,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "RefreshMatViewStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "concurrent", @@ -59383,7 +60402,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "ReindexStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "kind", @@ -59417,7 +60436,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "RelabelType", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -59472,7 +60491,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "RenameStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -59534,7 +60553,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "ReplicaIdentityStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "identity_type", @@ -59554,7 +60573,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "ResTarget", - "wrapped": true, + "isNode": true, "fields": [ { "name": "indirection", @@ -59588,7 +60607,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "ReturnStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "returnval", @@ -59601,7 +60620,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "RoleSpec", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -59628,7 +60647,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "RowCompareExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "inputcollids", @@ -59683,7 +60702,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "RowExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -59731,7 +60750,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "RowMarkClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "pushedDown", @@ -59765,7 +60784,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "RTEPermissionInfo", - "wrapped": true, + "isNode": true, "fields": [ { "name": "checkAsUser", @@ -59820,7 +60839,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "RuleStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "actions", @@ -59875,7 +60894,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "ScalarArrayOpExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -59923,7 +60942,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "ScanResult", - "wrapped": false, + "isNode": false, "fields": [ { "name": "tokens", @@ -59943,7 +60962,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "ScanToken", - "wrapped": false, + "isNode": false, "fields": [ { "name": "end", @@ -59977,7 +60996,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "SecLabelStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "label", @@ -60011,7 +61030,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "SelectStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "all", @@ -60157,7 +61176,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "SetOperationStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "all", @@ -60219,7 +61238,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "SetToDefault", - "wrapped": true, + "isNode": true, "fields": [ { "name": "collation", @@ -60260,12 +61279,12 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "SinglePartitionSpec", - "wrapped": true, + "isNode": true, "fields": [] }, { "name": "SortBy", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -60306,7 +61325,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "SortGroupClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "eqop", @@ -60347,7 +61366,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "SQLValueFunction", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -60388,7 +61407,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "StatsElem", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -60408,7 +61427,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "String", - "wrapped": true, + "isNode": true, "fields": [ { "name": "sval", @@ -60421,7 +61440,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "SubLink", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -60476,7 +61495,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "SubPlan", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -60601,7 +61620,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "SubscriptingRef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "refassgnexpr", @@ -60677,7 +61696,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "TableFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "colcollations", @@ -60802,7 +61821,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "TableLikeClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "options", @@ -60829,7 +61848,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "TableSampleClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -60856,7 +61875,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "TargetEntry", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -60918,7 +61937,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "TransactionStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "chain", @@ -60966,7 +61985,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "TriggerTransition", - "wrapped": true, + "isNode": true, "fields": [ { "name": "isNew", @@ -60993,7 +62012,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "TruncateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "behavior", @@ -61020,7 +62039,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "TypeCast", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -61047,7 +62066,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "TypeName", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arrayBounds", @@ -61109,7 +62128,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "UnlistenStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "conditionname", @@ -61122,7 +62141,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "UpdateStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "fromClause", @@ -61170,7 +62189,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "VacuumRelation", - "wrapped": true, + "isNode": true, "fields": [ { "name": "oid", @@ -61197,7 +62216,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "VacuumStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "is_vacuumcmd", @@ -61224,7 +62243,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "Var", - "wrapped": true, + "isNode": true, "fields": [ { "name": "location", @@ -61293,7 +62312,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "VariableSetStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "args", @@ -61327,7 +62346,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "VariableShowStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "name", @@ -61340,7 +62359,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "ViewStmt", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aliases", @@ -61388,7 +62407,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "WindowClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "copiedOrder", @@ -61492,7 +62511,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "WindowDef", - "wrapped": true, + "isNode": true, "fields": [ { "name": "endOffset", @@ -61554,7 +62573,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "WindowFunc", - "wrapped": true, + "isNode": true, "fields": [ { "name": "aggfilter", @@ -61644,7 +62663,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "WindowFuncRunCondition", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg", @@ -61685,7 +62704,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "WithCheckOption", - "wrapped": true, + "isNode": true, "fields": [ { "name": "cascaded", @@ -61726,7 +62745,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "WithClause", - "wrapped": true, + "isNode": true, "fields": [ { "name": "ctes", @@ -61753,7 +62772,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "XmlExpr", - "wrapped": true, + "isNode": true, "fields": [ { "name": "arg_names", @@ -61836,7 +62855,7 @@ exports[`runtime-schema runtime schema with latest proto 1`] = ` }, { "name": "XmlSerialize", - "wrapped": true, + "isNode": true, "fields": [ { "name": "expr", @@ -63709,7 +64728,517 @@ export interface ScanToken { * and run the pg-proto-parser generate command to regenerate this file. */ import { OverridingKind, QuerySource, SortByDir, SortByNulls, SetQuantifier, A_Expr_Kind, RoleSpecType, TableLikeOption, DefElemAction, PartitionStrategy, PartitionRangeDatumKind, RTEKind, WCOKind, GroupingSetKind, CTEMaterialize, SetOperation, ObjectType, DropBehavior, AlterTableType, GrantTargetType, VariableSetKind, ConstrType, ImportForeignSchemaType, RoleStmtType, FetchDirection, FunctionParameterMode, TransactionStmtKind, ViewCheckOption, DiscardMode, ReindexObjectType, AlterTSConfigType, PublicationObjSpecType, AlterPublicationAction, AlterSubscriptionType, OnCommitAction, ParamKind, CoercionContext, CoercionForm, BoolExprType, SubLinkType, RowCompareType, MinMaxOp, SQLValueFunctionOp, XmlExprOp, XmlOptionType, JsonEncoding, JsonFormatType, JsonConstructorType, JsonValueType, NullTestType, BoolTestType, CmdType, JoinType, AggStrategy, AggSplit, SetOpCmd, SetOpStrategy, OnConflictAction, LimitOption, LockClauseStrength, LockWaitPolicy, LockTupleMode, KeywordKind, Token } from "./enums"; -export type Node = ParseResult | ScanResult | Integer | Float | Boolean | String | BitString | List | OidList | IntList | A_Const | Alias | RangeVar | TableFunc | IntoClause | Var | Param | Aggref | GroupingFunc | WindowFunc | SubscriptingRef | FuncExpr | NamedArgExpr | OpExpr | DistinctExpr | NullIfExpr | ScalarArrayOpExpr | BoolExpr | SubLink | SubPlan | AlternativeSubPlan | FieldSelect | FieldStore | RelabelType | CoerceViaIO | ArrayCoerceExpr | ConvertRowtypeExpr | CollateExpr | CaseExpr | CaseWhen | CaseTestExpr | ArrayExpr | RowExpr | RowCompareExpr | CoalesceExpr | MinMaxExpr | SQLValueFunction | XmlExpr | JsonFormat | JsonReturning | JsonValueExpr | JsonConstructorExpr | JsonIsPredicate | NullTest | BooleanTest | CoerceToDomain | CoerceToDomainValue | SetToDefault | CurrentOfExpr | NextValueExpr | InferenceElem | TargetEntry | RangeTblRef | JoinExpr | FromExpr | OnConflictExpr | Query | TypeName | ColumnRef | ParamRef | A_Expr | TypeCast | CollateClause | RoleSpec | FuncCall | A_Star | A_Indices | A_Indirection | A_ArrayExpr | ResTarget | MultiAssignRef | SortBy | WindowDef | RangeSubselect | RangeFunction | RangeTableFunc | RangeTableFuncCol | RangeTableSample | ColumnDef | TableLikeClause | IndexElem | DefElem | LockingClause | XmlSerialize | PartitionElem | PartitionSpec | PartitionBoundSpec | PartitionRangeDatum | PartitionCmd | RangeTblEntry | RTEPermissionInfo | RangeTblFunction | TableSampleClause | WithCheckOption | SortGroupClause | GroupingSet | WindowClause | RowMarkClause | WithClause | InferClause | OnConflictClause | CTESearchClause | CTECycleClause | CommonTableExpr | MergeWhenClause | MergeAction | TriggerTransition | JsonOutput | JsonKeyValue | JsonObjectConstructor | JsonArrayConstructor | JsonArrayQueryConstructor | JsonAggConstructor | JsonObjectAgg | JsonArrayAgg | RawStmt | InsertStmt | DeleteStmt | UpdateStmt | MergeStmt | SelectStmt | SetOperationStmt | ReturnStmt | PLAssignStmt | CreateSchemaStmt | AlterTableStmt | ReplicaIdentityStmt | AlterTableCmd | AlterCollationStmt | AlterDomainStmt | GrantStmt | ObjectWithArgs | AccessPriv | GrantRoleStmt | AlterDefaultPrivilegesStmt | CopyStmt | VariableSetStmt | VariableShowStmt | CreateStmt | Constraint | CreateTableSpaceStmt | DropTableSpaceStmt | AlterTableSpaceOptionsStmt | AlterTableMoveAllStmt | CreateExtensionStmt | AlterExtensionStmt | AlterExtensionContentsStmt | CreateFdwStmt | AlterFdwStmt | CreateForeignServerStmt | AlterForeignServerStmt | CreateForeignTableStmt | CreateUserMappingStmt | AlterUserMappingStmt | DropUserMappingStmt | ImportForeignSchemaStmt | CreatePolicyStmt | AlterPolicyStmt | CreateAmStmt | CreateTrigStmt | CreateEventTrigStmt | AlterEventTrigStmt | CreatePLangStmt | CreateRoleStmt | AlterRoleStmt | AlterRoleSetStmt | DropRoleStmt | CreateSeqStmt | AlterSeqStmt | DefineStmt | CreateDomainStmt | CreateOpClassStmt | CreateOpClassItem | CreateOpFamilyStmt | AlterOpFamilyStmt | DropStmt | TruncateStmt | CommentStmt | SecLabelStmt | DeclareCursorStmt | ClosePortalStmt | FetchStmt | IndexStmt | CreateStatsStmt | StatsElem | AlterStatsStmt | CreateFunctionStmt | FunctionParameter | AlterFunctionStmt | DoStmt | InlineCodeBlock | CallStmt | CallContext | RenameStmt | AlterObjectDependsStmt | AlterObjectSchemaStmt | AlterOwnerStmt | AlterOperatorStmt | AlterTypeStmt | RuleStmt | NotifyStmt | ListenStmt | UnlistenStmt | TransactionStmt | CompositeTypeStmt | CreateEnumStmt | CreateRangeStmt | AlterEnumStmt | ViewStmt | LoadStmt | CreatedbStmt | AlterDatabaseStmt | AlterDatabaseRefreshCollStmt | AlterDatabaseSetStmt | DropdbStmt | AlterSystemStmt | ClusterStmt | VacuumStmt | VacuumRelation | ExplainStmt | CreateTableAsStmt | RefreshMatViewStmt | CheckPointStmt | DiscardStmt | LockStmt | ConstraintsSetStmt | ReindexStmt | CreateConversionStmt | CreateCastStmt | CreateTransformStmt | PrepareStmt | ExecuteStmt | DeallocateStmt | DropOwnedStmt | ReassignOwnedStmt | AlterTSDictionaryStmt | AlterTSConfigurationStmt | PublicationTable | PublicationObjSpec | CreatePublicationStmt | AlterPublicationStmt | CreateSubscriptionStmt | AlterSubscriptionStmt | DropSubscriptionStmt | ScanToken; +export type Node = { + ParseResult: ParseResult; +} | { + ScanResult: ScanResult; +} | { + Integer: Integer; +} | { + Float: Float; +} | { + Boolean: Boolean; +} | { + String: String; +} | { + BitString: BitString; +} | { + List: List; +} | { + OidList: OidList; +} | { + IntList: IntList; +} | { + A_Const: A_Const; +} | { + Alias: Alias; +} | { + RangeVar: RangeVar; +} | { + TableFunc: TableFunc; +} | { + IntoClause: IntoClause; +} | { + Var: Var; +} | { + Param: Param; +} | { + Aggref: Aggref; +} | { + GroupingFunc: GroupingFunc; +} | { + WindowFunc: WindowFunc; +} | { + SubscriptingRef: SubscriptingRef; +} | { + FuncExpr: FuncExpr; +} | { + NamedArgExpr: NamedArgExpr; +} | { + OpExpr: OpExpr; +} | { + DistinctExpr: DistinctExpr; +} | { + NullIfExpr: NullIfExpr; +} | { + ScalarArrayOpExpr: ScalarArrayOpExpr; +} | { + BoolExpr: BoolExpr; +} | { + SubLink: SubLink; +} | { + SubPlan: SubPlan; +} | { + AlternativeSubPlan: AlternativeSubPlan; +} | { + FieldSelect: FieldSelect; +} | { + FieldStore: FieldStore; +} | { + RelabelType: RelabelType; +} | { + CoerceViaIO: CoerceViaIO; +} | { + ArrayCoerceExpr: ArrayCoerceExpr; +} | { + ConvertRowtypeExpr: ConvertRowtypeExpr; +} | { + CollateExpr: CollateExpr; +} | { + CaseExpr: CaseExpr; +} | { + CaseWhen: CaseWhen; +} | { + CaseTestExpr: CaseTestExpr; +} | { + ArrayExpr: ArrayExpr; +} | { + RowExpr: RowExpr; +} | { + RowCompareExpr: RowCompareExpr; +} | { + CoalesceExpr: CoalesceExpr; +} | { + MinMaxExpr: MinMaxExpr; +} | { + SQLValueFunction: SQLValueFunction; +} | { + XmlExpr: XmlExpr; +} | { + JsonFormat: JsonFormat; +} | { + JsonReturning: JsonReturning; +} | { + JsonValueExpr: JsonValueExpr; +} | { + JsonConstructorExpr: JsonConstructorExpr; +} | { + JsonIsPredicate: JsonIsPredicate; +} | { + NullTest: NullTest; +} | { + BooleanTest: BooleanTest; +} | { + CoerceToDomain: CoerceToDomain; +} | { + CoerceToDomainValue: CoerceToDomainValue; +} | { + SetToDefault: SetToDefault; +} | { + CurrentOfExpr: CurrentOfExpr; +} | { + NextValueExpr: NextValueExpr; +} | { + InferenceElem: InferenceElem; +} | { + TargetEntry: TargetEntry; +} | { + RangeTblRef: RangeTblRef; +} | { + JoinExpr: JoinExpr; +} | { + FromExpr: FromExpr; +} | { + OnConflictExpr: OnConflictExpr; +} | { + Query: Query; +} | { + TypeName: TypeName; +} | { + ColumnRef: ColumnRef; +} | { + ParamRef: ParamRef; +} | { + A_Expr: A_Expr; +} | { + TypeCast: TypeCast; +} | { + CollateClause: CollateClause; +} | { + RoleSpec: RoleSpec; +} | { + FuncCall: FuncCall; +} | { + A_Star: A_Star; +} | { + A_Indices: A_Indices; +} | { + A_Indirection: A_Indirection; +} | { + A_ArrayExpr: A_ArrayExpr; +} | { + ResTarget: ResTarget; +} | { + MultiAssignRef: MultiAssignRef; +} | { + SortBy: SortBy; +} | { + WindowDef: WindowDef; +} | { + RangeSubselect: RangeSubselect; +} | { + RangeFunction: RangeFunction; +} | { + RangeTableFunc: RangeTableFunc; +} | { + RangeTableFuncCol: RangeTableFuncCol; +} | { + RangeTableSample: RangeTableSample; +} | { + ColumnDef: ColumnDef; +} | { + TableLikeClause: TableLikeClause; +} | { + IndexElem: IndexElem; +} | { + DefElem: DefElem; +} | { + LockingClause: LockingClause; +} | { + XmlSerialize: XmlSerialize; +} | { + PartitionElem: PartitionElem; +} | { + PartitionSpec: PartitionSpec; +} | { + PartitionBoundSpec: PartitionBoundSpec; +} | { + PartitionRangeDatum: PartitionRangeDatum; +} | { + PartitionCmd: PartitionCmd; +} | { + RangeTblEntry: RangeTblEntry; +} | { + RTEPermissionInfo: RTEPermissionInfo; +} | { + RangeTblFunction: RangeTblFunction; +} | { + TableSampleClause: TableSampleClause; +} | { + WithCheckOption: WithCheckOption; +} | { + SortGroupClause: SortGroupClause; +} | { + GroupingSet: GroupingSet; +} | { + WindowClause: WindowClause; +} | { + RowMarkClause: RowMarkClause; +} | { + WithClause: WithClause; +} | { + InferClause: InferClause; +} | { + OnConflictClause: OnConflictClause; +} | { + CTESearchClause: CTESearchClause; +} | { + CTECycleClause: CTECycleClause; +} | { + CommonTableExpr: CommonTableExpr; +} | { + MergeWhenClause: MergeWhenClause; +} | { + MergeAction: MergeAction; +} | { + TriggerTransition: TriggerTransition; +} | { + JsonOutput: JsonOutput; +} | { + JsonKeyValue: JsonKeyValue; +} | { + JsonObjectConstructor: JsonObjectConstructor; +} | { + JsonArrayConstructor: JsonArrayConstructor; +} | { + JsonArrayQueryConstructor: JsonArrayQueryConstructor; +} | { + JsonAggConstructor: JsonAggConstructor; +} | { + JsonObjectAgg: JsonObjectAgg; +} | { + JsonArrayAgg: JsonArrayAgg; +} | { + RawStmt: RawStmt; +} | { + InsertStmt: InsertStmt; +} | { + DeleteStmt: DeleteStmt; +} | { + UpdateStmt: UpdateStmt; +} | { + MergeStmt: MergeStmt; +} | { + SelectStmt: SelectStmt; +} | { + SetOperationStmt: SetOperationStmt; +} | { + ReturnStmt: ReturnStmt; +} | { + PLAssignStmt: PLAssignStmt; +} | { + CreateSchemaStmt: CreateSchemaStmt; +} | { + AlterTableStmt: AlterTableStmt; +} | { + ReplicaIdentityStmt: ReplicaIdentityStmt; +} | { + AlterTableCmd: AlterTableCmd; +} | { + AlterCollationStmt: AlterCollationStmt; +} | { + AlterDomainStmt: AlterDomainStmt; +} | { + GrantStmt: GrantStmt; +} | { + ObjectWithArgs: ObjectWithArgs; +} | { + AccessPriv: AccessPriv; +} | { + GrantRoleStmt: GrantRoleStmt; +} | { + AlterDefaultPrivilegesStmt: AlterDefaultPrivilegesStmt; +} | { + CopyStmt: CopyStmt; +} | { + VariableSetStmt: VariableSetStmt; +} | { + VariableShowStmt: VariableShowStmt; +} | { + CreateStmt: CreateStmt; +} | { + Constraint: Constraint; +} | { + CreateTableSpaceStmt: CreateTableSpaceStmt; +} | { + DropTableSpaceStmt: DropTableSpaceStmt; +} | { + AlterTableSpaceOptionsStmt: AlterTableSpaceOptionsStmt; +} | { + AlterTableMoveAllStmt: AlterTableMoveAllStmt; +} | { + CreateExtensionStmt: CreateExtensionStmt; +} | { + AlterExtensionStmt: AlterExtensionStmt; +} | { + AlterExtensionContentsStmt: AlterExtensionContentsStmt; +} | { + CreateFdwStmt: CreateFdwStmt; +} | { + AlterFdwStmt: AlterFdwStmt; +} | { + CreateForeignServerStmt: CreateForeignServerStmt; +} | { + AlterForeignServerStmt: AlterForeignServerStmt; +} | { + CreateForeignTableStmt: CreateForeignTableStmt; +} | { + CreateUserMappingStmt: CreateUserMappingStmt; +} | { + AlterUserMappingStmt: AlterUserMappingStmt; +} | { + DropUserMappingStmt: DropUserMappingStmt; +} | { + ImportForeignSchemaStmt: ImportForeignSchemaStmt; +} | { + CreatePolicyStmt: CreatePolicyStmt; +} | { + AlterPolicyStmt: AlterPolicyStmt; +} | { + CreateAmStmt: CreateAmStmt; +} | { + CreateTrigStmt: CreateTrigStmt; +} | { + CreateEventTrigStmt: CreateEventTrigStmt; +} | { + AlterEventTrigStmt: AlterEventTrigStmt; +} | { + CreatePLangStmt: CreatePLangStmt; +} | { + CreateRoleStmt: CreateRoleStmt; +} | { + AlterRoleStmt: AlterRoleStmt; +} | { + AlterRoleSetStmt: AlterRoleSetStmt; +} | { + DropRoleStmt: DropRoleStmt; +} | { + CreateSeqStmt: CreateSeqStmt; +} | { + AlterSeqStmt: AlterSeqStmt; +} | { + DefineStmt: DefineStmt; +} | { + CreateDomainStmt: CreateDomainStmt; +} | { + CreateOpClassStmt: CreateOpClassStmt; +} | { + CreateOpClassItem: CreateOpClassItem; +} | { + CreateOpFamilyStmt: CreateOpFamilyStmt; +} | { + AlterOpFamilyStmt: AlterOpFamilyStmt; +} | { + DropStmt: DropStmt; +} | { + TruncateStmt: TruncateStmt; +} | { + CommentStmt: CommentStmt; +} | { + SecLabelStmt: SecLabelStmt; +} | { + DeclareCursorStmt: DeclareCursorStmt; +} | { + ClosePortalStmt: ClosePortalStmt; +} | { + FetchStmt: FetchStmt; +} | { + IndexStmt: IndexStmt; +} | { + CreateStatsStmt: CreateStatsStmt; +} | { + StatsElem: StatsElem; +} | { + AlterStatsStmt: AlterStatsStmt; +} | { + CreateFunctionStmt: CreateFunctionStmt; +} | { + FunctionParameter: FunctionParameter; +} | { + AlterFunctionStmt: AlterFunctionStmt; +} | { + DoStmt: DoStmt; +} | { + InlineCodeBlock: InlineCodeBlock; +} | { + CallStmt: CallStmt; +} | { + CallContext: CallContext; +} | { + RenameStmt: RenameStmt; +} | { + AlterObjectDependsStmt: AlterObjectDependsStmt; +} | { + AlterObjectSchemaStmt: AlterObjectSchemaStmt; +} | { + AlterOwnerStmt: AlterOwnerStmt; +} | { + AlterOperatorStmt: AlterOperatorStmt; +} | { + AlterTypeStmt: AlterTypeStmt; +} | { + RuleStmt: RuleStmt; +} | { + NotifyStmt: NotifyStmt; +} | { + ListenStmt: ListenStmt; +} | { + UnlistenStmt: UnlistenStmt; +} | { + TransactionStmt: TransactionStmt; +} | { + CompositeTypeStmt: CompositeTypeStmt; +} | { + CreateEnumStmt: CreateEnumStmt; +} | { + CreateRangeStmt: CreateRangeStmt; +} | { + AlterEnumStmt: AlterEnumStmt; +} | { + ViewStmt: ViewStmt; +} | { + LoadStmt: LoadStmt; +} | { + CreatedbStmt: CreatedbStmt; +} | { + AlterDatabaseStmt: AlterDatabaseStmt; +} | { + AlterDatabaseRefreshCollStmt: AlterDatabaseRefreshCollStmt; +} | { + AlterDatabaseSetStmt: AlterDatabaseSetStmt; +} | { + DropdbStmt: DropdbStmt; +} | { + AlterSystemStmt: AlterSystemStmt; +} | { + ClusterStmt: ClusterStmt; +} | { + VacuumStmt: VacuumStmt; +} | { + VacuumRelation: VacuumRelation; +} | { + ExplainStmt: ExplainStmt; +} | { + CreateTableAsStmt: CreateTableAsStmt; +} | { + RefreshMatViewStmt: RefreshMatViewStmt; +} | { + CheckPointStmt: CheckPointStmt; +} | { + DiscardStmt: DiscardStmt; +} | { + LockStmt: LockStmt; +} | { + ConstraintsSetStmt: ConstraintsSetStmt; +} | { + ReindexStmt: ReindexStmt; +} | { + CreateConversionStmt: CreateConversionStmt; +} | { + CreateCastStmt: CreateCastStmt; +} | { + CreateTransformStmt: CreateTransformStmt; +} | { + PrepareStmt: PrepareStmt; +} | { + ExecuteStmt: ExecuteStmt; +} | { + DeallocateStmt: DeallocateStmt; +} | { + DropOwnedStmt: DropOwnedStmt; +} | { + ReassignOwnedStmt: ReassignOwnedStmt; +} | { + AlterTSDictionaryStmt: AlterTSDictionaryStmt; +} | { + AlterTSConfigurationStmt: AlterTSConfigurationStmt; +} | { + PublicationTable: PublicationTable; +} | { + PublicationObjSpec: PublicationObjSpec; +} | { + CreatePublicationStmt: CreatePublicationStmt; +} | { + AlterPublicationStmt: AlterPublicationStmt; +} | { + CreateSubscriptionStmt: CreateSubscriptionStmt; +} | { + AlterSubscriptionStmt: AlterSubscriptionStmt; +} | { + DropSubscriptionStmt: DropSubscriptionStmt; +} | { + ScanToken: ScanToken; +}; export interface ParseResult { version?: number; stmts?: RawStmt[]; @@ -65599,7 +67128,6 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | * DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, * and run the pg-proto-parser generate command to regenerate this file. */ -// Generated by pg-proto-parser export interface FieldSpec { name: string; type: string; @@ -65609,13 +67137,13 @@ export interface FieldSpec { } export interface NodeSpec { name: string; - wrapped: boolean; + isNode: boolean; fields: FieldSpec[]; } export const runtimeSchema: NodeSpec[] = [ { name: 'A_ArrayExpr', - wrapped: true, + isNode: true, fields: [ { name: 'elements', @@ -65635,7 +67163,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'A_Const', - wrapped: true, + isNode: true, fields: [ { name: 'boolval', @@ -65690,7 +67218,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'A_Expr', - wrapped: true, + isNode: true, fields: [ { name: 'kind', @@ -65731,7 +67259,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'A_Indices', - wrapped: true, + isNode: true, fields: [ { name: 'is_slice', @@ -65758,7 +67286,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'A_Indirection', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -65778,14 +67306,14 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'A_Star', - wrapped: true, + isNode: true, fields: [ ] }, { name: 'AccessPriv', - wrapped: true, + isNode: true, fields: [ { name: 'cols', @@ -65805,7 +67333,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Aggref', - wrapped: true, + isNode: true, fields: [ { name: 'aggargtypes', @@ -65944,7 +67472,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Alias', - wrapped: true, + isNode: true, fields: [ { name: 'aliasname', @@ -65964,7 +67492,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterCollationStmt', - wrapped: true, + isNode: true, fields: [ { name: 'collname', @@ -65977,7 +67505,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterDatabaseRefreshCollStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dbname', @@ -65990,7 +67518,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterDatabaseSetStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dbname', @@ -66010,7 +67538,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterDatabaseStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dbname', @@ -66030,7 +67558,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterDefaultPrivilegesStmt', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -66050,7 +67578,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterDomainStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -66098,7 +67626,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterEnumStmt', - wrapped: true, + isNode: true, fields: [ { name: 'newVal', @@ -66146,7 +67674,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterEventTrigStmt', - wrapped: true, + isNode: true, fields: [ { name: 'tgenabled', @@ -66166,7 +67694,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterExtensionContentsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -66200,7 +67728,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterExtensionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'extname', @@ -66220,7 +67748,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterFdwStmt', - wrapped: true, + isNode: true, fields: [ { name: 'fdwname', @@ -66247,7 +67775,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterForeignServerStmt', - wrapped: true, + isNode: true, fields: [ { name: 'has_version', @@ -66281,7 +67809,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterFunctionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'actions', @@ -66308,7 +67836,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlternativeSubPlan', - wrapped: true, + isNode: true, fields: [ { name: 'subplans', @@ -66328,7 +67856,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterObjectDependsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'extname', @@ -66369,7 +67897,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterObjectSchemaStmt', - wrapped: true, + isNode: true, fields: [ { name: 'missing_ok', @@ -66410,7 +67938,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterOperatorStmt', - wrapped: true, + isNode: true, fields: [ { name: 'opername', @@ -66430,7 +67958,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterOpFamilyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'amname', @@ -66464,7 +67992,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterOwnerStmt', - wrapped: true, + isNode: true, fields: [ { name: 'newowner', @@ -66498,7 +68026,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterPolicyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'policy_name', @@ -66539,7 +68067,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterPublicationStmt', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -66580,7 +68108,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterRoleSetStmt', - wrapped: true, + isNode: true, fields: [ { name: 'database', @@ -66607,7 +68135,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterRoleStmt', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -66634,7 +68162,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterSeqStmt', - wrapped: true, + isNode: true, fields: [ { name: 'for_identity', @@ -66668,7 +68196,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterStatsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'defnames', @@ -66695,7 +68223,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterSubscriptionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conninfo', @@ -66736,7 +68264,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterSystemStmt', - wrapped: true, + isNode: true, fields: [ { name: 'setstmt', @@ -66749,7 +68277,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTableCmd', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -66811,7 +68339,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTableMoveAllStmt', - wrapped: true, + isNode: true, fields: [ { name: 'new_tablespacename', @@ -66852,7 +68380,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTableSpaceOptionsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'isReset', @@ -66879,7 +68407,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTableStmt', - wrapped: true, + isNode: true, fields: [ { name: 'cmds', @@ -66913,7 +68441,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTSConfigurationStmt', - wrapped: true, + isNode: true, fields: [ { name: 'cfgname', @@ -66968,7 +68496,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTSDictionaryStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dictname', @@ -66988,7 +68516,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTypeStmt', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -67008,7 +68536,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterUserMappingStmt', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -67035,7 +68563,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ArrayCoerceExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -67097,7 +68625,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ArrayExpr', - wrapped: true, + isNode: true, fields: [ { name: 'array_collid', @@ -67152,7 +68680,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'BitString', - wrapped: true, + isNode: true, fields: [ { name: 'bsval', @@ -67165,7 +68693,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Boolean', - wrapped: true, + isNode: true, fields: [ { name: 'boolval', @@ -67178,7 +68706,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'BooleanTest', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -67212,7 +68740,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'BoolExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -67246,7 +68774,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CallContext', - wrapped: true, + isNode: true, fields: [ { name: 'atomic', @@ -67259,7 +68787,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CallStmt', - wrapped: true, + isNode: true, fields: [ { name: 'funccall', @@ -67286,7 +68814,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CaseExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -67341,7 +68869,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CaseTestExpr', - wrapped: true, + isNode: true, fields: [ { name: 'collation', @@ -67375,7 +68903,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CaseWhen', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -67409,14 +68937,14 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CheckPointStmt', - wrapped: true, + isNode: true, fields: [ ] }, { name: 'ClosePortalStmt', - wrapped: true, + isNode: true, fields: [ { name: 'portalname', @@ -67429,7 +68957,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ClusterStmt', - wrapped: true, + isNode: true, fields: [ { name: 'indexname', @@ -67456,7 +68984,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CoalesceExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -67497,7 +69025,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CoerceToDomain', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -67552,7 +69080,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CoerceToDomainValue', - wrapped: true, + isNode: true, fields: [ { name: 'collation', @@ -67593,7 +69121,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CoerceViaIO', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -67641,7 +69169,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CollateClause', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -67668,7 +69196,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CollateExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -67702,7 +69230,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ColumnDef', - wrapped: true, + isNode: true, fields: [ { name: 'collClause', @@ -67841,7 +69369,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ColumnRef', - wrapped: true, + isNode: true, fields: [ { name: 'fields', @@ -67861,7 +69389,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CommentStmt', - wrapped: true, + isNode: true, fields: [ { name: 'comment', @@ -67888,7 +69416,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CommonTableExpr', - wrapped: true, + isNode: true, fields: [ { name: 'aliascolnames', @@ -67985,7 +69513,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CompositeTypeStmt', - wrapped: true, + isNode: true, fields: [ { name: 'coldeflist', @@ -68005,7 +69533,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Constraint', - wrapped: true, + isNode: true, fields: [ { name: 'access_method', @@ -68221,7 +69749,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ConstraintsSetStmt', - wrapped: true, + isNode: true, fields: [ { name: 'constraints', @@ -68241,7 +69769,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ConvertRowtypeExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -68282,7 +69810,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CopyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'attlist', @@ -68344,7 +69872,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateAmStmt', - wrapped: true, + isNode: true, fields: [ { name: 'amname', @@ -68371,7 +69899,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateCastStmt', - wrapped: true, + isNode: true, fields: [ { name: 'context', @@ -68412,7 +69940,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateConversionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conversion_name', @@ -68453,7 +69981,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreatedbStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dbname', @@ -68473,7 +70001,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateDomainStmt', - wrapped: true, + isNode: true, fields: [ { name: 'collClause', @@ -68507,7 +70035,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateEnumStmt', - wrapped: true, + isNode: true, fields: [ { name: 'typeName', @@ -68527,7 +70055,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateEventTrigStmt', - wrapped: true, + isNode: true, fields: [ { name: 'eventname', @@ -68561,7 +70089,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateExtensionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'extname', @@ -68588,7 +70116,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateFdwStmt', - wrapped: true, + isNode: true, fields: [ { name: 'fdwname', @@ -68615,7 +70143,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateForeignServerStmt', - wrapped: true, + isNode: true, fields: [ { name: 'fdwname', @@ -68663,7 +70191,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateForeignTableStmt', - wrapped: true, + isNode: true, fields: [ { name: 'base', @@ -68690,7 +70218,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateFunctionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'funcname', @@ -68745,7 +70273,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateOpClassItem', - wrapped: true, + isNode: true, fields: [ { name: 'class_args', @@ -68793,7 +70321,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateOpClassStmt', - wrapped: true, + isNode: true, fields: [ { name: 'amname', @@ -68841,7 +70369,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateOpFamilyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'amname', @@ -68861,7 +70389,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreatePLangStmt', - wrapped: true, + isNode: true, fields: [ { name: 'plhandler', @@ -68909,7 +70437,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreatePolicyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'cmd_name', @@ -68964,7 +70492,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreatePublicationStmt', - wrapped: true, + isNode: true, fields: [ { name: 'for_all_tables', @@ -68998,7 +70526,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateRangeStmt', - wrapped: true, + isNode: true, fields: [ { name: 'params', @@ -69018,7 +70546,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateRoleStmt', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -69045,7 +70573,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateSchemaStmt', - wrapped: true, + isNode: true, fields: [ { name: 'authrole', @@ -69079,7 +70607,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateSeqStmt', - wrapped: true, + isNode: true, fields: [ { name: 'for_identity', @@ -69120,7 +70648,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateStatsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'defnames', @@ -69175,7 +70703,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateStmt', - wrapped: true, + isNode: true, fields: [ { name: 'accessMethod', @@ -69265,7 +70793,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateSubscriptionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conninfo', @@ -69299,7 +70827,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateTableAsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'if_not_exists', @@ -69340,7 +70868,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateTableSpaceStmt', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -69374,7 +70902,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateTransformStmt', - wrapped: true, + isNode: true, fields: [ { name: 'fromsql', @@ -69415,7 +70943,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateTrigStmt', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -69526,7 +71054,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateUserMappingStmt', - wrapped: true, + isNode: true, fields: [ { name: 'if_not_exists', @@ -69560,7 +71088,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CTECycleClause', - wrapped: true, + isNode: true, fields: [ { name: 'cycle_col_list', @@ -69636,7 +71164,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CTESearchClause', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -69670,7 +71198,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CurrentOfExpr', - wrapped: true, + isNode: true, fields: [ { name: 'cursor_name', @@ -69704,7 +71232,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DeallocateStmt', - wrapped: true, + isNode: true, fields: [ { name: 'name', @@ -69717,7 +71245,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DeclareCursorStmt', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -69744,7 +71272,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DefElem', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -69785,7 +71313,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DefineStmt', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -69840,7 +71368,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DeleteStmt', - wrapped: true, + isNode: true, fields: [ { name: 'relation', @@ -69881,7 +71409,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DiscardStmt', - wrapped: true, + isNode: true, fields: [ { name: 'target', @@ -69894,7 +71422,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DistinctExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -69956,7 +71484,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DoStmt', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -69969,7 +71497,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropdbStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dbname', @@ -69996,7 +71524,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropOwnedStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -70016,7 +71544,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropRoleStmt', - wrapped: true, + isNode: true, fields: [ { name: 'missing_ok', @@ -70036,7 +71564,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -70077,7 +71605,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropSubscriptionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -70104,7 +71632,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropTableSpaceStmt', - wrapped: true, + isNode: true, fields: [ { name: 'missing_ok', @@ -70124,7 +71652,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropUserMappingStmt', - wrapped: true, + isNode: true, fields: [ { name: 'missing_ok', @@ -70151,7 +71679,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ExecuteStmt', - wrapped: true, + isNode: true, fields: [ { name: 'name', @@ -70171,7 +71699,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ExplainStmt', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -70191,7 +71719,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FetchStmt', - wrapped: true, + isNode: true, fields: [ { name: 'direction', @@ -70225,7 +71753,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FieldSelect', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -70273,7 +71801,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FieldStore', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -70314,7 +71842,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Float', - wrapped: true, + isNode: true, fields: [ { name: 'fval', @@ -70327,7 +71855,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FromExpr', - wrapped: true, + isNode: true, fields: [ { name: 'fromlist', @@ -70347,7 +71875,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FuncCall', - wrapped: true, + isNode: true, fields: [ { name: 'agg_distinct', @@ -70430,7 +71958,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FuncExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -70506,7 +72034,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FunctionParameter', - wrapped: true, + isNode: true, fields: [ { name: 'argType', @@ -70540,7 +72068,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'GrantRoleStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -70588,7 +72116,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'GrantStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -70657,7 +72185,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'GroupingFunc', - wrapped: true, + isNode: true, fields: [ { name: 'agglevelsup', @@ -70698,7 +72226,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'GroupingSet', - wrapped: true, + isNode: true, fields: [ { name: 'content', @@ -70725,7 +72253,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ImportForeignSchemaStmt', - wrapped: true, + isNode: true, fields: [ { name: 'list_type', @@ -70773,7 +72301,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'IndexElem', - wrapped: true, + isNode: true, fields: [ { name: 'collation', @@ -70835,7 +72363,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'IndexStmt', - wrapped: true, + isNode: true, fields: [ { name: 'accessMethod', @@ -71009,7 +72537,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'InferClause', - wrapped: true, + isNode: true, fields: [ { name: 'conname', @@ -71043,7 +72571,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'InferenceElem', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -71077,7 +72605,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'InlineCodeBlock', - wrapped: true, + isNode: true, fields: [ { name: 'atomic', @@ -71111,7 +72639,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'InsertStmt', - wrapped: true, + isNode: true, fields: [ { name: 'cols', @@ -71166,7 +72694,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Integer', - wrapped: true, + isNode: true, fields: [ { name: 'ival', @@ -71179,7 +72707,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'IntList', - wrapped: true, + isNode: true, fields: [ { name: 'items', @@ -71192,7 +72720,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'IntoClause', - wrapped: true, + isNode: true, fields: [ { name: 'accessMethod', @@ -71254,7 +72782,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JoinExpr', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -71323,7 +72851,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonAggConstructor', - wrapped: true, + isNode: true, fields: [ { name: 'agg_filter', @@ -71364,7 +72892,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonArrayAgg', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -71391,7 +72919,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonArrayConstructor', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -71425,7 +72953,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonArrayQueryConstructor', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -71466,7 +72994,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonConstructorExpr', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -71535,7 +73063,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonFormat', - wrapped: true, + isNode: true, fields: [ { name: 'encoding', @@ -71562,7 +73090,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonIsPredicate', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -71603,7 +73131,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonKeyValue', - wrapped: true, + isNode: true, fields: [ { name: 'key', @@ -71623,7 +73151,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonObjectAgg', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -71657,7 +73185,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonObjectConstructor', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -71698,7 +73226,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonOutput', - wrapped: true, + isNode: true, fields: [ { name: 'returning', @@ -71718,7 +73246,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonReturning', - wrapped: true, + isNode: true, fields: [ { name: 'format', @@ -71745,7 +73273,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonValueExpr', - wrapped: true, + isNode: true, fields: [ { name: 'format', @@ -71772,7 +73300,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'List', - wrapped: true, + isNode: true, fields: [ { name: 'items', @@ -71785,7 +73313,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ListenStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conditionname', @@ -71798,7 +73326,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'LoadStmt', - wrapped: true, + isNode: true, fields: [ { name: 'filename', @@ -71811,7 +73339,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'LockingClause', - wrapped: true, + isNode: true, fields: [ { name: 'lockedRels', @@ -71838,7 +73366,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'LockStmt', - wrapped: true, + isNode: true, fields: [ { name: 'mode', @@ -71865,7 +73393,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'MergeAction', - wrapped: true, + isNode: true, fields: [ { name: 'commandType', @@ -71913,7 +73441,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'MergeStmt', - wrapped: true, + isNode: true, fields: [ { name: 'joinCondition', @@ -71954,7 +73482,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'MergeWhenClause', - wrapped: true, + isNode: true, fields: [ { name: 'commandType', @@ -72002,7 +73530,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'MinMaxExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -72057,7 +73585,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'MultiAssignRef', - wrapped: true, + isNode: true, fields: [ { name: 'colno', @@ -72084,7 +73612,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'NamedArgExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -72125,7 +73653,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'NextValueExpr', - wrapped: true, + isNode: true, fields: [ { name: 'seqid', @@ -72152,7 +73680,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'NotifyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conditionname', @@ -72172,7 +73700,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'NullIfExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -72234,7 +73762,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'NullTest', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -72275,7 +73803,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ObjectWithArgs', - wrapped: true, + isNode: true, fields: [ { name: 'args_unspecified', @@ -72309,7 +73837,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'OidList', - wrapped: true, + isNode: true, fields: [ { name: 'items', @@ -72322,7 +73850,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'OnConflictClause', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -72363,7 +73891,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'OnConflictExpr', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -72425,7 +73953,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'OpExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -72487,7 +74015,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Param', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -72542,7 +74070,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ParamRef', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -72562,7 +74090,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ParseResult', - wrapped: false, + isNode: false, fields: [ { name: 'stmts', @@ -72582,7 +74110,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PartitionBoundSpec', - wrapped: true, + isNode: true, fields: [ { name: 'is_default', @@ -72644,7 +74172,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PartitionCmd', - wrapped: true, + isNode: true, fields: [ { name: 'bound', @@ -72671,7 +74199,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PartitionElem', - wrapped: true, + isNode: true, fields: [ { name: 'collation', @@ -72712,7 +74240,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PartitionRangeDatum', - wrapped: true, + isNode: true, fields: [ { name: 'kind', @@ -72739,7 +74267,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PartitionSpec', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -72766,7 +74294,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PLAssignStmt', - wrapped: true, + isNode: true, fields: [ { name: 'indirection', @@ -72807,7 +74335,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PrepareStmt', - wrapped: true, + isNode: true, fields: [ { name: 'argtypes', @@ -72834,7 +74362,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PublicationObjSpec', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -72868,7 +74396,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PublicationTable', - wrapped: true, + isNode: true, fields: [ { name: 'columns', @@ -72895,7 +74423,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Query', - wrapped: true, + isNode: true, fields: [ { name: 'canSetTag', @@ -73188,7 +74716,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeFunction', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -73236,7 +74764,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeSubselect', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -73263,7 +74791,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTableFunc', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -73318,7 +74846,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTableFuncCol', - wrapped: true, + isNode: true, fields: [ { name: 'coldefexpr', @@ -73373,7 +74901,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTableSample', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -73414,7 +74942,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTblEntry', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -73644,7 +75172,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTblFunction', - wrapped: true, + isNode: true, fields: [ { name: 'funccolcollations', @@ -73699,7 +75227,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTblRef', - wrapped: true, + isNode: true, fields: [ { name: 'rtindex', @@ -73712,7 +75240,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeVar', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -73767,7 +75295,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RawStmt', - wrapped: true, + isNode: true, fields: [ { name: 'stmt', @@ -73794,7 +75322,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ReassignOwnedStmt', - wrapped: true, + isNode: true, fields: [ { name: 'newrole', @@ -73814,7 +75342,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RefreshMatViewStmt', - wrapped: true, + isNode: true, fields: [ { name: 'concurrent', @@ -73841,7 +75369,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ReindexStmt', - wrapped: true, + isNode: true, fields: [ { name: 'kind', @@ -73875,7 +75403,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RelabelType', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -73930,7 +75458,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RenameStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -73992,7 +75520,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ReplicaIdentityStmt', - wrapped: true, + isNode: true, fields: [ { name: 'identity_type', @@ -74012,7 +75540,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ResTarget', - wrapped: true, + isNode: true, fields: [ { name: 'indirection', @@ -74046,7 +75574,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ReturnStmt', - wrapped: true, + isNode: true, fields: [ { name: 'returnval', @@ -74059,7 +75587,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RoleSpec', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -74086,7 +75614,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RowCompareExpr', - wrapped: true, + isNode: true, fields: [ { name: 'inputcollids', @@ -74141,7 +75669,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RowExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -74189,7 +75717,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RowMarkClause', - wrapped: true, + isNode: true, fields: [ { name: 'pushedDown', @@ -74223,7 +75751,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RTEPermissionInfo', - wrapped: true, + isNode: true, fields: [ { name: 'checkAsUser', @@ -74278,7 +75806,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RuleStmt', - wrapped: true, + isNode: true, fields: [ { name: 'actions', @@ -74333,7 +75861,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ScalarArrayOpExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -74381,7 +75909,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ScanResult', - wrapped: false, + isNode: false, fields: [ { name: 'tokens', @@ -74401,7 +75929,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ScanToken', - wrapped: false, + isNode: false, fields: [ { name: 'end', @@ -74435,7 +75963,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SecLabelStmt', - wrapped: true, + isNode: true, fields: [ { name: 'label', @@ -74469,7 +75997,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SelectStmt', - wrapped: true, + isNode: true, fields: [ { name: 'all', @@ -74615,7 +76143,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SetOperationStmt', - wrapped: true, + isNode: true, fields: [ { name: 'all', @@ -74677,7 +76205,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SetToDefault', - wrapped: true, + isNode: true, fields: [ { name: 'collation', @@ -74718,7 +76246,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SortBy', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -74759,7 +76287,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SortGroupClause', - wrapped: true, + isNode: true, fields: [ { name: 'eqop', @@ -74800,7 +76328,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SQLValueFunction', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -74841,7 +76369,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'StatsElem', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -74861,7 +76389,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'String', - wrapped: true, + isNode: true, fields: [ { name: 'sval', @@ -74874,7 +76402,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SubLink', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -74929,7 +76457,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SubPlan', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -75054,7 +76582,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SubscriptingRef', - wrapped: true, + isNode: true, fields: [ { name: 'refassgnexpr', @@ -75130,7 +76658,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TableFunc', - wrapped: true, + isNode: true, fields: [ { name: 'colcollations', @@ -75227,7 +76755,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TableLikeClause', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -75254,7 +76782,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TableSampleClause', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -75281,7 +76809,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TargetEntry', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -75343,7 +76871,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TransactionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'chain', @@ -75384,7 +76912,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TriggerTransition', - wrapped: true, + isNode: true, fields: [ { name: 'isNew', @@ -75411,7 +76939,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TruncateStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -75438,7 +76966,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TypeCast', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -75465,7 +76993,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TypeName', - wrapped: true, + isNode: true, fields: [ { name: 'arrayBounds', @@ -75527,7 +77055,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'UnlistenStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conditionname', @@ -75540,7 +77068,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'UpdateStmt', - wrapped: true, + isNode: true, fields: [ { name: 'fromClause', @@ -75588,7 +77116,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'VacuumRelation', - wrapped: true, + isNode: true, fields: [ { name: 'oid', @@ -75615,7 +77143,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'VacuumStmt', - wrapped: true, + isNode: true, fields: [ { name: 'is_vacuumcmd', @@ -75642,7 +77170,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Var', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -75711,7 +77239,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'VariableSetStmt', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -75745,7 +77273,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'VariableShowStmt', - wrapped: true, + isNode: true, fields: [ { name: 'name', @@ -75758,7 +77286,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ViewStmt', - wrapped: true, + isNode: true, fields: [ { name: 'aliases', @@ -75806,7 +77334,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'WindowClause', - wrapped: true, + isNode: true, fields: [ { name: 'copiedOrder', @@ -75917,7 +77445,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'WindowDef', - wrapped: true, + isNode: true, fields: [ { name: 'endOffset', @@ -75979,7 +77507,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'WindowFunc', - wrapped: true, + isNode: true, fields: [ { name: 'aggfilter', @@ -76062,7 +77590,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'WithCheckOption', - wrapped: true, + isNode: true, fields: [ { name: 'cascaded', @@ -76103,7 +77631,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'WithClause', - wrapped: true, + isNode: true, fields: [ { name: 'ctes', @@ -76130,7 +77658,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'XmlExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg_names', @@ -76213,7 +77741,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'XmlSerialize', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -76262,7 +77790,7 @@ export const runtimeSchema: NodeSpec[] = [ * and run the pg-proto-parser generate command to regenerate this file. */ import _o from "nested-obj"; -import { ParseResult, ScanResult, Integer, Float, Boolean, String, BitString, List, OidList, IntList, A_Const, Alias, RangeVar, TableFunc, IntoClause, Var, Param, Aggref, GroupingFunc, WindowFunc, SubscriptingRef, FuncExpr, NamedArgExpr, OpExpr, DistinctExpr, NullIfExpr, ScalarArrayOpExpr, BoolExpr, SubLink, SubPlan, AlternativeSubPlan, FieldSelect, FieldStore, RelabelType, CoerceViaIO, ArrayCoerceExpr, ConvertRowtypeExpr, CollateExpr, CaseExpr, CaseWhen, CaseTestExpr, ArrayExpr, RowExpr, RowCompareExpr, CoalesceExpr, MinMaxExpr, SQLValueFunction, XmlExpr, JsonFormat, JsonReturning, JsonValueExpr, JsonConstructorExpr, JsonIsPredicate, NullTest, BooleanTest, CoerceToDomain, CoerceToDomainValue, SetToDefault, CurrentOfExpr, NextValueExpr, InferenceElem, TargetEntry, RangeTblRef, JoinExpr, FromExpr, OnConflictExpr, Query, TypeName, ColumnRef, ParamRef, A_Expr, TypeCast, CollateClause, RoleSpec, FuncCall, A_Star, A_Indices, A_Indirection, A_ArrayExpr, ResTarget, MultiAssignRef, SortBy, WindowDef, RangeSubselect, RangeFunction, RangeTableFunc, RangeTableFuncCol, RangeTableSample, ColumnDef, TableLikeClause, IndexElem, DefElem, LockingClause, XmlSerialize, PartitionElem, PartitionSpec, PartitionBoundSpec, PartitionRangeDatum, PartitionCmd, RangeTblEntry, RTEPermissionInfo, RangeTblFunction, TableSampleClause, WithCheckOption, SortGroupClause, GroupingSet, WindowClause, RowMarkClause, WithClause, InferClause, OnConflictClause, CTESearchClause, CTECycleClause, CommonTableExpr, MergeWhenClause, MergeAction, TriggerTransition, JsonOutput, JsonKeyValue, JsonObjectConstructor, JsonArrayConstructor, JsonArrayQueryConstructor, JsonAggConstructor, JsonObjectAgg, JsonArrayAgg, RawStmt, InsertStmt, DeleteStmt, UpdateStmt, MergeStmt, SelectStmt, SetOperationStmt, ReturnStmt, PLAssignStmt, CreateSchemaStmt, AlterTableStmt, ReplicaIdentityStmt, AlterTableCmd, AlterCollationStmt, AlterDomainStmt, GrantStmt, ObjectWithArgs, AccessPriv, GrantRoleStmt, AlterDefaultPrivilegesStmt, CopyStmt, VariableSetStmt, VariableShowStmt, CreateStmt, Constraint, CreateTableSpaceStmt, DropTableSpaceStmt, AlterTableSpaceOptionsStmt, AlterTableMoveAllStmt, CreateExtensionStmt, AlterExtensionStmt, AlterExtensionContentsStmt, CreateFdwStmt, AlterFdwStmt, CreateForeignServerStmt, AlterForeignServerStmt, CreateForeignTableStmt, CreateUserMappingStmt, AlterUserMappingStmt, DropUserMappingStmt, ImportForeignSchemaStmt, CreatePolicyStmt, AlterPolicyStmt, CreateAmStmt, CreateTrigStmt, CreateEventTrigStmt, AlterEventTrigStmt, CreatePLangStmt, CreateRoleStmt, AlterRoleStmt, AlterRoleSetStmt, DropRoleStmt, CreateSeqStmt, AlterSeqStmt, DefineStmt, CreateDomainStmt, CreateOpClassStmt, CreateOpClassItem, CreateOpFamilyStmt, AlterOpFamilyStmt, DropStmt, TruncateStmt, CommentStmt, SecLabelStmt, DeclareCursorStmt, ClosePortalStmt, FetchStmt, IndexStmt, CreateStatsStmt, StatsElem, AlterStatsStmt, CreateFunctionStmt, FunctionParameter, AlterFunctionStmt, DoStmt, InlineCodeBlock, CallStmt, CallContext, RenameStmt, AlterObjectDependsStmt, AlterObjectSchemaStmt, AlterOwnerStmt, AlterOperatorStmt, AlterTypeStmt, RuleStmt, NotifyStmt, ListenStmt, UnlistenStmt, TransactionStmt, CompositeTypeStmt, CreateEnumStmt, CreateRangeStmt, AlterEnumStmt, ViewStmt, LoadStmt, CreatedbStmt, AlterDatabaseStmt, AlterDatabaseRefreshCollStmt, AlterDatabaseSetStmt, DropdbStmt, AlterSystemStmt, ClusterStmt, VacuumStmt, VacuumRelation, ExplainStmt, CreateTableAsStmt, RefreshMatViewStmt, CheckPointStmt, DiscardStmt, LockStmt, ConstraintsSetStmt, ReindexStmt, CreateConversionStmt, CreateCastStmt, CreateTransformStmt, PrepareStmt, ExecuteStmt, DeallocateStmt, DropOwnedStmt, ReassignOwnedStmt, AlterTSDictionaryStmt, AlterTSConfigurationStmt, PublicationTable, PublicationObjSpec, CreatePublicationStmt, AlterPublicationStmt, CreateSubscriptionStmt, AlterSubscriptionStmt, DropSubscriptionStmt, ScanToken } from "./wrapped"; +import { ParseResult, ScanResult, Integer, Float, Boolean, String, BitString, List, OidList, IntList, A_Const, Alias, RangeVar, TableFunc, IntoClause, Var, Param, Aggref, GroupingFunc, WindowFunc, SubscriptingRef, FuncExpr, NamedArgExpr, OpExpr, DistinctExpr, NullIfExpr, ScalarArrayOpExpr, BoolExpr, SubLink, SubPlan, AlternativeSubPlan, FieldSelect, FieldStore, RelabelType, CoerceViaIO, ArrayCoerceExpr, ConvertRowtypeExpr, CollateExpr, CaseExpr, CaseWhen, CaseTestExpr, ArrayExpr, RowExpr, RowCompareExpr, CoalesceExpr, MinMaxExpr, SQLValueFunction, XmlExpr, JsonFormat, JsonReturning, JsonValueExpr, JsonConstructorExpr, JsonIsPredicate, NullTest, BooleanTest, CoerceToDomain, CoerceToDomainValue, SetToDefault, CurrentOfExpr, NextValueExpr, InferenceElem, TargetEntry, RangeTblRef, JoinExpr, FromExpr, OnConflictExpr, Query, TypeName, ColumnRef, ParamRef, A_Expr, TypeCast, CollateClause, RoleSpec, FuncCall, A_Star, A_Indices, A_Indirection, A_ArrayExpr, ResTarget, MultiAssignRef, SortBy, WindowDef, RangeSubselect, RangeFunction, RangeTableFunc, RangeTableFuncCol, RangeTableSample, ColumnDef, TableLikeClause, IndexElem, DefElem, LockingClause, XmlSerialize, PartitionElem, PartitionSpec, PartitionBoundSpec, PartitionRangeDatum, PartitionCmd, RangeTblEntry, RTEPermissionInfo, RangeTblFunction, TableSampleClause, WithCheckOption, SortGroupClause, GroupingSet, WindowClause, RowMarkClause, WithClause, InferClause, OnConflictClause, CTESearchClause, CTECycleClause, CommonTableExpr, MergeWhenClause, MergeAction, TriggerTransition, JsonOutput, JsonKeyValue, JsonObjectConstructor, JsonArrayConstructor, JsonArrayQueryConstructor, JsonAggConstructor, JsonObjectAgg, JsonArrayAgg, RawStmt, InsertStmt, DeleteStmt, UpdateStmt, MergeStmt, SelectStmt, SetOperationStmt, ReturnStmt, PLAssignStmt, CreateSchemaStmt, AlterTableStmt, ReplicaIdentityStmt, AlterTableCmd, AlterCollationStmt, AlterDomainStmt, GrantStmt, ObjectWithArgs, AccessPriv, GrantRoleStmt, AlterDefaultPrivilegesStmt, CopyStmt, VariableSetStmt, VariableShowStmt, CreateStmt, Constraint, CreateTableSpaceStmt, DropTableSpaceStmt, AlterTableSpaceOptionsStmt, AlterTableMoveAllStmt, CreateExtensionStmt, AlterExtensionStmt, AlterExtensionContentsStmt, CreateFdwStmt, AlterFdwStmt, CreateForeignServerStmt, AlterForeignServerStmt, CreateForeignTableStmt, CreateUserMappingStmt, AlterUserMappingStmt, DropUserMappingStmt, ImportForeignSchemaStmt, CreatePolicyStmt, AlterPolicyStmt, CreateAmStmt, CreateTrigStmt, CreateEventTrigStmt, AlterEventTrigStmt, CreatePLangStmt, CreateRoleStmt, AlterRoleStmt, AlterRoleSetStmt, DropRoleStmt, CreateSeqStmt, AlterSeqStmt, DefineStmt, CreateDomainStmt, CreateOpClassStmt, CreateOpClassItem, CreateOpFamilyStmt, AlterOpFamilyStmt, DropStmt, TruncateStmt, CommentStmt, SecLabelStmt, DeclareCursorStmt, ClosePortalStmt, FetchStmt, IndexStmt, CreateStatsStmt, StatsElem, AlterStatsStmt, CreateFunctionStmt, FunctionParameter, AlterFunctionStmt, DoStmt, InlineCodeBlock, CallStmt, CallContext, RenameStmt, AlterObjectDependsStmt, AlterObjectSchemaStmt, AlterOwnerStmt, AlterOperatorStmt, AlterTypeStmt, RuleStmt, NotifyStmt, ListenStmt, UnlistenStmt, TransactionStmt, CompositeTypeStmt, CreateEnumStmt, CreateRangeStmt, AlterEnumStmt, ViewStmt, LoadStmt, CreatedbStmt, AlterDatabaseStmt, AlterDatabaseRefreshCollStmt, AlterDatabaseSetStmt, DropdbStmt, AlterSystemStmt, ClusterStmt, VacuumStmt, VacuumRelation, ExplainStmt, CreateTableAsStmt, RefreshMatViewStmt, CheckPointStmt, DiscardStmt, LockStmt, ConstraintsSetStmt, ReindexStmt, CreateConversionStmt, CreateCastStmt, CreateTransformStmt, PrepareStmt, ExecuteStmt, DeallocateStmt, DropOwnedStmt, ReassignOwnedStmt, AlterTSDictionaryStmt, AlterTSConfigurationStmt, PublicationTable, PublicationObjSpec, CreatePublicationStmt, AlterPublicationStmt, CreateSubscriptionStmt, AlterSubscriptionStmt, DropSubscriptionStmt, ScanToken } from "./types"; export default { parseResult(_p?: ParseResult): ParseResult { const _j = {} as ParseResult; @@ -78599,7 +80127,6 @@ exports[`runtime-schema typescript format enabled 1`] = ` * DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, * and run the pg-proto-parser generate command to regenerate this file. */ -// Generated by pg-proto-parser export interface FieldSpec { name: string; type: string; @@ -78609,13 +80136,13 @@ export interface FieldSpec { } export interface NodeSpec { name: string; - wrapped: boolean; + isNode: boolean; fields: FieldSpec[]; } export const runtimeSchema: NodeSpec[] = [ { name: 'A_ArrayExpr', - wrapped: true, + isNode: true, fields: [ { name: 'elements', @@ -78635,7 +80162,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'A_Const', - wrapped: true, + isNode: true, fields: [ { name: 'boolval', @@ -78690,7 +80217,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'A_Expr', - wrapped: true, + isNode: true, fields: [ { name: 'kind', @@ -78731,7 +80258,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'A_Indices', - wrapped: true, + isNode: true, fields: [ { name: 'is_slice', @@ -78758,7 +80285,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'A_Indirection', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -78778,14 +80305,14 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'A_Star', - wrapped: true, + isNode: true, fields: [ ] }, { name: 'AccessPriv', - wrapped: true, + isNode: true, fields: [ { name: 'cols', @@ -78805,7 +80332,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Aggref', - wrapped: true, + isNode: true, fields: [ { name: 'aggargtypes', @@ -78944,7 +80471,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Alias', - wrapped: true, + isNode: true, fields: [ { name: 'aliasname', @@ -78964,7 +80491,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterCollationStmt', - wrapped: true, + isNode: true, fields: [ { name: 'collname', @@ -78977,7 +80504,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterDatabaseRefreshCollStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dbname', @@ -78990,7 +80517,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterDatabaseSetStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dbname', @@ -79010,7 +80537,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterDatabaseStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dbname', @@ -79030,7 +80557,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterDefaultPrivilegesStmt', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -79050,7 +80577,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterDomainStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -79098,7 +80625,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterEnumStmt', - wrapped: true, + isNode: true, fields: [ { name: 'newVal', @@ -79146,7 +80673,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterEventTrigStmt', - wrapped: true, + isNode: true, fields: [ { name: 'tgenabled', @@ -79166,7 +80693,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterExtensionContentsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -79200,7 +80727,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterExtensionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'extname', @@ -79220,7 +80747,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterFdwStmt', - wrapped: true, + isNode: true, fields: [ { name: 'fdwname', @@ -79247,7 +80774,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterForeignServerStmt', - wrapped: true, + isNode: true, fields: [ { name: 'has_version', @@ -79281,7 +80808,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterFunctionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'actions', @@ -79308,7 +80835,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlternativeSubPlan', - wrapped: true, + isNode: true, fields: [ { name: 'subplans', @@ -79328,7 +80855,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterObjectDependsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'extname', @@ -79369,7 +80896,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterObjectSchemaStmt', - wrapped: true, + isNode: true, fields: [ { name: 'missing_ok', @@ -79410,7 +80937,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterOperatorStmt', - wrapped: true, + isNode: true, fields: [ { name: 'opername', @@ -79430,7 +80957,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterOpFamilyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'amname', @@ -79464,7 +80991,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterOwnerStmt', - wrapped: true, + isNode: true, fields: [ { name: 'newowner', @@ -79498,7 +81025,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterPolicyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'policy_name', @@ -79539,7 +81066,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterPublicationStmt', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -79580,7 +81107,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterRoleSetStmt', - wrapped: true, + isNode: true, fields: [ { name: 'database', @@ -79607,7 +81134,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterRoleStmt', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -79634,7 +81161,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterSeqStmt', - wrapped: true, + isNode: true, fields: [ { name: 'for_identity', @@ -79668,7 +81195,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterStatsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'defnames', @@ -79695,7 +81222,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterSubscriptionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conninfo', @@ -79736,7 +81263,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterSystemStmt', - wrapped: true, + isNode: true, fields: [ { name: 'setstmt', @@ -79749,7 +81276,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTableCmd', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -79811,7 +81338,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTableMoveAllStmt', - wrapped: true, + isNode: true, fields: [ { name: 'new_tablespacename', @@ -79852,7 +81379,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTableSpaceOptionsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'isReset', @@ -79879,7 +81406,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTableStmt', - wrapped: true, + isNode: true, fields: [ { name: 'cmds', @@ -79913,7 +81440,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTSConfigurationStmt', - wrapped: true, + isNode: true, fields: [ { name: 'cfgname', @@ -79968,7 +81495,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTSDictionaryStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dictname', @@ -79988,7 +81515,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterTypeStmt', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -80008,7 +81535,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'AlterUserMappingStmt', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -80035,7 +81562,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ArrayCoerceExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -80097,7 +81624,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ArrayExpr', - wrapped: true, + isNode: true, fields: [ { name: 'array_collid', @@ -80152,7 +81679,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'BitString', - wrapped: true, + isNode: true, fields: [ { name: 'bsval', @@ -80165,7 +81692,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Boolean', - wrapped: true, + isNode: true, fields: [ { name: 'boolval', @@ -80178,7 +81705,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'BooleanTest', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -80212,7 +81739,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'BoolExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -80246,7 +81773,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CallContext', - wrapped: true, + isNode: true, fields: [ { name: 'atomic', @@ -80259,7 +81786,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CallStmt', - wrapped: true, + isNode: true, fields: [ { name: 'funccall', @@ -80286,7 +81813,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CaseExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -80341,7 +81868,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CaseTestExpr', - wrapped: true, + isNode: true, fields: [ { name: 'collation', @@ -80375,7 +81902,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CaseWhen', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -80409,14 +81936,14 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CheckPointStmt', - wrapped: true, + isNode: true, fields: [ ] }, { name: 'ClosePortalStmt', - wrapped: true, + isNode: true, fields: [ { name: 'portalname', @@ -80429,7 +81956,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ClusterStmt', - wrapped: true, + isNode: true, fields: [ { name: 'indexname', @@ -80456,7 +81983,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CoalesceExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -80497,7 +82024,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CoerceToDomain', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -80552,7 +82079,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CoerceToDomainValue', - wrapped: true, + isNode: true, fields: [ { name: 'collation', @@ -80593,7 +82120,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CoerceViaIO', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -80641,7 +82168,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CollateClause', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -80668,7 +82195,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CollateExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -80702,7 +82229,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ColumnDef', - wrapped: true, + isNode: true, fields: [ { name: 'collClause', @@ -80841,7 +82368,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ColumnRef', - wrapped: true, + isNode: true, fields: [ { name: 'fields', @@ -80861,7 +82388,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CommentStmt', - wrapped: true, + isNode: true, fields: [ { name: 'comment', @@ -80888,7 +82415,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CommonTableExpr', - wrapped: true, + isNode: true, fields: [ { name: 'aliascolnames', @@ -80985,7 +82512,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CompositeTypeStmt', - wrapped: true, + isNode: true, fields: [ { name: 'coldeflist', @@ -81005,7 +82532,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Constraint', - wrapped: true, + isNode: true, fields: [ { name: 'access_method', @@ -81221,7 +82748,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ConstraintsSetStmt', - wrapped: true, + isNode: true, fields: [ { name: 'constraints', @@ -81241,7 +82768,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ConvertRowtypeExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -81282,7 +82809,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CopyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'attlist', @@ -81344,7 +82871,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateAmStmt', - wrapped: true, + isNode: true, fields: [ { name: 'amname', @@ -81371,7 +82898,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateCastStmt', - wrapped: true, + isNode: true, fields: [ { name: 'context', @@ -81412,7 +82939,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateConversionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conversion_name', @@ -81453,7 +82980,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreatedbStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dbname', @@ -81473,7 +83000,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateDomainStmt', - wrapped: true, + isNode: true, fields: [ { name: 'collClause', @@ -81507,7 +83034,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateEnumStmt', - wrapped: true, + isNode: true, fields: [ { name: 'typeName', @@ -81527,7 +83054,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateEventTrigStmt', - wrapped: true, + isNode: true, fields: [ { name: 'eventname', @@ -81561,7 +83088,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateExtensionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'extname', @@ -81588,7 +83115,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateFdwStmt', - wrapped: true, + isNode: true, fields: [ { name: 'fdwname', @@ -81615,7 +83142,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateForeignServerStmt', - wrapped: true, + isNode: true, fields: [ { name: 'fdwname', @@ -81663,7 +83190,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateForeignTableStmt', - wrapped: true, + isNode: true, fields: [ { name: 'base', @@ -81690,7 +83217,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateFunctionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'funcname', @@ -81745,7 +83272,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateOpClassItem', - wrapped: true, + isNode: true, fields: [ { name: 'class_args', @@ -81793,7 +83320,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateOpClassStmt', - wrapped: true, + isNode: true, fields: [ { name: 'amname', @@ -81841,7 +83368,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateOpFamilyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'amname', @@ -81861,7 +83388,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreatePLangStmt', - wrapped: true, + isNode: true, fields: [ { name: 'plhandler', @@ -81909,7 +83436,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreatePolicyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'cmd_name', @@ -81964,7 +83491,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreatePublicationStmt', - wrapped: true, + isNode: true, fields: [ { name: 'for_all_tables', @@ -81998,7 +83525,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateRangeStmt', - wrapped: true, + isNode: true, fields: [ { name: 'params', @@ -82018,7 +83545,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateRoleStmt', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -82045,7 +83572,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateSchemaStmt', - wrapped: true, + isNode: true, fields: [ { name: 'authrole', @@ -82079,7 +83606,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateSeqStmt', - wrapped: true, + isNode: true, fields: [ { name: 'for_identity', @@ -82120,7 +83647,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateStatsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'defnames', @@ -82175,7 +83702,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateStmt', - wrapped: true, + isNode: true, fields: [ { name: 'accessMethod', @@ -82265,7 +83792,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateSubscriptionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conninfo', @@ -82299,7 +83826,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateTableAsStmt', - wrapped: true, + isNode: true, fields: [ { name: 'if_not_exists', @@ -82340,7 +83867,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateTableSpaceStmt', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -82374,7 +83901,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateTransformStmt', - wrapped: true, + isNode: true, fields: [ { name: 'fromsql', @@ -82415,7 +83942,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateTrigStmt', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -82526,7 +84053,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CreateUserMappingStmt', - wrapped: true, + isNode: true, fields: [ { name: 'if_not_exists', @@ -82560,7 +84087,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CTECycleClause', - wrapped: true, + isNode: true, fields: [ { name: 'cycle_col_list', @@ -82636,7 +84163,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CTESearchClause', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -82670,7 +84197,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'CurrentOfExpr', - wrapped: true, + isNode: true, fields: [ { name: 'cursor_name', @@ -82704,7 +84231,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DeallocateStmt', - wrapped: true, + isNode: true, fields: [ { name: 'name', @@ -82717,7 +84244,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DeclareCursorStmt', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -82744,7 +84271,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DefElem', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -82785,7 +84312,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DefineStmt', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -82840,7 +84367,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DeleteStmt', - wrapped: true, + isNode: true, fields: [ { name: 'relation', @@ -82881,7 +84408,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DiscardStmt', - wrapped: true, + isNode: true, fields: [ { name: 'target', @@ -82894,7 +84421,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DistinctExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -82956,7 +84483,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DoStmt', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -82969,7 +84496,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropdbStmt', - wrapped: true, + isNode: true, fields: [ { name: 'dbname', @@ -82996,7 +84523,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropOwnedStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -83016,7 +84543,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropRoleStmt', - wrapped: true, + isNode: true, fields: [ { name: 'missing_ok', @@ -83036,7 +84563,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -83077,7 +84604,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropSubscriptionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -83104,7 +84631,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropTableSpaceStmt', - wrapped: true, + isNode: true, fields: [ { name: 'missing_ok', @@ -83124,7 +84651,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'DropUserMappingStmt', - wrapped: true, + isNode: true, fields: [ { name: 'missing_ok', @@ -83151,7 +84678,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ExecuteStmt', - wrapped: true, + isNode: true, fields: [ { name: 'name', @@ -83171,7 +84698,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ExplainStmt', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -83191,7 +84718,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FetchStmt', - wrapped: true, + isNode: true, fields: [ { name: 'direction', @@ -83225,7 +84752,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FieldSelect', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -83273,7 +84800,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FieldStore', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -83314,7 +84841,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Float', - wrapped: true, + isNode: true, fields: [ { name: 'fval', @@ -83327,7 +84854,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FromExpr', - wrapped: true, + isNode: true, fields: [ { name: 'fromlist', @@ -83347,7 +84874,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FuncCall', - wrapped: true, + isNode: true, fields: [ { name: 'agg_distinct', @@ -83430,7 +84957,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FuncExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -83506,7 +85033,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'FunctionParameter', - wrapped: true, + isNode: true, fields: [ { name: 'argType', @@ -83540,7 +85067,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'GrantRoleStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -83588,7 +85115,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'GrantStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -83657,7 +85184,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'GroupingFunc', - wrapped: true, + isNode: true, fields: [ { name: 'agglevelsup', @@ -83698,7 +85225,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'GroupingSet', - wrapped: true, + isNode: true, fields: [ { name: 'content', @@ -83725,7 +85252,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ImportForeignSchemaStmt', - wrapped: true, + isNode: true, fields: [ { name: 'list_type', @@ -83773,7 +85300,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'IndexElem', - wrapped: true, + isNode: true, fields: [ { name: 'collation', @@ -83835,7 +85362,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'IndexStmt', - wrapped: true, + isNode: true, fields: [ { name: 'accessMethod', @@ -84009,7 +85536,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'InferClause', - wrapped: true, + isNode: true, fields: [ { name: 'conname', @@ -84043,7 +85570,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'InferenceElem', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -84077,7 +85604,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'InlineCodeBlock', - wrapped: true, + isNode: true, fields: [ { name: 'atomic', @@ -84111,7 +85638,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'InsertStmt', - wrapped: true, + isNode: true, fields: [ { name: 'cols', @@ -84166,7 +85693,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Integer', - wrapped: true, + isNode: true, fields: [ { name: 'ival', @@ -84179,7 +85706,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'IntList', - wrapped: true, + isNode: true, fields: [ { name: 'items', @@ -84192,7 +85719,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'IntoClause', - wrapped: true, + isNode: true, fields: [ { name: 'accessMethod', @@ -84254,7 +85781,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JoinExpr', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -84323,7 +85850,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonAggConstructor', - wrapped: true, + isNode: true, fields: [ { name: 'agg_filter', @@ -84364,7 +85891,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonArrayAgg', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -84391,7 +85918,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonArrayConstructor', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -84425,7 +85952,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonArrayQueryConstructor', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -84466,7 +85993,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonConstructorExpr', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -84535,7 +86062,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonFormat', - wrapped: true, + isNode: true, fields: [ { name: 'encoding', @@ -84562,7 +86089,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonIsPredicate', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -84603,7 +86130,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonKeyValue', - wrapped: true, + isNode: true, fields: [ { name: 'key', @@ -84623,7 +86150,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonObjectAgg', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -84657,7 +86184,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonObjectConstructor', - wrapped: true, + isNode: true, fields: [ { name: 'absent_on_null', @@ -84698,7 +86225,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonOutput', - wrapped: true, + isNode: true, fields: [ { name: 'returning', @@ -84718,7 +86245,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonReturning', - wrapped: true, + isNode: true, fields: [ { name: 'format', @@ -84745,7 +86272,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'JsonValueExpr', - wrapped: true, + isNode: true, fields: [ { name: 'format', @@ -84772,7 +86299,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'List', - wrapped: true, + isNode: true, fields: [ { name: 'items', @@ -84785,7 +86312,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ListenStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conditionname', @@ -84798,7 +86325,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'LoadStmt', - wrapped: true, + isNode: true, fields: [ { name: 'filename', @@ -84811,7 +86338,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'LockingClause', - wrapped: true, + isNode: true, fields: [ { name: 'lockedRels', @@ -84838,7 +86365,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'LockStmt', - wrapped: true, + isNode: true, fields: [ { name: 'mode', @@ -84865,7 +86392,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'MergeAction', - wrapped: true, + isNode: true, fields: [ { name: 'commandType', @@ -84913,7 +86440,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'MergeStmt', - wrapped: true, + isNode: true, fields: [ { name: 'joinCondition', @@ -84954,7 +86481,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'MergeWhenClause', - wrapped: true, + isNode: true, fields: [ { name: 'commandType', @@ -85002,7 +86529,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'MinMaxExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -85057,7 +86584,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'MultiAssignRef', - wrapped: true, + isNode: true, fields: [ { name: 'colno', @@ -85084,7 +86611,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'NamedArgExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -85125,7 +86652,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'NextValueExpr', - wrapped: true, + isNode: true, fields: [ { name: 'seqid', @@ -85152,7 +86679,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'NotifyStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conditionname', @@ -85172,7 +86699,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'NullIfExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -85234,7 +86761,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'NullTest', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -85275,7 +86802,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ObjectWithArgs', - wrapped: true, + isNode: true, fields: [ { name: 'args_unspecified', @@ -85309,7 +86836,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'OidList', - wrapped: true, + isNode: true, fields: [ { name: 'items', @@ -85322,7 +86849,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'OnConflictClause', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -85363,7 +86890,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'OnConflictExpr', - wrapped: true, + isNode: true, fields: [ { name: 'action', @@ -85425,7 +86952,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'OpExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -85487,7 +87014,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Param', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -85542,7 +87069,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ParamRef', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -85562,7 +87089,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ParseResult', - wrapped: false, + isNode: false, fields: [ { name: 'stmts', @@ -85582,7 +87109,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PartitionBoundSpec', - wrapped: true, + isNode: true, fields: [ { name: 'is_default', @@ -85644,7 +87171,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PartitionCmd', - wrapped: true, + isNode: true, fields: [ { name: 'bound', @@ -85671,7 +87198,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PartitionElem', - wrapped: true, + isNode: true, fields: [ { name: 'collation', @@ -85712,7 +87239,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PartitionRangeDatum', - wrapped: true, + isNode: true, fields: [ { name: 'kind', @@ -85739,7 +87266,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PartitionSpec', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -85766,7 +87293,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PLAssignStmt', - wrapped: true, + isNode: true, fields: [ { name: 'indirection', @@ -85807,7 +87334,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PrepareStmt', - wrapped: true, + isNode: true, fields: [ { name: 'argtypes', @@ -85834,7 +87361,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PublicationObjSpec', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -85868,7 +87395,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'PublicationTable', - wrapped: true, + isNode: true, fields: [ { name: 'columns', @@ -85895,7 +87422,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Query', - wrapped: true, + isNode: true, fields: [ { name: 'canSetTag', @@ -86188,7 +87715,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeFunction', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -86236,7 +87763,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeSubselect', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -86263,7 +87790,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTableFunc', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -86318,7 +87845,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTableFuncCol', - wrapped: true, + isNode: true, fields: [ { name: 'coldefexpr', @@ -86373,7 +87900,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTableSample', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -86414,7 +87941,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTblEntry', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -86644,7 +88171,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTblFunction', - wrapped: true, + isNode: true, fields: [ { name: 'funccolcollations', @@ -86699,7 +88226,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeTblRef', - wrapped: true, + isNode: true, fields: [ { name: 'rtindex', @@ -86712,7 +88239,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RangeVar', - wrapped: true, + isNode: true, fields: [ { name: 'alias', @@ -86767,7 +88294,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RawStmt', - wrapped: true, + isNode: true, fields: [ { name: 'stmt', @@ -86794,7 +88321,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ReassignOwnedStmt', - wrapped: true, + isNode: true, fields: [ { name: 'newrole', @@ -86814,7 +88341,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RefreshMatViewStmt', - wrapped: true, + isNode: true, fields: [ { name: 'concurrent', @@ -86841,7 +88368,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ReindexStmt', - wrapped: true, + isNode: true, fields: [ { name: 'kind', @@ -86875,7 +88402,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RelabelType', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -86930,7 +88457,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RenameStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -86992,7 +88519,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ReplicaIdentityStmt', - wrapped: true, + isNode: true, fields: [ { name: 'identity_type', @@ -87012,7 +88539,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ResTarget', - wrapped: true, + isNode: true, fields: [ { name: 'indirection', @@ -87046,7 +88573,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ReturnStmt', - wrapped: true, + isNode: true, fields: [ { name: 'returnval', @@ -87059,7 +88586,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RoleSpec', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -87086,7 +88613,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RowCompareExpr', - wrapped: true, + isNode: true, fields: [ { name: 'inputcollids', @@ -87141,7 +88668,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RowExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -87189,7 +88716,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RowMarkClause', - wrapped: true, + isNode: true, fields: [ { name: 'pushedDown', @@ -87223,7 +88750,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RTEPermissionInfo', - wrapped: true, + isNode: true, fields: [ { name: 'checkAsUser', @@ -87278,7 +88805,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'RuleStmt', - wrapped: true, + isNode: true, fields: [ { name: 'actions', @@ -87333,7 +88860,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ScalarArrayOpExpr', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -87381,7 +88908,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ScanResult', - wrapped: false, + isNode: false, fields: [ { name: 'tokens', @@ -87401,7 +88928,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ScanToken', - wrapped: false, + isNode: false, fields: [ { name: 'end', @@ -87435,7 +88962,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SecLabelStmt', - wrapped: true, + isNode: true, fields: [ { name: 'label', @@ -87469,7 +88996,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SelectStmt', - wrapped: true, + isNode: true, fields: [ { name: 'all', @@ -87615,7 +89142,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SetOperationStmt', - wrapped: true, + isNode: true, fields: [ { name: 'all', @@ -87677,7 +89204,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SetToDefault', - wrapped: true, + isNode: true, fields: [ { name: 'collation', @@ -87718,7 +89245,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SortBy', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -87759,7 +89286,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SortGroupClause', - wrapped: true, + isNode: true, fields: [ { name: 'eqop', @@ -87800,7 +89327,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SQLValueFunction', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -87841,7 +89368,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'StatsElem', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -87861,7 +89388,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'String', - wrapped: true, + isNode: true, fields: [ { name: 'sval', @@ -87874,7 +89401,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SubLink', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -87929,7 +89456,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SubPlan', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -88054,7 +89581,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'SubscriptingRef', - wrapped: true, + isNode: true, fields: [ { name: 'refassgnexpr', @@ -88130,7 +89657,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TableFunc', - wrapped: true, + isNode: true, fields: [ { name: 'colcollations', @@ -88227,7 +89754,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TableLikeClause', - wrapped: true, + isNode: true, fields: [ { name: 'options', @@ -88254,7 +89781,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TableSampleClause', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -88281,7 +89808,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TargetEntry', - wrapped: true, + isNode: true, fields: [ { name: 'expr', @@ -88343,7 +89870,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TransactionStmt', - wrapped: true, + isNode: true, fields: [ { name: 'chain', @@ -88384,7 +89911,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TriggerTransition', - wrapped: true, + isNode: true, fields: [ { name: 'isNew', @@ -88411,7 +89938,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TruncateStmt', - wrapped: true, + isNode: true, fields: [ { name: 'behavior', @@ -88438,7 +89965,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TypeCast', - wrapped: true, + isNode: true, fields: [ { name: 'arg', @@ -88465,7 +89992,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'TypeName', - wrapped: true, + isNode: true, fields: [ { name: 'arrayBounds', @@ -88527,7 +90054,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'UnlistenStmt', - wrapped: true, + isNode: true, fields: [ { name: 'conditionname', @@ -88540,7 +90067,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'UpdateStmt', - wrapped: true, + isNode: true, fields: [ { name: 'fromClause', @@ -88588,7 +90115,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'VacuumRelation', - wrapped: true, + isNode: true, fields: [ { name: 'oid', @@ -88615,7 +90142,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'VacuumStmt', - wrapped: true, + isNode: true, fields: [ { name: 'is_vacuumcmd', @@ -88642,7 +90169,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'Var', - wrapped: true, + isNode: true, fields: [ { name: 'location', @@ -88711,7 +90238,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'VariableSetStmt', - wrapped: true, + isNode: true, fields: [ { name: 'args', @@ -88745,7 +90272,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'VariableShowStmt', - wrapped: true, + isNode: true, fields: [ { name: 'name', @@ -88758,7 +90285,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'ViewStmt', - wrapped: true, + isNode: true, fields: [ { name: 'aliases', @@ -88806,7 +90333,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'WindowClause', - wrapped: true, + isNode: true, fields: [ { name: 'copiedOrder', @@ -88917,7 +90444,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'WindowDef', - wrapped: true, + isNode: true, fields: [ { name: 'endOffset', @@ -88979,7 +90506,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'WindowFunc', - wrapped: true, + isNode: true, fields: [ { name: 'aggfilter', @@ -89062,7 +90589,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'WithCheckOption', - wrapped: true, + isNode: true, fields: [ { name: 'cascaded', @@ -89103,7 +90630,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'WithClause', - wrapped: true, + isNode: true, fields: [ { name: 'ctes', @@ -89130,7 +90657,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'XmlExpr', - wrapped: true, + isNode: true, fields: [ { name: 'arg_names', @@ -89213,7 +90740,7 @@ export const runtimeSchema: NodeSpec[] = [ }, { name: 'XmlSerialize', - wrapped: true, + isNode: true, fields: [ { name: 'expr', diff --git a/packages/proto-parser/__tests__/__snapshots__/types.test.ts.snap b/packages/proto-parser/__tests__/__snapshots__/types.test.ts.snap index 98193ebb..f4727dc6 100644 --- a/packages/proto-parser/__tests__/__snapshots__/types.test.ts.snap +++ b/packages/proto-parser/__tests__/__snapshots__/types.test.ts.snap @@ -9,5474 +9,2851 @@ exports[`types fieldsRequired 1`] = ` * and run the pg-proto-parser generate command to regenerate this file. */ import { OverridingKind, QuerySource, SortByDir, SortByNulls, SetQuantifier, A_Expr_Kind, RoleSpecType, TableLikeOption, DefElemAction, PartitionStrategy, PartitionRangeDatumKind, RTEKind, WCOKind, GroupingSetKind, CTEMaterialize, SetOperation, ObjectType, DropBehavior, AlterTableType, GrantTargetType, VariableSetKind, ConstrType, ImportForeignSchemaType, RoleStmtType, FetchDirection, FunctionParameterMode, TransactionStmtKind, ViewCheckOption, DiscardMode, ReindexObjectType, AlterTSConfigType, PublicationObjSpecType, AlterPublicationAction, AlterSubscriptionType, OnCommitAction, ParamKind, CoercionContext, CoercionForm, BoolExprType, SubLinkType, RowCompareType, MinMaxOp, SQLValueFunctionOp, XmlExprOp, XmlOptionType, JsonEncoding, JsonFormatType, JsonConstructorType, JsonValueType, NullTestType, BoolTestType, CmdType, JoinType, AggStrategy, AggSplit, SetOpCmd, SetOpStrategy, OnConflictAction, LimitOption, LockClauseStrength, LockWaitPolicy, LockTupleMode, KeywordKind, Token } from "./enums"; -export type Node = ParseResult | ScanResult | Integer | Float | Boolean | String | BitString | List | OidList | IntList | A_Const | Alias | RangeVar | TableFunc | IntoClause | Var | Param | Aggref | GroupingFunc | WindowFunc | SubscriptingRef | FuncExpr | NamedArgExpr | OpExpr | DistinctExpr | NullIfExpr | ScalarArrayOpExpr | BoolExpr | SubLink | SubPlan | AlternativeSubPlan | FieldSelect | FieldStore | RelabelType | CoerceViaIO | ArrayCoerceExpr | ConvertRowtypeExpr | CollateExpr | CaseExpr | CaseWhen | CaseTestExpr | ArrayExpr | RowExpr | RowCompareExpr | CoalesceExpr | MinMaxExpr | SQLValueFunction | XmlExpr | JsonFormat | JsonReturning | JsonValueExpr | JsonConstructorExpr | JsonIsPredicate | NullTest | BooleanTest | CoerceToDomain | CoerceToDomainValue | SetToDefault | CurrentOfExpr | NextValueExpr | InferenceElem | TargetEntry | RangeTblRef | JoinExpr | FromExpr | OnConflictExpr | Query | TypeName | ColumnRef | ParamRef | A_Expr | TypeCast | CollateClause | RoleSpec | FuncCall | A_Star | A_Indices | A_Indirection | A_ArrayExpr | ResTarget | MultiAssignRef | SortBy | WindowDef | RangeSubselect | RangeFunction | RangeTableFunc | RangeTableFuncCol | RangeTableSample | ColumnDef | TableLikeClause | IndexElem | DefElem | LockingClause | XmlSerialize | PartitionElem | PartitionSpec | PartitionBoundSpec | PartitionRangeDatum | PartitionCmd | RangeTblEntry | RTEPermissionInfo | RangeTblFunction | TableSampleClause | WithCheckOption | SortGroupClause | GroupingSet | WindowClause | RowMarkClause | WithClause | InferClause | OnConflictClause | CTESearchClause | CTECycleClause | CommonTableExpr | MergeWhenClause | MergeAction | TriggerTransition | JsonOutput | JsonKeyValue | JsonObjectConstructor | JsonArrayConstructor | JsonArrayQueryConstructor | JsonAggConstructor | JsonObjectAgg | JsonArrayAgg | RawStmt | InsertStmt | DeleteStmt | UpdateStmt | MergeStmt | SelectStmt | SetOperationStmt | ReturnStmt | PLAssignStmt | CreateSchemaStmt | AlterTableStmt | ReplicaIdentityStmt | AlterTableCmd | AlterCollationStmt | AlterDomainStmt | GrantStmt | ObjectWithArgs | AccessPriv | GrantRoleStmt | AlterDefaultPrivilegesStmt | CopyStmt | VariableSetStmt | VariableShowStmt | CreateStmt | Constraint | CreateTableSpaceStmt | DropTableSpaceStmt | AlterTableSpaceOptionsStmt | AlterTableMoveAllStmt | CreateExtensionStmt | AlterExtensionStmt | AlterExtensionContentsStmt | CreateFdwStmt | AlterFdwStmt | CreateForeignServerStmt | AlterForeignServerStmt | CreateForeignTableStmt | CreateUserMappingStmt | AlterUserMappingStmt | DropUserMappingStmt | ImportForeignSchemaStmt | CreatePolicyStmt | AlterPolicyStmt | CreateAmStmt | CreateTrigStmt | CreateEventTrigStmt | AlterEventTrigStmt | CreatePLangStmt | CreateRoleStmt | AlterRoleStmt | AlterRoleSetStmt | DropRoleStmt | CreateSeqStmt | AlterSeqStmt | DefineStmt | CreateDomainStmt | CreateOpClassStmt | CreateOpClassItem | CreateOpFamilyStmt | AlterOpFamilyStmt | DropStmt | TruncateStmt | CommentStmt | SecLabelStmt | DeclareCursorStmt | ClosePortalStmt | FetchStmt | IndexStmt | CreateStatsStmt | StatsElem | AlterStatsStmt | CreateFunctionStmt | FunctionParameter | AlterFunctionStmt | DoStmt | InlineCodeBlock | CallStmt | CallContext | RenameStmt | AlterObjectDependsStmt | AlterObjectSchemaStmt | AlterOwnerStmt | AlterOperatorStmt | AlterTypeStmt | RuleStmt | NotifyStmt | ListenStmt | UnlistenStmt | TransactionStmt | CompositeTypeStmt | CreateEnumStmt | CreateRangeStmt | AlterEnumStmt | ViewStmt | LoadStmt | CreatedbStmt | AlterDatabaseStmt | AlterDatabaseRefreshCollStmt | AlterDatabaseSetStmt | DropdbStmt | AlterSystemStmt | ClusterStmt | VacuumStmt | VacuumRelation | ExplainStmt | CreateTableAsStmt | RefreshMatViewStmt | CheckPointStmt | DiscardStmt | LockStmt | ConstraintsSetStmt | ReindexStmt | CreateConversionStmt | CreateCastStmt | CreateTransformStmt | PrepareStmt | ExecuteStmt | DeallocateStmt | DropOwnedStmt | ReassignOwnedStmt | AlterTSDictionaryStmt | AlterTSConfigurationStmt | PublicationTable | PublicationObjSpec | CreatePublicationStmt | AlterPublicationStmt | CreateSubscriptionStmt | AlterSubscriptionStmt | DropSubscriptionStmt | ScanToken; -export interface ParseResult { - version: number; - stmts: RawStmt[]; -} -export interface ScanResult { - version: number; - tokens: ScanToken[]; -} -export interface Integer { - ival: number; -} -export interface Float { - fval: string; -} -export interface Boolean { - boolval: boolean; -} -export interface String { - sval: string; -} -export interface BitString { - bsval: string; -} -export interface List { - items: Node[]; -} -export interface OidList { - items: Node[]; -} -export interface IntList { - items: Node[]; -} -export interface A_Const { - ival: Integer; - fval: Float; - boolval: Boolean; - sval: String; - bsval: BitString; - isnull: boolean; - location: number; -} -export interface Alias { - aliasname: string; - colnames: Node[]; -} -export interface RangeVar { - catalogname: string; - schemaname: string; - relname: string; - inh: boolean; - relpersistence: string; - alias: Alias; - location: number; -} -export interface TableFunc { - ns_uris: Node[]; - ns_names: Node[]; - docexpr: Node; - rowexpr: Node; - colnames: Node[]; - coltypes: Node[]; - coltypmods: Node[]; - colcollations: Node[]; - colexprs: Node[]; - coldefexprs: Node[]; - notnulls: bigint[]; - ordinalitycol: number; - location: number; -} -export interface IntoClause { - rel: RangeVar; - colNames: Node[]; - accessMethod: string; - options: Node[]; - onCommit: OnCommitAction; - tableSpaceName: string; - viewQuery: Node; - skipData: boolean; -} -export interface Var { - xpr: Node; - varno: number; - varattno: number; - vartype: number; - vartypmod: number; - varcollid: number; - varnullingrels: bigint[]; - varlevelsup: number; - location: number; -} -export interface Param { - xpr: Node; - paramkind: ParamKind; - paramid: number; - paramtype: number; - paramtypmod: number; - paramcollid: number; - location: number; -} -export interface Aggref { - xpr: Node; - aggfnoid: number; - aggtype: number; - aggcollid: number; - inputcollid: number; - aggargtypes: Node[]; - aggdirectargs: Node[]; - args: Node[]; - aggorder: Node[]; - aggdistinct: Node[]; - aggfilter: Node; - aggstar: boolean; - aggvariadic: boolean; - aggkind: string; - agglevelsup: number; - aggsplit: AggSplit; - aggno: number; - aggtransno: number; - location: number; -} -export interface GroupingFunc { - xpr: Node; - args: Node[]; - refs: Node[]; - agglevelsup: number; - location: number; -} -export interface WindowFunc { - xpr: Node; - winfnoid: number; - wintype: number; - wincollid: number; - inputcollid: number; - args: Node[]; - aggfilter: Node; - winref: number; - winstar: boolean; - winagg: boolean; - location: number; -} -export interface SubscriptingRef { - xpr: Node; - refcontainertype: number; - refelemtype: number; - refrestype: number; - reftypmod: number; - refcollid: number; - refupperindexpr: Node[]; - reflowerindexpr: Node[]; - refexpr: Node; - refassgnexpr: Node; -} -export interface FuncExpr { - xpr: Node; - funcid: number; - funcresulttype: number; - funcretset: boolean; - funcvariadic: boolean; - funcformat: CoercionForm; - funccollid: number; - inputcollid: number; - args: Node[]; - location: number; -} -export interface NamedArgExpr { - xpr: Node; - arg: Node; - name: string; - argnumber: number; - location: number; -} -export interface OpExpr { - xpr: Node; - opno: number; - opresulttype: number; - opretset: boolean; - opcollid: number; - inputcollid: number; - args: Node[]; - location: number; -} -export interface DistinctExpr { - xpr: Node; - opno: number; - opresulttype: number; - opretset: boolean; - opcollid: number; - inputcollid: number; - args: Node[]; - location: number; -} -export interface NullIfExpr { - xpr: Node; - opno: number; - opresulttype: number; - opretset: boolean; - opcollid: number; - inputcollid: number; - args: Node[]; - location: number; -} -export interface ScalarArrayOpExpr { - xpr: Node; - opno: number; - useOr: boolean; - inputcollid: number; - args: Node[]; - location: number; -} -export interface BoolExpr { - xpr: Node; - boolop: BoolExprType; - args: Node[]; - location: number; -} -export interface SubLink { - xpr: Node; - subLinkType: SubLinkType; - subLinkId: number; - testexpr: Node; - operName: Node[]; - subselect: Node; - location: number; -} -export interface SubPlan { - xpr: Node; - subLinkType: SubLinkType; - testexpr: Node; - paramIds: Node[]; - plan_id: number; - plan_name: string; - firstColType: number; - firstColTypmod: number; - firstColCollation: number; - useHashTable: boolean; - unknownEqFalse: boolean; - parallel_safe: boolean; - setParam: Node[]; - parParam: Node[]; - args: Node[]; - startup_cost: number; - per_call_cost: number; -} -export interface AlternativeSubPlan { - xpr: Node; - subplans: Node[]; -} -export interface FieldSelect { - xpr: Node; - arg: Node; - fieldnum: number; - resulttype: number; - resulttypmod: number; - resultcollid: number; -} -export interface FieldStore { - xpr: Node; - arg: Node; - newvals: Node[]; - fieldnums: Node[]; - resulttype: number; -} -export interface RelabelType { - xpr: Node; - arg: Node; - resulttype: number; - resulttypmod: number; - resultcollid: number; - relabelformat: CoercionForm; - location: number; -} -export interface CoerceViaIO { - xpr: Node; - arg: Node; - resulttype: number; - resultcollid: number; - coerceformat: CoercionForm; - location: number; -} -export interface ArrayCoerceExpr { - xpr: Node; - arg: Node; - elemexpr: Node; - resulttype: number; - resulttypmod: number; - resultcollid: number; - coerceformat: CoercionForm; - location: number; -} -export interface ConvertRowtypeExpr { - xpr: Node; - arg: Node; - resulttype: number; - convertformat: CoercionForm; - location: number; -} -export interface CollateExpr { - xpr: Node; - arg: Node; - collOid: number; - location: number; -} -export interface CaseExpr { - xpr: Node; - casetype: number; - casecollid: number; - arg: Node; - args: Node[]; - defresult: Node; - location: number; -} -export interface CaseWhen { - xpr: Node; - expr: Node; - result: Node; - location: number; -} -export interface CaseTestExpr { - xpr: Node; - typeId: number; - typeMod: number; - collation: number; -} -export interface ArrayExpr { - xpr: Node; - array_typeid: number; - array_collid: number; - element_typeid: number; - elements: Node[]; - multidims: boolean; - location: number; -} -export interface RowExpr { - xpr: Node; - args: Node[]; - row_typeid: number; - row_format: CoercionForm; - colnames: Node[]; - location: number; -} -export interface RowCompareExpr { - xpr: Node; - rctype: RowCompareType; - opnos: Node[]; - opfamilies: Node[]; - inputcollids: Node[]; - largs: Node[]; - rargs: Node[]; -} -export interface CoalesceExpr { - xpr: Node; - coalescetype: number; - coalescecollid: number; - args: Node[]; - location: number; -} -export interface MinMaxExpr { - xpr: Node; - minmaxtype: number; - minmaxcollid: number; - inputcollid: number; - op: MinMaxOp; - args: Node[]; - location: number; -} -export interface SQLValueFunction { - xpr: Node; - op: SQLValueFunctionOp; - type: number; - typmod: number; - location: number; -} -export interface XmlExpr { - xpr: Node; - op: XmlExprOp; - name: string; - named_args: Node[]; - arg_names: Node[]; - args: Node[]; - xmloption: XmlOptionType; - indent: boolean; - type: number; - typmod: number; - location: number; -} -export interface JsonFormat { - format_type: JsonFormatType; - encoding: JsonEncoding; - location: number; -} -export interface JsonReturning { - format: JsonFormat; - typid: number; - typmod: number; -} -export interface JsonValueExpr { - raw_expr: Node; - formatted_expr: Node; - format: JsonFormat; -} -export interface JsonConstructorExpr { - xpr: Node; - type: JsonConstructorType; - args: Node[]; - func: Node; - coercion: Node; - returning: JsonReturning; - absent_on_null: boolean; - unique: boolean; - location: number; -} -export interface JsonIsPredicate { - expr: Node; - format: JsonFormat; - item_type: JsonValueType; - unique_keys: boolean; - location: number; -} -export interface NullTest { - xpr: Node; - arg: Node; - nulltesttype: NullTestType; - argisrow: boolean; - location: number; -} -export interface BooleanTest { - xpr: Node; - arg: Node; - booltesttype: BoolTestType; - location: number; -} -export interface CoerceToDomain { - xpr: Node; - arg: Node; - resulttype: number; - resulttypmod: number; - resultcollid: number; - coercionformat: CoercionForm; - location: number; -} -export interface CoerceToDomainValue { - xpr: Node; - typeId: number; - typeMod: number; - collation: number; - location: number; -} -export interface SetToDefault { - xpr: Node; - typeId: number; - typeMod: number; - collation: number; - location: number; -} -export interface CurrentOfExpr { - xpr: Node; - cvarno: number; - cursor_name: string; - cursor_param: number; -} -export interface NextValueExpr { - xpr: Node; - seqid: number; - typeId: number; -} -export interface InferenceElem { - xpr: Node; - expr: Node; - infercollid: number; - inferopclass: number; -} -export interface TargetEntry { - xpr: Node; - expr: Node; - resno: number; - resname: string; - ressortgroupref: number; - resorigtbl: number; - resorigcol: number; - resjunk: boolean; -} -export interface RangeTblRef { - rtindex: number; -} -export interface JoinExpr { - jointype: JoinType; - isNatural: boolean; - larg: Node; - rarg: Node; - usingClause: Node[]; - join_using_alias: Alias; - quals: Node; - alias: Alias; - rtindex: number; -} -export interface FromExpr { - fromlist: Node[]; - quals: Node; -} -export interface OnConflictExpr { - action: OnConflictAction; - arbiterElems: Node[]; - arbiterWhere: Node; - constraint: number; - onConflictSet: Node[]; - onConflictWhere: Node; - exclRelIndex: number; - exclRelTlist: Node[]; -} -export interface Query { - commandType: CmdType; - querySource: QuerySource; - canSetTag: boolean; - utilityStmt: Node; - resultRelation: number; - hasAggs: boolean; - hasWindowFuncs: boolean; - hasTargetSRFs: boolean; - hasSubLinks: boolean; - hasDistinctOn: boolean; - hasRecursive: boolean; - hasModifyingCTE: boolean; - hasForUpdate: boolean; - hasRowSecurity: boolean; - isReturn: boolean; - cteList: Node[]; - rtable: Node[]; - rteperminfos: Node[]; - jointree: FromExpr; - mergeActionList: Node[]; - mergeUseOuterJoin: boolean; - targetList: Node[]; - override: OverridingKind; - onConflict: OnConflictExpr; - returningList: Node[]; - groupClause: Node[]; - groupDistinct: boolean; - groupingSets: Node[]; - havingQual: Node; - windowClause: Node[]; - distinctClause: Node[]; - sortClause: Node[]; - limitOffset: Node; - limitCount: Node; - limitOption: LimitOption; - rowMarks: Node[]; - setOperations: Node; - constraintDeps: Node[]; - withCheckOptions: Node[]; - stmt_location: number; - stmt_len: number; -} -export interface TypeName { - names: Node[]; - typeOid: number; - setof: boolean; - pct_type: boolean; - typmods: Node[]; - typemod: number; - arrayBounds: Node[]; - location: number; -} -export interface ColumnRef { - fields: Node[]; - location: number; -} -export interface ParamRef { - number: number; - location: number; -} -export interface A_Expr { - kind: A_Expr_Kind; - name: Node[]; - lexpr: Node; - rexpr: Node; - location: number; -} -export interface TypeCast { - arg: Node; - typeName: TypeName; - location: number; -} -export interface CollateClause { - arg: Node; - collname: Node[]; - location: number; -} -export interface RoleSpec { - roletype: RoleSpecType; - rolename: string; - location: number; -} -export interface FuncCall { - funcname: Node[]; - args: Node[]; - agg_order: Node[]; - agg_filter: Node; - over: WindowDef; - agg_within_group: boolean; - agg_star: boolean; - agg_distinct: boolean; - func_variadic: boolean; - funcformat: CoercionForm; - location: number; -} -export interface A_Star {} -export interface A_Indices { - is_slice: boolean; - lidx: Node; - uidx: Node; -} -export interface A_Indirection { - arg: Node; - indirection: Node[]; -} -export interface A_ArrayExpr { - elements: Node[]; - location: number; -} -export interface ResTarget { - name: string; - indirection: Node[]; - val: Node; - location: number; -} -export interface MultiAssignRef { - source: Node; - colno: number; - ncolumns: number; -} -export interface SortBy { - node: Node; - sortby_dir: SortByDir; - sortby_nulls: SortByNulls; - useOp: Node[]; - location: number; -} -export interface WindowDef { - name: string; - refname: string; - partitionClause: Node[]; - orderClause: Node[]; - frameOptions: number; - startOffset: Node; - endOffset: Node; - location: number; -} -export interface RangeSubselect { - lateral: boolean; - subquery: Node; - alias: Alias; -} -export interface RangeFunction { - lateral: boolean; - ordinality: boolean; - is_rowsfrom: boolean; - functions: Node[]; - alias: Alias; - coldeflist: Node[]; -} -export interface RangeTableFunc { - lateral: boolean; - docexpr: Node; - rowexpr: Node; - namespaces: Node[]; - columns: Node[]; - alias: Alias; - location: number; -} -export interface RangeTableFuncCol { - colname: string; - typeName: TypeName; - for_ordinality: boolean; - is_not_null: boolean; - colexpr: Node; - coldefexpr: Node; - location: number; -} -export interface RangeTableSample { - relation: Node; - method: Node[]; - args: Node[]; - repeatable: Node; - location: number; -} -export interface ColumnDef { - colname: string; - typeName: TypeName; - compression: string; - inhcount: number; - is_local: boolean; - is_not_null: boolean; - is_from_type: boolean; - storage: string; - storage_name: string; - raw_default: Node; - cooked_default: Node; - identity: string; - identitySequence: RangeVar; - generated: string; - collClause: CollateClause; - collOid: number; - constraints: Node[]; - fdwoptions: Node[]; - location: number; -} -export interface TableLikeClause { - relation: RangeVar; - options: number; - relationOid: number; -} -export interface IndexElem { - name: string; - expr: Node; - indexcolname: string; - collation: Node[]; - opclass: Node[]; - opclassopts: Node[]; - ordering: SortByDir; - nulls_ordering: SortByNulls; -} -export interface DefElem { - defnamespace: string; - defname: string; - arg: Node; - defaction: DefElemAction; - location: number; -} -export interface LockingClause { - lockedRels: Node[]; - strength: LockClauseStrength; - waitPolicy: LockWaitPolicy; -} -export interface XmlSerialize { - xmloption: XmlOptionType; - expr: Node; - typeName: TypeName; - indent: boolean; - location: number; -} -export interface PartitionElem { - name: string; - expr: Node; - collation: Node[]; - opclass: Node[]; - location: number; -} -export interface PartitionSpec { - strategy: PartitionStrategy; - partParams: Node[]; - location: number; -} -export interface PartitionBoundSpec { - strategy: string; - is_default: boolean; - modulus: number; - remainder: number; - listdatums: Node[]; - lowerdatums: Node[]; - upperdatums: Node[]; - location: number; -} -export interface PartitionRangeDatum { - kind: PartitionRangeDatumKind; - value: Node; - location: number; -} -export interface PartitionCmd { - name: RangeVar; - bound: PartitionBoundSpec; - concurrent: boolean; -} -export interface RangeTblEntry { - rtekind: RTEKind; - relid: number; - relkind: string; - rellockmode: number; - tablesample: TableSampleClause; - perminfoindex: number; - subquery: Query; - security_barrier: boolean; - jointype: JoinType; - joinmergedcols: number; - joinaliasvars: Node[]; - joinleftcols: Node[]; - joinrightcols: Node[]; - join_using_alias: Alias; - functions: Node[]; - funcordinality: boolean; - tablefunc: TableFunc; - values_lists: Node[]; - ctename: string; - ctelevelsup: number; - self_reference: boolean; - coltypes: Node[]; - coltypmods: Node[]; - colcollations: Node[]; - enrname: string; - enrtuples: number; - alias: Alias; - eref: Alias; - lateral: boolean; - inh: boolean; - inFromCl: boolean; - securityQuals: Node[]; -} -export interface RTEPermissionInfo { - relid: number; - inh: boolean; - requiredPerms: bigint; - checkAsUser: number; - selectedCols: bigint[]; - insertedCols: bigint[]; - updatedCols: bigint[]; -} -export interface RangeTblFunction { - funcexpr: Node; - funccolcount: number; - funccolnames: Node[]; - funccoltypes: Node[]; - funccoltypmods: Node[]; - funccolcollations: Node[]; - funcparams: bigint[]; -} -export interface TableSampleClause { - tsmhandler: number; - args: Node[]; - repeatable: Node; -} -export interface WithCheckOption { - kind: WCOKind; - relname: string; - polname: string; - qual: Node; - cascaded: boolean; -} -export interface SortGroupClause { - tleSortGroupRef: number; - eqop: number; - sortop: number; - nulls_first: boolean; - hashable: boolean; -} -export interface GroupingSet { - kind: GroupingSetKind; - content: Node[]; - location: number; -} -export interface WindowClause { - name: string; - refname: string; - partitionClause: Node[]; - orderClause: Node[]; - frameOptions: number; - startOffset: Node; - endOffset: Node; - runCondition: Node[]; - startInRangeFunc: number; - endInRangeFunc: number; - inRangeColl: number; - inRangeAsc: boolean; - inRangeNullsFirst: boolean; - winref: number; - copiedOrder: boolean; -} -export interface RowMarkClause { - rti: number; - strength: LockClauseStrength; - waitPolicy: LockWaitPolicy; - pushedDown: boolean; -} -export interface WithClause { - ctes: Node[]; - recursive: boolean; - location: number; -} -export interface InferClause { - indexElems: Node[]; - whereClause: Node; - conname: string; - location: number; -} -export interface OnConflictClause { - action: OnConflictAction; - infer: InferClause; - targetList: Node[]; - whereClause: Node; - location: number; -} -export interface CTESearchClause { - search_col_list: Node[]; - search_breadth_first: boolean; - search_seq_column: string; - location: number; -} -export interface CTECycleClause { - cycle_col_list: Node[]; - cycle_mark_column: string; - cycle_mark_value: Node; - cycle_mark_default: Node; - cycle_path_column: string; - location: number; - cycle_mark_type: number; - cycle_mark_typmod: number; - cycle_mark_collation: number; - cycle_mark_neop: number; -} -export interface CommonTableExpr { - ctename: string; - aliascolnames: Node[]; - ctematerialized: CTEMaterialize; - ctequery: Node; - search_clause: CTESearchClause; - cycle_clause: CTECycleClause; - location: number; - cterecursive: boolean; - cterefcount: number; - ctecolnames: Node[]; - ctecoltypes: Node[]; - ctecoltypmods: Node[]; - ctecolcollations: Node[]; -} -export interface MergeWhenClause { - matched: boolean; - commandType: CmdType; - override: OverridingKind; - condition: Node; - targetList: Node[]; - values: Node[]; -} -export interface MergeAction { - matched: boolean; - commandType: CmdType; - override: OverridingKind; - qual: Node; - targetList: Node[]; - updateColnos: Node[]; -} -export interface TriggerTransition { - name: string; - isNew: boolean; - isTable: boolean; -} -export interface JsonOutput { - typeName: TypeName; - returning: JsonReturning; -} -export interface JsonKeyValue { - key: Node; - value: JsonValueExpr; -} -export interface JsonObjectConstructor { - exprs: Node[]; - output: JsonOutput; - absent_on_null: boolean; - unique: boolean; - location: number; -} -export interface JsonArrayConstructor { - exprs: Node[]; - output: JsonOutput; - absent_on_null: boolean; - location: number; -} -export interface JsonArrayQueryConstructor { - query: Node; - output: JsonOutput; - format: JsonFormat; - absent_on_null: boolean; - location: number; -} -export interface JsonAggConstructor { - output: JsonOutput; - agg_filter: Node; - agg_order: Node[]; - over: WindowDef; - location: number; -} -export interface JsonObjectAgg { - constructor: JsonAggConstructor; - arg: JsonKeyValue; - absent_on_null: boolean; - unique: boolean; -} -export interface JsonArrayAgg { - constructor: JsonAggConstructor; - arg: JsonValueExpr; - absent_on_null: boolean; -} -export interface RawStmt { - stmt: Node; - stmt_location: number; - stmt_len: number; -} -export interface InsertStmt { - relation: RangeVar; - cols: Node[]; - selectStmt: Node; - onConflictClause: OnConflictClause; - returningList: Node[]; - withClause: WithClause; - override: OverridingKind; -} -export interface DeleteStmt { - relation: RangeVar; - usingClause: Node[]; - whereClause: Node; - returningList: Node[]; - withClause: WithClause; -} -export interface UpdateStmt { - relation: RangeVar; - targetList: Node[]; - whereClause: Node; - fromClause: Node[]; - returningList: Node[]; - withClause: WithClause; -} -export interface MergeStmt { - relation: RangeVar; - sourceRelation: Node; - joinCondition: Node; - mergeWhenClauses: Node[]; - withClause: WithClause; -} -export interface SelectStmt { - distinctClause: Node[]; - intoClause: IntoClause; - targetList: Node[]; - fromClause: Node[]; - whereClause: Node; - groupClause: Node[]; - groupDistinct: boolean; - havingClause: Node; - windowClause: Node[]; - valuesLists: Node[]; - sortClause: Node[]; - limitOffset: Node; - limitCount: Node; - limitOption: LimitOption; - lockingClause: Node[]; - withClause: WithClause; - op: SetOperation; - all: boolean; - larg: SelectStmt; - rarg: SelectStmt; -} -export interface SetOperationStmt { - op: SetOperation; - all: boolean; - larg: Node; - rarg: Node; - colTypes: Node[]; - colTypmods: Node[]; - colCollations: Node[]; - groupClauses: Node[]; -} -export interface ReturnStmt { - returnval: Node; -} -export interface PLAssignStmt { - name: string; - indirection: Node[]; - nnames: number; - val: SelectStmt; - location: number; -} -export interface CreateSchemaStmt { - schemaname: string; - authrole: RoleSpec; - schemaElts: Node[]; - if_not_exists: boolean; -} -export interface AlterTableStmt { - relation: RangeVar; - cmds: Node[]; - objtype: ObjectType; - missing_ok: boolean; -} -export interface ReplicaIdentityStmt { - identity_type: string; - name: string; -} -export interface AlterTableCmd { - subtype: AlterTableType; - name: string; - num: number; - newowner: RoleSpec; - def: Node; - behavior: DropBehavior; - missing_ok: boolean; - recurse: boolean; -} -export interface AlterCollationStmt { - collname: Node[]; -} -export interface AlterDomainStmt { - subtype: string; - typeName: Node[]; - name: string; - def: Node; - behavior: DropBehavior; - missing_ok: boolean; -} -export interface GrantStmt { - is_grant: boolean; - targtype: GrantTargetType; - objtype: ObjectType; - objects: Node[]; - privileges: Node[]; - grantees: Node[]; - grant_option: boolean; - grantor: RoleSpec; - behavior: DropBehavior; -} -export interface ObjectWithArgs { - objname: Node[]; - objargs: Node[]; - objfuncargs: Node[]; - args_unspecified: boolean; -} -export interface AccessPriv { - priv_name: string; - cols: Node[]; -} -export interface GrantRoleStmt { - granted_roles: Node[]; - grantee_roles: Node[]; - is_grant: boolean; - opt: Node[]; - grantor: RoleSpec; - behavior: DropBehavior; -} -export interface AlterDefaultPrivilegesStmt { - options: Node[]; - action: GrantStmt; -} -export interface CopyStmt { - relation: RangeVar; - query: Node; - attlist: Node[]; - is_from: boolean; - is_program: boolean; - filename: string; - options: Node[]; - whereClause: Node; -} -export interface VariableSetStmt { - kind: VariableSetKind; - name: string; - args: Node[]; - is_local: boolean; -} -export interface VariableShowStmt { - name: string; -} -export interface CreateStmt { - relation: RangeVar; - tableElts: Node[]; - inhRelations: Node[]; - partbound: PartitionBoundSpec; - partspec: PartitionSpec; - ofTypename: TypeName; - constraints: Node[]; - options: Node[]; - oncommit: OnCommitAction; - tablespacename: string; - accessMethod: string; - if_not_exists: boolean; -} -export interface Constraint { - contype: ConstrType; - conname: string; - deferrable: boolean; - initdeferred: boolean; - location: number; - is_no_inherit: boolean; - raw_expr: Node; - cooked_expr: string; - generated_when: string; - nulls_not_distinct: boolean; - keys: Node[]; - including: Node[]; - exclusions: Node[]; - options: Node[]; - indexname: string; - indexspace: string; - reset_default_tblspc: boolean; - access_method: string; - where_clause: Node; - pktable: RangeVar; - fk_attrs: Node[]; - pk_attrs: Node[]; - fk_matchtype: string; - fk_upd_action: string; - fk_del_action: string; - fk_del_set_cols: Node[]; - old_conpfeqop: Node[]; - old_pktable_oid: number; - skip_validation: boolean; - initially_valid: boolean; -} -export interface CreateTableSpaceStmt { - tablespacename: string; - owner: RoleSpec; - location: string; - options: Node[]; -} -export interface DropTableSpaceStmt { - tablespacename: string; - missing_ok: boolean; -} -export interface AlterTableSpaceOptionsStmt { - tablespacename: string; - options: Node[]; - isReset: boolean; -} -export interface AlterTableMoveAllStmt { - orig_tablespacename: string; - objtype: ObjectType; - roles: Node[]; - new_tablespacename: string; - nowait: boolean; -} -export interface CreateExtensionStmt { - extname: string; - if_not_exists: boolean; - options: Node[]; -} -export interface AlterExtensionStmt { - extname: string; - options: Node[]; -} -export interface AlterExtensionContentsStmt { - extname: string; - action: number; - objtype: ObjectType; - object: Node; -} -export interface CreateFdwStmt { - fdwname: string; - func_options: Node[]; - options: Node[]; -} -export interface AlterFdwStmt { - fdwname: string; - func_options: Node[]; - options: Node[]; -} -export interface CreateForeignServerStmt { - servername: string; - servertype: string; - version: string; - fdwname: string; - if_not_exists: boolean; - options: Node[]; -} -export interface AlterForeignServerStmt { - servername: string; - version: string; - options: Node[]; - has_version: boolean; -} -export interface CreateForeignTableStmt { - base: CreateStmt; - servername: string; - options: Node[]; -} -export interface CreateUserMappingStmt { - user: RoleSpec; - servername: string; - if_not_exists: boolean; - options: Node[]; -} -export interface AlterUserMappingStmt { - user: RoleSpec; - servername: string; - options: Node[]; -} -export interface DropUserMappingStmt { - user: RoleSpec; - servername: string; - missing_ok: boolean; -} -export interface ImportForeignSchemaStmt { - server_name: string; - remote_schema: string; - local_schema: string; - list_type: ImportForeignSchemaType; - table_list: Node[]; - options: Node[]; -} -export interface CreatePolicyStmt { - policy_name: string; - table: RangeVar; - cmd_name: string; - permissive: boolean; - roles: Node[]; - qual: Node; - with_check: Node; -} -export interface AlterPolicyStmt { - policy_name: string; - table: RangeVar; - roles: Node[]; - qual: Node; - with_check: Node; -} -export interface CreateAmStmt { - amname: string; - handler_name: Node[]; - amtype: string; -} -export interface CreateTrigStmt { - replace: boolean; - isconstraint: boolean; - trigname: string; - relation: RangeVar; - funcname: Node[]; - args: Node[]; - row: boolean; - timing: number; - events: number; - columns: Node[]; - whenClause: Node; - transitionRels: Node[]; - deferrable: boolean; - initdeferred: boolean; - constrrel: RangeVar; -} -export interface CreateEventTrigStmt { - trigname: string; - eventname: string; - whenclause: Node[]; - funcname: Node[]; -} -export interface AlterEventTrigStmt { - trigname: string; - tgenabled: string; -} -export interface CreatePLangStmt { - replace: boolean; - plname: string; - plhandler: Node[]; - plinline: Node[]; - plvalidator: Node[]; - pltrusted: boolean; -} -export interface CreateRoleStmt { - stmt_type: RoleStmtType; - role: string; - options: Node[]; -} -export interface AlterRoleStmt { - role: RoleSpec; - options: Node[]; - action: number; -} -export interface AlterRoleSetStmt { - role: RoleSpec; - database: string; - setstmt: VariableSetStmt; -} -export interface DropRoleStmt { - roles: Node[]; - missing_ok: boolean; -} -export interface CreateSeqStmt { - sequence: RangeVar; - options: Node[]; - ownerId: number; - for_identity: boolean; - if_not_exists: boolean; -} -export interface AlterSeqStmt { - sequence: RangeVar; - options: Node[]; - for_identity: boolean; - missing_ok: boolean; -} -export interface DefineStmt { - kind: ObjectType; - oldstyle: boolean; - defnames: Node[]; - args: Node[]; - definition: Node[]; - if_not_exists: boolean; - replace: boolean; -} -export interface CreateDomainStmt { - domainname: Node[]; - typeName: TypeName; - collClause: CollateClause; - constraints: Node[]; -} -export interface CreateOpClassStmt { - opclassname: Node[]; - opfamilyname: Node[]; - amname: string; - datatype: TypeName; - items: Node[]; - isDefault: boolean; -} -export interface CreateOpClassItem { - itemtype: number; - name: ObjectWithArgs; - number: number; - order_family: Node[]; - class_args: Node[]; - storedtype: TypeName; -} -export interface CreateOpFamilyStmt { - opfamilyname: Node[]; - amname: string; -} -export interface AlterOpFamilyStmt { - opfamilyname: Node[]; - amname: string; - isDrop: boolean; - items: Node[]; -} -export interface DropStmt { - objects: Node[]; - removeType: ObjectType; - behavior: DropBehavior; - missing_ok: boolean; - concurrent: boolean; -} -export interface TruncateStmt { - relations: Node[]; - restart_seqs: boolean; - behavior: DropBehavior; -} -export interface CommentStmt { - objtype: ObjectType; - object: Node; - comment: string; -} -export interface SecLabelStmt { - objtype: ObjectType; - object: Node; - provider: string; - label: string; -} -export interface DeclareCursorStmt { - portalname: string; - options: number; - query: Node; -} -export interface ClosePortalStmt { - portalname: string; -} -export interface FetchStmt { - direction: FetchDirection; - howMany: bigint; - portalname: string; - ismove: boolean; -} -export interface IndexStmt { - idxname: string; - relation: RangeVar; - accessMethod: string; - tableSpace: string; - indexParams: Node[]; - indexIncludingParams: Node[]; - options: Node[]; - whereClause: Node; - excludeOpNames: Node[]; - idxcomment: string; - indexOid: number; - oldNumber: number; - oldCreateSubid: number; - oldFirstRelfilelocatorSubid: number; - unique: boolean; - nulls_not_distinct: boolean; - primary: boolean; - isconstraint: boolean; - deferrable: boolean; - initdeferred: boolean; - transformed: boolean; - concurrent: boolean; - if_not_exists: boolean; - reset_default_tblspc: boolean; -} -export interface CreateStatsStmt { - defnames: Node[]; - stat_types: Node[]; - exprs: Node[]; - relations: Node[]; - stxcomment: string; - transformed: boolean; - if_not_exists: boolean; -} -export interface StatsElem { - name: string; - expr: Node; -} -export interface AlterStatsStmt { - defnames: Node[]; - stxstattarget: number; - missing_ok: boolean; -} -export interface CreateFunctionStmt { - is_procedure: boolean; - replace: boolean; - funcname: Node[]; - parameters: Node[]; - returnType: TypeName; - options: Node[]; - sql_body: Node; -} -export interface FunctionParameter { - name: string; - argType: TypeName; - mode: FunctionParameterMode; - defexpr: Node; -} -export interface AlterFunctionStmt { - objtype: ObjectType; - func: ObjectWithArgs; - actions: Node[]; -} -export interface DoStmt { - args: Node[]; -} -export interface InlineCodeBlock { - source_text: string; - langOid: number; - langIsTrusted: boolean; - atomic: boolean; -} -export interface CallStmt { - funccall: FuncCall; - funcexpr: FuncExpr; - outargs: Node[]; -} -export interface CallContext { - atomic: boolean; -} -export interface RenameStmt { - renameType: ObjectType; - relationType: ObjectType; - relation: RangeVar; - object: Node; - subname: string; - newname: string; - behavior: DropBehavior; - missing_ok: boolean; -} -export interface AlterObjectDependsStmt { - objectType: ObjectType; - relation: RangeVar; - object: Node; - extname: String; - remove: boolean; -} -export interface AlterObjectSchemaStmt { - objectType: ObjectType; - relation: RangeVar; - object: Node; - newschema: string; - missing_ok: boolean; -} -export interface AlterOwnerStmt { - objectType: ObjectType; - relation: RangeVar; - object: Node; - newowner: RoleSpec; -} -export interface AlterOperatorStmt { - opername: ObjectWithArgs; - options: Node[]; -} -export interface AlterTypeStmt { - typeName: Node[]; - options: Node[]; -} -export interface RuleStmt { - relation: RangeVar; - rulename: string; - whereClause: Node; - event: CmdType; - instead: boolean; - actions: Node[]; - replace: boolean; -} -export interface NotifyStmt { - conditionname: string; - payload: string; -} -export interface ListenStmt { - conditionname: string; -} -export interface UnlistenStmt { - conditionname: string; -} -export interface TransactionStmt { - kind: TransactionStmtKind; - options: Node[]; - savepoint_name: string; - gid: string; - chain: boolean; -} -export interface CompositeTypeStmt { - typevar: RangeVar; - coldeflist: Node[]; -} -export interface CreateEnumStmt { - typeName: Node[]; - vals: Node[]; -} -export interface CreateRangeStmt { - typeName: Node[]; - params: Node[]; -} -export interface AlterEnumStmt { - typeName: Node[]; - oldVal: string; - newVal: string; - newValNeighbor: string; - newValIsAfter: boolean; - skipIfNewValExists: boolean; -} -export interface ViewStmt { - view: RangeVar; - aliases: Node[]; - query: Node; - replace: boolean; - options: Node[]; - withCheckOption: ViewCheckOption; -} -export interface LoadStmt { - filename: string; -} -export interface CreatedbStmt { - dbname: string; - options: Node[]; -} -export interface AlterDatabaseStmt { - dbname: string; - options: Node[]; -} -export interface AlterDatabaseRefreshCollStmt { - dbname: string; -} -export interface AlterDatabaseSetStmt { - dbname: string; - setstmt: VariableSetStmt; -} -export interface DropdbStmt { - dbname: string; - missing_ok: boolean; - options: Node[]; -} -export interface AlterSystemStmt { - setstmt: VariableSetStmt; -} -export interface ClusterStmt { - relation: RangeVar; - indexname: string; - params: Node[]; -} -export interface VacuumStmt { - options: Node[]; - rels: Node[]; - is_vacuumcmd: boolean; -} -export interface VacuumRelation { - relation: RangeVar; - oid: number; - va_cols: Node[]; -} -export interface ExplainStmt { - query: Node; - options: Node[]; -} -export interface CreateTableAsStmt { - query: Node; - into: IntoClause; - objtype: ObjectType; - is_select_into: boolean; - if_not_exists: boolean; -} -export interface RefreshMatViewStmt { - concurrent: boolean; - skipData: boolean; - relation: RangeVar; -} -export interface CheckPointStmt {} -export interface DiscardStmt { - target: DiscardMode; -} -export interface LockStmt { - relations: Node[]; - mode: number; - nowait: boolean; -} -export interface ConstraintsSetStmt { - constraints: Node[]; - deferred: boolean; -} -export interface ReindexStmt { - kind: ReindexObjectType; - relation: RangeVar; - name: string; - params: Node[]; -} -export interface CreateConversionStmt { - conversion_name: Node[]; - for_encoding_name: string; - to_encoding_name: string; - func_name: Node[]; - def: boolean; -} -export interface CreateCastStmt { - sourcetype: TypeName; - targettype: TypeName; - func: ObjectWithArgs; - context: CoercionContext; - inout: boolean; -} -export interface CreateTransformStmt { - replace: boolean; - type_name: TypeName; - lang: string; - fromsql: ObjectWithArgs; - tosql: ObjectWithArgs; -} -export interface PrepareStmt { - name: string; - argtypes: Node[]; - query: Node; -} -export interface ExecuteStmt { - name: string; - params: Node[]; -} -export interface DeallocateStmt { - name: string; -} -export interface DropOwnedStmt { - roles: Node[]; - behavior: DropBehavior; -} -export interface ReassignOwnedStmt { - roles: Node[]; - newrole: RoleSpec; -} -export interface AlterTSDictionaryStmt { - dictname: Node[]; - options: Node[]; -} -export interface AlterTSConfigurationStmt { - kind: AlterTSConfigType; - cfgname: Node[]; - tokentype: Node[]; - dicts: Node[]; - override: boolean; - replace: boolean; - missing_ok: boolean; -} -export interface PublicationTable { - relation: RangeVar; - whereClause: Node; - columns: Node[]; -} -export interface PublicationObjSpec { - pubobjtype: PublicationObjSpecType; - name: string; - pubtable: PublicationTable; - location: number; -} -export interface CreatePublicationStmt { - pubname: string; - options: Node[]; - pubobjects: Node[]; - for_all_tables: boolean; -} -export interface AlterPublicationStmt { - pubname: string; - options: Node[]; - pubobjects: Node[]; - for_all_tables: boolean; - action: AlterPublicationAction; -} -export interface CreateSubscriptionStmt { - subname: string; - conninfo: string; - publication: Node[]; - options: Node[]; -} -export interface AlterSubscriptionStmt { - kind: AlterSubscriptionType; - subname: string; - conninfo: string; - publication: Node[]; - options: Node[]; -} -export interface DropSubscriptionStmt { - subname: string; - missing_ok: boolean; - behavior: DropBehavior; -} -export interface ScanToken { - start: number; - end: number; - token: Token; - keywordKind: KeywordKind; -}", - "file": "types.ts", - }, -] -`; - -exports[`types optionalFields 1`] = ` -[ - { - "code": "/** -* This file was automatically generated by pg-proto-parser@latest. -* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, -* and run the pg-proto-parser generate command to regenerate this file. -*/ -import { OverridingKind, QuerySource, SortByDir, SortByNulls, SetQuantifier, A_Expr_Kind, RoleSpecType, TableLikeOption, DefElemAction, PartitionStrategy, PartitionRangeDatumKind, RTEKind, WCOKind, GroupingSetKind, CTEMaterialize, SetOperation, ObjectType, DropBehavior, AlterTableType, GrantTargetType, VariableSetKind, ConstrType, ImportForeignSchemaType, RoleStmtType, FetchDirection, FunctionParameterMode, TransactionStmtKind, ViewCheckOption, DiscardMode, ReindexObjectType, AlterTSConfigType, PublicationObjSpecType, AlterPublicationAction, AlterSubscriptionType, OnCommitAction, ParamKind, CoercionContext, CoercionForm, BoolExprType, SubLinkType, RowCompareType, MinMaxOp, SQLValueFunctionOp, XmlExprOp, XmlOptionType, JsonEncoding, JsonFormatType, JsonConstructorType, JsonValueType, NullTestType, BoolTestType, CmdType, JoinType, AggStrategy, AggSplit, SetOpCmd, SetOpStrategy, OnConflictAction, LimitOption, LockClauseStrength, LockWaitPolicy, LockTupleMode, KeywordKind, Token } from "./enums"; -export type Node = ParseResult | ScanResult | Integer | Float | Boolean | String | BitString | List | OidList | IntList | A_Const | Alias | RangeVar | TableFunc | IntoClause | Var | Param | Aggref | GroupingFunc | WindowFunc | SubscriptingRef | FuncExpr | NamedArgExpr | OpExpr | DistinctExpr | NullIfExpr | ScalarArrayOpExpr | BoolExpr | SubLink | SubPlan | AlternativeSubPlan | FieldSelect | FieldStore | RelabelType | CoerceViaIO | ArrayCoerceExpr | ConvertRowtypeExpr | CollateExpr | CaseExpr | CaseWhen | CaseTestExpr | ArrayExpr | RowExpr | RowCompareExpr | CoalesceExpr | MinMaxExpr | SQLValueFunction | XmlExpr | JsonFormat | JsonReturning | JsonValueExpr | JsonConstructorExpr | JsonIsPredicate | NullTest | BooleanTest | CoerceToDomain | CoerceToDomainValue | SetToDefault | CurrentOfExpr | NextValueExpr | InferenceElem | TargetEntry | RangeTblRef | JoinExpr | FromExpr | OnConflictExpr | Query | TypeName | ColumnRef | ParamRef | A_Expr | TypeCast | CollateClause | RoleSpec | FuncCall | A_Star | A_Indices | A_Indirection | A_ArrayExpr | ResTarget | MultiAssignRef | SortBy | WindowDef | RangeSubselect | RangeFunction | RangeTableFunc | RangeTableFuncCol | RangeTableSample | ColumnDef | TableLikeClause | IndexElem | DefElem | LockingClause | XmlSerialize | PartitionElem | PartitionSpec | PartitionBoundSpec | PartitionRangeDatum | PartitionCmd | RangeTblEntry | RTEPermissionInfo | RangeTblFunction | TableSampleClause | WithCheckOption | SortGroupClause | GroupingSet | WindowClause | RowMarkClause | WithClause | InferClause | OnConflictClause | CTESearchClause | CTECycleClause | CommonTableExpr | MergeWhenClause | MergeAction | TriggerTransition | JsonOutput | JsonKeyValue | JsonObjectConstructor | JsonArrayConstructor | JsonArrayQueryConstructor | JsonAggConstructor | JsonObjectAgg | JsonArrayAgg | RawStmt | InsertStmt | DeleteStmt | UpdateStmt | MergeStmt | SelectStmt | SetOperationStmt | ReturnStmt | PLAssignStmt | CreateSchemaStmt | AlterTableStmt | ReplicaIdentityStmt | AlterTableCmd | AlterCollationStmt | AlterDomainStmt | GrantStmt | ObjectWithArgs | AccessPriv | GrantRoleStmt | AlterDefaultPrivilegesStmt | CopyStmt | VariableSetStmt | VariableShowStmt | CreateStmt | Constraint | CreateTableSpaceStmt | DropTableSpaceStmt | AlterTableSpaceOptionsStmt | AlterTableMoveAllStmt | CreateExtensionStmt | AlterExtensionStmt | AlterExtensionContentsStmt | CreateFdwStmt | AlterFdwStmt | CreateForeignServerStmt | AlterForeignServerStmt | CreateForeignTableStmt | CreateUserMappingStmt | AlterUserMappingStmt | DropUserMappingStmt | ImportForeignSchemaStmt | CreatePolicyStmt | AlterPolicyStmt | CreateAmStmt | CreateTrigStmt | CreateEventTrigStmt | AlterEventTrigStmt | CreatePLangStmt | CreateRoleStmt | AlterRoleStmt | AlterRoleSetStmt | DropRoleStmt | CreateSeqStmt | AlterSeqStmt | DefineStmt | CreateDomainStmt | CreateOpClassStmt | CreateOpClassItem | CreateOpFamilyStmt | AlterOpFamilyStmt | DropStmt | TruncateStmt | CommentStmt | SecLabelStmt | DeclareCursorStmt | ClosePortalStmt | FetchStmt | IndexStmt | CreateStatsStmt | StatsElem | AlterStatsStmt | CreateFunctionStmt | FunctionParameter | AlterFunctionStmt | DoStmt | InlineCodeBlock | CallStmt | CallContext | RenameStmt | AlterObjectDependsStmt | AlterObjectSchemaStmt | AlterOwnerStmt | AlterOperatorStmt | AlterTypeStmt | RuleStmt | NotifyStmt | ListenStmt | UnlistenStmt | TransactionStmt | CompositeTypeStmt | CreateEnumStmt | CreateRangeStmt | AlterEnumStmt | ViewStmt | LoadStmt | CreatedbStmt | AlterDatabaseStmt | AlterDatabaseRefreshCollStmt | AlterDatabaseSetStmt | DropdbStmt | AlterSystemStmt | ClusterStmt | VacuumStmt | VacuumRelation | ExplainStmt | CreateTableAsStmt | RefreshMatViewStmt | CheckPointStmt | DiscardStmt | LockStmt | ConstraintsSetStmt | ReindexStmt | CreateConversionStmt | CreateCastStmt | CreateTransformStmt | PrepareStmt | ExecuteStmt | DeallocateStmt | DropOwnedStmt | ReassignOwnedStmt | AlterTSDictionaryStmt | AlterTSConfigurationStmt | PublicationTable | PublicationObjSpec | CreatePublicationStmt | AlterPublicationStmt | CreateSubscriptionStmt | AlterSubscriptionStmt | DropSubscriptionStmt | ScanToken; -export interface ParseResult { - version?: number; - stmts?: RawStmt[]; -} -export interface ScanResult { - version?: number; - tokens?: ScanToken[]; -} -export interface Integer { - ival?: number; -} -export interface Float { - fval?: string; -} -export interface Boolean { - boolval?: boolean; -} -export interface String { - sval?: string; -} -export interface BitString { - bsval?: string; -} -export interface List { - items?: Node[]; -} -export interface OidList { - items?: Node[]; -} -export interface IntList { - items?: Node[]; -} -export interface A_Const { - ival?: Integer; - fval?: Float; - boolval?: Boolean; - sval?: String; - bsval?: BitString; - isnull?: boolean; - location?: number; -} -export interface Alias { - aliasname?: string; - colnames?: Node[]; -} -export interface RangeVar { - catalogname?: string; - schemaname?: string; - relname?: string; - inh?: boolean; - relpersistence?: string; - alias?: Alias; - location?: number; -} -export interface TableFunc { - ns_uris?: Node[]; - ns_names?: Node[]; - docexpr?: Node; - rowexpr?: Node; - colnames?: Node[]; - coltypes?: Node[]; - coltypmods?: Node[]; - colcollations?: Node[]; - colexprs?: Node[]; - coldefexprs?: Node[]; - notnulls?: bigint[]; - ordinalitycol?: number; - location?: number; -} -export interface IntoClause { - rel?: RangeVar; - colNames?: Node[]; - accessMethod?: string; - options?: Node[]; - onCommit?: OnCommitAction; - tableSpaceName?: string; - viewQuery?: Node; - skipData?: boolean; -} -export interface Var { - xpr?: Node; - varno?: number; - varattno?: number; - vartype?: number; - vartypmod?: number; - varcollid?: number; - varnullingrels?: bigint[]; - varlevelsup?: number; - location?: number; -} -export interface Param { - xpr?: Node; - paramkind?: ParamKind; - paramid?: number; - paramtype?: number; - paramtypmod?: number; - paramcollid?: number; - location?: number; -} -export interface Aggref { - xpr?: Node; - aggfnoid?: number; - aggtype?: number; - aggcollid?: number; - inputcollid?: number; - aggargtypes?: Node[]; - aggdirectargs?: Node[]; - args?: Node[]; - aggorder?: Node[]; - aggdistinct?: Node[]; - aggfilter?: Node; - aggstar?: boolean; - aggvariadic?: boolean; - aggkind?: string; - agglevelsup?: number; - aggsplit?: AggSplit; - aggno?: number; - aggtransno?: number; - location?: number; -} -export interface GroupingFunc { - xpr?: Node; - args?: Node[]; - refs?: Node[]; - agglevelsup?: number; - location?: number; -} -export interface WindowFunc { - xpr?: Node; - winfnoid?: number; - wintype?: number; - wincollid?: number; - inputcollid?: number; - args?: Node[]; - aggfilter?: Node; - winref?: number; - winstar?: boolean; - winagg?: boolean; - location?: number; -} -export interface SubscriptingRef { - xpr?: Node; - refcontainertype?: number; - refelemtype?: number; - refrestype?: number; - reftypmod?: number; - refcollid?: number; - refupperindexpr?: Node[]; - reflowerindexpr?: Node[]; - refexpr?: Node; - refassgnexpr?: Node; -} -export interface FuncExpr { - xpr?: Node; - funcid?: number; - funcresulttype?: number; - funcretset?: boolean; - funcvariadic?: boolean; - funcformat?: CoercionForm; - funccollid?: number; - inputcollid?: number; - args?: Node[]; - location?: number; -} -export interface NamedArgExpr { - xpr?: Node; - arg?: Node; - name?: string; - argnumber?: number; - location?: number; -} -export interface OpExpr { - xpr?: Node; - opno?: number; - opresulttype?: number; - opretset?: boolean; - opcollid?: number; - inputcollid?: number; - args?: Node[]; - location?: number; -} -export interface DistinctExpr { - xpr?: Node; - opno?: number; - opresulttype?: number; - opretset?: boolean; - opcollid?: number; - inputcollid?: number; - args?: Node[]; - location?: number; -} -export interface NullIfExpr { - xpr?: Node; - opno?: number; - opresulttype?: number; - opretset?: boolean; - opcollid?: number; - inputcollid?: number; - args?: Node[]; - location?: number; -} -export interface ScalarArrayOpExpr { - xpr?: Node; - opno?: number; - useOr?: boolean; - inputcollid?: number; - args?: Node[]; - location?: number; -} -export interface BoolExpr { - xpr?: Node; - boolop?: BoolExprType; - args?: Node[]; - location?: number; -} -export interface SubLink { - xpr?: Node; - subLinkType?: SubLinkType; - subLinkId?: number; - testexpr?: Node; - operName?: Node[]; - subselect?: Node; - location?: number; -} -export interface SubPlan { - xpr?: Node; - subLinkType?: SubLinkType; - testexpr?: Node; - paramIds?: Node[]; - plan_id?: number; - plan_name?: string; - firstColType?: number; - firstColTypmod?: number; - firstColCollation?: number; - useHashTable?: boolean; - unknownEqFalse?: boolean; - parallel_safe?: boolean; - setParam?: Node[]; - parParam?: Node[]; - args?: Node[]; - startup_cost?: number; - per_call_cost?: number; -} -export interface AlternativeSubPlan { - xpr?: Node; - subplans?: Node[]; -} -export interface FieldSelect { - xpr?: Node; - arg?: Node; - fieldnum?: number; - resulttype?: number; - resulttypmod?: number; - resultcollid?: number; -} -export interface FieldStore { - xpr?: Node; - arg?: Node; - newvals?: Node[]; - fieldnums?: Node[]; - resulttype?: number; -} -export interface RelabelType { - xpr?: Node; - arg?: Node; - resulttype?: number; - resulttypmod?: number; - resultcollid?: number; - relabelformat?: CoercionForm; - location?: number; -} -export interface CoerceViaIO { - xpr?: Node; - arg?: Node; - resulttype?: number; - resultcollid?: number; - coerceformat?: CoercionForm; - location?: number; -} -export interface ArrayCoerceExpr { - xpr?: Node; - arg?: Node; - elemexpr?: Node; - resulttype?: number; - resulttypmod?: number; - resultcollid?: number; - coerceformat?: CoercionForm; - location?: number; -} -export interface ConvertRowtypeExpr { - xpr?: Node; - arg?: Node; - resulttype?: number; - convertformat?: CoercionForm; - location?: number; -} -export interface CollateExpr { - xpr?: Node; - arg?: Node; - collOid?: number; - location?: number; -} -export interface CaseExpr { - xpr?: Node; - casetype?: number; - casecollid?: number; - arg?: Node; - args?: Node[]; - defresult?: Node; - location?: number; -} -export interface CaseWhen { - xpr?: Node; - expr?: Node; - result?: Node; - location?: number; -} -export interface CaseTestExpr { - xpr?: Node; - typeId?: number; - typeMod?: number; - collation?: number; -} -export interface ArrayExpr { - xpr?: Node; - array_typeid?: number; - array_collid?: number; - element_typeid?: number; - elements?: Node[]; - multidims?: boolean; - location?: number; -} -export interface RowExpr { - xpr?: Node; - args?: Node[]; - row_typeid?: number; - row_format?: CoercionForm; - colnames?: Node[]; - location?: number; -} -export interface RowCompareExpr { - xpr?: Node; - rctype?: RowCompareType; - opnos?: Node[]; - opfamilies?: Node[]; - inputcollids?: Node[]; - largs?: Node[]; - rargs?: Node[]; -} -export interface CoalesceExpr { - xpr?: Node; - coalescetype?: number; - coalescecollid?: number; - args?: Node[]; - location?: number; -} -export interface MinMaxExpr { - xpr?: Node; - minmaxtype?: number; - minmaxcollid?: number; - inputcollid?: number; - op?: MinMaxOp; - args?: Node[]; - location?: number; -} -export interface SQLValueFunction { - xpr?: Node; - op?: SQLValueFunctionOp; - type?: number; - typmod?: number; - location?: number; -} -export interface XmlExpr { - xpr?: Node; - op?: XmlExprOp; - name?: string; - named_args?: Node[]; - arg_names?: Node[]; - args?: Node[]; - xmloption?: XmlOptionType; - indent?: boolean; - type?: number; - typmod?: number; - location?: number; -} -export interface JsonFormat { - format_type?: JsonFormatType; - encoding?: JsonEncoding; - location?: number; -} -export interface JsonReturning { - format?: JsonFormat; - typid?: number; - typmod?: number; -} -export interface JsonValueExpr { - raw_expr?: Node; - formatted_expr?: Node; - format?: JsonFormat; -} -export interface JsonConstructorExpr { - xpr?: Node; - type?: JsonConstructorType; - args?: Node[]; - func?: Node; - coercion?: Node; - returning?: JsonReturning; - absent_on_null?: boolean; - unique?: boolean; - location?: number; -} -export interface JsonIsPredicate { - expr?: Node; - format?: JsonFormat; - item_type?: JsonValueType; - unique_keys?: boolean; - location?: number; -} -export interface NullTest { - xpr?: Node; - arg?: Node; - nulltesttype?: NullTestType; - argisrow?: boolean; - location?: number; -} -export interface BooleanTest { - xpr?: Node; - arg?: Node; - booltesttype?: BoolTestType; - location?: number; -} -export interface CoerceToDomain { - xpr?: Node; - arg?: Node; - resulttype?: number; - resulttypmod?: number; - resultcollid?: number; - coercionformat?: CoercionForm; - location?: number; -} -export interface CoerceToDomainValue { - xpr?: Node; - typeId?: number; - typeMod?: number; - collation?: number; - location?: number; -} -export interface SetToDefault { - xpr?: Node; - typeId?: number; - typeMod?: number; - collation?: number; - location?: number; -} -export interface CurrentOfExpr { - xpr?: Node; - cvarno?: number; - cursor_name?: string; - cursor_param?: number; -} -export interface NextValueExpr { - xpr?: Node; - seqid?: number; - typeId?: number; -} -export interface InferenceElem { - xpr?: Node; - expr?: Node; - infercollid?: number; - inferopclass?: number; -} -export interface TargetEntry { - xpr?: Node; - expr?: Node; - resno?: number; - resname?: string; - ressortgroupref?: number; - resorigtbl?: number; - resorigcol?: number; - resjunk?: boolean; -} -export interface RangeTblRef { - rtindex?: number; -} -export interface JoinExpr { - jointype?: JoinType; - isNatural?: boolean; - larg?: Node; - rarg?: Node; - usingClause?: Node[]; - join_using_alias?: Alias; - quals?: Node; - alias?: Alias; - rtindex?: number; -} -export interface FromExpr { - fromlist?: Node[]; - quals?: Node; -} -export interface OnConflictExpr { - action?: OnConflictAction; - arbiterElems?: Node[]; - arbiterWhere?: Node; - constraint?: number; - onConflictSet?: Node[]; - onConflictWhere?: Node; - exclRelIndex?: number; - exclRelTlist?: Node[]; -} -export interface Query { - commandType?: CmdType; - querySource?: QuerySource; - canSetTag?: boolean; - utilityStmt?: Node; - resultRelation?: number; - hasAggs?: boolean; - hasWindowFuncs?: boolean; - hasTargetSRFs?: boolean; - hasSubLinks?: boolean; - hasDistinctOn?: boolean; - hasRecursive?: boolean; - hasModifyingCTE?: boolean; - hasForUpdate?: boolean; - hasRowSecurity?: boolean; - isReturn?: boolean; - cteList?: Node[]; - rtable?: Node[]; - rteperminfos?: Node[]; - jointree?: FromExpr; - mergeActionList?: Node[]; - mergeUseOuterJoin?: boolean; - targetList?: Node[]; - override?: OverridingKind; - onConflict?: OnConflictExpr; - returningList?: Node[]; - groupClause?: Node[]; - groupDistinct?: boolean; - groupingSets?: Node[]; - havingQual?: Node; - windowClause?: Node[]; - distinctClause?: Node[]; - sortClause?: Node[]; - limitOffset?: Node; - limitCount?: Node; - limitOption?: LimitOption; - rowMarks?: Node[]; - setOperations?: Node; - constraintDeps?: Node[]; - withCheckOptions?: Node[]; - stmt_location?: number; - stmt_len?: number; -} -export interface TypeName { - names?: Node[]; - typeOid?: number; - setof?: boolean; - pct_type?: boolean; - typmods?: Node[]; - typemod?: number; - arrayBounds?: Node[]; - location?: number; -} -export interface ColumnRef { - fields?: Node[]; - location?: number; -} -export interface ParamRef { - number?: number; - location?: number; -} -export interface A_Expr { - kind?: A_Expr_Kind; - name?: Node[]; - lexpr?: Node; - rexpr?: Node; - location?: number; -} -export interface TypeCast { - arg?: Node; - typeName?: TypeName; - location?: number; -} -export interface CollateClause { - arg?: Node; - collname?: Node[]; - location?: number; -} -export interface RoleSpec { - roletype?: RoleSpecType; - rolename?: string; - location?: number; -} -export interface FuncCall { - funcname?: Node[]; - args?: Node[]; - agg_order?: Node[]; - agg_filter?: Node; - over?: WindowDef; - agg_within_group?: boolean; - agg_star?: boolean; - agg_distinct?: boolean; - func_variadic?: boolean; - funcformat?: CoercionForm; - location?: number; -} -export interface A_Star {} -export interface A_Indices { - is_slice?: boolean; - lidx?: Node; - uidx?: Node; -} -export interface A_Indirection { - arg?: Node; - indirection?: Node[]; -} -export interface A_ArrayExpr { - elements?: Node[]; - location?: number; -} -export interface ResTarget { - name?: string; - indirection?: Node[]; - val?: Node; - location?: number; -} -export interface MultiAssignRef { - source?: Node; - colno?: number; - ncolumns?: number; -} -export interface SortBy { - node?: Node; - sortby_dir?: SortByDir; - sortby_nulls?: SortByNulls; - useOp?: Node[]; - location?: number; -} -export interface WindowDef { - name?: string; - refname?: string; - partitionClause?: Node[]; - orderClause?: Node[]; - frameOptions?: number; - startOffset?: Node; - endOffset?: Node; - location?: number; -} -export interface RangeSubselect { - lateral?: boolean; - subquery?: Node; - alias?: Alias; -} -export interface RangeFunction { - lateral?: boolean; - ordinality?: boolean; - is_rowsfrom?: boolean; - functions?: Node[]; - alias?: Alias; - coldeflist?: Node[]; -} -export interface RangeTableFunc { - lateral?: boolean; - docexpr?: Node; - rowexpr?: Node; - namespaces?: Node[]; - columns?: Node[]; - alias?: Alias; - location?: number; -} -export interface RangeTableFuncCol { - colname?: string; - typeName?: TypeName; - for_ordinality?: boolean; - is_not_null?: boolean; - colexpr?: Node; - coldefexpr?: Node; - location?: number; -} -export interface RangeTableSample { - relation?: Node; - method?: Node[]; - args?: Node[]; - repeatable?: Node; - location?: number; -} -export interface ColumnDef { - colname?: string; - typeName?: TypeName; - compression?: string; - inhcount?: number; - is_local?: boolean; - is_not_null?: boolean; - is_from_type?: boolean; - storage?: string; - storage_name?: string; - raw_default?: Node; - cooked_default?: Node; - identity?: string; - identitySequence?: RangeVar; - generated?: string; - collClause?: CollateClause; - collOid?: number; - constraints?: Node[]; - fdwoptions?: Node[]; - location?: number; -} -export interface TableLikeClause { - relation?: RangeVar; - options?: number; - relationOid?: number; -} -export interface IndexElem { - name?: string; - expr?: Node; - indexcolname?: string; - collation?: Node[]; - opclass?: Node[]; - opclassopts?: Node[]; - ordering?: SortByDir; - nulls_ordering?: SortByNulls; -} -export interface DefElem { - defnamespace?: string; - defname?: string; - arg?: Node; - defaction?: DefElemAction; - location?: number; -} -export interface LockingClause { - lockedRels?: Node[]; - strength?: LockClauseStrength; - waitPolicy?: LockWaitPolicy; -} -export interface XmlSerialize { - xmloption?: XmlOptionType; - expr?: Node; - typeName?: TypeName; - indent?: boolean; - location?: number; -} -export interface PartitionElem { - name?: string; - expr?: Node; - collation?: Node[]; - opclass?: Node[]; - location?: number; -} -export interface PartitionSpec { - strategy?: PartitionStrategy; - partParams?: Node[]; - location?: number; -} -export interface PartitionBoundSpec { - strategy?: string; - is_default?: boolean; - modulus?: number; - remainder?: number; - listdatums?: Node[]; - lowerdatums?: Node[]; - upperdatums?: Node[]; - location?: number; -} -export interface PartitionRangeDatum { - kind?: PartitionRangeDatumKind; - value?: Node; - location?: number; -} -export interface PartitionCmd { - name?: RangeVar; - bound?: PartitionBoundSpec; - concurrent?: boolean; -} -export interface RangeTblEntry { - rtekind?: RTEKind; - relid?: number; - relkind?: string; - rellockmode?: number; - tablesample?: TableSampleClause; - perminfoindex?: number; - subquery?: Query; - security_barrier?: boolean; - jointype?: JoinType; - joinmergedcols?: number; - joinaliasvars?: Node[]; - joinleftcols?: Node[]; - joinrightcols?: Node[]; - join_using_alias?: Alias; - functions?: Node[]; - funcordinality?: boolean; - tablefunc?: TableFunc; - values_lists?: Node[]; - ctename?: string; - ctelevelsup?: number; - self_reference?: boolean; - coltypes?: Node[]; - coltypmods?: Node[]; - colcollations?: Node[]; - enrname?: string; - enrtuples?: number; - alias?: Alias; - eref?: Alias; - lateral?: boolean; - inh?: boolean; - inFromCl?: boolean; - securityQuals?: Node[]; -} -export interface RTEPermissionInfo { - relid?: number; - inh?: boolean; - requiredPerms?: bigint; - checkAsUser?: number; - selectedCols?: bigint[]; - insertedCols?: bigint[]; - updatedCols?: bigint[]; -} -export interface RangeTblFunction { - funcexpr?: Node; - funccolcount?: number; - funccolnames?: Node[]; - funccoltypes?: Node[]; - funccoltypmods?: Node[]; - funccolcollations?: Node[]; - funcparams?: bigint[]; -} -export interface TableSampleClause { - tsmhandler?: number; - args?: Node[]; - repeatable?: Node; -} -export interface WithCheckOption { - kind?: WCOKind; - relname?: string; - polname?: string; - qual?: Node; - cascaded?: boolean; -} -export interface SortGroupClause { - tleSortGroupRef?: number; - eqop?: number; - sortop?: number; - nulls_first?: boolean; - hashable?: boolean; -} -export interface GroupingSet { - kind?: GroupingSetKind; - content?: Node[]; - location?: number; -} -export interface WindowClause { - name?: string; - refname?: string; - partitionClause?: Node[]; - orderClause?: Node[]; - frameOptions?: number; - startOffset?: Node; - endOffset?: Node; - runCondition?: Node[]; - startInRangeFunc?: number; - endInRangeFunc?: number; - inRangeColl?: number; - inRangeAsc?: boolean; - inRangeNullsFirst?: boolean; - winref?: number; - copiedOrder?: boolean; -} -export interface RowMarkClause { - rti?: number; - strength?: LockClauseStrength; - waitPolicy?: LockWaitPolicy; - pushedDown?: boolean; -} -export interface WithClause { - ctes?: Node[]; - recursive?: boolean; - location?: number; -} -export interface InferClause { - indexElems?: Node[]; - whereClause?: Node; - conname?: string; - location?: number; -} -export interface OnConflictClause { - action?: OnConflictAction; - infer?: InferClause; - targetList?: Node[]; - whereClause?: Node; - location?: number; -} -export interface CTESearchClause { - search_col_list?: Node[]; - search_breadth_first?: boolean; - search_seq_column?: string; - location?: number; -} -export interface CTECycleClause { - cycle_col_list?: Node[]; - cycle_mark_column?: string; - cycle_mark_value?: Node; - cycle_mark_default?: Node; - cycle_path_column?: string; - location?: number; - cycle_mark_type?: number; - cycle_mark_typmod?: number; - cycle_mark_collation?: number; - cycle_mark_neop?: number; -} -export interface CommonTableExpr { - ctename?: string; - aliascolnames?: Node[]; - ctematerialized?: CTEMaterialize; - ctequery?: Node; - search_clause?: CTESearchClause; - cycle_clause?: CTECycleClause; - location?: number; - cterecursive?: boolean; - cterefcount?: number; - ctecolnames?: Node[]; - ctecoltypes?: Node[]; - ctecoltypmods?: Node[]; - ctecolcollations?: Node[]; -} -export interface MergeWhenClause { - matched?: boolean; - commandType?: CmdType; - override?: OverridingKind; - condition?: Node; - targetList?: Node[]; - values?: Node[]; -} -export interface MergeAction { - matched?: boolean; - commandType?: CmdType; - override?: OverridingKind; - qual?: Node; - targetList?: Node[]; - updateColnos?: Node[]; -} -export interface TriggerTransition { - name?: string; - isNew?: boolean; - isTable?: boolean; -} -export interface JsonOutput { - typeName?: TypeName; - returning?: JsonReturning; -} -export interface JsonKeyValue { - key?: Node; - value?: JsonValueExpr; -} -export interface JsonObjectConstructor { - exprs?: Node[]; - output?: JsonOutput; - absent_on_null?: boolean; - unique?: boolean; - location?: number; -} -export interface JsonArrayConstructor { - exprs?: Node[]; - output?: JsonOutput; - absent_on_null?: boolean; - location?: number; -} -export interface JsonArrayQueryConstructor { - query?: Node; - output?: JsonOutput; - format?: JsonFormat; - absent_on_null?: boolean; - location?: number; -} -export interface JsonAggConstructor { - output?: JsonOutput; - agg_filter?: Node; - agg_order?: Node[]; - over?: WindowDef; - location?: number; -} -export interface JsonObjectAgg { - constructor?: JsonAggConstructor; - arg?: JsonKeyValue; - absent_on_null?: boolean; - unique?: boolean; -} -export interface JsonArrayAgg { - constructor?: JsonAggConstructor; - arg?: JsonValueExpr; - absent_on_null?: boolean; -} -export interface RawStmt { - stmt?: Node; - stmt_location?: number; - stmt_len?: number; -} -export interface InsertStmt { - relation?: RangeVar; - cols?: Node[]; - selectStmt?: Node; - onConflictClause?: OnConflictClause; - returningList?: Node[]; - withClause?: WithClause; - override?: OverridingKind; -} -export interface DeleteStmt { - relation?: RangeVar; - usingClause?: Node[]; - whereClause?: Node; - returningList?: Node[]; - withClause?: WithClause; -} -export interface UpdateStmt { - relation?: RangeVar; - targetList?: Node[]; - whereClause?: Node; - fromClause?: Node[]; - returningList?: Node[]; - withClause?: WithClause; -} -export interface MergeStmt { - relation?: RangeVar; - sourceRelation?: Node; - joinCondition?: Node; - mergeWhenClauses?: Node[]; - withClause?: WithClause; -} -export interface SelectStmt { - distinctClause?: Node[]; - intoClause?: IntoClause; - targetList?: Node[]; - fromClause?: Node[]; - whereClause?: Node; - groupClause?: Node[]; - groupDistinct?: boolean; - havingClause?: Node; - windowClause?: Node[]; - valuesLists?: Node[]; - sortClause?: Node[]; - limitOffset?: Node; - limitCount?: Node; - limitOption?: LimitOption; - lockingClause?: Node[]; - withClause?: WithClause; - op?: SetOperation; - all?: boolean; - larg?: SelectStmt; - rarg?: SelectStmt; -} -export interface SetOperationStmt { - op?: SetOperation; - all?: boolean; - larg?: Node; - rarg?: Node; - colTypes?: Node[]; - colTypmods?: Node[]; - colCollations?: Node[]; - groupClauses?: Node[]; -} -export interface ReturnStmt { - returnval?: Node; -} -export interface PLAssignStmt { - name?: string; - indirection?: Node[]; - nnames?: number; - val?: SelectStmt; - location?: number; -} -export interface CreateSchemaStmt { - schemaname?: string; - authrole?: RoleSpec; - schemaElts?: Node[]; - if_not_exists?: boolean; -} -export interface AlterTableStmt { - relation?: RangeVar; - cmds?: Node[]; - objtype?: ObjectType; - missing_ok?: boolean; -} -export interface ReplicaIdentityStmt { - identity_type?: string; - name?: string; -} -export interface AlterTableCmd { - subtype?: AlterTableType; - name?: string; - num?: number; - newowner?: RoleSpec; - def?: Node; - behavior?: DropBehavior; - missing_ok?: boolean; - recurse?: boolean; -} -export interface AlterCollationStmt { - collname?: Node[]; -} -export interface AlterDomainStmt { - subtype?: string; - typeName?: Node[]; - name?: string; - def?: Node; - behavior?: DropBehavior; - missing_ok?: boolean; -} -export interface GrantStmt { - is_grant?: boolean; - targtype?: GrantTargetType; - objtype?: ObjectType; - objects?: Node[]; - privileges?: Node[]; - grantees?: Node[]; - grant_option?: boolean; - grantor?: RoleSpec; - behavior?: DropBehavior; -} -export interface ObjectWithArgs { - objname?: Node[]; - objargs?: Node[]; - objfuncargs?: Node[]; - args_unspecified?: boolean; -} -export interface AccessPriv { - priv_name?: string; - cols?: Node[]; -} -export interface GrantRoleStmt { - granted_roles?: Node[]; - grantee_roles?: Node[]; - is_grant?: boolean; - opt?: Node[]; - grantor?: RoleSpec; - behavior?: DropBehavior; -} -export interface AlterDefaultPrivilegesStmt { - options?: Node[]; - action?: GrantStmt; -} -export interface CopyStmt { - relation?: RangeVar; - query?: Node; - attlist?: Node[]; - is_from?: boolean; - is_program?: boolean; - filename?: string; - options?: Node[]; - whereClause?: Node; -} -export interface VariableSetStmt { - kind?: VariableSetKind; - name?: string; - args?: Node[]; - is_local?: boolean; -} -export interface VariableShowStmt { - name?: string; -} -export interface CreateStmt { - relation?: RangeVar; - tableElts?: Node[]; - inhRelations?: Node[]; - partbound?: PartitionBoundSpec; - partspec?: PartitionSpec; - ofTypename?: TypeName; - constraints?: Node[]; - options?: Node[]; - oncommit?: OnCommitAction; - tablespacename?: string; - accessMethod?: string; - if_not_exists?: boolean; -} -export interface Constraint { - contype?: ConstrType; - conname?: string; - deferrable?: boolean; - initdeferred?: boolean; - location?: number; - is_no_inherit?: boolean; - raw_expr?: Node; - cooked_expr?: string; - generated_when?: string; - nulls_not_distinct?: boolean; - keys?: Node[]; - including?: Node[]; - exclusions?: Node[]; - options?: Node[]; - indexname?: string; - indexspace?: string; - reset_default_tblspc?: boolean; - access_method?: string; - where_clause?: Node; - pktable?: RangeVar; - fk_attrs?: Node[]; - pk_attrs?: Node[]; - fk_matchtype?: string; - fk_upd_action?: string; - fk_del_action?: string; - fk_del_set_cols?: Node[]; - old_conpfeqop?: Node[]; - old_pktable_oid?: number; - skip_validation?: boolean; - initially_valid?: boolean; -} -export interface CreateTableSpaceStmt { - tablespacename?: string; - owner?: RoleSpec; - location?: string; - options?: Node[]; -} -export interface DropTableSpaceStmt { - tablespacename?: string; - missing_ok?: boolean; -} -export interface AlterTableSpaceOptionsStmt { - tablespacename?: string; - options?: Node[]; - isReset?: boolean; -} -export interface AlterTableMoveAllStmt { - orig_tablespacename?: string; - objtype?: ObjectType; - roles?: Node[]; - new_tablespacename?: string; - nowait?: boolean; -} -export interface CreateExtensionStmt { - extname?: string; - if_not_exists?: boolean; - options?: Node[]; -} -export interface AlterExtensionStmt { - extname?: string; - options?: Node[]; -} -export interface AlterExtensionContentsStmt { - extname?: string; - action?: number; - objtype?: ObjectType; - object?: Node; -} -export interface CreateFdwStmt { - fdwname?: string; - func_options?: Node[]; - options?: Node[]; -} -export interface AlterFdwStmt { - fdwname?: string; - func_options?: Node[]; - options?: Node[]; -} -export interface CreateForeignServerStmt { - servername?: string; - servertype?: string; - version?: string; - fdwname?: string; - if_not_exists?: boolean; - options?: Node[]; -} -export interface AlterForeignServerStmt { - servername?: string; - version?: string; - options?: Node[]; - has_version?: boolean; -} -export interface CreateForeignTableStmt { - base?: CreateStmt; - servername?: string; - options?: Node[]; -} -export interface CreateUserMappingStmt { - user?: RoleSpec; - servername?: string; - if_not_exists?: boolean; - options?: Node[]; -} -export interface AlterUserMappingStmt { - user?: RoleSpec; - servername?: string; - options?: Node[]; -} -export interface DropUserMappingStmt { - user?: RoleSpec; - servername?: string; - missing_ok?: boolean; -} -export interface ImportForeignSchemaStmt { - server_name?: string; - remote_schema?: string; - local_schema?: string; - list_type?: ImportForeignSchemaType; - table_list?: Node[]; - options?: Node[]; -} -export interface CreatePolicyStmt { - policy_name?: string; - table?: RangeVar; - cmd_name?: string; - permissive?: boolean; - roles?: Node[]; - qual?: Node; - with_check?: Node; -} -export interface AlterPolicyStmt { - policy_name?: string; - table?: RangeVar; - roles?: Node[]; - qual?: Node; - with_check?: Node; -} -export interface CreateAmStmt { - amname?: string; - handler_name?: Node[]; - amtype?: string; -} -export interface CreateTrigStmt { - replace?: boolean; - isconstraint?: boolean; - trigname?: string; - relation?: RangeVar; - funcname?: Node[]; - args?: Node[]; - row?: boolean; - timing?: number; - events?: number; - columns?: Node[]; - whenClause?: Node; - transitionRels?: Node[]; - deferrable?: boolean; - initdeferred?: boolean; - constrrel?: RangeVar; -} -export interface CreateEventTrigStmt { - trigname?: string; - eventname?: string; - whenclause?: Node[]; - funcname?: Node[]; -} -export interface AlterEventTrigStmt { - trigname?: string; - tgenabled?: string; -} -export interface CreatePLangStmt { - replace?: boolean; - plname?: string; - plhandler?: Node[]; - plinline?: Node[]; - plvalidator?: Node[]; - pltrusted?: boolean; -} -export interface CreateRoleStmt { - stmt_type?: RoleStmtType; - role?: string; - options?: Node[]; -} -export interface AlterRoleStmt { - role?: RoleSpec; - options?: Node[]; - action?: number; -} -export interface AlterRoleSetStmt { - role?: RoleSpec; - database?: string; - setstmt?: VariableSetStmt; -} -export interface DropRoleStmt { - roles?: Node[]; - missing_ok?: boolean; -} -export interface CreateSeqStmt { - sequence?: RangeVar; - options?: Node[]; - ownerId?: number; - for_identity?: boolean; - if_not_exists?: boolean; -} -export interface AlterSeqStmt { - sequence?: RangeVar; - options?: Node[]; - for_identity?: boolean; - missing_ok?: boolean; -} -export interface DefineStmt { - kind?: ObjectType; - oldstyle?: boolean; - defnames?: Node[]; - args?: Node[]; - definition?: Node[]; - if_not_exists?: boolean; - replace?: boolean; -} -export interface CreateDomainStmt { - domainname?: Node[]; - typeName?: TypeName; - collClause?: CollateClause; - constraints?: Node[]; -} -export interface CreateOpClassStmt { - opclassname?: Node[]; - opfamilyname?: Node[]; - amname?: string; - datatype?: TypeName; - items?: Node[]; - isDefault?: boolean; -} -export interface CreateOpClassItem { - itemtype?: number; - name?: ObjectWithArgs; - number?: number; - order_family?: Node[]; - class_args?: Node[]; - storedtype?: TypeName; -} -export interface CreateOpFamilyStmt { - opfamilyname?: Node[]; - amname?: string; -} -export interface AlterOpFamilyStmt { - opfamilyname?: Node[]; - amname?: string; - isDrop?: boolean; - items?: Node[]; -} -export interface DropStmt { - objects?: Node[]; - removeType?: ObjectType; - behavior?: DropBehavior; - missing_ok?: boolean; - concurrent?: boolean; -} -export interface TruncateStmt { - relations?: Node[]; - restart_seqs?: boolean; - behavior?: DropBehavior; -} -export interface CommentStmt { - objtype?: ObjectType; - object?: Node; - comment?: string; -} -export interface SecLabelStmt { - objtype?: ObjectType; - object?: Node; - provider?: string; - label?: string; -} -export interface DeclareCursorStmt { - portalname?: string; - options?: number; - query?: Node; -} -export interface ClosePortalStmt { - portalname?: string; -} -export interface FetchStmt { - direction?: FetchDirection; - howMany?: bigint; - portalname?: string; - ismove?: boolean; -} -export interface IndexStmt { - idxname?: string; - relation?: RangeVar; - accessMethod?: string; - tableSpace?: string; - indexParams?: Node[]; - indexIncludingParams?: Node[]; - options?: Node[]; - whereClause?: Node; - excludeOpNames?: Node[]; - idxcomment?: string; - indexOid?: number; - oldNumber?: number; - oldCreateSubid?: number; - oldFirstRelfilelocatorSubid?: number; - unique?: boolean; - nulls_not_distinct?: boolean; - primary?: boolean; - isconstraint?: boolean; - deferrable?: boolean; - initdeferred?: boolean; - transformed?: boolean; - concurrent?: boolean; - if_not_exists?: boolean; - reset_default_tblspc?: boolean; -} -export interface CreateStatsStmt { - defnames?: Node[]; - stat_types?: Node[]; - exprs?: Node[]; - relations?: Node[]; - stxcomment?: string; - transformed?: boolean; - if_not_exists?: boolean; -} -export interface StatsElem { - name?: string; - expr?: Node; -} -export interface AlterStatsStmt { - defnames?: Node[]; - stxstattarget?: number; - missing_ok?: boolean; -} -export interface CreateFunctionStmt { - is_procedure?: boolean; - replace?: boolean; - funcname?: Node[]; - parameters?: Node[]; - returnType?: TypeName; - options?: Node[]; - sql_body?: Node; -} -export interface FunctionParameter { - name?: string; - argType?: TypeName; - mode?: FunctionParameterMode; - defexpr?: Node; -} -export interface AlterFunctionStmt { - objtype?: ObjectType; - func?: ObjectWithArgs; - actions?: Node[]; -} -export interface DoStmt { - args?: Node[]; -} -export interface InlineCodeBlock { - source_text?: string; - langOid?: number; - langIsTrusted?: boolean; - atomic?: boolean; -} -export interface CallStmt { - funccall?: FuncCall; - funcexpr?: FuncExpr; - outargs?: Node[]; -} -export interface CallContext { - atomic?: boolean; -} -export interface RenameStmt { - renameType?: ObjectType; - relationType?: ObjectType; - relation?: RangeVar; - object?: Node; - subname?: string; - newname?: string; - behavior?: DropBehavior; - missing_ok?: boolean; -} -export interface AlterObjectDependsStmt { - objectType?: ObjectType; - relation?: RangeVar; - object?: Node; - extname?: String; - remove?: boolean; -} -export interface AlterObjectSchemaStmt { - objectType?: ObjectType; - relation?: RangeVar; - object?: Node; - newschema?: string; - missing_ok?: boolean; -} -export interface AlterOwnerStmt { - objectType?: ObjectType; - relation?: RangeVar; - object?: Node; - newowner?: RoleSpec; -} -export interface AlterOperatorStmt { - opername?: ObjectWithArgs; - options?: Node[]; -} -export interface AlterTypeStmt { - typeName?: Node[]; - options?: Node[]; -} -export interface RuleStmt { - relation?: RangeVar; - rulename?: string; - whereClause?: Node; - event?: CmdType; - instead?: boolean; - actions?: Node[]; - replace?: boolean; -} -export interface NotifyStmt { - conditionname?: string; - payload?: string; -} -export interface ListenStmt { - conditionname?: string; -} -export interface UnlistenStmt { - conditionname?: string; -} -export interface TransactionStmt { - kind?: TransactionStmtKind; - options?: Node[]; - savepoint_name?: string; - gid?: string; - chain?: boolean; -} -export interface CompositeTypeStmt { - typevar?: RangeVar; - coldeflist?: Node[]; -} -export interface CreateEnumStmt { - typeName?: Node[]; - vals?: Node[]; -} -export interface CreateRangeStmt { - typeName?: Node[]; - params?: Node[]; -} -export interface AlterEnumStmt { - typeName?: Node[]; - oldVal?: string; - newVal?: string; - newValNeighbor?: string; - newValIsAfter?: boolean; - skipIfNewValExists?: boolean; -} -export interface ViewStmt { - view?: RangeVar; - aliases?: Node[]; - query?: Node; - replace?: boolean; - options?: Node[]; - withCheckOption?: ViewCheckOption; -} -export interface LoadStmt { - filename?: string; -} -export interface CreatedbStmt { - dbname?: string; - options?: Node[]; -} -export interface AlterDatabaseStmt { - dbname?: string; - options?: Node[]; -} -export interface AlterDatabaseRefreshCollStmt { - dbname?: string; -} -export interface AlterDatabaseSetStmt { - dbname?: string; - setstmt?: VariableSetStmt; -} -export interface DropdbStmt { - dbname?: string; - missing_ok?: boolean; - options?: Node[]; -} -export interface AlterSystemStmt { - setstmt?: VariableSetStmt; -} -export interface ClusterStmt { - relation?: RangeVar; - indexname?: string; - params?: Node[]; -} -export interface VacuumStmt { - options?: Node[]; - rels?: Node[]; - is_vacuumcmd?: boolean; -} -export interface VacuumRelation { - relation?: RangeVar; - oid?: number; - va_cols?: Node[]; -} -export interface ExplainStmt { - query?: Node; - options?: Node[]; -} -export interface CreateTableAsStmt { - query?: Node; - into?: IntoClause; - objtype?: ObjectType; - is_select_into?: boolean; - if_not_exists?: boolean; -} -export interface RefreshMatViewStmt { - concurrent?: boolean; - skipData?: boolean; - relation?: RangeVar; -} -export interface CheckPointStmt {} -export interface DiscardStmt { - target?: DiscardMode; -} -export interface LockStmt { - relations?: Node[]; - mode?: number; - nowait?: boolean; -} -export interface ConstraintsSetStmt { - constraints?: Node[]; - deferred?: boolean; -} -export interface ReindexStmt { - kind?: ReindexObjectType; - relation?: RangeVar; - name?: string; - params?: Node[]; -} -export interface CreateConversionStmt { - conversion_name?: Node[]; - for_encoding_name?: string; - to_encoding_name?: string; - func_name?: Node[]; - def?: boolean; -} -export interface CreateCastStmt { - sourcetype?: TypeName; - targettype?: TypeName; - func?: ObjectWithArgs; - context?: CoercionContext; - inout?: boolean; -} -export interface CreateTransformStmt { - replace?: boolean; - type_name?: TypeName; - lang?: string; - fromsql?: ObjectWithArgs; - tosql?: ObjectWithArgs; -} -export interface PrepareStmt { - name?: string; - argtypes?: Node[]; - query?: Node; -} -export interface ExecuteStmt { - name?: string; - params?: Node[]; -} -export interface DeallocateStmt { - name?: string; -} -export interface DropOwnedStmt { - roles?: Node[]; - behavior?: DropBehavior; -} -export interface ReassignOwnedStmt { - roles?: Node[]; - newrole?: RoleSpec; -} -export interface AlterTSDictionaryStmt { - dictname?: Node[]; - options?: Node[]; -} -export interface AlterTSConfigurationStmt { - kind?: AlterTSConfigType; - cfgname?: Node[]; - tokentype?: Node[]; - dicts?: Node[]; - override?: boolean; - replace?: boolean; - missing_ok?: boolean; -} -export interface PublicationTable { - relation?: RangeVar; - whereClause?: Node; - columns?: Node[]; -} -export interface PublicationObjSpec { - pubobjtype?: PublicationObjSpecType; - name?: string; - pubtable?: PublicationTable; - location?: number; -} -export interface CreatePublicationStmt { - pubname?: string; - options?: Node[]; - pubobjects?: Node[]; - for_all_tables?: boolean; -} -export interface AlterPublicationStmt { - pubname?: string; - options?: Node[]; - pubobjects?: Node[]; - for_all_tables?: boolean; - action?: AlterPublicationAction; -} -export interface CreateSubscriptionStmt { - subname?: string; - conninfo?: string; - publication?: Node[]; - options?: Node[]; -} -export interface AlterSubscriptionStmt { - kind?: AlterSubscriptionType; - subname?: string; - conninfo?: string; - publication?: Node[]; - options?: Node[]; -} -export interface DropSubscriptionStmt { - subname?: string; - missing_ok?: boolean; - behavior?: DropBehavior; -} -export interface ScanToken { - start?: number; - end?: number; - token?: Token; - keywordKind?: KeywordKind; -}", - "file": "types.ts", - }, -] -`; - -exports[`types wrapped 1`] = ` -[ - { - "code": "/** -* This file was automatically generated by pg-proto-parser@latest. -* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, -* and run the pg-proto-parser generate command to regenerate this file. -*/ -import { OverridingKind, QuerySource, SortByDir, SortByNulls, SetQuantifier, A_Expr_Kind, RoleSpecType, TableLikeOption, DefElemAction, PartitionStrategy, PartitionRangeDatumKind, RTEKind, WCOKind, GroupingSetKind, CTEMaterialize, SetOperation, ObjectType, DropBehavior, AlterTableType, GrantTargetType, VariableSetKind, ConstrType, ImportForeignSchemaType, RoleStmtType, FetchDirection, FunctionParameterMode, TransactionStmtKind, ViewCheckOption, DiscardMode, ReindexObjectType, AlterTSConfigType, PublicationObjSpecType, AlterPublicationAction, AlterSubscriptionType, OnCommitAction, ParamKind, CoercionContext, CoercionForm, BoolExprType, SubLinkType, RowCompareType, MinMaxOp, SQLValueFunctionOp, XmlExprOp, XmlOptionType, JsonEncoding, JsonFormatType, JsonConstructorType, JsonValueType, NullTestType, BoolTestType, CmdType, JoinType, AggStrategy, AggSplit, SetOpCmd, SetOpStrategy, OnConflictAction, LimitOption, LockClauseStrength, LockWaitPolicy, LockTupleMode, KeywordKind, Token } from "my-enums.ts"; -export type Node = ParseResult | ScanResult | Integer | Float | Boolean | String | BitString | List | OidList | IntList | A_Const | Alias | RangeVar | TableFunc | IntoClause | Var | Param | Aggref | GroupingFunc | WindowFunc | SubscriptingRef | FuncExpr | NamedArgExpr | OpExpr | DistinctExpr | NullIfExpr | ScalarArrayOpExpr | BoolExpr | SubLink | SubPlan | AlternativeSubPlan | FieldSelect | FieldStore | RelabelType | CoerceViaIO | ArrayCoerceExpr | ConvertRowtypeExpr | CollateExpr | CaseExpr | CaseWhen | CaseTestExpr | ArrayExpr | RowExpr | RowCompareExpr | CoalesceExpr | MinMaxExpr | SQLValueFunction | XmlExpr | JsonFormat | JsonReturning | JsonValueExpr | JsonConstructorExpr | JsonIsPredicate | NullTest | BooleanTest | CoerceToDomain | CoerceToDomainValue | SetToDefault | CurrentOfExpr | NextValueExpr | InferenceElem | TargetEntry | RangeTblRef | JoinExpr | FromExpr | OnConflictExpr | Query | TypeName | ColumnRef | ParamRef | A_Expr | TypeCast | CollateClause | RoleSpec | FuncCall | A_Star | A_Indices | A_Indirection | A_ArrayExpr | ResTarget | MultiAssignRef | SortBy | WindowDef | RangeSubselect | RangeFunction | RangeTableFunc | RangeTableFuncCol | RangeTableSample | ColumnDef | TableLikeClause | IndexElem | DefElem | LockingClause | XmlSerialize | PartitionElem | PartitionSpec | PartitionBoundSpec | PartitionRangeDatum | PartitionCmd | RangeTblEntry | RTEPermissionInfo | RangeTblFunction | TableSampleClause | WithCheckOption | SortGroupClause | GroupingSet | WindowClause | RowMarkClause | WithClause | InferClause | OnConflictClause | CTESearchClause | CTECycleClause | CommonTableExpr | MergeWhenClause | MergeAction | TriggerTransition | JsonOutput | JsonKeyValue | JsonObjectConstructor | JsonArrayConstructor | JsonArrayQueryConstructor | JsonAggConstructor | JsonObjectAgg | JsonArrayAgg | RawStmt | InsertStmt | DeleteStmt | UpdateStmt | MergeStmt | SelectStmt | SetOperationStmt | ReturnStmt | PLAssignStmt | CreateSchemaStmt | AlterTableStmt | ReplicaIdentityStmt | AlterTableCmd | AlterCollationStmt | AlterDomainStmt | GrantStmt | ObjectWithArgs | AccessPriv | GrantRoleStmt | AlterDefaultPrivilegesStmt | CopyStmt | VariableSetStmt | VariableShowStmt | CreateStmt | Constraint | CreateTableSpaceStmt | DropTableSpaceStmt | AlterTableSpaceOptionsStmt | AlterTableMoveAllStmt | CreateExtensionStmt | AlterExtensionStmt | AlterExtensionContentsStmt | CreateFdwStmt | AlterFdwStmt | CreateForeignServerStmt | AlterForeignServerStmt | CreateForeignTableStmt | CreateUserMappingStmt | AlterUserMappingStmt | DropUserMappingStmt | ImportForeignSchemaStmt | CreatePolicyStmt | AlterPolicyStmt | CreateAmStmt | CreateTrigStmt | CreateEventTrigStmt | AlterEventTrigStmt | CreatePLangStmt | CreateRoleStmt | AlterRoleStmt | AlterRoleSetStmt | DropRoleStmt | CreateSeqStmt | AlterSeqStmt | DefineStmt | CreateDomainStmt | CreateOpClassStmt | CreateOpClassItem | CreateOpFamilyStmt | AlterOpFamilyStmt | DropStmt | TruncateStmt | CommentStmt | SecLabelStmt | DeclareCursorStmt | ClosePortalStmt | FetchStmt | IndexStmt | CreateStatsStmt | StatsElem | AlterStatsStmt | CreateFunctionStmt | FunctionParameter | AlterFunctionStmt | DoStmt | InlineCodeBlock | CallStmt | CallContext | RenameStmt | AlterObjectDependsStmt | AlterObjectSchemaStmt | AlterOwnerStmt | AlterOperatorStmt | AlterTypeStmt | RuleStmt | NotifyStmt | ListenStmt | UnlistenStmt | TransactionStmt | CompositeTypeStmt | CreateEnumStmt | CreateRangeStmt | AlterEnumStmt | ViewStmt | LoadStmt | CreatedbStmt | AlterDatabaseStmt | AlterDatabaseRefreshCollStmt | AlterDatabaseSetStmt | DropdbStmt | AlterSystemStmt | ClusterStmt | VacuumStmt | VacuumRelation | ExplainStmt | CreateTableAsStmt | RefreshMatViewStmt | CheckPointStmt | DiscardStmt | LockStmt | ConstraintsSetStmt | ReindexStmt | CreateConversionStmt | CreateCastStmt | CreateTransformStmt | PrepareStmt | ExecuteStmt | DeallocateStmt | DropOwnedStmt | ReassignOwnedStmt | AlterTSDictionaryStmt | AlterTSConfigurationStmt | PublicationTable | PublicationObjSpec | CreatePublicationStmt | AlterPublicationStmt | CreateSubscriptionStmt | AlterSubscriptionStmt | DropSubscriptionStmt | ScanToken; +export type Node = { + ParseResult: ParseResult; +} | { + ScanResult: ScanResult; +} | { + Integer: Integer; +} | { + Float: Float; +} | { + Boolean: Boolean; +} | { + String: String; +} | { + BitString: BitString; +} | { + List: List; +} | { + OidList: OidList; +} | { + IntList: IntList; +} | { + A_Const: A_Const; +} | { + Alias: Alias; +} | { + RangeVar: RangeVar; +} | { + TableFunc: TableFunc; +} | { + IntoClause: IntoClause; +} | { + Var: Var; +} | { + Param: Param; +} | { + Aggref: Aggref; +} | { + GroupingFunc: GroupingFunc; +} | { + WindowFunc: WindowFunc; +} | { + SubscriptingRef: SubscriptingRef; +} | { + FuncExpr: FuncExpr; +} | { + NamedArgExpr: NamedArgExpr; +} | { + OpExpr: OpExpr; +} | { + DistinctExpr: DistinctExpr; +} | { + NullIfExpr: NullIfExpr; +} | { + ScalarArrayOpExpr: ScalarArrayOpExpr; +} | { + BoolExpr: BoolExpr; +} | { + SubLink: SubLink; +} | { + SubPlan: SubPlan; +} | { + AlternativeSubPlan: AlternativeSubPlan; +} | { + FieldSelect: FieldSelect; +} | { + FieldStore: FieldStore; +} | { + RelabelType: RelabelType; +} | { + CoerceViaIO: CoerceViaIO; +} | { + ArrayCoerceExpr: ArrayCoerceExpr; +} | { + ConvertRowtypeExpr: ConvertRowtypeExpr; +} | { + CollateExpr: CollateExpr; +} | { + CaseExpr: CaseExpr; +} | { + CaseWhen: CaseWhen; +} | { + CaseTestExpr: CaseTestExpr; +} | { + ArrayExpr: ArrayExpr; +} | { + RowExpr: RowExpr; +} | { + RowCompareExpr: RowCompareExpr; +} | { + CoalesceExpr: CoalesceExpr; +} | { + MinMaxExpr: MinMaxExpr; +} | { + SQLValueFunction: SQLValueFunction; +} | { + XmlExpr: XmlExpr; +} | { + JsonFormat: JsonFormat; +} | { + JsonReturning: JsonReturning; +} | { + JsonValueExpr: JsonValueExpr; +} | { + JsonConstructorExpr: JsonConstructorExpr; +} | { + JsonIsPredicate: JsonIsPredicate; +} | { + NullTest: NullTest; +} | { + BooleanTest: BooleanTest; +} | { + CoerceToDomain: CoerceToDomain; +} | { + CoerceToDomainValue: CoerceToDomainValue; +} | { + SetToDefault: SetToDefault; +} | { + CurrentOfExpr: CurrentOfExpr; +} | { + NextValueExpr: NextValueExpr; +} | { + InferenceElem: InferenceElem; +} | { + TargetEntry: TargetEntry; +} | { + RangeTblRef: RangeTblRef; +} | { + JoinExpr: JoinExpr; +} | { + FromExpr: FromExpr; +} | { + OnConflictExpr: OnConflictExpr; +} | { + Query: Query; +} | { + TypeName: TypeName; +} | { + ColumnRef: ColumnRef; +} | { + ParamRef: ParamRef; +} | { + A_Expr: A_Expr; +} | { + TypeCast: TypeCast; +} | { + CollateClause: CollateClause; +} | { + RoleSpec: RoleSpec; +} | { + FuncCall: FuncCall; +} | { + A_Star: A_Star; +} | { + A_Indices: A_Indices; +} | { + A_Indirection: A_Indirection; +} | { + A_ArrayExpr: A_ArrayExpr; +} | { + ResTarget: ResTarget; +} | { + MultiAssignRef: MultiAssignRef; +} | { + SortBy: SortBy; +} | { + WindowDef: WindowDef; +} | { + RangeSubselect: RangeSubselect; +} | { + RangeFunction: RangeFunction; +} | { + RangeTableFunc: RangeTableFunc; +} | { + RangeTableFuncCol: RangeTableFuncCol; +} | { + RangeTableSample: RangeTableSample; +} | { + ColumnDef: ColumnDef; +} | { + TableLikeClause: TableLikeClause; +} | { + IndexElem: IndexElem; +} | { + DefElem: DefElem; +} | { + LockingClause: LockingClause; +} | { + XmlSerialize: XmlSerialize; +} | { + PartitionElem: PartitionElem; +} | { + PartitionSpec: PartitionSpec; +} | { + PartitionBoundSpec: PartitionBoundSpec; +} | { + PartitionRangeDatum: PartitionRangeDatum; +} | { + PartitionCmd: PartitionCmd; +} | { + RangeTblEntry: RangeTblEntry; +} | { + RTEPermissionInfo: RTEPermissionInfo; +} | { + RangeTblFunction: RangeTblFunction; +} | { + TableSampleClause: TableSampleClause; +} | { + WithCheckOption: WithCheckOption; +} | { + SortGroupClause: SortGroupClause; +} | { + GroupingSet: GroupingSet; +} | { + WindowClause: WindowClause; +} | { + RowMarkClause: RowMarkClause; +} | { + WithClause: WithClause; +} | { + InferClause: InferClause; +} | { + OnConflictClause: OnConflictClause; +} | { + CTESearchClause: CTESearchClause; +} | { + CTECycleClause: CTECycleClause; +} | { + CommonTableExpr: CommonTableExpr; +} | { + MergeWhenClause: MergeWhenClause; +} | { + MergeAction: MergeAction; +} | { + TriggerTransition: TriggerTransition; +} | { + JsonOutput: JsonOutput; +} | { + JsonKeyValue: JsonKeyValue; +} | { + JsonObjectConstructor: JsonObjectConstructor; +} | { + JsonArrayConstructor: JsonArrayConstructor; +} | { + JsonArrayQueryConstructor: JsonArrayQueryConstructor; +} | { + JsonAggConstructor: JsonAggConstructor; +} | { + JsonObjectAgg: JsonObjectAgg; +} | { + JsonArrayAgg: JsonArrayAgg; +} | { + RawStmt: RawStmt; +} | { + InsertStmt: InsertStmt; +} | { + DeleteStmt: DeleteStmt; +} | { + UpdateStmt: UpdateStmt; +} | { + MergeStmt: MergeStmt; +} | { + SelectStmt: SelectStmt; +} | { + SetOperationStmt: SetOperationStmt; +} | { + ReturnStmt: ReturnStmt; +} | { + PLAssignStmt: PLAssignStmt; +} | { + CreateSchemaStmt: CreateSchemaStmt; +} | { + AlterTableStmt: AlterTableStmt; +} | { + ReplicaIdentityStmt: ReplicaIdentityStmt; +} | { + AlterTableCmd: AlterTableCmd; +} | { + AlterCollationStmt: AlterCollationStmt; +} | { + AlterDomainStmt: AlterDomainStmt; +} | { + GrantStmt: GrantStmt; +} | { + ObjectWithArgs: ObjectWithArgs; +} | { + AccessPriv: AccessPriv; +} | { + GrantRoleStmt: GrantRoleStmt; +} | { + AlterDefaultPrivilegesStmt: AlterDefaultPrivilegesStmt; +} | { + CopyStmt: CopyStmt; +} | { + VariableSetStmt: VariableSetStmt; +} | { + VariableShowStmt: VariableShowStmt; +} | { + CreateStmt: CreateStmt; +} | { + Constraint: Constraint; +} | { + CreateTableSpaceStmt: CreateTableSpaceStmt; +} | { + DropTableSpaceStmt: DropTableSpaceStmt; +} | { + AlterTableSpaceOptionsStmt: AlterTableSpaceOptionsStmt; +} | { + AlterTableMoveAllStmt: AlterTableMoveAllStmt; +} | { + CreateExtensionStmt: CreateExtensionStmt; +} | { + AlterExtensionStmt: AlterExtensionStmt; +} | { + AlterExtensionContentsStmt: AlterExtensionContentsStmt; +} | { + CreateFdwStmt: CreateFdwStmt; +} | { + AlterFdwStmt: AlterFdwStmt; +} | { + CreateForeignServerStmt: CreateForeignServerStmt; +} | { + AlterForeignServerStmt: AlterForeignServerStmt; +} | { + CreateForeignTableStmt: CreateForeignTableStmt; +} | { + CreateUserMappingStmt: CreateUserMappingStmt; +} | { + AlterUserMappingStmt: AlterUserMappingStmt; +} | { + DropUserMappingStmt: DropUserMappingStmt; +} | { + ImportForeignSchemaStmt: ImportForeignSchemaStmt; +} | { + CreatePolicyStmt: CreatePolicyStmt; +} | { + AlterPolicyStmt: AlterPolicyStmt; +} | { + CreateAmStmt: CreateAmStmt; +} | { + CreateTrigStmt: CreateTrigStmt; +} | { + CreateEventTrigStmt: CreateEventTrigStmt; +} | { + AlterEventTrigStmt: AlterEventTrigStmt; +} | { + CreatePLangStmt: CreatePLangStmt; +} | { + CreateRoleStmt: CreateRoleStmt; +} | { + AlterRoleStmt: AlterRoleStmt; +} | { + AlterRoleSetStmt: AlterRoleSetStmt; +} | { + DropRoleStmt: DropRoleStmt; +} | { + CreateSeqStmt: CreateSeqStmt; +} | { + AlterSeqStmt: AlterSeqStmt; +} | { + DefineStmt: DefineStmt; +} | { + CreateDomainStmt: CreateDomainStmt; +} | { + CreateOpClassStmt: CreateOpClassStmt; +} | { + CreateOpClassItem: CreateOpClassItem; +} | { + CreateOpFamilyStmt: CreateOpFamilyStmt; +} | { + AlterOpFamilyStmt: AlterOpFamilyStmt; +} | { + DropStmt: DropStmt; +} | { + TruncateStmt: TruncateStmt; +} | { + CommentStmt: CommentStmt; +} | { + SecLabelStmt: SecLabelStmt; +} | { + DeclareCursorStmt: DeclareCursorStmt; +} | { + ClosePortalStmt: ClosePortalStmt; +} | { + FetchStmt: FetchStmt; +} | { + IndexStmt: IndexStmt; +} | { + CreateStatsStmt: CreateStatsStmt; +} | { + StatsElem: StatsElem; +} | { + AlterStatsStmt: AlterStatsStmt; +} | { + CreateFunctionStmt: CreateFunctionStmt; +} | { + FunctionParameter: FunctionParameter; +} | { + AlterFunctionStmt: AlterFunctionStmt; +} | { + DoStmt: DoStmt; +} | { + InlineCodeBlock: InlineCodeBlock; +} | { + CallStmt: CallStmt; +} | { + CallContext: CallContext; +} | { + RenameStmt: RenameStmt; +} | { + AlterObjectDependsStmt: AlterObjectDependsStmt; +} | { + AlterObjectSchemaStmt: AlterObjectSchemaStmt; +} | { + AlterOwnerStmt: AlterOwnerStmt; +} | { + AlterOperatorStmt: AlterOperatorStmt; +} | { + AlterTypeStmt: AlterTypeStmt; +} | { + RuleStmt: RuleStmt; +} | { + NotifyStmt: NotifyStmt; +} | { + ListenStmt: ListenStmt; +} | { + UnlistenStmt: UnlistenStmt; +} | { + TransactionStmt: TransactionStmt; +} | { + CompositeTypeStmt: CompositeTypeStmt; +} | { + CreateEnumStmt: CreateEnumStmt; +} | { + CreateRangeStmt: CreateRangeStmt; +} | { + AlterEnumStmt: AlterEnumStmt; +} | { + ViewStmt: ViewStmt; +} | { + LoadStmt: LoadStmt; +} | { + CreatedbStmt: CreatedbStmt; +} | { + AlterDatabaseStmt: AlterDatabaseStmt; +} | { + AlterDatabaseRefreshCollStmt: AlterDatabaseRefreshCollStmt; +} | { + AlterDatabaseSetStmt: AlterDatabaseSetStmt; +} | { + DropdbStmt: DropdbStmt; +} | { + AlterSystemStmt: AlterSystemStmt; +} | { + ClusterStmt: ClusterStmt; +} | { + VacuumStmt: VacuumStmt; +} | { + VacuumRelation: VacuumRelation; +} | { + ExplainStmt: ExplainStmt; +} | { + CreateTableAsStmt: CreateTableAsStmt; +} | { + RefreshMatViewStmt: RefreshMatViewStmt; +} | { + CheckPointStmt: CheckPointStmt; +} | { + DiscardStmt: DiscardStmt; +} | { + LockStmt: LockStmt; +} | { + ConstraintsSetStmt: ConstraintsSetStmt; +} | { + ReindexStmt: ReindexStmt; +} | { + CreateConversionStmt: CreateConversionStmt; +} | { + CreateCastStmt: CreateCastStmt; +} | { + CreateTransformStmt: CreateTransformStmt; +} | { + PrepareStmt: PrepareStmt; +} | { + ExecuteStmt: ExecuteStmt; +} | { + DeallocateStmt: DeallocateStmt; +} | { + DropOwnedStmt: DropOwnedStmt; +} | { + ReassignOwnedStmt: ReassignOwnedStmt; +} | { + AlterTSDictionaryStmt: AlterTSDictionaryStmt; +} | { + AlterTSConfigurationStmt: AlterTSConfigurationStmt; +} | { + PublicationTable: PublicationTable; +} | { + PublicationObjSpec: PublicationObjSpec; +} | { + CreatePublicationStmt: CreatePublicationStmt; +} | { + AlterPublicationStmt: AlterPublicationStmt; +} | { + CreateSubscriptionStmt: CreateSubscriptionStmt; +} | { + AlterSubscriptionStmt: AlterSubscriptionStmt; +} | { + DropSubscriptionStmt: DropSubscriptionStmt; +} | { + ScanToken: ScanToken; +}; export interface ParseResult { - version?: number; - stmts?: RawStmt[]; + version: number; + stmts: RawStmt[]; } export interface ScanResult { - version?: number; - tokens?: ScanToken[]; + version: number; + tokens: ScanToken[]; } export interface Integer { - ival?: number; + ival: number; } export interface Float { - fval?: string; + fval: string; } export interface Boolean { - boolval?: boolean; + boolval: boolean; } export interface String { - sval?: string; + sval: string; } export interface BitString { - bsval?: string; + bsval: string; } export interface List { - items?: Node[]; + items: Node[]; } export interface OidList { - items?: Node[]; + items: Node[]; } export interface IntList { - items?: Node[]; + items: Node[]; } export interface A_Const { - ival?: Integer; - fval?: Float; - boolval?: Boolean; - sval?: String; - bsval?: BitString; - isnull?: boolean; - location?: number; + ival: Integer; + fval: Float; + boolval: Boolean; + sval: String; + bsval: BitString; + isnull: boolean; + location: number; } export interface Alias { - aliasname?: string; - colnames?: Node[]; + aliasname: string; + colnames: Node[]; } export interface RangeVar { - catalogname?: string; - schemaname?: string; - relname?: string; - inh?: boolean; - relpersistence?: string; - alias?: Alias; - location?: number; -} -export interface TableFunc { - ns_uris?: Node[]; - ns_names?: Node[]; - docexpr?: Node; - rowexpr?: Node; - colnames?: Node[]; - coltypes?: Node[]; - coltypmods?: Node[]; - colcollations?: Node[]; - colexprs?: Node[]; - coldefexprs?: Node[]; - notnulls?: bigint[]; - ordinalitycol?: number; - location?: number; + catalogname: string; + schemaname: string; + relname: string; + inh: boolean; + relpersistence: string; + alias: Alias; + location: number; +} +export interface TableFunc { + ns_uris: Node[]; + ns_names: Node[]; + docexpr: Node; + rowexpr: Node; + colnames: Node[]; + coltypes: Node[]; + coltypmods: Node[]; + colcollations: Node[]; + colexprs: Node[]; + coldefexprs: Node[]; + notnulls: bigint[]; + ordinalitycol: number; + location: number; } export interface IntoClause { - rel?: RangeVar; - colNames?: Node[]; - accessMethod?: string; - options?: Node[]; - onCommit?: OnCommitAction; - tableSpaceName?: string; - viewQuery?: Node; - skipData?: boolean; + rel: RangeVar; + colNames: Node[]; + accessMethod: string; + options: Node[]; + onCommit: OnCommitAction; + tableSpaceName: string; + viewQuery: Node; + skipData: boolean; } export interface Var { - xpr?: Node; - varno?: number; - varattno?: number; - vartype?: number; - vartypmod?: number; - varcollid?: number; - varnullingrels?: bigint[]; - varlevelsup?: number; - location?: number; + xpr: Node; + varno: number; + varattno: number; + vartype: number; + vartypmod: number; + varcollid: number; + varnullingrels: bigint[]; + varlevelsup: number; + location: number; } export interface Param { - xpr?: Node; - paramkind?: ParamKind; - paramid?: number; - paramtype?: number; - paramtypmod?: number; - paramcollid?: number; - location?: number; + xpr: Node; + paramkind: ParamKind; + paramid: number; + paramtype: number; + paramtypmod: number; + paramcollid: number; + location: number; } export interface Aggref { - xpr?: Node; - aggfnoid?: number; - aggtype?: number; - aggcollid?: number; - inputcollid?: number; - aggargtypes?: Node[]; - aggdirectargs?: Node[]; - args?: Node[]; - aggorder?: Node[]; - aggdistinct?: Node[]; - aggfilter?: Node; - aggstar?: boolean; - aggvariadic?: boolean; - aggkind?: string; - agglevelsup?: number; - aggsplit?: AggSplit; - aggno?: number; - aggtransno?: number; - location?: number; + xpr: Node; + aggfnoid: number; + aggtype: number; + aggcollid: number; + inputcollid: number; + aggargtypes: Node[]; + aggdirectargs: Node[]; + args: Node[]; + aggorder: Node[]; + aggdistinct: Node[]; + aggfilter: Node; + aggstar: boolean; + aggvariadic: boolean; + aggkind: string; + agglevelsup: number; + aggsplit: AggSplit; + aggno: number; + aggtransno: number; + location: number; } export interface GroupingFunc { - xpr?: Node; - args?: Node[]; - refs?: Node[]; - agglevelsup?: number; - location?: number; + xpr: Node; + args: Node[]; + refs: Node[]; + agglevelsup: number; + location: number; } export interface WindowFunc { - xpr?: Node; - winfnoid?: number; - wintype?: number; - wincollid?: number; - inputcollid?: number; - args?: Node[]; - aggfilter?: Node; - winref?: number; - winstar?: boolean; - winagg?: boolean; - location?: number; + xpr: Node; + winfnoid: number; + wintype: number; + wincollid: number; + inputcollid: number; + args: Node[]; + aggfilter: Node; + winref: number; + winstar: boolean; + winagg: boolean; + location: number; } export interface SubscriptingRef { - xpr?: Node; - refcontainertype?: number; - refelemtype?: number; - refrestype?: number; - reftypmod?: number; - refcollid?: number; - refupperindexpr?: Node[]; - reflowerindexpr?: Node[]; - refexpr?: Node; - refassgnexpr?: Node; + xpr: Node; + refcontainertype: number; + refelemtype: number; + refrestype: number; + reftypmod: number; + refcollid: number; + refupperindexpr: Node[]; + reflowerindexpr: Node[]; + refexpr: Node; + refassgnexpr: Node; } export interface FuncExpr { - xpr?: Node; - funcid?: number; - funcresulttype?: number; - funcretset?: boolean; - funcvariadic?: boolean; - funcformat?: CoercionForm; - funccollid?: number; - inputcollid?: number; - args?: Node[]; - location?: number; + xpr: Node; + funcid: number; + funcresulttype: number; + funcretset: boolean; + funcvariadic: boolean; + funcformat: CoercionForm; + funccollid: number; + inputcollid: number; + args: Node[]; + location: number; } export interface NamedArgExpr { - xpr?: Node; - arg?: Node; - name?: string; - argnumber?: number; - location?: number; + xpr: Node; + arg: Node; + name: string; + argnumber: number; + location: number; } export interface OpExpr { - xpr?: Node; - opno?: number; - opresulttype?: number; - opretset?: boolean; - opcollid?: number; - inputcollid?: number; - args?: Node[]; - location?: number; + xpr: Node; + opno: number; + opresulttype: number; + opretset: boolean; + opcollid: number; + inputcollid: number; + args: Node[]; + location: number; } export interface DistinctExpr { - xpr?: Node; - opno?: number; - opresulttype?: number; - opretset?: boolean; - opcollid?: number; - inputcollid?: number; - args?: Node[]; - location?: number; + xpr: Node; + opno: number; + opresulttype: number; + opretset: boolean; + opcollid: number; + inputcollid: number; + args: Node[]; + location: number; } export interface NullIfExpr { - xpr?: Node; - opno?: number; - opresulttype?: number; - opretset?: boolean; - opcollid?: number; - inputcollid?: number; - args?: Node[]; - location?: number; + xpr: Node; + opno: number; + opresulttype: number; + opretset: boolean; + opcollid: number; + inputcollid: number; + args: Node[]; + location: number; } export interface ScalarArrayOpExpr { - xpr?: Node; - opno?: number; - useOr?: boolean; - inputcollid?: number; - args?: Node[]; - location?: number; + xpr: Node; + opno: number; + useOr: boolean; + inputcollid: number; + args: Node[]; + location: number; } export interface BoolExpr { - xpr?: Node; - boolop?: BoolExprType; - args?: Node[]; - location?: number; + xpr: Node; + boolop: BoolExprType; + args: Node[]; + location: number; } export interface SubLink { - xpr?: Node; - subLinkType?: SubLinkType; - subLinkId?: number; - testexpr?: Node; - operName?: Node[]; - subselect?: Node; - location?: number; + xpr: Node; + subLinkType: SubLinkType; + subLinkId: number; + testexpr: Node; + operName: Node[]; + subselect: Node; + location: number; } export interface SubPlan { - xpr?: Node; - subLinkType?: SubLinkType; - testexpr?: Node; - paramIds?: Node[]; - plan_id?: number; - plan_name?: string; - firstColType?: number; - firstColTypmod?: number; - firstColCollation?: number; - useHashTable?: boolean; - unknownEqFalse?: boolean; - parallel_safe?: boolean; - setParam?: Node[]; - parParam?: Node[]; - args?: Node[]; - startup_cost?: number; - per_call_cost?: number; + xpr: Node; + subLinkType: SubLinkType; + testexpr: Node; + paramIds: Node[]; + plan_id: number; + plan_name: string; + firstColType: number; + firstColTypmod: number; + firstColCollation: number; + useHashTable: boolean; + unknownEqFalse: boolean; + parallel_safe: boolean; + setParam: Node[]; + parParam: Node[]; + args: Node[]; + startup_cost: number; + per_call_cost: number; } export interface AlternativeSubPlan { - xpr?: Node; - subplans?: Node[]; + xpr: Node; + subplans: Node[]; } export interface FieldSelect { - xpr?: Node; - arg?: Node; - fieldnum?: number; - resulttype?: number; - resulttypmod?: number; - resultcollid?: number; + xpr: Node; + arg: Node; + fieldnum: number; + resulttype: number; + resulttypmod: number; + resultcollid: number; } export interface FieldStore { - xpr?: Node; - arg?: Node; - newvals?: Node[]; - fieldnums?: Node[]; - resulttype?: number; + xpr: Node; + arg: Node; + newvals: Node[]; + fieldnums: Node[]; + resulttype: number; } export interface RelabelType { - xpr?: Node; - arg?: Node; - resulttype?: number; - resulttypmod?: number; - resultcollid?: number; - relabelformat?: CoercionForm; - location?: number; + xpr: Node; + arg: Node; + resulttype: number; + resulttypmod: number; + resultcollid: number; + relabelformat: CoercionForm; + location: number; } export interface CoerceViaIO { - xpr?: Node; - arg?: Node; - resulttype?: number; - resultcollid?: number; - coerceformat?: CoercionForm; - location?: number; + xpr: Node; + arg: Node; + resulttype: number; + resultcollid: number; + coerceformat: CoercionForm; + location: number; } export interface ArrayCoerceExpr { - xpr?: Node; - arg?: Node; - elemexpr?: Node; - resulttype?: number; - resulttypmod?: number; - resultcollid?: number; - coerceformat?: CoercionForm; - location?: number; + xpr: Node; + arg: Node; + elemexpr: Node; + resulttype: number; + resulttypmod: number; + resultcollid: number; + coerceformat: CoercionForm; + location: number; } export interface ConvertRowtypeExpr { - xpr?: Node; - arg?: Node; - resulttype?: number; - convertformat?: CoercionForm; - location?: number; + xpr: Node; + arg: Node; + resulttype: number; + convertformat: CoercionForm; + location: number; } export interface CollateExpr { - xpr?: Node; - arg?: Node; - collOid?: number; - location?: number; + xpr: Node; + arg: Node; + collOid: number; + location: number; } export interface CaseExpr { - xpr?: Node; - casetype?: number; - casecollid?: number; - arg?: Node; - args?: Node[]; - defresult?: Node; - location?: number; + xpr: Node; + casetype: number; + casecollid: number; + arg: Node; + args: Node[]; + defresult: Node; + location: number; } export interface CaseWhen { - xpr?: Node; - expr?: Node; - result?: Node; - location?: number; + xpr: Node; + expr: Node; + result: Node; + location: number; } export interface CaseTestExpr { - xpr?: Node; - typeId?: number; - typeMod?: number; - collation?: number; + xpr: Node; + typeId: number; + typeMod: number; + collation: number; } export interface ArrayExpr { - xpr?: Node; - array_typeid?: number; - array_collid?: number; - element_typeid?: number; - elements?: Node[]; - multidims?: boolean; - location?: number; + xpr: Node; + array_typeid: number; + array_collid: number; + element_typeid: number; + elements: Node[]; + multidims: boolean; + location: number; } export interface RowExpr { - xpr?: Node; - args?: Node[]; - row_typeid?: number; - row_format?: CoercionForm; - colnames?: Node[]; - location?: number; + xpr: Node; + args: Node[]; + row_typeid: number; + row_format: CoercionForm; + colnames: Node[]; + location: number; } export interface RowCompareExpr { - xpr?: Node; - rctype?: RowCompareType; - opnos?: Node[]; - opfamilies?: Node[]; - inputcollids?: Node[]; - largs?: Node[]; - rargs?: Node[]; + xpr: Node; + rctype: RowCompareType; + opnos: Node[]; + opfamilies: Node[]; + inputcollids: Node[]; + largs: Node[]; + rargs: Node[]; } export interface CoalesceExpr { - xpr?: Node; - coalescetype?: number; - coalescecollid?: number; - args?: Node[]; - location?: number; + xpr: Node; + coalescetype: number; + coalescecollid: number; + args: Node[]; + location: number; } export interface MinMaxExpr { - xpr?: Node; - minmaxtype?: number; - minmaxcollid?: number; - inputcollid?: number; - op?: MinMaxOp; - args?: Node[]; - location?: number; + xpr: Node; + minmaxtype: number; + minmaxcollid: number; + inputcollid: number; + op: MinMaxOp; + args: Node[]; + location: number; } export interface SQLValueFunction { - xpr?: Node; - op?: SQLValueFunctionOp; - type?: number; - typmod?: number; - location?: number; + xpr: Node; + op: SQLValueFunctionOp; + type: number; + typmod: number; + location: number; } export interface XmlExpr { - xpr?: Node; - op?: XmlExprOp; - name?: string; - named_args?: Node[]; - arg_names?: Node[]; - args?: Node[]; - xmloption?: XmlOptionType; - indent?: boolean; - type?: number; - typmod?: number; - location?: number; + xpr: Node; + op: XmlExprOp; + name: string; + named_args: Node[]; + arg_names: Node[]; + args: Node[]; + xmloption: XmlOptionType; + indent: boolean; + type: number; + typmod: number; + location: number; } export interface JsonFormat { - format_type?: JsonFormatType; - encoding?: JsonEncoding; - location?: number; + format_type: JsonFormatType; + encoding: JsonEncoding; + location: number; } export interface JsonReturning { - format?: JsonFormat; - typid?: number; - typmod?: number; + format: JsonFormat; + typid: number; + typmod: number; } export interface JsonValueExpr { - raw_expr?: Node; - formatted_expr?: Node; - format?: JsonFormat; + raw_expr: Node; + formatted_expr: Node; + format: JsonFormat; } export interface JsonConstructorExpr { - xpr?: Node; - type?: JsonConstructorType; - args?: Node[]; - func?: Node; - coercion?: Node; - returning?: JsonReturning; - absent_on_null?: boolean; - unique?: boolean; - location?: number; + xpr: Node; + type: JsonConstructorType; + args: Node[]; + func: Node; + coercion: Node; + returning: JsonReturning; + absent_on_null: boolean; + unique: boolean; + location: number; } export interface JsonIsPredicate { - expr?: Node; - format?: JsonFormat; - item_type?: JsonValueType; - unique_keys?: boolean; - location?: number; + expr: Node; + format: JsonFormat; + item_type: JsonValueType; + unique_keys: boolean; + location: number; } export interface NullTest { - xpr?: Node; - arg?: Node; - nulltesttype?: NullTestType; - argisrow?: boolean; - location?: number; + xpr: Node; + arg: Node; + nulltesttype: NullTestType; + argisrow: boolean; + location: number; } export interface BooleanTest { - xpr?: Node; - arg?: Node; - booltesttype?: BoolTestType; - location?: number; + xpr: Node; + arg: Node; + booltesttype: BoolTestType; + location: number; } export interface CoerceToDomain { - xpr?: Node; - arg?: Node; - resulttype?: number; - resulttypmod?: number; - resultcollid?: number; - coercionformat?: CoercionForm; - location?: number; + xpr: Node; + arg: Node; + resulttype: number; + resulttypmod: number; + resultcollid: number; + coercionformat: CoercionForm; + location: number; } export interface CoerceToDomainValue { - xpr?: Node; - typeId?: number; - typeMod?: number; - collation?: number; - location?: number; + xpr: Node; + typeId: number; + typeMod: number; + collation: number; + location: number; } export interface SetToDefault { - xpr?: Node; - typeId?: number; - typeMod?: number; - collation?: number; - location?: number; + xpr: Node; + typeId: number; + typeMod: number; + collation: number; + location: number; } export interface CurrentOfExpr { - xpr?: Node; - cvarno?: number; - cursor_name?: string; - cursor_param?: number; + xpr: Node; + cvarno: number; + cursor_name: string; + cursor_param: number; } export interface NextValueExpr { - xpr?: Node; - seqid?: number; - typeId?: number; + xpr: Node; + seqid: number; + typeId: number; } export interface InferenceElem { - xpr?: Node; - expr?: Node; - infercollid?: number; - inferopclass?: number; + xpr: Node; + expr: Node; + infercollid: number; + inferopclass: number; } export interface TargetEntry { - xpr?: Node; - expr?: Node; - resno?: number; - resname?: string; - ressortgroupref?: number; - resorigtbl?: number; - resorigcol?: number; - resjunk?: boolean; + xpr: Node; + expr: Node; + resno: number; + resname: string; + ressortgroupref: number; + resorigtbl: number; + resorigcol: number; + resjunk: boolean; } export interface RangeTblRef { - rtindex?: number; + rtindex: number; } export interface JoinExpr { - jointype?: JoinType; - isNatural?: boolean; - larg?: Node; - rarg?: Node; - usingClause?: Node[]; - join_using_alias?: Alias; - quals?: Node; - alias?: Alias; - rtindex?: number; + jointype: JoinType; + isNatural: boolean; + larg: Node; + rarg: Node; + usingClause: Node[]; + join_using_alias: Alias; + quals: Node; + alias: Alias; + rtindex: number; } export interface FromExpr { - fromlist?: Node[]; - quals?: Node; + fromlist: Node[]; + quals: Node; } export interface OnConflictExpr { - action?: OnConflictAction; - arbiterElems?: Node[]; - arbiterWhere?: Node; - constraint?: number; - onConflictSet?: Node[]; - onConflictWhere?: Node; - exclRelIndex?: number; - exclRelTlist?: Node[]; + action: OnConflictAction; + arbiterElems: Node[]; + arbiterWhere: Node; + constraint: number; + onConflictSet: Node[]; + onConflictWhere: Node; + exclRelIndex: number; + exclRelTlist: Node[]; } export interface Query { - commandType?: CmdType; - querySource?: QuerySource; - canSetTag?: boolean; - utilityStmt?: Node; - resultRelation?: number; - hasAggs?: boolean; - hasWindowFuncs?: boolean; - hasTargetSRFs?: boolean; - hasSubLinks?: boolean; - hasDistinctOn?: boolean; - hasRecursive?: boolean; - hasModifyingCTE?: boolean; - hasForUpdate?: boolean; - hasRowSecurity?: boolean; - isReturn?: boolean; - cteList?: Node[]; - rtable?: Node[]; - rteperminfos?: Node[]; - jointree?: FromExpr; - mergeActionList?: Node[]; - mergeUseOuterJoin?: boolean; - targetList?: Node[]; - override?: OverridingKind; - onConflict?: OnConflictExpr; - returningList?: Node[]; - groupClause?: Node[]; - groupDistinct?: boolean; - groupingSets?: Node[]; - havingQual?: Node; - windowClause?: Node[]; - distinctClause?: Node[]; - sortClause?: Node[]; - limitOffset?: Node; - limitCount?: Node; - limitOption?: LimitOption; - rowMarks?: Node[]; - setOperations?: Node; - constraintDeps?: Node[]; - withCheckOptions?: Node[]; - stmt_location?: number; - stmt_len?: number; + commandType: CmdType; + querySource: QuerySource; + canSetTag: boolean; + utilityStmt: Node; + resultRelation: number; + hasAggs: boolean; + hasWindowFuncs: boolean; + hasTargetSRFs: boolean; + hasSubLinks: boolean; + hasDistinctOn: boolean; + hasRecursive: boolean; + hasModifyingCTE: boolean; + hasForUpdate: boolean; + hasRowSecurity: boolean; + isReturn: boolean; + cteList: Node[]; + rtable: Node[]; + rteperminfos: Node[]; + jointree: FromExpr; + mergeActionList: Node[]; + mergeUseOuterJoin: boolean; + targetList: Node[]; + override: OverridingKind; + onConflict: OnConflictExpr; + returningList: Node[]; + groupClause: Node[]; + groupDistinct: boolean; + groupingSets: Node[]; + havingQual: Node; + windowClause: Node[]; + distinctClause: Node[]; + sortClause: Node[]; + limitOffset: Node; + limitCount: Node; + limitOption: LimitOption; + rowMarks: Node[]; + setOperations: Node; + constraintDeps: Node[]; + withCheckOptions: Node[]; + stmt_location: number; + stmt_len: number; } export interface TypeName { - names?: Node[]; - typeOid?: number; - setof?: boolean; - pct_type?: boolean; - typmods?: Node[]; - typemod?: number; - arrayBounds?: Node[]; - location?: number; + names: Node[]; + typeOid: number; + setof: boolean; + pct_type: boolean; + typmods: Node[]; + typemod: number; + arrayBounds: Node[]; + location: number; } export interface ColumnRef { - fields?: Node[]; - location?: number; + fields: Node[]; + location: number; } export interface ParamRef { - number?: number; - location?: number; + number: number; + location: number; } export interface A_Expr { - kind?: A_Expr_Kind; - name?: Node[]; - lexpr?: Node; - rexpr?: Node; - location?: number; + kind: A_Expr_Kind; + name: Node[]; + lexpr: Node; + rexpr: Node; + location: number; } export interface TypeCast { - arg?: Node; - typeName?: TypeName; - location?: number; + arg: Node; + typeName: TypeName; + location: number; } export interface CollateClause { - arg?: Node; - collname?: Node[]; - location?: number; + arg: Node; + collname: Node[]; + location: number; } export interface RoleSpec { - roletype?: RoleSpecType; - rolename?: string; - location?: number; + roletype: RoleSpecType; + rolename: string; + location: number; } export interface FuncCall { - funcname?: Node[]; - args?: Node[]; - agg_order?: Node[]; - agg_filter?: Node; - over?: WindowDef; - agg_within_group?: boolean; - agg_star?: boolean; - agg_distinct?: boolean; - func_variadic?: boolean; - funcformat?: CoercionForm; - location?: number; + funcname: Node[]; + args: Node[]; + agg_order: Node[]; + agg_filter: Node; + over: WindowDef; + agg_within_group: boolean; + agg_star: boolean; + agg_distinct: boolean; + func_variadic: boolean; + funcformat: CoercionForm; + location: number; } export interface A_Star {} export interface A_Indices { - is_slice?: boolean; - lidx?: Node; - uidx?: Node; + is_slice: boolean; + lidx: Node; + uidx: Node; } export interface A_Indirection { - arg?: Node; - indirection?: Node[]; + arg: Node; + indirection: Node[]; } export interface A_ArrayExpr { - elements?: Node[]; - location?: number; + elements: Node[]; + location: number; } export interface ResTarget { - name?: string; - indirection?: Node[]; - val?: Node; - location?: number; + name: string; + indirection: Node[]; + val: Node; + location: number; } export interface MultiAssignRef { - source?: Node; - colno?: number; - ncolumns?: number; + source: Node; + colno: number; + ncolumns: number; } export interface SortBy { - node?: Node; - sortby_dir?: SortByDir; - sortby_nulls?: SortByNulls; - useOp?: Node[]; - location?: number; + node: Node; + sortby_dir: SortByDir; + sortby_nulls: SortByNulls; + useOp: Node[]; + location: number; } export interface WindowDef { - name?: string; - refname?: string; - partitionClause?: Node[]; - orderClause?: Node[]; - frameOptions?: number; - startOffset?: Node; - endOffset?: Node; - location?: number; + name: string; + refname: string; + partitionClause: Node[]; + orderClause: Node[]; + frameOptions: number; + startOffset: Node; + endOffset: Node; + location: number; } export interface RangeSubselect { - lateral?: boolean; - subquery?: Node; - alias?: Alias; + lateral: boolean; + subquery: Node; + alias: Alias; } export interface RangeFunction { - lateral?: boolean; - ordinality?: boolean; - is_rowsfrom?: boolean; - functions?: Node[]; - alias?: Alias; - coldeflist?: Node[]; + lateral: boolean; + ordinality: boolean; + is_rowsfrom: boolean; + functions: Node[]; + alias: Alias; + coldeflist: Node[]; } export interface RangeTableFunc { - lateral?: boolean; - docexpr?: Node; - rowexpr?: Node; - namespaces?: Node[]; - columns?: Node[]; - alias?: Alias; - location?: number; + lateral: boolean; + docexpr: Node; + rowexpr: Node; + namespaces: Node[]; + columns: Node[]; + alias: Alias; + location: number; } export interface RangeTableFuncCol { - colname?: string; - typeName?: TypeName; - for_ordinality?: boolean; - is_not_null?: boolean; - colexpr?: Node; - coldefexpr?: Node; - location?: number; + colname: string; + typeName: TypeName; + for_ordinality: boolean; + is_not_null: boolean; + colexpr: Node; + coldefexpr: Node; + location: number; } export interface RangeTableSample { - relation?: Node; - method?: Node[]; - args?: Node[]; - repeatable?: Node; - location?: number; + relation: Node; + method: Node[]; + args: Node[]; + repeatable: Node; + location: number; } export interface ColumnDef { - colname?: string; - typeName?: TypeName; - compression?: string; - inhcount?: number; - is_local?: boolean; - is_not_null?: boolean; - is_from_type?: boolean; - storage?: string; - storage_name?: string; - raw_default?: Node; - cooked_default?: Node; - identity?: string; - identitySequence?: RangeVar; - generated?: string; - collClause?: CollateClause; - collOid?: number; - constraints?: Node[]; - fdwoptions?: Node[]; - location?: number; + colname: string; + typeName: TypeName; + compression: string; + inhcount: number; + is_local: boolean; + is_not_null: boolean; + is_from_type: boolean; + storage: string; + storage_name: string; + raw_default: Node; + cooked_default: Node; + identity: string; + identitySequence: RangeVar; + generated: string; + collClause: CollateClause; + collOid: number; + constraints: Node[]; + fdwoptions: Node[]; + location: number; } export interface TableLikeClause { - relation?: RangeVar; - options?: number; - relationOid?: number; + relation: RangeVar; + options: number; + relationOid: number; } export interface IndexElem { - name?: string; - expr?: Node; - indexcolname?: string; - collation?: Node[]; - opclass?: Node[]; - opclassopts?: Node[]; - ordering?: SortByDir; - nulls_ordering?: SortByNulls; + name: string; + expr: Node; + indexcolname: string; + collation: Node[]; + opclass: Node[]; + opclassopts: Node[]; + ordering: SortByDir; + nulls_ordering: SortByNulls; } export interface DefElem { - defnamespace?: string; - defname?: string; - arg?: Node; - defaction?: DefElemAction; - location?: number; + defnamespace: string; + defname: string; + arg: Node; + defaction: DefElemAction; + location: number; } export interface LockingClause { - lockedRels?: Node[]; - strength?: LockClauseStrength; - waitPolicy?: LockWaitPolicy; + lockedRels: Node[]; + strength: LockClauseStrength; + waitPolicy: LockWaitPolicy; } export interface XmlSerialize { - xmloption?: XmlOptionType; - expr?: Node; - typeName?: TypeName; - indent?: boolean; - location?: number; + xmloption: XmlOptionType; + expr: Node; + typeName: TypeName; + indent: boolean; + location: number; } export interface PartitionElem { - name?: string; - expr?: Node; - collation?: Node[]; - opclass?: Node[]; - location?: number; + name: string; + expr: Node; + collation: Node[]; + opclass: Node[]; + location: number; } export interface PartitionSpec { - strategy?: PartitionStrategy; - partParams?: Node[]; - location?: number; + strategy: PartitionStrategy; + partParams: Node[]; + location: number; } export interface PartitionBoundSpec { - strategy?: string; - is_default?: boolean; - modulus?: number; - remainder?: number; - listdatums?: Node[]; - lowerdatums?: Node[]; - upperdatums?: Node[]; - location?: number; + strategy: string; + is_default: boolean; + modulus: number; + remainder: number; + listdatums: Node[]; + lowerdatums: Node[]; + upperdatums: Node[]; + location: number; } export interface PartitionRangeDatum { - kind?: PartitionRangeDatumKind; - value?: Node; - location?: number; + kind: PartitionRangeDatumKind; + value: Node; + location: number; } export interface PartitionCmd { - name?: RangeVar; - bound?: PartitionBoundSpec; - concurrent?: boolean; + name: RangeVar; + bound: PartitionBoundSpec; + concurrent: boolean; } export interface RangeTblEntry { - rtekind?: RTEKind; - relid?: number; - relkind?: string; - rellockmode?: number; - tablesample?: TableSampleClause; - perminfoindex?: number; - subquery?: Query; - security_barrier?: boolean; - jointype?: JoinType; - joinmergedcols?: number; - joinaliasvars?: Node[]; - joinleftcols?: Node[]; - joinrightcols?: Node[]; - join_using_alias?: Alias; - functions?: Node[]; - funcordinality?: boolean; - tablefunc?: TableFunc; - values_lists?: Node[]; - ctename?: string; - ctelevelsup?: number; - self_reference?: boolean; - coltypes?: Node[]; - coltypmods?: Node[]; - colcollations?: Node[]; - enrname?: string; - enrtuples?: number; - alias?: Alias; - eref?: Alias; - lateral?: boolean; - inh?: boolean; - inFromCl?: boolean; - securityQuals?: Node[]; + rtekind: RTEKind; + relid: number; + relkind: string; + rellockmode: number; + tablesample: TableSampleClause; + perminfoindex: number; + subquery: Query; + security_barrier: boolean; + jointype: JoinType; + joinmergedcols: number; + joinaliasvars: Node[]; + joinleftcols: Node[]; + joinrightcols: Node[]; + join_using_alias: Alias; + functions: Node[]; + funcordinality: boolean; + tablefunc: TableFunc; + values_lists: Node[]; + ctename: string; + ctelevelsup: number; + self_reference: boolean; + coltypes: Node[]; + coltypmods: Node[]; + colcollations: Node[]; + enrname: string; + enrtuples: number; + alias: Alias; + eref: Alias; + lateral: boolean; + inh: boolean; + inFromCl: boolean; + securityQuals: Node[]; } export interface RTEPermissionInfo { - relid?: number; - inh?: boolean; - requiredPerms?: bigint; - checkAsUser?: number; - selectedCols?: bigint[]; - insertedCols?: bigint[]; - updatedCols?: bigint[]; + relid: number; + inh: boolean; + requiredPerms: bigint; + checkAsUser: number; + selectedCols: bigint[]; + insertedCols: bigint[]; + updatedCols: bigint[]; } export interface RangeTblFunction { - funcexpr?: Node; - funccolcount?: number; - funccolnames?: Node[]; - funccoltypes?: Node[]; - funccoltypmods?: Node[]; - funccolcollations?: Node[]; - funcparams?: bigint[]; + funcexpr: Node; + funccolcount: number; + funccolnames: Node[]; + funccoltypes: Node[]; + funccoltypmods: Node[]; + funccolcollations: Node[]; + funcparams: bigint[]; } export interface TableSampleClause { - tsmhandler?: number; - args?: Node[]; - repeatable?: Node; + tsmhandler: number; + args: Node[]; + repeatable: Node; } export interface WithCheckOption { - kind?: WCOKind; - relname?: string; - polname?: string; - qual?: Node; - cascaded?: boolean; + kind: WCOKind; + relname: string; + polname: string; + qual: Node; + cascaded: boolean; } export interface SortGroupClause { - tleSortGroupRef?: number; - eqop?: number; - sortop?: number; - nulls_first?: boolean; - hashable?: boolean; + tleSortGroupRef: number; + eqop: number; + sortop: number; + nulls_first: boolean; + hashable: boolean; } export interface GroupingSet { - kind?: GroupingSetKind; - content?: Node[]; - location?: number; + kind: GroupingSetKind; + content: Node[]; + location: number; } export interface WindowClause { - name?: string; - refname?: string; - partitionClause?: Node[]; - orderClause?: Node[]; - frameOptions?: number; - startOffset?: Node; - endOffset?: Node; - runCondition?: Node[]; - startInRangeFunc?: number; - endInRangeFunc?: number; - inRangeColl?: number; - inRangeAsc?: boolean; - inRangeNullsFirst?: boolean; - winref?: number; - copiedOrder?: boolean; + name: string; + refname: string; + partitionClause: Node[]; + orderClause: Node[]; + frameOptions: number; + startOffset: Node; + endOffset: Node; + runCondition: Node[]; + startInRangeFunc: number; + endInRangeFunc: number; + inRangeColl: number; + inRangeAsc: boolean; + inRangeNullsFirst: boolean; + winref: number; + copiedOrder: boolean; } export interface RowMarkClause { - rti?: number; - strength?: LockClauseStrength; - waitPolicy?: LockWaitPolicy; - pushedDown?: boolean; + rti: number; + strength: LockClauseStrength; + waitPolicy: LockWaitPolicy; + pushedDown: boolean; } export interface WithClause { - ctes?: Node[]; - recursive?: boolean; - location?: number; + ctes: Node[]; + recursive: boolean; + location: number; } export interface InferClause { - indexElems?: Node[]; - whereClause?: Node; - conname?: string; - location?: number; + indexElems: Node[]; + whereClause: Node; + conname: string; + location: number; } export interface OnConflictClause { - action?: OnConflictAction; - infer?: InferClause; - targetList?: Node[]; - whereClause?: Node; - location?: number; + action: OnConflictAction; + infer: InferClause; + targetList: Node[]; + whereClause: Node; + location: number; } export interface CTESearchClause { - search_col_list?: Node[]; - search_breadth_first?: boolean; - search_seq_column?: string; - location?: number; + search_col_list: Node[]; + search_breadth_first: boolean; + search_seq_column: string; + location: number; } export interface CTECycleClause { - cycle_col_list?: Node[]; - cycle_mark_column?: string; - cycle_mark_value?: Node; - cycle_mark_default?: Node; - cycle_path_column?: string; - location?: number; - cycle_mark_type?: number; - cycle_mark_typmod?: number; - cycle_mark_collation?: number; - cycle_mark_neop?: number; + cycle_col_list: Node[]; + cycle_mark_column: string; + cycle_mark_value: Node; + cycle_mark_default: Node; + cycle_path_column: string; + location: number; + cycle_mark_type: number; + cycle_mark_typmod: number; + cycle_mark_collation: number; + cycle_mark_neop: number; } export interface CommonTableExpr { - ctename?: string; - aliascolnames?: Node[]; - ctematerialized?: CTEMaterialize; - ctequery?: Node; - search_clause?: CTESearchClause; - cycle_clause?: CTECycleClause; - location?: number; - cterecursive?: boolean; - cterefcount?: number; - ctecolnames?: Node[]; - ctecoltypes?: Node[]; - ctecoltypmods?: Node[]; - ctecolcollations?: Node[]; + ctename: string; + aliascolnames: Node[]; + ctematerialized: CTEMaterialize; + ctequery: Node; + search_clause: CTESearchClause; + cycle_clause: CTECycleClause; + location: number; + cterecursive: boolean; + cterefcount: number; + ctecolnames: Node[]; + ctecoltypes: Node[]; + ctecoltypmods: Node[]; + ctecolcollations: Node[]; } export interface MergeWhenClause { - matched?: boolean; - commandType?: CmdType; - override?: OverridingKind; - condition?: Node; - targetList?: Node[]; - values?: Node[]; + matched: boolean; + commandType: CmdType; + override: OverridingKind; + condition: Node; + targetList: Node[]; + values: Node[]; } export interface MergeAction { - matched?: boolean; - commandType?: CmdType; - override?: OverridingKind; - qual?: Node; - targetList?: Node[]; - updateColnos?: Node[]; + matched: boolean; + commandType: CmdType; + override: OverridingKind; + qual: Node; + targetList: Node[]; + updateColnos: Node[]; } export interface TriggerTransition { - name?: string; - isNew?: boolean; - isTable?: boolean; + name: string; + isNew: boolean; + isTable: boolean; } export interface JsonOutput { - typeName?: TypeName; - returning?: JsonReturning; + typeName: TypeName; + returning: JsonReturning; } export interface JsonKeyValue { - key?: Node; - value?: JsonValueExpr; + key: Node; + value: JsonValueExpr; } export interface JsonObjectConstructor { - exprs?: Node[]; - output?: JsonOutput; - absent_on_null?: boolean; - unique?: boolean; - location?: number; + exprs: Node[]; + output: JsonOutput; + absent_on_null: boolean; + unique: boolean; + location: number; } export interface JsonArrayConstructor { - exprs?: Node[]; - output?: JsonOutput; - absent_on_null?: boolean; - location?: number; + exprs: Node[]; + output: JsonOutput; + absent_on_null: boolean; + location: number; } export interface JsonArrayQueryConstructor { - query?: Node; - output?: JsonOutput; - format?: JsonFormat; - absent_on_null?: boolean; - location?: number; + query: Node; + output: JsonOutput; + format: JsonFormat; + absent_on_null: boolean; + location: number; } export interface JsonAggConstructor { - output?: JsonOutput; - agg_filter?: Node; - agg_order?: Node[]; - over?: WindowDef; - location?: number; + output: JsonOutput; + agg_filter: Node; + agg_order: Node[]; + over: WindowDef; + location: number; } export interface JsonObjectAgg { - constructor?: JsonAggConstructor; - arg?: JsonKeyValue; - absent_on_null?: boolean; - unique?: boolean; + constructor: JsonAggConstructor; + arg: JsonKeyValue; + absent_on_null: boolean; + unique: boolean; } export interface JsonArrayAgg { - constructor?: JsonAggConstructor; - arg?: JsonValueExpr; - absent_on_null?: boolean; + constructor: JsonAggConstructor; + arg: JsonValueExpr; + absent_on_null: boolean; } export interface RawStmt { - stmt?: Node; - stmt_location?: number; - stmt_len?: number; + stmt: Node; + stmt_location: number; + stmt_len: number; } export interface InsertStmt { - relation?: RangeVar; - cols?: Node[]; - selectStmt?: Node; - onConflictClause?: OnConflictClause; - returningList?: Node[]; - withClause?: WithClause; - override?: OverridingKind; + relation: RangeVar; + cols: Node[]; + selectStmt: Node; + onConflictClause: OnConflictClause; + returningList: Node[]; + withClause: WithClause; + override: OverridingKind; } export interface DeleteStmt { - relation?: RangeVar; - usingClause?: Node[]; - whereClause?: Node; - returningList?: Node[]; - withClause?: WithClause; + relation: RangeVar; + usingClause: Node[]; + whereClause: Node; + returningList: Node[]; + withClause: WithClause; } export interface UpdateStmt { - relation?: RangeVar; - targetList?: Node[]; - whereClause?: Node; - fromClause?: Node[]; - returningList?: Node[]; - withClause?: WithClause; + relation: RangeVar; + targetList: Node[]; + whereClause: Node; + fromClause: Node[]; + returningList: Node[]; + withClause: WithClause; } export interface MergeStmt { - relation?: RangeVar; - sourceRelation?: Node; - joinCondition?: Node; - mergeWhenClauses?: Node[]; - withClause?: WithClause; + relation: RangeVar; + sourceRelation: Node; + joinCondition: Node; + mergeWhenClauses: Node[]; + withClause: WithClause; } export interface SelectStmt { - distinctClause?: Node[]; - intoClause?: IntoClause; - targetList?: Node[]; - fromClause?: Node[]; - whereClause?: Node; - groupClause?: Node[]; - groupDistinct?: boolean; - havingClause?: Node; - windowClause?: Node[]; - valuesLists?: Node[]; - sortClause?: Node[]; - limitOffset?: Node; - limitCount?: Node; - limitOption?: LimitOption; - lockingClause?: Node[]; - withClause?: WithClause; - op?: SetOperation; - all?: boolean; - larg?: SelectStmt; - rarg?: SelectStmt; + distinctClause: Node[]; + intoClause: IntoClause; + targetList: Node[]; + fromClause: Node[]; + whereClause: Node; + groupClause: Node[]; + groupDistinct: boolean; + havingClause: Node; + windowClause: Node[]; + valuesLists: Node[]; + sortClause: Node[]; + limitOffset: Node; + limitCount: Node; + limitOption: LimitOption; + lockingClause: Node[]; + withClause: WithClause; + op: SetOperation; + all: boolean; + larg: SelectStmt; + rarg: SelectStmt; } export interface SetOperationStmt { - op?: SetOperation; - all?: boolean; - larg?: Node; - rarg?: Node; - colTypes?: Node[]; - colTypmods?: Node[]; - colCollations?: Node[]; - groupClauses?: Node[]; + op: SetOperation; + all: boolean; + larg: Node; + rarg: Node; + colTypes: Node[]; + colTypmods: Node[]; + colCollations: Node[]; + groupClauses: Node[]; } export interface ReturnStmt { - returnval?: Node; -} -export interface PLAssignStmt { - name?: string; - indirection?: Node[]; - nnames?: number; - val?: SelectStmt; - location?: number; + returnval: Node; +} +export interface PLAssignStmt { + name: string; + indirection: Node[]; + nnames: number; + val: SelectStmt; + location: number; } export interface CreateSchemaStmt { - schemaname?: string; - authrole?: RoleSpec; - schemaElts?: Node[]; - if_not_exists?: boolean; + schemaname: string; + authrole: RoleSpec; + schemaElts: Node[]; + if_not_exists: boolean; } export interface AlterTableStmt { - relation?: RangeVar; - cmds?: Node[]; - objtype?: ObjectType; - missing_ok?: boolean; + relation: RangeVar; + cmds: Node[]; + objtype: ObjectType; + missing_ok: boolean; } export interface ReplicaIdentityStmt { - identity_type?: string; - name?: string; + identity_type: string; + name: string; } export interface AlterTableCmd { - subtype?: AlterTableType; - name?: string; - num?: number; - newowner?: RoleSpec; - def?: Node; - behavior?: DropBehavior; - missing_ok?: boolean; - recurse?: boolean; + subtype: AlterTableType; + name: string; + num: number; + newowner: RoleSpec; + def: Node; + behavior: DropBehavior; + missing_ok: boolean; + recurse: boolean; } export interface AlterCollationStmt { - collname?: Node[]; + collname: Node[]; } export interface AlterDomainStmt { - subtype?: string; - typeName?: Node[]; - name?: string; - def?: Node; - behavior?: DropBehavior; - missing_ok?: boolean; + subtype: string; + typeName: Node[]; + name: string; + def: Node; + behavior: DropBehavior; + missing_ok: boolean; } export interface GrantStmt { - is_grant?: boolean; - targtype?: GrantTargetType; - objtype?: ObjectType; - objects?: Node[]; - privileges?: Node[]; - grantees?: Node[]; - grant_option?: boolean; - grantor?: RoleSpec; - behavior?: DropBehavior; + is_grant: boolean; + targtype: GrantTargetType; + objtype: ObjectType; + objects: Node[]; + privileges: Node[]; + grantees: Node[]; + grant_option: boolean; + grantor: RoleSpec; + behavior: DropBehavior; } export interface ObjectWithArgs { - objname?: Node[]; - objargs?: Node[]; - objfuncargs?: Node[]; - args_unspecified?: boolean; + objname: Node[]; + objargs: Node[]; + objfuncargs: Node[]; + args_unspecified: boolean; } export interface AccessPriv { - priv_name?: string; - cols?: Node[]; + priv_name: string; + cols: Node[]; } export interface GrantRoleStmt { - granted_roles?: Node[]; - grantee_roles?: Node[]; - is_grant?: boolean; - opt?: Node[]; - grantor?: RoleSpec; - behavior?: DropBehavior; + granted_roles: Node[]; + grantee_roles: Node[]; + is_grant: boolean; + opt: Node[]; + grantor: RoleSpec; + behavior: DropBehavior; } export interface AlterDefaultPrivilegesStmt { - options?: Node[]; - action?: GrantStmt; + options: Node[]; + action: GrantStmt; } export interface CopyStmt { - relation?: RangeVar; - query?: Node; - attlist?: Node[]; - is_from?: boolean; - is_program?: boolean; - filename?: string; - options?: Node[]; - whereClause?: Node; + relation: RangeVar; + query: Node; + attlist: Node[]; + is_from: boolean; + is_program: boolean; + filename: string; + options: Node[]; + whereClause: Node; } export interface VariableSetStmt { - kind?: VariableSetKind; - name?: string; - args?: Node[]; - is_local?: boolean; + kind: VariableSetKind; + name: string; + args: Node[]; + is_local: boolean; } export interface VariableShowStmt { - name?: string; + name: string; } export interface CreateStmt { - relation?: RangeVar; - tableElts?: Node[]; - inhRelations?: Node[]; - partbound?: PartitionBoundSpec; - partspec?: PartitionSpec; - ofTypename?: TypeName; - constraints?: Node[]; - options?: Node[]; - oncommit?: OnCommitAction; - tablespacename?: string; - accessMethod?: string; - if_not_exists?: boolean; + relation: RangeVar; + tableElts: Node[]; + inhRelations: Node[]; + partbound: PartitionBoundSpec; + partspec: PartitionSpec; + ofTypename: TypeName; + constraints: Node[]; + options: Node[]; + oncommit: OnCommitAction; + tablespacename: string; + accessMethod: string; + if_not_exists: boolean; } export interface Constraint { - contype?: ConstrType; - conname?: string; - deferrable?: boolean; - initdeferred?: boolean; - location?: number; - is_no_inherit?: boolean; - raw_expr?: Node; - cooked_expr?: string; - generated_when?: string; - nulls_not_distinct?: boolean; - keys?: Node[]; - including?: Node[]; - exclusions?: Node[]; - options?: Node[]; - indexname?: string; - indexspace?: string; - reset_default_tblspc?: boolean; - access_method?: string; - where_clause?: Node; - pktable?: RangeVar; - fk_attrs?: Node[]; - pk_attrs?: Node[]; - fk_matchtype?: string; - fk_upd_action?: string; - fk_del_action?: string; - fk_del_set_cols?: Node[]; - old_conpfeqop?: Node[]; - old_pktable_oid?: number; - skip_validation?: boolean; - initially_valid?: boolean; + contype: ConstrType; + conname: string; + deferrable: boolean; + initdeferred: boolean; + location: number; + is_no_inherit: boolean; + raw_expr: Node; + cooked_expr: string; + generated_when: string; + nulls_not_distinct: boolean; + keys: Node[]; + including: Node[]; + exclusions: Node[]; + options: Node[]; + indexname: string; + indexspace: string; + reset_default_tblspc: boolean; + access_method: string; + where_clause: Node; + pktable: RangeVar; + fk_attrs: Node[]; + pk_attrs: Node[]; + fk_matchtype: string; + fk_upd_action: string; + fk_del_action: string; + fk_del_set_cols: Node[]; + old_conpfeqop: Node[]; + old_pktable_oid: number; + skip_validation: boolean; + initially_valid: boolean; } export interface CreateTableSpaceStmt { - tablespacename?: string; - owner?: RoleSpec; - location?: string; - options?: Node[]; + tablespacename: string; + owner: RoleSpec; + location: string; + options: Node[]; } export interface DropTableSpaceStmt { - tablespacename?: string; - missing_ok?: boolean; + tablespacename: string; + missing_ok: boolean; } export interface AlterTableSpaceOptionsStmt { - tablespacename?: string; - options?: Node[]; - isReset?: boolean; + tablespacename: string; + options: Node[]; + isReset: boolean; } export interface AlterTableMoveAllStmt { - orig_tablespacename?: string; - objtype?: ObjectType; - roles?: Node[]; - new_tablespacename?: string; - nowait?: boolean; + orig_tablespacename: string; + objtype: ObjectType; + roles: Node[]; + new_tablespacename: string; + nowait: boolean; } export interface CreateExtensionStmt { - extname?: string; - if_not_exists?: boolean; - options?: Node[]; + extname: string; + if_not_exists: boolean; + options: Node[]; } export interface AlterExtensionStmt { - extname?: string; - options?: Node[]; -} -export interface AlterExtensionContentsStmt { - extname?: string; - action?: number; - objtype?: ObjectType; - object?: Node; + extname: string; + options: Node[]; +} +export interface AlterExtensionContentsStmt { + extname: string; + action: number; + objtype: ObjectType; + object: Node; } export interface CreateFdwStmt { - fdwname?: string; - func_options?: Node[]; - options?: Node[]; + fdwname: string; + func_options: Node[]; + options: Node[]; } export interface AlterFdwStmt { - fdwname?: string; - func_options?: Node[]; - options?: Node[]; + fdwname: string; + func_options: Node[]; + options: Node[]; } export interface CreateForeignServerStmt { - servername?: string; - servertype?: string; - version?: string; - fdwname?: string; - if_not_exists?: boolean; - options?: Node[]; + servername: string; + servertype: string; + version: string; + fdwname: string; + if_not_exists: boolean; + options: Node[]; } export interface AlterForeignServerStmt { - servername?: string; - version?: string; - options?: Node[]; - has_version?: boolean; + servername: string; + version: string; + options: Node[]; + has_version: boolean; } export interface CreateForeignTableStmt { - base?: CreateStmt; - servername?: string; - options?: Node[]; + base: CreateStmt; + servername: string; + options: Node[]; } export interface CreateUserMappingStmt { - user?: RoleSpec; - servername?: string; - if_not_exists?: boolean; - options?: Node[]; + user: RoleSpec; + servername: string; + if_not_exists: boolean; + options: Node[]; } export interface AlterUserMappingStmt { - user?: RoleSpec; - servername?: string; - options?: Node[]; + user: RoleSpec; + servername: string; + options: Node[]; } export interface DropUserMappingStmt { - user?: RoleSpec; - servername?: string; - missing_ok?: boolean; + user: RoleSpec; + servername: string; + missing_ok: boolean; } export interface ImportForeignSchemaStmt { - server_name?: string; - remote_schema?: string; - local_schema?: string; - list_type?: ImportForeignSchemaType; - table_list?: Node[]; - options?: Node[]; + server_name: string; + remote_schema: string; + local_schema: string; + list_type: ImportForeignSchemaType; + table_list: Node[]; + options: Node[]; } export interface CreatePolicyStmt { - policy_name?: string; - table?: RangeVar; - cmd_name?: string; - permissive?: boolean; - roles?: Node[]; - qual?: Node; - with_check?: Node; + policy_name: string; + table: RangeVar; + cmd_name: string; + permissive: boolean; + roles: Node[]; + qual: Node; + with_check: Node; } export interface AlterPolicyStmt { - policy_name?: string; - table?: RangeVar; - roles?: Node[]; - qual?: Node; - with_check?: Node; + policy_name: string; + table: RangeVar; + roles: Node[]; + qual: Node; + with_check: Node; } export interface CreateAmStmt { - amname?: string; - handler_name?: Node[]; - amtype?: string; + amname: string; + handler_name: Node[]; + amtype: string; } export interface CreateTrigStmt { - replace?: boolean; - isconstraint?: boolean; - trigname?: string; - relation?: RangeVar; - funcname?: Node[]; - args?: Node[]; - row?: boolean; - timing?: number; - events?: number; - columns?: Node[]; - whenClause?: Node; - transitionRels?: Node[]; - deferrable?: boolean; - initdeferred?: boolean; - constrrel?: RangeVar; + replace: boolean; + isconstraint: boolean; + trigname: string; + relation: RangeVar; + funcname: Node[]; + args: Node[]; + row: boolean; + timing: number; + events: number; + columns: Node[]; + whenClause: Node; + transitionRels: Node[]; + deferrable: boolean; + initdeferred: boolean; + constrrel: RangeVar; } export interface CreateEventTrigStmt { - trigname?: string; - eventname?: string; - whenclause?: Node[]; - funcname?: Node[]; + trigname: string; + eventname: string; + whenclause: Node[]; + funcname: Node[]; } export interface AlterEventTrigStmt { - trigname?: string; - tgenabled?: string; + trigname: string; + tgenabled: string; } export interface CreatePLangStmt { - replace?: boolean; - plname?: string; - plhandler?: Node[]; - plinline?: Node[]; - plvalidator?: Node[]; - pltrusted?: boolean; + replace: boolean; + plname: string; + plhandler: Node[]; + plinline: Node[]; + plvalidator: Node[]; + pltrusted: boolean; } export interface CreateRoleStmt { - stmt_type?: RoleStmtType; - role?: string; - options?: Node[]; + stmt_type: RoleStmtType; + role: string; + options: Node[]; } export interface AlterRoleStmt { - role?: RoleSpec; - options?: Node[]; - action?: number; + role: RoleSpec; + options: Node[]; + action: number; } export interface AlterRoleSetStmt { - role?: RoleSpec; - database?: string; - setstmt?: VariableSetStmt; + role: RoleSpec; + database: string; + setstmt: VariableSetStmt; } export interface DropRoleStmt { - roles?: Node[]; - missing_ok?: boolean; + roles: Node[]; + missing_ok: boolean; } export interface CreateSeqStmt { - sequence?: RangeVar; - options?: Node[]; - ownerId?: number; - for_identity?: boolean; - if_not_exists?: boolean; + sequence: RangeVar; + options: Node[]; + ownerId: number; + for_identity: boolean; + if_not_exists: boolean; } export interface AlterSeqStmt { - sequence?: RangeVar; - options?: Node[]; - for_identity?: boolean; - missing_ok?: boolean; + sequence: RangeVar; + options: Node[]; + for_identity: boolean; + missing_ok: boolean; } export interface DefineStmt { - kind?: ObjectType; - oldstyle?: boolean; - defnames?: Node[]; - args?: Node[]; - definition?: Node[]; - if_not_exists?: boolean; - replace?: boolean; + kind: ObjectType; + oldstyle: boolean; + defnames: Node[]; + args: Node[]; + definition: Node[]; + if_not_exists: boolean; + replace: boolean; } export interface CreateDomainStmt { - domainname?: Node[]; - typeName?: TypeName; - collClause?: CollateClause; - constraints?: Node[]; + domainname: Node[]; + typeName: TypeName; + collClause: CollateClause; + constraints: Node[]; } export interface CreateOpClassStmt { - opclassname?: Node[]; - opfamilyname?: Node[]; - amname?: string; - datatype?: TypeName; - items?: Node[]; - isDefault?: boolean; + opclassname: Node[]; + opfamilyname: Node[]; + amname: string; + datatype: TypeName; + items: Node[]; + isDefault: boolean; } export interface CreateOpClassItem { - itemtype?: number; - name?: ObjectWithArgs; - number?: number; - order_family?: Node[]; - class_args?: Node[]; - storedtype?: TypeName; + itemtype: number; + name: ObjectWithArgs; + number: number; + order_family: Node[]; + class_args: Node[]; + storedtype: TypeName; } export interface CreateOpFamilyStmt { - opfamilyname?: Node[]; - amname?: string; + opfamilyname: Node[]; + amname: string; } -export interface AlterOpFamilyStmt { - opfamilyname?: Node[]; - amname?: string; - isDrop?: boolean; - items?: Node[]; +export interface AlterOpFamilyStmt { + opfamilyname: Node[]; + amname: string; + isDrop: boolean; + items: Node[]; } export interface DropStmt { - objects?: Node[]; - removeType?: ObjectType; - behavior?: DropBehavior; - missing_ok?: boolean; - concurrent?: boolean; + objects: Node[]; + removeType: ObjectType; + behavior: DropBehavior; + missing_ok: boolean; + concurrent: boolean; } export interface TruncateStmt { - relations?: Node[]; - restart_seqs?: boolean; - behavior?: DropBehavior; + relations: Node[]; + restart_seqs: boolean; + behavior: DropBehavior; } export interface CommentStmt { - objtype?: ObjectType; - object?: Node; - comment?: string; + objtype: ObjectType; + object: Node; + comment: string; } export interface SecLabelStmt { - objtype?: ObjectType; - object?: Node; - provider?: string; - label?: string; + objtype: ObjectType; + object: Node; + provider: string; + label: string; } export interface DeclareCursorStmt { - portalname?: string; - options?: number; - query?: Node; + portalname: string; + options: number; + query: Node; } export interface ClosePortalStmt { - portalname?: string; + portalname: string; } export interface FetchStmt { - direction?: FetchDirection; - howMany?: bigint; - portalname?: string; - ismove?: boolean; + direction: FetchDirection; + howMany: bigint; + portalname: string; + ismove: boolean; } export interface IndexStmt { - idxname?: string; - relation?: RangeVar; - accessMethod?: string; - tableSpace?: string; - indexParams?: Node[]; - indexIncludingParams?: Node[]; - options?: Node[]; - whereClause?: Node; - excludeOpNames?: Node[]; - idxcomment?: string; - indexOid?: number; - oldNumber?: number; - oldCreateSubid?: number; - oldFirstRelfilelocatorSubid?: number; - unique?: boolean; - nulls_not_distinct?: boolean; - primary?: boolean; - isconstraint?: boolean; - deferrable?: boolean; - initdeferred?: boolean; - transformed?: boolean; - concurrent?: boolean; - if_not_exists?: boolean; - reset_default_tblspc?: boolean; + idxname: string; + relation: RangeVar; + accessMethod: string; + tableSpace: string; + indexParams: Node[]; + indexIncludingParams: Node[]; + options: Node[]; + whereClause: Node; + excludeOpNames: Node[]; + idxcomment: string; + indexOid: number; + oldNumber: number; + oldCreateSubid: number; + oldFirstRelfilelocatorSubid: number; + unique: boolean; + nulls_not_distinct: boolean; + primary: boolean; + isconstraint: boolean; + deferrable: boolean; + initdeferred: boolean; + transformed: boolean; + concurrent: boolean; + if_not_exists: boolean; + reset_default_tblspc: boolean; } export interface CreateStatsStmt { - defnames?: Node[]; - stat_types?: Node[]; - exprs?: Node[]; - relations?: Node[]; - stxcomment?: string; - transformed?: boolean; - if_not_exists?: boolean; + defnames: Node[]; + stat_types: Node[]; + exprs: Node[]; + relations: Node[]; + stxcomment: string; + transformed: boolean; + if_not_exists: boolean; } export interface StatsElem { - name?: string; - expr?: Node; + name: string; + expr: Node; } export interface AlterStatsStmt { - defnames?: Node[]; - stxstattarget?: number; - missing_ok?: boolean; + defnames: Node[]; + stxstattarget: number; + missing_ok: boolean; } export interface CreateFunctionStmt { - is_procedure?: boolean; - replace?: boolean; - funcname?: Node[]; - parameters?: Node[]; - returnType?: TypeName; - options?: Node[]; - sql_body?: Node; + is_procedure: boolean; + replace: boolean; + funcname: Node[]; + parameters: Node[]; + returnType: TypeName; + options: Node[]; + sql_body: Node; } export interface FunctionParameter { - name?: string; - argType?: TypeName; - mode?: FunctionParameterMode; - defexpr?: Node; + name: string; + argType: TypeName; + mode: FunctionParameterMode; + defexpr: Node; } export interface AlterFunctionStmt { - objtype?: ObjectType; - func?: ObjectWithArgs; - actions?: Node[]; + objtype: ObjectType; + func: ObjectWithArgs; + actions: Node[]; } export interface DoStmt { - args?: Node[]; + args: Node[]; } export interface InlineCodeBlock { - source_text?: string; - langOid?: number; - langIsTrusted?: boolean; - atomic?: boolean; + source_text: string; + langOid: number; + langIsTrusted: boolean; + atomic: boolean; } export interface CallStmt { - funccall?: FuncCall; - funcexpr?: FuncExpr; - outargs?: Node[]; + funccall: FuncCall; + funcexpr: FuncExpr; + outargs: Node[]; } export interface CallContext { - atomic?: boolean; + atomic: boolean; } export interface RenameStmt { - renameType?: ObjectType; - relationType?: ObjectType; - relation?: RangeVar; - object?: Node; - subname?: string; - newname?: string; - behavior?: DropBehavior; - missing_ok?: boolean; + renameType: ObjectType; + relationType: ObjectType; + relation: RangeVar; + object: Node; + subname: string; + newname: string; + behavior: DropBehavior; + missing_ok: boolean; } export interface AlterObjectDependsStmt { - objectType?: ObjectType; - relation?: RangeVar; - object?: Node; - extname?: String; - remove?: boolean; + objectType: ObjectType; + relation: RangeVar; + object: Node; + extname: String; + remove: boolean; } export interface AlterObjectSchemaStmt { - objectType?: ObjectType; - relation?: RangeVar; - object?: Node; - newschema?: string; - missing_ok?: boolean; + objectType: ObjectType; + relation: RangeVar; + object: Node; + newschema: string; + missing_ok: boolean; } export interface AlterOwnerStmt { - objectType?: ObjectType; - relation?: RangeVar; - object?: Node; - newowner?: RoleSpec; + objectType: ObjectType; + relation: RangeVar; + object: Node; + newowner: RoleSpec; } export interface AlterOperatorStmt { - opername?: ObjectWithArgs; - options?: Node[]; + opername: ObjectWithArgs; + options: Node[]; } export interface AlterTypeStmt { - typeName?: Node[]; - options?: Node[]; + typeName: Node[]; + options: Node[]; } export interface RuleStmt { - relation?: RangeVar; - rulename?: string; - whereClause?: Node; - event?: CmdType; - instead?: boolean; - actions?: Node[]; - replace?: boolean; + relation: RangeVar; + rulename: string; + whereClause: Node; + event: CmdType; + instead: boolean; + actions: Node[]; + replace: boolean; } export interface NotifyStmt { - conditionname?: string; - payload?: string; + conditionname: string; + payload: string; } export interface ListenStmt { - conditionname?: string; + conditionname: string; } export interface UnlistenStmt { - conditionname?: string; + conditionname: string; } export interface TransactionStmt { - kind?: TransactionStmtKind; - options?: Node[]; - savepoint_name?: string; - gid?: string; - chain?: boolean; + kind: TransactionStmtKind; + options: Node[]; + savepoint_name: string; + gid: string; + chain: boolean; } -export interface CompositeTypeStmt { - typevar?: RangeVar; - coldeflist?: Node[]; +export interface CompositeTypeStmt { + typevar: RangeVar; + coldeflist: Node[]; } export interface CreateEnumStmt { - typeName?: Node[]; - vals?: Node[]; + typeName: Node[]; + vals: Node[]; } export interface CreateRangeStmt { - typeName?: Node[]; - params?: Node[]; + typeName: Node[]; + params: Node[]; } export interface AlterEnumStmt { - typeName?: Node[]; - oldVal?: string; - newVal?: string; - newValNeighbor?: string; - newValIsAfter?: boolean; - skipIfNewValExists?: boolean; + typeName: Node[]; + oldVal: string; + newVal: string; + newValNeighbor: string; + newValIsAfter: boolean; + skipIfNewValExists: boolean; } export interface ViewStmt { - view?: RangeVar; - aliases?: Node[]; - query?: Node; - replace?: boolean; - options?: Node[]; - withCheckOption?: ViewCheckOption; + view: RangeVar; + aliases: Node[]; + query: Node; + replace: boolean; + options: Node[]; + withCheckOption: ViewCheckOption; } export interface LoadStmt { - filename?: string; + filename: string; } export interface CreatedbStmt { - dbname?: string; - options?: Node[]; + dbname: string; + options: Node[]; } export interface AlterDatabaseStmt { - dbname?: string; - options?: Node[]; + dbname: string; + options: Node[]; } export interface AlterDatabaseRefreshCollStmt { - dbname?: string; + dbname: string; } export interface AlterDatabaseSetStmt { - dbname?: string; - setstmt?: VariableSetStmt; + dbname: string; + setstmt: VariableSetStmt; } export interface DropdbStmt { - dbname?: string; - missing_ok?: boolean; - options?: Node[]; + dbname: string; + missing_ok: boolean; + options: Node[]; } export interface AlterSystemStmt { - setstmt?: VariableSetStmt; + setstmt: VariableSetStmt; } export interface ClusterStmt { - relation?: RangeVar; - indexname?: string; - params?: Node[]; + relation: RangeVar; + indexname: string; + params: Node[]; } export interface VacuumStmt { - options?: Node[]; - rels?: Node[]; - is_vacuumcmd?: boolean; + options: Node[]; + rels: Node[]; + is_vacuumcmd: boolean; } export interface VacuumRelation { - relation?: RangeVar; - oid?: number; - va_cols?: Node[]; + relation: RangeVar; + oid: number; + va_cols: Node[]; } export interface ExplainStmt { - query?: Node; - options?: Node[]; + query: Node; + options: Node[]; } export interface CreateTableAsStmt { - query?: Node; - into?: IntoClause; - objtype?: ObjectType; - is_select_into?: boolean; - if_not_exists?: boolean; + query: Node; + into: IntoClause; + objtype: ObjectType; + is_select_into: boolean; + if_not_exists: boolean; } export interface RefreshMatViewStmt { - concurrent?: boolean; - skipData?: boolean; - relation?: RangeVar; + concurrent: boolean; + skipData: boolean; + relation: RangeVar; } export interface CheckPointStmt {} export interface DiscardStmt { - target?: DiscardMode; + target: DiscardMode; } export interface LockStmt { - relations?: Node[]; - mode?: number; - nowait?: boolean; + relations: Node[]; + mode: number; + nowait: boolean; } export interface ConstraintsSetStmt { - constraints?: Node[]; - deferred?: boolean; + constraints: Node[]; + deferred: boolean; } export interface ReindexStmt { - kind?: ReindexObjectType; - relation?: RangeVar; - name?: string; - params?: Node[]; + kind: ReindexObjectType; + relation: RangeVar; + name: string; + params: Node[]; } export interface CreateConversionStmt { - conversion_name?: Node[]; - for_encoding_name?: string; - to_encoding_name?: string; - func_name?: Node[]; - def?: boolean; + conversion_name: Node[]; + for_encoding_name: string; + to_encoding_name: string; + func_name: Node[]; + def: boolean; } export interface CreateCastStmt { - sourcetype?: TypeName; - targettype?: TypeName; - func?: ObjectWithArgs; - context?: CoercionContext; - inout?: boolean; + sourcetype: TypeName; + targettype: TypeName; + func: ObjectWithArgs; + context: CoercionContext; + inout: boolean; } export interface CreateTransformStmt { - replace?: boolean; - type_name?: TypeName; - lang?: string; - fromsql?: ObjectWithArgs; - tosql?: ObjectWithArgs; + replace: boolean; + type_name: TypeName; + lang: string; + fromsql: ObjectWithArgs; + tosql: ObjectWithArgs; } export interface PrepareStmt { - name?: string; - argtypes?: Node[]; - query?: Node; + name: string; + argtypes: Node[]; + query: Node; } export interface ExecuteStmt { - name?: string; - params?: Node[]; + name: string; + params: Node[]; } export interface DeallocateStmt { - name?: string; + name: string; } export interface DropOwnedStmt { - roles?: Node[]; - behavior?: DropBehavior; + roles: Node[]; + behavior: DropBehavior; } export interface ReassignOwnedStmt { - roles?: Node[]; - newrole?: RoleSpec; + roles: Node[]; + newrole: RoleSpec; } export interface AlterTSDictionaryStmt { - dictname?: Node[]; - options?: Node[]; + dictname: Node[]; + options: Node[]; } export interface AlterTSConfigurationStmt { - kind?: AlterTSConfigType; - cfgname?: Node[]; - tokentype?: Node[]; - dicts?: Node[]; - override?: boolean; - replace?: boolean; - missing_ok?: boolean; + kind: AlterTSConfigType; + cfgname: Node[]; + tokentype: Node[]; + dicts: Node[]; + override: boolean; + replace: boolean; + missing_ok: boolean; } export interface PublicationTable { - relation?: RangeVar; - whereClause?: Node; - columns?: Node[]; + relation: RangeVar; + whereClause: Node; + columns: Node[]; } export interface PublicationObjSpec { - pubobjtype?: PublicationObjSpecType; - name?: string; - pubtable?: PublicationTable; - location?: number; + pubobjtype: PublicationObjSpecType; + name: string; + pubtable: PublicationTable; + location: number; } export interface CreatePublicationStmt { - pubname?: string; - options?: Node[]; - pubobjects?: Node[]; - for_all_tables?: boolean; + pubname: string; + options: Node[]; + pubobjects: Node[]; + for_all_tables: boolean; } export interface AlterPublicationStmt { - pubname?: string; - options?: Node[]; - pubobjects?: Node[]; - for_all_tables?: boolean; - action?: AlterPublicationAction; + pubname: string; + options: Node[]; + pubobjects: Node[]; + for_all_tables: boolean; + action: AlterPublicationAction; } export interface CreateSubscriptionStmt { - subname?: string; - conninfo?: string; - publication?: Node[]; - options?: Node[]; + subname: string; + conninfo: string; + publication: Node[]; + options: Node[]; } export interface AlterSubscriptionStmt { - kind?: AlterSubscriptionType; - subname?: string; - conninfo?: string; - publication?: Node[]; - options?: Node[]; + kind: AlterSubscriptionType; + subname: string; + conninfo: string; + publication: Node[]; + options: Node[]; } export interface DropSubscriptionStmt { - subname?: string; - missing_ok?: boolean; - behavior?: DropBehavior; + subname: string; + missing_ok: boolean; + behavior: DropBehavior; } export interface ScanToken { - start?: number; - end?: number; - token?: Token; - keywordKind?: KeywordKind; + start: number; + end: number; + token: Token; + keywordKind: KeywordKind; }", - "file": "wrapped.ts", + "file": "types.ts", }, +] +`; + +exports[`types optionalFields 1`] = ` +[ { "code": "/** * This file was automatically generated by pg-proto-parser@latest. * DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, * and run the pg-proto-parser generate command to regenerate this file. */ -import { OverridingKind, QuerySource, SortByDir, SortByNulls, SetQuantifier, A_Expr_Kind, RoleSpecType, TableLikeOption, DefElemAction, PartitionStrategy, PartitionRangeDatumKind, RTEKind, WCOKind, GroupingSetKind, CTEMaterialize, SetOperation, ObjectType, DropBehavior, AlterTableType, GrantTargetType, VariableSetKind, ConstrType, ImportForeignSchemaType, RoleStmtType, FetchDirection, FunctionParameterMode, TransactionStmtKind, ViewCheckOption, DiscardMode, ReindexObjectType, AlterTSConfigType, PublicationObjSpecType, AlterPublicationAction, AlterSubscriptionType, OnCommitAction, ParamKind, CoercionContext, CoercionForm, BoolExprType, SubLinkType, RowCompareType, MinMaxOp, SQLValueFunctionOp, XmlExprOp, XmlOptionType, JsonEncoding, JsonFormatType, JsonConstructorType, JsonValueType, NullTestType, BoolTestType, CmdType, JoinType, AggStrategy, AggSplit, SetOpCmd, SetOpStrategy, OnConflictAction, LimitOption, LockClauseStrength, LockWaitPolicy, LockTupleMode, KeywordKind, Token } from "my-enums.ts"; -export type Node = ParseResult | ScanResult | Integer | Float | Boolean | String | BitString | List | OidList | IntList | A_Const | Alias | RangeVar | TableFunc | IntoClause | Var | Param | Aggref | GroupingFunc | WindowFunc | SubscriptingRef | FuncExpr | NamedArgExpr | OpExpr | DistinctExpr | NullIfExpr | ScalarArrayOpExpr | BoolExpr | SubLink | SubPlan | AlternativeSubPlan | FieldSelect | FieldStore | RelabelType | CoerceViaIO | ArrayCoerceExpr | ConvertRowtypeExpr | CollateExpr | CaseExpr | CaseWhen | CaseTestExpr | ArrayExpr | RowExpr | RowCompareExpr | CoalesceExpr | MinMaxExpr | SQLValueFunction | XmlExpr | JsonFormat | JsonReturning | JsonValueExpr | JsonConstructorExpr | JsonIsPredicate | NullTest | BooleanTest | CoerceToDomain | CoerceToDomainValue | SetToDefault | CurrentOfExpr | NextValueExpr | InferenceElem | TargetEntry | RangeTblRef | JoinExpr | FromExpr | OnConflictExpr | Query | TypeName | ColumnRef | ParamRef | A_Expr | TypeCast | CollateClause | RoleSpec | FuncCall | A_Star | A_Indices | A_Indirection | A_ArrayExpr | ResTarget | MultiAssignRef | SortBy | WindowDef | RangeSubselect | RangeFunction | RangeTableFunc | RangeTableFuncCol | RangeTableSample | ColumnDef | TableLikeClause | IndexElem | DefElem | LockingClause | XmlSerialize | PartitionElem | PartitionSpec | PartitionBoundSpec | PartitionRangeDatum | PartitionCmd | RangeTblEntry | RTEPermissionInfo | RangeTblFunction | TableSampleClause | WithCheckOption | SortGroupClause | GroupingSet | WindowClause | RowMarkClause | WithClause | InferClause | OnConflictClause | CTESearchClause | CTECycleClause | CommonTableExpr | MergeWhenClause | MergeAction | TriggerTransition | JsonOutput | JsonKeyValue | JsonObjectConstructor | JsonArrayConstructor | JsonArrayQueryConstructor | JsonAggConstructor | JsonObjectAgg | JsonArrayAgg | RawStmt | InsertStmt | DeleteStmt | UpdateStmt | MergeStmt | SelectStmt | SetOperationStmt | ReturnStmt | PLAssignStmt | CreateSchemaStmt | AlterTableStmt | ReplicaIdentityStmt | AlterTableCmd | AlterCollationStmt | AlterDomainStmt | GrantStmt | ObjectWithArgs | AccessPriv | GrantRoleStmt | AlterDefaultPrivilegesStmt | CopyStmt | VariableSetStmt | VariableShowStmt | CreateStmt | Constraint | CreateTableSpaceStmt | DropTableSpaceStmt | AlterTableSpaceOptionsStmt | AlterTableMoveAllStmt | CreateExtensionStmt | AlterExtensionStmt | AlterExtensionContentsStmt | CreateFdwStmt | AlterFdwStmt | CreateForeignServerStmt | AlterForeignServerStmt | CreateForeignTableStmt | CreateUserMappingStmt | AlterUserMappingStmt | DropUserMappingStmt | ImportForeignSchemaStmt | CreatePolicyStmt | AlterPolicyStmt | CreateAmStmt | CreateTrigStmt | CreateEventTrigStmt | AlterEventTrigStmt | CreatePLangStmt | CreateRoleStmt | AlterRoleStmt | AlterRoleSetStmt | DropRoleStmt | CreateSeqStmt | AlterSeqStmt | DefineStmt | CreateDomainStmt | CreateOpClassStmt | CreateOpClassItem | CreateOpFamilyStmt | AlterOpFamilyStmt | DropStmt | TruncateStmt | CommentStmt | SecLabelStmt | DeclareCursorStmt | ClosePortalStmt | FetchStmt | IndexStmt | CreateStatsStmt | StatsElem | AlterStatsStmt | CreateFunctionStmt | FunctionParameter | AlterFunctionStmt | DoStmt | InlineCodeBlock | CallStmt | CallContext | RenameStmt | AlterObjectDependsStmt | AlterObjectSchemaStmt | AlterOwnerStmt | AlterOperatorStmt | AlterTypeStmt | RuleStmt | NotifyStmt | ListenStmt | UnlistenStmt | TransactionStmt | CompositeTypeStmt | CreateEnumStmt | CreateRangeStmt | AlterEnumStmt | ViewStmt | LoadStmt | CreatedbStmt | AlterDatabaseStmt | AlterDatabaseRefreshCollStmt | AlterDatabaseSetStmt | DropdbStmt | AlterSystemStmt | ClusterStmt | VacuumStmt | VacuumRelation | ExplainStmt | CreateTableAsStmt | RefreshMatViewStmt | CheckPointStmt | DiscardStmt | LockStmt | ConstraintsSetStmt | ReindexStmt | CreateConversionStmt | CreateCastStmt | CreateTransformStmt | PrepareStmt | ExecuteStmt | DeallocateStmt | DropOwnedStmt | ReassignOwnedStmt | AlterTSDictionaryStmt | AlterTSConfigurationStmt | PublicationTable | PublicationObjSpec | CreatePublicationStmt | AlterPublicationStmt | CreateSubscriptionStmt | AlterSubscriptionStmt | DropSubscriptionStmt | ScanToken; +import { OverridingKind, QuerySource, SortByDir, SortByNulls, SetQuantifier, A_Expr_Kind, RoleSpecType, TableLikeOption, DefElemAction, PartitionStrategy, PartitionRangeDatumKind, RTEKind, WCOKind, GroupingSetKind, CTEMaterialize, SetOperation, ObjectType, DropBehavior, AlterTableType, GrantTargetType, VariableSetKind, ConstrType, ImportForeignSchemaType, RoleStmtType, FetchDirection, FunctionParameterMode, TransactionStmtKind, ViewCheckOption, DiscardMode, ReindexObjectType, AlterTSConfigType, PublicationObjSpecType, AlterPublicationAction, AlterSubscriptionType, OnCommitAction, ParamKind, CoercionContext, CoercionForm, BoolExprType, SubLinkType, RowCompareType, MinMaxOp, SQLValueFunctionOp, XmlExprOp, XmlOptionType, JsonEncoding, JsonFormatType, JsonConstructorType, JsonValueType, NullTestType, BoolTestType, CmdType, JoinType, AggStrategy, AggSplit, SetOpCmd, SetOpStrategy, OnConflictAction, LimitOption, LockClauseStrength, LockWaitPolicy, LockTupleMode, KeywordKind, Token } from "./enums"; +export type Node = { + ParseResult: ParseResult; +} | { + ScanResult: ScanResult; +} | { + Integer: Integer; +} | { + Float: Float; +} | { + Boolean: Boolean; +} | { + String: String; +} | { + BitString: BitString; +} | { + List: List; +} | { + OidList: OidList; +} | { + IntList: IntList; +} | { + A_Const: A_Const; +} | { + Alias: Alias; +} | { + RangeVar: RangeVar; +} | { + TableFunc: TableFunc; +} | { + IntoClause: IntoClause; +} | { + Var: Var; +} | { + Param: Param; +} | { + Aggref: Aggref; +} | { + GroupingFunc: GroupingFunc; +} | { + WindowFunc: WindowFunc; +} | { + SubscriptingRef: SubscriptingRef; +} | { + FuncExpr: FuncExpr; +} | { + NamedArgExpr: NamedArgExpr; +} | { + OpExpr: OpExpr; +} | { + DistinctExpr: DistinctExpr; +} | { + NullIfExpr: NullIfExpr; +} | { + ScalarArrayOpExpr: ScalarArrayOpExpr; +} | { + BoolExpr: BoolExpr; +} | { + SubLink: SubLink; +} | { + SubPlan: SubPlan; +} | { + AlternativeSubPlan: AlternativeSubPlan; +} | { + FieldSelect: FieldSelect; +} | { + FieldStore: FieldStore; +} | { + RelabelType: RelabelType; +} | { + CoerceViaIO: CoerceViaIO; +} | { + ArrayCoerceExpr: ArrayCoerceExpr; +} | { + ConvertRowtypeExpr: ConvertRowtypeExpr; +} | { + CollateExpr: CollateExpr; +} | { + CaseExpr: CaseExpr; +} | { + CaseWhen: CaseWhen; +} | { + CaseTestExpr: CaseTestExpr; +} | { + ArrayExpr: ArrayExpr; +} | { + RowExpr: RowExpr; +} | { + RowCompareExpr: RowCompareExpr; +} | { + CoalesceExpr: CoalesceExpr; +} | { + MinMaxExpr: MinMaxExpr; +} | { + SQLValueFunction: SQLValueFunction; +} | { + XmlExpr: XmlExpr; +} | { + JsonFormat: JsonFormat; +} | { + JsonReturning: JsonReturning; +} | { + JsonValueExpr: JsonValueExpr; +} | { + JsonConstructorExpr: JsonConstructorExpr; +} | { + JsonIsPredicate: JsonIsPredicate; +} | { + NullTest: NullTest; +} | { + BooleanTest: BooleanTest; +} | { + CoerceToDomain: CoerceToDomain; +} | { + CoerceToDomainValue: CoerceToDomainValue; +} | { + SetToDefault: SetToDefault; +} | { + CurrentOfExpr: CurrentOfExpr; +} | { + NextValueExpr: NextValueExpr; +} | { + InferenceElem: InferenceElem; +} | { + TargetEntry: TargetEntry; +} | { + RangeTblRef: RangeTblRef; +} | { + JoinExpr: JoinExpr; +} | { + FromExpr: FromExpr; +} | { + OnConflictExpr: OnConflictExpr; +} | { + Query: Query; +} | { + TypeName: TypeName; +} | { + ColumnRef: ColumnRef; +} | { + ParamRef: ParamRef; +} | { + A_Expr: A_Expr; +} | { + TypeCast: TypeCast; +} | { + CollateClause: CollateClause; +} | { + RoleSpec: RoleSpec; +} | { + FuncCall: FuncCall; +} | { + A_Star: A_Star; +} | { + A_Indices: A_Indices; +} | { + A_Indirection: A_Indirection; +} | { + A_ArrayExpr: A_ArrayExpr; +} | { + ResTarget: ResTarget; +} | { + MultiAssignRef: MultiAssignRef; +} | { + SortBy: SortBy; +} | { + WindowDef: WindowDef; +} | { + RangeSubselect: RangeSubselect; +} | { + RangeFunction: RangeFunction; +} | { + RangeTableFunc: RangeTableFunc; +} | { + RangeTableFuncCol: RangeTableFuncCol; +} | { + RangeTableSample: RangeTableSample; +} | { + ColumnDef: ColumnDef; +} | { + TableLikeClause: TableLikeClause; +} | { + IndexElem: IndexElem; +} | { + DefElem: DefElem; +} | { + LockingClause: LockingClause; +} | { + XmlSerialize: XmlSerialize; +} | { + PartitionElem: PartitionElem; +} | { + PartitionSpec: PartitionSpec; +} | { + PartitionBoundSpec: PartitionBoundSpec; +} | { + PartitionRangeDatum: PartitionRangeDatum; +} | { + PartitionCmd: PartitionCmd; +} | { + RangeTblEntry: RangeTblEntry; +} | { + RTEPermissionInfo: RTEPermissionInfo; +} | { + RangeTblFunction: RangeTblFunction; +} | { + TableSampleClause: TableSampleClause; +} | { + WithCheckOption: WithCheckOption; +} | { + SortGroupClause: SortGroupClause; +} | { + GroupingSet: GroupingSet; +} | { + WindowClause: WindowClause; +} | { + RowMarkClause: RowMarkClause; +} | { + WithClause: WithClause; +} | { + InferClause: InferClause; +} | { + OnConflictClause: OnConflictClause; +} | { + CTESearchClause: CTESearchClause; +} | { + CTECycleClause: CTECycleClause; +} | { + CommonTableExpr: CommonTableExpr; +} | { + MergeWhenClause: MergeWhenClause; +} | { + MergeAction: MergeAction; +} | { + TriggerTransition: TriggerTransition; +} | { + JsonOutput: JsonOutput; +} | { + JsonKeyValue: JsonKeyValue; +} | { + JsonObjectConstructor: JsonObjectConstructor; +} | { + JsonArrayConstructor: JsonArrayConstructor; +} | { + JsonArrayQueryConstructor: JsonArrayQueryConstructor; +} | { + JsonAggConstructor: JsonAggConstructor; +} | { + JsonObjectAgg: JsonObjectAgg; +} | { + JsonArrayAgg: JsonArrayAgg; +} | { + RawStmt: RawStmt; +} | { + InsertStmt: InsertStmt; +} | { + DeleteStmt: DeleteStmt; +} | { + UpdateStmt: UpdateStmt; +} | { + MergeStmt: MergeStmt; +} | { + SelectStmt: SelectStmt; +} | { + SetOperationStmt: SetOperationStmt; +} | { + ReturnStmt: ReturnStmt; +} | { + PLAssignStmt: PLAssignStmt; +} | { + CreateSchemaStmt: CreateSchemaStmt; +} | { + AlterTableStmt: AlterTableStmt; +} | { + ReplicaIdentityStmt: ReplicaIdentityStmt; +} | { + AlterTableCmd: AlterTableCmd; +} | { + AlterCollationStmt: AlterCollationStmt; +} | { + AlterDomainStmt: AlterDomainStmt; +} | { + GrantStmt: GrantStmt; +} | { + ObjectWithArgs: ObjectWithArgs; +} | { + AccessPriv: AccessPriv; +} | { + GrantRoleStmt: GrantRoleStmt; +} | { + AlterDefaultPrivilegesStmt: AlterDefaultPrivilegesStmt; +} | { + CopyStmt: CopyStmt; +} | { + VariableSetStmt: VariableSetStmt; +} | { + VariableShowStmt: VariableShowStmt; +} | { + CreateStmt: CreateStmt; +} | { + Constraint: Constraint; +} | { + CreateTableSpaceStmt: CreateTableSpaceStmt; +} | { + DropTableSpaceStmt: DropTableSpaceStmt; +} | { + AlterTableSpaceOptionsStmt: AlterTableSpaceOptionsStmt; +} | { + AlterTableMoveAllStmt: AlterTableMoveAllStmt; +} | { + CreateExtensionStmt: CreateExtensionStmt; +} | { + AlterExtensionStmt: AlterExtensionStmt; +} | { + AlterExtensionContentsStmt: AlterExtensionContentsStmt; +} | { + CreateFdwStmt: CreateFdwStmt; +} | { + AlterFdwStmt: AlterFdwStmt; +} | { + CreateForeignServerStmt: CreateForeignServerStmt; +} | { + AlterForeignServerStmt: AlterForeignServerStmt; +} | { + CreateForeignTableStmt: CreateForeignTableStmt; +} | { + CreateUserMappingStmt: CreateUserMappingStmt; +} | { + AlterUserMappingStmt: AlterUserMappingStmt; +} | { + DropUserMappingStmt: DropUserMappingStmt; +} | { + ImportForeignSchemaStmt: ImportForeignSchemaStmt; +} | { + CreatePolicyStmt: CreatePolicyStmt; +} | { + AlterPolicyStmt: AlterPolicyStmt; +} | { + CreateAmStmt: CreateAmStmt; +} | { + CreateTrigStmt: CreateTrigStmt; +} | { + CreateEventTrigStmt: CreateEventTrigStmt; +} | { + AlterEventTrigStmt: AlterEventTrigStmt; +} | { + CreatePLangStmt: CreatePLangStmt; +} | { + CreateRoleStmt: CreateRoleStmt; +} | { + AlterRoleStmt: AlterRoleStmt; +} | { + AlterRoleSetStmt: AlterRoleSetStmt; +} | { + DropRoleStmt: DropRoleStmt; +} | { + CreateSeqStmt: CreateSeqStmt; +} | { + AlterSeqStmt: AlterSeqStmt; +} | { + DefineStmt: DefineStmt; +} | { + CreateDomainStmt: CreateDomainStmt; +} | { + CreateOpClassStmt: CreateOpClassStmt; +} | { + CreateOpClassItem: CreateOpClassItem; +} | { + CreateOpFamilyStmt: CreateOpFamilyStmt; +} | { + AlterOpFamilyStmt: AlterOpFamilyStmt; +} | { + DropStmt: DropStmt; +} | { + TruncateStmt: TruncateStmt; +} | { + CommentStmt: CommentStmt; +} | { + SecLabelStmt: SecLabelStmt; +} | { + DeclareCursorStmt: DeclareCursorStmt; +} | { + ClosePortalStmt: ClosePortalStmt; +} | { + FetchStmt: FetchStmt; +} | { + IndexStmt: IndexStmt; +} | { + CreateStatsStmt: CreateStatsStmt; +} | { + StatsElem: StatsElem; +} | { + AlterStatsStmt: AlterStatsStmt; +} | { + CreateFunctionStmt: CreateFunctionStmt; +} | { + FunctionParameter: FunctionParameter; +} | { + AlterFunctionStmt: AlterFunctionStmt; +} | { + DoStmt: DoStmt; +} | { + InlineCodeBlock: InlineCodeBlock; +} | { + CallStmt: CallStmt; +} | { + CallContext: CallContext; +} | { + RenameStmt: RenameStmt; +} | { + AlterObjectDependsStmt: AlterObjectDependsStmt; +} | { + AlterObjectSchemaStmt: AlterObjectSchemaStmt; +} | { + AlterOwnerStmt: AlterOwnerStmt; +} | { + AlterOperatorStmt: AlterOperatorStmt; +} | { + AlterTypeStmt: AlterTypeStmt; +} | { + RuleStmt: RuleStmt; +} | { + NotifyStmt: NotifyStmt; +} | { + ListenStmt: ListenStmt; +} | { + UnlistenStmt: UnlistenStmt; +} | { + TransactionStmt: TransactionStmt; +} | { + CompositeTypeStmt: CompositeTypeStmt; +} | { + CreateEnumStmt: CreateEnumStmt; +} | { + CreateRangeStmt: CreateRangeStmt; +} | { + AlterEnumStmt: AlterEnumStmt; +} | { + ViewStmt: ViewStmt; +} | { + LoadStmt: LoadStmt; +} | { + CreatedbStmt: CreatedbStmt; +} | { + AlterDatabaseStmt: AlterDatabaseStmt; +} | { + AlterDatabaseRefreshCollStmt: AlterDatabaseRefreshCollStmt; +} | { + AlterDatabaseSetStmt: AlterDatabaseSetStmt; +} | { + DropdbStmt: DropdbStmt; +} | { + AlterSystemStmt: AlterSystemStmt; +} | { + ClusterStmt: ClusterStmt; +} | { + VacuumStmt: VacuumStmt; +} | { + VacuumRelation: VacuumRelation; +} | { + ExplainStmt: ExplainStmt; +} | { + CreateTableAsStmt: CreateTableAsStmt; +} | { + RefreshMatViewStmt: RefreshMatViewStmt; +} | { + CheckPointStmt: CheckPointStmt; +} | { + DiscardStmt: DiscardStmt; +} | { + LockStmt: LockStmt; +} | { + ConstraintsSetStmt: ConstraintsSetStmt; +} | { + ReindexStmt: ReindexStmt; +} | { + CreateConversionStmt: CreateConversionStmt; +} | { + CreateCastStmt: CreateCastStmt; +} | { + CreateTransformStmt: CreateTransformStmt; +} | { + PrepareStmt: PrepareStmt; +} | { + ExecuteStmt: ExecuteStmt; +} | { + DeallocateStmt: DeallocateStmt; +} | { + DropOwnedStmt: DropOwnedStmt; +} | { + ReassignOwnedStmt: ReassignOwnedStmt; +} | { + AlterTSDictionaryStmt: AlterTSDictionaryStmt; +} | { + AlterTSConfigurationStmt: AlterTSConfigurationStmt; +} | { + PublicationTable: PublicationTable; +} | { + PublicationObjSpec: PublicationObjSpec; +} | { + CreatePublicationStmt: CreatePublicationStmt; +} | { + AlterPublicationStmt: AlterPublicationStmt; +} | { + CreateSubscriptionStmt: CreateSubscriptionStmt; +} | { + AlterSubscriptionStmt: AlterSubscriptionStmt; +} | { + DropSubscriptionStmt: DropSubscriptionStmt; +} | { + ScanToken: ScanToken; +}; export interface ParseResult { version?: number; stmts?: RawStmt[]; diff --git a/packages/proto-parser/__tests__/__snapshots__/utils.test.ts.snap b/packages/proto-parser/__tests__/__snapshots__/utils.test.ts.snap index 8c00f955..8f414b3d 100644 --- a/packages/proto-parser/__tests__/__snapshots__/utils.test.ts.snap +++ b/packages/proto-parser/__tests__/__snapshots__/utils.test.ts.snap @@ -4244,61 +4244,133 @@ export const getEnumValue = (enumType: EnumType, key: string | number) => { * and run the pg-proto-parser generate command to regenerate this file. */ import _o from "nested-obj"; -import { ParseResult, ScanResult, Integer, Float, Boolean, String, BitString, List, OidList, IntList, A_Const, Alias, RangeVar, TableFunc, IntoClause, Var, Param, Aggref, GroupingFunc, WindowFunc, SubscriptingRef, FuncExpr, NamedArgExpr, OpExpr, DistinctExpr, NullIfExpr, ScalarArrayOpExpr, BoolExpr, SubLink, SubPlan, AlternativeSubPlan, FieldSelect, FieldStore, RelabelType, CoerceViaIO, ArrayCoerceExpr, ConvertRowtypeExpr, CollateExpr, CaseExpr, CaseWhen, CaseTestExpr, ArrayExpr, RowExpr, RowCompareExpr, CoalesceExpr, MinMaxExpr, SQLValueFunction, XmlExpr, JsonFormat, JsonReturning, JsonValueExpr, JsonConstructorExpr, JsonIsPredicate, NullTest, BooleanTest, CoerceToDomain, CoerceToDomainValue, SetToDefault, CurrentOfExpr, NextValueExpr, InferenceElem, TargetEntry, RangeTblRef, JoinExpr, FromExpr, OnConflictExpr, Query, TypeName, ColumnRef, ParamRef, A_Expr, TypeCast, CollateClause, RoleSpec, FuncCall, A_Star, A_Indices, A_Indirection, A_ArrayExpr, ResTarget, MultiAssignRef, SortBy, WindowDef, RangeSubselect, RangeFunction, RangeTableFunc, RangeTableFuncCol, RangeTableSample, ColumnDef, TableLikeClause, IndexElem, DefElem, LockingClause, XmlSerialize, PartitionElem, PartitionSpec, PartitionBoundSpec, PartitionRangeDatum, PartitionCmd, RangeTblEntry, RTEPermissionInfo, RangeTblFunction, TableSampleClause, WithCheckOption, SortGroupClause, GroupingSet, WindowClause, RowMarkClause, WithClause, InferClause, OnConflictClause, CTESearchClause, CTECycleClause, CommonTableExpr, MergeWhenClause, MergeAction, TriggerTransition, JsonOutput, JsonKeyValue, JsonObjectConstructor, JsonArrayConstructor, JsonArrayQueryConstructor, JsonAggConstructor, JsonObjectAgg, JsonArrayAgg, RawStmt, InsertStmt, DeleteStmt, UpdateStmt, MergeStmt, SelectStmt, SetOperationStmt, ReturnStmt, PLAssignStmt, CreateSchemaStmt, AlterTableStmt, ReplicaIdentityStmt, AlterTableCmd, AlterCollationStmt, AlterDomainStmt, GrantStmt, ObjectWithArgs, AccessPriv, GrantRoleStmt, AlterDefaultPrivilegesStmt, CopyStmt, VariableSetStmt, VariableShowStmt, CreateStmt, Constraint, CreateTableSpaceStmt, DropTableSpaceStmt, AlterTableSpaceOptionsStmt, AlterTableMoveAllStmt, CreateExtensionStmt, AlterExtensionStmt, AlterExtensionContentsStmt, CreateFdwStmt, AlterFdwStmt, CreateForeignServerStmt, AlterForeignServerStmt, CreateForeignTableStmt, CreateUserMappingStmt, AlterUserMappingStmt, DropUserMappingStmt, ImportForeignSchemaStmt, CreatePolicyStmt, AlterPolicyStmt, CreateAmStmt, CreateTrigStmt, CreateEventTrigStmt, AlterEventTrigStmt, CreatePLangStmt, CreateRoleStmt, AlterRoleStmt, AlterRoleSetStmt, DropRoleStmt, CreateSeqStmt, AlterSeqStmt, DefineStmt, CreateDomainStmt, CreateOpClassStmt, CreateOpClassItem, CreateOpFamilyStmt, AlterOpFamilyStmt, DropStmt, TruncateStmt, CommentStmt, SecLabelStmt, DeclareCursorStmt, ClosePortalStmt, FetchStmt, IndexStmt, CreateStatsStmt, StatsElem, AlterStatsStmt, CreateFunctionStmt, FunctionParameter, AlterFunctionStmt, DoStmt, InlineCodeBlock, CallStmt, CallContext, RenameStmt, AlterObjectDependsStmt, AlterObjectSchemaStmt, AlterOwnerStmt, AlterOperatorStmt, AlterTypeStmt, RuleStmt, NotifyStmt, ListenStmt, UnlistenStmt, TransactionStmt, CompositeTypeStmt, CreateEnumStmt, CreateRangeStmt, AlterEnumStmt, ViewStmt, LoadStmt, CreatedbStmt, AlterDatabaseStmt, AlterDatabaseRefreshCollStmt, AlterDatabaseSetStmt, DropdbStmt, AlterSystemStmt, ClusterStmt, VacuumStmt, VacuumRelation, ExplainStmt, CreateTableAsStmt, RefreshMatViewStmt, CheckPointStmt, DiscardStmt, LockStmt, ConstraintsSetStmt, ReindexStmt, CreateConversionStmt, CreateCastStmt, CreateTransformStmt, PrepareStmt, ExecuteStmt, DeallocateStmt, DropOwnedStmt, ReassignOwnedStmt, AlterTSDictionaryStmt, AlterTSConfigurationStmt, PublicationTable, PublicationObjSpec, CreatePublicationStmt, AlterPublicationStmt, CreateSubscriptionStmt, AlterSubscriptionStmt, DropSubscriptionStmt, ScanToken } from "./wrapped"; +import { ParseResult, ScanResult, Integer, Float, Boolean, String, BitString, List, OidList, IntList, A_Const, Alias, RangeVar, TableFunc, IntoClause, Var, Param, Aggref, GroupingFunc, WindowFunc, SubscriptingRef, FuncExpr, NamedArgExpr, OpExpr, DistinctExpr, NullIfExpr, ScalarArrayOpExpr, BoolExpr, SubLink, SubPlan, AlternativeSubPlan, FieldSelect, FieldStore, RelabelType, CoerceViaIO, ArrayCoerceExpr, ConvertRowtypeExpr, CollateExpr, CaseExpr, CaseWhen, CaseTestExpr, ArrayExpr, RowExpr, RowCompareExpr, CoalesceExpr, MinMaxExpr, SQLValueFunction, XmlExpr, JsonFormat, JsonReturning, JsonValueExpr, JsonConstructorExpr, JsonIsPredicate, NullTest, BooleanTest, CoerceToDomain, CoerceToDomainValue, SetToDefault, CurrentOfExpr, NextValueExpr, InferenceElem, TargetEntry, RangeTblRef, JoinExpr, FromExpr, OnConflictExpr, Query, TypeName, ColumnRef, ParamRef, A_Expr, TypeCast, CollateClause, RoleSpec, FuncCall, A_Star, A_Indices, A_Indirection, A_ArrayExpr, ResTarget, MultiAssignRef, SortBy, WindowDef, RangeSubselect, RangeFunction, RangeTableFunc, RangeTableFuncCol, RangeTableSample, ColumnDef, TableLikeClause, IndexElem, DefElem, LockingClause, XmlSerialize, PartitionElem, PartitionSpec, PartitionBoundSpec, PartitionRangeDatum, PartitionCmd, RangeTblEntry, RTEPermissionInfo, RangeTblFunction, TableSampleClause, WithCheckOption, SortGroupClause, GroupingSet, WindowClause, RowMarkClause, WithClause, InferClause, OnConflictClause, CTESearchClause, CTECycleClause, CommonTableExpr, MergeWhenClause, MergeAction, TriggerTransition, JsonOutput, JsonKeyValue, JsonObjectConstructor, JsonArrayConstructor, JsonArrayQueryConstructor, JsonAggConstructor, JsonObjectAgg, JsonArrayAgg, RawStmt, InsertStmt, DeleteStmt, UpdateStmt, MergeStmt, SelectStmt, SetOperationStmt, ReturnStmt, PLAssignStmt, CreateSchemaStmt, AlterTableStmt, ReplicaIdentityStmt, AlterTableCmd, AlterCollationStmt, AlterDomainStmt, GrantStmt, ObjectWithArgs, AccessPriv, GrantRoleStmt, AlterDefaultPrivilegesStmt, CopyStmt, VariableSetStmt, VariableShowStmt, CreateStmt, Constraint, CreateTableSpaceStmt, DropTableSpaceStmt, AlterTableSpaceOptionsStmt, AlterTableMoveAllStmt, CreateExtensionStmt, AlterExtensionStmt, AlterExtensionContentsStmt, CreateFdwStmt, AlterFdwStmt, CreateForeignServerStmt, AlterForeignServerStmt, CreateForeignTableStmt, CreateUserMappingStmt, AlterUserMappingStmt, DropUserMappingStmt, ImportForeignSchemaStmt, CreatePolicyStmt, AlterPolicyStmt, CreateAmStmt, CreateTrigStmt, CreateEventTrigStmt, AlterEventTrigStmt, CreatePLangStmt, CreateRoleStmt, AlterRoleStmt, AlterRoleSetStmt, DropRoleStmt, CreateSeqStmt, AlterSeqStmt, DefineStmt, CreateDomainStmt, CreateOpClassStmt, CreateOpClassItem, CreateOpFamilyStmt, AlterOpFamilyStmt, DropStmt, TruncateStmt, CommentStmt, SecLabelStmt, DeclareCursorStmt, ClosePortalStmt, FetchStmt, IndexStmt, CreateStatsStmt, StatsElem, AlterStatsStmt, CreateFunctionStmt, FunctionParameter, AlterFunctionStmt, DoStmt, InlineCodeBlock, CallStmt, CallContext, RenameStmt, AlterObjectDependsStmt, AlterObjectSchemaStmt, AlterOwnerStmt, AlterOperatorStmt, AlterTypeStmt, RuleStmt, NotifyStmt, ListenStmt, UnlistenStmt, TransactionStmt, CompositeTypeStmt, CreateEnumStmt, CreateRangeStmt, AlterEnumStmt, ViewStmt, LoadStmt, CreatedbStmt, AlterDatabaseStmt, AlterDatabaseRefreshCollStmt, AlterDatabaseSetStmt, DropdbStmt, AlterSystemStmt, ClusterStmt, VacuumStmt, VacuumRelation, ExplainStmt, CreateTableAsStmt, RefreshMatViewStmt, CheckPointStmt, DiscardStmt, LockStmt, ConstraintsSetStmt, ReindexStmt, CreateConversionStmt, CreateCastStmt, CreateTransformStmt, PrepareStmt, ExecuteStmt, DeallocateStmt, DropOwnedStmt, ReassignOwnedStmt, AlterTSDictionaryStmt, AlterTSConfigurationStmt, PublicationTable, PublicationObjSpec, CreatePublicationStmt, AlterPublicationStmt, CreateSubscriptionStmt, AlterSubscriptionStmt, DropSubscriptionStmt, ScanToken } from "./types"; export default { - parseResult(_p?: ParseResult): ParseResult { + parseResult(_p?: ParseResult, isNode?: boolean): ParseResult | { + ParseResult: ParseResult; + } { const _j = {} as ParseResult; _o.set(_j, "version", _p?.version); _o.set(_j, "stmts", _p?.stmts); + if (isNode) { + return { + ParseResult: _j + }; + } return _j; }, - scanResult(_p?: ScanResult): ScanResult { + scanResult(_p?: ScanResult, isNode?: boolean): ScanResult | { + ScanResult: ScanResult; + } { const _j = {} as ScanResult; _o.set(_j, "version", _p?.version); _o.set(_j, "tokens", _p?.tokens); + if (isNode) { + return { + ScanResult: _j + }; + } return _j; }, - integer(_p?: Integer): Integer { + integer(_p?: Integer, isNode?: boolean): Integer | { + Integer: Integer; + } { const _j = {} as Integer; _o.set(_j, "ival", _p?.ival); + if (isNode) { + return { + Integer: _j + }; + } return _j; }, - float(_p?: Float): Float { + float(_p?: Float, isNode?: boolean): Float | { + Float: Float; + } { const _j = {} as Float; _o.set(_j, "fval", _p?.fval); + if (isNode) { + return { + Float: _j + }; + } return _j; }, - boolean(_p?: Boolean): Boolean { + boolean(_p?: Boolean, isNode?: boolean): Boolean | { + Boolean: Boolean; + } { const _j = {} as Boolean; _o.set(_j, "boolval", _p?.boolval); + if (isNode) { + return { + Boolean: _j + }; + } return _j; }, - string(_p?: String): String { + string(_p?: String, isNode?: boolean): String | { + String: String; + } { const _j = {} as String; _o.set(_j, "sval", _p?.sval); + if (isNode) { + return { + String: _j + }; + } return _j; }, - bitString(_p?: BitString): BitString { + bitString(_p?: BitString, isNode?: boolean): BitString | { + BitString: BitString; + } { const _j = {} as BitString; _o.set(_j, "bsval", _p?.bsval); + if (isNode) { + return { + BitString: _j + }; + } return _j; }, - list(_p?: List): List { + list(_p?: List, isNode?: boolean): List | { + List: List; + } { const _j = {} as List; _o.set(_j, "items", _p?.items); + if (isNode) { + return { + List: _j + }; + } return _j; }, - oidList(_p?: OidList): OidList { + oidList(_p?: OidList, isNode?: boolean): OidList | { + OidList: OidList; + } { const _j = {} as OidList; _o.set(_j, "items", _p?.items); + if (isNode) { + return { + OidList: _j + }; + } return _j; }, - intList(_p?: IntList): IntList { + intList(_p?: IntList, isNode?: boolean): IntList | { + IntList: IntList; + } { const _j = {} as IntList; _o.set(_j, "items", _p?.items); + if (isNode) { + return { + IntList: _j + }; + } return _j; }, - aConst(_p?: A_Const): A_Const { + aConst(_p?: A_Const, isNode?: boolean): A_Const | { + A_Const: A_Const; + } { const _j = {} as A_Const; _o.set(_j, "ival", _p?.ival); _o.set(_j, "fval", _p?.fval); @@ -4307,15 +4379,29 @@ export default { _o.set(_j, "bsval", _p?.bsval); _o.set(_j, "isnull", _p?.isnull); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + A_Const: _j + }; + } return _j; }, - alias(_p?: Alias): Alias { + alias(_p?: Alias, isNode?: boolean): Alias | { + Alias: Alias; + } { const _j = {} as Alias; _o.set(_j, "aliasname", _p?.aliasname); _o.set(_j, "colnames", _p?.colnames); + if (isNode) { + return { + Alias: _j + }; + } return _j; }, - rangeVar(_p?: RangeVar): RangeVar { + rangeVar(_p?: RangeVar, isNode?: boolean): RangeVar | { + RangeVar: RangeVar; + } { const _j = {} as RangeVar; _o.set(_j, "catalogname", _p?.catalogname); _o.set(_j, "schemaname", _p?.schemaname); @@ -4324,9 +4410,16 @@ export default { _o.set(_j, "relpersistence", _p?.relpersistence); _o.set(_j, "alias", _p?.alias); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RangeVar: _j + }; + } return _j; }, - tableFunc(_p?: TableFunc): TableFunc { + tableFunc(_p?: TableFunc, isNode?: boolean): TableFunc | { + TableFunc: TableFunc; + } { const _j = {} as TableFunc; _o.set(_j, "ns_uris", _p?.ns_uris); _o.set(_j, "ns_names", _p?.ns_names); @@ -4341,9 +4434,16 @@ export default { _o.set(_j, "notnulls", _p?.notnulls); _o.set(_j, "ordinalitycol", _p?.ordinalitycol); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + TableFunc: _j + }; + } return _j; }, - intoClause(_p?: IntoClause): IntoClause { + intoClause(_p?: IntoClause, isNode?: boolean): IntoClause | { + IntoClause: IntoClause; + } { const _j = {} as IntoClause; _o.set(_j, "rel", _p?.rel); _o.set(_j, "colNames", _p?.colNames); @@ -4353,9 +4453,16 @@ export default { _o.set(_j, "tableSpaceName", _p?.tableSpaceName); _o.set(_j, "viewQuery", _p?.viewQuery); _o.set(_j, "skipData", _p?.skipData); + if (isNode) { + return { + IntoClause: _j + }; + } return _j; }, - var(_p?: Var): Var { + var(_p?: Var, isNode?: boolean): Var | { + Var: Var; + } { const _j = {} as Var; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "varno", _p?.varno); @@ -4366,9 +4473,16 @@ export default { _o.set(_j, "varnullingrels", _p?.varnullingrels); _o.set(_j, "varlevelsup", _p?.varlevelsup); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + Var: _j + }; + } return _j; }, - param(_p?: Param): Param { + param(_p?: Param, isNode?: boolean): Param | { + Param: Param; + } { const _j = {} as Param; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "paramkind", _p?.paramkind); @@ -4377,9 +4491,16 @@ export default { _o.set(_j, "paramtypmod", _p?.paramtypmod); _o.set(_j, "paramcollid", _p?.paramcollid); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + Param: _j + }; + } return _j; }, - aggref(_p?: Aggref): Aggref { + aggref(_p?: Aggref, isNode?: boolean): Aggref | { + Aggref: Aggref; + } { const _j = {} as Aggref; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "aggfnoid", _p?.aggfnoid); @@ -4400,18 +4521,32 @@ export default { _o.set(_j, "aggno", _p?.aggno); _o.set(_j, "aggtransno", _p?.aggtransno); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + Aggref: _j + }; + } return _j; }, - groupingFunc(_p?: GroupingFunc): GroupingFunc { + groupingFunc(_p?: GroupingFunc, isNode?: boolean): GroupingFunc | { + GroupingFunc: GroupingFunc; + } { const _j = {} as GroupingFunc; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "args", _p?.args); _o.set(_j, "refs", _p?.refs); _o.set(_j, "agglevelsup", _p?.agglevelsup); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + GroupingFunc: _j + }; + } return _j; }, - windowFunc(_p?: WindowFunc): WindowFunc { + windowFunc(_p?: WindowFunc, isNode?: boolean): WindowFunc | { + WindowFunc: WindowFunc; + } { const _j = {} as WindowFunc; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "winfnoid", _p?.winfnoid); @@ -4424,9 +4559,16 @@ export default { _o.set(_j, "winstar", _p?.winstar); _o.set(_j, "winagg", _p?.winagg); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + WindowFunc: _j + }; + } return _j; }, - subscriptingRef(_p?: SubscriptingRef): SubscriptingRef { + subscriptingRef(_p?: SubscriptingRef, isNode?: boolean): SubscriptingRef | { + SubscriptingRef: SubscriptingRef; + } { const _j = {} as SubscriptingRef; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "refcontainertype", _p?.refcontainertype); @@ -4438,9 +4580,16 @@ export default { _o.set(_j, "reflowerindexpr", _p?.reflowerindexpr); _o.set(_j, "refexpr", _p?.refexpr); _o.set(_j, "refassgnexpr", _p?.refassgnexpr); + if (isNode) { + return { + SubscriptingRef: _j + }; + } return _j; }, - funcExpr(_p?: FuncExpr): FuncExpr { + funcExpr(_p?: FuncExpr, isNode?: boolean): FuncExpr | { + FuncExpr: FuncExpr; + } { const _j = {} as FuncExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "funcid", _p?.funcid); @@ -4452,18 +4601,32 @@ export default { _o.set(_j, "inputcollid", _p?.inputcollid); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + FuncExpr: _j + }; + } return _j; }, - namedArgExpr(_p?: NamedArgExpr): NamedArgExpr { + namedArgExpr(_p?: NamedArgExpr, isNode?: boolean): NamedArgExpr | { + NamedArgExpr: NamedArgExpr; + } { const _j = {} as NamedArgExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); _o.set(_j, "name", _p?.name); _o.set(_j, "argnumber", _p?.argnumber); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + NamedArgExpr: _j + }; + } return _j; }, - opExpr(_p?: OpExpr): OpExpr { + opExpr(_p?: OpExpr, isNode?: boolean): OpExpr | { + OpExpr: OpExpr; + } { const _j = {} as OpExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "opno", _p?.opno); @@ -4473,9 +4636,16 @@ export default { _o.set(_j, "inputcollid", _p?.inputcollid); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + OpExpr: _j + }; + } return _j; }, - distinctExpr(_p?: DistinctExpr): DistinctExpr { + distinctExpr(_p?: DistinctExpr, isNode?: boolean): DistinctExpr | { + DistinctExpr: DistinctExpr; + } { const _j = {} as DistinctExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "opno", _p?.opno); @@ -4485,9 +4655,16 @@ export default { _o.set(_j, "inputcollid", _p?.inputcollid); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + DistinctExpr: _j + }; + } return _j; }, - nullIfExpr(_p?: NullIfExpr): NullIfExpr { + nullIfExpr(_p?: NullIfExpr, isNode?: boolean): NullIfExpr | { + NullIfExpr: NullIfExpr; + } { const _j = {} as NullIfExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "opno", _p?.opno); @@ -4497,9 +4674,16 @@ export default { _o.set(_j, "inputcollid", _p?.inputcollid); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + NullIfExpr: _j + }; + } return _j; }, - scalarArrayOpExpr(_p?: ScalarArrayOpExpr): ScalarArrayOpExpr { + scalarArrayOpExpr(_p?: ScalarArrayOpExpr, isNode?: boolean): ScalarArrayOpExpr | { + ScalarArrayOpExpr: ScalarArrayOpExpr; + } { const _j = {} as ScalarArrayOpExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "opno", _p?.opno); @@ -4507,17 +4691,31 @@ export default { _o.set(_j, "inputcollid", _p?.inputcollid); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ScalarArrayOpExpr: _j + }; + } return _j; }, - boolExpr(_p?: BoolExpr): BoolExpr { + boolExpr(_p?: BoolExpr, isNode?: boolean): BoolExpr | { + BoolExpr: BoolExpr; + } { const _j = {} as BoolExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "boolop", _p?.boolop); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + BoolExpr: _j + }; + } return _j; }, - subLink(_p?: SubLink): SubLink { + subLink(_p?: SubLink, isNode?: boolean): SubLink | { + SubLink: SubLink; + } { const _j = {} as SubLink; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "subLinkType", _p?.subLinkType); @@ -4526,9 +4724,16 @@ export default { _o.set(_j, "operName", _p?.operName); _o.set(_j, "subselect", _p?.subselect); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + SubLink: _j + }; + } return _j; }, - subPlan(_p?: SubPlan): SubPlan { + subPlan(_p?: SubPlan, isNode?: boolean): SubPlan | { + SubPlan: SubPlan; + } { const _j = {} as SubPlan; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "subLinkType", _p?.subLinkType); @@ -4547,15 +4752,29 @@ export default { _o.set(_j, "args", _p?.args); _o.set(_j, "startup_cost", _p?.startup_cost); _o.set(_j, "per_call_cost", _p?.per_call_cost); + if (isNode) { + return { + SubPlan: _j + }; + } return _j; }, - alternativeSubPlan(_p?: AlternativeSubPlan): AlternativeSubPlan { + alternativeSubPlan(_p?: AlternativeSubPlan, isNode?: boolean): AlternativeSubPlan | { + AlternativeSubPlan: AlternativeSubPlan; + } { const _j = {} as AlternativeSubPlan; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "subplans", _p?.subplans); + if (isNode) { + return { + AlternativeSubPlan: _j + }; + } return _j; }, - fieldSelect(_p?: FieldSelect): FieldSelect { + fieldSelect(_p?: FieldSelect, isNode?: boolean): FieldSelect | { + FieldSelect: FieldSelect; + } { const _j = {} as FieldSelect; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); @@ -4563,18 +4782,32 @@ export default { _o.set(_j, "resulttype", _p?.resulttype); _o.set(_j, "resulttypmod", _p?.resulttypmod); _o.set(_j, "resultcollid", _p?.resultcollid); + if (isNode) { + return { + FieldSelect: _j + }; + } return _j; }, - fieldStore(_p?: FieldStore): FieldStore { + fieldStore(_p?: FieldStore, isNode?: boolean): FieldStore | { + FieldStore: FieldStore; + } { const _j = {} as FieldStore; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); _o.set(_j, "newvals", _p?.newvals); _o.set(_j, "fieldnums", _p?.fieldnums); _o.set(_j, "resulttype", _p?.resulttype); + if (isNode) { + return { + FieldStore: _j + }; + } return _j; }, - relabelType(_p?: RelabelType): RelabelType { + relabelType(_p?: RelabelType, isNode?: boolean): RelabelType | { + RelabelType: RelabelType; + } { const _j = {} as RelabelType; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); @@ -4583,9 +4816,16 @@ export default { _o.set(_j, "resultcollid", _p?.resultcollid); _o.set(_j, "relabelformat", _p?.relabelformat); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RelabelType: _j + }; + } return _j; }, - coerceViaio(_p?: CoerceViaIO): CoerceViaIO { + coerceViaio(_p?: CoerceViaIO, isNode?: boolean): CoerceViaIO | { + CoerceViaIO: CoerceViaIO; + } { const _j = {} as CoerceViaIO; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); @@ -4593,9 +4833,16 @@ export default { _o.set(_j, "resultcollid", _p?.resultcollid); _o.set(_j, "coerceformat", _p?.coerceformat); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CoerceViaIO: _j + }; + } return _j; }, - arrayCoerceExpr(_p?: ArrayCoerceExpr): ArrayCoerceExpr { + arrayCoerceExpr(_p?: ArrayCoerceExpr, isNode?: boolean): ArrayCoerceExpr | { + ArrayCoerceExpr: ArrayCoerceExpr; + } { const _j = {} as ArrayCoerceExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); @@ -4605,26 +4852,47 @@ export default { _o.set(_j, "resultcollid", _p?.resultcollid); _o.set(_j, "coerceformat", _p?.coerceformat); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ArrayCoerceExpr: _j + }; + } return _j; }, - convertRowtypeExpr(_p?: ConvertRowtypeExpr): ConvertRowtypeExpr { + convertRowtypeExpr(_p?: ConvertRowtypeExpr, isNode?: boolean): ConvertRowtypeExpr | { + ConvertRowtypeExpr: ConvertRowtypeExpr; + } { const _j = {} as ConvertRowtypeExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); _o.set(_j, "resulttype", _p?.resulttype); _o.set(_j, "convertformat", _p?.convertformat); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ConvertRowtypeExpr: _j + }; + } return _j; }, - collateExpr(_p?: CollateExpr): CollateExpr { + collateExpr(_p?: CollateExpr, isNode?: boolean): CollateExpr | { + CollateExpr: CollateExpr; + } { const _j = {} as CollateExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); _o.set(_j, "collOid", _p?.collOid); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CollateExpr: _j + }; + } return _j; }, - caseExpr(_p?: CaseExpr): CaseExpr { + caseExpr(_p?: CaseExpr, isNode?: boolean): CaseExpr | { + CaseExpr: CaseExpr; + } { const _j = {} as CaseExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "casetype", _p?.casetype); @@ -4633,25 +4901,46 @@ export default { _o.set(_j, "args", _p?.args); _o.set(_j, "defresult", _p?.defresult); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CaseExpr: _j + }; + } return _j; }, - caseWhen(_p?: CaseWhen): CaseWhen { + caseWhen(_p?: CaseWhen, isNode?: boolean): CaseWhen | { + CaseWhen: CaseWhen; + } { const _j = {} as CaseWhen; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "expr", _p?.expr); _o.set(_j, "result", _p?.result); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CaseWhen: _j + }; + } return _j; }, - caseTestExpr(_p?: CaseTestExpr): CaseTestExpr { + caseTestExpr(_p?: CaseTestExpr, isNode?: boolean): CaseTestExpr | { + CaseTestExpr: CaseTestExpr; + } { const _j = {} as CaseTestExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "typeId", _p?.typeId); _o.set(_j, "typeMod", _p?.typeMod); _o.set(_j, "collation", _p?.collation); + if (isNode) { + return { + CaseTestExpr: _j + }; + } return _j; }, - arrayExpr(_p?: ArrayExpr): ArrayExpr { + arrayExpr(_p?: ArrayExpr, isNode?: boolean): ArrayExpr | { + ArrayExpr: ArrayExpr; + } { const _j = {} as ArrayExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "array_typeid", _p?.array_typeid); @@ -4660,9 +4949,16 @@ export default { _o.set(_j, "elements", _p?.elements); _o.set(_j, "multidims", _p?.multidims); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ArrayExpr: _j + }; + } return _j; }, - rowExpr(_p?: RowExpr): RowExpr { + rowExpr(_p?: RowExpr, isNode?: boolean): RowExpr | { + RowExpr: RowExpr; + } { const _j = {} as RowExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "args", _p?.args); @@ -4670,9 +4966,16 @@ export default { _o.set(_j, "row_format", _p?.row_format); _o.set(_j, "colnames", _p?.colnames); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RowExpr: _j + }; + } return _j; }, - rowCompareExpr(_p?: RowCompareExpr): RowCompareExpr { + rowCompareExpr(_p?: RowCompareExpr, isNode?: boolean): RowCompareExpr | { + RowCompareExpr: RowCompareExpr; + } { const _j = {} as RowCompareExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "rctype", _p?.rctype); @@ -4681,18 +4984,32 @@ export default { _o.set(_j, "inputcollids", _p?.inputcollids); _o.set(_j, "largs", _p?.largs); _o.set(_j, "rargs", _p?.rargs); + if (isNode) { + return { + RowCompareExpr: _j + }; + } return _j; }, - coalesceExpr(_p?: CoalesceExpr): CoalesceExpr { + coalesceExpr(_p?: CoalesceExpr, isNode?: boolean): CoalesceExpr | { + CoalesceExpr: CoalesceExpr; + } { const _j = {} as CoalesceExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "coalescetype", _p?.coalescetype); _o.set(_j, "coalescecollid", _p?.coalescecollid); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CoalesceExpr: _j + }; + } return _j; }, - minMaxExpr(_p?: MinMaxExpr): MinMaxExpr { + minMaxExpr(_p?: MinMaxExpr, isNode?: boolean): MinMaxExpr | { + MinMaxExpr: MinMaxExpr; + } { const _j = {} as MinMaxExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "minmaxtype", _p?.minmaxtype); @@ -4701,18 +5018,32 @@ export default { _o.set(_j, "op", _p?.op); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + MinMaxExpr: _j + }; + } return _j; }, - sqlValueFunction(_p?: SQLValueFunction): SQLValueFunction { + sqlValueFunction(_p?: SQLValueFunction, isNode?: boolean): SQLValueFunction | { + SQLValueFunction: SQLValueFunction; + } { const _j = {} as SQLValueFunction; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "op", _p?.op); _o.set(_j, "type", _p?.type); _o.set(_j, "typmod", _p?.typmod); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + SQLValueFunction: _j + }; + } return _j; }, - xmlExpr(_p?: XmlExpr): XmlExpr { + xmlExpr(_p?: XmlExpr, isNode?: boolean): XmlExpr | { + XmlExpr: XmlExpr; + } { const _j = {} as XmlExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "op", _p?.op); @@ -4725,30 +5056,58 @@ export default { _o.set(_j, "type", _p?.type); _o.set(_j, "typmod", _p?.typmod); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + XmlExpr: _j + }; + } return _j; }, - jsonFormat(_p?: JsonFormat): JsonFormat { + jsonFormat(_p?: JsonFormat, isNode?: boolean): JsonFormat | { + JsonFormat: JsonFormat; + } { const _j = {} as JsonFormat; _o.set(_j, "format_type", _p?.format_type); _o.set(_j, "encoding", _p?.encoding); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonFormat: _j + }; + } return _j; }, - jsonReturning(_p?: JsonReturning): JsonReturning { + jsonReturning(_p?: JsonReturning, isNode?: boolean): JsonReturning | { + JsonReturning: JsonReturning; + } { const _j = {} as JsonReturning; _o.set(_j, "format", _p?.format); _o.set(_j, "typid", _p?.typid); _o.set(_j, "typmod", _p?.typmod); + if (isNode) { + return { + JsonReturning: _j + }; + } return _j; }, - jsonValueExpr(_p?: JsonValueExpr): JsonValueExpr { + jsonValueExpr(_p?: JsonValueExpr, isNode?: boolean): JsonValueExpr | { + JsonValueExpr: JsonValueExpr; + } { const _j = {} as JsonValueExpr; _o.set(_j, "raw_expr", _p?.raw_expr); _o.set(_j, "formatted_expr", _p?.formatted_expr); _o.set(_j, "format", _p?.format); + if (isNode) { + return { + JsonValueExpr: _j + }; + } return _j; }, - jsonConstructorExpr(_p?: JsonConstructorExpr): JsonConstructorExpr { + jsonConstructorExpr(_p?: JsonConstructorExpr, isNode?: boolean): JsonConstructorExpr | { + JsonConstructorExpr: JsonConstructorExpr; + } { const _j = {} as JsonConstructorExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "type", _p?.type); @@ -4759,35 +5118,63 @@ export default { _o.set(_j, "absent_on_null", _p?.absent_on_null); _o.set(_j, "unique", _p?.unique); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonConstructorExpr: _j + }; + } return _j; }, - jsonIsPredicate(_p?: JsonIsPredicate): JsonIsPredicate { + jsonIsPredicate(_p?: JsonIsPredicate, isNode?: boolean): JsonIsPredicate | { + JsonIsPredicate: JsonIsPredicate; + } { const _j = {} as JsonIsPredicate; _o.set(_j, "expr", _p?.expr); _o.set(_j, "format", _p?.format); _o.set(_j, "item_type", _p?.item_type); _o.set(_j, "unique_keys", _p?.unique_keys); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonIsPredicate: _j + }; + } return _j; }, - nullTest(_p?: NullTest): NullTest { + nullTest(_p?: NullTest, isNode?: boolean): NullTest | { + NullTest: NullTest; + } { const _j = {} as NullTest; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); _o.set(_j, "nulltesttype", _p?.nulltesttype); _o.set(_j, "argisrow", _p?.argisrow); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + NullTest: _j + }; + } return _j; }, - booleanTest(_p?: BooleanTest): BooleanTest { + booleanTest(_p?: BooleanTest, isNode?: boolean): BooleanTest | { + BooleanTest: BooleanTest; + } { const _j = {} as BooleanTest; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); _o.set(_j, "booltesttype", _p?.booltesttype); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + BooleanTest: _j + }; + } return _j; }, - coerceToDomain(_p?: CoerceToDomain): CoerceToDomain { + coerceToDomain(_p?: CoerceToDomain, isNode?: boolean): CoerceToDomain | { + CoerceToDomain: CoerceToDomain; + } { const _j = {} as CoerceToDomain; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); @@ -4796,50 +5183,92 @@ export default { _o.set(_j, "resultcollid", _p?.resultcollid); _o.set(_j, "coercionformat", _p?.coercionformat); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CoerceToDomain: _j + }; + } return _j; }, - coerceToDomainValue(_p?: CoerceToDomainValue): CoerceToDomainValue { + coerceToDomainValue(_p?: CoerceToDomainValue, isNode?: boolean): CoerceToDomainValue | { + CoerceToDomainValue: CoerceToDomainValue; + } { const _j = {} as CoerceToDomainValue; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "typeId", _p?.typeId); _o.set(_j, "typeMod", _p?.typeMod); _o.set(_j, "collation", _p?.collation); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CoerceToDomainValue: _j + }; + } return _j; }, - setToDefault(_p?: SetToDefault): SetToDefault { + setToDefault(_p?: SetToDefault, isNode?: boolean): SetToDefault | { + SetToDefault: SetToDefault; + } { const _j = {} as SetToDefault; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "typeId", _p?.typeId); _o.set(_j, "typeMod", _p?.typeMod); _o.set(_j, "collation", _p?.collation); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + SetToDefault: _j + }; + } return _j; }, - currentOfExpr(_p?: CurrentOfExpr): CurrentOfExpr { + currentOfExpr(_p?: CurrentOfExpr, isNode?: boolean): CurrentOfExpr | { + CurrentOfExpr: CurrentOfExpr; + } { const _j = {} as CurrentOfExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "cvarno", _p?.cvarno); _o.set(_j, "cursor_name", _p?.cursor_name); _o.set(_j, "cursor_param", _p?.cursor_param); + if (isNode) { + return { + CurrentOfExpr: _j + }; + } return _j; }, - nextValueExpr(_p?: NextValueExpr): NextValueExpr { + nextValueExpr(_p?: NextValueExpr, isNode?: boolean): NextValueExpr | { + NextValueExpr: NextValueExpr; + } { const _j = {} as NextValueExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "seqid", _p?.seqid); _o.set(_j, "typeId", _p?.typeId); + if (isNode) { + return { + NextValueExpr: _j + }; + } return _j; }, - inferenceElem(_p?: InferenceElem): InferenceElem { + inferenceElem(_p?: InferenceElem, isNode?: boolean): InferenceElem | { + InferenceElem: InferenceElem; + } { const _j = {} as InferenceElem; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "expr", _p?.expr); _o.set(_j, "infercollid", _p?.infercollid); _o.set(_j, "inferopclass", _p?.inferopclass); + if (isNode) { + return { + InferenceElem: _j + }; + } return _j; }, - targetEntry(_p?: TargetEntry): TargetEntry { + targetEntry(_p?: TargetEntry, isNode?: boolean): TargetEntry | { + TargetEntry: TargetEntry; + } { const _j = {} as TargetEntry; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "expr", _p?.expr); @@ -4849,14 +5278,28 @@ export default { _o.set(_j, "resorigtbl", _p?.resorigtbl); _o.set(_j, "resorigcol", _p?.resorigcol); _o.set(_j, "resjunk", _p?.resjunk); + if (isNode) { + return { + TargetEntry: _j + }; + } return _j; }, - rangeTblRef(_p?: RangeTblRef): RangeTblRef { + rangeTblRef(_p?: RangeTblRef, isNode?: boolean): RangeTblRef | { + RangeTblRef: RangeTblRef; + } { const _j = {} as RangeTblRef; _o.set(_j, "rtindex", _p?.rtindex); + if (isNode) { + return { + RangeTblRef: _j + }; + } return _j; }, - joinExpr(_p?: JoinExpr): JoinExpr { + joinExpr(_p?: JoinExpr, isNode?: boolean): JoinExpr | { + JoinExpr: JoinExpr; + } { const _j = {} as JoinExpr; _o.set(_j, "jointype", _p?.jointype); _o.set(_j, "isNatural", _p?.isNatural); @@ -4867,15 +5310,29 @@ export default { _o.set(_j, "quals", _p?.quals); _o.set(_j, "alias", _p?.alias); _o.set(_j, "rtindex", _p?.rtindex); + if (isNode) { + return { + JoinExpr: _j + }; + } return _j; }, - fromExpr(_p?: FromExpr): FromExpr { + fromExpr(_p?: FromExpr, isNode?: boolean): FromExpr | { + FromExpr: FromExpr; + } { const _j = {} as FromExpr; _o.set(_j, "fromlist", _p?.fromlist); _o.set(_j, "quals", _p?.quals); + if (isNode) { + return { + FromExpr: _j + }; + } return _j; }, - onConflictExpr(_p?: OnConflictExpr): OnConflictExpr { + onConflictExpr(_p?: OnConflictExpr, isNode?: boolean): OnConflictExpr | { + OnConflictExpr: OnConflictExpr; + } { const _j = {} as OnConflictExpr; _o.set(_j, "action", _p?.action); _o.set(_j, "arbiterElems", _p?.arbiterElems); @@ -4885,9 +5342,16 @@ export default { _o.set(_j, "onConflictWhere", _p?.onConflictWhere); _o.set(_j, "exclRelIndex", _p?.exclRelIndex); _o.set(_j, "exclRelTlist", _p?.exclRelTlist); + if (isNode) { + return { + OnConflictExpr: _j + }; + } return _j; }, - query(_p?: Query): Query { + query(_p?: Query, isNode?: boolean): Query | { + Query: Query; + } { const _j = {} as Query; _o.set(_j, "commandType", _p?.commandType); _o.set(_j, "querySource", _p?.querySource); @@ -4930,9 +5394,16 @@ export default { _o.set(_j, "withCheckOptions", _p?.withCheckOptions); _o.set(_j, "stmt_location", _p?.stmt_location); _o.set(_j, "stmt_len", _p?.stmt_len); + if (isNode) { + return { + Query: _j + }; + } return _j; }, - typeName(_p?: TypeName): TypeName { + typeName(_p?: TypeName, isNode?: boolean): TypeName | { + TypeName: TypeName; + } { const _j = {} as TypeName; _o.set(_j, "names", _p?.names); _o.set(_j, "typeOid", _p?.typeOid); @@ -4942,51 +5413,100 @@ export default { _o.set(_j, "typemod", _p?.typemod); _o.set(_j, "arrayBounds", _p?.arrayBounds); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + TypeName: _j + }; + } return _j; }, - columnRef(_p?: ColumnRef): ColumnRef { + columnRef(_p?: ColumnRef, isNode?: boolean): ColumnRef | { + ColumnRef: ColumnRef; + } { const _j = {} as ColumnRef; _o.set(_j, "fields", _p?.fields); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ColumnRef: _j + }; + } return _j; }, - paramRef(_p?: ParamRef): ParamRef { + paramRef(_p?: ParamRef, isNode?: boolean): ParamRef | { + ParamRef: ParamRef; + } { const _j = {} as ParamRef; _o.set(_j, "number", _p?.number); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ParamRef: _j + }; + } return _j; }, - aExpr(_p?: A_Expr): A_Expr { + aExpr(_p?: A_Expr, isNode?: boolean): A_Expr | { + A_Expr: A_Expr; + } { const _j = {} as A_Expr; _o.set(_j, "kind", _p?.kind); _o.set(_j, "name", _p?.name); _o.set(_j, "lexpr", _p?.lexpr); _o.set(_j, "rexpr", _p?.rexpr); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + A_Expr: _j + }; + } return _j; }, - typeCast(_p?: TypeCast): TypeCast { + typeCast(_p?: TypeCast, isNode?: boolean): TypeCast | { + TypeCast: TypeCast; + } { const _j = {} as TypeCast; _o.set(_j, "arg", _p?.arg); _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + TypeCast: _j + }; + } return _j; }, - collateClause(_p?: CollateClause): CollateClause { + collateClause(_p?: CollateClause, isNode?: boolean): CollateClause | { + CollateClause: CollateClause; + } { const _j = {} as CollateClause; _o.set(_j, "arg", _p?.arg); _o.set(_j, "collname", _p?.collname); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CollateClause: _j + }; + } return _j; }, - roleSpec(_p?: RoleSpec): RoleSpec { + roleSpec(_p?: RoleSpec, isNode?: boolean): RoleSpec | { + RoleSpec: RoleSpec; + } { const _j = {} as RoleSpec; _o.set(_j, "roletype", _p?.roletype); _o.set(_j, "rolename", _p?.rolename); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RoleSpec: _j + }; + } return _j; }, - funcCall(_p?: FuncCall): FuncCall { + funcCall(_p?: FuncCall, isNode?: boolean): FuncCall | { + FuncCall: FuncCall; + } { const _j = {} as FuncCall; _o.set(_j, "funcname", _p?.funcname); _o.set(_j, "args", _p?.args); @@ -4999,56 +5519,112 @@ export default { _o.set(_j, "func_variadic", _p?.func_variadic); _o.set(_j, "funcformat", _p?.funcformat); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + FuncCall: _j + }; + } return _j; }, - aStar(_p?: A_Star): A_Star { + aStar(_p?: A_Star, isNode?: boolean): A_Star | { + A_Star: A_Star; + } { const _j = {} as A_Star; + if (isNode) { + return { + A_Star: _j + }; + } return _j; }, - aIndices(_p?: A_Indices): A_Indices { + aIndices(_p?: A_Indices, isNode?: boolean): A_Indices | { + A_Indices: A_Indices; + } { const _j = {} as A_Indices; _o.set(_j, "is_slice", _p?.is_slice); _o.set(_j, "lidx", _p?.lidx); _o.set(_j, "uidx", _p?.uidx); + if (isNode) { + return { + A_Indices: _j + }; + } return _j; }, - aIndirection(_p?: A_Indirection): A_Indirection { + aIndirection(_p?: A_Indirection, isNode?: boolean): A_Indirection | { + A_Indirection: A_Indirection; + } { const _j = {} as A_Indirection; _o.set(_j, "arg", _p?.arg); _o.set(_j, "indirection", _p?.indirection); + if (isNode) { + return { + A_Indirection: _j + }; + } return _j; }, - aArrayExpr(_p?: A_ArrayExpr): A_ArrayExpr { + aArrayExpr(_p?: A_ArrayExpr, isNode?: boolean): A_ArrayExpr | { + A_ArrayExpr: A_ArrayExpr; + } { const _j = {} as A_ArrayExpr; _o.set(_j, "elements", _p?.elements); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + A_ArrayExpr: _j + }; + } return _j; }, - resTarget(_p?: ResTarget): ResTarget { + resTarget(_p?: ResTarget, isNode?: boolean): ResTarget | { + ResTarget: ResTarget; + } { const _j = {} as ResTarget; _o.set(_j, "name", _p?.name); _o.set(_j, "indirection", _p?.indirection); _o.set(_j, "val", _p?.val); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ResTarget: _j + }; + } return _j; }, - multiAssignRef(_p?: MultiAssignRef): MultiAssignRef { + multiAssignRef(_p?: MultiAssignRef, isNode?: boolean): MultiAssignRef | { + MultiAssignRef: MultiAssignRef; + } { const _j = {} as MultiAssignRef; _o.set(_j, "source", _p?.source); _o.set(_j, "colno", _p?.colno); _o.set(_j, "ncolumns", _p?.ncolumns); + if (isNode) { + return { + MultiAssignRef: _j + }; + } return _j; }, - sortBy(_p?: SortBy): SortBy { + sortBy(_p?: SortBy, isNode?: boolean): SortBy | { + SortBy: SortBy; + } { const _j = {} as SortBy; _o.set(_j, "node", _p?.node); _o.set(_j, "sortby_dir", _p?.sortby_dir); _o.set(_j, "sortby_nulls", _p?.sortby_nulls); _o.set(_j, "useOp", _p?.useOp); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + SortBy: _j + }; + } return _j; }, - windowDef(_p?: WindowDef): WindowDef { + windowDef(_p?: WindowDef, isNode?: boolean): WindowDef | { + WindowDef: WindowDef; + } { const _j = {} as WindowDef; _o.set(_j, "name", _p?.name); _o.set(_j, "refname", _p?.refname); @@ -5058,16 +5634,30 @@ export default { _o.set(_j, "startOffset", _p?.startOffset); _o.set(_j, "endOffset", _p?.endOffset); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + WindowDef: _j + }; + } return _j; }, - rangeSubselect(_p?: RangeSubselect): RangeSubselect { + rangeSubselect(_p?: RangeSubselect, isNode?: boolean): RangeSubselect | { + RangeSubselect: RangeSubselect; + } { const _j = {} as RangeSubselect; _o.set(_j, "lateral", _p?.lateral); _o.set(_j, "subquery", _p?.subquery); _o.set(_j, "alias", _p?.alias); + if (isNode) { + return { + RangeSubselect: _j + }; + } return _j; }, - rangeFunction(_p?: RangeFunction): RangeFunction { + rangeFunction(_p?: RangeFunction, isNode?: boolean): RangeFunction | { + RangeFunction: RangeFunction; + } { const _j = {} as RangeFunction; _o.set(_j, "lateral", _p?.lateral); _o.set(_j, "ordinality", _p?.ordinality); @@ -5075,9 +5665,16 @@ export default { _o.set(_j, "functions", _p?.functions); _o.set(_j, "alias", _p?.alias); _o.set(_j, "coldeflist", _p?.coldeflist); + if (isNode) { + return { + RangeFunction: _j + }; + } return _j; }, - rangeTableFunc(_p?: RangeTableFunc): RangeTableFunc { + rangeTableFunc(_p?: RangeTableFunc, isNode?: boolean): RangeTableFunc | { + RangeTableFunc: RangeTableFunc; + } { const _j = {} as RangeTableFunc; _o.set(_j, "lateral", _p?.lateral); _o.set(_j, "docexpr", _p?.docexpr); @@ -5086,9 +5683,16 @@ export default { _o.set(_j, "columns", _p?.columns); _o.set(_j, "alias", _p?.alias); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RangeTableFunc: _j + }; + } return _j; }, - rangeTableFuncCol(_p?: RangeTableFuncCol): RangeTableFuncCol { + rangeTableFuncCol(_p?: RangeTableFuncCol, isNode?: boolean): RangeTableFuncCol | { + RangeTableFuncCol: RangeTableFuncCol; + } { const _j = {} as RangeTableFuncCol; _o.set(_j, "colname", _p?.colname); _o.set(_j, "typeName", _p?.typeName); @@ -5097,18 +5701,32 @@ export default { _o.set(_j, "colexpr", _p?.colexpr); _o.set(_j, "coldefexpr", _p?.coldefexpr); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RangeTableFuncCol: _j + }; + } return _j; }, - rangeTableSample(_p?: RangeTableSample): RangeTableSample { + rangeTableSample(_p?: RangeTableSample, isNode?: boolean): RangeTableSample | { + RangeTableSample: RangeTableSample; + } { const _j = {} as RangeTableSample; _o.set(_j, "relation", _p?.relation); _o.set(_j, "method", _p?.method); _o.set(_j, "args", _p?.args); _o.set(_j, "repeatable", _p?.repeatable); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RangeTableSample: _j + }; + } return _j; }, - columnDef(_p?: ColumnDef): ColumnDef { + columnDef(_p?: ColumnDef, isNode?: boolean): ColumnDef | { + ColumnDef: ColumnDef; + } { const _j = {} as ColumnDef; _o.set(_j, "colname", _p?.colname); _o.set(_j, "typeName", _p?.typeName); @@ -5129,16 +5747,30 @@ export default { _o.set(_j, "constraints", _p?.constraints); _o.set(_j, "fdwoptions", _p?.fdwoptions); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ColumnDef: _j + }; + } return _j; }, - tableLikeClause(_p?: TableLikeClause): TableLikeClause { + tableLikeClause(_p?: TableLikeClause, isNode?: boolean): TableLikeClause | { + TableLikeClause: TableLikeClause; + } { const _j = {} as TableLikeClause; _o.set(_j, "relation", _p?.relation); _o.set(_j, "options", _p?.options); _o.set(_j, "relationOid", _p?.relationOid); + if (isNode) { + return { + TableLikeClause: _j + }; + } return _j; }, - indexElem(_p?: IndexElem): IndexElem { + indexElem(_p?: IndexElem, isNode?: boolean): IndexElem | { + IndexElem: IndexElem; + } { const _j = {} as IndexElem; _o.set(_j, "name", _p?.name); _o.set(_j, "expr", _p?.expr); @@ -5148,50 +5780,92 @@ export default { _o.set(_j, "opclassopts", _p?.opclassopts); _o.set(_j, "ordering", _p?.ordering); _o.set(_j, "nulls_ordering", _p?.nulls_ordering); + if (isNode) { + return { + IndexElem: _j + }; + } return _j; }, - defElem(_p?: DefElem): DefElem { + defElem(_p?: DefElem, isNode?: boolean): DefElem | { + DefElem: DefElem; + } { const _j = {} as DefElem; _o.set(_j, "defnamespace", _p?.defnamespace); _o.set(_j, "defname", _p?.defname); _o.set(_j, "arg", _p?.arg); _o.set(_j, "defaction", _p?.defaction); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + DefElem: _j + }; + } return _j; }, - lockingClause(_p?: LockingClause): LockingClause { + lockingClause(_p?: LockingClause, isNode?: boolean): LockingClause | { + LockingClause: LockingClause; + } { const _j = {} as LockingClause; _o.set(_j, "lockedRels", _p?.lockedRels); _o.set(_j, "strength", _p?.strength); _o.set(_j, "waitPolicy", _p?.waitPolicy); + if (isNode) { + return { + LockingClause: _j + }; + } return _j; }, - xmlSerialize(_p?: XmlSerialize): XmlSerialize { + xmlSerialize(_p?: XmlSerialize, isNode?: boolean): XmlSerialize | { + XmlSerialize: XmlSerialize; + } { const _j = {} as XmlSerialize; _o.set(_j, "xmloption", _p?.xmloption); _o.set(_j, "expr", _p?.expr); _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "indent", _p?.indent); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + XmlSerialize: _j + }; + } return _j; }, - partitionElem(_p?: PartitionElem): PartitionElem { + partitionElem(_p?: PartitionElem, isNode?: boolean): PartitionElem | { + PartitionElem: PartitionElem; + } { const _j = {} as PartitionElem; _o.set(_j, "name", _p?.name); _o.set(_j, "expr", _p?.expr); _o.set(_j, "collation", _p?.collation); _o.set(_j, "opclass", _p?.opclass); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + PartitionElem: _j + }; + } return _j; }, - partitionSpec(_p?: PartitionSpec): PartitionSpec { + partitionSpec(_p?: PartitionSpec, isNode?: boolean): PartitionSpec | { + PartitionSpec: PartitionSpec; + } { const _j = {} as PartitionSpec; _o.set(_j, "strategy", _p?.strategy); _o.set(_j, "partParams", _p?.partParams); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + PartitionSpec: _j + }; + } return _j; }, - partitionBoundSpec(_p?: PartitionBoundSpec): PartitionBoundSpec { + partitionBoundSpec(_p?: PartitionBoundSpec, isNode?: boolean): PartitionBoundSpec | { + PartitionBoundSpec: PartitionBoundSpec; + } { const _j = {} as PartitionBoundSpec; _o.set(_j, "strategy", _p?.strategy); _o.set(_j, "is_default", _p?.is_default); @@ -5201,23 +5875,44 @@ export default { _o.set(_j, "lowerdatums", _p?.lowerdatums); _o.set(_j, "upperdatums", _p?.upperdatums); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + PartitionBoundSpec: _j + }; + } return _j; }, - partitionRangeDatum(_p?: PartitionRangeDatum): PartitionRangeDatum { + partitionRangeDatum(_p?: PartitionRangeDatum, isNode?: boolean): PartitionRangeDatum | { + PartitionRangeDatum: PartitionRangeDatum; + } { const _j = {} as PartitionRangeDatum; _o.set(_j, "kind", _p?.kind); _o.set(_j, "value", _p?.value); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + PartitionRangeDatum: _j + }; + } return _j; }, - partitionCmd(_p?: PartitionCmd): PartitionCmd { + partitionCmd(_p?: PartitionCmd, isNode?: boolean): PartitionCmd | { + PartitionCmd: PartitionCmd; + } { const _j = {} as PartitionCmd; _o.set(_j, "name", _p?.name); _o.set(_j, "bound", _p?.bound); _o.set(_j, "concurrent", _p?.concurrent); + if (isNode) { + return { + PartitionCmd: _j + }; + } return _j; }, - rangeTblEntry(_p?: RangeTblEntry): RangeTblEntry { + rangeTblEntry(_p?: RangeTblEntry, isNode?: boolean): RangeTblEntry | { + RangeTblEntry: RangeTblEntry; + } { const _j = {} as RangeTblEntry; _o.set(_j, "rtekind", _p?.rtekind); _o.set(_j, "relid", _p?.relid); @@ -5251,9 +5946,16 @@ export default { _o.set(_j, "inh", _p?.inh); _o.set(_j, "inFromCl", _p?.inFromCl); _o.set(_j, "securityQuals", _p?.securityQuals); + if (isNode) { + return { + RangeTblEntry: _j + }; + } return _j; }, - rtePermissionInfo(_p?: RTEPermissionInfo): RTEPermissionInfo { + rtePermissionInfo(_p?: RTEPermissionInfo, isNode?: boolean): RTEPermissionInfo | { + RTEPermissionInfo: RTEPermissionInfo; + } { const _j = {} as RTEPermissionInfo; _o.set(_j, "relid", _p?.relid); _o.set(_j, "inh", _p?.inh); @@ -5262,9 +5964,16 @@ export default { _o.set(_j, "selectedCols", _p?.selectedCols); _o.set(_j, "insertedCols", _p?.insertedCols); _o.set(_j, "updatedCols", _p?.updatedCols); + if (isNode) { + return { + RTEPermissionInfo: _j + }; + } return _j; }, - rangeTblFunction(_p?: RangeTblFunction): RangeTblFunction { + rangeTblFunction(_p?: RangeTblFunction, isNode?: boolean): RangeTblFunction | { + RangeTblFunction: RangeTblFunction; + } { const _j = {} as RangeTblFunction; _o.set(_j, "funcexpr", _p?.funcexpr); _o.set(_j, "funccolcount", _p?.funccolcount); @@ -5273,41 +5982,76 @@ export default { _o.set(_j, "funccoltypmods", _p?.funccoltypmods); _o.set(_j, "funccolcollations", _p?.funccolcollations); _o.set(_j, "funcparams", _p?.funcparams); + if (isNode) { + return { + RangeTblFunction: _j + }; + } return _j; }, - tableSampleClause(_p?: TableSampleClause): TableSampleClause { + tableSampleClause(_p?: TableSampleClause, isNode?: boolean): TableSampleClause | { + TableSampleClause: TableSampleClause; + } { const _j = {} as TableSampleClause; _o.set(_j, "tsmhandler", _p?.tsmhandler); _o.set(_j, "args", _p?.args); _o.set(_j, "repeatable", _p?.repeatable); + if (isNode) { + return { + TableSampleClause: _j + }; + } return _j; }, - withCheckOption(_p?: WithCheckOption): WithCheckOption { + withCheckOption(_p?: WithCheckOption, isNode?: boolean): WithCheckOption | { + WithCheckOption: WithCheckOption; + } { const _j = {} as WithCheckOption; _o.set(_j, "kind", _p?.kind); _o.set(_j, "relname", _p?.relname); _o.set(_j, "polname", _p?.polname); _o.set(_j, "qual", _p?.qual); _o.set(_j, "cascaded", _p?.cascaded); + if (isNode) { + return { + WithCheckOption: _j + }; + } return _j; }, - sortGroupClause(_p?: SortGroupClause): SortGroupClause { + sortGroupClause(_p?: SortGroupClause, isNode?: boolean): SortGroupClause | { + SortGroupClause: SortGroupClause; + } { const _j = {} as SortGroupClause; _o.set(_j, "tleSortGroupRef", _p?.tleSortGroupRef); _o.set(_j, "eqop", _p?.eqop); _o.set(_j, "sortop", _p?.sortop); _o.set(_j, "nulls_first", _p?.nulls_first); _o.set(_j, "hashable", _p?.hashable); + if (isNode) { + return { + SortGroupClause: _j + }; + } return _j; }, - groupingSet(_p?: GroupingSet): GroupingSet { + groupingSet(_p?: GroupingSet, isNode?: boolean): GroupingSet | { + GroupingSet: GroupingSet; + } { const _j = {} as GroupingSet; _o.set(_j, "kind", _p?.kind); _o.set(_j, "content", _p?.content); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + GroupingSet: _j + }; + } return _j; }, - windowClause(_p?: WindowClause): WindowClause { + windowClause(_p?: WindowClause, isNode?: boolean): WindowClause | { + WindowClause: WindowClause; + } { const _j = {} as WindowClause; _o.set(_j, "name", _p?.name); _o.set(_j, "refname", _p?.refname); @@ -5324,49 +6068,91 @@ export default { _o.set(_j, "inRangeNullsFirst", _p?.inRangeNullsFirst); _o.set(_j, "winref", _p?.winref); _o.set(_j, "copiedOrder", _p?.copiedOrder); + if (isNode) { + return { + WindowClause: _j + }; + } return _j; }, - rowMarkClause(_p?: RowMarkClause): RowMarkClause { + rowMarkClause(_p?: RowMarkClause, isNode?: boolean): RowMarkClause | { + RowMarkClause: RowMarkClause; + } { const _j = {} as RowMarkClause; _o.set(_j, "rti", _p?.rti); _o.set(_j, "strength", _p?.strength); _o.set(_j, "waitPolicy", _p?.waitPolicy); _o.set(_j, "pushedDown", _p?.pushedDown); + if (isNode) { + return { + RowMarkClause: _j + }; + } return _j; }, - withClause(_p?: WithClause): WithClause { + withClause(_p?: WithClause, isNode?: boolean): WithClause | { + WithClause: WithClause; + } { const _j = {} as WithClause; _o.set(_j, "ctes", _p?.ctes); _o.set(_j, "recursive", _p?.recursive); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + WithClause: _j + }; + } return _j; }, - inferClause(_p?: InferClause): InferClause { + inferClause(_p?: InferClause, isNode?: boolean): InferClause | { + InferClause: InferClause; + } { const _j = {} as InferClause; _o.set(_j, "indexElems", _p?.indexElems); _o.set(_j, "whereClause", _p?.whereClause); _o.set(_j, "conname", _p?.conname); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + InferClause: _j + }; + } return _j; }, - onConflictClause(_p?: OnConflictClause): OnConflictClause { + onConflictClause(_p?: OnConflictClause, isNode?: boolean): OnConflictClause | { + OnConflictClause: OnConflictClause; + } { const _j = {} as OnConflictClause; _o.set(_j, "action", _p?.action); _o.set(_j, "infer", _p?.infer); _o.set(_j, "targetList", _p?.targetList); _o.set(_j, "whereClause", _p?.whereClause); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + OnConflictClause: _j + }; + } return _j; }, - cteSearchClause(_p?: CTESearchClause): CTESearchClause { + cteSearchClause(_p?: CTESearchClause, isNode?: boolean): CTESearchClause | { + CTESearchClause: CTESearchClause; + } { const _j = {} as CTESearchClause; _o.set(_j, "search_col_list", _p?.search_col_list); _o.set(_j, "search_breadth_first", _p?.search_breadth_first); _o.set(_j, "search_seq_column", _p?.search_seq_column); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CTESearchClause: _j + }; + } return _j; }, - cteCycleClause(_p?: CTECycleClause): CTECycleClause { + cteCycleClause(_p?: CTECycleClause, isNode?: boolean): CTECycleClause | { + CTECycleClause: CTECycleClause; + } { const _j = {} as CTECycleClause; _o.set(_j, "cycle_col_list", _p?.cycle_col_list); _o.set(_j, "cycle_mark_column", _p?.cycle_mark_column); @@ -5378,9 +6164,16 @@ export default { _o.set(_j, "cycle_mark_typmod", _p?.cycle_mark_typmod); _o.set(_j, "cycle_mark_collation", _p?.cycle_mark_collation); _o.set(_j, "cycle_mark_neop", _p?.cycle_mark_neop); + if (isNode) { + return { + CTECycleClause: _j + }; + } return _j; }, - commonTableExpr(_p?: CommonTableExpr): CommonTableExpr { + commonTableExpr(_p?: CommonTableExpr, isNode?: boolean): CommonTableExpr | { + CommonTableExpr: CommonTableExpr; + } { const _j = {} as CommonTableExpr; _o.set(_j, "ctename", _p?.ctename); _o.set(_j, "aliascolnames", _p?.aliascolnames); @@ -5395,9 +6188,16 @@ export default { _o.set(_j, "ctecoltypes", _p?.ctecoltypes); _o.set(_j, "ctecoltypmods", _p?.ctecoltypmods); _o.set(_j, "ctecolcollations", _p?.ctecolcollations); + if (isNode) { + return { + CommonTableExpr: _j + }; + } return _j; }, - mergeWhenClause(_p?: MergeWhenClause): MergeWhenClause { + mergeWhenClause(_p?: MergeWhenClause, isNode?: boolean): MergeWhenClause | { + MergeWhenClause: MergeWhenClause; + } { const _j = {} as MergeWhenClause; _o.set(_j, "matched", _p?.matched); _o.set(_j, "commandType", _p?.commandType); @@ -5405,9 +6205,16 @@ export default { _o.set(_j, "condition", _p?.condition); _o.set(_j, "targetList", _p?.targetList); _o.set(_j, "values", _p?.values); + if (isNode) { + return { + MergeWhenClause: _j + }; + } return _j; }, - mergeAction(_p?: MergeAction): MergeAction { + mergeAction(_p?: MergeAction, isNode?: boolean): MergeAction | { + MergeAction: MergeAction; + } { const _j = {} as MergeAction; _o.set(_j, "matched", _p?.matched); _o.set(_j, "commandType", _p?.commandType); @@ -5415,85 +6222,162 @@ export default { _o.set(_j, "qual", _p?.qual); _o.set(_j, "targetList", _p?.targetList); _o.set(_j, "updateColnos", _p?.updateColnos); + if (isNode) { + return { + MergeAction: _j + }; + } return _j; }, - triggerTransition(_p?: TriggerTransition): TriggerTransition { + triggerTransition(_p?: TriggerTransition, isNode?: boolean): TriggerTransition | { + TriggerTransition: TriggerTransition; + } { const _j = {} as TriggerTransition; _o.set(_j, "name", _p?.name); _o.set(_j, "isNew", _p?.isNew); _o.set(_j, "isTable", _p?.isTable); + if (isNode) { + return { + TriggerTransition: _j + }; + } return _j; }, - jsonOutput(_p?: JsonOutput): JsonOutput { + jsonOutput(_p?: JsonOutput, isNode?: boolean): JsonOutput | { + JsonOutput: JsonOutput; + } { const _j = {} as JsonOutput; _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "returning", _p?.returning); + if (isNode) { + return { + JsonOutput: _j + }; + } return _j; }, - jsonKeyValue(_p?: JsonKeyValue): JsonKeyValue { + jsonKeyValue(_p?: JsonKeyValue, isNode?: boolean): JsonKeyValue | { + JsonKeyValue: JsonKeyValue; + } { const _j = {} as JsonKeyValue; _o.set(_j, "key", _p?.key); _o.set(_j, "value", _p?.value); + if (isNode) { + return { + JsonKeyValue: _j + }; + } return _j; }, - jsonObjectConstructor(_p?: JsonObjectConstructor): JsonObjectConstructor { + jsonObjectConstructor(_p?: JsonObjectConstructor, isNode?: boolean): JsonObjectConstructor | { + JsonObjectConstructor: JsonObjectConstructor; + } { const _j = {} as JsonObjectConstructor; _o.set(_j, "exprs", _p?.exprs); _o.set(_j, "output", _p?.output); _o.set(_j, "absent_on_null", _p?.absent_on_null); _o.set(_j, "unique", _p?.unique); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonObjectConstructor: _j + }; + } return _j; }, - jsonArrayConstructor(_p?: JsonArrayConstructor): JsonArrayConstructor { + jsonArrayConstructor(_p?: JsonArrayConstructor, isNode?: boolean): JsonArrayConstructor | { + JsonArrayConstructor: JsonArrayConstructor; + } { const _j = {} as JsonArrayConstructor; _o.set(_j, "exprs", _p?.exprs); _o.set(_j, "output", _p?.output); _o.set(_j, "absent_on_null", _p?.absent_on_null); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonArrayConstructor: _j + }; + } return _j; }, - jsonArrayQueryConstructor(_p?: JsonArrayQueryConstructor): JsonArrayQueryConstructor { + jsonArrayQueryConstructor(_p?: JsonArrayQueryConstructor, isNode?: boolean): JsonArrayQueryConstructor | { + JsonArrayQueryConstructor: JsonArrayQueryConstructor; + } { const _j = {} as JsonArrayQueryConstructor; _o.set(_j, "query", _p?.query); _o.set(_j, "output", _p?.output); _o.set(_j, "format", _p?.format); _o.set(_j, "absent_on_null", _p?.absent_on_null); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonArrayQueryConstructor: _j + }; + } return _j; }, - jsonAggConstructor(_p?: JsonAggConstructor): JsonAggConstructor { + jsonAggConstructor(_p?: JsonAggConstructor, isNode?: boolean): JsonAggConstructor | { + JsonAggConstructor: JsonAggConstructor; + } { const _j = {} as JsonAggConstructor; _o.set(_j, "output", _p?.output); _o.set(_j, "agg_filter", _p?.agg_filter); _o.set(_j, "agg_order", _p?.agg_order); _o.set(_j, "over", _p?.over); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonAggConstructor: _j + }; + } return _j; }, - jsonObjectAgg(_p?: JsonObjectAgg): JsonObjectAgg { + jsonObjectAgg(_p?: JsonObjectAgg, isNode?: boolean): JsonObjectAgg | { + JsonObjectAgg: JsonObjectAgg; + } { const _j = {} as JsonObjectAgg; _o.set(_j, "constructor", _p?.constructor); _o.set(_j, "arg", _p?.arg); _o.set(_j, "absent_on_null", _p?.absent_on_null); _o.set(_j, "unique", _p?.unique); + if (isNode) { + return { + JsonObjectAgg: _j + }; + } return _j; }, - jsonArrayAgg(_p?: JsonArrayAgg): JsonArrayAgg { + jsonArrayAgg(_p?: JsonArrayAgg, isNode?: boolean): JsonArrayAgg | { + JsonArrayAgg: JsonArrayAgg; + } { const _j = {} as JsonArrayAgg; _o.set(_j, "constructor", _p?.constructor); _o.set(_j, "arg", _p?.arg); _o.set(_j, "absent_on_null", _p?.absent_on_null); + if (isNode) { + return { + JsonArrayAgg: _j + }; + } return _j; }, - rawStmt(_p?: RawStmt): RawStmt { + rawStmt(_p?: RawStmt, isNode?: boolean): RawStmt | { + RawStmt: RawStmt; + } { const _j = {} as RawStmt; _o.set(_j, "stmt", _p?.stmt); _o.set(_j, "stmt_location", _p?.stmt_location); _o.set(_j, "stmt_len", _p?.stmt_len); + if (isNode) { + return { + RawStmt: _j + }; + } return _j; }, - insertStmt(_p?: InsertStmt): InsertStmt { + insertStmt(_p?: InsertStmt, isNode?: boolean): InsertStmt | { + InsertStmt: InsertStmt; + } { const _j = {} as InsertStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "cols", _p?.cols); @@ -5502,18 +6386,32 @@ export default { _o.set(_j, "returningList", _p?.returningList); _o.set(_j, "withClause", _p?.withClause); _o.set(_j, "override", _p?.override); + if (isNode) { + return { + InsertStmt: _j + }; + } return _j; }, - deleteStmt(_p?: DeleteStmt): DeleteStmt { + deleteStmt(_p?: DeleteStmt, isNode?: boolean): DeleteStmt | { + DeleteStmt: DeleteStmt; + } { const _j = {} as DeleteStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "usingClause", _p?.usingClause); _o.set(_j, "whereClause", _p?.whereClause); _o.set(_j, "returningList", _p?.returningList); _o.set(_j, "withClause", _p?.withClause); + if (isNode) { + return { + DeleteStmt: _j + }; + } return _j; }, - updateStmt(_p?: UpdateStmt): UpdateStmt { + updateStmt(_p?: UpdateStmt, isNode?: boolean): UpdateStmt | { + UpdateStmt: UpdateStmt; + } { const _j = {} as UpdateStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "targetList", _p?.targetList); @@ -5521,18 +6419,32 @@ export default { _o.set(_j, "fromClause", _p?.fromClause); _o.set(_j, "returningList", _p?.returningList); _o.set(_j, "withClause", _p?.withClause); + if (isNode) { + return { + UpdateStmt: _j + }; + } return _j; }, - mergeStmt(_p?: MergeStmt): MergeStmt { + mergeStmt(_p?: MergeStmt, isNode?: boolean): MergeStmt | { + MergeStmt: MergeStmt; + } { const _j = {} as MergeStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "sourceRelation", _p?.sourceRelation); _o.set(_j, "joinCondition", _p?.joinCondition); _o.set(_j, "mergeWhenClauses", _p?.mergeWhenClauses); _o.set(_j, "withClause", _p?.withClause); + if (isNode) { + return { + MergeStmt: _j + }; + } return _j; }, - selectStmt(_p?: SelectStmt): SelectStmt { + selectStmt(_p?: SelectStmt, isNode?: boolean): SelectStmt | { + SelectStmt: SelectStmt; + } { const _j = {} as SelectStmt; _o.set(_j, "distinctClause", _p?.distinctClause); _o.set(_j, "intoClause", _p?.intoClause); @@ -5554,9 +6466,16 @@ export default { _o.set(_j, "all", _p?.all); _o.set(_j, "larg", _p?.larg); _o.set(_j, "rarg", _p?.rarg); + if (isNode) { + return { + SelectStmt: _j + }; + } return _j; }, - setOperationStmt(_p?: SetOperationStmt): SetOperationStmt { + setOperationStmt(_p?: SetOperationStmt, isNode?: boolean): SetOperationStmt | { + SetOperationStmt: SetOperationStmt; + } { const _j = {} as SetOperationStmt; _o.set(_j, "op", _p?.op); _o.set(_j, "all", _p?.all); @@ -5566,45 +6485,87 @@ export default { _o.set(_j, "colTypmods", _p?.colTypmods); _o.set(_j, "colCollations", _p?.colCollations); _o.set(_j, "groupClauses", _p?.groupClauses); + if (isNode) { + return { + SetOperationStmt: _j + }; + } return _j; }, - returnStmt(_p?: ReturnStmt): ReturnStmt { + returnStmt(_p?: ReturnStmt, isNode?: boolean): ReturnStmt | { + ReturnStmt: ReturnStmt; + } { const _j = {} as ReturnStmt; _o.set(_j, "returnval", _p?.returnval); + if (isNode) { + return { + ReturnStmt: _j + }; + } return _j; }, - plAssignStmt(_p?: PLAssignStmt): PLAssignStmt { + plAssignStmt(_p?: PLAssignStmt, isNode?: boolean): PLAssignStmt | { + PLAssignStmt: PLAssignStmt; + } { const _j = {} as PLAssignStmt; _o.set(_j, "name", _p?.name); _o.set(_j, "indirection", _p?.indirection); _o.set(_j, "nnames", _p?.nnames); _o.set(_j, "val", _p?.val); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + PLAssignStmt: _j + }; + } return _j; }, - createSchemaStmt(_p?: CreateSchemaStmt): CreateSchemaStmt { + createSchemaStmt(_p?: CreateSchemaStmt, isNode?: boolean): CreateSchemaStmt | { + CreateSchemaStmt: CreateSchemaStmt; + } { const _j = {} as CreateSchemaStmt; _o.set(_j, "schemaname", _p?.schemaname); _o.set(_j, "authrole", _p?.authrole); _o.set(_j, "schemaElts", _p?.schemaElts); _o.set(_j, "if_not_exists", _p?.if_not_exists); + if (isNode) { + return { + CreateSchemaStmt: _j + }; + } return _j; }, - alterTableStmt(_p?: AlterTableStmt): AlterTableStmt { + alterTableStmt(_p?: AlterTableStmt, isNode?: boolean): AlterTableStmt | { + AlterTableStmt: AlterTableStmt; + } { const _j = {} as AlterTableStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "cmds", _p?.cmds); _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + AlterTableStmt: _j + }; + } return _j; }, - replicaIdentityStmt(_p?: ReplicaIdentityStmt): ReplicaIdentityStmt { + replicaIdentityStmt(_p?: ReplicaIdentityStmt, isNode?: boolean): ReplicaIdentityStmt | { + ReplicaIdentityStmt: ReplicaIdentityStmt; + } { const _j = {} as ReplicaIdentityStmt; _o.set(_j, "identity_type", _p?.identity_type); _o.set(_j, "name", _p?.name); + if (isNode) { + return { + ReplicaIdentityStmt: _j + }; + } return _j; }, - alterTableCmd(_p?: AlterTableCmd): AlterTableCmd { + alterTableCmd(_p?: AlterTableCmd, isNode?: boolean): AlterTableCmd | { + AlterTableCmd: AlterTableCmd; + } { const _j = {} as AlterTableCmd; _o.set(_j, "subtype", _p?.subtype); _o.set(_j, "name", _p?.name); @@ -5614,14 +6575,28 @@ export default { _o.set(_j, "behavior", _p?.behavior); _o.set(_j, "missing_ok", _p?.missing_ok); _o.set(_j, "recurse", _p?.recurse); + if (isNode) { + return { + AlterTableCmd: _j + }; + } return _j; }, - alterCollationStmt(_p?: AlterCollationStmt): AlterCollationStmt { + alterCollationStmt(_p?: AlterCollationStmt, isNode?: boolean): AlterCollationStmt | { + AlterCollationStmt: AlterCollationStmt; + } { const _j = {} as AlterCollationStmt; _o.set(_j, "collname", _p?.collname); + if (isNode) { + return { + AlterCollationStmt: _j + }; + } return _j; }, - alterDomainStmt(_p?: AlterDomainStmt): AlterDomainStmt { + alterDomainStmt(_p?: AlterDomainStmt, isNode?: boolean): AlterDomainStmt | { + AlterDomainStmt: AlterDomainStmt; + } { const _j = {} as AlterDomainStmt; _o.set(_j, "subtype", _p?.subtype); _o.set(_j, "typeName", _p?.typeName); @@ -5629,9 +6604,16 @@ export default { _o.set(_j, "def", _p?.def); _o.set(_j, "behavior", _p?.behavior); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + AlterDomainStmt: _j + }; + } return _j; }, - grantStmt(_p?: GrantStmt): GrantStmt { + grantStmt(_p?: GrantStmt, isNode?: boolean): GrantStmt | { + GrantStmt: GrantStmt; + } { const _j = {} as GrantStmt; _o.set(_j, "is_grant", _p?.is_grant); _o.set(_j, "targtype", _p?.targtype); @@ -5642,23 +6624,44 @@ export default { _o.set(_j, "grant_option", _p?.grant_option); _o.set(_j, "grantor", _p?.grantor); _o.set(_j, "behavior", _p?.behavior); + if (isNode) { + return { + GrantStmt: _j + }; + } return _j; }, - objectWithArgs(_p?: ObjectWithArgs): ObjectWithArgs { + objectWithArgs(_p?: ObjectWithArgs, isNode?: boolean): ObjectWithArgs | { + ObjectWithArgs: ObjectWithArgs; + } { const _j = {} as ObjectWithArgs; _o.set(_j, "objname", _p?.objname); _o.set(_j, "objargs", _p?.objargs); _o.set(_j, "objfuncargs", _p?.objfuncargs); _o.set(_j, "args_unspecified", _p?.args_unspecified); + if (isNode) { + return { + ObjectWithArgs: _j + }; + } return _j; }, - accessPriv(_p?: AccessPriv): AccessPriv { + accessPriv(_p?: AccessPriv, isNode?: boolean): AccessPriv | { + AccessPriv: AccessPriv; + } { const _j = {} as AccessPriv; _o.set(_j, "priv_name", _p?.priv_name); _o.set(_j, "cols", _p?.cols); + if (isNode) { + return { + AccessPriv: _j + }; + } return _j; }, - grantRoleStmt(_p?: GrantRoleStmt): GrantRoleStmt { + grantRoleStmt(_p?: GrantRoleStmt, isNode?: boolean): GrantRoleStmt | { + GrantRoleStmt: GrantRoleStmt; + } { const _j = {} as GrantRoleStmt; _o.set(_j, "granted_roles", _p?.granted_roles); _o.set(_j, "grantee_roles", _p?.grantee_roles); @@ -5666,15 +6669,29 @@ export default { _o.set(_j, "opt", _p?.opt); _o.set(_j, "grantor", _p?.grantor); _o.set(_j, "behavior", _p?.behavior); + if (isNode) { + return { + GrantRoleStmt: _j + }; + } return _j; }, - alterDefaultPrivilegesStmt(_p?: AlterDefaultPrivilegesStmt): AlterDefaultPrivilegesStmt { + alterDefaultPrivilegesStmt(_p?: AlterDefaultPrivilegesStmt, isNode?: boolean): AlterDefaultPrivilegesStmt | { + AlterDefaultPrivilegesStmt: AlterDefaultPrivilegesStmt; + } { const _j = {} as AlterDefaultPrivilegesStmt; _o.set(_j, "options", _p?.options); _o.set(_j, "action", _p?.action); + if (isNode) { + return { + AlterDefaultPrivilegesStmt: _j + }; + } return _j; }, - copyStmt(_p?: CopyStmt): CopyStmt { + copyStmt(_p?: CopyStmt, isNode?: boolean): CopyStmt | { + CopyStmt: CopyStmt; + } { const _j = {} as CopyStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "query", _p?.query); @@ -5684,22 +6701,43 @@ export default { _o.set(_j, "filename", _p?.filename); _o.set(_j, "options", _p?.options); _o.set(_j, "whereClause", _p?.whereClause); + if (isNode) { + return { + CopyStmt: _j + }; + } return _j; }, - variableSetStmt(_p?: VariableSetStmt): VariableSetStmt { + variableSetStmt(_p?: VariableSetStmt, isNode?: boolean): VariableSetStmt | { + VariableSetStmt: VariableSetStmt; + } { const _j = {} as VariableSetStmt; _o.set(_j, "kind", _p?.kind); _o.set(_j, "name", _p?.name); _o.set(_j, "args", _p?.args); _o.set(_j, "is_local", _p?.is_local); + if (isNode) { + return { + VariableSetStmt: _j + }; + } return _j; }, - variableShowStmt(_p?: VariableShowStmt): VariableShowStmt { + variableShowStmt(_p?: VariableShowStmt, isNode?: boolean): VariableShowStmt | { + VariableShowStmt: VariableShowStmt; + } { const _j = {} as VariableShowStmt; _o.set(_j, "name", _p?.name); + if (isNode) { + return { + VariableShowStmt: _j + }; + } return _j; }, - createStmt(_p?: CreateStmt): CreateStmt { + createStmt(_p?: CreateStmt, isNode?: boolean): CreateStmt | { + CreateStmt: CreateStmt; + } { const _j = {} as CreateStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "tableElts", _p?.tableElts); @@ -5713,9 +6751,16 @@ export default { _o.set(_j, "tablespacename", _p?.tablespacename); _o.set(_j, "accessMethod", _p?.accessMethod); _o.set(_j, "if_not_exists", _p?.if_not_exists); + if (isNode) { + return { + CreateStmt: _j + }; + } return _j; }, - constraint(_p?: Constraint): Constraint { + constraint(_p?: Constraint, isNode?: boolean): Constraint | { + Constraint: Constraint; + } { const _j = {} as Constraint; _o.set(_j, "contype", _p?.contype); _o.set(_j, "conname", _p?.conname); @@ -5747,74 +6792,144 @@ export default { _o.set(_j, "old_pktable_oid", _p?.old_pktable_oid); _o.set(_j, "skip_validation", _p?.skip_validation); _o.set(_j, "initially_valid", _p?.initially_valid); + if (isNode) { + return { + Constraint: _j + }; + } return _j; }, - createTableSpaceStmt(_p?: CreateTableSpaceStmt): CreateTableSpaceStmt { + createTableSpaceStmt(_p?: CreateTableSpaceStmt, isNode?: boolean): CreateTableSpaceStmt | { + CreateTableSpaceStmt: CreateTableSpaceStmt; + } { const _j = {} as CreateTableSpaceStmt; _o.set(_j, "tablespacename", _p?.tablespacename); _o.set(_j, "owner", _p?.owner); _o.set(_j, "location", _p?.location); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateTableSpaceStmt: _j + }; + } return _j; }, - dropTableSpaceStmt(_p?: DropTableSpaceStmt): DropTableSpaceStmt { + dropTableSpaceStmt(_p?: DropTableSpaceStmt, isNode?: boolean): DropTableSpaceStmt | { + DropTableSpaceStmt: DropTableSpaceStmt; + } { const _j = {} as DropTableSpaceStmt; _o.set(_j, "tablespacename", _p?.tablespacename); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + DropTableSpaceStmt: _j + }; + } return _j; }, - alterTableSpaceOptionsStmt(_p?: AlterTableSpaceOptionsStmt): AlterTableSpaceOptionsStmt { + alterTableSpaceOptionsStmt(_p?: AlterTableSpaceOptionsStmt, isNode?: boolean): AlterTableSpaceOptionsStmt | { + AlterTableSpaceOptionsStmt: AlterTableSpaceOptionsStmt; + } { const _j = {} as AlterTableSpaceOptionsStmt; _o.set(_j, "tablespacename", _p?.tablespacename); _o.set(_j, "options", _p?.options); _o.set(_j, "isReset", _p?.isReset); + if (isNode) { + return { + AlterTableSpaceOptionsStmt: _j + }; + } return _j; }, - alterTableMoveAllStmt(_p?: AlterTableMoveAllStmt): AlterTableMoveAllStmt { + alterTableMoveAllStmt(_p?: AlterTableMoveAllStmt, isNode?: boolean): AlterTableMoveAllStmt | { + AlterTableMoveAllStmt: AlterTableMoveAllStmt; + } { const _j = {} as AlterTableMoveAllStmt; _o.set(_j, "orig_tablespacename", _p?.orig_tablespacename); _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "roles", _p?.roles); _o.set(_j, "new_tablespacename", _p?.new_tablespacename); _o.set(_j, "nowait", _p?.nowait); + if (isNode) { + return { + AlterTableMoveAllStmt: _j + }; + } return _j; }, - createExtensionStmt(_p?: CreateExtensionStmt): CreateExtensionStmt { + createExtensionStmt(_p?: CreateExtensionStmt, isNode?: boolean): CreateExtensionStmt | { + CreateExtensionStmt: CreateExtensionStmt; + } { const _j = {} as CreateExtensionStmt; _o.set(_j, "extname", _p?.extname); _o.set(_j, "if_not_exists", _p?.if_not_exists); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateExtensionStmt: _j + }; + } return _j; }, - alterExtensionStmt(_p?: AlterExtensionStmt): AlterExtensionStmt { + alterExtensionStmt(_p?: AlterExtensionStmt, isNode?: boolean): AlterExtensionStmt | { + AlterExtensionStmt: AlterExtensionStmt; + } { const _j = {} as AlterExtensionStmt; _o.set(_j, "extname", _p?.extname); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterExtensionStmt: _j + }; + } return _j; }, - alterExtensionContentsStmt(_p?: AlterExtensionContentsStmt): AlterExtensionContentsStmt { + alterExtensionContentsStmt(_p?: AlterExtensionContentsStmt, isNode?: boolean): AlterExtensionContentsStmt | { + AlterExtensionContentsStmt: AlterExtensionContentsStmt; + } { const _j = {} as AlterExtensionContentsStmt; _o.set(_j, "extname", _p?.extname); _o.set(_j, "action", _p?.action); _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "object", _p?.object); + if (isNode) { + return { + AlterExtensionContentsStmt: _j + }; + } return _j; }, - createFdwStmt(_p?: CreateFdwStmt): CreateFdwStmt { + createFdwStmt(_p?: CreateFdwStmt, isNode?: boolean): CreateFdwStmt | { + CreateFdwStmt: CreateFdwStmt; + } { const _j = {} as CreateFdwStmt; _o.set(_j, "fdwname", _p?.fdwname); _o.set(_j, "func_options", _p?.func_options); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateFdwStmt: _j + }; + } return _j; }, - alterFdwStmt(_p?: AlterFdwStmt): AlterFdwStmt { + alterFdwStmt(_p?: AlterFdwStmt, isNode?: boolean): AlterFdwStmt | { + AlterFdwStmt: AlterFdwStmt; + } { const _j = {} as AlterFdwStmt; _o.set(_j, "fdwname", _p?.fdwname); _o.set(_j, "func_options", _p?.func_options); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterFdwStmt: _j + }; + } return _j; }, - createForeignServerStmt(_p?: CreateForeignServerStmt): CreateForeignServerStmt { + createForeignServerStmt(_p?: CreateForeignServerStmt, isNode?: boolean): CreateForeignServerStmt | { + CreateForeignServerStmt: CreateForeignServerStmt; + } { const _j = {} as CreateForeignServerStmt; _o.set(_j, "servername", _p?.servername); _o.set(_j, "servertype", _p?.servertype); @@ -5822,46 +6937,88 @@ export default { _o.set(_j, "fdwname", _p?.fdwname); _o.set(_j, "if_not_exists", _p?.if_not_exists); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateForeignServerStmt: _j + }; + } return _j; }, - alterForeignServerStmt(_p?: AlterForeignServerStmt): AlterForeignServerStmt { + alterForeignServerStmt(_p?: AlterForeignServerStmt, isNode?: boolean): AlterForeignServerStmt | { + AlterForeignServerStmt: AlterForeignServerStmt; + } { const _j = {} as AlterForeignServerStmt; _o.set(_j, "servername", _p?.servername); _o.set(_j, "version", _p?.version); _o.set(_j, "options", _p?.options); _o.set(_j, "has_version", _p?.has_version); + if (isNode) { + return { + AlterForeignServerStmt: _j + }; + } return _j; }, - createForeignTableStmt(_p?: CreateForeignTableStmt): CreateForeignTableStmt { + createForeignTableStmt(_p?: CreateForeignTableStmt, isNode?: boolean): CreateForeignTableStmt | { + CreateForeignTableStmt: CreateForeignTableStmt; + } { const _j = {} as CreateForeignTableStmt; _o.set(_j, "base", _p?.base); _o.set(_j, "servername", _p?.servername); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateForeignTableStmt: _j + }; + } return _j; }, - createUserMappingStmt(_p?: CreateUserMappingStmt): CreateUserMappingStmt { + createUserMappingStmt(_p?: CreateUserMappingStmt, isNode?: boolean): CreateUserMappingStmt | { + CreateUserMappingStmt: CreateUserMappingStmt; + } { const _j = {} as CreateUserMappingStmt; _o.set(_j, "user", _p?.user); _o.set(_j, "servername", _p?.servername); _o.set(_j, "if_not_exists", _p?.if_not_exists); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateUserMappingStmt: _j + }; + } return _j; }, - alterUserMappingStmt(_p?: AlterUserMappingStmt): AlterUserMappingStmt { + alterUserMappingStmt(_p?: AlterUserMappingStmt, isNode?: boolean): AlterUserMappingStmt | { + AlterUserMappingStmt: AlterUserMappingStmt; + } { const _j = {} as AlterUserMappingStmt; _o.set(_j, "user", _p?.user); _o.set(_j, "servername", _p?.servername); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterUserMappingStmt: _j + }; + } return _j; }, - dropUserMappingStmt(_p?: DropUserMappingStmt): DropUserMappingStmt { + dropUserMappingStmt(_p?: DropUserMappingStmt, isNode?: boolean): DropUserMappingStmt | { + DropUserMappingStmt: DropUserMappingStmt; + } { const _j = {} as DropUserMappingStmt; _o.set(_j, "user", _p?.user); _o.set(_j, "servername", _p?.servername); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + DropUserMappingStmt: _j + }; + } return _j; }, - importForeignSchemaStmt(_p?: ImportForeignSchemaStmt): ImportForeignSchemaStmt { + importForeignSchemaStmt(_p?: ImportForeignSchemaStmt, isNode?: boolean): ImportForeignSchemaStmt | { + ImportForeignSchemaStmt: ImportForeignSchemaStmt; + } { const _j = {} as ImportForeignSchemaStmt; _o.set(_j, "server_name", _p?.server_name); _o.set(_j, "remote_schema", _p?.remote_schema); @@ -5869,9 +7026,16 @@ export default { _o.set(_j, "list_type", _p?.list_type); _o.set(_j, "table_list", _p?.table_list); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + ImportForeignSchemaStmt: _j + }; + } return _j; }, - createPolicyStmt(_p?: CreatePolicyStmt): CreatePolicyStmt { + createPolicyStmt(_p?: CreatePolicyStmt, isNode?: boolean): CreatePolicyStmt | { + CreatePolicyStmt: CreatePolicyStmt; + } { const _j = {} as CreatePolicyStmt; _o.set(_j, "policy_name", _p?.policy_name); _o.set(_j, "table", _p?.table); @@ -5880,25 +7044,46 @@ export default { _o.set(_j, "roles", _p?.roles); _o.set(_j, "qual", _p?.qual); _o.set(_j, "with_check", _p?.with_check); + if (isNode) { + return { + CreatePolicyStmt: _j + }; + } return _j; }, - alterPolicyStmt(_p?: AlterPolicyStmt): AlterPolicyStmt { + alterPolicyStmt(_p?: AlterPolicyStmt, isNode?: boolean): AlterPolicyStmt | { + AlterPolicyStmt: AlterPolicyStmt; + } { const _j = {} as AlterPolicyStmt; _o.set(_j, "policy_name", _p?.policy_name); _o.set(_j, "table", _p?.table); _o.set(_j, "roles", _p?.roles); _o.set(_j, "qual", _p?.qual); _o.set(_j, "with_check", _p?.with_check); + if (isNode) { + return { + AlterPolicyStmt: _j + }; + } return _j; }, - createAmStmt(_p?: CreateAmStmt): CreateAmStmt { + createAmStmt(_p?: CreateAmStmt, isNode?: boolean): CreateAmStmt | { + CreateAmStmt: CreateAmStmt; + } { const _j = {} as CreateAmStmt; _o.set(_j, "amname", _p?.amname); _o.set(_j, "handler_name", _p?.handler_name); _o.set(_j, "amtype", _p?.amtype); + if (isNode) { + return { + CreateAmStmt: _j + }; + } return _j; }, - createTrigStmt(_p?: CreateTrigStmt): CreateTrigStmt { + createTrigStmt(_p?: CreateTrigStmt, isNode?: boolean): CreateTrigStmt | { + CreateTrigStmt: CreateTrigStmt; + } { const _j = {} as CreateTrigStmt; _o.set(_j, "replace", _p?.replace); _o.set(_j, "isconstraint", _p?.isconstraint); @@ -5915,23 +7100,44 @@ export default { _o.set(_j, "deferrable", _p?.deferrable); _o.set(_j, "initdeferred", _p?.initdeferred); _o.set(_j, "constrrel", _p?.constrrel); + if (isNode) { + return { + CreateTrigStmt: _j + }; + } return _j; }, - createEventTrigStmt(_p?: CreateEventTrigStmt): CreateEventTrigStmt { + createEventTrigStmt(_p?: CreateEventTrigStmt, isNode?: boolean): CreateEventTrigStmt | { + CreateEventTrigStmt: CreateEventTrigStmt; + } { const _j = {} as CreateEventTrigStmt; _o.set(_j, "trigname", _p?.trigname); _o.set(_j, "eventname", _p?.eventname); _o.set(_j, "whenclause", _p?.whenclause); _o.set(_j, "funcname", _p?.funcname); + if (isNode) { + return { + CreateEventTrigStmt: _j + }; + } return _j; }, - alterEventTrigStmt(_p?: AlterEventTrigStmt): AlterEventTrigStmt { + alterEventTrigStmt(_p?: AlterEventTrigStmt, isNode?: boolean): AlterEventTrigStmt | { + AlterEventTrigStmt: AlterEventTrigStmt; + } { const _j = {} as AlterEventTrigStmt; _o.set(_j, "trigname", _p?.trigname); _o.set(_j, "tgenabled", _p?.tgenabled); + if (isNode) { + return { + AlterEventTrigStmt: _j + }; + } return _j; }, - createpLangStmt(_p?: CreatePLangStmt): CreatePLangStmt { + createpLangStmt(_p?: CreatePLangStmt, isNode?: boolean): CreatePLangStmt | { + CreatePLangStmt: CreatePLangStmt; + } { const _j = {} as CreatePLangStmt; _o.set(_j, "replace", _p?.replace); _o.set(_j, "plname", _p?.plname); @@ -5939,53 +7145,102 @@ export default { _o.set(_j, "plinline", _p?.plinline); _o.set(_j, "plvalidator", _p?.plvalidator); _o.set(_j, "pltrusted", _p?.pltrusted); + if (isNode) { + return { + CreatePLangStmt: _j + }; + } return _j; }, - createRoleStmt(_p?: CreateRoleStmt): CreateRoleStmt { + createRoleStmt(_p?: CreateRoleStmt, isNode?: boolean): CreateRoleStmt | { + CreateRoleStmt: CreateRoleStmt; + } { const _j = {} as CreateRoleStmt; _o.set(_j, "stmt_type", _p?.stmt_type); _o.set(_j, "role", _p?.role); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateRoleStmt: _j + }; + } return _j; }, - alterRoleStmt(_p?: AlterRoleStmt): AlterRoleStmt { + alterRoleStmt(_p?: AlterRoleStmt, isNode?: boolean): AlterRoleStmt | { + AlterRoleStmt: AlterRoleStmt; + } { const _j = {} as AlterRoleStmt; _o.set(_j, "role", _p?.role); _o.set(_j, "options", _p?.options); _o.set(_j, "action", _p?.action); + if (isNode) { + return { + AlterRoleStmt: _j + }; + } return _j; }, - alterRoleSetStmt(_p?: AlterRoleSetStmt): AlterRoleSetStmt { + alterRoleSetStmt(_p?: AlterRoleSetStmt, isNode?: boolean): AlterRoleSetStmt | { + AlterRoleSetStmt: AlterRoleSetStmt; + } { const _j = {} as AlterRoleSetStmt; _o.set(_j, "role", _p?.role); _o.set(_j, "database", _p?.database); _o.set(_j, "setstmt", _p?.setstmt); + if (isNode) { + return { + AlterRoleSetStmt: _j + }; + } return _j; }, - dropRoleStmt(_p?: DropRoleStmt): DropRoleStmt { + dropRoleStmt(_p?: DropRoleStmt, isNode?: boolean): DropRoleStmt | { + DropRoleStmt: DropRoleStmt; + } { const _j = {} as DropRoleStmt; _o.set(_j, "roles", _p?.roles); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + DropRoleStmt: _j + }; + } return _j; }, - createSeqStmt(_p?: CreateSeqStmt): CreateSeqStmt { + createSeqStmt(_p?: CreateSeqStmt, isNode?: boolean): CreateSeqStmt | { + CreateSeqStmt: CreateSeqStmt; + } { const _j = {} as CreateSeqStmt; _o.set(_j, "sequence", _p?.sequence); _o.set(_j, "options", _p?.options); _o.set(_j, "ownerId", _p?.ownerId); _o.set(_j, "for_identity", _p?.for_identity); _o.set(_j, "if_not_exists", _p?.if_not_exists); + if (isNode) { + return { + CreateSeqStmt: _j + }; + } return _j; }, - alterSeqStmt(_p?: AlterSeqStmt): AlterSeqStmt { + alterSeqStmt(_p?: AlterSeqStmt, isNode?: boolean): AlterSeqStmt | { + AlterSeqStmt: AlterSeqStmt; + } { const _j = {} as AlterSeqStmt; _o.set(_j, "sequence", _p?.sequence); _o.set(_j, "options", _p?.options); _o.set(_j, "for_identity", _p?.for_identity); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + AlterSeqStmt: _j + }; + } return _j; }, - defineStmt(_p?: DefineStmt): DefineStmt { + defineStmt(_p?: DefineStmt, isNode?: boolean): DefineStmt | { + DefineStmt: DefineStmt; + } { const _j = {} as DefineStmt; _o.set(_j, "kind", _p?.kind); _o.set(_j, "oldstyle", _p?.oldstyle); @@ -5994,17 +7249,31 @@ export default { _o.set(_j, "definition", _p?.definition); _o.set(_j, "if_not_exists", _p?.if_not_exists); _o.set(_j, "replace", _p?.replace); + if (isNode) { + return { + DefineStmt: _j + }; + } return _j; }, - createDomainStmt(_p?: CreateDomainStmt): CreateDomainStmt { + createDomainStmt(_p?: CreateDomainStmt, isNode?: boolean): CreateDomainStmt | { + CreateDomainStmt: CreateDomainStmt; + } { const _j = {} as CreateDomainStmt; _o.set(_j, "domainname", _p?.domainname); _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "collClause", _p?.collClause); _o.set(_j, "constraints", _p?.constraints); + if (isNode) { + return { + CreateDomainStmt: _j + }; + } return _j; }, - createOpClassStmt(_p?: CreateOpClassStmt): CreateOpClassStmt { + createOpClassStmt(_p?: CreateOpClassStmt, isNode?: boolean): CreateOpClassStmt | { + CreateOpClassStmt: CreateOpClassStmt; + } { const _j = {} as CreateOpClassStmt; _o.set(_j, "opclassname", _p?.opclassname); _o.set(_j, "opfamilyname", _p?.opfamilyname); @@ -6012,9 +7281,16 @@ export default { _o.set(_j, "datatype", _p?.datatype); _o.set(_j, "items", _p?.items); _o.set(_j, "isDefault", _p?.isDefault); + if (isNode) { + return { + CreateOpClassStmt: _j + }; + } return _j; }, - createOpClassItem(_p?: CreateOpClassItem): CreateOpClassItem { + createOpClassItem(_p?: CreateOpClassItem, isNode?: boolean): CreateOpClassItem | { + CreateOpClassItem: CreateOpClassItem; + } { const _j = {} as CreateOpClassItem; _o.set(_j, "itemtype", _p?.itemtype); _o.set(_j, "name", _p?.name); @@ -6022,74 +7298,144 @@ export default { _o.set(_j, "order_family", _p?.order_family); _o.set(_j, "class_args", _p?.class_args); _o.set(_j, "storedtype", _p?.storedtype); + if (isNode) { + return { + CreateOpClassItem: _j + }; + } return _j; }, - createOpFamilyStmt(_p?: CreateOpFamilyStmt): CreateOpFamilyStmt { + createOpFamilyStmt(_p?: CreateOpFamilyStmt, isNode?: boolean): CreateOpFamilyStmt | { + CreateOpFamilyStmt: CreateOpFamilyStmt; + } { const _j = {} as CreateOpFamilyStmt; _o.set(_j, "opfamilyname", _p?.opfamilyname); _o.set(_j, "amname", _p?.amname); + if (isNode) { + return { + CreateOpFamilyStmt: _j + }; + } return _j; }, - alterOpFamilyStmt(_p?: AlterOpFamilyStmt): AlterOpFamilyStmt { + alterOpFamilyStmt(_p?: AlterOpFamilyStmt, isNode?: boolean): AlterOpFamilyStmt | { + AlterOpFamilyStmt: AlterOpFamilyStmt; + } { const _j = {} as AlterOpFamilyStmt; _o.set(_j, "opfamilyname", _p?.opfamilyname); _o.set(_j, "amname", _p?.amname); _o.set(_j, "isDrop", _p?.isDrop); _o.set(_j, "items", _p?.items); + if (isNode) { + return { + AlterOpFamilyStmt: _j + }; + } return _j; }, - dropStmt(_p?: DropStmt): DropStmt { + dropStmt(_p?: DropStmt, isNode?: boolean): DropStmt | { + DropStmt: DropStmt; + } { const _j = {} as DropStmt; _o.set(_j, "objects", _p?.objects); _o.set(_j, "removeType", _p?.removeType); _o.set(_j, "behavior", _p?.behavior); _o.set(_j, "missing_ok", _p?.missing_ok); _o.set(_j, "concurrent", _p?.concurrent); + if (isNode) { + return { + DropStmt: _j + }; + } return _j; }, - truncateStmt(_p?: TruncateStmt): TruncateStmt { + truncateStmt(_p?: TruncateStmt, isNode?: boolean): TruncateStmt | { + TruncateStmt: TruncateStmt; + } { const _j = {} as TruncateStmt; _o.set(_j, "relations", _p?.relations); _o.set(_j, "restart_seqs", _p?.restart_seqs); _o.set(_j, "behavior", _p?.behavior); + if (isNode) { + return { + TruncateStmt: _j + }; + } return _j; }, - commentStmt(_p?: CommentStmt): CommentStmt { + commentStmt(_p?: CommentStmt, isNode?: boolean): CommentStmt | { + CommentStmt: CommentStmt; + } { const _j = {} as CommentStmt; _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "object", _p?.object); _o.set(_j, "comment", _p?.comment); + if (isNode) { + return { + CommentStmt: _j + }; + } return _j; }, - secLabelStmt(_p?: SecLabelStmt): SecLabelStmt { + secLabelStmt(_p?: SecLabelStmt, isNode?: boolean): SecLabelStmt | { + SecLabelStmt: SecLabelStmt; + } { const _j = {} as SecLabelStmt; _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "object", _p?.object); _o.set(_j, "provider", _p?.provider); _o.set(_j, "label", _p?.label); + if (isNode) { + return { + SecLabelStmt: _j + }; + } return _j; }, - declareCursorStmt(_p?: DeclareCursorStmt): DeclareCursorStmt { + declareCursorStmt(_p?: DeclareCursorStmt, isNode?: boolean): DeclareCursorStmt | { + DeclareCursorStmt: DeclareCursorStmt; + } { const _j = {} as DeclareCursorStmt; _o.set(_j, "portalname", _p?.portalname); _o.set(_j, "options", _p?.options); _o.set(_j, "query", _p?.query); + if (isNode) { + return { + DeclareCursorStmt: _j + }; + } return _j; }, - closePortalStmt(_p?: ClosePortalStmt): ClosePortalStmt { + closePortalStmt(_p?: ClosePortalStmt, isNode?: boolean): ClosePortalStmt | { + ClosePortalStmt: ClosePortalStmt; + } { const _j = {} as ClosePortalStmt; _o.set(_j, "portalname", _p?.portalname); + if (isNode) { + return { + ClosePortalStmt: _j + }; + } return _j; }, - fetchStmt(_p?: FetchStmt): FetchStmt { + fetchStmt(_p?: FetchStmt, isNode?: boolean): FetchStmt | { + FetchStmt: FetchStmt; + } { const _j = {} as FetchStmt; _o.set(_j, "direction", _p?.direction); _o.set(_j, "howMany", _p?.howMany); _o.set(_j, "portalname", _p?.portalname); _o.set(_j, "ismove", _p?.ismove); + if (isNode) { + return { + FetchStmt: _j + }; + } return _j; }, - indexStmt(_p?: IndexStmt): IndexStmt { + indexStmt(_p?: IndexStmt, isNode?: boolean): IndexStmt | { + IndexStmt: IndexStmt; + } { const _j = {} as IndexStmt; _o.set(_j, "idxname", _p?.idxname); _o.set(_j, "relation", _p?.relation); @@ -6115,9 +7461,16 @@ export default { _o.set(_j, "concurrent", _p?.concurrent); _o.set(_j, "if_not_exists", _p?.if_not_exists); _o.set(_j, "reset_default_tblspc", _p?.reset_default_tblspc); + if (isNode) { + return { + IndexStmt: _j + }; + } return _j; }, - createStatsStmt(_p?: CreateStatsStmt): CreateStatsStmt { + createStatsStmt(_p?: CreateStatsStmt, isNode?: boolean): CreateStatsStmt | { + CreateStatsStmt: CreateStatsStmt; + } { const _j = {} as CreateStatsStmt; _o.set(_j, "defnames", _p?.defnames); _o.set(_j, "stat_types", _p?.stat_types); @@ -6126,22 +7479,43 @@ export default { _o.set(_j, "stxcomment", _p?.stxcomment); _o.set(_j, "transformed", _p?.transformed); _o.set(_j, "if_not_exists", _p?.if_not_exists); + if (isNode) { + return { + CreateStatsStmt: _j + }; + } return _j; }, - statsElem(_p?: StatsElem): StatsElem { + statsElem(_p?: StatsElem, isNode?: boolean): StatsElem | { + StatsElem: StatsElem; + } { const _j = {} as StatsElem; _o.set(_j, "name", _p?.name); _o.set(_j, "expr", _p?.expr); + if (isNode) { + return { + StatsElem: _j + }; + } return _j; }, - alterStatsStmt(_p?: AlterStatsStmt): AlterStatsStmt { + alterStatsStmt(_p?: AlterStatsStmt, isNode?: boolean): AlterStatsStmt | { + AlterStatsStmt: AlterStatsStmt; + } { const _j = {} as AlterStatsStmt; _o.set(_j, "defnames", _p?.defnames); _o.set(_j, "stxstattarget", _p?.stxstattarget); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + AlterStatsStmt: _j + }; + } return _j; }, - createFunctionStmt(_p?: CreateFunctionStmt): CreateFunctionStmt { + createFunctionStmt(_p?: CreateFunctionStmt, isNode?: boolean): CreateFunctionStmt | { + CreateFunctionStmt: CreateFunctionStmt; + } { const _j = {} as CreateFunctionStmt; _o.set(_j, "is_procedure", _p?.is_procedure); _o.set(_j, "replace", _p?.replace); @@ -6150,49 +7524,98 @@ export default { _o.set(_j, "returnType", _p?.returnType); _o.set(_j, "options", _p?.options); _o.set(_j, "sql_body", _p?.sql_body); + if (isNode) { + return { + CreateFunctionStmt: _j + }; + } return _j; }, - functionParameter(_p?: FunctionParameter): FunctionParameter { + functionParameter(_p?: FunctionParameter, isNode?: boolean): FunctionParameter | { + FunctionParameter: FunctionParameter; + } { const _j = {} as FunctionParameter; _o.set(_j, "name", _p?.name); _o.set(_j, "argType", _p?.argType); _o.set(_j, "mode", _p?.mode); _o.set(_j, "defexpr", _p?.defexpr); + if (isNode) { + return { + FunctionParameter: _j + }; + } return _j; }, - alterFunctionStmt(_p?: AlterFunctionStmt): AlterFunctionStmt { + alterFunctionStmt(_p?: AlterFunctionStmt, isNode?: boolean): AlterFunctionStmt | { + AlterFunctionStmt: AlterFunctionStmt; + } { const _j = {} as AlterFunctionStmt; _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "func", _p?.func); _o.set(_j, "actions", _p?.actions); + if (isNode) { + return { + AlterFunctionStmt: _j + }; + } return _j; }, - doStmt(_p?: DoStmt): DoStmt { + doStmt(_p?: DoStmt, isNode?: boolean): DoStmt | { + DoStmt: DoStmt; + } { const _j = {} as DoStmt; _o.set(_j, "args", _p?.args); + if (isNode) { + return { + DoStmt: _j + }; + } return _j; }, - inlineCodeBlock(_p?: InlineCodeBlock): InlineCodeBlock { + inlineCodeBlock(_p?: InlineCodeBlock, isNode?: boolean): InlineCodeBlock | { + InlineCodeBlock: InlineCodeBlock; + } { const _j = {} as InlineCodeBlock; _o.set(_j, "source_text", _p?.source_text); _o.set(_j, "langOid", _p?.langOid); _o.set(_j, "langIsTrusted", _p?.langIsTrusted); _o.set(_j, "atomic", _p?.atomic); + if (isNode) { + return { + InlineCodeBlock: _j + }; + } return _j; }, - callStmt(_p?: CallStmt): CallStmt { + callStmt(_p?: CallStmt, isNode?: boolean): CallStmt | { + CallStmt: CallStmt; + } { const _j = {} as CallStmt; _o.set(_j, "funccall", _p?.funccall); _o.set(_j, "funcexpr", _p?.funcexpr); _o.set(_j, "outargs", _p?.outargs); + if (isNode) { + return { + CallStmt: _j + }; + } return _j; }, - callContext(_p?: CallContext): CallContext { + callContext(_p?: CallContext, isNode?: boolean): CallContext | { + CallContext: CallContext; + } { const _j = {} as CallContext; _o.set(_j, "atomic", _p?.atomic); + if (isNode) { + return { + CallContext: _j + }; + } return _j; }, - renameStmt(_p?: RenameStmt): RenameStmt { + renameStmt(_p?: RenameStmt, isNode?: boolean): RenameStmt | { + RenameStmt: RenameStmt; + } { const _j = {} as RenameStmt; _o.set(_j, "renameType", _p?.renameType); _o.set(_j, "relationType", _p?.relationType); @@ -6202,47 +7625,89 @@ export default { _o.set(_j, "newname", _p?.newname); _o.set(_j, "behavior", _p?.behavior); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + RenameStmt: _j + }; + } return _j; }, - alterObjectDependsStmt(_p?: AlterObjectDependsStmt): AlterObjectDependsStmt { + alterObjectDependsStmt(_p?: AlterObjectDependsStmt, isNode?: boolean): AlterObjectDependsStmt | { + AlterObjectDependsStmt: AlterObjectDependsStmt; + } { const _j = {} as AlterObjectDependsStmt; _o.set(_j, "objectType", _p?.objectType); _o.set(_j, "relation", _p?.relation); _o.set(_j, "object", _p?.object); _o.set(_j, "extname", _p?.extname); _o.set(_j, "remove", _p?.remove); + if (isNode) { + return { + AlterObjectDependsStmt: _j + }; + } return _j; }, - alterObjectSchemaStmt(_p?: AlterObjectSchemaStmt): AlterObjectSchemaStmt { + alterObjectSchemaStmt(_p?: AlterObjectSchemaStmt, isNode?: boolean): AlterObjectSchemaStmt | { + AlterObjectSchemaStmt: AlterObjectSchemaStmt; + } { const _j = {} as AlterObjectSchemaStmt; _o.set(_j, "objectType", _p?.objectType); _o.set(_j, "relation", _p?.relation); _o.set(_j, "object", _p?.object); _o.set(_j, "newschema", _p?.newschema); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + AlterObjectSchemaStmt: _j + }; + } return _j; }, - alterOwnerStmt(_p?: AlterOwnerStmt): AlterOwnerStmt { + alterOwnerStmt(_p?: AlterOwnerStmt, isNode?: boolean): AlterOwnerStmt | { + AlterOwnerStmt: AlterOwnerStmt; + } { const _j = {} as AlterOwnerStmt; _o.set(_j, "objectType", _p?.objectType); _o.set(_j, "relation", _p?.relation); _o.set(_j, "object", _p?.object); _o.set(_j, "newowner", _p?.newowner); + if (isNode) { + return { + AlterOwnerStmt: _j + }; + } return _j; }, - alterOperatorStmt(_p?: AlterOperatorStmt): AlterOperatorStmt { + alterOperatorStmt(_p?: AlterOperatorStmt, isNode?: boolean): AlterOperatorStmt | { + AlterOperatorStmt: AlterOperatorStmt; + } { const _j = {} as AlterOperatorStmt; _o.set(_j, "opername", _p?.opername); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterOperatorStmt: _j + }; + } return _j; }, - alterTypeStmt(_p?: AlterTypeStmt): AlterTypeStmt { + alterTypeStmt(_p?: AlterTypeStmt, isNode?: boolean): AlterTypeStmt | { + AlterTypeStmt: AlterTypeStmt; + } { const _j = {} as AlterTypeStmt; _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterTypeStmt: _j + }; + } return _j; }, - ruleStmt(_p?: RuleStmt): RuleStmt { + ruleStmt(_p?: RuleStmt, isNode?: boolean): RuleStmt | { + RuleStmt: RuleStmt; + } { const _j = {} as RuleStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "rulename", _p?.rulename); @@ -6251,52 +7716,108 @@ export default { _o.set(_j, "instead", _p?.instead); _o.set(_j, "actions", _p?.actions); _o.set(_j, "replace", _p?.replace); + if (isNode) { + return { + RuleStmt: _j + }; + } return _j; }, - notifyStmt(_p?: NotifyStmt): NotifyStmt { + notifyStmt(_p?: NotifyStmt, isNode?: boolean): NotifyStmt | { + NotifyStmt: NotifyStmt; + } { const _j = {} as NotifyStmt; _o.set(_j, "conditionname", _p?.conditionname); _o.set(_j, "payload", _p?.payload); + if (isNode) { + return { + NotifyStmt: _j + }; + } return _j; }, - listenStmt(_p?: ListenStmt): ListenStmt { + listenStmt(_p?: ListenStmt, isNode?: boolean): ListenStmt | { + ListenStmt: ListenStmt; + } { const _j = {} as ListenStmt; _o.set(_j, "conditionname", _p?.conditionname); + if (isNode) { + return { + ListenStmt: _j + }; + } return _j; }, - unlistenStmt(_p?: UnlistenStmt): UnlistenStmt { + unlistenStmt(_p?: UnlistenStmt, isNode?: boolean): UnlistenStmt | { + UnlistenStmt: UnlistenStmt; + } { const _j = {} as UnlistenStmt; _o.set(_j, "conditionname", _p?.conditionname); + if (isNode) { + return { + UnlistenStmt: _j + }; + } return _j; }, - transactionStmt(_p?: TransactionStmt): TransactionStmt { + transactionStmt(_p?: TransactionStmt, isNode?: boolean): TransactionStmt | { + TransactionStmt: TransactionStmt; + } { const _j = {} as TransactionStmt; _o.set(_j, "kind", _p?.kind); _o.set(_j, "options", _p?.options); _o.set(_j, "savepoint_name", _p?.savepoint_name); _o.set(_j, "gid", _p?.gid); _o.set(_j, "chain", _p?.chain); + if (isNode) { + return { + TransactionStmt: _j + }; + } return _j; }, - compositeTypeStmt(_p?: CompositeTypeStmt): CompositeTypeStmt { + compositeTypeStmt(_p?: CompositeTypeStmt, isNode?: boolean): CompositeTypeStmt | { + CompositeTypeStmt: CompositeTypeStmt; + } { const _j = {} as CompositeTypeStmt; _o.set(_j, "typevar", _p?.typevar); _o.set(_j, "coldeflist", _p?.coldeflist); + if (isNode) { + return { + CompositeTypeStmt: _j + }; + } return _j; }, - createEnumStmt(_p?: CreateEnumStmt): CreateEnumStmt { + createEnumStmt(_p?: CreateEnumStmt, isNode?: boolean): CreateEnumStmt | { + CreateEnumStmt: CreateEnumStmt; + } { const _j = {} as CreateEnumStmt; _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "vals", _p?.vals); + if (isNode) { + return { + CreateEnumStmt: _j + }; + } return _j; }, - createRangeStmt(_p?: CreateRangeStmt): CreateRangeStmt { + createRangeStmt(_p?: CreateRangeStmt, isNode?: boolean): CreateRangeStmt | { + CreateRangeStmt: CreateRangeStmt; + } { const _j = {} as CreateRangeStmt; _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "params", _p?.params); + if (isNode) { + return { + CreateRangeStmt: _j + }; + } return _j; }, - alterEnumStmt(_p?: AlterEnumStmt): AlterEnumStmt { + alterEnumStmt(_p?: AlterEnumStmt, isNode?: boolean): AlterEnumStmt | { + AlterEnumStmt: AlterEnumStmt; + } { const _j = {} as AlterEnumStmt; _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "oldVal", _p?.oldVal); @@ -6304,9 +7825,16 @@ export default { _o.set(_j, "newValNeighbor", _p?.newValNeighbor); _o.set(_j, "newValIsAfter", _p?.newValIsAfter); _o.set(_j, "skipIfNewValExists", _p?.skipIfNewValExists); + if (isNode) { + return { + AlterEnumStmt: _j + }; + } return _j; }, - viewStmt(_p?: ViewStmt): ViewStmt { + viewStmt(_p?: ViewStmt, isNode?: boolean): ViewStmt | { + ViewStmt: ViewStmt; + } { const _j = {} as ViewStmt; _o.set(_j, "view", _p?.view); _o.set(_j, "aliases", _p?.aliases); @@ -6314,185 +7842,381 @@ export default { _o.set(_j, "replace", _p?.replace); _o.set(_j, "options", _p?.options); _o.set(_j, "withCheckOption", _p?.withCheckOption); + if (isNode) { + return { + ViewStmt: _j + }; + } return _j; }, - loadStmt(_p?: LoadStmt): LoadStmt { + loadStmt(_p?: LoadStmt, isNode?: boolean): LoadStmt | { + LoadStmt: LoadStmt; + } { const _j = {} as LoadStmt; _o.set(_j, "filename", _p?.filename); + if (isNode) { + return { + LoadStmt: _j + }; + } return _j; }, - createdbStmt(_p?: CreatedbStmt): CreatedbStmt { + createdbStmt(_p?: CreatedbStmt, isNode?: boolean): CreatedbStmt | { + CreatedbStmt: CreatedbStmt; + } { const _j = {} as CreatedbStmt; _o.set(_j, "dbname", _p?.dbname); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreatedbStmt: _j + }; + } return _j; }, - alterDatabaseStmt(_p?: AlterDatabaseStmt): AlterDatabaseStmt { + alterDatabaseStmt(_p?: AlterDatabaseStmt, isNode?: boolean): AlterDatabaseStmt | { + AlterDatabaseStmt: AlterDatabaseStmt; + } { const _j = {} as AlterDatabaseStmt; _o.set(_j, "dbname", _p?.dbname); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterDatabaseStmt: _j + }; + } return _j; }, - alterDatabaseRefreshCollStmt(_p?: AlterDatabaseRefreshCollStmt): AlterDatabaseRefreshCollStmt { + alterDatabaseRefreshCollStmt(_p?: AlterDatabaseRefreshCollStmt, isNode?: boolean): AlterDatabaseRefreshCollStmt | { + AlterDatabaseRefreshCollStmt: AlterDatabaseRefreshCollStmt; + } { const _j = {} as AlterDatabaseRefreshCollStmt; _o.set(_j, "dbname", _p?.dbname); + if (isNode) { + return { + AlterDatabaseRefreshCollStmt: _j + }; + } return _j; }, - alterDatabaseSetStmt(_p?: AlterDatabaseSetStmt): AlterDatabaseSetStmt { + alterDatabaseSetStmt(_p?: AlterDatabaseSetStmt, isNode?: boolean): AlterDatabaseSetStmt | { + AlterDatabaseSetStmt: AlterDatabaseSetStmt; + } { const _j = {} as AlterDatabaseSetStmt; _o.set(_j, "dbname", _p?.dbname); _o.set(_j, "setstmt", _p?.setstmt); + if (isNode) { + return { + AlterDatabaseSetStmt: _j + }; + } return _j; }, - dropdbStmt(_p?: DropdbStmt): DropdbStmt { + dropdbStmt(_p?: DropdbStmt, isNode?: boolean): DropdbStmt | { + DropdbStmt: DropdbStmt; + } { const _j = {} as DropdbStmt; _o.set(_j, "dbname", _p?.dbname); _o.set(_j, "missing_ok", _p?.missing_ok); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + DropdbStmt: _j + }; + } return _j; }, - alterSystemStmt(_p?: AlterSystemStmt): AlterSystemStmt { + alterSystemStmt(_p?: AlterSystemStmt, isNode?: boolean): AlterSystemStmt | { + AlterSystemStmt: AlterSystemStmt; + } { const _j = {} as AlterSystemStmt; _o.set(_j, "setstmt", _p?.setstmt); + if (isNode) { + return { + AlterSystemStmt: _j + }; + } return _j; }, - clusterStmt(_p?: ClusterStmt): ClusterStmt { + clusterStmt(_p?: ClusterStmt, isNode?: boolean): ClusterStmt | { + ClusterStmt: ClusterStmt; + } { const _j = {} as ClusterStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "indexname", _p?.indexname); _o.set(_j, "params", _p?.params); + if (isNode) { + return { + ClusterStmt: _j + }; + } return _j; }, - vacuumStmt(_p?: VacuumStmt): VacuumStmt { + vacuumStmt(_p?: VacuumStmt, isNode?: boolean): VacuumStmt | { + VacuumStmt: VacuumStmt; + } { const _j = {} as VacuumStmt; _o.set(_j, "options", _p?.options); _o.set(_j, "rels", _p?.rels); _o.set(_j, "is_vacuumcmd", _p?.is_vacuumcmd); + if (isNode) { + return { + VacuumStmt: _j + }; + } return _j; }, - vacuumRelation(_p?: VacuumRelation): VacuumRelation { + vacuumRelation(_p?: VacuumRelation, isNode?: boolean): VacuumRelation | { + VacuumRelation: VacuumRelation; + } { const _j = {} as VacuumRelation; _o.set(_j, "relation", _p?.relation); _o.set(_j, "oid", _p?.oid); _o.set(_j, "va_cols", _p?.va_cols); + if (isNode) { + return { + VacuumRelation: _j + }; + } return _j; }, - explainStmt(_p?: ExplainStmt): ExplainStmt { + explainStmt(_p?: ExplainStmt, isNode?: boolean): ExplainStmt | { + ExplainStmt: ExplainStmt; + } { const _j = {} as ExplainStmt; _o.set(_j, "query", _p?.query); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + ExplainStmt: _j + }; + } return _j; }, - createTableAsStmt(_p?: CreateTableAsStmt): CreateTableAsStmt { + createTableAsStmt(_p?: CreateTableAsStmt, isNode?: boolean): CreateTableAsStmt | { + CreateTableAsStmt: CreateTableAsStmt; + } { const _j = {} as CreateTableAsStmt; _o.set(_j, "query", _p?.query); _o.set(_j, "into", _p?.into); _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "is_select_into", _p?.is_select_into); _o.set(_j, "if_not_exists", _p?.if_not_exists); + if (isNode) { + return { + CreateTableAsStmt: _j + }; + } return _j; }, - refreshMatViewStmt(_p?: RefreshMatViewStmt): RefreshMatViewStmt { + refreshMatViewStmt(_p?: RefreshMatViewStmt, isNode?: boolean): RefreshMatViewStmt | { + RefreshMatViewStmt: RefreshMatViewStmt; + } { const _j = {} as RefreshMatViewStmt; _o.set(_j, "concurrent", _p?.concurrent); _o.set(_j, "skipData", _p?.skipData); _o.set(_j, "relation", _p?.relation); + if (isNode) { + return { + RefreshMatViewStmt: _j + }; + } return _j; }, - checkPointStmt(_p?: CheckPointStmt): CheckPointStmt { + checkPointStmt(_p?: CheckPointStmt, isNode?: boolean): CheckPointStmt | { + CheckPointStmt: CheckPointStmt; + } { const _j = {} as CheckPointStmt; + if (isNode) { + return { + CheckPointStmt: _j + }; + } return _j; }, - discardStmt(_p?: DiscardStmt): DiscardStmt { + discardStmt(_p?: DiscardStmt, isNode?: boolean): DiscardStmt | { + DiscardStmt: DiscardStmt; + } { const _j = {} as DiscardStmt; _o.set(_j, "target", _p?.target); + if (isNode) { + return { + DiscardStmt: _j + }; + } return _j; }, - lockStmt(_p?: LockStmt): LockStmt { + lockStmt(_p?: LockStmt, isNode?: boolean): LockStmt | { + LockStmt: LockStmt; + } { const _j = {} as LockStmt; _o.set(_j, "relations", _p?.relations); _o.set(_j, "mode", _p?.mode); _o.set(_j, "nowait", _p?.nowait); + if (isNode) { + return { + LockStmt: _j + }; + } return _j; }, - constraintsSetStmt(_p?: ConstraintsSetStmt): ConstraintsSetStmt { + constraintsSetStmt(_p?: ConstraintsSetStmt, isNode?: boolean): ConstraintsSetStmt | { + ConstraintsSetStmt: ConstraintsSetStmt; + } { const _j = {} as ConstraintsSetStmt; _o.set(_j, "constraints", _p?.constraints); _o.set(_j, "deferred", _p?.deferred); + if (isNode) { + return { + ConstraintsSetStmt: _j + }; + } return _j; }, - reindexStmt(_p?: ReindexStmt): ReindexStmt { + reindexStmt(_p?: ReindexStmt, isNode?: boolean): ReindexStmt | { + ReindexStmt: ReindexStmt; + } { const _j = {} as ReindexStmt; _o.set(_j, "kind", _p?.kind); _o.set(_j, "relation", _p?.relation); _o.set(_j, "name", _p?.name); _o.set(_j, "params", _p?.params); + if (isNode) { + return { + ReindexStmt: _j + }; + } return _j; }, - createConversionStmt(_p?: CreateConversionStmt): CreateConversionStmt { + createConversionStmt(_p?: CreateConversionStmt, isNode?: boolean): CreateConversionStmt | { + CreateConversionStmt: CreateConversionStmt; + } { const _j = {} as CreateConversionStmt; _o.set(_j, "conversion_name", _p?.conversion_name); _o.set(_j, "for_encoding_name", _p?.for_encoding_name); _o.set(_j, "to_encoding_name", _p?.to_encoding_name); _o.set(_j, "func_name", _p?.func_name); _o.set(_j, "def", _p?.def); + if (isNode) { + return { + CreateConversionStmt: _j + }; + } return _j; }, - createCastStmt(_p?: CreateCastStmt): CreateCastStmt { + createCastStmt(_p?: CreateCastStmt, isNode?: boolean): CreateCastStmt | { + CreateCastStmt: CreateCastStmt; + } { const _j = {} as CreateCastStmt; _o.set(_j, "sourcetype", _p?.sourcetype); _o.set(_j, "targettype", _p?.targettype); _o.set(_j, "func", _p?.func); _o.set(_j, "context", _p?.context); _o.set(_j, "inout", _p?.inout); + if (isNode) { + return { + CreateCastStmt: _j + }; + } return _j; }, - createTransformStmt(_p?: CreateTransformStmt): CreateTransformStmt { + createTransformStmt(_p?: CreateTransformStmt, isNode?: boolean): CreateTransformStmt | { + CreateTransformStmt: CreateTransformStmt; + } { const _j = {} as CreateTransformStmt; _o.set(_j, "replace", _p?.replace); _o.set(_j, "type_name", _p?.type_name); _o.set(_j, "lang", _p?.lang); _o.set(_j, "fromsql", _p?.fromsql); _o.set(_j, "tosql", _p?.tosql); + if (isNode) { + return { + CreateTransformStmt: _j + }; + } return _j; }, - prepareStmt(_p?: PrepareStmt): PrepareStmt { + prepareStmt(_p?: PrepareStmt, isNode?: boolean): PrepareStmt | { + PrepareStmt: PrepareStmt; + } { const _j = {} as PrepareStmt; _o.set(_j, "name", _p?.name); _o.set(_j, "argtypes", _p?.argtypes); _o.set(_j, "query", _p?.query); + if (isNode) { + return { + PrepareStmt: _j + }; + } return _j; }, - executeStmt(_p?: ExecuteStmt): ExecuteStmt { + executeStmt(_p?: ExecuteStmt, isNode?: boolean): ExecuteStmt | { + ExecuteStmt: ExecuteStmt; + } { const _j = {} as ExecuteStmt; _o.set(_j, "name", _p?.name); _o.set(_j, "params", _p?.params); + if (isNode) { + return { + ExecuteStmt: _j + }; + } return _j; }, - deallocateStmt(_p?: DeallocateStmt): DeallocateStmt { + deallocateStmt(_p?: DeallocateStmt, isNode?: boolean): DeallocateStmt | { + DeallocateStmt: DeallocateStmt; + } { const _j = {} as DeallocateStmt; _o.set(_j, "name", _p?.name); + if (isNode) { + return { + DeallocateStmt: _j + }; + } return _j; }, - dropOwnedStmt(_p?: DropOwnedStmt): DropOwnedStmt { + dropOwnedStmt(_p?: DropOwnedStmt, isNode?: boolean): DropOwnedStmt | { + DropOwnedStmt: DropOwnedStmt; + } { const _j = {} as DropOwnedStmt; _o.set(_j, "roles", _p?.roles); _o.set(_j, "behavior", _p?.behavior); + if (isNode) { + return { + DropOwnedStmt: _j + }; + } return _j; }, - reassignOwnedStmt(_p?: ReassignOwnedStmt): ReassignOwnedStmt { + reassignOwnedStmt(_p?: ReassignOwnedStmt, isNode?: boolean): ReassignOwnedStmt | { + ReassignOwnedStmt: ReassignOwnedStmt; + } { const _j = {} as ReassignOwnedStmt; _o.set(_j, "roles", _p?.roles); _o.set(_j, "newrole", _p?.newrole); + if (isNode) { + return { + ReassignOwnedStmt: _j + }; + } return _j; }, - altertsDictionaryStmt(_p?: AlterTSDictionaryStmt): AlterTSDictionaryStmt { + altertsDictionaryStmt(_p?: AlterTSDictionaryStmt, isNode?: boolean): AlterTSDictionaryStmt | { + AlterTSDictionaryStmt: AlterTSDictionaryStmt; + } { const _j = {} as AlterTSDictionaryStmt; _o.set(_j, "dictname", _p?.dictname); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterTSDictionaryStmt: _j + }; + } return _j; }, - altertsConfigurationStmt(_p?: AlterTSConfigurationStmt): AlterTSConfigurationStmt { + altertsConfigurationStmt(_p?: AlterTSConfigurationStmt, isNode?: boolean): AlterTSConfigurationStmt | { + AlterTSConfigurationStmt: AlterTSConfigurationStmt; + } { const _j = {} as AlterTSConfigurationStmt; _o.set(_j, "kind", _p?.kind); _o.set(_j, "cfgname", _p?.cfgname); @@ -6501,70 +8225,131 @@ export default { _o.set(_j, "override", _p?.override); _o.set(_j, "replace", _p?.replace); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + AlterTSConfigurationStmt: _j + }; + } return _j; }, - publicationTable(_p?: PublicationTable): PublicationTable { + publicationTable(_p?: PublicationTable, isNode?: boolean): PublicationTable | { + PublicationTable: PublicationTable; + } { const _j = {} as PublicationTable; _o.set(_j, "relation", _p?.relation); _o.set(_j, "whereClause", _p?.whereClause); _o.set(_j, "columns", _p?.columns); + if (isNode) { + return { + PublicationTable: _j + }; + } return _j; }, - publicationObjSpec(_p?: PublicationObjSpec): PublicationObjSpec { + publicationObjSpec(_p?: PublicationObjSpec, isNode?: boolean): PublicationObjSpec | { + PublicationObjSpec: PublicationObjSpec; + } { const _j = {} as PublicationObjSpec; _o.set(_j, "pubobjtype", _p?.pubobjtype); _o.set(_j, "name", _p?.name); _o.set(_j, "pubtable", _p?.pubtable); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + PublicationObjSpec: _j + }; + } return _j; }, - createPublicationStmt(_p?: CreatePublicationStmt): CreatePublicationStmt { + createPublicationStmt(_p?: CreatePublicationStmt, isNode?: boolean): CreatePublicationStmt | { + CreatePublicationStmt: CreatePublicationStmt; + } { const _j = {} as CreatePublicationStmt; _o.set(_j, "pubname", _p?.pubname); _o.set(_j, "options", _p?.options); _o.set(_j, "pubobjects", _p?.pubobjects); _o.set(_j, "for_all_tables", _p?.for_all_tables); + if (isNode) { + return { + CreatePublicationStmt: _j + }; + } return _j; }, - alterPublicationStmt(_p?: AlterPublicationStmt): AlterPublicationStmt { + alterPublicationStmt(_p?: AlterPublicationStmt, isNode?: boolean): AlterPublicationStmt | { + AlterPublicationStmt: AlterPublicationStmt; + } { const _j = {} as AlterPublicationStmt; _o.set(_j, "pubname", _p?.pubname); _o.set(_j, "options", _p?.options); _o.set(_j, "pubobjects", _p?.pubobjects); _o.set(_j, "for_all_tables", _p?.for_all_tables); _o.set(_j, "action", _p?.action); + if (isNode) { + return { + AlterPublicationStmt: _j + }; + } return _j; }, - createSubscriptionStmt(_p?: CreateSubscriptionStmt): CreateSubscriptionStmt { + createSubscriptionStmt(_p?: CreateSubscriptionStmt, isNode?: boolean): CreateSubscriptionStmt | { + CreateSubscriptionStmt: CreateSubscriptionStmt; + } { const _j = {} as CreateSubscriptionStmt; _o.set(_j, "subname", _p?.subname); _o.set(_j, "conninfo", _p?.conninfo); _o.set(_j, "publication", _p?.publication); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateSubscriptionStmt: _j + }; + } return _j; }, - alterSubscriptionStmt(_p?: AlterSubscriptionStmt): AlterSubscriptionStmt { + alterSubscriptionStmt(_p?: AlterSubscriptionStmt, isNode?: boolean): AlterSubscriptionStmt | { + AlterSubscriptionStmt: AlterSubscriptionStmt; + } { const _j = {} as AlterSubscriptionStmt; _o.set(_j, "kind", _p?.kind); _o.set(_j, "subname", _p?.subname); _o.set(_j, "conninfo", _p?.conninfo); _o.set(_j, "publication", _p?.publication); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterSubscriptionStmt: _j + }; + } return _j; }, - dropSubscriptionStmt(_p?: DropSubscriptionStmt): DropSubscriptionStmt { + dropSubscriptionStmt(_p?: DropSubscriptionStmt, isNode?: boolean): DropSubscriptionStmt | { + DropSubscriptionStmt: DropSubscriptionStmt; + } { const _j = {} as DropSubscriptionStmt; _o.set(_j, "subname", _p?.subname); _o.set(_j, "missing_ok", _p?.missing_ok); _o.set(_j, "behavior", _p?.behavior); + if (isNode) { + return { + DropSubscriptionStmt: _j + }; + } return _j; }, - scanToken(_p?: ScanToken): ScanToken { + scanToken(_p?: ScanToken, isNode?: boolean): ScanToken | { + ScanToken: ScanToken; + } { const _j = {} as ScanToken; _o.set(_j, "start", _p?.start); _o.set(_j, "end", _p?.end); _o.set(_j, "token", _p?.token); _o.set(_j, "keywordKind", _p?.keywordKind); + if (isNode) { + return { + ScanToken: _j + }; + } return _j; } };", @@ -12636,7 +14421,517 @@ export const getEnumValue = (enumType: EnumType, key: string | number) => { * and run the pg-proto-parser generate command to regenerate this file. */ import { OverridingKind, QuerySource, SortByDir, SortByNulls, SetQuantifier, A_Expr_Kind, RoleSpecType, TableLikeOption, DefElemAction, PartitionStrategy, PartitionRangeDatumKind, RTEKind, WCOKind, GroupingSetKind, CTEMaterialize, SetOperation, ObjectType, DropBehavior, AlterTableType, GrantTargetType, VariableSetKind, ConstrType, ImportForeignSchemaType, RoleStmtType, FetchDirection, FunctionParameterMode, TransactionStmtKind, ViewCheckOption, DiscardMode, ReindexObjectType, AlterTSConfigType, PublicationObjSpecType, AlterPublicationAction, AlterSubscriptionType, OnCommitAction, ParamKind, CoercionContext, CoercionForm, BoolExprType, SubLinkType, RowCompareType, MinMaxOp, SQLValueFunctionOp, XmlExprOp, XmlOptionType, JsonEncoding, JsonFormatType, JsonConstructorType, JsonValueType, NullTestType, BoolTestType, CmdType, JoinType, AggStrategy, AggSplit, SetOpCmd, SetOpStrategy, OnConflictAction, LimitOption, LockClauseStrength, LockWaitPolicy, LockTupleMode, KeywordKind, Token } from "./enums"; -export type Node = ParseResult | ScanResult | Integer | Float | Boolean | String | BitString | List | OidList | IntList | A_Const | Alias | RangeVar | TableFunc | IntoClause | Var | Param | Aggref | GroupingFunc | WindowFunc | SubscriptingRef | FuncExpr | NamedArgExpr | OpExpr | DistinctExpr | NullIfExpr | ScalarArrayOpExpr | BoolExpr | SubLink | SubPlan | AlternativeSubPlan | FieldSelect | FieldStore | RelabelType | CoerceViaIO | ArrayCoerceExpr | ConvertRowtypeExpr | CollateExpr | CaseExpr | CaseWhen | CaseTestExpr | ArrayExpr | RowExpr | RowCompareExpr | CoalesceExpr | MinMaxExpr | SQLValueFunction | XmlExpr | JsonFormat | JsonReturning | JsonValueExpr | JsonConstructorExpr | JsonIsPredicate | NullTest | BooleanTest | CoerceToDomain | CoerceToDomainValue | SetToDefault | CurrentOfExpr | NextValueExpr | InferenceElem | TargetEntry | RangeTblRef | JoinExpr | FromExpr | OnConflictExpr | Query | TypeName | ColumnRef | ParamRef | A_Expr | TypeCast | CollateClause | RoleSpec | FuncCall | A_Star | A_Indices | A_Indirection | A_ArrayExpr | ResTarget | MultiAssignRef | SortBy | WindowDef | RangeSubselect | RangeFunction | RangeTableFunc | RangeTableFuncCol | RangeTableSample | ColumnDef | TableLikeClause | IndexElem | DefElem | LockingClause | XmlSerialize | PartitionElem | PartitionSpec | PartitionBoundSpec | PartitionRangeDatum | PartitionCmd | RangeTblEntry | RTEPermissionInfo | RangeTblFunction | TableSampleClause | WithCheckOption | SortGroupClause | GroupingSet | WindowClause | RowMarkClause | WithClause | InferClause | OnConflictClause | CTESearchClause | CTECycleClause | CommonTableExpr | MergeWhenClause | MergeAction | TriggerTransition | JsonOutput | JsonKeyValue | JsonObjectConstructor | JsonArrayConstructor | JsonArrayQueryConstructor | JsonAggConstructor | JsonObjectAgg | JsonArrayAgg | RawStmt | InsertStmt | DeleteStmt | UpdateStmt | MergeStmt | SelectStmt | SetOperationStmt | ReturnStmt | PLAssignStmt | CreateSchemaStmt | AlterTableStmt | ReplicaIdentityStmt | AlterTableCmd | AlterCollationStmt | AlterDomainStmt | GrantStmt | ObjectWithArgs | AccessPriv | GrantRoleStmt | AlterDefaultPrivilegesStmt | CopyStmt | VariableSetStmt | VariableShowStmt | CreateStmt | Constraint | CreateTableSpaceStmt | DropTableSpaceStmt | AlterTableSpaceOptionsStmt | AlterTableMoveAllStmt | CreateExtensionStmt | AlterExtensionStmt | AlterExtensionContentsStmt | CreateFdwStmt | AlterFdwStmt | CreateForeignServerStmt | AlterForeignServerStmt | CreateForeignTableStmt | CreateUserMappingStmt | AlterUserMappingStmt | DropUserMappingStmt | ImportForeignSchemaStmt | CreatePolicyStmt | AlterPolicyStmt | CreateAmStmt | CreateTrigStmt | CreateEventTrigStmt | AlterEventTrigStmt | CreatePLangStmt | CreateRoleStmt | AlterRoleStmt | AlterRoleSetStmt | DropRoleStmt | CreateSeqStmt | AlterSeqStmt | DefineStmt | CreateDomainStmt | CreateOpClassStmt | CreateOpClassItem | CreateOpFamilyStmt | AlterOpFamilyStmt | DropStmt | TruncateStmt | CommentStmt | SecLabelStmt | DeclareCursorStmt | ClosePortalStmt | FetchStmt | IndexStmt | CreateStatsStmt | StatsElem | AlterStatsStmt | CreateFunctionStmt | FunctionParameter | AlterFunctionStmt | DoStmt | InlineCodeBlock | CallStmt | CallContext | RenameStmt | AlterObjectDependsStmt | AlterObjectSchemaStmt | AlterOwnerStmt | AlterOperatorStmt | AlterTypeStmt | RuleStmt | NotifyStmt | ListenStmt | UnlistenStmt | TransactionStmt | CompositeTypeStmt | CreateEnumStmt | CreateRangeStmt | AlterEnumStmt | ViewStmt | LoadStmt | CreatedbStmt | AlterDatabaseStmt | AlterDatabaseRefreshCollStmt | AlterDatabaseSetStmt | DropdbStmt | AlterSystemStmt | ClusterStmt | VacuumStmt | VacuumRelation | ExplainStmt | CreateTableAsStmt | RefreshMatViewStmt | CheckPointStmt | DiscardStmt | LockStmt | ConstraintsSetStmt | ReindexStmt | CreateConversionStmt | CreateCastStmt | CreateTransformStmt | PrepareStmt | ExecuteStmt | DeallocateStmt | DropOwnedStmt | ReassignOwnedStmt | AlterTSDictionaryStmt | AlterTSConfigurationStmt | PublicationTable | PublicationObjSpec | CreatePublicationStmt | AlterPublicationStmt | CreateSubscriptionStmt | AlterSubscriptionStmt | DropSubscriptionStmt | ScanToken; +export type Node = { + ParseResult: ParseResult; +} | { + ScanResult: ScanResult; +} | { + Integer: Integer; +} | { + Float: Float; +} | { + Boolean: Boolean; +} | { + String: String; +} | { + BitString: BitString; +} | { + List: List; +} | { + OidList: OidList; +} | { + IntList: IntList; +} | { + A_Const: A_Const; +} | { + Alias: Alias; +} | { + RangeVar: RangeVar; +} | { + TableFunc: TableFunc; +} | { + IntoClause: IntoClause; +} | { + Var: Var; +} | { + Param: Param; +} | { + Aggref: Aggref; +} | { + GroupingFunc: GroupingFunc; +} | { + WindowFunc: WindowFunc; +} | { + SubscriptingRef: SubscriptingRef; +} | { + FuncExpr: FuncExpr; +} | { + NamedArgExpr: NamedArgExpr; +} | { + OpExpr: OpExpr; +} | { + DistinctExpr: DistinctExpr; +} | { + NullIfExpr: NullIfExpr; +} | { + ScalarArrayOpExpr: ScalarArrayOpExpr; +} | { + BoolExpr: BoolExpr; +} | { + SubLink: SubLink; +} | { + SubPlan: SubPlan; +} | { + AlternativeSubPlan: AlternativeSubPlan; +} | { + FieldSelect: FieldSelect; +} | { + FieldStore: FieldStore; +} | { + RelabelType: RelabelType; +} | { + CoerceViaIO: CoerceViaIO; +} | { + ArrayCoerceExpr: ArrayCoerceExpr; +} | { + ConvertRowtypeExpr: ConvertRowtypeExpr; +} | { + CollateExpr: CollateExpr; +} | { + CaseExpr: CaseExpr; +} | { + CaseWhen: CaseWhen; +} | { + CaseTestExpr: CaseTestExpr; +} | { + ArrayExpr: ArrayExpr; +} | { + RowExpr: RowExpr; +} | { + RowCompareExpr: RowCompareExpr; +} | { + CoalesceExpr: CoalesceExpr; +} | { + MinMaxExpr: MinMaxExpr; +} | { + SQLValueFunction: SQLValueFunction; +} | { + XmlExpr: XmlExpr; +} | { + JsonFormat: JsonFormat; +} | { + JsonReturning: JsonReturning; +} | { + JsonValueExpr: JsonValueExpr; +} | { + JsonConstructorExpr: JsonConstructorExpr; +} | { + JsonIsPredicate: JsonIsPredicate; +} | { + NullTest: NullTest; +} | { + BooleanTest: BooleanTest; +} | { + CoerceToDomain: CoerceToDomain; +} | { + CoerceToDomainValue: CoerceToDomainValue; +} | { + SetToDefault: SetToDefault; +} | { + CurrentOfExpr: CurrentOfExpr; +} | { + NextValueExpr: NextValueExpr; +} | { + InferenceElem: InferenceElem; +} | { + TargetEntry: TargetEntry; +} | { + RangeTblRef: RangeTblRef; +} | { + JoinExpr: JoinExpr; +} | { + FromExpr: FromExpr; +} | { + OnConflictExpr: OnConflictExpr; +} | { + Query: Query; +} | { + TypeName: TypeName; +} | { + ColumnRef: ColumnRef; +} | { + ParamRef: ParamRef; +} | { + A_Expr: A_Expr; +} | { + TypeCast: TypeCast; +} | { + CollateClause: CollateClause; +} | { + RoleSpec: RoleSpec; +} | { + FuncCall: FuncCall; +} | { + A_Star: A_Star; +} | { + A_Indices: A_Indices; +} | { + A_Indirection: A_Indirection; +} | { + A_ArrayExpr: A_ArrayExpr; +} | { + ResTarget: ResTarget; +} | { + MultiAssignRef: MultiAssignRef; +} | { + SortBy: SortBy; +} | { + WindowDef: WindowDef; +} | { + RangeSubselect: RangeSubselect; +} | { + RangeFunction: RangeFunction; +} | { + RangeTableFunc: RangeTableFunc; +} | { + RangeTableFuncCol: RangeTableFuncCol; +} | { + RangeTableSample: RangeTableSample; +} | { + ColumnDef: ColumnDef; +} | { + TableLikeClause: TableLikeClause; +} | { + IndexElem: IndexElem; +} | { + DefElem: DefElem; +} | { + LockingClause: LockingClause; +} | { + XmlSerialize: XmlSerialize; +} | { + PartitionElem: PartitionElem; +} | { + PartitionSpec: PartitionSpec; +} | { + PartitionBoundSpec: PartitionBoundSpec; +} | { + PartitionRangeDatum: PartitionRangeDatum; +} | { + PartitionCmd: PartitionCmd; +} | { + RangeTblEntry: RangeTblEntry; +} | { + RTEPermissionInfo: RTEPermissionInfo; +} | { + RangeTblFunction: RangeTblFunction; +} | { + TableSampleClause: TableSampleClause; +} | { + WithCheckOption: WithCheckOption; +} | { + SortGroupClause: SortGroupClause; +} | { + GroupingSet: GroupingSet; +} | { + WindowClause: WindowClause; +} | { + RowMarkClause: RowMarkClause; +} | { + WithClause: WithClause; +} | { + InferClause: InferClause; +} | { + OnConflictClause: OnConflictClause; +} | { + CTESearchClause: CTESearchClause; +} | { + CTECycleClause: CTECycleClause; +} | { + CommonTableExpr: CommonTableExpr; +} | { + MergeWhenClause: MergeWhenClause; +} | { + MergeAction: MergeAction; +} | { + TriggerTransition: TriggerTransition; +} | { + JsonOutput: JsonOutput; +} | { + JsonKeyValue: JsonKeyValue; +} | { + JsonObjectConstructor: JsonObjectConstructor; +} | { + JsonArrayConstructor: JsonArrayConstructor; +} | { + JsonArrayQueryConstructor: JsonArrayQueryConstructor; +} | { + JsonAggConstructor: JsonAggConstructor; +} | { + JsonObjectAgg: JsonObjectAgg; +} | { + JsonArrayAgg: JsonArrayAgg; +} | { + RawStmt: RawStmt; +} | { + InsertStmt: InsertStmt; +} | { + DeleteStmt: DeleteStmt; +} | { + UpdateStmt: UpdateStmt; +} | { + MergeStmt: MergeStmt; +} | { + SelectStmt: SelectStmt; +} | { + SetOperationStmt: SetOperationStmt; +} | { + ReturnStmt: ReturnStmt; +} | { + PLAssignStmt: PLAssignStmt; +} | { + CreateSchemaStmt: CreateSchemaStmt; +} | { + AlterTableStmt: AlterTableStmt; +} | { + ReplicaIdentityStmt: ReplicaIdentityStmt; +} | { + AlterTableCmd: AlterTableCmd; +} | { + AlterCollationStmt: AlterCollationStmt; +} | { + AlterDomainStmt: AlterDomainStmt; +} | { + GrantStmt: GrantStmt; +} | { + ObjectWithArgs: ObjectWithArgs; +} | { + AccessPriv: AccessPriv; +} | { + GrantRoleStmt: GrantRoleStmt; +} | { + AlterDefaultPrivilegesStmt: AlterDefaultPrivilegesStmt; +} | { + CopyStmt: CopyStmt; +} | { + VariableSetStmt: VariableSetStmt; +} | { + VariableShowStmt: VariableShowStmt; +} | { + CreateStmt: CreateStmt; +} | { + Constraint: Constraint; +} | { + CreateTableSpaceStmt: CreateTableSpaceStmt; +} | { + DropTableSpaceStmt: DropTableSpaceStmt; +} | { + AlterTableSpaceOptionsStmt: AlterTableSpaceOptionsStmt; +} | { + AlterTableMoveAllStmt: AlterTableMoveAllStmt; +} | { + CreateExtensionStmt: CreateExtensionStmt; +} | { + AlterExtensionStmt: AlterExtensionStmt; +} | { + AlterExtensionContentsStmt: AlterExtensionContentsStmt; +} | { + CreateFdwStmt: CreateFdwStmt; +} | { + AlterFdwStmt: AlterFdwStmt; +} | { + CreateForeignServerStmt: CreateForeignServerStmt; +} | { + AlterForeignServerStmt: AlterForeignServerStmt; +} | { + CreateForeignTableStmt: CreateForeignTableStmt; +} | { + CreateUserMappingStmt: CreateUserMappingStmt; +} | { + AlterUserMappingStmt: AlterUserMappingStmt; +} | { + DropUserMappingStmt: DropUserMappingStmt; +} | { + ImportForeignSchemaStmt: ImportForeignSchemaStmt; +} | { + CreatePolicyStmt: CreatePolicyStmt; +} | { + AlterPolicyStmt: AlterPolicyStmt; +} | { + CreateAmStmt: CreateAmStmt; +} | { + CreateTrigStmt: CreateTrigStmt; +} | { + CreateEventTrigStmt: CreateEventTrigStmt; +} | { + AlterEventTrigStmt: AlterEventTrigStmt; +} | { + CreatePLangStmt: CreatePLangStmt; +} | { + CreateRoleStmt: CreateRoleStmt; +} | { + AlterRoleStmt: AlterRoleStmt; +} | { + AlterRoleSetStmt: AlterRoleSetStmt; +} | { + DropRoleStmt: DropRoleStmt; +} | { + CreateSeqStmt: CreateSeqStmt; +} | { + AlterSeqStmt: AlterSeqStmt; +} | { + DefineStmt: DefineStmt; +} | { + CreateDomainStmt: CreateDomainStmt; +} | { + CreateOpClassStmt: CreateOpClassStmt; +} | { + CreateOpClassItem: CreateOpClassItem; +} | { + CreateOpFamilyStmt: CreateOpFamilyStmt; +} | { + AlterOpFamilyStmt: AlterOpFamilyStmt; +} | { + DropStmt: DropStmt; +} | { + TruncateStmt: TruncateStmt; +} | { + CommentStmt: CommentStmt; +} | { + SecLabelStmt: SecLabelStmt; +} | { + DeclareCursorStmt: DeclareCursorStmt; +} | { + ClosePortalStmt: ClosePortalStmt; +} | { + FetchStmt: FetchStmt; +} | { + IndexStmt: IndexStmt; +} | { + CreateStatsStmt: CreateStatsStmt; +} | { + StatsElem: StatsElem; +} | { + AlterStatsStmt: AlterStatsStmt; +} | { + CreateFunctionStmt: CreateFunctionStmt; +} | { + FunctionParameter: FunctionParameter; +} | { + AlterFunctionStmt: AlterFunctionStmt; +} | { + DoStmt: DoStmt; +} | { + InlineCodeBlock: InlineCodeBlock; +} | { + CallStmt: CallStmt; +} | { + CallContext: CallContext; +} | { + RenameStmt: RenameStmt; +} | { + AlterObjectDependsStmt: AlterObjectDependsStmt; +} | { + AlterObjectSchemaStmt: AlterObjectSchemaStmt; +} | { + AlterOwnerStmt: AlterOwnerStmt; +} | { + AlterOperatorStmt: AlterOperatorStmt; +} | { + AlterTypeStmt: AlterTypeStmt; +} | { + RuleStmt: RuleStmt; +} | { + NotifyStmt: NotifyStmt; +} | { + ListenStmt: ListenStmt; +} | { + UnlistenStmt: UnlistenStmt; +} | { + TransactionStmt: TransactionStmt; +} | { + CompositeTypeStmt: CompositeTypeStmt; +} | { + CreateEnumStmt: CreateEnumStmt; +} | { + CreateRangeStmt: CreateRangeStmt; +} | { + AlterEnumStmt: AlterEnumStmt; +} | { + ViewStmt: ViewStmt; +} | { + LoadStmt: LoadStmt; +} | { + CreatedbStmt: CreatedbStmt; +} | { + AlterDatabaseStmt: AlterDatabaseStmt; +} | { + AlterDatabaseRefreshCollStmt: AlterDatabaseRefreshCollStmt; +} | { + AlterDatabaseSetStmt: AlterDatabaseSetStmt; +} | { + DropdbStmt: DropdbStmt; +} | { + AlterSystemStmt: AlterSystemStmt; +} | { + ClusterStmt: ClusterStmt; +} | { + VacuumStmt: VacuumStmt; +} | { + VacuumRelation: VacuumRelation; +} | { + ExplainStmt: ExplainStmt; +} | { + CreateTableAsStmt: CreateTableAsStmt; +} | { + RefreshMatViewStmt: RefreshMatViewStmt; +} | { + CheckPointStmt: CheckPointStmt; +} | { + DiscardStmt: DiscardStmt; +} | { + LockStmt: LockStmt; +} | { + ConstraintsSetStmt: ConstraintsSetStmt; +} | { + ReindexStmt: ReindexStmt; +} | { + CreateConversionStmt: CreateConversionStmt; +} | { + CreateCastStmt: CreateCastStmt; +} | { + CreateTransformStmt: CreateTransformStmt; +} | { + PrepareStmt: PrepareStmt; +} | { + ExecuteStmt: ExecuteStmt; +} | { + DeallocateStmt: DeallocateStmt; +} | { + DropOwnedStmt: DropOwnedStmt; +} | { + ReassignOwnedStmt: ReassignOwnedStmt; +} | { + AlterTSDictionaryStmt: AlterTSDictionaryStmt; +} | { + AlterTSConfigurationStmt: AlterTSConfigurationStmt; +} | { + PublicationTable: PublicationTable; +} | { + PublicationObjSpec: PublicationObjSpec; +} | { + CreatePublicationStmt: CreatePublicationStmt; +} | { + AlterPublicationStmt: AlterPublicationStmt; +} | { + CreateSubscriptionStmt: CreateSubscriptionStmt; +} | { + AlterSubscriptionStmt: AlterSubscriptionStmt; +} | { + DropSubscriptionStmt: DropSubscriptionStmt; +} | { + ScanToken: ScanToken; +}; export interface ParseResult { version?: number; stmts?: RawStmt[]; @@ -14580,61 +16875,133 @@ export type Token = "NUL" | "ASCII_36" | "ASCII_37" | "ASCII_40" | "ASCII_41" | * and run the pg-proto-parser generate command to regenerate this file. */ import _o from "./path-obj"; -import { ParseResult, ScanResult, Integer, Float, Boolean, String, BitString, List, OidList, IntList, A_Const, Alias, RangeVar, TableFunc, IntoClause, Var, Param, Aggref, GroupingFunc, WindowFunc, SubscriptingRef, FuncExpr, NamedArgExpr, OpExpr, DistinctExpr, NullIfExpr, ScalarArrayOpExpr, BoolExpr, SubLink, SubPlan, AlternativeSubPlan, FieldSelect, FieldStore, RelabelType, CoerceViaIO, ArrayCoerceExpr, ConvertRowtypeExpr, CollateExpr, CaseExpr, CaseWhen, CaseTestExpr, ArrayExpr, RowExpr, RowCompareExpr, CoalesceExpr, MinMaxExpr, SQLValueFunction, XmlExpr, JsonFormat, JsonReturning, JsonValueExpr, JsonConstructorExpr, JsonIsPredicate, NullTest, BooleanTest, CoerceToDomain, CoerceToDomainValue, SetToDefault, CurrentOfExpr, NextValueExpr, InferenceElem, TargetEntry, RangeTblRef, JoinExpr, FromExpr, OnConflictExpr, Query, TypeName, ColumnRef, ParamRef, A_Expr, TypeCast, CollateClause, RoleSpec, FuncCall, A_Star, A_Indices, A_Indirection, A_ArrayExpr, ResTarget, MultiAssignRef, SortBy, WindowDef, RangeSubselect, RangeFunction, RangeTableFunc, RangeTableFuncCol, RangeTableSample, ColumnDef, TableLikeClause, IndexElem, DefElem, LockingClause, XmlSerialize, PartitionElem, PartitionSpec, PartitionBoundSpec, PartitionRangeDatum, PartitionCmd, RangeTblEntry, RTEPermissionInfo, RangeTblFunction, TableSampleClause, WithCheckOption, SortGroupClause, GroupingSet, WindowClause, RowMarkClause, WithClause, InferClause, OnConflictClause, CTESearchClause, CTECycleClause, CommonTableExpr, MergeWhenClause, MergeAction, TriggerTransition, JsonOutput, JsonKeyValue, JsonObjectConstructor, JsonArrayConstructor, JsonArrayQueryConstructor, JsonAggConstructor, JsonObjectAgg, JsonArrayAgg, RawStmt, InsertStmt, DeleteStmt, UpdateStmt, MergeStmt, SelectStmt, SetOperationStmt, ReturnStmt, PLAssignStmt, CreateSchemaStmt, AlterTableStmt, ReplicaIdentityStmt, AlterTableCmd, AlterCollationStmt, AlterDomainStmt, GrantStmt, ObjectWithArgs, AccessPriv, GrantRoleStmt, AlterDefaultPrivilegesStmt, CopyStmt, VariableSetStmt, VariableShowStmt, CreateStmt, Constraint, CreateTableSpaceStmt, DropTableSpaceStmt, AlterTableSpaceOptionsStmt, AlterTableMoveAllStmt, CreateExtensionStmt, AlterExtensionStmt, AlterExtensionContentsStmt, CreateFdwStmt, AlterFdwStmt, CreateForeignServerStmt, AlterForeignServerStmt, CreateForeignTableStmt, CreateUserMappingStmt, AlterUserMappingStmt, DropUserMappingStmt, ImportForeignSchemaStmt, CreatePolicyStmt, AlterPolicyStmt, CreateAmStmt, CreateTrigStmt, CreateEventTrigStmt, AlterEventTrigStmt, CreatePLangStmt, CreateRoleStmt, AlterRoleStmt, AlterRoleSetStmt, DropRoleStmt, CreateSeqStmt, AlterSeqStmt, DefineStmt, CreateDomainStmt, CreateOpClassStmt, CreateOpClassItem, CreateOpFamilyStmt, AlterOpFamilyStmt, DropStmt, TruncateStmt, CommentStmt, SecLabelStmt, DeclareCursorStmt, ClosePortalStmt, FetchStmt, IndexStmt, CreateStatsStmt, StatsElem, AlterStatsStmt, CreateFunctionStmt, FunctionParameter, AlterFunctionStmt, DoStmt, InlineCodeBlock, CallStmt, CallContext, RenameStmt, AlterObjectDependsStmt, AlterObjectSchemaStmt, AlterOwnerStmt, AlterOperatorStmt, AlterTypeStmt, RuleStmt, NotifyStmt, ListenStmt, UnlistenStmt, TransactionStmt, CompositeTypeStmt, CreateEnumStmt, CreateRangeStmt, AlterEnumStmt, ViewStmt, LoadStmt, CreatedbStmt, AlterDatabaseStmt, AlterDatabaseRefreshCollStmt, AlterDatabaseSetStmt, DropdbStmt, AlterSystemStmt, ClusterStmt, VacuumStmt, VacuumRelation, ExplainStmt, CreateTableAsStmt, RefreshMatViewStmt, CheckPointStmt, DiscardStmt, LockStmt, ConstraintsSetStmt, ReindexStmt, CreateConversionStmt, CreateCastStmt, CreateTransformStmt, PrepareStmt, ExecuteStmt, DeallocateStmt, DropOwnedStmt, ReassignOwnedStmt, AlterTSDictionaryStmt, AlterTSConfigurationStmt, PublicationTable, PublicationObjSpec, CreatePublicationStmt, AlterPublicationStmt, CreateSubscriptionStmt, AlterSubscriptionStmt, DropSubscriptionStmt, ScanToken } from "./wrapped"; +import { ParseResult, ScanResult, Integer, Float, Boolean, String, BitString, List, OidList, IntList, A_Const, Alias, RangeVar, TableFunc, IntoClause, Var, Param, Aggref, GroupingFunc, WindowFunc, SubscriptingRef, FuncExpr, NamedArgExpr, OpExpr, DistinctExpr, NullIfExpr, ScalarArrayOpExpr, BoolExpr, SubLink, SubPlan, AlternativeSubPlan, FieldSelect, FieldStore, RelabelType, CoerceViaIO, ArrayCoerceExpr, ConvertRowtypeExpr, CollateExpr, CaseExpr, CaseWhen, CaseTestExpr, ArrayExpr, RowExpr, RowCompareExpr, CoalesceExpr, MinMaxExpr, SQLValueFunction, XmlExpr, JsonFormat, JsonReturning, JsonValueExpr, JsonConstructorExpr, JsonIsPredicate, NullTest, BooleanTest, CoerceToDomain, CoerceToDomainValue, SetToDefault, CurrentOfExpr, NextValueExpr, InferenceElem, TargetEntry, RangeTblRef, JoinExpr, FromExpr, OnConflictExpr, Query, TypeName, ColumnRef, ParamRef, A_Expr, TypeCast, CollateClause, RoleSpec, FuncCall, A_Star, A_Indices, A_Indirection, A_ArrayExpr, ResTarget, MultiAssignRef, SortBy, WindowDef, RangeSubselect, RangeFunction, RangeTableFunc, RangeTableFuncCol, RangeTableSample, ColumnDef, TableLikeClause, IndexElem, DefElem, LockingClause, XmlSerialize, PartitionElem, PartitionSpec, PartitionBoundSpec, PartitionRangeDatum, PartitionCmd, RangeTblEntry, RTEPermissionInfo, RangeTblFunction, TableSampleClause, WithCheckOption, SortGroupClause, GroupingSet, WindowClause, RowMarkClause, WithClause, InferClause, OnConflictClause, CTESearchClause, CTECycleClause, CommonTableExpr, MergeWhenClause, MergeAction, TriggerTransition, JsonOutput, JsonKeyValue, JsonObjectConstructor, JsonArrayConstructor, JsonArrayQueryConstructor, JsonAggConstructor, JsonObjectAgg, JsonArrayAgg, RawStmt, InsertStmt, DeleteStmt, UpdateStmt, MergeStmt, SelectStmt, SetOperationStmt, ReturnStmt, PLAssignStmt, CreateSchemaStmt, AlterTableStmt, ReplicaIdentityStmt, AlterTableCmd, AlterCollationStmt, AlterDomainStmt, GrantStmt, ObjectWithArgs, AccessPriv, GrantRoleStmt, AlterDefaultPrivilegesStmt, CopyStmt, VariableSetStmt, VariableShowStmt, CreateStmt, Constraint, CreateTableSpaceStmt, DropTableSpaceStmt, AlterTableSpaceOptionsStmt, AlterTableMoveAllStmt, CreateExtensionStmt, AlterExtensionStmt, AlterExtensionContentsStmt, CreateFdwStmt, AlterFdwStmt, CreateForeignServerStmt, AlterForeignServerStmt, CreateForeignTableStmt, CreateUserMappingStmt, AlterUserMappingStmt, DropUserMappingStmt, ImportForeignSchemaStmt, CreatePolicyStmt, AlterPolicyStmt, CreateAmStmt, CreateTrigStmt, CreateEventTrigStmt, AlterEventTrigStmt, CreatePLangStmt, CreateRoleStmt, AlterRoleStmt, AlterRoleSetStmt, DropRoleStmt, CreateSeqStmt, AlterSeqStmt, DefineStmt, CreateDomainStmt, CreateOpClassStmt, CreateOpClassItem, CreateOpFamilyStmt, AlterOpFamilyStmt, DropStmt, TruncateStmt, CommentStmt, SecLabelStmt, DeclareCursorStmt, ClosePortalStmt, FetchStmt, IndexStmt, CreateStatsStmt, StatsElem, AlterStatsStmt, CreateFunctionStmt, FunctionParameter, AlterFunctionStmt, DoStmt, InlineCodeBlock, CallStmt, CallContext, RenameStmt, AlterObjectDependsStmt, AlterObjectSchemaStmt, AlterOwnerStmt, AlterOperatorStmt, AlterTypeStmt, RuleStmt, NotifyStmt, ListenStmt, UnlistenStmt, TransactionStmt, CompositeTypeStmt, CreateEnumStmt, CreateRangeStmt, AlterEnumStmt, ViewStmt, LoadStmt, CreatedbStmt, AlterDatabaseStmt, AlterDatabaseRefreshCollStmt, AlterDatabaseSetStmt, DropdbStmt, AlterSystemStmt, ClusterStmt, VacuumStmt, VacuumRelation, ExplainStmt, CreateTableAsStmt, RefreshMatViewStmt, CheckPointStmt, DiscardStmt, LockStmt, ConstraintsSetStmt, ReindexStmt, CreateConversionStmt, CreateCastStmt, CreateTransformStmt, PrepareStmt, ExecuteStmt, DeallocateStmt, DropOwnedStmt, ReassignOwnedStmt, AlterTSDictionaryStmt, AlterTSConfigurationStmt, PublicationTable, PublicationObjSpec, CreatePublicationStmt, AlterPublicationStmt, CreateSubscriptionStmt, AlterSubscriptionStmt, DropSubscriptionStmt, ScanToken } from "./types"; export default { - parseResult(_p?: ParseResult): ParseResult { + parseResult(_p?: ParseResult, isNode?: boolean): ParseResult | { + ParseResult: ParseResult; + } { const _j = {} as ParseResult; _o.set(_j, "version", _p?.version); _o.set(_j, "stmts", _p?.stmts); + if (isNode) { + return { + ParseResult: _j + }; + } return _j; }, - scanResult(_p?: ScanResult): ScanResult { + scanResult(_p?: ScanResult, isNode?: boolean): ScanResult | { + ScanResult: ScanResult; + } { const _j = {} as ScanResult; _o.set(_j, "version", _p?.version); _o.set(_j, "tokens", _p?.tokens); + if (isNode) { + return { + ScanResult: _j + }; + } return _j; }, - integer(_p?: Integer): Integer { + integer(_p?: Integer, isNode?: boolean): Integer | { + Integer: Integer; + } { const _j = {} as Integer; _o.set(_j, "ival", _p?.ival); + if (isNode) { + return { + Integer: _j + }; + } return _j; }, - float(_p?: Float): Float { + float(_p?: Float, isNode?: boolean): Float | { + Float: Float; + } { const _j = {} as Float; _o.set(_j, "fval", _p?.fval); + if (isNode) { + return { + Float: _j + }; + } return _j; }, - boolean(_p?: Boolean): Boolean { + boolean(_p?: Boolean, isNode?: boolean): Boolean | { + Boolean: Boolean; + } { const _j = {} as Boolean; _o.set(_j, "boolval", _p?.boolval); + if (isNode) { + return { + Boolean: _j + }; + } return _j; }, - string(_p?: String): String { + string(_p?: String, isNode?: boolean): String | { + String: String; + } { const _j = {} as String; _o.set(_j, "sval", _p?.sval); + if (isNode) { + return { + String: _j + }; + } return _j; }, - bitString(_p?: BitString): BitString { + bitString(_p?: BitString, isNode?: boolean): BitString | { + BitString: BitString; + } { const _j = {} as BitString; _o.set(_j, "bsval", _p?.bsval); + if (isNode) { + return { + BitString: _j + }; + } return _j; }, - list(_p?: List): List { + list(_p?: List, isNode?: boolean): List | { + List: List; + } { const _j = {} as List; _o.set(_j, "items", _p?.items); + if (isNode) { + return { + List: _j + }; + } return _j; }, - oidList(_p?: OidList): OidList { + oidList(_p?: OidList, isNode?: boolean): OidList | { + OidList: OidList; + } { const _j = {} as OidList; _o.set(_j, "items", _p?.items); + if (isNode) { + return { + OidList: _j + }; + } return _j; }, - intList(_p?: IntList): IntList { + intList(_p?: IntList, isNode?: boolean): IntList | { + IntList: IntList; + } { const _j = {} as IntList; _o.set(_j, "items", _p?.items); + if (isNode) { + return { + IntList: _j + }; + } return _j; }, - aConst(_p?: A_Const): A_Const { + aConst(_p?: A_Const, isNode?: boolean): A_Const | { + A_Const: A_Const; + } { const _j = {} as A_Const; _o.set(_j, "ival", _p?.ival); _o.set(_j, "fval", _p?.fval); @@ -14643,15 +17010,29 @@ export default { _o.set(_j, "bsval", _p?.bsval); _o.set(_j, "isnull", _p?.isnull); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + A_Const: _j + }; + } return _j; }, - alias(_p?: Alias): Alias { + alias(_p?: Alias, isNode?: boolean): Alias | { + Alias: Alias; + } { const _j = {} as Alias; _o.set(_j, "aliasname", _p?.aliasname); _o.set(_j, "colnames", _p?.colnames); + if (isNode) { + return { + Alias: _j + }; + } return _j; }, - rangeVar(_p?: RangeVar): RangeVar { + rangeVar(_p?: RangeVar, isNode?: boolean): RangeVar | { + RangeVar: RangeVar; + } { const _j = {} as RangeVar; _o.set(_j, "catalogname", _p?.catalogname); _o.set(_j, "schemaname", _p?.schemaname); @@ -14660,9 +17041,16 @@ export default { _o.set(_j, "relpersistence", _p?.relpersistence); _o.set(_j, "alias", _p?.alias); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RangeVar: _j + }; + } return _j; }, - tableFunc(_p?: TableFunc): TableFunc { + tableFunc(_p?: TableFunc, isNode?: boolean): TableFunc | { + TableFunc: TableFunc; + } { const _j = {} as TableFunc; _o.set(_j, "ns_uris", _p?.ns_uris); _o.set(_j, "ns_names", _p?.ns_names); @@ -14677,9 +17065,16 @@ export default { _o.set(_j, "notnulls", _p?.notnulls); _o.set(_j, "ordinalitycol", _p?.ordinalitycol); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + TableFunc: _j + }; + } return _j; }, - intoClause(_p?: IntoClause): IntoClause { + intoClause(_p?: IntoClause, isNode?: boolean): IntoClause | { + IntoClause: IntoClause; + } { const _j = {} as IntoClause; _o.set(_j, "rel", _p?.rel); _o.set(_j, "colNames", _p?.colNames); @@ -14689,9 +17084,16 @@ export default { _o.set(_j, "tableSpaceName", _p?.tableSpaceName); _o.set(_j, "viewQuery", _p?.viewQuery); _o.set(_j, "skipData", _p?.skipData); + if (isNode) { + return { + IntoClause: _j + }; + } return _j; }, - var(_p?: Var): Var { + var(_p?: Var, isNode?: boolean): Var | { + Var: Var; + } { const _j = {} as Var; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "varno", _p?.varno); @@ -14702,9 +17104,16 @@ export default { _o.set(_j, "varnullingrels", _p?.varnullingrels); _o.set(_j, "varlevelsup", _p?.varlevelsup); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + Var: _j + }; + } return _j; }, - param(_p?: Param): Param { + param(_p?: Param, isNode?: boolean): Param | { + Param: Param; + } { const _j = {} as Param; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "paramkind", _p?.paramkind); @@ -14713,9 +17122,16 @@ export default { _o.set(_j, "paramtypmod", _p?.paramtypmod); _o.set(_j, "paramcollid", _p?.paramcollid); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + Param: _j + }; + } return _j; }, - aggref(_p?: Aggref): Aggref { + aggref(_p?: Aggref, isNode?: boolean): Aggref | { + Aggref: Aggref; + } { const _j = {} as Aggref; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "aggfnoid", _p?.aggfnoid); @@ -14736,18 +17152,32 @@ export default { _o.set(_j, "aggno", _p?.aggno); _o.set(_j, "aggtransno", _p?.aggtransno); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + Aggref: _j + }; + } return _j; }, - groupingFunc(_p?: GroupingFunc): GroupingFunc { + groupingFunc(_p?: GroupingFunc, isNode?: boolean): GroupingFunc | { + GroupingFunc: GroupingFunc; + } { const _j = {} as GroupingFunc; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "args", _p?.args); _o.set(_j, "refs", _p?.refs); _o.set(_j, "agglevelsup", _p?.agglevelsup); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + GroupingFunc: _j + }; + } return _j; }, - windowFunc(_p?: WindowFunc): WindowFunc { + windowFunc(_p?: WindowFunc, isNode?: boolean): WindowFunc | { + WindowFunc: WindowFunc; + } { const _j = {} as WindowFunc; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "winfnoid", _p?.winfnoid); @@ -14760,9 +17190,16 @@ export default { _o.set(_j, "winstar", _p?.winstar); _o.set(_j, "winagg", _p?.winagg); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + WindowFunc: _j + }; + } return _j; }, - subscriptingRef(_p?: SubscriptingRef): SubscriptingRef { + subscriptingRef(_p?: SubscriptingRef, isNode?: boolean): SubscriptingRef | { + SubscriptingRef: SubscriptingRef; + } { const _j = {} as SubscriptingRef; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "refcontainertype", _p?.refcontainertype); @@ -14774,9 +17211,16 @@ export default { _o.set(_j, "reflowerindexpr", _p?.reflowerindexpr); _o.set(_j, "refexpr", _p?.refexpr); _o.set(_j, "refassgnexpr", _p?.refassgnexpr); + if (isNode) { + return { + SubscriptingRef: _j + }; + } return _j; }, - funcExpr(_p?: FuncExpr): FuncExpr { + funcExpr(_p?: FuncExpr, isNode?: boolean): FuncExpr | { + FuncExpr: FuncExpr; + } { const _j = {} as FuncExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "funcid", _p?.funcid); @@ -14788,18 +17232,32 @@ export default { _o.set(_j, "inputcollid", _p?.inputcollid); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + FuncExpr: _j + }; + } return _j; }, - namedArgExpr(_p?: NamedArgExpr): NamedArgExpr { + namedArgExpr(_p?: NamedArgExpr, isNode?: boolean): NamedArgExpr | { + NamedArgExpr: NamedArgExpr; + } { const _j = {} as NamedArgExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); _o.set(_j, "name", _p?.name); _o.set(_j, "argnumber", _p?.argnumber); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + NamedArgExpr: _j + }; + } return _j; }, - opExpr(_p?: OpExpr): OpExpr { + opExpr(_p?: OpExpr, isNode?: boolean): OpExpr | { + OpExpr: OpExpr; + } { const _j = {} as OpExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "opno", _p?.opno); @@ -14809,9 +17267,16 @@ export default { _o.set(_j, "inputcollid", _p?.inputcollid); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + OpExpr: _j + }; + } return _j; }, - distinctExpr(_p?: DistinctExpr): DistinctExpr { + distinctExpr(_p?: DistinctExpr, isNode?: boolean): DistinctExpr | { + DistinctExpr: DistinctExpr; + } { const _j = {} as DistinctExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "opno", _p?.opno); @@ -14821,9 +17286,16 @@ export default { _o.set(_j, "inputcollid", _p?.inputcollid); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + DistinctExpr: _j + }; + } return _j; }, - nullIfExpr(_p?: NullIfExpr): NullIfExpr { + nullIfExpr(_p?: NullIfExpr, isNode?: boolean): NullIfExpr | { + NullIfExpr: NullIfExpr; + } { const _j = {} as NullIfExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "opno", _p?.opno); @@ -14833,9 +17305,16 @@ export default { _o.set(_j, "inputcollid", _p?.inputcollid); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + NullIfExpr: _j + }; + } return _j; }, - scalarArrayOpExpr(_p?: ScalarArrayOpExpr): ScalarArrayOpExpr { + scalarArrayOpExpr(_p?: ScalarArrayOpExpr, isNode?: boolean): ScalarArrayOpExpr | { + ScalarArrayOpExpr: ScalarArrayOpExpr; + } { const _j = {} as ScalarArrayOpExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "opno", _p?.opno); @@ -14843,17 +17322,31 @@ export default { _o.set(_j, "inputcollid", _p?.inputcollid); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ScalarArrayOpExpr: _j + }; + } return _j; }, - boolExpr(_p?: BoolExpr): BoolExpr { + boolExpr(_p?: BoolExpr, isNode?: boolean): BoolExpr | { + BoolExpr: BoolExpr; + } { const _j = {} as BoolExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "boolop", _p?.boolop); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + BoolExpr: _j + }; + } return _j; }, - subLink(_p?: SubLink): SubLink { + subLink(_p?: SubLink, isNode?: boolean): SubLink | { + SubLink: SubLink; + } { const _j = {} as SubLink; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "subLinkType", _p?.subLinkType); @@ -14862,9 +17355,16 @@ export default { _o.set(_j, "operName", _p?.operName); _o.set(_j, "subselect", _p?.subselect); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + SubLink: _j + }; + } return _j; }, - subPlan(_p?: SubPlan): SubPlan { + subPlan(_p?: SubPlan, isNode?: boolean): SubPlan | { + SubPlan: SubPlan; + } { const _j = {} as SubPlan; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "subLinkType", _p?.subLinkType); @@ -14883,15 +17383,29 @@ export default { _o.set(_j, "args", _p?.args); _o.set(_j, "startup_cost", _p?.startup_cost); _o.set(_j, "per_call_cost", _p?.per_call_cost); + if (isNode) { + return { + SubPlan: _j + }; + } return _j; }, - alternativeSubPlan(_p?: AlternativeSubPlan): AlternativeSubPlan { + alternativeSubPlan(_p?: AlternativeSubPlan, isNode?: boolean): AlternativeSubPlan | { + AlternativeSubPlan: AlternativeSubPlan; + } { const _j = {} as AlternativeSubPlan; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "subplans", _p?.subplans); + if (isNode) { + return { + AlternativeSubPlan: _j + }; + } return _j; }, - fieldSelect(_p?: FieldSelect): FieldSelect { + fieldSelect(_p?: FieldSelect, isNode?: boolean): FieldSelect | { + FieldSelect: FieldSelect; + } { const _j = {} as FieldSelect; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); @@ -14899,18 +17413,32 @@ export default { _o.set(_j, "resulttype", _p?.resulttype); _o.set(_j, "resulttypmod", _p?.resulttypmod); _o.set(_j, "resultcollid", _p?.resultcollid); + if (isNode) { + return { + FieldSelect: _j + }; + } return _j; }, - fieldStore(_p?: FieldStore): FieldStore { + fieldStore(_p?: FieldStore, isNode?: boolean): FieldStore | { + FieldStore: FieldStore; + } { const _j = {} as FieldStore; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); _o.set(_j, "newvals", _p?.newvals); _o.set(_j, "fieldnums", _p?.fieldnums); _o.set(_j, "resulttype", _p?.resulttype); + if (isNode) { + return { + FieldStore: _j + }; + } return _j; }, - relabelType(_p?: RelabelType): RelabelType { + relabelType(_p?: RelabelType, isNode?: boolean): RelabelType | { + RelabelType: RelabelType; + } { const _j = {} as RelabelType; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); @@ -14919,9 +17447,16 @@ export default { _o.set(_j, "resultcollid", _p?.resultcollid); _o.set(_j, "relabelformat", _p?.relabelformat); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RelabelType: _j + }; + } return _j; }, - coerceViaio(_p?: CoerceViaIO): CoerceViaIO { + coerceViaio(_p?: CoerceViaIO, isNode?: boolean): CoerceViaIO | { + CoerceViaIO: CoerceViaIO; + } { const _j = {} as CoerceViaIO; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); @@ -14929,9 +17464,16 @@ export default { _o.set(_j, "resultcollid", _p?.resultcollid); _o.set(_j, "coerceformat", _p?.coerceformat); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CoerceViaIO: _j + }; + } return _j; }, - arrayCoerceExpr(_p?: ArrayCoerceExpr): ArrayCoerceExpr { + arrayCoerceExpr(_p?: ArrayCoerceExpr, isNode?: boolean): ArrayCoerceExpr | { + ArrayCoerceExpr: ArrayCoerceExpr; + } { const _j = {} as ArrayCoerceExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); @@ -14941,26 +17483,47 @@ export default { _o.set(_j, "resultcollid", _p?.resultcollid); _o.set(_j, "coerceformat", _p?.coerceformat); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ArrayCoerceExpr: _j + }; + } return _j; }, - convertRowtypeExpr(_p?: ConvertRowtypeExpr): ConvertRowtypeExpr { + convertRowtypeExpr(_p?: ConvertRowtypeExpr, isNode?: boolean): ConvertRowtypeExpr | { + ConvertRowtypeExpr: ConvertRowtypeExpr; + } { const _j = {} as ConvertRowtypeExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); _o.set(_j, "resulttype", _p?.resulttype); _o.set(_j, "convertformat", _p?.convertformat); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ConvertRowtypeExpr: _j + }; + } return _j; }, - collateExpr(_p?: CollateExpr): CollateExpr { + collateExpr(_p?: CollateExpr, isNode?: boolean): CollateExpr | { + CollateExpr: CollateExpr; + } { const _j = {} as CollateExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); _o.set(_j, "collOid", _p?.collOid); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CollateExpr: _j + }; + } return _j; }, - caseExpr(_p?: CaseExpr): CaseExpr { + caseExpr(_p?: CaseExpr, isNode?: boolean): CaseExpr | { + CaseExpr: CaseExpr; + } { const _j = {} as CaseExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "casetype", _p?.casetype); @@ -14969,25 +17532,46 @@ export default { _o.set(_j, "args", _p?.args); _o.set(_j, "defresult", _p?.defresult); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CaseExpr: _j + }; + } return _j; }, - caseWhen(_p?: CaseWhen): CaseWhen { + caseWhen(_p?: CaseWhen, isNode?: boolean): CaseWhen | { + CaseWhen: CaseWhen; + } { const _j = {} as CaseWhen; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "expr", _p?.expr); _o.set(_j, "result", _p?.result); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CaseWhen: _j + }; + } return _j; }, - caseTestExpr(_p?: CaseTestExpr): CaseTestExpr { + caseTestExpr(_p?: CaseTestExpr, isNode?: boolean): CaseTestExpr | { + CaseTestExpr: CaseTestExpr; + } { const _j = {} as CaseTestExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "typeId", _p?.typeId); _o.set(_j, "typeMod", _p?.typeMod); _o.set(_j, "collation", _p?.collation); + if (isNode) { + return { + CaseTestExpr: _j + }; + } return _j; }, - arrayExpr(_p?: ArrayExpr): ArrayExpr { + arrayExpr(_p?: ArrayExpr, isNode?: boolean): ArrayExpr | { + ArrayExpr: ArrayExpr; + } { const _j = {} as ArrayExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "array_typeid", _p?.array_typeid); @@ -14996,9 +17580,16 @@ export default { _o.set(_j, "elements", _p?.elements); _o.set(_j, "multidims", _p?.multidims); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ArrayExpr: _j + }; + } return _j; }, - rowExpr(_p?: RowExpr): RowExpr { + rowExpr(_p?: RowExpr, isNode?: boolean): RowExpr | { + RowExpr: RowExpr; + } { const _j = {} as RowExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "args", _p?.args); @@ -15006,9 +17597,16 @@ export default { _o.set(_j, "row_format", _p?.row_format); _o.set(_j, "colnames", _p?.colnames); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RowExpr: _j + }; + } return _j; }, - rowCompareExpr(_p?: RowCompareExpr): RowCompareExpr { + rowCompareExpr(_p?: RowCompareExpr, isNode?: boolean): RowCompareExpr | { + RowCompareExpr: RowCompareExpr; + } { const _j = {} as RowCompareExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "rctype", _p?.rctype); @@ -15017,18 +17615,32 @@ export default { _o.set(_j, "inputcollids", _p?.inputcollids); _o.set(_j, "largs", _p?.largs); _o.set(_j, "rargs", _p?.rargs); + if (isNode) { + return { + RowCompareExpr: _j + }; + } return _j; }, - coalesceExpr(_p?: CoalesceExpr): CoalesceExpr { + coalesceExpr(_p?: CoalesceExpr, isNode?: boolean): CoalesceExpr | { + CoalesceExpr: CoalesceExpr; + } { const _j = {} as CoalesceExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "coalescetype", _p?.coalescetype); _o.set(_j, "coalescecollid", _p?.coalescecollid); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CoalesceExpr: _j + }; + } return _j; }, - minMaxExpr(_p?: MinMaxExpr): MinMaxExpr { + minMaxExpr(_p?: MinMaxExpr, isNode?: boolean): MinMaxExpr | { + MinMaxExpr: MinMaxExpr; + } { const _j = {} as MinMaxExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "minmaxtype", _p?.minmaxtype); @@ -15037,18 +17649,32 @@ export default { _o.set(_j, "op", _p?.op); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + MinMaxExpr: _j + }; + } return _j; }, - sqlValueFunction(_p?: SQLValueFunction): SQLValueFunction { + sqlValueFunction(_p?: SQLValueFunction, isNode?: boolean): SQLValueFunction | { + SQLValueFunction: SQLValueFunction; + } { const _j = {} as SQLValueFunction; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "op", _p?.op); _o.set(_j, "type", _p?.type); _o.set(_j, "typmod", _p?.typmod); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + SQLValueFunction: _j + }; + } return _j; }, - xmlExpr(_p?: XmlExpr): XmlExpr { + xmlExpr(_p?: XmlExpr, isNode?: boolean): XmlExpr | { + XmlExpr: XmlExpr; + } { const _j = {} as XmlExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "op", _p?.op); @@ -15061,30 +17687,58 @@ export default { _o.set(_j, "type", _p?.type); _o.set(_j, "typmod", _p?.typmod); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + XmlExpr: _j + }; + } return _j; }, - jsonFormat(_p?: JsonFormat): JsonFormat { + jsonFormat(_p?: JsonFormat, isNode?: boolean): JsonFormat | { + JsonFormat: JsonFormat; + } { const _j = {} as JsonFormat; _o.set(_j, "format_type", _p?.format_type); _o.set(_j, "encoding", _p?.encoding); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonFormat: _j + }; + } return _j; }, - jsonReturning(_p?: JsonReturning): JsonReturning { + jsonReturning(_p?: JsonReturning, isNode?: boolean): JsonReturning | { + JsonReturning: JsonReturning; + } { const _j = {} as JsonReturning; _o.set(_j, "format", _p?.format); _o.set(_j, "typid", _p?.typid); _o.set(_j, "typmod", _p?.typmod); + if (isNode) { + return { + JsonReturning: _j + }; + } return _j; }, - jsonValueExpr(_p?: JsonValueExpr): JsonValueExpr { + jsonValueExpr(_p?: JsonValueExpr, isNode?: boolean): JsonValueExpr | { + JsonValueExpr: JsonValueExpr; + } { const _j = {} as JsonValueExpr; _o.set(_j, "raw_expr", _p?.raw_expr); _o.set(_j, "formatted_expr", _p?.formatted_expr); _o.set(_j, "format", _p?.format); + if (isNode) { + return { + JsonValueExpr: _j + }; + } return _j; }, - jsonConstructorExpr(_p?: JsonConstructorExpr): JsonConstructorExpr { + jsonConstructorExpr(_p?: JsonConstructorExpr, isNode?: boolean): JsonConstructorExpr | { + JsonConstructorExpr: JsonConstructorExpr; + } { const _j = {} as JsonConstructorExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "type", _p?.type); @@ -15095,35 +17749,63 @@ export default { _o.set(_j, "absent_on_null", _p?.absent_on_null); _o.set(_j, "unique", _p?.unique); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonConstructorExpr: _j + }; + } return _j; }, - jsonIsPredicate(_p?: JsonIsPredicate): JsonIsPredicate { + jsonIsPredicate(_p?: JsonIsPredicate, isNode?: boolean): JsonIsPredicate | { + JsonIsPredicate: JsonIsPredicate; + } { const _j = {} as JsonIsPredicate; _o.set(_j, "expr", _p?.expr); _o.set(_j, "format", _p?.format); _o.set(_j, "item_type", _p?.item_type); _o.set(_j, "unique_keys", _p?.unique_keys); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonIsPredicate: _j + }; + } return _j; }, - nullTest(_p?: NullTest): NullTest { + nullTest(_p?: NullTest, isNode?: boolean): NullTest | { + NullTest: NullTest; + } { const _j = {} as NullTest; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); _o.set(_j, "nulltesttype", _p?.nulltesttype); _o.set(_j, "argisrow", _p?.argisrow); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + NullTest: _j + }; + } return _j; }, - booleanTest(_p?: BooleanTest): BooleanTest { + booleanTest(_p?: BooleanTest, isNode?: boolean): BooleanTest | { + BooleanTest: BooleanTest; + } { const _j = {} as BooleanTest; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); _o.set(_j, "booltesttype", _p?.booltesttype); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + BooleanTest: _j + }; + } return _j; }, - coerceToDomain(_p?: CoerceToDomain): CoerceToDomain { + coerceToDomain(_p?: CoerceToDomain, isNode?: boolean): CoerceToDomain | { + CoerceToDomain: CoerceToDomain; + } { const _j = {} as CoerceToDomain; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); @@ -15132,50 +17814,92 @@ export default { _o.set(_j, "resultcollid", _p?.resultcollid); _o.set(_j, "coercionformat", _p?.coercionformat); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CoerceToDomain: _j + }; + } return _j; }, - coerceToDomainValue(_p?: CoerceToDomainValue): CoerceToDomainValue { + coerceToDomainValue(_p?: CoerceToDomainValue, isNode?: boolean): CoerceToDomainValue | { + CoerceToDomainValue: CoerceToDomainValue; + } { const _j = {} as CoerceToDomainValue; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "typeId", _p?.typeId); _o.set(_j, "typeMod", _p?.typeMod); _o.set(_j, "collation", _p?.collation); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CoerceToDomainValue: _j + }; + } return _j; }, - setToDefault(_p?: SetToDefault): SetToDefault { + setToDefault(_p?: SetToDefault, isNode?: boolean): SetToDefault | { + SetToDefault: SetToDefault; + } { const _j = {} as SetToDefault; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "typeId", _p?.typeId); _o.set(_j, "typeMod", _p?.typeMod); _o.set(_j, "collation", _p?.collation); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + SetToDefault: _j + }; + } return _j; }, - currentOfExpr(_p?: CurrentOfExpr): CurrentOfExpr { + currentOfExpr(_p?: CurrentOfExpr, isNode?: boolean): CurrentOfExpr | { + CurrentOfExpr: CurrentOfExpr; + } { const _j = {} as CurrentOfExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "cvarno", _p?.cvarno); _o.set(_j, "cursor_name", _p?.cursor_name); _o.set(_j, "cursor_param", _p?.cursor_param); + if (isNode) { + return { + CurrentOfExpr: _j + }; + } return _j; }, - nextValueExpr(_p?: NextValueExpr): NextValueExpr { + nextValueExpr(_p?: NextValueExpr, isNode?: boolean): NextValueExpr | { + NextValueExpr: NextValueExpr; + } { const _j = {} as NextValueExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "seqid", _p?.seqid); _o.set(_j, "typeId", _p?.typeId); + if (isNode) { + return { + NextValueExpr: _j + }; + } return _j; }, - inferenceElem(_p?: InferenceElem): InferenceElem { + inferenceElem(_p?: InferenceElem, isNode?: boolean): InferenceElem | { + InferenceElem: InferenceElem; + } { const _j = {} as InferenceElem; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "expr", _p?.expr); _o.set(_j, "infercollid", _p?.infercollid); _o.set(_j, "inferopclass", _p?.inferopclass); + if (isNode) { + return { + InferenceElem: _j + }; + } return _j; }, - targetEntry(_p?: TargetEntry): TargetEntry { + targetEntry(_p?: TargetEntry, isNode?: boolean): TargetEntry | { + TargetEntry: TargetEntry; + } { const _j = {} as TargetEntry; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "expr", _p?.expr); @@ -15185,14 +17909,28 @@ export default { _o.set(_j, "resorigtbl", _p?.resorigtbl); _o.set(_j, "resorigcol", _p?.resorigcol); _o.set(_j, "resjunk", _p?.resjunk); + if (isNode) { + return { + TargetEntry: _j + }; + } return _j; }, - rangeTblRef(_p?: RangeTblRef): RangeTblRef { + rangeTblRef(_p?: RangeTblRef, isNode?: boolean): RangeTblRef | { + RangeTblRef: RangeTblRef; + } { const _j = {} as RangeTblRef; _o.set(_j, "rtindex", _p?.rtindex); + if (isNode) { + return { + RangeTblRef: _j + }; + } return _j; }, - joinExpr(_p?: JoinExpr): JoinExpr { + joinExpr(_p?: JoinExpr, isNode?: boolean): JoinExpr | { + JoinExpr: JoinExpr; + } { const _j = {} as JoinExpr; _o.set(_j, "jointype", _p?.jointype); _o.set(_j, "isNatural", _p?.isNatural); @@ -15203,15 +17941,29 @@ export default { _o.set(_j, "quals", _p?.quals); _o.set(_j, "alias", _p?.alias); _o.set(_j, "rtindex", _p?.rtindex); + if (isNode) { + return { + JoinExpr: _j + }; + } return _j; }, - fromExpr(_p?: FromExpr): FromExpr { + fromExpr(_p?: FromExpr, isNode?: boolean): FromExpr | { + FromExpr: FromExpr; + } { const _j = {} as FromExpr; _o.set(_j, "fromlist", _p?.fromlist); _o.set(_j, "quals", _p?.quals); + if (isNode) { + return { + FromExpr: _j + }; + } return _j; }, - onConflictExpr(_p?: OnConflictExpr): OnConflictExpr { + onConflictExpr(_p?: OnConflictExpr, isNode?: boolean): OnConflictExpr | { + OnConflictExpr: OnConflictExpr; + } { const _j = {} as OnConflictExpr; _o.set(_j, "action", _p?.action); _o.set(_j, "arbiterElems", _p?.arbiterElems); @@ -15221,9 +17973,16 @@ export default { _o.set(_j, "onConflictWhere", _p?.onConflictWhere); _o.set(_j, "exclRelIndex", _p?.exclRelIndex); _o.set(_j, "exclRelTlist", _p?.exclRelTlist); + if (isNode) { + return { + OnConflictExpr: _j + }; + } return _j; }, - query(_p?: Query): Query { + query(_p?: Query, isNode?: boolean): Query | { + Query: Query; + } { const _j = {} as Query; _o.set(_j, "commandType", _p?.commandType); _o.set(_j, "querySource", _p?.querySource); @@ -15266,9 +18025,16 @@ export default { _o.set(_j, "withCheckOptions", _p?.withCheckOptions); _o.set(_j, "stmt_location", _p?.stmt_location); _o.set(_j, "stmt_len", _p?.stmt_len); + if (isNode) { + return { + Query: _j + }; + } return _j; }, - typeName(_p?: TypeName): TypeName { + typeName(_p?: TypeName, isNode?: boolean): TypeName | { + TypeName: TypeName; + } { const _j = {} as TypeName; _o.set(_j, "names", _p?.names); _o.set(_j, "typeOid", _p?.typeOid); @@ -15278,51 +18044,100 @@ export default { _o.set(_j, "typemod", _p?.typemod); _o.set(_j, "arrayBounds", _p?.arrayBounds); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + TypeName: _j + }; + } return _j; }, - columnRef(_p?: ColumnRef): ColumnRef { + columnRef(_p?: ColumnRef, isNode?: boolean): ColumnRef | { + ColumnRef: ColumnRef; + } { const _j = {} as ColumnRef; _o.set(_j, "fields", _p?.fields); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ColumnRef: _j + }; + } return _j; }, - paramRef(_p?: ParamRef): ParamRef { + paramRef(_p?: ParamRef, isNode?: boolean): ParamRef | { + ParamRef: ParamRef; + } { const _j = {} as ParamRef; _o.set(_j, "number", _p?.number); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ParamRef: _j + }; + } return _j; }, - aExpr(_p?: A_Expr): A_Expr { + aExpr(_p?: A_Expr, isNode?: boolean): A_Expr | { + A_Expr: A_Expr; + } { const _j = {} as A_Expr; _o.set(_j, "kind", _p?.kind); _o.set(_j, "name", _p?.name); _o.set(_j, "lexpr", _p?.lexpr); _o.set(_j, "rexpr", _p?.rexpr); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + A_Expr: _j + }; + } return _j; }, - typeCast(_p?: TypeCast): TypeCast { + typeCast(_p?: TypeCast, isNode?: boolean): TypeCast | { + TypeCast: TypeCast; + } { const _j = {} as TypeCast; _o.set(_j, "arg", _p?.arg); _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + TypeCast: _j + }; + } return _j; }, - collateClause(_p?: CollateClause): CollateClause { + collateClause(_p?: CollateClause, isNode?: boolean): CollateClause | { + CollateClause: CollateClause; + } { const _j = {} as CollateClause; _o.set(_j, "arg", _p?.arg); _o.set(_j, "collname", _p?.collname); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CollateClause: _j + }; + } return _j; }, - roleSpec(_p?: RoleSpec): RoleSpec { + roleSpec(_p?: RoleSpec, isNode?: boolean): RoleSpec | { + RoleSpec: RoleSpec; + } { const _j = {} as RoleSpec; _o.set(_j, "roletype", _p?.roletype); _o.set(_j, "rolename", _p?.rolename); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RoleSpec: _j + }; + } return _j; }, - funcCall(_p?: FuncCall): FuncCall { + funcCall(_p?: FuncCall, isNode?: boolean): FuncCall | { + FuncCall: FuncCall; + } { const _j = {} as FuncCall; _o.set(_j, "funcname", _p?.funcname); _o.set(_j, "args", _p?.args); @@ -15335,56 +18150,112 @@ export default { _o.set(_j, "func_variadic", _p?.func_variadic); _o.set(_j, "funcformat", _p?.funcformat); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + FuncCall: _j + }; + } return _j; }, - aStar(_p?: A_Star): A_Star { + aStar(_p?: A_Star, isNode?: boolean): A_Star | { + A_Star: A_Star; + } { const _j = {} as A_Star; + if (isNode) { + return { + A_Star: _j + }; + } return _j; }, - aIndices(_p?: A_Indices): A_Indices { + aIndices(_p?: A_Indices, isNode?: boolean): A_Indices | { + A_Indices: A_Indices; + } { const _j = {} as A_Indices; _o.set(_j, "is_slice", _p?.is_slice); _o.set(_j, "lidx", _p?.lidx); _o.set(_j, "uidx", _p?.uidx); + if (isNode) { + return { + A_Indices: _j + }; + } return _j; }, - aIndirection(_p?: A_Indirection): A_Indirection { + aIndirection(_p?: A_Indirection, isNode?: boolean): A_Indirection | { + A_Indirection: A_Indirection; + } { const _j = {} as A_Indirection; _o.set(_j, "arg", _p?.arg); _o.set(_j, "indirection", _p?.indirection); + if (isNode) { + return { + A_Indirection: _j + }; + } return _j; }, - aArrayExpr(_p?: A_ArrayExpr): A_ArrayExpr { + aArrayExpr(_p?: A_ArrayExpr, isNode?: boolean): A_ArrayExpr | { + A_ArrayExpr: A_ArrayExpr; + } { const _j = {} as A_ArrayExpr; _o.set(_j, "elements", _p?.elements); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + A_ArrayExpr: _j + }; + } return _j; }, - resTarget(_p?: ResTarget): ResTarget { + resTarget(_p?: ResTarget, isNode?: boolean): ResTarget | { + ResTarget: ResTarget; + } { const _j = {} as ResTarget; _o.set(_j, "name", _p?.name); _o.set(_j, "indirection", _p?.indirection); _o.set(_j, "val", _p?.val); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ResTarget: _j + }; + } return _j; }, - multiAssignRef(_p?: MultiAssignRef): MultiAssignRef { + multiAssignRef(_p?: MultiAssignRef, isNode?: boolean): MultiAssignRef | { + MultiAssignRef: MultiAssignRef; + } { const _j = {} as MultiAssignRef; _o.set(_j, "source", _p?.source); _o.set(_j, "colno", _p?.colno); _o.set(_j, "ncolumns", _p?.ncolumns); + if (isNode) { + return { + MultiAssignRef: _j + }; + } return _j; }, - sortBy(_p?: SortBy): SortBy { + sortBy(_p?: SortBy, isNode?: boolean): SortBy | { + SortBy: SortBy; + } { const _j = {} as SortBy; _o.set(_j, "node", _p?.node); _o.set(_j, "sortby_dir", _p?.sortby_dir); _o.set(_j, "sortby_nulls", _p?.sortby_nulls); _o.set(_j, "useOp", _p?.useOp); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + SortBy: _j + }; + } return _j; }, - windowDef(_p?: WindowDef): WindowDef { + windowDef(_p?: WindowDef, isNode?: boolean): WindowDef | { + WindowDef: WindowDef; + } { const _j = {} as WindowDef; _o.set(_j, "name", _p?.name); _o.set(_j, "refname", _p?.refname); @@ -15394,16 +18265,30 @@ export default { _o.set(_j, "startOffset", _p?.startOffset); _o.set(_j, "endOffset", _p?.endOffset); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + WindowDef: _j + }; + } return _j; }, - rangeSubselect(_p?: RangeSubselect): RangeSubselect { + rangeSubselect(_p?: RangeSubselect, isNode?: boolean): RangeSubselect | { + RangeSubselect: RangeSubselect; + } { const _j = {} as RangeSubselect; _o.set(_j, "lateral", _p?.lateral); _o.set(_j, "subquery", _p?.subquery); _o.set(_j, "alias", _p?.alias); + if (isNode) { + return { + RangeSubselect: _j + }; + } return _j; }, - rangeFunction(_p?: RangeFunction): RangeFunction { + rangeFunction(_p?: RangeFunction, isNode?: boolean): RangeFunction | { + RangeFunction: RangeFunction; + } { const _j = {} as RangeFunction; _o.set(_j, "lateral", _p?.lateral); _o.set(_j, "ordinality", _p?.ordinality); @@ -15411,9 +18296,16 @@ export default { _o.set(_j, "functions", _p?.functions); _o.set(_j, "alias", _p?.alias); _o.set(_j, "coldeflist", _p?.coldeflist); + if (isNode) { + return { + RangeFunction: _j + }; + } return _j; }, - rangeTableFunc(_p?: RangeTableFunc): RangeTableFunc { + rangeTableFunc(_p?: RangeTableFunc, isNode?: boolean): RangeTableFunc | { + RangeTableFunc: RangeTableFunc; + } { const _j = {} as RangeTableFunc; _o.set(_j, "lateral", _p?.lateral); _o.set(_j, "docexpr", _p?.docexpr); @@ -15422,9 +18314,16 @@ export default { _o.set(_j, "columns", _p?.columns); _o.set(_j, "alias", _p?.alias); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RangeTableFunc: _j + }; + } return _j; }, - rangeTableFuncCol(_p?: RangeTableFuncCol): RangeTableFuncCol { + rangeTableFuncCol(_p?: RangeTableFuncCol, isNode?: boolean): RangeTableFuncCol | { + RangeTableFuncCol: RangeTableFuncCol; + } { const _j = {} as RangeTableFuncCol; _o.set(_j, "colname", _p?.colname); _o.set(_j, "typeName", _p?.typeName); @@ -15433,18 +18332,32 @@ export default { _o.set(_j, "colexpr", _p?.colexpr); _o.set(_j, "coldefexpr", _p?.coldefexpr); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RangeTableFuncCol: _j + }; + } return _j; }, - rangeTableSample(_p?: RangeTableSample): RangeTableSample { + rangeTableSample(_p?: RangeTableSample, isNode?: boolean): RangeTableSample | { + RangeTableSample: RangeTableSample; + } { const _j = {} as RangeTableSample; _o.set(_j, "relation", _p?.relation); _o.set(_j, "method", _p?.method); _o.set(_j, "args", _p?.args); _o.set(_j, "repeatable", _p?.repeatable); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RangeTableSample: _j + }; + } return _j; }, - columnDef(_p?: ColumnDef): ColumnDef { + columnDef(_p?: ColumnDef, isNode?: boolean): ColumnDef | { + ColumnDef: ColumnDef; + } { const _j = {} as ColumnDef; _o.set(_j, "colname", _p?.colname); _o.set(_j, "typeName", _p?.typeName); @@ -15465,16 +18378,30 @@ export default { _o.set(_j, "constraints", _p?.constraints); _o.set(_j, "fdwoptions", _p?.fdwoptions); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ColumnDef: _j + }; + } return _j; }, - tableLikeClause(_p?: TableLikeClause): TableLikeClause { + tableLikeClause(_p?: TableLikeClause, isNode?: boolean): TableLikeClause | { + TableLikeClause: TableLikeClause; + } { const _j = {} as TableLikeClause; _o.set(_j, "relation", _p?.relation); _o.set(_j, "options", _p?.options); _o.set(_j, "relationOid", _p?.relationOid); + if (isNode) { + return { + TableLikeClause: _j + }; + } return _j; }, - indexElem(_p?: IndexElem): IndexElem { + indexElem(_p?: IndexElem, isNode?: boolean): IndexElem | { + IndexElem: IndexElem; + } { const _j = {} as IndexElem; _o.set(_j, "name", _p?.name); _o.set(_j, "expr", _p?.expr); @@ -15484,50 +18411,92 @@ export default { _o.set(_j, "opclassopts", _p?.opclassopts); _o.set(_j, "ordering", _p?.ordering); _o.set(_j, "nulls_ordering", _p?.nulls_ordering); + if (isNode) { + return { + IndexElem: _j + }; + } return _j; }, - defElem(_p?: DefElem): DefElem { + defElem(_p?: DefElem, isNode?: boolean): DefElem | { + DefElem: DefElem; + } { const _j = {} as DefElem; _o.set(_j, "defnamespace", _p?.defnamespace); _o.set(_j, "defname", _p?.defname); _o.set(_j, "arg", _p?.arg); _o.set(_j, "defaction", _p?.defaction); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + DefElem: _j + }; + } return _j; }, - lockingClause(_p?: LockingClause): LockingClause { + lockingClause(_p?: LockingClause, isNode?: boolean): LockingClause | { + LockingClause: LockingClause; + } { const _j = {} as LockingClause; _o.set(_j, "lockedRels", _p?.lockedRels); _o.set(_j, "strength", _p?.strength); _o.set(_j, "waitPolicy", _p?.waitPolicy); + if (isNode) { + return { + LockingClause: _j + }; + } return _j; }, - xmlSerialize(_p?: XmlSerialize): XmlSerialize { + xmlSerialize(_p?: XmlSerialize, isNode?: boolean): XmlSerialize | { + XmlSerialize: XmlSerialize; + } { const _j = {} as XmlSerialize; _o.set(_j, "xmloption", _p?.xmloption); _o.set(_j, "expr", _p?.expr); _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "indent", _p?.indent); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + XmlSerialize: _j + }; + } return _j; }, - partitionElem(_p?: PartitionElem): PartitionElem { + partitionElem(_p?: PartitionElem, isNode?: boolean): PartitionElem | { + PartitionElem: PartitionElem; + } { const _j = {} as PartitionElem; _o.set(_j, "name", _p?.name); _o.set(_j, "expr", _p?.expr); _o.set(_j, "collation", _p?.collation); _o.set(_j, "opclass", _p?.opclass); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + PartitionElem: _j + }; + } return _j; }, - partitionSpec(_p?: PartitionSpec): PartitionSpec { + partitionSpec(_p?: PartitionSpec, isNode?: boolean): PartitionSpec | { + PartitionSpec: PartitionSpec; + } { const _j = {} as PartitionSpec; _o.set(_j, "strategy", _p?.strategy); _o.set(_j, "partParams", _p?.partParams); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + PartitionSpec: _j + }; + } return _j; }, - partitionBoundSpec(_p?: PartitionBoundSpec): PartitionBoundSpec { + partitionBoundSpec(_p?: PartitionBoundSpec, isNode?: boolean): PartitionBoundSpec | { + PartitionBoundSpec: PartitionBoundSpec; + } { const _j = {} as PartitionBoundSpec; _o.set(_j, "strategy", _p?.strategy); _o.set(_j, "is_default", _p?.is_default); @@ -15537,23 +18506,44 @@ export default { _o.set(_j, "lowerdatums", _p?.lowerdatums); _o.set(_j, "upperdatums", _p?.upperdatums); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + PartitionBoundSpec: _j + }; + } return _j; }, - partitionRangeDatum(_p?: PartitionRangeDatum): PartitionRangeDatum { + partitionRangeDatum(_p?: PartitionRangeDatum, isNode?: boolean): PartitionRangeDatum | { + PartitionRangeDatum: PartitionRangeDatum; + } { const _j = {} as PartitionRangeDatum; _o.set(_j, "kind", _p?.kind); _o.set(_j, "value", _p?.value); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + PartitionRangeDatum: _j + }; + } return _j; }, - partitionCmd(_p?: PartitionCmd): PartitionCmd { + partitionCmd(_p?: PartitionCmd, isNode?: boolean): PartitionCmd | { + PartitionCmd: PartitionCmd; + } { const _j = {} as PartitionCmd; _o.set(_j, "name", _p?.name); _o.set(_j, "bound", _p?.bound); _o.set(_j, "concurrent", _p?.concurrent); + if (isNode) { + return { + PartitionCmd: _j + }; + } return _j; }, - rangeTblEntry(_p?: RangeTblEntry): RangeTblEntry { + rangeTblEntry(_p?: RangeTblEntry, isNode?: boolean): RangeTblEntry | { + RangeTblEntry: RangeTblEntry; + } { const _j = {} as RangeTblEntry; _o.set(_j, "rtekind", _p?.rtekind); _o.set(_j, "relid", _p?.relid); @@ -15587,9 +18577,16 @@ export default { _o.set(_j, "inh", _p?.inh); _o.set(_j, "inFromCl", _p?.inFromCl); _o.set(_j, "securityQuals", _p?.securityQuals); + if (isNode) { + return { + RangeTblEntry: _j + }; + } return _j; }, - rtePermissionInfo(_p?: RTEPermissionInfo): RTEPermissionInfo { + rtePermissionInfo(_p?: RTEPermissionInfo, isNode?: boolean): RTEPermissionInfo | { + RTEPermissionInfo: RTEPermissionInfo; + } { const _j = {} as RTEPermissionInfo; _o.set(_j, "relid", _p?.relid); _o.set(_j, "inh", _p?.inh); @@ -15598,9 +18595,16 @@ export default { _o.set(_j, "selectedCols", _p?.selectedCols); _o.set(_j, "insertedCols", _p?.insertedCols); _o.set(_j, "updatedCols", _p?.updatedCols); + if (isNode) { + return { + RTEPermissionInfo: _j + }; + } return _j; }, - rangeTblFunction(_p?: RangeTblFunction): RangeTblFunction { + rangeTblFunction(_p?: RangeTblFunction, isNode?: boolean): RangeTblFunction | { + RangeTblFunction: RangeTblFunction; + } { const _j = {} as RangeTblFunction; _o.set(_j, "funcexpr", _p?.funcexpr); _o.set(_j, "funccolcount", _p?.funccolcount); @@ -15609,41 +18613,76 @@ export default { _o.set(_j, "funccoltypmods", _p?.funccoltypmods); _o.set(_j, "funccolcollations", _p?.funccolcollations); _o.set(_j, "funcparams", _p?.funcparams); + if (isNode) { + return { + RangeTblFunction: _j + }; + } return _j; }, - tableSampleClause(_p?: TableSampleClause): TableSampleClause { + tableSampleClause(_p?: TableSampleClause, isNode?: boolean): TableSampleClause | { + TableSampleClause: TableSampleClause; + } { const _j = {} as TableSampleClause; _o.set(_j, "tsmhandler", _p?.tsmhandler); _o.set(_j, "args", _p?.args); _o.set(_j, "repeatable", _p?.repeatable); + if (isNode) { + return { + TableSampleClause: _j + }; + } return _j; }, - withCheckOption(_p?: WithCheckOption): WithCheckOption { + withCheckOption(_p?: WithCheckOption, isNode?: boolean): WithCheckOption | { + WithCheckOption: WithCheckOption; + } { const _j = {} as WithCheckOption; _o.set(_j, "kind", _p?.kind); _o.set(_j, "relname", _p?.relname); _o.set(_j, "polname", _p?.polname); _o.set(_j, "qual", _p?.qual); _o.set(_j, "cascaded", _p?.cascaded); + if (isNode) { + return { + WithCheckOption: _j + }; + } return _j; }, - sortGroupClause(_p?: SortGroupClause): SortGroupClause { + sortGroupClause(_p?: SortGroupClause, isNode?: boolean): SortGroupClause | { + SortGroupClause: SortGroupClause; + } { const _j = {} as SortGroupClause; _o.set(_j, "tleSortGroupRef", _p?.tleSortGroupRef); _o.set(_j, "eqop", _p?.eqop); _o.set(_j, "sortop", _p?.sortop); _o.set(_j, "nulls_first", _p?.nulls_first); _o.set(_j, "hashable", _p?.hashable); + if (isNode) { + return { + SortGroupClause: _j + }; + } return _j; }, - groupingSet(_p?: GroupingSet): GroupingSet { + groupingSet(_p?: GroupingSet, isNode?: boolean): GroupingSet | { + GroupingSet: GroupingSet; + } { const _j = {} as GroupingSet; _o.set(_j, "kind", _p?.kind); _o.set(_j, "content", _p?.content); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + GroupingSet: _j + }; + } return _j; }, - windowClause(_p?: WindowClause): WindowClause { + windowClause(_p?: WindowClause, isNode?: boolean): WindowClause | { + WindowClause: WindowClause; + } { const _j = {} as WindowClause; _o.set(_j, "name", _p?.name); _o.set(_j, "refname", _p?.refname); @@ -15660,49 +18699,91 @@ export default { _o.set(_j, "inRangeNullsFirst", _p?.inRangeNullsFirst); _o.set(_j, "winref", _p?.winref); _o.set(_j, "copiedOrder", _p?.copiedOrder); + if (isNode) { + return { + WindowClause: _j + }; + } return _j; }, - rowMarkClause(_p?: RowMarkClause): RowMarkClause { + rowMarkClause(_p?: RowMarkClause, isNode?: boolean): RowMarkClause | { + RowMarkClause: RowMarkClause; + } { const _j = {} as RowMarkClause; _o.set(_j, "rti", _p?.rti); _o.set(_j, "strength", _p?.strength); _o.set(_j, "waitPolicy", _p?.waitPolicy); _o.set(_j, "pushedDown", _p?.pushedDown); + if (isNode) { + return { + RowMarkClause: _j + }; + } return _j; }, - withClause(_p?: WithClause): WithClause { + withClause(_p?: WithClause, isNode?: boolean): WithClause | { + WithClause: WithClause; + } { const _j = {} as WithClause; _o.set(_j, "ctes", _p?.ctes); _o.set(_j, "recursive", _p?.recursive); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + WithClause: _j + }; + } return _j; }, - inferClause(_p?: InferClause): InferClause { + inferClause(_p?: InferClause, isNode?: boolean): InferClause | { + InferClause: InferClause; + } { const _j = {} as InferClause; _o.set(_j, "indexElems", _p?.indexElems); _o.set(_j, "whereClause", _p?.whereClause); _o.set(_j, "conname", _p?.conname); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + InferClause: _j + }; + } return _j; }, - onConflictClause(_p?: OnConflictClause): OnConflictClause { + onConflictClause(_p?: OnConflictClause, isNode?: boolean): OnConflictClause | { + OnConflictClause: OnConflictClause; + } { const _j = {} as OnConflictClause; _o.set(_j, "action", _p?.action); _o.set(_j, "infer", _p?.infer); _o.set(_j, "targetList", _p?.targetList); _o.set(_j, "whereClause", _p?.whereClause); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + OnConflictClause: _j + }; + } return _j; }, - cteSearchClause(_p?: CTESearchClause): CTESearchClause { + cteSearchClause(_p?: CTESearchClause, isNode?: boolean): CTESearchClause | { + CTESearchClause: CTESearchClause; + } { const _j = {} as CTESearchClause; _o.set(_j, "search_col_list", _p?.search_col_list); _o.set(_j, "search_breadth_first", _p?.search_breadth_first); _o.set(_j, "search_seq_column", _p?.search_seq_column); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CTESearchClause: _j + }; + } return _j; }, - cteCycleClause(_p?: CTECycleClause): CTECycleClause { + cteCycleClause(_p?: CTECycleClause, isNode?: boolean): CTECycleClause | { + CTECycleClause: CTECycleClause; + } { const _j = {} as CTECycleClause; _o.set(_j, "cycle_col_list", _p?.cycle_col_list); _o.set(_j, "cycle_mark_column", _p?.cycle_mark_column); @@ -15714,9 +18795,16 @@ export default { _o.set(_j, "cycle_mark_typmod", _p?.cycle_mark_typmod); _o.set(_j, "cycle_mark_collation", _p?.cycle_mark_collation); _o.set(_j, "cycle_mark_neop", _p?.cycle_mark_neop); + if (isNode) { + return { + CTECycleClause: _j + }; + } return _j; }, - commonTableExpr(_p?: CommonTableExpr): CommonTableExpr { + commonTableExpr(_p?: CommonTableExpr, isNode?: boolean): CommonTableExpr | { + CommonTableExpr: CommonTableExpr; + } { const _j = {} as CommonTableExpr; _o.set(_j, "ctename", _p?.ctename); _o.set(_j, "aliascolnames", _p?.aliascolnames); @@ -15731,9 +18819,16 @@ export default { _o.set(_j, "ctecoltypes", _p?.ctecoltypes); _o.set(_j, "ctecoltypmods", _p?.ctecoltypmods); _o.set(_j, "ctecolcollations", _p?.ctecolcollations); + if (isNode) { + return { + CommonTableExpr: _j + }; + } return _j; }, - mergeWhenClause(_p?: MergeWhenClause): MergeWhenClause { + mergeWhenClause(_p?: MergeWhenClause, isNode?: boolean): MergeWhenClause | { + MergeWhenClause: MergeWhenClause; + } { const _j = {} as MergeWhenClause; _o.set(_j, "matched", _p?.matched); _o.set(_j, "commandType", _p?.commandType); @@ -15741,9 +18836,16 @@ export default { _o.set(_j, "condition", _p?.condition); _o.set(_j, "targetList", _p?.targetList); _o.set(_j, "values", _p?.values); + if (isNode) { + return { + MergeWhenClause: _j + }; + } return _j; }, - mergeAction(_p?: MergeAction): MergeAction { + mergeAction(_p?: MergeAction, isNode?: boolean): MergeAction | { + MergeAction: MergeAction; + } { const _j = {} as MergeAction; _o.set(_j, "matched", _p?.matched); _o.set(_j, "commandType", _p?.commandType); @@ -15751,85 +18853,162 @@ export default { _o.set(_j, "qual", _p?.qual); _o.set(_j, "targetList", _p?.targetList); _o.set(_j, "updateColnos", _p?.updateColnos); + if (isNode) { + return { + MergeAction: _j + }; + } return _j; }, - triggerTransition(_p?: TriggerTransition): TriggerTransition { + triggerTransition(_p?: TriggerTransition, isNode?: boolean): TriggerTransition | { + TriggerTransition: TriggerTransition; + } { const _j = {} as TriggerTransition; _o.set(_j, "name", _p?.name); _o.set(_j, "isNew", _p?.isNew); _o.set(_j, "isTable", _p?.isTable); + if (isNode) { + return { + TriggerTransition: _j + }; + } return _j; }, - jsonOutput(_p?: JsonOutput): JsonOutput { + jsonOutput(_p?: JsonOutput, isNode?: boolean): JsonOutput | { + JsonOutput: JsonOutput; + } { const _j = {} as JsonOutput; _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "returning", _p?.returning); + if (isNode) { + return { + JsonOutput: _j + }; + } return _j; }, - jsonKeyValue(_p?: JsonKeyValue): JsonKeyValue { + jsonKeyValue(_p?: JsonKeyValue, isNode?: boolean): JsonKeyValue | { + JsonKeyValue: JsonKeyValue; + } { const _j = {} as JsonKeyValue; _o.set(_j, "key", _p?.key); _o.set(_j, "value", _p?.value); + if (isNode) { + return { + JsonKeyValue: _j + }; + } return _j; }, - jsonObjectConstructor(_p?: JsonObjectConstructor): JsonObjectConstructor { + jsonObjectConstructor(_p?: JsonObjectConstructor, isNode?: boolean): JsonObjectConstructor | { + JsonObjectConstructor: JsonObjectConstructor; + } { const _j = {} as JsonObjectConstructor; _o.set(_j, "exprs", _p?.exprs); _o.set(_j, "output", _p?.output); _o.set(_j, "absent_on_null", _p?.absent_on_null); _o.set(_j, "unique", _p?.unique); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonObjectConstructor: _j + }; + } return _j; }, - jsonArrayConstructor(_p?: JsonArrayConstructor): JsonArrayConstructor { + jsonArrayConstructor(_p?: JsonArrayConstructor, isNode?: boolean): JsonArrayConstructor | { + JsonArrayConstructor: JsonArrayConstructor; + } { const _j = {} as JsonArrayConstructor; _o.set(_j, "exprs", _p?.exprs); _o.set(_j, "output", _p?.output); _o.set(_j, "absent_on_null", _p?.absent_on_null); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonArrayConstructor: _j + }; + } return _j; }, - jsonArrayQueryConstructor(_p?: JsonArrayQueryConstructor): JsonArrayQueryConstructor { + jsonArrayQueryConstructor(_p?: JsonArrayQueryConstructor, isNode?: boolean): JsonArrayQueryConstructor | { + JsonArrayQueryConstructor: JsonArrayQueryConstructor; + } { const _j = {} as JsonArrayQueryConstructor; _o.set(_j, "query", _p?.query); _o.set(_j, "output", _p?.output); _o.set(_j, "format", _p?.format); _o.set(_j, "absent_on_null", _p?.absent_on_null); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonArrayQueryConstructor: _j + }; + } return _j; }, - jsonAggConstructor(_p?: JsonAggConstructor): JsonAggConstructor { + jsonAggConstructor(_p?: JsonAggConstructor, isNode?: boolean): JsonAggConstructor | { + JsonAggConstructor: JsonAggConstructor; + } { const _j = {} as JsonAggConstructor; _o.set(_j, "output", _p?.output); _o.set(_j, "agg_filter", _p?.agg_filter); _o.set(_j, "agg_order", _p?.agg_order); _o.set(_j, "over", _p?.over); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonAggConstructor: _j + }; + } return _j; }, - jsonObjectAgg(_p?: JsonObjectAgg): JsonObjectAgg { + jsonObjectAgg(_p?: JsonObjectAgg, isNode?: boolean): JsonObjectAgg | { + JsonObjectAgg: JsonObjectAgg; + } { const _j = {} as JsonObjectAgg; _o.set(_j, "constructor", _p?.constructor); _o.set(_j, "arg", _p?.arg); _o.set(_j, "absent_on_null", _p?.absent_on_null); _o.set(_j, "unique", _p?.unique); + if (isNode) { + return { + JsonObjectAgg: _j + }; + } return _j; }, - jsonArrayAgg(_p?: JsonArrayAgg): JsonArrayAgg { + jsonArrayAgg(_p?: JsonArrayAgg, isNode?: boolean): JsonArrayAgg | { + JsonArrayAgg: JsonArrayAgg; + } { const _j = {} as JsonArrayAgg; _o.set(_j, "constructor", _p?.constructor); _o.set(_j, "arg", _p?.arg); _o.set(_j, "absent_on_null", _p?.absent_on_null); + if (isNode) { + return { + JsonArrayAgg: _j + }; + } return _j; }, - rawStmt(_p?: RawStmt): RawStmt { + rawStmt(_p?: RawStmt, isNode?: boolean): RawStmt | { + RawStmt: RawStmt; + } { const _j = {} as RawStmt; _o.set(_j, "stmt", _p?.stmt); _o.set(_j, "stmt_location", _p?.stmt_location); _o.set(_j, "stmt_len", _p?.stmt_len); + if (isNode) { + return { + RawStmt: _j + }; + } return _j; }, - insertStmt(_p?: InsertStmt): InsertStmt { + insertStmt(_p?: InsertStmt, isNode?: boolean): InsertStmt | { + InsertStmt: InsertStmt; + } { const _j = {} as InsertStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "cols", _p?.cols); @@ -15838,18 +19017,32 @@ export default { _o.set(_j, "returningList", _p?.returningList); _o.set(_j, "withClause", _p?.withClause); _o.set(_j, "override", _p?.override); + if (isNode) { + return { + InsertStmt: _j + }; + } return _j; }, - deleteStmt(_p?: DeleteStmt): DeleteStmt { + deleteStmt(_p?: DeleteStmt, isNode?: boolean): DeleteStmt | { + DeleteStmt: DeleteStmt; + } { const _j = {} as DeleteStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "usingClause", _p?.usingClause); _o.set(_j, "whereClause", _p?.whereClause); _o.set(_j, "returningList", _p?.returningList); _o.set(_j, "withClause", _p?.withClause); + if (isNode) { + return { + DeleteStmt: _j + }; + } return _j; }, - updateStmt(_p?: UpdateStmt): UpdateStmt { + updateStmt(_p?: UpdateStmt, isNode?: boolean): UpdateStmt | { + UpdateStmt: UpdateStmt; + } { const _j = {} as UpdateStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "targetList", _p?.targetList); @@ -15857,18 +19050,32 @@ export default { _o.set(_j, "fromClause", _p?.fromClause); _o.set(_j, "returningList", _p?.returningList); _o.set(_j, "withClause", _p?.withClause); + if (isNode) { + return { + UpdateStmt: _j + }; + } return _j; }, - mergeStmt(_p?: MergeStmt): MergeStmt { + mergeStmt(_p?: MergeStmt, isNode?: boolean): MergeStmt | { + MergeStmt: MergeStmt; + } { const _j = {} as MergeStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "sourceRelation", _p?.sourceRelation); _o.set(_j, "joinCondition", _p?.joinCondition); _o.set(_j, "mergeWhenClauses", _p?.mergeWhenClauses); _o.set(_j, "withClause", _p?.withClause); + if (isNode) { + return { + MergeStmt: _j + }; + } return _j; }, - selectStmt(_p?: SelectStmt): SelectStmt { + selectStmt(_p?: SelectStmt, isNode?: boolean): SelectStmt | { + SelectStmt: SelectStmt; + } { const _j = {} as SelectStmt; _o.set(_j, "distinctClause", _p?.distinctClause); _o.set(_j, "intoClause", _p?.intoClause); @@ -15890,9 +19097,16 @@ export default { _o.set(_j, "all", _p?.all); _o.set(_j, "larg", _p?.larg); _o.set(_j, "rarg", _p?.rarg); + if (isNode) { + return { + SelectStmt: _j + }; + } return _j; }, - setOperationStmt(_p?: SetOperationStmt): SetOperationStmt { + setOperationStmt(_p?: SetOperationStmt, isNode?: boolean): SetOperationStmt | { + SetOperationStmt: SetOperationStmt; + } { const _j = {} as SetOperationStmt; _o.set(_j, "op", _p?.op); _o.set(_j, "all", _p?.all); @@ -15902,45 +19116,87 @@ export default { _o.set(_j, "colTypmods", _p?.colTypmods); _o.set(_j, "colCollations", _p?.colCollations); _o.set(_j, "groupClauses", _p?.groupClauses); + if (isNode) { + return { + SetOperationStmt: _j + }; + } return _j; }, - returnStmt(_p?: ReturnStmt): ReturnStmt { + returnStmt(_p?: ReturnStmt, isNode?: boolean): ReturnStmt | { + ReturnStmt: ReturnStmt; + } { const _j = {} as ReturnStmt; _o.set(_j, "returnval", _p?.returnval); + if (isNode) { + return { + ReturnStmt: _j + }; + } return _j; }, - plAssignStmt(_p?: PLAssignStmt): PLAssignStmt { + plAssignStmt(_p?: PLAssignStmt, isNode?: boolean): PLAssignStmt | { + PLAssignStmt: PLAssignStmt; + } { const _j = {} as PLAssignStmt; _o.set(_j, "name", _p?.name); _o.set(_j, "indirection", _p?.indirection); _o.set(_j, "nnames", _p?.nnames); _o.set(_j, "val", _p?.val); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + PLAssignStmt: _j + }; + } return _j; }, - createSchemaStmt(_p?: CreateSchemaStmt): CreateSchemaStmt { + createSchemaStmt(_p?: CreateSchemaStmt, isNode?: boolean): CreateSchemaStmt | { + CreateSchemaStmt: CreateSchemaStmt; + } { const _j = {} as CreateSchemaStmt; _o.set(_j, "schemaname", _p?.schemaname); _o.set(_j, "authrole", _p?.authrole); _o.set(_j, "schemaElts", _p?.schemaElts); _o.set(_j, "if_not_exists", _p?.if_not_exists); + if (isNode) { + return { + CreateSchemaStmt: _j + }; + } return _j; }, - alterTableStmt(_p?: AlterTableStmt): AlterTableStmt { + alterTableStmt(_p?: AlterTableStmt, isNode?: boolean): AlterTableStmt | { + AlterTableStmt: AlterTableStmt; + } { const _j = {} as AlterTableStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "cmds", _p?.cmds); _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + AlterTableStmt: _j + }; + } return _j; }, - replicaIdentityStmt(_p?: ReplicaIdentityStmt): ReplicaIdentityStmt { + replicaIdentityStmt(_p?: ReplicaIdentityStmt, isNode?: boolean): ReplicaIdentityStmt | { + ReplicaIdentityStmt: ReplicaIdentityStmt; + } { const _j = {} as ReplicaIdentityStmt; _o.set(_j, "identity_type", _p?.identity_type); _o.set(_j, "name", _p?.name); + if (isNode) { + return { + ReplicaIdentityStmt: _j + }; + } return _j; }, - alterTableCmd(_p?: AlterTableCmd): AlterTableCmd { + alterTableCmd(_p?: AlterTableCmd, isNode?: boolean): AlterTableCmd | { + AlterTableCmd: AlterTableCmd; + } { const _j = {} as AlterTableCmd; _o.set(_j, "subtype", _p?.subtype); _o.set(_j, "name", _p?.name); @@ -15950,14 +19206,28 @@ export default { _o.set(_j, "behavior", _p?.behavior); _o.set(_j, "missing_ok", _p?.missing_ok); _o.set(_j, "recurse", _p?.recurse); + if (isNode) { + return { + AlterTableCmd: _j + }; + } return _j; }, - alterCollationStmt(_p?: AlterCollationStmt): AlterCollationStmt { + alterCollationStmt(_p?: AlterCollationStmt, isNode?: boolean): AlterCollationStmt | { + AlterCollationStmt: AlterCollationStmt; + } { const _j = {} as AlterCollationStmt; _o.set(_j, "collname", _p?.collname); + if (isNode) { + return { + AlterCollationStmt: _j + }; + } return _j; }, - alterDomainStmt(_p?: AlterDomainStmt): AlterDomainStmt { + alterDomainStmt(_p?: AlterDomainStmt, isNode?: boolean): AlterDomainStmt | { + AlterDomainStmt: AlterDomainStmt; + } { const _j = {} as AlterDomainStmt; _o.set(_j, "subtype", _p?.subtype); _o.set(_j, "typeName", _p?.typeName); @@ -15965,9 +19235,16 @@ export default { _o.set(_j, "def", _p?.def); _o.set(_j, "behavior", _p?.behavior); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + AlterDomainStmt: _j + }; + } return _j; }, - grantStmt(_p?: GrantStmt): GrantStmt { + grantStmt(_p?: GrantStmt, isNode?: boolean): GrantStmt | { + GrantStmt: GrantStmt; + } { const _j = {} as GrantStmt; _o.set(_j, "is_grant", _p?.is_grant); _o.set(_j, "targtype", _p?.targtype); @@ -15978,23 +19255,44 @@ export default { _o.set(_j, "grant_option", _p?.grant_option); _o.set(_j, "grantor", _p?.grantor); _o.set(_j, "behavior", _p?.behavior); + if (isNode) { + return { + GrantStmt: _j + }; + } return _j; }, - objectWithArgs(_p?: ObjectWithArgs): ObjectWithArgs { + objectWithArgs(_p?: ObjectWithArgs, isNode?: boolean): ObjectWithArgs | { + ObjectWithArgs: ObjectWithArgs; + } { const _j = {} as ObjectWithArgs; _o.set(_j, "objname", _p?.objname); _o.set(_j, "objargs", _p?.objargs); _o.set(_j, "objfuncargs", _p?.objfuncargs); _o.set(_j, "args_unspecified", _p?.args_unspecified); + if (isNode) { + return { + ObjectWithArgs: _j + }; + } return _j; }, - accessPriv(_p?: AccessPriv): AccessPriv { + accessPriv(_p?: AccessPriv, isNode?: boolean): AccessPriv | { + AccessPriv: AccessPriv; + } { const _j = {} as AccessPriv; _o.set(_j, "priv_name", _p?.priv_name); _o.set(_j, "cols", _p?.cols); + if (isNode) { + return { + AccessPriv: _j + }; + } return _j; }, - grantRoleStmt(_p?: GrantRoleStmt): GrantRoleStmt { + grantRoleStmt(_p?: GrantRoleStmt, isNode?: boolean): GrantRoleStmt | { + GrantRoleStmt: GrantRoleStmt; + } { const _j = {} as GrantRoleStmt; _o.set(_j, "granted_roles", _p?.granted_roles); _o.set(_j, "grantee_roles", _p?.grantee_roles); @@ -16002,15 +19300,29 @@ export default { _o.set(_j, "opt", _p?.opt); _o.set(_j, "grantor", _p?.grantor); _o.set(_j, "behavior", _p?.behavior); + if (isNode) { + return { + GrantRoleStmt: _j + }; + } return _j; }, - alterDefaultPrivilegesStmt(_p?: AlterDefaultPrivilegesStmt): AlterDefaultPrivilegesStmt { + alterDefaultPrivilegesStmt(_p?: AlterDefaultPrivilegesStmt, isNode?: boolean): AlterDefaultPrivilegesStmt | { + AlterDefaultPrivilegesStmt: AlterDefaultPrivilegesStmt; + } { const _j = {} as AlterDefaultPrivilegesStmt; _o.set(_j, "options", _p?.options); _o.set(_j, "action", _p?.action); + if (isNode) { + return { + AlterDefaultPrivilegesStmt: _j + }; + } return _j; }, - copyStmt(_p?: CopyStmt): CopyStmt { + copyStmt(_p?: CopyStmt, isNode?: boolean): CopyStmt | { + CopyStmt: CopyStmt; + } { const _j = {} as CopyStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "query", _p?.query); @@ -16020,22 +19332,43 @@ export default { _o.set(_j, "filename", _p?.filename); _o.set(_j, "options", _p?.options); _o.set(_j, "whereClause", _p?.whereClause); + if (isNode) { + return { + CopyStmt: _j + }; + } return _j; }, - variableSetStmt(_p?: VariableSetStmt): VariableSetStmt { + variableSetStmt(_p?: VariableSetStmt, isNode?: boolean): VariableSetStmt | { + VariableSetStmt: VariableSetStmt; + } { const _j = {} as VariableSetStmt; _o.set(_j, "kind", _p?.kind); _o.set(_j, "name", _p?.name); _o.set(_j, "args", _p?.args); _o.set(_j, "is_local", _p?.is_local); + if (isNode) { + return { + VariableSetStmt: _j + }; + } return _j; }, - variableShowStmt(_p?: VariableShowStmt): VariableShowStmt { + variableShowStmt(_p?: VariableShowStmt, isNode?: boolean): VariableShowStmt | { + VariableShowStmt: VariableShowStmt; + } { const _j = {} as VariableShowStmt; _o.set(_j, "name", _p?.name); + if (isNode) { + return { + VariableShowStmt: _j + }; + } return _j; }, - createStmt(_p?: CreateStmt): CreateStmt { + createStmt(_p?: CreateStmt, isNode?: boolean): CreateStmt | { + CreateStmt: CreateStmt; + } { const _j = {} as CreateStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "tableElts", _p?.tableElts); @@ -16049,9 +19382,16 @@ export default { _o.set(_j, "tablespacename", _p?.tablespacename); _o.set(_j, "accessMethod", _p?.accessMethod); _o.set(_j, "if_not_exists", _p?.if_not_exists); + if (isNode) { + return { + CreateStmt: _j + }; + } return _j; }, - constraint(_p?: Constraint): Constraint { + constraint(_p?: Constraint, isNode?: boolean): Constraint | { + Constraint: Constraint; + } { const _j = {} as Constraint; _o.set(_j, "contype", _p?.contype); _o.set(_j, "conname", _p?.conname); @@ -16083,74 +19423,144 @@ export default { _o.set(_j, "old_pktable_oid", _p?.old_pktable_oid); _o.set(_j, "skip_validation", _p?.skip_validation); _o.set(_j, "initially_valid", _p?.initially_valid); + if (isNode) { + return { + Constraint: _j + }; + } return _j; }, - createTableSpaceStmt(_p?: CreateTableSpaceStmt): CreateTableSpaceStmt { + createTableSpaceStmt(_p?: CreateTableSpaceStmt, isNode?: boolean): CreateTableSpaceStmt | { + CreateTableSpaceStmt: CreateTableSpaceStmt; + } { const _j = {} as CreateTableSpaceStmt; _o.set(_j, "tablespacename", _p?.tablespacename); _o.set(_j, "owner", _p?.owner); _o.set(_j, "location", _p?.location); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateTableSpaceStmt: _j + }; + } return _j; }, - dropTableSpaceStmt(_p?: DropTableSpaceStmt): DropTableSpaceStmt { + dropTableSpaceStmt(_p?: DropTableSpaceStmt, isNode?: boolean): DropTableSpaceStmt | { + DropTableSpaceStmt: DropTableSpaceStmt; + } { const _j = {} as DropTableSpaceStmt; _o.set(_j, "tablespacename", _p?.tablespacename); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + DropTableSpaceStmt: _j + }; + } return _j; }, - alterTableSpaceOptionsStmt(_p?: AlterTableSpaceOptionsStmt): AlterTableSpaceOptionsStmt { + alterTableSpaceOptionsStmt(_p?: AlterTableSpaceOptionsStmt, isNode?: boolean): AlterTableSpaceOptionsStmt | { + AlterTableSpaceOptionsStmt: AlterTableSpaceOptionsStmt; + } { const _j = {} as AlterTableSpaceOptionsStmt; _o.set(_j, "tablespacename", _p?.tablespacename); _o.set(_j, "options", _p?.options); _o.set(_j, "isReset", _p?.isReset); + if (isNode) { + return { + AlterTableSpaceOptionsStmt: _j + }; + } return _j; }, - alterTableMoveAllStmt(_p?: AlterTableMoveAllStmt): AlterTableMoveAllStmt { + alterTableMoveAllStmt(_p?: AlterTableMoveAllStmt, isNode?: boolean): AlterTableMoveAllStmt | { + AlterTableMoveAllStmt: AlterTableMoveAllStmt; + } { const _j = {} as AlterTableMoveAllStmt; _o.set(_j, "orig_tablespacename", _p?.orig_tablespacename); _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "roles", _p?.roles); _o.set(_j, "new_tablespacename", _p?.new_tablespacename); _o.set(_j, "nowait", _p?.nowait); + if (isNode) { + return { + AlterTableMoveAllStmt: _j + }; + } return _j; }, - createExtensionStmt(_p?: CreateExtensionStmt): CreateExtensionStmt { + createExtensionStmt(_p?: CreateExtensionStmt, isNode?: boolean): CreateExtensionStmt | { + CreateExtensionStmt: CreateExtensionStmt; + } { const _j = {} as CreateExtensionStmt; _o.set(_j, "extname", _p?.extname); _o.set(_j, "if_not_exists", _p?.if_not_exists); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateExtensionStmt: _j + }; + } return _j; }, - alterExtensionStmt(_p?: AlterExtensionStmt): AlterExtensionStmt { + alterExtensionStmt(_p?: AlterExtensionStmt, isNode?: boolean): AlterExtensionStmt | { + AlterExtensionStmt: AlterExtensionStmt; + } { const _j = {} as AlterExtensionStmt; _o.set(_j, "extname", _p?.extname); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterExtensionStmt: _j + }; + } return _j; }, - alterExtensionContentsStmt(_p?: AlterExtensionContentsStmt): AlterExtensionContentsStmt { + alterExtensionContentsStmt(_p?: AlterExtensionContentsStmt, isNode?: boolean): AlterExtensionContentsStmt | { + AlterExtensionContentsStmt: AlterExtensionContentsStmt; + } { const _j = {} as AlterExtensionContentsStmt; _o.set(_j, "extname", _p?.extname); _o.set(_j, "action", _p?.action); _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "object", _p?.object); + if (isNode) { + return { + AlterExtensionContentsStmt: _j + }; + } return _j; }, - createFdwStmt(_p?: CreateFdwStmt): CreateFdwStmt { + createFdwStmt(_p?: CreateFdwStmt, isNode?: boolean): CreateFdwStmt | { + CreateFdwStmt: CreateFdwStmt; + } { const _j = {} as CreateFdwStmt; _o.set(_j, "fdwname", _p?.fdwname); _o.set(_j, "func_options", _p?.func_options); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateFdwStmt: _j + }; + } return _j; }, - alterFdwStmt(_p?: AlterFdwStmt): AlterFdwStmt { + alterFdwStmt(_p?: AlterFdwStmt, isNode?: boolean): AlterFdwStmt | { + AlterFdwStmt: AlterFdwStmt; + } { const _j = {} as AlterFdwStmt; _o.set(_j, "fdwname", _p?.fdwname); _o.set(_j, "func_options", _p?.func_options); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterFdwStmt: _j + }; + } return _j; }, - createForeignServerStmt(_p?: CreateForeignServerStmt): CreateForeignServerStmt { + createForeignServerStmt(_p?: CreateForeignServerStmt, isNode?: boolean): CreateForeignServerStmt | { + CreateForeignServerStmt: CreateForeignServerStmt; + } { const _j = {} as CreateForeignServerStmt; _o.set(_j, "servername", _p?.servername); _o.set(_j, "servertype", _p?.servertype); @@ -16158,46 +19568,88 @@ export default { _o.set(_j, "fdwname", _p?.fdwname); _o.set(_j, "if_not_exists", _p?.if_not_exists); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateForeignServerStmt: _j + }; + } return _j; }, - alterForeignServerStmt(_p?: AlterForeignServerStmt): AlterForeignServerStmt { + alterForeignServerStmt(_p?: AlterForeignServerStmt, isNode?: boolean): AlterForeignServerStmt | { + AlterForeignServerStmt: AlterForeignServerStmt; + } { const _j = {} as AlterForeignServerStmt; _o.set(_j, "servername", _p?.servername); _o.set(_j, "version", _p?.version); _o.set(_j, "options", _p?.options); _o.set(_j, "has_version", _p?.has_version); + if (isNode) { + return { + AlterForeignServerStmt: _j + }; + } return _j; }, - createForeignTableStmt(_p?: CreateForeignTableStmt): CreateForeignTableStmt { + createForeignTableStmt(_p?: CreateForeignTableStmt, isNode?: boolean): CreateForeignTableStmt | { + CreateForeignTableStmt: CreateForeignTableStmt; + } { const _j = {} as CreateForeignTableStmt; _o.set(_j, "base", _p?.base); _o.set(_j, "servername", _p?.servername); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateForeignTableStmt: _j + }; + } return _j; }, - createUserMappingStmt(_p?: CreateUserMappingStmt): CreateUserMappingStmt { + createUserMappingStmt(_p?: CreateUserMappingStmt, isNode?: boolean): CreateUserMappingStmt | { + CreateUserMappingStmt: CreateUserMappingStmt; + } { const _j = {} as CreateUserMappingStmt; _o.set(_j, "user", _p?.user); _o.set(_j, "servername", _p?.servername); _o.set(_j, "if_not_exists", _p?.if_not_exists); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateUserMappingStmt: _j + }; + } return _j; }, - alterUserMappingStmt(_p?: AlterUserMappingStmt): AlterUserMappingStmt { + alterUserMappingStmt(_p?: AlterUserMappingStmt, isNode?: boolean): AlterUserMappingStmt | { + AlterUserMappingStmt: AlterUserMappingStmt; + } { const _j = {} as AlterUserMappingStmt; _o.set(_j, "user", _p?.user); _o.set(_j, "servername", _p?.servername); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterUserMappingStmt: _j + }; + } return _j; }, - dropUserMappingStmt(_p?: DropUserMappingStmt): DropUserMappingStmt { + dropUserMappingStmt(_p?: DropUserMappingStmt, isNode?: boolean): DropUserMappingStmt | { + DropUserMappingStmt: DropUserMappingStmt; + } { const _j = {} as DropUserMappingStmt; _o.set(_j, "user", _p?.user); _o.set(_j, "servername", _p?.servername); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + DropUserMappingStmt: _j + }; + } return _j; }, - importForeignSchemaStmt(_p?: ImportForeignSchemaStmt): ImportForeignSchemaStmt { + importForeignSchemaStmt(_p?: ImportForeignSchemaStmt, isNode?: boolean): ImportForeignSchemaStmt | { + ImportForeignSchemaStmt: ImportForeignSchemaStmt; + } { const _j = {} as ImportForeignSchemaStmt; _o.set(_j, "server_name", _p?.server_name); _o.set(_j, "remote_schema", _p?.remote_schema); @@ -16205,9 +19657,16 @@ export default { _o.set(_j, "list_type", _p?.list_type); _o.set(_j, "table_list", _p?.table_list); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + ImportForeignSchemaStmt: _j + }; + } return _j; }, - createPolicyStmt(_p?: CreatePolicyStmt): CreatePolicyStmt { + createPolicyStmt(_p?: CreatePolicyStmt, isNode?: boolean): CreatePolicyStmt | { + CreatePolicyStmt: CreatePolicyStmt; + } { const _j = {} as CreatePolicyStmt; _o.set(_j, "policy_name", _p?.policy_name); _o.set(_j, "table", _p?.table); @@ -16216,25 +19675,46 @@ export default { _o.set(_j, "roles", _p?.roles); _o.set(_j, "qual", _p?.qual); _o.set(_j, "with_check", _p?.with_check); + if (isNode) { + return { + CreatePolicyStmt: _j + }; + } return _j; }, - alterPolicyStmt(_p?: AlterPolicyStmt): AlterPolicyStmt { + alterPolicyStmt(_p?: AlterPolicyStmt, isNode?: boolean): AlterPolicyStmt | { + AlterPolicyStmt: AlterPolicyStmt; + } { const _j = {} as AlterPolicyStmt; _o.set(_j, "policy_name", _p?.policy_name); _o.set(_j, "table", _p?.table); _o.set(_j, "roles", _p?.roles); _o.set(_j, "qual", _p?.qual); _o.set(_j, "with_check", _p?.with_check); + if (isNode) { + return { + AlterPolicyStmt: _j + }; + } return _j; }, - createAmStmt(_p?: CreateAmStmt): CreateAmStmt { + createAmStmt(_p?: CreateAmStmt, isNode?: boolean): CreateAmStmt | { + CreateAmStmt: CreateAmStmt; + } { const _j = {} as CreateAmStmt; _o.set(_j, "amname", _p?.amname); _o.set(_j, "handler_name", _p?.handler_name); _o.set(_j, "amtype", _p?.amtype); + if (isNode) { + return { + CreateAmStmt: _j + }; + } return _j; }, - createTrigStmt(_p?: CreateTrigStmt): CreateTrigStmt { + createTrigStmt(_p?: CreateTrigStmt, isNode?: boolean): CreateTrigStmt | { + CreateTrigStmt: CreateTrigStmt; + } { const _j = {} as CreateTrigStmt; _o.set(_j, "replace", _p?.replace); _o.set(_j, "isconstraint", _p?.isconstraint); @@ -16251,23 +19731,44 @@ export default { _o.set(_j, "deferrable", _p?.deferrable); _o.set(_j, "initdeferred", _p?.initdeferred); _o.set(_j, "constrrel", _p?.constrrel); + if (isNode) { + return { + CreateTrigStmt: _j + }; + } return _j; }, - createEventTrigStmt(_p?: CreateEventTrigStmt): CreateEventTrigStmt { + createEventTrigStmt(_p?: CreateEventTrigStmt, isNode?: boolean): CreateEventTrigStmt | { + CreateEventTrigStmt: CreateEventTrigStmt; + } { const _j = {} as CreateEventTrigStmt; _o.set(_j, "trigname", _p?.trigname); _o.set(_j, "eventname", _p?.eventname); _o.set(_j, "whenclause", _p?.whenclause); _o.set(_j, "funcname", _p?.funcname); + if (isNode) { + return { + CreateEventTrigStmt: _j + }; + } return _j; }, - alterEventTrigStmt(_p?: AlterEventTrigStmt): AlterEventTrigStmt { + alterEventTrigStmt(_p?: AlterEventTrigStmt, isNode?: boolean): AlterEventTrigStmt | { + AlterEventTrigStmt: AlterEventTrigStmt; + } { const _j = {} as AlterEventTrigStmt; _o.set(_j, "trigname", _p?.trigname); _o.set(_j, "tgenabled", _p?.tgenabled); + if (isNode) { + return { + AlterEventTrigStmt: _j + }; + } return _j; }, - createpLangStmt(_p?: CreatePLangStmt): CreatePLangStmt { + createpLangStmt(_p?: CreatePLangStmt, isNode?: boolean): CreatePLangStmt | { + CreatePLangStmt: CreatePLangStmt; + } { const _j = {} as CreatePLangStmt; _o.set(_j, "replace", _p?.replace); _o.set(_j, "plname", _p?.plname); @@ -16275,53 +19776,102 @@ export default { _o.set(_j, "plinline", _p?.plinline); _o.set(_j, "plvalidator", _p?.plvalidator); _o.set(_j, "pltrusted", _p?.pltrusted); + if (isNode) { + return { + CreatePLangStmt: _j + }; + } return _j; }, - createRoleStmt(_p?: CreateRoleStmt): CreateRoleStmt { + createRoleStmt(_p?: CreateRoleStmt, isNode?: boolean): CreateRoleStmt | { + CreateRoleStmt: CreateRoleStmt; + } { const _j = {} as CreateRoleStmt; _o.set(_j, "stmt_type", _p?.stmt_type); _o.set(_j, "role", _p?.role); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateRoleStmt: _j + }; + } return _j; }, - alterRoleStmt(_p?: AlterRoleStmt): AlterRoleStmt { + alterRoleStmt(_p?: AlterRoleStmt, isNode?: boolean): AlterRoleStmt | { + AlterRoleStmt: AlterRoleStmt; + } { const _j = {} as AlterRoleStmt; _o.set(_j, "role", _p?.role); _o.set(_j, "options", _p?.options); _o.set(_j, "action", _p?.action); + if (isNode) { + return { + AlterRoleStmt: _j + }; + } return _j; }, - alterRoleSetStmt(_p?: AlterRoleSetStmt): AlterRoleSetStmt { + alterRoleSetStmt(_p?: AlterRoleSetStmt, isNode?: boolean): AlterRoleSetStmt | { + AlterRoleSetStmt: AlterRoleSetStmt; + } { const _j = {} as AlterRoleSetStmt; _o.set(_j, "role", _p?.role); _o.set(_j, "database", _p?.database); _o.set(_j, "setstmt", _p?.setstmt); + if (isNode) { + return { + AlterRoleSetStmt: _j + }; + } return _j; }, - dropRoleStmt(_p?: DropRoleStmt): DropRoleStmt { + dropRoleStmt(_p?: DropRoleStmt, isNode?: boolean): DropRoleStmt | { + DropRoleStmt: DropRoleStmt; + } { const _j = {} as DropRoleStmt; _o.set(_j, "roles", _p?.roles); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + DropRoleStmt: _j + }; + } return _j; }, - createSeqStmt(_p?: CreateSeqStmt): CreateSeqStmt { + createSeqStmt(_p?: CreateSeqStmt, isNode?: boolean): CreateSeqStmt | { + CreateSeqStmt: CreateSeqStmt; + } { const _j = {} as CreateSeqStmt; _o.set(_j, "sequence", _p?.sequence); _o.set(_j, "options", _p?.options); _o.set(_j, "ownerId", _p?.ownerId); _o.set(_j, "for_identity", _p?.for_identity); _o.set(_j, "if_not_exists", _p?.if_not_exists); + if (isNode) { + return { + CreateSeqStmt: _j + }; + } return _j; }, - alterSeqStmt(_p?: AlterSeqStmt): AlterSeqStmt { + alterSeqStmt(_p?: AlterSeqStmt, isNode?: boolean): AlterSeqStmt | { + AlterSeqStmt: AlterSeqStmt; + } { const _j = {} as AlterSeqStmt; _o.set(_j, "sequence", _p?.sequence); _o.set(_j, "options", _p?.options); _o.set(_j, "for_identity", _p?.for_identity); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + AlterSeqStmt: _j + }; + } return _j; }, - defineStmt(_p?: DefineStmt): DefineStmt { + defineStmt(_p?: DefineStmt, isNode?: boolean): DefineStmt | { + DefineStmt: DefineStmt; + } { const _j = {} as DefineStmt; _o.set(_j, "kind", _p?.kind); _o.set(_j, "oldstyle", _p?.oldstyle); @@ -16330,17 +19880,31 @@ export default { _o.set(_j, "definition", _p?.definition); _o.set(_j, "if_not_exists", _p?.if_not_exists); _o.set(_j, "replace", _p?.replace); + if (isNode) { + return { + DefineStmt: _j + }; + } return _j; }, - createDomainStmt(_p?: CreateDomainStmt): CreateDomainStmt { + createDomainStmt(_p?: CreateDomainStmt, isNode?: boolean): CreateDomainStmt | { + CreateDomainStmt: CreateDomainStmt; + } { const _j = {} as CreateDomainStmt; _o.set(_j, "domainname", _p?.domainname); _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "collClause", _p?.collClause); _o.set(_j, "constraints", _p?.constraints); + if (isNode) { + return { + CreateDomainStmt: _j + }; + } return _j; }, - createOpClassStmt(_p?: CreateOpClassStmt): CreateOpClassStmt { + createOpClassStmt(_p?: CreateOpClassStmt, isNode?: boolean): CreateOpClassStmt | { + CreateOpClassStmt: CreateOpClassStmt; + } { const _j = {} as CreateOpClassStmt; _o.set(_j, "opclassname", _p?.opclassname); _o.set(_j, "opfamilyname", _p?.opfamilyname); @@ -16348,9 +19912,16 @@ export default { _o.set(_j, "datatype", _p?.datatype); _o.set(_j, "items", _p?.items); _o.set(_j, "isDefault", _p?.isDefault); + if (isNode) { + return { + CreateOpClassStmt: _j + }; + } return _j; }, - createOpClassItem(_p?: CreateOpClassItem): CreateOpClassItem { + createOpClassItem(_p?: CreateOpClassItem, isNode?: boolean): CreateOpClassItem | { + CreateOpClassItem: CreateOpClassItem; + } { const _j = {} as CreateOpClassItem; _o.set(_j, "itemtype", _p?.itemtype); _o.set(_j, "name", _p?.name); @@ -16358,74 +19929,144 @@ export default { _o.set(_j, "order_family", _p?.order_family); _o.set(_j, "class_args", _p?.class_args); _o.set(_j, "storedtype", _p?.storedtype); + if (isNode) { + return { + CreateOpClassItem: _j + }; + } return _j; }, - createOpFamilyStmt(_p?: CreateOpFamilyStmt): CreateOpFamilyStmt { + createOpFamilyStmt(_p?: CreateOpFamilyStmt, isNode?: boolean): CreateOpFamilyStmt | { + CreateOpFamilyStmt: CreateOpFamilyStmt; + } { const _j = {} as CreateOpFamilyStmt; _o.set(_j, "opfamilyname", _p?.opfamilyname); _o.set(_j, "amname", _p?.amname); + if (isNode) { + return { + CreateOpFamilyStmt: _j + }; + } return _j; }, - alterOpFamilyStmt(_p?: AlterOpFamilyStmt): AlterOpFamilyStmt { + alterOpFamilyStmt(_p?: AlterOpFamilyStmt, isNode?: boolean): AlterOpFamilyStmt | { + AlterOpFamilyStmt: AlterOpFamilyStmt; + } { const _j = {} as AlterOpFamilyStmt; _o.set(_j, "opfamilyname", _p?.opfamilyname); _o.set(_j, "amname", _p?.amname); _o.set(_j, "isDrop", _p?.isDrop); _o.set(_j, "items", _p?.items); + if (isNode) { + return { + AlterOpFamilyStmt: _j + }; + } return _j; }, - dropStmt(_p?: DropStmt): DropStmt { + dropStmt(_p?: DropStmt, isNode?: boolean): DropStmt | { + DropStmt: DropStmt; + } { const _j = {} as DropStmt; _o.set(_j, "objects", _p?.objects); _o.set(_j, "removeType", _p?.removeType); _o.set(_j, "behavior", _p?.behavior); _o.set(_j, "missing_ok", _p?.missing_ok); _o.set(_j, "concurrent", _p?.concurrent); + if (isNode) { + return { + DropStmt: _j + }; + } return _j; }, - truncateStmt(_p?: TruncateStmt): TruncateStmt { + truncateStmt(_p?: TruncateStmt, isNode?: boolean): TruncateStmt | { + TruncateStmt: TruncateStmt; + } { const _j = {} as TruncateStmt; _o.set(_j, "relations", _p?.relations); _o.set(_j, "restart_seqs", _p?.restart_seqs); _o.set(_j, "behavior", _p?.behavior); + if (isNode) { + return { + TruncateStmt: _j + }; + } return _j; }, - commentStmt(_p?: CommentStmt): CommentStmt { + commentStmt(_p?: CommentStmt, isNode?: boolean): CommentStmt | { + CommentStmt: CommentStmt; + } { const _j = {} as CommentStmt; _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "object", _p?.object); _o.set(_j, "comment", _p?.comment); + if (isNode) { + return { + CommentStmt: _j + }; + } return _j; }, - secLabelStmt(_p?: SecLabelStmt): SecLabelStmt { + secLabelStmt(_p?: SecLabelStmt, isNode?: boolean): SecLabelStmt | { + SecLabelStmt: SecLabelStmt; + } { const _j = {} as SecLabelStmt; _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "object", _p?.object); _o.set(_j, "provider", _p?.provider); _o.set(_j, "label", _p?.label); + if (isNode) { + return { + SecLabelStmt: _j + }; + } return _j; }, - declareCursorStmt(_p?: DeclareCursorStmt): DeclareCursorStmt { + declareCursorStmt(_p?: DeclareCursorStmt, isNode?: boolean): DeclareCursorStmt | { + DeclareCursorStmt: DeclareCursorStmt; + } { const _j = {} as DeclareCursorStmt; _o.set(_j, "portalname", _p?.portalname); _o.set(_j, "options", _p?.options); _o.set(_j, "query", _p?.query); + if (isNode) { + return { + DeclareCursorStmt: _j + }; + } return _j; }, - closePortalStmt(_p?: ClosePortalStmt): ClosePortalStmt { + closePortalStmt(_p?: ClosePortalStmt, isNode?: boolean): ClosePortalStmt | { + ClosePortalStmt: ClosePortalStmt; + } { const _j = {} as ClosePortalStmt; _o.set(_j, "portalname", _p?.portalname); + if (isNode) { + return { + ClosePortalStmt: _j + }; + } return _j; }, - fetchStmt(_p?: FetchStmt): FetchStmt { + fetchStmt(_p?: FetchStmt, isNode?: boolean): FetchStmt | { + FetchStmt: FetchStmt; + } { const _j = {} as FetchStmt; _o.set(_j, "direction", _p?.direction); _o.set(_j, "howMany", _p?.howMany); _o.set(_j, "portalname", _p?.portalname); _o.set(_j, "ismove", _p?.ismove); + if (isNode) { + return { + FetchStmt: _j + }; + } return _j; }, - indexStmt(_p?: IndexStmt): IndexStmt { + indexStmt(_p?: IndexStmt, isNode?: boolean): IndexStmt | { + IndexStmt: IndexStmt; + } { const _j = {} as IndexStmt; _o.set(_j, "idxname", _p?.idxname); _o.set(_j, "relation", _p?.relation); @@ -16451,9 +20092,16 @@ export default { _o.set(_j, "concurrent", _p?.concurrent); _o.set(_j, "if_not_exists", _p?.if_not_exists); _o.set(_j, "reset_default_tblspc", _p?.reset_default_tblspc); + if (isNode) { + return { + IndexStmt: _j + }; + } return _j; }, - createStatsStmt(_p?: CreateStatsStmt): CreateStatsStmt { + createStatsStmt(_p?: CreateStatsStmt, isNode?: boolean): CreateStatsStmt | { + CreateStatsStmt: CreateStatsStmt; + } { const _j = {} as CreateStatsStmt; _o.set(_j, "defnames", _p?.defnames); _o.set(_j, "stat_types", _p?.stat_types); @@ -16462,22 +20110,43 @@ export default { _o.set(_j, "stxcomment", _p?.stxcomment); _o.set(_j, "transformed", _p?.transformed); _o.set(_j, "if_not_exists", _p?.if_not_exists); + if (isNode) { + return { + CreateStatsStmt: _j + }; + } return _j; }, - statsElem(_p?: StatsElem): StatsElem { + statsElem(_p?: StatsElem, isNode?: boolean): StatsElem | { + StatsElem: StatsElem; + } { const _j = {} as StatsElem; _o.set(_j, "name", _p?.name); _o.set(_j, "expr", _p?.expr); + if (isNode) { + return { + StatsElem: _j + }; + } return _j; }, - alterStatsStmt(_p?: AlterStatsStmt): AlterStatsStmt { + alterStatsStmt(_p?: AlterStatsStmt, isNode?: boolean): AlterStatsStmt | { + AlterStatsStmt: AlterStatsStmt; + } { const _j = {} as AlterStatsStmt; _o.set(_j, "defnames", _p?.defnames); _o.set(_j, "stxstattarget", _p?.stxstattarget); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + AlterStatsStmt: _j + }; + } return _j; }, - createFunctionStmt(_p?: CreateFunctionStmt): CreateFunctionStmt { + createFunctionStmt(_p?: CreateFunctionStmt, isNode?: boolean): CreateFunctionStmt | { + CreateFunctionStmt: CreateFunctionStmt; + } { const _j = {} as CreateFunctionStmt; _o.set(_j, "is_procedure", _p?.is_procedure); _o.set(_j, "replace", _p?.replace); @@ -16486,49 +20155,98 @@ export default { _o.set(_j, "returnType", _p?.returnType); _o.set(_j, "options", _p?.options); _o.set(_j, "sql_body", _p?.sql_body); + if (isNode) { + return { + CreateFunctionStmt: _j + }; + } return _j; }, - functionParameter(_p?: FunctionParameter): FunctionParameter { + functionParameter(_p?: FunctionParameter, isNode?: boolean): FunctionParameter | { + FunctionParameter: FunctionParameter; + } { const _j = {} as FunctionParameter; _o.set(_j, "name", _p?.name); _o.set(_j, "argType", _p?.argType); _o.set(_j, "mode", _p?.mode); _o.set(_j, "defexpr", _p?.defexpr); + if (isNode) { + return { + FunctionParameter: _j + }; + } return _j; }, - alterFunctionStmt(_p?: AlterFunctionStmt): AlterFunctionStmt { + alterFunctionStmt(_p?: AlterFunctionStmt, isNode?: boolean): AlterFunctionStmt | { + AlterFunctionStmt: AlterFunctionStmt; + } { const _j = {} as AlterFunctionStmt; _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "func", _p?.func); _o.set(_j, "actions", _p?.actions); + if (isNode) { + return { + AlterFunctionStmt: _j + }; + } return _j; }, - doStmt(_p?: DoStmt): DoStmt { + doStmt(_p?: DoStmt, isNode?: boolean): DoStmt | { + DoStmt: DoStmt; + } { const _j = {} as DoStmt; _o.set(_j, "args", _p?.args); + if (isNode) { + return { + DoStmt: _j + }; + } return _j; }, - inlineCodeBlock(_p?: InlineCodeBlock): InlineCodeBlock { + inlineCodeBlock(_p?: InlineCodeBlock, isNode?: boolean): InlineCodeBlock | { + InlineCodeBlock: InlineCodeBlock; + } { const _j = {} as InlineCodeBlock; _o.set(_j, "source_text", _p?.source_text); _o.set(_j, "langOid", _p?.langOid); _o.set(_j, "langIsTrusted", _p?.langIsTrusted); _o.set(_j, "atomic", _p?.atomic); + if (isNode) { + return { + InlineCodeBlock: _j + }; + } return _j; }, - callStmt(_p?: CallStmt): CallStmt { + callStmt(_p?: CallStmt, isNode?: boolean): CallStmt | { + CallStmt: CallStmt; + } { const _j = {} as CallStmt; _o.set(_j, "funccall", _p?.funccall); _o.set(_j, "funcexpr", _p?.funcexpr); _o.set(_j, "outargs", _p?.outargs); + if (isNode) { + return { + CallStmt: _j + }; + } return _j; }, - callContext(_p?: CallContext): CallContext { + callContext(_p?: CallContext, isNode?: boolean): CallContext | { + CallContext: CallContext; + } { const _j = {} as CallContext; _o.set(_j, "atomic", _p?.atomic); + if (isNode) { + return { + CallContext: _j + }; + } return _j; }, - renameStmt(_p?: RenameStmt): RenameStmt { + renameStmt(_p?: RenameStmt, isNode?: boolean): RenameStmt | { + RenameStmt: RenameStmt; + } { const _j = {} as RenameStmt; _o.set(_j, "renameType", _p?.renameType); _o.set(_j, "relationType", _p?.relationType); @@ -16538,47 +20256,89 @@ export default { _o.set(_j, "newname", _p?.newname); _o.set(_j, "behavior", _p?.behavior); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + RenameStmt: _j + }; + } return _j; }, - alterObjectDependsStmt(_p?: AlterObjectDependsStmt): AlterObjectDependsStmt { + alterObjectDependsStmt(_p?: AlterObjectDependsStmt, isNode?: boolean): AlterObjectDependsStmt | { + AlterObjectDependsStmt: AlterObjectDependsStmt; + } { const _j = {} as AlterObjectDependsStmt; _o.set(_j, "objectType", _p?.objectType); _o.set(_j, "relation", _p?.relation); _o.set(_j, "object", _p?.object); _o.set(_j, "extname", _p?.extname); _o.set(_j, "remove", _p?.remove); + if (isNode) { + return { + AlterObjectDependsStmt: _j + }; + } return _j; }, - alterObjectSchemaStmt(_p?: AlterObjectSchemaStmt): AlterObjectSchemaStmt { + alterObjectSchemaStmt(_p?: AlterObjectSchemaStmt, isNode?: boolean): AlterObjectSchemaStmt | { + AlterObjectSchemaStmt: AlterObjectSchemaStmt; + } { const _j = {} as AlterObjectSchemaStmt; _o.set(_j, "objectType", _p?.objectType); _o.set(_j, "relation", _p?.relation); _o.set(_j, "object", _p?.object); _o.set(_j, "newschema", _p?.newschema); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + AlterObjectSchemaStmt: _j + }; + } return _j; }, - alterOwnerStmt(_p?: AlterOwnerStmt): AlterOwnerStmt { + alterOwnerStmt(_p?: AlterOwnerStmt, isNode?: boolean): AlterOwnerStmt | { + AlterOwnerStmt: AlterOwnerStmt; + } { const _j = {} as AlterOwnerStmt; _o.set(_j, "objectType", _p?.objectType); _o.set(_j, "relation", _p?.relation); _o.set(_j, "object", _p?.object); _o.set(_j, "newowner", _p?.newowner); + if (isNode) { + return { + AlterOwnerStmt: _j + }; + } return _j; }, - alterOperatorStmt(_p?: AlterOperatorStmt): AlterOperatorStmt { + alterOperatorStmt(_p?: AlterOperatorStmt, isNode?: boolean): AlterOperatorStmt | { + AlterOperatorStmt: AlterOperatorStmt; + } { const _j = {} as AlterOperatorStmt; _o.set(_j, "opername", _p?.opername); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterOperatorStmt: _j + }; + } return _j; }, - alterTypeStmt(_p?: AlterTypeStmt): AlterTypeStmt { + alterTypeStmt(_p?: AlterTypeStmt, isNode?: boolean): AlterTypeStmt | { + AlterTypeStmt: AlterTypeStmt; + } { const _j = {} as AlterTypeStmt; _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterTypeStmt: _j + }; + } return _j; }, - ruleStmt(_p?: RuleStmt): RuleStmt { + ruleStmt(_p?: RuleStmt, isNode?: boolean): RuleStmt | { + RuleStmt: RuleStmt; + } { const _j = {} as RuleStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "rulename", _p?.rulename); @@ -16587,52 +20347,108 @@ export default { _o.set(_j, "instead", _p?.instead); _o.set(_j, "actions", _p?.actions); _o.set(_j, "replace", _p?.replace); + if (isNode) { + return { + RuleStmt: _j + }; + } return _j; }, - notifyStmt(_p?: NotifyStmt): NotifyStmt { + notifyStmt(_p?: NotifyStmt, isNode?: boolean): NotifyStmt | { + NotifyStmt: NotifyStmt; + } { const _j = {} as NotifyStmt; _o.set(_j, "conditionname", _p?.conditionname); _o.set(_j, "payload", _p?.payload); + if (isNode) { + return { + NotifyStmt: _j + }; + } return _j; }, - listenStmt(_p?: ListenStmt): ListenStmt { + listenStmt(_p?: ListenStmt, isNode?: boolean): ListenStmt | { + ListenStmt: ListenStmt; + } { const _j = {} as ListenStmt; _o.set(_j, "conditionname", _p?.conditionname); + if (isNode) { + return { + ListenStmt: _j + }; + } return _j; }, - unlistenStmt(_p?: UnlistenStmt): UnlistenStmt { + unlistenStmt(_p?: UnlistenStmt, isNode?: boolean): UnlistenStmt | { + UnlistenStmt: UnlistenStmt; + } { const _j = {} as UnlistenStmt; _o.set(_j, "conditionname", _p?.conditionname); + if (isNode) { + return { + UnlistenStmt: _j + }; + } return _j; }, - transactionStmt(_p?: TransactionStmt): TransactionStmt { + transactionStmt(_p?: TransactionStmt, isNode?: boolean): TransactionStmt | { + TransactionStmt: TransactionStmt; + } { const _j = {} as TransactionStmt; _o.set(_j, "kind", _p?.kind); _o.set(_j, "options", _p?.options); _o.set(_j, "savepoint_name", _p?.savepoint_name); _o.set(_j, "gid", _p?.gid); _o.set(_j, "chain", _p?.chain); + if (isNode) { + return { + TransactionStmt: _j + }; + } return _j; }, - compositeTypeStmt(_p?: CompositeTypeStmt): CompositeTypeStmt { + compositeTypeStmt(_p?: CompositeTypeStmt, isNode?: boolean): CompositeTypeStmt | { + CompositeTypeStmt: CompositeTypeStmt; + } { const _j = {} as CompositeTypeStmt; _o.set(_j, "typevar", _p?.typevar); _o.set(_j, "coldeflist", _p?.coldeflist); + if (isNode) { + return { + CompositeTypeStmt: _j + }; + } return _j; }, - createEnumStmt(_p?: CreateEnumStmt): CreateEnumStmt { + createEnumStmt(_p?: CreateEnumStmt, isNode?: boolean): CreateEnumStmt | { + CreateEnumStmt: CreateEnumStmt; + } { const _j = {} as CreateEnumStmt; _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "vals", _p?.vals); + if (isNode) { + return { + CreateEnumStmt: _j + }; + } return _j; }, - createRangeStmt(_p?: CreateRangeStmt): CreateRangeStmt { + createRangeStmt(_p?: CreateRangeStmt, isNode?: boolean): CreateRangeStmt | { + CreateRangeStmt: CreateRangeStmt; + } { const _j = {} as CreateRangeStmt; _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "params", _p?.params); + if (isNode) { + return { + CreateRangeStmt: _j + }; + } return _j; }, - alterEnumStmt(_p?: AlterEnumStmt): AlterEnumStmt { + alterEnumStmt(_p?: AlterEnumStmt, isNode?: boolean): AlterEnumStmt | { + AlterEnumStmt: AlterEnumStmt; + } { const _j = {} as AlterEnumStmt; _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "oldVal", _p?.oldVal); @@ -16640,9 +20456,16 @@ export default { _o.set(_j, "newValNeighbor", _p?.newValNeighbor); _o.set(_j, "newValIsAfter", _p?.newValIsAfter); _o.set(_j, "skipIfNewValExists", _p?.skipIfNewValExists); + if (isNode) { + return { + AlterEnumStmt: _j + }; + } return _j; }, - viewStmt(_p?: ViewStmt): ViewStmt { + viewStmt(_p?: ViewStmt, isNode?: boolean): ViewStmt | { + ViewStmt: ViewStmt; + } { const _j = {} as ViewStmt; _o.set(_j, "view", _p?.view); _o.set(_j, "aliases", _p?.aliases); @@ -16650,185 +20473,381 @@ export default { _o.set(_j, "replace", _p?.replace); _o.set(_j, "options", _p?.options); _o.set(_j, "withCheckOption", _p?.withCheckOption); + if (isNode) { + return { + ViewStmt: _j + }; + } return _j; }, - loadStmt(_p?: LoadStmt): LoadStmt { + loadStmt(_p?: LoadStmt, isNode?: boolean): LoadStmt | { + LoadStmt: LoadStmt; + } { const _j = {} as LoadStmt; _o.set(_j, "filename", _p?.filename); + if (isNode) { + return { + LoadStmt: _j + }; + } return _j; }, - createdbStmt(_p?: CreatedbStmt): CreatedbStmt { + createdbStmt(_p?: CreatedbStmt, isNode?: boolean): CreatedbStmt | { + CreatedbStmt: CreatedbStmt; + } { const _j = {} as CreatedbStmt; _o.set(_j, "dbname", _p?.dbname); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreatedbStmt: _j + }; + } return _j; }, - alterDatabaseStmt(_p?: AlterDatabaseStmt): AlterDatabaseStmt { + alterDatabaseStmt(_p?: AlterDatabaseStmt, isNode?: boolean): AlterDatabaseStmt | { + AlterDatabaseStmt: AlterDatabaseStmt; + } { const _j = {} as AlterDatabaseStmt; _o.set(_j, "dbname", _p?.dbname); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterDatabaseStmt: _j + }; + } return _j; }, - alterDatabaseRefreshCollStmt(_p?: AlterDatabaseRefreshCollStmt): AlterDatabaseRefreshCollStmt { + alterDatabaseRefreshCollStmt(_p?: AlterDatabaseRefreshCollStmt, isNode?: boolean): AlterDatabaseRefreshCollStmt | { + AlterDatabaseRefreshCollStmt: AlterDatabaseRefreshCollStmt; + } { const _j = {} as AlterDatabaseRefreshCollStmt; _o.set(_j, "dbname", _p?.dbname); + if (isNode) { + return { + AlterDatabaseRefreshCollStmt: _j + }; + } return _j; }, - alterDatabaseSetStmt(_p?: AlterDatabaseSetStmt): AlterDatabaseSetStmt { + alterDatabaseSetStmt(_p?: AlterDatabaseSetStmt, isNode?: boolean): AlterDatabaseSetStmt | { + AlterDatabaseSetStmt: AlterDatabaseSetStmt; + } { const _j = {} as AlterDatabaseSetStmt; _o.set(_j, "dbname", _p?.dbname); _o.set(_j, "setstmt", _p?.setstmt); + if (isNode) { + return { + AlterDatabaseSetStmt: _j + }; + } return _j; }, - dropdbStmt(_p?: DropdbStmt): DropdbStmt { + dropdbStmt(_p?: DropdbStmt, isNode?: boolean): DropdbStmt | { + DropdbStmt: DropdbStmt; + } { const _j = {} as DropdbStmt; _o.set(_j, "dbname", _p?.dbname); _o.set(_j, "missing_ok", _p?.missing_ok); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + DropdbStmt: _j + }; + } return _j; }, - alterSystemStmt(_p?: AlterSystemStmt): AlterSystemStmt { + alterSystemStmt(_p?: AlterSystemStmt, isNode?: boolean): AlterSystemStmt | { + AlterSystemStmt: AlterSystemStmt; + } { const _j = {} as AlterSystemStmt; _o.set(_j, "setstmt", _p?.setstmt); + if (isNode) { + return { + AlterSystemStmt: _j + }; + } return _j; }, - clusterStmt(_p?: ClusterStmt): ClusterStmt { + clusterStmt(_p?: ClusterStmt, isNode?: boolean): ClusterStmt | { + ClusterStmt: ClusterStmt; + } { const _j = {} as ClusterStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "indexname", _p?.indexname); _o.set(_j, "params", _p?.params); + if (isNode) { + return { + ClusterStmt: _j + }; + } return _j; }, - vacuumStmt(_p?: VacuumStmt): VacuumStmt { + vacuumStmt(_p?: VacuumStmt, isNode?: boolean): VacuumStmt | { + VacuumStmt: VacuumStmt; + } { const _j = {} as VacuumStmt; _o.set(_j, "options", _p?.options); _o.set(_j, "rels", _p?.rels); _o.set(_j, "is_vacuumcmd", _p?.is_vacuumcmd); + if (isNode) { + return { + VacuumStmt: _j + }; + } return _j; }, - vacuumRelation(_p?: VacuumRelation): VacuumRelation { + vacuumRelation(_p?: VacuumRelation, isNode?: boolean): VacuumRelation | { + VacuumRelation: VacuumRelation; + } { const _j = {} as VacuumRelation; _o.set(_j, "relation", _p?.relation); _o.set(_j, "oid", _p?.oid); _o.set(_j, "va_cols", _p?.va_cols); + if (isNode) { + return { + VacuumRelation: _j + }; + } return _j; }, - explainStmt(_p?: ExplainStmt): ExplainStmt { + explainStmt(_p?: ExplainStmt, isNode?: boolean): ExplainStmt | { + ExplainStmt: ExplainStmt; + } { const _j = {} as ExplainStmt; _o.set(_j, "query", _p?.query); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + ExplainStmt: _j + }; + } return _j; }, - createTableAsStmt(_p?: CreateTableAsStmt): CreateTableAsStmt { + createTableAsStmt(_p?: CreateTableAsStmt, isNode?: boolean): CreateTableAsStmt | { + CreateTableAsStmt: CreateTableAsStmt; + } { const _j = {} as CreateTableAsStmt; _o.set(_j, "query", _p?.query); _o.set(_j, "into", _p?.into); _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "is_select_into", _p?.is_select_into); _o.set(_j, "if_not_exists", _p?.if_not_exists); + if (isNode) { + return { + CreateTableAsStmt: _j + }; + } return _j; }, - refreshMatViewStmt(_p?: RefreshMatViewStmt): RefreshMatViewStmt { + refreshMatViewStmt(_p?: RefreshMatViewStmt, isNode?: boolean): RefreshMatViewStmt | { + RefreshMatViewStmt: RefreshMatViewStmt; + } { const _j = {} as RefreshMatViewStmt; _o.set(_j, "concurrent", _p?.concurrent); _o.set(_j, "skipData", _p?.skipData); _o.set(_j, "relation", _p?.relation); + if (isNode) { + return { + RefreshMatViewStmt: _j + }; + } return _j; }, - checkPointStmt(_p?: CheckPointStmt): CheckPointStmt { + checkPointStmt(_p?: CheckPointStmt, isNode?: boolean): CheckPointStmt | { + CheckPointStmt: CheckPointStmt; + } { const _j = {} as CheckPointStmt; + if (isNode) { + return { + CheckPointStmt: _j + }; + } return _j; }, - discardStmt(_p?: DiscardStmt): DiscardStmt { + discardStmt(_p?: DiscardStmt, isNode?: boolean): DiscardStmt | { + DiscardStmt: DiscardStmt; + } { const _j = {} as DiscardStmt; _o.set(_j, "target", _p?.target); + if (isNode) { + return { + DiscardStmt: _j + }; + } return _j; }, - lockStmt(_p?: LockStmt): LockStmt { + lockStmt(_p?: LockStmt, isNode?: boolean): LockStmt | { + LockStmt: LockStmt; + } { const _j = {} as LockStmt; _o.set(_j, "relations", _p?.relations); _o.set(_j, "mode", _p?.mode); _o.set(_j, "nowait", _p?.nowait); + if (isNode) { + return { + LockStmt: _j + }; + } return _j; }, - constraintsSetStmt(_p?: ConstraintsSetStmt): ConstraintsSetStmt { + constraintsSetStmt(_p?: ConstraintsSetStmt, isNode?: boolean): ConstraintsSetStmt | { + ConstraintsSetStmt: ConstraintsSetStmt; + } { const _j = {} as ConstraintsSetStmt; _o.set(_j, "constraints", _p?.constraints); _o.set(_j, "deferred", _p?.deferred); + if (isNode) { + return { + ConstraintsSetStmt: _j + }; + } return _j; }, - reindexStmt(_p?: ReindexStmt): ReindexStmt { + reindexStmt(_p?: ReindexStmt, isNode?: boolean): ReindexStmt | { + ReindexStmt: ReindexStmt; + } { const _j = {} as ReindexStmt; _o.set(_j, "kind", _p?.kind); _o.set(_j, "relation", _p?.relation); _o.set(_j, "name", _p?.name); _o.set(_j, "params", _p?.params); + if (isNode) { + return { + ReindexStmt: _j + }; + } return _j; }, - createConversionStmt(_p?: CreateConversionStmt): CreateConversionStmt { + createConversionStmt(_p?: CreateConversionStmt, isNode?: boolean): CreateConversionStmt | { + CreateConversionStmt: CreateConversionStmt; + } { const _j = {} as CreateConversionStmt; _o.set(_j, "conversion_name", _p?.conversion_name); _o.set(_j, "for_encoding_name", _p?.for_encoding_name); _o.set(_j, "to_encoding_name", _p?.to_encoding_name); _o.set(_j, "func_name", _p?.func_name); _o.set(_j, "def", _p?.def); + if (isNode) { + return { + CreateConversionStmt: _j + }; + } return _j; }, - createCastStmt(_p?: CreateCastStmt): CreateCastStmt { + createCastStmt(_p?: CreateCastStmt, isNode?: boolean): CreateCastStmt | { + CreateCastStmt: CreateCastStmt; + } { const _j = {} as CreateCastStmt; _o.set(_j, "sourcetype", _p?.sourcetype); _o.set(_j, "targettype", _p?.targettype); _o.set(_j, "func", _p?.func); _o.set(_j, "context", _p?.context); _o.set(_j, "inout", _p?.inout); + if (isNode) { + return { + CreateCastStmt: _j + }; + } return _j; }, - createTransformStmt(_p?: CreateTransformStmt): CreateTransformStmt { + createTransformStmt(_p?: CreateTransformStmt, isNode?: boolean): CreateTransformStmt | { + CreateTransformStmt: CreateTransformStmt; + } { const _j = {} as CreateTransformStmt; _o.set(_j, "replace", _p?.replace); _o.set(_j, "type_name", _p?.type_name); _o.set(_j, "lang", _p?.lang); _o.set(_j, "fromsql", _p?.fromsql); _o.set(_j, "tosql", _p?.tosql); + if (isNode) { + return { + CreateTransformStmt: _j + }; + } return _j; }, - prepareStmt(_p?: PrepareStmt): PrepareStmt { + prepareStmt(_p?: PrepareStmt, isNode?: boolean): PrepareStmt | { + PrepareStmt: PrepareStmt; + } { const _j = {} as PrepareStmt; _o.set(_j, "name", _p?.name); _o.set(_j, "argtypes", _p?.argtypes); _o.set(_j, "query", _p?.query); + if (isNode) { + return { + PrepareStmt: _j + }; + } return _j; }, - executeStmt(_p?: ExecuteStmt): ExecuteStmt { + executeStmt(_p?: ExecuteStmt, isNode?: boolean): ExecuteStmt | { + ExecuteStmt: ExecuteStmt; + } { const _j = {} as ExecuteStmt; _o.set(_j, "name", _p?.name); _o.set(_j, "params", _p?.params); + if (isNode) { + return { + ExecuteStmt: _j + }; + } return _j; }, - deallocateStmt(_p?: DeallocateStmt): DeallocateStmt { + deallocateStmt(_p?: DeallocateStmt, isNode?: boolean): DeallocateStmt | { + DeallocateStmt: DeallocateStmt; + } { const _j = {} as DeallocateStmt; _o.set(_j, "name", _p?.name); + if (isNode) { + return { + DeallocateStmt: _j + }; + } return _j; }, - dropOwnedStmt(_p?: DropOwnedStmt): DropOwnedStmt { + dropOwnedStmt(_p?: DropOwnedStmt, isNode?: boolean): DropOwnedStmt | { + DropOwnedStmt: DropOwnedStmt; + } { const _j = {} as DropOwnedStmt; _o.set(_j, "roles", _p?.roles); _o.set(_j, "behavior", _p?.behavior); + if (isNode) { + return { + DropOwnedStmt: _j + }; + } return _j; }, - reassignOwnedStmt(_p?: ReassignOwnedStmt): ReassignOwnedStmt { + reassignOwnedStmt(_p?: ReassignOwnedStmt, isNode?: boolean): ReassignOwnedStmt | { + ReassignOwnedStmt: ReassignOwnedStmt; + } { const _j = {} as ReassignOwnedStmt; _o.set(_j, "roles", _p?.roles); _o.set(_j, "newrole", _p?.newrole); + if (isNode) { + return { + ReassignOwnedStmt: _j + }; + } return _j; }, - altertsDictionaryStmt(_p?: AlterTSDictionaryStmt): AlterTSDictionaryStmt { + altertsDictionaryStmt(_p?: AlterTSDictionaryStmt, isNode?: boolean): AlterTSDictionaryStmt | { + AlterTSDictionaryStmt: AlterTSDictionaryStmt; + } { const _j = {} as AlterTSDictionaryStmt; _o.set(_j, "dictname", _p?.dictname); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterTSDictionaryStmt: _j + }; + } return _j; }, - altertsConfigurationStmt(_p?: AlterTSConfigurationStmt): AlterTSConfigurationStmt { + altertsConfigurationStmt(_p?: AlterTSConfigurationStmt, isNode?: boolean): AlterTSConfigurationStmt | { + AlterTSConfigurationStmt: AlterTSConfigurationStmt; + } { const _j = {} as AlterTSConfigurationStmt; _o.set(_j, "kind", _p?.kind); _o.set(_j, "cfgname", _p?.cfgname); @@ -16837,70 +20856,131 @@ export default { _o.set(_j, "override", _p?.override); _o.set(_j, "replace", _p?.replace); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + AlterTSConfigurationStmt: _j + }; + } return _j; }, - publicationTable(_p?: PublicationTable): PublicationTable { + publicationTable(_p?: PublicationTable, isNode?: boolean): PublicationTable | { + PublicationTable: PublicationTable; + } { const _j = {} as PublicationTable; _o.set(_j, "relation", _p?.relation); _o.set(_j, "whereClause", _p?.whereClause); _o.set(_j, "columns", _p?.columns); + if (isNode) { + return { + PublicationTable: _j + }; + } return _j; }, - publicationObjSpec(_p?: PublicationObjSpec): PublicationObjSpec { + publicationObjSpec(_p?: PublicationObjSpec, isNode?: boolean): PublicationObjSpec | { + PublicationObjSpec: PublicationObjSpec; + } { const _j = {} as PublicationObjSpec; _o.set(_j, "pubobjtype", _p?.pubobjtype); _o.set(_j, "name", _p?.name); _o.set(_j, "pubtable", _p?.pubtable); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + PublicationObjSpec: _j + }; + } return _j; }, - createPublicationStmt(_p?: CreatePublicationStmt): CreatePublicationStmt { + createPublicationStmt(_p?: CreatePublicationStmt, isNode?: boolean): CreatePublicationStmt | { + CreatePublicationStmt: CreatePublicationStmt; + } { const _j = {} as CreatePublicationStmt; _o.set(_j, "pubname", _p?.pubname); _o.set(_j, "options", _p?.options); _o.set(_j, "pubobjects", _p?.pubobjects); _o.set(_j, "for_all_tables", _p?.for_all_tables); + if (isNode) { + return { + CreatePublicationStmt: _j + }; + } return _j; }, - alterPublicationStmt(_p?: AlterPublicationStmt): AlterPublicationStmt { + alterPublicationStmt(_p?: AlterPublicationStmt, isNode?: boolean): AlterPublicationStmt | { + AlterPublicationStmt: AlterPublicationStmt; + } { const _j = {} as AlterPublicationStmt; _o.set(_j, "pubname", _p?.pubname); _o.set(_j, "options", _p?.options); _o.set(_j, "pubobjects", _p?.pubobjects); _o.set(_j, "for_all_tables", _p?.for_all_tables); _o.set(_j, "action", _p?.action); + if (isNode) { + return { + AlterPublicationStmt: _j + }; + } return _j; }, - createSubscriptionStmt(_p?: CreateSubscriptionStmt): CreateSubscriptionStmt { + createSubscriptionStmt(_p?: CreateSubscriptionStmt, isNode?: boolean): CreateSubscriptionStmt | { + CreateSubscriptionStmt: CreateSubscriptionStmt; + } { const _j = {} as CreateSubscriptionStmt; _o.set(_j, "subname", _p?.subname); _o.set(_j, "conninfo", _p?.conninfo); _o.set(_j, "publication", _p?.publication); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateSubscriptionStmt: _j + }; + } return _j; }, - alterSubscriptionStmt(_p?: AlterSubscriptionStmt): AlterSubscriptionStmt { + alterSubscriptionStmt(_p?: AlterSubscriptionStmt, isNode?: boolean): AlterSubscriptionStmt | { + AlterSubscriptionStmt: AlterSubscriptionStmt; + } { const _j = {} as AlterSubscriptionStmt; _o.set(_j, "kind", _p?.kind); _o.set(_j, "subname", _p?.subname); _o.set(_j, "conninfo", _p?.conninfo); _o.set(_j, "publication", _p?.publication); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterSubscriptionStmt: _j + }; + } return _j; }, - dropSubscriptionStmt(_p?: DropSubscriptionStmt): DropSubscriptionStmt { + dropSubscriptionStmt(_p?: DropSubscriptionStmt, isNode?: boolean): DropSubscriptionStmt | { + DropSubscriptionStmt: DropSubscriptionStmt; + } { const _j = {} as DropSubscriptionStmt; _o.set(_j, "subname", _p?.subname); _o.set(_j, "missing_ok", _p?.missing_ok); _o.set(_j, "behavior", _p?.behavior); + if (isNode) { + return { + DropSubscriptionStmt: _j + }; + } return _j; }, - scanToken(_p?: ScanToken): ScanToken { + scanToken(_p?: ScanToken, isNode?: boolean): ScanToken | { + ScanToken: ScanToken; + } { const _j = {} as ScanToken; _o.set(_j, "start", _p?.start); _o.set(_j, "end", _p?.end); _o.set(_j, "token", _p?.token); _o.set(_j, "keywordKind", _p?.keywordKind); + if (isNode) { + return { + ScanToken: _j + }; + } return _j; } };", diff --git a/packages/proto-parser/__tests__/enum-maps.test.ts b/packages/proto-parser/__tests__/enum-maps.test.ts new file mode 100644 index 00000000..50c510db --- /dev/null +++ b/packages/proto-parser/__tests__/enum-maps.test.ts @@ -0,0 +1,70 @@ +import { parseAndSnap } from '../test-utils'; + +describe('enum-maps', () => { + it('json format enabled', () => { + parseAndSnap('enum-maps/json/enabled', { + enums: { + enabled: true, + enumMap: { + enabled: true, + format: 'json', + toIntOutFile: 'enum-to-int.json', + toStrOutFile: 'enum-to-str.json' + } + } + }); + }); + + it('typescript format enabled', () => { + parseAndSnap('enum-maps/typescript/enabled', { + enums: { + enabled: true, + enumMap: { + enabled: true, + format: 'ts', + toIntOutFile: 'enum-to-int.ts', + toStrOutFile: 'enum-to-str.ts' + } + } + }); + }); + + it('disabled enum maps', () => { + parseAndSnap('enum-maps/disabled', { + enums: { + enabled: true, + enumMap: { + enabled: false + } + } + }); + }); + + it('only toIntOutFile', () => { + parseAndSnap('enum-maps/only-int', { + enums: { + enabled: true, + enumMap: { + enabled: true, + format: 'ts', + toIntOutFile: 'enum-to-int.ts' + // toStrOutFile not set + } + } + }); + }); + + it('only toStrOutFile', () => { + parseAndSnap('enum-maps/only-str', { + enums: { + enabled: true, + enumMap: { + enabled: true, + format: 'json', + toStrOutFile: 'enum-to-str.json' + // toIntOutFile not set + } + } + }); + }); +}); \ No newline at end of file diff --git a/packages/proto-parser/__tests__/enum-utils.test.ts b/packages/proto-parser/__tests__/enum-utils.test.ts new file mode 100644 index 00000000..317f8b4b --- /dev/null +++ b/packages/proto-parser/__tests__/enum-utils.test.ts @@ -0,0 +1,84 @@ +import { parseAndSnap } from '../test-utils'; + +describe('enum utils', () => { + describe('switch statements format', () => { + it('generates bidirectional enum value functions', () => { + parseAndSnap('utils/enums/bidirectional', { + utils: { + enums: { + enabled: true, + filename: 'enum-utils.ts' + } + } + }); + }); + + it('generates unidirectional enum functions', () => { + parseAndSnap('utils/enums/unidirectional', { + utils: { + enums: { + enabled: true, + unidirectional: true, + toIntFilename: 'enum-to-int-utils.ts', + toStringFilename: 'enum-to-string-utils.ts' + } + } + }); + }); + + it('respects custom filenames for unidirectional functions', () => { + parseAndSnap('utils/enums/custom-filenames', { + utils: { + enums: { + enabled: true, + unidirectional: true, + toIntFilename: 'custom-int.ts', + toStringFilename: 'custom-string.ts' + } + } + }); + }); + + it('generates only bidirectional when unidirectional is false', () => { + parseAndSnap('utils/enums/bidirectional-explicit', { + utils: { + enums: { + enabled: true, + unidirectional: false, + filename: 'bidirectional.ts' + } + } + }); + }); + }); + + describe('nested objects format', () => { + it('generates unidirectional enum functions with nested objects', () => { + parseAndSnap('utils/enums/nested-objects', { + utils: { + enums: { + enabled: true, + unidirectional: true, + outputFormat: 'nestedObjects', + toIntFilename: 'enum-to-int-nested.ts', + toStringFilename: 'enum-to-string-nested.ts' + } + } + }); + }); + + it('generates nested objects with custom filenames', () => { + parseAndSnap('utils/enums/nested-objects-custom', { + utils: { + enums: { + enabled: true, + unidirectional: true, + outputFormat: 'nestedObjects', + toIntFilename: 'custom-int-nested.ts', + toStringFilename: 'custom-string-nested.ts' + } + } + }); + }); + }); +}); \ No newline at end of file diff --git a/packages/proto-parser/__tests__/json.test.ts b/packages/proto-parser/__tests__/json.test.ts index 43145a9c..0a6daa01 100644 --- a/packages/proto-parser/__tests__/json.test.ts +++ b/packages/proto-parser/__tests__/json.test.ts @@ -1,11 +1,27 @@ import { parseAndSnap } from '../test-utils'; describe('enums', () => { - it('json enabled', () => { + it('enumMap json enabled', () => { parseAndSnap('enums/json/enabled', { enums: { - json: { - enabled: true + enumMap: { + enabled: true, + format: 'json', + toIntOutFile: 'enums2int.json', + toStrOutFile: 'enums2str.json' + } + } + }); + }); + + it('enumMap ts enabled', () => { + parseAndSnap('enums/ts/enabled', { + enums: { + enumMap: { + enabled: true, + format: 'ts', + toIntOutFile: 'enums2int.ts', + toStrOutFile: 'enums2str.ts' } } }); diff --git a/packages/proto-parser/__tests__/runtime-schema.test.ts b/packages/proto-parser/__tests__/runtime-schema.test.ts index 233cc3ac..e8a362df 100644 --- a/packages/proto-parser/__tests__/runtime-schema.test.ts +++ b/packages/proto-parser/__tests__/runtime-schema.test.ts @@ -60,10 +60,7 @@ describe('runtime-schema', () => { filename: 'complete-schema' }, types: { - enabled: true, - wrapped: { - enabled: true - } + enabled: true }, enums: { enabled: true @@ -84,10 +81,7 @@ describe('runtime-schema', () => { filename: 'complete-schema' }, types: { - enabled: true, - wrapped: { - enabled: true - } + enabled: true }, enums: { enabled: true diff --git a/packages/proto-parser/__tests__/types.test.ts b/packages/proto-parser/__tests__/types.test.ts index 63dcdfab..e84bb6d0 100644 --- a/packages/proto-parser/__tests__/types.test.ts +++ b/packages/proto-parser/__tests__/types.test.ts @@ -17,20 +17,7 @@ describe('types', () => { } }); }); - it('wrapped', () => { - parseAndSnap('types/wrapped', { - types: { - enabled: true, - enumsSource: 'my-enums.ts', - filename: 'types.ts', - wrapped: { - enabled: true, - filename: 'wrapped.ts', - enumsSource: 'my-enums.ts' - } - } - }); - }); + it('wrappedNodeTypeExport', () => { parseAndSnap('types/node-wrapped', { types: { diff --git a/packages/proto-parser/__tests__/utils.test.ts b/packages/proto-parser/__tests__/utils.test.ts index 4e9bf80b..8a473d54 100644 --- a/packages/proto-parser/__tests__/utils.test.ts +++ b/packages/proto-parser/__tests__/utils.test.ts @@ -20,10 +20,7 @@ describe('utils', () => { enabled: true }, types: { - enabled: true, - wrapped: { - enabled: true - } + enabled: true }, utils: { astHelpers: { diff --git a/packages/proto-parser/package.json b/packages/proto-parser/package.json index 9b24ff81..9208e979 100644 --- a/packages/proto-parser/package.json +++ b/packages/proto-parser/package.json @@ -40,6 +40,9 @@ "parser", "database" ], + "devDependencies": { + "recast": "0.23.6" + }, "dependencies": { "@babel/generator": "^7.23.6", "@babel/parser": "^7.23.6", @@ -49,8 +52,6 @@ "case": "1.6.3", "deepmerge": "4.3.1", "nested-obj": "^0.0.1", - "node-html-parser": "6.1.12", - "recast": "0.23.6", "strfy-js": "^3.0.1" } } diff --git a/packages/proto-parser/scripts/generate-test-utils.ts b/packages/proto-parser/scripts/generate-test-utils.ts index 41ebbf11..36b5fe94 100644 --- a/packages/proto-parser/scripts/generate-test-utils.ts +++ b/packages/proto-parser/scripts/generate-test-utils.ts @@ -17,7 +17,7 @@ const options: PgProtoParserOptions = { utils: { astHelpers: { enabled: true, - wrappedTypesSource: './wrapped' + typesSource: './types' } } }; diff --git a/packages/proto-parser/src/ast/enums/enums.ts b/packages/proto-parser/src/ast/enums/enums.ts index e1e78f0a..7d2ff66b 100644 --- a/packages/proto-parser/src/ast/enums/enums.ts +++ b/packages/proto-parser/src/ast/enums/enums.ts @@ -110,3 +110,341 @@ export const generateEnumValueFunctions = (enumData: Enum[]) => { // Return the entire AST return [exportedEnumTypeAlias, exportedFunction]; } + +export const generateEnumToIntFunctions = (enumData: Enum[]) => { + // Create the union type for EnumType + const enumTypeIdentifier = t.identifier('EnumType'); + const enumTypeUnion = t.tsUnionType( + enumData.map(enumDef => t.tsLiteralType(t.stringLiteral(enumDef.name))) + ); + const enumTypeAlias = t.tsTypeAliasDeclaration(enumTypeIdentifier, null, enumTypeUnion); + + // Create the function parameter and its type + const enumTypeParam = t.identifier('enumType'); + const enumTypeParamAnnotation = t.tsTypeAnnotation(t.tsTypeReference(enumTypeIdentifier)); + enumTypeParam.typeAnnotation = enumTypeParamAnnotation; + + const keyParam = t.identifier('key'); + const keyParamAnnotation = t.tsTypeAnnotation(t.tsStringKeyword()); + keyParam.typeAnnotation = keyParamAnnotation; + + // Create return type annotation + const returnTypeAnnotation = t.tsTypeAnnotation(t.tsNumberKeyword()); + + // Create the switch cases for the outer switch statement + const outerCases = enumData.map(enumDef => { + const innerCases = Object.entries(enumDef.values).map(([key, value]) => { + return t.switchCase(t.stringLiteral(key), [t.returnStatement(t.numericLiteral(value))]); + }); + + // Add the default case for the inner switch + innerCases.push(t.switchCase(null, [ + t.throwStatement(t.newExpression(t.identifier('Error'), [t.stringLiteral(`Key not recognized in enum ${enumDef.name}`)])) + ])); + + return t.switchCase(t.stringLiteral(enumDef.name), [ + t.blockStatement([t.switchStatement(keyParam, innerCases)]) + ]); + }); + + // Add the default case for the outer switch + outerCases.push(t.switchCase(null, + [ + t.throwStatement( + t.newExpression(t.identifier('Error'), [t.stringLiteral('Enum type not recognized')]) + ) + ] + )); + + // Create the outer switch statement + const switchStatement = t.switchStatement(enumTypeParam, outerCases); + + // Create the function body + const functionBody = t.blockStatement([switchStatement]); + + // Create the arrow function expression with return type + const arrowFunctionExpression = t.arrowFunctionExpression( + [enumTypeParam, keyParam], + functionBody + ); + arrowFunctionExpression.returnType = returnTypeAnnotation; + + // Create the variable declarator for the function + const variableDeclarator = t.variableDeclarator( + t.identifier('getEnumInt'), + arrowFunctionExpression + ); + + // Create the variable declaration (const getEnumInt = ...) + const variableDeclaration = t.variableDeclaration('const', [variableDeclarator]); + + // Export the arrow function + const exportedFunction = t.exportNamedDeclaration(variableDeclaration, []); + + // Export the type + const exportedEnumTypeAlias = t.exportNamedDeclaration(enumTypeAlias, []); + + // Return the entire AST + return [exportedEnumTypeAlias, exportedFunction]; +} + +export const generateEnumToIntFunctionsNested = (enumData: Enum[]) => { + // Create the union type for EnumType + const enumTypeIdentifier = t.identifier('EnumType'); + const enumTypeUnion = t.tsUnionType( + enumData.map(enumDef => t.tsLiteralType(t.stringLiteral(enumDef.name))) + ); + const enumTypeAlias = t.tsTypeAliasDeclaration(enumTypeIdentifier, null, enumTypeUnion); + + // Create individual enum converter functions + const enumConverters = enumData.map(enumDef => { + // Create the switch cases for this enum + const cases = Object.entries(enumDef.values).map(([key, value]) => { + return t.switchCase(t.stringLiteral(key), [t.returnStatement(t.numericLiteral(value))]); + }); + + // Add the default case + cases.push(t.switchCase(null, [ + t.throwStatement(t.newExpression(t.identifier('Error'), [t.stringLiteral(`Key not recognized in enum ${enumDef.name}`)])) + ])); + + // Create the switch statement + const switchStatement = t.switchStatement(t.identifier('key'), cases); + + // Create the arrow function + const arrowFunction = t.arrowFunctionExpression( + [t.identifier('key')], + t.blockStatement([switchStatement]) + ); + + // Add type annotations + const keyParam = arrowFunction.params[0] as t.Identifier; + keyParam.typeAnnotation = t.tsTypeAnnotation(t.tsStringKeyword()); + arrowFunction.returnType = t.tsTypeAnnotation(t.tsNumberKeyword()); + + // Create the property + return t.objectProperty( + t.stringLiteral(enumDef.name), + arrowFunction + ); + }); + + // Create the object expression + const enumToIntObject = t.objectExpression(enumConverters); + + // Create the type for the object + const enumToIntMapType = t.tsTypeLiteral( + enumData.map(enumDef => { + const functionType = t.tsFunctionType( + null, + [t.identifier('key')], + t.tsTypeAnnotation(t.tsNumberKeyword()) + ); + const keyParam = functionType.parameters[0] as t.Identifier; + keyParam.typeAnnotation = t.tsTypeAnnotation(t.tsStringKeyword()); + + return t.tsPropertySignature( + t.stringLiteral(enumDef.name), + t.tsTypeAnnotation(functionType) + ); + }) + ); + + // Create the type alias for the map + const enumToIntMapTypeAlias = t.tsTypeAliasDeclaration( + t.identifier('EnumToIntMap'), + null, + enumToIntMapType + ); + + // Create the const assertion for better type inference + const enumToIntIdentifier = t.identifier('enumToIntMap'); + enumToIntIdentifier.typeAnnotation = t.tsTypeAnnotation( + t.tsTypeReference(t.identifier('EnumToIntMap')) + ); + + const enumToIntDeclarator = t.variableDeclarator( + enumToIntIdentifier, + enumToIntObject + ); + + const enumToIntDeclaration = t.variableDeclaration('const', [enumToIntDeclarator]); + + // Export the object + const exportedObject = t.exportNamedDeclaration(enumToIntDeclaration, []); + + // Export the types + const exportedEnumType = t.exportNamedDeclaration(enumTypeAlias, []); + const exportedMapType = t.exportNamedDeclaration(enumToIntMapTypeAlias, []); + + return [exportedEnumType, exportedMapType, exportedObject]; +} + +export const generateEnumToStringFunctionsNested = (enumData: Enum[]) => { + // Create the union type for EnumType + const enumTypeIdentifier = t.identifier('EnumType'); + const enumTypeUnion = t.tsUnionType( + enumData.map(enumDef => t.tsLiteralType(t.stringLiteral(enumDef.name))) + ); + const enumTypeAlias = t.tsTypeAliasDeclaration(enumTypeIdentifier, null, enumTypeUnion); + + // Create individual enum converter functions + const enumConverters = enumData.map(enumDef => { + // Create the switch cases for this enum + const cases = Object.entries(enumDef.values).map(([key, value]) => { + return t.switchCase(t.numericLiteral(value), [t.returnStatement(t.stringLiteral(key))]); + }); + + // Add the default case + cases.push(t.switchCase(null, [ + t.throwStatement(t.newExpression(t.identifier('Error'), [t.stringLiteral(`Value not recognized in enum ${enumDef.name}`)])) + ])); + + // Create the switch statement + const switchStatement = t.switchStatement(t.identifier('value'), cases); + + // Create the arrow function + const arrowFunction = t.arrowFunctionExpression( + [t.identifier('value')], + t.blockStatement([switchStatement]) + ); + + // Add type annotations + const valueParam = arrowFunction.params[0] as t.Identifier; + valueParam.typeAnnotation = t.tsTypeAnnotation(t.tsNumberKeyword()); + arrowFunction.returnType = t.tsTypeAnnotation(t.tsStringKeyword()); + + // Create the property + return t.objectProperty( + t.stringLiteral(enumDef.name), + arrowFunction + ); + }); + + // Create the object expression + const enumToStringObject = t.objectExpression(enumConverters); + + // Create the type for the object + const enumToStringMapType = t.tsTypeLiteral( + enumData.map(enumDef => { + const functionType = t.tsFunctionType( + null, + [t.identifier('value')], + t.tsTypeAnnotation(t.tsStringKeyword()) + ); + const valueParam = functionType.parameters[0] as t.Identifier; + valueParam.typeAnnotation = t.tsTypeAnnotation(t.tsNumberKeyword()); + + return t.tsPropertySignature( + t.stringLiteral(enumDef.name), + t.tsTypeAnnotation(functionType) + ); + }) + ); + + // Create the type alias for the map + const enumToStringMapTypeAlias = t.tsTypeAliasDeclaration( + t.identifier('EnumToStringMap'), + null, + enumToStringMapType + ); + + // Create the const assertion for better type inference + const enumToStringIdentifier = t.identifier('enumToStringMap'); + enumToStringIdentifier.typeAnnotation = t.tsTypeAnnotation( + t.tsTypeReference(t.identifier('EnumToStringMap')) + ); + + const enumToStringDeclarator = t.variableDeclarator( + enumToStringIdentifier, + enumToStringObject + ); + + const enumToStringDeclaration = t.variableDeclaration('const', [enumToStringDeclarator]); + + // Export the object + const exportedObject = t.exportNamedDeclaration(enumToStringDeclaration, []); + + // Export the types + const exportedEnumType = t.exportNamedDeclaration(enumTypeAlias, []); + const exportedMapType = t.exportNamedDeclaration(enumToStringMapTypeAlias, []); + + return [exportedEnumType, exportedMapType, exportedObject]; +} + +export const generateEnumToStringFunctions = (enumData: Enum[]) => { + // Create the union type for EnumType + const enumTypeIdentifier = t.identifier('EnumType'); + const enumTypeUnion = t.tsUnionType( + enumData.map(enumDef => t.tsLiteralType(t.stringLiteral(enumDef.name))) + ); + const enumTypeAlias = t.tsTypeAliasDeclaration(enumTypeIdentifier, null, enumTypeUnion); + + // Create the function parameter and its type + const enumTypeParam = t.identifier('enumType'); + const enumTypeParamAnnotation = t.tsTypeAnnotation(t.tsTypeReference(enumTypeIdentifier)); + enumTypeParam.typeAnnotation = enumTypeParamAnnotation; + + const keyParam = t.identifier('key'); + const keyParamAnnotation = t.tsTypeAnnotation(t.tsNumberKeyword()); + keyParam.typeAnnotation = keyParamAnnotation; + + // Create return type annotation + const returnTypeAnnotation = t.tsTypeAnnotation(t.tsStringKeyword()); + + // Create the switch cases for the outer switch statement + const outerCases = enumData.map(enumDef => { + const innerCases = Object.entries(enumDef.values).map(([key, value]) => { + return t.switchCase(t.numericLiteral(value), [t.returnStatement(t.stringLiteral(key))]); + }); + + // Add the default case for the inner switch + innerCases.push(t.switchCase(null, [ + t.throwStatement(t.newExpression(t.identifier('Error'), [t.stringLiteral(`Value not recognized in enum ${enumDef.name}`)])) + ])); + + return t.switchCase(t.stringLiteral(enumDef.name), [ + t.blockStatement([t.switchStatement(keyParam, innerCases)]) + ]); + }); + + // Add the default case for the outer switch + outerCases.push(t.switchCase(null, + [ + t.throwStatement( + t.newExpression(t.identifier('Error'), [t.stringLiteral('Enum type not recognized')]) + ) + ] + )); + + // Create the outer switch statement + const switchStatement = t.switchStatement(enumTypeParam, outerCases); + + // Create the function body + const functionBody = t.blockStatement([switchStatement]); + + // Create the arrow function expression with return type + const arrowFunctionExpression = t.arrowFunctionExpression( + [enumTypeParam, keyParam], + functionBody + ); + arrowFunctionExpression.returnType = returnTypeAnnotation; + + // Create the variable declarator for the function + const variableDeclarator = t.variableDeclarator( + t.identifier('getEnumString'), + arrowFunctionExpression + ); + + // Create the variable declaration (const getEnumString = ...) + const variableDeclaration = t.variableDeclaration('const', [variableDeclarator]); + + // Export the arrow function + const exportedFunction = t.exportNamedDeclaration(variableDeclaration, []); + + // Export the type + const exportedEnumTypeAlias = t.exportNamedDeclaration(enumTypeAlias, []); + + // Return the entire AST + return [exportedEnumTypeAlias, exportedFunction]; +} diff --git a/packages/proto-parser/src/ast/types/types.ts b/packages/proto-parser/src/ast/types/types.ts index 6368592f..52f96afb 100644 --- a/packages/proto-parser/src/ast/types/types.ts +++ b/packages/proto-parser/src/ast/types/types.ts @@ -16,9 +16,13 @@ export const generateAstHelperMethods = (types: Type[]): t.ExportDefaultDeclarat const typeName = type.name; const param = t.identifier('_p'); param.optional = true; - param.typeAnnotation = t.tsTypeAnnotation(t.tsTypeReference(t.identifier(typeName))); + // Add isNode parameter + const isNodeParam = t.identifier('isNode'); + isNodeParam.optional = true; + isNodeParam.typeAnnotation = t.tsTypeAnnotation(t.tsBooleanKeyword()); + let init: any = []; // @ts-ignore @@ -53,6 +57,21 @@ export const generateAstHelperMethods = (types: Type[]): t.ExportDefaultDeclarat ); }); + // Create the if statement for isNode check + const wrappedReturn = t.ifStatement( + t.identifier('isNode'), + t.blockStatement([ + t.returnStatement( + t.objectExpression([ + t.objectProperty( + t.identifier(typeName), + t.identifier('_j') + ) + ]) + ) + ]) + ); + // Ensures camel case const methodName = toSpecialCamelCase(typeName); @@ -60,15 +79,30 @@ export const generateAstHelperMethods = (types: Type[]): t.ExportDefaultDeclarat const method = t.objectMethod( 'method', t.identifier(methodName), - [param], + [param, isNodeParam], t.blockStatement([ astNodeInit, ...setStatements, + wrappedReturn, t.returnStatement(t.identifier('_j')) ]) ); - method.returnType = t.tsTypeAnnotation(t.tsTypeReference(t.identifier(typeName))); + // Update return type to be union of Type | { Type: Type } + const wrappedType = t.tsTypeLiteral([ + t.tsPropertySignature( + t.identifier(typeName), + t.tsTypeAnnotation(t.tsTypeReference(t.identifier(typeName))) + ) + ]); + + method.returnType = t.tsTypeAnnotation( + t.tsUnionType([ + t.tsTypeReference(t.identifier(typeName)), + wrappedType + ]) + ); + return method; }); @@ -167,41 +201,13 @@ export const convertTypeToTsInterface = ( // Wrap the interface declaration in an export statement return t.exportNamedDeclaration(interfaceDecl, []); } -export const convertTypeToWrappedTsInterface = ( - type: Type, - options: PgProtoParserOptions, - isWrappedTypeFn: (typeName: string) => boolean -) => { - const typeName = type.name; - // if (!isWrappedTypeFn(typeName)) return convertTypeToTsInterface(type, options); - return convertTypeToTsInterface(type, options); - // TODO bring this back to life... - - // const properties = extractTypeFieldsAsTsProperties(type, options); - - // const nestedInterfaceBody = t.tsInterfaceBody([ - // t.tsPropertySignature( - // t.identifier(typeName), - // t.tsTypeAnnotation(t.tsTypeLiteral(properties)) - // ) - // ]); - - // const interfaceDecl = t.tsInterfaceDeclaration( - // t.identifier(typeName), - // null, - // [], - // nestedInterfaceBody - // ); - - // return t.exportNamedDeclaration(interfaceDecl, []); -}; export const generateTypeImportSpecifiers = (types: Type[], options: PgProtoParserOptions) => { const importSpecifiers = types.map(type => t.importSpecifier(t.identifier(type.name), t.identifier(type.name)) ); - const importDeclaration = t.importDeclaration(importSpecifiers, t.stringLiteral(options.utils.astHelpers.wrappedTypesSource)); + const importDeclaration = t.importDeclaration(importSpecifiers, t.stringLiteral(options.utils.astHelpers.typesSource)); return importDeclaration; } diff --git a/packages/proto-parser/src/options/defaults.ts b/packages/proto-parser/src/options/defaults.ts index e2adeda8..5cd0e472 100644 --- a/packages/proto-parser/src/options/defaults.ts +++ b/packages/proto-parser/src/options/defaults.ts @@ -11,10 +11,14 @@ export const defaultPgProtoParserOptions: PgProtoParserOptions = { enums: { enabled: false, filename: 'utils.ts', + unidirectional: false, + toIntFilename: 'enum-to-int.ts', + toStringFilename: 'enum-to-string.ts', + outputFormat: 'switchStatements' }, astHelpers: { enabled: false, - wrappedTypesSource: './wrapped', + typesSource: './types', inlineNestedObj: false, nestedObjFile: 'nested-obj.ts', filename: 'asts.ts', @@ -25,22 +29,18 @@ export const defaultPgProtoParserOptions: PgProtoParserOptions = { filename: 'types.ts', optionalFields: true, enumsSource: './enums', - wrappedNodeTypeExport: false, - wrapped: { - enabled: false, - enumsSource: './enums', - filename: 'wrapped.ts' - } + wrappedNodeTypeExport: true }, enums: { enabled: false, filename: 'enums.ts', enumsAsTypeUnion: true, - json: { + enumMap: { enabled: false, - toIntOutFile: 'enums2int.json', - toStrOutFile: 'enums2str.json' + format: 'ts', + toIntOutFile: 'enums2int.ts', + toStrOutFile: 'enums2str.ts' }, removeUndefinedAt0: true }, diff --git a/packages/proto-parser/src/options/types.ts b/packages/proto-parser/src/options/types.ts index 96f70240..7cb90d68 100644 --- a/packages/proto-parser/src/options/types.ts +++ b/packages/proto-parser/src/options/types.ts @@ -19,6 +19,14 @@ export interface PgProtoStoreOptions { enabled?: boolean; // Enums helpers filename filename?: string; + // Whether to generate separate unidirectional functions + unidirectional?: boolean; + // Filename for enum to int function + toIntFilename?: string; + // Filename for enum to string function + toStringFilename?: string; + // Output format: 'switchStatements' or 'nestedObjects' + outputFormat?: 'switchStatements' | 'nestedObjects'; } // AST helper functions. @@ -26,7 +34,7 @@ export interface PgProtoStoreOptions { // Whether to include TypeScript AST builders enabled?: boolean; // Source file for AST helper types. - wrappedTypesSource?: string; + typesSource?: string; // Whether to inline nested-obj inlineNestedObj?: boolean; // if inlined, filename @@ -47,19 +55,10 @@ export interface PgProtoStoreOptions { // Enums source specifier enumsSource?: string; // Node Object Keys, e.g. { ParseResult: ParseResult, ... } - // meant for simpler user cases where wrapped is advanced - // if a field in an object uses Node, it's wrapped + // meant for simpler user cases + // if a field in an object uses Node, it's a node type // if a field in an object references a type, e.g. RangeVar, it's flat wrappedNodeTypeExport?: boolean; - // wrapped types, for building AST - wrapped?: { - // Enabled wrapped types, to match AST - enabled?: boolean; - // Source file for enums - enumsSource?: string; - // Types filename - filename?: string; - } }; // Options related to runtime schema generation. @@ -78,10 +77,12 @@ export interface PgProtoStoreOptions { filename?: string; // Whether enums in TypeScript are a union type enumsAsTypeUnion?: boolean; - // Options for JSON mappings of enums. - json?: { - // Whether to generate JSON files mapping enum names to values. + // Options for enum mappings output. + enumMap?: { + // Whether to generate enum mapping files. enabled?: boolean; + // Output format: 'json' for plain JSON files, 'ts' for TypeScript exports + format?: 'json' | 'ts'; toIntOutFile?: string; toStrOutFile?: string; }; diff --git a/packages/proto-parser/src/runtime-schema/generator.ts b/packages/proto-parser/src/runtime-schema/generator.ts index c7411ba8..733c09ca 100644 --- a/packages/proto-parser/src/runtime-schema/generator.ts +++ b/packages/proto-parser/src/runtime-schema/generator.ts @@ -3,21 +3,21 @@ import { NodeSpec, FieldSpec } from './types'; export class RuntimeSchemaGenerator { private root: Namespace; - private wrappedTypes: Set = new Set(); + private nodeTypes: Set = new Set(); constructor(root: Namespace) { this.root = root; - this.extractWrappedTypes(); + this.extractNodeTypes(); } - private extractWrappedTypes(): void { + private extractNodeTypes(): void { const nodeType = this.root.lookupType('Node'); if (nodeType && nodeType.oneofs && nodeType.oneofs.node) { const oneof = nodeType.oneofs.node; for (const fieldName of oneof.fieldsArray.map(f => f.name)) { const field = nodeType.fields[fieldName]; if (field && field.type) { - this.wrappedTypes.add(field.type); + this.nodeTypes.add(field.type); } } } @@ -53,7 +53,7 @@ export class RuntimeSchemaGenerator { return { name: type.name, - wrapped: this.wrappedTypes.has(type.name), + isNode: this.nodeTypes.has(type.name), fields: fields.sort((a, b) => a.name.localeCompare(b.name)) }; } @@ -63,7 +63,7 @@ export class RuntimeSchemaGenerator { const isArray = field.repeated || false; const optional = !field.required; const fieldType = field.type; - const isNode = fieldType === 'Node' || this.wrappedTypes.has(fieldType); + const isNode = fieldType === 'Node' || this.nodeTypes.has(fieldType); return { name: fieldName, @@ -74,11 +74,11 @@ export class RuntimeSchemaGenerator { }; } - public getWrappedTypes(): string[] { - return Array.from(this.wrappedTypes).sort(); + public getNodeTypes(): string[] { + return Array.from(this.nodeTypes).sort(); } - public getWrappedTypesCount(): number { - return this.wrappedTypes.size; + public getNodeTypesCount(): number { + return this.nodeTypes.size; } } diff --git a/packages/proto-parser/src/runtime-schema/types.ts b/packages/proto-parser/src/runtime-schema/types.ts index ed4a6ada..cc150ff3 100644 --- a/packages/proto-parser/src/runtime-schema/types.ts +++ b/packages/proto-parser/src/runtime-schema/types.ts @@ -8,7 +8,7 @@ export interface FieldSpec { export interface NodeSpec { name: string; - wrapped: boolean; + isNode: boolean; fields: FieldSpec[]; } diff --git a/packages/proto-parser/src/store.ts b/packages/proto-parser/src/store.ts index 9893e727..d612663c 100644 --- a/packages/proto-parser/src/store.ts +++ b/packages/proto-parser/src/store.ts @@ -1,5 +1,5 @@ import { Service, Type, Field, Enum, Namespace, ReflectionObject } from '@launchql/protobufjs'; -import { generateEnumImports, generateAstHelperMethods, generateTypeImportSpecifiers, generateEnumValueFunctions, convertEnumToTsUnionType, convertEnumToTsEnumDeclaration, generateNodeUnionType, convertTypeToTsInterface, convertTypeToWrappedTsInterface } from './ast'; +import { generateEnumImports, generateAstHelperMethods, generateTypeImportSpecifiers, generateEnumValueFunctions, generateEnumToIntFunctions, generateEnumToStringFunctions, generateEnumToIntFunctionsNested, generateEnumToStringFunctionsNested, convertEnumToTsUnionType, convertEnumToTsEnumDeclaration, generateNodeUnionType, convertTypeToTsInterface } from './ast'; import { RuntimeSchemaGenerator } from './runtime-schema'; import { generateEnum2IntJSON, generateEnum2StrJSON } from './ast/enums/enums-json'; import { jsStringify } from 'strfy-js'; @@ -92,22 +92,44 @@ export class ProtoStore implements IProtoStore { // Ensure the output directory exists mkdirSync(this.options.outDir, { recursive: true }); - this.writeEnumsJSON(); + this.writeEnumMaps(); this.writeTypes(); - this.writeWrappedTypes(); this.writeEnums(); this.writeUtilsEnums(); this.writeAstHelpers(); this.writeRuntimeSchema(); } - writeEnumsJSON() { - if (this.options.enums.json.enabled) { - const enums2int = generateEnum2IntJSON(this.enums); - const enums2str = generateEnum2StrJSON(this.enums); + writeEnumMaps() { + if (!this.options.enums.enumMap?.enabled) { + return; + } + + const enumsToProcess = this.enumsToProcess(); + const enums2int = generateEnum2IntJSON(enumsToProcess); + const enums2str = generateEnum2StrJSON(enumsToProcess); + const format = this.options.enums.enumMap.format || 'json'; - this.writeFile(this.options.enums.json.toIntOutFile, JSON.stringify(enums2int, null, 2)); - this.writeFile(this.options.enums.json.toStrOutFile, JSON.stringify(enums2str, null, 2)); + if (format === 'json') { + // Write plain JSON files + if (this.options.enums.enumMap.toIntOutFile) { + this.writeFile(this.options.enums.enumMap.toIntOutFile, JSON.stringify(enums2int, null, 2)); + } + if (this.options.enums.enumMap.toStrOutFile) { + this.writeFile(this.options.enums.enumMap.toStrOutFile, JSON.stringify(enums2str, null, 2)); + } + } else if (format === 'ts') { + // Write TypeScript files with exports + if (this.options.enums.enumMap.toIntOutFile) { + const tsContent = this.generateEnumMapTypeScript(enums2int, 'enumToIntMap', 'EnumToIntMap'); + const filename = this.ensureCorrectExtension(this.options.enums.enumMap.toIntOutFile, '.ts'); + this.writeFile(filename, tsContent); + } + if (this.options.enums.enumMap.toStrOutFile) { + const tsContent = this.generateEnumMapTypeScript(enums2str, 'enumToStrMap', 'EnumToStrMap'); + const filename = this.ensureCorrectExtension(this.options.enums.enumMap.toStrOutFile, '.ts'); + this.writeFile(filename, tsContent); + } } } @@ -143,24 +165,7 @@ export class ProtoStore implements IProtoStore { } } - writeWrappedTypes() { - if (this.options.types.wrapped.enabled) { - const typesToProcess = this.typesToProcess(); - const enumImports = generateEnumImports( - this.enumsToProcess(), - this.options.types.wrapped.enumsSource - ); - const node = generateNodeUnionType(this.options, typesToProcess); - const types = typesToProcess.reduce((m, type) => { - return [...m, convertTypeToWrappedTsInterface(type, this.options, (typeName: string) => this.isWrappedType(typeName))] - }, []); - this.writeCodeToFile(this.options.types.wrapped.filename, [ - enumImports, - node, - ...types - ]); - } - } + writeEnums() { if (this.options.enums.enabled) { @@ -175,8 +180,25 @@ export class ProtoStore implements IProtoStore { writeUtilsEnums() { if (this.options.utils.enums.enabled) { - const code = convertAstToCode(generateEnumValueFunctions(this.enumsToProcess())); - this.writeFile(this.options.utils.enums.filename, code); + const enumsToProcess = this.enumsToProcess(); + const useNestedObjects = this.options.utils.enums.outputFormat === 'nestedObjects'; + + if (this.options.utils.enums.unidirectional) { + // Generate separate unidirectional functions + const toIntGenerator = useNestedObjects ? generateEnumToIntFunctionsNested : generateEnumToIntFunctions; + const toStringGenerator = useNestedObjects ? generateEnumToStringFunctionsNested : generateEnumToStringFunctions; + + const toIntCode = convertAstToCode(toIntGenerator(enumsToProcess)); + this.writeFile(this.options.utils.enums.toIntFilename, toIntCode); + + const toStringCode = convertAstToCode(toStringGenerator(enumsToProcess)); + this.writeFile(this.options.utils.enums.toStringFilename, toStringCode); + } else { + // Generate bidirectional function (original behavior) + // Note: Nested objects format only supported for unidirectional functions + const code = convertAstToCode(generateEnumValueFunctions(enumsToProcess)); + this.writeFile(this.options.utils.enums.filename, code); + } } } @@ -230,11 +252,7 @@ export class ProtoStore implements IProtoStore { return this._runtimeSchema; } - isWrappedType(typeName: string): boolean { - const schema = this.getRuntimeSchema(); - const nodeSpec = schema.find(spec => spec.name === typeName); - return nodeSpec ? nodeSpec.wrapped : false; - } + generateRuntimeSchemaTypeScript(nodeSpecs: any[]): string { const interfaceDefinitions = [ @@ -248,7 +266,7 @@ export class ProtoStore implements IProtoStore { '', 'export interface NodeSpec {', ' name: string;', - ' wrapped: boolean;', + ' isNode: boolean;', ' fields: FieldSpec[];', '}', '' @@ -261,14 +279,38 @@ export class ProtoStore implements IProtoStore { })};`; return [ - this.options.includeHeader ? this.getHeader() : '', ...interfaceDefinitions, exportStatement ].filter(Boolean).join('\n'); } - getHeader(): string { - return `// Generated by pg-proto-parser`; + generateEnumMapTypeScript(enumMap: any, varName: string, typeName: string): string { + const exportStatement = `export const ${varName} = ${jsStringify(enumMap, { + space: 2, + camelCase: false, // Preserve enum casing + quotes: 'single' + })};`; + + const typeStatement = `export type ${typeName} = typeof ${varName};`; + + return [ + exportStatement, + '', + typeStatement + ].filter(Boolean).join('\n'); + } + + ensureCorrectExtension(filename: string, expectedExt: string): string { + const currentExt = filename.match(/\.[^.]+$/)?.[0] || ''; + if (currentExt && currentExt !== expectedExt) { + // Replace the current extension with the expected one + return filename.slice(0, -currentExt.length) + expectedExt; + } else if (!currentExt) { + // No extension, add the expected one + return filename + expectedExt; + } + // Extension is already correct + return filename; } writeFile(filePath: string, content: string) { diff --git a/packages/transform/README.md b/packages/transform/README.md index ac87727f..340f0ed6 100644 --- a/packages/transform/README.md +++ b/packages/transform/README.md @@ -1,4 +1,4 @@ -# @pgsql/types +# @pgsql/transform

@@ -17,72 +17,5 @@ `@pgsql/types` is a TypeScript library providing type definitions for PostgreSQL AST nodes, primarily used in conjunction with [`pgsql-parser`](https://github.com/launchql/pgsql-parser). It offers a comprehensive and type-safe way to interact with the AST nodes generated by PostgreSQL query parsing. -## Installation -Install the package via npm: - -```bash -npm install @pgsql/types -``` - -## Usage - -`@pgsql/types` provides TypeScript type definitions for PostgreSQL Abstract Syntax Tree (AST) nodes. These types are useful for constructing, analyzing, or manipulating ASTs in a type-safe manner. - -Here are a few examples of how you can use these types in your TypeScript projects: - -### Validating AST Nodes - -You can use the types to validate AST nodes, ensuring they conform to the expected structure: - -```ts -import { CreateStmt } from '@pgsql/types'; - -function validateCreateStmt(stmt: CreateStmt) { - if (!stmt.relation || !stmt.tableElts) { - throw new Error('Invalid CreateStmt: missing required fields'); - } - // Add more validation logic as needed - console.log('CreateStmt is valid'); -} - -// Example usage -validateCreateStmt(createStmtObject); -``` - -### Constructing AST Nodes - -Types help ensure that you construct AST nodes correctly: - -```ts -import { CreateStmt, ColumnDef, Constraint } from '@pgsql/types'; - -const newColumn: ColumnDef = { - colname: 'id', - typeName: { names: [{ String: { str: 'int4' } }] }, - constraints: [{ Constraint: { contype: 'CONSTR_PRIMARY' } }], -}; - -const createStmt: CreateStmt = { - relation: { relname: 'new_table' }, - tableElts: [newColumn], -}; - -console.log(createStmt); -``` - -## Related - -* [pgsql-parser](https://github.com/launchql/pgsql-parser): The real PostgreSQL parser for Node.js, providing symmetric parsing and deparsing of SQL statements with actual PostgreSQL parser integration. -* [pgsql-deparser](https://github.com/launchql/pgsql-parser/tree/main/packages/deparser): A streamlined tool designed for converting PostgreSQL ASTs back into SQL queries, focusing solely on deparser functionality to complement `pgsql-parser`. -* [pgsql-enums](https://github.com/launchql/pgsql-parser/tree/main/packages/pgsql-enums): A utility package offering easy access to PostgreSQL enumeration types in JSON format, aiding in string and integer conversions of enums used within ASTs to compliment `pgsql-parser` -* [@pgsql/enums](https://github.com/launchql/pgsql-parser/tree/main/packages/enums): Provides PostgreSQL AST enums in TypeScript, enhancing type safety and usability in projects interacting with PostgreSQL AST nodes. -* [@pgsql/types](https://github.com/launchql/pgsql-parser/tree/main/packages/types): Offers TypeScript type definitions for PostgreSQL AST nodes, facilitating type-safe construction, analysis, and manipulation of ASTs. -* [@pgsql/utils](https://github.com/launchql/pgsql-parser/tree/main/packages/utils): A comprehensive utility library for PostgreSQL, offering type-safe AST node creation and enum value conversions, simplifying the construction and manipulation of PostgreSQL ASTs. -* [pg-proto-parser](https://github.com/launchql/pg-proto-parser): A TypeScript tool that parses PostgreSQL Protocol Buffers definitions to generate TypeScript interfaces, utility functions, and JSON mappings for enums. -* [libpg-query](https://github.com/launchql/libpg-query-node): The real PostgreSQL parser exposed for Node.js, used primarily in `pgsql-parser` for parsing and deparsing SQL queries. -## Disclaimer - -AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED “AS IS”, AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. - -No developer or entity involved in creating Software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the Software code or Software CLI, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. \ No newline at end of file +TODO \ No newline at end of file diff --git a/packages/transform/__test__/transform.test.ts b/packages/transform/__test__/transform.test.ts index 4a5ebe3a..f9156714 100644 --- a/packages/transform/__test__/transform.test.ts +++ b/packages/transform/__test__/transform.test.ts @@ -2,45 +2,6 @@ import { transformPG13ToPG17 } from '../src/index'; import { Node as PG13Node } from '../src/13/types'; import { Node as PG17Node } from '../src/17/types'; -const describe = (name: string, fn: () => void) => { - console.log(`\n=== ${name} ===`); - fn(); -}; - -const test = (name: string, fn: () => void) => { - try { - fn(); - console.log(`✓ ${name}`); - } catch (error) { - console.log(`✗ ${name}: ${error}`); - } -}; - -const expect = (actual: any) => ({ - toEqual: (expected: any) => { - const actualStr = JSON.stringify(actual, null, 2); - const expectedStr = JSON.stringify(expected, null, 2); - if (actualStr !== expectedStr) { - throw new Error(`Expected ${expectedStr} but got ${actualStr}`); - } - }, - toBe: (expected: any) => { - if (actual !== expected) { - throw new Error(`Expected ${expected} but got ${actual}`); - } - }, - toBeUndefined: () => { - if (actual !== undefined) { - throw new Error(`Expected undefined but got ${actual}`); - } - }, - toHaveLength: (length: number) => { - if (!actual || actual.length !== length) { - throw new Error(`Expected length ${length} but got ${actual?.length}`); - } - } -}); - describe('PG13 to PG17 transformer', () => { test('transforms basic string node', () => { const pg13Node: PG13Node = { @@ -167,11 +128,9 @@ describe('PG13 to PG17 transformer', () => { test('handles PG17-only node types by passing through', () => { const pg17OnlyNode = { WindowFuncRunCondition: { - xpr: undefined, opno: 123, inputcollid: 456, - wfunc_left: true, - arg: undefined + wfunc_left: true } }; @@ -244,6 +203,4 @@ describe('PG13 to PG17 transformer', () => { } } }); -}); - -console.log('Running PG13 to PG17 transformer tests...'); +}); \ No newline at end of file diff --git a/packages/utils/scripts/pg-proto-parser.ts b/packages/utils/scripts/pg-proto-parser.ts index e3f0b471..d215ea78 100644 --- a/packages/utils/scripts/pg-proto-parser.ts +++ b/packages/utils/scripts/pg-proto-parser.ts @@ -7,16 +7,12 @@ const outDir: string = resolve(join(__dirname, '../src')); const options: PgProtoParserOptions = { outDir, types: { - enabled: false, - wrapped: { - enabled: true, - enumsSource: '@pgsql/types', - } + enabled: false }, utils: { astHelpers: { enabled: true, - wrappedTypesSource: './wrapped' + typesSource: '@pgsql/types' } } }; diff --git a/packages/utils/src/asts.ts b/packages/utils/src/asts.ts index 590be83b..52edd554 100644 --- a/packages/utils/src/asts.ts +++ b/packages/utils/src/asts.ts @@ -4,61 +4,133 @@ * and run the pg-proto-parser generate command to regenerate this file. */ import _o from "nested-obj"; -import { ParseResult, ScanResult, Integer, Float, Boolean, String, BitString, List, OidList, IntList, A_Const, Alias, RangeVar, TableFunc, IntoClause, Var, Param, Aggref, GroupingFunc, WindowFunc, WindowFuncRunCondition, MergeSupportFunc, SubscriptingRef, FuncExpr, NamedArgExpr, OpExpr, DistinctExpr, NullIfExpr, ScalarArrayOpExpr, BoolExpr, SubLink, SubPlan, AlternativeSubPlan, FieldSelect, FieldStore, RelabelType, CoerceViaIO, ArrayCoerceExpr, ConvertRowtypeExpr, CollateExpr, CaseExpr, CaseWhen, CaseTestExpr, ArrayExpr, RowExpr, RowCompareExpr, CoalesceExpr, MinMaxExpr, SQLValueFunction, XmlExpr, JsonFormat, JsonReturning, JsonValueExpr, JsonConstructorExpr, JsonIsPredicate, JsonBehavior, JsonExpr, JsonTablePath, JsonTablePathScan, JsonTableSiblingJoin, NullTest, BooleanTest, MergeAction, CoerceToDomain, CoerceToDomainValue, SetToDefault, CurrentOfExpr, NextValueExpr, InferenceElem, TargetEntry, RangeTblRef, JoinExpr, FromExpr, OnConflictExpr, Query, TypeName, ColumnRef, ParamRef, A_Expr, TypeCast, CollateClause, RoleSpec, FuncCall, A_Star, A_Indices, A_Indirection, A_ArrayExpr, ResTarget, MultiAssignRef, SortBy, WindowDef, RangeSubselect, RangeFunction, RangeTableFunc, RangeTableFuncCol, RangeTableSample, ColumnDef, TableLikeClause, IndexElem, DefElem, LockingClause, XmlSerialize, PartitionElem, PartitionSpec, PartitionBoundSpec, PartitionRangeDatum, SinglePartitionSpec, PartitionCmd, RangeTblEntry, RTEPermissionInfo, RangeTblFunction, TableSampleClause, WithCheckOption, SortGroupClause, GroupingSet, WindowClause, RowMarkClause, WithClause, InferClause, OnConflictClause, CTESearchClause, CTECycleClause, CommonTableExpr, MergeWhenClause, TriggerTransition, JsonOutput, JsonArgument, JsonFuncExpr, JsonTablePathSpec, JsonTable, JsonTableColumn, JsonKeyValue, JsonParseExpr, JsonScalarExpr, JsonSerializeExpr, JsonObjectConstructor, JsonArrayConstructor, JsonArrayQueryConstructor, JsonAggConstructor, JsonObjectAgg, JsonArrayAgg, RawStmt, InsertStmt, DeleteStmt, UpdateStmt, MergeStmt, SelectStmt, SetOperationStmt, ReturnStmt, PLAssignStmt, CreateSchemaStmt, AlterTableStmt, ReplicaIdentityStmt, AlterTableCmd, AlterCollationStmt, AlterDomainStmt, GrantStmt, ObjectWithArgs, AccessPriv, GrantRoleStmt, AlterDefaultPrivilegesStmt, CopyStmt, VariableSetStmt, VariableShowStmt, CreateStmt, Constraint, CreateTableSpaceStmt, DropTableSpaceStmt, AlterTableSpaceOptionsStmt, AlterTableMoveAllStmt, CreateExtensionStmt, AlterExtensionStmt, AlterExtensionContentsStmt, CreateFdwStmt, AlterFdwStmt, CreateForeignServerStmt, AlterForeignServerStmt, CreateForeignTableStmt, CreateUserMappingStmt, AlterUserMappingStmt, DropUserMappingStmt, ImportForeignSchemaStmt, CreatePolicyStmt, AlterPolicyStmt, CreateAmStmt, CreateTrigStmt, CreateEventTrigStmt, AlterEventTrigStmt, CreatePLangStmt, CreateRoleStmt, AlterRoleStmt, AlterRoleSetStmt, DropRoleStmt, CreateSeqStmt, AlterSeqStmt, DefineStmt, CreateDomainStmt, CreateOpClassStmt, CreateOpClassItem, CreateOpFamilyStmt, AlterOpFamilyStmt, DropStmt, TruncateStmt, CommentStmt, SecLabelStmt, DeclareCursorStmt, ClosePortalStmt, FetchStmt, IndexStmt, CreateStatsStmt, StatsElem, AlterStatsStmt, CreateFunctionStmt, FunctionParameter, AlterFunctionStmt, DoStmt, InlineCodeBlock, CallStmt, CallContext, RenameStmt, AlterObjectDependsStmt, AlterObjectSchemaStmt, AlterOwnerStmt, AlterOperatorStmt, AlterTypeStmt, RuleStmt, NotifyStmt, ListenStmt, UnlistenStmt, TransactionStmt, CompositeTypeStmt, CreateEnumStmt, CreateRangeStmt, AlterEnumStmt, ViewStmt, LoadStmt, CreatedbStmt, AlterDatabaseStmt, AlterDatabaseRefreshCollStmt, AlterDatabaseSetStmt, DropdbStmt, AlterSystemStmt, ClusterStmt, VacuumStmt, VacuumRelation, ExplainStmt, CreateTableAsStmt, RefreshMatViewStmt, CheckPointStmt, DiscardStmt, LockStmt, ConstraintsSetStmt, ReindexStmt, CreateConversionStmt, CreateCastStmt, CreateTransformStmt, PrepareStmt, ExecuteStmt, DeallocateStmt, DropOwnedStmt, ReassignOwnedStmt, AlterTSDictionaryStmt, AlterTSConfigurationStmt, PublicationTable, PublicationObjSpec, CreatePublicationStmt, AlterPublicationStmt, CreateSubscriptionStmt, AlterSubscriptionStmt, DropSubscriptionStmt, ScanToken } from "./wrapped"; +import { ParseResult, ScanResult, Integer, Float, Boolean, String, BitString, List, OidList, IntList, A_Const, Alias, RangeVar, TableFunc, IntoClause, Var, Param, Aggref, GroupingFunc, WindowFunc, WindowFuncRunCondition, MergeSupportFunc, SubscriptingRef, FuncExpr, NamedArgExpr, OpExpr, DistinctExpr, NullIfExpr, ScalarArrayOpExpr, BoolExpr, SubLink, SubPlan, AlternativeSubPlan, FieldSelect, FieldStore, RelabelType, CoerceViaIO, ArrayCoerceExpr, ConvertRowtypeExpr, CollateExpr, CaseExpr, CaseWhen, CaseTestExpr, ArrayExpr, RowExpr, RowCompareExpr, CoalesceExpr, MinMaxExpr, SQLValueFunction, XmlExpr, JsonFormat, JsonReturning, JsonValueExpr, JsonConstructorExpr, JsonIsPredicate, JsonBehavior, JsonExpr, JsonTablePath, JsonTablePathScan, JsonTableSiblingJoin, NullTest, BooleanTest, MergeAction, CoerceToDomain, CoerceToDomainValue, SetToDefault, CurrentOfExpr, NextValueExpr, InferenceElem, TargetEntry, RangeTblRef, JoinExpr, FromExpr, OnConflictExpr, Query, TypeName, ColumnRef, ParamRef, A_Expr, TypeCast, CollateClause, RoleSpec, FuncCall, A_Star, A_Indices, A_Indirection, A_ArrayExpr, ResTarget, MultiAssignRef, SortBy, WindowDef, RangeSubselect, RangeFunction, RangeTableFunc, RangeTableFuncCol, RangeTableSample, ColumnDef, TableLikeClause, IndexElem, DefElem, LockingClause, XmlSerialize, PartitionElem, PartitionSpec, PartitionBoundSpec, PartitionRangeDatum, SinglePartitionSpec, PartitionCmd, RangeTblEntry, RTEPermissionInfo, RangeTblFunction, TableSampleClause, WithCheckOption, SortGroupClause, GroupingSet, WindowClause, RowMarkClause, WithClause, InferClause, OnConflictClause, CTESearchClause, CTECycleClause, CommonTableExpr, MergeWhenClause, TriggerTransition, JsonOutput, JsonArgument, JsonFuncExpr, JsonTablePathSpec, JsonTable, JsonTableColumn, JsonKeyValue, JsonParseExpr, JsonScalarExpr, JsonSerializeExpr, JsonObjectConstructor, JsonArrayConstructor, JsonArrayQueryConstructor, JsonAggConstructor, JsonObjectAgg, JsonArrayAgg, RawStmt, InsertStmt, DeleteStmt, UpdateStmt, MergeStmt, SelectStmt, SetOperationStmt, ReturnStmt, PLAssignStmt, CreateSchemaStmt, AlterTableStmt, ReplicaIdentityStmt, AlterTableCmd, AlterCollationStmt, AlterDomainStmt, GrantStmt, ObjectWithArgs, AccessPriv, GrantRoleStmt, AlterDefaultPrivilegesStmt, CopyStmt, VariableSetStmt, VariableShowStmt, CreateStmt, Constraint, CreateTableSpaceStmt, DropTableSpaceStmt, AlterTableSpaceOptionsStmt, AlterTableMoveAllStmt, CreateExtensionStmt, AlterExtensionStmt, AlterExtensionContentsStmt, CreateFdwStmt, AlterFdwStmt, CreateForeignServerStmt, AlterForeignServerStmt, CreateForeignTableStmt, CreateUserMappingStmt, AlterUserMappingStmt, DropUserMappingStmt, ImportForeignSchemaStmt, CreatePolicyStmt, AlterPolicyStmt, CreateAmStmt, CreateTrigStmt, CreateEventTrigStmt, AlterEventTrigStmt, CreatePLangStmt, CreateRoleStmt, AlterRoleStmt, AlterRoleSetStmt, DropRoleStmt, CreateSeqStmt, AlterSeqStmt, DefineStmt, CreateDomainStmt, CreateOpClassStmt, CreateOpClassItem, CreateOpFamilyStmt, AlterOpFamilyStmt, DropStmt, TruncateStmt, CommentStmt, SecLabelStmt, DeclareCursorStmt, ClosePortalStmt, FetchStmt, IndexStmt, CreateStatsStmt, StatsElem, AlterStatsStmt, CreateFunctionStmt, FunctionParameter, AlterFunctionStmt, DoStmt, InlineCodeBlock, CallStmt, CallContext, RenameStmt, AlterObjectDependsStmt, AlterObjectSchemaStmt, AlterOwnerStmt, AlterOperatorStmt, AlterTypeStmt, RuleStmt, NotifyStmt, ListenStmt, UnlistenStmt, TransactionStmt, CompositeTypeStmt, CreateEnumStmt, CreateRangeStmt, AlterEnumStmt, ViewStmt, LoadStmt, CreatedbStmt, AlterDatabaseStmt, AlterDatabaseRefreshCollStmt, AlterDatabaseSetStmt, DropdbStmt, AlterSystemStmt, ClusterStmt, VacuumStmt, VacuumRelation, ExplainStmt, CreateTableAsStmt, RefreshMatViewStmt, CheckPointStmt, DiscardStmt, LockStmt, ConstraintsSetStmt, ReindexStmt, CreateConversionStmt, CreateCastStmt, CreateTransformStmt, PrepareStmt, ExecuteStmt, DeallocateStmt, DropOwnedStmt, ReassignOwnedStmt, AlterTSDictionaryStmt, AlterTSConfigurationStmt, PublicationTable, PublicationObjSpec, CreatePublicationStmt, AlterPublicationStmt, CreateSubscriptionStmt, AlterSubscriptionStmt, DropSubscriptionStmt, ScanToken } from "@pgsql/types"; export default { - parseResult(_p?: ParseResult): ParseResult { + parseResult(_p?: ParseResult, isNode?: boolean): ParseResult | { + ParseResult: ParseResult; + } { const _j = {} as ParseResult; _o.set(_j, "version", _p?.version); _o.set(_j, "stmts", _p?.stmts); + if (isNode) { + return { + ParseResult: _j + }; + } return _j; }, - scanResult(_p?: ScanResult): ScanResult { + scanResult(_p?: ScanResult, isNode?: boolean): ScanResult | { + ScanResult: ScanResult; + } { const _j = {} as ScanResult; _o.set(_j, "version", _p?.version); _o.set(_j, "tokens", _p?.tokens); + if (isNode) { + return { + ScanResult: _j + }; + } return _j; }, - integer(_p?: Integer): Integer { + integer(_p?: Integer, isNode?: boolean): Integer | { + Integer: Integer; + } { const _j = {} as Integer; _o.set(_j, "ival", _p?.ival); + if (isNode) { + return { + Integer: _j + }; + } return _j; }, - float(_p?: Float): Float { + float(_p?: Float, isNode?: boolean): Float | { + Float: Float; + } { const _j = {} as Float; _o.set(_j, "fval", _p?.fval); + if (isNode) { + return { + Float: _j + }; + } return _j; }, - boolean(_p?: Boolean): Boolean { + boolean(_p?: Boolean, isNode?: boolean): Boolean | { + Boolean: Boolean; + } { const _j = {} as Boolean; _o.set(_j, "boolval", _p?.boolval); + if (isNode) { + return { + Boolean: _j + }; + } return _j; }, - string(_p?: String): String { + string(_p?: String, isNode?: boolean): String | { + String: String; + } { const _j = {} as String; _o.set(_j, "sval", _p?.sval); + if (isNode) { + return { + String: _j + }; + } return _j; }, - bitString(_p?: BitString): BitString { + bitString(_p?: BitString, isNode?: boolean): BitString | { + BitString: BitString; + } { const _j = {} as BitString; _o.set(_j, "bsval", _p?.bsval); + if (isNode) { + return { + BitString: _j + }; + } return _j; }, - list(_p?: List): List { + list(_p?: List, isNode?: boolean): List | { + List: List; + } { const _j = {} as List; _o.set(_j, "items", _p?.items); + if (isNode) { + return { + List: _j + }; + } return _j; }, - oidList(_p?: OidList): OidList { + oidList(_p?: OidList, isNode?: boolean): OidList | { + OidList: OidList; + } { const _j = {} as OidList; _o.set(_j, "items", _p?.items); + if (isNode) { + return { + OidList: _j + }; + } return _j; }, - intList(_p?: IntList): IntList { + intList(_p?: IntList, isNode?: boolean): IntList | { + IntList: IntList; + } { const _j = {} as IntList; _o.set(_j, "items", _p?.items); + if (isNode) { + return { + IntList: _j + }; + } return _j; }, - aConst(_p?: A_Const): A_Const { + aConst(_p?: A_Const, isNode?: boolean): A_Const | { + A_Const: A_Const; + } { const _j = {} as A_Const; _o.set(_j, "ival", _p?.ival); _o.set(_j, "fval", _p?.fval); @@ -67,15 +139,29 @@ export default { _o.set(_j, "bsval", _p?.bsval); _o.set(_j, "isnull", _p?.isnull); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + A_Const: _j + }; + } return _j; }, - alias(_p?: Alias): Alias { + alias(_p?: Alias, isNode?: boolean): Alias | { + Alias: Alias; + } { const _j = {} as Alias; _o.set(_j, "aliasname", _p?.aliasname); _o.set(_j, "colnames", _p?.colnames); + if (isNode) { + return { + Alias: _j + }; + } return _j; }, - rangeVar(_p?: RangeVar): RangeVar { + rangeVar(_p?: RangeVar, isNode?: boolean): RangeVar | { + RangeVar: RangeVar; + } { const _j = {} as RangeVar; _o.set(_j, "catalogname", _p?.catalogname); _o.set(_j, "schemaname", _p?.schemaname); @@ -84,9 +170,16 @@ export default { _o.set(_j, "relpersistence", _p?.relpersistence); _o.set(_j, "alias", _p?.alias); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RangeVar: _j + }; + } return _j; }, - tableFunc(_p?: TableFunc): TableFunc { + tableFunc(_p?: TableFunc, isNode?: boolean): TableFunc | { + TableFunc: TableFunc; + } { const _j = {} as TableFunc; _o.set(_j, "functype", _p?.functype); _o.set(_j, "ns_uris", _p?.ns_uris); @@ -105,9 +198,16 @@ export default { _o.set(_j, "plan", _p?.plan); _o.set(_j, "ordinalitycol", _p?.ordinalitycol); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + TableFunc: _j + }; + } return _j; }, - intoClause(_p?: IntoClause): IntoClause { + intoClause(_p?: IntoClause, isNode?: boolean): IntoClause | { + IntoClause: IntoClause; + } { const _j = {} as IntoClause; _o.set(_j, "rel", _p?.rel); _o.set(_j, "colNames", _p?.colNames); @@ -117,9 +217,16 @@ export default { _o.set(_j, "tableSpaceName", _p?.tableSpaceName); _o.set(_j, "viewQuery", _p?.viewQuery); _o.set(_j, "skipData", _p?.skipData); + if (isNode) { + return { + IntoClause: _j + }; + } return _j; }, - var(_p?: Var): Var { + var(_p?: Var, isNode?: boolean): Var | { + Var: Var; + } { const _j = {} as Var; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "varno", _p?.varno); @@ -130,9 +237,16 @@ export default { _o.set(_j, "varnullingrels", _p?.varnullingrels); _o.set(_j, "varlevelsup", _p?.varlevelsup); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + Var: _j + }; + } return _j; }, - param(_p?: Param): Param { + param(_p?: Param, isNode?: boolean): Param | { + Param: Param; + } { const _j = {} as Param; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "paramkind", _p?.paramkind); @@ -141,9 +255,16 @@ export default { _o.set(_j, "paramtypmod", _p?.paramtypmod); _o.set(_j, "paramcollid", _p?.paramcollid); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + Param: _j + }; + } return _j; }, - aggref(_p?: Aggref): Aggref { + aggref(_p?: Aggref, isNode?: boolean): Aggref | { + Aggref: Aggref; + } { const _j = {} as Aggref; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "aggfnoid", _p?.aggfnoid); @@ -164,18 +285,32 @@ export default { _o.set(_j, "aggno", _p?.aggno); _o.set(_j, "aggtransno", _p?.aggtransno); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + Aggref: _j + }; + } return _j; }, - groupingFunc(_p?: GroupingFunc): GroupingFunc { + groupingFunc(_p?: GroupingFunc, isNode?: boolean): GroupingFunc | { + GroupingFunc: GroupingFunc; + } { const _j = {} as GroupingFunc; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "args", _p?.args); _o.set(_j, "refs", _p?.refs); _o.set(_j, "agglevelsup", _p?.agglevelsup); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + GroupingFunc: _j + }; + } return _j; }, - windowFunc(_p?: WindowFunc): WindowFunc { + windowFunc(_p?: WindowFunc, isNode?: boolean): WindowFunc | { + WindowFunc: WindowFunc; + } { const _j = {} as WindowFunc; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "winfnoid", _p?.winfnoid); @@ -189,26 +324,47 @@ export default { _o.set(_j, "winstar", _p?.winstar); _o.set(_j, "winagg", _p?.winagg); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + WindowFunc: _j + }; + } return _j; }, - windowFuncRunCondition(_p?: WindowFuncRunCondition): WindowFuncRunCondition { + windowFuncRunCondition(_p?: WindowFuncRunCondition, isNode?: boolean): WindowFuncRunCondition | { + WindowFuncRunCondition: WindowFuncRunCondition; + } { const _j = {} as WindowFuncRunCondition; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "opno", _p?.opno); _o.set(_j, "inputcollid", _p?.inputcollid); _o.set(_j, "wfunc_left", _p?.wfunc_left); _o.set(_j, "arg", _p?.arg); + if (isNode) { + return { + WindowFuncRunCondition: _j + }; + } return _j; }, - mergeSupportFunc(_p?: MergeSupportFunc): MergeSupportFunc { + mergeSupportFunc(_p?: MergeSupportFunc, isNode?: boolean): MergeSupportFunc | { + MergeSupportFunc: MergeSupportFunc; + } { const _j = {} as MergeSupportFunc; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "msftype", _p?.msftype); _o.set(_j, "msfcollid", _p?.msfcollid); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + MergeSupportFunc: _j + }; + } return _j; }, - subscriptingRef(_p?: SubscriptingRef): SubscriptingRef { + subscriptingRef(_p?: SubscriptingRef, isNode?: boolean): SubscriptingRef | { + SubscriptingRef: SubscriptingRef; + } { const _j = {} as SubscriptingRef; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "refcontainertype", _p?.refcontainertype); @@ -220,9 +376,16 @@ export default { _o.set(_j, "reflowerindexpr", _p?.reflowerindexpr); _o.set(_j, "refexpr", _p?.refexpr); _o.set(_j, "refassgnexpr", _p?.refassgnexpr); + if (isNode) { + return { + SubscriptingRef: _j + }; + } return _j; }, - funcExpr(_p?: FuncExpr): FuncExpr { + funcExpr(_p?: FuncExpr, isNode?: boolean): FuncExpr | { + FuncExpr: FuncExpr; + } { const _j = {} as FuncExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "funcid", _p?.funcid); @@ -234,18 +397,32 @@ export default { _o.set(_j, "inputcollid", _p?.inputcollid); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + FuncExpr: _j + }; + } return _j; }, - namedArgExpr(_p?: NamedArgExpr): NamedArgExpr { + namedArgExpr(_p?: NamedArgExpr, isNode?: boolean): NamedArgExpr | { + NamedArgExpr: NamedArgExpr; + } { const _j = {} as NamedArgExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); _o.set(_j, "name", _p?.name); _o.set(_j, "argnumber", _p?.argnumber); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + NamedArgExpr: _j + }; + } return _j; }, - opExpr(_p?: OpExpr): OpExpr { + opExpr(_p?: OpExpr, isNode?: boolean): OpExpr | { + OpExpr: OpExpr; + } { const _j = {} as OpExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "opno", _p?.opno); @@ -255,9 +432,16 @@ export default { _o.set(_j, "inputcollid", _p?.inputcollid); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + OpExpr: _j + }; + } return _j; }, - distinctExpr(_p?: DistinctExpr): DistinctExpr { + distinctExpr(_p?: DistinctExpr, isNode?: boolean): DistinctExpr | { + DistinctExpr: DistinctExpr; + } { const _j = {} as DistinctExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "opno", _p?.opno); @@ -267,9 +451,16 @@ export default { _o.set(_j, "inputcollid", _p?.inputcollid); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + DistinctExpr: _j + }; + } return _j; }, - nullIfExpr(_p?: NullIfExpr): NullIfExpr { + nullIfExpr(_p?: NullIfExpr, isNode?: boolean): NullIfExpr | { + NullIfExpr: NullIfExpr; + } { const _j = {} as NullIfExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "opno", _p?.opno); @@ -279,9 +470,16 @@ export default { _o.set(_j, "inputcollid", _p?.inputcollid); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + NullIfExpr: _j + }; + } return _j; }, - scalarArrayOpExpr(_p?: ScalarArrayOpExpr): ScalarArrayOpExpr { + scalarArrayOpExpr(_p?: ScalarArrayOpExpr, isNode?: boolean): ScalarArrayOpExpr | { + ScalarArrayOpExpr: ScalarArrayOpExpr; + } { const _j = {} as ScalarArrayOpExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "opno", _p?.opno); @@ -289,17 +487,31 @@ export default { _o.set(_j, "inputcollid", _p?.inputcollid); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ScalarArrayOpExpr: _j + }; + } return _j; }, - boolExpr(_p?: BoolExpr): BoolExpr { + boolExpr(_p?: BoolExpr, isNode?: boolean): BoolExpr | { + BoolExpr: BoolExpr; + } { const _j = {} as BoolExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "boolop", _p?.boolop); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + BoolExpr: _j + }; + } return _j; }, - subLink(_p?: SubLink): SubLink { + subLink(_p?: SubLink, isNode?: boolean): SubLink | { + SubLink: SubLink; + } { const _j = {} as SubLink; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "subLinkType", _p?.subLinkType); @@ -308,9 +520,16 @@ export default { _o.set(_j, "operName", _p?.operName); _o.set(_j, "subselect", _p?.subselect); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + SubLink: _j + }; + } return _j; }, - subPlan(_p?: SubPlan): SubPlan { + subPlan(_p?: SubPlan, isNode?: boolean): SubPlan | { + SubPlan: SubPlan; + } { const _j = {} as SubPlan; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "subLinkType", _p?.subLinkType); @@ -329,15 +548,29 @@ export default { _o.set(_j, "args", _p?.args); _o.set(_j, "startup_cost", _p?.startup_cost); _o.set(_j, "per_call_cost", _p?.per_call_cost); + if (isNode) { + return { + SubPlan: _j + }; + } return _j; }, - alternativeSubPlan(_p?: AlternativeSubPlan): AlternativeSubPlan { + alternativeSubPlan(_p?: AlternativeSubPlan, isNode?: boolean): AlternativeSubPlan | { + AlternativeSubPlan: AlternativeSubPlan; + } { const _j = {} as AlternativeSubPlan; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "subplans", _p?.subplans); + if (isNode) { + return { + AlternativeSubPlan: _j + }; + } return _j; }, - fieldSelect(_p?: FieldSelect): FieldSelect { + fieldSelect(_p?: FieldSelect, isNode?: boolean): FieldSelect | { + FieldSelect: FieldSelect; + } { const _j = {} as FieldSelect; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); @@ -345,18 +578,32 @@ export default { _o.set(_j, "resulttype", _p?.resulttype); _o.set(_j, "resulttypmod", _p?.resulttypmod); _o.set(_j, "resultcollid", _p?.resultcollid); + if (isNode) { + return { + FieldSelect: _j + }; + } return _j; }, - fieldStore(_p?: FieldStore): FieldStore { + fieldStore(_p?: FieldStore, isNode?: boolean): FieldStore | { + FieldStore: FieldStore; + } { const _j = {} as FieldStore; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); _o.set(_j, "newvals", _p?.newvals); _o.set(_j, "fieldnums", _p?.fieldnums); _o.set(_j, "resulttype", _p?.resulttype); + if (isNode) { + return { + FieldStore: _j + }; + } return _j; }, - relabelType(_p?: RelabelType): RelabelType { + relabelType(_p?: RelabelType, isNode?: boolean): RelabelType | { + RelabelType: RelabelType; + } { const _j = {} as RelabelType; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); @@ -365,9 +612,16 @@ export default { _o.set(_j, "resultcollid", _p?.resultcollid); _o.set(_j, "relabelformat", _p?.relabelformat); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RelabelType: _j + }; + } return _j; }, - coerceViaio(_p?: CoerceViaIO): CoerceViaIO { + coerceViaio(_p?: CoerceViaIO, isNode?: boolean): CoerceViaIO | { + CoerceViaIO: CoerceViaIO; + } { const _j = {} as CoerceViaIO; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); @@ -375,9 +629,16 @@ export default { _o.set(_j, "resultcollid", _p?.resultcollid); _o.set(_j, "coerceformat", _p?.coerceformat); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CoerceViaIO: _j + }; + } return _j; }, - arrayCoerceExpr(_p?: ArrayCoerceExpr): ArrayCoerceExpr { + arrayCoerceExpr(_p?: ArrayCoerceExpr, isNode?: boolean): ArrayCoerceExpr | { + ArrayCoerceExpr: ArrayCoerceExpr; + } { const _j = {} as ArrayCoerceExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); @@ -387,26 +648,47 @@ export default { _o.set(_j, "resultcollid", _p?.resultcollid); _o.set(_j, "coerceformat", _p?.coerceformat); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ArrayCoerceExpr: _j + }; + } return _j; }, - convertRowtypeExpr(_p?: ConvertRowtypeExpr): ConvertRowtypeExpr { + convertRowtypeExpr(_p?: ConvertRowtypeExpr, isNode?: boolean): ConvertRowtypeExpr | { + ConvertRowtypeExpr: ConvertRowtypeExpr; + } { const _j = {} as ConvertRowtypeExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); _o.set(_j, "resulttype", _p?.resulttype); _o.set(_j, "convertformat", _p?.convertformat); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ConvertRowtypeExpr: _j + }; + } return _j; }, - collateExpr(_p?: CollateExpr): CollateExpr { + collateExpr(_p?: CollateExpr, isNode?: boolean): CollateExpr | { + CollateExpr: CollateExpr; + } { const _j = {} as CollateExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); _o.set(_j, "collOid", _p?.collOid); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CollateExpr: _j + }; + } return _j; }, - caseExpr(_p?: CaseExpr): CaseExpr { + caseExpr(_p?: CaseExpr, isNode?: boolean): CaseExpr | { + CaseExpr: CaseExpr; + } { const _j = {} as CaseExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "casetype", _p?.casetype); @@ -415,25 +697,46 @@ export default { _o.set(_j, "args", _p?.args); _o.set(_j, "defresult", _p?.defresult); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CaseExpr: _j + }; + } return _j; }, - caseWhen(_p?: CaseWhen): CaseWhen { + caseWhen(_p?: CaseWhen, isNode?: boolean): CaseWhen | { + CaseWhen: CaseWhen; + } { const _j = {} as CaseWhen; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "expr", _p?.expr); _o.set(_j, "result", _p?.result); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CaseWhen: _j + }; + } return _j; }, - caseTestExpr(_p?: CaseTestExpr): CaseTestExpr { + caseTestExpr(_p?: CaseTestExpr, isNode?: boolean): CaseTestExpr | { + CaseTestExpr: CaseTestExpr; + } { const _j = {} as CaseTestExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "typeId", _p?.typeId); _o.set(_j, "typeMod", _p?.typeMod); _o.set(_j, "collation", _p?.collation); + if (isNode) { + return { + CaseTestExpr: _j + }; + } return _j; }, - arrayExpr(_p?: ArrayExpr): ArrayExpr { + arrayExpr(_p?: ArrayExpr, isNode?: boolean): ArrayExpr | { + ArrayExpr: ArrayExpr; + } { const _j = {} as ArrayExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "array_typeid", _p?.array_typeid); @@ -442,9 +745,16 @@ export default { _o.set(_j, "elements", _p?.elements); _o.set(_j, "multidims", _p?.multidims); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ArrayExpr: _j + }; + } return _j; }, - rowExpr(_p?: RowExpr): RowExpr { + rowExpr(_p?: RowExpr, isNode?: boolean): RowExpr | { + RowExpr: RowExpr; + } { const _j = {} as RowExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "args", _p?.args); @@ -452,9 +762,16 @@ export default { _o.set(_j, "row_format", _p?.row_format); _o.set(_j, "colnames", _p?.colnames); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RowExpr: _j + }; + } return _j; }, - rowCompareExpr(_p?: RowCompareExpr): RowCompareExpr { + rowCompareExpr(_p?: RowCompareExpr, isNode?: boolean): RowCompareExpr | { + RowCompareExpr: RowCompareExpr; + } { const _j = {} as RowCompareExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "rctype", _p?.rctype); @@ -463,18 +780,32 @@ export default { _o.set(_j, "inputcollids", _p?.inputcollids); _o.set(_j, "largs", _p?.largs); _o.set(_j, "rargs", _p?.rargs); + if (isNode) { + return { + RowCompareExpr: _j + }; + } return _j; }, - coalesceExpr(_p?: CoalesceExpr): CoalesceExpr { + coalesceExpr(_p?: CoalesceExpr, isNode?: boolean): CoalesceExpr | { + CoalesceExpr: CoalesceExpr; + } { const _j = {} as CoalesceExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "coalescetype", _p?.coalescetype); _o.set(_j, "coalescecollid", _p?.coalescecollid); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CoalesceExpr: _j + }; + } return _j; }, - minMaxExpr(_p?: MinMaxExpr): MinMaxExpr { + minMaxExpr(_p?: MinMaxExpr, isNode?: boolean): MinMaxExpr | { + MinMaxExpr: MinMaxExpr; + } { const _j = {} as MinMaxExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "minmaxtype", _p?.minmaxtype); @@ -483,18 +814,32 @@ export default { _o.set(_j, "op", _p?.op); _o.set(_j, "args", _p?.args); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + MinMaxExpr: _j + }; + } return _j; }, - sqlValueFunction(_p?: SQLValueFunction): SQLValueFunction { + sqlValueFunction(_p?: SQLValueFunction, isNode?: boolean): SQLValueFunction | { + SQLValueFunction: SQLValueFunction; + } { const _j = {} as SQLValueFunction; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "op", _p?.op); _o.set(_j, "type", _p?.type); _o.set(_j, "typmod", _p?.typmod); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + SQLValueFunction: _j + }; + } return _j; }, - xmlExpr(_p?: XmlExpr): XmlExpr { + xmlExpr(_p?: XmlExpr, isNode?: boolean): XmlExpr | { + XmlExpr: XmlExpr; + } { const _j = {} as XmlExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "op", _p?.op); @@ -507,30 +852,58 @@ export default { _o.set(_j, "type", _p?.type); _o.set(_j, "typmod", _p?.typmod); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + XmlExpr: _j + }; + } return _j; }, - jsonFormat(_p?: JsonFormat): JsonFormat { + jsonFormat(_p?: JsonFormat, isNode?: boolean): JsonFormat | { + JsonFormat: JsonFormat; + } { const _j = {} as JsonFormat; _o.set(_j, "format_type", _p?.format_type); _o.set(_j, "encoding", _p?.encoding); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonFormat: _j + }; + } return _j; }, - jsonReturning(_p?: JsonReturning): JsonReturning { + jsonReturning(_p?: JsonReturning, isNode?: boolean): JsonReturning | { + JsonReturning: JsonReturning; + } { const _j = {} as JsonReturning; _o.set(_j, "format", _p?.format); _o.set(_j, "typid", _p?.typid); _o.set(_j, "typmod", _p?.typmod); + if (isNode) { + return { + JsonReturning: _j + }; + } return _j; }, - jsonValueExpr(_p?: JsonValueExpr): JsonValueExpr { + jsonValueExpr(_p?: JsonValueExpr, isNode?: boolean): JsonValueExpr | { + JsonValueExpr: JsonValueExpr; + } { const _j = {} as JsonValueExpr; _o.set(_j, "raw_expr", _p?.raw_expr); _o.set(_j, "formatted_expr", _p?.formatted_expr); _o.set(_j, "format", _p?.format); + if (isNode) { + return { + JsonValueExpr: _j + }; + } return _j; }, - jsonConstructorExpr(_p?: JsonConstructorExpr): JsonConstructorExpr { + jsonConstructorExpr(_p?: JsonConstructorExpr, isNode?: boolean): JsonConstructorExpr | { + JsonConstructorExpr: JsonConstructorExpr; + } { const _j = {} as JsonConstructorExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "type", _p?.type); @@ -541,26 +914,47 @@ export default { _o.set(_j, "absent_on_null", _p?.absent_on_null); _o.set(_j, "unique", _p?.unique); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonConstructorExpr: _j + }; + } return _j; }, - jsonIsPredicate(_p?: JsonIsPredicate): JsonIsPredicate { + jsonIsPredicate(_p?: JsonIsPredicate, isNode?: boolean): JsonIsPredicate | { + JsonIsPredicate: JsonIsPredicate; + } { const _j = {} as JsonIsPredicate; _o.set(_j, "expr", _p?.expr); _o.set(_j, "format", _p?.format); _o.set(_j, "item_type", _p?.item_type); _o.set(_j, "unique_keys", _p?.unique_keys); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonIsPredicate: _j + }; + } return _j; }, - jsonBehavior(_p?: JsonBehavior): JsonBehavior { + jsonBehavior(_p?: JsonBehavior, isNode?: boolean): JsonBehavior | { + JsonBehavior: JsonBehavior; + } { const _j = {} as JsonBehavior; _o.set(_j, "btype", _p?.btype); _o.set(_j, "expr", _p?.expr); _o.set(_j, "coerce", _p?.coerce); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonBehavior: _j + }; + } return _j; }, - jsonExpr(_p?: JsonExpr): JsonExpr { + jsonExpr(_p?: JsonExpr, isNode?: boolean): JsonExpr | { + JsonExpr: JsonExpr; + } { const _j = {} as JsonExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "op", _p?.op); @@ -579,14 +973,28 @@ export default { _o.set(_j, "omit_quotes", _p?.omit_quotes); _o.set(_j, "collation", _p?.collation); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonExpr: _j + }; + } return _j; }, - jsonTablePath(_p?: JsonTablePath): JsonTablePath { + jsonTablePath(_p?: JsonTablePath, isNode?: boolean): JsonTablePath | { + JsonTablePath: JsonTablePath; + } { const _j = {} as JsonTablePath; _o.set(_j, "name", _p?.name); + if (isNode) { + return { + JsonTablePath: _j + }; + } return _j; }, - jsonTablePathScan(_p?: JsonTablePathScan): JsonTablePathScan { + jsonTablePathScan(_p?: JsonTablePathScan, isNode?: boolean): JsonTablePathScan | { + JsonTablePathScan: JsonTablePathScan; + } { const _j = {} as JsonTablePathScan; _o.set(_j, "plan", _p?.plan); _o.set(_j, "path", _p?.path); @@ -594,33 +1002,61 @@ export default { _o.set(_j, "child", _p?.child); _o.set(_j, "colMin", _p?.colMin); _o.set(_j, "colMax", _p?.colMax); + if (isNode) { + return { + JsonTablePathScan: _j + }; + } return _j; }, - jsonTableSiblingJoin(_p?: JsonTableSiblingJoin): JsonTableSiblingJoin { + jsonTableSiblingJoin(_p?: JsonTableSiblingJoin, isNode?: boolean): JsonTableSiblingJoin | { + JsonTableSiblingJoin: JsonTableSiblingJoin; + } { const _j = {} as JsonTableSiblingJoin; _o.set(_j, "plan", _p?.plan); _o.set(_j, "lplan", _p?.lplan); _o.set(_j, "rplan", _p?.rplan); + if (isNode) { + return { + JsonTableSiblingJoin: _j + }; + } return _j; }, - nullTest(_p?: NullTest): NullTest { + nullTest(_p?: NullTest, isNode?: boolean): NullTest | { + NullTest: NullTest; + } { const _j = {} as NullTest; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); _o.set(_j, "nulltesttype", _p?.nulltesttype); _o.set(_j, "argisrow", _p?.argisrow); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + NullTest: _j + }; + } return _j; }, - booleanTest(_p?: BooleanTest): BooleanTest { + booleanTest(_p?: BooleanTest, isNode?: boolean): BooleanTest | { + BooleanTest: BooleanTest; + } { const _j = {} as BooleanTest; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); _o.set(_j, "booltesttype", _p?.booltesttype); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + BooleanTest: _j + }; + } return _j; }, - mergeAction(_p?: MergeAction): MergeAction { + mergeAction(_p?: MergeAction, isNode?: boolean): MergeAction | { + MergeAction: MergeAction; + } { const _j = {} as MergeAction; _o.set(_j, "matchKind", _p?.matchKind); _o.set(_j, "commandType", _p?.commandType); @@ -628,9 +1064,16 @@ export default { _o.set(_j, "qual", _p?.qual); _o.set(_j, "targetList", _p?.targetList); _o.set(_j, "updateColnos", _p?.updateColnos); + if (isNode) { + return { + MergeAction: _j + }; + } return _j; }, - coerceToDomain(_p?: CoerceToDomain): CoerceToDomain { + coerceToDomain(_p?: CoerceToDomain, isNode?: boolean): CoerceToDomain | { + CoerceToDomain: CoerceToDomain; + } { const _j = {} as CoerceToDomain; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "arg", _p?.arg); @@ -639,50 +1082,92 @@ export default { _o.set(_j, "resultcollid", _p?.resultcollid); _o.set(_j, "coercionformat", _p?.coercionformat); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CoerceToDomain: _j + }; + } return _j; }, - coerceToDomainValue(_p?: CoerceToDomainValue): CoerceToDomainValue { + coerceToDomainValue(_p?: CoerceToDomainValue, isNode?: boolean): CoerceToDomainValue | { + CoerceToDomainValue: CoerceToDomainValue; + } { const _j = {} as CoerceToDomainValue; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "typeId", _p?.typeId); _o.set(_j, "typeMod", _p?.typeMod); _o.set(_j, "collation", _p?.collation); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CoerceToDomainValue: _j + }; + } return _j; }, - setToDefault(_p?: SetToDefault): SetToDefault { + setToDefault(_p?: SetToDefault, isNode?: boolean): SetToDefault | { + SetToDefault: SetToDefault; + } { const _j = {} as SetToDefault; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "typeId", _p?.typeId); _o.set(_j, "typeMod", _p?.typeMod); _o.set(_j, "collation", _p?.collation); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + SetToDefault: _j + }; + } return _j; }, - currentOfExpr(_p?: CurrentOfExpr): CurrentOfExpr { + currentOfExpr(_p?: CurrentOfExpr, isNode?: boolean): CurrentOfExpr | { + CurrentOfExpr: CurrentOfExpr; + } { const _j = {} as CurrentOfExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "cvarno", _p?.cvarno); _o.set(_j, "cursor_name", _p?.cursor_name); _o.set(_j, "cursor_param", _p?.cursor_param); + if (isNode) { + return { + CurrentOfExpr: _j + }; + } return _j; }, - nextValueExpr(_p?: NextValueExpr): NextValueExpr { + nextValueExpr(_p?: NextValueExpr, isNode?: boolean): NextValueExpr | { + NextValueExpr: NextValueExpr; + } { const _j = {} as NextValueExpr; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "seqid", _p?.seqid); _o.set(_j, "typeId", _p?.typeId); + if (isNode) { + return { + NextValueExpr: _j + }; + } return _j; }, - inferenceElem(_p?: InferenceElem): InferenceElem { + inferenceElem(_p?: InferenceElem, isNode?: boolean): InferenceElem | { + InferenceElem: InferenceElem; + } { const _j = {} as InferenceElem; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "expr", _p?.expr); _o.set(_j, "infercollid", _p?.infercollid); _o.set(_j, "inferopclass", _p?.inferopclass); + if (isNode) { + return { + InferenceElem: _j + }; + } return _j; }, - targetEntry(_p?: TargetEntry): TargetEntry { + targetEntry(_p?: TargetEntry, isNode?: boolean): TargetEntry | { + TargetEntry: TargetEntry; + } { const _j = {} as TargetEntry; _o.set(_j, "xpr", _p?.xpr); _o.set(_j, "expr", _p?.expr); @@ -692,14 +1177,28 @@ export default { _o.set(_j, "resorigtbl", _p?.resorigtbl); _o.set(_j, "resorigcol", _p?.resorigcol); _o.set(_j, "resjunk", _p?.resjunk); + if (isNode) { + return { + TargetEntry: _j + }; + } return _j; }, - rangeTblRef(_p?: RangeTblRef): RangeTblRef { + rangeTblRef(_p?: RangeTblRef, isNode?: boolean): RangeTblRef | { + RangeTblRef: RangeTblRef; + } { const _j = {} as RangeTblRef; _o.set(_j, "rtindex", _p?.rtindex); + if (isNode) { + return { + RangeTblRef: _j + }; + } return _j; }, - joinExpr(_p?: JoinExpr): JoinExpr { + joinExpr(_p?: JoinExpr, isNode?: boolean): JoinExpr | { + JoinExpr: JoinExpr; + } { const _j = {} as JoinExpr; _o.set(_j, "jointype", _p?.jointype); _o.set(_j, "isNatural", _p?.isNatural); @@ -710,15 +1209,29 @@ export default { _o.set(_j, "quals", _p?.quals); _o.set(_j, "alias", _p?.alias); _o.set(_j, "rtindex", _p?.rtindex); + if (isNode) { + return { + JoinExpr: _j + }; + } return _j; }, - fromExpr(_p?: FromExpr): FromExpr { + fromExpr(_p?: FromExpr, isNode?: boolean): FromExpr | { + FromExpr: FromExpr; + } { const _j = {} as FromExpr; _o.set(_j, "fromlist", _p?.fromlist); _o.set(_j, "quals", _p?.quals); + if (isNode) { + return { + FromExpr: _j + }; + } return _j; }, - onConflictExpr(_p?: OnConflictExpr): OnConflictExpr { + onConflictExpr(_p?: OnConflictExpr, isNode?: boolean): OnConflictExpr | { + OnConflictExpr: OnConflictExpr; + } { const _j = {} as OnConflictExpr; _o.set(_j, "action", _p?.action); _o.set(_j, "arbiterElems", _p?.arbiterElems); @@ -728,9 +1241,16 @@ export default { _o.set(_j, "onConflictWhere", _p?.onConflictWhere); _o.set(_j, "exclRelIndex", _p?.exclRelIndex); _o.set(_j, "exclRelTlist", _p?.exclRelTlist); + if (isNode) { + return { + OnConflictExpr: _j + }; + } return _j; }, - query(_p?: Query): Query { + query(_p?: Query, isNode?: boolean): Query | { + Query: Query; + } { const _j = {} as Query; _o.set(_j, "commandType", _p?.commandType); _o.set(_j, "querySource", _p?.querySource); @@ -774,9 +1294,16 @@ export default { _o.set(_j, "withCheckOptions", _p?.withCheckOptions); _o.set(_j, "stmt_location", _p?.stmt_location); _o.set(_j, "stmt_len", _p?.stmt_len); + if (isNode) { + return { + Query: _j + }; + } return _j; }, - typeName(_p?: TypeName): TypeName { + typeName(_p?: TypeName, isNode?: boolean): TypeName | { + TypeName: TypeName; + } { const _j = {} as TypeName; _o.set(_j, "names", _p?.names); _o.set(_j, "typeOid", _p?.typeOid); @@ -786,51 +1313,100 @@ export default { _o.set(_j, "typemod", _p?.typemod); _o.set(_j, "arrayBounds", _p?.arrayBounds); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + TypeName: _j + }; + } return _j; }, - columnRef(_p?: ColumnRef): ColumnRef { + columnRef(_p?: ColumnRef, isNode?: boolean): ColumnRef | { + ColumnRef: ColumnRef; + } { const _j = {} as ColumnRef; _o.set(_j, "fields", _p?.fields); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ColumnRef: _j + }; + } return _j; }, - paramRef(_p?: ParamRef): ParamRef { + paramRef(_p?: ParamRef, isNode?: boolean): ParamRef | { + ParamRef: ParamRef; + } { const _j = {} as ParamRef; _o.set(_j, "number", _p?.number); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ParamRef: _j + }; + } return _j; }, - aExpr(_p?: A_Expr): A_Expr { + aExpr(_p?: A_Expr, isNode?: boolean): A_Expr | { + A_Expr: A_Expr; + } { const _j = {} as A_Expr; _o.set(_j, "kind", _p?.kind); _o.set(_j, "name", _p?.name); _o.set(_j, "lexpr", _p?.lexpr); _o.set(_j, "rexpr", _p?.rexpr); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + A_Expr: _j + }; + } return _j; }, - typeCast(_p?: TypeCast): TypeCast { + typeCast(_p?: TypeCast, isNode?: boolean): TypeCast | { + TypeCast: TypeCast; + } { const _j = {} as TypeCast; _o.set(_j, "arg", _p?.arg); _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + TypeCast: _j + }; + } return _j; }, - collateClause(_p?: CollateClause): CollateClause { + collateClause(_p?: CollateClause, isNode?: boolean): CollateClause | { + CollateClause: CollateClause; + } { const _j = {} as CollateClause; _o.set(_j, "arg", _p?.arg); _o.set(_j, "collname", _p?.collname); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CollateClause: _j + }; + } return _j; }, - roleSpec(_p?: RoleSpec): RoleSpec { + roleSpec(_p?: RoleSpec, isNode?: boolean): RoleSpec | { + RoleSpec: RoleSpec; + } { const _j = {} as RoleSpec; _o.set(_j, "roletype", _p?.roletype); _o.set(_j, "rolename", _p?.rolename); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RoleSpec: _j + }; + } return _j; }, - funcCall(_p?: FuncCall): FuncCall { + funcCall(_p?: FuncCall, isNode?: boolean): FuncCall | { + FuncCall: FuncCall; + } { const _j = {} as FuncCall; _o.set(_j, "funcname", _p?.funcname); _o.set(_j, "args", _p?.args); @@ -843,56 +1419,112 @@ export default { _o.set(_j, "func_variadic", _p?.func_variadic); _o.set(_j, "funcformat", _p?.funcformat); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + FuncCall: _j + }; + } return _j; }, - aStar(_p?: A_Star): A_Star { + aStar(_p?: A_Star, isNode?: boolean): A_Star | { + A_Star: A_Star; + } { const _j = {} as A_Star; + if (isNode) { + return { + A_Star: _j + }; + } return _j; }, - aIndices(_p?: A_Indices): A_Indices { + aIndices(_p?: A_Indices, isNode?: boolean): A_Indices | { + A_Indices: A_Indices; + } { const _j = {} as A_Indices; _o.set(_j, "is_slice", _p?.is_slice); _o.set(_j, "lidx", _p?.lidx); _o.set(_j, "uidx", _p?.uidx); + if (isNode) { + return { + A_Indices: _j + }; + } return _j; }, - aIndirection(_p?: A_Indirection): A_Indirection { + aIndirection(_p?: A_Indirection, isNode?: boolean): A_Indirection | { + A_Indirection: A_Indirection; + } { const _j = {} as A_Indirection; _o.set(_j, "arg", _p?.arg); _o.set(_j, "indirection", _p?.indirection); + if (isNode) { + return { + A_Indirection: _j + }; + } return _j; }, - aArrayExpr(_p?: A_ArrayExpr): A_ArrayExpr { + aArrayExpr(_p?: A_ArrayExpr, isNode?: boolean): A_ArrayExpr | { + A_ArrayExpr: A_ArrayExpr; + } { const _j = {} as A_ArrayExpr; _o.set(_j, "elements", _p?.elements); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + A_ArrayExpr: _j + }; + } return _j; }, - resTarget(_p?: ResTarget): ResTarget { + resTarget(_p?: ResTarget, isNode?: boolean): ResTarget | { + ResTarget: ResTarget; + } { const _j = {} as ResTarget; _o.set(_j, "name", _p?.name); _o.set(_j, "indirection", _p?.indirection); _o.set(_j, "val", _p?.val); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ResTarget: _j + }; + } return _j; }, - multiAssignRef(_p?: MultiAssignRef): MultiAssignRef { + multiAssignRef(_p?: MultiAssignRef, isNode?: boolean): MultiAssignRef | { + MultiAssignRef: MultiAssignRef; + } { const _j = {} as MultiAssignRef; _o.set(_j, "source", _p?.source); _o.set(_j, "colno", _p?.colno); _o.set(_j, "ncolumns", _p?.ncolumns); + if (isNode) { + return { + MultiAssignRef: _j + }; + } return _j; }, - sortBy(_p?: SortBy): SortBy { + sortBy(_p?: SortBy, isNode?: boolean): SortBy | { + SortBy: SortBy; + } { const _j = {} as SortBy; _o.set(_j, "node", _p?.node); _o.set(_j, "sortby_dir", _p?.sortby_dir); _o.set(_j, "sortby_nulls", _p?.sortby_nulls); _o.set(_j, "useOp", _p?.useOp); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + SortBy: _j + }; + } return _j; }, - windowDef(_p?: WindowDef): WindowDef { + windowDef(_p?: WindowDef, isNode?: boolean): WindowDef | { + WindowDef: WindowDef; + } { const _j = {} as WindowDef; _o.set(_j, "name", _p?.name); _o.set(_j, "refname", _p?.refname); @@ -902,16 +1534,30 @@ export default { _o.set(_j, "startOffset", _p?.startOffset); _o.set(_j, "endOffset", _p?.endOffset); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + WindowDef: _j + }; + } return _j; }, - rangeSubselect(_p?: RangeSubselect): RangeSubselect { + rangeSubselect(_p?: RangeSubselect, isNode?: boolean): RangeSubselect | { + RangeSubselect: RangeSubselect; + } { const _j = {} as RangeSubselect; _o.set(_j, "lateral", _p?.lateral); _o.set(_j, "subquery", _p?.subquery); _o.set(_j, "alias", _p?.alias); + if (isNode) { + return { + RangeSubselect: _j + }; + } return _j; }, - rangeFunction(_p?: RangeFunction): RangeFunction { + rangeFunction(_p?: RangeFunction, isNode?: boolean): RangeFunction | { + RangeFunction: RangeFunction; + } { const _j = {} as RangeFunction; _o.set(_j, "lateral", _p?.lateral); _o.set(_j, "ordinality", _p?.ordinality); @@ -919,9 +1565,16 @@ export default { _o.set(_j, "functions", _p?.functions); _o.set(_j, "alias", _p?.alias); _o.set(_j, "coldeflist", _p?.coldeflist); + if (isNode) { + return { + RangeFunction: _j + }; + } return _j; }, - rangeTableFunc(_p?: RangeTableFunc): RangeTableFunc { + rangeTableFunc(_p?: RangeTableFunc, isNode?: boolean): RangeTableFunc | { + RangeTableFunc: RangeTableFunc; + } { const _j = {} as RangeTableFunc; _o.set(_j, "lateral", _p?.lateral); _o.set(_j, "docexpr", _p?.docexpr); @@ -930,9 +1583,16 @@ export default { _o.set(_j, "columns", _p?.columns); _o.set(_j, "alias", _p?.alias); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RangeTableFunc: _j + }; + } return _j; }, - rangeTableFuncCol(_p?: RangeTableFuncCol): RangeTableFuncCol { + rangeTableFuncCol(_p?: RangeTableFuncCol, isNode?: boolean): RangeTableFuncCol | { + RangeTableFuncCol: RangeTableFuncCol; + } { const _j = {} as RangeTableFuncCol; _o.set(_j, "colname", _p?.colname); _o.set(_j, "typeName", _p?.typeName); @@ -941,18 +1601,32 @@ export default { _o.set(_j, "colexpr", _p?.colexpr); _o.set(_j, "coldefexpr", _p?.coldefexpr); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RangeTableFuncCol: _j + }; + } return _j; }, - rangeTableSample(_p?: RangeTableSample): RangeTableSample { + rangeTableSample(_p?: RangeTableSample, isNode?: boolean): RangeTableSample | { + RangeTableSample: RangeTableSample; + } { const _j = {} as RangeTableSample; _o.set(_j, "relation", _p?.relation); _o.set(_j, "method", _p?.method); _o.set(_j, "args", _p?.args); _o.set(_j, "repeatable", _p?.repeatable); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + RangeTableSample: _j + }; + } return _j; }, - columnDef(_p?: ColumnDef): ColumnDef { + columnDef(_p?: ColumnDef, isNode?: boolean): ColumnDef | { + ColumnDef: ColumnDef; + } { const _j = {} as ColumnDef; _o.set(_j, "colname", _p?.colname); _o.set(_j, "typeName", _p?.typeName); @@ -973,16 +1647,30 @@ export default { _o.set(_j, "constraints", _p?.constraints); _o.set(_j, "fdwoptions", _p?.fdwoptions); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + ColumnDef: _j + }; + } return _j; }, - tableLikeClause(_p?: TableLikeClause): TableLikeClause { + tableLikeClause(_p?: TableLikeClause, isNode?: boolean): TableLikeClause | { + TableLikeClause: TableLikeClause; + } { const _j = {} as TableLikeClause; _o.set(_j, "relation", _p?.relation); _o.set(_j, "options", _p?.options); _o.set(_j, "relationOid", _p?.relationOid); + if (isNode) { + return { + TableLikeClause: _j + }; + } return _j; }, - indexElem(_p?: IndexElem): IndexElem { + indexElem(_p?: IndexElem, isNode?: boolean): IndexElem | { + IndexElem: IndexElem; + } { const _j = {} as IndexElem; _o.set(_j, "name", _p?.name); _o.set(_j, "expr", _p?.expr); @@ -992,50 +1680,92 @@ export default { _o.set(_j, "opclassopts", _p?.opclassopts); _o.set(_j, "ordering", _p?.ordering); _o.set(_j, "nulls_ordering", _p?.nulls_ordering); + if (isNode) { + return { + IndexElem: _j + }; + } return _j; }, - defElem(_p?: DefElem): DefElem { + defElem(_p?: DefElem, isNode?: boolean): DefElem | { + DefElem: DefElem; + } { const _j = {} as DefElem; _o.set(_j, "defnamespace", _p?.defnamespace); _o.set(_j, "defname", _p?.defname); _o.set(_j, "arg", _p?.arg); _o.set(_j, "defaction", _p?.defaction); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + DefElem: _j + }; + } return _j; }, - lockingClause(_p?: LockingClause): LockingClause { + lockingClause(_p?: LockingClause, isNode?: boolean): LockingClause | { + LockingClause: LockingClause; + } { const _j = {} as LockingClause; _o.set(_j, "lockedRels", _p?.lockedRels); _o.set(_j, "strength", _p?.strength); _o.set(_j, "waitPolicy", _p?.waitPolicy); + if (isNode) { + return { + LockingClause: _j + }; + } return _j; }, - xmlSerialize(_p?: XmlSerialize): XmlSerialize { + xmlSerialize(_p?: XmlSerialize, isNode?: boolean): XmlSerialize | { + XmlSerialize: XmlSerialize; + } { const _j = {} as XmlSerialize; _o.set(_j, "xmloption", _p?.xmloption); _o.set(_j, "expr", _p?.expr); _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "indent", _p?.indent); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + XmlSerialize: _j + }; + } return _j; }, - partitionElem(_p?: PartitionElem): PartitionElem { + partitionElem(_p?: PartitionElem, isNode?: boolean): PartitionElem | { + PartitionElem: PartitionElem; + } { const _j = {} as PartitionElem; _o.set(_j, "name", _p?.name); _o.set(_j, "expr", _p?.expr); _o.set(_j, "collation", _p?.collation); _o.set(_j, "opclass", _p?.opclass); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + PartitionElem: _j + }; + } return _j; }, - partitionSpec(_p?: PartitionSpec): PartitionSpec { + partitionSpec(_p?: PartitionSpec, isNode?: boolean): PartitionSpec | { + PartitionSpec: PartitionSpec; + } { const _j = {} as PartitionSpec; _o.set(_j, "strategy", _p?.strategy); _o.set(_j, "partParams", _p?.partParams); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + PartitionSpec: _j + }; + } return _j; }, - partitionBoundSpec(_p?: PartitionBoundSpec): PartitionBoundSpec { + partitionBoundSpec(_p?: PartitionBoundSpec, isNode?: boolean): PartitionBoundSpec | { + PartitionBoundSpec: PartitionBoundSpec; + } { const _j = {} as PartitionBoundSpec; _o.set(_j, "strategy", _p?.strategy); _o.set(_j, "is_default", _p?.is_default); @@ -1045,27 +1775,55 @@ export default { _o.set(_j, "lowerdatums", _p?.lowerdatums); _o.set(_j, "upperdatums", _p?.upperdatums); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + PartitionBoundSpec: _j + }; + } return _j; }, - partitionRangeDatum(_p?: PartitionRangeDatum): PartitionRangeDatum { + partitionRangeDatum(_p?: PartitionRangeDatum, isNode?: boolean): PartitionRangeDatum | { + PartitionRangeDatum: PartitionRangeDatum; + } { const _j = {} as PartitionRangeDatum; _o.set(_j, "kind", _p?.kind); _o.set(_j, "value", _p?.value); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + PartitionRangeDatum: _j + }; + } return _j; }, - singlePartitionSpec(_p?: SinglePartitionSpec): SinglePartitionSpec { + singlePartitionSpec(_p?: SinglePartitionSpec, isNode?: boolean): SinglePartitionSpec | { + SinglePartitionSpec: SinglePartitionSpec; + } { const _j = {} as SinglePartitionSpec; + if (isNode) { + return { + SinglePartitionSpec: _j + }; + } return _j; }, - partitionCmd(_p?: PartitionCmd): PartitionCmd { + partitionCmd(_p?: PartitionCmd, isNode?: boolean): PartitionCmd | { + PartitionCmd: PartitionCmd; + } { const _j = {} as PartitionCmd; _o.set(_j, "name", _p?.name); _o.set(_j, "bound", _p?.bound); _o.set(_j, "concurrent", _p?.concurrent); + if (isNode) { + return { + PartitionCmd: _j + }; + } return _j; }, - rangeTblEntry(_p?: RangeTblEntry): RangeTblEntry { + rangeTblEntry(_p?: RangeTblEntry, isNode?: boolean): RangeTblEntry | { + RangeTblEntry: RangeTblEntry; + } { const _j = {} as RangeTblEntry; _o.set(_j, "alias", _p?.alias); _o.set(_j, "eref", _p?.eref); @@ -1099,9 +1857,16 @@ export default { _o.set(_j, "lateral", _p?.lateral); _o.set(_j, "inFromCl", _p?.inFromCl); _o.set(_j, "securityQuals", _p?.securityQuals); + if (isNode) { + return { + RangeTblEntry: _j + }; + } return _j; }, - rtePermissionInfo(_p?: RTEPermissionInfo): RTEPermissionInfo { + rtePermissionInfo(_p?: RTEPermissionInfo, isNode?: boolean): RTEPermissionInfo | { + RTEPermissionInfo: RTEPermissionInfo; + } { const _j = {} as RTEPermissionInfo; _o.set(_j, "relid", _p?.relid); _o.set(_j, "inh", _p?.inh); @@ -1110,9 +1875,16 @@ export default { _o.set(_j, "selectedCols", _p?.selectedCols); _o.set(_j, "insertedCols", _p?.insertedCols); _o.set(_j, "updatedCols", _p?.updatedCols); + if (isNode) { + return { + RTEPermissionInfo: _j + }; + } return _j; }, - rangeTblFunction(_p?: RangeTblFunction): RangeTblFunction { + rangeTblFunction(_p?: RangeTblFunction, isNode?: boolean): RangeTblFunction | { + RangeTblFunction: RangeTblFunction; + } { const _j = {} as RangeTblFunction; _o.set(_j, "funcexpr", _p?.funcexpr); _o.set(_j, "funccolcount", _p?.funccolcount); @@ -1121,41 +1893,76 @@ export default { _o.set(_j, "funccoltypmods", _p?.funccoltypmods); _o.set(_j, "funccolcollations", _p?.funccolcollations); _o.set(_j, "funcparams", _p?.funcparams); + if (isNode) { + return { + RangeTblFunction: _j + }; + } return _j; }, - tableSampleClause(_p?: TableSampleClause): TableSampleClause { + tableSampleClause(_p?: TableSampleClause, isNode?: boolean): TableSampleClause | { + TableSampleClause: TableSampleClause; + } { const _j = {} as TableSampleClause; _o.set(_j, "tsmhandler", _p?.tsmhandler); _o.set(_j, "args", _p?.args); _o.set(_j, "repeatable", _p?.repeatable); + if (isNode) { + return { + TableSampleClause: _j + }; + } return _j; }, - withCheckOption(_p?: WithCheckOption): WithCheckOption { + withCheckOption(_p?: WithCheckOption, isNode?: boolean): WithCheckOption | { + WithCheckOption: WithCheckOption; + } { const _j = {} as WithCheckOption; _o.set(_j, "kind", _p?.kind); _o.set(_j, "relname", _p?.relname); _o.set(_j, "polname", _p?.polname); _o.set(_j, "qual", _p?.qual); _o.set(_j, "cascaded", _p?.cascaded); + if (isNode) { + return { + WithCheckOption: _j + }; + } return _j; }, - sortGroupClause(_p?: SortGroupClause): SortGroupClause { + sortGroupClause(_p?: SortGroupClause, isNode?: boolean): SortGroupClause | { + SortGroupClause: SortGroupClause; + } { const _j = {} as SortGroupClause; _o.set(_j, "tleSortGroupRef", _p?.tleSortGroupRef); _o.set(_j, "eqop", _p?.eqop); _o.set(_j, "sortop", _p?.sortop); _o.set(_j, "nulls_first", _p?.nulls_first); _o.set(_j, "hashable", _p?.hashable); + if (isNode) { + return { + SortGroupClause: _j + }; + } return _j; }, - groupingSet(_p?: GroupingSet): GroupingSet { + groupingSet(_p?: GroupingSet, isNode?: boolean): GroupingSet | { + GroupingSet: GroupingSet; + } { const _j = {} as GroupingSet; _o.set(_j, "kind", _p?.kind); _o.set(_j, "content", _p?.content); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + GroupingSet: _j + }; + } return _j; }, - windowClause(_p?: WindowClause): WindowClause { + windowClause(_p?: WindowClause, isNode?: boolean): WindowClause | { + WindowClause: WindowClause; + } { const _j = {} as WindowClause; _o.set(_j, "name", _p?.name); _o.set(_j, "refname", _p?.refname); @@ -1171,49 +1978,91 @@ export default { _o.set(_j, "inRangeNullsFirst", _p?.inRangeNullsFirst); _o.set(_j, "winref", _p?.winref); _o.set(_j, "copiedOrder", _p?.copiedOrder); + if (isNode) { + return { + WindowClause: _j + }; + } return _j; }, - rowMarkClause(_p?: RowMarkClause): RowMarkClause { + rowMarkClause(_p?: RowMarkClause, isNode?: boolean): RowMarkClause | { + RowMarkClause: RowMarkClause; + } { const _j = {} as RowMarkClause; _o.set(_j, "rti", _p?.rti); _o.set(_j, "strength", _p?.strength); _o.set(_j, "waitPolicy", _p?.waitPolicy); _o.set(_j, "pushedDown", _p?.pushedDown); + if (isNode) { + return { + RowMarkClause: _j + }; + } return _j; }, - withClause(_p?: WithClause): WithClause { + withClause(_p?: WithClause, isNode?: boolean): WithClause | { + WithClause: WithClause; + } { const _j = {} as WithClause; _o.set(_j, "ctes", _p?.ctes); _o.set(_j, "recursive", _p?.recursive); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + WithClause: _j + }; + } return _j; }, - inferClause(_p?: InferClause): InferClause { + inferClause(_p?: InferClause, isNode?: boolean): InferClause | { + InferClause: InferClause; + } { const _j = {} as InferClause; _o.set(_j, "indexElems", _p?.indexElems); _o.set(_j, "whereClause", _p?.whereClause); _o.set(_j, "conname", _p?.conname); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + InferClause: _j + }; + } return _j; }, - onConflictClause(_p?: OnConflictClause): OnConflictClause { + onConflictClause(_p?: OnConflictClause, isNode?: boolean): OnConflictClause | { + OnConflictClause: OnConflictClause; + } { const _j = {} as OnConflictClause; _o.set(_j, "action", _p?.action); _o.set(_j, "infer", _p?.infer); _o.set(_j, "targetList", _p?.targetList); _o.set(_j, "whereClause", _p?.whereClause); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + OnConflictClause: _j + }; + } return _j; }, - cteSearchClause(_p?: CTESearchClause): CTESearchClause { + cteSearchClause(_p?: CTESearchClause, isNode?: boolean): CTESearchClause | { + CTESearchClause: CTESearchClause; + } { const _j = {} as CTESearchClause; _o.set(_j, "search_col_list", _p?.search_col_list); _o.set(_j, "search_breadth_first", _p?.search_breadth_first); _o.set(_j, "search_seq_column", _p?.search_seq_column); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + CTESearchClause: _j + }; + } return _j; }, - cteCycleClause(_p?: CTECycleClause): CTECycleClause { + cteCycleClause(_p?: CTECycleClause, isNode?: boolean): CTECycleClause | { + CTECycleClause: CTECycleClause; + } { const _j = {} as CTECycleClause; _o.set(_j, "cycle_col_list", _p?.cycle_col_list); _o.set(_j, "cycle_mark_column", _p?.cycle_mark_column); @@ -1225,9 +2074,16 @@ export default { _o.set(_j, "cycle_mark_typmod", _p?.cycle_mark_typmod); _o.set(_j, "cycle_mark_collation", _p?.cycle_mark_collation); _o.set(_j, "cycle_mark_neop", _p?.cycle_mark_neop); + if (isNode) { + return { + CTECycleClause: _j + }; + } return _j; }, - commonTableExpr(_p?: CommonTableExpr): CommonTableExpr { + commonTableExpr(_p?: CommonTableExpr, isNode?: boolean): CommonTableExpr | { + CommonTableExpr: CommonTableExpr; + } { const _j = {} as CommonTableExpr; _o.set(_j, "ctename", _p?.ctename); _o.set(_j, "aliascolnames", _p?.aliascolnames); @@ -1242,9 +2098,16 @@ export default { _o.set(_j, "ctecoltypes", _p?.ctecoltypes); _o.set(_j, "ctecoltypmods", _p?.ctecoltypmods); _o.set(_j, "ctecolcollations", _p?.ctecolcollations); + if (isNode) { + return { + CommonTableExpr: _j + }; + } return _j; }, - mergeWhenClause(_p?: MergeWhenClause): MergeWhenClause { + mergeWhenClause(_p?: MergeWhenClause, isNode?: boolean): MergeWhenClause | { + MergeWhenClause: MergeWhenClause; + } { const _j = {} as MergeWhenClause; _o.set(_j, "matchKind", _p?.matchKind); _o.set(_j, "commandType", _p?.commandType); @@ -1252,28 +2115,56 @@ export default { _o.set(_j, "condition", _p?.condition); _o.set(_j, "targetList", _p?.targetList); _o.set(_j, "values", _p?.values); + if (isNode) { + return { + MergeWhenClause: _j + }; + } return _j; }, - triggerTransition(_p?: TriggerTransition): TriggerTransition { + triggerTransition(_p?: TriggerTransition, isNode?: boolean): TriggerTransition | { + TriggerTransition: TriggerTransition; + } { const _j = {} as TriggerTransition; _o.set(_j, "name", _p?.name); _o.set(_j, "isNew", _p?.isNew); _o.set(_j, "isTable", _p?.isTable); + if (isNode) { + return { + TriggerTransition: _j + }; + } return _j; }, - jsonOutput(_p?: JsonOutput): JsonOutput { + jsonOutput(_p?: JsonOutput, isNode?: boolean): JsonOutput | { + JsonOutput: JsonOutput; + } { const _j = {} as JsonOutput; _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "returning", _p?.returning); + if (isNode) { + return { + JsonOutput: _j + }; + } return _j; }, - jsonArgument(_p?: JsonArgument): JsonArgument { + jsonArgument(_p?: JsonArgument, isNode?: boolean): JsonArgument | { + JsonArgument: JsonArgument; + } { const _j = {} as JsonArgument; _o.set(_j, "val", _p?.val); _o.set(_j, "name", _p?.name); + if (isNode) { + return { + JsonArgument: _j + }; + } return _j; }, - jsonFuncExpr(_p?: JsonFuncExpr): JsonFuncExpr { + jsonFuncExpr(_p?: JsonFuncExpr, isNode?: boolean): JsonFuncExpr | { + JsonFuncExpr: JsonFuncExpr; + } { const _j = {} as JsonFuncExpr; _o.set(_j, "op", _p?.op); _o.set(_j, "column_name", _p?.column_name); @@ -1286,17 +2177,31 @@ export default { _o.set(_j, "wrapper", _p?.wrapper); _o.set(_j, "quotes", _p?.quotes); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonFuncExpr: _j + }; + } return _j; }, - jsonTablePathSpec(_p?: JsonTablePathSpec): JsonTablePathSpec { + jsonTablePathSpec(_p?: JsonTablePathSpec, isNode?: boolean): JsonTablePathSpec | { + JsonTablePathSpec: JsonTablePathSpec; + } { const _j = {} as JsonTablePathSpec; _o.set(_j, "string", _p?.string); _o.set(_j, "name", _p?.name); _o.set(_j, "name_location", _p?.name_location); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonTablePathSpec: _j + }; + } return _j; }, - jsonTable(_p?: JsonTable): JsonTable { + jsonTable(_p?: JsonTable, isNode?: boolean): JsonTable | { + JsonTable: JsonTable; + } { const _j = {} as JsonTable; _o.set(_j, "context_item", _p?.context_item); _o.set(_j, "pathspec", _p?.pathspec); @@ -1306,9 +2211,16 @@ export default { _o.set(_j, "alias", _p?.alias); _o.set(_j, "lateral", _p?.lateral); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonTable: _j + }; + } return _j; }, - jsonTableColumn(_p?: JsonTableColumn): JsonTableColumn { + jsonTableColumn(_p?: JsonTableColumn, isNode?: boolean): JsonTableColumn | { + JsonTableColumn: JsonTableColumn; + } { const _j = {} as JsonTableColumn; _o.set(_j, "coltype", _p?.coltype); _o.set(_j, "name", _p?.name); @@ -1321,94 +2233,178 @@ export default { _o.set(_j, "on_empty", _p?.on_empty); _o.set(_j, "on_error", _p?.on_error); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonTableColumn: _j + }; + } return _j; }, - jsonKeyValue(_p?: JsonKeyValue): JsonKeyValue { + jsonKeyValue(_p?: JsonKeyValue, isNode?: boolean): JsonKeyValue | { + JsonKeyValue: JsonKeyValue; + } { const _j = {} as JsonKeyValue; _o.set(_j, "key", _p?.key); _o.set(_j, "value", _p?.value); + if (isNode) { + return { + JsonKeyValue: _j + }; + } return _j; }, - jsonParseExpr(_p?: JsonParseExpr): JsonParseExpr { + jsonParseExpr(_p?: JsonParseExpr, isNode?: boolean): JsonParseExpr | { + JsonParseExpr: JsonParseExpr; + } { const _j = {} as JsonParseExpr; _o.set(_j, "expr", _p?.expr); _o.set(_j, "output", _p?.output); _o.set(_j, "unique_keys", _p?.unique_keys); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonParseExpr: _j + }; + } return _j; }, - jsonScalarExpr(_p?: JsonScalarExpr): JsonScalarExpr { + jsonScalarExpr(_p?: JsonScalarExpr, isNode?: boolean): JsonScalarExpr | { + JsonScalarExpr: JsonScalarExpr; + } { const _j = {} as JsonScalarExpr; _o.set(_j, "expr", _p?.expr); _o.set(_j, "output", _p?.output); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonScalarExpr: _j + }; + } return _j; }, - jsonSerializeExpr(_p?: JsonSerializeExpr): JsonSerializeExpr { + jsonSerializeExpr(_p?: JsonSerializeExpr, isNode?: boolean): JsonSerializeExpr | { + JsonSerializeExpr: JsonSerializeExpr; + } { const _j = {} as JsonSerializeExpr; _o.set(_j, "expr", _p?.expr); _o.set(_j, "output", _p?.output); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonSerializeExpr: _j + }; + } return _j; }, - jsonObjectConstructor(_p?: JsonObjectConstructor): JsonObjectConstructor { + jsonObjectConstructor(_p?: JsonObjectConstructor, isNode?: boolean): JsonObjectConstructor | { + JsonObjectConstructor: JsonObjectConstructor; + } { const _j = {} as JsonObjectConstructor; _o.set(_j, "exprs", _p?.exprs); _o.set(_j, "output", _p?.output); _o.set(_j, "absent_on_null", _p?.absent_on_null); _o.set(_j, "unique", _p?.unique); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonObjectConstructor: _j + }; + } return _j; }, - jsonArrayConstructor(_p?: JsonArrayConstructor): JsonArrayConstructor { + jsonArrayConstructor(_p?: JsonArrayConstructor, isNode?: boolean): JsonArrayConstructor | { + JsonArrayConstructor: JsonArrayConstructor; + } { const _j = {} as JsonArrayConstructor; _o.set(_j, "exprs", _p?.exprs); _o.set(_j, "output", _p?.output); _o.set(_j, "absent_on_null", _p?.absent_on_null); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonArrayConstructor: _j + }; + } return _j; }, - jsonArrayQueryConstructor(_p?: JsonArrayQueryConstructor): JsonArrayQueryConstructor { + jsonArrayQueryConstructor(_p?: JsonArrayQueryConstructor, isNode?: boolean): JsonArrayQueryConstructor | { + JsonArrayQueryConstructor: JsonArrayQueryConstructor; + } { const _j = {} as JsonArrayQueryConstructor; _o.set(_j, "query", _p?.query); _o.set(_j, "output", _p?.output); _o.set(_j, "format", _p?.format); _o.set(_j, "absent_on_null", _p?.absent_on_null); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonArrayQueryConstructor: _j + }; + } return _j; }, - jsonAggConstructor(_p?: JsonAggConstructor): JsonAggConstructor { + jsonAggConstructor(_p?: JsonAggConstructor, isNode?: boolean): JsonAggConstructor | { + JsonAggConstructor: JsonAggConstructor; + } { const _j = {} as JsonAggConstructor; _o.set(_j, "output", _p?.output); _o.set(_j, "agg_filter", _p?.agg_filter); _o.set(_j, "agg_order", _p?.agg_order); _o.set(_j, "over", _p?.over); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + JsonAggConstructor: _j + }; + } return _j; }, - jsonObjectAgg(_p?: JsonObjectAgg): JsonObjectAgg { + jsonObjectAgg(_p?: JsonObjectAgg, isNode?: boolean): JsonObjectAgg | { + JsonObjectAgg: JsonObjectAgg; + } { const _j = {} as JsonObjectAgg; _o.set(_j, "constructor", _p?.constructor); _o.set(_j, "arg", _p?.arg); _o.set(_j, "absent_on_null", _p?.absent_on_null); _o.set(_j, "unique", _p?.unique); + if (isNode) { + return { + JsonObjectAgg: _j + }; + } return _j; }, - jsonArrayAgg(_p?: JsonArrayAgg): JsonArrayAgg { + jsonArrayAgg(_p?: JsonArrayAgg, isNode?: boolean): JsonArrayAgg | { + JsonArrayAgg: JsonArrayAgg; + } { const _j = {} as JsonArrayAgg; _o.set(_j, "constructor", _p?.constructor); _o.set(_j, "arg", _p?.arg); _o.set(_j, "absent_on_null", _p?.absent_on_null); + if (isNode) { + return { + JsonArrayAgg: _j + }; + } return _j; }, - rawStmt(_p?: RawStmt): RawStmt { + rawStmt(_p?: RawStmt, isNode?: boolean): RawStmt | { + RawStmt: RawStmt; + } { const _j = {} as RawStmt; _o.set(_j, "stmt", _p?.stmt); _o.set(_j, "stmt_location", _p?.stmt_location); _o.set(_j, "stmt_len", _p?.stmt_len); + if (isNode) { + return { + RawStmt: _j + }; + } return _j; }, - insertStmt(_p?: InsertStmt): InsertStmt { + insertStmt(_p?: InsertStmt, isNode?: boolean): InsertStmt | { + InsertStmt: InsertStmt; + } { const _j = {} as InsertStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "cols", _p?.cols); @@ -1417,18 +2413,32 @@ export default { _o.set(_j, "returningList", _p?.returningList); _o.set(_j, "withClause", _p?.withClause); _o.set(_j, "override", _p?.override); + if (isNode) { + return { + InsertStmt: _j + }; + } return _j; }, - deleteStmt(_p?: DeleteStmt): DeleteStmt { + deleteStmt(_p?: DeleteStmt, isNode?: boolean): DeleteStmt | { + DeleteStmt: DeleteStmt; + } { const _j = {} as DeleteStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "usingClause", _p?.usingClause); _o.set(_j, "whereClause", _p?.whereClause); _o.set(_j, "returningList", _p?.returningList); _o.set(_j, "withClause", _p?.withClause); + if (isNode) { + return { + DeleteStmt: _j + }; + } return _j; }, - updateStmt(_p?: UpdateStmt): UpdateStmt { + updateStmt(_p?: UpdateStmt, isNode?: boolean): UpdateStmt | { + UpdateStmt: UpdateStmt; + } { const _j = {} as UpdateStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "targetList", _p?.targetList); @@ -1436,9 +2446,16 @@ export default { _o.set(_j, "fromClause", _p?.fromClause); _o.set(_j, "returningList", _p?.returningList); _o.set(_j, "withClause", _p?.withClause); + if (isNode) { + return { + UpdateStmt: _j + }; + } return _j; }, - mergeStmt(_p?: MergeStmt): MergeStmt { + mergeStmt(_p?: MergeStmt, isNode?: boolean): MergeStmt | { + MergeStmt: MergeStmt; + } { const _j = {} as MergeStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "sourceRelation", _p?.sourceRelation); @@ -1446,9 +2463,16 @@ export default { _o.set(_j, "mergeWhenClauses", _p?.mergeWhenClauses); _o.set(_j, "returningList", _p?.returningList); _o.set(_j, "withClause", _p?.withClause); + if (isNode) { + return { + MergeStmt: _j + }; + } return _j; }, - selectStmt(_p?: SelectStmt): SelectStmt { + selectStmt(_p?: SelectStmt, isNode?: boolean): SelectStmt | { + SelectStmt: SelectStmt; + } { const _j = {} as SelectStmt; _o.set(_j, "distinctClause", _p?.distinctClause); _o.set(_j, "intoClause", _p?.intoClause); @@ -1470,9 +2494,16 @@ export default { _o.set(_j, "all", _p?.all); _o.set(_j, "larg", _p?.larg); _o.set(_j, "rarg", _p?.rarg); + if (isNode) { + return { + SelectStmt: _j + }; + } return _j; }, - setOperationStmt(_p?: SetOperationStmt): SetOperationStmt { + setOperationStmt(_p?: SetOperationStmt, isNode?: boolean): SetOperationStmt | { + SetOperationStmt: SetOperationStmt; + } { const _j = {} as SetOperationStmt; _o.set(_j, "op", _p?.op); _o.set(_j, "all", _p?.all); @@ -1482,45 +2513,87 @@ export default { _o.set(_j, "colTypmods", _p?.colTypmods); _o.set(_j, "colCollations", _p?.colCollations); _o.set(_j, "groupClauses", _p?.groupClauses); + if (isNode) { + return { + SetOperationStmt: _j + }; + } return _j; }, - returnStmt(_p?: ReturnStmt): ReturnStmt { + returnStmt(_p?: ReturnStmt, isNode?: boolean): ReturnStmt | { + ReturnStmt: ReturnStmt; + } { const _j = {} as ReturnStmt; _o.set(_j, "returnval", _p?.returnval); + if (isNode) { + return { + ReturnStmt: _j + }; + } return _j; }, - plAssignStmt(_p?: PLAssignStmt): PLAssignStmt { + plAssignStmt(_p?: PLAssignStmt, isNode?: boolean): PLAssignStmt | { + PLAssignStmt: PLAssignStmt; + } { const _j = {} as PLAssignStmt; _o.set(_j, "name", _p?.name); _o.set(_j, "indirection", _p?.indirection); _o.set(_j, "nnames", _p?.nnames); _o.set(_j, "val", _p?.val); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + PLAssignStmt: _j + }; + } return _j; }, - createSchemaStmt(_p?: CreateSchemaStmt): CreateSchemaStmt { + createSchemaStmt(_p?: CreateSchemaStmt, isNode?: boolean): CreateSchemaStmt | { + CreateSchemaStmt: CreateSchemaStmt; + } { const _j = {} as CreateSchemaStmt; _o.set(_j, "schemaname", _p?.schemaname); _o.set(_j, "authrole", _p?.authrole); _o.set(_j, "schemaElts", _p?.schemaElts); _o.set(_j, "if_not_exists", _p?.if_not_exists); + if (isNode) { + return { + CreateSchemaStmt: _j + }; + } return _j; }, - alterTableStmt(_p?: AlterTableStmt): AlterTableStmt { + alterTableStmt(_p?: AlterTableStmt, isNode?: boolean): AlterTableStmt | { + AlterTableStmt: AlterTableStmt; + } { const _j = {} as AlterTableStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "cmds", _p?.cmds); _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + AlterTableStmt: _j + }; + } return _j; }, - replicaIdentityStmt(_p?: ReplicaIdentityStmt): ReplicaIdentityStmt { + replicaIdentityStmt(_p?: ReplicaIdentityStmt, isNode?: boolean): ReplicaIdentityStmt | { + ReplicaIdentityStmt: ReplicaIdentityStmt; + } { const _j = {} as ReplicaIdentityStmt; _o.set(_j, "identity_type", _p?.identity_type); _o.set(_j, "name", _p?.name); + if (isNode) { + return { + ReplicaIdentityStmt: _j + }; + } return _j; }, - alterTableCmd(_p?: AlterTableCmd): AlterTableCmd { + alterTableCmd(_p?: AlterTableCmd, isNode?: boolean): AlterTableCmd | { + AlterTableCmd: AlterTableCmd; + } { const _j = {} as AlterTableCmd; _o.set(_j, "subtype", _p?.subtype); _o.set(_j, "name", _p?.name); @@ -1530,14 +2603,28 @@ export default { _o.set(_j, "behavior", _p?.behavior); _o.set(_j, "missing_ok", _p?.missing_ok); _o.set(_j, "recurse", _p?.recurse); + if (isNode) { + return { + AlterTableCmd: _j + }; + } return _j; }, - alterCollationStmt(_p?: AlterCollationStmt): AlterCollationStmt { + alterCollationStmt(_p?: AlterCollationStmt, isNode?: boolean): AlterCollationStmt | { + AlterCollationStmt: AlterCollationStmt; + } { const _j = {} as AlterCollationStmt; _o.set(_j, "collname", _p?.collname); + if (isNode) { + return { + AlterCollationStmt: _j + }; + } return _j; }, - alterDomainStmt(_p?: AlterDomainStmt): AlterDomainStmt { + alterDomainStmt(_p?: AlterDomainStmt, isNode?: boolean): AlterDomainStmt | { + AlterDomainStmt: AlterDomainStmt; + } { const _j = {} as AlterDomainStmt; _o.set(_j, "subtype", _p?.subtype); _o.set(_j, "typeName", _p?.typeName); @@ -1545,9 +2632,16 @@ export default { _o.set(_j, "def", _p?.def); _o.set(_j, "behavior", _p?.behavior); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + AlterDomainStmt: _j + }; + } return _j; }, - grantStmt(_p?: GrantStmt): GrantStmt { + grantStmt(_p?: GrantStmt, isNode?: boolean): GrantStmt | { + GrantStmt: GrantStmt; + } { const _j = {} as GrantStmt; _o.set(_j, "is_grant", _p?.is_grant); _o.set(_j, "targtype", _p?.targtype); @@ -1558,23 +2652,44 @@ export default { _o.set(_j, "grant_option", _p?.grant_option); _o.set(_j, "grantor", _p?.grantor); _o.set(_j, "behavior", _p?.behavior); + if (isNode) { + return { + GrantStmt: _j + }; + } return _j; }, - objectWithArgs(_p?: ObjectWithArgs): ObjectWithArgs { + objectWithArgs(_p?: ObjectWithArgs, isNode?: boolean): ObjectWithArgs | { + ObjectWithArgs: ObjectWithArgs; + } { const _j = {} as ObjectWithArgs; _o.set(_j, "objname", _p?.objname); _o.set(_j, "objargs", _p?.objargs); _o.set(_j, "objfuncargs", _p?.objfuncargs); _o.set(_j, "args_unspecified", _p?.args_unspecified); + if (isNode) { + return { + ObjectWithArgs: _j + }; + } return _j; }, - accessPriv(_p?: AccessPriv): AccessPriv { + accessPriv(_p?: AccessPriv, isNode?: boolean): AccessPriv | { + AccessPriv: AccessPriv; + } { const _j = {} as AccessPriv; _o.set(_j, "priv_name", _p?.priv_name); _o.set(_j, "cols", _p?.cols); + if (isNode) { + return { + AccessPriv: _j + }; + } return _j; }, - grantRoleStmt(_p?: GrantRoleStmt): GrantRoleStmt { + grantRoleStmt(_p?: GrantRoleStmt, isNode?: boolean): GrantRoleStmt | { + GrantRoleStmt: GrantRoleStmt; + } { const _j = {} as GrantRoleStmt; _o.set(_j, "granted_roles", _p?.granted_roles); _o.set(_j, "grantee_roles", _p?.grantee_roles); @@ -1582,15 +2697,29 @@ export default { _o.set(_j, "opt", _p?.opt); _o.set(_j, "grantor", _p?.grantor); _o.set(_j, "behavior", _p?.behavior); + if (isNode) { + return { + GrantRoleStmt: _j + }; + } return _j; }, - alterDefaultPrivilegesStmt(_p?: AlterDefaultPrivilegesStmt): AlterDefaultPrivilegesStmt { + alterDefaultPrivilegesStmt(_p?: AlterDefaultPrivilegesStmt, isNode?: boolean): AlterDefaultPrivilegesStmt | { + AlterDefaultPrivilegesStmt: AlterDefaultPrivilegesStmt; + } { const _j = {} as AlterDefaultPrivilegesStmt; _o.set(_j, "options", _p?.options); _o.set(_j, "action", _p?.action); + if (isNode) { + return { + AlterDefaultPrivilegesStmt: _j + }; + } return _j; }, - copyStmt(_p?: CopyStmt): CopyStmt { + copyStmt(_p?: CopyStmt, isNode?: boolean): CopyStmt | { + CopyStmt: CopyStmt; + } { const _j = {} as CopyStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "query", _p?.query); @@ -1600,22 +2729,43 @@ export default { _o.set(_j, "filename", _p?.filename); _o.set(_j, "options", _p?.options); _o.set(_j, "whereClause", _p?.whereClause); + if (isNode) { + return { + CopyStmt: _j + }; + } return _j; }, - variableSetStmt(_p?: VariableSetStmt): VariableSetStmt { + variableSetStmt(_p?: VariableSetStmt, isNode?: boolean): VariableSetStmt | { + VariableSetStmt: VariableSetStmt; + } { const _j = {} as VariableSetStmt; _o.set(_j, "kind", _p?.kind); _o.set(_j, "name", _p?.name); _o.set(_j, "args", _p?.args); _o.set(_j, "is_local", _p?.is_local); + if (isNode) { + return { + VariableSetStmt: _j + }; + } return _j; }, - variableShowStmt(_p?: VariableShowStmt): VariableShowStmt { + variableShowStmt(_p?: VariableShowStmt, isNode?: boolean): VariableShowStmt | { + VariableShowStmt: VariableShowStmt; + } { const _j = {} as VariableShowStmt; _o.set(_j, "name", _p?.name); + if (isNode) { + return { + VariableShowStmt: _j + }; + } return _j; }, - createStmt(_p?: CreateStmt): CreateStmt { + createStmt(_p?: CreateStmt, isNode?: boolean): CreateStmt | { + CreateStmt: CreateStmt; + } { const _j = {} as CreateStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "tableElts", _p?.tableElts); @@ -1629,9 +2779,16 @@ export default { _o.set(_j, "tablespacename", _p?.tablespacename); _o.set(_j, "accessMethod", _p?.accessMethod); _o.set(_j, "if_not_exists", _p?.if_not_exists); + if (isNode) { + return { + CreateStmt: _j + }; + } return _j; }, - constraint(_p?: Constraint): Constraint { + constraint(_p?: Constraint, isNode?: boolean): Constraint | { + Constraint: Constraint; + } { const _j = {} as Constraint; _o.set(_j, "contype", _p?.contype); _o.set(_j, "conname", _p?.conname); @@ -1664,74 +2821,144 @@ export default { _o.set(_j, "old_conpfeqop", _p?.old_conpfeqop); _o.set(_j, "old_pktable_oid", _p?.old_pktable_oid); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + Constraint: _j + }; + } return _j; }, - createTableSpaceStmt(_p?: CreateTableSpaceStmt): CreateTableSpaceStmt { + createTableSpaceStmt(_p?: CreateTableSpaceStmt, isNode?: boolean): CreateTableSpaceStmt | { + CreateTableSpaceStmt: CreateTableSpaceStmt; + } { const _j = {} as CreateTableSpaceStmt; _o.set(_j, "tablespacename", _p?.tablespacename); _o.set(_j, "owner", _p?.owner); _o.set(_j, "location", _p?.location); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateTableSpaceStmt: _j + }; + } return _j; }, - dropTableSpaceStmt(_p?: DropTableSpaceStmt): DropTableSpaceStmt { + dropTableSpaceStmt(_p?: DropTableSpaceStmt, isNode?: boolean): DropTableSpaceStmt | { + DropTableSpaceStmt: DropTableSpaceStmt; + } { const _j = {} as DropTableSpaceStmt; _o.set(_j, "tablespacename", _p?.tablespacename); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + DropTableSpaceStmt: _j + }; + } return _j; }, - alterTableSpaceOptionsStmt(_p?: AlterTableSpaceOptionsStmt): AlterTableSpaceOptionsStmt { + alterTableSpaceOptionsStmt(_p?: AlterTableSpaceOptionsStmt, isNode?: boolean): AlterTableSpaceOptionsStmt | { + AlterTableSpaceOptionsStmt: AlterTableSpaceOptionsStmt; + } { const _j = {} as AlterTableSpaceOptionsStmt; _o.set(_j, "tablespacename", _p?.tablespacename); _o.set(_j, "options", _p?.options); _o.set(_j, "isReset", _p?.isReset); + if (isNode) { + return { + AlterTableSpaceOptionsStmt: _j + }; + } return _j; }, - alterTableMoveAllStmt(_p?: AlterTableMoveAllStmt): AlterTableMoveAllStmt { + alterTableMoveAllStmt(_p?: AlterTableMoveAllStmt, isNode?: boolean): AlterTableMoveAllStmt | { + AlterTableMoveAllStmt: AlterTableMoveAllStmt; + } { const _j = {} as AlterTableMoveAllStmt; _o.set(_j, "orig_tablespacename", _p?.orig_tablespacename); _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "roles", _p?.roles); _o.set(_j, "new_tablespacename", _p?.new_tablespacename); _o.set(_j, "nowait", _p?.nowait); + if (isNode) { + return { + AlterTableMoveAllStmt: _j + }; + } return _j; }, - createExtensionStmt(_p?: CreateExtensionStmt): CreateExtensionStmt { + createExtensionStmt(_p?: CreateExtensionStmt, isNode?: boolean): CreateExtensionStmt | { + CreateExtensionStmt: CreateExtensionStmt; + } { const _j = {} as CreateExtensionStmt; _o.set(_j, "extname", _p?.extname); _o.set(_j, "if_not_exists", _p?.if_not_exists); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateExtensionStmt: _j + }; + } return _j; }, - alterExtensionStmt(_p?: AlterExtensionStmt): AlterExtensionStmt { + alterExtensionStmt(_p?: AlterExtensionStmt, isNode?: boolean): AlterExtensionStmt | { + AlterExtensionStmt: AlterExtensionStmt; + } { const _j = {} as AlterExtensionStmt; _o.set(_j, "extname", _p?.extname); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterExtensionStmt: _j + }; + } return _j; }, - alterExtensionContentsStmt(_p?: AlterExtensionContentsStmt): AlterExtensionContentsStmt { + alterExtensionContentsStmt(_p?: AlterExtensionContentsStmt, isNode?: boolean): AlterExtensionContentsStmt | { + AlterExtensionContentsStmt: AlterExtensionContentsStmt; + } { const _j = {} as AlterExtensionContentsStmt; _o.set(_j, "extname", _p?.extname); _o.set(_j, "action", _p?.action); _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "object", _p?.object); + if (isNode) { + return { + AlterExtensionContentsStmt: _j + }; + } return _j; }, - createFdwStmt(_p?: CreateFdwStmt): CreateFdwStmt { + createFdwStmt(_p?: CreateFdwStmt, isNode?: boolean): CreateFdwStmt | { + CreateFdwStmt: CreateFdwStmt; + } { const _j = {} as CreateFdwStmt; _o.set(_j, "fdwname", _p?.fdwname); _o.set(_j, "func_options", _p?.func_options); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateFdwStmt: _j + }; + } return _j; }, - alterFdwStmt(_p?: AlterFdwStmt): AlterFdwStmt { + alterFdwStmt(_p?: AlterFdwStmt, isNode?: boolean): AlterFdwStmt | { + AlterFdwStmt: AlterFdwStmt; + } { const _j = {} as AlterFdwStmt; _o.set(_j, "fdwname", _p?.fdwname); _o.set(_j, "func_options", _p?.func_options); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterFdwStmt: _j + }; + } return _j; }, - createForeignServerStmt(_p?: CreateForeignServerStmt): CreateForeignServerStmt { + createForeignServerStmt(_p?: CreateForeignServerStmt, isNode?: boolean): CreateForeignServerStmt | { + CreateForeignServerStmt: CreateForeignServerStmt; + } { const _j = {} as CreateForeignServerStmt; _o.set(_j, "servername", _p?.servername); _o.set(_j, "servertype", _p?.servertype); @@ -1739,46 +2966,88 @@ export default { _o.set(_j, "fdwname", _p?.fdwname); _o.set(_j, "if_not_exists", _p?.if_not_exists); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateForeignServerStmt: _j + }; + } return _j; }, - alterForeignServerStmt(_p?: AlterForeignServerStmt): AlterForeignServerStmt { + alterForeignServerStmt(_p?: AlterForeignServerStmt, isNode?: boolean): AlterForeignServerStmt | { + AlterForeignServerStmt: AlterForeignServerStmt; + } { const _j = {} as AlterForeignServerStmt; _o.set(_j, "servername", _p?.servername); _o.set(_j, "version", _p?.version); _o.set(_j, "options", _p?.options); _o.set(_j, "has_version", _p?.has_version); + if (isNode) { + return { + AlterForeignServerStmt: _j + }; + } return _j; }, - createForeignTableStmt(_p?: CreateForeignTableStmt): CreateForeignTableStmt { + createForeignTableStmt(_p?: CreateForeignTableStmt, isNode?: boolean): CreateForeignTableStmt | { + CreateForeignTableStmt: CreateForeignTableStmt; + } { const _j = {} as CreateForeignTableStmt; _o.set(_j, "base", _p?.base); _o.set(_j, "servername", _p?.servername); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateForeignTableStmt: _j + }; + } return _j; }, - createUserMappingStmt(_p?: CreateUserMappingStmt): CreateUserMappingStmt { + createUserMappingStmt(_p?: CreateUserMappingStmt, isNode?: boolean): CreateUserMappingStmt | { + CreateUserMappingStmt: CreateUserMappingStmt; + } { const _j = {} as CreateUserMappingStmt; _o.set(_j, "user", _p?.user); _o.set(_j, "servername", _p?.servername); _o.set(_j, "if_not_exists", _p?.if_not_exists); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateUserMappingStmt: _j + }; + } return _j; }, - alterUserMappingStmt(_p?: AlterUserMappingStmt): AlterUserMappingStmt { + alterUserMappingStmt(_p?: AlterUserMappingStmt, isNode?: boolean): AlterUserMappingStmt | { + AlterUserMappingStmt: AlterUserMappingStmt; + } { const _j = {} as AlterUserMappingStmt; _o.set(_j, "user", _p?.user); _o.set(_j, "servername", _p?.servername); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterUserMappingStmt: _j + }; + } return _j; }, - dropUserMappingStmt(_p?: DropUserMappingStmt): DropUserMappingStmt { + dropUserMappingStmt(_p?: DropUserMappingStmt, isNode?: boolean): DropUserMappingStmt | { + DropUserMappingStmt: DropUserMappingStmt; + } { const _j = {} as DropUserMappingStmt; _o.set(_j, "user", _p?.user); _o.set(_j, "servername", _p?.servername); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + DropUserMappingStmt: _j + }; + } return _j; }, - importForeignSchemaStmt(_p?: ImportForeignSchemaStmt): ImportForeignSchemaStmt { + importForeignSchemaStmt(_p?: ImportForeignSchemaStmt, isNode?: boolean): ImportForeignSchemaStmt | { + ImportForeignSchemaStmt: ImportForeignSchemaStmt; + } { const _j = {} as ImportForeignSchemaStmt; _o.set(_j, "server_name", _p?.server_name); _o.set(_j, "remote_schema", _p?.remote_schema); @@ -1786,9 +3055,16 @@ export default { _o.set(_j, "list_type", _p?.list_type); _o.set(_j, "table_list", _p?.table_list); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + ImportForeignSchemaStmt: _j + }; + } return _j; }, - createPolicyStmt(_p?: CreatePolicyStmt): CreatePolicyStmt { + createPolicyStmt(_p?: CreatePolicyStmt, isNode?: boolean): CreatePolicyStmt | { + CreatePolicyStmt: CreatePolicyStmt; + } { const _j = {} as CreatePolicyStmt; _o.set(_j, "policy_name", _p?.policy_name); _o.set(_j, "table", _p?.table); @@ -1797,25 +3073,46 @@ export default { _o.set(_j, "roles", _p?.roles); _o.set(_j, "qual", _p?.qual); _o.set(_j, "with_check", _p?.with_check); + if (isNode) { + return { + CreatePolicyStmt: _j + }; + } return _j; }, - alterPolicyStmt(_p?: AlterPolicyStmt): AlterPolicyStmt { + alterPolicyStmt(_p?: AlterPolicyStmt, isNode?: boolean): AlterPolicyStmt | { + AlterPolicyStmt: AlterPolicyStmt; + } { const _j = {} as AlterPolicyStmt; _o.set(_j, "policy_name", _p?.policy_name); _o.set(_j, "table", _p?.table); _o.set(_j, "roles", _p?.roles); _o.set(_j, "qual", _p?.qual); _o.set(_j, "with_check", _p?.with_check); + if (isNode) { + return { + AlterPolicyStmt: _j + }; + } return _j; }, - createAmStmt(_p?: CreateAmStmt): CreateAmStmt { + createAmStmt(_p?: CreateAmStmt, isNode?: boolean): CreateAmStmt | { + CreateAmStmt: CreateAmStmt; + } { const _j = {} as CreateAmStmt; _o.set(_j, "amname", _p?.amname); _o.set(_j, "handler_name", _p?.handler_name); _o.set(_j, "amtype", _p?.amtype); + if (isNode) { + return { + CreateAmStmt: _j + }; + } return _j; }, - createTrigStmt(_p?: CreateTrigStmt): CreateTrigStmt { + createTrigStmt(_p?: CreateTrigStmt, isNode?: boolean): CreateTrigStmt | { + CreateTrigStmt: CreateTrigStmt; + } { const _j = {} as CreateTrigStmt; _o.set(_j, "replace", _p?.replace); _o.set(_j, "isconstraint", _p?.isconstraint); @@ -1832,23 +3129,44 @@ export default { _o.set(_j, "deferrable", _p?.deferrable); _o.set(_j, "initdeferred", _p?.initdeferred); _o.set(_j, "constrrel", _p?.constrrel); + if (isNode) { + return { + CreateTrigStmt: _j + }; + } return _j; }, - createEventTrigStmt(_p?: CreateEventTrigStmt): CreateEventTrigStmt { + createEventTrigStmt(_p?: CreateEventTrigStmt, isNode?: boolean): CreateEventTrigStmt | { + CreateEventTrigStmt: CreateEventTrigStmt; + } { const _j = {} as CreateEventTrigStmt; _o.set(_j, "trigname", _p?.trigname); _o.set(_j, "eventname", _p?.eventname); _o.set(_j, "whenclause", _p?.whenclause); _o.set(_j, "funcname", _p?.funcname); + if (isNode) { + return { + CreateEventTrigStmt: _j + }; + } return _j; }, - alterEventTrigStmt(_p?: AlterEventTrigStmt): AlterEventTrigStmt { + alterEventTrigStmt(_p?: AlterEventTrigStmt, isNode?: boolean): AlterEventTrigStmt | { + AlterEventTrigStmt: AlterEventTrigStmt; + } { const _j = {} as AlterEventTrigStmt; _o.set(_j, "trigname", _p?.trigname); _o.set(_j, "tgenabled", _p?.tgenabled); + if (isNode) { + return { + AlterEventTrigStmt: _j + }; + } return _j; }, - createpLangStmt(_p?: CreatePLangStmt): CreatePLangStmt { + createpLangStmt(_p?: CreatePLangStmt, isNode?: boolean): CreatePLangStmt | { + CreatePLangStmt: CreatePLangStmt; + } { const _j = {} as CreatePLangStmt; _o.set(_j, "replace", _p?.replace); _o.set(_j, "plname", _p?.plname); @@ -1856,53 +3174,102 @@ export default { _o.set(_j, "plinline", _p?.plinline); _o.set(_j, "plvalidator", _p?.plvalidator); _o.set(_j, "pltrusted", _p?.pltrusted); + if (isNode) { + return { + CreatePLangStmt: _j + }; + } return _j; }, - createRoleStmt(_p?: CreateRoleStmt): CreateRoleStmt { + createRoleStmt(_p?: CreateRoleStmt, isNode?: boolean): CreateRoleStmt | { + CreateRoleStmt: CreateRoleStmt; + } { const _j = {} as CreateRoleStmt; _o.set(_j, "stmt_type", _p?.stmt_type); _o.set(_j, "role", _p?.role); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateRoleStmt: _j + }; + } return _j; }, - alterRoleStmt(_p?: AlterRoleStmt): AlterRoleStmt { + alterRoleStmt(_p?: AlterRoleStmt, isNode?: boolean): AlterRoleStmt | { + AlterRoleStmt: AlterRoleStmt; + } { const _j = {} as AlterRoleStmt; _o.set(_j, "role", _p?.role); _o.set(_j, "options", _p?.options); _o.set(_j, "action", _p?.action); + if (isNode) { + return { + AlterRoleStmt: _j + }; + } return _j; }, - alterRoleSetStmt(_p?: AlterRoleSetStmt): AlterRoleSetStmt { + alterRoleSetStmt(_p?: AlterRoleSetStmt, isNode?: boolean): AlterRoleSetStmt | { + AlterRoleSetStmt: AlterRoleSetStmt; + } { const _j = {} as AlterRoleSetStmt; _o.set(_j, "role", _p?.role); _o.set(_j, "database", _p?.database); _o.set(_j, "setstmt", _p?.setstmt); + if (isNode) { + return { + AlterRoleSetStmt: _j + }; + } return _j; }, - dropRoleStmt(_p?: DropRoleStmt): DropRoleStmt { + dropRoleStmt(_p?: DropRoleStmt, isNode?: boolean): DropRoleStmt | { + DropRoleStmt: DropRoleStmt; + } { const _j = {} as DropRoleStmt; _o.set(_j, "roles", _p?.roles); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + DropRoleStmt: _j + }; + } return _j; }, - createSeqStmt(_p?: CreateSeqStmt): CreateSeqStmt { + createSeqStmt(_p?: CreateSeqStmt, isNode?: boolean): CreateSeqStmt | { + CreateSeqStmt: CreateSeqStmt; + } { const _j = {} as CreateSeqStmt; _o.set(_j, "sequence", _p?.sequence); _o.set(_j, "options", _p?.options); _o.set(_j, "ownerId", _p?.ownerId); _o.set(_j, "for_identity", _p?.for_identity); _o.set(_j, "if_not_exists", _p?.if_not_exists); + if (isNode) { + return { + CreateSeqStmt: _j + }; + } return _j; }, - alterSeqStmt(_p?: AlterSeqStmt): AlterSeqStmt { + alterSeqStmt(_p?: AlterSeqStmt, isNode?: boolean): AlterSeqStmt | { + AlterSeqStmt: AlterSeqStmt; + } { const _j = {} as AlterSeqStmt; _o.set(_j, "sequence", _p?.sequence); _o.set(_j, "options", _p?.options); _o.set(_j, "for_identity", _p?.for_identity); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + AlterSeqStmt: _j + }; + } return _j; }, - defineStmt(_p?: DefineStmt): DefineStmt { + defineStmt(_p?: DefineStmt, isNode?: boolean): DefineStmt | { + DefineStmt: DefineStmt; + } { const _j = {} as DefineStmt; _o.set(_j, "kind", _p?.kind); _o.set(_j, "oldstyle", _p?.oldstyle); @@ -1911,17 +3278,31 @@ export default { _o.set(_j, "definition", _p?.definition); _o.set(_j, "if_not_exists", _p?.if_not_exists); _o.set(_j, "replace", _p?.replace); + if (isNode) { + return { + DefineStmt: _j + }; + } return _j; }, - createDomainStmt(_p?: CreateDomainStmt): CreateDomainStmt { + createDomainStmt(_p?: CreateDomainStmt, isNode?: boolean): CreateDomainStmt | { + CreateDomainStmt: CreateDomainStmt; + } { const _j = {} as CreateDomainStmt; _o.set(_j, "domainname", _p?.domainname); _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "collClause", _p?.collClause); _o.set(_j, "constraints", _p?.constraints); + if (isNode) { + return { + CreateDomainStmt: _j + }; + } return _j; }, - createOpClassStmt(_p?: CreateOpClassStmt): CreateOpClassStmt { + createOpClassStmt(_p?: CreateOpClassStmt, isNode?: boolean): CreateOpClassStmt | { + CreateOpClassStmt: CreateOpClassStmt; + } { const _j = {} as CreateOpClassStmt; _o.set(_j, "opclassname", _p?.opclassname); _o.set(_j, "opfamilyname", _p?.opfamilyname); @@ -1929,9 +3310,16 @@ export default { _o.set(_j, "datatype", _p?.datatype); _o.set(_j, "items", _p?.items); _o.set(_j, "isDefault", _p?.isDefault); + if (isNode) { + return { + CreateOpClassStmt: _j + }; + } return _j; }, - createOpClassItem(_p?: CreateOpClassItem): CreateOpClassItem { + createOpClassItem(_p?: CreateOpClassItem, isNode?: boolean): CreateOpClassItem | { + CreateOpClassItem: CreateOpClassItem; + } { const _j = {} as CreateOpClassItem; _o.set(_j, "itemtype", _p?.itemtype); _o.set(_j, "name", _p?.name); @@ -1939,74 +3327,144 @@ export default { _o.set(_j, "order_family", _p?.order_family); _o.set(_j, "class_args", _p?.class_args); _o.set(_j, "storedtype", _p?.storedtype); + if (isNode) { + return { + CreateOpClassItem: _j + }; + } return _j; }, - createOpFamilyStmt(_p?: CreateOpFamilyStmt): CreateOpFamilyStmt { + createOpFamilyStmt(_p?: CreateOpFamilyStmt, isNode?: boolean): CreateOpFamilyStmt | { + CreateOpFamilyStmt: CreateOpFamilyStmt; + } { const _j = {} as CreateOpFamilyStmt; _o.set(_j, "opfamilyname", _p?.opfamilyname); _o.set(_j, "amname", _p?.amname); + if (isNode) { + return { + CreateOpFamilyStmt: _j + }; + } return _j; }, - alterOpFamilyStmt(_p?: AlterOpFamilyStmt): AlterOpFamilyStmt { + alterOpFamilyStmt(_p?: AlterOpFamilyStmt, isNode?: boolean): AlterOpFamilyStmt | { + AlterOpFamilyStmt: AlterOpFamilyStmt; + } { const _j = {} as AlterOpFamilyStmt; _o.set(_j, "opfamilyname", _p?.opfamilyname); _o.set(_j, "amname", _p?.amname); _o.set(_j, "isDrop", _p?.isDrop); _o.set(_j, "items", _p?.items); + if (isNode) { + return { + AlterOpFamilyStmt: _j + }; + } return _j; }, - dropStmt(_p?: DropStmt): DropStmt { + dropStmt(_p?: DropStmt, isNode?: boolean): DropStmt | { + DropStmt: DropStmt; + } { const _j = {} as DropStmt; _o.set(_j, "objects", _p?.objects); _o.set(_j, "removeType", _p?.removeType); _o.set(_j, "behavior", _p?.behavior); _o.set(_j, "missing_ok", _p?.missing_ok); _o.set(_j, "concurrent", _p?.concurrent); + if (isNode) { + return { + DropStmt: _j + }; + } return _j; }, - truncateStmt(_p?: TruncateStmt): TruncateStmt { + truncateStmt(_p?: TruncateStmt, isNode?: boolean): TruncateStmt | { + TruncateStmt: TruncateStmt; + } { const _j = {} as TruncateStmt; _o.set(_j, "relations", _p?.relations); _o.set(_j, "restart_seqs", _p?.restart_seqs); _o.set(_j, "behavior", _p?.behavior); + if (isNode) { + return { + TruncateStmt: _j + }; + } return _j; }, - commentStmt(_p?: CommentStmt): CommentStmt { + commentStmt(_p?: CommentStmt, isNode?: boolean): CommentStmt | { + CommentStmt: CommentStmt; + } { const _j = {} as CommentStmt; _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "object", _p?.object); _o.set(_j, "comment", _p?.comment); + if (isNode) { + return { + CommentStmt: _j + }; + } return _j; }, - secLabelStmt(_p?: SecLabelStmt): SecLabelStmt { + secLabelStmt(_p?: SecLabelStmt, isNode?: boolean): SecLabelStmt | { + SecLabelStmt: SecLabelStmt; + } { const _j = {} as SecLabelStmt; _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "object", _p?.object); _o.set(_j, "provider", _p?.provider); _o.set(_j, "label", _p?.label); + if (isNode) { + return { + SecLabelStmt: _j + }; + } return _j; }, - declareCursorStmt(_p?: DeclareCursorStmt): DeclareCursorStmt { + declareCursorStmt(_p?: DeclareCursorStmt, isNode?: boolean): DeclareCursorStmt | { + DeclareCursorStmt: DeclareCursorStmt; + } { const _j = {} as DeclareCursorStmt; _o.set(_j, "portalname", _p?.portalname); _o.set(_j, "options", _p?.options); _o.set(_j, "query", _p?.query); + if (isNode) { + return { + DeclareCursorStmt: _j + }; + } return _j; }, - closePortalStmt(_p?: ClosePortalStmt): ClosePortalStmt { + closePortalStmt(_p?: ClosePortalStmt, isNode?: boolean): ClosePortalStmt | { + ClosePortalStmt: ClosePortalStmt; + } { const _j = {} as ClosePortalStmt; _o.set(_j, "portalname", _p?.portalname); + if (isNode) { + return { + ClosePortalStmt: _j + }; + } return _j; }, - fetchStmt(_p?: FetchStmt): FetchStmt { + fetchStmt(_p?: FetchStmt, isNode?: boolean): FetchStmt | { + FetchStmt: FetchStmt; + } { const _j = {} as FetchStmt; _o.set(_j, "direction", _p?.direction); _o.set(_j, "howMany", _p?.howMany); _o.set(_j, "portalname", _p?.portalname); _o.set(_j, "ismove", _p?.ismove); + if (isNode) { + return { + FetchStmt: _j + }; + } return _j; }, - indexStmt(_p?: IndexStmt): IndexStmt { + indexStmt(_p?: IndexStmt, isNode?: boolean): IndexStmt | { + IndexStmt: IndexStmt; + } { const _j = {} as IndexStmt; _o.set(_j, "idxname", _p?.idxname); _o.set(_j, "relation", _p?.relation); @@ -2032,9 +3490,16 @@ export default { _o.set(_j, "concurrent", _p?.concurrent); _o.set(_j, "if_not_exists", _p?.if_not_exists); _o.set(_j, "reset_default_tblspc", _p?.reset_default_tblspc); + if (isNode) { + return { + IndexStmt: _j + }; + } return _j; }, - createStatsStmt(_p?: CreateStatsStmt): CreateStatsStmt { + createStatsStmt(_p?: CreateStatsStmt, isNode?: boolean): CreateStatsStmt | { + CreateStatsStmt: CreateStatsStmt; + } { const _j = {} as CreateStatsStmt; _o.set(_j, "defnames", _p?.defnames); _o.set(_j, "stat_types", _p?.stat_types); @@ -2043,22 +3508,43 @@ export default { _o.set(_j, "stxcomment", _p?.stxcomment); _o.set(_j, "transformed", _p?.transformed); _o.set(_j, "if_not_exists", _p?.if_not_exists); + if (isNode) { + return { + CreateStatsStmt: _j + }; + } return _j; }, - statsElem(_p?: StatsElem): StatsElem { + statsElem(_p?: StatsElem, isNode?: boolean): StatsElem | { + StatsElem: StatsElem; + } { const _j = {} as StatsElem; _o.set(_j, "name", _p?.name); _o.set(_j, "expr", _p?.expr); + if (isNode) { + return { + StatsElem: _j + }; + } return _j; }, - alterStatsStmt(_p?: AlterStatsStmt): AlterStatsStmt { + alterStatsStmt(_p?: AlterStatsStmt, isNode?: boolean): AlterStatsStmt | { + AlterStatsStmt: AlterStatsStmt; + } { const _j = {} as AlterStatsStmt; _o.set(_j, "defnames", _p?.defnames); _o.set(_j, "stxstattarget", _p?.stxstattarget); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + AlterStatsStmt: _j + }; + } return _j; }, - createFunctionStmt(_p?: CreateFunctionStmt): CreateFunctionStmt { + createFunctionStmt(_p?: CreateFunctionStmt, isNode?: boolean): CreateFunctionStmt | { + CreateFunctionStmt: CreateFunctionStmt; + } { const _j = {} as CreateFunctionStmt; _o.set(_j, "is_procedure", _p?.is_procedure); _o.set(_j, "replace", _p?.replace); @@ -2067,49 +3553,98 @@ export default { _o.set(_j, "returnType", _p?.returnType); _o.set(_j, "options", _p?.options); _o.set(_j, "sql_body", _p?.sql_body); + if (isNode) { + return { + CreateFunctionStmt: _j + }; + } return _j; }, - functionParameter(_p?: FunctionParameter): FunctionParameter { + functionParameter(_p?: FunctionParameter, isNode?: boolean): FunctionParameter | { + FunctionParameter: FunctionParameter; + } { const _j = {} as FunctionParameter; _o.set(_j, "name", _p?.name); _o.set(_j, "argType", _p?.argType); _o.set(_j, "mode", _p?.mode); _o.set(_j, "defexpr", _p?.defexpr); + if (isNode) { + return { + FunctionParameter: _j + }; + } return _j; }, - alterFunctionStmt(_p?: AlterFunctionStmt): AlterFunctionStmt { + alterFunctionStmt(_p?: AlterFunctionStmt, isNode?: boolean): AlterFunctionStmt | { + AlterFunctionStmt: AlterFunctionStmt; + } { const _j = {} as AlterFunctionStmt; _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "func", _p?.func); _o.set(_j, "actions", _p?.actions); + if (isNode) { + return { + AlterFunctionStmt: _j + }; + } return _j; }, - doStmt(_p?: DoStmt): DoStmt { + doStmt(_p?: DoStmt, isNode?: boolean): DoStmt | { + DoStmt: DoStmt; + } { const _j = {} as DoStmt; _o.set(_j, "args", _p?.args); + if (isNode) { + return { + DoStmt: _j + }; + } return _j; }, - inlineCodeBlock(_p?: InlineCodeBlock): InlineCodeBlock { + inlineCodeBlock(_p?: InlineCodeBlock, isNode?: boolean): InlineCodeBlock | { + InlineCodeBlock: InlineCodeBlock; + } { const _j = {} as InlineCodeBlock; _o.set(_j, "source_text", _p?.source_text); _o.set(_j, "langOid", _p?.langOid); _o.set(_j, "langIsTrusted", _p?.langIsTrusted); _o.set(_j, "atomic", _p?.atomic); + if (isNode) { + return { + InlineCodeBlock: _j + }; + } return _j; }, - callStmt(_p?: CallStmt): CallStmt { + callStmt(_p?: CallStmt, isNode?: boolean): CallStmt | { + CallStmt: CallStmt; + } { const _j = {} as CallStmt; _o.set(_j, "funccall", _p?.funccall); _o.set(_j, "funcexpr", _p?.funcexpr); _o.set(_j, "outargs", _p?.outargs); + if (isNode) { + return { + CallStmt: _j + }; + } return _j; }, - callContext(_p?: CallContext): CallContext { + callContext(_p?: CallContext, isNode?: boolean): CallContext | { + CallContext: CallContext; + } { const _j = {} as CallContext; _o.set(_j, "atomic", _p?.atomic); + if (isNode) { + return { + CallContext: _j + }; + } return _j; }, - renameStmt(_p?: RenameStmt): RenameStmt { + renameStmt(_p?: RenameStmt, isNode?: boolean): RenameStmt | { + RenameStmt: RenameStmt; + } { const _j = {} as RenameStmt; _o.set(_j, "renameType", _p?.renameType); _o.set(_j, "relationType", _p?.relationType); @@ -2119,47 +3654,89 @@ export default { _o.set(_j, "newname", _p?.newname); _o.set(_j, "behavior", _p?.behavior); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + RenameStmt: _j + }; + } return _j; }, - alterObjectDependsStmt(_p?: AlterObjectDependsStmt): AlterObjectDependsStmt { + alterObjectDependsStmt(_p?: AlterObjectDependsStmt, isNode?: boolean): AlterObjectDependsStmt | { + AlterObjectDependsStmt: AlterObjectDependsStmt; + } { const _j = {} as AlterObjectDependsStmt; _o.set(_j, "objectType", _p?.objectType); _o.set(_j, "relation", _p?.relation); _o.set(_j, "object", _p?.object); _o.set(_j, "extname", _p?.extname); _o.set(_j, "remove", _p?.remove); + if (isNode) { + return { + AlterObjectDependsStmt: _j + }; + } return _j; }, - alterObjectSchemaStmt(_p?: AlterObjectSchemaStmt): AlterObjectSchemaStmt { + alterObjectSchemaStmt(_p?: AlterObjectSchemaStmt, isNode?: boolean): AlterObjectSchemaStmt | { + AlterObjectSchemaStmt: AlterObjectSchemaStmt; + } { const _j = {} as AlterObjectSchemaStmt; _o.set(_j, "objectType", _p?.objectType); _o.set(_j, "relation", _p?.relation); _o.set(_j, "object", _p?.object); _o.set(_j, "newschema", _p?.newschema); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + AlterObjectSchemaStmt: _j + }; + } return _j; }, - alterOwnerStmt(_p?: AlterOwnerStmt): AlterOwnerStmt { + alterOwnerStmt(_p?: AlterOwnerStmt, isNode?: boolean): AlterOwnerStmt | { + AlterOwnerStmt: AlterOwnerStmt; + } { const _j = {} as AlterOwnerStmt; _o.set(_j, "objectType", _p?.objectType); _o.set(_j, "relation", _p?.relation); _o.set(_j, "object", _p?.object); _o.set(_j, "newowner", _p?.newowner); + if (isNode) { + return { + AlterOwnerStmt: _j + }; + } return _j; }, - alterOperatorStmt(_p?: AlterOperatorStmt): AlterOperatorStmt { + alterOperatorStmt(_p?: AlterOperatorStmt, isNode?: boolean): AlterOperatorStmt | { + AlterOperatorStmt: AlterOperatorStmt; + } { const _j = {} as AlterOperatorStmt; _o.set(_j, "opername", _p?.opername); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterOperatorStmt: _j + }; + } return _j; }, - alterTypeStmt(_p?: AlterTypeStmt): AlterTypeStmt { + alterTypeStmt(_p?: AlterTypeStmt, isNode?: boolean): AlterTypeStmt | { + AlterTypeStmt: AlterTypeStmt; + } { const _j = {} as AlterTypeStmt; _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterTypeStmt: _j + }; + } return _j; }, - ruleStmt(_p?: RuleStmt): RuleStmt { + ruleStmt(_p?: RuleStmt, isNode?: boolean): RuleStmt | { + RuleStmt: RuleStmt; + } { const _j = {} as RuleStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "rulename", _p?.rulename); @@ -2168,25 +3745,53 @@ export default { _o.set(_j, "instead", _p?.instead); _o.set(_j, "actions", _p?.actions); _o.set(_j, "replace", _p?.replace); + if (isNode) { + return { + RuleStmt: _j + }; + } return _j; }, - notifyStmt(_p?: NotifyStmt): NotifyStmt { + notifyStmt(_p?: NotifyStmt, isNode?: boolean): NotifyStmt | { + NotifyStmt: NotifyStmt; + } { const _j = {} as NotifyStmt; _o.set(_j, "conditionname", _p?.conditionname); _o.set(_j, "payload", _p?.payload); + if (isNode) { + return { + NotifyStmt: _j + }; + } return _j; }, - listenStmt(_p?: ListenStmt): ListenStmt { + listenStmt(_p?: ListenStmt, isNode?: boolean): ListenStmt | { + ListenStmt: ListenStmt; + } { const _j = {} as ListenStmt; _o.set(_j, "conditionname", _p?.conditionname); + if (isNode) { + return { + ListenStmt: _j + }; + } return _j; }, - unlistenStmt(_p?: UnlistenStmt): UnlistenStmt { + unlistenStmt(_p?: UnlistenStmt, isNode?: boolean): UnlistenStmt | { + UnlistenStmt: UnlistenStmt; + } { const _j = {} as UnlistenStmt; _o.set(_j, "conditionname", _p?.conditionname); + if (isNode) { + return { + UnlistenStmt: _j + }; + } return _j; }, - transactionStmt(_p?: TransactionStmt): TransactionStmt { + transactionStmt(_p?: TransactionStmt, isNode?: boolean): TransactionStmt | { + TransactionStmt: TransactionStmt; + } { const _j = {} as TransactionStmt; _o.set(_j, "kind", _p?.kind); _o.set(_j, "options", _p?.options); @@ -2194,27 +3799,55 @@ export default { _o.set(_j, "gid", _p?.gid); _o.set(_j, "chain", _p?.chain); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + TransactionStmt: _j + }; + } return _j; }, - compositeTypeStmt(_p?: CompositeTypeStmt): CompositeTypeStmt { + compositeTypeStmt(_p?: CompositeTypeStmt, isNode?: boolean): CompositeTypeStmt | { + CompositeTypeStmt: CompositeTypeStmt; + } { const _j = {} as CompositeTypeStmt; _o.set(_j, "typevar", _p?.typevar); _o.set(_j, "coldeflist", _p?.coldeflist); + if (isNode) { + return { + CompositeTypeStmt: _j + }; + } return _j; }, - createEnumStmt(_p?: CreateEnumStmt): CreateEnumStmt { + createEnumStmt(_p?: CreateEnumStmt, isNode?: boolean): CreateEnumStmt | { + CreateEnumStmt: CreateEnumStmt; + } { const _j = {} as CreateEnumStmt; _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "vals", _p?.vals); + if (isNode) { + return { + CreateEnumStmt: _j + }; + } return _j; }, - createRangeStmt(_p?: CreateRangeStmt): CreateRangeStmt { + createRangeStmt(_p?: CreateRangeStmt, isNode?: boolean): CreateRangeStmt | { + CreateRangeStmt: CreateRangeStmt; + } { const _j = {} as CreateRangeStmt; _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "params", _p?.params); + if (isNode) { + return { + CreateRangeStmt: _j + }; + } return _j; }, - alterEnumStmt(_p?: AlterEnumStmt): AlterEnumStmt { + alterEnumStmt(_p?: AlterEnumStmt, isNode?: boolean): AlterEnumStmt | { + AlterEnumStmt: AlterEnumStmt; + } { const _j = {} as AlterEnumStmt; _o.set(_j, "typeName", _p?.typeName); _o.set(_j, "oldVal", _p?.oldVal); @@ -2222,9 +3855,16 @@ export default { _o.set(_j, "newValNeighbor", _p?.newValNeighbor); _o.set(_j, "newValIsAfter", _p?.newValIsAfter); _o.set(_j, "skipIfNewValExists", _p?.skipIfNewValExists); + if (isNode) { + return { + AlterEnumStmt: _j + }; + } return _j; }, - viewStmt(_p?: ViewStmt): ViewStmt { + viewStmt(_p?: ViewStmt, isNode?: boolean): ViewStmt | { + ViewStmt: ViewStmt; + } { const _j = {} as ViewStmt; _o.set(_j, "view", _p?.view); _o.set(_j, "aliases", _p?.aliases); @@ -2232,187 +3872,383 @@ export default { _o.set(_j, "replace", _p?.replace); _o.set(_j, "options", _p?.options); _o.set(_j, "withCheckOption", _p?.withCheckOption); + if (isNode) { + return { + ViewStmt: _j + }; + } return _j; }, - loadStmt(_p?: LoadStmt): LoadStmt { + loadStmt(_p?: LoadStmt, isNode?: boolean): LoadStmt | { + LoadStmt: LoadStmt; + } { const _j = {} as LoadStmt; _o.set(_j, "filename", _p?.filename); + if (isNode) { + return { + LoadStmt: _j + }; + } return _j; }, - createdbStmt(_p?: CreatedbStmt): CreatedbStmt { + createdbStmt(_p?: CreatedbStmt, isNode?: boolean): CreatedbStmt | { + CreatedbStmt: CreatedbStmt; + } { const _j = {} as CreatedbStmt; _o.set(_j, "dbname", _p?.dbname); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreatedbStmt: _j + }; + } return _j; }, - alterDatabaseStmt(_p?: AlterDatabaseStmt): AlterDatabaseStmt { + alterDatabaseStmt(_p?: AlterDatabaseStmt, isNode?: boolean): AlterDatabaseStmt | { + AlterDatabaseStmt: AlterDatabaseStmt; + } { const _j = {} as AlterDatabaseStmt; _o.set(_j, "dbname", _p?.dbname); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterDatabaseStmt: _j + }; + } return _j; }, - alterDatabaseRefreshCollStmt(_p?: AlterDatabaseRefreshCollStmt): AlterDatabaseRefreshCollStmt { + alterDatabaseRefreshCollStmt(_p?: AlterDatabaseRefreshCollStmt, isNode?: boolean): AlterDatabaseRefreshCollStmt | { + AlterDatabaseRefreshCollStmt: AlterDatabaseRefreshCollStmt; + } { const _j = {} as AlterDatabaseRefreshCollStmt; _o.set(_j, "dbname", _p?.dbname); + if (isNode) { + return { + AlterDatabaseRefreshCollStmt: _j + }; + } return _j; }, - alterDatabaseSetStmt(_p?: AlterDatabaseSetStmt): AlterDatabaseSetStmt { + alterDatabaseSetStmt(_p?: AlterDatabaseSetStmt, isNode?: boolean): AlterDatabaseSetStmt | { + AlterDatabaseSetStmt: AlterDatabaseSetStmt; + } { const _j = {} as AlterDatabaseSetStmt; _o.set(_j, "dbname", _p?.dbname); _o.set(_j, "setstmt", _p?.setstmt); + if (isNode) { + return { + AlterDatabaseSetStmt: _j + }; + } return _j; }, - dropdbStmt(_p?: DropdbStmt): DropdbStmt { + dropdbStmt(_p?: DropdbStmt, isNode?: boolean): DropdbStmt | { + DropdbStmt: DropdbStmt; + } { const _j = {} as DropdbStmt; _o.set(_j, "dbname", _p?.dbname); _o.set(_j, "missing_ok", _p?.missing_ok); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + DropdbStmt: _j + }; + } return _j; }, - alterSystemStmt(_p?: AlterSystemStmt): AlterSystemStmt { + alterSystemStmt(_p?: AlterSystemStmt, isNode?: boolean): AlterSystemStmt | { + AlterSystemStmt: AlterSystemStmt; + } { const _j = {} as AlterSystemStmt; _o.set(_j, "setstmt", _p?.setstmt); + if (isNode) { + return { + AlterSystemStmt: _j + }; + } return _j; }, - clusterStmt(_p?: ClusterStmt): ClusterStmt { + clusterStmt(_p?: ClusterStmt, isNode?: boolean): ClusterStmt | { + ClusterStmt: ClusterStmt; + } { const _j = {} as ClusterStmt; _o.set(_j, "relation", _p?.relation); _o.set(_j, "indexname", _p?.indexname); _o.set(_j, "params", _p?.params); + if (isNode) { + return { + ClusterStmt: _j + }; + } return _j; }, - vacuumStmt(_p?: VacuumStmt): VacuumStmt { + vacuumStmt(_p?: VacuumStmt, isNode?: boolean): VacuumStmt | { + VacuumStmt: VacuumStmt; + } { const _j = {} as VacuumStmt; _o.set(_j, "options", _p?.options); _o.set(_j, "rels", _p?.rels); _o.set(_j, "is_vacuumcmd", _p?.is_vacuumcmd); + if (isNode) { + return { + VacuumStmt: _j + }; + } return _j; }, - vacuumRelation(_p?: VacuumRelation): VacuumRelation { + vacuumRelation(_p?: VacuumRelation, isNode?: boolean): VacuumRelation | { + VacuumRelation: VacuumRelation; + } { const _j = {} as VacuumRelation; _o.set(_j, "relation", _p?.relation); _o.set(_j, "oid", _p?.oid); _o.set(_j, "va_cols", _p?.va_cols); + if (isNode) { + return { + VacuumRelation: _j + }; + } return _j; }, - explainStmt(_p?: ExplainStmt): ExplainStmt { + explainStmt(_p?: ExplainStmt, isNode?: boolean): ExplainStmt | { + ExplainStmt: ExplainStmt; + } { const _j = {} as ExplainStmt; _o.set(_j, "query", _p?.query); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + ExplainStmt: _j + }; + } return _j; }, - createTableAsStmt(_p?: CreateTableAsStmt): CreateTableAsStmt { + createTableAsStmt(_p?: CreateTableAsStmt, isNode?: boolean): CreateTableAsStmt | { + CreateTableAsStmt: CreateTableAsStmt; + } { const _j = {} as CreateTableAsStmt; _o.set(_j, "query", _p?.query); _o.set(_j, "into", _p?.into); _o.set(_j, "objtype", _p?.objtype); _o.set(_j, "is_select_into", _p?.is_select_into); _o.set(_j, "if_not_exists", _p?.if_not_exists); + if (isNode) { + return { + CreateTableAsStmt: _j + }; + } return _j; }, - refreshMatViewStmt(_p?: RefreshMatViewStmt): RefreshMatViewStmt { + refreshMatViewStmt(_p?: RefreshMatViewStmt, isNode?: boolean): RefreshMatViewStmt | { + RefreshMatViewStmt: RefreshMatViewStmt; + } { const _j = {} as RefreshMatViewStmt; _o.set(_j, "concurrent", _p?.concurrent); _o.set(_j, "skipData", _p?.skipData); _o.set(_j, "relation", _p?.relation); + if (isNode) { + return { + RefreshMatViewStmt: _j + }; + } return _j; }, - checkPointStmt(_p?: CheckPointStmt): CheckPointStmt { + checkPointStmt(_p?: CheckPointStmt, isNode?: boolean): CheckPointStmt | { + CheckPointStmt: CheckPointStmt; + } { const _j = {} as CheckPointStmt; + if (isNode) { + return { + CheckPointStmt: _j + }; + } return _j; }, - discardStmt(_p?: DiscardStmt): DiscardStmt { + discardStmt(_p?: DiscardStmt, isNode?: boolean): DiscardStmt | { + DiscardStmt: DiscardStmt; + } { const _j = {} as DiscardStmt; _o.set(_j, "target", _p?.target); + if (isNode) { + return { + DiscardStmt: _j + }; + } return _j; }, - lockStmt(_p?: LockStmt): LockStmt { + lockStmt(_p?: LockStmt, isNode?: boolean): LockStmt | { + LockStmt: LockStmt; + } { const _j = {} as LockStmt; _o.set(_j, "relations", _p?.relations); _o.set(_j, "mode", _p?.mode); _o.set(_j, "nowait", _p?.nowait); + if (isNode) { + return { + LockStmt: _j + }; + } return _j; }, - constraintsSetStmt(_p?: ConstraintsSetStmt): ConstraintsSetStmt { + constraintsSetStmt(_p?: ConstraintsSetStmt, isNode?: boolean): ConstraintsSetStmt | { + ConstraintsSetStmt: ConstraintsSetStmt; + } { const _j = {} as ConstraintsSetStmt; _o.set(_j, "constraints", _p?.constraints); _o.set(_j, "deferred", _p?.deferred); + if (isNode) { + return { + ConstraintsSetStmt: _j + }; + } return _j; }, - reindexStmt(_p?: ReindexStmt): ReindexStmt { + reindexStmt(_p?: ReindexStmt, isNode?: boolean): ReindexStmt | { + ReindexStmt: ReindexStmt; + } { const _j = {} as ReindexStmt; _o.set(_j, "kind", _p?.kind); _o.set(_j, "relation", _p?.relation); _o.set(_j, "name", _p?.name); _o.set(_j, "params", _p?.params); + if (isNode) { + return { + ReindexStmt: _j + }; + } return _j; }, - createConversionStmt(_p?: CreateConversionStmt): CreateConversionStmt { + createConversionStmt(_p?: CreateConversionStmt, isNode?: boolean): CreateConversionStmt | { + CreateConversionStmt: CreateConversionStmt; + } { const _j = {} as CreateConversionStmt; _o.set(_j, "conversion_name", _p?.conversion_name); _o.set(_j, "for_encoding_name", _p?.for_encoding_name); _o.set(_j, "to_encoding_name", _p?.to_encoding_name); _o.set(_j, "func_name", _p?.func_name); _o.set(_j, "def", _p?.def); + if (isNode) { + return { + CreateConversionStmt: _j + }; + } return _j; }, - createCastStmt(_p?: CreateCastStmt): CreateCastStmt { + createCastStmt(_p?: CreateCastStmt, isNode?: boolean): CreateCastStmt | { + CreateCastStmt: CreateCastStmt; + } { const _j = {} as CreateCastStmt; _o.set(_j, "sourcetype", _p?.sourcetype); _o.set(_j, "targettype", _p?.targettype); _o.set(_j, "func", _p?.func); _o.set(_j, "context", _p?.context); _o.set(_j, "inout", _p?.inout); + if (isNode) { + return { + CreateCastStmt: _j + }; + } return _j; }, - createTransformStmt(_p?: CreateTransformStmt): CreateTransformStmt { + createTransformStmt(_p?: CreateTransformStmt, isNode?: boolean): CreateTransformStmt | { + CreateTransformStmt: CreateTransformStmt; + } { const _j = {} as CreateTransformStmt; _o.set(_j, "replace", _p?.replace); _o.set(_j, "type_name", _p?.type_name); _o.set(_j, "lang", _p?.lang); _o.set(_j, "fromsql", _p?.fromsql); _o.set(_j, "tosql", _p?.tosql); + if (isNode) { + return { + CreateTransformStmt: _j + }; + } return _j; }, - prepareStmt(_p?: PrepareStmt): PrepareStmt { + prepareStmt(_p?: PrepareStmt, isNode?: boolean): PrepareStmt | { + PrepareStmt: PrepareStmt; + } { const _j = {} as PrepareStmt; _o.set(_j, "name", _p?.name); _o.set(_j, "argtypes", _p?.argtypes); _o.set(_j, "query", _p?.query); + if (isNode) { + return { + PrepareStmt: _j + }; + } return _j; }, - executeStmt(_p?: ExecuteStmt): ExecuteStmt { + executeStmt(_p?: ExecuteStmt, isNode?: boolean): ExecuteStmt | { + ExecuteStmt: ExecuteStmt; + } { const _j = {} as ExecuteStmt; _o.set(_j, "name", _p?.name); _o.set(_j, "params", _p?.params); + if (isNode) { + return { + ExecuteStmt: _j + }; + } return _j; }, - deallocateStmt(_p?: DeallocateStmt): DeallocateStmt { + deallocateStmt(_p?: DeallocateStmt, isNode?: boolean): DeallocateStmt | { + DeallocateStmt: DeallocateStmt; + } { const _j = {} as DeallocateStmt; _o.set(_j, "name", _p?.name); _o.set(_j, "isall", _p?.isall); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + DeallocateStmt: _j + }; + } return _j; }, - dropOwnedStmt(_p?: DropOwnedStmt): DropOwnedStmt { + dropOwnedStmt(_p?: DropOwnedStmt, isNode?: boolean): DropOwnedStmt | { + DropOwnedStmt: DropOwnedStmt; + } { const _j = {} as DropOwnedStmt; _o.set(_j, "roles", _p?.roles); _o.set(_j, "behavior", _p?.behavior); + if (isNode) { + return { + DropOwnedStmt: _j + }; + } return _j; }, - reassignOwnedStmt(_p?: ReassignOwnedStmt): ReassignOwnedStmt { + reassignOwnedStmt(_p?: ReassignOwnedStmt, isNode?: boolean): ReassignOwnedStmt | { + ReassignOwnedStmt: ReassignOwnedStmt; + } { const _j = {} as ReassignOwnedStmt; _o.set(_j, "roles", _p?.roles); _o.set(_j, "newrole", _p?.newrole); + if (isNode) { + return { + ReassignOwnedStmt: _j + }; + } return _j; }, - altertsDictionaryStmt(_p?: AlterTSDictionaryStmt): AlterTSDictionaryStmt { + altertsDictionaryStmt(_p?: AlterTSDictionaryStmt, isNode?: boolean): AlterTSDictionaryStmt | { + AlterTSDictionaryStmt: AlterTSDictionaryStmt; + } { const _j = {} as AlterTSDictionaryStmt; _o.set(_j, "dictname", _p?.dictname); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterTSDictionaryStmt: _j + }; + } return _j; }, - altertsConfigurationStmt(_p?: AlterTSConfigurationStmt): AlterTSConfigurationStmt { + altertsConfigurationStmt(_p?: AlterTSConfigurationStmt, isNode?: boolean): AlterTSConfigurationStmt | { + AlterTSConfigurationStmt: AlterTSConfigurationStmt; + } { const _j = {} as AlterTSConfigurationStmt; _o.set(_j, "kind", _p?.kind); _o.set(_j, "cfgname", _p?.cfgname); @@ -2421,70 +4257,131 @@ export default { _o.set(_j, "override", _p?.override); _o.set(_j, "replace", _p?.replace); _o.set(_j, "missing_ok", _p?.missing_ok); + if (isNode) { + return { + AlterTSConfigurationStmt: _j + }; + } return _j; }, - publicationTable(_p?: PublicationTable): PublicationTable { + publicationTable(_p?: PublicationTable, isNode?: boolean): PublicationTable | { + PublicationTable: PublicationTable; + } { const _j = {} as PublicationTable; _o.set(_j, "relation", _p?.relation); _o.set(_j, "whereClause", _p?.whereClause); _o.set(_j, "columns", _p?.columns); + if (isNode) { + return { + PublicationTable: _j + }; + } return _j; }, - publicationObjSpec(_p?: PublicationObjSpec): PublicationObjSpec { + publicationObjSpec(_p?: PublicationObjSpec, isNode?: boolean): PublicationObjSpec | { + PublicationObjSpec: PublicationObjSpec; + } { const _j = {} as PublicationObjSpec; _o.set(_j, "pubobjtype", _p?.pubobjtype); _o.set(_j, "name", _p?.name); _o.set(_j, "pubtable", _p?.pubtable); _o.set(_j, "location", _p?.location); + if (isNode) { + return { + PublicationObjSpec: _j + }; + } return _j; }, - createPublicationStmt(_p?: CreatePublicationStmt): CreatePublicationStmt { + createPublicationStmt(_p?: CreatePublicationStmt, isNode?: boolean): CreatePublicationStmt | { + CreatePublicationStmt: CreatePublicationStmt; + } { const _j = {} as CreatePublicationStmt; _o.set(_j, "pubname", _p?.pubname); _o.set(_j, "options", _p?.options); _o.set(_j, "pubobjects", _p?.pubobjects); _o.set(_j, "for_all_tables", _p?.for_all_tables); + if (isNode) { + return { + CreatePublicationStmt: _j + }; + } return _j; }, - alterPublicationStmt(_p?: AlterPublicationStmt): AlterPublicationStmt { + alterPublicationStmt(_p?: AlterPublicationStmt, isNode?: boolean): AlterPublicationStmt | { + AlterPublicationStmt: AlterPublicationStmt; + } { const _j = {} as AlterPublicationStmt; _o.set(_j, "pubname", _p?.pubname); _o.set(_j, "options", _p?.options); _o.set(_j, "pubobjects", _p?.pubobjects); _o.set(_j, "for_all_tables", _p?.for_all_tables); _o.set(_j, "action", _p?.action); + if (isNode) { + return { + AlterPublicationStmt: _j + }; + } return _j; }, - createSubscriptionStmt(_p?: CreateSubscriptionStmt): CreateSubscriptionStmt { + createSubscriptionStmt(_p?: CreateSubscriptionStmt, isNode?: boolean): CreateSubscriptionStmt | { + CreateSubscriptionStmt: CreateSubscriptionStmt; + } { const _j = {} as CreateSubscriptionStmt; _o.set(_j, "subname", _p?.subname); _o.set(_j, "conninfo", _p?.conninfo); _o.set(_j, "publication", _p?.publication); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + CreateSubscriptionStmt: _j + }; + } return _j; }, - alterSubscriptionStmt(_p?: AlterSubscriptionStmt): AlterSubscriptionStmt { + alterSubscriptionStmt(_p?: AlterSubscriptionStmt, isNode?: boolean): AlterSubscriptionStmt | { + AlterSubscriptionStmt: AlterSubscriptionStmt; + } { const _j = {} as AlterSubscriptionStmt; _o.set(_j, "kind", _p?.kind); _o.set(_j, "subname", _p?.subname); _o.set(_j, "conninfo", _p?.conninfo); _o.set(_j, "publication", _p?.publication); _o.set(_j, "options", _p?.options); + if (isNode) { + return { + AlterSubscriptionStmt: _j + }; + } return _j; }, - dropSubscriptionStmt(_p?: DropSubscriptionStmt): DropSubscriptionStmt { + dropSubscriptionStmt(_p?: DropSubscriptionStmt, isNode?: boolean): DropSubscriptionStmt | { + DropSubscriptionStmt: DropSubscriptionStmt; + } { const _j = {} as DropSubscriptionStmt; _o.set(_j, "subname", _p?.subname); _o.set(_j, "missing_ok", _p?.missing_ok); _o.set(_j, "behavior", _p?.behavior); + if (isNode) { + return { + DropSubscriptionStmt: _j + }; + } return _j; }, - scanToken(_p?: ScanToken): ScanToken { + scanToken(_p?: ScanToken, isNode?: boolean): ScanToken | { + ScanToken: ScanToken; + } { const _j = {} as ScanToken; _o.set(_j, "start", _p?.start); _o.set(_j, "end", _p?.end); _o.set(_j, "token", _p?.token); _o.set(_j, "keywordKind", _p?.keywordKind); + if (isNode) { + return { + ScanToken: _j + }; + } return _j; } }; \ No newline at end of file diff --git a/packages/utils/src/index.ts b/packages/utils/src/index.ts index f6db065e..642c4030 100644 --- a/packages/utils/src/index.ts +++ b/packages/utils/src/index.ts @@ -1,4 +1,3 @@ -export * from './wrapped'; export * from './utils'; import asts from './asts'; export default asts; \ No newline at end of file diff --git a/packages/utils/src/wrapped.ts b/packages/utils/src/wrapped.ts deleted file mode 100644 index 8301994f..00000000 --- a/packages/utils/src/wrapped.ts +++ /dev/null @@ -1,1943 +0,0 @@ -/** -* This file was automatically generated by pg-proto-parser@1.24.0. -* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file, -* and run the pg-proto-parser generate command to regenerate this file. -*/ -import { QuerySource, SortByDir, SortByNulls, SetQuantifier, A_Expr_Kind, RoleSpecType, TableLikeOption, DefElemAction, PartitionStrategy, PartitionRangeDatumKind, RTEKind, WCOKind, GroupingSetKind, CTEMaterialize, JsonQuotes, JsonTableColumnType, SetOperation, ObjectType, DropBehavior, AlterTableType, GrantTargetType, VariableSetKind, ConstrType, ImportForeignSchemaType, RoleStmtType, FetchDirection, FunctionParameterMode, TransactionStmtKind, ViewCheckOption, DiscardMode, ReindexObjectType, AlterTSConfigType, PublicationObjSpecType, AlterPublicationAction, AlterSubscriptionType, OverridingKind, OnCommitAction, TableFuncType, ParamKind, CoercionContext, CoercionForm, BoolExprType, SubLinkType, RowCompareType, MinMaxOp, SQLValueFunctionOp, XmlExprOp, XmlOptionType, JsonEncoding, JsonFormatType, JsonConstructorType, JsonValueType, JsonWrapper, JsonBehaviorType, JsonExprOp, NullTestType, BoolTestType, MergeMatchKind, CmdType, JoinType, AggStrategy, AggSplit, SetOpCmd, SetOpStrategy, OnConflictAction, LimitOption, LockClauseStrength, LockWaitPolicy, LockTupleMode, KeywordKind, Token } from "@pgsql/types"; -export type Node = ParseResult | ScanResult | Integer | Float | Boolean | String | BitString | List | OidList | IntList | A_Const | Alias | RangeVar | TableFunc | IntoClause | Var | Param | Aggref | GroupingFunc | WindowFunc | WindowFuncRunCondition | MergeSupportFunc | SubscriptingRef | FuncExpr | NamedArgExpr | OpExpr | DistinctExpr | NullIfExpr | ScalarArrayOpExpr | BoolExpr | SubLink | SubPlan | AlternativeSubPlan | FieldSelect | FieldStore | RelabelType | CoerceViaIO | ArrayCoerceExpr | ConvertRowtypeExpr | CollateExpr | CaseExpr | CaseWhen | CaseTestExpr | ArrayExpr | RowExpr | RowCompareExpr | CoalesceExpr | MinMaxExpr | SQLValueFunction | XmlExpr | JsonFormat | JsonReturning | JsonValueExpr | JsonConstructorExpr | JsonIsPredicate | JsonBehavior | JsonExpr | JsonTablePath | JsonTablePathScan | JsonTableSiblingJoin | NullTest | BooleanTest | MergeAction | CoerceToDomain | CoerceToDomainValue | SetToDefault | CurrentOfExpr | NextValueExpr | InferenceElem | TargetEntry | RangeTblRef | JoinExpr | FromExpr | OnConflictExpr | Query | TypeName | ColumnRef | ParamRef | A_Expr | TypeCast | CollateClause | RoleSpec | FuncCall | A_Star | A_Indices | A_Indirection | A_ArrayExpr | ResTarget | MultiAssignRef | SortBy | WindowDef | RangeSubselect | RangeFunction | RangeTableFunc | RangeTableFuncCol | RangeTableSample | ColumnDef | TableLikeClause | IndexElem | DefElem | LockingClause | XmlSerialize | PartitionElem | PartitionSpec | PartitionBoundSpec | PartitionRangeDatum | SinglePartitionSpec | PartitionCmd | RangeTblEntry | RTEPermissionInfo | RangeTblFunction | TableSampleClause | WithCheckOption | SortGroupClause | GroupingSet | WindowClause | RowMarkClause | WithClause | InferClause | OnConflictClause | CTESearchClause | CTECycleClause | CommonTableExpr | MergeWhenClause | TriggerTransition | JsonOutput | JsonArgument | JsonFuncExpr | JsonTablePathSpec | JsonTable | JsonTableColumn | JsonKeyValue | JsonParseExpr | JsonScalarExpr | JsonSerializeExpr | JsonObjectConstructor | JsonArrayConstructor | JsonArrayQueryConstructor | JsonAggConstructor | JsonObjectAgg | JsonArrayAgg | RawStmt | InsertStmt | DeleteStmt | UpdateStmt | MergeStmt | SelectStmt | SetOperationStmt | ReturnStmt | PLAssignStmt | CreateSchemaStmt | AlterTableStmt | ReplicaIdentityStmt | AlterTableCmd | AlterCollationStmt | AlterDomainStmt | GrantStmt | ObjectWithArgs | AccessPriv | GrantRoleStmt | AlterDefaultPrivilegesStmt | CopyStmt | VariableSetStmt | VariableShowStmt | CreateStmt | Constraint | CreateTableSpaceStmt | DropTableSpaceStmt | AlterTableSpaceOptionsStmt | AlterTableMoveAllStmt | CreateExtensionStmt | AlterExtensionStmt | AlterExtensionContentsStmt | CreateFdwStmt | AlterFdwStmt | CreateForeignServerStmt | AlterForeignServerStmt | CreateForeignTableStmt | CreateUserMappingStmt | AlterUserMappingStmt | DropUserMappingStmt | ImportForeignSchemaStmt | CreatePolicyStmt | AlterPolicyStmt | CreateAmStmt | CreateTrigStmt | CreateEventTrigStmt | AlterEventTrigStmt | CreatePLangStmt | CreateRoleStmt | AlterRoleStmt | AlterRoleSetStmt | DropRoleStmt | CreateSeqStmt | AlterSeqStmt | DefineStmt | CreateDomainStmt | CreateOpClassStmt | CreateOpClassItem | CreateOpFamilyStmt | AlterOpFamilyStmt | DropStmt | TruncateStmt | CommentStmt | SecLabelStmt | DeclareCursorStmt | ClosePortalStmt | FetchStmt | IndexStmt | CreateStatsStmt | StatsElem | AlterStatsStmt | CreateFunctionStmt | FunctionParameter | AlterFunctionStmt | DoStmt | InlineCodeBlock | CallStmt | CallContext | RenameStmt | AlterObjectDependsStmt | AlterObjectSchemaStmt | AlterOwnerStmt | AlterOperatorStmt | AlterTypeStmt | RuleStmt | NotifyStmt | ListenStmt | UnlistenStmt | TransactionStmt | CompositeTypeStmt | CreateEnumStmt | CreateRangeStmt | AlterEnumStmt | ViewStmt | LoadStmt | CreatedbStmt | AlterDatabaseStmt | AlterDatabaseRefreshCollStmt | AlterDatabaseSetStmt | DropdbStmt | AlterSystemStmt | ClusterStmt | VacuumStmt | VacuumRelation | ExplainStmt | CreateTableAsStmt | RefreshMatViewStmt | CheckPointStmt | DiscardStmt | LockStmt | ConstraintsSetStmt | ReindexStmt | CreateConversionStmt | CreateCastStmt | CreateTransformStmt | PrepareStmt | ExecuteStmt | DeallocateStmt | DropOwnedStmt | ReassignOwnedStmt | AlterTSDictionaryStmt | AlterTSConfigurationStmt | PublicationTable | PublicationObjSpec | CreatePublicationStmt | AlterPublicationStmt | CreateSubscriptionStmt | AlterSubscriptionStmt | DropSubscriptionStmt | ScanToken; -export interface ParseResult { - version?: number; - stmts?: RawStmt[]; -} -export interface ScanResult { - version?: number; - tokens?: ScanToken[]; -} -export interface Integer { - ival?: number; -} -export interface Float { - fval?: string; -} -export interface Boolean { - boolval?: boolean; -} -export interface String { - sval?: string; -} -export interface BitString { - bsval?: string; -} -export interface List { - items?: Node[]; -} -export interface OidList { - items?: Node[]; -} -export interface IntList { - items?: Node[]; -} -export interface A_Const { - ival?: Integer; - fval?: Float; - boolval?: Boolean; - sval?: String; - bsval?: BitString; - isnull?: boolean; - location?: number; -} -export interface Alias { - aliasname?: string; - colnames?: Node[]; -} -export interface RangeVar { - catalogname?: string; - schemaname?: string; - relname?: string; - inh?: boolean; - relpersistence?: string; - alias?: Alias; - location?: number; -} -export interface TableFunc { - functype?: TableFuncType; - ns_uris?: Node[]; - ns_names?: Node[]; - docexpr?: Node; - rowexpr?: Node; - colnames?: Node[]; - coltypes?: Node[]; - coltypmods?: Node[]; - colcollations?: Node[]; - colexprs?: Node[]; - coldefexprs?: Node[]; - colvalexprs?: Node[]; - passingvalexprs?: Node[]; - notnulls?: bigint[]; - plan?: Node; - ordinalitycol?: number; - location?: number; -} -export interface IntoClause { - rel?: RangeVar; - colNames?: Node[]; - accessMethod?: string; - options?: Node[]; - onCommit?: OnCommitAction; - tableSpaceName?: string; - viewQuery?: Node; - skipData?: boolean; -} -export interface Var { - xpr?: Node; - varno?: number; - varattno?: number; - vartype?: number; - vartypmod?: number; - varcollid?: number; - varnullingrels?: bigint[]; - varlevelsup?: number; - location?: number; -} -export interface Param { - xpr?: Node; - paramkind?: ParamKind; - paramid?: number; - paramtype?: number; - paramtypmod?: number; - paramcollid?: number; - location?: number; -} -export interface Aggref { - xpr?: Node; - aggfnoid?: number; - aggtype?: number; - aggcollid?: number; - inputcollid?: number; - aggargtypes?: Node[]; - aggdirectargs?: Node[]; - args?: Node[]; - aggorder?: Node[]; - aggdistinct?: Node[]; - aggfilter?: Node; - aggstar?: boolean; - aggvariadic?: boolean; - aggkind?: string; - agglevelsup?: number; - aggsplit?: AggSplit; - aggno?: number; - aggtransno?: number; - location?: number; -} -export interface GroupingFunc { - xpr?: Node; - args?: Node[]; - refs?: Node[]; - agglevelsup?: number; - location?: number; -} -export interface WindowFunc { - xpr?: Node; - winfnoid?: number; - wintype?: number; - wincollid?: number; - inputcollid?: number; - args?: Node[]; - aggfilter?: Node; - runCondition?: Node[]; - winref?: number; - winstar?: boolean; - winagg?: boolean; - location?: number; -} -export interface WindowFuncRunCondition { - xpr?: Node; - opno?: number; - inputcollid?: number; - wfunc_left?: boolean; - arg?: Node; -} -export interface MergeSupportFunc { - xpr?: Node; - msftype?: number; - msfcollid?: number; - location?: number; -} -export interface SubscriptingRef { - xpr?: Node; - refcontainertype?: number; - refelemtype?: number; - refrestype?: number; - reftypmod?: number; - refcollid?: number; - refupperindexpr?: Node[]; - reflowerindexpr?: Node[]; - refexpr?: Node; - refassgnexpr?: Node; -} -export interface FuncExpr { - xpr?: Node; - funcid?: number; - funcresulttype?: number; - funcretset?: boolean; - funcvariadic?: boolean; - funcformat?: CoercionForm; - funccollid?: number; - inputcollid?: number; - args?: Node[]; - location?: number; -} -export interface NamedArgExpr { - xpr?: Node; - arg?: Node; - name?: string; - argnumber?: number; - location?: number; -} -export interface OpExpr { - xpr?: Node; - opno?: number; - opresulttype?: number; - opretset?: boolean; - opcollid?: number; - inputcollid?: number; - args?: Node[]; - location?: number; -} -export interface DistinctExpr { - xpr?: Node; - opno?: number; - opresulttype?: number; - opretset?: boolean; - opcollid?: number; - inputcollid?: number; - args?: Node[]; - location?: number; -} -export interface NullIfExpr { - xpr?: Node; - opno?: number; - opresulttype?: number; - opretset?: boolean; - opcollid?: number; - inputcollid?: number; - args?: Node[]; - location?: number; -} -export interface ScalarArrayOpExpr { - xpr?: Node; - opno?: number; - useOr?: boolean; - inputcollid?: number; - args?: Node[]; - location?: number; -} -export interface BoolExpr { - xpr?: Node; - boolop?: BoolExprType; - args?: Node[]; - location?: number; -} -export interface SubLink { - xpr?: Node; - subLinkType?: SubLinkType; - subLinkId?: number; - testexpr?: Node; - operName?: Node[]; - subselect?: Node; - location?: number; -} -export interface SubPlan { - xpr?: Node; - subLinkType?: SubLinkType; - testexpr?: Node; - paramIds?: Node[]; - plan_id?: number; - plan_name?: string; - firstColType?: number; - firstColTypmod?: number; - firstColCollation?: number; - useHashTable?: boolean; - unknownEqFalse?: boolean; - parallel_safe?: boolean; - setParam?: Node[]; - parParam?: Node[]; - args?: Node[]; - startup_cost?: number; - per_call_cost?: number; -} -export interface AlternativeSubPlan { - xpr?: Node; - subplans?: Node[]; -} -export interface FieldSelect { - xpr?: Node; - arg?: Node; - fieldnum?: number; - resulttype?: number; - resulttypmod?: number; - resultcollid?: number; -} -export interface FieldStore { - xpr?: Node; - arg?: Node; - newvals?: Node[]; - fieldnums?: Node[]; - resulttype?: number; -} -export interface RelabelType { - xpr?: Node; - arg?: Node; - resulttype?: number; - resulttypmod?: number; - resultcollid?: number; - relabelformat?: CoercionForm; - location?: number; -} -export interface CoerceViaIO { - xpr?: Node; - arg?: Node; - resulttype?: number; - resultcollid?: number; - coerceformat?: CoercionForm; - location?: number; -} -export interface ArrayCoerceExpr { - xpr?: Node; - arg?: Node; - elemexpr?: Node; - resulttype?: number; - resulttypmod?: number; - resultcollid?: number; - coerceformat?: CoercionForm; - location?: number; -} -export interface ConvertRowtypeExpr { - xpr?: Node; - arg?: Node; - resulttype?: number; - convertformat?: CoercionForm; - location?: number; -} -export interface CollateExpr { - xpr?: Node; - arg?: Node; - collOid?: number; - location?: number; -} -export interface CaseExpr { - xpr?: Node; - casetype?: number; - casecollid?: number; - arg?: Node; - args?: Node[]; - defresult?: Node; - location?: number; -} -export interface CaseWhen { - xpr?: Node; - expr?: Node; - result?: Node; - location?: number; -} -export interface CaseTestExpr { - xpr?: Node; - typeId?: number; - typeMod?: number; - collation?: number; -} -export interface ArrayExpr { - xpr?: Node; - array_typeid?: number; - array_collid?: number; - element_typeid?: number; - elements?: Node[]; - multidims?: boolean; - location?: number; -} -export interface RowExpr { - xpr?: Node; - args?: Node[]; - row_typeid?: number; - row_format?: CoercionForm; - colnames?: Node[]; - location?: number; -} -export interface RowCompareExpr { - xpr?: Node; - rctype?: RowCompareType; - opnos?: Node[]; - opfamilies?: Node[]; - inputcollids?: Node[]; - largs?: Node[]; - rargs?: Node[]; -} -export interface CoalesceExpr { - xpr?: Node; - coalescetype?: number; - coalescecollid?: number; - args?: Node[]; - location?: number; -} -export interface MinMaxExpr { - xpr?: Node; - minmaxtype?: number; - minmaxcollid?: number; - inputcollid?: number; - op?: MinMaxOp; - args?: Node[]; - location?: number; -} -export interface SQLValueFunction { - xpr?: Node; - op?: SQLValueFunctionOp; - type?: number; - typmod?: number; - location?: number; -} -export interface XmlExpr { - xpr?: Node; - op?: XmlExprOp; - name?: string; - named_args?: Node[]; - arg_names?: Node[]; - args?: Node[]; - xmloption?: XmlOptionType; - indent?: boolean; - type?: number; - typmod?: number; - location?: number; -} -export interface JsonFormat { - format_type?: JsonFormatType; - encoding?: JsonEncoding; - location?: number; -} -export interface JsonReturning { - format?: JsonFormat; - typid?: number; - typmod?: number; -} -export interface JsonValueExpr { - raw_expr?: Node; - formatted_expr?: Node; - format?: JsonFormat; -} -export interface JsonConstructorExpr { - xpr?: Node; - type?: JsonConstructorType; - args?: Node[]; - func?: Node; - coercion?: Node; - returning?: JsonReturning; - absent_on_null?: boolean; - unique?: boolean; - location?: number; -} -export interface JsonIsPredicate { - expr?: Node; - format?: JsonFormat; - item_type?: JsonValueType; - unique_keys?: boolean; - location?: number; -} -export interface JsonBehavior { - btype?: JsonBehaviorType; - expr?: Node; - coerce?: boolean; - location?: number; -} -export interface JsonExpr { - xpr?: Node; - op?: JsonExprOp; - column_name?: string; - formatted_expr?: Node; - format?: JsonFormat; - path_spec?: Node; - returning?: JsonReturning; - passing_names?: Node[]; - passing_values?: Node[]; - on_empty?: JsonBehavior; - on_error?: JsonBehavior; - use_io_coercion?: boolean; - use_json_coercion?: boolean; - wrapper?: JsonWrapper; - omit_quotes?: boolean; - collation?: number; - location?: number; -} -export interface JsonTablePath { - name?: string; -} -export interface JsonTablePathScan { - plan?: Node; - path?: JsonTablePath; - errorOnError?: boolean; - child?: Node; - colMin?: number; - colMax?: number; -} -export interface JsonTableSiblingJoin { - plan?: Node; - lplan?: Node; - rplan?: Node; -} -export interface NullTest { - xpr?: Node; - arg?: Node; - nulltesttype?: NullTestType; - argisrow?: boolean; - location?: number; -} -export interface BooleanTest { - xpr?: Node; - arg?: Node; - booltesttype?: BoolTestType; - location?: number; -} -export interface MergeAction { - matchKind?: MergeMatchKind; - commandType?: CmdType; - override?: OverridingKind; - qual?: Node; - targetList?: Node[]; - updateColnos?: Node[]; -} -export interface CoerceToDomain { - xpr?: Node; - arg?: Node; - resulttype?: number; - resulttypmod?: number; - resultcollid?: number; - coercionformat?: CoercionForm; - location?: number; -} -export interface CoerceToDomainValue { - xpr?: Node; - typeId?: number; - typeMod?: number; - collation?: number; - location?: number; -} -export interface SetToDefault { - xpr?: Node; - typeId?: number; - typeMod?: number; - collation?: number; - location?: number; -} -export interface CurrentOfExpr { - xpr?: Node; - cvarno?: number; - cursor_name?: string; - cursor_param?: number; -} -export interface NextValueExpr { - xpr?: Node; - seqid?: number; - typeId?: number; -} -export interface InferenceElem { - xpr?: Node; - expr?: Node; - infercollid?: number; - inferopclass?: number; -} -export interface TargetEntry { - xpr?: Node; - expr?: Node; - resno?: number; - resname?: string; - ressortgroupref?: number; - resorigtbl?: number; - resorigcol?: number; - resjunk?: boolean; -} -export interface RangeTblRef { - rtindex?: number; -} -export interface JoinExpr { - jointype?: JoinType; - isNatural?: boolean; - larg?: Node; - rarg?: Node; - usingClause?: Node[]; - join_using_alias?: Alias; - quals?: Node; - alias?: Alias; - rtindex?: number; -} -export interface FromExpr { - fromlist?: Node[]; - quals?: Node; -} -export interface OnConflictExpr { - action?: OnConflictAction; - arbiterElems?: Node[]; - arbiterWhere?: Node; - constraint?: number; - onConflictSet?: Node[]; - onConflictWhere?: Node; - exclRelIndex?: number; - exclRelTlist?: Node[]; -} -export interface Query { - commandType?: CmdType; - querySource?: QuerySource; - canSetTag?: boolean; - utilityStmt?: Node; - resultRelation?: number; - hasAggs?: boolean; - hasWindowFuncs?: boolean; - hasTargetSRFs?: boolean; - hasSubLinks?: boolean; - hasDistinctOn?: boolean; - hasRecursive?: boolean; - hasModifyingCTE?: boolean; - hasForUpdate?: boolean; - hasRowSecurity?: boolean; - isReturn?: boolean; - cteList?: Node[]; - rtable?: Node[]; - rteperminfos?: Node[]; - jointree?: FromExpr; - mergeActionList?: Node[]; - mergeTargetRelation?: number; - mergeJoinCondition?: Node; - targetList?: Node[]; - override?: OverridingKind; - onConflict?: OnConflictExpr; - returningList?: Node[]; - groupClause?: Node[]; - groupDistinct?: boolean; - groupingSets?: Node[]; - havingQual?: Node; - windowClause?: Node[]; - distinctClause?: Node[]; - sortClause?: Node[]; - limitOffset?: Node; - limitCount?: Node; - limitOption?: LimitOption; - rowMarks?: Node[]; - setOperations?: Node; - constraintDeps?: Node[]; - withCheckOptions?: Node[]; - stmt_location?: number; - stmt_len?: number; -} -export interface TypeName { - names?: Node[]; - typeOid?: number; - setof?: boolean; - pct_type?: boolean; - typmods?: Node[]; - typemod?: number; - arrayBounds?: Node[]; - location?: number; -} -export interface ColumnRef { - fields?: Node[]; - location?: number; -} -export interface ParamRef { - number?: number; - location?: number; -} -export interface A_Expr { - kind?: A_Expr_Kind; - name?: Node[]; - lexpr?: Node; - rexpr?: Node; - location?: number; -} -export interface TypeCast { - arg?: Node; - typeName?: TypeName; - location?: number; -} -export interface CollateClause { - arg?: Node; - collname?: Node[]; - location?: number; -} -export interface RoleSpec { - roletype?: RoleSpecType; - rolename?: string; - location?: number; -} -export interface FuncCall { - funcname?: Node[]; - args?: Node[]; - agg_order?: Node[]; - agg_filter?: Node; - over?: WindowDef; - agg_within_group?: boolean; - agg_star?: boolean; - agg_distinct?: boolean; - func_variadic?: boolean; - funcformat?: CoercionForm; - location?: number; -} -export interface A_Star {} -export interface A_Indices { - is_slice?: boolean; - lidx?: Node; - uidx?: Node; -} -export interface A_Indirection { - arg?: Node; - indirection?: Node[]; -} -export interface A_ArrayExpr { - elements?: Node[]; - location?: number; -} -export interface ResTarget { - name?: string; - indirection?: Node[]; - val?: Node; - location?: number; -} -export interface MultiAssignRef { - source?: Node; - colno?: number; - ncolumns?: number; -} -export interface SortBy { - node?: Node; - sortby_dir?: SortByDir; - sortby_nulls?: SortByNulls; - useOp?: Node[]; - location?: number; -} -export interface WindowDef { - name?: string; - refname?: string; - partitionClause?: Node[]; - orderClause?: Node[]; - frameOptions?: number; - startOffset?: Node; - endOffset?: Node; - location?: number; -} -export interface RangeSubselect { - lateral?: boolean; - subquery?: Node; - alias?: Alias; -} -export interface RangeFunction { - lateral?: boolean; - ordinality?: boolean; - is_rowsfrom?: boolean; - functions?: Node[]; - alias?: Alias; - coldeflist?: Node[]; -} -export interface RangeTableFunc { - lateral?: boolean; - docexpr?: Node; - rowexpr?: Node; - namespaces?: Node[]; - columns?: Node[]; - alias?: Alias; - location?: number; -} -export interface RangeTableFuncCol { - colname?: string; - typeName?: TypeName; - for_ordinality?: boolean; - is_not_null?: boolean; - colexpr?: Node; - coldefexpr?: Node; - location?: number; -} -export interface RangeTableSample { - relation?: Node; - method?: Node[]; - args?: Node[]; - repeatable?: Node; - location?: number; -} -export interface ColumnDef { - colname?: string; - typeName?: TypeName; - compression?: string; - inhcount?: number; - is_local?: boolean; - is_not_null?: boolean; - is_from_type?: boolean; - storage?: string; - storage_name?: string; - raw_default?: Node; - cooked_default?: Node; - identity?: string; - identitySequence?: RangeVar; - generated?: string; - collClause?: CollateClause; - collOid?: number; - constraints?: Node[]; - fdwoptions?: Node[]; - location?: number; -} -export interface TableLikeClause { - relation?: RangeVar; - options?: number; - relationOid?: number; -} -export interface IndexElem { - name?: string; - expr?: Node; - indexcolname?: string; - collation?: Node[]; - opclass?: Node[]; - opclassopts?: Node[]; - ordering?: SortByDir; - nulls_ordering?: SortByNulls; -} -export interface DefElem { - defnamespace?: string; - defname?: string; - arg?: Node; - defaction?: DefElemAction; - location?: number; -} -export interface LockingClause { - lockedRels?: Node[]; - strength?: LockClauseStrength; - waitPolicy?: LockWaitPolicy; -} -export interface XmlSerialize { - xmloption?: XmlOptionType; - expr?: Node; - typeName?: TypeName; - indent?: boolean; - location?: number; -} -export interface PartitionElem { - name?: string; - expr?: Node; - collation?: Node[]; - opclass?: Node[]; - location?: number; -} -export interface PartitionSpec { - strategy?: PartitionStrategy; - partParams?: Node[]; - location?: number; -} -export interface PartitionBoundSpec { - strategy?: string; - is_default?: boolean; - modulus?: number; - remainder?: number; - listdatums?: Node[]; - lowerdatums?: Node[]; - upperdatums?: Node[]; - location?: number; -} -export interface PartitionRangeDatum { - kind?: PartitionRangeDatumKind; - value?: Node; - location?: number; -} -export interface SinglePartitionSpec {} -export interface PartitionCmd { - name?: RangeVar; - bound?: PartitionBoundSpec; - concurrent?: boolean; -} -export interface RangeTblEntry { - alias?: Alias; - eref?: Alias; - rtekind?: RTEKind; - relid?: number; - inh?: boolean; - relkind?: string; - rellockmode?: number; - perminfoindex?: number; - tablesample?: TableSampleClause; - subquery?: Query; - security_barrier?: boolean; - jointype?: JoinType; - joinmergedcols?: number; - joinaliasvars?: Node[]; - joinleftcols?: Node[]; - joinrightcols?: Node[]; - join_using_alias?: Alias; - functions?: Node[]; - funcordinality?: boolean; - tablefunc?: TableFunc; - values_lists?: Node[]; - ctename?: string; - ctelevelsup?: number; - self_reference?: boolean; - coltypes?: Node[]; - coltypmods?: Node[]; - colcollations?: Node[]; - enrname?: string; - enrtuples?: number; - lateral?: boolean; - inFromCl?: boolean; - securityQuals?: Node[]; -} -export interface RTEPermissionInfo { - relid?: number; - inh?: boolean; - requiredPerms?: bigint; - checkAsUser?: number; - selectedCols?: bigint[]; - insertedCols?: bigint[]; - updatedCols?: bigint[]; -} -export interface RangeTblFunction { - funcexpr?: Node; - funccolcount?: number; - funccolnames?: Node[]; - funccoltypes?: Node[]; - funccoltypmods?: Node[]; - funccolcollations?: Node[]; - funcparams?: bigint[]; -} -export interface TableSampleClause { - tsmhandler?: number; - args?: Node[]; - repeatable?: Node; -} -export interface WithCheckOption { - kind?: WCOKind; - relname?: string; - polname?: string; - qual?: Node; - cascaded?: boolean; -} -export interface SortGroupClause { - tleSortGroupRef?: number; - eqop?: number; - sortop?: number; - nulls_first?: boolean; - hashable?: boolean; -} -export interface GroupingSet { - kind?: GroupingSetKind; - content?: Node[]; - location?: number; -} -export interface WindowClause { - name?: string; - refname?: string; - partitionClause?: Node[]; - orderClause?: Node[]; - frameOptions?: number; - startOffset?: Node; - endOffset?: Node; - startInRangeFunc?: number; - endInRangeFunc?: number; - inRangeColl?: number; - inRangeAsc?: boolean; - inRangeNullsFirst?: boolean; - winref?: number; - copiedOrder?: boolean; -} -export interface RowMarkClause { - rti?: number; - strength?: LockClauseStrength; - waitPolicy?: LockWaitPolicy; - pushedDown?: boolean; -} -export interface WithClause { - ctes?: Node[]; - recursive?: boolean; - location?: number; -} -export interface InferClause { - indexElems?: Node[]; - whereClause?: Node; - conname?: string; - location?: number; -} -export interface OnConflictClause { - action?: OnConflictAction; - infer?: InferClause; - targetList?: Node[]; - whereClause?: Node; - location?: number; -} -export interface CTESearchClause { - search_col_list?: Node[]; - search_breadth_first?: boolean; - search_seq_column?: string; - location?: number; -} -export interface CTECycleClause { - cycle_col_list?: Node[]; - cycle_mark_column?: string; - cycle_mark_value?: Node; - cycle_mark_default?: Node; - cycle_path_column?: string; - location?: number; - cycle_mark_type?: number; - cycle_mark_typmod?: number; - cycle_mark_collation?: number; - cycle_mark_neop?: number; -} -export interface CommonTableExpr { - ctename?: string; - aliascolnames?: Node[]; - ctematerialized?: CTEMaterialize; - ctequery?: Node; - search_clause?: CTESearchClause; - cycle_clause?: CTECycleClause; - location?: number; - cterecursive?: boolean; - cterefcount?: number; - ctecolnames?: Node[]; - ctecoltypes?: Node[]; - ctecoltypmods?: Node[]; - ctecolcollations?: Node[]; -} -export interface MergeWhenClause { - matchKind?: MergeMatchKind; - commandType?: CmdType; - override?: OverridingKind; - condition?: Node; - targetList?: Node[]; - values?: Node[]; -} -export interface TriggerTransition { - name?: string; - isNew?: boolean; - isTable?: boolean; -} -export interface JsonOutput { - typeName?: TypeName; - returning?: JsonReturning; -} -export interface JsonArgument { - val?: JsonValueExpr; - name?: string; -} -export interface JsonFuncExpr { - op?: JsonExprOp; - column_name?: string; - context_item?: JsonValueExpr; - pathspec?: Node; - passing?: Node[]; - output?: JsonOutput; - on_empty?: JsonBehavior; - on_error?: JsonBehavior; - wrapper?: JsonWrapper; - quotes?: JsonQuotes; - location?: number; -} -export interface JsonTablePathSpec { - string?: Node; - name?: string; - name_location?: number; - location?: number; -} -export interface JsonTable { - context_item?: JsonValueExpr; - pathspec?: JsonTablePathSpec; - passing?: Node[]; - columns?: Node[]; - on_error?: JsonBehavior; - alias?: Alias; - lateral?: boolean; - location?: number; -} -export interface JsonTableColumn { - coltype?: JsonTableColumnType; - name?: string; - typeName?: TypeName; - pathspec?: JsonTablePathSpec; - format?: JsonFormat; - wrapper?: JsonWrapper; - quotes?: JsonQuotes; - columns?: Node[]; - on_empty?: JsonBehavior; - on_error?: JsonBehavior; - location?: number; -} -export interface JsonKeyValue { - key?: Node; - value?: JsonValueExpr; -} -export interface JsonParseExpr { - expr?: JsonValueExpr; - output?: JsonOutput; - unique_keys?: boolean; - location?: number; -} -export interface JsonScalarExpr { - expr?: Node; - output?: JsonOutput; - location?: number; -} -export interface JsonSerializeExpr { - expr?: JsonValueExpr; - output?: JsonOutput; - location?: number; -} -export interface JsonObjectConstructor { - exprs?: Node[]; - output?: JsonOutput; - absent_on_null?: boolean; - unique?: boolean; - location?: number; -} -export interface JsonArrayConstructor { - exprs?: Node[]; - output?: JsonOutput; - absent_on_null?: boolean; - location?: number; -} -export interface JsonArrayQueryConstructor { - query?: Node; - output?: JsonOutput; - format?: JsonFormat; - absent_on_null?: boolean; - location?: number; -} -export interface JsonAggConstructor { - output?: JsonOutput; - agg_filter?: Node; - agg_order?: Node[]; - over?: WindowDef; - location?: number; -} -export interface JsonObjectAgg { - constructor?: JsonAggConstructor; - arg?: JsonKeyValue; - absent_on_null?: boolean; - unique?: boolean; -} -export interface JsonArrayAgg { - constructor?: JsonAggConstructor; - arg?: JsonValueExpr; - absent_on_null?: boolean; -} -export interface RawStmt { - stmt?: Node; - stmt_location?: number; - stmt_len?: number; -} -export interface InsertStmt { - relation?: RangeVar; - cols?: Node[]; - selectStmt?: Node; - onConflictClause?: OnConflictClause; - returningList?: Node[]; - withClause?: WithClause; - override?: OverridingKind; -} -export interface DeleteStmt { - relation?: RangeVar; - usingClause?: Node[]; - whereClause?: Node; - returningList?: Node[]; - withClause?: WithClause; -} -export interface UpdateStmt { - relation?: RangeVar; - targetList?: Node[]; - whereClause?: Node; - fromClause?: Node[]; - returningList?: Node[]; - withClause?: WithClause; -} -export interface MergeStmt { - relation?: RangeVar; - sourceRelation?: Node; - joinCondition?: Node; - mergeWhenClauses?: Node[]; - returningList?: Node[]; - withClause?: WithClause; -} -export interface SelectStmt { - distinctClause?: Node[]; - intoClause?: IntoClause; - targetList?: Node[]; - fromClause?: Node[]; - whereClause?: Node; - groupClause?: Node[]; - groupDistinct?: boolean; - havingClause?: Node; - windowClause?: Node[]; - valuesLists?: Node[]; - sortClause?: Node[]; - limitOffset?: Node; - limitCount?: Node; - limitOption?: LimitOption; - lockingClause?: Node[]; - withClause?: WithClause; - op?: SetOperation; - all?: boolean; - larg?: SelectStmt; - rarg?: SelectStmt; -} -export interface SetOperationStmt { - op?: SetOperation; - all?: boolean; - larg?: Node; - rarg?: Node; - colTypes?: Node[]; - colTypmods?: Node[]; - colCollations?: Node[]; - groupClauses?: Node[]; -} -export interface ReturnStmt { - returnval?: Node; -} -export interface PLAssignStmt { - name?: string; - indirection?: Node[]; - nnames?: number; - val?: SelectStmt; - location?: number; -} -export interface CreateSchemaStmt { - schemaname?: string; - authrole?: RoleSpec; - schemaElts?: Node[]; - if_not_exists?: boolean; -} -export interface AlterTableStmt { - relation?: RangeVar; - cmds?: Node[]; - objtype?: ObjectType; - missing_ok?: boolean; -} -export interface ReplicaIdentityStmt { - identity_type?: string; - name?: string; -} -export interface AlterTableCmd { - subtype?: AlterTableType; - name?: string; - num?: number; - newowner?: RoleSpec; - def?: Node; - behavior?: DropBehavior; - missing_ok?: boolean; - recurse?: boolean; -} -export interface AlterCollationStmt { - collname?: Node[]; -} -export interface AlterDomainStmt { - subtype?: string; - typeName?: Node[]; - name?: string; - def?: Node; - behavior?: DropBehavior; - missing_ok?: boolean; -} -export interface GrantStmt { - is_grant?: boolean; - targtype?: GrantTargetType; - objtype?: ObjectType; - objects?: Node[]; - privileges?: Node[]; - grantees?: Node[]; - grant_option?: boolean; - grantor?: RoleSpec; - behavior?: DropBehavior; -} -export interface ObjectWithArgs { - objname?: Node[]; - objargs?: Node[]; - objfuncargs?: Node[]; - args_unspecified?: boolean; -} -export interface AccessPriv { - priv_name?: string; - cols?: Node[]; -} -export interface GrantRoleStmt { - granted_roles?: Node[]; - grantee_roles?: Node[]; - is_grant?: boolean; - opt?: Node[]; - grantor?: RoleSpec; - behavior?: DropBehavior; -} -export interface AlterDefaultPrivilegesStmt { - options?: Node[]; - action?: GrantStmt; -} -export interface CopyStmt { - relation?: RangeVar; - query?: Node; - attlist?: Node[]; - is_from?: boolean; - is_program?: boolean; - filename?: string; - options?: Node[]; - whereClause?: Node; -} -export interface VariableSetStmt { - kind?: VariableSetKind; - name?: string; - args?: Node[]; - is_local?: boolean; -} -export interface VariableShowStmt { - name?: string; -} -export interface CreateStmt { - relation?: RangeVar; - tableElts?: Node[]; - inhRelations?: Node[]; - partbound?: PartitionBoundSpec; - partspec?: PartitionSpec; - ofTypename?: TypeName; - constraints?: Node[]; - options?: Node[]; - oncommit?: OnCommitAction; - tablespacename?: string; - accessMethod?: string; - if_not_exists?: boolean; -} -export interface Constraint { - contype?: ConstrType; - conname?: string; - deferrable?: boolean; - initdeferred?: boolean; - skip_validation?: boolean; - initially_valid?: boolean; - is_no_inherit?: boolean; - raw_expr?: Node; - cooked_expr?: string; - generated_when?: string; - inhcount?: number; - nulls_not_distinct?: boolean; - keys?: Node[]; - including?: Node[]; - exclusions?: Node[]; - options?: Node[]; - indexname?: string; - indexspace?: string; - reset_default_tblspc?: boolean; - access_method?: string; - where_clause?: Node; - pktable?: RangeVar; - fk_attrs?: Node[]; - pk_attrs?: Node[]; - fk_matchtype?: string; - fk_upd_action?: string; - fk_del_action?: string; - fk_del_set_cols?: Node[]; - old_conpfeqop?: Node[]; - old_pktable_oid?: number; - location?: number; -} -export interface CreateTableSpaceStmt { - tablespacename?: string; - owner?: RoleSpec; - location?: string; - options?: Node[]; -} -export interface DropTableSpaceStmt { - tablespacename?: string; - missing_ok?: boolean; -} -export interface AlterTableSpaceOptionsStmt { - tablespacename?: string; - options?: Node[]; - isReset?: boolean; -} -export interface AlterTableMoveAllStmt { - orig_tablespacename?: string; - objtype?: ObjectType; - roles?: Node[]; - new_tablespacename?: string; - nowait?: boolean; -} -export interface CreateExtensionStmt { - extname?: string; - if_not_exists?: boolean; - options?: Node[]; -} -export interface AlterExtensionStmt { - extname?: string; - options?: Node[]; -} -export interface AlterExtensionContentsStmt { - extname?: string; - action?: number; - objtype?: ObjectType; - object?: Node; -} -export interface CreateFdwStmt { - fdwname?: string; - func_options?: Node[]; - options?: Node[]; -} -export interface AlterFdwStmt { - fdwname?: string; - func_options?: Node[]; - options?: Node[]; -} -export interface CreateForeignServerStmt { - servername?: string; - servertype?: string; - version?: string; - fdwname?: string; - if_not_exists?: boolean; - options?: Node[]; -} -export interface AlterForeignServerStmt { - servername?: string; - version?: string; - options?: Node[]; - has_version?: boolean; -} -export interface CreateForeignTableStmt { - base?: CreateStmt; - servername?: string; - options?: Node[]; -} -export interface CreateUserMappingStmt { - user?: RoleSpec; - servername?: string; - if_not_exists?: boolean; - options?: Node[]; -} -export interface AlterUserMappingStmt { - user?: RoleSpec; - servername?: string; - options?: Node[]; -} -export interface DropUserMappingStmt { - user?: RoleSpec; - servername?: string; - missing_ok?: boolean; -} -export interface ImportForeignSchemaStmt { - server_name?: string; - remote_schema?: string; - local_schema?: string; - list_type?: ImportForeignSchemaType; - table_list?: Node[]; - options?: Node[]; -} -export interface CreatePolicyStmt { - policy_name?: string; - table?: RangeVar; - cmd_name?: string; - permissive?: boolean; - roles?: Node[]; - qual?: Node; - with_check?: Node; -} -export interface AlterPolicyStmt { - policy_name?: string; - table?: RangeVar; - roles?: Node[]; - qual?: Node; - with_check?: Node; -} -export interface CreateAmStmt { - amname?: string; - handler_name?: Node[]; - amtype?: string; -} -export interface CreateTrigStmt { - replace?: boolean; - isconstraint?: boolean; - trigname?: string; - relation?: RangeVar; - funcname?: Node[]; - args?: Node[]; - row?: boolean; - timing?: number; - events?: number; - columns?: Node[]; - whenClause?: Node; - transitionRels?: Node[]; - deferrable?: boolean; - initdeferred?: boolean; - constrrel?: RangeVar; -} -export interface CreateEventTrigStmt { - trigname?: string; - eventname?: string; - whenclause?: Node[]; - funcname?: Node[]; -} -export interface AlterEventTrigStmt { - trigname?: string; - tgenabled?: string; -} -export interface CreatePLangStmt { - replace?: boolean; - plname?: string; - plhandler?: Node[]; - plinline?: Node[]; - plvalidator?: Node[]; - pltrusted?: boolean; -} -export interface CreateRoleStmt { - stmt_type?: RoleStmtType; - role?: string; - options?: Node[]; -} -export interface AlterRoleStmt { - role?: RoleSpec; - options?: Node[]; - action?: number; -} -export interface AlterRoleSetStmt { - role?: RoleSpec; - database?: string; - setstmt?: VariableSetStmt; -} -export interface DropRoleStmt { - roles?: Node[]; - missing_ok?: boolean; -} -export interface CreateSeqStmt { - sequence?: RangeVar; - options?: Node[]; - ownerId?: number; - for_identity?: boolean; - if_not_exists?: boolean; -} -export interface AlterSeqStmt { - sequence?: RangeVar; - options?: Node[]; - for_identity?: boolean; - missing_ok?: boolean; -} -export interface DefineStmt { - kind?: ObjectType; - oldstyle?: boolean; - defnames?: Node[]; - args?: Node[]; - definition?: Node[]; - if_not_exists?: boolean; - replace?: boolean; -} -export interface CreateDomainStmt { - domainname?: Node[]; - typeName?: TypeName; - collClause?: CollateClause; - constraints?: Node[]; -} -export interface CreateOpClassStmt { - opclassname?: Node[]; - opfamilyname?: Node[]; - amname?: string; - datatype?: TypeName; - items?: Node[]; - isDefault?: boolean; -} -export interface CreateOpClassItem { - itemtype?: number; - name?: ObjectWithArgs; - number?: number; - order_family?: Node[]; - class_args?: Node[]; - storedtype?: TypeName; -} -export interface CreateOpFamilyStmt { - opfamilyname?: Node[]; - amname?: string; -} -export interface AlterOpFamilyStmt { - opfamilyname?: Node[]; - amname?: string; - isDrop?: boolean; - items?: Node[]; -} -export interface DropStmt { - objects?: Node[]; - removeType?: ObjectType; - behavior?: DropBehavior; - missing_ok?: boolean; - concurrent?: boolean; -} -export interface TruncateStmt { - relations?: Node[]; - restart_seqs?: boolean; - behavior?: DropBehavior; -} -export interface CommentStmt { - objtype?: ObjectType; - object?: Node; - comment?: string; -} -export interface SecLabelStmt { - objtype?: ObjectType; - object?: Node; - provider?: string; - label?: string; -} -export interface DeclareCursorStmt { - portalname?: string; - options?: number; - query?: Node; -} -export interface ClosePortalStmt { - portalname?: string; -} -export interface FetchStmt { - direction?: FetchDirection; - howMany?: bigint; - portalname?: string; - ismove?: boolean; -} -export interface IndexStmt { - idxname?: string; - relation?: RangeVar; - accessMethod?: string; - tableSpace?: string; - indexParams?: Node[]; - indexIncludingParams?: Node[]; - options?: Node[]; - whereClause?: Node; - excludeOpNames?: Node[]; - idxcomment?: string; - indexOid?: number; - oldNumber?: number; - oldCreateSubid?: number; - oldFirstRelfilelocatorSubid?: number; - unique?: boolean; - nulls_not_distinct?: boolean; - primary?: boolean; - isconstraint?: boolean; - deferrable?: boolean; - initdeferred?: boolean; - transformed?: boolean; - concurrent?: boolean; - if_not_exists?: boolean; - reset_default_tblspc?: boolean; -} -export interface CreateStatsStmt { - defnames?: Node[]; - stat_types?: Node[]; - exprs?: Node[]; - relations?: Node[]; - stxcomment?: string; - transformed?: boolean; - if_not_exists?: boolean; -} -export interface StatsElem { - name?: string; - expr?: Node; -} -export interface AlterStatsStmt { - defnames?: Node[]; - stxstattarget?: Node; - missing_ok?: boolean; -} -export interface CreateFunctionStmt { - is_procedure?: boolean; - replace?: boolean; - funcname?: Node[]; - parameters?: Node[]; - returnType?: TypeName; - options?: Node[]; - sql_body?: Node; -} -export interface FunctionParameter { - name?: string; - argType?: TypeName; - mode?: FunctionParameterMode; - defexpr?: Node; -} -export interface AlterFunctionStmt { - objtype?: ObjectType; - func?: ObjectWithArgs; - actions?: Node[]; -} -export interface DoStmt { - args?: Node[]; -} -export interface InlineCodeBlock { - source_text?: string; - langOid?: number; - langIsTrusted?: boolean; - atomic?: boolean; -} -export interface CallStmt { - funccall?: FuncCall; - funcexpr?: FuncExpr; - outargs?: Node[]; -} -export interface CallContext { - atomic?: boolean; -} -export interface RenameStmt { - renameType?: ObjectType; - relationType?: ObjectType; - relation?: RangeVar; - object?: Node; - subname?: string; - newname?: string; - behavior?: DropBehavior; - missing_ok?: boolean; -} -export interface AlterObjectDependsStmt { - objectType?: ObjectType; - relation?: RangeVar; - object?: Node; - extname?: String; - remove?: boolean; -} -export interface AlterObjectSchemaStmt { - objectType?: ObjectType; - relation?: RangeVar; - object?: Node; - newschema?: string; - missing_ok?: boolean; -} -export interface AlterOwnerStmt { - objectType?: ObjectType; - relation?: RangeVar; - object?: Node; - newowner?: RoleSpec; -} -export interface AlterOperatorStmt { - opername?: ObjectWithArgs; - options?: Node[]; -} -export interface AlterTypeStmt { - typeName?: Node[]; - options?: Node[]; -} -export interface RuleStmt { - relation?: RangeVar; - rulename?: string; - whereClause?: Node; - event?: CmdType; - instead?: boolean; - actions?: Node[]; - replace?: boolean; -} -export interface NotifyStmt { - conditionname?: string; - payload?: string; -} -export interface ListenStmt { - conditionname?: string; -} -export interface UnlistenStmt { - conditionname?: string; -} -export interface TransactionStmt { - kind?: TransactionStmtKind; - options?: Node[]; - savepoint_name?: string; - gid?: string; - chain?: boolean; - location?: number; -} -export interface CompositeTypeStmt { - typevar?: RangeVar; - coldeflist?: Node[]; -} -export interface CreateEnumStmt { - typeName?: Node[]; - vals?: Node[]; -} -export interface CreateRangeStmt { - typeName?: Node[]; - params?: Node[]; -} -export interface AlterEnumStmt { - typeName?: Node[]; - oldVal?: string; - newVal?: string; - newValNeighbor?: string; - newValIsAfter?: boolean; - skipIfNewValExists?: boolean; -} -export interface ViewStmt { - view?: RangeVar; - aliases?: Node[]; - query?: Node; - replace?: boolean; - options?: Node[]; - withCheckOption?: ViewCheckOption; -} -export interface LoadStmt { - filename?: string; -} -export interface CreatedbStmt { - dbname?: string; - options?: Node[]; -} -export interface AlterDatabaseStmt { - dbname?: string; - options?: Node[]; -} -export interface AlterDatabaseRefreshCollStmt { - dbname?: string; -} -export interface AlterDatabaseSetStmt { - dbname?: string; - setstmt?: VariableSetStmt; -} -export interface DropdbStmt { - dbname?: string; - missing_ok?: boolean; - options?: Node[]; -} -export interface AlterSystemStmt { - setstmt?: VariableSetStmt; -} -export interface ClusterStmt { - relation?: RangeVar; - indexname?: string; - params?: Node[]; -} -export interface VacuumStmt { - options?: Node[]; - rels?: Node[]; - is_vacuumcmd?: boolean; -} -export interface VacuumRelation { - relation?: RangeVar; - oid?: number; - va_cols?: Node[]; -} -export interface ExplainStmt { - query?: Node; - options?: Node[]; -} -export interface CreateTableAsStmt { - query?: Node; - into?: IntoClause; - objtype?: ObjectType; - is_select_into?: boolean; - if_not_exists?: boolean; -} -export interface RefreshMatViewStmt { - concurrent?: boolean; - skipData?: boolean; - relation?: RangeVar; -} -export interface CheckPointStmt {} -export interface DiscardStmt { - target?: DiscardMode; -} -export interface LockStmt { - relations?: Node[]; - mode?: number; - nowait?: boolean; -} -export interface ConstraintsSetStmt { - constraints?: Node[]; - deferred?: boolean; -} -export interface ReindexStmt { - kind?: ReindexObjectType; - relation?: RangeVar; - name?: string; - params?: Node[]; -} -export interface CreateConversionStmt { - conversion_name?: Node[]; - for_encoding_name?: string; - to_encoding_name?: string; - func_name?: Node[]; - def?: boolean; -} -export interface CreateCastStmt { - sourcetype?: TypeName; - targettype?: TypeName; - func?: ObjectWithArgs; - context?: CoercionContext; - inout?: boolean; -} -export interface CreateTransformStmt { - replace?: boolean; - type_name?: TypeName; - lang?: string; - fromsql?: ObjectWithArgs; - tosql?: ObjectWithArgs; -} -export interface PrepareStmt { - name?: string; - argtypes?: Node[]; - query?: Node; -} -export interface ExecuteStmt { - name?: string; - params?: Node[]; -} -export interface DeallocateStmt { - name?: string; - isall?: boolean; - location?: number; -} -export interface DropOwnedStmt { - roles?: Node[]; - behavior?: DropBehavior; -} -export interface ReassignOwnedStmt { - roles?: Node[]; - newrole?: RoleSpec; -} -export interface AlterTSDictionaryStmt { - dictname?: Node[]; - options?: Node[]; -} -export interface AlterTSConfigurationStmt { - kind?: AlterTSConfigType; - cfgname?: Node[]; - tokentype?: Node[]; - dicts?: Node[]; - override?: boolean; - replace?: boolean; - missing_ok?: boolean; -} -export interface PublicationTable { - relation?: RangeVar; - whereClause?: Node; - columns?: Node[]; -} -export interface PublicationObjSpec { - pubobjtype?: PublicationObjSpecType; - name?: string; - pubtable?: PublicationTable; - location?: number; -} -export interface CreatePublicationStmt { - pubname?: string; - options?: Node[]; - pubobjects?: Node[]; - for_all_tables?: boolean; -} -export interface AlterPublicationStmt { - pubname?: string; - options?: Node[]; - pubobjects?: Node[]; - for_all_tables?: boolean; - action?: AlterPublicationAction; -} -export interface CreateSubscriptionStmt { - subname?: string; - conninfo?: string; - publication?: Node[]; - options?: Node[]; -} -export interface AlterSubscriptionStmt { - kind?: AlterSubscriptionType; - subname?: string; - conninfo?: string; - publication?: Node[]; - options?: Node[]; -} -export interface DropSubscriptionStmt { - subname?: string; - missing_ok?: boolean; - behavior?: DropBehavior; -} -export interface ScanToken { - start?: number; - end?: number; - token?: Token; - keywordKind?: KeywordKind; -} \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index bcac2143..e51e3d08 100644 --- a/yarn.lock +++ b/yarn.lock @@ -134,12 +134,12 @@ integrity sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg== "@babel/helpers@^7.27.4": - version "7.27.4" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.27.4.tgz#c79050c6a0e41e095bfc96d469c85431e9ed7fe7" - integrity sha512-Y+bO6U+I7ZKaM5G5rDUZiYfUvQPUibYmAFe7EnKdnKBbVXDZxvp+MWOH5gYciY0EPk4EScsuFMQBbEfpdRKSCQ== + version "7.27.6" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.27.6.tgz#6456fed15b2cb669d2d1fabe84b66b34991d812c" + integrity sha512-muE8Tt8M22638HU31A3CgfSUciwz1fhATfoVai05aPXGor//CdWDCbnlY1yvBPo07njuVOCNGCSp/GTt12lIug== dependencies: "@babel/template" "^7.27.2" - "@babel/types" "^7.27.3" + "@babel/types" "^7.27.6" "@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.15", "@babel/parser@^7.20.7", "@babel/parser@^7.23.6", "@babel/parser@^7.23.9", "@babel/parser@^7.24.1", "@babel/parser@^7.27.2", "@babel/parser@^7.27.4", "@babel/parser@^7.27.5": version "7.27.5" @@ -314,10 +314,10 @@ "@babel/helper-validator-identifier" "^7.22.20" to-fast-properties "^2.0.0" -"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.24.0", "@babel/types@^7.24.7", "@babel/types@^7.27.1", "@babel/types@^7.27.3", "@babel/types@^7.3.3": - version "7.27.3" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.27.3.tgz#c0257bedf33aad6aad1f406d35c44758321eb3ec" - integrity sha512-Y1GkI4ktrtvmawoSq+4FCVHNryea6uR+qUQy0AGxLSsjCX0nVmkYQMBLHDkXZuo5hGx7eYdnIaslsdBFm7zbUw== +"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.24.0", "@babel/types@^7.24.7", "@babel/types@^7.27.1", "@babel/types@^7.27.3", "@babel/types@^7.27.6", "@babel/types@^7.3.3": + version "7.27.6" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.27.6.tgz#a434ca7add514d4e646c80f7375c0aa2befc5535" + integrity sha512-ETyHEk2VHHvl9b9jZP5IHPavHYk57EhanlRRuae9XCpb/j5bDCbPPMOBfCWhnl/7EDJz0jEMCi/RhccCE8r1+Q== dependencies: "@babel/helper-string-parser" "^7.27.1" "@babel/helper-validator-identifier" "^7.27.1" @@ -334,13 +334,6 @@ dependencies: "@jridgewell/trace-mapping" "0.3.9" -"@emnapi/runtime@^0.43.1": - version "0.43.1" - resolved "https://registry.yarnpkg.com/@emnapi/runtime/-/runtime-0.43.1.tgz#c72d5e32f9331f313ae6690d8a64454647ab245b" - integrity sha512-Q5sMc4Z4gsD4tlmlyFu+MpNAwpR7Gv2errDhVJ+SOhNjWcx8UTqy+hswb8L31RfC8jBvDgcnT87l3xI2w08rAg== - dependencies: - tslib "^2.4.0" - "@eslint-community/eslint-utils@^4.2.0", "@eslint-community/eslint-utils@^4.4.0": version "4.7.0" resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.7.0.tgz#607084630c6c033992a082de6e6fbc1a8b52175a" @@ -402,6 +395,18 @@ resolved "https://registry.yarnpkg.com/@hutson/parse-repository-url/-/parse-repository-url-3.0.2.tgz#98c23c950a3d9b6c8f0daed06da6c3af06981340" integrity sha512-H9XAx3hc0BQHY6l+IFSWHDySypcXsvsuLhgYLUGywmJ5pswRVQJUHpOsobnLYp2ZUaUlKiKDrgWWhosOwAEM8Q== +"@isaacs/balanced-match@^4.0.1": + version "4.0.1" + resolved "https://registry.yarnpkg.com/@isaacs/balanced-match/-/balanced-match-4.0.1.tgz#3081dadbc3460661b751e7591d7faea5df39dd29" + integrity sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ== + +"@isaacs/brace-expansion@^5.0.0": + version "5.0.0" + resolved "https://registry.yarnpkg.com/@isaacs/brace-expansion/-/brace-expansion-5.0.0.tgz#4b3dabab7d8e75a429414a96bd67bf4c1d13e0f3" + integrity sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA== + dependencies: + "@isaacs/balanced-match" "^4.0.1" + "@isaacs/cliui@^8.0.2": version "8.0.2" resolved "https://registry.yarnpkg.com/@isaacs/cliui/-/cliui-8.0.2.tgz#b37667b7bc181c168782259bab42474fbf52b550" @@ -821,21 +826,6 @@ write-pkg "4.0.0" yargs "16.2.0" -"@mapbox/node-pre-gyp@^1.0.8": - version "1.0.11" - resolved "https://registry.yarnpkg.com/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.11.tgz#417db42b7f5323d79e93b34a6d7a2a12c0df43fa" - integrity sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ== - dependencies: - detect-libc "^2.0.0" - https-proxy-agent "^5.0.0" - make-dir "^3.1.0" - node-fetch "^2.6.7" - nopt "^5.0.0" - npmlog "^5.0.1" - rimraf "^3.0.2" - semver "^7.3.5" - tar "^6.1.11" - "@nodelib/fs.scandir@2.1.5": version "2.1.5" resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" @@ -857,17 +847,6 @@ "@nodelib/fs.scandir" "2.1.5" fastq "^1.6.0" -"@npmcli/agent@^2.0.0": - version "2.2.2" - resolved "https://registry.yarnpkg.com/@npmcli/agent/-/agent-2.2.2.tgz#967604918e62f620a648c7975461c9c9e74fc5d5" - integrity sha512-OrcNPXdpSl9UX7qPVRWbmWMCSXrcDa2M9DvrbOTj7ao1S4PlqVFYv9/yLKMkrJKZ/V5A/kDBC690or307i26Og== - dependencies: - agent-base "^7.1.0" - http-proxy-agent "^7.0.0" - https-proxy-agent "^7.0.1" - lru-cache "^10.0.1" - socks-proxy-agent "^8.0.3" - "@npmcli/arborist@6.2.3": version "6.2.3" resolved "https://registry.yarnpkg.com/@npmcli/arborist/-/arborist-6.2.3.tgz#31f8aed2588341864d3811151d929c01308f8e71" @@ -1493,18 +1472,18 @@ integrity sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag== "@types/node@*", "@types/node@>=13.7.0": - version "22.15.29" - resolved "https://registry.yarnpkg.com/@types/node/-/node-22.15.29.tgz#c75999124a8224a3f79dd8b6ccfb37d74098f678" - integrity sha512-LNdjOkUDlU1RZb8e1kOIUpN1qQUlzGkEtbVNo53vbrwDg5om6oduhm4SiUaPW5ASTXhAiP0jInWG8Qx9fVlOeQ== + version "24.0.3" + resolved "https://registry.yarnpkg.com/@types/node/-/node-24.0.3.tgz#f935910f3eece3a3a2f8be86b96ba833dc286cab" + integrity sha512-R4I/kzCYAdRLzfiCabn9hxWfbuHS573x+r0dJMkkzThEa7pbrcDWK+9zu3e7aBOouf+rQAciqPFMnxwr0aWgKg== dependencies: - undici-types "~6.21.0" + undici-types "~7.8.0" "@types/node@^20.12.7": - version "20.17.57" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.17.57.tgz#f807455e3303ba8ba08fcb1db90619356abfaa99" - integrity sha512-f3T4y6VU4fVQDKVqJV4Uppy8c1p/sVvS3peyqxyWnzkqXFJLRU7Y1Bl7rMS1Qe9z0v4M6McY0Fp9yBsgHJUsWQ== + version "20.19.1" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.19.1.tgz#cef8bc04aaae86824b5bbe2570769358592bcc59" + integrity sha512-jJD50LtlD2dodAEO653i3YF04NWak6jN3ky+Ri3Em3mGR39/glWiboM/IePaRbgwSfqM1TpGXfAg8ohn/4dTgA== dependencies: - undici-types "~6.19.2" + undici-types "~6.21.0" "@types/normalize-package-data@^2.4.0": version "2.4.4" @@ -1647,7 +1626,7 @@ JSONStream@^1.0.4: jsonparse "^1.2.0" through ">=2.2.7 <3" -abbrev@1, abbrev@^1.0.0: +abbrev@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== @@ -1670,9 +1649,9 @@ acorn-walk@^8.1.1: acorn "^8.11.0" acorn@^8.11.0, acorn@^8.4.1, acorn@^8.9.0: - version "8.14.1" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.14.1.tgz#721d5dc10f7d5b5609a891773d47731796935dfb" - integrity sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg== + version "8.15.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.15.0.tgz#a360898bc415edaac46c8241f6383975b930b816" + integrity sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg== add-stream@^1.0.0: version "1.0.0" @@ -1686,11 +1665,6 @@ agent-base@6, agent-base@^6.0.2: dependencies: debug "4" -agent-base@^7.1.0, agent-base@^7.1.2: - version "7.1.3" - resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-7.1.3.tgz#29435eb821bc4194633a5b89e5bc4703bafc25a1" - integrity sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw== - agentkeepalive@^4.2.1: version "4.6.0" resolved "https://registry.yarnpkg.com/agentkeepalive/-/agentkeepalive-4.6.0.tgz#35f73e94b3f40bf65f105219c623ad19c136ea6a" @@ -1768,14 +1742,6 @@ anymatch@^3.0.3: resolved "https://registry.yarnpkg.com/aproba/-/aproba-2.0.0.tgz#52520b8ae5b569215b354efc0caa3fe1e45a8adc" integrity sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ== -are-we-there-yet@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz#372e0e7bd279d8e94c653aaa1f67200884bf3e1c" - integrity sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw== - dependencies: - delegates "^1.0.0" - readable-stream "^3.6.0" - are-we-there-yet@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-3.0.1.tgz#679df222b278c64f2cdba1175cdc00b0d96164bd" @@ -1854,9 +1820,9 @@ at-least-node@^1.0.0: integrity sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg== axios@^1.0.0: - version "1.9.0" - resolved "https://registry.yarnpkg.com/axios/-/axios-1.9.0.tgz#25534e3b72b54540077d33046f77e3b8d7081901" - integrity sha512-re4CqKTJaURpzbLHtIi6XpDv20/CnpXOtjRY5/CU32L8gU8ek9UIivcfvSWvmKEngmVbrUtPpdDwWDWL7DNHvg== + version "1.10.0" + resolved "https://registry.yarnpkg.com/axios/-/axios-1.10.0.tgz#af320aee8632eaf2a400b6a1979fa75856f38d54" + integrity sha512-/1xYAC4MP/HEG+3duIhFr4ZQXR4sQXOIe+o6sdqzeykGLx6Upp/1p8MHqhINOvGeP7xyNHe7tsiJByc4SSVUxw== dependencies: follow-redirects "^1.15.6" form-data "^4.0.0" @@ -1964,23 +1930,18 @@ bluebird@^3.7.2: resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f" integrity sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg== -boolbase@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/boolbase/-/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e" - integrity sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww== - brace-expansion@^1.1.7: - version "1.1.11" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" - integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== + version "1.1.12" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.12.tgz#ab9b454466e5a8cc3a187beaad580412a9c5b843" + integrity sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg== dependencies: balanced-match "^1.0.0" concat-map "0.0.1" brace-expansion@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.1.tgz#1edc459e0f0c548486ecf9fc99f2221364b9a0ae" - integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA== + version "2.0.2" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.2.tgz#54fc53237a613d854c7bd37463aad17df87214e7" + integrity sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ== dependencies: balanced-match "^1.0.0" @@ -2087,24 +2048,6 @@ cacache@^17.0.0, cacache@^17.0.4: tar "^6.1.11" unique-filename "^3.0.0" -cacache@^18.0.0: - version "18.0.4" - resolved "https://registry.yarnpkg.com/cacache/-/cacache-18.0.4.tgz#4601d7578dadb59c66044e157d02a3314682d6a5" - integrity sha512-B+L5iIa9mgcjLbliir2th36yEwPftrzteHYujzsx3dFP/31GCHcIeS8f5MGd80odLOjaOvSpU3EEAmRQptkxLQ== - dependencies: - "@npmcli/fs" "^3.1.0" - fs-minipass "^3.0.0" - glob "^10.2.2" - lru-cache "^10.0.1" - minipass "^7.0.3" - minipass-collect "^2.0.1" - minipass-flush "^1.0.5" - minipass-pipeline "^1.2.4" - p-map "^4.0.0" - ssri "^10.0.0" - tar "^6.1.11" - unique-filename "^3.0.0" - call-bind-apply-helpers@^1.0.1, call-bind-apply-helpers@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz#4b5428c222be985d79c3d82657479dbe0b59b2d6" @@ -2138,9 +2081,9 @@ camelcase@^6.2.0: integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== caniuse-lite@^1.0.30001718: - version "1.0.30001720" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001720.tgz#c138cb6026d362be9d8d7b0e4bcd0183a850edfd" - integrity sha512-Ec/2yV2nNPwb4DnTANEV99ZWwm3ZWfdlfkQbWSDDt+PsXEVYwlhPH8tdMaPunYTKKmz7AnHi2oNEi1GcmKCD8g== + version "1.0.30001724" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001724.tgz#312e163553dd70d2c0fb603d74810c85d8ed94a0" + integrity sha512-WqJo7p0TbHDOythNTqYujmaJTvtYRZrjpP8TCvH6Vb9CYJerJNKamKzIWOM4BkQatWj9H2lYulpdAQNBe7QhNA== case@1.6.3: version "1.6.3" @@ -2293,7 +2236,7 @@ color-name@~1.1.4: resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== -color-support@^1.1.2, color-support@^1.1.3: +color-support@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/color-support/-/color-support-1.1.3.tgz#93834379a1cc9a0c61f82f52f0d04322251bd5a2" integrity sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg== @@ -2349,7 +2292,7 @@ config-chain@1.1.12: ini "^1.3.4" proto-list "~1.2.1" -console-control-strings@^1.0.0, console-control-strings@^1.1.0: +console-control-strings@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" integrity sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ== @@ -2502,22 +2445,6 @@ crypto-random-string@^2.0.0: resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-2.0.0.tgz#ef2a7a966ec11083388369baa02ebead229b30d5" integrity sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA== -css-select@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/css-select/-/css-select-5.1.0.tgz#b8ebd6554c3637ccc76688804ad3f6a6fdaea8a6" - integrity sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg== - dependencies: - boolbase "^1.0.0" - css-what "^6.1.0" - domhandler "^5.0.2" - domutils "^3.0.1" - nth-check "^2.0.1" - -css-what@^6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/css-what/-/css-what-6.1.0.tgz#fb5effcf76f1ddea2c81bdfaa4de44e79bac70f4" - integrity sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw== - cssesc@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-3.0.0.tgz#37741919903b868565e1c09ea747445cd18983ee" @@ -2619,11 +2546,6 @@ detect-indent@^5.0.0: resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-5.0.0.tgz#3871cc0a6a002e8c3e5b3cf7f336264675f06b9d" integrity sha512-rlpvsxUtM0PQvy9iZe640/IWwWYyBsTApREbA1pHOpmOUIl9MkP/U4z7vTtg4Oaojvqhxt7sdufnT0EzGaR31g== -detect-libc@^2.0.0: - version "2.0.4" - resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-2.0.4.tgz#f04715b8ba815e53b4d8109655b6508a6865a7e8" - integrity sha512-3UDv+G9CsCKO1WKMGw9fwq/SWJYbI0c5Y7LU1AXYoDdbhE2AHQ6N6Nb34sG8Fj7T5APy8qXDCKuuIHd1BR0tVA== - detect-newline@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651" @@ -2653,36 +2575,6 @@ doctrine@^3.0.0: dependencies: esutils "^2.0.2" -dom-serializer@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-2.0.0.tgz#e41b802e1eedf9f6cae183ce5e622d789d7d8e53" - integrity sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg== - dependencies: - domelementtype "^2.3.0" - domhandler "^5.0.2" - entities "^4.2.0" - -domelementtype@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-2.3.0.tgz#5c45e8e869952626331d7aab326d01daf65d589d" - integrity sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw== - -domhandler@^5.0.2, domhandler@^5.0.3: - version "5.0.3" - resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-5.0.3.tgz#cc385f7f751f1d1fc650c21374804254538c7d31" - integrity sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w== - dependencies: - domelementtype "^2.3.0" - -domutils@^3.0.1: - version "3.2.2" - resolved "https://registry.yarnpkg.com/domutils/-/domutils-3.2.2.tgz#edbfe2b668b0c1d97c24baf0f1062b132221bc78" - integrity sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw== - dependencies: - dom-serializer "^2.0.0" - domelementtype "^2.3.0" - domhandler "^5.0.3" - dot-prop@6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-6.0.1.tgz#fc26b3cf142b9e59b74dbd39ed66ce620c681083" @@ -2702,11 +2594,6 @@ dotenv@~10.0.0: resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-10.0.0.tgz#3d4227b8fb95f81096cdd2b66653fb2c7085ba81" integrity sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q== -dotty@^0.1.0: - version "0.1.2" - resolved "https://registry.yarnpkg.com/dotty/-/dotty-0.1.2.tgz#512d44cc4111a724931226259297f235e8484f6f" - integrity sha512-V0EWmKeH3DEhMwAZ+8ZB2Ao4OK6p++Z0hsDtZq3N0+0ZMVqkzrcEGROvOnZpLnvBg5PTNG23JEDLAm64gPaotQ== - dunder-proto@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/dunder-proto/-/dunder-proto-1.0.1.tgz#d7ae667e1dc83482f8b70fd0f6eefc50da30f58a" @@ -2734,9 +2621,9 @@ ejs@^3.1.10, ejs@^3.1.7: jake "^10.8.5" electron-to-chromium@^1.5.160: - version "1.5.162" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.162.tgz#5305c15292a960f36e86f8b330da958f8ae1690d" - integrity sha512-hQA+Zb5QQwoSaXJWEAGEw1zhk//O7qDzib05Z4qTqZfNju/FAkrm5ZInp0JbTp4Z18A6bilopdZWEYrFSsfllA== + version "1.5.171" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.171.tgz#e552b4fd73d4dd941ee4c70ae288a8a39f818726" + integrity sha512-scWpzXEJEMrGJa4Y6m/tVotb0WuvNmasv3wWVzUAeCgKU0ToFOhUW6Z+xWnRQANMYGxN4ngJXIThgBJOqzVPCQ== emittery@^0.13.1: version "0.13.1" @@ -2761,9 +2648,9 @@ encoding@^0.1.13: iconv-lite "^0.6.2" end-of-stream@^1.4.1: - version "1.4.4" - resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0" - integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q== + version "1.4.5" + resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.5.tgz#7344d711dea40e0b74abc2ed49778743ccedb08c" + integrity sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg== dependencies: once "^1.4.0" @@ -2774,7 +2661,7 @@ enquirer@~2.3.6: dependencies: ansi-colors "^4.1.1" -entities@^4.2.0, entities@^4.4.0: +entities@^4.4.0: version "4.5.0" resolved "https://registry.yarnpkg.com/entities/-/entities-4.5.0.tgz#5d268ea5e7113ec74c4d033b79ea5a35a488fb48" integrity sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw== @@ -3171,7 +3058,7 @@ follow-redirects@^1.15.6: resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.9.tgz#a604fa10e443bf98ca94228d9eebcc2e8a2c8ee1" integrity sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ== -foreground-child@^3.1.0: +foreground-child@^3.1.0, foreground-child@^3.3.1: version "3.3.1" resolved "https://registry.yarnpkg.com/foreground-child/-/foreground-child-3.3.1.tgz#32e8e9ed1b68a3497befb9ac2b6adf92a638576f" integrity sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw== @@ -3180,13 +3067,14 @@ foreground-child@^3.1.0: signal-exit "^4.0.1" form-data@^4.0.0: - version "4.0.2" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.2.tgz#35cabbdd30c3ce73deb2c42d3c8d3ed9ca51794c" - integrity sha512-hGfm/slu0ZabnNt4oaRZ6uREyfCj6P4fT/n6A1rGV+Z0VdGXjfOhVUpkn6qVQONHGIFwmveGXyDs75+nr6FM8w== + version "4.0.3" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.3.tgz#608b1b3f3e28be0fccf5901fc85fb3641e5cf0ae" + integrity sha512-qsITQPfmvMOSAdeyZ+12I1c+CKSstAFAwu+97zrnWAbIr5u8wfsExUzCesVLC8NgHuRUqNN4Zy6UPWUTRGslcA== dependencies: asynckit "^0.4.0" combined-stream "^1.0.8" es-set-tostringtag "^2.1.0" + hasown "^2.0.2" mime-types "^2.1.12" fs-constants@^1.0.0: @@ -3242,21 +3130,6 @@ function-bind@^1.1.2: resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== -gauge@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/gauge/-/gauge-3.0.2.tgz#03bf4441c044383908bcfa0656ad91803259b395" - integrity sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q== - dependencies: - aproba "^1.0.3 || ^2.0.0" - color-support "^1.1.2" - console-control-strings "^1.0.0" - has-unicode "^2.0.1" - object-assign "^4.1.1" - signal-exit "^3.0.0" - string-width "^4.2.3" - strip-ansi "^6.0.1" - wide-align "^1.1.2" - gauge@^4.0.3: version "4.0.4" resolved "https://registry.yarnpkg.com/gauge/-/gauge-4.0.4.tgz#52ff0652f2bbf607a989793d53b751bef2328dce" @@ -3446,7 +3319,7 @@ glob@8.1.0, glob@^8.0.0, glob@^8.0.1: minimatch "^5.0.1" once "^1.3.0" -glob@^10.0.0, glob@^10.2.2, glob@^10.3.10: +glob@^10.0.0, glob@^10.2.2: version "10.4.5" resolved "https://registry.yarnpkg.com/glob/-/glob-10.4.5.tgz#f4d9f0b90ffdbab09c9d77f5f29b4262517b0956" integrity sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg== @@ -3459,13 +3332,13 @@ glob@^10.0.0, glob@^10.2.2, glob@^10.3.10: path-scurry "^1.11.1" glob@^11.0.0: - version "11.0.2" - resolved "https://registry.yarnpkg.com/glob/-/glob-11.0.2.tgz#3261e3897bbc603030b041fd77ba636022d51ce0" - integrity sha512-YT7U7Vye+t5fZ/QMkBFrTJ7ZQxInIUjwyAjVj84CYXqgBdv30MFUPGnBR6sQaVq6Is15wYJUsnzTuWaGRBhBAQ== + version "11.0.3" + resolved "https://registry.yarnpkg.com/glob/-/glob-11.0.3.tgz#9d8087e6d72ddb3c4707b1d2778f80ea3eaefcd6" + integrity sha512-2Nim7dha1KVkaiF4q6Dj+ngPPMdfvLJEOpZk/jKiUAkqKebpGAWQXAq9z1xu9HKu5lWfqw/FASuccEjyznjPaA== dependencies: - foreground-child "^3.1.0" - jackspeak "^4.0.1" - minimatch "^10.0.0" + foreground-child "^3.3.1" + jackspeak "^4.1.1" + minimatch "^10.0.3" minipass "^7.1.2" package-json-from-dist "^1.0.0" path-scurry "^2.0.0" @@ -3582,11 +3455,6 @@ hasown@^2.0.2: dependencies: function-bind "^1.1.2" -he@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" - integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== - hosted-git-info@^2.1.4: version "2.8.9" resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz#dffc0bf9a21c02209090f2aa69429e1414daf3f9" @@ -3639,14 +3507,6 @@ http-proxy-agent@^5.0.0: agent-base "6" debug "4" -http-proxy-agent@^7.0.0: - version "7.0.2" - resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz#9a8b1f246866c028509486585f62b8f2c18c270e" - integrity sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig== - dependencies: - agent-base "^7.1.0" - debug "^4.3.4" - https-proxy-agent@^5.0.0: version "5.0.1" resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz#c59ef224a04fe8b754f3db0063a25ea30d0005d6" @@ -3655,14 +3515,6 @@ https-proxy-agent@^5.0.0: agent-base "6" debug "4" -https-proxy-agent@^7.0.1: - version "7.0.6" - resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz#da8dfeac7da130b05c2ba4b59c9b6cd66611a6b9" - integrity sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw== - dependencies: - agent-base "^7.1.2" - debug "4" - human-signals@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" @@ -3979,11 +3831,6 @@ isexe@^2.0.0: resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== -isexe@^3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-3.1.1.tgz#4a407e2bd78ddfb14bea0c27c6f7072dde775f0d" - integrity sha512-LpB/54B+/2J5hqQ7imZHfdU31OlgQqx7ZicVlkm9kzg9/w8GKLEcFfJl/t7DCEDueOyBAD6zCCwTO6Fzs0NoEQ== - isobject@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" @@ -4051,7 +3898,7 @@ jackspeak@^3.1.2: optionalDependencies: "@pkgjs/parseargs" "^0.11.0" -jackspeak@^4.0.1: +jackspeak@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/jackspeak/-/jackspeak-4.1.1.tgz#96876030f450502047fc7e8c7fcf8ce8124e43ae" integrity sha512-zptv57P3GpL+O0I7VdMJNBZCu+BPHVQUk55Ft8/QCJjTVxrnJHuVuX/0Bl2A6/+2oyR/ZMEuFKwmzqqZ/U5nPQ== @@ -4378,7 +4225,7 @@ jest-snapshot@^29.7.0: pretty-format "^29.7.0" semver "^7.5.3" -jest-util@^29.0.0, jest-util@^29.7.0: +jest-util@^29.7.0: version "29.7.0" resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-29.7.0.tgz#23c2b62bfb22be82b44de98055802ff3710fc0bc" integrity sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA== @@ -4719,17 +4566,13 @@ libnpmpublish@7.1.4: sigstore "^1.4.0" ssri "^10.0.1" -libpg-query@17.1.1: - version "17.1.1" - resolved "https://registry.yarnpkg.com/libpg-query/-/libpg-query-17.1.1.tgz#719e26b15694fe41152b752a0a59deb4b8cd9cda" - integrity sha512-ay0SG9LFeleHOO3pqfmovR/Msi1/P26l8NNYFdAqAaE5HRoeqkqQg73FEaNEGC1AkHYX2n3lPmpfq8Uzf99MnQ== +libpg-query@17.3.3: + version "17.3.3" + resolved "https://registry.yarnpkg.com/libpg-query/-/libpg-query-17.3.3.tgz#d48f7e58a48fbaf6080d09ce50ec965fe475d7d9" + integrity sha512-xpz80GZqE+kM0hrvIjxm5TuLlmj502GZfDDwLcaPo/Rv/JuBPnG439j+nsL5+050kA/hBBRJ14kNshAxVwpSog== dependencies: - "@emnapi/runtime" "^0.43.1" "@launchql/protobufjs" "7.2.6" - "@mapbox/node-pre-gyp" "^1.0.8" "@pgsql/types" "^17.0.0" - node-addon-api "^7.0.0" - node-gyp "^10.0.1" lines-and-columns@^1.1.6: version "1.2.4" @@ -4823,7 +4666,7 @@ long@^5.0.0: resolved "https://registry.yarnpkg.com/long/-/long-5.3.2.tgz#1d84463095999262d7d7b7f8bfd4a8cc55167f83" integrity sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA== -lru-cache@^10.0.1, lru-cache@^10.2.0: +lru-cache@^10.2.0: version "10.4.3" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.4.3.tgz#410fc8a17b70e598013df257c2446b7f3383f119" integrity sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ== @@ -4852,7 +4695,7 @@ lru-cache@^7.4.4, lru-cache@^7.5.1, lru-cache@^7.7.1: resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-7.18.3.tgz#f793896e0fd0e954a59dfdd82f0773808df6aa89" integrity sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA== -make-dir@3.1.0, make-dir@^3.1.0: +make-dir@3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== @@ -4922,24 +4765,6 @@ make-fetch-happen@^11.0.0, make-fetch-happen@^11.0.1, make-fetch-happen@^11.1.1: socks-proxy-agent "^7.0.0" ssri "^10.0.0" -make-fetch-happen@^13.0.0: - version "13.0.1" - resolved "https://registry.yarnpkg.com/make-fetch-happen/-/make-fetch-happen-13.0.1.tgz#273ba2f78f45e1f3a6dca91cede87d9fa4821e36" - integrity sha512-cKTUFc/rbKUd/9meOvgrpJ2WrNzymt6jfRDdwg5UCnVzv9dTpEj9JS5m3wtziXVCjluIXyL8pcaukYqezIzZQA== - dependencies: - "@npmcli/agent" "^2.0.0" - cacache "^18.0.0" - http-cache-semantics "^4.1.1" - is-lambda "^1.0.1" - minipass "^7.0.2" - minipass-fetch "^3.0.0" - minipass-flush "^1.0.5" - minipass-pipeline "^1.2.4" - negotiator "^0.6.3" - proc-log "^4.2.0" - promise-retry "^2.0.1" - ssri "^10.0.0" - makeerror@1.0.12: version "1.0.12" resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.12.tgz#3e5dd2079a82e812e983cc6610c4a2cb0eaa801a" @@ -5053,12 +4878,12 @@ minimatch@3.0.5: dependencies: brace-expansion "^1.1.7" -minimatch@^10.0.0: - version "10.0.1" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-10.0.1.tgz#ce0521856b453c86e25f2c4c0d03e6ff7ddc440b" - integrity sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ== +minimatch@^10.0.3: + version "10.0.3" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-10.0.3.tgz#cf7a0314a16c4d9ab73a7730a0e8e3c3502d47aa" + integrity sha512-IPZ167aShDZZUMdRk66cyQAW3qr0WzbHkPdMYa8bzZhlHhO3jALbKdxcaak7W9FfT2rZNpQuUu4Od7ILEpXSaw== dependencies: - brace-expansion "^2.0.1" + "@isaacs/brace-expansion" "^5.0.0" minimatch@^3.0.3, minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2: version "3.1.2" @@ -5116,13 +4941,6 @@ minipass-collect@^1.0.2: dependencies: minipass "^3.0.0" -minipass-collect@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/minipass-collect/-/minipass-collect-2.0.1.tgz#1621bc77e12258a12c60d34e2276ec5c20680863" - integrity sha512-D7V8PO9oaz7PWGLbCACuI1qEOsq7UKfLotx/C0Aet43fCUB/wfQ7DYeq2oR/svFJGYDHPr38SHATeaj/ZoKHKw== - dependencies: - minipass "^7.0.3" - minipass-fetch@^2.0.3: version "2.1.2" resolved "https://registry.yarnpkg.com/minipass-fetch/-/minipass-fetch-2.1.2.tgz#95560b50c472d81a3bc76f20ede80eaed76d8add" @@ -5191,7 +5009,7 @@ minipass@^5.0.0: resolved "https://registry.yarnpkg.com/minipass/-/minipass-5.0.0.tgz#3e9788ffb90b694a5d0ec94479a45b5d8738133d" integrity sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ== -"minipass@^5.0.0 || ^6.0.2 || ^7.0.0", minipass@^7.0.2, minipass@^7.0.3, minipass@^7.1.2: +"minipass@^5.0.0 || ^6.0.2 || ^7.0.0", minipass@^7.0.3, minipass@^7.1.2: version "7.1.2" resolved "https://registry.yarnpkg.com/minipass/-/minipass-7.1.2.tgz#93a9626ce5e5e66bd4db86849e7515e92340a707" integrity sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw== @@ -5279,11 +5097,6 @@ node-addon-api@^3.2.1: resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-3.2.1.tgz#81325e0a2117789c0128dab65e7e38f07ceba161" integrity sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A== -node-addon-api@^7.0.0: - version "7.1.1" - resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-7.1.1.tgz#1aba6693b0f255258a049d621329329322aad558" - integrity sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ== - node-fetch@2.6.7: version "2.6.7" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad" @@ -5303,22 +5116,6 @@ node-gyp-build@^4.3.0: resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.8.4.tgz#8a70ee85464ae52327772a90d66c6077a900cfc8" integrity sha512-LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ== -node-gyp@^10.0.1: - version "10.3.1" - resolved "https://registry.yarnpkg.com/node-gyp/-/node-gyp-10.3.1.tgz#1dd1a1a1c6c5c59da1a76aea06a062786b2c8a1a" - integrity sha512-Pp3nFHBThHzVtNY7U6JfPjvT/DTE8+o/4xKsLQtBoU+j2HLsGlhcfzflAoUreaJbNmYnX+LlLi0qjV8kpyO6xQ== - dependencies: - env-paths "^2.2.0" - exponential-backoff "^3.1.1" - glob "^10.3.10" - graceful-fs "^4.2.6" - make-fetch-happen "^13.0.0" - nopt "^7.0.0" - proc-log "^4.1.0" - semver "^7.3.5" - tar "^6.2.1" - which "^4.0.0" - node-gyp@^9.0.0: version "9.4.1" resolved "https://registry.yarnpkg.com/node-gyp/-/node-gyp-9.4.1.tgz#8a1023e0d6766ecb52764cc3a734b36ff275e185" @@ -5336,14 +5133,6 @@ node-gyp@^9.0.0: tar "^6.1.2" which "^2.0.2" -node-html-parser@6.1.12: - version "6.1.12" - resolved "https://registry.yarnpkg.com/node-html-parser/-/node-html-parser-6.1.12.tgz#6138f805d0ad7a6b5ef415bcd91bca07374bf575" - integrity sha512-/bT/Ncmv+fbMGX96XG9g05vFt43m/+SYKIs9oAemQVYyVcZmDAI2Xq/SbNcpOA35eF0Zk2av3Ksf+Xk8Vt8abA== - dependencies: - css-select "^5.1.0" - he "1.2.0" - node-int64@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" @@ -5362,13 +5151,6 @@ noms@0.0.0: inherits "^2.0.1" readable-stream "~1.0.31" -nopt@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/nopt/-/nopt-5.0.0.tgz#530942bb58a512fccafe53fe210f13a25355dc88" - integrity sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ== - dependencies: - abbrev "1" - nopt@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/nopt/-/nopt-6.0.0.tgz#245801d8ebf409c6df22ab9d95b65e1309cdb16d" @@ -5576,16 +5358,6 @@ npmlog@6.0.2, npmlog@^6.0.0, npmlog@^6.0.2: gauge "^4.0.3" set-blocking "^2.0.0" -npmlog@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-5.0.1.tgz#f06678e80e29419ad67ab964e0fa69959c1eb8b0" - integrity sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw== - dependencies: - are-we-there-yet "^2.0.0" - console-control-strings "^1.1.0" - gauge "^3.0.0" - set-blocking "^2.0.0" - npmlog@^7.0.1: version "7.0.1" resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-7.0.1.tgz#7372151a01ccb095c47d8bf1d0771a4ff1f53ac8" @@ -5596,13 +5368,6 @@ npmlog@^7.0.1: gauge "^5.0.0" set-blocking "^2.0.0" -nth-check@^2.0.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-2.1.1.tgz#c9eab428effce36cd6b92c924bdb000ef1f1ed1d" - integrity sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w== - dependencies: - boolbase "^1.0.0" - nx@15.9.7, "nx@>=15.5.2 < 16": version "15.9.7" resolved "https://registry.yarnpkg.com/nx/-/nx-15.9.7.tgz#f0e713cedb8637a517d9c4795c99afec4959a1b6" @@ -5654,11 +5419,6 @@ nx@15.9.7, "nx@>=15.5.2 < 16": "@nrwl/nx-win32-arm64-msvc" "15.9.7" "@nrwl/nx-win32-x64-msvc" "15.9.7" -object-assign@^4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" - integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== - once@^1.3.0, once@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" @@ -6083,11 +5843,6 @@ proc-log@^3.0.0: resolved "https://registry.yarnpkg.com/proc-log/-/proc-log-3.0.0.tgz#fb05ef83ccd64fd7b20bbe9c8c1070fc08338dd8" integrity sha512-++Vn7NS4Xf9NacaU9Xq3URUuqZETPsf8L4j5/ckhaRYsfPeRyzGw+iDjFhV/Jr3uNmTvvddEJFWh5R1gRgUH8A== -proc-log@^4.1.0, proc-log@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/proc-log/-/proc-log-4.2.0.tgz#b6f461e4026e75fdfe228b265e9f7a00779d7034" - integrity sha512-g8+OnU/L2v+wyiVK+D5fA34J7EH8jZ8DDlvwhRCMxmMj7UCBvxiO1mGeN+36JXIKF4zevU4kRBd8lVgG9vLelA== - process-nextick-args@~2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" @@ -6500,7 +6255,7 @@ shebang-regex@^3.0.0: resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== -signal-exit@3.0.7, signal-exit@^3.0.0, signal-exit@^3.0.2, signal-exit@^3.0.3, signal-exit@^3.0.7: +signal-exit@3.0.7, signal-exit@^3.0.2, signal-exit@^3.0.3, signal-exit@^3.0.7: version "3.0.7" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== @@ -6545,19 +6300,10 @@ socks-proxy-agent@^7.0.0: debug "^4.3.3" socks "^2.6.2" -socks-proxy-agent@^8.0.3: - version "8.0.5" - resolved "https://registry.yarnpkg.com/socks-proxy-agent/-/socks-proxy-agent-8.0.5.tgz#b9cdb4e7e998509d7659d689ce7697ac21645bee" - integrity sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw== - dependencies: - agent-base "^7.1.2" - debug "^4.3.4" - socks "^2.8.3" - -socks@^2.6.2, socks@^2.8.3: - version "2.8.4" - resolved "https://registry.yarnpkg.com/socks/-/socks-2.8.4.tgz#07109755cdd4da03269bda4725baa061ab56d5cc" - integrity sha512-D3YaD0aRxR3mEcqnidIs7ReYJFVzWdd6fXJYUM8ixcQcJRGTka/b3saV0KflYhyVJXKhb947GndU35SxYNResQ== +socks@^2.6.2: + version "2.8.5" + resolved "https://registry.yarnpkg.com/socks/-/socks-2.8.5.tgz#bfe18f5ead1efc93f5ec90c79fa8bdccbcee2e64" + integrity sha512-iF+tNDQla22geJdTyJB1wM/qrX9DMRwWrciEPwWLPRWAUEM8sQiyxgckLxWT1f7+9VabJS0jTGGr4QgBuvi6Ww== dependencies: ip-address "^9.0.5" smart-buffer "^4.2.0" @@ -6824,7 +6570,7 @@ tar@6.1.11: mkdirp "^1.0.3" yallist "^4.0.0" -tar@^6.1.11, tar@^6.1.2, tar@^6.2.1: +tar@^6.1.11, tar@^6.1.2: version "6.2.1" resolved "https://registry.yarnpkg.com/tar/-/tar-6.2.1.tgz#717549c541bc3c2af15751bea94b1dd068d4b03a" integrity sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A== @@ -6951,14 +6697,13 @@ ts-api-utils@^1.3.0: integrity sha512-i3eMG77UTMD0hZhgRS562pv83RC6ukSAC2GMNWc+9dieh/+jDM5u5YG+NHX6VNDRHQcHwmsTHctP9LhbC3WxVw== ts-jest@^29.1.1: - version "29.3.4" - resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.3.4.tgz#9354472aceae1d3867a80e8e02014ea5901aee41" - integrity sha512-Iqbrm8IXOmV+ggWHOTEbjwyCf2xZlUMv5npExksXohL+tk8va4Fjhb+X2+Rt9NBmgO7bJ8WpnMLOwih/DnMlFA== + version "29.4.0" + resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.4.0.tgz#bef0ee98d94c83670af7462a1617bf2367a83740" + integrity sha512-d423TJMnJGu80/eSgfQ5w/R+0zFJvdtTxwtF9KzFFunOpSeD+79lHJQIiAhluJoyGRbvj9NZJsl9WjCUo0ND7Q== dependencies: bs-logger "^0.2.6" ejs "^3.1.10" fast-json-stable-stringify "^2.1.0" - jest-util "^29.0.0" json5 "^2.2.3" lodash.memoize "^4.1.2" make-error "^1.3.6" @@ -7097,16 +6842,16 @@ underscore@~1.13.2: resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.13.7.tgz#970e33963af9a7dda228f17ebe8399e5fbe63a10" integrity sha512-GMXzWtsc57XAtguZgaQViUOzs0KTkk8ojr3/xAxXLITqf/3EMwxC0inyETfDFjH/Krbhuep0HNbbjI9i/q3F3g== -undici-types@~6.19.2: - version "6.19.8" - resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.19.8.tgz#35111c9d1437ab83a7cdc0abae2f26d88eda0a02" - integrity sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw== - undici-types@~6.21.0: version "6.21.0" resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.21.0.tgz#691d00af3909be93a7faa13be61b3a5b50ef12cb" integrity sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ== +undici-types@~7.8.0: + version "7.8.0" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-7.8.0.tgz#de00b85b710c54122e44fbfd911f8d70174cd294" + integrity sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw== + unique-filename@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/unique-filename/-/unique-filename-2.0.1.tgz#e785f8675a9a7589e0ac77e0b5c34d2eaeac6da2" @@ -7279,14 +7024,7 @@ which@^3.0.0: dependencies: isexe "^2.0.0" -which@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/which/-/which-4.0.0.tgz#cd60b5e74503a3fbcfbf6cd6b4138a8bae644c1a" - integrity sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg== - dependencies: - isexe "^3.1.1" - -wide-align@^1.1.2, wide-align@^1.1.5: +wide-align@^1.1.5: version "1.1.5" resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.5.tgz#df1d4c206854369ecf3c9a4898f1b23fbd9d15d3" integrity sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==